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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var e8C,gpC,kv8,ItU,Jqz,vp6,gV,qCV,npp,IA,R8A,qU,Ep8,Wet,fC,jK,bCU,h88,Xzg,Pz,pC,DUq,$U8,Tv,jAe,pzg,Aqt,FeW,z8p,HCp,ZCC,opK,QAK,BVK,yqt,KeA,MK6,In,Jk,n1,Rn,gIp,$I,YI,ck6,mB,IwW,JkA,us,dZ,rk6,WB6,b1v,Zw,Gq8,xqq,DqA,Nq,$qK,YvC,jnV,fw6,i1q,K1,hYz,ez,Ps8,TZ6,uMz,xX,dqC,zYq,GD,Ak8,ho,snA,FBK,tut,BZg,NZq,Svz,ykV,KB8,pg,CsA,MuA,el6,gXK,coz,I0K,Jot,q7v,LOK,nXA,EXg,bgU,DMV,Y7U,$Mv,Qv,f08,TjA,U7,l0g,sxV,zlV,uQg,Hgz,dMC,Vv,kDU,Bq,NM,yv,Qx8,Kg,Zg8,UMC,oXg,cJ,Vze,tzC,NjC,yoC,S76,KOz,Ogp,Mzq,ea,eAz,cjW,IBU,vBp,
a3,qxg,aBe,Ex,EBA,hAU,rj6,XJq,xb6,Db6,mb8,fBK,TrC,Aj8,s3C,upp,dbe,Ube,oBV,taA,Nrg,Kap,MaC,Cd6,gWC,keW,J0A,LzU,Wzv,dr,hLz,Gep,x5V,VP,tj,Nb,e0,kW,IP,m56,nY,TyC,sPp,u1V,d5C,zLz,Ge,HYW,$W,YW,fY,j0,U5z,oWp,ZYA,V0K,t0e,Nyt,ShK,y0g,KzA,M0t,Te,pY,Cjp,evC,gap,k6C,cvg,IbC,Jvz,vap,oP,Vb,t0,BA,S0,qy6,yb,rvg,W6C,M5,br8,hvV,Xc8,ew,G6p,xOq,DOU,gJ,fbC,ka,P1W,mOC,IR,TJv,pcV,lbe,Av6,sRK,F6g,wJ,uDW,dO6,qO,zvp,Hr6,Lr,rJ,aR,nr,QR8,oaC,UOq,RR,Vw8,tw8,BJC,Wc,hv,XD,G6,xa,$a,NJq,SyV,K6g,OrW,C1z,gUV,ehU,cdW,k1q,IMp,Jdv,vUt,
fr,wHA,q5t,rdV,m6,aMK,nUC,Rh8,EUe,WqW,b0W,l1,sy,hhv,u1,dJ,XHC,DaV,$aV,Y5z,j4z,i0v,Pe8,lMK,AdK,s4C,Fq8,umC,daC,zhq,oU6,Q9,Z0C,VQz,tQq,NNC,ydv,Sw,O0q,MQC,CeK,cuW,JuW,vre,wtv,qu6,Lut,aLe,Yug,fL8,jyv,m_q,ptp,qa,TDt,syV,d_8,zEv,HTz,QyK,U_W,orV,ZTK,VvC,BD6,NDe,Fu8,SuW,yuq,Ku6,OTv,Mve,CKK,eUK,gFt,cVV,vF8,Icq,LPz,wae,qXe,nFe,RUq,EFv,rVC,bnp,acA,Xae,f0,G7K,jQ,p0,xt8,$t8,YX8,inC,dtt,mtW,PuA,TsC,AVv,pa8,ZnU,Q9v,VPK,tPK,BsC,Nsv,SXC,KPC,yVC,OnC,MPC,CuC,es6,c_z,ICg,J_p,vzW,qIC,wVz,xNC,s5,DNt,YIt,fCC,j76,i4K,Pog,
pV8,THt,lCK,U5,o4,A_V,Vh,H4C,BH,UNg,Na,ts8,NHA,knV,O5,v1e,wQV,avz,LYp,rKV,ct,n1z,R_8,WYg,bfW,h_W,XQW,GnC,xl8,DlK,Y2e,q_,fvq,LT,nT,mlU,hu,s$p,AKV,dlz,xr,Yr,HfW,Q$p,UlA,o16,ZfC,fT,KYW,yKA,Pt,OfC,pT,lK,egt,gmp,ctz,Ikp,vmq,Jt6,wbe,tu,bte,hge,Sv,jF8,$zp,itW,Ou,TKC,M_,CT,lkp,At8,uYW,HtK,QFC,UzW,eP,Ztz,om8,ytg,KCt,M6K,c2K,Idp,J2C,v2A,wyg,LNA,r2W,n2C,Rdv,E2K,JV,bBW,a9,XyK,Gm6,xfe,$fq,hdt,WNK,Dfe,ws,fdv,mfe,iBe,ldv,A2V,slp,uCe,dfp,zdK,HBC,QlC,Xc,o26,Ufz,ZB6,nNp,Dc,ENW,bbz,fn,iu,jP,DZA,xZ6,WZ8,ibK,AO8,uSC,
FZt,Hbe,T7,UZA,oNU,tXK,B3W,uu,Sgp,z7,Ha,Obt,ekC,cZe,kHV,vQA,wPt,q4V,LVg,QU,aHK,nQC,Rkz,EQ8,bMV,hkp,XPq,GHC,Zc,Ba,$Rq,Y4A,fHv,P0C,mRV,pP6,dR6,zkK,sYK,QY8,URz,oQp,gH,kz,I7,J_,BYU,NYp,wH,S4A,yZg,KV6,OM6,C0W,eot,gfz,crg,MrU,kj8,n4,JrC,rrz,R7,LtC,a5V,I5p,nfW,WV,EfC,WtV,b_A,hov,Gjt,XmC,xoe,YMW,Dop,f5W,TEp,Arv,Ftg,zoK,dov,u7C,H_K,QCU,ofe,VVg,Z_A,tV8,js,NEV,SMe,yrg,KtW,O_V,Ccg,MVg,eme,gnz,vn8,IOC,J5v,qVz,L7q,r5W,nnt,aOt,Rm6,Enp,bAA,Xhe,Dct,YVe,$cW,BV,fOp,hme,lO8,stW,F7U,OI,ubq,zmV,Ucq,V4U,ZAg,SVt,y5C,K7U,
OA6,CBe,IYq,eBC,cwz,ktK,JwU,vdv,qop,wLK,rwA,Lp6,ql,aYW,RBv,Edq,XLe,bH,hK,XB,GtU,xWU,Gn,YoA,ff,jn,iH,PmK,PQ,Tqz,lH,lYg,AwK,sqK,Fpg,FB,ui6,dW8,zBC,Qq8,odz,toz,NqA,tK,Soe,ywe,Kpq,OUg,Mo8,CmU,e9C,gvC,Sn,IuA,J3q,vvq,wg8,qYe,LiK,r3z,auK,nvp,R9C,EvA,Wiz,bsC,cb,mkg,pgA,km,IF,Jt,Tpv,lut,A36,s1V,Fi6,uZv,dkC,ovC,ZsV,VhK,th8,BpC,Lt,aF,nt,RF,bw,ht,XY,SYC,xm,Ki6,Dk,Osq,MhA,$m,CgC,epz,g_g,rsC,n_6,hpe,DYV,xYv,aFv,$Y6,jI6,HOV,lF6,VYW,sI8,o_g,tYq,mC,Nke,lw,ysW,Kkq,MY8,CFz,eZC,cbz,FY,Iiv,JbW,vkC,wTW,qLC,LbC,rbU,kFC,
RZg,EkC,Wb8,dK,D2z,$2q,x2C,fiW,j6W,P3t,m2U,ivt,u6e,Q6e,okp,Bb,ybC,NLC,SL6,eNC,c4K,kJU,I3V,J4V,vy8,wOz,gF,bxe,XOv,Eyp,RNv,hNC,Lsg,xH8,l3p,Y1K,f3C,jHq,oyg,VtU,UH8,y4p,QHg,q1K,S18,$HC,Tip,Zx6,GJU,a3C,r4p,nyC,Wse,HxV,Dd,rCe,nut,Rcq,EuC,W3z,f9q,pYz,TbU,A2,ACK,uJV,QBV,HVW,oup,ZVq,tSp,Bbg,Nbv,SQ8,K3K,yCg,Uf,kM8,chq,gDW,wj8,IZv,qTe,vDt,LgC,rh8,ED6,nD6,RRV,bLe,XjW,GMC,$1A,YTK,fZv,jmg,PQV,m1K,SW,TSC,KB,lZq,Fgv,Ah6,uXv,Qm8,U1U,VlK,BSt,I2,JO,KgW,OLC,vd,w3,Mlg,qZ,Lb,CQA,r3,ePU,a2,gt6,cAK,R2,kiC,IQt,JAC,vtA,w2p,
Lm8,qm6,aQe,Et6,RPq,Wme,bu6,rAv,hP6,xeV,Gi8,ntp,Dev,$eK,XS,YmA,jdW,fQg,iuv,Pnt,p26,meK,Tlq,xN,AAe,sdq,lQg,u5C,deW,zPK,otC,t$v,Kmt,eOV,DX,kXz,I4e,$N,JP8,iq,Pd,a46,fb,Ty,nVV,ROt,WvV,bqK,XW6,xBg,DBU,$Bq,YU6,iqC,l46,pW8,jsz,APp,ssA,FS,T0K,FvW,zy,uv8,dBg,zOC,Hqg,Zqe,Qse,oVp,N0e,SUA,Cyz,MA8,cLU,qsK,LnU,agp,Rx6,EEz,b2q,hxC,X9K,xsg,Ds6,$sA,jXA,p9W,Tgq,i2g,ALA,Fnz,sXC,lgv,uWV,zxe,H2V,QXe,Use,oEq,V9q,Z2C,BgV,O2C,Ssz,NgC,C2t,Kb,Og,MZ,eeA,gog,caC,kS6,vP,wNp,qRV,LFU,raK,wY,rY,EoU,bZC,heA,GSC,$nv,nM,RY,YRC,E4,
iZW,PVC,mng,Xd,s0V,zeW,Q0e,Ung,ooW,Vct,tcq,BG8,ya6,xQ,KFV,CVz,DH,e6U,I2z,$Q,wR8,YQ,i0,PP,qGK,rUW,LEV,nbW,R6W,Ebp,WEU,a2p,xDz,DDz,YGp,jue,pRC,mDg,TQ8,AUp,suA,FEz,uGv,dDv,z6C,Hwv,obW,Qu6,s4,VpA,Fd,tpv,dY,zH,BQC,NQq,SGt,yUv,KEg,HP,OwV,MpA,CNW,etp,cSp,kBg,Ixp,JSV,vHv,qSC,wkC,QS,rSg,nHW,Rtg,EHg,Wy6,Xkv,x96,VS,$96,fxg,jgg,iQp,Pv8,m9W,pkg,TxC,lx6,GBv,D9C,ASW,sgC,ztW,HQC,QgU,U9e,cDC,JDK,vA6,w6C,Ijq,RD6,bzC,EAA,hDt,xEC,$EC,fjg,mEC,PbK,ADA,eV,sTv,FGW,gE,use,cm,dEp,zDz,Hzq,UEC,QTg,oAC,ZzU,VR6,tRv,CbC,gLz,k4p,
ccz,KGC,Nht,Jcv,wnp,nLq,RjK,bXC,$xg,fP8,wE,jMg,PkA,mx6,TaW,FWz,zjt,Ux6,oLA,ZXg,VJU,ycp,tJe,CkW,eFK,g8K,k_q,aC,IUC,v8z,wU8,qEW,LKK,rRq,aU8,n8p,E8v,WKC,Wm,bPe,hF6,G_V,hr,XUe,Dde,j_K,xf,iPe,Ppt,mdC,lUV,AR8,pU6,FKA,HPv,Q_t,UdA,jV,o8W,BMz,NMK,lc,KKC,SEC,yRt,Cp8,e2W,gqz,c$C,Hm,vqC,wl8,qHt,LAz,r$W,Eqg,h2e,bog,WAv,XlC,xG6,DGe,io8,$Gt,PEC,plU,mGz,ueA,Hoe,UGA,Zog,OoA,Rt,CE8,kGg,JFz,at,DO,a6C,WXg,ECW,hqg,X$p,xrC,GGW,Drz,$r8,$n,Xov,nCC,bae,Rqp,Gu,jDp,iaV,P7C,mr6,A5,p$K,T4p,l6A,AFz,sDq,d$,FXp,zqC,QDe,UrC,SOp,
KXz,OaC,Mxe,eTg,g3K,S4,k9q,Irv,JgC,v3q,wFz,qJp,rgK,n3p,E3C,WQt,DwK,G9C,$w6,j5U,i8K,gq,PZg,mwV,pFq,AgA,FQv,s5K,dwC,H8V,Jw,Uwv,o3v,Q5V,Z8t,Vq8,Bm6,SJz,NmC,ygC,tqC,KQp,O88,Mq8,CZg,ebV,gse,czW,kdK,IGC,wvg,vs6,qcK,rzC,L5e,vL,aGt,Esz,Xv8,nsv,DTp,$Tv,Yct,fGe,PUq,F5q,ukg,zbV,H3A,Gt,Z3q,NOp,K5K,xd,e5A,O38,M_C,CUp,gGV,FwK,Yd,uhg,dp6,Hjq,QLq,Upz,oGC,VI6,tIC,eup,KwC,MIW,c8e,g9q,kAV,IfK,v9p,q8A,r8C,n9C,RuC,WDA,j8p,m6C,Tev,lfp,A8K,s8V,FDv,d6V,zuW,U6A,o96,ZSv,VZq,tZ8,Bee,Nep,S8U,OSC,e$W,um,dq,zt,gYz,ciK,Uo,IsV,
R$A,GkU,h$e,ur6,dF6,z$e,vY6,nYA,LHV,Qft,UFg,oY8,Z$q,WHe,VdC,BRU,SNW,O$U,Md6,MW,wuW,LdW,aIz,nee,Eeq,RXV,hXC,G2t,i7A,fIC,Dug,jjW,$ug,PPt,lIv,Wg,bg,Qjz,duW,oeC,Z7K,tbz,Bzq,XZ,NzV,Kdp,O7t,MbK,CPC,vKv,JXe,mi,nKU,sY,EKA,WMz,b6z,hVA,XZW,GLC,x$z,D$V,$$p,Yjz,fKU,ug,joq,i6g,Plv,m$e,pZC,TvW,lKV,AXW,zb,sov,FMC,uzW,d$e,zVU,H6C,Qo8,U$K,oKU,Z66,VFe,tFW,BvC,Qg,SjK,KMC,MFW,gJt,IAg,JGW,vJA,qKC,rGp,aAC,nJq,Sh,hKV,W2C,XXg,G8g,xmp,YK6,fAC,jEC,PCp,vo,pXV,II,lAC,AGg,wk,sEz,F2z,u8v,dmg,LO,UmW,ZWe,SKA,NXg,K2K,OWC,hs,MfU,
CC8,gPW,kZ6,ISp,vP6,wE8,cx8,q9t,RfA,hfA,XEv,XA,GZW,xgz,jUK,DgA,Y9e,fSt,lSq,PYK,AxK,FoW,dgC,zfq,HE6,QUz,Ugp,oP6,V5g,t5U,B7v,N7e,S9v,KoK,M5U,gjt,Jfv,qqz,rfW,Rrq,Po,Ejz,W8V,bce,hrp,XxC,xVq,DVU,$V8,Yq6,fJK,jWe,icV,PJ8,mVe,pxU,T2V,Afe,lJp,u4v,zrg,T5,HcC,ojC,UVA,t7e,B26,N2e,K8C,CJq,M7C,yfC,c98,ghz,wre,koV,dk,J9v,Eh8,r9e,aeg,nhK,RzC,W0t,hz6,bHq,z5,Ho,fev,Go8,Ybp,$PV,xPp,DPt,P_q,prK,lee,Tcq,A9e,dPW,uOp,HHv,ohv,VOV,UPz,tOz,Nc8,Bct,y9C,MOU,VJ,C_t,e4C,g0g,J6V,alW,Bo,R4U,WcV,MY,X5g,biK,h46,Oz,$vt,GYt,xvK,Yke,
jbp,fl6,mv6,p5C,llV,A66,sbV,Fcv,uTq,z4C,HiC,Lv,Uvp,VyK,typ,R6,B9v,SkC,kWt,X6,MyW,cmv,C8v,eQ6,wpt,vMe,a1K,qBq,nMC,RQK,Di,EM8,Whz,bht,fv,hQW,$k,xLC,DLv,$LA,YBU,f1e,ihA,TPK,l1p,FhU,u$V,zQe,ULp,HhC,QeU,oMg,VEp,tEW,BPe,NPp,SBp,Khp,MEC,CTC,g46,ewC,c7V,kCW,J7U,v4W,W1q,RwU,X4z,GCp,jw6,idC,Prq,m8C,p4q,Tut,swU,F1C,uRV,d8q,HdW,QwU,U8z,o4e,ZdV,VkC,Bu6,NuA,tb,Odt,K1K,y7q,SFt,Crv,cEV,eaK,INe,JEv,w8A,qWK,LxU,rEe,aNz,bRC,nlt,Rae,Elq,haC,X8p,Gg8,Wxg,ye,$0v,fNp,YWA,OL,jzz,Pte,m08,p8C,iRz,Ttq,lNW,AEU,sze,Fxt,d0v,zaq,
HRV,Qzt,ZRW,olC,SWg,U0z,Cv,yEp,VGg,Nt8,ORK,MGe,Ct6,ey6,gcC,khe,I_C,JQt,wK6,qdA,rQK,nc6,hyq,W9z,bJ6,Ec8,Ryq,XKp,ri,GhU,aH,xhv,DhW,iJA,mhC,pKV,TWp,l_z,AQq,sQ8,h4,XE,HJz,uVV,F9K,dhz,OJp,SdV,zyt,NWg,kUq,ImU,JMp,vOp,w7V,rMt,nO8,EOg,b9p,hCW,X7e,$Cq,DCg,YaK,jJz,HO,mCU,p7p,T56,lmK,AMW,sJg,F_K,U1,oH,dCA,zCC,QJC,Z9e,yMe,eJg,C9W,gwK,kQC,I86,JJt,vw8,wSK,qAC,St,LTv,bNK,hJC,RJA,nwV,WTg,Ewv,$Xt,YAt,f8A,jOq,iNW,Pze,T_A,pSe,mXv,QOW,zJv,UXz,ZNK,ow6,t8g,SAt,KTU,B_A,N_g,I$C,v$g,q0v,r1V,n$8,E$8,X_e,G$6,xQC,Y0K,$QW,DQ8,
f$V,jZ6,i5g,PRv,mQe,p_V,TnU,l$K,A1t,sZW,uf8,dQz,zWt,H5W,QZg,UQU,Z5A,VB6,tBV,Bnp,Nnq,S0C,MBC,CRq,gRv,kEq,cW6,IVC,wb,JWU,vRC,wfp,qrC,aV8,rWe,nRC,RHq,ERe,Wfe,blz,hHe,Xfe,GEp,x46,D4q,$4U,YrV,fV8,jkg,ilq,m4z,Pxe,pfA,TAt,lVC,AWg,skC,FfA,utp,d4g,hC,HlA,Qkv,U4W,oRC,Zlq,tCg,BAK,NAp,Sre,yW8,Kf8,Ol8,Cx8,e7v,cev,D9,Jet,ree,qZC,wip,vgC,L4z,R7K,Egv,W4K,bp8,Xiq,GRA,x3v,$3W,D3t,YZt,fDC,jSz,m3C,piz,T8g,lDW,AeC,sSC,d36,z7K,lD,ZpC,VTA,B8U,yeq,SZC,K4q,OpU,AC,FJ,CaK,zP,HY,kzq,e3V,gZV,vZ8,wMe,qpA,LLp,R3v,WLV,beV,h36,XMq,
Gzg,DK6,$Kp,YpC,fTC,jh8,ieU,P$A,oB,mK8,pMW,VD,Toq,lT6,Ayz,shz,FLK,uIg,BY,Ny,dKv,z3C,SS,HeK,QhC,UKW,oZg,VjC,tjK,NoA,Mjz,OeU,KLz,C$C,enq,w3U,kN6,Iq6,JYv,cYU,viV,qtv,L$p,aqp,niC,KV,W$6,bDA,hnK,X3e,GNg,DIt,YtV,iDe,TwU,mIv,OQ,PLV,F$W,dIW,My,znC,HDg,QKW,UIz,oiW,VHW,tHg,Nw6,St8,K$6,ODW,gxC,kKW,JlA,Izv,wsq,q3z,LIA,rlp,nxU,RI8,Exq,WI8,bkq,hIW,XsU,GKC,xAq,$AC,Y3A,mAe,psV,TUK,lzv,Alz,srp,q1,dAg,HkA,Qrg,UAg,oxg,Zkv,t2g,BUV,NUK,S3t,KIt,OkK,M2e,am,CO6,eMV,kfC,IpA,nL,Rm,wDU,JBC,qDe,apW,Lrt,n7e,E7A,hh,Wrg,bIK,hMU,
xJv,$Jq,XX,fpq,jpq,iIC,P5W,mJv,pD6,TTV,lpp,ABv,dJK,zMp,o7g,HIe,UJU,ZIz,VeC,tez,SDe,yB6,Krv,MeK,C5V,Jne,IWt,rnC,R0U,TM,ET6,Wjz,$N6,lQ,byz,h0z,GaK,$7U,Yi6,T6t,lWC,An6,saq,Fj6,u2z,HyK,QaW,oT6,Viv,U7e,Zye,B6g,tie,Sig,Oyz,ynV,MiU,C4C,e1A,g5g,cI6,kcg,JIv,Iov,LJ8,n56,rIt,R1z,E5K,WJe,UT,bGA,h1W,ZZ,GcA,XCe,xi8,$iW,DiW,iG6,PM6,pCv,Bj,lo6,AI8,siV,FJC,z1C,Qip,ZGz,o5C,V1K,t1K,Bfp,KJW,v6e,eiC,q6W,LSt,anU,n6g,E6q,WSA,bF6,hiV,XBC,GwK,$SA,Y6p,fn6,jN6,mSU,TIg,lnC,pBW,sNz,ANA,HFz,QNA,USg,o6C,ZFC,VmC,tm8,NI6,KSt,OFA,
MmA,gSC,eS6,Iap,vSC,qlg,LUV,rHq,aaW,nSV,ES6,RSA,bKz,Djp,faq,YlC,jVt,iKK,PIA,peK,ad,lae,Em,sVz,uyU,djV,oSg,VNz,Sl8,KUA,OKC,CIz,e8v,gpv,kvY,Jqw,vp4,qCZ,at1,rqw,Leu,X5,R8n,npI,EpY,Wew,bCq,h8Y,XzM,Gvu,xU4,$UY,YCv,ftw,jAB,iCZ,PWw,mUv,pzM,TVM,ltq,sAw,Fes,ugY,dUZ,z8I,QAu,UUq,opu,tKY,j$,MK4,BVu,eYq,ck4,LBu,rk4,awB,nIu,mm,xqk,N_,pu,ln,Dqn,$qu,jnZ,PsY,i1k,sm,mqI,pwn,TZ4,lww;e8C=function(){var e,g;return typeof CSS!=="undefined"&&((g=(e=CSS).supports)==null?void 0:g.call(e,"selector(:has(*))"))};
gpC=function(e){return e.visibility!=="hidden"&&e.display!=="none"};
kv8=function(e){if(e8C()||e.tagName!=="DETAILS"?!e.matches(cqW):e.querySelector("summary")!==null)return-1;e=e.getAttribute("tabindex")||"0";return Number(e)};
ItU=function(e){return e.some(function(g){return kv8(g)>0})};
Jqz=function(e){if(e.textContent||e.ariaLabel)return!0;if(e instanceof HTMLInputElement){if(!e.labels)return!1;e=_.w(e.labels);for(var g=e.next();!g.done;g=e.next())if(g.value.textContent)return!0}return!1};
vp6=function(e){return e.sort(function(g,c){return kv8(c)-kv8(g)})};
_.wzV=function(e){e=Array.from(e.querySelectorAll(cqW)).filter(function(g){return(gpC(g.style)?gpC(window.getComputedStyle(g)):!1)&&Jqz(g)});
return ItU(e)?vp6(e):e};
_.eK=function(e,g){if(Error.captureStackTrace)Error.captureStackTrace(this,_.eK);else{var c=Error().stack;c&&(this.stack=c)}e&&(this.message=String(e));g!==void 0&&(this.cause=g)};
gV=function(){throw Error("F");};
qCV=function(e,g){g=String.fromCharCode.apply(null,g);return e==null?g:e+g};
npp=function(e){var g=!1;g=g===void 0?!1:g;if(LeK){if(g&&(rqz?!e.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e)))throw Error("G");e=(atC||(atC=new TextEncoder)).encode(e)}else{for(var c=0,k=new Uint8Array(3*e.length),I=0;I<e.length;I++){var J=e.charCodeAt(I);if(J<128)k[c++]=J;else{if(J<2048)k[c++]=J>>6|192;else{if(J>=55296&&J<=57343){if(J<=56319&&I<e.length){var q=e.charCodeAt(++I);if(q>=56320&&q<=57343){J=(J-55296)*1024+q-56320+65536;k[c++]=J>>18|
240;k[c++]=J>>12&63|128;k[c++]=J>>6&63|128;k[c++]=J&63|128;continue}else I--}if(g)throw Error("G");J=65533}k[c++]=J>>12|224;k[c++]=J>>6&63|128}k[c++]=J&63|128}}e=c===k.length?k:k.subarray(0,c)}return e};
IA=function(e){_.kp.setTimeout(function(){throw e;},0)};
_.vz=function(e){for(var g=[],c=0,k=0;k<e.length;k++){var I=e.charCodeAt(k);I<128?g[c++]=I:(I<2048?g[c++]=I>>6|192:((I&64512)==55296&&k+1<e.length&&(e.charCodeAt(k+1)&64512)==56320?(I=65536+((I&1023)<<10)+(e.charCodeAt(++k)&1023),g[c++]=I>>18|240,g[c++]=I>>12&63|128):g[c++]=I>>12|224,g[c++]=I>>6&63|128),g[c++]=I&63|128)}return g};
R8A=function(e){for(var g=[],c=0,k=0;c<e.length;){var I=e[c++];if(I<128)g[k++]=String.fromCharCode(I);else if(I>191&&I<224){var J=e[c++];g[k++]=String.fromCharCode((I&31)<<6|J&63)}else if(I>239&&I<365){J=e[c++];var q=e[c++],L=e[c++];I=((I&7)<<18|(J&63)<<12|(q&63)<<6|L&63)-65536;g[k++]=String.fromCharCode(55296+(I>>10));g[k++]=String.fromCharCode(56320+(I&1023))}else J=e[c++],q=e[c++],g[k++]=String.fromCharCode((I&15)<<12|(J&63)<<6|q&63)}return g.join("")};
_.wV=function(e,g){return e.lastIndexOf(g,0)==0};
qU=function(e,g){var c=e.length-g.length;return c>=0&&e.indexOf(g,c)==c};
_.rV=function(e){return/^[\s\xa0]*$/.test(e)};
_.nC=function(e,g){return e.indexOf(g)!=-1};
_.EC=function(e,g){return _.nC(e.toLowerCase(),g.toLowerCase())};
_.Gv=function(e,g){var c=0;e=Wz(String(e)).split(".");g=Wz(String(g)).split(".");for(var k=Math.max(e.length,g.length),I=0;c==0&&I<k;I++){var J=e[I]||"",q=g[I]||"";do{J=/(\d*)(\D*)(.*)/.exec(J)||["","","",""];q=/(\d*)(\D*)(.*)/.exec(q)||["","","",""];if(J[0].length==0&&q[0].length==0)break;c=Ep8(J[1].length==0?0:parseInt(J[1],10),q[1].length==0?0:parseInt(q[1],10))||Ep8(J[2].length==0,q[2].length==0)||Ep8(J[2],q[2]);J=J[3];q=q[3]}while(c==0)}return c};
Ep8=function(e,g){return e<g?-1:e>g?1:0};
_.xp=function(){var e=_.kp.navigator;return e&&(e=e.userAgent)?e:""};
Wet=function(e){if(!$p||!Yp)return!1;for(var g=0;g<Yp.brands.length;g++){var c=Yp.brands[g].brand;if(c&&_.nC(c,e))return!0}return!1};
fC=function(e){return _.nC(_.xp(),e)};
jK=function(){return $p?!!Yp&&Yp.brands.length>0:!1};
bCU=function(){return jK()?!1:fC("Opera")};
h88=function(){return jK()?!1:fC("Trident")||fC("MSIE")};
Xzg=function(){return jK()?Wet("Microsoft Edge"):fC("Edg/")};
Pz=function(){return fC("Firefox")||fC("FxiOS")};
_.GvK=function(){return fC("Safari")&&!(pC()||(jK()?0:fC("Coast"))||bCU()||(jK()?0:fC("Edge"))||Xzg()||(jK()?Wet("Opera"):fC("OPR"))||Pz()||fC("Silk")||fC("Android"))};
pC=function(){return jK()?Wet("Chromium"):(fC("Chrome")||fC("CriOS"))&&!(jK()?0:fC("Edge"))||fC("Silk")};
_.xU6=function(){return fC("Android")&&!(pC()||Pz()||bCU()||fC("Silk"))};
DUq=function(e){var g={};e.forEach(function(c){g[c[0]]=c[1]});
return function(c){return g[c.find(function(k){return k in g})]||""}};
$U8=function(e){var g=_.xp();if(e==="Internet Explorer"){if(h88())if((e=/rv: *([\d\.]*)/.exec(g))&&e[1])g=e[1];else{e="";var c=/MSIE +([\d\.]+)/.exec(g);if(c&&c[1])if(g=/Trident\/(\d.\d)/.exec(g),c[1]=="7.0")if(g&&g[1])switch(g[1]){case "4.0":e="8.0";break;case "5.0":e="9.0";break;case "6.0":e="10.0";break;case "7.0":e="11.0"}else e="7.0";else e=c[1];g=e}else g="";return g}var k=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var I;I=k.exec(g);)c.push([I[1],I[2],I[3]||void 0]);
g=DUq(c);switch(e){case "Opera":if(bCU())return g(["Version","Opera"]);if(jK()?Wet("Opera"):fC("OPR"))return g(["OPR"]);break;case "Microsoft Edge":if(jK()?0:fC("Edge"))return g(["Edge"]);if(Xzg())return g(["Edg"]);break;case "Chromium":if(pC())return g(["Chrome","CriOS","HeadlessChrome"])}return e==="Firefox"&&Pz()||e==="Safari"&&_.GvK()||e==="Android Browser"&&_.xU6()||e==="Silk"&&fC("Silk")?(g=c[2])&&g[1]||"":""};
_.YCC=function(e){if(jK()&&e!=="Silk"){var g=Yp.brands.find(function(c){return c.brand===e});
if(!g||!g.version)return NaN;g=g.version.split(".")}else{g=$U8(e);if(g==="")return NaN;g=g.split(".")}return g.length===0?NaN:Number(g[0])};
Tv=function(){return $p?!!Yp&&!!Yp.platform:!1};
_.ftz=function(){return Tv()?Yp.platform==="Android":fC("Android")};
jAe=function(){return fC("iPhone")&&!fC("iPod")&&!fC("iPad")};
_.lW=function(){return jAe()||fC("iPad")||fC("iPod")};
_.iCV=function(){return Tv()?Yp.platform==="macOS":fC("Macintosh")};
_.PWt=function(){return Tv()?Yp.platform==="Windows":fC("Windows")};
_.mUC=function(){return Tv()?Yp.platform==="Chrome OS":fC("CrOS")};
_.Aq=function(e){return e[e.length-1]};
pzg=function(e){for(var g=_.uW,c=typeof e==="string"?e.split(""):e,k=e.length-1;k>=0;k--)if(k in c&&g.call(void 0,c[k],k,e))return k;return-1};
_.Hz=function(e,g){return _.dV(e,g)>=0};
_.TVg=function(e,g){_.Hz(e,g)||e.push(g)};
_.UC=function(e,g){g=_.dV(e,g);var c;(c=g>=0)&&_.ltv(e,g);return c};
_.ltv=function(e,g){Array.prototype.splice.call(e,g,1)};
_.tq=function(e){var g=e.length;if(g>0){for(var c=Array(g),k=0;k<g;k++)c[k]=e[k];return c}return[]};
_.NU=function(e,g){for(var c=1;c<arguments.length;c++){var k=arguments[c];if(_.Bz(k)){var I=e.length||0,J=k.length||0;e.length=I+J;for(var q=0;q<J;q++)e[I+q]=k[q]}else e.push(k)}};
_.sAt=function(e,g,c,k){Array.prototype.splice.apply(e,Aqt(arguments,1))};
Aqt=function(e,g,c){return arguments.length<=2?Array.prototype.slice.call(e,g):Array.prototype.slice.call(e,g,c)};
FeW=function(e,g){g=g||e;for(var c=0,k=0,I={};k<e.length;){var J=e[k++],q=_.SK(J)?"o"+_.KC(J):(typeof J).charAt(0)+J;Object.prototype.hasOwnProperty.call(I,q)||(I[q]=!0,g[c++]=J)}g.length=c};
_.dUV=function(e,g,c){c=c||_.ug8;for(var k=0,I=e.length,J;k<I;){var q=k+(I-k>>>1);var L=c(g,e[q]);L>0?k=q+1:(I=q,J=!L)}return J?k:-k-1};
_.OC=function(e,g,c){if(!_.Bz(e)||!_.Bz(g)||e.length!=g.length)return!1;var k=e.length;c=c||z8p;for(var I=0;I<k;I++)if(!c(e[I],g[I]))return!1;return!0};
_.ug8=function(e,g){return e>g?1:e<g?-1:0};
z8p=function(e,g){return e===g};
HCp=function(e,g,c){g=Array.prototype.splice.call(e,g,1);Array.prototype.splice.call(e,c,0,g[0])};
_.MU=function(e,g){g===void 0&&(g=0);QAK();g=UUv[g];for(var c=Array(Math.floor(e.length/3)),k=g[64]||"",I=0,J=0;I<e.length-2;I+=3){var q=e[I],L=e[I+1],n=e[I+2],R=g[q>>2];q=g[(q&3)<<4|L>>4];L=g[(L&15)<<2|n>>6];n=g[n&63];c[J++]=R+q+L+n}R=0;n=k;switch(e.length-I){case 2:R=e[I+1],n=g[(R&15)<<2]||k;case 1:e=e[I],c[J]=g[e>>2]+g[(e&3)<<4|R>>4]+n+k}return c.join("")};
ZCC=function(e){var g="";opK(e,function(c){g+=String.fromCharCode(c)});
return g};
_.VKV=function(e){var g=[];opK(e,function(c){g.push(c)});
return g};
_.CC=function(e){var g=e.length,c=g*3/4;c%3?c=Math.floor(c):_.nC("=.",e[g-1])&&(c=_.nC("=.",e[g-2])?c-2:c-1);var k=new Uint8Array(c),I=0;opK(e,function(J){k[I++]=J});
return I!==c?k.subarray(0,I):k};
opK=function(e,g){function c(n){for(;k<e.length;){var R=e.charAt(k++),W=gZ[R];if(W!=null)return W;if(!_.rV(R))throw Error("I`"+R);}return n}
QAK();for(var k=0;;){var I=c(-1),J=c(0),q=c(64),L=c(64);if(L===64&&I===-1)break;g(I<<2|J>>4);q!=64&&(g(J<<4&240|q>>2),L!=64&&g(q<<6&192|L))}};
QAK=function(){if(!gZ){gZ={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),g=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var k=e.concat(g[c].split(""));UUv[c]=k;for(var I=0;I<k.length;I++){var J=k[I];gZ[J]===void 0&&(gZ[J]=I)}}}};
BVK=function(e){return tK8[e]||""};
yqt=function(e){if(!NVt)return _.CC(e);e=SCK.test(e)?e.replace(SCK,BVK):e;e=atob(e);for(var g=new Uint8Array(e.length),c=0;c<e.length;c++)g[c]=e.charCodeAt(c);return g};
KeA=function(e,g){e.__closure__error__context__984382||(e.__closure__error__context__984382={});e.__closure__error__context__984382.severity=g};
_.cw=function(e){e=Error(e);KeA(e,"warning");return e};
MK6=function(e,g){if(e!=null){var c;var k=(c=OC8)!=null?c:OC8={};c=k[e]||0;c>=g||(k[e]=c+1,e=Error(),KeA(e,"incident"),IA(e))}};
In=function(){return typeof BigInt==="function"};
Jk=function(e,g,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():g};
n1=function(e,g){vw||_.wZ in e||CWq(e,eYU);e[_.wZ]|=g};
Rn=function(e,g){vw||_.wZ in e||CWq(e,eYU);e[_.wZ]=g};
gIp=function(e){if(4&e)return 512&e?512:1024&e?1024:0};
$I=function(e){n1(e,34);return e};
YI=function(e){n1(e,8192);return e};
ck6=function(e){n1(e,32);return e};
mB=function(e,g){return g===void 0?e.copyOnWrite!==Pw&&!!(2&(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.wZ]|0)):!!(2&g)&&e.copyOnWrite!==Pw};
_.sv=function(e,g){if(e!=null)if(typeof e==="string")e=e?new Tq(e,ls):_.Ak();else if(e.constructor!==Tq)if(kq8&&e!=null&&e instanceof Uint8Array)e=e.length?new Tq(new Uint8Array(e),ls):_.Ak();else{if(!g)throw Error();e=void 0}return e};
IwW=function(e,g){if(typeof g!=="number"||g<0||g>=e.length)throw Error();};
JkA=function(e,g,c){var k=g&128?0:-1,I=e.length,J;if(J=!!I)J=e[I-1],J=J!=null&&typeof J==="object"&&J.constructor===Object;var q=I+(J?-1:0);for(g=g&128?1:0;g<q;g++)c(g-k,e[g]);if(J){e=e[I-1];for(var L in e)!isNaN(L)&&c(+L,e[L])}};
us=function(e){return e&128?FM:void 0};
_.qvA=function(e){var g=vIv;if(!wwe(e)){var c,k;g=(k=(c=typeof g==="function"?g():g)==null?void 0:c.concat("\n"))!=null?k:"";throw Error("L`"+g+"`"+String(e));}};
dZ=function(e){e.isGuard_doNotManuallySetPrettyPlease=!0;return e};
rk6=function(){var e=LBK;return dZ(function(g){for(var c in e)if(g===e[c]&&!/^[0-9]+$/.test(c))return!0;return!1})};
_.zq=function(e){var g=e;if(awe(g)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(g))throw Error(String(g));}else if(nIK(g)&&!Number.isSafeInteger(g))throw Error(String(g));return RYC?BigInt(e):e=EIC(e)?e?"1":"0":awe(e)?e.trim()||"0":String(e)};
WB6=function(e,g){if(e.length>g.length)return!1;if(e.length<g.length||e===g)return!0;for(var c=0;c<e.length;c++){var k=e[c],I=g[c];if(k>I)return!1;if(k<I)return!0}};
b1v=function(e){var g=e>>>0;Hw=g;Q4=(e-g)/4294967296>>>0};
Zw=function(e){if(e<0){b1v(-e);var g=_.w(hYz(Hw,Q4));e=g.next().value;g=g.next().value;Hw=e>>>0;Q4=g>>>0}else b1v(e)};
Gq8=function(e){var g=XwK||(XwK=new DataView(new ArrayBuffer(8)));g.setFloat32(0,+e,!0);Q4=0;Hw=g.getUint32(0,!0)};
xqq=function(e,g){var c=g*4294967296+(e>>>0);return Number.isSafeInteger(c)?c:_.tk(e,g)};
DqA=function(e,g){return _.zq(In()?BigInt.asUintN(64,(BigInt(g>>>0)<<BigInt(32))+BigInt(e>>>0)):_.tk(e,g))};
Nq=function(e,g){var c=g&2147483648;c&&(e=~e+1>>>0,g=~g>>>0,e==0&&(g=g+1>>>0));e=xqq(e,g);return typeof e==="number"?c?-e:e:c?"-"+e:e};
$qK=function(e,g){return In()?_.zq(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(g))<<BigInt(32))+BigInt.asUintN(32,BigInt(e)))):_.zq(_.y4(e,g))};
YvC=function(e){var g=Hw,c=Q4,k=c>>31;c=(c<<1|g>>>31)^k;e(g<<1^k,c)};
jnV=function(e,g){return fw6(e,g,Nq)};
fw6=function(e,g,c){var k=-(e&1);e=(e>>>1|g<<31)^k;g=g>>>1^k;return c(e,g)};
_.tk=function(e,g){g>>>=0;e>>>=0;if(g<=2097151)var c=""+(4294967296*g+e);else In()?c=""+(BigInt(g)<<BigInt(32)|BigInt(e)):(c=(e>>>24|g<<8)&16777215,g=g>>16&65535,e=(e&16777215)+c*6777216+g*6710656,c+=g*8147497,g*=2,e>=1E7&&(c+=e/1E7>>>0,e%=1E7),c>=1E7&&(g+=c/1E7>>>0,c%=1E7),c=g+i1q(c)+i1q(e));return c};
i1q=function(e){e=String(e);return"0000000".slice(e.length)+e};
_.y4=function(e,g){g&2147483648?In()?e=""+(BigInt(g|0)<<BigInt(32)|BigInt(e>>>0)):(g=_.w(hYz(e,g)),e=g.next().value,g=g.next().value,e="-"+_.tk(e,g)):e=_.tk(e,g);return e};
K1=function(e){if(e.length<16)Zw(Number(e));else if(In())e=BigInt(e),Hw=Number(e&BigInt(4294967295))>>>0,Q4=Number(e>>BigInt(32)&BigInt(4294967295));else{var g=+(e[0]==="-");Q4=Hw=0;for(var c=e.length,k=g,I=(c-g)%6+g;I<=c;k=I,I+=6)k=Number(e.slice(k,I)),Q4*=1E6,Hw=Hw*1E6+k,Hw>=4294967296&&(Q4+=Math.trunc(Hw/4294967296),Q4>>>=0,Hw>>>=0);g&&(g=_.w(hYz(Hw,Q4)),e=g.next().value,g=g.next().value,Hw=e,Q4=g)}};
hYz=function(e,g){g=~g;e?e=~e+1:g+=1;return[e,g]};
ez=function(e){return Array.prototype.slice.call(e)};
_.gj=function(e,g){throw Error(g===void 0?"unexpected value "+e+"!":g);};
_.cq=function(e){if(e!=null&&typeof e!=="number")throw Error("M`"+typeof e+"`"+e);return e};
_.kX=function(e){if(e==null||typeof e==="number")return e;if(e==="NaN"||e==="Infinity"||e==="-Infinity")return Number(e)};
Ps8=function(e){if(e!=null&&typeof e!=="boolean")throw Error("N`"+_.Ix(e)+"`"+e);return e};
_.mqp=function(e){if(e==null||typeof e==="boolean")return e;if(typeof e==="number")return!!e};
_.wj=function(e){switch(typeof e){case "bigint":return!0;case "number":return Jo(e);case "string":return pwA.test(e);default:return!1}};
_.qM=function(e){if(!Jo(e))throw _.cw("enum");return e|0};
_.Lg=function(e){return e==null?e:Jo(e)?e|0:void 0};
TZ6=function(e){if(typeof e!=="number")throw _.cw("int32");if(!Jo(e))throw _.cw("int32");return e|0};
_.rj=function(e){return e==null?e:TZ6(e)};
_.ax=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return Jo(e)?e|0:void 0};
_.lwz=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return Jo(e)?e>>>0:void 0};
uMz=function(e){var g=void 0;g!=null||(g=_.E7?1024:0);if(!_.wj(e))throw _.cw("int64");var c=typeof e;switch(g){case 512:switch(c){case "string":return ho(e);case "bigint":return String(XQ(64,e));default:return Ak8(e)}case 1024:switch(c){case "string":return snA(e);case "bigint":return _.zq(XQ(64,e));default:return FBK(e)}case 0:switch(c){case "string":return ho(e);case "bigint":return _.zq(XQ(64,e));default:return GD(e)}default:return _.gj(g,"Unknown format requested type for int64")}};
xX=function(e){return e==null?e:uMz(e)};
dqC=function(e){var g=e.length;if(e[0]==="-"?g<20||g===20&&e<="-9223372036854775808":g<19||g===19&&e<="9223372036854775807")return e;K1(e);return _.y4(Hw,Q4)};
zYq=function(e){if(e[0]==="-")var g=!1;else g=e.length,g=g<20?!0:g===20&&e<="18446744073709551615";if(g)return e;K1(e);return _.tk(Hw,Q4)};
GD=function(e){e=D0(e);YX(e)||(Zw(e),e=Nq(Hw,Q4));return e};
_.H1A=function(e){e=D0(e);e>=0&&YX(e)||(Zw(e),e=xqq(Hw,Q4));return e};
Ak8=function(e){e=D0(e);YX(e)?e=String(e):(Zw(e),e=_.y4(Hw,Q4));return e};
_.Qng=function(e){e=D0(e);e>=0&&YX(e)?e=String(e):(Zw(e),e=_.tk(Hw,Q4));return e};
ho=function(e){var g=D0(Number(e));if(YX(g))return String(g);g=e.indexOf(".");g!==-1&&(e=e.substring(0,g));return dqC(e)};
snA=function(e){var g=D0(Number(e));if(YX(g))return _.zq(g);g=e.indexOf(".");g!==-1&&(e=e.substring(0,g));return In()?_.zq(XQ(64,BigInt(e))):_.zq(dqC(e))};
FBK=function(e){return YX(e)?_.zq(GD(e)):_.zq(Ak8(e))};
_.Uqq=function(e){return YX(e)?_.zq(_.H1A(e)):_.zq(_.Qng(e))};
_.oIW=function(e){var g=D0(Number(e));if(YX(g)&&g>=0)return String(g);g=e.indexOf(".");g!==-1&&(e=e.substring(0,g));return zYq(e)};
_.Z16=function(e){var g=D0(Number(e));if(YX(g)&&g>=0)return _.zq(g);g=e.indexOf(".");g!==-1&&(e=e.substring(0,g));return In()?_.zq((0,_.fg)(64,BigInt(e))):_.zq(zYq(e))};
tut=function(e){if(e==null)return e;if(typeof e==="bigint")return Vuv(e)?e=Number(e):(e=XQ(64,e),e=Vuv(e)?Number(e):String(e)),e;if(_.wj(e))return typeof e==="number"?GD(e):ho(e)};
BZg=function(e,g){g=g===void 0?!1:g;var c=typeof e;if(e==null)return e;if(c==="bigint")return String(XQ(64,e));if(_.wj(e))return c==="string"?ho(e):g?Ak8(e):GD(e)};
NZq=function(e){var g=typeof e;if(e==null)return e;if(g==="bigint")return _.zq(XQ(64,e));if(_.wj(e))return g==="string"?snA(e):FBK(e)};
Svz=function(e){var g=typeof e;if(e==null)return e;if(g==="bigint")return _.zq((0,_.fg)(64,e));if(_.wj(e))return g==="string"?_.Z16(e):_.Uqq(e)};
ykV=function(e){if(e==null)return e;var g=typeof e;if(g==="bigint")return String(XQ(64,e));if(_.wj(e)){if(g==="string")return ho(e);if(g==="number")return GD(e)}};
KB8=function(e){if(e==null)return e;var g=typeof e;if(g==="bigint")return String((0,_.fg)(64,e));if(_.wj(e)){if(g==="string")return _.oIW(e);if(g==="number")return _.H1A(e)}};
_.iS=function(e){if(typeof e!=="string")throw Error();return e};
pg=function(e){if(e!=null&&typeof e!=="string")throw Error();return e};
_.TD=function(e){return e==null||typeof e==="string"?e:void 0};
CsA=function(e,g,c,k){if(e!=null&&e[Ao]===s7)return e;if(!Array.isArray(e))return c?k&2?g[O1q]||(g[O1q]=MuA(g)):new g:void 0;c=e[_.wZ]|0;k=c|k&32|k&2;k!==c&&Rn(e,k);return new g(e)};
MuA=function(e){e=new e;$I(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return e};
el6=function(e,g,c){e=g?TZ6(e):_.ax(e);return e==null?c?0:void 0:e|0};
gXK=function(e){return e};
coz=function(e){return e};
I0K=function(e,g,c,k,I,J){e=CsA(e,k,c,J);I&&(e=kDU(e));return e};
Jot=function(e){return[e,this.get(e)]};
q7v=function(){return vX6||(vX6=new FQ($I([]),void 0,void 0,void 0,wqW))};
LOK=function(e){var g=zD(Hq);return g?e[g]:void 0};
nXA=function(e,g){var c=c===void 0?!1:c;if(zD(roV)&&zD(Hq)&&void 0===roV){var k=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=k[Hq];if(!I)return;if(I=I.reviveUnknownFields)try{I(k,g,a0C);return}catch(J){IA(J)}}c&&(e=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(c=zD(Hq))&&c in e&&(e=e[c])&&delete e[g])};
EXg=function(e,g){var c=zD(Hq),k;vw&&c&&((k=e[c])==null?void 0:k[g])!=null&&MK6(Rlq,3)};
bgU=function(e,g){g<100||MK6(WO8,1)};
DMV=function(e,g,c,k){var I=k!==void 0;k=!!k;var J=zD(Hq),q;!I&&vw&&J&&(q=e[J])&&hlq(q,bgU);J=[];var L=e.length;q=4294967295;var n=!1,R=!!(g&64),W=R?g&128?0:-1:void 0;if(!(g&1)){var b=L&&e[L-1];b!=null&&typeof b==="object"&&b.constructor===Object?(L--,q=L):b=void 0;if(R&&!(g&128)&&!I){n=!0;var h;q=((h=Xqp)!=null?h:gXK)(q-W,W,e,b,void 0)+W}}g=void 0;for(h=0;h<L;h++){var X=e[h];if(X!=null&&(X=c(X,k))!=null)if(R&&h>=q){var D=h-W,f=void 0;((f=g)!=null?f:g={})[D]=X}else J[h]=X}if(b)for(var l in b)L=b[l],
L!=null&&(L=c(L,k))!=null&&(h=+l,X=void 0,R&&!Number.isNaN(h)&&(X=h+W)<q?J[X]=L:(h=void 0,((h=g)!=null?h:g={})[l]=L));g&&(n?J.push(g):J[q]=g);I&&zD(Hq)&&(e=LOK(e))&&e instanceof GDv&&(J[Hq]=xMK(e));return J};
Y7U=function(e){e[0]=$Mv(e[0]);e[1]=$Mv(e[1]);return e};
$Mv=function(e){switch(typeof e){case "number":return Number.isFinite(e)?e:""+e;case "bigint":return Vuv(e)?Number(e):""+e;case "boolean":return e?1:0;case "object":if(Array.isArray(e)){var g=e[_.wZ]|0;return e.length===0&&g&1?void 0:DMV(e,g,$Mv)}if(e!=null&&e[Ao]===s7)return f08(e);if(e instanceof Tq){g=e.JSC$9130_value_;if(g==null)e="";else if(typeof g==="string")e=g;else{if(NVt){for(var c="",k=0,I=g.length-10240;k<I;)c+=String.fromCharCode.apply(null,g.subarray(k,k+=10240));c+=String.fromCharCode.apply(null,
k?g.subarray(k):g);g=btoa(c)}else g=_.MU(g);e=e.JSC$9130_value_=g}return e}if(e instanceof FQ)return e=e.size!==0?jxe(e,Y7U):void 0,e;return}return e};
Qv=function(e,g){if(g){Xqp=g==null||g===gXK||g[igC]!==PSp?gXK:g;try{return f08(e)}finally{Xqp=void 0}}return f08(e)};
f08=function(e){e=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return DMV(e,e[_.wZ]|0,$Mv)};
TjA=function(e){switch(typeof e){case "boolean":return mMq||(mMq=[0,void 0,!0]);case "number":return e>0?void 0:e===0?pqC||(pqC=[0,void 0]):[-e,void 0];case "string":return[0,e];case "object":return e}};
U7=function(e,g){return l0g(e,g[0],g[1])};
_.Z0=function(e,g,c){return l0g(e,g,c,2048)};
l0g=function(e,g,c,k){k=k===void 0?0:k;if(e==null){var I=32;c?(e=[c],I|=128):e=[];g&&(I=I&-16760833|(g&1023)<<14)}else{if(!Array.isArray(e))throw Error("P");I=e[_.wZ]|0;if(AoC&&1&I)throw Error("Q");2048&I&&!(2&I)&&sxV();if(I&256)throw Error("R");if(I&64)return(I|k)!==I&&Rn(e,I|k),e;if(c&&(I|=128,c!==e[0]))throw Error("S");a:{c=e;I|=64;var J=c.length;if(J){var q=J-1,L=c[q];if(L!=null&&typeof L==="object"&&L.constructor===Object){g=I&128?0:-1;q-=g;if(q>=1024)throw Error("U");for(var n in L)J=+n,J<q&&
(c[J+g]=L[n],delete L[n]);I=I&-16760833|(q&1023)<<14;break a}}if(g){n=Math.max(g,J-(I&128?0:-1));if(n>1024)throw Error("V");I=I&-16760833|(n&1023)<<14}}}Rn(e,I|64|k);return e};
sxV=function(){if(AoC)throw Error("T");MK6(FOC,5)};
zlV=function(e,g){if(typeof e!=="object")return e;if(Array.isArray(e)){var c=e[_.wZ]|0;return e.length===0&&c&1?void 0:uQg(e,c,g)}if(e!=null&&e[Ao]===s7)return dMC(e);if(e instanceof FQ){g=e.arrayState;if(g&2)return e;if(!e.size)return;c=$I(jxe(e));if(e.valueCtor)for(e=0;e<c.length;e++){var k=c[e],I=k[1];I==null||typeof I!=="object"?I=void 0:I!=null&&I[Ao]===s7?I=dMC(I):Array.isArray(I)?I=uQg(I,I[_.wZ]|0,!!(g&32)):I=void 0;k[1]=I}return c}if(e instanceof Tq)return e};
uQg=function(e,g,c){if(g&2)return e;!c||4096&g||16&g?e=Vv(e,g,!1,c&&!(g&16)):(n1(e,34),g&4&&Object.freeze(e));return e};
Hgz=function(e,g,c){e=new e.constructor(g);c&&(e.copyOnWrite=Pw);e.noLegacyNull=Pw;return e};
dMC=function(e){var g=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=g[_.wZ]|0;return mB(e,c)?e:Qx8(e,g,c)?Hgz(e,g):Vv(g,c)};
Vv=function(e,g,c,k){k!=null||(k=!!(34&g));e=DMV(e,g,zlV,k);k=32;c&&(k|=2);g=g&16769217|k;Rn(e,g);return e};
kDU=function(e){var g=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=g[_.wZ]|0;return mB(e,c)?Qx8(e,g,c)?Hgz(e,g,!0):new e.constructor(Vv(g,c,!1)):e};
Bq=function(e){if(e.copyOnWrite!==Pw)return!1;var g=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g=Vv(g,g[_.wZ]|0);n1(g,2048);e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=g;e.copyOnWrite=void 0;e.noLegacyNull=void 0;return!0};
NM=function(e){if(!Bq(e)&&mB(e,e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.wZ]|0))throw Error();};
yv=function(e,g){g===void 0&&(g=e[_.wZ]|0);g&32&&!(g&4096)&&Rn(e,g|4096)};
Qx8=function(e,g,c){return c&2?!0:c&32&&!(c&4096)?(Rn(g,c|2),e.copyOnWrite=Pw,!0):!1};
Kg=function(e,g,c,k,I){var J=c+(I?0:-1),q=e.length-1;if(q>=1+(I?0:-1)&&J>=q){var L=e[q];if(L!=null&&typeof L==="object"&&L.constructor===Object)return L[c]=k,g}if(J<=q)return e[J]=k,g;if(k!==void 0){var n;q=((n=g)!=null?n:g=e[_.wZ]|0)>>14&1023||536870912;c>=q?k!=null&&(J={},e[q+(I?0:-1)]=(J[c]=k,J)):e[J]=k}return g};
_.gr=function(e,g,c,k,I){var J=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=J[_.wZ]|0;k=mB(e,q)?1:k;I=!!I||k===3;k===2&&Bq(e)&&(J=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=J[_.wZ]|0);e=UMC(J,g);var L=e===O7?7:e[_.wZ]|0,n=oXg(L,q);var R=4&n?!1:!0;if(R){4&n&&(e=ez(e),L=0,n=ea(n,q),q=Kg(J,q,g,e));for(var W=0,b=0;W<e.length;W++){var h=c(e[W]);h!=null&&(e[b++]=h)}b<W&&(e.length=b);c=(n|4)&-513;n=c&=-1025;n&=-4097}n!==L&&(Rn(e,n),2&n&&Object.freeze(e));return e=Zg8(e,n,J,
q,g,k,R,I)};
Zg8=function(e,g,c,k,I,J,q,L){var n=g;J===1||(J!==4?0:2&g||!(16&g)&&32&k)?cJ(g)||(g|=!e.length||q&&!(4096&g)||32&k&&!(4096&g||16&g)?2:256,g!==n&&Rn(e,g),Object.freeze(e)):(J===2&&cJ(g)&&(e=ez(e),n=0,g=ea(g,k),k=Kg(c,k,I,e)),cJ(g)||(L||(g|=16),g!==n&&Rn(e,g)));2&g||!(4096&g||16&g)||yv(c,k);return e};
UMC=function(e,g,c){e=kB(e,g,c);return Array.isArray(e)?e:O7};
oXg=function(e,g){2&g&&(e|=2);return e|1};
cJ=function(e){return!!(2&e)&&!!(4&e)||!!(256&e)};
Vze=function(e){return _.sv(e,!0)};
tzC=function(e){e=ez(e);for(var g=0;g<e.length;g++){var c=e[g]=ez(e[g]);Array.isArray(c[1])&&(c[1]=$I(c[1]))}return YI(e)};
_.BjK=function(e,g,c,k,I){var J=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=J[_.wZ]|0;var L=mB(e,q);a:{!L&&Bq(e)&&(J=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=J[_.wZ]|0);var n=kB(J,g);e=!1;if(n==null){if(L){g=q7v();break a}n=[]}else if(n.constructor===FQ)if(n.arrayState&2&&!L)n=jxe(n);else{g=n;break a}else Array.isArray(n)?e=!!((n[_.wZ]|0)&2):n=[];if(L){if(!n.length){g=q7v();break a}e||(e=!0,$I(n))}else e&&(e=!1,YI(n),n=tzC(n));!e&&q&32&&ck6(n);k=new FQ(n,c,k,I);q=
Kg(J,q,g,k);e||yv(J,q);g=k}!L&&c&&(g.callToMutableOnAccess=!0);return g};
_.Jj=function(e,g,c,k){NM(e);var I=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=I[_.wZ]|0;if(c==null)return Kg(I,J,g),e;var q=c===O7?7:c[_.wZ]|0,L=q,n=cJ(q),R=n||Object.isFrozen(c);n||(q=0);R||(c=ez(c),L=0,q=ea(q,J),R=!1);q|=5;var W;n=(W=gIp(q))!=null?W:_.E7?1024:0;q|=n;for(W=0;W<c.length;W++){var b=c[W],h=k(b,n);Object.is(b,h)||(R&&(c=ez(c),L=0,q=ea(q,J),R=!1),c[W]=h)}q!==L&&(R&&(c=ez(c),q=ea(q,J)),Rn(c,q));Kg(I,J,g,c);return e};
_.wr=function(e,g,c,k,I){NM(e);var J=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Kg(J,J[_.wZ]|0,g,(k==="0"?Number(c)===0:c===k)?void 0:c,I);return e};
_.qb=function(e,g,c){if(g&2)throw Error();var k=us(g),I=UMC(e,c,k),J=I===O7?7:I[_.wZ]|0,q=oXg(J,g);if(2&q||cJ(q)||16&q)q===J||cJ(q)||Rn(I,q),I=ez(I),J=0,q=ea(q,g),Kg(e,g,c,I,k);q&=-13;q!==J&&Rn(I,q);return I};
NjC=function(e){if(vw){var g;return(g=e[Lm])!=null?g:e[Lm]=new Map}if(Lm in e)return e[Lm];g=new Map;Object.defineProperty(e,Lm,{value:g});return g};
yoC=function(e,g,c,k,I){var J=NjC(e),q=S76(J,e,g,c,I);q!==k&&(q&&(g=Kg(e,g,q,void 0,I)),J.set(c,k));return g};
S76=function(e,g,c,k,I){var J=e.get(k);if(J!=null)return J;for(var q=J=0;q<k.length;q++){var L=k[q];kB(g,L,I)!=null&&(J!==0&&(c=Kg(g,c,J,void 0,I)),J=L)}e.set(k,J);return J};
KOz=function(e,g,c,k,I){var J=!1;k=kB(e,k,I,function(q){var L=CsA(q,c,!1,g);J=L!==q&&L!=null;return L});
if(k!=null)return J&&!mB(k)&&yv(e,g),k};
Ogp=function(e,g,c,k,I,J,q,L){var n=mB(e,c);J=n?1:J;q=!!q||J===3;n=L&&!n;(J===2||n)&&Bq(e)&&(g=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=g[_.wZ]|0);e=UMC(g,I);var R=e===O7?7:e[_.wZ]|0,W=oXg(R,c);if(L=!(4&W)){var b=e,h=c,X=!!(2&W);X&&(h|=2);for(var D=!X,f=!0,l=0,A=0;l<b.length;l++){var d=CsA(b[l],k,!1,h);if(d instanceof k){if(!X){var S=mB(d);D&&(D=!S);f&&(f=S)}b[A++]=d}}A<l&&(b.length=A);W|=4;W=f?W&-4097:W|4096;W=D?W|8:W&-9}W!==R&&(Rn(e,W),2&W&&Object.freeze(e));if(n&&!(8&W||!e.length&&
(J===1||(J!==4?0:2&W||!(16&W)&&32&c)))){cJ(W)&&(e=ez(e),W=ea(W,c),c=Kg(g,c,I,e));k=e;n=W;for(R=0;R<k.length;R++)b=k[R],W=kDU(b),b!==W&&(k[R]=W);n|=8;W=n=k.length?n|4096:n&-4097;Rn(e,W)}return e=Zg8(e,W,g,c,I,J,L,q)};
Mzq=function(e){e==null&&(e=void 0);return e};
ea=function(e,g){return e=(2&g?e|2:e&-3)&-273};
_.CS6=function(e,g,c,k,I){NM(e);g=_.gr(e,g,I,2,!0);var J;I=(J=gIp(g===O7?7:g[_.wZ]|0))!=null?J:_.E7?1024:0;g.push(c(k,I));return e};
eAz=function(e,g,c,k,I,J,q){NM(e);var L=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;e=Ogp(e,L,L[_.wZ]|0,c,g,2,!0);if(J&&q)I!=null||(I=e.length-1),IwW(e,I),e.splice(I,J),e.length||(e[_.wZ]&=-4097);else{if(J){if(typeof I!=="number"||I<0||I>e.length)throw Error();}else k=k!=null?k:new c;I!=void 0?e.splice(I,J,k):e.push(k);I=c=e===O7?7:e[_.wZ]|0;(k=mB(k))?(c&=-9,e.length===1&&(c&=-4097)):c|=4096;c!==I&&Rn(e,c);k||yv(L)}};
cjW=function(e,g){if(typeof e==="string")return new rr(yqt(e),g);if(Array.isArray(e))return new rr(new Uint8Array(e),g);if(e.constructor===Uint8Array)return new rr(e,!1);if(e.constructor===ArrayBuffer)return e=new Uint8Array(e),new rr(e,!1);if(e.constructor===Tq)return g=gBV(e)||new Uint8Array(0),new rr(g,!0,e);if(e instanceof Uint8Array)return e=e.constructor===Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new rr(e,!1);throw Error();};
IBU=function(e){switch(typeof e){case "string":kTv(e)}};
vBp=function(e){switch(typeof e){case "string":Jjp(e)}};
a3=function(){var e=function(){throw Error();};
Object.setPrototypeOf(e,e.prototype);return e};
qxg=function(e,g){var c=c===void 0?wJW:c;return new nm(e,g,c)};
aBe=function(e,g,c,k,I){LaW(e,c,rj6(g,k),I)};
Ex=function(e,g,c,k){var I=k[e];if(I)return I;I={};I.binaryFields=k;I.messageMetadata=TjA(k[0]);var J=k[1],q=1;J&&J.constructor===Object&&(I.extensions=J,J=k[++q],typeof J==="function"&&(I.isMessageSet=!0,nBA!=null||(nBA=J),RAe!=null||(RAe=k[q+1]),J=k[q+=2]));for(var L={};J&&EBA(J);){for(var n=0;n<J.length;n++)L[J[n]]=J;J=k[++q]}for(n=1;J!==void 0;){typeof J==="number"&&(n+=J,J=k[++q]);var R=void 0;if(J instanceof nm)var W=J;else W=WaC,q--;J=void 0;if((J=W)==null?0:J.$$isMsg){J=k[++q];R=k;var b=q;
typeof J==="function"&&(J=J(),R[b]=J);R=J}J=k[++q];b=n+1;typeof J==="number"&&J<0&&(b-=J,J=k[++q]);for(;n<b;n++){var h=L[n];R?c(I,n,W,R,h):g(I,n,W,h)}}return k[e]=I};
EBA=function(e){return Array.isArray(e)&&!!e.length&&typeof e[0]==="number"&&e[0]>0};
hAU=function(e){return Array.isArray(e)?e[0]instanceof nm?e:[bmg,e]:[e,void 0]};
rj6=function(e,g){if(e instanceof _.WJ)return e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(e))return U7(e,g)};
XJq=function(e,g,c,k){var I=c.$$binaryReaderFn;e[g]=k?function(J,q,L){return I(J,q,L,k)}:I};
xb6=function(e,g,c,k,I){var J=c.$$binaryReaderFn,q,L;e[g]=function(n,R,W){return J(n,R,W,L||(L=Ex(GTe,XJq,xb6,k).messageMetadata),q||(q=Db6(k)),I)}};
Db6=function(e){var g=e[$bz];if(g!=null)return g;var c=Ex(GTe,XJq,xb6,e);g=c.isMessageSet?function(k,I){return nBA(k,I,c)}:function(k,I){for(;YxV(I)&&I.nextWireType_!=4;){var J=I.nextField_,q=c[J];
if(q==null){var L=c.extensions;L&&(L=L[J])&&(L=fBK(L),L!=null&&(q=c[J]=L))}if(q==null||!q(I,k,J)){L=I;q=L.fieldCursor_;j3V(L);if(L.discardUnknownFields)var n=void 0;else{var R=L.decoder_.cursor_-q;L.decoder_.cursor_=q;n=imV(L.decoder_,R)}R=L=q=void 0;var W=k;n&&((q=(L=(R=W[Hq])!=null?R:W[Hq]=new GDv)[J])!=null?q:L[J]=[]).push(n)}}if(k=LOK(k))k.reviveUnknownFields=c.binaryFields[Pdz];return!0};
e[$bz]=g;e[Pdz]=mb8.bind(e);return g};
mb8=function(e,g,c,k){var I=this[GTe],J=this[$bz],q=U7(void 0,I.messageMetadata),L=LOK(e);if(L){var n=!1,R=I.extensions;if(R){I=function(D,f,l){if(l.length!==0)if(R[f])for(D=_.w(l),f=D.next();!f.done;f=D.next()){f=pJv(f.value);try{n=!0,J(q,f)}finally{f.free()}}else k==null||k(e,f,l)};
if(g==null)hlq(L,I);else if(L!=null){var W=L[g];W&&I(L,g,W)}if(n){var b=e[_.wZ]|0;if(b&2&&b&2048&&(c==null||!c.reviveIntoImmutable))throw Error();var h=us(b),X=function(D,f){if(kB(e,D,h)!=null)switch(c==null?void 0:c.resolutionBehavior){case 1:return;default:throw Error();}f!=null&&(b=Kg(e,b,D,f,h));delete L[D]};
g==null?JkA(q,q[_.wZ]|0,function(D,f){X(D,f)}):X(g,kB(q,g,h))}}}};
fBK=function(e){e=hAU(e);var g=e[0].$$binaryReaderFn;if(e=e[1]){var c=Db6(e),k=Ex(GTe,XJq,xb6,e).messageMetadata;return function(I,J,q){return g(I,J,q,k,c)}}return g};
TrC=function(e,g,c){e[g]=c.$$binaryWriterFn};
Aj8=function(e,g,c,k){var I,J,q=c.$$binaryWriterFn;e[g]=function(L,n,R){return q(L,n,R,J||(J=Ex(lBV,TrC,Aj8,k).messageMetadata),I||(I=s3C(k)))}};
s3C=function(e){var g=e[Fa8];if(!g){var c=Ex(lBV,TrC,Aj8,e);g=function(k,I){return upp(k,I,c)};
e[Fa8]=g}return g};
upp=function(e,g,c){JkA(e,e[_.wZ]|0,function(k,I){if(I!=null){var J=dbe(c,k);J?J(g,I,k):k<500||MK6(zAp,3)}});
(e=LOK(e))&&hlq(e,function(k,I,J){bd(g,g.encoder_.end());for(k=0;k<J.length;k++)bd(g,gBV(J[k])||new Uint8Array(0))})};
dbe=function(e,g){var c=e[g];if(c)return c;if(c=e.extensions)if(c=c[g]){c=hAU(c);var k=c[0].$$binaryWriterFn;if(c=c[1]){var I=s3C(c),J=Ex(lBV,TrC,Aj8,c).messageMetadata;c=e.isMessageSet?RAe(J,I):function(q,L,n){return k(q,L,n,J,I)}}else c=k;
return e[g]=c}};
_.Hme=function(e,g,c){if(Array.isArray(g)){var k=g[_.wZ]|0;if(k&4)return g;for(var I=0,J=0;I<g.length;I++){var q=e(g[I]);q!=null&&(g[J++]=q)}J<I&&(g.length=J);e=k|1;c&&(e=(e|4)&-1537);e!==k&&Rn(g,e);c&&e&2&&Object.freeze(g);return g}};
_.hj=function(e,g,c){return new nm(e,g,c)};
_.Q3t=function(e,g,c){return new nm(e,g,c)};
_.Xp=function(e,g,c){Kg(e,e[_.wZ]|0,g,c,us(e[_.wZ]|0))};
Ube=function(e,g,c){g=_.kX(g);g!=null&&(_.GT(e,c,1),e=e.encoder_,c=XwK||(XwK=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+g,!0),Hw=c.getUint32(0,!0),Q4=c.getUint32(4,!0),_.xB(e,Hw),_.xB(e,Q4))};
oBV=function(e,g,c){g=_.kX(g);g!=null&&(_.GT(e,c,5),e=e.encoder_,Gq8(g),_.xB(e,Hw))};
_.$B=function(e,g,c){g=ykV(g);if(g!=null&&(IBU(g),g!=null))switch(_.GT(e,c,0),typeof g){case "number":e=e.encoder_;Zw(g);DB(e,Hw,Q4);break;case "bigint":c=BigInt.asUintN(64,g);c=new Zmg(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));DB(e.encoder_,c.JSC$9173_lo,c.JSC$9173_hi);break;default:c=kTv(g),DB(e.encoder_,c.JSC$9173_lo,c.JSC$9173_hi)}};
taA=function(e,g,c){g=KB8(g);if(g!=null&&(vBp(g),g!=null))switch(_.GT(e,c,0),typeof g){case "number":e=e.encoder_;Zw(g);DB(e,Hw,Q4);break;case "bigint":c=VaW(g);DB(e.encoder_,c.JSC$9171_lo,c.JSC$9171_hi);break;default:c=Jjp(g),DB(e.encoder_,c.JSC$9171_lo,c.JSC$9171_hi)}};
Nrg=function(e,g,c){g=_.ax(g);g!=null&&g!=null&&(_.GT(e,c,0),_.Brg(e.encoder_,g))};
_.yj6=function(e,g,c){SxU(e,c,KB8(g))};
Kap=function(e,g,c){g=_.mqp(g);g!=null&&(_.GT(e,c,0),e.encoder_.JSC$9175_buffer_.push(g?1:0))};
MaC=function(e,g,c){g=_.TD(g);g!=null&&Omp(e,c,npp(g))};
Cd6=function(e,g,c,k,I){LaW(e,c,rj6(g,k),I)};
_.eLg=function(e,g,c){g=g==null||typeof g=="string"||g instanceof Tq?g:void 0;g!=null&&Omp(e,c,cjW(g,!0).buffer)};
gWC=function(e,g,c){g=_.lwz(g);g!=null&&g!=null&&(_.GT(e,c,0),fm(e.encoder_,g))};
_.c0v=function(e,g,c){g=_.ax(g);g!=null&&(g=parseInt(g,10),_.GT(e,c,0),_.Brg(e.encoder_,g))};
keW=function(e,g,c){if(e.nextWireType_!==0)return!1;_.Xp(g,c,_.ja(e.decoder_,$qK));return!0};
_.IE8=function(e,g,c,k){if(e.nextWireType_!==0)return!1;_.id(g,c,k,_.ja(e.decoder_,$qK));return!0};
J0A=function(e,g,c){if(e.nextWireType_!==0)return!1;_.Xp(g,c,_.ja(e.decoder_,DqA));return!0};
_.wAU=function(e,g,c){if(e.nextWireType_!==1)return!1;_.Xp(g,c,vWt(e.decoder_));return!0};
_.ma=function(e,g){return function(c,k){var I={treatNewDataAsImmutable:!0};k&&Object.assign(I,k);c=pJv(c,void 0,void 0,I);try{var J=new e,q=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Db6(g)(q,c);var L=J}finally{c.free()}return L}};
_.TT=function(e){return function(g){return qhe(g,e)}};
LzU=function(e){return function(){return qhe(this,e)}};
_.r0p=function(e){return dZ(function(g){return g instanceof e&&!mB(g)})};
_.ld=function(e){return function(g){return aEC(e,g)}};
Wzv=function(e,g){return nWp({child:e,origin:g||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:RLC,getPayloadCase:function(c){return c.getPayloadCase()},
createInitMessage:function(c){var k=new Aj,I=new EWz;c=_.sx(I,1,c);return _.Fp(k,5,ud,c)}})};
dr=function(e){return{valueOf:e}.valueOf()};
hLz=function(){var e=null;if(!bYV)return e;try{var g=function(c){return c};
e=bYV.createPolicy("goog#html",{createHTML:g,createScript:g,createScriptURL:g})}catch(c){}return e};
Gep=function(){XA8===void 0&&(XA8=hLz());return XA8};
_.HJ=function(e){var g=Gep();e=g?g.createScriptURL(e):e;return new zT(e)};
_.QP=function(e){if(e instanceof zT)return e.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("$");};
_.Ux=function(e){return Object.isFrozen(e)&&Object.isFrozen(e.raw)};
x5V=function(e){return e.toString().indexOf("`")===-1};
VP=function(e){return new _.ZB(D5K,e)};
tj=function(e){return e instanceof _.ZB};
_.BJ=function(e){if(tj(e))return e.privateDoNotAccessOrElseWrappedUrl;throw Error("$");};
Nb=function(e){return new $5V(function(g){return g.substr(0,e.length+1).toLowerCase()===e+":"})};
_.Sa=function(e,g){g=g===void 0?YhU:g;if(tj(e))return e;for(var c=0;c<g.length;++c){var k=g[c];if(k instanceof $5V&&k.isValid(e))return VP(e)}};
_.Km=function(e,g){g=g===void 0?YhU:g;return _.Sa(e,g)||yP};
_.Ox=function(e){var g=window;if(typeof MediaSource!=="undefined"&&e instanceof MediaSource||typeof g.ManagedMediaSource!=="undefined"&&e instanceof g.ManagedMediaSource)return VP(URL.createObjectURL(e));g=e.type;g.toLowerCase()==="application/octet-stream"?g=!0:(g=g.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),g=(g==null?void 0:g.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(g[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(g[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(g[1])||/^font\/[\w-]+$/i.test(g[1])));if(!g)throw Error("$");return VP(URL.createObjectURL(e))};
_.fEe=function(e){for(var g=_.Mb.apply(1,arguments),c=[e[0]],k=0;k<g.length;k++)c.push(String(g[k])),c.push(e[k+1]);return VP(c.join(""))};
_.iYz=function(e){if(!jPA){a:{var g=document.createElement("a");try{g.href=e}catch(c){e=void 0;break a}e=g.protocol;e=e===":"||e===""?"https:":e}return e}try{g=new URL(e)}catch(c){return"https:"}return g.protocol};
_.Cm=function(e){e instanceof _.ZB?e=_.BJ(e):e=PjK.test(e)?e:void 0;return e};
e0=function(e,g){g=_.Cm(g);g!==void 0&&(e.href=g)};
kW=function(e){var g=Gep();e=g?g.createHTML(e):e;return new gy(e)};
IP=function(e){if(e instanceof gy)return e.privateDoNotAccessOrElseWrappedHtml;throw Error("$");};
_.vA=function(e,g){e.src=_.QP(g).toString()};
m56=function(e,g){e.setAttribute("sandbox","");for(var c=0;c<g.length;c++)e.sandbox.supports&&!e.sandbox.supports(g[c])||e.sandbox.add(g[c])};
_.wy=function(e,g,c){e.removeAttribute("srcdoc");switch(g){case 0:if(c instanceof zT)throw new pAC("TrustedResourceUrl",0);m56(e,[]);g=_.Cm(c);g!==void 0&&(e.src=g);break;case 1:if(!(c instanceof zT))throw new pAC(typeof c,1);m56(e,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.vA(e,c);break;case 2:if(c instanceof zT)throw new pAC("TrustedResourceUrl",2);m56(e,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
g=_.Cm(c);g!==void 0&&(e.src=g);break;default:_.gj(g)}};
_.q5=function(e,g,c,k){g=_.Cm(g);return g!==void 0?e.open(g,c,k):null};
_.LY=function(e){e=e===void 0?document:e;var g,c;e=(c=(g=e).querySelector)==null?void 0:c.call(g,"script[nonce]");return e==null?"":e.nonce||e.getAttribute("nonce")||""};
_.aP=function(e){var g=Gep();e=g?g.createScript(e):e;return new _.ry(e)};
nY=function(e){if(e instanceof _.ry)return e.privateDoNotAccessOrElseWrappedScript;throw Error("$");};
TyC=function(e){var g=_.LY(e.ownerDocument);g&&e.setAttribute("nonce",g)};
_.RP=function(e,g){e.textContent=nY(g);TyC(e)};
_.Eh=function(e,g){e.src=_.QP(g);TyC(e)};
_.WA=function(e,g){if(e.nodeType===1&&/^(script|style)$/i.test(e.tagName))throw Error("$");e.innerHTML=IP(g)};
_.bj=function(e,g,c,k){if(e.length===0)throw Error("$");e=e.map(function(J){if(J instanceof lEv)J=J.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("$");return J});
var I=c.toLowerCase();if(e.every(function(J){return I.indexOf(J)!==0}))throw Error("ba`"+c);
g.setAttribute(c,k)};
_.h0=function(e,g,c){if(g instanceof zT)e.href=_.QP(g).toString(),e.rel=c;else{if(A06.indexOf(c)===-1)throw Error("ca`"+c);g=_.Cm(g);g!==void 0&&(e.href=g,e.rel=c)}};
sPp=function(e){if(e instanceof X1)return e.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("$");};
_.FzV=function(e,g){g=_.Cm(g);g!==void 0&&(e.href=g)};
u1V=function(e){return new Worker(_.QP(e),void 0)};
d5C=function(e){return _.HJ(e)};
zLz=function(e,g){e&&(g=e.indexOf(g),0<=g&&e.splice(g,1))};
Ge=function(e){return typeof e==="function"};
HYW=function(e){return e instanceof DE||e&&"closed"in e&&Ge(e.remove)&&Ge(e.add)&&Ge(e.unsubscribe)};
$W=function(){};
YW=function(e){QPe(function(){throw e;})};
fY=function(e){return e};
j0=function(){return U5z(_.Mb.apply(0,arguments))};
U5z=function(e){return e.length===0?fY:e.length===1?e[0]:function(g){return e.reduce(function(c,k){return k(c)},g)}};
oWp=function(e){var g;return(g=e!=null?e:void 0)!=null?g:Promise};
ZYA=function(e,g){return new ij(function(c){var k=0;return g.schedule(function(){k===e.length?c.complete():(c.next(e[k++]),c.closed||this.schedule())})})};
V0K=function(e,g){if(!e)throw Error("da");return new ij(function(c){var k=new DE;k.add(g.schedule(function(){var I=e[Symbol.asyncIterator]();k.add(g.schedule(function(){var J=this;I.next().then(function(q){q.done?c.complete():(c.next(q.value),J.schedule())})}))}));
return k})};
t0e=function(e,g,c){g=g.schedule(function(){try{c.call(this)}catch(k){e.error(k)}},0);
e.add(g)};
Nyt=function(e,g){return new ij(function(c){var k;c.add(g.schedule(function(){k=e[Byq]();t0e(c,g,function(){var I=k.next(),J=I.value;I.done?c.complete():(c.next(J),this.schedule())})}));
return function(){var I;return Ge((I=k)==null?void 0:I.return)&&k.return()}})};
ShK=function(e,g){return new ij(function(c){var k=new DE;k.add(g.schedule(function(){var I=e[PA]();k.add(I.subscribe({next:function(J){k.add(g.schedule(function(){return c.next(J)}))},
error:function(J){k.add(g.schedule(function(){return c.error(J)}))},
complete:function(){k.add(g.schedule(function(){return c.complete()}))}}))}));
return k})};
y0g=function(e,g){return new ij(function(c){return g.schedule(function(){return e.then(function(k){c.add(g.schedule(function(){c.next(k);c.add(g.schedule(function(){return c.complete()}))}))},function(k){c.add(g.schedule(function(){return c.error(k)}))})})})};
KzA=function(e){return new TypeError("ea`"+(e!==null&&typeof e==="object"?"an invalid object":"'"+e+"'"))};
M0t=function(e,g){if(e!=null){if(Ge(e[PA]))return ShK(e,g);if(OY6(e))return ZYA(e,g);if(Ge(e==null?void 0:e.then))return y0g(e,g);if(Symbol.asyncIterator&&Ge(e==null?void 0:e[Symbol.asyncIterator]))return V0K(e,g);if(Ge(e==null?void 0:e[Byq]))return Nyt(e,g)}throw KzA(e);};
Te=function(e,g){return g?M0t(e,g):pY(e)};
pY=function(e){if(e instanceof ij)return e;if(e!=null){if(Ge(e[PA]))return Cjp(e);if(OY6(e))return evC(e);if(Ge(e==null?void 0:e.then))return gap(e);if(Symbol.asyncIterator&&Ge(e==null?void 0:e[Symbol.asyncIterator]))return cvg(e);if(Ge(e==null?void 0:e[Byq]))return k6C(e)}throw KzA(e);};
Cjp=function(e){return new ij(function(g){var c=e[PA]();if(Ge(c.subscribe))return c.subscribe(g);throw new TypeError("fa");})};
evC=function(e){return new ij(function(g){for(var c=0;c<e.length&&!g.closed;c++)g.next(e[c]);g.complete()})};
gap=function(e){return new ij(function(g){e.then(function(c){g.closed||(g.next(c),g.complete())},function(c){return g.error(c)}).then(null,YW)})};
k6C=function(e){return new ij(function(g){for(var c=e[Byq]();!g.closed;){var k=c.next(),I=k.value;k.done?g.complete():g.next(I)}return function(){return Ge(c==null?void 0:c.return)&&c.return()}})};
cvg=function(e){return new ij(function(g){IbC(e,g).catch(function(c){return g.error(c)})})};
IbC=function(e,g){var c,k,I,J,q,L;return _.r(function(n){switch(n.nextAddress){case 1:_.lj(n,2,3),J=_.A0(e);case 5:return n.yield(J.next(),8);case 8:k=n.yieldResult;if(k.done){n.jumpTo(3);break}q=k.value;g.next(q);n.jumpTo(5);break;case 3:_.sh(n);_.ze(n,9);if(!k||k.done||!(I=J.return)){n.jumpTo(9);break}return n.yield(I.call(J),9);case 9:_.sh(n,0,0,1);if(c)throw c.error;_.HA(n,10,1);break;case 10:_.HA(n,4);break;case 2:L=_.Qb(n);c={error:L};n.jumpTo(3);break;case 4:g.complete(),_.Uh(n)}})};
Jvz=function(e,g){return g?ZYA(e,g):evC(e)};
vap=function(e){return Ge(e[e.length-1])?e.pop():void 0};
oP=function(e){var g=e[e.length-1];return g&&Ge(g.schedule)?e.pop():void 0};
Vb=function(){var e=_.Mb.apply(0,arguments),g=oP(e);return g?ZYA(e,g):Jvz(e)};
t0=function(e){var g=Ge(e)?e:function(){return e};
return new ij(function(c){return c.error(g())})};
BA=function(e){return function(g){if(Ge(g==null?void 0:g.lift))return g.lift(function(c){try{return e(c,this)}catch(k){this.error(k)}});
throw new TypeError("ga");}};
S0=function(){return BA(function(e,g){var c=null;e._refCount++;var k=new N5(g,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount)c=null;else{var I=e._connection,J=c;c=null;!I||J&&I!==J||I.unsubscribe();g.unsubscribe()}});
e.subscribe(k);k.closed||(c=e.connect())})};
qy6=function(){var e=wcA;var g=g===void 0?0:g;return BA(function(c,k){k.add(e.schedule(function(){return c.subscribe(k)},g))})};
yb=function(e){return BA(function(g,c){var k=0;g.subscribe(new N5(c,function(I){c.next(e.call(void 0,I,k++))}))})};
rvg=function(e){return yb(function(g){return L68(g)?e.apply(null,_.KY(g)):e(g)})};
W6C=function(e){if(e.length===1){var g=e[0];if(abe(g))return{args:g,keys:null};if(g&&typeof g==="object"&&na6(g)===Rvz)return e=EaC(g),{args:e.map(function(c){return g[c]}),
keys:e}}return{args:e,keys:null}};
M5=function(){var e=_.Mb.apply(0,arguments),g=oP(e),c=vap(e);e=W6C(e);var k=e.args,I=e.keys;if(k.length===0)return Te([],g);g=new ij(br8(k,g,I?function(J){for(var q={},L=0;L<J.length;L++)q[I[L]]=J[L];return q}:fY));
return c?g.pipe(rvg(c)):g};
br8=function(e,g,c){c=c===void 0?fY:c;return function(k){hvV(g,function(){for(var I=e.length,J=Array(I),q=I,L=e.map(function(){return!1}),n=!0,R={i$jscomp$220:0};R.i$jscomp$220<I;R={i$jscomp$220:R.i$jscomp$220},R.i$jscomp$220++)hvV(g,function(W){return function(){Te(e[W.i$jscomp$220],g).subscribe(new CY(k,function(b){J[W.i$jscomp$220]=b;
n&&(L[W.i$jscomp$220]=!0,n=!L.every(fY));n||k.next(c(J.slice()))},function(){return--q===0}))}}(R),k)},k)}};
hvV=function(e,g,c){e?c.add(e.schedule(g)):g()};
Xc8=function(e,g,c,k){var I=[],J=0,q=0,L=!1,n=function(R){J++;pY(c(R,q++)).subscribe(new N5(g,function(W){g.next(W)},void 0,function(){J--;
for(var W={};I.length&&J<k;W={bufferedValue:void 0})W.bufferedValue=I.shift(),n(W.bufferedValue);!L||I.length||J||g.complete()}))};
e.subscribe(new N5(g,function(R){return J<k?n(R):I.push(R)},void 0,function(){L=!0;
!L||I.length||J||g.complete()}));
return function(){I=null}};
ew=function(e,g){var c=c===void 0?Infinity:c;if(Ge(g))return ew(function(k,I){return yb(function(J,q){return g(k,J,I,q)})(pY(e(k,I)))},c);
typeof g==="number"&&(c=g);return BA(function(k,I){return Xc8(k,I,e,c)})};
G6p=function(e){e=e===void 0?Infinity:e;return ew(fY,e)};
xOq=function(){var e=_.Mb.apply(0,arguments);return G6p(1)(Jvz(e,oP(e)))};
DOU=function(e){return new ij(function(g){pY(e()).subscribe(g)})};
gJ=function(e,g,c){if(Ge(c)){var k=c;c=void 0}if(k)return gJ(e,g,c).pipe(rvg(k));k=_.w(Ge(e.addEventListener)&&Ge(e.removeEventListener)?$Oz.map(function(q){return function(L){return e[q](g,L,c)}}):Ge(e.addListener)&&Ge(e.removeListener)?YyU.map(fbC(e,g)):Ge(e.on)&&Ge(e.off)?jRz.map(fbC(e,g)):[]);
var I=k.next().value,J=k.next().value;return!I&&OY6(e)?ew(function(q){return gJ(q,g,c)})(Jvz(e)):new ij(function(q){if(!I)throw new TypeError("ha");
var L=function(){var n=_.Mb.apply(0,arguments);return q.next(1<n.length?n:n[0])};
I(L);return function(){return J(L)}})};
fbC=function(e,g){return function(c){return function(k){return e[c](g,k)}}};
ka=function(){var e=_.Mb.apply(0,arguments),g=oP(e);var c=typeof e[e.length-1]==="number"?e.pop():Infinity;return e.length?e.length===1?pY(e[0]):G6p(c)(Jvz(e,g)):cc};
P1W=function(e){return e.length===1&&irK(e[0])?e[0]:e};
mOC=function(){var e=P1W(_.Mb.apply(0,arguments));return BA(function(g,c){var k=[g].concat(_.KY(e)),I=function(){if(!c.closed)if(k.length>0){try{var J=pY(k.shift())}catch(L){I();return}var q=new N5(c,void 0,$W,$W);c.add(J.subscribe(q));q.add(I)}else c.complete()};
I()})};
IR=function(e){return BA(function(g,c){var k=0;g.subscribe(new N5(c,function(I){return e.call(void 0,I,k++)&&c.next(I)}))})};
TJv=function(){var e=_.Mb.apply(0,arguments);e=P1W(e);return e.length===1?pY(e[0]):new ij(pcV(e))};
pcV=function(e){return function(g){for(var c=[],k={i$jscomp$223:0};c&&!g.closed&&k.i$jscomp$223<e.length;k={i$jscomp$223:k.i$jscomp$223},k.i$jscomp$223++)c.push(pY(e[k.i$jscomp$223]).subscribe(new N5(g,function(I){return function(J){if(c){for(var q=0;q<c.length;q++)q!==I.i$jscomp$223&&c[q].unsubscribe();c=null}g.next(J)}}(k))))}};
lbe=function(){var e=_.Mb.apply(0,arguments),g=vap(e),c=P1W(e);return c.length?new ij(function(k){var I=c.map(function(){return[]}),J=c.map(function(){return!1});
k.add(function(){I=J=null});
for(var q={sourceIndex$jscomp$1:0};!k.closed&&q.sourceIndex$jscomp$1<c.length;q={sourceIndex$jscomp$1:q.sourceIndex$jscomp$1},q.sourceIndex$jscomp$1++)pY(c[q.sourceIndex$jscomp$1]).subscribe(new N5(k,function(L){return function(n){I[L.sourceIndex$jscomp$1].push(n);I.every(function(R){return R.length})&&(n=I.map(function(R){return R.shift()}),k.next(g?g.apply(null,_.KY(n)):n),I.some(function(R,W){return!R.length&&J[W]})&&k.complete())}}(q),void 0,function(L){return function(){J[L.sourceIndex$jscomp$1]=
!0;
!I[L.sourceIndex$jscomp$1].length&&k.complete()}}(q)));
return function(){I=J=null}}):cc};
Av6=function(e){var g,c,k;return!!e&&typeof e.active==="boolean"&&typeof((g=e.clock)==null?void 0:g.now)==="function"&&((c=e.clock)==null?void 0:c.timeline)!==void 0&&!((k=e.lastMeasurement)==null||!k.timestamp)&&typeof e.equivalentTo==="function"&&typeof e.extrapolateToNow==="function"&&typeof e.extrapolateToTime==="function"&&typeof e.map==="function"&&typeof e.joinWith==="function"};
sRK=function(e){function g(c){return typeof c==="boolean"||typeof c==="string"||typeof c==="number"||c===void 0||c===null}
return g(e)?!0:Array.isArray(e)?e.every(g):typeof e==="object"?Object.keys(e).every(function(c){return typeof c==="string"})&&Object.values(e).every(function(c){return Array.isArray(c)?c.every(g):g(c)}):!1};
F6g=function(e){if(sRK(e))return e;if(Av6(e))return{lastMeasurement:{value:F6g(e.lastMeasurement.value),timestamp:Jv(e.lastMeasurement.timestamp,new vc(0,e.lastMeasurement.timestamp.timeline))},active:e.active};try{return JSON.parse(JSON.stringify(e))}catch(g){}return String(e)};
wJ=function(e,g){return function(c){return new ij(function(k){return c.subscribe(function(I){e.timeExecution(g,function(){k.next(I)})()},function(I){e.timeExecution(g,function(){k.error(I)})()},function(){e.timeExecution(g,function(){k.complete()})()})})}};
uDW=function(e,g){var c=!1;return new ij(function(k){var I=e.setTimeout(function(){c=!0;k.next(!0);k.complete()},g);
return function(){c||e.clearTimeout(I)}})};
dO6=function(e){e=e.global;if(e.fetchLater)return e.fetchLater.bind(e)};
qO=function(e){return BA(function(g,c){var k=null,I=!1,J;k=g.subscribe(new N5(c,void 0,function(q){J=pY(e(q,qO(e)(g)));k?(k.unsubscribe(),k=null,J.subscribe(c)):I=!0}));
I&&(k.unsubscribe(),k=null,J.subscribe(c))})};
zvp=function(e,g,c){return function(k,I){var J=c,q=g,L=0;k.subscribe(new N5(I,function(n){var R=L++;q=J?e(q,n,R):(J=!0,n);I.next(q)},void 0,void 0))}};
Hr6=function(e){e=e===void 0?null:e;return BA(function(g,c){var k=!1;g.subscribe(new N5(c,function(I){k=!0;c.next(I)},void 0,function(){k||c.next(e);
c.complete()}))})};
Lr=function(){return BA(function(e,g){e.subscribe(new N5(g,$W))})};
rJ=function(e){return BA(function(g,c){g.subscribe(new N5(c,function(){return c.next(e)}))})};
aR=function(e){return e<=0?function(){return cc}:BA(function(g,c){var k=0;
g.subscribe(new N5(c,function(I){++k<=e&&(c.next(I),e<=k&&c.complete())}))})};
nr=function(e){var g=g===void 0?fY:g;var c;e=(c=e)!=null?c:QR8;return BA(function(k,I){var J,q=!0;k.subscribe(new N5(I,function(L){var n=g(L);if(q||!e(J,n))q=!1,J=n,I.next(L)}))})};
QR8=function(e,g){return e===g};
oaC=function(e){e=e===void 0?UOq:e;return BA(function(g,c){var k=!1;g.subscribe(new N5(c,function(I){k=!0;c.next(I)},void 0,function(){return k?c.complete():c.error(e())}))})};
UOq=function(){return new Zre};
RR=function(){var e=_.Mb.apply(0,arguments);return function(g){return xOq(g,Vb.apply(null,_.KY(e)))}};
Vw8=function(e){return BA(function(g,c){var k=0;g.subscribe(new N5(c,function(I){e.call(void 0,I,k++,g)||(c.next(!1),c.complete())},void 0,function(){c.next(!0);
c.complete()}))})};
tw8=function(){return BA(function(e,g){var c=[];e.subscribe(new N5(g,function(k){c.push(k);1<c.length&&c.shift()},void 0,function(){for(var k=_.w(c),I=k.next();!I.done;I=k.next())g.next(I.value);
g.complete()},function(){c=null}))})};
BJC=function(e,g){var c=arguments.length>=2;return function(k){return k.pipe(e?IR(function(I,J){return e(I,J,k)}):fY,tw8(),c?Hr6(g):oaC(function(){return new Zre}))}};
Wc=function(e){var g=Ge(e)?e:function(){return e};
return Ge()?BA(function(c,k){var I=g();(void 0)(I).subscribe(k).add(c.subscribe(I))}):function(c){var k=new Ey(c,g);
Ge(c==null?void 0:c.lift)&&(k.lift=c.lift);k.source=c;k.subjectFactory=g;return k}};
hv=function(e){var g=new b1(e,void 0,void 0);return function(c){return Wc(function(){return g})(c)}};
XD=function(e,g){return BA(zvp(e,g,arguments.length>=2))};
G6=function(){var e=_.Mb.apply(0,arguments),g=oP(e);return BA(function(c,k){(g?xOq(e,c,g):xOq(e,c)).subscribe(k)})};
xa=function(e){return BA(function(g,c){var k=null,I=0,J=!1;g.subscribe(new N5(c,function(q){var L;(L=k)==null||L.unsubscribe();L=I++;pY(e(q,L)).subscribe(k=new N5(c,function(n){return c.next(n)},void 0,function(){k=null;
J&&!k&&c.complete()}))},void 0,function(){(J=!0,!k)&&c.complete()}))})};
$a=function(e,g){g=g===void 0?!1:g;return BA(function(c,k){var I=0;c.subscribe(new N5(k,function(J){var q=e(J,I++);(q||g)&&k.next(J);!q&&k.complete()}))})};
NJq=function(e,g,c){var k=Ge(e)||g||c?{next:e,error:g,complete:c}:e;return k?BA(function(I,J){I.subscribe(new N5(J,function(q){var L;(L=k.next)==null||L.call(k,q);J.next(q)},function(q){var L;
(L=k.error)==null||L.call(k,q);J.error(q)},function(){var q;
(q=k.complete)==null||q.call(k);J.complete()}))}):fY};
SyV=function(){var e=_.Mb.apply(0,arguments),g=vap(e);return BA(function(c,k){for(var I=e.length,J=Array(I),q=e.map(function(){return!1}),L=!1,n={i$jscomp$233:0};n.i$jscomp$233<I;n={i$jscomp$233:n.i$jscomp$233},n.i$jscomp$233++)pY(e[n.i$jscomp$233]).subscribe(new N5(k,function(R){return function(W){J[R.i$jscomp$233]=W;
L||q[R.i$jscomp$233]||(q[R.i$jscomp$233]=!0,(L=q.every(fY))&&(q=null))}}(n),void 0,$W));
c.subscribe(new N5(k,function(R){L&&(R=[R].concat(_.KY(J)),k.next(g?g.apply(null,_.KY(R)):R))}))})};
K6g=function(e){var g=yve;if(g)for(var c in g)Object.prototype.hasOwnProperty.call(g,c)&&e(g[c],c,g)};
OrW=function(){var e=[];K6g(function(g){e.push(g)});
return e};
C1z=function(e){try{return!!e&&e.location.href!=null&&Mwg(e,"foo")}catch(g){return!1}};
gUV=function(){return $p&&Yp?Yp.mobile:!ehU()&&(fC("iPod")||fC("iPhone")||fC("Android")||fC("IEMobile"))};
ehU=function(){return $p&&Yp?!Yp.mobile&&(fC("iPad")||fC("Android")||fC("Silk")):fC("iPad")||fC("Android")&&!fC("Mobile")||fC("Silk")};
_.Ya=function(e){return new lEv(e[0].toLowerCase())};
cdW=function(e){for(var g=_.Mb.apply(1,arguments),c=e[0],k=0;k<e.length-1;k++)c+=String(g[k]),c+=e[k+1];g=document.implementation.createHTMLDocument("");k=g.createElement("style");g.head.appendChild(k);g=k.sheet;g.insertRule(c,0);if(g.cssRules.length===1&&(c=g.cssRules[0],c instanceof CSSStyleRule))return new X1(c.cssText.replace(/</g,"\\3C "))};
k1q=function(e){try{return new URL(e,window.document.baseURI)}catch(g){return new URL("about:invalid")}};
IMp=function(e,g){var c=g.createRange();c.selectNode(g.body);e=kW(e);return c.createContextualFragment(IP(e))};
Jdv=function(e){e=e.nodeName;return typeof e==="string"?e:"FORM"};
vUt=function(e){e=e.nodeType;return e===1||typeof e!=="number"};
fr=function(e,g,c){e.setAttribute(g,c)};
wHA=function(e){return e.parts.map(function(g){var c=g.descriptor;return""+g.url+(c?" "+c:"")}).join(" , ")};
_.jw=function(e){var g=_.Mb.apply(1,arguments);if(g.length===0)return _.HJ(e[0]);for(var c=e[0],k=0;k<g.length;k++)c+=encodeURIComponent(g[k])+e[k+1];return _.HJ(c)};
_.i1=function(e,g){e=_.QP(e).toString();var c=e.split(/[?#]/),k=/[?]/.test(e)?"?"+c[1]:"";return q5t(c[0],k,/[#]/.test(e)?"#"+(k?c[2]:c[1]):"",g)};
q5t=function(e,g,c,k){function I(q,L){q!=null&&(Array.isArray(q)?q.forEach(function(n){return I(n,L)}):(g+=J+encodeURIComponent(L)+"="+encodeURIComponent(q),J="&"))}
var J=g.length?"&":"?";k.constructor===Object&&(k=Object.entries(k));Array.isArray(k)?k.forEach(function(q){return I(q[1],q[0])}):k.forEach(I);
return _.HJ(e+g+c)};
rdV=function(){var e=nY(LqA).toString();return _.HJ(URL.createObjectURL(new Blob([e],{type:"text/javascript"})))};
_.Pc=function(e,g,c){return Math.min(Math.max(e,g),c)};
m6=function(e,g,c){return e+c*(g-e)};
_.pr=function(e,g){this.x=e!==void 0?e:0;this.y=g!==void 0?g:0};
_.T6=function(e,g){this.width=e;this.height=g};
aMK=function(e){var g=[],c=0,k;for(k in e)g[c++]=k;return g};
nUC=function(e,g){for(var c in e)if(e[c]==g)return!0;return!1};
Rh8=function(e,g,c){for(var k in e)if(g.call(c,e[k],k,e))return k};
EUe=function(e){if(!e||typeof e!=="object")return e;if(typeof e.clone==="function")return e.clone();if(typeof Map!=="undefined"&&e instanceof Map)return new Map(e);if(typeof Set!=="undefined"&&e instanceof Set)return new Set(e);if(e instanceof Date)return new Date(e.getTime());var g=Array.isArray(e)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(e)||e instanceof DataView?{}:new e.constructor(e.length),c;for(c in e)g[c]=EUe(e[c]);return g};
WqW=function(e){var g=arguments.length;if(g==1&&Array.isArray(arguments[0]))return WqW.apply(null,arguments[0]);if(g%2)throw Error("na");for(var c={},k=0;k<g;k+=2)c[arguments[k]]=arguments[k+1];return c};
b0W=function(e){var g=arguments.length;if(g==1&&Array.isArray(arguments[0]))return b0W.apply(null,arguments[0]);for(var c={},k=0;k<g;k++)c[arguments[k]]=!0;return c};
l1=function(e,g,c,k){this.top=e;this.right=g;this.bottom=c;this.left=k};
sy=function(e,g,c,k){this.left=e;this.top=g;this.width=c;this.height=k};
hhv=function(e){e=e.global;if(e.PendingGetBeacon)return e.PendingGetBeacon};
u1=function(e){return function(g){return g.pipe(XHC(e,Wc(new FD)))}};
dJ=function(e){return function(g){return g.pipe(XHC(e,hv(1)))}};
XHC=function(e,g){function c(k){return new ij(function(I){return k.subscribe(function(J){z6(e,function(){return void I.next(J)},3)},function(J){z6(e,function(){return void I.error(J)},3)},function(){z6(e,function(){return void I.complete()},3)})})}
return j0(c,qy6(),g,S0(),c)};
DaV=function(e){var g=G1e(e);return g===null?new Hc(null):g.pipe(yb(function(c){c=c.serialize();if(xaq)c=_.kp.btoa(c);else{for(var k=[],I=0,J=0;J<c.length;J++){var q=c.charCodeAt(J);q>255&&(k[I++]=q&255,q>>=8);k[I++]=q}c=_.MU(k)}return c}),aR(1),dJ(e.queue))};
$aV=function(e){var g=g===void 0?{}:g;if(typeof Event==="function")return new Event(e,g);if(typeof document!=="undefined"){var c=document.createEvent("CustomEvent");c.initCustomEvent(e,g.bubbles||!1,g.cancelable||!1,g.detail);return c}throw Error();};
Y5z=function(e){return typeof e==="string"?document.getElementById(e):e};
j4z=function(e){var g=!1;g=g===void 0?!1:g;if(e.tagName==="IMG"){if(e.complete&&(!e.naturalWidth||!e.naturalHeight))return!0;var c;if(g&&((c=e.style)==null?void 0:c.display)==="none")return!0}var k,I;return fMt.test((k=e.getAttribute("width"))!=null?k:"")&&fMt.test((I=e.getAttribute("height"))!=null?I:"")};
i0v=function(e,g){if(e.tagName==="IMG")return e.naturalWidth&&e.naturalHeight?!0:!1;try{if(e.readyState)var c=e.readyState;else{var k,I;c=(k=e.contentWindow)==null?void 0:(I=k.document)==null?void 0:I.readyState}return c==="complete"}catch(J){return g===void 0?!1:g}};
Pe8=function(e){e||(e=function(g,c,k){g.addEventListener(c,k)});
return e};
lMK=function(e,g){var c=maK();c=c===void 0?new pHV:c;if(e=Y5z(e)){var k=Pe8(k);for(var I=!1,J=function(l){I||(I=!0,g(l))},q,L=2,n=0;n<TNA.length;++n)if(TNA[n]===e.tagName){L=3;
q=[e];break}q||(q=e.querySelectorAll(TNA.join(",")));var R=0,W=0,b=!0,h=e=!1;n={};for(var X=0;X<q.length;n={isImg:void 0},X++){var D=q[X];if(!j4z(D))if(n.isImg=D.tagName==="IMG",i0v(D,c.crossDomainLoadedDefault))e=!0,n.isImg&&(b=!0);else{R++;var f=function(l){return function(A){R--;!R&&b&&J(L);l.isImg&&(A=A&&A.type==="error",W--,A||(b=!0),!W&&h&&b&&J(L))}}(n);
k(D,"load",f);n.isImg&&(W++,k(D,"error",f))}}W===0&&(b=!0);q=null;q=_.kp.document.readyState==="complete";if(R===0&&!e&&q)L=5;else if(R||!e){k(_.kp,"load",function(){!c.pendingImagesBlockLoad||!W&&b?J(4):h=!0});
return}J(L)}};
AdK=function(e,g,c){if(e)for(var k=0;e!=null&&k<500&&!c(e);++k)e=g(e)};
s4C=function(e,g){AdK(e,function(c){try{return c===c.parent?null:c.parent}catch(k){}return null},g)};
Fq8=function(e,g){if(e.tagName=="IFRAME")g(e);else{e=e.querySelectorAll("IFRAME");for(var c=0;c<e.length&&!g(e[c]);++c);}};
umC=function(e){return(e=e.ownerDocument)&&(e.parentWindow||e.defaultView)||null};
daC=function(e,g,c){try{var k=JSON.parse(c.data)}catch(q){}if(typeof k==="object"&&k&&k.type==="creativeLoad"){var I=umC(e);if(c.source&&I){var J;s4C(c.source,function(q){try{if(q.parent===I)return J=q,!0}catch(L){}});
J&&Fq8(e,function(q){if(q.contentWindow===J)return g(k),!0})}}};
zhq=function(e){return typeof e==="string"?document.getElementById(e):e};
oU6=function(){var e={};return e[0]=_.jw(H0q,"current"),e[1]=_.jw(Q4V),e[2]=_.jw(Uag),e};
Q9=function(e,g){return e.left===g.left&&e.top===g.top&&e.width===g.width&&e.height===g.height};
Z0C=function(e,g){return{left:Math.max(e.left,g.left),top:Math.max(e.top,g.top),width:Math.max(0,Math.min(e.left+e.width,g.left+g.width)-Math.max(e.left,g.left)),height:Math.max(0,Math.min(e.top+e.height,g.top+g.height)-Math.max(e.top,g.top))}};
VQz=function(e,g){return{left:Math.round(e.left+g.x),top:Math.round(e.top+g.y),width:e.width,height:e.height}};
tQq=function(e,g,c,k,I,J,q){var L="";e&&(L+=e+":");c&&(L+="//",g&&(L+=g+"@"),L+=c,k&&(L+=":"+k));I&&(L+=I);J&&(L+="?"+J);q&&(L+="#"+q);return L};
_.oR=function(e){return e.match(BNv)};
_.Zb=function(e,g){return e?g?decodeURI(e):decodeURIComponent(e):e};
NNC=function(e){e=_.oR(e)[1]||null;!e&&_.kp.self&&_.kp.self.location&&(e=_.kp.self.location.protocol.slice(0,-1));return e?e.toLowerCase():""};
_.V9=function(e){return _.Zb(_.oR(e)[3]||null,!0)};
_.tv=function(e){return _.Zb(_.oR(e)[5]||null,!0)};
_.S5p=function(e){var g=e.indexOf("#");return g<0?null:e.slice(g+1)};
ydv=function(e){e=_.oR(e);return tQq(e[1],e[2],e[3],e[4])};
_.KqV=function(e){e=_.oR(e);return tQq(e[1],null,e[3],e[4])};
_.Bc=function(e){e=_.oR(e);return tQq(null,null,null,null,e[5],e[6],e[7])};
_.NO=function(e){var g=e.indexOf("#");return g<0?e:e.slice(0,g)};
Sw=function(e,g){e=_.oR(e);g=_.oR(g);return e[3]==g[3]&&e[1]==g[1]&&e[4]==g[4]};
O0q=function(e,g){if(e){e=e.split("&");for(var c=0;c<e.length;c++){var k=e[c].indexOf("="),I=null;if(k>=0){var J=e[c].substring(0,k);I=e[c].substring(k+1)}else J=e[c];g(J,I?y9(I):"")}}};
MQC=function(e){var g=e.indexOf("#");g<0&&(g=e.length);var c=e.indexOf("?");if(c<0||c>g){c=g;var k=""}else k=e.substring(c+1,g);return[e.slice(0,c),k,e.slice(g)]};
CeK=function(e,g){return g?e?e+"&"+g:g:e};
_.eEU=function(e,g){if(!g)return e;e=MQC(e);e[1]=CeK(e[1],g);return e[0]+(e[1]?"?"+e[1]:"")+e[2]};
_.grA=function(e,g,c){if(Array.isArray(g))for(var k=0;k<g.length;k++)_.grA(e,String(g[k]),c);else g!=null&&c.push(e+(g===""?"":"="+_.Kr(g)))};
_.Oy=function(e){var g=[],c;for(c in e)_.grA(c,e[c],g);return g.join("&")};
_.MO=function(e,g){g=_.Oy(g);return _.eEU(e,g)};
_.Cr=function(e,g,c){c=c!=null?"="+_.Kr(c):"";return _.eEU(e,g+c)};
cuW=function(e,g,c,k){for(var I=c.length;(g=e.indexOf(c,g))>=0&&g<k;){var J=e.charCodeAt(g-1);if(J==38||J==63)if(J=e.charCodeAt(g+I),!J||J==61||J==38||J==35)return g;g+=I+1}return-1};
_.eQ=function(e,g){var c=e.search(ksU),k=cuW(e,0,g,c);if(k<0)return null;var I=e.indexOf("&",k);if(I<0||I>c)I=c;k+=g.length+1;return y9(e.slice(k,I!==-1?I:0))};
_.gN=function(e,g){for(var c=e.search(ksU),k=0,I,J=[];(I=cuW(e,k,g,c))>=0;)J.push(e.substring(k,I)),k=Math.min(e.indexOf("&",I)+1||c,c);J.push(e.slice(k));return J.join("").replace(ILU,"$1")};
_.cH=function(e,g,c){return _.Cr(_.gN(e,g),g,c)};
JuW=function(e){var g=MQC(window.location.href),c=g[1],k=[];c&&c.split("&").forEach(function(I){var J=I.indexOf("=");J=J>=0?I.slice(0,J):I;e.hasOwnProperty(J)||k.push(I)});
g[1]=CeK(k.join("&"),_.Oy(e));return g[0]+(g[1]?"?"+g[1]:"")+g[2]};
vre=function(e,g,c){if(e&&g!==null&&g!=g.top){if(!g.top)return new _.T6(-12245933,-12245933);g=g.top}try{return(c===void 0?0:c)?(new _.T6(g.innerWidth,g.innerHeight)).round():_.kU(g).round()}catch(k){return new _.T6(-12245933,-12245933)}};
wtv=function(e,g,c){try{if(e){if(!g.top)return new l1(-12245933,-12245933,-12245933,-12245933);g=g.top}var k=vre(e,g,c),I=k.height,J=k.width;if(J===-12245933)return new l1(J,J,J,J);var q=I4(Jd(g.document)),L=q.x,n=q.y;return new l1(n,L+J,n+I,L)}catch(R){return new l1(-12245933,-12245933,-12245933,-12245933)}};
qu6=function(e){var g;return(g=e.google_tag_data)!=null?g:e.google_tag_data={}};
Lut=function(e){var g,c;return typeof((g=e.navigator)==null?void 0:(c=g.userAgentData)==null?void 0:c.getHighEntropyValues)==="function"};
aLe=function(e){if(!Lut(e))return null;var g=qu6(e);if(g.uach_promise)return g.uach_promise;e=e.navigator.userAgentData.getHighEntropyValues(ruU).then(function(c){g.uach!=null||(g.uach=c);return c});
return g.uach_promise=e};
Yug=function(e){var g;return nrA(REq(Erq(Wuz(bTC(hEe(XtK(GsK(x_A(new D_C,e.architecture||""),e.bitness||""),e.mobile||!1),e.model||""),e.platform||""),e.platformVersion||""),e.uaFullVersion||""),((g=e.fullVersionList)==null?void 0:g.map(function(c){var k=new $_8;k=_.vH(k,1,c.brand);return _.vH(k,2,c.version)}))||[]),e.wow64||!1)};
fL8=function(e){var g,c;return(c=(g=aLe(e))==null?void 0:g.then(function(k){return Yug(k)}))!=null?c:null};
jyv=function(e,g){return new ij(function(c){var k=!1,I=Array(g.length);I.fill(void 0);var J=new Set,q=new Set,L=function(b,h){e.running?(I[h]=b,J.add(h),k||(k=!0,z6(e,function(){k=!1;c.next(_.tq(I))},1))):c.error(new wN(h))},n=function(b,h){q.add(h);
J.add(h);z6(e,function(){c.error(b)},1)},R=function(b){q.add(b);
z6(e,function(){q.size===g.length&&c.complete()},1)},W=g.map(function(b,h){return b.subscribe(function(X){return void L(X,h)},function(X){return void n(X,h)},function(){return void R(h)})});
return function(){W.forEach(function(b){return void b.unsubscribe()})}})};
m_q=function(e,g,c){function k(){if(g.debugChannel){var l=g.debugChannel,A=l.next;var d={creativeId:g.debugNames.getName(c),requiredSignals:I,signals:Object.assign({},J),hasPrematurelyCompleted:q,errorMessage:L,erroredSignalKey:n};d={specMajor:2,specMinor:0,specPatch:0,timestamp:Jv(g.timeProvider.now(),new vc(0,g.timeProvider.timeline)),instanceId:g.debugNames.getName(g.symbol),creativeState:d};A.call(l,d)}}
for(var I=Object.keys(e),J={},q=!1,L=null,n=null,R={},W=new Set,b=[],h=[],X=_.w(I),D=X.next(),f={};!D.done;f={key$jscomp$396:void 0},D=X.next())f.key$jscomp$396=D.value,D=e[f.key$jscomp$396],D instanceof Hc?(R[f.key$jscomp$396]=D.value,W.add(f.key$jscomp$396),g.debugChannel&&(J[String(f.key$jscomp$396)]=F6g(D.value))):(D=D.pipe(nr(function(l,A){return Av6(l)||Av6(A)?!1:l===A}),yb(function(l){return function(A){g.debugChannel&&(J[String(l.key$jscomp$396)]=F6g(A),k());
var d={};return d[l.key$jscomp$396]=A,d}}(f)),qO(function(l){return function(A){if(A instanceof wN)throw new iTW(String(l.key$jscomp$396));
throw A;}}(f)),NJq(function(l){return function(){W.add(l.key$jscomp$396)}}(f),function(l){return function(A){n=String(l.key$jscomp$396);
L=String(A);k()}}(f),function(l){return function(){W.has(l.key$jscomp$396)||(q=!0,k())}}(f))),h.push(f.key$jscomp$396),b.push(D));
(e=Object.keys(J).length>0)&&k();X=jyv(g.queue,b).pipe(qO(function(l){if(l instanceof wN)throw new PKp(String(h[l.inputObservableIndex]));throw l;}),yb(function(l){return Object.freeze(Object.assign.apply(Object,[{},
R].concat(_.KY(l))))}));
return(b=b.length>0)&&e?ka(Vb(Object.freeze(R)),X):b?X:Vb(Object.freeze(R))};
ptp=function(e,g,c,k,I){return e.performanceMonitor.timeExecution.bind(e.performanceMonitor)(733,function(){var J={};try{return g.pipe(qO(function(q){k(Object.assign({},J,{error:q}));return cc}),ew(function(q){try{var L=c(e,q)}catch(R){return k(Object.assign({},J,{error:R instanceof Error?R:String(R)})),cc}var n={};
return m_q(L,e,q.symbol).pipe(NJq(function(R){n=R}),hv(1),S0()).pipe(I,qO(function(R){k(Object.assign({},n,{error:R}));
return cc}),RR(void 0),yb(function(){return!0}))})).pipe(XD(function(q){return q+1},0),qO(function(q){k(Object.assign({},J,{error:q}));
return cc}))}catch(q){return k(Object.assign({},J,{error:q})),cc}})()};
qa=function(e){var g=new Map;if(typeof e!=="object"||e===null)return g;Object.values(e).forEach(function(c){c&&typeof c.extrapolateToNow==="function"&&(g.has(c.clock.timeline)||g.set(c.clock.timeline,c.clock.now()))});
return g};
TDt=function(e,g){return typeof e==="string"?encodeURIComponent(e):typeof e==="number"?String(e):Array.isArray(e)?e.map(function(c){return TDt(c,g)}).join(","):e instanceof vc?e.toString():e&&typeof e.extrapolateToNow==="function"?TDt(e.extrapolateUsingTimestampMap(g).value,g):e===!0?"1":e===!1?"0":e===void 0||e===null?null:e instanceof lLg?Aue(e):[e.top,
e.left,e.top+e.height,e.left+e.width].join()};
syV=function(e,g){e=Object.entries(e).map(function(c){var k=_.w(c);c=k.next().value;k=k.next().value;k=TDt(k,g);return k===null?"":c+"="+k}).filter(function(c){return c!==""});
return e.length?e.join("&"):""};
d_8=function(e,g){var c=Fu8,k=uw8;g=g===void 0?.01:g;return function(I){g>0&&Math.random()<=g&&(e.global.HTMLFencedFrameElement&&e.global.fence&&typeof e.global.fence.reportEvent==="function"&&e.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),I=Object.assign({},I,{errorMessage:I.error instanceof Error&&I.error.message?I.error.message:String(I.error),errorStack:I.error instanceof Error&&I.error.stack?String(I.error.stack):null,errorName:I.error instanceof
Error&&I.error.name?String(I.error.name):null,errorContext:String(e.performanceMonitor.timedFunctionContext),errorEscapedQueryId:I.escapedQueryId}),c(Object.assign({},I,{payloadMapper:function(){return function(J){try{return k(Object.assign({},J))}catch(q){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),qa(I)).forEach(function(J){e.beaconFactory.makeBeacon(J).sendNow()}))}};
zEv=function(){var e=_.Mb.apply(0,arguments);return function(g){var c=g.pipe(hv(1),S0());g=e.map(function(k){return c.pipe(k,RR(!0))});
return M5(g).pipe(aR(1),Lr())}};
HTz=function(){var e=_.Mb.apply(0,arguments);return function(g){var c=g.pipe(hv(1),S0());g=e.map(function(k){return c.pipe(k,RR(!0))});
return ka.apply(null,_.KY(g)).pipe(aR(1),Lr())}};
QyK=function(e,g){return function(c){var k=c.pipe(hv(1),S0());c=k.pipe(e,RR(!0));k=k.pipe(j0(g,hv(),S0()),RR(!0));c=M5([c,k]);return TJv(c,k).pipe(aR(1),Lr())}};
U_W=function(e,g,c){c(!0)};
orV=function(e,g){return j0(xa(function(c){var k=e(c),I=g(c),J={};return k&&I&&J?new ij(function(q){I(k,J,function(L){q.next(Object.assign({},c,{canEmit:L}));q.complete()});
return function(){}}):L0}),IR(function(c){return c.canEmit}))};
ZTK=function(e){var g={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(c){return c.pipe(xa(function(k){return new ij(function(I){function J(){L.disconnect();n.unsubscribe()}
var q=e.MutationObserver;if(q&&k.ref!==void 0){var L=new q(function(R){I.next(R)});
L.observe(k.ref,g);var n=k.JSC$9670_released.subscribe(J);return J}})}))}};
VvC=function(e){if(e.measurementDeferralState===3)return null;if(e.timeOnScreenReason!==void 0){var g=e.creativeFound===!1?"n":null;if(g!==null)return g}return e.geometricMeasurementErrors instanceof rN?"msf":e.contextValidationErrors instanceof a4?"c":e.contextVisibilityKnown===!1?"pv":e.geometricMeasurementErrors||e.contextValidationErrors?"x":null};
BD6=function(e,g){return e.replace(tvq,function(c,k){try{var I=_.n0.get(g,k);if(I==null||I.toString()==null)return c;I=I.toString();if(I==""||!_.rV(I==null?"":String(I)))return encodeURIComponent(I).replace(/%2C/g,",")}catch(J){}return c})};
NDe=function(e,g){var c=Object.assign({},e),k=e.userAgentClientHints;c=(delete c.userAgentClientHints,c);c=e.payloadMapper(c);var I=syV(c,g);return _.R4(e.urlPrefixes,function(J){var q="";typeof k==="string"&&(q="&"+syV({uach:k},g));var L={};return BD6(J,(L.VIEWABILITY=I,L))+q})};
Fu8=function(e,g){var c=e.payloadMapper(e),k=syV(c,g);return k?_.R4(e.urlPrefixes,function(I){I=I.indexOf("?")>=0?I:I+"?";I="?&".indexOf(I.slice(-1))>=0?I:I+"&";return I+k}):e.urlPrefixes};
SuW=function(){return j0(IR(function(e){return e!==void 0}),yb(function(e){return e}))};
yuq=function(e){return j0(yb(function(){return!0}),G6(!1),dJ(e))};
Ku6=function(e){return e.length<=0?cc:M5(e.map(function(g){var c=0;return g.pipe(yb(function(k){return{index:c++,value:k}}))})).pipe(IR(function(g){return g.every(function(c){return c.index===g[0].index})}),yb(function(g){return g.map(function(c){return c.value})}))};
OTv=function(e,g){e.currentState&&(e.previousState=e.currentState);e.currentState=g;e.previousState&&e.previousState.value?(g=Math.max(0,Jv(g.timestamp,e.previousState.timestamp)),e.totalTime+=g,e.consecutiveTime+=g):e.consecutiveTime=0;return e};
Mve=function(){return j0(XD(OTv,{totalTime:0,consecutiveTime:0}),yb(function(e){return e.totalTime}))};
CKK=function(){return j0(XD(OTv,{totalTime:0,consecutiveTime:0}),yb(function(e){return e.consecutiveTime}))};
eUK=function(e,g){return function(c){return Ku6(g.map(function(k){return c.pipe(e(k))}))}};
gFt=function(){var e;return j0(NJq(function(g){return void(e=g.timestamp)}),CKK(),yb(function(g){return{timestamp:e,
value:Math.round(g)}}))};
cVV=function(e,g){return Q9(e.topWindowViewportExternalGeometry,g.topWindowViewportExternalGeometry)&&Q9(e.elementGeometry,g.elementGeometry)&&Q9(e.exposedViewportLocalGeometry,g.exposedViewportLocalGeometry)&&Q9(e.intersectionGeometry,g.intersectionGeometry)&&e.elementGeometrySourceName===g.elementGeometrySourceName&&e.measurementRequests===g.measurementRequests&&e.viewportGeometrySourceName===g.viewportGeometrySourceName&&e.viewportLocalAppOffset.x===g.viewportLocalAppOffset.x&&e.viewportLocalAppOffset.y===
g.viewportLocalAppOffset.y};
vF8=function(e,g){return function(c){return function(k){var I=k.pipe(Wc(new FD),S0());k=c.element.pipe(nr());I=I.pipe(yb(function(J){return J.value}));
return M5([k,I,g]).pipe(yb(function(J){var q=_.w(J);J=q.next().value;var L=q.next().value;q=q.next().value;if(J.ref===void 0)var n={top:0,left:0,width:0,height:0};else{n=J.ref.getBoundingClientRect();var R=J.ref,W=e.global,b=new _.pr(0,0),h=WH(_.be(R));if(Mwg(h,"parent")){do{if(h==W)var X=_.hd(R);else X=k7V(R),X=new _.pr(X.left,X.top);b.x+=X.x;b.y+=X.y}while(h&&h!=W&&h!=h.parent&&(R=h.frameElement)&&(h=h.parent))}n={top:b.y,left:b.x,width:n.width,height:n.height}}n=VQz(n,L.viewportLocalAppOffset);
W=Z0C(n,L.exposedViewportLocalGeometry);b=e.timeProvider.now();h=Object;R=h.assign;if(q!==2||e.inCrossDomainIframe||W.width<=0||W.height<=0)var D=!1;else try{var f=e.document.elementFromPoint(W.left+W.width/2,W.top+W.height/2);D=f?!Icq(f,J):!1}catch(l){D=!1}return{timestamp:b,value:R.call(h,{},L,{elementGeometrySourceName:"geo",intersectionGeometry:D?JVC.intersectionGeometry:W,elementGeometry:n})}}),u1(e.queue))}}};
Icq=function(e,g,c){c=c===void 0?0:c;return e.ref===void 0||g.ref===void 0?!1:e.ref===g.ref||_.Xm(g.ref,function(k){return k===e.ref})?!0:g.ref.ownerDocument&&g.ref.ownerDocument.defaultView&&g.ref.ownerDocument.defaultView===g.ref.ownerDocument.defaultView.top?!1:c<10&&g.ref.ownerDocument&&g.ref.ownerDocument.defaultView&&g.ref.ownerDocument.defaultView.frameElement?Icq(e,new G1(g.ref.ownerDocument.defaultView.frameElement),c+1):!0};
LPz=function(e){return function(g){return g.pipe(e.ResizeObserver?wae(e):qXe(e),hv(1),S0())}};
wae=function(e){return function(g){return g.pipe(xa(function(c){var k=e.ResizeObserver;if(!k||c.ref===void 0)return Vb(JVC.elementGeometry);var I=(new ij(function(J){function q(){c.ref!==void 0&&L.unobserve(c.ref);L.disconnect();n.unsubscribe()}
if(c.ref===void 0)return J.complete(),function(){};
var L=new k(function(R){R.forEach(function(W){J.next(W)})});
L.observe(c.ref);var n=c.JSC$9670_released.subscribe(q);return q})).pipe(wJ(e.performanceMonitor,736),yb(function(J){return J.contentRect}));
return ka(Vb(c.ref.getBoundingClientRect()),I)}),nr(Q9))}};
qXe=function(e){return function(g){var c=g.pipe(ZTK(e)),k=e.onResize;c=ka(g.pipe(yb(function(){return $aV("resize")})),c,k);
return M5(g,c).pipe(wJ(e.performanceMonitor,737),yb(function(I){I=_.w(I).next().value;return I.ref===void 0?void 0:I.ref.getBoundingClientRect()}),SuW(),nr(Q9))}};
nFe=function(e,g){var c=rVC(e,g).pipe(hv(1),S0());return function(k){return function(I){I=I.pipe(xa(function(J){return J.element}),nr());
return M5([c,I]).pipe(xa(function(J){var q=_.w(J);J=q.next().value;q=q.next().value;return acA(e,J.intersectionObserver,LPz(e),J.observations,k,J.flushRecords,q)}),u1(e.queue))}}};
RUq=function(e){return yb(function(g){return g.value.viewportGeometrySourceName!=="nio"?g:Object.assign({},g,{value:Object.assign({},g.value,{exposedViewportLocalGeometry:xU(e,!0),topWindowViewportExternalGeometry:xU(e,!0)})})})};
EFv=function(e,g){return Vb(g).pipe(e,yb(function(){return g}))};
rVC=function(e,g){return e.timeProvider.timeline!==WPA?t0(new rN(2)):e.MutationObserver?typeof IntersectionObserver==="undefined"?t0(new rN(0)):(new ij(function(c){var k=new FD,I=new DM(k.next.bind(k),{threshold:[].concat(_.KY(g))});c.next({observations:k.pipe(wJ(e.performanceMonitor,735)),intersectionObserver:I,flushRecords:function(J){J=I.takeRecords(J);J.length>0&&k.next(J)}})})).pipe(aR(1),hv(1),S0()):t0(new rN(1))};
bnp=function(e){return M0t(e.sort(function(g,c){return g.time-c.time}),wcA)};
acA=function(e,g,c,k,I,J,q){return new ij(function(L){function n(){D||(D=!0,q.ref!==void 0&&g.unobserve(I,q.ref),W.unsubscribe(),X.unsubscribe(),h.unsubscribe(),f.unsubscribe())}
if(q.ref!==void 0){hUU(g,I);g.observe(I,q.ref);var R=new $U({timestamp:e.timeProvider.now(),value:Object.assign({},JVC,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),W=k.pipe(ew(function(l){return bnp(l)}),IR(function(l){return l.target===q.ref}),yb(function(l){return{timestamp:new vc(l.time,WPA),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:l.rootBounds||YU,topWindowViewportExternalGeometry:l.rootBounds||xU(e,!0),measurementRequests:b,elementGeometrySourceName:"nio",intersectionGeometry:l.intersectionRect,elementGeometry:l.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:l.isIntersecting,isV2Visible:l.isVisible}}}),Wc(R),S0()).subscribe(L),b=new FD,h=b.subscribe(function(){J(I);
L.next({timestamp:e.timeProvider.now(),value:R.value.value});q.ref!==void 0&&(g.unobserve(I,q.ref),g.observe(I,q.ref))}),X=EFv(c,q).subscribe(function(){b.next()}),D=!1,f=q.JSC$9670_released.subscribe(function(){return n()});
return n}})};
Xae=function(e,g){var c=e.getOnBackgrounded().pipe(yb(function(){return"b"}));
return TJv(g,c).pipe(aR(1),dJ(e.queue))};
f0=function(e){return function(g){var c;return g.pipe(NJq(function(k){return void(c=k.timestamp)}),yb(function(k){return k.value}),e,yb(function(k){return{timestamp:c,
value:k}}))}};
G7K=function(e){return e.intersectionGeometry.width*e.intersectionGeometry.height/(e.elementGeometry.width*e.elementGeometry.height)};
jQ=function(e,g,c){c=c===void 0?function(k,I){return k===I}:c;
return e.timestamp.equals(g.timestamp)&&c(e.value,g.value)};
p0=function(e,g){return g.pipe(yb(function(c){return new PH(e.timeProvider,{timestamp:e.timeProvider.now(),value:c})}))};
xt8=function(e){return function(g){return g.pipe(SyV(e),yb(function(c){var k=_.w(c);c=k.next().value;k=k.next().value;var I=c.value;return{timestamp:c.timestamp,value:I>=1?!0:I<=0?!1:I>=k}}))}};
$t8=function(){return j0(IR(function(e,g){return g>0}),DtA,G6(-1),nr())};
YX8=function(e,g,c){return e?M5([g,c]).pipe(IR(function(k){var I=_.w(k);k=I.next().value;I=I.next().value;return k.timestamp.equals(I.timestamp)}),yb(function(k){var I=_.w(k);
k=I.next().value;I=I.next().value;return k.value>I.value?k:I})):g};
inC=function(e){return function(g){var c=g.pipe(fcC),k=g.pipe(j9A);return e instanceof ij?e.pipe(xa(function(I){return YX8(I,c,k)})):YX8(e.value,c,k)}};
dtt=function(e,g,c,k){var I=k.geometryIsOccluded,J=k.exposureThreshold,q=k.wasLargeAdAtRender,L=k.allowLargeAdThreshold,n=k.largeAdExposureThreshold,R=k.mayUseViewportShareExposure,W=k.hasMeasurementStarted;k=k.useIntersectionObserverV2;g=PuA(e,c,g);c=mtW(e,c);k=pa8(g,k);var b=TsC(e,I,R,g),h=b.pipe(yb(function(Q){return Q.value}),nr(),dJ(e),XD(function(Q,y){return Math.max(Q,y)},0)),X=b.pipe(yb(function(Q){return Q.value}),$t8(),dJ(e)),D=g.pipe(lcV,yb(function(Q){return Q.value}),aR(2),nr(),dJ(e));
q=AVv(e,g,q,L);var f=q.pipe(G6(!1),nr(),yb(function(Q){return Q?n:J}));
L=b.pipe(xt8(f),nr(),dJ(e));var l=M5([L,g]).pipe(IR(function(Q){var y=_.w(Q);Q=y.next().value;y=y.next().value;return Q.timestamp.equals(y.timestamp)}),yb(function(Q){var y=_.w(Q);
Q=y.next().value;y=y.next().value;return{visible:Q.value,geometry:y.value.elementGeometry}}),XD(function(Q,y){return!y.visible&&Q.visible?Q:y},{visible:!1,
geometry:YU}),yb(function(Q){return Q.geometry}),G6(YU),dJ(e),nr(Q9));
R=R instanceof ij?R.pipe(nr(),rJ()):L0;f=M5([R,f]).pipe(rJ());var A=g.pipe(IR(function(Q){return Q.value.viewportGeometrySourceName!=="ns"&&Q.value.elementGeometrySourceName!=="ns"}),XD(function(Q){return Q+1},0),G6(0),dJ(e)),d=c.pipe(rJ(!0),G6(!1),dJ(e));
d=M5([W,d]).pipe(yb(function(Q){var y=_.w(Q);Q=y.next().value;y=y.next().value;return Q&&!y}),dJ(e));
var S=g.pipe(s9A,nr()),V=S.pipe(yb(function(Q){return Q.value}),XD(function(Q,y){return Math.max(Q,y)},0),nr(),dJ(e));
e=S.pipe(yb(function(Q){return Q.value}),$t8(),dJ(e));
return{shouldResetExposureSignals:R,shouldResetViewabilitySignals:f,geometrySignals:{readyGeometryWithDefault:g,measurementStrategy:g.pipe(FPz),creativePosition:l.pipe(nr(Q9)),visible:L.pipe(nr(jQ)),timestampedExposure:b.pipe(nr(jQ)),maximumExposure:h,minimumExposure:X,browserSize:g.pipe(ucA,nr(_.OC)),timestampedScreenShare:S,maxScreenShare:V,minScreenShare:e,geometricMeasurementErrors:c,measurementRequests:g.pipe(yb(function(Q){return Q.value.measurementRequests})),
isLargeAd:q,geometryIsOccluded:I,hasMeasurementStarted:W,geometryMeasurable:d,validMeasurementCount:A,loadTimeExposure:D,v2VisibilityBitVector:k}}};
mtW=function(e,g){return g.pipe(IR(function(){return!1}),yb(function(c){return c}),qO(function(c){return T1(new Hc(c),e)}))};
PuA=function(e,g,c){return g.pipe(mOC(L0),dJ(e)).pipe(nr(function(k,I){return jQ(k,I,cVV)}),G6({timestamp:c.now(),
value:JVC}),dJ(e))};
TsC=function(e,g,c,k){c=k.pipe(inC(c),f0(yb(function(I){return Math.round(I*100)/100})),dJ(e));
return g instanceof Hc?c:M5([c,g]).pipe(yb(function(I){var J=_.w(I);I=J.next().value;J=J.next().value;return{timestamp:J.timestamp.maximum(I.timestamp),value:J.value?0:I.value}}),nr(jQ),dJ(e))};
AVv=function(e,g,c,k){g=[g.pipe(yb(function(I){return I.value.elementGeometry.width*I.value.elementGeometry.height>=242500}))];
c instanceof ij&&g.push(c.pipe(yb(function(I){return!!I})));
c=M5(g);return k?c.pipe(yb(function(I){return I.some(function(J){return J})}),G6(!1),nr(),dJ(e)):T1(new Hc(!1),e)};
pa8=function(e,g){e=M5([e,g]).pipe(yb(function(I){var J=_.w(I);I=J.next().value;if(J.next().value&&I.value.isIntersecting)return I.value.isV2Visible}),nr());
var c=e.pipe(yb(function(I){return I===void 0?!0:I}),XD(function(I,J){return I||!J},!1)),k=e.pipe(XD(function(I,J){return J===void 0?I:J?!1:I!=null?I:!0},void 0),yb(function(I){return!!I}));
return M5([g,lbe(e,c,k)]).pipe(yb(function(I){var J=_.w(I);I=J.next().value;var q=_.w(J.next().value);J=q.next().value;var L=q.next().value;q=q.next().value;var n=0;if(!I)return 0;if(J===void 0)return 16;J&&(n|=1);J||(n|=2);L&&(n|=4);q&&(n|=8);return n}))};
ZnU=function(e,g,c,k,I){var J=zUg.timeThresholdMs;var q=q===void 0?new HnV(g,k):q;return(new ij(function(L){var n=c.pipe(G6(void 0),xa(function(){return Q9v(I)})).pipe(yb(function(R){var W=R.value;
R=R.timestamp;var b=W.visible;W=W.consecutiveViewTime;var h=W>=J;h||!b?Ut8(q):(R=Math.max(0,Jv(g.now(),R)),oFz(q,Math.max(0,J-W-R)));return h}),XD(function(R,W){return W||R},!1),nr()).subscribe(L);
return function(){q.dispose();n.unsubscribe()}})).pipe($a(function(L){return!L},!0),dJ(e))};
Q9v=function(e){return Ku6([e,e.pipe(gFt())]).pipe(yb(function(g){var c=_.w(g);g=c.next().value;c=c.next().value;return{timestamp:g.timestamp,value:{visible:g.value,consecutiveViewTime:c.value}}}),nr(function(g,c){return jQ(g,c,function(k,I){return k.consecutiveViewTime===I.consecutiveViewTime&&k.visible===I.visible})}))};
VPK=function(){return j0(CKK(),XD(function(e,g){return Math.max(e,g)},0),yb(function(e){return Math.round(e)}))};
tPK=function(e){return j0(xt8(Vb(e)),VPK())};
BsC=function(e,g){return g instanceof ij?g.pipe(xa(function(c){return(c=c?15:null)?t0(new rN(c)):e})):(g=g.value?15:null)?t0(new rN(g)):e};
Nsv=function(e){var g=new rN(13);if(e.length<1)return{chain:cc,capturedErrors:cc};var c=new FD,k=e[0];return{chain:e.slice(1).reduce(function(I,J){return I.pipe(qO(function(q){c.next(q);return J}))},k).pipe(qO(function(I){c.next(I);
return t0(g)}),Wc(new FD),S0()),
capturedErrors:c}};
SXC=function(e,g){var c=e.pipe(Wc(new FD),S0());return xa(function(k){return c.pipe(g(k))})};
KPC=function(e,g){if(e.inCrossDomainIframe)return t0(new rN(6));var c=new FD;return ka(Vb({}),g,c).pipe(yb(function(){return{timestamp:e.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:yVC(e),topWindowViewportExternalGeometry:xU(e,!0),measurementRequests:c,viewportLocalAppOffset:{x:0,y:0}}}}),u1(e.queue))};
yVC=function(e){var g=xU(e,!1);if(!e.inIframe||!C1z(e.global.parent)||e.global.parent===e.global)return g;var c=new le(e.global.parent,e.debugChannel);c.beaconFactory=e.beaconFactory;c=yVC(c);e=e.global.frameElement.getBoundingClientRect();return Z0C(VQz(Z0C(c,e),{x:g.left-e.left,y:g.top-e.top}),g)};
OnC=function(e){if(e.prerendering)return 3;var g;return(g={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[e.visibilityState||e.webkitVisibilityState||e.mozVisibilityState||""])!=null?g:0};
MPC=function(e){return e.document.JSC$9681_onVisibilityChange.pipe(yb(function(g){return g==="visible"}),nr(),dJ(e.queue))};
CuC=function(e,g,c){var k;return g.pipe(nr(),xa(function(I){return c.pipe(yb(function(){if(!k){k=!0;try{I.next()}finally{k=!1}}return!0}))}),G6(!1),dJ(e.queue))};
es6=function(e){return j0(f0(yb(function(g){return g>=1?!0:g<=0?!1:g>=e})),Mve(),yb(function(g){return Math.round(g)}))};
c_z=function(e,g,c,k,I){var J=gz8;if(J.length>1)for(var q=0;q<J.length-1;q++)if(J[q]<J[q+1])throw Error();q=I.pipe(G6(void 0),xa(function(){return c.pipe(gFt())}),nr(),dJ(e));
I=I.pipe(G6(void 0),xa(function(){return c.pipe(VPK())}),nr(),dJ(e));
return{totalMeasurementTime:k.pipe(G6(void 0),xa(function(){return g.pipe(yb(function(L){return{timestamp:L.timestamp,value:!0}}),Mve())}),nr(),dJ(e)),
totalUnviewedTime:k.pipe(G6(void 0),xa(function(){return g.pipe(yb(function(L){return{timestamp:L.timestamp,value:L.value===0}}),Mve())}),nr(),dJ(e)),
maxTimeOnScreen:k.pipe(G6(void 0),xa(function(){return g.pipe(eUK(tPK,J))}),nr(_.OC),dJ(e)),
timeOnScreen:k.pipe(G6(void 0),xa(function(){return g.pipe(eUK(es6,J),yb(function(L){return L.map(function(n,R){return R>0?n-L[R-1]:n})}))}),nr(_.OC),dJ(e)),
maxConsecutiveViewTime:I,consecutiveViewTime:q.pipe(nr(jQ),dJ(e))}};
ICg=function(e){var g=!0;g=g===void 0?!1:g;return j0(xa(function(c){return krz(e.document,c,g)}),dJ(e.queue))};
J_p=function(e,g,c){var k=c.pipe(yb(function(I){return{value:I,timestamp:e.timeProvider.now()}}),nr(jQ));
return g instanceof ij?g.pipe(nr(),xa(function(I){return I?T1(new Hc({value:!1,timestamp:e.timeProvider.now()}),e.queue):k})):g.value===!1?k:new Hc(!1)};
vzW=function(e,g,c,k,I,J,q){var L=zUg;g=g instanceof ij?g.pipe(G6(!1),nr()):g;var n=!e.isMobile();c=J_p(e,c,k);e=q.measurableCreative.pipe(yuq(e.queue));return Object.assign({},L,{geometryIsOccluded:c,wasLargeAdAtRender:I,allowLargeAdThreshold:n,mayUseViewportShareExposure:g,hasMeasurementStarted:e,useIntersectionObserverV2:J})};
qIC=function(e,g,c,k,I,J){var q=1;J=J===void 0?!0:J;q=q===void 0?.01:q;var L=L===void 0?e.timeProvider.intervalObservable(100).pipe(dJ(e.queue)):L;return e.performanceMonitor.timeExecution(916,function(){return wVz(e,g.pipe(u1(e.queue)),c.pipe(u1(e.queue)),k,I,J,q,L)})()};
wVz=function(e,g,c,k,I,J,q,L){var n=MPC(e).pipe(yb(function(W){return!W})),R=new LRp(e,[new r_6(e,gz8),
new aC6(e,L)]);L=zEv(nzv,RsW);return ptp(e,g,function(W,b){var h=T1(new Hc(b.element),W.queue).pipe(ICg(W),dJ(W.queue)),X={loadedElement:h,shouldMeasure:h.pipe(rJ(!0)),measurableCreative:h.pipe(yb(function(Q){var y=y===void 0?Symbol():y;return Object.freeze({symbol:y,element:T1(new Hc(Q),W.queue)})})),
creativeSearchResult:T1(new Hc("mue"),W.queue)},D=new Hc(!1),f=new Hc(!1),l=new Hc(17),A=new Hc(!1),d=new Hc(!1),S=T1(Ad,W.queue);D=R.buildGeometrySource(X,{inApp:D,useV2:!1,requestSource:T1(l,W.queue)}).geometrySource;X=vzW(W,A,f,n,d,S,X);f=dtt(W.queue,W.timeProvider,D,X);X=f.geometrySignals;A=f.shouldResetViewabilitySignals;f=c_z(W.queue,X.timestampedExposure,X.visible,f.shouldResetExposureSignals,A);A=ZnU(W.queue,W.timeProvider,A,X.measurementRequests,X.visible);d=c.pipe(IR(function(Q){return Q===
b.element.ref}),yb(function(){return"ur"}));
S=uDW(W.timeProvider,I).pipe(rJ("t"));d=Xae(W,ka(d,S));S=CuC(W,X.measurementRequests,d.pipe(IR(function(Q){return Q!==null})));
D=d.pipe(IR(function(Q){return Q!==null}),yb(function(){return OnC(W.global.document)===1}));
var V=Ezq(W.document);return Object.assign({},{beaconFactory:new Hc(W.beaconFactory),context:new Hc(W),inferredPingId:new Hc("lidar2"),timeOnScreenPingId:new Hc("lidartos"),binaryContext:new Hc(17),binaryVersion:new Hc(k),requestSource:l,contextValidationErrors:new Hc(W.validate()?null:new a4),contextVisibilityKnown:new Hc(V),payloadMapper:new Hc(uw8),endOfSessionReason:d,timeOnScreenReason:d,requestMeasurementOnEndOfSession:S,hasImpressionFired:WRW,crossDomainIframeState:new Hc(W.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Ad,inFetchLaterBeaconExperiment:Ad,isTurtlex:Ad,turtlexReportEventData:new Hc(""),reportFencedFrameEvent:L0,isViewableAttributionEnabled:Ad,inViewableAttributionExperiment:new Hc(0),fetchBeaconFactory:L0,supportsPendingBeacon:Ad,supportsFetchLater:Ad,emit:new Hc(U_W),beginToRenderEvent:new Hc(Symbol()),activeViewUnmeasurableEvent:new Hc(Symbol()),activeViewViewableEvent:new Hc(Symbol()),creativeFound:WRW,immediateUrlPrefixes:new Hc(b.immediateUrls),timeOnScreenUrlPrefixes:new Hc(b.timeOnScreenUrls),
cpmavUrls:L0,viewableRelayUrls:L0,measurementDeferralState:new Hc(2),urlSerializer:new Hc(NDe),viewUrlSerializer:new Hc(b4C),isCreativeLoaded:h.pipe(yuq(W.queue)),pageVisible:n.pipe(yb(function(Q){return!Q})),
eosPageVisible:D,timestampedExposureHistory:X.timestampedExposure.pipe(XD(function(Q,y){Q.push(y);return Q},[]))},X,{viewable:p0(W,A),
maxTimeOnScreen:p0(W,f.maxTimeOnScreen),timeOnScreen:p0(W,f.timeOnScreen),maxConsecutiveViewTime:p0(W,f.maxConsecutiveViewTime),consecutiveViewTime:f.consecutiveViewTime.pipe(yb(function(Q){return new PH(W.timeProvider,Q)})),
totalMeasurementTime:p0(W,f.totalMeasurementTime),totalUnviewedTime:p0(W,f.totalUnviewedTime),userAgentClientHints:DaV(W),clientOrderPingCounter:new Hc(new lLg)})},d_8(e,q),HTz(J?QyK(L,hsC):QyK(L,XVt),Grt))};
xNC=function(e){var g=_.Mb.apply(1,arguments).filter(Boolean).join("&");if(!g)return e;var c=e.match(/[?&]adurl=/);return c?e.slice(0,c.index+1)+g+"&"+e.slice(c.index+1):e+(e.indexOf("?")<0?"?":"&")+g};
s5=function(e,g){return g?"&"+e+"="+encodeURIComponent(g):""};
DNt=function(){try{var e,g;return!!((e=window)==null?0:(g=e.top)==null?0:g.location.href)&&!1}catch(c){return!0}};
_.Fm=function(e){e&&typeof e.dispose=="function"&&e.dispose()};
_.ue=function(e){for(var g=0,c=arguments.length;g<c;++g){var k=arguments[g];_.Bz(k)?_.ue.apply(null,k):_.Fm(k)}};
YIt=function(){var e=$N6();e=e===void 0?"bevasrsg":e;return new Promise(function(g){var c=window===window.top?window:DNt()?window:window.top,k=c[e],I;((I=k)==null?0:I.bevasrs)?g(new dN(k.bevasrs)):(k||(k={},k=(k.nqfbel=[],k),c[e]=k),k.nqfbel.push(function(J){g(new dN(J))}))})};
fCC=function(e){var g={c:e.zA,e:e.cGh,mc:e.ttY,me:e.yUW};e.ag&&(g.co={c:e.ag.rTt,a:e.ag.mKj,s:e.ag.oLT});return g};
j76=function(e){var g,c,k={zA:e.c,cGh:e.e,ttY:(g=e.mc)!=null?g:!1,yUW:(c=e.me)!=null?c:!1};e.co&&(k.ag={rTt:e.co.c,mKj:e.co.a,oLT:e.co.s});return k};
i4K=function(e){return function(){var g;return _.r(function(c){if(c.nextAddress==1)return c.yield(e(),2);g=c.yieldResult;return c.return({f:function(){return g.cfP()},
c:function(k){return g.zSV(k)},
m:function(k){return g.gf(j76(k))},
mws:function(k){return g.ff4(j76(k))}})})}};
Pog=function(e,g){var c=$N6();c=c===void 0?"bevasrsg":c;g={s:function(J){var q;return e.snapshot(Object.assign({},J.c&&{zA:J.c},J.s&&{cYL:J.s},{wRJ:(q=J.p)!=null?q:!0}))},
e:function(J){var q;return void((q=e.gX4)==null?void 0:q.call(e,J))},
c:function(J,q){return e.lTt(J,q)},
p:e.cQm,l:function(){return e.pr4()},
wpc:g?i4K(g):void 0};var k=window===window.top?window:DNt()?window:window.top,I=k[c];if(I){I.bevasrs=g;if(I.nqfbel!==void 0)for(c=_.w(I.nqfbel),k=c.next();!k.done;k=c.next())k=k.value,k(g);I.nqfbel=void 0}else I={},I=(I.bevasrs=g,I.nqfbel=void 0,I),k[c]=I};
pV8=function(e){var g=g===void 0?53:g;var c=[];_.z1(e,mNV,6,_.HH()).forEach(function(k){_.Qh(k,2)<=g&&c.push(_.Qh(k,1))});
return c};
THt=function(e){var g=g===void 0?53:g;var c=[];_.z1(e,mNV,6,_.HH()).forEach(function(k){_.Qh(k,2)>g&&c.push(_.Qh(k,1))});
return c};
lCK=function(e){e.then(function(){},function(){})};
U5=function(e){return{fieldType:1,fieldName:e}};
o4=function(e){return{fieldType:2,fieldName:e}};
_.ZM=function(e){return{fieldType:3,fieldName:e}};
A_V=function(){function e(){I[0]=1732584193;I[1]=4023233417;I[2]=2562383102;I[3]=271733878;I[4]=3285377520;W=R=0}
function g(b){for(var h=q,X=0;X<64;X+=4)h[X/4]=b[X]<<24|b[X+1]<<16|b[X+2]<<8|b[X+3];for(X=16;X<80;X++)b=h[X-3]^h[X-8]^h[X-14]^h[X-16],h[X]=(b<<1|b>>>31)&4294967295;b=I[0];var D=I[1],f=I[2],l=I[3],A=I[4];for(X=0;X<80;X++){if(X<40)if(X<20){var d=l^D&(f^l);var S=1518500249}else d=D^f^l,S=1859775393;else X<60?(d=D&f|l&(D|f),S=2400959708):(d=D^f^l,S=3395469782);d=((b<<5|b>>>27)&4294967295)+d+A+S+h[X]&4294967295;A=l;l=f;f=(D<<30|D>>>2)&4294967295;D=b;b=d}I[0]=I[0]+b&4294967295;I[1]=I[1]+D&4294967295;I[2]=
I[2]+f&4294967295;I[3]=I[3]+l&4294967295;I[4]=I[4]+A&4294967295}
function c(b,h){if(typeof b==="string"){b=unescape(encodeURIComponent(b));for(var X=[],D=0,f=b.length;D<f;++D)X.push(b.charCodeAt(D));b=X}h||(h=b.length);X=0;if(R==0)for(;X+64<h;)g(b.slice(X,X+64)),X+=64,W+=64;for(;X<h;)if(J[R++]=b[X++],W++,R==64)for(R=0,g(J);X+64<h;)g(b.slice(X,X+64)),X+=64,W+=64}
function k(){var b=[],h=W*8;R<56?c(L,56-R):c(L,64-(R-56));for(var X=63;X>=56;X--)J[X]=h&255,h>>>=8;g(J);for(X=h=0;X<5;X++)for(var D=24;D>=0;D-=8)b[h++]=I[X]>>D&255;return b}
for(var I=[],J=[],q=[],L=[128],n=1;n<64;++n)L[n]=0;var R,W;e();return{reset:e,update:c,digest:k,digestString:function(){for(var b=k(),h="",X=0;X<b.length;X++)h+="0123456789ABCDEF".charAt(Math.floor(b[X]/16))+"0123456789ABCDEF".charAt(b[X]%16);return h}}};
Vh=function(e){this.JSC$9928_document_=e||{cookie:""}};
H4C=function(e,g){g=g===void 0?s7V:g;if(!FRU){var c;e=(c=e.navigator)==null?void 0:c.userAgentData;if(!e||typeof e.getHighEntropyValues!=="function"||e.brands&&typeof e.brands.map!=="function")return Promise.reject(Error("va"));uqC((e.brands||[]).map(function(I){var J=new dNg;J=_.vH(J,1,I.brand);return _.vH(J,2,I.version)}));
typeof e.mobile==="boolean"&&_.td(zst,2,e.mobile);FRU=e.getHighEntropyValues(g)}var k=new Set(g);return FRU.then(function(I){var J=zst.clone();k.has("platform")&&_.vH(J,3,I.platform);k.has("platformVersion")&&_.vH(J,4,I.platformVersion);k.has("architecture")&&_.vH(J,5,I.architecture);k.has("model")&&_.vH(J,6,I.model);k.has("uaFullVersion")&&_.vH(J,7,I.uaFullVersion);return J.serialize()}).catch(function(){return zst.serialize()})};
BH=function(e,g,c,k){this.initialValue_=e;this.maxValue_=g;this.currBaseValue_=this.currValue_=e;this.randomFactor_=c||0;this.backoffFactor_=k||2};
UNg=function(e,g,c,k,I){this.listener=e;this.proxy=null;this.src=g;this.type=c;this.capture=!!k;this.handler=I;this.key=++Q7p;this.removed=this.callOnce=!1};
Na=function(e){this.src=e;this.listeners={};this.typeCount_=0};
ts8=function(){for(var e;e=oz8.remove();){try{e.fn.call(e.scope)}catch(g){IA(g)}Z4W.put(e)}VsA=!1};
_.BHg=function(e){switch(e){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}};
NHA=function(e){switch(e){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""}};
_.SIz=function(){};
knV=function(e,g,c,k){e=y_V(KRA(O4A(new _.SQ(1828,"0"),e),new MsA)).disableWithCredentials();g.length&&Coq(e,e_C(new g1t,g));k!==void 0&&(e.destinationUrl=k);var I=new cK8(1828,"","",!1,"",e.build());_.yh(I,e);var J=new K0({flush:function(q){try{I.flush(q)}catch(L){c(L)}}});
J.addOnDisposeCallback(function(){setTimeout(function(){try{J.snapshotAndFlush()}finally{I.dispose()}})});
J.invocationLimit=1E5;J.flushInterval=3E4;J.JSC$10097_flushTimer.setInterval(3E4);return J};
O5=function(){var e,g,c;return(c=(e=globalThis.performance)==null?void 0:(g=e.now)==null?void 0:g.call(e))!=null?c:Date.now()};
v1e=function(e,g){if(e.disable)return new Ivg;g=g?pV8(g):[];e={eD:e.eD,t14:e.rMf,j8V:e.ymY,destinationUrl:e.destinationUrl,sbW:e.sbW,dPF:e.dPF};g=g===void 0?[]:g;return new JK6(e,g)};
wQV=function(e){if(!e)return null;e=_.Ma(e,2);return e===null||e===void 0?null:kW(e)};
_.q2A=function(e){if(!e)return null;e=_.Ma(e,4);return e===null||e===void 0?null:_.HJ(e)};
avz=function(e,g){return g?LYp(g):e?rKV(e):Promise.resolve()};
LYp=function(e){return new Promise(function(g,c){var k=_.C0("SCRIPT"),I=_.q2A(e);_.Eh(k,I);k.onload=function(){_.ev(k);g()};
k.onerror=function(){_.ev(k);c(Error("Ga"))};
(gD("HEAD")[0]||document.documentElement).appendChild(k)})};
rKV=function(e){return new Promise(function(g){var c=_.C0("SCRIPT");if(e){var k=_.Ma(e,6);k=k===null||k===void 0?null:_.aP(k)}else k=null;_.RP(c,k);(gD("HEAD")[0]||document.documentElement).appendChild(c);_.ev(c);g()})};
ct=function(e,g,c){var k,I=new Promise(function(J){k=setTimeout(J,g)});
return Promise.race([e.finally(function(){return void clearTimeout(k)}),
I.then(c)])};
n1z=function(e,g){try{return globalThis.sessionStorage.setItem(e,g),!0}catch(c){return!1}};
R_8=function(e,g,c,k){g=g===void 0?0:g;c=c===void 0?e.length:c;var I=0;for(k&&(I=R_8(k));g<c;g++)k=typeof e==="string"?e.charCodeAt(g):e[g],I=E16(31,I)+k|0;return I};
WYg=function(e,g){return[R_8(e,0,e.length>>1,g),R_8(e,e.length>>1)]};
bfW=function(e){var g=_.w(WYg(e,kr));e=g.next().value;g=g.next().value;return e.toString(16)+g.toString(16)};
h_W=function(e,g){var c=WYg(g);e=new Uint32Array(e.buffer);g=e[0];var k=_.w(c);c=k.next().value;k=k.next().value;for(var I=1;I<e.length;I+=2){for(var J=g,q=I,L=c,n=k,R=0;R<22;R++)q=q>>>8|q<<24,q+=J|0,q^=L+38293,J=J<<3|J>>>29,J^=q,n=n>>>8|n<<24,n+=L|0,n^=R+38293,L=L<<3|L>>>29,L^=n;J=[J,q];e[I]^=J[0];I+1<e.length&&(e[I+1]^=J[1])}};
XQW=function(e,g,c,k,I){var J=(4-(kr.length+c.length)%4)%4,q=new Uint8Array(4+J+kr.length+4+c.length),L=new DataView(q.buffer),n=0;L.setUint32(n,Math.random()*4294967295);n=n+4+J;q.set(kr,n);n+=kr.length;L.setUint32(n,I);q.set(c,n+4);h_W(q,k);return e.insert(g,function(R){return void globalThis.sessionStorage.removeItem(R)})?n1z(g,_.MU(q))?"s":"t":"i"};
GnC=function(e,g){var c=globalThis.sessionStorage.getItem(e);if(!c)return["m"];try{var k=_.CC(c);h_W(k,g)}catch(I){return globalThis.sessionStorage.removeItem(e),["c"]}for(g=4;g<7&&k[g]===0;)g++;for(c=0;c<kr.length;c++)if(k[g++]!==kr[c])return globalThis.sessionStorage.removeItem(e),["d"];c=(new DataView(k.buffer)).getUint32(g);return Math.floor(Date.now()/1E3)>=c?(globalThis.sessionStorage.removeItem(e),["e"]):["a",new Uint8Array(k.buffer,g+4)]};
xl8=function(e){return globalThis.TextEncoder?(new TextEncoder).encode(e):_.vz(e)};
DlK=function(e){var g=e,c;return function(){if(g){var k=g;g=void 0;c=k.apply(this,arguments)}return c}};
Y2e=function(e){return dZ(function(g){if(g instanceof e)return!0;var c,k,I=g==null?void 0:(c=g.ownerDocument)==null?void 0:(k=c.defaultView)==null?void 0:k[e.name];return $l6(I)&&g instanceof I})};
_.vt=function(e,g,c){_.Iy.call(this);this.JSC$10311_listener_=e;this.JSC$10311_interval_=g||0;this.handler_=c;this.callback_=(0,_.Ju)(this.JSC$10313_doAction_,this)};
_.wD=function(e){_.Iy.call(this);this.handler_=e;this.JSC$10314_keys_={}};
q_=function(){_.Iy.call(this);this.services_={}};
fvq=function(){for(var e=10,g="";e-- >0;)g+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(Math.random()*62));return g};
LT=function(e){_.Iy.call(this);this.JSC$10334_domHelper_=e||Jd()};
nT=function(e,g,c,k,I){LT.call(this,c);this.JSC$10337_channel_=e;this.protocolVersion_=I||2;this.peerHostname_=g||"*";this.JSC$10337_eventHandler_=new _.wD(this);this.maybeAttemptToConnectTimer_=new _.rD(100,this.getWindow());this.oneSidedHandshake_=!!k;this.setupAckReceived_=new ay;this.setupAckSent_=new ay;this.JSC$10337_connected_=new ay;this.endpointId_=fvq();this.peerEndpointId_=null;this.oneSidedHandshake_?j$W(this.JSC$10337_channel_)==1?ifA(this.JSC$10337_connected_,this.setupAckReceived_):
ifA(this.JSC$10337_connected_,this.setupAckSent_):(ifA(this.JSC$10337_connected_,this.setupAckReceived_),this.protocolVersion_==2&&ifA(this.JSC$10337_connected_,this.setupAckSent_));PH6(this.JSC$10337_connected_,this.notifyConnected_,this);this.JSC$10337_connected_.callback(!0);this.JSC$10337_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Ry=function(e){e=mlU(e);return _.HJ(e)};
mlU=function(e){return e===null?"null":e===void 0?"undefined":e};
hu=function(e,g){q_.call(this);for(var c=0,k;k=pQ6[c];c++)if(k in e&&!/^https?:\/\//.test(e[k]))throw Error("Sa`"+e[k]+"`"+k);this.cfg_=e;this.name=this.cfg_.cn||fvq();this.JSC$10338_domHelper_=g||Jd();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.wD(this);e.lpu=e.lpu||ydv(this.JSC$10338_domHelper_.getWindow().location.href)+"/robots.txt";e.ppu=e.ppu||ydv(e.pu||"")+"/robots.txt";Eu[this.name]=this;T1z(window,"unload",lvC)||Wt(window,"unload",lvC)};
s$p=function(e){if(e&&e.focus)if(e!==document.activeElement)e.focus();else return AKV(function(){return _.r(function(g){document.activeElement&&document.activeElement.blur();return g.return(AKV(function(){e.focus()}))})})};
_.FYA=function(e){var g=g===void 0?5:g;setTimeout(function(){var c;return _.r(function(k){k.nextAddress==1&&(c=document.activeElement);if(k.nextAddress!=5)return(document.activeElement===c||document.activeElement===document.body)&&g>=0&&e?k.yield(s$p(e),5):k.jumpTo(0);if(document.activeElement===e)return k.return();e=e.parentElement;--g;return k.jumpTo(2)})},15)};
AKV=function(e){return new Promise(function(g){requestAnimationFrame(function(){g(e())})})};
dlz=function(e){if(_.Xw)e(_.Xw);else{var g;((g=uBq)!=null?g:uBq=[]).push(e)}};
xr=function(){!_.Xw&&_.Gs&&_.z_C(_.Gs());return _.Xw};
_.z_C=function(e){_.Xw=e;var g;(g=uBq)==null||g.forEach(dlz);uBq=void 0};
_.DL=function(e){_.Xw&&_.Xw.beforeLoadModuleCode(e)};
_.$r=function(){_.Xw&&_.Xw.JSC$11375_setLoaded()};
Yr=function(e){return Vuv(e)?Number(e):String(e)};
HfW=function(e){this.action=e;this.wfv=!1};
Q$p=function(){};
UlA=function(e,g){HfW.call(this,"set-drive-options");this.appId=e;this.appOrigin=g};
o16=function(e){HfW.call(this,"visibility");this.visible=e};
ZfC=function(e,g){g?e.setAttribute("role",g):e.removeAttribute("role")};
fT=function(e,g,c){Array.isArray(c)&&(c=c.join(" "));var k="aria-"+g;c===""||c==void 0?(VnU||(c={},VnU=(c.atomic=!1,c.autocomplete="none",c.dropeffect="none",c.haspopup=!1,c.live="off",c.multiline=!1,c.multiselectable=!1,c.orientation="vertical",c.readonly=!1,c.relevant="additions text",c.required=!1,c.sort="none",c.busy=!1,c.disabled=!1,c.hidden=!1,c.invalid="false",c)),c=VnU,g in c?e.setAttribute(k,c[g]):e.removeAttribute(k)):e.setAttribute(k,c)};
KYW=function(e,g){var c=tnV++,k={measureTask:{id:c,fn:e.measure,context:g},mutateTask:{id:c,fn:e.mutate,context:g},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(k.args||(k.args=[]),k.args.length=0,k.args.push.apply(k.args,arguments),k.args.push(k.state)):k.args&&k.args.length!=0?(k.args[0]=k.state,k.args.length=1):k.args=[k.state];k.isScheduled||(k.isScheduled=!0,B1p[N1v].push(k));S2v||(S2v=!0,window.requestAnimationFrame(yKA))}};
yKA=function(){S2v=!1;var e=B1p[N1v],g=e.length;N1v=(N1v+1)%2;for(var c,k=0;k<g;++k){c=e[k];var I=c.measureTask;c.isScheduled=!1;I.fn&&I.fn.apply(I.context,c.args)}for(k=0;k<g;++k)c=e[k],I=c.mutateTask,c.isScheduled=!1,I.fn&&I.fn.apply(I.context,c.args),c.state={};e.length=0};
Pt=function(e){_.jv.call(this);this.JSC$10470_element_=e;this.listenKeyIn_=_.iK(this.JSC$10470_element_,"focus",this,!0);this.listenKeyOut_=_.iK(this.JSC$10470_element_,"blur",this,!0)};
OfC=function(e,g){this.JSC$10473_element_=e;this.JSC$10473_dom_=g};
pT=function(e,g){mu.call(this,g);this.useIframeMask_=!!e;this.lastFocus_=null;this.resizeBackgroundTask_=KYW({mutate:this.resizeBackground_},this);KYW({mutate:this.updateModalAndBackground_},this)};
lK=function(e,g,c){pT.call(this,g,c);this.JSC$10483_class_=e||"modal-dialog";this.buttons_=(new Ts).addButton(Mng,!0).addButton(CHg,!1,!0)};
egt=function(e,g,c){lK.call(this,e,g,c)};
gmp=function(e){Au.call(this,e)};
ctz=function(e){e=e&&e.getWindow()||window;return e.gadgets&&e.gadgets.rpc};
Ikp=function(e,g){var c=g&&g.getWindow()||window;if(ctz(g))e();else if(kIC)kIC.push(e);else var k=kIC=[e],I=c.setInterval(function(){if(ctz(g)){c.clearInterval(I);for(var J=0;J<k.length;J++)k[J]();kIC=null}},100)};
vmq=function(e,g){var c=new su(e);_.yh(g,c);var k={passive:!1};g.listen(c,"mousewheel",function(I){return void Jt6(e,I)},k).listen(e,"scroll",function(I){return void Jt6(e,I)},k)};
Jt6=function(e,g){var c;a:{for(c=g.target;c;){if(c.nodeType==1){var k=_.Fw(c,"overflowY");if(k=="auto"||k=="scroll")break a}c=c.parentNode}c=null}if(!c||!_.uK(e,c)||c.scrollHeight==c.clientHeight||g.deltaY>0&&Math.abs(c.scrollTop-(c.scrollHeight-c.clientHeight))<=1||g.deltaY<0&&c.scrollTop==0)g.preventDefault(),g.stopPropagation()};
wbe=function(){var e;if(e=e===void 0?window:e)return e!==e.parent&&e.hasOwnProperty("pangolinIframeGlobals");var g=Error("gb");setTimeout(function(){throw g;},1);
return!1};
tu=function(e,g,c,k,I,J,q,L,n,R){L=L===void 0?!1:L;n=n===void 0?!1:n;R=R===void 0?!1:R;lK.call(this,void 0,void 0,void 0);lK.call(this,J?J+" picker modal-dialog":"picker modal-dialog",!0,c);_.eQ(e,"protocol");this.iframeManager_=new qnq;this.targetId_=dD();this.rpcToken_=dD();e=_.zs(e);_.Ht(e,"hostId");this.useGapi_=!n&&!wbe();L&&_.Qd(e,"fv2","true");this.setUrl(e.toString());this.preferredDialogWidth_=k;this.preferredDialogHeight_=I;k!==void 0||I!==void 0?k=!0:(k=_.Ht(_.zs(e.toString()),"hostId"),
LCC||(LCC=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),k=!LCC.has(k));this.autoSizeDialog_=k;this.JSC$10501_gadgetsDomHelper_=q||this.JSC$10452_dom_;this.JSC$10501_enablePopover_=R;g&&(q=this.JSC$10501_gadgetsDomHelper_,g=_.Ht(_.zs(this.JSC$10503_url_),"grugl")=="true"?rtK:akV,ctz(q)||(q=q||Jd(document),R=q.createElement("SCRIPT"),_.Eh(R,g),R.type="text/javascript",q.JSC$9636_document_.body.appendChild(R)));
e=e.toString();g=null;q=e.indexOf("/picker?");q>-1?g=e.substring(0,q+8-1):qU(e,"/picker")&&(g=e);g&&this.setRelayUrl(g+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(e=this.buttons_,e.JSC$10486_element_=this.buttonEl_,e.render()):_.WA(this.buttonEl_,nmg),_.ZL(this.buttonEl_,!!this.buttons_))};
bte=function(e,g){e.name!==void 0?(this.name=e.name,this.code=RgK[e.name]):(this.code=e=e.code,this.name=EmW(e));_.eK.call(this,WCt("%s %s",this.name,g))};
hge=function(e,g){_.Bt.call(this,e.type,g);this.event_=e};
_.Dzt=function(e){var g=g===void 0?Xbg:g;var c=_.KC(e),k=function(J){J=_.w(J);J.next();J=N_(J);return g(c,J)},I=function(J){var q=_.w(J);
J=q.next().value;q=N_(q);return e.apply(J,q)};
return function(){var J=_.Mb.apply(0,arguments),q=this||_.kp,L=GIA.get(q);L||(L={},GIA.set(q,L));return xzV(L,[this].concat(_.KY(J)),I,k)}};
Sv=function(e){var g={};e=e.replace(/\r/g,"").split("\n");for(var c=0;c<e.length;c++){var k=e[c],I=k.indexOf(":");I<0||(g[k.substring(0,I)]=k.substring(I+2,k.length))}return g};
jF8=function(e,g){g.id||(g.id="ow"+_.KC(g));e.setAttribute("jsowner",g.id);e.__owner=g;var c=_.Xm(g,$zp);c&&(Yn8.has(c)||Yn8.set(c,[]),Yn8.get(c).push(e));(c=fkC.get(g))||fkC.set(g,c=[]);c.includes(e)||c.push(e);g.setAttribute("__IS_OWNER",!0)};
$zp=function(e){return _.yd(e)?e.getAttribute("jsname")==="coFSxe":!1};
itW=function(e,g,c){c=c===void 0?function(){}:c;
return e?g():c()};
_.mzv=function(e){var g;return((g=PwW.documentOverride)!=null?g:e).__wizdispatcher};
Ou=function(e){var g=KT;KT=e;return g};
TKC=function(e){return e===pb8||(e==null?void 0:e.name)==="\u0275NotFound"};
M_=function(e,g){var c;if((c=e)==null?0:c.isDisposed)throw Error("lb`"+String(e.debugName));for(;e!==void 0;){c=e;if(c.retrieve)return c.retrieve(g,{optional:!0});e=e.parent}return pb8};
CT=function(e){return{"\u0275prov":{providedIn:"root",token:Symbol(e),factory:void 0,value:void 0}}};
lkp=function(e){var g=KT;if(!g){switch(e===void 0?3:e){case 0:e=Error("kb");break;case 1:e=Error("mb");break;case 2:e=Error("nb");break;default:e=Error("ob")}throw e;}return g};
At8=function(e){var g=Ou(e);e={};return e[Symbol.dispose]=function(){Ou(g)},e};
uYW=function(){var e=lkp(1),g=M_(e,sF8);if(!TKC(g))return g;e=M_(e,FCU);if(!TKC(e))return e.getOptionalAppContext()};
HtK=function(){var e=lkp(1);e=M_(e,dzq);if(!(TKC(e)||e[zgp]&&!e.__hasBeenSet))return e.value};
QFC=function(e,g){g.nextDisposable=void 0;e.tailDisposable?e.tailDisposable.nextDisposable=g:e.childDisposable=g;e.tailDisposable=g};
UzW=function(e,g){var c={};QFC(e,(c[Symbol.dispose]=g,c))};
eP=function(e){var g=KT;g&&!g.isDisposed&&(QFC(g,e),e.parent=g)};
Ztz=function(e){for(var g=e.childDisposable;g;){var c=g.nextDisposable;om8(g);g=c}e.childDisposable=void 0;e.tailDisposable=void 0};
om8=function(e){if(!e.isDisposed){e.isDisposed=!0;var g;(g=e[Symbol.dispose])==null||g.call(e);delete e.parent;Ztz(e)}};
ytg=function(e){var g={retrieve:function(c){switch(c.\u0275prov.token){case V6V.\u0275prov.token:var k=e.asyncDeps;break;case dzq.\u0275prov.token:k=e.rootElement;break;case t6A.\u0275prov.token:k=e.modelRootElement;break;case sF8.\u0275prov.token:k=e.appContext;break;case BKA.\u0275prov.token:k=e.rendererData;break;case NKW.\u0275prov.token:k=e.injectingConstructor;break;case FCU.\u0275prov.token:k=e.dispatcher}if(k)c=k;else a:{for(k=g.parent;k;){var I=k;if(I.retrieve){c=I.retrieve(c);break a}k=
k.parent}k=c.\u0275prov.token;I=Sn6[k];I!==void 0?c=I:(I=c.\u0275prov.providedIn,c.\u0275prov.factory?(c=c.\u0275prov.factory(),k&&I==="root"&&(Sn6[k]=c)):c=pb8)}return c}};
eP(g);return g};
KCt=function(e){if(typeof document!=="undefined"&&document&&document.getElementById&&(e=document.getElementById(e))){var g=e.tagName.toUpperCase();if(g=="SCRIPT"||g=="LINK")return e}return null};
M6K=function(e,g){if((e=e===void 0?"":e)&&g)throw Error("ub");var c="";var k=_.kp._F_jsUrl;(e=g||KCt(e))&&(c=e.src?e.src:e.getAttribute("href"));if(k&&c){if(k!=c)throw Error("vb`"+k+"`"+c);c=k}else c=k||c;if(!OtU(c))throw Error("wb");return c};
c2K=function(){if(!CwK){CwK=!0;try{var e=M6K(_.kp._F_jsUrl?"":"base-js")}catch(k){return}var g=ede(g26(e)),c=Object.keys(g);c.length!==0&&dlz(function(k){for(var I=_.w(c),J=I.next();!J.done;J=I.next()){J=J.value;for(var q=_.w(Object.keys(g[J])),L=q.next();!L.done;L=q.next())k.addExtraEdge(J,L.value)}})}};
Idp=function(){var e=Object.assign({},km6);Object.getOwnPropertyNames(km6).forEach(function(g){gs[g]!==void 0&&(e[g]=gs[g])});
return e};
J2C=function(e,g){if(gs.enablePerformanceTiming){var c,k;(k=(c=performance).mark)==null||k.call(c,e+"Start__"+g)}};
v2A=function(e,g){if(gs.enablePerformanceTiming){var c,k;(k=(c=performance).measure)==null||k.call(c,e+"__"+g,e+"Start__"+g)}};
wyg=function(e,g,c){var k;return e&&g?e+"__"+g:(k=e!=null?e:g)!=null?k:c};
LNA=function(e){var g=Object.create(qfe);g.debugName=e;!KT||eP(g);return g};
r2W=function(e,g){var c=LNA(g);g=Ou(c);try{e(c)}finally{Ou(g)}return function(){return void om8(c)}};
n2C=function(e){return ca(e)&&adt in e};
Rdv=function(e){for(e=e===void 0?KT:e;e;){if(n2C(e))return e;var g=void 0;e=(g=e.parent)!=null?g:null}return null};
E2K=function(e,g){return Object.is(e,g)};
JV=function(e){var g=I9;I9=e;return g};
bBW=function(e){if(va)throw Error("$");if(I9!==null){var g=I9.producersTail;if(g===void 0||g.producer!==e){var c=void 0,k=I9.recomputing;if(k&&(c=g!==void 0?g.nextProducer:I9.producers,c!==void 0&&c.producer===e)){I9.producersTail=c;c.lastReadVersion=e.version;return}var I=e.consumersTail,J;if(!(J=I===void 0||I.consumer!==I9)){if(k){a:{J=I9;k=J.producersTail;if(k!==void 0){J=J.producers;do{if(J===I){k=!0;break a}if(J===k)break;J=J.nextProducer}while(J!==void 0)}k=!1}k=!k}J=k}J&&(k=ws(I9),c={producer:e,
consumer:I9,nextProducer:c,prevConsumer:I,lastReadVersion:e.version,nextConsumer:void 0},I9.producersTail=c,g!==void 0?g.nextProducer=c:I9.producers=c,k&&WNK(e,c))}}};
a9=function(e){if(!ws(e)||e.dirty)if(e.dirty||e.lastCleanEpoch!==rs)(e.producerMustRecompute(e)||hdt(e))&&e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=rs};
XyK=function(e){if(e.consumers!==void 0){var g=va;va=!0;try{for(var c=e.consumers;c!==void 0;c=c.nextConsumer){var k=c.consumer;k.dirty||(e=void 0,k.dirty=!0,XyK(k),(e=k.consumerMarkedDirty)==null||e.call(k,k))}}finally{va=g}}};
Gm6=function(){var e;return((e=I9)==null?void 0:e.consumerAllowSignalWrites)!==!1};
xfe=function(e){e&&(e.producersTail=void 0,e.recomputing=!0);return JV(e)};
$fq=function(e){e.recomputing=!1;var g=e.producersTail,c=g!==void 0?g.nextProducer:e.producers;if(c!==void 0){if(ws(e)){do c=Dfe(c);while(c!==void 0)}g!==void 0?g.nextProducer=void 0:e.producers=void 0}};
hdt=function(e){for(e=e.producers;e!==void 0;e=e.nextProducer){var g=e.producer,c=e.lastReadVersion;if(c!==g.version)return!0;a9(g);if(c!==g.version)return!0}return!1};
WNK=function(e,g){var c=e.consumersTail,k=ws(e);c!==void 0?(g.nextConsumer=c.nextConsumer,c.nextConsumer=g):(g.nextConsumer=void 0,e.consumers=g);g.prevConsumer=c;e.consumersTail=g;if(!k)for(e=e.producers;e!==void 0;e=e.nextProducer)WNK(e.producer,e)};
Dfe=function(e){var g=e.producer,c=e.nextProducer,k=e.nextConsumer,I=e.prevConsumer;e.nextConsumer=void 0;e.prevConsumer=void 0;k!==void 0?k.prevConsumer=I:g.consumersTail=I;if(I!==void 0)I.nextConsumer=k;else if(g.consumers=k,!ws(g))for(e=g.producers;e!==void 0;)e=Dfe(e);return c};
ws=function(e){return e.consumerIsAlwaysLive||e.consumers!==void 0};
fdv=function(e){var g=Object.create(Yfq);g.computation=e;e=function(){a9(g);bBW(g);if(g.value===nn)throw g.error;return g.value};
e[R9]=g;return e};
mfe=function(e,g){var c=Object.create(jlC);c.value=e;g!==void 0&&(c.equal=g);e=function(){bBW(c);return c.value};
e[R9]=c;return[e,function(k){return iBe(c,k)},
function(k){Gm6()||Pfp(c);iBe(c,k(c.value))}]};
iBe=function(e,g){Gm6()||Pfp(e);if(!e.equal(e.value,g)){e.value=g;e.version++;rs++;XyK(e);var c;(c=pyC)==null||c(e)}};
ldv=function(e,g,c){var k=Object.create(TFV);k.source=e;k.computation=g;c!=void 0&&(k.equal=c);e=function(){a9(k);bBW(k);if(k.value===nn)throw k.error;return k.value};
e[R9]=k;return e};
_.EX=function(e){var g=JV(null);try{return e()}finally{JV(g)}};
A2V=function(e,g){J2C("signalSet",g.debugName);try{e()}finally{v2A("signalSet",g.debugName)}};
slp=function(e,g,c){e=mfe(e,g.equals);var k=e[0],I=k[R9];I.debugName=wyg(g.debugName,c,"[signal]");if(!gs.enablePerformanceTiming)return e;var J=e[1],q=e[2];return[k,function(L){A2V(function(){return void J(L)},I)},
function(L){A2V(function(){return void q(L)},I)}]};
_.Wa=function(e,g,c){return slp(e,g!=null?g:{},c===void 0?"":c)};
uCe=function(e,g){var c=_.w(_.Wa(e,void 0,"cPpJzc"));e=c.next().value;c=c.next().value;e[FNW]=c;e[bu]=g;return e};
dfp=function(e){return!!e&&typeof e==="object"&&Object.getPrototypeOf(e)===Object.prototype};
zdK=function(e){return typeof e==="function"&&FNW in e&&typeof e[FNW]==="function"};
HBC=function(e){if(hV(e))return e.map(function(I){return HBC(I)});
if(dfp(e)){var g={};e=_.w(Object.entries(e));for(var c=e.next();!c.done;c=e.next()){var k=_.w(c.value);c=k.next().value;k=k.next().value;g[c]=HBC(k)}return g}return zdK(e)?e():e};
QlC=function(e,g){Object.defineProperty(e,bu,{get:function(){return g}})};
Xc=function(e,g){if(hV(e)){var c=e.map(function(J){return Xc(J,g)});
QlC(c,g);return c}if(dfp(e)){c={};e=_.w(Object.entries(e));for(var k=e.next();!k.done;k=e.next()){var I=_.w(k.value);k=I.next().value;I=I.next().value;c[k]=Xc(I,g)}QlC(c,g);return c}return uCe(e,g)};
o26=function(){var e={height:0,width:0};if(!dfp(e))throw Error("Lb");var g=Symbol("Mb");return[Xc(e,g),function(c,k){if(c[bu]===g)if(typeof k==="function"){var I=[].concat(_.KY(HBC(c)));k=k(I)||I;Ufz(c,[].concat(_.KY(k)))}else Ufz(c,k);else throw Error("Nb");}]};
Ufz=function(e,g){if(zdK(e))e[FNW](g);else if(hV(e)&&hV(g))g=Xc(g,e[bu]),e.length=0,e.push.apply(e,_.KY(g));else if((dfp(e)||hV(e))&&(hV(g)||typeof g==="object"&&g!==null)){g=_.w(Object.entries(g));for(var c=g.next();!c.done;c=g.next()){var k=_.w(c.value);c=k.next().value;k=k.next().value;var I=e,J=I[c];Object.hasOwn(e,c)?Ufz(J,k):I[c]=Xc(k,e[bu])}}else throw Error("Ob");};
ZB6=function(e){return Object.create(Object.assign({},G7,e))};
nNp=function(){var e;return(e=VWW)!=null?e:VWW=ZB6({consumerAllowSignalWrites:!0})};
_.xF=function(e,g,c){c=c===void 0?"":c;e=fdv(e);var k=e[R9];k.debugName=wyg(g==null?void 0:g.debugName,c,"[computed]");(g==null?void 0:g.equals)!=null&&(k.equal=g.equals);return e};
Dc=function(e){var g=JV(RGK);try{e()}finally{JV(g)}};
ENW=function(e){return ca(e)&&e.name!==void 0&&e.isReactive!==void 0&&e.parent!==void 0};
bbz=function(e,g,c){var k=WZ8(e);$F={name:c?k+" ("+c+")":k,isReactive:e.componentType!==YF,parent:$F};e=g();$F=$F.parent;return e};
fn=function(){var e=$F;return e?e.isReactive:!1};
iu=function(e,g,c){var k=$F;g&&($F=g);try{return c==null?e():e.call(c)}catch(J){e=J;jP(e,$F);if(e!==hGC){Xdp=$F;g=[];for(c=KT;c;){var I=void 0;g.push((I=c.debugName)!=null?I:"[context]");I=void 0;c=(I=c.parent)!=null?I:null}GyC=g.reverse()}hGC=e;throw e;}finally{$F=k}};
jP=function(e,g){try{var c=xZ6(g);if(c&&!e.componentStack&&(e.componentStack=c,gs.enableComponentStacksInErrorMessages)){var k=e.message+"\n\nComponent stack: "+c;e.stack&&(e.stack=e.stack.replace(e.message,k));e.message=k}}catch(I){}};
DZA=function(e){for(var g=0,c="";g<20&&e;)c+="$$XID:"+e.name+"$$ > ",e=e.parent,g++;return c.slice(0,-3)};
xZ6=function(e){return ENW(e)||e===null?DZA(e):gs.enableContextBasedComponentStacks?Rdv(e).getComponentStack().slice(0,20).map(function(g){return"$$XID:"+g+"$$"}).join(" > "):""};
WZ8=function(e){return e.debugName||e.name||"[component]"};
ibK=function(e){switch(e.onInitType){case $Z8:Yg6.schedule(e);break;case fXp:gs.enableQueueEffectAndOnInitInitialRuns?j2z.enqueue(e):j2z.schedule(e);break;default:_.gj(e.onInitType)}};
AO8=function(e){if(!e.isDisposed)switch(e.effectType){case Pa:Pqg.schedule(e);break;case mZv:pdC.schedule(e);break;case T3g:gs.enableQueueEffectAndOnInitInitialRuns||e.version!==0?lXV.enqueue(e):lXV.schedule(e);break;default:_.gj(e.effectType)}};
uSC=function(){if(mP>0)gs.flushRenderEffectsDuringRender&&Pqg.flush();else{for(var e=_.w(s2C),g=e.next();!g.done;g=e.next())g.value.flush();FZt()}};
FZt=function(){_.r(function(e){if(e.nextAddress==1)return e.yield(Promise.resolve(),2);for(var g=_.w(dZt),c=g.next();!c.done;c=g.next())c.value.flush();_.Uh(e)})};
Hbe=function(e){pn=!0;try{for(var g=_.w(e),c=g.next();!c.done;c=g.next()){for(var k=c.value,I=[k],J=k;J.parent!==void 0;)J=J.parent,zGz(J)&&e.has(J)&&I.push(J);for(;I.length>0;){var q=I.pop();e.delete(q);q.run()}}}finally{pn=!1}};
T7=function(e){mP--;if(e){e=_.w(Q2q);for(var g=e.next();!g.done;g=e.next())g.value.clear()}else mP>0||pn&&!gs.flushRenderEffectsDuringRender||uSC()};
UZA=function(e,g,c){e=Object.create(e);g&&(e.fn=g);c&&(e.debugName=c);eP(e);e.componentStack=$F;return e};
oNU=function(e){if(!e.isDisposed){if(va)throw Error("Sb");var g=Ou(e);J2C("effectRun",e.debugName);try{iu(function(){e.dirty=!1;if(!(e.version>0)||hdt(e)){e.version++;var c=xfe(e);try{e.cleanup(),e.fn()}finally{JV(c),e&&$fq(e)}}},e.componentStack,e)}catch(c){throw gs.enableContextBasedComponentStacks&&jP(c),c;
}finally{v2A("effectRun",e.debugName),Ou(g)}}};
_.lu=function(e,g){e=UZA(Zbg,e,g);AO8(e)};
_.AV=function(e,g){e=UZA(VXp,e,g);AO8(e)};
tXK=function(e){return e};
B3W=function(e,g,c){function k(){return I()}
c=c===void 0?"":c;var I=typeof e==="function"?ldv(e,tXK,g==null?void 0:g.equals):ldv(e.source,e.computation,g==null?void 0:g.equals);var J=I[R9];J.debugName=wyg(g==null?void 0:g.debugName,c,"[linkedSignal]");k[R9]=J;return[k,function(q){A2V(function(){a9(J);iBe(J,q);J.dirty=!1;J.lastCleanEpoch=rs},J)},
function(q){A2V(function(){a9(J);Gm6()||Pfp(J);iBe(J,q(J.value));J.dirty=!1;J.lastCleanEpoch=rs},J)}]};
_.sX=function(e){var g=KT;if(g){var c=$F;UzW(g,function(){var k=JV(nNp());try{iu(function(){return void e()},c)}catch(I){throw gs.enableContextBasedComponentStacks&&jP(I),I;
}finally{JV(k)}})}};
uu=function(e,g){var c={};(g===void 0||g)&&eP(c);g=Ou(c);try{e(c)}finally{Ou(g)}return function(){return void om8(c)}};
_.ds=function(e){return typeof e==="function"?e():(e==null?0:e[N3A])?e.get():e};
Sgp=function(e){if(KT)throw Error("pb");uu(e,!1)};
z7=function(e,g){e=Ou(e);try{return _.EX(g)}finally{Ou(e)}};
Ha=function(e,g){var c=xZ6(Xdp),k,I;var J=(I=(k=GyC)==null?void 0:k.slice())!=null?I:[];g={componentStack:c,contextTrace:J,errorSeverity:3,featureFlags:Idp(),tagName:g};return[e,g]};
Obt=function(e,g,c){if(Object.hasOwnProperty.call(yOz,e)&&(e=yOz[e],Object.hasOwnProperty.call(e,g)&&(e=e[g],e instanceof Array))){for(var k=null,I=!1,J=0,q=e.length;J<q;++J){var L=e[J],n=L.contingentAttribute;if(!n)return L.contract;k===null&&(k={});n=Object.hasOwnProperty.call(k,n)?k[n]:k[n]=c(n);if(n===L.requiredValue)return L.contract;n==null&&(I=!0)}if(I)return null}g=KZC[g];return typeof g==="number"?g:null};
ekC=function(e,g,c){var k=null;(e=MXe[e])&&(k=e[g]);return typeof k!=="number"&&((e=MXe["*"])&&(k=e[g]),typeof k!=="number")?!1:!0===Cqg[k][String(c).toLowerCase()]};
cZe=function(e,g){g=Obt(e.toLowerCase(),g,function(){var k;(k=gs.handleError)==null||k.call.apply(k,[gs].concat(_.KY(Ha(Error("Vb"),e.toLowerCase()))))});
if(g===null)return null;var c;return(c=gQC[g])!=null?c:null};
kHV=function(e,g,c){if(c===null||c===void 0)return c;g=g.toLowerCase();e=cZe(e,g);return e===null?c:e(g,c)};
vQA=function(e){var g=IHq,c=e,k="",I="",J=1;e<0&&(e=-e);if(e===Infinity)e=(Infinity*Math.sign(c)).toString();else{for(var q=0;q<JZV.length;q++){var L=JZV[q];J=g[L];if(e>=J||J<=1&&e>.1*J){k=L;break}}k?(k+="B",I=" "):J=1;e=Math.round(c/J*10)/10+I+k}return e};
wPt=function(){};
q4V=function(e,g){for(;e.length>g;)e.pop()};
LVg=function(e){e=Array(e);q4V(e,0);return e};
QU=function(e,g,c){if(c==null)e.removeAttribute(g);else{var k;(k=g.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":g.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?e.setAttributeNS(k,g,c):e.setAttribute(g,c)}};
aHK=function(e,g,c){e=e.style;if(typeof c==="string")e.cssText=c;else{e.cssText="";for(var k in c)if(rZg.call(c,k)){g=e;var I=k,J=c[k];I.indexOf("-")>=0?g.setProperty(I,J):g[I]=J}}};
nQC=function(e,g,c){var k=typeof c;k==="object"||k==="function"?e[g]=c:QU(e,g,c)};
Rkz=function(){var e=new wPt;e[UX.default]=nQC;e.style=aHK;return e};
EQ8=function(e,g,c,k){(k[g]||k[UX.default])(e,g,c)};
bMV=function(e,g,c){g=new WVV(g,c);return e.__incrementalDOMData=g};
hkp=function(e,g){if(e.__incrementalDOMData)return e.__incrementalDOMData;var c=e.nodeType===1?e.localName:e.nodeName,k=e.nodeType===1?e.getAttribute("key"):null;g=bMV(e,c,e.nodeType===1?k||g:null);if(e.nodeType===1&&(e=e.attributes,c=e.length)){k=g._attrsArr||(g._attrsArr=LVg(c*2));for(var I=0,J=0;I<c;I+=1,J+=2){var q=e[I],L=q.value;k[J]=q.name;k[J+1]=L}}return g};
XPq=function(e,g,c,k,I){return g==c&&k==I};
GHC=function(e){for(var g=o9,c=Zc();c!==e;){var k=c.nextSibling;g.removeChild(c);VU.deleted.push(c);c=k}};
Zc=function(){return tV?tV.nextSibling:o9.firstChild};
Ba=function(){tV=Zc()};
$Rq=function(e,g){Ba();var c;a:{if(c=tV){do{var k=c,I=e,J=g,q=hkp(k,J);if(xRe(k,I,q.nameOrCtor,J,q.key))break a}while(g&&(c=c.nextSibling))}c=null}c||(e==="#text"?(e=Nt.createTextNode(""),bMV(e,"#text",null)):(c=Nt,k=o9,typeof e==="function"?c=new e:c=(k=e==="svg"?"http://www.w3.org/2000/svg":e==="math"?"http://www.w3.org/1998/Math/MathML":k==null||hkp(k).nameOrCtor==="foreignObject"?null:k.namespaceURI)?c.createElementNS(k,e):c.createElement(e),bMV(c,e,g),e=c),VU.created.push(e),c=e);e=c;if(e!==
tV){if(DRz.indexOf(e)>=0)for(g=o9,c=e.nextSibling,k=tV;k!==null&&k!==e;)I=k.nextSibling,g.insertBefore(k,c),k=I;else o9.insertBefore(e,tV);tV=e}};
Y4A=function(e,g){$Rq(e,g);o9=tV;tV=null;return o9};
fHv=function(){GHC(null);tV=o9;o9=o9.parentNode};
P0C=function(e,g){g=g===void 0?{}:g;var c=g.matches===void 0?XPq:g.matches;return function(k,I,J){var q=VU,L=Nt,n=DRz,R=SP,W=tV,b=o9,h=xRe;Nt=k.ownerDocument;VU=new jYt(k);xRe=c;SP=[];tV=null;var X=o9=k.parentNode,D,f=iMW.call(k);if((D=f.nodeType===11||f.nodeType===9?f.activeElement:null)&&k.contains(D)){for(f=[];D!==X;)f.push(D),D=D.parentNode||(X?D.host:null);X=f}else X=[];DRz=X;try{return e(k,I,J)}finally{k=VU,yU&&k.deleted.length>0&&yU(k.deleted),Nt=L,VU=q,xRe=h,SP=R,tV=W,o9=b,DRz=n}}};
mRV=function(e,g,c,k){Kn.push(EQ8);Kn.push(e);Kn.push(g);Kn.push(c);Kn.push(k)};
pP6=function(e){$Rq("#text",null);var g=tV;var c=hkp(g);if(c.text!==e){c=c.text=e;for(var k=1;k<arguments.length;k+=1)c=(0,arguments[k])(c);g.data!==c&&(g.data=c)}};
dR6=function(e,g,c){if(c===!1&&TYq.has(g))QU(e,g,null);else if(g!=="idomKey"&&g!=="skip"&&g!=="skipchildren"&&g!=="children"&&g!=="el")if(g.startsWith("on")){if(g[2]!==":")throw Error("Ub`"+g);if(c===void 0||c===null){var k;(k=gs.handleError)==null||k.call.apply(k,[gs].concat(_.KY(Ha(Error("Zb`"+g),e.tagName))));e[g]=void 0}else{var I=g.slice(3);k=fn();if(I==="jsaction"){c=Array.isArray(c)?c:[c];c=_.w(c);for(var J=c.next();!J.done;J=c.next()){J=J.value;if(typeof J!=="object"||J===null||typeof J.selfReg!==
"function")throw Error("bc`"+g);J.selfReg(0,e,k?_.sX:function(){})}}else{if(typeof c!=="object"||c===null)throw Error("$b`"+g+"`"+typeof c);
if(typeof c.getFn!=="function")throw Error("ac`"+g+"`"+Object.keys(c));if(c.selfReg)c.selfReg(0,e,I,k?_.sX:function(){});
else if(k&&e["on"+I]===void 0){var q=c.getFn(0);e.addEventListener(I,q);_.sX(function(){return void e.removeEventListener(I,q)})}else if(k||!lHg.includes(I))e["on"+I]=c.getFn(0)}}}else{if(g.startsWith("data-")&&typeof c==="string")try{c=AZz(c)}catch(L){c="zSoyz"}typeof c!=="function"||e._disposeEffects!=null?((k=g.startsWith("prop:"))&&(g=g.slice(5)),gs.enableAttributeSanitization&&(k&&sYK(e.tagName)||(c=kHV(e.tagName,g,c))),g==="style"?("function"==typeof _.OX&&c instanceof _.OX&&(c=c.toString()),
FVK(e,g,c)):k?e[g]=c:udz(e,g,c)):(e._signalProps||(e._signalProps=[]),e._signalValues||(e._signalValues=[]),e._signalProps.push(g))}};
zkK=function(e,g,c){c=(c===void 0?{}:c).isReactive;if(g==null?0:g.el){var k=g.el,I;(I=k.onRender)==null||I.call(k,e);e._disposeRef||(e._disposeRef=function(){var J;(J=k.onUnmount)==null||J.call(k);delete e._disposeRef},c&&_.sX(function(){var J;
(J=e._disposeRef)==null||J.call(e)}))}};
sYK=function(e){return e.length>0&&e.includes("-")&&!HMC.includes(e.toLowerCase())};
QY8=function(e){return ca(e)&&Mt in e};
URz=function(e){return QY8(e)?e[Mt].flattened:e};
oQp=function(e,g){var c=_.Mb.apply(2,arguments),k;g=(k=g)!=null?k:{};k={};return k.type=e,k.props=g,k.children=c,k[Cn]=!0,k};
_.es=function(e){return e.children};
gH=function(e){var g=ZM6!==oQp;ZM6=e?Vre:oQp;return g};
kz=function(e){return _.SK(e)?"nodeType"in e:!1};
I7=function(){return document.createTextNode("")};
J_=function(e){e=document.createTextNode(String(e));e._isSignalTextNode=!0;return e};
BYU=function(e){return e!=null&&e.contentKind===vV||e instanceof gy||trA(e)};
NYp=function(e){var g=document.createElement("div");if(trA(e)&&wQV(e))_.WA(g,wQV(e));else if(e instanceof gy)_.WA(g,e);else if(e!=null&&e.contentKind===vV){if(e.contentKind!==vV)throw Error("Yb");e=kW(e.toString());_.WA(g,e)}e=_.w(g.childNodes);for(var c=e.next();!c.done;c=e.next())c.value._isSafeOrSanitizedHtmlNode=!0;return g};
wH=function(e){e=typeof e;return e==="string"||e==="number"||e==="boolean"};
S4A=function(e){return e instanceof zT||tj(e)||e instanceof X1||"function"==typeof _.OX&&e instanceof _.OX};
yZg=function(e,g){var c=e.parentElement;if(!c)return g;c.replaceChild(g,e);return g};
KV6=function(e,g){var c=e[0].parentElement;if(c)if(e[0].previousSibling||e[e.length-1].nextSibling){c.insertBefore(g,e[0]);for(var k=e.length-1;k>=0;k--)c.removeChild(e[k])}else c.textContent="",c.appendChild(g);return g};
OM6=function(e,g){if(e[0].parentElement)for(var c=e[0].parentElement,k=g.length,I=e.length,J=k,q=0,L=0,n=e[I-1].nextSibling,R=null;q<I||L<J;)if(e[q]===g[L])q++,L++;else{for(;e[I-1]===g[J-1];)I--,J--;if(I===q)for(var W=J<k?L?g[L-1].nextSibling:g[J-L]:n;L<J;){var b=g[L++];c.insertBefore(b,W)}else if(J===L)for(;q<I;)W=e[q],R&&R.has(W)||c.removeChild(W),q++;else if(e[q]===g[J-1]&&g[L]===e[I-1])W=e[--I].nextSibling,c.insertBefore(g[L++],e[q++].nextSibling),c.insertBefore(g[--J],W),e[I]=g[J];else{if(!R)for(R=
new Map,W=L;W<J;)R.set(g[W],W++);W=R.get(e[q]);if(W==null)c.removeChild(e[q]),q++;else if(L<W&&W<J){b=q;for(var h=1,X=void 0;++b<I&&b<J&&(X=R.get(e[b]))!=null&&X===W+h;)h++;if(h>W-L)for(b=e[q];L<W;)c.insertBefore(g[L++],b);else c.replaceChild(g[L++],e[q++])}else q++}}return g};
C0W=function(e){if(Array.isArray(e)){if(e.length>1)throw Error("lc`"+e.length+"`"+e.map(MrU).join(", "));e=e[0]}if(e==null)return null;if(!(e instanceof _.ry)){var g,c;if((g=window)==null?0:(c=g.trustedTypes)==null?0:c.isScript(e))throw Error("kc");if(String(e).trim().length===0)return null;throw Error("mc`"+MrU(e));}return e};
eot=function(e,g){g=C0W(g);g!==null&&_.RP(e,g)};
gfz=function(e){if(Array.isArray(e)){if(e.length>1)throw Error("nc`"+e.length+"`"+e.map(MrU).join(", "));e=e[0]}if(e==null)return null;if(!(e instanceof X1)){if(String(e).trim().length===0)return null;throw Error("oc`"+MrU(e));}return e};
crg=function(e,g){g=gfz(g);g!==null&&(e.textContent=sPp(g))};
MrU=function(e){return"("+typeof e+") "+(e!=null&&typeof e==="object"?e.constructor.name:typeof e)+" "+e};
kj8=function(){};
n4=function(e,g){g=g===void 0?{}:g;var c=I5p(),k=!0,I,J=!!gs.legacyTriggerSoyRendererEvents;J&&(I=uYW());_.lu(function(){var q=!k&&g.isControlFlowComponent&&J,L=q?c[Mt].flattened[0].parentElement:void 0;k=!1;rH.setUp();g.isControlFlowComponent&&mP++;var n=c[0],R=c[Mt].flattened,W=gH(!0);try{var b=e(),h=JrC(n,b,c);Array.isArray(h)||(c[Mt].flattened=[h]);var X=c[Mt].flattened;if(R&&(!Array.isArray(R)||R.length!==0)){var D=Array.isArray(R)?R[0]:R,f=D[a7],l=D._disposeEffects;D._disposeEffects=void 0;
D=Array.isArray(X)?X[0]:X;D[a7]=f;D[a7]&&(D[a7].numNodes=D===X?1:X.length);D._disposeEffects=l}c[0]=h;g.isControlFlowComponent&&T7(!1)}catch(A){throw g.isControlFlowComponent&&T7(!0),A;}finally{gH(W),rH.tearDown()}q&&(q=I,q!=null||(q=_.mzv(document).getAppContext()),q.get(vfC).JSC$30119_getEventTarget().dispatchEvent(new wmV(qM8,L,vV)))},g.debugName);
return c};
JrC=function(e,g,c){for(;typeof g==="function";)g=g();if(g!=null&&g[Cn]){var k,I,J;(J=gs.handleError)==null||J.call.apply(J,[gs].concat(_.KY(Ha(Error("pc`"+((k=g.type)==null?void 0:k.TAG_NAME)),(I=g.type)==null?void 0:I.TAG_NAME))))}if(e==null)return g==null?I7():wH(g)?J_(g):S4A(g)?J_(g.toString()):kz(g)?g:g.length===0?I7():LtC(g,c);if(kz(e)){if(g==null)return yZg(e,I7());if(wH(g))return rrz(e,g);if(S4A(g))return rrz(e,g.toString());if(kz(g))return yZg(e,g);if(g.length===0)return yZg(e,I7());g=LtC(g,
c);OM6([e],c[Mt].flattened);return g}e=R7(e);if(g==null)return KV6(e,I7());if(wH(g))return KV6(e,J_(g));if(S4A(g))return KV6(e,J_(g.toString()));if(kz(g))return OM6(e,[g])[0];if(g.length===0)return KV6(e,I7());g=LtC(g,c);OM6(e,c[Mt].flattened);return g};
rrz=function(e,g){e.nodeType===Node.TEXT_NODE?e.textContent!==String(g)&&(e.textContent=String(g)):e=yZg(e,J_(g));return e};
R7=function(e,g,c){return a5V(e,g!=null?g:[],c===void 0?!1:c)};
LtC=function(e,g){var c=R7(e,void 0,!0);if(c.length===0)return I7();g[Mt].flattened=c;return e};
a5V=function(e,g,c,k,I){g=g===void 0?[]:g;c=c===void 0?!1:c;I=I===void 0?-1:I;if(e==null)return g;if(e instanceof EI){var J=e.render();return a5V(J,g,c,k,I)}if(kz(g)&&g.nodeType===Node.ELEMENT_NODE)switch(g.tagName){case "SCRIPT":eot(g,e);return;case "STYLE":crg(g,e);return}wH(e)&&(e=J_(e),k&&c&&(k[I]=e));if(BYU(e)){c=NYp(e);c=Array.from(c.childNodes);c=_.w(c);for(J=c.next();!J.done;J=c.next())nfW(g,J.value);return g}S4A(e)&&(e=J_(e.toString()),k&&c&&(k[I]=e));if(kz(e))return nfW(g,e);if(Array.isArray(e)){for(J=
0;J<e.length;J++)a5V(e[J],g,c,e,J);return g}if(typeof e==="function"){J=n4(function(){var L=e();return L!=null&&!wH(L)&&BYU(L)?(L=NYp(L),Array.from(L.childNodes)):L},{debugName:"qmF2ne",
debugFn:e})[0];if(Array.isArray(J)){c=_.w(J);for(J=c.next();!J.done;J=c.next())nfW(g,J.value);return g}k&&c&&(k[I]=J);return nfW(g,J)}if(e!=null&&e[Cn]){k=e;I=gH(!0);var q=ZM6;try{J=q.apply(null,[k.type,k.props].concat(_.KY(k.children)))}finally{gH(I)}return a5V(J,g,c)}(q=gs.handleError)==null||q.call.apply(q,[gs].concat(_.KY(Ha(Error("qc")))));return g};
I5p=function(e){var g={};g=Object.assign([],(g[Mt]={flattened:[]},g));if(!e)return g;g[0]=LtC(e,g);return g};
nfW=function(e,g){Array.isArray(e)?e.push(g):e.appendChild(g);return e};
WV=function(e){if(!gs.enableLazyTsx)return e;if(Array.isArray(e)){for(var g=0;g<e.length;g++)e[g]=WV(e[g]);return e}return e instanceof EI?(e=e.render(),WV(e)):e};
EfC=function(e,g){var c,k,I=WZ8(e),J=function(X){k=X;X=gH(!0);var D=JV(bo);J2C("render",I);try{c=WV(e(g))}finally{v2A("render",I),JV(D),gH(X)}};
J=gs.enableContextPerComponent?r2W(J,I):uu(J,gs.alwaysTrackContexts||!!KT);n2C(k);if(!g.renderedFromIdom){var q=Ou(k);try{return Roe(e,g,c),c}finally{Ou(q)}}!QY8(c)&&Array.isArray(c)&&(c=I5p(c));var L=URz(c);q=Array.isArray(L)?L[0]:L;var n=!1;if(q){var R,W=(R=g==null?void 0:g.idomKey)!=null?R:e;R=L!==q;q._disposeEffects=J;var b=q[a7]||{},h=QY8(c)?c:b.sourceDynamicRange;Object.assign(b,{key:W,numNodes:R?L.length:1,context:k,higherOrder:!!q[a7],sourceDynamicRange:h});q[a7]=b}else n=!0;(function(){var X=
Ou(k);try{Roe(e,g,L)}finally{Ou(X)}})();
n&&J();return c};
WtV=function(e){var g={},c;for(c in e)g={prev$jscomp$24:void 0,next$jscomp$34:void 0},g.prev$jscomp$24=h_[c],g.next$jscomp$34=e[c],h_[c]=function(k){return function(){var I=_.Mb.apply(0,arguments);k.prev$jscomp$24.apply(null,_.KY(I));k.next$jscomp$34.apply(null,_.KY(I))}}(g)};
b_A=function(){if(fn())throw Error("rc");return Xq};
hov=function(e,g){if(!e.__unmounted&&g){e.__unmounted=!0;try{e.didUnmount()}catch(I){var c,k;(k=gs.handleError)==null||k.call.apply(k,[gs].concat(_.KY(Ha(I,(c=e.__type)==null?void 0:c.TAG_NAME))))}h_.didUnmount(e);e.el=null;g.__instance&&delete g.__instance}};
Gjt=function(e,g,c){e._signalProps!=null&&e._disposeEffects==null&&((c===void 0?0:c)?e._disposeEffects=uu(function(){return void XmC(e,g)},gs.alwaysTrackContexts||!!KT):XmC(e,g))};
XmC=function(e,g){_.lu(function(){for(var c=e._signalProps,k=e._signalValues,I=0;I<c.length;I++){var J=c[I],q=g[J]();k[I]!==q&&(k[I]=q,dR6(e,J,q))}},"e3YVbb")};
xoe=function(e,g,c){var k,I=[];e._disposeEffects=uu(function(){_.lu(function(){var J=c();if(J===null||J===void 0)J="";if(wH(J)||J===null)k!=null||(k=document.createTextNode("")),k.parentNode!==e&&(k._isSignalTextNode=!0,e.insertBefore(k,g)),k.textContent=String(J);else if(BYU(J)){for(var q=I.length>0?I[I.length-1].nextSibling:g,L=_.w(I),n=L.next();!n.done;n=L.next())e.removeChild(n.value);J=NYp(J);I=Array.from(J.childNodes);J=_.w(I);for(L=J.next();!L.done;L=J.next())e.insertBefore(L.value,q)}else throw n=
(L=(q=$F)==null?void 0:q.name)!=null?L:"unknown",Error("gc`"+n+"`"+typeof J);},"VvDgC")},gs.alwaysTrackContexts||!!KT)};
YMW=function(e,g){var c=_.Mb.apply(2,arguments);g!=null||(g={});return!gs.enableLazyTsx||$F!=null&&!fn()?Dop(e,g,c):new $oC(e,g,c)};
Dop=function(e,g,c){if(e===_.es)return c;if(typeof e==="function")return $F&&!fn()&&(g.renderedFromIdom=!0),bbz(e,function(){c.length>0&&(g.children=c.length===1?c[0]:c);if(e.componentType===YF){var J;r2W(function(){var q=g;if(e.componentType!==YF)J=!1;else{q||(q={});var L=new Gr(q,e),n=JV(bo);try{var R=L.render(q)}finally{JV(n)}R instanceof HTMLElement?(R.__instance=L,L.el=R,L.__type=e,e.TAG_NAME=R.tagName.toLowerCase(),h_.didPatch(L),J=R):J=R}},e.name);
if(J)return J}return EfC(e,g)},g.debugInstance);
var k=f5W(e,g),I;for(I in g)dR6(k,I,g[I]);Gjt(k,g);R7(c,k);zkK(k,g,{isReactive:!0});jCg(k,g);return k};
f5W=function(e,g){e=(i_v.has(e.toLowerCase())?0:PcV.has(e.startsWith("svg:")?e.replace("svg:",""):e))?document.createElementNS("http://www.w3.org/2000/svg",e.startsWith("svg:")?e.replace("svg:",""):e):moA(e,g)||document.createElement(e);e[pmg]=!0;return e};
TEp=function(e){if(e){var g;(g=e._disposeRef)==null||g.call(e);var c;(c=e._disposeEffects)==null||c.call(e);e.__instance&&e.__instance instanceof xz&&(g=e.__instance,hov(g,e),g instanceof Gr&&g.disposeEffects());for(g=0;g<e.childNodes.length;g++)TEp(e.childNodes[g])}};
Arv=function(e){l5K.push(e)===1&&requestAnimationFrame(function(){setTimeout(function(){var g=[].concat(_.KY(l5K));l5K=[];g=_.w(g);for(var c=g.next();!c.done;c=g.next()){c=c.value;try{for(var k=0;k<c.length;k++)TEp(c[k])}catch(I){k=c=void 0,(k=(c=gs).handleError)==null||k.call.apply(k,[c].concat(_.KY(Ha(I))))}}})})};
_.a=function(e,g){return ZM6.apply(null,[e,g].concat(_.KY(_.Mb.apply(2,arguments))))};
_.DC=function(e){return e};
_.$z=function(e){return{isDefault:!0,children:e.children}};
_.E=function(e){var g=e.cond;if(g===void 0)return e.else&&e.else();var c=_.xF(function(){return!!g()},void 0,"JHVi8"),k=function(){var J=g();
if(!J){var q;(q=gs.handleError)==null||q.call.apply(q,[gs].concat(_.KY(Ha(sCg.nonNullableCondIsNull()))))}return J},I;
return n4(function(){var J=c(),q;uu(function(){var L=JV(bo);try{q=WV(J?e.then(k):e.else&&e.else())}finally{JV(L)}},!0);
return q},{debugName:(I=e.debugInstance)!=null?I:"RlDudd",
debugFn:e.then,isControlFlowComponent:!0})};
Ftg=function(e){return _.E(e)};
_.Yz=function(e){return e.keyBy==="INDEX"?u7C(e):dov(e)};
zoK=function(e){e=_.w(e);for(var g=e.next();!g.done;g=e.next()){var c=void 0;(c=g.value)==null||c()}};
dov=function(e){var g=e.keyBy===void 0||e.keyBy==="REFERENCE",c=g?function(b){return b}:e.keyBy,k=[],I=[],J=[],q=[],L=[],n=[],R=!0;
_.sX(function(){zoK(q)});
var W;return n4(function(){var b=H_K(e),h=b.length;if(h===0){if(k.length===0&&!R)return J;zoK(q);k=b;I=[];for(b=0;b<k.length;b++)I.push(c(k[b]));J=[];q=[];L=[];n=[];e.fallback&&(q[0]=QCU(function(){J[0]=WV(e.fallback())}));
R=!1;return J}for(var X=new UoU,D=k.length-1;D>=0;D--)X.push(I[D],D);D=Array(h);for(var f=Array(h),l=Array(h),A=Array(h),d=Array(g?0:h),S={i$jscomp$453:0};S.i$jscomp$453<h;S={i$jscomp$453:S.i$jscomp$453,item$jscomp$104:void 0,key$jscomp$565:void 0},S.i$jscomp$453++){S.item$jscomp$104=b[S.i$jscomp$453];S.key$jscomp$565=c(S.item$jscomp$104);var V=X.pop(S.key$jscomp$565);V!=null?(l[S.i$jscomp$453]=J[V],f[S.i$jscomp$453]=I[V],D[S.i$jscomp$453]=q[V],A[S.i$jscomp$453]=L[V],g||(d[S.i$jscomp$453]=n[V]),Dc(function(Q){return function(){A[Q.i$jscomp$453](Q.i$jscomp$453);
if(!g)d[Q.i$jscomp$453](Q.item$jscomp$104)}}(S)),delete q[V]):D[S.i$jscomp$453]=QCU(function(Q){return function(){var y=_.w(_.Wa(Q.i$jscomp$453,void 0,"Fqk1zd")),O=y.next().value;
y=y.next().value;A[Q.i$jscomp$453]=y;f[Q.i$jscomp$453]=Q.key$jscomp$565;if(g)l[Q.i$jscomp$453]=WV(e.children(Q.item$jscomp$104,O));else{var Jq=_.w(_.Wa(Q.item$jscomp$104,void 0,"GBj5de"));y=Jq.next().value;Jq=Jq.next().value;d[Q.i$jscomp$453]=Jq;l[Q.i$jscomp$453]=WV(e.children(y,O))}}}(S))}zoK(q);
k=b;I=f;J=l;q=D;L=A;n=d;R=!1;return l},{debugName:(W=e.debugInstance)!=null?W:"nsTGHd",
debugFn:e.each,isControlFlowComponent:!0})};
u7C=function(e){var g=[],c=[],k=[],I=[],J=!1;_.sX(function(){zoK(I)});
var q;return n4(function(){var L=H_K(e);J&&L.length>0&&(I.pop()(),g.pop(),J=!1);for(var n=Array(L.length),R={i$jscomp$454:0};R.i$jscomp$454<L.length;R={i$jscomp$454:R.i$jscomp$454},R.i$jscomp$454++)if(R.i$jscomp$454<g.length)g[R.i$jscomp$454]!==L[R.i$jscomp$454]&&(Dc(function(b){return function(){return void c[b.i$jscomp$454](L[b.i$jscomp$454])}}(R)),g[R.i$jscomp$454]=L[R.i$jscomp$454]),n[R.i$jscomp$454]=k[R.i$jscomp$454];
else{var W=QCU(function(b){return function(){g[b.i$jscomp$454]=L[b.i$jscomp$454];var h=_.w(_.Wa(L[b.i$jscomp$454],void 0,"JMMLmd")),X=h.next().value;h=h.next().value;c[b.i$jscomp$454]=h;n[b.i$jscomp$454]=WV(e.children(X,b.i$jscomp$454))}}(R));
I[R.i$jscomp$454]=W}for(;g.length>L.length;)g.pop(),I.pop()(),c.pop();L.length===0&&!J&&e.fallback&&(R=QCU(function(){n[0]=WV(e.fallback())}),I[0]=R,J=!0);
return k=n},{debugName:(q=e.debugInstance)!=null?q:"nsTGHd",
isControlFlowComponent:!0})};
H_K=function(e){e=e.each();return Array.isArray(e)?e:Array.from(e)};
QCU=function(e){var g=KT;return uu(function(c){var k=JV(bo);try{c.parent=g,e(c)}finally{JV(k)}},!1)};
_.f4=function(e){var g=ofe(e),c=_.xF(function(){return Z_A(g)},void 0,"F1PF4"),k;
return n4(function(){var I=c(),J;uu(function(){var q=JV(bo);try{J=WV(I())}finally{JV(q)}});
return J},{debugName:(k=e.debugInstance)!=null?k:"vI1rtf",
isControlFlowComponent:!0})};
ofe=function(e){e=e.children;return Array.isArray(e)?e:[e]};
VVg=function(e){var g=e.props;e=e.getChildren()[0];return g.when?{when:g.when,children:e}:{isDefault:!0,children:e}};
Z_A=function(e){var g=function(){return null};
e=_.w(e);for(var c=e.next();!c.done;c=e.next())if(c=c.value,c!=null&&c[Cn]&&(c=c.type===_.$z?{isDefault:!0,children:c.children[0]}:{when:c.props.when,children:c.children[0]}),c instanceof EI&&(c=VVg(c)),c.isDefault)g=c.children;else if(c.when())return c.children;return g};
tV8=function(e){var g=null,c,k={get value(){var J,q;(q=(J=I).validateGetValue)==null||q.call(J);return I.__value},set value(J){var q,L;(L=(q=I).validateSetValue)==null||L.call(q,J);I.__value=J;I.__hasBeenSet=!0}},I=(k.__value=null,k.__hasBeenSet=!1,k.__hasErrored=!1,k.onRender=function(J){if(c&&J!==c){c._disposeRef=void 0;var q;(q=g)==null||q()}c=J;g=e(J)||null},k.onUnmount=function(){var J;
(J=g)==null||J();g=I.value=null},k[zgp]=!0,k);
return I};
js=function(e){return typeof e==="symbol"};
NEV=function(e){var g=b_A();if(g==null)throw BEv.PRIMITIVE_INVALID_HOOK_CALL();var c=g.hookCounter++;g.hooks||(g.hooks=[]);var k=g.hooks;k[c]||(k[c]={key:e,host:g});if(e!==k[c].key){if(g.__type){var I;e=(I=g.__type)==null?void 0:I.name}else e=g instanceof Gr?WZ8(g.functionComponent):"<"+g.el.tagName.toLowerCase()+">";throw BEv.OUT_OF_ORDER_HOOK_CALL(e);}return k[c]};
SMe=function(e,g){return!e||e.length!==(g==null?void 0:g.length)||e.some(function(c,k){return c!==g[k]})};
yrg=function(e,g){if(fn())return e();var c=NEV("useMemoInternal");SMe(c.deps,g)&&(c.deps=g,c.value=e());return c.value};
KtW=function(e,g){return yrg(e,g)};
_.io=function(e,g){return O_V(e,!1,g)};
_.PV=function(e,g){return O_V(e,!0,g)};
O_V=function(e,g,c){return fn()?MVg(e,g,c):Ccg(e,g,c)};
Ccg=function(e,g,c){return yrg(function(){return MVg(e,g,c)},[])};
MVg=function(e,g,c){var k=tV8(function(I){k.value=I;var J=function(){var q=JV(null);try{return c==null?void 0:c(I)}finally{JV(q)}}();
return function(){J==null||J()}});
k.__expectedTagName=e;k.__optional=g;k.isIdom=!fn();return k};
eme=function(e,g){var c;g=uu(function(){var k=gH(!0);mP++;try{c=R7(e()),T7(!1)}catch(I){throw T7(!0),I;}finally{gH(k)}},g===void 0?!1:g);
return[c,g]};
_.p4=function(e,g,c){c!=null||(c={});c=c.appContext;var k=!!gs.legacyTriggerSoyRendererEvents;rH.setUp();try{var I=gnz(e,g,c);k&&(g=c,g!=null||(g=_.mzv(document).getAppContext()),g.get(vfC).JSC$30119_getEventTarget().dispatchEvent(new wmV(c5z,e,vV)));rH.log(e);return I}finally{rH.tearDown()}};
gnz=function(e,g,c){var k=iu(function(){var I=JV(bo);try{return uu(function(){var J=_.mzv(_.be(e)),q;var L=ytg({rootElement:{value:e},appContext:c||(J==null?void 0:(q=J.getOptionalAppContext)==null?void 0:q.call(J)),dispatcher:J});J=Ou(L);L=gH(!0);mP++;try{R7(g(),e),T7(!1)}catch(n){throw T7(!0),n;}finally{gH(L),Ou(J)}},!1)}catch(J){throw gs.enableContextBasedComponentStacks&&jP(J),J;
}finally{JV(I)}});
e[kuW]=!0;return function(){e.textContent="";k();e[kuW]=!1}};
_.Tr=function(e){if(zGz(I9)){var g;(g=gs.handleError)==null||g.call.apply(g,[gs].concat(_.KY(Ha(Error("fc")))))}var c=KT,k=$F;ibK({onInitType:fXp,run:function(){if(c&&!c.isDisposed){var I=Ou(c);try{iu(function(){return void e()},k)}catch(J){throw gs.enableContextBasedComponentStacks&&jP(J),J;
}finally{Ou(I)}}}})};
vn8=function(e){var g=lkp(2),c=new Set;_.sX(function(){return void c.forEach(function(k){return void k()})});
return function(k){var I=Ou(g);try{var J=IOC(J5v(e),k);c.add(J);return function(){J();c.delete(J)}}finally{Ou(I)}}};
_.whK=function(e){var g=e.children;var c=e.root;_.Tr(function(){var k=vn8(c)(g);_.sX(k)});
return document.createTextNode("")};
IOC=function(e,g){var c=qVz(e);(e=HtK())&&jF8(c,e);rH.setUp();g=_.w(eme(g,!0));e=g.next().value;var k=g.next().value;g=_.w(e);for(e=g.next();!e.done;e=g.next())c.appendChild(e.value);rH.log(c);rH.tearDown();return function(){k();c.remove()}};
J5v=function(e){if(typeof e==="string")return e=document.querySelector(e),_.qvA(e),e;if(kz(e)&&e.nodeType===Node.ELEMENT_NODE)return e;if(!e.__value&&!e.__optional){var g=BEv.USE_ELEMENT_NOT_ASSIGNED(e.__expectedTagName);e.__hasErrored=!0;throw g;}return e.value};
qVz=function(e){var g=document.createElementNS(e.namespaceURI,e.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");return e.appendChild(g)};
L7q=function(e,g){var c=NEV("onChange"),k=b_A();SMe(c.deps,g)&&(c.deps=g,c.pendingEffect=e,k.__syncEffects||(k.__syncEffects=[]),k.__syncEffects.push(c))};
r5W=function(e,g){L7q(function(){return _.EX(e)},g)};
_.lo=function(e){fn()?_.Tr(function(){_.EX(e)}):L7q(function(){return _.EX(e)},[])};
nnt=function(e){var g=[].concat(_.KY(e));e.length=0;e=_.w(g);for(g=e.next();!g.done;g=e.next()){g=g.value;aOt(g);var c=g.pendingEffect;g.pendingEffect=null;if(c=c==null?void 0:c())g.pendingCleanup=c}};
aOt=function(e){var g=e.pendingCleanup;e.pendingCleanup=null;g==null||g()};
Rm6=function(e){return yrg(function(){return{value:e}},[])};
_.A_=function(e,g){if(!e)return null;e=Object.keys(e);e=_.w(e);for(var c=e.next();!c.done;c=e.next()){c=c.value;var k=c.toLowerCase();if(k.indexOf(g,k.length-g.length)>-1)return c}return null};
_.Fq=function(){var e=arguments,g=_.sI;e.length>1?g[e[0]]=e[1]:e.length===1&&Object.assign(g,e[0])};
_.uo=function(e,g){return e in _.sI?_.sI[e]:g};
_.dH=function(e,g){return!!_.uo(e,g)};
Enp=function(e){var g=_.sI.EXPERIMENT_FLAGS;return g?g[e]:void 0};
bAA=function(e){W7K.forEach(function(g){return g(e)})};
_.HV=function(e){return e&&window.yterr?function(){try{return e.apply(this,arguments)}catch(g){_.zr(g)}}:e};
_.zr=function(e){var g=_.Q0("yt.logging.errors.log");g?g(e,"ERROR",void 0,void 0,void 0,void 0,void 0):(g=_.uo("ERRORS",[]),g.push([e,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Fq("ERRORS",g));bAA(e)};
_.UI=function(e,g,c,k,I){var J=_.Q0("yt.logging.errors.log");J?J(e,"WARNING",g,c,k,void 0,I):(J=_.uo("ERRORS",[]),J.push([e,"WARNING",g,c,k,void 0,I]),_.Fq("ERRORS",J))};
Xhe=function(e,g){g=e.split(g);for(var c={},k=0,I=g.length;k<I;k++){var J=g[k].split("=");if(J.length===1&&J[0]||J.length===2)try{var q=hme(J[0]||""),L=hme(J[1]||"");if(q in c){var n=c[q];Array.isArray(n)?_.NU(n,L):c[q]=[n,L]}else c[q]=L}catch(h){var R=h,W=J[0],b=String(Xhe);R.args=[{key:W,value:J[1],query:e,method:Guz===b?"unchanged":b}];xcv.hasOwnProperty(W)||_.UI(R)}}return c};
Dct=function(e){var g=[];_.n0.forEach(e,function(c,k){var I=_.Kr(k);c=Array.isArray(c)?c:[c];_.o7(c,function(J){J==""?g.push(I):g.push(I+"="+_.Kr(J))})});
return g.join("&")};
_.ZC=function(e){e.charAt(0)==="?"&&(e=e.substring(1));return Xhe(e,"&")};
_.V0=function(e){return e.indexOf("?")!==-1?(e=(e||"").split("#")[0],e=e.split("?",2),_.ZC(e.length>1?e[1]:e[0])):{}};
_.t_=function(e,g){return $cW(e,g||{},!0)};
YVe=function(e,g){return $cW(e,g||{},!1)};
$cW=function(e,g,c){var k=e.split("#",2);e=k[0];k=k.length>1?"#"+k[1]:"";var I=e.split("?",2);e=I[0];I=_.ZC(I[1]||"");for(var J in g)if(c||!_.n0.containsKey(I,J))I[J]=g[J];return _.MO(e,I)+k};
BV=function(e){if(!g)var g=window.location.href;var c=_.oR(e)[1]||null,k=_.V9(e);return c&&k?Sw(e,g):k?_.V9(g)===k&&(Number(_.oR(g)[4]||null)||null)===(Number(_.oR(e)[4]||null)||null):!0};
_.jtU=function(e){e=fOp(e);return e===null?!1:e[0]==="com"&&e[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
fOp=function(e){e=_.V9(e);return e!==null?e.split(".").reverse():null};
hme=function(e){return e&&e.match(iAC)?e:y9(e)};
_.NN=function(e){return new PBe(e)};
_.Ss=function(){mcV||(mcV=new phC);return mcV};
lO8=function(){var e=T$v;return function(){var g=_.Ss();if(!g.resolve(_.NN(e))){var c={};g.addProvider((c.provide=e,c.useClass=e,c[y0]=void 0,c))}return g.resolve(e)}};
_.K4=function(e,g){var c,k;_.r(function(I){c=_.Ss();return(k=c.resolve(_.NN(e)))?(g(k),I.return(Promise.resolve(k))):I.return(c.resolve(new A5W(e)).then(function(J){g(J);return J}))})};
_.G=function(e){e=OI(e);return typeof e==="string"&&e==="false"?!1:!!e};
_.MN=function(e,g){e=OI(e);return e===void 0&&g!==void 0?g:Number(e||0)};
stW=function(e){e=OI(e);return Array.isArray(e)?_.R4(e,function(g){return Number(g||0)}):[Number(e||0)]};
_.C4=function(e){e=OI(e);return e!==void 0?String(e):""};
_.g1=function(e){e=OI(e);return Array.isArray(e)?_.R4(e,function(g){return String(g||"")}):[String(e||"")]};
F7U=function(){return _.uo("EXPERIMENTS_TOKEN","")};
OI=function(e){return _.uo("EXPERIMENT_FLAGS",{})[e]};
ubq=function(){for(var e=[],g=_.uo("EXPERIMENTS_FORCED_FLAGS",{}),c=_.w(Object.keys(g)),k=c.next();!k.done;k=c.next())k=k.value,e.push({key:k,value:String(g[k])});c=_.uo("EXPERIMENT_FLAGS",{});k=_.w(Object.keys(c));for(var I=k.next();!I.done;I=k.next())I=I.value,I.startsWith("force_")&&g[I]===void 0&&e.push({key:I,value:String(c[I])});return e};
zmV=function(){if(!dcC)return null;var e=dcC();return"open"in e?e:null};
_.HAC=function(e){switch(_.cQ(e)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.cQ=function(e){return e&&"status"in e?e.status:-1};
_.k1=function(e,g){typeof e==="function"&&(e=_.HV(e));return window.setTimeout(e,g)};
_.I$=function(e,g){typeof e==="function"&&(e=_.HV(e));return window.setInterval(e,g)};
_.JK=function(e){window.clearTimeout(e)};
Ucq=function(e){e=_.V0(e);for(var g=_.w(Qtv),c=g.next();!c.done;c=g.next())if(e[c.value]!==void 0)return!0;return!1};
V4U=function(e,g,c,k,I,J,q,L,n){c=c===void 0?"GET":c;k=k===void 0?"":k;L=L===void 0?!1:L;var R=zmV();if(!R)return null;var W=function(){(R&&"readyState"in R?R.readyState:0)===4&&g&&_.HV(g)(R)};
"onloadend"in R?R.addEventListener("loadend",W,!1):R.onreadystatechange=W;_.G("debug_forward_web_query_parameters")&&(e=onV(e,window.location.search));R.open(c,e,!0);J&&(R.responseType=J);q&&(R.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(k instanceof FormData));if(I=ZAg(e,I))for(var b in I)R.setRequestHeader(b,I[b]),"content-type"===b.toLowerCase()&&(c=!1);c&&R.setRequestHeader("Content-Type","application/x-www-form-urlencoded");n&&"onprogress"in R&&(R.onprogress=function(){n(R.responseText)});
if(L&&"setAttributionReporting"in XMLHttpRequest.prototype){e={eventSourceEligible:!0,triggerEligible:!1};try{R.setAttributionReporting(e)}catch(h){_.UI(h)}}R.send(k);return R};
ZAg=function(e,g){g=g===void 0?{}:g;var c=BV(e),k=_.uo("INNERTUBE_CLIENT_NAME"),I=_.G("web_ajax_ignore_global_headers_if_set"),J;for(J in t48){var q=_.uo(t48[J]),L=J==="X-Goog-AuthUser"||J==="X-Goog-PageId";J!=="X-Goog-Visitor-Id"||q||(q=_.uo("VISITOR_DATA"));var n;if(!(n=!q)){if(!(n=c||(_.V9(e)?!1:!0))){n=e;var R;if(R=_.G("add_auth_headers_to_remarketing_google_dot_com_ping")&&J==="Authorization"&&(k==="TVHTML5"||k==="TVHTML5_UNPLUGGED"||k==="TVHTML5_SIMPLY"))R=fOp(n),R=R===null?!1:R[1]==="google"?
!0:R[2]==="google"?R[0]==="au"&&R[1]==="com"?!0:R[0]==="uk"&&R[1]==="co"?!0:!1:!1;R&&(n=_.tv(n)||"",n=n.split("/"),n="/"+(n.length>1?n[1]:""),R=n==="/pagead");n=R?!0:!1}n=!n}n||I&&g[J]!==void 0||k==="TVHTML5_UNPLUGGED"&&L||(g[J]=q)}"X-Goog-EOM-Visitor-Id"in g&&"X-Goog-Visitor-Id"in g&&delete g["X-Goog-Visitor-Id"];if(c||!_.V9(e))g["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!_.V9(e)){try{var W=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(b){}W&&(g["X-YouTube-Time-Zone"]=
W)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&_.V9(e)||(g["X-YouTube-Ad-Signals"]=Dct(B$W()));return g};
_.N$C=function(e,g){var c=_.V9(e);_.G("debug_handle_relative_url_for_query_forward_killswitch")||!c&&BV(e)&&(c=document.location.hostname);var k=_.tv(e);k=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&k&&k.startsWith("/api/");if(!c||k)return e;var I=_.ZC(g),J={};_.o7(Qtv,function(q){I[q]&&(J[q]=I[q])});
return YVe(e,J)};
SVt=function(e,g){g.method="POST";g.postParams||(g.postParams={});return _.vQ(e,g)};
y5C=function(e,g){var c=_.uo("XSRF_FIELD_NAME"),k;g.headers&&(k=g.headers["Content-Type"]);return!g.excludeXsrf&&(!_.V9(e)||g.withCredentials||_.V9(e)===document.location.hostname)&&g.method==="POST"&&(!k||k==="application/x-www-form-urlencoded")&&!(g.postParams&&g.postParams[c])};
_.vQ=function(e,g){var c=g.format||"JSON";e=K7U(e,g);var k=OA6(e,g),I=!1,J=M4e(e,function(n){if(!I){I=!0;L&&_.JK(L);var R=_.HAC(n),W=null,b=400<=n.status&&n.status<500,h=500<=n.status&&n.status<600;if(R||b||h)W=CBe(e,c,n,g.convertToSafeHtml);R&&(R=eBC(c,n,W));W=W||{};b=g.context||_.kp;R?g.onSuccess&&g.onSuccess.call(b,n,W):g.onError&&g.onError.call(b,n,W);g.onFinish&&g.onFinish.call(b,n,W)}},g.method,k,g.headers,g.responseType,g.withCredentials,!1,g.onProgress);
k=g.timeout||0;if(g.onTimeout&&k>0){var q=g.onTimeout;var L=_.k1(function(){I||(I=!0,J.abort(),_.JK(L),q.call(g.context||_.kp,J))},k)}return J};
K7U=function(e,g){g.includeDomain&&(e=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+e);var c=_.uo("XSRF_FIELD_NAME");if(g=g.urlParams)g[c]&&delete g[c],e=_.t_(e,g);return e};
OA6=function(e,g){var c=_.uo("XSRF_FIELD_NAME"),k=_.uo("XSRF_TOKEN"),I=g.postBody||"",J=g.postParams;y5C(e,g)&&(J||(J={}),J[c]=k);(_.G("ajax_parse_query_data_only_when_filled")&&J&&Object.keys(J).length>0||J)&&typeof I==="string"&&(I=_.ZC(I),_.n0.extend(I,J),I=g.postBodyFormat&&g.postBodyFormat==="JSON"?JSON.stringify(I):_.Oy(I));J=I||J&&!_.n0.isEmpty(J);!gdC&&J&&g.method!=="POST"&&(gdC=!0,_.zr(Error("Lc")));return I};
CBe=function(e,g,c,k){var I=null;switch(g){case "JSON":try{var J=c.responseText}catch(q){throw k=Error("Mc"),k.params=e,_.UI(k),q;}e=c.getResponseHeader("Content-Type")||"";J&&e.indexOf("json")>=0&&(J.substring(0,5)===")]}'\n"&&(J=J.substring(5)),I=JSON.parse(J));break;case "XML":if(e=(e=c.responseXML)?cwz(e):null)I={},_.o7(e.getElementsByTagName("*"),function(q){I[q.tagName]=ktK(q)})}k&&IYq(I);
return I};
IYq=function(e){if(_.SK(e))for(var g in e)g==="html_content"||qU(g,"_html")?e[g]=kW(e[g]):IYq(e[g])};
eBC=function(e,g,c){if(g&&g.status===204)return!0;switch(e){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}};
cwz=function(e){return e?(e=("responseXML"in e?e.responseXML:e).getElementsByTagName("root"))&&e.length>0?e[0]:null:null};
ktK=function(e){var g="";_.o7(e.childNodes,function(c){g+=c.nodeValue});
return g};
JwU=function(e){if(e.name==="JavaException")return!0;e=e.stack;return e.includes("chrome://")||e.includes("-extension://")||e.includes("webkit-masked-url://")};
vdv=function(e){if(!e.stack)return!0;var g=!e.stack.includes("\n");return g&&e.stack.includes("ErrorType: ")||g&&e.stack.includes("Anonymous function (Unknown script")||e.stack.toLowerCase()==="not available"||e.fileName==="user-script"||e.fileName.startsWith("user-script:")?!0:!1};
_.w1=function(e){_.Iy.call(this);this.JSC$10837_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!e};
qop=function(e,g){var c=e.length,k=0,I=function(){return e.charCodeAt(k++)};
do{var J=wLK(I);if(J===Infinity)break;var q=J>>3;switch(J&7){case 0:J=wLK(I);if(q===g)return J;break;case 1:if(q===g)return;k+=8;break;case 2:J=wLK(I);if(q===g)return e.substr(k,J);k+=J;break;case 5:if(q===g)return;k+=4;break;default:return}}while(k<c)};
wLK=function(e){var g=e(),c=g&127;if(g<128)return c;g=e();c|=(g&127)<<7;if(g<128)return c;g=e();c|=(g&127)<<14;if(g<128)return c;g=e();return g<128?c|(g&127)<<21:Infinity};
rwA=function(e,g,c,k){if(e)if(Array.isArray(e)){var I=k;for(k=0;k<e.length&&!(e[k]&&(I+=Lp6(k,e[k],g,c),I>500));k++);k=I}else if(typeof e==="object")for(I in e){if(e[I]){var J=I;var q=e[I],L=g,n=c;J=typeof q!=="string"||J!=="clickTrackingParams"&&J!=="trackingParams"?0:(q=qop(atob(q.replace(/-/g,"+").replace(/_/g,"/")),2))?Lp6(J+".ve",q,L,n):0;k+=J;k+=Lp6(I,e[I],g,c);if(k>500)break}}else c[g]=ql(e),k+=c[g].length;else c[g]=ql(e),k+=c[g].length;return k};
Lp6=function(e,g,c,k){c+="."+e;e=ql(g);k[c]=e;return c.length+e.length};
ql=function(e){try{return(typeof e==="string"?e:String(JSON.stringify(e))).substr(0,500)}catch(g){return"unable to serialize "+typeof e+" ("+g.message+")"}};
aYW=function(e){switch(e){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}};
_.r1=function(e,g,c,k,I){_.Lf.set(e,g,{maxAge:c,path:"/",domain:k===void 0?"youtube.com":k,secure:I===void 0?!1:I})};
_.nd8=function(e,g,c){_.Lf.remove(e,g===void 0?"/":g,c===void 0?"youtube.com":c)};
_.a$=function(){if(_.G("embeds_web_enable_cookie_detection_fix")){if(!_.kp.navigator.cookieEnabled)return!1}else if(!_.Lf.isEnabled())return!1;if(!_.Lf.isEmpty())return!0;_.G("embeds_web_enable_cookie_detection_fix")?_.Lf.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Lf.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Lf.get("TESTCOOKIESENABLED")!=="1")return!1;_.Lf.remove("TESTCOOKIESENABLED");return!0};
RBv=function(){var e=_.kp.navigator;return e?e.connection:void 0};
Edq=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(e){}};
_.bUK=function(){var e=RBv();if(e){var g=WpW[e.type||"unknown"]||"CONN_UNKNOWN";e=WpW[e.effectiveType||"unknown"]||"CONN_UNKNOWN";g==="CONN_CELLULAR_UNKNOWN"&&e!=="CONN_UNKNOWN"&&(g=e);if(g!=="CONN_UNKNOWN")return g;if(e!=="CONN_UNKNOWN")return e}};
XLe=function(){var e=RBv();if(e!=null&&e.effectiveType)return hBe.hasOwnProperty(e.effectiveType)?hBe[e.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.R$=function(){try{return _.nf(),!0}catch(e){return!1}};
_.nf=function(e){if(_.uo("DATASYNC_ID")!==void 0)return _.uo("DATASYNC_ID");throw new _.E2("Datasync ID not set",e===void 0?"unknown":e);};
_.WQ=function(e){this.mechanism=e};
bH=function(e){this.mechanism=e};
hK=function(e){this.mechanism=e};
XB=function(e){this.storage_=e;this.cachedIsStorageAvailable_=null};
GtU=function(){var e=null;try{e=_.kp.localStorage||null}catch(g){}XB.call(this,e)};
xWU=function(){var e=null;try{e=_.kp.sessionStorage||null}catch(g){}XB.call(this,e)};
Gn=function(e,g){this.mechanism_=e;this.JSC$10940_prefix_=g+"::"};
_.x1=function(e){var g=new GtU;return g.isAvailable()?e?new Gn(g,e):g:null};
_.DWv=function(e){var g=new xWU;return g.isAvailable()?e?new Gn(g,e):g:null};
YoA=function(){var e;return(e=$Wt())==null?void 0:e.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Y1=function(e){fYg||(_.Dv?_.Dv.logError(e):(_.$1.push({type:"ERROR",payload:e}),_.$1.length>10&&_.$1.shift()))};
ff=function(e,g){fYg||(_.Dv?_.Dv.logEvent(e,g):(_.$1.push({type:"EVENT",eventType:e,payload:g}),_.$1.length>10&&_.$1.shift()))};
jn=function(e){if(e.indexOf(":")>=0)throw Error("Tc");};
iH=function(e){return e.substr(0,e.indexOf(":"))||e};
PmK=function(){return(jqz||iUC)&&PQ("applewebkit")&&!PQ("version")&&(!PQ("safari")||PQ("gsa/"))};
PQ=function(e){var g=_.xp();return g?g.toLowerCase().indexOf(e)>=0:!1};
Tqz=function(e,g,c,k){g=iH(g);var I=e instanceof Error?e:Error("Uc`"+e);if(I instanceof mY)return I;e={objectStoreNames:c,dbName:g,dbVersion:k};if(I.name==="QuotaExceededError")return new mY("QUOTA_EXCEEDED",e);if(_.Tn&&I.name==="UnknownError")return new mY("QUOTA_MAYBE_EXCEEDED",e);if(I instanceof mW6)return new mY("MISSING_INDEX",Object.assign({},e,{objectStore:I.objectStore,index:I.index}));if(I.name==="InvalidStateError"&&pL6.some(function(J){return I.message.includes(J)}))return new mY("EXECUTE_TRANSACTION_ON_CLOSED_DB",
e);
if(I.name==="AbortError")return new mY("UNKNOWN_ABORT",e,I.message);I.args=[Object.assign({},e,{name:"IdbError",originalName:I.name})];I.level="WARNING";return I};
lH=function(e,g,c){var k=YoA();return new mY("IDB_NOT_SUPPORTED",{context:{caller:e,publicName:g,version:c,hasSucceededOnce:k==null?void 0:k.hasSucceededOnce}})};
lYg=function(e){if(!e)throw Error();throw e;};
AwK=function(e){return e};
sqK=function(e,g,c){var k=function(){try{e.removeEventListener("success",I),e.removeEventListener("error",J)}catch(q){}},I=function(){g(e.result);
k()},J=function(){c(e.error);
k()};
e.addEventListener("success",I);e.addEventListener("error",J)};
Fpg=function(e){return new Promise(function(g,c){sqK(e,g,c)})};
FB=function(e){return new AK(new s2(function(g,c){sqK(e,g,c)}))};
ui6=function(e,g){return new AK(new s2(function(c,k){var I=function(){var J=e?g(e):null;J?J.then(function(q){e=q;I()},k):c()};
I()}))};
dW8=function(e,g,c){return new Promise(function(k,I){var J=g!==void 0?self.indexedDB.open(e,g):self.indexedDB.open(e);var q=c.blocked,L=c.blocking,n=c.terminated,R=c.upgrade,W=c.closed,b,h=function(){b||(b=new uH(J.result,{closed:W}));return b};
J.addEventListener("upgradeneeded",function(X){try{if(X.newVersion===null)throw Error("Zc");if(J.transaction===null)throw Error("$c");X.dataLoss&&X.dataLoss!=="none"&&ff("IDB_DATA_CORRUPTED",{reason:X.dataLossMessage||"unknown reason",dbName:iH(e)});var D=h(),f=new d1(J.transaction);R&&R(D,function(l){return X.oldVersion<l&&X.newVersion>=l},f);
f.done.catch(function(l){I(l)})}catch(l){I(l)}});
J.addEventListener("success",function(){var X=J.result;L&&X.addEventListener("versionchange",function(){L(h())});
X.addEventListener("close",function(){ff("IDB_UNEXPECTEDLY_CLOSED",{dbName:iH(e),dbVersion:X.version});n&&n()});
k(h())});
J.addEventListener("error",function(){I(J.error)});
q&&J.addEventListener("blocked",function(){q()})})};
zBC=function(e,g,c){c=c===void 0?{}:c;return dW8(e,g,c)};
_.HQ=function(e,g){g=g===void 0?{}:g;var c,k,I,J;return _.r(function(q){if(q.nextAddress==1)return _.lj(q,2),c=self.indexedDB.deleteDatabase(e),k=g,(I=k.blocked)&&c.addEventListener("blocked",function(){I()}),q.yield(Fpg(c),4);
if(q.nextAddress!=2)return _.zn(q,0);J=_.Qb(q);throw Tqz(J,e,"",-1);})};
Qq8=function(e,g){var c;return _.r(function(k){if(k.nextAddress==1)return k.yield(_.Qr(HUq,g),2);c=k.yieldResult;return k.return(_.U2(c,["databases"],{enableRetries:!0,mode:"readwrite"},function(I){var J=I.objectStore("databases");return J.get(e.actualName).then(function(q){if(q?e.actualName!==q.actualName||e.publicName!==q.publicName||e.userIdentifier!==q.userIdentifier:1)return J.put(e).then(function(){})})}))})};
_.o$=function(e,g){var c;return _.r(function(k){if(k.nextAddress==1)return e?k.yield(_.Qr(HUq,g),2):k.return();c=k.yieldResult;return k.return(c.delete("databases",e))})};
_.UWg=function(e,g){var c,k;return _.r(function(I){return I.nextAddress==1?(c=[],I.yield(_.Qr(HUq,g),2)):I.nextAddress!=3?(k=I.yieldResult,I.yield(_.U2(k,["databases"],{enableRetries:!0,mode:"readonly"},function(J){c.length=0;return Zv(J.objectStore("databases"),{},function(q){e(q.getValue())&&c.push(q.getValue());return q.continue()})}),3)):I.return(c)})};
odz=function(e,g){return _.UWg(function(c){return c.publicName===e&&c.userIdentifier!==void 0},g)};
toz=function(){var e,g,c,k;return _.r(function(I){switch(I.nextAddress){case 1:e=YoA();if((g=e)==null?0:g.hasSucceededOnce)return I.return(!0);var J;if(J=ZUV)J=/WebKit\/([0-9]+)/.exec(_.xp()),J=!!(J&&parseInt(J[1],10)>=600);J&&(J=/WebKit\/([0-9]+)/.exec(_.xp()),J=!(J&&parseInt(J[1],10)>=602));if(J||Vr)return I.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return I.return(!1)}catch(q){return I.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return I.return(!1);
_.lj(I,2);k={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return I.yield(Qq8(k,Voe),4);case 4:return I.yield(_.o$("yt-idb-test-do-not-use",Voe),5);case 5:return I.return(!0);case 2:return _.Qb(I),I.return(!1)}})};
NqA=function(){if(BqV!==void 0)return BqV;fYg=!0;return BqV=toz().then(function(e){fYg=!1;var g;if((g=$Wt())!=null&&g.hasLocalStorage()){var c;g={hasSucceededOnce:((c=YoA())==null?void 0:c.hasSucceededOnce)||e};var k;(k=$Wt())==null||k.set("LAST_RESULT_ENTRY_KEY",g,2592E3,!0)}return e})};
tK=function(){return _.Q0("ytglobal.idbToken_")||void 0};
_.Nl=function(){var e=tK();return e?Promise.resolve(e):NqA().then(function(g){(g=g?Voe:void 0)&&_.BQ("ytglobal.idbToken_",g);return g})};
Soe=function(e){if(!_.R$())throw e=new mY("AUTH_INVALID",{dbName:e}),_.Y1(e),e;var g=_.nf();return{actualName:e+":"+g,publicName:e,userIdentifier:g}};
ywe=function(e,g,c,k){var I,J,q,L,n,R;return _.r(function(W){switch(W.nextAddress){case 1:return J=(I=Error().stack)!=null?I:"",W.yield(_.Nl(),2);case 2:q=W.yieldResult;if(!q)throw L=lH("openDbImpl",e,g),_.G("ytidb_async_stack_killswitch")||(L.stack=L.stack+"\n"+J.substring(J.indexOf("\n")+1)),_.Y1(L),L;jn(e);n=c?{actualName:e,publicName:e,userIdentifier:void 0}:Soe(e);_.lj(W,3);return W.yield(Qq8(n,q),5);case 5:return W.yield(zBC(n.actualName,g,k),6);case 6:return W.return(W.yieldResult);case 3:return R=
_.Qb(W),_.lj(W,7),W.yield(_.o$(n.actualName,q),9);case 9:_.zn(W,8);break;case 7:_.Qb(W);case 8:throw R;}})};
Kpq=function(e,g,c){c=c===void 0?{}:c;return ywe(e,g,!1,c)};
OUg=function(e,g,c){c=c===void 0?{}:c;return ywe(e,g,!0,c)};
Mo8=function(e,g){g=g===void 0?{}:g;var c,k;return _.r(function(I){if(I.nextAddress==1)return I.yield(_.Nl(),2);if(I.nextAddress!=3){c=I.yieldResult;if(!c)return I.return();jn(e);k=Soe(e);return I.yield(_.HQ(k.actualName,g),3)}return I.yield(_.o$(k.actualName,c),0)})};
CmU=function(e,g,c){e=e.map(function(k){return _.r(function(I){return I.nextAddress==1?I.yield(_.HQ(k.actualName,g),2):I.yield(_.o$(k.actualName,c),0)})});
return Promise.all(e).then(function(){})};
e9C=function(e){var g=g===void 0?{}:g;var c,k;return _.r(function(I){if(I.nextAddress==1)return I.yield(_.Nl(),2);if(I.nextAddress!=3){c=I.yieldResult;if(!c)return I.return();jn(e);return I.yield(odz(e,c),3)}k=I.yieldResult;return I.yield(CmU(k,g,c),0)})};
gvC=function(e,g){g=g===void 0?{}:g;var c;return _.r(function(k){if(k.nextAddress==1)return k.yield(_.Nl(),2);if(k.nextAddress!=3){c=k.yieldResult;if(!c)return k.return();jn(e);return k.yield(_.HQ(e,g),3)}return k.yield(_.o$(e,c),0)})};
Sn=function(e,g){return c3g(e,g)};
IuA=function(e){return _.Qr(kbC(),e)};
J3q=function(e,g,c,k){var I,J,q;return _.r(function(L){switch(L.nextAddress){case 1:return I={config:e,hashData:g,timestamp:k!==void 0?k:(0,_.yr)()},L.yield(IuA(c),2);case 2:return J=L.yieldResult,L.yield(J.clear("hotConfigStore"),3);case 3:return L.yield(J.put("hotConfigStore",I),4);case 4:return q=L.yieldResult,L.return(q)}})};
vvq=function(e,g,c,k,I){var J,q,L;return _.r(function(n){switch(n.nextAddress){case 1:return J={config:e,hashData:g,configData:c,timestamp:I!==void 0?I:(0,_.yr)()},n.yield(IuA(k),2);case 2:return q=n.yieldResult,n.yield(q.clear("coldConfigStore"),3);case 3:return n.yield(q.put("coldConfigStore",J),4);case 4:return L=n.yieldResult,n.return(L)}})};
wg8=function(e){var g,c;return _.r(function(k){return k.nextAddress==1?k.yield(IuA(e),2):k.nextAddress!=3?(g=k.yieldResult,c=void 0,k.yield(_.U2(g,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(I){return _.Kf(I.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(J){c=J.getValue()})}),3)):k.return(c)})};
qYe=function(e){var g,c;return _.r(function(k){return k.nextAddress==1?k.yield(IuA(e),2):k.nextAddress!=3?(g=k.yieldResult,c=void 0,k.yield(_.U2(g,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(I){return _.Kf(I.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(J){c=J.getValue()})}),3)):k.return(c)})};
LiK=function(){return _.r(function(e){return e.yield(e9C("ytGcfConfig"),0)})};
r3z=function(){return"INNERTUBE_API_KEY"in _.sI&&"INNERTUBE_API_VERSION"in _.sI};
_.O2=function(){return{innertubeApiKey:_.uo("INNERTUBE_API_KEY"),innertubeApiVersion:_.uo("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.uo("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.uo("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.uo("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.uo("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.uo("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.uo("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.uo("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.dH("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.dH("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.uo("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.h9p=function(e){var g={client:{hl:e.innertubeContextHostLanguage,gl:e.innertubeContextGeoLocation,clientName:e.innertubeContextClientName,clientVersion:e.innertubeContextClientVersion,configInfo:e.innertubeContextClientConfigInfo}};navigator.userAgent&&(g.client.userAgent=String(navigator.userAgent));var c=_.kp.devicePixelRatio;c&&c!=1&&(g.client.screenDensityFloat=String(c));c=F7U();c!==""&&(g.client.experimentsToken=c);c=ubq();c.length>0&&(g.request={internalExperimentFlags:c});auK(e,void 0,g);
nvp(void 0,g);R9C(void 0,g);EvA(e,void 0,g);Wiz(void 0,g);_.G("start_client_gcf")&&bsC(void 0,g);_.uo("DELEGATED_SESSION_ID")&&!_.G("pageid_as_header_web")&&(g.user={onBehalfOfUser:_.uo("DELEGATED_SESSION_ID")});!_.G("fill_delegate_context_in_gel_killswitch")&&(e=_.uo("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(g.user=Object.assign({},g.user,{serializedDelegationContext:e}));e=_.uo("INNERTUBE_CONTEXT");var k;if(_.G("enable_persistent_device_token")&&(e==null?0:(k=e.client)==null?0:k.rolloutToken)){var I;
g.client.rolloutToken=e==null?void 0:(I=e.client)==null?void 0:I.rolloutToken}k=Object;I=k.assign;e=g.client;c={};for(var J=_.w(Object.entries(_.ZC(_.uo("DEVICE","")))),q=J.next();!q.done;q=J.next()){var L=_.w(q.value);q=L.next().value;L=L.next().value;q==="cbrand"?c.deviceMake=L:q==="cmodel"?c.deviceModel=L:q==="cbr"?c.browserName=L:q==="cbrver"?c.browserVersion=L:q==="cos"?c.osName=L:q==="cosver"?c.osVersion=L:q==="cplatform"&&(c.platform=L)}g.client=I.call(k,e,c);return g};
auK=function(e,g,c){e=e.innertubeContextClientName;if(e==="WEB"||e==="MWEB"||e===1||e===2)if(g){c=_.Ml(g,Xgg,96)||new Xgg;var k=Gbq();k=Object.keys(xkC).indexOf(k);k=k===-1?null:k;k!==null&&_.Cf(c,3,k);_.sx(g,96,c)}else c&&(c.client.mainAppWebInfo=(k=c.client.mainAppWebInfo)!=null?k:{},c.client.mainAppWebInfo.webDisplayMode=Gbq())};
nvp=function(e,g){var c=_.Q0("yt.embedded_player.embed_url");c&&(e?(g=_.Ml(e,Dkz,7)||new Dkz,_.vH(g,4,c),_.sx(e,7,g)):g&&(g.thirdParty={embedUrl:c}))};
R9C=function(e,g){var c;if(_.G("web_log_memory_total_kbytes")&&((c=_.kp.navigator)==null?0:c.deviceMemory)){var k;c=(k=_.kp.navigator)==null?void 0:k.deviceMemory;e?_.e6(e,95,xX(c*1E6)):g&&(g.client.memoryTotalKbytes=""+c*1E6)}};
EvA=function(e,g,c){if(e.appInstallData)if(g){var k;c=(k=_.Ml(g,gK,62))!=null?k:new gK;_.vH(c,6,e.appInstallData);_.sx(g,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=e.appInstallData)};
Wiz=function(e,g){var c=_.bUK();c&&(e?_.Cf(e,61,$kv[c]):g&&(g.client.connectionType=c));_.G("web_log_effective_connection_type")&&(c=XLe())&&(e?_.Cf(e,94,YYV[c]):g&&(g.client.effectiveConnectionType=c))};
_.isz=function(e,g,c){c=c===void 0?{}:c;var k={};_.uo("EOM_VISITOR_DATA")?k={"X-Goog-EOM-Visitor-Id":_.uo("EOM_VISITOR_DATA")}:k={"X-Goog-Visitor-Id":c.visitorData||_.uo("VISITOR_DATA","")};if(g&&g.includes("www.youtube-nocookie.com"))return k;g=c.authorization||_.uo("AUTHORIZATION");g||(e?g="Bearer "+_.Q0("gapi.auth.getToken")().access_token:(fup.instance||(fup.instance=new fup),e=j1q(),_.G("pageid_as_header_web")||delete e["X-Goog-PageId"],k=Object.assign({},k,e)));g&&(k.Authorization=g);return k};
bsC=function(e,g){var c=PgW();if(c){var k=c.coldConfigData,I=c.coldHashData;c=c.hotHashData;if(e){var J;g=(J=_.Ml(e,gK,62))!=null?J:new gK;k=_.vH(g,1,k);_.vH(k,3,I).setHotHashData(c);_.sx(e,62,g)}else g&&(g.client.configInfo=g.client.configInfo||{},k&&(g.client.configInfo.coldConfigData=k),I&&(g.client.configInfo.coldHashData=I),c&&(g.client.configInfo.hotHashData=c))}};
cb=function(e){for(var g=e.length;--g>=0;)e[g]=0};
mkg=function(e,g,c,k,I){this.static_tree=e;this.extra_bits=g;this.extra_base=c;this.elems=k;this.max_length=I;this.has_stree=e&&e.length};
pgA=function(e,g){this.dyn_tree=e;this.max_code=0;this.stat_desc=g};
km=function(e,g){e.pending_buf[e.pending++]=g&255;e.pending_buf[e.pending++]=g>>>8&255};
IF=function(e,g,c){e.bi_valid>16-c?(e.bi_buf|=g<<e.bi_valid&65535,km(e,e.bi_buf),e.bi_buf=g>>16-e.bi_valid,e.bi_valid+=c-16):(e.bi_buf|=g<<e.bi_valid&65535,e.bi_valid+=c)};
Jt=function(e,g,c){IF(e,c[g*2],c[g*2+1])};
Tpv=function(e,g){var c=0;do c|=e&1,e>>>=1,c<<=1;while(--g>0);return c>>>1};
lut=function(e,g,c){var k=Array(16),I=0,J;for(J=1;J<=15;J++)k[J]=I=I+c[J-1]<<1;for(c=0;c<=g;c++)I=e[c*2+1],I!==0&&(e[c*2]=Tpv(k[I]++,I))};
A36=function(e){var g;for(g=0;g<286;g++)e.dyn_ltree[g*2]=0;for(g=0;g<30;g++)e.dyn_dtree[g*2]=0;for(g=0;g<19;g++)e.bl_tree[g*2]=0;e.dyn_ltree[512]=1;e.opt_len=e.static_len=0;e.last_lit=e.matches=0};
s1V=function(e){e.bi_valid>8?km(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf);e.bi_buf=0;e.bi_valid=0};
Fi6=function(e,g,c){s1V(e);km(e,c);km(e,~c);vb.arraySet(e.pending_buf,e.window,g,c,e.pending);e.pending+=c};
uZv=function(e,g,c,k){var I=g*2,J=c*2;return e[I]<e[J]||e[I]===e[J]&&k[g]<=k[c]};
dkC=function(e,g,c){for(var k=e.heap[c],I=c<<1;I<=e.heap_len;){I<e.heap_len&&uZv(g,e.heap[I+1],e.heap[I],e.depth)&&I++;if(uZv(g,k,e.heap[I],e.depth))break;e.heap[c]=e.heap[I];c=I;I<<=1}e.heap[c]=k};
ovC=function(e,g,c){var k=0;if(e.last_lit!==0){do{var I=e.pending_buf[e.d_buf+k*2]<<8|e.pending_buf[e.d_buf+k*2+1];var J=e.pending_buf[e.l_buf+k];k++;if(I===0)Jt(e,J,g);else{var q=wK[J];Jt(e,q+256+1,g);var L=z9g[q];L!==0&&(J-=Hsg[q],IF(e,J,L));I--;q=I<256?qz[I]:qz[256+(I>>>7)];Jt(e,q,c);L=Q1C[q];L!==0&&(I-=UkV[q],IF(e,I,L))}}while(k<e.last_lit)}Jt(e,256,g)};
ZsV=function(e,g){var c=g.dyn_tree,k=g.stat_desc.static_tree,I=g.stat_desc.has_stree,J=g.stat_desc.elems,q,L=-1;e.heap_len=0;e.heap_max=573;for(q=0;q<J;q++)c[q*2]!==0?(e.heap[++e.heap_len]=L=q,e.depth[q]=0):c[q*2+1]=0;for(;e.heap_len<2;){var n=e.heap[++e.heap_len]=L<2?++L:0;c[n*2]=1;e.depth[n]=0;e.opt_len--;I&&(e.static_len-=k[n*2+1])}g.max_code=L;for(q=e.heap_len>>1;q>=1;q--)dkC(e,c,q);n=J;do q=e.heap[1],e.heap[1]=e.heap[e.heap_len--],dkC(e,c,1),k=e.heap[1],e.heap[--e.heap_max]=q,e.heap[--e.heap_max]=
k,c[n*2]=c[q*2]+c[k*2],e.depth[n]=(e.depth[q]>=e.depth[k]?e.depth[q]:e.depth[k])+1,c[q*2+1]=c[k*2+1]=n,e.heap[1]=n++,dkC(e,c,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1];q=g.dyn_tree;n=g.max_code;k=g.stat_desc.static_tree;I=g.stat_desc.has_stree;J=g.stat_desc.extra_bits;var R=g.stat_desc.extra_base,W=g.stat_desc.max_length,b,h=0;for(b=0;b<=15;b++)e.bl_count[b]=0;q[e.heap[e.heap_max]*2+1]=0;for(g=e.heap_max+1;g<573;g++){var X=e.heap[g];b=q[q[X*2+1]*2+1]+1;b>W&&(b=W,h++);q[X*2+1]=b;if(!(X>
n)){e.bl_count[b]++;var D=0;X>=R&&(D=J[X-R]);var f=q[X*2];e.opt_len+=f*(b+D);I&&(e.static_len+=f*(k[X*2+1]+D))}}if(h!==0){do{for(b=W-1;e.bl_count[b]===0;)b--;e.bl_count[b]--;e.bl_count[b+1]+=2;e.bl_count[W]--;h-=2}while(h>0);for(b=W;b!==0;b--)for(X=e.bl_count[b];X!==0;)k=e.heap[--g],k>n||(q[k*2+1]!==b&&(e.opt_len+=(b-q[k*2+1])*q[k*2],q[k*2+1]=b),X--)}lut(c,L,e.bl_count)};
VhK=function(e,g,c){var k,I=-1,J=g[1],q=0,L=7,n=4;J===0&&(L=138,n=3);g[(c+1)*2+1]=65535;for(k=0;k<=c;k++){var R=J;J=g[(k+1)*2+1];++q<L&&R===J||(q<n?e.bl_tree[R*2]+=q:R!==0?(R!==I&&e.bl_tree[R*2]++,e.bl_tree[32]++):q<=10?e.bl_tree[34]++:e.bl_tree[36]++,q=0,I=R,J===0?(L=138,n=3):R===J?(L=6,n=3):(L=7,n=4))}};
th8=function(e,g,c){var k,I=-1,J=g[1],q=0,L=7,n=4;J===0&&(L=138,n=3);for(k=0;k<=c;k++){var R=J;J=g[(k+1)*2+1];if(!(++q<L&&R===J)){if(q<n){do Jt(e,R,e.bl_tree);while(--q!==0)}else R!==0?(R!==I&&(Jt(e,R,e.bl_tree),q--),Jt(e,16,e.bl_tree),IF(e,q-3,2)):q<=10?(Jt(e,17,e.bl_tree),IF(e,q-3,3)):(Jt(e,18,e.bl_tree),IF(e,q-11,7));q=0;I=R;J===0?(L=138,n=3):R===J?(L=6,n=3):(L=7,n=4)}}};
BpC=function(e){var g=4093624447,c;for(c=0;c<=31;c++,g>>>=1)if(g&1&&e.dyn_ltree[c*2]!==0)return 0;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return 1;for(c=32;c<256;c++)if(e.dyn_ltree[c*2]!==0)return 1;return 0};
Lt=function(e,g,c){e.pending_buf[e.d_buf+e.last_lit*2]=g>>>8&255;e.pending_buf[e.d_buf+e.last_lit*2+1]=g&255;e.pending_buf[e.l_buf+e.last_lit]=c&255;e.last_lit++;g===0?e.dyn_ltree[c*2]++:(e.matches++,g--,e.dyn_ltree[(wK[c]+256+1)*2]++,e.dyn_dtree[(g<256?qz[g]:qz[256+(g>>>7)])*2]++);return e.last_lit===e.lit_bufsize-1};
aF=function(e,g){e.msg=rK[g];return g};
nt=function(e){for(var g=e.length;--g>=0;)e[g]=0};
RF=function(e){var g=e.state,c=g.pending;c>e.avail_out&&(c=e.avail_out);c!==0&&(vb.arraySet(e.output,g.pending_buf,g.pending_out,c,e.next_out),e.next_out+=c,g.pending_out+=c,e.total_out+=c,e.avail_out-=c,g.pending-=c,g.pending===0&&(g.pending_out=0))};
bw=function(e,g){var c=e.block_start>=0?e.block_start:-1,k=e.strstart-e.block_start,I=0;if(e.level>0){e.strm.data_type===2&&(e.strm.data_type=BpC(e));ZsV(e,e.l_desc);ZsV(e,e.d_desc);VhK(e,e.dyn_ltree,e.l_desc.max_code);VhK(e,e.dyn_dtree,e.d_desc.max_code);ZsV(e,e.bl_desc);for(I=18;I>=3&&e.bl_tree[Np6[I]*2+1]===0;I--);e.opt_len+=3*(I+1)+5+5+4;var J=e.opt_len+3+7>>>3;var q=e.static_len+3+7>>>3;q<=J&&(J=q)}else J=q=k+5;if(k+4<=J&&c!==-1)IF(e,g?1:0,3),Fi6(e,c,k);else if(e.strategy===4||q===J)IF(e,2+(g?
1:0),3),ovC(e,En,Wb);else{IF(e,4+(g?1:0),3);c=e.l_desc.max_code+1;k=e.d_desc.max_code+1;I+=1;IF(e,c-257,5);IF(e,k-1,5);IF(e,I-4,4);for(J=0;J<I;J++)IF(e,e.bl_tree[Np6[J]*2+1],3);th8(e,e.dyn_ltree,c-1);th8(e,e.dyn_dtree,k-1);ovC(e,e.dyn_ltree,e.dyn_dtree)}A36(e);g&&s1V(e);e.block_start=e.strstart;RF(e.strm)};
ht=function(e,g){e.pending_buf[e.pending++]=g};
XY=function(e,g){e.pending_buf[e.pending++]=g>>>8&255;e.pending_buf[e.pending++]=g&255};
SYC=function(e,g){var c=e.max_chain_length,k=e.strstart,I=e.prev_length,J=e.nice_match,q=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,L=e.window,n=e.w_mask,R=e.prev,W=e.strstart+258,b=L[k+I-1],h=L[k+I];e.prev_length>=e.good_match&&(c>>=2);J>e.lookahead&&(J=e.lookahead);do{var X=g;if(L[X+I]===h&&L[X+I-1]===b&&L[X]===L[k]&&L[++X]===L[k+1]){k+=2;for(X++;L[++k]===L[++X]&&L[++k]===L[++X]&&L[++k]===L[++X]&&L[++k]===L[++X]&&L[++k]===L[++X]&&L[++k]===L[++X]&&L[++k]===L[++X]&&L[++k]===L[++X]&&k<W;);
X=258-(W-k);k=W-258;if(X>I){e.match_start=g;I=X;if(X>=J)break;b=L[k+I-1];h=L[k+I]}}}while((g=R[g&n])>q&&--c!==0);return I<=e.lookahead?I:e.lookahead};
xm=function(e){var g=e.w_size,c;do{var k=e.window_size-e.lookahead-e.strstart;if(e.strstart>=g+(g-262)){vb.arraySet(e.window,e.window,g,g,0);e.match_start-=g;e.strstart-=g;e.block_start-=g;var I=c=e.hash_size;do{var J=e.head[--I];e.head[I]=J>=g?J-g:0}while(--c);I=c=g;do J=e.prev[--I],e.prev[I]=J>=g?J-g:0;while(--c);k+=g}if(e.strm.avail_in===0)break;I=e.strm;c=e.window;J=e.strstart+e.lookahead;var q=I.avail_in;q>k&&(q=k);q===0?c=0:(I.avail_in-=q,vb.arraySet(c,I.input,I.next_in,q,J),I.state.wrap===
1?I.adler=y3V(I.adler,c,q,J):I.state.wrap===2&&(I.adler=GI(I.adler,c,q,J)),I.next_in+=q,I.total_in+=q,c=q);e.lookahead+=c;if(e.lookahead+e.insert>=3)for(k=e.strstart-e.insert,e.ins_h=e.window[k],e.ins_h=(e.ins_h<<e.hash_shift^e.window[k+1])&e.hash_mask;e.insert&&!(e.ins_h=(e.ins_h<<e.hash_shift^e.window[k+3-1])&e.hash_mask,e.prev[k&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=k,k++,e.insert--,e.lookahead+e.insert<3););}while(e.lookahead<262&&e.strm.avail_in!==0)};
Ki6=function(e,g){for(var c;;){if(e.lookahead<262){xm(e);if(e.lookahead<262&&g===0)return 1;if(e.lookahead===0)break}c=0;e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,c=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);c!==0&&e.strstart-c<=e.w_size-262&&(e.match_length=SYC(e,c));if(e.match_length>=3)if(c=Lt(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;
do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else c=Lt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(c&&(bw(e,!1),e.strm.avail_out===0))return 1}e.insert=e.strstart<2?e.strstart:2;return g===4?(bw(e,
!0),e.strm.avail_out===0?3:4):e.last_lit&&(bw(e,!1),e.strm.avail_out===0)?1:2};
Dk=function(e,g){for(var c,k;;){if(e.lookahead<262){xm(e);if(e.lookahead<262&&g===0)return 1;if(e.lookahead===0)break}c=0;e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,c=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);e.prev_length=e.match_length;e.prev_match=e.match_start;e.match_length=2;c!==0&&e.prev_length<e.max_lazy_match&&e.strstart-c<=e.w_size-262&&(e.match_length=SYC(e,c),e.match_length<=5&&(e.strategy===1||e.match_length===3&&
e.strstart-e.match_start>4096)&&(e.match_length=2));if(e.prev_length>=3&&e.match_length<=e.prev_length){k=e.strstart+e.lookahead-3;c=Lt(e,e.strstart-1-e.prev_match,e.prev_length-3);e.lookahead-=e.prev_length-1;e.prev_length-=2;do++e.strstart<=k&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);e.match_available=0;e.match_length=2;e.strstart++;if(c&&(bw(e,!1),e.strm.avail_out===0))return 1}else if(e.match_available){if((c=
Lt(e,0,e.window[e.strstart-1]))&&bw(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return 1}else e.match_available=1,e.strstart++,e.lookahead--}e.match_available&&(Lt(e,0,e.window[e.strstart-1]),e.match_available=0);e.insert=e.strstart<2?e.strstart:2;return g===4?(bw(e,!0),e.strm.avail_out===0?3:4):e.last_lit&&(bw(e,!1),e.strm.avail_out===0)?1:2};
Osq=function(e,g){for(var c,k,I,J=e.window;;){if(e.lookahead<=258){xm(e);if(e.lookahead<=258&&g===0)return 1;if(e.lookahead===0)break}e.match_length=0;if(e.lookahead>=3&&e.strstart>0&&(k=e.strstart-1,c=J[k],c===J[++k]&&c===J[++k]&&c===J[++k])){for(I=e.strstart+258;c===J[++k]&&c===J[++k]&&c===J[++k]&&c===J[++k]&&c===J[++k]&&c===J[++k]&&c===J[++k]&&c===J[++k]&&k<I;);e.match_length=258-(I-k);e.match_length>e.lookahead&&(e.match_length=e.lookahead)}e.match_length>=3?(c=Lt(e,1,e.match_length-3),e.lookahead-=
e.match_length,e.strstart+=e.match_length,e.match_length=0):(c=Lt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++);if(c&&(bw(e,!1),e.strm.avail_out===0))return 1}e.insert=0;return g===4?(bw(e,!0),e.strm.avail_out===0?3:4):e.last_lit&&(bw(e,!1),e.strm.avail_out===0)?1:2};
MhA=function(e,g){for(var c;;){if(e.lookahead===0&&(xm(e),e.lookahead===0)){if(g===0)return 1;break}e.match_length=0;c=Lt(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++;if(c&&(bw(e,!1),e.strm.avail_out===0))return 1}e.insert=0;return g===4?(bw(e,!0),e.strm.avail_out===0?3:4):e.last_lit&&(bw(e,!1),e.strm.avail_out===0)?1:2};
$m=function(e,g,c,k,I){this.good_length=e;this.max_lazy=g;this.nice_length=c;this.max_chain=k;this.func=I};
CgC=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 vb.Buf16(1146);this.dyn_dtree=new vb.Buf16(122);this.bl_tree=new vb.Buf16(78);nt(this.dyn_ltree);nt(this.dyn_dtree);nt(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new vb.Buf16(16);this.heap=new vb.Buf16(573);nt(this.heap);this.heap_max=this.heap_len=0;this.depth=new vb.Buf16(573);nt(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};
epz=function(e,g){if(!e||!e.state||g>5||g<0)return e?aF(e,-2):-2;var c=e.state;if(!e.output||!e.input&&e.avail_in!==0||c.status===666&&g!==4)return aF(e,e.avail_out===0?-5:-2);c.strm=e;var k=c.last_flush;c.last_flush=g;if(c.status===42)if(c.wrap===2)e.adler=0,ht(c,31),ht(c,139),ht(c,8),c.gzhead?(ht(c,(c.gzhead.text?1:0)+(c.gzhead.hcrc?2:0)+(c.gzhead.extra?4:0)+(c.gzhead.name?8:0)+(c.gzhead.comment?16:0)),ht(c,c.gzhead.time&255),ht(c,c.gzhead.time>>8&255),ht(c,c.gzhead.time>>16&255),ht(c,c.gzhead.time>>
24&255),ht(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),ht(c,c.gzhead.os&255),c.gzhead.extra&&c.gzhead.extra.length&&(ht(c,c.gzhead.extra.length&255),ht(c,c.gzhead.extra.length>>8&255)),c.gzhead.hcrc&&(e.adler=GI(e.adler,c.pending_buf,c.pending,0)),c.gzindex=0,c.status=69):(ht(c,0),ht(c,0),ht(c,0),ht(c,0),ht(c,0),ht(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),ht(c,3),c.status=113);else{var I=8+(c.w_bits-8<<4)<<8;I|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.strstart!==0&&(I|=
32);c.status=113;XY(c,I+(31-I%31));c.strstart!==0&&(XY(c,e.adler>>>16),XY(c,e.adler&65535));e.adler=1}if(c.status===69)if(c.gzhead.extra){for(I=c.pending;c.gzindex<(c.gzhead.extra.length&65535)&&(c.pending!==c.pending_buf_size||(c.gzhead.hcrc&&c.pending>I&&(e.adler=GI(e.adler,c.pending_buf,c.pending-I,I)),RF(e),I=c.pending,c.pending!==c.pending_buf_size));)ht(c,c.gzhead.extra[c.gzindex]&255),c.gzindex++;c.gzhead.hcrc&&c.pending>I&&(e.adler=GI(e.adler,c.pending_buf,c.pending-I,I));c.gzindex===c.gzhead.extra.length&&
(c.gzindex=0,c.status=73)}else c.status=73;if(c.status===73)if(c.gzhead.name){I=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>I&&(e.adler=GI(e.adler,c.pending_buf,c.pending-I,I)),RF(e),I=c.pending,c.pending===c.pending_buf_size)){var J=1;break}J=c.gzindex<c.gzhead.name.length?c.gzhead.name.charCodeAt(c.gzindex++)&255:0;ht(c,J)}while(J!==0);c.gzhead.hcrc&&c.pending>I&&(e.adler=GI(e.adler,c.pending_buf,c.pending-I,I));J===0&&(c.gzindex=0,c.status=91)}else c.status=91;if(c.status===
91)if(c.gzhead.comment){I=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>I&&(e.adler=GI(e.adler,c.pending_buf,c.pending-I,I)),RF(e),I=c.pending,c.pending===c.pending_buf_size)){J=1;break}J=c.gzindex<c.gzhead.comment.length?c.gzhead.comment.charCodeAt(c.gzindex++)&255:0;ht(c,J)}while(J!==0);c.gzhead.hcrc&&c.pending>I&&(e.adler=GI(e.adler,c.pending_buf,c.pending-I,I));J===0&&(c.status=103)}else c.status=103;c.status===103&&(c.gzhead.hcrc?(c.pending+2>c.pending_buf_size&&RF(e),
c.pending+2<=c.pending_buf_size&&(ht(c,e.adler&255),ht(c,e.adler>>8&255),e.adler=0,c.status=113)):c.status=113);if(c.pending!==0){if(RF(e),e.avail_out===0)return c.last_flush=-1,0}else if(e.avail_in===0&&(g<<1)-(g>4?9:0)<=(k<<1)-(k>4?9:0)&&g!==4)return aF(e,-5);if(c.status===666&&e.avail_in!==0)return aF(e,-5);if(e.avail_in!==0||c.lookahead!==0||g!==0&&c.status!==666){k=c.strategy===2?MhA(c,g):c.strategy===3?Osq(c,g):Ym[c.level].func(c,g);if(k===3||k===4)c.status=666;if(k===1||k===3)return e.avail_out===
0&&(c.last_flush=-1),0;if(k===2&&(g===1?(IF(c,2,3),Jt(c,256,En),c.bi_valid===16?(km(c,c.bi_buf),c.bi_buf=0,c.bi_valid=0):c.bi_valid>=8&&(c.pending_buf[c.pending++]=c.bi_buf&255,c.bi_buf>>=8,c.bi_valid-=8)):g!==5&&(IF(c,0,3),Fi6(c,0,0),g===3&&(nt(c.head),c.lookahead===0&&(c.strstart=0,c.block_start=0,c.insert=0))),RF(e),e.avail_out===0))return c.last_flush=-1,0}if(g!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(ht(c,e.adler&255),ht(c,e.adler>>8&255),ht(c,e.adler>>16&255),ht(c,e.adler>>24&255),ht(c,
e.total_in&255),ht(c,e.total_in>>8&255),ht(c,e.total_in>>16&255),ht(c,e.total_in>>24&255)):(XY(c,e.adler>>>16),XY(c,e.adler&65535));RF(e);c.wrap>0&&(c.wrap=-c.wrap);return c.pending!==0?0:1};
g_g=function(e){if(!(this instanceof g_g))return new g_g(e);e=this.options=vb.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new csV;this.strm.avail_out=0;var g=this.strm;var c=e.level,k=e.method,I=e.windowBits,J=e.memLevel,q=e.strategy;if(g){var L=1;c===-1&&(c=6);I<0?(L=0,I=-I):I>15&&
(L=2,I-=16);if(J<1||J>9||k!==8||I<8||I>15||c<0||c>9||q<0||q>4)g=aF(g,-2);else{I===8&&(I=9);var n=new CgC;g.state=n;n.strm=g;n.wrap=L;n.gzhead=null;n.w_bits=I;n.w_size=1<<n.w_bits;n.w_mask=n.w_size-1;n.hash_bits=J+7;n.hash_size=1<<n.hash_bits;n.hash_mask=n.hash_size-1;n.hash_shift=~~((n.hash_bits+3-1)/3);n.window=new vb.Buf8(n.w_size*2);n.head=new vb.Buf16(n.hash_size);n.prev=new vb.Buf16(n.w_size);n.lit_bufsize=1<<J+6;n.pending_buf_size=n.lit_bufsize*4;n.pending_buf=new vb.Buf8(n.pending_buf_size);
n.d_buf=n.lit_bufsize;n.l_buf=3*n.lit_bufsize;n.level=c;n.strategy=q;n.method=k;if(g&&g.state){g.total_in=g.total_out=0;g.data_type=2;c=g.state;c.pending=0;c.pending_out=0;c.wrap<0&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;g.adler=c.wrap===2?0:1;c.last_flush=0;if(!k5z){k=Array(16);for(J=q=0;J<28;J++)for(Hsg[J]=q,I=0;I<1<<z9g[J];I++)wK[q++]=J;wK[q-1]=J;for(J=q=0;J<16;J++)for(UkV[J]=q,I=0;I<1<<Q1C[J];I++)qz[q++]=J;for(q>>=7;J<30;J++)for(UkV[J]=q<<7,I=0;I<1<<Q1C[J]-7;I++)qz[256+q++]=J;for(I=0;I<=15;I++)k[I]=
0;for(I=0;I<=143;)En[I*2+1]=8,I++,k[8]++;for(;I<=255;)En[I*2+1]=9,I++,k[9]++;for(;I<=279;)En[I*2+1]=7,I++,k[7]++;for(;I<=287;)En[I*2+1]=8,I++,k[8]++;lut(En,287,k);for(I=0;I<30;I++)Wb[I*2+1]=5,Wb[I*2]=Tpv(I,5);IFC=new mkg(En,z9g,257,286,15);Js6=new mkg(Wb,Q1C,0,30,15);v_t=new mkg([],woV,0,19,7);k5z=!0}c.l_desc=new pgA(c.dyn_ltree,IFC);c.d_desc=new pgA(c.dyn_dtree,Js6);c.bl_desc=new pgA(c.bl_tree,v_t);c.bi_buf=0;c.bi_valid=0;A36(c);c=0}else c=aF(g,-2);c===0&&(g=g.state,g.window_size=2*g.w_size,nt(g.head),
g.max_lazy_match=Ym[g.level].max_lazy,g.good_match=Ym[g.level].good_length,g.nice_match=Ym[g.level].nice_length,g.max_chain_length=Ym[g.level].max_chain,g.strstart=0,g.block_start=0,g.lookahead=0,g.insert=0,g.match_length=g.prev_length=2,g.match_available=0,g.ins_h=0);g=c}}else g=-2;if(g!==0)throw Error(rK[g]);e.header&&(g=this.strm)&&g.state&&g.state.wrap===2&&(g.state.gzhead=e.header);if(e.dictionary){var R;typeof e.dictionary==="string"?R=qzg(e.dictionary):LkA.call(e.dictionary)==="[object ArrayBuffer]"?
R=new Uint8Array(e.dictionary):R=e.dictionary;e=this.strm;J=R;q=J.length;if(e&&e.state)if(R=e.state,g=R.wrap,g===2||g===1&&R.status!==42||R.lookahead)g=-2;else{g===1&&(e.adler=y3V(e.adler,J,q,0));R.wrap=0;q>=R.w_size&&(g===0&&(nt(R.head),R.strstart=0,R.block_start=0,R.insert=0),c=new vb.Buf8(R.w_size),vb.arraySet(c,J,q-R.w_size,R.w_size,0),J=c,q=R.w_size);c=e.avail_in;k=e.next_in;I=e.input;e.avail_in=q;e.next_in=0;e.input=J;for(xm(R);R.lookahead>=3;){J=R.strstart;q=R.lookahead-2;do R.ins_h=(R.ins_h<<
R.hash_shift^R.window[J+3-1])&R.hash_mask,R.prev[J&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=J,J++;while(--q);R.strstart=J;R.lookahead=2;xm(R)}R.strstart+=R.lookahead;R.block_start=R.strstart;R.insert=R.lookahead;R.lookahead=0;R.match_length=R.prev_length=2;R.match_available=0;e.next_in=k;e.input=I;e.avail_in=c;R.wrap=g;g=0}else g=-2;if(g!==0)throw Error(rK[g]);this._dict_set=!0}};
rsC=function(e,g){g=g||{};g.gzip=!0;g=new g_g(g);g.push(e,!0);if(g.err)throw g.msg||rK[g.err];return g.result};
n_6=function(e,g){var c=aFv();c&&c.publish.call(c,e.toString(),e,g)};
hpe=function(e,g,c){var k=aFv();if(!k)return 0;var I=k.subscribe(e.toString(),function(J,q){var L=_.Q0("ytPubsub2Pubsub2SkipSubKey");L&&L==I||(L=function(){if(RpK[I])try{if(q&&e instanceof E_K&&e!=J)try{var n=e.dataClass,R=q;if(!R.args||!R.version)throw Error("bd");try{if(!n.version_){var W=new n;n.version_=W.version}var b=n.version_}catch(h){}if(!b||R.version!=b)throw Error("cd");try{q=Reflect.construct(n,_.tq(R.args))}catch(h){throw h.message="yt.pubsub2.Data.deserialize(): "+h.message,h;}}catch(h){throw h.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+e.toString()+": "+h.message,h;}g.call(c||window,q)}catch(h){_.zr(h)}},WkC[e.toString()]?_.Q0("yt.scheduler.instance")?_.ft.addLowPriorityJob(L):_.k1(L,0):L())});
RpK[I]=!0;bOA[e.toString()]||(bOA[e.toString()]=[]);bOA[e.toString()].push(I);return I};
DYV=function(){var e=Xov,g=hpe(G5g,function(c){e.apply(void 0,arguments);xYv(g)});
return g};
xYv=function(e){var g=aFv();g&&(typeof e==="number"&&(e=[e]),_.o7(e,function(c){g.unsubscribeByKey(c);delete RpK[c]}))};
aFv=function(){return _.Q0("ytPubsub2Pubsub2Instance")};
$Y6=function(e,g,c){c=c===void 0?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&n_6("meta_logging_csi_event",{timerName:e,timelineData:g})};
_.YzU=function(e){return e?(e=e.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.aP(e):null:null};
_.j6=function(e){return e?(e=e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.HJ(e):null:null};
jI6=function(){fFU||(fFU=_.j6(_.uo("WORKER_SERIALIZATION_URL")));return fFU||void 0};
_.PFg=function(){var e=jI6();iOt||e===void 0||(iOt=u1V(e));return iOt};
_.mYC=function(){return typeof Worker==="function"&&jI6()?!0:!1};
_.AsK=function(){if(_.mYC()&&!poU){var e=function(c){c=c.data;if(c.op==="gzippedGelBatch"){var k=TkC.get(c.key);k&&(lF6(c.gzippedBatch,k.latencyPayload,k.url,k.options,k.sendFn),TkC.delete(c.key))}},g=_.PFg();
g&&(g.addEventListener("message",e),g.onerror=function(){TkC.clear()},poU=!0)}};
HOV=function(e,g,c,k,I){I=I===void 0?!1:I;var J={startTime:(0,_.yr)(),ticks:{},infos:{}};if(iw)try{var q=sI8(g);if(q!=null&&(q>Fk6||q<uAC))k(e,c);else{if(_.G("gzip_gel_with_worker")){poU||_.AsK();var L=_.PFg();if(L&&!I){TkC.set(dY8,{latencyPayload:J,url:e,options:c,sendFn:k});L.postMessage({op:"gelBatchToGzip",serializedBatch:g,key:dY8});dY8++;return}}var n=rsC(zpq(g));lF6(n,J,e,c,k)}}catch(R){_.UI(R),k(e,c)}else k(e,c)};
lF6=function(e,g,c,k,I){var J=(0,_.yr)();g.ticks.gelc=J;Pb++;_.G("disable_compression_due_to_performance_degredation")&&J-g.startTime>=QIe&&(UYg++,iw=!1);o_g(g);k.headers||(k.headers={});k.headers["Content-Encoding"]="gzip";k.postBody=e;k.postParams=void 0;I(c,k)};
VYW=function(e){var g=g===void 0?!1:g;var c=c===void 0?!1:c;var k=(0,_.yr)(),I={startTime:k,ticks:{},infos:{}},J=g?_.Q0("yt.logging.gzipForFetch",!1):!0;if(iw&&J){if(!e.body)return e;try{var q=c?e.body:typeof e.body==="string"?e.body:JSON.stringify(e.body);J=q;if(!c&&typeof q==="string"){var L=sI8(q);if(L!=null&&(L>Fk6||L<uAC))return e;c=g?{level:1}:void 0;J=rsC(zpq(q),c);var n=(0,_.yr)();I.ticks.gelc=n;if(g){Pb++;if((_.G("disable_compression_due_to_performance_degredation")||_.G("disable_compression_due_to_performance_degradation_lr"))&&
n-k>=QIe)if(UYg++,_.G("abandon_compression_after_N_slow_zips_lr")){g=UYg/Pb;var R=ZOt/_.MN("compression_disable_point");Pb>0&&Pb%_.MN("compression_disable_point")===0&&g>=R&&(iw=!1)}else iw=!1;o_g(I)}}e.headers=Object.assign({},{"Content-Encoding":"gzip"},e.headers||{});e.body=J;return e}catch(W){return _.UI(W),e}}else return e};
sI8=function(e){try{return(new Blob(e.split(""))).size}catch(g){return _.UI(g),null}};
o_g=function(e){_.G("gel_compression_csi_killswitch")||!_.G("log_gel_compression_latency")&&!_.G("log_gel_compression_latency_lr")||$Y6("gel_compression",e,{sampleRate:.1})};
tYq=function(){this.blockSize=-1};
mC=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.total_=this.inbuf_=0;this.reset()};
Nke=function(e){e=Object.assign({},e);delete e.Authorization;var g=_.BkC();if(g){var c=new mC;c.update(_.uo("INNERTUBE_API_KEY"));c.update(g);e.hash=_.MU(c.digest(),3)}return e};
lw=function(){Sz8||(Sz8=new _.pt("yt.innertube"));return Sz8};
ysW=function(e,g,c,k){if(k)return null;k=lw().get("nextId",!0)||1;var I=lw().get("requests",!0)||{};I[k]={method:e,request:g,authState:Nke(c),requestTime:Math.round((0,_.yr)())};lw().set("nextId",k+1,86400,!0);lw().set("requests",I,86400,!0);return k};
Kkq=function(e){var g=lw().get("requests",!0)||{};delete g[e];lw().set("requests",g,86400,!0)};
MY8=function(e){var g=lw().get("requests",!0);if(g){for(var c in g){var k=g[c];if(!(Math.round((0,_.yr)())-k.requestTime<6E4)){var I=k.authState,J=Nke(_.isz(!1));_.n0.equals(I,J)&&(I=k.request,"requestTimeMs"in I&&(I.requestTimeMs=Math.round((0,_.yr)())),OOC(e,k.method,I,{}));delete g[c]}}lw().set("requests",g,86400,!0)}};
CFz=function(e){var g;return(e=e==null?void 0:(g=e.error)==null?void 0:g.code)&&e>=400&&e<=599?!1:!0};
eZC=function(e){var g;e=e==null?void 0:(g=e.error)==null?void 0:g.code;return!(e!==400&&e!==415)};
cbz=function(){if(gk8)return gk8();var e={};gk8=Sn("LogsDatabaseV2",{objectStores:(e.LogsRequestsStore={addedAtVersion:2},e),shared:!1,upgrade:function(g,c,k){c(2)&&At(g,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(k=k.objectStore("LogsRequestsStore"),k.JSC$10999_wrapped.indexNames.contains("newRequest")&&k.JSC$10999_wrapped.deleteIndex("newRequest"),sn(k,"newRequestV2",["status","interface","timestamp"]));c(7)&&g.JSC$10984_wrapped.objectStoreNames.contains("sapisid")&&g.JSC$10984_wrapped.deleteObjectStore("sapisid");
c(9)&&g.JSC$10984_wrapped.objectStoreNames.contains("SWHealthLog")&&g.JSC$10984_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return gk8()};
FY=function(e){return _.Qr(cbz(),e)};
Iiv=function(e,g){var c,k,I,J;return _.r(function(q){if(q.nextAddress==1)return c={startTime:(0,_.yr)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},q.yield(FY(g),2);if(q.nextAddress!=3)return k=q.yieldResult,I=Object.assign({},e,{options:JSON.parse(JSON.stringify(e.options)),interface:_.uo("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),q.yield(k.put("LogsRequestsStore",I),3);J=q.yieldResult;c.ticks.tc=(0,_.yr)();kFC(c);return q.return(J)})};
JbW=function(e,g){var c,k,I,J,q,L,n,R,W;return _.r(function(b){if(b.nextAddress==1)return c={startTime:(0,_.yr)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},b.yield(FY(g),2);if(b.nextAddress!=3)return k=b.yieldResult,I=_.uo("INNERTUBE_CONTEXT_CLIENT_NAME",0),J=[e,I,0],q=[e,I,(0,_.yr)()],L=IDBKeyRange.bound(J,q),n="prev",_.G("use_fifo_for_networkless")&&(n="next"),R=void 0,W=e==="NEW"?"readwrite":"readonly",_.G("use_readonly_for_get_most_recent_by_status_killswitch")&&(W="readwrite"),
b.yield(_.U2(k,["LogsRequestsStore"],{mode:W,enableRetries:!0},function(h){return _.Kf(h.objectStore("LogsRequestsStore").index("newRequestV2"),{query:L,direction:n},function(X){X.getValue()&&(R=X.getValue(),e==="NEW"&&(R.status="QUEUED",X.update(R)))})}),3);
c.ticks.tc=(0,_.yr)();kFC(c);return b.return(R)})};
vkC=function(e,g){var c;return _.r(function(k){if(k.nextAddress==1)return k.yield(FY(g),2);c=k.yieldResult;return k.return(_.U2(c,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(I){var J=I.objectStore("LogsRequestsStore");return J.get(e).then(function(q){if(q)return q.status="QUEUED",J.put(q).then(function(){return q})})}))})};
wTW=function(e,g,c,k){c=c===void 0?!0:c;var I;return _.r(function(J){if(J.nextAddress==1)return J.yield(FY(g),2);I=J.yieldResult;return J.return(_.U2(I,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(q){var L=q.objectStore("LogsRequestsStore");return L.get(e).then(function(n){return n?(n.status="NEW",c&&(n.sendCount+=1),k!==void 0&&(n.options.compress=k),L.put(n).then(function(){return n})):AK.resolve(void 0)})}))})};
qLC=function(e,g){var c;return _.r(function(k){if(k.nextAddress==1)return k.yield(FY(g),2);c=k.yieldResult;return k.return(c.delete("LogsRequestsStore",e))})};
LbC=function(e){var g,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(FY(e),2);g=k.yieldResult;c=(0,_.yr)()-2592E6;return k.yield(_.U2(g,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(I){return Zv(I.objectStore("LogsRequestsStore"),{},function(J){if(J.getValue().timestamp<=c)return J.delete().then(function(){return J.continue()})})}),0)})};
rbU=function(){_.r(function(e){return e.yield(e9C("LogsDatabaseV2"),0)})};
kFC=function(e){_.G("nwl_csi_killswitch")||$Y6("networkless_performance",e,{sampleRate:1})};
_.nkV=function(e){return _.Qr(ai8(),e)};
RZg=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return k.yield(_.nkV(e),2);g=k.yieldResult;c=(0,_.yr)()-2592E6;return k.yield(_.U2(g,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(I){return Zv(I.objectStore("SWHealthLog"),{},function(J){if(J.getValue().timestamp<=c)return J.delete().then(function(){return J.continue()})})}),0)})};
EkC=function(e){var g;return _.r(function(c){if(c.nextAddress==1)return c.yield(_.nkV(e),2);g=c.yieldResult;return c.yield(g.clear("SWHealthLog"),0)})};
_.uw=function(e,g,c,k,I,J,q){I=I===void 0?"":I;J=J===void 0?!1:J;q=q===void 0?!1:q;if(e)if(c&&!PQ("cobalt"))_.UI(new _.E2("Legacy referrer-scrubbed ping detected")),e&&Wb8(e,void 0,{scrubReferrer:!0});else if(I)V4U(e,g,"POST",I,k);else if(_.uo("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||k||q)V4U(e,g,"GET","",k,void 0,J,q);else{b:{try{c:{var L=new bv6({url:e});if(L.urlParamValues_.dsh==="1")var n=null;else{var R=L.urlParamValues_.ae;if(R==="1"){var W=L.urlParamValues_.adurl;if(W)try{n={version:3,directUrl:decodeURIComponent(W),
asyncUrl:xNC(L.JSC$9786_url_,"act=1","ri=1",hZV(L))};break c}catch(D){}}n=R==="2"?{version:4,directUrl:xNC(L.JSC$9786_url_,"dct=1","suid="+L.suid_,"ri=1"),asyncUrl:xNC(L.JSC$9786_url_,"act=1","ri=1","suid="+L.suid_)}:null}}if(n){var b=_.tv(e);var h=!(!b||!b.endsWith("/aclk")||_.eQ(e,"ri")!=="1");break b}}catch(D){}h=!1}if(h){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(e,"")){var X=!0;break b}}catch(D){}X=!1}X?(g&&g(),c=!0):c=!1}else c=!1;c||Wb8(e,g)}};
Wb8=function(e,g,c){c=c===void 0?{}:c;var k=new Image,I=""+XTp++;GFA[I]=k;k.onload=k.onerror=function(){g&&GFA[I]&&g();delete GFA[I]};
c.scrubReferrer&&(k.referrerPolicy="no-referrer");k.src=e};
dK=function(e,g){x2C(e,g==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
D2z=function(e){var g;return((g=document.featurePolicy)==null?0:g.allowedFeatures().includes("attribution-reporting"))?e+"&nis=6":e+"&nis=5"};
$2q=function(e){if(!e)return!1;try{var g;if(((g=_.ZC(e))==null?void 0:g.asm)==="4")return!0}catch(c){_.zr(c)}return!1};
x2C=function(e,g){g?(e=D2z(e),_.uw(e,void 0,void 0,void 0,"",!0,!0)):_.uw(e)};
fiW=function(){YL6||(YL6=new _.pt("yt.offline"));return YL6};
j6W=function(e){if(_.G("offline_error_handling")){var g=fiW().get("errors",!0)||{};g[e.message]={name:e.name,stack:e.stack};e.level&&(g[e.message].level=e.level);fiW().set("errors",g,2592E3,!0)}};
P3t=function(e,g,c,k){k=k===void 0?!1:k;g=_.G("web_fp_via_jspb")?Object.assign({},g):g;_.G("use_cfr_monitor")&&ivt(e,g);if(_.G("use_request_time_ms_header"))g.headers&&BV(e)&&(g.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.yr)())));else{var I;if((I=g.postParams)==null?0:I.requestTimeMs)g.postParams.requestTimeMs=Math.round((0,_.yr)())}c&&Object.keys(g).length===0?_.uw(e):g.compress?g.postBody?(typeof g.postBody!=="string"&&(g.postBody=JSON.stringify(g.postBody)),HOV(e,g.postBody,
g,_.vQ,k)):HOV(e,JSON.stringify(g.postParams),g,SVt,k):_.vQ(e,g)};
m2U=function(e,g){_.G("use_event_time_ms_header")&&BV(e)&&(g.headers||(g.headers={}),g.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.yr)())));return g};
_.TLC=function(){pTg||(pTg=new _.zI({logOfflineErrors:!0,enablePolling:!0}));return pTg};
ivt=function(e,g){var c=g.onError?g.onError:function(){};
g.onError=function(I,J){Hb().requestComplete(e,!1);c(I,J)};
var k=g.onSuccess?g.onSuccess:function(){};
g.onSuccess=function(I,J){Hb().requestComplete(e,!0);k(I,J)}};
_.liz=function(){return _.V9(document.location.toString())!=="www.youtube-nocookie.com"};
_.Fbv=function(){return _.Q0("ytNetworklessLoggingInitializationOptions")?_.Abe.isNwlInitialized:_.s6p};
u6e=function(e,g){if(_.G("polymer_on_demand_shady_dom")){var c;var k=(c=e.__shady_native_firstElementChild)!=null?c:e.firstElementChild}else k=e.firstElementChild;for(;k;){if(e=g(k)?k:u6e(k,g))return e;k=k.nextElementSibling}return null};
_.zZ6=function(){var e=document;if("visibilityState"in e)return e.visibilityState;var g=d2g+"VisibilityState";if(g in e)return e[g]};
_.Hvt=function(e,g){var c;Qu(e,function(k){c=g[k];return!!c});
return c};
_.oF=function(e){var g=Q6e(e);g?g.focus(void 0):_.Un(e)};
Q6e=function(e){return(e=u6e(e,function(g){return _.yd(g)?U2U(g)&&!!g.offsetParent:!1}))?e:null};
_.Un=function(e,g){e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1");e.focus(g)};
okp=function(e,g,c,k){k=k===void 0?{}:k;e.addEventListener&&(g!="mouseenter"||"onmouseenter"in document?g!="mouseleave"||"onmouseenter"in document?g=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(g="MozMousePixelScroll"):g="mouseout":g="mouseover");return _.n0.findKey(Zk,function(I){var J=typeof I[4]==="boolean"&&I[4]==!!k,q=_.SK(I[4])&&_.SK(k)&&_.n0.equals(I[4],k);return!!I.length&&I[0]==e&&I[1]==g&&I[2]==c&&(J||q)})};
_.tt=function(e,g,c,k){k=k===void 0?{}:k;if(!e||!e.addEventListener&&!e.attachEvent)return"";var I=okp(e,g,c,k);if(I)return I;I=++Zvg.count+"";var J=!(g!="mouseenter"&&g!="mouseleave"||!e.addEventListener||"onmouseenter"in document);var q=J?function(L){L=new Vu(L);if(!_.Xm(L.relatedTarget,function(n){return n==e},!0))return L.currentTarget=e,L.type=g,c.call(e,L)}:function(L){L=new Vu(L);
L.currentTarget=e;return c.call(e,L)};
q=_.HV(q);e.addEventListener?(g=="mouseenter"&&J?g="mouseover":g=="mouseleave"&&J?g="mouseout":g=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(g="MozMousePixelScroll"),VUe()||typeof k==="boolean"?e.addEventListener(g,q,k):e.addEventListener(g,q,!!k.capture)):e.attachEvent("on"+g,q);Zk[I]=[e,g,c,q,k];return I};
_.BLz=function(e,g,c){var k=k===void 0?{}:k;var I=_.tt(e,g,function(){_.tUg(I);c.apply(e,arguments)},k)};
_.tUg=function(e){e&&(typeof e=="string"&&(e=[e]),_.o7(e,function(g){if(g in Zk){var c=Zk[g],k=c[0],I=c[1],J=c[3];c=c[4];k.removeEventListener?VUe()||typeof c==="boolean"?k.removeEventListener(I,J,c):k.removeEventListener(I,J,!!c.capture):k.detachEvent&&k.detachEvent("on"+I,J);delete Zk[g]}}))};
Bb=function(e){this.callback_=e;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(e=0;e<4;e++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.tt(window,"mousemove",(0,_.Ju)(this.onMouseMove_,this));this.timerId_=_.I$((0,_.Ju)(this.checkPosition_,this),25)};
ybC=function(){var e={};var g=e.preferMobileEvents===void 0?!1:e.preferMobileEvents;e=e.enableScrollEventListener===void 0?!0:e.enableScrollEventListener;if(_.Q0("_lact",window)==null){var c=parseInt(_.uo("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;_.BQ("_lact",c,window);_.BQ("_fact",c,window);c==-1&&_.Nz();NLC(window,g,e);new Bb(function(){SL6("mouse",100)})}};
NLC=function(e,g,c){g=g===void 0?!1:g;c=c===void 0?!0:c;_.tt(e.document,"keydown",_.Nz);_.tt(e.document,"keyup",_.Nz);_.tt(e.document,"mousedown",_.Nz);_.tt(e.document,"mouseup",_.Nz);g?_.tt(e,"touchmove",function(){SL6("touchmove",200)},{passive:!0}):(_.tt(e,"resize",function(){SL6("resize",200)}),c&&_.tt(e,"scroll",function(){SL6("scroll",200)}));
_.tt(e.document,"touchstart",_.Nz,{passive:!0});_.tt(e.document,"touchend",_.Nz,{passive:!0})};
SL6=function(e,g){KbC[e]||(KbC[e]=!0,_.ft.addLowPriorityJob(function(){_.Nz();KbC[e]=!1},g))};
_.Nz=function(){_.Q0("_lact",window)==null&&ybC();var e=Date.now();_.BQ("_lact",e,window);_.Q0("_fact",window)==-1&&_.BQ("_fact",e,window);(e=_.Q0("ytglobal.ytUtilActivityCallback_"))&&e()};
_.S6=function(){var e=_.Q0("_lact",window);return e==null?-1:Math.max(Date.now()-e,0)};
_.Mz=function(e,g,c){var k=_.yu();if(k&&g){var I=k.subscribe(e,function(){var J=arguments,q=function(){Kt[I]&&g.apply&&typeof g.apply=="function"&&g.apply(c||window,J)};
try{_.Ov6[e]?q():_.k1(q,0)}catch(L){_.zr(L)}},c);
Kt[I]=!0;On[e]||(On[e]=[]);On[e].push(I);return I}return 0};
_.MUU=function(e){var g=_.yu();g&&(typeof e==="number"?e=[e]:typeof e==="string"&&(e=[parseInt(e,10)]),_.o7(e,function(c){g.unsubscribeByKey(c);delete Kt[c]}))};
_.C3V=function(e,g){var c=_.yu();c&&c.publish.apply(c,arguments)};
_.gyt=function(e){var g=_.yu();if(g)if(g.clear(e),e)eNC(e);else for(var c in On)eNC(c)};
_.yu=function(){return _.kp.ytPubsubPubsubInstance};
eNC=function(e){On[e]&&(e=On[e],_.o7(e,function(g){Kt[g]&&delete Kt[g]}),e.length=0)};
c4K=function(){var e,g;return"h5vcc"in Ct&&((e=Ct.h5vcc.traceEvent)==null?0:e.traceBegin)&&((g=Ct.h5vcc.traceEvent)==null?0:g.traceEnd)?1:"performance"in Ct&&Ct.performance.mark&&Ct.performance.measure?2:0};
kJU=function(e){var g=c4K();switch(g){case 1:Ct.h5vcc.traceEvent.traceBegin("YTLR",e);break;case 2:Ct.performance.mark(e+"-start");break;case 0:break;default:_.gj(g,"unknown trace type")}};
I3V=function(e){var g=c4K();switch(g){case 1:Ct.h5vcc.traceEvent.traceEnd("YTLR",e);break;case 2:g=e+"-start";var c=e+"-end";Ct.performance.mark(c);Ct.performance.measure(e,g,c);break;case 0:break;default:_.gj(g,"unknown trace type")}};
J4V=function(e){var g,c;(c=(g=window).onerror)==null||c.call(g,e.message,"",0,0,e)};
vy8=function(e){if(_.G("web_lifecycle_error_handling_killswitch"))return e();try{return e()}catch(g){J4V(g)}};
wOz=function(e){return[e.auth===void 0?"undefined":e.auth,e.isJspb===void 0?"undefined":e.isJspb,e.cttAuthInfo===void 0?"undefined":e.cttAuthInfo,e.tier===void 0?"undefined":e.tier].join("/")};
_.x=function(e,g){if(e)return e[g.name]};
gF=function(){var e=_.Q0("yt.logging.ims");e||(e=new eW,_.BQ("yt.logging.ims",e));return e};
bxe=function(e,g){if(e.endpoint==="log_event"){q1K(e);var c=Lsg(e),k=r4p(e.payload)||"",I=a3C(k),J=200;if(I){if(I.enabled===!1&&!_.G("web_payload_policy_disabled_killswitch"))return;J=nyC(I.tier);if(J===400){RNv(e,g);return}}cy[c]=!0;c={cttAuthInfo:c,isJspb:!1,tier:J};gF().storePayload(c,e.payload);Eyp(g,!1,c,Wse(k))}};
XOv=function(e,g,c){if(g.endpoint==="log_event"){q1K(void 0,g);var k=Lsg(g,!0),I=a3C(e),J=200;if(I){if(I.enabled===!1&&!_.G("web_payload_policy_disabled_killswitch"))return;J=nyC(I.tier);if(J===400){hNC(e,g,c);return}}cy[k]=!0;k={cttAuthInfo:k,isJspb:!0,tier:J};gF().storePayload(k,Qv(g.payload));Eyp(c,!0,k,Wse(e))}};
Eyp=function(e,g,c,k){g=g===void 0?!1:g;k=k===void 0?!1:k;e&&(k2=new e);e=_.MN("tvhtml5_logging_max_batch_ads_fork")||_.MN("tvhtml5_logging_max_batch")||_.MN("web_logging_max_batch")||100;var I=(0,_.yr)(),J=GJU(g,c.tier),q=J.lastDebounceQueueFromLogTimeMs;k&&(J.useVideoStatsEndPoint=!0);k=0;c&&(k=gF().getSequenceCount(c));var L=function(){xH8({writeThenSend:!0},g,c.tier)};
k>=1E3?L():k>=e?DHC||(DHC=$HC(function(){L();DHC=void 0},0)):I-q>=10&&(Y1K(g,c.tier),J.lastDebounceQueueFromLogTimeMs=I)};
RNv=function(e,g){if(e.endpoint==="log_event"){_.G("more_accurate_gel_parser")&&gF().storePayload({isJspb:!1},e.payload);q1K(e);var c=Lsg(e),k=new Map;k.set(c,[e.payload]);var I=r4p(e.payload)||"";g&&(k2=new g);return new _.Il(function(J,q){k2&&k2.isReady()?f3C(k,k2,J,q,{bypassNetworkless:!0},!0,Wse(I)):J()})}};
hNC=function(e,g,c){if(g.endpoint==="log_event"){q1K(void 0,g);var k=Lsg(g,!0),I=new Map;I.set(k,[Qv(g.payload)]);c&&(k2=new c);return new _.Il(function(J){k2&&k2.isReady()?jHq(I,k2,J,{bypassNetworkless:!0},!0,Wse(e)):J()})}};
Lsg=function(e,g){var c="";if(e.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(e.cttAuthInfo){if(g===void 0?0:g){g=e.cttAuthInfo.token;c=e.cttAuthInfo;var k=new ixV;c.videoId?k.setVideoId(c.videoId):c.playlistId&&J2(k,2,P6e,pg(c.playlistId));mHt[g]=k}else g=e.cttAuthInfo,c={},g.videoId?c.videoId=g.videoId:g.playlistId&&(c.playlistId=g.playlistId),pOU[e.cttAuthInfo.token]=c;c=e.cttAuthInfo.token}return c};
xH8=function(e,g,c){e=e===void 0?{}:e;g=g===void 0?!1:g;new _.Il(function(k,I){var J=GJU(g,c),q=J.useVideoStatsEndPoint;J.useVideoStatsEndPoint=!1;Tip(J.queueTimer);Tip(J.queueMaxTimer);J.queueMaxTimer=0;k2&&k2.isReady()?c===void 0&&_.G("enable_web_tiered_gel")?l3p(k,I,e,g,300,q):l3p(k,I,e,g,c,q):(Y1K(g,c),k())})};
l3p=function(e,g,c,k,I,J){var q=k2;c=c===void 0?{}:c;k=k===void 0?!1:k;I=I===void 0?200:I;J=J===void 0?!1:J;var L=new Map,n=new Map,R={isJspb:k,cttAuthInfo:void 0,tier:I},W={isJspb:k,cttAuthInfo:void 0};if(k){g=_.w(Object.keys(cy));for(I=g.next();!I.done;I=g.next())I=I.value,n=_.G("enable_web_tiered_gel")?gF().smartExtractMatchingEntries({keys:[R,W],sizeLimit:1E3}):gF().extractMatchingEntries({isJspb:!0,cttAuthInfo:I}),n.length>0&&L.set(I,n),(_.G("web_fp_via_jspb_and_json")&&c.writeThenSend||!_.G("web_fp_via_jspb_and_json"))&&
delete cy[I];jHq(L,q,e,c,!1,J)}else{L=_.w(Object.keys(cy));for(R=L.next();!R.done;R=L.next())R=R.value,W=_.G("enable_web_tiered_gel")?gF().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:R,tier:I},{isJspb:!1,cttAuthInfo:R}],sizeLimit:1E3}):gF().extractMatchingEntries({isJspb:!1,cttAuthInfo:R}),W.length>0&&n.set(R,W),(_.G("web_fp_via_jspb_and_json")&&c.writeThenSend||!_.G("web_fp_via_jspb_and_json"))&&delete cy[R];f3C(n,q,e,g,c,!1,J)}};
Y1K=function(e,g){e=e===void 0?!1:e;g=g===void 0?200:g;var c=function(){xH8({writeThenSend:!0},e,g)},k=GJU(e,g),I=k===A4W||k===sHg?5E3:Fsg;
_.G("web_gel_timeout_cap")&&!k.queueMaxTimer&&(I=$HC(function(){c()},I),k.queueMaxTimer=I);
Tip(k.queueTimer);I=_.uo("LOGGING_BATCH_TIMEOUT",_.MN("web_gel_debounce_ms",1E4));_.G("shorten_initial_gel_batch_timeout")&&uEC&&(I=dH6);I=$HC(function(){_.MN("gel_min_batch_size")>0?gF().getSequenceCount({cttAuthInfo:void 0,isJspb:e,tier:g})>=zNv&&c():c()},I);
k.queueTimer=I};
f3C=function(e,g,c,k,I,J,q){I=I===void 0?{}:I;var L=Math.round((0,_.yr)()),n=e.size,R=HxV(q);e=_.w(e);var W=e.next();for(q={};!W.done;q={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},W=e.next()){var b=_.w(W.value);W=b.next().value;b=b.next().value;q.batchRequest=_.n0.unsafeClone({context:_.h9p(g.config_||_.O2())});if(!_.Bz(b)&&!_.G("throw_err_when_logevent_malformed_killswitch")){k();break}q.batchRequest.events=b;
(b=pOU[W])&&QHg(q.batchRequest,W,b);delete pOU[W];q.dangerousLogToVisitorSession=W==="visitorOnlyApprovedKey";UH8(q.batchRequest,L,q.dangerousLogToVisitorSession);oyg(I);q.onSuccess$jscomp$3=function(h){_.G("start_client_gcf")&&_.ft.addLowPriorityJob(function(){return _.r(function(X){return X.yield(Zx6(h),0)})});
n--;n||c()};
q.networkFailures=0;q.onError$jscomp$5=function(h){return function(){h.networkFailures++;if(I.bypassNetworkless&&h.networkFailures===1)try{OOC(g,R,h.batchRequest,VtU({writeThenSend:!0},h.dangerousLogToVisitorSession,h.onSuccess$jscomp$3,h.onError$jscomp$5,J)),uEC=!1}catch(X){_.zr(X),k()}n--;n||c()}}(q);
try{OOC(g,R,q.batchRequest,VtU(I,q.dangerousLogToVisitorSession,q.onSuccess$jscomp$3,q.onError$jscomp$5,J)),uEC=!1}catch(h){_.zr(h),k()}}};
jHq=function(e,g,c,k,I,J){k=k===void 0?{}:k;var q=Math.round((0,_.yr)()),L={value:e.size},n=new Map([].concat(_.KY(e)));n=_.w(n);for(var R=n.next();!R.done;R=n.next()){var W=_.w(R.value).next().value,b=e.get(W);R=new vy;var h=g.config_||_.O2(),X=new wF,D=new ttC;_.vH(D,1,h.innertubeContextHostLanguage);_.vH(D,2,h.innertubeContextGeoLocation);_.Cf(D,16,h.innertubeContextClientNameFieldNumber);_.vH(D,17,h.innertubeContextClientVersion);if(h.innertubeContextClientConfigInfo){var f=h.innertubeContextClientConfigInfo,
l=new gK;f.coldConfigData&&_.vH(l,1,f.coldConfigData);f.appInstallData&&_.vH(l,6,f.appInstallData);f.coldHashData&&_.vH(l,3,f.coldHashData);f.hotHashData&&l.setHotHashData(f.hotHashData);_.sx(D,62,l)}(f=_.kp.devicePixelRatio)&&f!=1&&_.e6(D,65,_.cq(f));f=F7U();f!==""&&_.vH(D,54,f);f=ubq();if(f.length>0){l=new BiV;for(var A=0;A<f.length;A++){var d=new qf;d.setKey(f[A].key);J2(d,2,Nie,pg(f[A].value));LB(l,15,qf,d)}_.sx(X,5,l)}auK(h,D);nvp(X);R9C(D);EvA(h,D);Wiz(D);_.G("start_client_gcf")&&bsC(D);_.uo("DELEGATED_SESSION_ID")&&
!_.G("pageid_as_header_web")&&(h=new rF,_.vH(h,3,_.uo("DELEGATED_SESSION_ID")));!_.G("fill_delegate_context_in_gel_killswitch")&&(f=_.uo("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(l=_.Ml(X,rF,3)||new rF,h=X,f=_.vH(l,18,f),_.sx(h,3,f));h=D;f=_.w(Object.entries(_.ZC(_.uo("DEVICE",""))));for(l=f.next();!l.done;l=f.next())A=_.w(l.value),l=A.next().value,A=A.next().value,l==="cbrand"?_.vH(h,12,A):l==="cmodel"?_.vH(h,13,A):l==="cbr"?_.vH(h,87,A):l==="cbrver"?_.vH(h,88,A):l==="cos"?_.vH(h,18,
A):l==="cosver"?_.vH(h,19,A):l==="cplatform"&&_.Cf(h,42,aYW(A));X.setClient(D);_.sx(R,1,X);if(D=mHt[W])a:{if(_.Ma(D,al(D,P6e,1)))X=1;else if(D.getPlaylistId())X=2;else break a;_.sx(R,4,D);D=R.getContext()||new wF;h=_.Ml(D,rF,3)||new rF;f=new nB;f.setToken(W);_.Cf(f,1,X);LB(h,12,nB,f);_.sx(D,3,h)}delete mHt[W];W=W==="visitorOnlyApprovedKey";S18()||_.Rl(R,2,q);!W&&(X=_.uo("EVENT_ID"))&&(D=y4p(),h=new Ksv,_.vH(h,1,X),_.Rl(h,2,D),_.sx(R,5,h));oyg(k);if(_.G("jspb_serialize_with_worker")&&(X=_.PFg())&&
k.writeThenSend){_.Oxv.set(Mtt,{client:g,resolve:c,networklessOptions:k,isIsolated:I,useVSSEndpoint:J,dangerousLogToVisitorSession:W,requestsOutstanding:L});X.postMessage({op:"gelBatchToSerialize",batchRequest:Qv(R),clientEvents:b,key:Mtt});Mtt++;break}if(b){X=[];for(D=0;D<b.length;D++)try{X.push(new bf(b[D]))}catch(S){_.zr(new _.E2("Transport failed to deserialize "+String(b[D])))}b=X}else b=[];b=_.w(b);for(X=b.next();!X.done;X=b.next())LB(R,3,bf,X.value);b={startTime:(0,_.yr)(),ticks:{},infos:{}};
R=R.serialize();b.ticks.geljspc=(0,_.yr)();_.G("log_jspb_serialize_latency")&&$Y6("gel_jspb_serialize",b,{sampleRate:.1});_.C6K(R,g,c,k,I,J,W,L)}};
_.C6K=function(e,g,c,k,I,J,q,L){k=k===void 0?{}:k;L=L===void 0?{value:0}:L;J=HxV(J);k=VtU(k,q,function(n){_.G("start_client_gcf")&&_.ft.addLowPriorityJob(function(){return _.r(function(R){return R.yield(Zx6(n),0)})});
L.value--;L.value||c()},function(){L.value--;
L.value||c()},I);
k.headers["Content-Type"]="application/json+protobuf";k.postBodyFormat="JSPB";k.postBody=e;OOC(g,J,"",k);uEC=!1};
oyg=function(e){_.G("always_send_and_write")&&(e.writeThenSend=!1)};
VtU=function(e,g,c,k,I){e={retry:!0,onSuccess:c,onError:k,networklessOptions:e,dangerousLogToVisitorSession:g,bypassMonitoring:!!I,headers:{},postBodyFormat:"",postBody:"",compress:_.G("compress_gel")||_.G("compress_gel_lr")};S18()&&(e.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.yr)())));return e};
UH8=function(e,g,c){S18()||(e.requestTimeMs=String(g));_.G("unsplit_gel_payloads_in_logs")&&(e.unsplitGelPayloadsInLogs=!0);!c&&(g=_.uo("EVENT_ID"))&&(c=y4p(),e.serializedClientEventId={serializedEventId:g,clientCounter:String(c)})};
y4p=function(){var e=_.uo("BATCH_CLIENT_COUNTER")||0;e||(e=Math.floor(Math.random()*65535/2));e++;e>65535&&(e=1);_.Fq("BATCH_CLIENT_COUNTER",e);return e};
QHg=function(e,g,c){if(c.videoId)var k="VIDEO";else if(c.playlistId)k="PLAYLIST";else return;e.credentialTransferTokenTargetId=c;e.context=e.context||{};e.context.user=e.context.user||{};e.context.user.credentialTransferTokens=[{token:g,scope:k}]};
q1K=function(e,g){var c=_.C4("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Q0("yt.logging.transport.enableScrapingForTest"))if(c)ec6=[],_.BQ("yt.logging.transport.enableScrapingForTest",!0),_.BQ("yt.logging.transport.scrapedPayloadsForTesting",ec6),_.BQ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.BQ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.BQ("yt.logging.transport.scrapeClientEvent",!0);else return;c=_.Q0("yt.logging.transport.scrapedPayloadsForTesting");var k=_.Q0("yt.logging.transport.payloadToScrape");g&&(g=_.Q0("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(g.payload)())&&c.push(g);g=_.Q0("yt.logging.transport.scrapeClientEvent");if(k&&k.length>=1)for(var I=0;I<k.length;I++)if(e&&e.payload[k[I]])if(g)c.push(e.payload);else{var J=void 0;c.push(((J=e)==null?void 0:J.payload)[k[I]])}_.BQ("yt.logging.transport.scrapedPayloadsForTesting",
c)};
S18=function(){return _.G("use_request_time_ms_header")||_.G("lr_use_request_time_ms_header")};
$HC=function(e,g){return _.G("transport_use_scheduler")===!1?_.k1(e,g):_.G("logging_avoid_blocking_during_navigation")||_.G("lr_logging_avoid_blocking_during_navigation")?_.h2(_.ft,function(){if(_.guA().currentState==="none")e();else{var c={};_.guA().install((c.none={callback:e},c))}},g):_.h2(_.ft,e,g)};
Tip=function(e){_.G("transport_use_scheduler")?_.ft.cancelJob(e):_.JK(e)};
Zx6=function(e){var g,c,k,I,J,q,L,n,R,W,b,h,X,D,f;return _.r(function(l){if(l.nextAddress==1)return k=(g=e)==null?void 0:(c=g.responseContext)==null?void 0:c.globalConfigGroup,I=_.x(k,cCe),q=(J=k)==null?void 0:J.hotHashData,L=_.x(k,kPV),R=(n=k)==null?void 0:n.coldHashData,(W=_.Ss().resolve(_.NN(XC)))?q?I?l.yield(I9p(W,q,I),3):l.yield(I9p(W,q),3):l.jumpTo(3):l.jumpTo(2);if(l.nextAddress!=2)return R?L?l.yield(JCg(W,R,L),2):l.yield(JCg(W,R),2):l.jumpTo(2);h=(b=k)==null?void 0:b.rawFinchStaticConfigGroup;
D=(X=k)==null?void 0:X.finchStaticHashData;if(!D)return h&&_.UI(new _.E2("Finch config data is present, but hash is missing.")),l.return();f=_.Ss().resolve(_.NN(vu8));return f?l.yield(f.processAndSetFinchConfig({config:h||{},configHash:D||""}),0):((h||D)&&_.UI(new _.E2("FinchConfigManagerService is not present, but Finch config data is present.")),l.jumpTo(0))})};
GJU=function(e,g){g=g===void 0?200:g;return e?g===300?A4W:wYz:g===300?sHg:qQ6};
a3C=function(e){if(_.G("enable_web_tiered_gel")){e=L3W[e||""];var g,c,k,I=_.Ss().resolve(_.NN(XC))==null?void 0:(g=Gm())==null?void 0:(c=g.loggingHotConfig)==null?void 0:(k=c.eventLoggingConfig)==null?void 0:k.payloadPolicies;if(I)for(g=0;g<I.length;g++)if(I[g].payloadNumber===e)return I[g]}};
r4p=function(e){e=Object.keys(e);e=_.w(e);for(var g=e.next();!g.done;g=e.next())if(g=g.value,L3W[g])return g};
nyC=function(e){switch(e){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}};
Wse=function(e){return e==="gelDebuggingEvent"};
HxV=function(e){return(e===void 0?0:e)&&_.G("vss_through_gel_video_stats")?"video_stats":"log_event"};
Dd=function(e,g,c,k){k=k===void 0?{}:k;var I={},J=Math.round(k.timestamp||(0,_.yr)());I.eventTimeMs=J<Number.MAX_SAFE_INTEGER?J:0;I[e]=g;e=_.S6();I.context={lastActivityMs:String(k.timestamp||!isFinite(e)?-1:e)};k.sequenceGroup&&!_.G("web_gel_sequence_info_killswitch")&&(e=I.context,g=k.sequenceGroup,g={index:rCe(g),groupKey:g},e.sequence=g,k.endOfSequence&&delete x2[k.sequenceGroup]);_.G("web_tag_automated_log_events")&&(I.context.automatedLogEventSource=k.automatedLogEventSource);(k.sendIsolatedPayload?
RNv:bxe)({endpoint:"log_event",payload:I,cttAuthInfo:k.cttAuthInfo,dangerousLogToVisitorSession:k.dangerousLogToVisitorSession},c)};
rCe=function(e){x2[e]=e in x2?x2[e]+1:0;return x2[e]};
_.Y2=function(e,g,c){c=c===void 0?{}:c;var k=$2;_.dH("ytLoggingEventsDefaultDisabled",!1)&&$2===$2&&(k=null);Dd(e,g,k,c)};
_.fB=function(){if(_.G("web_fp_via_jspb")){var e=!0;e=e===void 0?!1:e;var g=a9V;a9V=[];if(g){g=_.w(g);for(var c=g.next();!c.done;c=g.next())c=c.value,e?Dd(c.payloadName,c.payload,$2,c.options):_.Y2(c.payloadName,c.payload,c.options)}xH8(void 0,!0);if(!_.G("web_fp_via_jspb_and_json"))return}xH8(void 0,!1)};
nut=function(e,g){var c;if((c=g)==null?0:c.componentStack)return g;if(e=e.componentStack)g||(g={}),g.componentStack=e;return g};
Rcq=function(){_.o7(_.uo("ERRORS")||[],function(e){_.jW.apply(null,e)});
_.Fq("ERRORS",[])};
_.Py=function(e){_.jW(e)};
_.mN=function(e){_.jW(e,"WARNING")};
EuC=function(e){e instanceof Error?_.jW(e):(e=_.SK(e)?JSON.stringify(e):String(e),e=new _.E2(e),e.name="RejectedPromiseError",_.mN(e))};
W3z=function(e,g,c,k,I,J){g=g===void 0?"Unknown file":g;c=c===void 0?0:c;var q=!1,L=Enp("log_window_onerror_fraction");if(L&&Math.random()<L)q=!0;else{L=document.getElementsByTagName("script");for(var n=0,R=L.length;n<R;n++)if(L[n].src.indexOf("/debug-")>0){q=!0;break}}q&&(q=!1,I?q=!0:(typeof e==="string"?L=e:ErrorEvent&&e instanceof ErrorEvent?(q=!0,L=e.message,g=e.filename,c=e.lineno,k=e.colno):(L="Unknown error",g="Unknown file",c=0),I=new _.E2(L),I.name="UnhandledWindowError",I.message=L,I.fileName=
g,I.lineNumber=c,isNaN(k)?delete I.columnNumber:I.columnNumber=k),_.G("wiz_enable_component_stack_propagation_killswitch")||(J=nut(I,J)),J&&_.pB(I,J),q?_.jW(I):_.mN(I))};
_.jW=function(e,g,c,k,I,J,q,L){J=J===void 0?{}:J;J.name=c||_.uo("INNERTUBE_CONTEXT_CLIENT_NAME",1);J.version=k||_.uo("INNERTUBE_CONTEXT_CLIENT_VERSION");c=J;g=g===void 0?"ERROR":g;q=q===void 0?!1:q;g=g===void 0?"ERROR":g;q=q===void 0?!1:q;if(e&&(e.hasOwnProperty("level")&&e.level&&(g=e.level),_.G("console_log_js_exceptions")&&(k=[],k.push("Name: "+e.name),k.push("Message: "+e.message),e.hasOwnProperty("params")&&k.push("Error Params: "+JSON.stringify(e.params)),e.hasOwnProperty("args")&&k.push("Error args: "+
JSON.stringify(e.args)),k.push("File name: "+e.fileName),k.push("Stacktrace: "+e.stack),k=k.join("\n"),window.console.log(k,e)),!(bVU>=5))){k=[];I=_.w(hcv);for(J=I.next();!J.done;J=I.next()){J=J.value;try{J()&&k.push(J())}catch(l){}}k=[].concat(_.KY(XYg),_.KY(k));var n=GP8(e);I=n.message||"Unknown Error";J=n.name||"UnknownError";var R=n.stack||e.stacktrace||"Not available";if(R.startsWith(J+": "+I)){var W=R.split("\n");W.shift();R=W.join("\n")}W=n.lineNumber||"Not available";n=n.fileName||"Not available";
var b=0;if(e.hasOwnProperty("args")&&e.args&&e.args.length)for(var h=0;h<e.args.length&&!(b=rwA(e.args[h],"params."+h,c,b),b>=500);h++);else if(e.hasOwnProperty("params")&&e.params){var X=e.params;if(typeof e.params==="object")for(h in X){if(X[h]){var D="params."+h,f=ql(X[h]);c[D]=f;b+=D.length+f.length;if(b>500)break}}else c.params=ql(X)}if(k.length)for(h=0;h<k.length&&!(b=rwA(k[h],"params.context."+h,c,b),b>=500);h++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);
h={message:I,name:J,lineNumber:W,fileName:n,stack:R,params:c,sampleWeight:1};c=Number(e.columnNumber);isNaN(c)||(h.lineNumber=h.lineNumber+":"+c);if(e.level==="IGNORED")e=0;else a:{e=xyA();c=_.w(e.messageWeights);for(k=c.next();!k.done;k=c.next())if(k=k.value,h.message&&h.message.match(k.messageRegExp)){e=k.weight;break a}e=_.w(e.callbackWeights);for(c=e.next();!c.done;c=e.next())if(c=c.value,c.callback(h)){e=c.weight;break a}e=1}h.sampleWeight=e;e=_.w(Dyq);for(c=e.next();!c.done;c=e.next())if(c=
c.value,c.patternsForType[h.name])for(I=_.w(c.patternsForType[h.name]),k=I.next();!k.done;k=I.next())if(J=k.value,k=h.message.match(J.regexp)){h.params["params.error.original"]=k[0];I=J.groups;J={};for(W=0;W<I.length;W++)J[I[W]]=k[W+1],h.params["params.error."+I[W]]=k[W+1];h.message=c.messageFn(J);break}h.params||(h.params={});e=xyA();h.params["params.errorServiceSignature"]="msg="+e.messageWeights.length+"&cb="+e.callbackWeights.length;h.params["params.serviceWorker"]="false";_.kp.document&&_.kp.document.querySelectorAll&&
(h.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Tm($ye,"sample")).constructor!==Tm&&(h.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(h);if(h.sampleWeight!==0&&!YQ6.has(h.message)){if(q)f9q(g===void 0?"ERROR":g,h);else{g=g===void 0?"ERROR":g;g==="ERROR"?(lf.publish("handleError",h),_.G("record_app_crashed_web")&&jBq===0&&h.sampleWeight===1&&(jBq++,q={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.G("report_client_error_with_app_crash_ks")||
(q.systemHealth={crashData:{clientError:{logMessage:{message:h.message}}}}),_.Y2("appCrashed",q)),iVp++):g==="WARNING"&&lf.publish("handleWarning",h);if(_.G("kevlar_gel_error_routing")){q=g;L=L===void 0?{}:L;b:{e=_.w(PDU);for(c=e.next();!c.done;c=e.next())if(PQ(c.value.toLowerCase())){e=!0;break b}e=!1}if(e)L=void 0;else{c={stackTrace:h.stack};h.fileName&&(c.filename=h.fileName);e=h.lineNumber&&h.lineNumber.split?h.lineNumber.split(":"):[];e.length!==0&&(e.length!==1||isNaN(Number(e[0]))?e.length!==
2||isNaN(Number(e[0]))||isNaN(Number(e[1]))||(c.lineNumber=Number(e[0]),c.columnNumber=Number(e[1])):c.lineNumber=Number(e[0]));e={level:"ERROR_LEVEL_UNKNOWN",message:h.message,errorClassName:h.name,sampleWeight:h.sampleWeight};q==="ERROR"?e.level="ERROR_LEVEL_ERROR":q==="WARNING"&&(e.level="ERROR_LEVEL_WARNNING");c={isObfuscated:!0,browserStackInfo:c};L.pageUrl=window.location.href;L.kvPairs=[];_.uo("FEXP_EXPERIMENTS")&&(L.experimentIds=_.uo("FEXP_EXPERIMENTS"));k=_.uo("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!Enp("web_disable_gel_stp_ecatcher_killswitch")&&k)for(I=_.w(Object.keys(k)),J=I.next();!J.done;J=I.next())J=J.value,L.kvPairs.push({key:J,value:String(k[J])});if(k=h.params)for(I=_.w(Object.keys(k)),J=I.next();!J.done;J=I.next())J=J.value,L.kvPairs.push({key:"client."+J,value:String(k[J])});k=_.uo("SERVER_NAME");I=_.uo("SERVER_VERSION");k&&I&&(L.kvPairs.push({key:"server.name",value:k}),L.kvPairs.push({key:"server.version",value:I}));L={errorMetadata:L,stackTrace:c,logMessage:e}}L&&(_.Y2("clientError",
L),(q==="ERROR"||_.G("errors_flush_gel_always_killswitch"))&&_.fB())}_.G("suppress_error_204_logging")||f9q(g,h)}try{YQ6.add(h.message)}catch(l){}bVU++}}};
f9q=function(e,g){var c=g.params||{};e={urlParams:{a:"logerror",t:"jserror",type:g.name,msg:g.message.substr(0,250),line:g.lineNumber,level:e,"client.name":c.name},postParams:{url:_.uo("PAGE_NAME",window.location.href),file:g.fileName},method:"POST"};c.version&&(e["client.version"]=c.version);if(e.postParams){g.stack&&(e.postParams.stack=g.stack);g=_.w(Object.keys(c));for(var k=g.next();!k.done;k=g.next())k=k.value,e.postParams["client."+k]=c[k];if(c=_.uo("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(g=
_.w(Object.keys(c)),k=g.next();!k.done;k=g.next())k=k.value,e.postParams[k]=c[k];(c=_.uo("LAVA_VERSION"))&&(e.postParams["lava.version"]=c);c=_.uo("SERVER_NAME");g=_.uo("SERVER_VERSION");c&&g&&(e.postParams["server.name"]=c,e.postParams["server.version"]=g)}_.vQ(_.uo("ECATCHER_REPORT_HOST","")+"/error_204",e)};
_.my8=function(e,g){g=g===void 0?"ERROR":g;var c=c===void 0?{}:c;var k=_.Q0("ytbin.polymer.shared.lib.tampering.info");k&&(k=k())&&(c["params.tamperingInfo"]=k.sort().join(","));_.jW(e,g,void 0,void 0,!0,c)};
_.pB=function(e){var g=_.Mb.apply(1,arguments);e.args||(e.args=[]);Array.isArray(e.args)&&e.args.push.apply(e.args,_.KY(g))};
pYz=function(e){e.level="IGNORED"};
TbU=function(e,g){XYg.push(e);g();XYg.pop()};
A2=function(e,g){for(var c in g)g.hasOwnProperty(c)&&(e=_.cH(e,c,g[c]));return e};
_.l9U=function(e,g,c){c=c===void 0?!1:c;if(!e)return null;if(e.adInfoDialogEndpoint||e.backstageImageUploadEndpoint||e.confirmDialogEndpoint||e.clientActionEndpoint||e.createBackstagePostDialogEndpoint||e.createCommentReplyDialogEndpoint||e.flowEndpoint||e.guideBuilderEndpoint||e.liveChatDialogEndpoint||e.modalEndpoint||e.openPopupAction||e.shareEndpoint||e.shareEntityEndpoint||e.showLiveChatItemEndpoint||e.subscriptionManagerEndpoint||e.unlimitedCreateFamilyEndpoint||e.unlimitedFamilyFlowEndpoint||
e.updateCommentDialogEndpoint||e.updateCommentReplyDialogEndpoint||e.userFeedbackEndpoint||e.videoEditorEndpoint||e.ypcCancelSurveyEndpoint)return g=_.MN("polymer_report_client_url_requested_rate"),!c&&Math.random()<g&&_.mN(new _.E2("urlForEndpoint used on client endpoint",e)),null;var k=_.MN("polymer_report_missing_web_navigation_endpoint_rate");if(e.liveChatEndpoint||e.liveChatReplayEndpoint)k=0;if(!e.commandMetadata&&!e.clickTrackingParams&&Math.random()<k){var I={},J;for(J in e)I[J]="1";_.mN(new _.E2("Missing navigation data",
I))}I="";if(e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.url)I=e.commandMetadata.webCommandMetadata.url;else if(e.searchEndpoint)Math.random()<k&&_.mN(new _.E2("Should not manually handle search",e)),I="/results?search_query="+encodeURIComponent(e.searchEndpoint.query).replace(/%20/g,"+"),e.searchEndpoint.params&&(I+="&sp="+e.searchEndpoint.params);else if(e.watchEndpoint)Math.random()<k&&_.mN(new _.E2("Should not manually handle watch",e)),I="/watch?v="+
e.watchEndpoint.videoId,e.watchEndpoint.playlistId&&(I+="&list="+e.watchEndpoint.playlistId),e.watchEndpoint.index&&(I+="&index="+e.watchEndpoint.index),e.watchEndpoint.startTimeSeconds&&(I+="&t="+e.watchEndpoint.startTimeSeconds);else if(e.browseEndpoint)k=e.browseEndpoint.browseId,(J=e.browseEndpoint.canonicalBaseUrl)?I=J:k&&(I=k.substr(0,2),I=I==="FE"?k==="FEwhat_to_watch"?"/":k==="FEmy_videos"?"/my_videos":"/feed/"+k.substr(2):I==="VL"?"/playlist?list="+k.substr(2):"/channel/"+k),I&&e.browseEndpoint.query&&
(I=A2(I+"/search",{query:e.browseEndpoint.query})),I&&e.browseEndpoint.params&&(I=A2(I,{params:e.browseEndpoint.params}));else{if(e.urlEndpoint)return e.urlEndpoint.url;e.signInEndpoint?(I="https://accounts.google.com/ServiceLogin",k={},_.n0.extend(k,g||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),g=k):e.uploadEndpoint?I="//www.youtube.com/upload":e.liveChatEndpoint?(I=e.liveChatEndpoint,k=_.n0.clone(I),_.SK(I.continuation)&&(J=Object.keys(I.continuation)[0],
k.continuation=I.continuation[J].continuation),I=A2("/youtubei/v1/live_chat/get_live_chat",k)):e.liveChatReplayEndpoint?(I=_.n0.clone(e.liveChatReplayEndpoint),I.currentPlayerState&&(_.n0.extend(I,I.currentPlayerState),delete I.currentPlayerState),I=A2("/youtubei/v1/live_chat/get_live_chat_replay",I)):e.liveChatItemContextMenuEndpoint?I=A2("/youtubei/v1/live_chat/get_item_context_menu",e.liveChatItemContextMenuEndpoint):e.liveChatPurchaseMessageEndpoint?I=A2("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
e.liveChatPurchaseMessageEndpoint):e.openSuperStickerBuyFlowCommand?I=A2("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",e.openSuperStickerBuyFlowCommand):e.videoEditEndpoint?I=A2("/edit",{video_id:e.videoEditEndpoint.videoId}):e.liveDashboardEndpoint?I=e.liveDashboardEndpoint.videoId?A2("/live_dashboard",{v:e.liveDashboardEndpoint.videoId}):"/live_dashboard":e.signalNavigationEndpoint&&e.signalNavigationEndpoint.signal&&e.signalNavigationEndpoint.signal==="WEBCAM"?I="/webcam":e.getPdgBuyFlowCommand&&
(I=A2(e.getPdgBuyFlowCommand.buyflowApiPath,{params:e.getPdgBuyFlowCommand.params}))}return I||c?A2(I,g||{}):(_.mN(new _.E2("Error: Can't construct url for endpoint","keys:"+Object.keys(e).sort().join(","),e)),null)};
ACK=function(e){if(e){if(e.browseEndpoint)return!!e.browseEndpoint.nofollow;if(e.watchEndpoint)return!!e.watchEndpoint.nofollow;if(e.urlEndpoint)return!!e.urlEndpoint.nofollow}return!1};
_.F3v=function(e,g){var c=g+e,k=sBW.get(c);if(k)return k;e=g+"-"+e.replace(/([A-Z])/g,"-$1").toLowerCase();sBW.set(c,e);return e};
uJV=function(e){var g=_.A_(e,"action")||_.A_(e,"command")||_.A_(e,"endpoint");if(!g)return null;g=_.F3v(g,"yt");_.x(e,_.sf)&&(g+="-"+_.x(e,_.sf).signal.toLowerCase().replace(/_/g,"-"));return g};
QBV=function(e){try{var g=Object.keys(e)}catch(I){return[]}for(var c=0;c<g.length;c++){var k=g[c];if(dyU.test(k)||zc8.test(k))return HVW(e[k])}return[]};
HVW=function(e){return e.command?[e.command]:e.onExecutionAction?[e.onExecutionAction]:e.onResponseReceivedCommand?[e.onResponseReceivedCommand]:e.updateFlowCommand?[e.updateFlowCommand]:e.clientActions?e.clientActions:e.action?[e.action]:e.actions||e.commands||e.onResponseReceivedActions||e.onResponseReceivedCommands||e.onResponseReceivedEndpoints||[]};
oup=function(e,g){g=g===void 0?!1:g;var c=_.Ss().resolve(_.NN(FC));c||(c=new Uyv,_.Ss().addProvider({provide:FC,useValue:c}));return c&&e&&!_.n0.isEmpty(e)?c.getUrl(e,g):""};
ZVq=function(e,g,c){c=c===void 0?"":c;if(g){e.data=g;var k=oup(g);k?(e0(e,k),ACK(g)||!BV(k)?e.rel="nofollow":e.removeAttribute("rel"),_.x(g,_.uf)&&_.x(g,_.uf).target==="TARGET_NEW_WINDOW"?e.target="_blank":c?e.target=c:e.removeAttribute("target")):(e.removeAttribute("href"),e.removeAttribute("rel"),e.removeAttribute("target"))}};
_.QV=function(e,g){var c=KT;if(fn())VSg(e,function(){var J=_.Mb.apply(0,arguments);z7(c,function(){g.apply(null,_.KY(J))})});
else{var k=_.dF.getInstance(),I=Rm6(g);L7q(function(){I.value=g});
_.lo(function(){var J={},q=_.zm(k,(J[e]=function(){var L=_.Mb.apply(0,arguments);z7(c,function(){I.value.apply(I,_.KY(L))})},J));
return function(){var L={};_.Hy(k,(L[e]="",L),q)}})}};
tSp=function(e){var g=KT,c=$F;return{getFn:function(){return function(k){if(!g.isDisposed){var I=function(){return e(k)};
iu(function(){return _.EX(I)},c)!==!0&&k.stopPropagation()}}}}};
Bbg=function(e){if(typeof e.children==="function")return e.children(),null;e=_.w(e.children);for(var g=e.next();!g.done;g=e.next())g=g.value,g();return null};
Nbv=function(e){var g;return((g=e.prototype)==null?void 0:g.render)===void 0};
SQ8=function(e){var g=Array.isArray(e.items)?e.items:Array.from(e.items);e=e.children;return(Array.isArray(g)?g:Array.from(g)).map(e)};
K3K=function(e,g,c){c=c===void 0?!1:c;iu(function(){return yCg(e,g,c)})};
yCg=function(e,g,c){var k=null;mP++;c=(c===void 0?0:c)?OVW:MS8;try{k=c(e,function(){Uf(g)}),T7(!1)}catch(I){throw T7(!0),I;
}return k===null?e:k};
Uf=function(e){if(e!==void 0&&e!==null)if(e instanceof EI)for(var g=o9;Zc()!=null&&pmg in Zc()&&g.contains(Zc());)Ba();else if(Array.isArray(e))for(g=_.w(e),e=g.next();!e.done;e=g.next())Uf(e.value);else if(e instanceof zT||e instanceof X1||"function"==typeof _.OX&&e instanceof _.OX)pP6(e.toString());else if(kz(e)){if(Zc()!==e){var c,k;g=(k=(c=$F)==null?void 0:c.name)!=null?k:"unknown";throw Error("jc`"+e.tagName+"`"+g);}Ba()}else if(e!=null&&e.contentKind===vV||e instanceof gy||trA(e))for(g=NYp(e),
g=Array.from(g.childNodes),g=_.w(g),e=g.next();!e.done;e=g.next())o9.appendChild(e.value),Ba();else if(tj(e)&&(e=e.toString()),c=typeof e,c==="boolean"||c==="number"||c==="string")pP6(e);else if(typeof e==="function"){g=o9;var I=Zc();I&&(I._isSignalTextNode||I._isSafeOrSanitizedHtmlNode)||xoe(g,I,e);Ba()}else if(e.type===SQ8)Uf(e.type(Object.assign({},e.props,{children:e.children[0]})));else{if(typeof e.type==="string"){a:{e.__open||Y4A(e.type,e.props.idomKey);I=o9;for(var J in e.props)if(e.props[J]!==
CDV){var q=e.props[J];c=SP;c.push(J);c.push(q)}J=gs.attributes;J=J===void 0?ol:J;q=o9;k=hkp(q);c=J;J=SP;k=k._attrsArr||(k._attrsArr=LVg(J.length));for(var L=!k.length||!1,n=0;n<J.length;n+=2){var R=J[n];if(L)k[n]=R;else if(k[n]!==R)break;var W=J[n+1];if(L||k[n+1]!==W)k[n+1]=W,mRV(q,R,W,c)}if(n<J.length||n<k.length){for(n=L=n;n<k.length;n+=2)Zd[k[n]]=k[n+1];for(n=L;n<J.length;n+=2)L=J[n],R=J[n+1],Zd[L]!==R&&mRV(q,L,R,c),k[n]=L,k[n+1]=R,delete Zd[L];q4V(k,J.length);for(g in Zd)mRV(q,g,void 0,c),delete Zd[g]}g=
eRz;eRz=q=Kn.length;for(c=g;c<q;c+=5)(0,Kn[c])(Kn[c+1],Kn[c+2],Kn[c+3],Kn[c+4]);eRz=g;q4V(Kn,g);q4V(J,0);Gjt(I,e.props,!0);if((e.props.skip||e.props.skipchildren)&&o9.hasChildNodes())tV=o9.lastChild;else{if(e.type==="style"&&gfz(e.children)===null){tV=o9.lastChild;g=void 0;break a}Uf(e.children)}fHv();e.__open&&(e.__open=!1);zkK(I,e.props);g=I}return g}if(e.type===_.es)Uf(e.children);else if(!gDW(e)){g=e;try{chq(g)}catch(b){e=b,(q=gs.handleError)==null||q.call.apply(q,[gs].concat(_.KY(Ha(e,(I=g.type)==
null?void 0:I.TAG_NAME))))}g.__open&&(fHv(),g.__open=!1)}}};
kM8=function(e,g){var c;Nbv(e)?c=new Gr(g,e):c=new e(g);c.__type=e;c.__updateContext={nextState:c.state,isForced:!1};return c};
chq=function(e){var g=e.type,c=g.TAG_NAME;if(g===Bbg)e.props.children=e.children,g(e.props);else{e.children.length>0&&(e.props.children=e.children);var k;(k=e.props).idomKey||(k.idomKey=g);if(c){var I=Y4A(c,e.props.idomKey);e.__open=!0;var J=I.__instance}J||(J=kM8(g,e.props),J.props=null,I&&(I.__instance=J,J.el=I));var q;c=((q=J.__updateContext)!=null?q:{nextState:J.state,isForced:!1}).nextState;J.__updateContext=void 0;g.getDerivedStateFromProps&&(c=g.getDerivedStateFromProps(e.props,c));J.props=
e.props;J.state=c;q=function(){var L=J;h_.beforeRender(L);var n=L.render(L.props);n?(L.props.idomKey&&(n.props.idomKey=L.props.idomKey),L=n):L=void 0;if(n=L)if(n.__open=e.__open,L=Uf(n),e.__open=n.__open,!g.TAG_NAME)if(L)g.TAG_NAME=L.tagName.toLowerCase(),L.__instance=J,J.el=L;else{var R;if((R=J.hooks)==null?0:R.length){var W;(W=gs.handleError)==null||W.call.apply(W,[gs].concat(_.KY(Ha(Error("pd")))))}}J.didPatch();h_.didPatch(J)};
(c=J.functionComponent)?bbz(c,q,J.props.debugInstance):q()}};
gDW=function(e){var g=e.type;if(!Nbv(g)||g===Bbg||g.componentType===YF)return!1;e.props.children=e.children.length>1?e.children:e.children[0];var c,k=(c=e.props.idomKey)!=null?c:e.type,I;if(Zc()&&((I=Zc()[a7])==null?void 0:I.key)===k){var J=Zc(),q=J[a7];if(!q)throw Error("ic`"+J.tagName);var L;(L=q.updateSignalsFromIdomProps)==null||L.call(q,e.props);IZv(q);return!0}if(JhV.has(g.name))throw L=g.name,g=(q=(J=$F)==null?void 0:J.name)!=null?q:"unknown",Error("hc`"+L+"`"+g);e.props.renderedFromIdom=!0;
(L=bbz(e.type,function(){return EfC(e.type,e.props)},e.props.debugInstance))&&vDt(L);
return!0};
wj8=function(e){for(var g=0;g<R7(e).length;g++)Ba()};
IZv=function(e){var g=qTe();if(g)wj8(g);else for(var c=0;c<e.numNodes;c++)(g=qTe())?wj8(g):Ba()};
qTe=function(){var e;return(e=Zc()[a7])==null?void 0:e.sourceDynamicRange};
vDt=function(e){e=URz(e);e=Array.isArray(e)?e:[e];e=_.w(e);for(var g=e.next();!g.done;g=e.next())o9.insertBefore(g.value,Zc()),Ba()};
LgC=function(){var e=b_A(),g=yrg(function(){return{value:0}},[]);
return[g.value,function(c){if(Xq!==null){var k;(k=gs.handleError)==null||k.call.apply(k,[gs].concat(_.KY(Ha(Error("qd")))))}g.value=typeof c==="function"?c(g.value):c;e.__updateContext={nextState:e.state,isForced:!0};c=Ou(e.effectContext);k=gH(!1);try{if(e.el){var I,J={},q=(J.props=e.props,J.type=e.__type,J.children=(I=e.props.children)!=null?I:[],J[Cn]=!0,J);try{K3K(e.el,q,!0)}catch(R){var L,n;(n=gs.handleError)==null||n.call.apply(n,[gs].concat(_.KY(Ha(R,(L=e.__type)==null?void 0:L.TAG_NAME))))}}}finally{gH(k),
Ou(c)}}]};
_.VV=function(e,g){var c=KT,k=function(I){z7(c,function(){g(I)})};
window.addEventListener(e,k,void 0);_.sX(function(){window.removeEventListener(e,k,void 0)})};
_.By=function(e){var g=KT;return function(c){var k,I=(k=e.observer)!=null?k:_.Ss().resolve(t2);k=rh8(c);var J=[];e.showOption&&J.push(I.observe(c,function(){z7(g,function(){e.visibilityCallback(!0,c)})},e.showOption));
e.hideOption&&J.push(I.observe(c,function(){z7(g,function(){e.visibilityCallback(!1,c)})},e.hideOption));
e.prescanOption&&e.prescanCallback&&J.push(I.observe(c,function(){z7(g,function(){e.prescanCallback()})},e.prescanOption));
var q;k.visibilityMonitorKeys=((q=k.visibilityMonitorKeys)!=null?q:[]).concat(J)}};
rh8=function(e){var g;return(g=e.polymerController)!=null?g:e};
ED6=function(e,g){var c=aZW;return _.a(_.es,null,itW(gs.enableLazyTsx,function(){return _.a(nD6,{id:c,value:e,children:g})},function(){var k=RRV(c,e);
eP(k);k=Ou(k);try{return g()}finally{Ou(k)}}))};
nD6=function(e){var g=e.children;e=RRV(e.id,e.value);eP(e);e=Ou(e);try{return _.a(_.es,null,WV(g()))}finally{Ou(e)}};
RRV=function(e,g){return Object.assign(Object.create(Wgp),{id:e,contextValue:g})};
bLe=function(e){var g,c=KT;_.lu(function(){var k=Ou(c),I=gH(!g);try{if(g)K3K(g,e.children(),!0);else if(g=WV(e.children()),!(g instanceof Element))throw Error("rd");}finally{gH(I),Ou(k)}},"i");
return g};
XjW=function(e){var g=new hR6;g.abort(e);return g.signal};
GMC=function(){if(this.aborted){var e;throw(e=this.reason)!=null?e:new DOMException("signal is aborted without reason","AbortError");}};
$1A=function(e){var g=new hR6;e=_.w(e);for(var c=e.next();!c.done;c=e.next())if(c=c.value,c.aborted){g.abort(c.reason);break}else x1K.set(g.signal,g),D1C.add(c,g.signal);return g.signal};
YTK=function(){for(var e=_.w(D1C.get(this)),g=e.next();!g.done;g=e.next())x1K.get(g.value).abort(this.reason)};
fZv=function(e){var g=new hR6;setTimeout(function(){g.abort(new DOMException("signal timed out","TimeoutError"))},e);
return g.signal};
jmg=function(){var e,g;return{promise:new Promise(function(c,k){e=c;g=k}),
resolve:e,reject:g}};
PQV=function(e){var g=jmg(),c=g.promise;iLW.set(e,{promise:c,resolve:g.resolve,reject:g.reject});Nf||(Nf=[],queueMicrotask(function(){var k=[].concat(_.KY(Nf));Nf=null;var I=xr().loadMultiple(k);k=_.w(k);for(var J=k.next();!J.done;J=k.next())J=J.value,I[J].then(iLW.get(J).resolve,iLW.get(J).reject)}));
Nf.push(e);return c};
m1K=function(e,g){this.fn_=e;this.handler_=g};
SW=function(e,g){_.Iy.call(this);this.deps_=e;this.JSC$11362_id_=g;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
TSC=function(e){e=e.buf.charCodeAt(e.pos++);return pjz[e]};
KB=function(e){var g=0,c=0;do{var k=TSC(e);g|=(k&31)<<c;c+=5}while(k&32);return g<0?g+4294967296:g};
lZq=function(e,g,c,k){var I=!0;I=I===void 0?!1:I;g=g===void 0?!1:g;k=k===void 0?{}:k;var J=k.cssRowKey||"",q=k.combinedSignature||"";!J&&window&&window._F_cssRowKey&&(J=window._F_cssRowKey,!q&&window._F_combinedSignature&&(q=window._F_combinedSignature));if(J&&typeof window._F_installCss!=="function")throw Error("Bd");var L=k.loaderClass||_.Of;e=KCt(e===void 0?"base-js":e);g=new L(d5C(M6K("",e)),J,q,I,g);I=k.useCors||e&&e.hasAttribute("crossorigin");e=k.corsMode||e&&e.getAttribute("crossorigin");
I&&(g.useCors_=I);e&&(g.corsMode_=e);k.urlMaxLength&&(g.urlMaxLength=k.urlMaxLength);c&&(g.insertPos=c);k.fetchPriority&&(g.fetchPriority=k.fetchPriority);var n=xr();n.JSC$10364_loader_=g;n.setBatchModeEnabled(!0);_.Mf=k.batchingStrategy==="BATCH"?PQV:function(R){return Promise.resolve(n.load(R))}};
Fgv=function(e,g,c){Ah6(e,g);e[g][smW].unshift(c)};
Ah6=function(e,g){if(!e[g]||!e[g][smW]){var c=e[g],k=c?[c]:[];e[g]=function(){for(var I=_.w(k),J=I.next();!J.done;J=I.next())J.value.apply(this,arguments)};
e[g][smW]=k}};
uXv=function(e){if(!e)return[];var g=[];e=_.w(e);for(var c=e.next();!c.done;c=e.next())c=c.value,Array.isArray(c)?g.push.apply(g,_.KY(uXv(c))):g.push(c);return g};
_.eX=function(e,g){if(e&&d1p.test(e)||e==="//")return e;if(zRp===void 0){zRp=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";zRp=c.href==="http://a/c%20d"}catch(k){}}g||(g=document.baseURI||window.location.href);if(zRp)try{return(new URL(e,g)).href}catch(k){return e}CB||(CB=document.implementation.createHTMLDocument("temp"),CB.base=CB.createElement("base"),CB.head.appendChild(CB.base),CB.anchor=CB.createElement("a"),CB.body.appendChild(CB.anchor));CB.base.href=g;CB.anchor.href=e;return CB.anchor.href||
e};
Qm8=function(e,g){return e.replace(HLC,function(c,k,I,J){return k+"'"+_.eX(I.replace(/["']/g,""),g)+"'"+J})};
U1U=function(e){return e.substring(0,e.lastIndexOf("/")+1)};
VlK=function(){oDv=!1;for(var e=g3.length,g=0;g<e;g++){var c=g3[g];if(c)try{c()}catch(k){setTimeout(function(){throw k;})}}g3.splice(0,e);
ZLV+=e};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(e){console.log("["+e.is+"]: registered")};
BSt=function(e){tlt.push(e)};
I2=function(e){return NS8[e]||(NS8[e]=e.indexOf("-")<0?e:e.replace(STV,function(g){return g[1].toUpperCase()}))};
JO=function(e){return NS8[e]||(NS8[e]=e.replace(yhq,"-$1").toLowerCase())};
KgW=function(e,g){var c=g.parentInfo&&KgW(e,g.parentInfo);if(c)for(e=c.firstChild,c=0;e;e=e.nextSibling){if(g.parentIndex===c++)return e}else return e};
OLC=function(e,g){e=e._methodHost||e;return function(c){if(e[g])e[g](c,c.detail);else console.warn("listener method `"+g+"` not defined")}};
vd=function(e){return e.indexOf(".")>=0};
w3=function(e){var g=e.indexOf(".");return g===-1?e:e.slice(0,g)};
Mlg=function(e,g){return e.indexOf(g+".")===0};
qZ=function(e,g){return g.indexOf(e+".")===0};
Lb=function(e,g,c){return g+c.slice(e.length)};
CQA=function(e,g){return e===g||Mlg(e,g)||qZ(e,g)};
r3=function(e){if(Array.isArray(e)){for(var g=[],c=0;c<e.length;c++)for(var k=e[c].toString().split("."),I=0;I<k.length;I++)g.push(k[I]);return g.join(".")}return e};
ePU=function(e){return Array.isArray(e)?r3(e).split("."):e.toString().split(".")};
a2=function(e,g,c){g=ePU(g);for(var k=0;k<g.length;k++){if(!e)return;e=e[g[k]]}c&&(c.path=g.join("."));return e};
gt6=function(e,g,c){var k=ePU(g),I=k[k.length-1];if(k.length>1){for(g=0;g<k.length-1;g++)if(e=e[k[g]],!e)return;e[I]=c}else e[g]=c;return k.join(".")};
cAK=function(e,g,c){var k=e[g];if(!k)k=e[g]={};else if(!e.hasOwnProperty(g)&&(k=e[g]=Object.create(e[g]),c))for(var I in k)for(e=k[I],g=k[I]=Array(e.length),c=0;c<e.length;c++)g[c]=e[c];return k};
R2=function(e,g,c,k,I,J){if(g){var q=!1,L=nb++,n;for(n in c){var R=I?w3(n):n;if(R=g[R])for(var W=0,b=R.length,h=void 0;W<b&&(h=R[W]);W++)h.info&&h.info.lastRun===L||I&&!kiC(n,h.trigger)||(h.info&&(h.info.lastRun=L),h.fn(e,n,c,k,h.info,I,J),q=!0)}return q}return!1};
kiC=function(e,g){if(g){var c=g.name;return c==e||!(!g.structured||!Mlg(c,e))||!(!g.wildcard||!qZ(c,e))}return!0};
IQt=function(e,g,c,k,I){g=typeof I.method==="string"?e[I.method]:I.method;c=I.property;g?g.call(e,e.__data[c],k[c]):I.dynamicFn||console.warn("observer method `"+I.method+"` not defined")};
JAC=function(e,g,c,k){c={value:c,queueProperty:!0};k&&(c.path=k);(0,_.Eg)(e).dispatchEvent(new CustomEvent(g,{detail:c}))};
vtA=function(e,g,c,k,I,J){J=(k=(J?w3(g):g)!=g?g:null)?a2(e,k):e.__data[g];k&&J===void 0&&(J=c[g]);JAC(e,I.eventName,J,k)};
w2p=function(e,g,c,k,I){c=e.__data[g];Wd&&(c=Wd(c,I.attrName,"attribute",e));e._propertyToAttribute(g,I.attrName,c)};
Lm8=function(e){var g=e.constructor.__orderedComputedDeps;if(!g){g=new Map;for(var c=e.__computeEffects,k=qm6(e),I=k.counts,J=k.ready,q=k.total;k=J.shift();)g.set(k,g.size),(k=c[k])&&k.forEach(function(L){L=L.info.methodInfo;--q;--I[L]===0&&J.push(L)});
q!==0&&console.warn("Computed graph for "+e.localName+" incomplete; circular?");e.constructor.__orderedComputedDeps=g}return g};
qm6=function(e){var g=e.__computeInfo,c={};e=e.__computeEffects;var k=[],I=0,J;for(J in g){var q=g[J];I+=c[J]=q.args.filter(function(n){return!n.literal}).length+(q.dynamicFn?1:0)}for(var L in e)g[L]||k.push(L);
return{counts:c,ready:k,total:I}};
aQe=function(e,g,c,k,I){g=rAv(e,g,c,k,I);if(g===bq)return!1;I=I.methodInfo;if(e.__dataHasAccessor&&e.__dataHasAccessor[I])return e._setPendingProperty(I,g,!0);e[I]=g;return!1};
Et6=function(e,g,c,k,I,J,q){c.bindings=c.bindings||[];k={kind:k,target:I,parts:J,literal:q,isCompound:J.length!==1};c.bindings.push(k);k.target&&k.kind!="attribute"&&k.kind!="text"&&!k.isCompound&&k.parts[0].mode==="{"&&(c=k.parts[0],J=c.negate,k.listenerEvent=c.event||JO(I)+"-changed",k.listenerNegate=J);I=g.nodeInfoList.length;for(c=0;c<k.parts.length;c++){var L=k.parts[c];L.compoundIndex=c;J=e;q=g;var n=k,R=L,W=I;if(!R.literal)if(n.kind==="attribute"&&n.target[0]==="-")console.warn("Cannot set attribute "+
n.target+' because "-" is not a valid attribute starting character');else for(L=R.dependencies,n={index:W,binding:n,part:R,evaluator:J},R=0;R<L.length;R++)W=L[R],typeof W=="string"&&(W=ntp(W),W.wildcard=!0),J._addTemplatePropertyEffect(q,W.rootProperty,{fn:RPq,info:n,trigger:W})}};
RPq=function(e,g,c,k,I,J,q){q=q[I.index];var L=I.binding,n=I.part;J&&n.source&&g.length>n.source.length&&L.kind=="property"&&!L.isCompound&&q.__isPropertyEffectsClient&&q.__dataHasAccessor&&q.__dataHasAccessor[L.target]?(c=c[g],g=Lb(n.source,L.target,g),q._setPendingPropertyOrPath(g,c,!1,!0)&&e._enqueueClient(q)):(g=I.evaluator._evaluateBinding(e,n,g,c,k,J),g!==bq&&(L.isCompound&&(c=q.__dataCompoundStorage[L.target],c[n.compoundIndex]=g,g=c.join("")),L.kind==="attribute"||L.target!=="textContent"&&
(L.target!=="value"||q.localName!=="input"&&q.localName!=="textarea")||(g=g==void 0?"":g),n=g,Wd&&(n=Wd(n,L.target,L.kind,q)),L.kind=="attribute"?e._valueToNodeAttribute(q,n,L.target):(L=L.target,q.__isPropertyEffectsClient&&q.__dataHasAccessor&&q.__dataHasAccessor[L]?q.__readOnly&&q.__readOnly[L]||q._setPendingProperty(L,n)&&e._enqueueClient(q):e._setUnmanagedPropertyToNode(q,L,n))))};
Wme=function(e,g,c){if(c.listenerEvent){var k=c.parts[0];e.addEventListener(c.listenerEvent,function(I){var J=c.target,q=k.source,L=k.negate,n=I.detail,R=n&&n.path;R?(q=Lb(J,q,R),I=n&&n.value):I=I.currentTarget[J];g.__readOnly&&g.__readOnly[q]||!g._setPendingPropertyOrPath(q,L?!I:I,!0,!!R)||n&&n.queueProperty||g._invalidateProperties()})}};
bu6=function(e,g,c,k,I,J){J=g.static||J&&(typeof J!=="object"||J[g.methodName]);I={methodName:g.methodName,args:g.args,methodInfo:I,dynamicFn:J};for(var q=0,L=void 0;q<g.args.length&&(L=g.args[q]);q++)L.literal||e._addPropertyEffect(L.rootProperty,c,{fn:k,info:I,trigger:L});J&&e._addPropertyEffect(g.methodName,c,{fn:k,info:I});return I};
rAv=function(e,g,c,k,I){k=e._methodHost||e;var J=k[I.methodName];if(J)return e=e._marshalArgs(I.args,g,c),e===bq?bq:J.apply(k,e);I.dynamicFn||console.warn("method `"+I.methodName+"` not defined")};
hP6=function(e){for(var g="",c=0;c<e.length;c++)g+=e[c].literal||"";return g};
xeV=function(e){if(e=e.match(/([^\s]+?)\(([\s\S]*)\)/)){var g={methodName:e[1],static:!0,args:X2V};return e[2].trim()?Gi8(e[2].replace(/\\,/g,"&comma;").split(","),g):g}return null};
Gi8=function(e,g){g.args=e.map(function(c){c=ntp(c);c.literal||(g.static=!1);return c},this);
return g};
ntp=function(e){e=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var g={name:e,value:"",literal:!1},c=e[0];c==="-"&&(c=e[1]);c>="0"&&c<="9"&&(c="#");switch(c){case "'":case '"':g.value=e.slice(1,-1);g.literal=!0;break;case "#":g.value=Number(e),g.literal=!0}g.literal||(g.rootProperty=w3(e),g.structured=vd(e),g.structured&&(g.wildcard=e.slice(-2)==".*",g.wildcard&&(g.name=e.slice(0,-2))));return g};
Dev=function(e,g,c){e=a2(e,c);e===void 0&&(e=g[c]);return e};
$eK=function(e,g,c,k){k={indexSplices:k};hO&&!e._overrideLegacyUndefined&&(g.splices=k);e.notifyPath(c+".splices",k);e.notifyPath(c+".length",g.length);hO&&!e._overrideLegacyUndefined&&(k.indexSplices=[])};
XS=function(e,g,c,k,I,J){$eK(e,g,c,[{index:k,addedCount:I,removed:J,object:g,type:"splice"}])};
YmA=function(e){e=Qm8((e.body?e.body:e).textContent,e.baseURI);var g=document.createElement("style");g.textContent=e;return g};
jdW=function(e){e=e.trim().split(/\s+/);for(var g=[],c=0;c<e.length;c++)g.push.apply(g,_.KY(fQg(e[c])));return g};
fQg=function(e){var g=Gy.import(e);if(!g)return console.warn("Could not find style data in module named",e),[];if(g._styles===void 0){e=[];e.push.apply(e,_.KY(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(g)));var c=g.querySelector("template");c&&e.push.apply(e,_.KY(iuv(c,g.assetpath)));g._styles=e}return g._styles};
iuv=function(e,g){if(!e._styles){for(var c=[],k=e.content.querySelectorAll("style"),I=0;I<k.length;I++){var J=k[I],q=J.getAttribute("include");q&&c.push.apply(c,_.KY(jdW(q).filter(function(L,n,R){return R.indexOf(L)===n})));
g&&(J.textContent=Qm8(J.textContent,g));c.push(J)}e._styles=c}return e._styles};
Pnt=function(e){return(e=Gy.import(e))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(e){var g=[];e=e.querySelectorAll("link[rel=import][type~=css]");for(var c=0;c<e.length;c++){var k=e[c];if(k.import){var I=k.import;if((k=k.hasAttribute("shady-unscoped"))&&!I._unscopedStyle){var J=YmA(I);J.setAttribute("shady-unscoped","");I._unscopedStyle=J}else I._style||(I._style=YmA(I));g.push(k?I._unscopedStyle:I._style)}}return g};
p26=function(e){e=e.trim().split(/\s+/);for(var g="",c=0;c<e.length;c++)g+=meK(e[c]);return g};
meK=function(e){var g=Gy.import(e);if(g&&g._cssText===void 0){var c=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(g),k=g.querySelector("template");k&&(c+=Tlq(k,g.assetpath));g._cssText=c||null}g||console.warn("Could not find style data in module named",e);return g&&g._cssText||""};
Tlq=function(e,g){var c="";e=iuv(e,g);for(g=0;g<e.length;g++){var k=e[g];k.parentNode&&k.parentNode.removeChild(k);c+=k.textContent}return c};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(e){var g="";e=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e);for(var c=0;c<e.length;c++)g+=e[c].textContent;return g};
xN=function(e,g){return{index:e,removed:[],addedCount:g}};
AAe=function(e,g,c,k){var I=0,J=0,q=0,L=0,n=Math.min(g-I,k-J);if(I==0&&J==0)a:{for(q=0;q<n;q++)if(e[q]!==c[q])break a;q=n}if(g==e.length&&k==c.length){L=e.length;for(var R=c.length,W=0;W<n-q&&lQg(e[--L],c[--R]);)W++;L=W}I+=q;J+=q;g-=L;k-=L;if(g-I==0&&k-J==0)return[];if(I==g){for(g=xN(I,0);J<k;)g.removed.push(c[J++]);return[g]}if(J==k)return[xN(I,g-I)];n=I;q=J;k=k-q+1;L=g-n+1;g=Array(k);for(R=0;R<k;R++)g[R]=Array(L),g[R][0]=R;for(R=0;R<L;R++)g[0][R]=R;for(R=1;R<k;R++)for(W=1;W<L;W++)if(e[n+W-1]===
c[q+R-1])g[R][W]=g[R-1][W-1];else{var b=g[R-1][W]+1,h=g[R][W-1]+1;g[R][W]=b<h?b:h}n=g.length-1;q=g[0].length-1;k=g[n][q];for(e=[];n>0||q>0;)n==0?(e.push(2),q--):q==0?(e.push(3),n--):(L=g[n-1][q-1],R=g[n-1][q],W=g[n][q-1],b=R<W?R<L?R:L:W<L?W:L,b==L?(L==k?e.push(0):(e.push(1),k=L),n--,q--):b==R?(e.push(3),n--,k=R):(e.push(2),q--,k=W));e.reverse();g=void 0;n=[];for(q=0;q<e.length;q++)switch(e[q]){case 0:g&&(n.push(g),g=void 0);I++;J++;break;case 1:g||(g=xN(I,0));g.addedCount++;I++;g.removed.push(c[J]);
J++;break;case 2:g||(g=xN(I,0));g.addedCount++;I++;break;case 3:g||(g=xN(I,0)),g.removed.push(c[J]),J++}g&&n.push(g);return n};
sdq=function(e,g){return AAe(e,e.length,g,g.length)};
lQg=function(e,g){return e===g};
u5C=function(e){if(e instanceof Fme)return e.value;throw Error("Jd`"+e);};
deW=function(e,g){for(var c in g)c===null?e.style.removeProperty(c):e.style.setProperty(c,g[c])};
zPK=function(e,g){return(e=window.getComputedStyle(e).getPropertyValue(g))?e.trim():""};
otC=function(e){requestAnimationFrame(function(){Huv?Huv(e):(Qde||(Qde=new Promise(function(g){Ue6=g}),document.readyState==="complete"?Ue6():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Ue6()})),Qde.then(function(){e&&e()}))})};
t$v=function(e){ZuC=e&&e.shimcssproperties?!1:V$6||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
Kmt=function(e){if(!(Blt.indexOf(e)>-1)&&e!=="touchend"&&Nlg&&Sm8&&yAt)return{passive:!0}};
eOV=function(e){for(var g=OuV?["click"]:Blt,c=0,k;c<g.length;c++)k=g[c],e?(M$z.length=0,document.addEventListener(k,CnU,!0)):document.removeEventListener(k,CnU,!0)};
DX=function(e){var g=e.type;return Blt.indexOf(g)>-1?g==="mousemove"?(g=e.buttons===void 0?1:e.buttons,e instanceof window.MouseEvent&&!gVg&&(g=cPv[e.which]||0),!!(g&1)):(e.button===void 0?0:e.button)===0:!1};
kXz=function(e){if(e.type==="click"){if(e.detail===0)return!0;var g=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e);if(!g.nodeType||g.nodeType!==Node.ELEMENT_NODE)return!0;g=g.getBoundingClientRect();var c=e.pageX;e=e.pageY;return!(c>=g.left&&c<=g.right&&e>=g.top&&e<=g.bottom)}return!1};
I4e=function(e,g,c){e.movefn=g;e.upfn=c;document.addEventListener("mousemove",g);document.addEventListener("mouseup",c)};
$N=function(e){document.removeEventListener("mousemove",e.movefn);document.removeEventListener("mouseup",e.upfn);e.movefn=null;e.upfn=null};
JP8=function(e,g){for(var c=document.elementFromPoint(e,g),k=c;k&&k.shadowRoot&&!window.ShadyDOM;){var I=k;k=k.shadowRoot.elementFromPoint(e,g);if(I===k)break;k&&(c=k)}return c};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e){var g=vVp(e);return g.length>0?g[0]:e.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e){var g=e.type,c=e.currentTarget.__polymerGestures;if(c&&(c=c[g])){if(!e.__polymerGesturesHandled&&(e.__polymerGesturesHandled={},g.slice(0,5)==="touch")){var k=e.changedTouches[0];g==="touchstart"&&e.touches.length===1&&(wW6=k.identifier);if(wW6!==k.identifier)return;Nlg||(g==="touchstart"||g==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e)}k=
e.__polymerGesturesHandled;if(!k.skip){for(var I=0,J;I<YN.length;I++)J=YN[I],c[J.name]&&!k[J.name]&&J.flow&&J.flow.start.indexOf(e.type)>-1&&J.reset&&J.reset();for(I=0;I<YN.length;I++)J=YN[I],c[J.name]&&!k[J.name]&&(k[J.name]=!0,J[g](e))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e){var g=e.changedTouches[0],c=e.type;if(c==="touchstart")qUW=g.clientX,Lv8=g.clientY,rPg=!1;else if(c==="touchmove"&&!rPg){rPg=!0;c="auto";for(var k=vVp(e),I=0,J;I<k.length;I++)if(J=k[I],J.__polymerGesturesTouchAction){c=J.__polymerGesturesTouchAction;break}k=!1;I=Math.abs(qUW-g.clientX);g=Math.abs(Lv8-g.clientY);e.cancelable&&(c==="none"?k=!0:c==="pan-x"?k=g>I:c==="pan-y"&&(k=I>g));k?e.preventDefault():
fb("track")}};
iq=function(e,g,c){return jX[g]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,g,c),!0):!1};
Pd=function(e,g,c){return jX[g]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,g,c),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e,g,c){var k=jX[g],I=k.deps,J=k.name,q=e.__polymerGestures;q||(e.__polymerGestures=q={});for(var L=0,n,R;L<I.length;L++)n=I[L],OuV&&Blt.indexOf(n)>-1&&n!=="click"||((R=q[n])||(q[n]=R={_count:0}),R._count===0&&e.addEventListener(n,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Kmt(n)),R[J]=(R[J]||0)+1,R._count=(R._count||0)+1);e.addEventListener(g,c);k.touchAction&&_.mZ(e,k.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e,g,c){var k=jX[g],I=k.deps;k=k.name;var J=e.__polymerGestures;if(J)for(var q=0,L,n;q<I.length;q++)L=I[q],(n=J[L])&&n[k]&&(n[k]=(n[k]||1)-1,n._count=(n._count||1)-1,n._count===0&&e.removeEventListener(L,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Kmt(L)));e.removeEventListener(g,c)};
a46=function(e){YN.push(e);for(var g=0;g<e.emits.length;g++)jX[e.emits[g]]=e};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e){for(var g=0,c;g<YN.length;g++){c=YN[g];for(var k=0,I;k<c.emits.length;k++)if(I=c.emits[k],I===e)return c}return null};
_.mZ=function(e,g){Nlg&&e instanceof HTMLElement&&pb.run(function(){e.style.touchAction=g});
e.__polymerGesturesTouchAction=g};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e,g,c){g=new Event(g,{bubbles:!0,cancelable:!0,composed:!0});g.detail=c;(0,_.Eg)(e).dispatchEvent(g);g.defaultPrevented&&(e=c.preventer||c.sourceEvent)&&e.preventDefault&&e.preventDefault()};
fb=function(e){e=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e);e.info&&(e.info.prevent=!0)};
Ty=function(e,g,c,k){g&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,e,{x:c.clientX,y:c.clientY,sourceEvent:c,preventer:k,prevent:function(I){return fb(I)}})};
nVV=function(e,g,c){if(e.prevent)return!1;if(e.started)return!0;c=Math.abs(e.y-c);return Math.abs(e.x-g)>=5||c>=5};
ROt=function(e,g,c){if(g){var k=e.moves[e.moves.length-2],I=e.moves[e.moves.length-1],J=I.x-e.x,q=I.y-e.y,L=0;if(k){var n=I.x-k.x;L=I.y-k.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,"track",{state:e.state,x:c.clientX,y:c.clientY,dx:J,dy:q,ddx:n,ddy:L,sourceEvent:c,hover:function(){return JP8(c.clientX,c.clientY)}})}};
WvV=function(e,g,c){var k=Math.abs(g.clientX-e.x),I=Math.abs(g.clientY-e.y),J=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c||g);!J||EVv[J.localName]&&J.hasAttribute("disabled")||!(isNaN(k)||isNaN(I)||k<=25&&I<=25||kXz(g))||e.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J,"tap",{x:g.clientX,y:g.clientY,sourceEvent:g,preventer:c})};
bqK=function(e,g,c,k,I){var J;I&&(J=typeof c==="object"&&c!==null)&&(k=e.__dataTemp[g]);k=k!==c&&(k===k||c===c);J&&k&&(e.__dataTemp[g]=c);return k};
XW6=function(){if(lq&&!AO){if(!hOC){hOC=!0;var e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(e)}return!0}return!1};
xBg=function(){return GXK};
DBU=function(e,g){GXK=e;Object.setPrototypeOf(e,g.prototype);new g;GXK=null};
$Bq=function(e,g){for(var c=0;c<g.length;c++){var k=g[c];if(!!e!=!!k.__hideTemplateChildren__)if(k.nodeType===Node.TEXT_NODE)e?(k.__polymerTextContent__=k.textContent,k.textContent=""):k.textContent=k.__polymerTextContent__;else if(k.localName==="slot")if(e)k.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Eg)((0,_.Eg)(k).parentNode).replaceChild(k.__polymerReplaced__,k);else{var I=k.__polymerReplaced__;I&&(0,_.Eg)((0,_.Eg)(I).parentNode).replaceChild(k,I)}else k.style&&(e?(k.__polymerDisplay__=
k.style.display,k.style.display="none"):k.style.display=k.__polymerDisplay__);k.__hideTemplateChildren__=e;k._showHideChildren&&k._showHideChildren(e)}};
YU6=function(e){return(e=e.__dataHost)&&e._methodHost||e};
iqC=function(e,g,c){var k=c.mutableData?f4p:sg;FS.mixin&&(k=FS.mixin(k));var I=function(){return k.apply(this,arguments)||this};
_.Y(I,k);I.prototype.__templatizeOptions=c;I.prototype._bindTemplate(e);jsz(I,e,g,c);return I};
l46=function(e,g,c,k){var I=c.forwardHostProp;if(I&&g.hasHostProps){var J=e.localName=="template",q=g.templatizeTemplateClass;if(!q){if(J){var L=c.mutableData?PyA:mBv;q=function(){return L.apply(this,arguments)||this};
_.Y(q,L);q=g.templatizeTemplateClass=q}else{var n=e.constructor;q=function(){return n.apply(this,arguments)||this};
_.Y(q,n);q=g.templatizeTemplateClass=q}var R=g.hostProps,W;for(W in R)q.prototype._addPropertyEffect("_host_"+W,q.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:pW8(I)}),q.prototype._createNotifyingProperty("_host_"+W);uq&&k&&T0K(g,c,k)}e.__dataProto&&Object.assign(e.__data,e.__dataProto);if(J)DBU(e,q),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,q.prototype);g=g.hostProps;for(var b in g)b="_host_"+b,b in e&&(g=e[b],delete e[b],e.__data[b]=
g)}}};
pW8=function(e){return function(g,c,k){e.call(g.__templatizeOwner,c.substring(6),k[c])}};
jsz=function(e,g,c,k){var I=c.hostProps||{},J;for(J in k.instanceProps){delete I[J];var q=k.notifyInstanceProp;q&&e.prototype._addPropertyEffect(J,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:APp(q)})}if(k.forwardHostProp&&g.__dataHost)for(var L in I)c.hasHostProps||(c.hasHostProps=!0),e.prototype._addPropertyEffect(L,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ssA()})};
APp=function(e){return function(g,c,k){e.call(g.__templatizeOwner,g,c,k[c])}};
ssA=function(){return function(e,g,c){e.__dataHost._setPendingPropertyOrPath("_host_"+g,c[g],!0,!0)}};
FS=function(e,g,c){if(d3&&!YU6(e))throw Error("Pd");c=c||{};if(e.__templatizeOwner)throw Error("Qd");e.__templatizeOwner=g;var k=(g?g.constructor:sg)._parseTemplate(e),I=k.templatizeInstanceClass;I||(I=iqC(e,k,c),k.templatizeInstanceClass=I);var J=YU6(e);l46(e,k,c,J);c=function(){return I.apply(this,arguments)||this};
_.Y(c,I);c.prototype._methodHost=J;c.prototype.__dataHost=e;c.prototype.__templatizeOwner=g;c.prototype.__hostProps=k.hostProps;return c};
T0K=function(e,g,c){c=c.constructor._properties;e=e.propertyEffects;g=g.instanceProps;for(var k in e)if(!(c[k]||g&&g[k]))for(var I=e[k],J=0;J<I.length;J++){var q=I[J].info.part;if(!q.signature||!q.signature.static){console.warn("Property '"+k+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
FvW=function(e,g){for(var c;g;)if(c=g.__dataHost?g:g.__templatizeInstance)if(c.__dataHost!=e)g=c.__dataHost;else return c;else g=(0,_.Eg)(g).parentNode;return null};
zy=function(e){return e.localName==="slot"};
uv8=function(){for(var e=Hd.prototype,g="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),c={},k=0;k<g.length;c={method$jscomp$33:void 0},k++)c.method$jscomp$33=g[k],e[c.method$jscomp$33]=function(I){return function(){return this.node[I.method$jscomp$33].apply(this.node,arguments)}}(c)};
dBg=function(e,g){for(var c={},k=0;k<g.length;c={name$jscomp$450:void 0},k++)c.name$jscomp$450=g[k],Object.defineProperty(e,c.name$jscomp$450,{get:function(I){return function(){return this.node[I.name$jscomp$450]}}(c),
configurable:!0})};
zOC=function(){for(var e=Hd.prototype,g=["textContent","innerHTML","className"],c={},k=0;k<g.length;c={name$jscomp$451:void 0},k++)c.name$jscomp$451=g[k],Object.defineProperty(e,c.name$jscomp$451,{get:function(I){return function(){return this.node[I.name$jscomp$451]}}(c),
set:function(I){return function(J){this.node[I.name$jscomp$451]=J}}(c),
configurable:!0})};
Hqg=function(){Qa=document.documentElement.getAttribute("dir");Qa=document.documentElement.getAttribute("dir");for(var e=0;e<Ug.length;e++){var g=Ug[e];g.__autoDirOptOut||g.setAttribute("dir",Qa)}};
Zqe=function(){o2=!0;requestAnimationFrame(function(){o2=!1;Qse(UBv);setTimeout(function(){for(var e=0,g=ZX.length;e<g;e++)oVp(ZX.shift())})})};
Qse=function(e){for(;e.length;)oVp(e.shift())};
oVp=function(e){var g=e[0],c=e[1];e=e[2];try{c.apply(g,e)}catch(k){setTimeout(function(){throw k;})}};
_.VAe=function(e,g,c){o2||Zqe();UBv.push([e,g,c])};
_.Va=function(e,g,c){o2||Zqe();ZX.push([e,g,c])};
N0e=function(e,g){g=g===void 0?!1:g;if(!tAA||!B06||!tAA.handlesDynamicScoping)return null;var c=B06.ScopingShim;if(!c)return null;var k=c.scopeForNode(e),I=(0,_.Eg)(e).getRootNode(),J=function(q){if((0,_.Eg)(q).getRootNode()===I){var L=Array.from(tAA.nativeMethods.querySelectorAll.call(q,"*"));L.push(q);for(q=0;q<L.length;q++){var n=L[q];if((0,_.Eg)(n).getRootNode()===I){var R=c.currentScopeForNode(n);R!==k&&(R!==""&&c.unscopeNode(n,R),c.scopeNode(n,k))}}}};
J(e);return g?(g=new MutationObserver(function(q){for(var L=0;L<q.length;L++)for(var n=q[L],R=0;R<n.addedNodes.length;R++){var W=n.addedNodes[R];W.nodeType===Node.ELEMENT_NODE&&J(W)}}),g.observe(e,{childList:!0,
subtree:!0}),g):null};
SUA=function(){document.body.removeAttribute("unresolved")};
Cyz=function(e){var g=e=e.replace(yP6,"").replace(KvW,""),c=new OqW;c.start=0;c.end=g.length;for(var k=c,I=0,J=g.length;I<J;I++)if(g[I]==="{"){k.rules||(k.rules=[]);var q=k,L=q.rules[q.rules.length-1]||null;k=new OqW;k.start=I+1;k.parent=q;k.previous=L;q.rules.push(k)}else g[I]==="}"&&(k.end=I+1,k=k.parent||c);return MA8(c,e)};
MA8=function(e,g){var c=g.substring(e.start,e.end-1);e.parsedCssText=e.cssText=c.trim();e.parent&&(c=g.substring(e.previous?e.previous.end:e.parent.start,e.start-1),c=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(c),c=c.replace(exW," "),c=c.substring(c.lastIndexOf(";")+1),c=e.parsedSelector=e.selector=c.trim(),e.atRule=c.indexOf("@")===0,e.atRule?c.indexOf("@media")===0?e.type=4:c.match(gEC)&&(e.type=7,e.keyframesName=e.selector.split(exW).pop()):c.indexOf("--")===
0?e.type=1E3:e.type=1);if(c=e.rules)for(var k=0,I=c.length,J=void 0;k<I&&(J=c[k]);k++)MA8(J,g);return e};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var g=arguments[1],c=6-g.length;c--;)g="0"+g;return"\\"+g})};
cLU=function(e,g,c){c=c===void 0?"":c;var k="";if(e.cssText||e.rules){var I=e.rules;if(I&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(I))for(var J=0,q=I.length,L=void 0;J<q&&(L=I[J]);J++)k=cLU(L,g,k);else g?g=e.cssText:(g=e.cssText,g=g.replace(klv,"").replace(Igt,""),g=g.replace(JLC,"").replace(vEg,"")),(k=g.trim())&&(k="  "+k+"\n")}k&&(e.selector&&(c+=e.selector+" {\n"),c+=k,e.selector&&(c+="}\n\n"));return c};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(e){e=e[0];return!!e&&!!e.selector&&e.selector.indexOf("--")===0};
qsK=function(e){if(e=w96[e])e._applyShimCurrentVersion=e._applyShimCurrentVersion||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e._applyShimNextVersion=(e._applyShimNextVersion||0)+1};
LnU=function(e){return e._applyShimCurrentVersion===e._applyShimNextVersion};
agp=function(e){e._applyShimValidatingVersion=e._applyShimNextVersion;e._validating||(e._validating=!0,rLC.then(function(){e._applyShimCurrentVersion=e._applyShimNextVersion;e._validating=!1}))};
Rx6=function(e){if(!e)return"";typeof e==="string"&&(e=Cyz(e));return cLU(e,nEC)};
EEz=function(e){!e.__cssRules&&e.textContent&&(e.__cssRules=Cyz(e.textContent));return e.__cssRules||null};
b2q=function(e,g,c,k){if(e){var I=!1,J=e.type;if(k&&J===4){var q=e.selector.match(WnC);q&&(window.matchMedia(q[1]).matches||(I=!0))}J===1?g(e):c&&J===7?c(e):J===1E3&&(I=!0);if((e=e.rules)&&!I)for(I=0,J=e.length,q=void 0;I<J&&(q=e[I]);I++)b2q(q,g,c,k)}};
hxC=function(e,g){var c=e.indexOf("var(");if(c===-1)return g(e,"","","");a:{var k=0;var I=c+3;for(var J=e.length;I<J;I++)if(e[I]==="(")k++;else if(e[I]===")"&&--k===0)break a;I=-1}k=e.substring(c+4,I);c=e.substring(0,c);e=hxC(e.substring(I+1),g);J=k.indexOf(",");if(J===-1)return g(c,k.trim(),"",e);I=k.substring(0,J).trim();k=k.substring(J+1).trim();return g(c,I,k,e)};
X9K=function(e){if(tO!==void 0)return tO;if(e.__cssBuild===void 0){var g=e.getAttribute("css-build");if(g)e.__cssBuild=g;else{a:{g=e.localName==="template"?e.content.firstChild:e.firstChild;if(g instanceof Comment&&(g=g.textContent.trim().split(":"),g[0]==="css-build")){g=g[1];break a}g=""}if(g!==""){var c=e.localName==="template"?e.content.firstChild:e.firstChild;c.parentNode.removeChild(c)}e.__cssBuild=g}}return e.__cssBuild||""};
xsg=function(e,g,c,k){for(var I=g._noAccessors,J=Object.getOwnPropertyNames(g),q=0;q<J.length;q++){var L=J[q];if(!(L in k))if(I)e[L]=g[L];else{var n=Object.getOwnPropertyDescriptor(g,L);n&&(n.configurable=!0,Object.defineProperty(e,L,n))}}for(var R in GlC)g[R]&&(c[R]=c[R]||[],c[R].push(g[R]))};
Ds6=function(e,g,c){g=g||[];for(var k=e.length-1;k>=0;k--){var I=e[k];I?Array.isArray(I)?Ds6(I,g):g.indexOf(I)<0&&(!c||c.indexOf(I)<0)&&g.unshift(I):console.warn("behavior is null, check for missing or 404 import")}return g};
$sA=function(e,g){for(var c in g){var k=e[c],I=g[c];e[c]=!("value"in I)&&k&&"value"in k?Object.assign({value:k.value},I):I}};
jXA=function(e,g,c){var k={},I=function(){return g.apply(this,arguments)||this};
_.Y(I,g);I._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(q)for(var n=0,R;n<q.length;n++)R=q[n],R.properties&&this.createProperties(R.properties),R.observers&&this.createObservers(R.observers,R.properties);e.properties&&this.createProperties(e.properties);e.observers&&this.createObservers(e.observers,e.properties);this._prepareTemplate()}else g._finalizeClass.call(this)};
I.prototype.created=function(){g.prototype.created.call(this);var n=k.created;if(n)for(var R=0;R<n.length;R++)n[R].call(this)};
I.prototype._registered=function(){var n=I.prototype;if(!n.hasOwnProperty("__hasRegisterFinished")){n.__hasRegisterFinished=!0;g.prototype._registered.call(this);lq&&L(n);n=Object.getPrototypeOf(this);var R=k.beforeRegister;if(R)for(var W=0;W<R.length;W++)R[W].call(n);if(R=k.registered)for(W=0;W<R.length;W++)R[W].call(n)}};
I.prototype._applyListeners=function(){g.prototype._applyListeners.call(this);var n=k.listeners;if(n)for(var R=0;R<n.length;R++){var W=n[R];if(W)for(var b in W)this._addMethodEventListenerToNode(this,b,W[b])}};
I.prototype._ensureAttributes=function(){var n=k.hostAttributes;if(n)for(var R=n.length-1;R>=0;R--){var W=n[R],b;for(b in W)this._ensureAttribute(b,W[b])}g.prototype._ensureAttributes.call(this)};
I.prototype.ready=function(){g.prototype.ready.call(this);var n=k.ready;if(n)for(var R=0;R<n.length;R++)n[R].call(this)};
I.prototype.attached=function(){g.prototype.attached.call(this);var n=k.attached;if(n)for(var R=0;R<n.length;R++)n[R].call(this)};
I.prototype.detached=function(){g.prototype.detached.call(this);var n=k.detached;if(n)for(var R=0;R<n.length;R++)n[R].call(this)};
I.prototype.attributeChanged=function(n,R,W){g.prototype.attributeChanged.call(this);var b=k.attributeChanged;if(b)for(var h=0;h<b.length;h++)b[h].call(this,n,R,W)};
_.Bd.Object.defineProperties(I,{properties:{configurable:!0,enumerable:!0,get:function(){var n={};if(q)for(var R=0;R<q.length;R++)$sA(n,q[R].properties);$sA(n,e.properties);return n}},
observers:{configurable:!0,enumerable:!0,get:function(){var n=[];if(q)for(var R=0,W;R<q.length;R++)W=q[R],W.observers&&(n=n.concat(W.observers));e.observers&&(n=n.concat(e.observers));return n}}});
if(c){Array.isArray(c)||(c=[c]);var J=g.prototype.behaviors;var q=Ds6(c,null,J);I.prototype.behaviors=J?J.concat(c):q}var L=function(n){if(q)for(var R=q,W=0;W<R.length;W++)xsg(n,R[W],k,Ys8);xsg(n,e,k,fgz)};
lq||L(I.prototype);I.generatedFrom=e;return I};
p9W=function(e){var g=typeof e!=="string"?e:{is:e,notifyObserversOnUndefined:!0};g.fastInit===void 0&&(g.fastInit=!0);return function(c){if(!g.disableInheritanceCheck&&Object.getPrototypeOf(c.prototype).constructor!==_.NZ)throw Error("Ud");var k=c.prototype;k.is=g.is;Fgv(k,"created",function(){this.hostElement=this;this.polymerController=this});
i2g(k,c,g.fastInit);g.notifyObserversOnUndefined&&(k._overrideLegacyUndefined=!0);if(P2C)for(var I=_.w(Object.getOwnPropertyNames(k)),J=I.next();!J.done;J=I.next()){J=J.value;var q=Object.getOwnPropertyDescriptor(k,J);q.enumerable===!1&&(q.enumerable=!0,Object.defineProperty(k,J,q))}if("template"in c)var L=function(){return c.template};
else g.template!==void 0&&(L=g.template);if(L!==void 0){var n;Object.defineProperty(k,"_template",{get:function(){n===void 0&&(n=L());return n},
set:function(R){n=R},
configurable:!0,enumerable:!0})}Polymer(k);c[msz]=k}};
Tgq=function(e){e=e===void 0?{}:e;e.fastInit===void 0&&(e.fastInit=!0);return function(g){if(!e.disableInheritanceCheck&&Object.getPrototypeOf(g.prototype).constructor!==SX)throw Error("Vd");i2g(g.prototype,g,e.fastInit)}};
i2g=function(e,g,c){c=c===void 0?!1:c;lgv(g);c?Fgv(e,"created",function(){this.disableEnforceFastDefaultValuesCheck||ALA(g,this)}):Fgv(e,"ready",function(){for(var k={},I=_.w(uXv(this.behaviors)),J=I.next();!J.done;J=I.next())J=J.value,J.properties&&Object.assign(k,sXC(this,J.properties));
Object.assign(k,sXC(this,this.properties));ALA(g,this);I=_.w(Object.keys(k));for(J=I.next();!J.done;J=I.next())J=J.value,this[J]=k[J]})};
ALA=function(e,g){if(P2C){e=new e;for(var c=_.w(Object.getOwnPropertyNames(e)),k=c.next();!k.done;k=c.next())k=k.value,g[k]=e[k];for(c=g;c&&c!==Object.prototype;c=Object.getPrototypeOf(c)){k=_.w(Object.getOwnPropertyNames(c));for(var I=k.next();!I.done;I=k.next())I=I.value,e.hasOwnProperty(I)||Object.defineProperty(e,I,Fnz(g,I))}}else e.apply(g)};
Fnz=function(e,g){return{get:function(){var c=e[g];return c instanceof Function?c.bind(e):c},
set:function(c){e[g]=c}}};
sXC=function(e,g){if(!g)return{};for(var c={},k=_.w(Object.keys(g)),I=k.next();!I.done;I=k.next())if(I=I.value,!g[I].readOnly){var J=e[I];J!==void 0&&(c[I]=J)}return c};
lgv=function(e){var g=new e;e=e.prototype.properties||{};for(var c=_.w(Object.keys(e)),k=c.next();!k.done;k=c.next())if(k=k.value,g.hasOwnProperty(k)){var I=e[k];typeof I==="function"&&(e[k]=I={type:I});g[k]!=null&&I.type===Object&&(I.type=uWV(g[k].constructor))}};
uWV=function(e){for(var g=_.w(ds6),c=g.next();!c.done;c=g.next())if(c=c.value,e===c)return c;return Object};
zxe=function(e){return function(g,c){g.behaviors=g.behaviors||[];g.behaviors.push(e||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",g,c).prototype:void 0));Object.defineProperty(g,c,{get:function(){return this},
enumerable:!0,configurable:!0})}};
H2V=function(e){e=e===void 0?{}:e;return function(g,c){g.properties=g.properties||{};e.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?e.type=uWV(Reflect.getMetadata("design:type",g,c)):e.type=String);var k=e,I=g.properties[c];g.properties[c]=I?Object.assign({},I,k):k}};
QXe=function(e){return function(g,c){g.listeners=g.listeners||{};g.listeners[e]=c}};
Use=function(){var e=_.Mb.apply(0,arguments);if(e.length===0)throw Error("Wd");return function(g,c){g.observers=g.observers||[];g.observers.push(c+"("+e.join(",")+")")}};
oEq=function(){var e=_.Mb.apply(0,arguments);return function(g,c,k){var I=Object.getOwnPropertyDescriptor(g,c).get,J="__compute__"+c;Object.defineProperty(g,J,{value:I,enumerable:!0});g.properties=g.properties||{};I=g.properties[c];I||(I={},g.properties[c]=I);I.computed=J+"("+e.join(",")+")";k.get=void 0}};
_.ya=function(e,g,c){_.Iy.call(this);this.JSC$11631_id_=null;this.usingListeners_=!1;this.JSC$11631_listener_=e;this.handler_=c;this.JSC$11631_win_=g||window;this.callback_=(0,_.Ju)(this.JSC$11633_doAction_,this)};
V9q=function(e){var g=Z2C(e);if(!g)throw Error("Xd`"+e);return g};
Z2C=function(e){var g={};e=String(e);var c=e.charAt(0)=="#"?e:"#"+e;if(t9g.test(c))return g.hex=BgV(c),g.type="hex",g;c=NgC(e);return c.length?(g.hex=Ssz(c[0],c[1],c[2]),g.type="rgb",g):yLt&&(e=yLt[e.toLowerCase()])?(g.hex=e,g.type="named",g):null};
BgV=function(e){if(!t9g.test(e))throw Error("Zd`"+e);e.length==4&&(e=e.replace(KnC,"#$1$1$2$2$3$3"));return e.toLowerCase()};
O2C=function(e){e=BgV(e);e=parseInt(e.slice(1),16);return[e>>16,e>>8&255,e&255]};
Ssz=function(e,g,c){e=Number(e);g=Number(g);c=Number(c);if(e!=(e&255)||g!=(g&255)||c!=(c&255))throw Error("$d`"+e+"`"+g+"`"+c);g=e<<16|g<<8|c;return e<16?"#"+(16777216|g).toString(16).slice(1):"#"+g.toString(16)};
NgC=function(e){var g=e.match(M9v);if(g){e=Number(g[1]);var c=Number(g[2]);g=Number(g[3]);if(e>=0&&e<=255&&c>=0&&c<=255&&g>=0&&g<=255)return[e,c,g]}return[]};
C2t=function(){};
Kb=function(e){this.range_=e};
Og=function(e){this.range_=e};
MZ=function(e){this.range_=e};
eeA=function(e){return _.Cb?new MZ(e):_.er?new Og(e):new Kb(e)};
gog=function(){var e=Jd().JSC$9636_document_;return!!(e.webkitIsFullScreen||e.mozFullScreen||e.msFullscreenElement||e.fullscreenElement)};
_.gY=function(){var e=window.getSelection();return e&&caC(e)};
caC=function(e){var g=!1;if(e.createRange)try{var c=e.createRange()}catch(I){return null}else if(e.rangeCount){if(e.rangeCount>1){c=new cP;g=e.rangeCount;for(var k=0;k<g;k++)c.browserRanges_.push(e.getRangeAt(k));return c}c=e.getRangeAt(0);g=kS6(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}else return null;return I7p(eeA(c),g)};
_.IY=function(e,g){return _.kQ(e,g,e,g)};
_.JZ=function(e,g,c,k){return _.kQ(e,g,c,k)};
kS6=function(e,g,c,k){if(e==c)return k<g;var I;if(e.nodeType==1&&g)if(I=e.childNodes[g])e=I,g=0;else if(_.uK(e,c))return!0;if(c.nodeType==1&&k)if(I=c.childNodes[k])c=I,k=0;else if(_.uK(c,e))return!1;return(Jaq(e,c)||g-k)>0};
vP=function(e,g,c){_.Iy.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=e;this.scrollTimer_=new _.rD(50);this.JSC$11710_eventHandler_=new _.wD(this);this.scrollDelta_=new _.pr;this.containerIsActuallyContent_=e.tagName==="BODY"||e.tagName==="HTML";this.containerBounds_=vo6(e);this.containerIsActuallyContent_&&(e=_.kU(),this.containerBounds_.height=e.height,this.containerBounds_.width=e.width);this.margin_=g||0;if(g){if(g=this.containerBounds_.clone(),e=this.margin_){var k=
Math.min(e,g.height*.25);g.top+=k;g.height-=2*k;e=Math.min(e,g.width*.25);g.left+=e;g.width-=2*e}}else g=this.containerBounds_;this.scrollBounds_=g;c||this.JSC$11710_eventHandler_.listen(_.be(this.containerNode_),"mousemove",this.JSC$11712_onMouseMove);this.JSC$11710_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11712_onTick_)};
wNp=function(){};
qRV=function(e){return e%10==1&&e%100!=11?"one":e%10==2&&e%100!=12?"two":e%10==3&&e%100!=13?"few":"other"};
LFU=function(e,g){var c=e|0;if(void 0===g){g=Math;var k=g.min,I=e+"",J=I.indexOf(".");g=k.call(g,J===-1?0:I.length-J-1,3)}k=Math.pow(10,g);e={v:g,f:(e*k|0)%k};return c==1&&e.v==0?"one":"other"};
raK=function(e,g,c,k,I,J,q,L){this.x0=e;this.y0=g;this.x1=c;this.y1=k;this.x2=I;this.y2=J;this.x3=q;this.y3=L};
wY=function(){_.jv.call(this);this.JSC$11793_name_="closure_frame"+a7C++;this.iframesForDisposal_=[];noV[this.JSC$11793_name_]=this};
_.qR=function(e){this.errorMessage_=null;this.result_=[];this.JSC$11797_buffer_="";this.stack_=[];this.JSC$11797_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!e||!e.deliverMessageAsRawString)};
_.LM=function(e){this.mechanism=e};
rY=function(e,g){this.JSC$11804_key_=e;this.JSC$11804_value_=g};
_.aY=function(e,g){this.JSC$11810_map_={};this.JSC$11810_keys_=[];this.version_=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("na");for(var k=0;k<c;k+=2)this.set(arguments[k],arguments[k+1])}else e&&this.addAll(e)};
EoU=function(){this.JSC$11813_map_=new _.aY;this.JSC$11813_head_=new Reg("");this.JSC$11813_head_.next=this.JSC$11813_head_.prev=this.JSC$11813_head_};
bZC=function(e){if(e>=55296&&e<=57343||e>1114111)return"\ufffd";e in WFe&&(e=WFe[e]);var g="";e>65535&&(e-=65536,g+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023);return g+=String.fromCharCode(e)};
heA=function(e,g){return e<g?1:-1};
GSC=function(){return function(e){return e.charAt(1)==="#"?e.charAt(2)==="X"||e.charAt(2)==="x"?bZC(parseInt(e.substr(3),16)):bZC(parseInt(e.substr(2),10)):XNq[e.slice(1,-1)]}};
$nv=function(e){return e.slice(1,e.length-1).trim().replace(xn6,function(g){return Dn8[g]||" "})};
nM=function(e){return e===32||e===9};
RY=function(e,g){return g<e.length?e.charCodeAt(g):-1};
YRC=function(e){for(;e;){if(e._lastLineBlank)return!0;var g=e.type;if(g==="list"||g==="item")e=e._lastChild;else break}return!1};
E4=function(e){if(f7W.test(e)){var g=1,c=0,k=0;for(e[c]=="|"&&c++;c<e.length;){switch(e[c]){case "|":k=1;break;case " ":break;case "\t":break;default:k&&(k=0,g++)}c++}return j0W.test(e)?-g:g}return 0};
iZW=function(e){return e=="table"||e=="row"||e=="cell"};
PVC=function(){return new WP("document",[[1,1],[0,0]])};
mng=function(){};
Xd=function(){var e={safe:!1};e=e||{};e.softbreak=e.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=e};
s0V=function(e,g){var c="";if(e)if(e=e.toLowerCase(),e===" "||pNC.test(e))c="space";else if(TGg.test(e))c="esc";else if(e.length==1){if(!g||l7V.test(e))c=e}else c=Aap.test(e)?e.replace("arrow",""):e=="multiply"?"*":e;return c};
zeW=function(e,g){var c=e.hasModifiers;if(g.key)c=s0V(g.key,c);else if(g.detail&&g.detail.key)c=s0V(g.detail.key,c);else{c=g.keyIdentifier;var k="";c&&(c in FFU?k=FFU[c]:u9K.test(c)?(c=parseInt(c.replace("U+","0x"),16),k=String.fromCharCode(c).toLowerCase()):k=c.toLowerCase());(c=k)||(c=g.keyCode,k="",Number(c)&&(c>=65&&c<=90?k=String.fromCharCode(32+c):c>=112&&c<=123?k="f"+(c-112+1):c>=48&&c<=57?k=String(c-48):c>=96&&c<=105?k=String(c-96):k=dne[c]),c=k);c=c||""}return c===e.key&&(!e.hasModifiers||
!!g.shiftKey===!!e.shiftKey&&!!g.ctrlKey===!!e.ctrlKey&&!!g.altKey===!!e.altKey&&!!g.metaKey===!!e.metaKey)};
Q0e=function(e){return e.length===1?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(g,c){var k=c.split(":");c=k[0];k=k[1];c in HZg?(g[HZg[c]]=!0,g.hasModifiers=!0):(g.key=c,g.event=k||"keydown");return g},{combo:e.split(":").shift()})};
Ung=function(e){return e.trim().split(" ").map(function(g){return Q0e(g)})};
ooW=function(e,g){if(e&&e.fn){var c=e.fn;e.fn=function(){try{c.apply(this,arguments)}catch(k){if(k instanceof GH)console.warn("Argument '"+k.arg+"'"+(g?" for method '"+g+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw k;}}}return e};
Vct=function(){var e=[],g;var c=c||_.ZZV.length;for(g=0;g<8;g++)e[g]=_.ZZV[0|Math.random()*c];return e.join("")};
tcq=function(){var e=_.Mb.apply(0,arguments);return e.length===0?function(g){return g}:e.length===1?e[0]:e.reduce(function(g,c){return function(){return g(c.apply(null,_.KY(_.Mb.apply(0,arguments))))}})};
BG8=function(){var e=_.Mb.apply(0,arguments);return function(g){return function(c,k){c=g(c,k);var I=function(){throw Error("Ge");},J={getState:c.getState,
dispatch:function(q){return I.apply(null,[q].concat(_.KY(_.Mb.apply(1,arguments))))}};
k=e.map(function(q){return q(J)});
I=tcq.apply(null,_.KY(k))(c.dispatch);return Object.assign({},c,{dispatch:I})}}};
ya6=function(e){Object.keys(e).forEach(function(g){var c=e[g];if(typeof c(void 0,{type:NGC})==="undefined")throw Error("He`"+g);if(typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+SRC()})==="undefined")throw Error("Ie`"+g+"`"+NGC);})};
xQ=function(e){for(var g=Object.keys(e),c={},k=0;k<g.length;k++){var I=g[k];typeof e[I]==="function"&&(c[I]=e[I])}var J=Object.keys(c);try{ya6(c)}catch(L){var q=L}return function(L,n){L=L===void 0?{}:L;if(q)throw q;for(var R=!1,W={},b=0;b<J.length;b++){var h=J[b],X=L[h],D=(0,c[h])(X,n);if(typeof D==="undefined")throw L=n&&n.type,Error("Je`"+(L?'"'+String(L)+'"':"(unknown type)")+"`"+h);W[h]=D;R=R||D!==X}return(R=R||J.length!==Object.keys(L).length)?W:L}};
KFV=function(e,g,c){function k(){if(W)throw Error("Ke");return L}
function I(X){if(typeof X!=="function")throw Error("Le`"+typeof X);if(W)throw Error("Me");var D=!0;R===n&&(R=n.slice());R.push(X);return function(){if(D){if(W)throw Error("Ne");D=!1;R===n&&(R=n.slice());var f=R.indexOf(X);R.splice(f,1);n=null}}}
function J(X){if(typeof X!=="object"||X===null)var D=!1;else{for(D=X;Object.getPrototypeOf(D)!==null;)D=Object.getPrototypeOf(D);D=Object.getPrototypeOf(X)===D}if(!D)throw Error("Oe`"+typeof X);if(typeof X.type==="undefined")throw Error("Pe");if(W)throw Error("Qe");try{W=!0,L=q(L,X)}finally{W=!1}D=n=R;for(var f=0;f<D.length;f++)(0,D[f])();return X}
if(typeof g==="function"&&typeof c==="function"||typeof c==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof g==="function"&&typeof c==="undefined"&&(c=g,g=void 0);if(typeof c!=="undefined"){if(typeof c!=="function")throw Error("Se`"+typeof c);return c(KFV)(e,g)}if(typeof e!=="function")throw Error("Te`"+typeof e);var q=e,L=g,n=[],R=n,W=!1;J({type:NGC});var b={},h=(b.dispatch=J,b.subscribe=I,b.getState=k,b.replaceReducer=function(X){if(typeof X!=="function")throw Error("Ue`"+
typeof X);q=X;J({type:OZ6});return h},b[McA]=function(){var X={};
return X.subscribe=function(D){function f(){D.next&&D.next(k())}
if(typeof D!=="object"||D===null)throw new TypeError("Ve`"+typeof D);f();return{unsubscribe:I(f)}},X[McA]=function(){return this},X},b);
return h};
CVz=function(e){function g(){I&&(I=!1,e());J&&k()}
function c(){requestAnimationFrame(g)}
function k(){var L=Date.now();if(I){if(L-q<2)return;J=!0}else I=!0,J=!1,setTimeout(c,20);q=L}
var I=!1,J=!1,q=0;return k};
DH=function(e){return typeof e==="number"?e:parseFloat(e)||0};
e6U=function(e){return _.Mb.apply(1,arguments).reduce(function(g,c){return g+DH(e["border-"+c+"-width"])},0)};
I2z=function(e){if(gbK[e])return gbK[e];var g=globalThis[e],c=g.prototype,k=e in cUv?cUv[e]:void 0;k=!(!k||!k.every(function(n){var R,W;return!!((R=Object.getOwnPropertyDescriptor(c,n))==null?0:(W=R.get)==null?0:W.toString().includes("[native code]"))}));
var I=e in k3V?k3V[e]:void 0;I=!(!I||!I.every(function(n){var R;return typeof c[n]==="function"&&((R=c[n])==null?void 0:R.toString().includes("[native code]"))}));
if(k&&I&&!globalThis.Zone)return gbK[e]=g.prototype;try{var J=document.createElement("iframe");document.body.appendChild(J);var q=J.contentWindow;if(!q)return g.prototype;var L=q[e].prototype;document.body.removeChild(J);return L?gbK[e]=L:c}catch(n){return c}};
$Q=function(e,g,c){var k=e+"."+String(c);if(JU8[k])return JU8[k].call(g);e=I2z(e);var I;e=(I=Object.getOwnPropertyDescriptor(e,c))==null?void 0:I.get;if(!e)return g[c];JU8[k]=e;return e.call(g)};
wR8=function(e,g){var c="Node."+String(g);if(vbq[c])return vbq[c].bind(e);var k=I2z("Node")[g];if(typeof k!=="function")return e[g];vbq[c]=k;return k.bind(e)};
YQ=function(e,g,c){try{if(!(g in e))return function(){};
var k=e[g],I=c(k);typeof I==="function"&&(I.prototype=I.prototype||{},Object.defineProperties(I,{__rrweb_original__:{enumerable:!1,value:k}}));e[g]=I;return function(){e[g]=k}}catch(J){return function(){}}};
i0=function(e){var g=e&&"host"in e&&"mode"in e&&fM(e)||null;return!!(g&&"shadowRoot"in g&&jr(g)===e)};
PP=function(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"};
qGK=function(e){e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return e};
rUW=function(e){try{var g=e.rules||e.cssRules;if(!g)return null;var c=e.href;!c&&e.ownerNode&&(c=e.ownerNode.baseURI);var k=Array.from(g,function(I){return LEV(I,c)}).join("");
return qGK(k)}catch(I){return null}};
LEV=function(e,g){if("styleSheet"in e){try{var c;if(!(c=rUW(e.styleSheet))){var k=e.cssText;if(k.split('"').length<3)c=k;else{var I=["@import","url("+JSON.stringify(e.href)+")"];e.layerName===""?I.push("layer"):e.layerName&&I.push("layer("+e.layerName+")");e.supportsText&&I.push("supports("+e.supportsText+")");e.media.length&&I.push(e.media.mediaText);c=I.join(" ")+";"}}var J=c}catch(q){J=e.cssText}return e.styleSheet.href?a2p(J,e.styleSheet.href):J}J=e.cssText;"selectorText"in e&&e.selectorText.includes(":")&&
(J=J.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return g?a2p(J,g):J};
nbW=function(e){var g=e.element;var c=e.maskInputOptions;var k=e.tagName;var I=e.type;var J=e.value;e=e.maskInputFn;J=J||"";I=I&&I.toLowerCase();if(c[k.toLowerCase()]||I&&c[I])J=e?e(J,g):"*".repeat(J.length);return J};
R6W=function(e){var g=e.getContext("2d");if(!g)return!0;for(var c=0;c<e.width;c+=50)for(var k=0;k<e.height;k+=50){var I=g.getImageData;if((new Uint32Array(("__rrweb_original__"in I?I.__rrweb_original__:I).call(g,c,k,Math.min(50,e.width-c),Math.min(50,e.height-k)).data.buffer)).some(function(J){return J!==0}))return!1}return!0};
Ebp=function(e){var g=e.type;return e.hasAttribute("data-rr-is-password")?"password":g?g.toLowerCase():null};
WEU=function(e){try{var g=new URL(e,window.location.href)}catch(I){return null}var c,k;return(k=(c=g.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:c[1])!=null?k:null};
a2p=function(e,g){return(e||"").replace(bwA,function(c,k,I,J,q,L){I=I||q||L;k=k||J||"";if(!I)return c;if(h6W.test(I)||XRe.test(I)||G3A.test(I))return"url("+k+I+k+")";if(I[0]==="/")return c=g.indexOf("//")>-1?g.split("/").slice(0,3).join("/"):g.split("/")[0],c=c.split("?")[0],"url("+k+(c+I)+k+")";c=g.split("/");J=I.split("/");c.pop();J=_.w(J);for(I=J.next();!I.done;I=J.next())I=I.value,I!=="."&&(I===".."?c.pop():c.push(I));return"url("+k+c.join("/")+k+")"})};
xDz=function(e,g){return(g=g===void 0?!1:g)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
DDz=function(e,g){var c=c===void 0?!1:c;g=Array.from(g.childNodes);var k=[],I=0;if(g.length>1&&e&&typeof e==="string")for(var J=xDz(e,c),q=J.length/e.length,L=1;L<g.length;L++)if(g[L].textContent&&typeof g[L].textContent==="string"){for(var n=xDz(g[L].textContent,c),R=3;R<n.length&&(n[R].match(/[a-zA-Z0-9]/)||n.indexOf(n.substring(0,R),1)!==-1);R++);for(;R<n.length;R++){var W=n.substring(0,R),b=J.split(W),h=-1;if(b.length===2)h=b[0].length;else if(b.length>2&&b[0]===""&&g[L-1].textContent!=="")h=
J.indexOf(W,1);else if(b.length===1){W=W.substring(0,W.length-1);b=J.split(W);if(b.length<=1)return k.push(e),k;R=101}else R===n.length-1&&(h=J.indexOf(W));if(b.length>=2&&R>100){var X=g[L-1].textContent;X&&typeof X==="string"&&(h=J.indexOf(W,xDz(X).length));h===-1&&(h=b[0].length)}if(h!==-1){for(n=Math.floor(h/q);n>0&&n<e.length;){I+=1;if(I>50*g.length)return k.push(e),k;R=xDz(e.substring(0,n),c);if(R.length===h){k.push(e.substring(0,n));e=e.substring(n);J=J.substring(h);break}else n=R.length<h?
n+Math.max(1,Math.floor((h-R.length)/q)):n-Math.max(1,Math.floor((R.length-h)*q))}break}}}k.push(e);return k};
YGp=function(){return $Dt++};
jue=function(e){if(e instanceof HTMLFormElement)return"form";e=e.tagName.toLowerCase();return f26.test(e)?"div":e};
pRC=function(e,g){function c(R){return(R=R.exec(g.substring(k)))?(R=R[0],k+=R.length,R):""}
if(g.trim()==="")return g;for(var k=0,I=[];;){c(iwe);if(k>=g.length)break;var J=c(PNK);if(J.slice(-1)===",")J=mDg(e,J.substring(0,J.length-1)),I.push(J);else{var q="";J=mDg(e,J);for(var L=!1;;){var n=g.charAt(k);if(n===""){I.push((J+q).trim());break}else if(L)n===")"&&(L=!1);else if(n===","){k+=1;I.push((J+q).trim());break}else n==="("&&(L=!0);q+=n;k+=1}}}return I.join(", ")};
mDg=function(e,g){return g&&g.trim()!==""?TQ8(e,g):g};
TQ8=function(e,g){var c=l26.get(e);c||(c=e.createElement("a"),l26.set(e,c));if(!g)g="";else if(g.startsWith("blob:")||g.startsWith("data:"))return g;e0(c,g);return c.href};
AUp=function(e,g,c,k){return k?c==="src"||c==="href"&&(g!=="use"||k[0]!=="#")||c==="xlink:href"&&k[0]!=="#"||c==="background"&&(g==="table"||g==="td"||g==="th")?mDg(e,k):c==="srcset"?pRC(e,k):c==="style"?a2p(k,TQ8(e)):g==="object"&&c==="data"?mDg(e,k):k:k};
suA=function(e,g){return(e==="video"||e==="audio")&&g==="autoplay"};
FEz=function(e,g,c){try{if(typeof g==="string"){if(e.classList.contains(g))return!0}else for(var k=e.classList.length;k--;)if(g.test(e.classList[k]))return!0;if(c)return e.matches(c)}catch(I){}return!1};
uGv=function(e,g,c){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return c?uGv(mV(e),g,c):!1;for(var k=e.classList.length;k--;)if(g.test(e.classList[k]))return!0;return c?uGv(mV(e),g,c):!1};
dDv=function(e,g,c,k){if(e.nodeType===e.ELEMENT_NODE){if(!TH(e).length)return!1}else{if(l0(e)===null)return!1;e=l0(e)}try{if(typeof g==="string")if(k){if(e.closest("."+g))return!0}else{if(e.classList.contains(g))return!0}else if(uGv(e,g,k))return!0;if(c)if(k){if(e.closest(c))return!0}else if(e.matches(c))return!0}catch(I){}return!1};
z6C=function(e,g,c){var k=e.contentWindow;if(k){var I=!1;try{var J=k.document.readyState}catch(L){return}if(J!=="complete"){var q=setTimeout(function(){I||(g(),I=!0)},c);
e.addEventListener("load",function(){clearTimeout(q);I=!0;g()})}else k.location.href==="about:blank"&&e.src!=="about:blank"&&e.src!==""||setTimeout(g,0),e.addEventListener("load",g)}};
Hwv=function(e,g,c){var k=!1;try{var I=e.sheet}catch(q){return}if(!I){var J=setTimeout(function(){k||(g(),k=!0)},c);
e.addEventListener("load",function(){clearTimeout(J);k=!0;g()})}};
obW=function(e,g){var c=g.doc,k=g.blockClass,I=g.blockSelector,J=g.needsMask,q=g.inlineStylesheet,L=g.maskInputOptions===void 0?{}:g.maskInputOptions,n=g.maskTextFn,R=g.maskInputFn,W=g.dataURLOptions===void 0?{}:g.dataURLOptions,b=g.inlineImages,h=g.recordCanvas,X=g.keepIframeSrcFn,D=g.newlyAddedElement===void 0?!1:g.newlyAddedElement,f=g.cssCaptured===void 0?!1:g.cssCaptured;g=g.mirror;g.nodeMetaMap.has(c)?(g=g.getId(c),g=g===1?void 0:g):g=void 0;switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:e.compatMode}:{type:0,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:1,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return Qu6(e,{doc:c,blockClass:k,blockSelector:I,inlineStylesheet:q,maskInputOptions:L,maskInputFn:R,dataURLOptions:W,inlineImages:b,recordCanvas:h,keepIframeSrcFn:X,newlyAddedElement:D,rootId:g});case e.TEXT_NODE:return q=(k=mV(e))&&k.tagName,k="",I=q==="STYLE"?!0:void 0,(q=q==="SCRIPT"?!0:void 0)?
k="SCRIPT_PLACEHOLDER":f||(k=UDp(e),I&&k&&(k=a2p(k,TQ8(c)))),!I&&!q&&k&&J&&(k=n?n(k,l0(e)):k.replace(/[\S]/g,"*")),{type:3,textContent:k||"",rootId:g};case e.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:5,textContent:UDp(e)||"",rootId:g};default:return!1}};
Qu6=function(e,g){var c=g.doc,k=g.inlineStylesheet,I=g.maskInputOptions===void 0?{}:g.maskInputOptions,J=g.maskInputFn,q=g.dataURLOptions===void 0?{}:g.dataURLOptions,L=g.inlineImages,n=g.recordCanvas,R=g.keepIframeSrcFn,W=g.newlyAddedElement===void 0?!1:g.newlyAddedElement,b=g.rootId;g=FEz(e,g.blockClass,g.blockSelector);for(var h=jue(e),X={},D=e.attributes.length,f=0;f<D;f++){var l=e.attributes[f];suA(h,l.name)||(X[l.name]=AUp(c,h,l.name.toLowerCase(),l.value))}h==="link"&&k&&(k=Array.from(c.styleSheets).find(function(Q){return Q.href===
e.href}),D=null,k&&(D=rUW(k)),D&&(delete X.rel,delete X.href,X._cssText=D));
h==="style"&&e.sheet&&(k=rUW(e.sheet))&&(e.childNodes.length>1&&(k=DDz(k,e).join("/* rr_split */")),X._cssText=k);if(h==="input"||h==="textarea"||h==="select")k=e.value,D=e.checked,X.type!=="radio"&&X.type!=="checkbox"&&X.type!=="submit"&&X.type!=="button"&&k?X.value=nbW({element:e,type:Ebp(e),tagName:h,value:k,maskInputOptions:I,maskInputFn:J}):D&&(X.checked=D);h==="option"&&(e.selected&&!I.select?X.selected=!0:delete X.selected);h==="dialog"&&e.open&&(X.rr_open_mode=e.matches("dialog:modal")?"modal":
"non-modal");h==="canvas"&&n&&(e.__context==="2d"?R6W(e)||(X.rr_dataURL=e.toDataURL(q.type,q.quality)):"__context"in e||(I=e.toDataURL(q.type,q.quality),J=c.createElement("canvas"),J.width=e.width,J.height=e.height,J=J.toDataURL(q.type,q.quality),I!==J&&(X.rr_dataURL=I)));if(h==="img"&&L){AZ||(AZ=c.createElement("canvas"),Zwv=AZ.getContext("2d"));var A=e.currentSrc||e.getAttribute("src")||"<unknown-src>",d=e.crossOrigin,S=function(){e.removeEventListener("load",S);try{AZ.width=e.naturalWidth,AZ.height=
e.naturalHeight,Zwv.drawImage(e,0,0),X.rr_dataURL=AZ.toDataURL(q.type,q.quality)}catch(Q){if(e.crossOrigin!=="anonymous"){e.crossOrigin="anonymous";e.complete&&e.naturalWidth!==0?S():e.addEventListener("load",S);return}console.warn("Cannot inline img src="+A+"! Error: "+Q)}e.crossOrigin==="anonymous"&&(d?X.crossOrigin=d:e.removeAttribute("crossorigin"))};
e.complete&&e.naturalWidth!==0?S():e.addEventListener("load",S)}if(h==="audio"||h==="video")c=X,c.rr_mediaState=e.paused?"paused":"played",c.rr_mediaCurrentTime=e.currentTime,c.rr_mediaPlaybackRate=e.playbackRate,c.rr_mediaMuted=e.muted,c.rr_mediaLoop=e.loop,c.rr_mediaVolume=e.volume;W||(e.scrollLeft&&(X.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(X.rr_scrollTop=e.scrollTop));g&&(W=e.getBoundingClientRect(),X={class:X.class,rr_width:W.width+"px",rr_height:W.height+"px"});h!=="iframe"||R(X.src)||(e.contentDocument||
(X.rr_src=X.src),delete X.src);var V;try{customElements.get(h)&&(V=!0)}catch(Q){}return{type:2,tagName:h,attributes:X,childNodes:[],isSVG:!(e.tagName!=="svg"&&!e.ownerSVGElement)||void 0,needBlock:g,rootId:b,isCustom:V}};
s4=function(e){return e===void 0||e===null?"":e.toLowerCase()};
VpA=function(e,g){return g.comment&&e.type===5||e.type===2&&(g.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href==="string"&&WEU(e.attributes.href)==="js")||g.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(s4(e.attributes.name).match(/^msapplication-tile(image|color)$/)||s4(e.attributes.name)===
"application-name"||s4(e.attributes.rel)==="icon"||s4(e.attributes.rel)==="apple-touch-icon"||s4(e.attributes.rel)==="shortcut icon"))||e.tagName==="meta"&&(g.headMetaDescKeywords&&s4(e.attributes.name).match(/^description|keywords$/)||g.headMetaSocial&&(s4(e.attributes.property).match(/^(og|twitter|fb):/)||s4(e.attributes.name).match(/^(og|twitter):/)||s4(e.attributes.name)==="pinterest")||g.headMetaRobots&&(s4(e.attributes.name)==="robots"||s4(e.attributes.name)==="googlebot"||s4(e.attributes.name)===
"bingbot")||g.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0||g.headMetaAuthorship&&(s4(e.attributes.name)==="author"||s4(e.attributes.name)==="generator"||s4(e.attributes.name)==="framework"||s4(e.attributes.name)==="publisher"||s4(e.attributes.name)==="progid"||s4(e.attributes.property).match(/^article:/)||s4(e.attributes.property).match(/^product:/))||g.headMetaVerification&&(s4(e.attributes.name)==="google-site-verification"||s4(e.attributes.name)==="yandex-verification"||s4(e.attributes.name)===
"csrf-token"||s4(e.attributes.name)==="p:domain_verify"||s4(e.attributes.name)==="verify-v1"||s4(e.attributes.name)==="verification"||s4(e.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
Fd=function(e,g){var c=g.doc,k=g.mirror,I=g.blockClass,J=g.blockSelector,q=g.maskTextClass,L=g.maskTextSelector,n=g.skipChild===void 0?!1:g.skipChild,R=g.inlineStylesheet===void 0?!0:g.inlineStylesheet,W=g.maskInputOptions===void 0?{}:g.maskInputOptions,b=g.maskTextFn,h=g.maskInputFn,X=g.slimDOMOptions,D=g.dataURLOptions===void 0?{}:g.dataURLOptions,f=g.inlineImages===void 0?!1:g.inlineImages,l=g.recordCanvas===void 0?!1:g.recordCanvas,A=g.onSerialize,d=g.onIframeLoad,S=g.iframeLoadTimeout===void 0?
5E3:g.iframeLoadTimeout,V=g.onStylesheetLoad,Q=g.stylesheetLoadTimeout===void 0?5E3:g.stylesheetLoadTimeout,y=g.keepIframeSrcFn===void 0?function(){return!1}:g.keepIframeSrcFn,O=g.newlyAddedElement===void 0?!1:g.newlyAddedElement,Jq=g.cssCaptured===void 0?!1:g.cssCaptured,LC=g.needsMask,bW=g.preserveWhiteSpace===void 0?!0:g.preserveWhiteSpace;
LC||(LC=dDv(e,q,L,LC===void 0));var RA=obW(e,{doc:c,mirror:k,blockClass:I,blockSelector:J,needsMask:LC,inlineStylesheet:R,maskInputOptions:W,maskTextFn:b,maskInputFn:h,dataURLOptions:D,inlineImages:f,recordCanvas:l,keepIframeSrcFn:y,newlyAddedElement:O,cssCaptured:Jq});if(!RA)return console.warn(e,"not serialized"),null;O=k.nodeMetaMap.has(e)?k.getId(e):VpA(RA,X)||!bW&&RA.type===3&&!RA.textContent.replace(/^\s+|\s+$/gm,"").length?-2:$Dt++;g=Object.assign(RA,{id:O});k.add(e,g);if(O===-2)return null;
A&&A(e);O=!n;g.type===2&&(O=O&&!g.needBlock,delete g.needBlock,(Jq=jr(e))&&PP(Jq)&&(g.isShadowHost=!0));if((g.type===0||g.type===2)&&O){X.headWhitespace&&g.type===2&&g.tagName==="head"&&(bW=!1);n={doc:c,mirror:k,blockClass:I,blockSelector:J,needsMask:LC,maskTextClass:q,maskTextSelector:L,skipChild:n,inlineStylesheet:R,maskInputOptions:W,maskTextFn:b,maskInputFn:h,slimDOMOptions:X,dataURLOptions:D,inlineImages:f,recordCanvas:l,preserveWhiteSpace:bW,onSerialize:A,onIframeLoad:d,iframeLoadTimeout:S,
onStylesheetLoad:V,stylesheetLoadTimeout:Q,keepIframeSrcFn:y,cssCaptured:!1};if(g.type!==2||g.tagName!=="textarea"||g.attributes.value===void 0)for(g.type===2&&g.attributes._cssText!==void 0&&typeof g.attributes._cssText==="string"&&(n.cssCaptured=!0),O=_.w(Array.from(TH(e))),Jq=O.next();!Jq.done;Jq=O.next())(Jq=Fd(Jq.value,n))&&g.childNodes.push(Jq);O=null;if(e.nodeType===e.ELEMENT_NODE&&(O=jr(e))){Jq=_.w(Array.from(TH(O)));for(var Xg=Jq.next();!Xg.done;Xg=Jq.next())if(Xg=Fd(Xg.value,n))PP(O)&&(Xg.isShadow=
!0),g.childNodes.push(Xg)}}(n=mV(e))&&i0(n)&&PP(n)&&(g.isShadow=!0);g.type===2&&g.tagName==="iframe"&&z6C(e,function(){var Fg=e.contentDocument;Fg&&d&&(Fg=Fd(Fg,{doc:Fg,mirror:k,blockClass:I,blockSelector:J,needsMask:LC,maskTextClass:q,maskTextSelector:L,skipChild:!1,inlineStylesheet:R,maskInputOptions:W,maskTextFn:b,maskInputFn:h,slimDOMOptions:X,dataURLOptions:D,inlineImages:f,recordCanvas:l,preserveWhiteSpace:bW,onSerialize:A,onIframeLoad:d,iframeLoadTimeout:S,onStylesheetLoad:V,stylesheetLoadTimeout:Q,
keepIframeSrcFn:y}))&&d(e,Fg)},S);
g.type===2&&g.tagName==="link"&&typeof g.attributes.rel==="string"&&(g.attributes.rel==="stylesheet"||g.attributes.rel==="preload"&&typeof g.attributes.href==="string"&&WEU(g.attributes.href)==="css")&&Hwv(e,function(){if(V){var Fg=Fd(e,{doc:c,mirror:k,blockClass:I,blockSelector:J,needsMask:LC,maskTextClass:q,maskTextSelector:L,skipChild:!1,inlineStylesheet:R,maskInputOptions:W,maskTextFn:b,maskInputFn:h,slimDOMOptions:X,dataURLOptions:D,inlineImages:f,recordCanvas:l,preserveWhiteSpace:bW,onSerialize:A,
onIframeLoad:d,iframeLoadTimeout:S,onStylesheetLoad:V,stylesheetLoadTimeout:Q,keepIframeSrcFn:y});Fg&&V(e,Fg)}},Q);
return g};
tpv=function(e){var g=document;e=e||{};var c=e.maskAllInputs===void 0?!1:e.maskAllInputs,k=e.slimDOM===void 0?!1:e.slimDOM;return Fd(g,{doc:g,mirror:e.mirror===void 0?new u0:e.mirror,blockClass:e.blockClass===void 0?"rr-block":e.blockClass,blockSelector:e.blockSelector===void 0?null:e.blockSelector,maskTextClass:e.maskTextClass===void 0?"rr-mask":e.maskTextClass,maskTextSelector:e.maskTextSelector===void 0?null:e.maskTextSelector,skipChild:!1,inlineStylesheet:e.inlineStylesheet===void 0?!0:e.inlineStylesheet,
maskInputOptions:c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c===!1?{password:!0}:c,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:k===!0||k==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:k==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:k===!1?{}:k,dataURLOptions:e.dataURLOptions,
inlineImages:e.inlineImages===void 0?!1:e.inlineImages,recordCanvas:e.recordCanvas===void 0?!1:e.recordCanvas,preserveWhiteSpace:e.preserveWhiteSpace,onSerialize:e.onSerialize,onIframeLoad:e.onIframeLoad,iframeLoadTimeout:e.iframeLoadTimeout,onStylesheetLoad:e.onStylesheetLoad,stylesheetLoadTimeout:e.stylesheetLoadTimeout,keepIframeSrcFn:e.keepIframeSrcFn===void 0?function(){return!1}:e.keepIframeSrcFn,
newlyAddedElement:!1})};
dY=function(e,g,c){c=c===void 0?document:c;var k={capture:!0,passive:!0};c.addEventListener(e,g,k);return function(){return c.removeEventListener(e,g,k)}};
zH=function(e,g,c){c=c===void 0?{}:c;var k=null,I=0;return function(){var J=_.Mb.apply(0,arguments),q=Date.now();I||c.leading!==!1||(I=q);var L=g-(q-I),n=this;L<=0||L>g?(k&&(clearTimeout(k),k=null),I=q,e.apply(n,J)):k||c.trailing===!1||(k=setTimeout(function(){I=c.leading===!1?0:Date.now();k=null;e.apply(n,J)},L))}};
BQC=function(e,g,c,k,I){I=I===void 0?window:I;var J=I.Object.getOwnPropertyDescriptor(e,g);I.Object.defineProperty(e,g,k?c:{set:function(q){var L=this;setTimeout(function(){c.set.call(L,q)},0);
J&&J.set&&J.set.call(this,q)}});
return function(){return BQC(e,g,J||{},!0)}};
NQq=function(e){var g=e.document,c,k,I,J;return{left:g.scrollingElement?g.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:g.documentElement.scrollLeft||(g==null?void 0:g.body)&&((c=l0(g.body))==null?void 0:c.scrollLeft)||(g==null?void 0:(k=g.body)==null?void 0:k.scrollLeft)||0,top:g.scrollingElement?g.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(g==null?void 0:g.documentElement.scrollTop)||(g==null?void 0:g.body)&&((I=l0(g.body))==null?void 0:I.scrollTop)||(g==
null?void 0:(J=g.body)==null?void 0:J.scrollTop)||0}};
SGt=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
yUv=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
KEg=function(e){return e?e.nodeType===e.ELEMENT_NODE?e:l0(e):null};
HP=function(e,g,c,k){if(!e)return!1;e=KEg(e);if(!e)return!1;try{if(typeof g==="string"){if(e.classList.contains(g)||k&&e.closest("."+g)!==null)return!0}else if(uGv(e,g,k))return!0}catch(I){}return c&&(e.matches(c)||k&&e.closest(c)!==null)?!0:!1};
OwV=function(e,g,c){return e.tagName==="TITLE"&&c.headTitleMutations?!0:g.getId(e)===-2};
MpA=function(e,g){if(i0(e))return!1;var c=g.getId(e);return g.has(c)?(c=mV(e))&&c.nodeType===e.DOCUMENT_NODE?!1:c?MpA(c,g):!0:!0};
CNW=function(){var e=e===void 0?window:e;"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
etp=function(e,g){return!(e.nodeName!=="LINK"||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||e.getAttribute("rel")!=="stylesheet"||!g.nodeMetaMap.get(e))};
cSp=function(e){var g=null,c;"getRootNode"in e&&((c=gHC(e))==null?void 0:c.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&fM(gHC(e))&&(g=fM(gHC(e)));return g};
kBg=function(e){var g=e.ownerDocument;if(g){if(!(g=wR8(g,"contains")(e)))if(g=e.ownerDocument){for(var c;c=cSp(e);)e=c;g=wR8(g,"contains")(e)}else g=!1}else g=!1;return g};
Ixp=function(e,g){e.delete(g);TH(g).forEach(function(c){return Ixp(e,c)})};
JSV=function(e,g){for(var c=[e];c.length;)e=c.pop(),g.has(e)||(g.add(e),TH(e).forEach(function(k){return c.push(k)}))};
vHv=function(e,g){e.size===0?e=!1:e=(g=mV(g))?e.has(g):!1;return e};
qSC=function(e,g){return e.size===0?!1:wkC(e,g)};
wkC=function(e,g){return(g=mV(g))?e.has(g)?!0:wkC(e,g):!1};
QS=function(e){try{if("composedPath"in e){var g=e.composedPath();if(g.length)return g[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(c){}return e&&e.target};
rSg=function(e,g){var c=new Lyq;U4.push(c);c.init(e);e=new (I2z("MutationObserver").constructor)(oY(c.processMutations.bind(c)));e.observe(g,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return e};
nHW=function(e){var g=e.mousemoveCb;var c=e.sampling;var k=e.doc;var I=e.mirror;if(c.mousemove===!1)return function(){};
var J=[],q,L=zH(oY(function(R){var W=Date.now()-q;g(J.map(function(b){b.timeOffset-=W;return b}),R);
J=[];q=null}),typeof c.mousemoveCallback==="number"?c.mousemoveCallback:500);
e=oY(zH(oY(function(R){var W=QS(R),b=R.changedTouches?R.changedTouches[0]:R,h=b.clientX;b=b.clientY;q||(q=ax6());J.push({x:h,y:b,id:I.getId(W),timeOffset:ax6()-q});L(typeof DragEvent!=="undefined"&&R instanceof DragEvent?12:R instanceof MouseEvent?1:6)}),typeof c.mousemove==="number"?c.mousemove:50,{trailing:!1}));
var n=[dY("mousemove",e,k),dY("touchmove",e,k),dY("drag",e,k)];return oY(function(){n.forEach(function(R){return R()})})};
Rtg=function(e){var g=e.mouseInteractionCb;var c=e.doc;var k=e.mirror;var I=e.blockClass;var J=e.blockSelector;e=e.sampling;if(e.mouseInteraction===!1)return function(){};
var q=e.mouseInteraction===!0||e.mouseInteraction===void 0?{}:e.mouseInteraction,L=[],n=null,R=function(W){return function(b){var h=QS(b);if(!HP(h,I,J,!0)){var X=null,D=W;if("pointerType"in b){switch(b.pointerType){case "mouse":X=0;break;case "touch":X=2;break;case "pen":X=1}X===2&&(ZH[W]===1?D="TouchStart":ZH[W]===0&&(D="TouchEnd"))}else b.changedTouches&&(X=2);if(X!==null){if(n=X,D.startsWith("Touch")&&X===2||D.startsWith("Mouse")&&X===0)X=null}else ZH[W]===2&&(X=n,n=null);if(b=b.changedTouches?
b.changedTouches[0]:b)h=k.getId(h),oY(g)(Object.assign({},{type:ZH[D],id:h,x:b.clientX,y:b.clientY},X!==null&&{pointerType:X}))}}};
Object.keys(ZH).filter(function(W){return Number.isNaN(Number(W))&&!W.endsWith("_Departed")&&q[W]!==!1}).forEach(function(W){var b=W.toLowerCase(),h=R(W);
if(window.PointerEvent)switch(ZH[W]){case 1:case 0:b=b.replace("mouse","pointer");break;case 7:case 9:return}L.push(dY(b,h,c))});
return oY(function(){L.forEach(function(W){return W()})})};
EHg=function(e){var g=e.scrollCb;var c=e.doc;var k=e.mirror;var I=e.blockClass;var J=e.blockSelector;return dY("scroll",oY(zH(oY(function(q){var L=QS(q);L&&!HP(L,I,J,!0)&&(q=k.getId(L),L===c&&c.defaultView?(L=NQq(c.defaultView),g({id:q,x:L.left,y:L.top})):g({id:q,x:L.scrollLeft,y:L.scrollTop}))}),e.sampling.scroll||100)),c)};
Wy6=function(e,g){var c=e.viewportResizeCb;var k=-1,I=-1;return dY("resize",oY(zH(oY(function(){var J=SGt(),q=yUv();if(k!==J||I!==q)c({width:Number(q),height:Number(J)}),k=J,I=q}),200)),g.win)};
Xkv=function(e){function g(l){var A=QS(l),d=l.isTrusted,S=A&&A.tagName;A&&S==="OPTION"&&(A=l0(A));if(!(!A||!S||bQU.indexOf(S)<0||HP(A,q,L,!0)||A.classList.contains(n)||R&&A.matches(R))){var V=A.value,Q=!1;l=Ebp(A)||"";if(l==="radio"||l==="checkbox")Q=A.checked;else if(W[S.toLowerCase()]||W[l])V=nbW({element:A,maskInputOptions:W,tagName:S,type:l,value:V,maskInputFn:b});c(A,X?{text:V,isChecked:Q,userTriggered:d}:{text:V,isChecked:Q});d=A.name;l==="radio"&&d&&Q&&I.querySelectorAll('input[type="radio"][name="'+
d+'"]').forEach(function(y){if(y!==A){var O=y.value;c(y,X?{text:O,isChecked:!Q,userTriggered:!1}:{text:O,isChecked:!Q})}})}}
function c(l,A){var d=htq.get(l);d&&d.text===A.text&&d.isChecked===A.isChecked||(htq.set(l,A),l=J.getId(l),oY(k)(Object.assign({},A,{id:l})))}
var k=e.inputCb;var I=e.doc;var J=e.mirror;var q=e.blockClass;var L=e.blockSelector;var n=e.ignoreClass;var R=e.ignoreSelector;var W=e.maskInputOptions;var b=e.maskInputFn;var h=e.sampling;var X=e.userTriggeredOnInput;var D=(h.input==="last"?["change"]:["input","change"]).map(function(l){return dY(l,oY(g),I)}),f=I.defaultView;
if(!f)return function(){D.forEach(function(l){return l()})};
e=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value");h=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];e&&e.set&&D.push.apply(D,_.KY(h.map(function(l){return BQC(l[0],l[1],{set:function(){oY(g)({target:this,isTrusted:!1})}},!1,f)})));
return oY(function(){D.forEach(function(l){return l()})})};
x96=function(e){var g=[],c,k,I,J;GBv("CSSGroupingRule")&&((c=e.parentRule)==null?void 0:(k=c.constructor)==null?void 0:k.name)==="CSSGroupingRule"||GBv("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||GBv("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||GBv("CSSConditionRule")&&((I=e.parentRule)==null?void 0:(J=I.constructor)==null?void 0:J.name)==="CSSConditionRule"?(e=Array.from(e.parentRule.cssRules).indexOf(e),g.unshift(e)):e.parentStyleSheet&&(e=Array.from(e.parentStyleSheet.cssRules).indexOf(e),
g.unshift(e));return g};
VS=function(e,g,c){var k,I;if(!e)return{};e.ownerNode?k=g.getId(e.ownerNode):I=c.getId(e);return{styleId:I,id:k}};
$96=function(e,g){var c=e.styleSheetRuleCb;var k=e.mirror;var I=e.stylesheetManager;var J=g.win;if(!J.CSSStyleSheet||!J.CSSStyleSheet.prototype)return function(){};
var q=J.CSSStyleSheet.prototype.insertRule;J.CSSStyleSheet.prototype.insertRule=new tZ(q,{apply:oY(function(h,X,D){var f=_.w(D),l=f.next().value;f=f.next().value;var A=VS(X,k,I.styleMirror),d=A.id;A=A.styleId;(d&&d!==-1||A&&A!==-1)&&c({id:d,styleId:A,adds:[{rule:l,index:f}]});return h.apply(X,D)})});
J.CSSStyleSheet.prototype.addRule=function(h,X,D){D=D===void 0?this.cssRules.length:D;return J.CSSStyleSheet.prototype.insertRule.apply(this,[h+" { "+X+" }",D])};
var L=J.CSSStyleSheet.prototype.deleteRule;J.CSSStyleSheet.prototype.deleteRule=new tZ(L,{apply:oY(function(h,X,D){var f=_.w(D).next().value,l=VS(X,k,I.styleMirror),A=l.id;l=l.styleId;(A&&A!==-1||l&&l!==-1)&&c({id:A,styleId:l,removes:[{index:f}]});return h.apply(X,D)})});
J.CSSStyleSheet.prototype.removeRule=function(h){return J.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};
if(J.CSSStyleSheet.prototype.replace){var n=J.CSSStyleSheet.prototype.replace;J.CSSStyleSheet.prototype.replace=new tZ(n,{apply:oY(function(h,X,D){var f=_.w(D).next().value,l=VS(X,k,I.styleMirror),A=l.id;l=l.styleId;(A&&A!==-1||l&&l!==-1)&&c({id:A,styleId:l,replace:f});return h.apply(X,D)})})}if(J.CSSStyleSheet.prototype.replaceSync){var R=J.CSSStyleSheet.prototype.replaceSync;
J.CSSStyleSheet.prototype.replaceSync=new tZ(R,{apply:oY(function(h,X,D){var f=_.w(D).next().value,l=VS(X,k,I.styleMirror),A=l.id;l=l.styleId;(A&&A!==-1||l&&l!==-1)&&c({id:A,styleId:l,replaceSync:f});return h.apply(X,D)})})}var W={};
D9C("CSSGroupingRule")?W.CSSGroupingRule=J.CSSGroupingRule:(D9C("CSSMediaRule")&&(W.CSSMediaRule=J.CSSMediaRule),D9C("CSSConditionRule")&&(W.CSSConditionRule=J.CSSConditionRule),D9C("CSSSupportsRule")&&(W.CSSSupportsRule=J.CSSSupportsRule));var b={};Object.entries(W).forEach(function(h){var X=_.w(h);h=X.next().value;X=X.next().value;b[h]={insertRule:X.prototype.insertRule,deleteRule:X.prototype.deleteRule};X.prototype.insertRule=new tZ(b[h].insertRule,{apply:oY(function(D,f,l){var A=_.w(l),d=A.next().value;
A=A.next().value;var S=VS(f.parentStyleSheet,k,I.styleMirror),V=S.id;S=S.styleId;(V&&V!==-1||S&&S!==-1)&&c({id:V,styleId:S,adds:[{rule:d,index:[].concat(_.KY(x96(f)),[A||0])}]});return D.apply(f,l)})});
X.prototype.deleteRule=new tZ(b[h].deleteRule,{apply:oY(function(D,f,l){var A=_.w(l).next().value,d=VS(f.parentStyleSheet,k,I.styleMirror),S=d.id;d=d.styleId;(S&&S!==-1||d&&d!==-1)&&c({id:S,styleId:d,removes:[{index:[].concat(_.KY(x96(f)),[A])}]});return D.apply(f,l)})})});
return oY(function(){J.CSSStyleSheet.prototype.insertRule=q;J.CSSStyleSheet.prototype.deleteRule=L;n&&(J.CSSStyleSheet.prototype.replace=n);R&&(J.CSSStyleSheet.prototype.replaceSync=R);Object.entries(W).forEach(function(h){var X=_.w(h);h=X.next().value;X=X.next().value;X.prototype.insertRule=b[h].insertRule;X.prototype.deleteRule=b[h].deleteRule})})};
fxg=function(e,g){var c=e.mirror;var k=e.stylesheetManager;var I=null;I=g.nodeName==="#document"?c.getId(g):c.getId(fM(g));var J,q,L;e=g.nodeName==="#document"?(J=g.defaultView)==null?void 0:J.Document:(q=g.ownerDocument)==null?void 0:(L=q.defaultView)==null?void 0:L.ShadowRoot;var n=(e==null?0:e.prototype)?Object.getOwnPropertyDescriptor(e==null?void 0:e.prototype,"adoptedStyleSheets"):void 0;if(I===null||I===-1||!e||!n)return function(){};
Object.defineProperty(g,"adoptedStyleSheets",{configurable:n.configurable,enumerable:n.enumerable,get:function(){var R;return(R=n.get)==null?void 0:R.call(this)},
set:function(R){var W,b=(W=n.set)==null?void 0:W.call(this,R);if(I!==null&&I!==-1)try{YSv(k,R,I)}catch(h){}return b}});
return oY(function(){Object.defineProperty(g,"adoptedStyleSheets",{configurable:n.configurable,enumerable:n.enumerable,get:n.get,set:n.set})})};
jgg=function(e,g){var c=e.styleDeclarationCb;var k=e.mirror;var I=e.ignoreCSSAttributes;var J=e.stylesheetManager;var q=g.win;var L=q.CSSStyleDeclaration.prototype.setProperty;q.CSSStyleDeclaration.prototype.setProperty=new tZ(L,{apply:oY(function(R,W,b){var h=_.w(b),X=h.next().value,D=h.next().value;h=h.next().value;if(I.has(X))return L.apply(W,[X,D,h]);var f,l=VS((f=W.parentRule)==null?void 0:f.parentStyleSheet,k,J.styleMirror);f=l.id;l=l.styleId;(f&&f!==-1||l&&l!==-1)&&c({id:f,styleId:l,set:{property:X,
value:D,priority:h},index:x96(W.parentRule)});return R.apply(W,b)})});
var n=q.CSSStyleDeclaration.prototype.removeProperty;q.CSSStyleDeclaration.prototype.removeProperty=new tZ(n,{apply:oY(function(R,W,b){var h=_.w(b).next().value;if(I.has(h))return n.apply(W,[h]);var X,D=VS((X=W.parentRule)==null?void 0:X.parentStyleSheet,k,J.styleMirror);X=D.id;D=D.styleId;(X&&X!==-1||D&&D!==-1)&&c({id:X,styleId:D,remove:{property:h},index:x96(W.parentRule)});return R.apply(W,b)})});
return oY(function(){q.CSSStyleDeclaration.prototype.setProperty=L;q.CSSStyleDeclaration.prototype.removeProperty=n})};
iQp=function(e){var g=e.mediaInteractionCb;var c=e.blockClass;var k=e.blockSelector;var I=e.mirror;var J=e.sampling;e=e.doc;var q=oY(function(n){return zH(oY(function(R){if((R=QS(R))&&!HP(R,c,k,!0)){var W=R.currentTime,b=R.volume,h=R.muted,X=R.playbackRate,D=R.loop;g({type:n,id:I.getId(R),currentTime:W,volume:b,muted:h,playbackRate:X,loop:D})}}),J.media||500)}),L=[dY("play",q(0),e),
dY("pause",q(1),e),dY("seeked",q(2),e),dY("volumechange",q(3),e),dY("ratechange",q(4),e)];return oY(function(){L.forEach(function(n){return n()})})};
Pv8=function(e){var g=e.fontCb;e=e.doc;var c=e.defaultView;if(!c)return function(){};
var k=[],I=new WeakMap,J=c.FontFace;c.FontFace=function(q,L,n){var R=new J(q,L,n);I.set(R,{family:q,buffer:typeof L!=="string",descriptors:n,fontSource:typeof L==="string"?L:JSON.stringify(Array.from(new Uint8Array(L)))});return R};
e=YQ(e.fonts,"add",function(q){return function(L){setTimeout(oY(function(){var n=I.get(L);n&&(g(n),I.delete(L))}),0);
return q.apply(this,[L])}});
k.push(function(){c.FontFace=J});
k.push(e);return oY(function(){k.forEach(function(q){return q()})})};
m9W=function(e){var g=e.doc,c=e.mirror,k=e.blockClass,I=e.blockSelector,J=e.selectionCb,q=!0;e=oY(function(){var L=g.getSelection();if(L&&!(q&&(L==null?0:L.isCollapsed))){q=L.isCollapsed||!1;for(var n=[],R=L.rangeCount||0,W=0;W<R;W++){var b=L.getRangeAt(W),h=b.startContainer,X=b.startOffset,D=b.endContainer;b=b.endOffset;HP(h,k,I,!0)||HP(D,k,I,!0)||n.push({start:c.getId(h),startOffset:X,end:c.getId(D),endOffset:b})}J({ranges:n})}});
e();return dY("selectionchange",e)};
pkg=function(e){var g=e.doc;var c=e.customElementCb;return(e=g.defaultView)&&e.customElements?YQ(e.customElements,"define",function(k){return function(I,J,q){try{c({define:{name:I}})}catch(L){console.warn("Custom element callback failed for "+I)}return k.apply(this,[I,J,q])}}):function(){}};
TxC=function(e,g){var c=e.mutationCb,k=e.mousemoveCb,I=e.mouseInteractionCb,J=e.scrollCb,q=e.viewportResizeCb,L=e.inputCb,n=e.mediaInteractionCb,R=e.styleSheetRuleCb,W=e.styleDeclarationCb,b=e.canvasMutationCb,h=e.fontCb,X=e.selectionCb,D=e.customElementCb;e.mutationCb=function(){var f=_.Mb.apply(0,arguments);g.mutation&&g.mutation.apply(g,_.KY(f));c.apply(null,_.KY(f))};
e.mousemoveCb=function(){var f=_.Mb.apply(0,arguments);g.mousemove&&g.mousemove.apply(g,_.KY(f));k.apply(null,_.KY(f))};
e.mouseInteractionCb=function(){var f=_.Mb.apply(0,arguments);g.mouseInteraction&&g.mouseInteraction.apply(g,_.KY(f));I.apply(null,_.KY(f))};
e.scrollCb=function(){var f=_.Mb.apply(0,arguments);g.scroll&&g.scroll.apply(g,_.KY(f));J.apply(null,_.KY(f))};
e.viewportResizeCb=function(){var f=_.Mb.apply(0,arguments);g.viewportResize&&g.viewportResize.apply(g,_.KY(f));q.apply(null,_.KY(f))};
e.inputCb=function(){var f=_.Mb.apply(0,arguments);g.input&&g.input.apply(g,_.KY(f));L.apply(null,_.KY(f))};
e.mediaInteractionCb=function(){var f=_.Mb.apply(0,arguments);g.mediaInteaction&&g.mediaInteaction.apply(g,_.KY(f));n.apply(null,_.KY(f))};
e.styleSheetRuleCb=function(){var f=_.Mb.apply(0,arguments);g.styleSheetRule&&g.styleSheetRule.apply(g,_.KY(f));R.apply(null,_.KY(f))};
e.styleDeclarationCb=function(){var f=_.Mb.apply(0,arguments);g.styleDeclaration&&g.styleDeclaration.apply(g,_.KY(f));W.apply(null,_.KY(f))};
e.canvasMutationCb=function(){var f=_.Mb.apply(0,arguments);g.canvasMutation&&g.canvasMutation.apply(g,_.KY(f));b.apply(null,_.KY(f))};
e.fontCb=function(){var f=_.Mb.apply(0,arguments);g.font&&g.font.apply(g,_.KY(f));h.apply(null,_.KY(f))};
e.selectionCb=function(){var f=_.Mb.apply(0,arguments);g.selection&&g.selection.apply(g,_.KY(f));X.apply(null,_.KY(f))};
e.customElementCb=function(){var f=_.Mb.apply(0,arguments);g.customElement&&g.customElement.apply(g,_.KY(f));D.apply(null,_.KY(f))}};
lx6=function(e,g){g=g===void 0?{}:g;var c=e.doc.defaultView;if(!c)return function(){};
TxC(e,g);var k;e.recordDOM&&(k=rSg(e,e.doc));var I=nHW(e),J=Rtg(e),q=EHg(e),L=Wy6(e,{win:c}),n=Xkv(e),R=iQp(e),W=function(){},b=function(){},h=function(){},X=function(){};
e.recordDOM&&(W=$96(e,{win:c}),b=fxg(e,e.doc),h=jgg(e,{win:c}),e.collectFonts&&(X=Pv8(e)));var D=m9W(e),f=pkg(e),l=[];e=_.w(e.plugins);for(g=e.next();!g.done;g=e.next())g=g.value,l.push(g.observer(g.callback,c,g.options));return oY(function(){U4.forEach(function(d){return d.reset()});
var A;(A=k)==null||A.disconnect();I();J();q();L();n();R();W();b();h();X();D();f();l.forEach(function(d){return d()})})};
GBv=function(e){return typeof window[e]!=="undefined"};
D9C=function(e){return!!(typeof window[e]!=="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)};
ASW=function(e){e=new Uint8Array(e);for(var g="",c=0;c<e.byteLength;c++)g+=String.fromCharCode(e[c]);return btoa(g)};
sgC=function(e,g,c){if(e instanceof Array)return e.map(function(I){return sgC(I,g,c)});
if(e!==null){if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){var k=e.constructor.name;e=ASW(e);return{rr_type:k,base64:e}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[sgC(e.buffer,g,c),e.byteOffset,e.byteLength]};
if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:e.toDataURL()};if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[sgC(e.data,g,c),e.width,e.height]};if(Fyg(e,g)||typeof e==="object")return k=e.constructor.name,e=ulA(e,g,c),{rr_type:k,index:e}}return e};
ztW=function(e,g,c,k){for(var I=[],J=_.w(Object.getOwnPropertyNames(g.CanvasRenderingContext2D.prototype)),q=J.next(),L={};!q.done;L={prop$jscomp$58:void 0},q=J.next()){L.prop$jscomp$58=q.value;try{if(typeof g.CanvasRenderingContext2D.prototype[L.prop$jscomp$58]==="function"){var n=YQ(g.CanvasRenderingContext2D.prototype,L.prop$jscomp$58,function(R){return function(W){return function(){var b=_.Mb.apply(0,arguments),h=this;HP(this.canvas,c,k,!0)||setTimeout(function(){var X=d9C(b,g,h);e(h.canvas,{type:BP["2D"],
property:R.prop$jscomp$58,args:X})},0);
return W.apply(this,b)}}}(L));
I.push(n)}}catch(R){q=BQC(g.CanvasRenderingContext2D.prototype,L.prop$jscomp$58,{set:function(W){return function(b){e(this.canvas,{type:BP["2D"],property:W.prop$jscomp$58,args:[b],setter:!0})}}(L)}),I.push(q)}}return function(){I.forEach(function(R){return R()})}};
HQC=function(e,g,c,k){var I=[];try{var J=YQ(e.HTMLCanvasElement.prototype,"getContext",function(q){return function(L){var n=_.Mb.apply(1,arguments);if(!HP(this,g,c,!0)){var R=L==="experimental-webgl"?"webgl":L;"__context"in this||(this.__context=R);k&&["webgl","webgl2"].includes(R)&&(n[0]&&typeof n[0]==="object"?(R=n[0],R.preserveDrawingBuffer||(R.preserveDrawingBuffer=!0)):n.splice(0,1,{preserveDrawingBuffer:!0}))}return q.apply(this,[L].concat(_.KY(n)))}});
I.push(J)}catch(q){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){I.forEach(function(q){return q()})}};
QgU=function(e,g,c,k,I,J){for(var q=[],L=_.w(Object.getOwnPropertyNames(e)),n=L.next(),R={};!n.done;R={prop$jscomp$59:void 0},n=L.next())if(R.prop$jscomp$59=n.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(R.prop$jscomp$59))try{if(typeof e[R.prop$jscomp$59]==="function"){var W=YQ(e,R.prop$jscomp$59,function(b){return function(h){return function(){var X=_.Mb.apply(0,arguments),D=h.apply(this,X);ulA(D,J,this);"tagName"in this.canvas&&!HP(this.canvas,k,I,!0)&&(X=
d9C(X,J,this),c(this.canvas,{type:g,property:b.prop$jscomp$59,args:X}));return D}}}(R));
q.push(W)}}catch(b){n=BQC(e,R.prop$jscomp$59,{set:function(h){return function(X){c(this.canvas,{type:g,property:h.prop$jscomp$59,args:[X],setter:!0})}}(R)}),q.push(n)}return q};
U9e=function(e,g,c,k){var I=[];I.push.apply(I,_.KY(QgU(g.WebGLRenderingContext.prototype,1,e,c,k,g)));typeof g.WebGL2RenderingContext!=="undefined"&&I.push.apply(I,_.KY(QgU(g.WebGL2RenderingContext.prototype,2,e,c,k,g)));return function(){I.forEach(function(J){return J()})}};
cDC=function(e){var g=e=e===void 0?{}:e,c=g.emit,k=g.checkoutEveryNms,I=g.checkoutEveryNth,J=g.blockClass===void 0?"rr-block":g.blockClass,q=g.blockSelector===void 0?null:g.blockSelector,L=g.ignoreClass===void 0?"rr-ignore":g.ignoreClass,n=g.ignoreSelector===void 0?null:g.ignoreSelector,R=g.maskTextClass===void 0?"rr-mask":g.maskTextClass,W=g.maskTextSelector===void 0?null:g.maskTextSelector,b=g.inlineStylesheet===void 0?!0:g.inlineStylesheet,h=g.maskAllInputs,X=g.maskInputOptions,D=g.slimDOMOptions,
f=g.maskInputFn,l=g.maskTextFn,A=g.hooks,d=g.packFn,S=g.sampling===void 0?{}:g.sampling,V=g.dataURLOptions===void 0?{}:g.dataURLOptions,Q=g.mousemoveWait,y=g.recordDOM===void 0?!0:g.recordDOM,O=g.recordCanvas===void 0?!1:g.recordCanvas,Jq=g.recordCrossOriginIframes===void 0?!1:g.recordCrossOriginIframes,LC=g.recordAfter===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":g.recordAfter,bW=g.userTriggeredOnInput===void 0?!1:g.userTriggeredOnInput,RA=g.collectFonts===void 0?!1:g.collectFonts,
Xg=g.inlineImages===void 0?!1:g.inlineImages,Fg=g.plugins,oA=g.keepIframeSrcFn===void 0?function(){return!1}:g.keepIframeSrcFn,Zt=g.ignoreCSSAttributes===void 0?new Set([]):g.ignoreCSSAttributes;
NR=g.errorHandler;var Ev=Jq?window.parent===window:!0,an=!1;if(!Ev)try{window.parent.document&&(an=!1)}catch(V4){an=!0}if(Ev&&!c)throw Error("af");if(!Ev&&!an)return function(){};
Q!==void 0&&S.mousemove===void 0&&(S.mousemove=Q);Sr.reset();var V6=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:X!==void 0?X:{password:!0},bs=D===!0||D==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:D==="all",headMetaDescKeywords:D==="all",headTitleMutations:D==="all"}:
D?D:{};CNW();var f1,hk=0,Pq=function(V4){for(var to=_.w(Fg||[]),L1=to.next();!L1.done;L1=to.next())L1=L1.value,L1.eventProcessor&&(V4=L1.eventProcessor(V4));d&&!an&&(V4=d(V4));return V4};
yS=function(V4,to){V4.timestamp=ax6();var L1;((L1=U4[0])==null?0:L1.isFrozen())&&V4.type!==2&&(V4.type!==3||V4.data.source!==0)&&U4.forEach(function(Wq){return Wq.unfreeze()});
Ev?c==null||c(Pq(V4),to):an&&(to={type:"rrweb",event:Pq(V4),origin:window.location.origin,isCheckout:to},window.parent.postMessage(to,"*"));V4.type===2?(f1=V4,hk=0):V4.type!==3||V4.data.source===0&&V4.data.isAttachIframe||(hk++,V4=k&&V4.timestamp-f1.timestamp>k,(I&&hk>=I||V4)&&oHz(!0))};
var vq=function(V4){yS({type:3,data:Object.assign({},{source:0},V4)})},hq=function(V4){return yS({type:3,
data:Object.assign({},{source:3},V4)})},zv=function(V4){return yS({type:3,
data:Object.assign({},{source:9},V4)})},XM=new ZQC({mutationCb:vq,
adoptedStyleSheetCb:function(V4){return yS({type:3,data:Object.assign({},{source:15},V4)})}}),Su=new VL8({mirror:Sr,
mutationCb:vq,stylesheetManager:XM,recordCrossOriginIframes:Jq,wrappedEmit:yS});e=_.w(Fg||[]);for(g=e.next();!g.done;g=e.next())g=g.value,g.getMirror&&g.getMirror({nodeMirror:Sr,crossOriginIframeMirror:Su.crossOriginIframeMirror,crossOriginIframeStyleMirror:Su.crossOriginIframeStyleMirror});var p1=new tLW;BxK=new NxW({recordCanvas:O,mutationCb:zv,win:window,blockClass:J,blockSelector:q,mirror:Sr,sampling:S.canvas,dataURLOptions:V});var C1=new SSg({mutationCb:vq,scrollCb:hq,bypassOptions:{blockClass:J,
blockSelector:q,maskTextClass:R,maskTextSelector:W,inlineStylesheet:b,maskInputOptions:V6,dataURLOptions:V,maskTextFn:l,maskInputFn:f,recordCanvas:O,inlineImages:Xg,sampling:S,slimDOMOptions:bs,iframeManager:Su,stylesheetManager:XM,canvasManager:BxK,keepIframeSrcFn:oA,processedNodeManager:p1},mirror:Sr});oHz=function(V4){V4=V4===void 0?!1:V4;if(y){yS({type:4,data:{href:window.location.href,width:yUv(),height:SGt()}},V4);XM.reset();C1.init();U4.forEach(function(L1){return L1.lock()});
var to=tpv({mirror:Sr,blockClass:J,blockSelector:q,maskTextClass:R,maskTextSelector:W,inlineStylesheet:b,maskAllInputs:V6,maskTextFn:l,maskInputFn:f,slimDOM:bs,dataURLOptions:V,recordCanvas:O,inlineImages:Xg,onSerialize:function(L1){L1.nodeName==="IFRAME"&&Sr.nodeMetaMap.get(L1)&&ySg(Su,L1);etp(L1,Sr)&&KyV(XM,L1);L1&&jr(L1)&&OQA(C1,jr(L1),document)},
onIframeLoad:function(L1,Wq){MLv(Su,L1,Wq);L1.contentWindow&&L1.contentDocument&&CvW(C1,L1.contentWindow.Element,L1.contentDocument)},
onStylesheetLoad:function(L1,Wq){eDv(XM,L1,Wq)},
keepIframeSrcFn:oA});to?(yS({type:2,data:{node:to,initialOffset:NQq(window)}},V4),U4.forEach(function(L1){return L1.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&YSv(XM,document.adoptedStyleSheets,Sr.getId(document))):console.warn("Failed to snapshot the document")}};
try{var mz=[],Ov=function(V4){var to;return oY(lx6)({mutationCb:vq,mousemoveCb:function(L1,Wq){return yS({type:3,data:{source:Wq,positions:L1}})},
mouseInteractionCb:function(L1){return yS({type:3,data:Object.assign({},{source:2},L1)})},
scrollCb:hq,viewportResizeCb:function(L1){return yS({type:3,data:Object.assign({},{source:4},L1)})},
inputCb:function(L1){return yS({type:3,data:Object.assign({},{source:5},L1)})},
mediaInteractionCb:function(L1){return yS({type:3,data:Object.assign({},{source:7},L1)})},
styleSheetRuleCb:function(L1){return yS({type:3,data:Object.assign({},{source:8},L1)})},
styleDeclarationCb:function(L1){return yS({type:3,data:Object.assign({},{source:13},L1)})},
canvasMutationCb:zv,fontCb:function(L1){return yS({type:3,data:Object.assign({},{source:10},L1)})},
selectionCb:function(L1){yS({type:3,data:Object.assign({},{source:14},L1)})},
customElementCb:function(L1){yS({type:3,data:Object.assign({},{source:16},L1)})},
blockClass:J,ignoreClass:L,ignoreSelector:n,maskTextClass:R,maskTextSelector:W,maskInputOptions:V6,inlineStylesheet:b,sampling:S,recordDOM:y,recordCanvas:O,inlineImages:Xg,userTriggeredOnInput:bW,collectFonts:RA,doc:V4,maskInputFn:f,maskTextFn:l,keepIframeSrcFn:oA,blockSelector:q,slimDOMOptions:bs,dataURLOptions:V,mirror:Sr,iframeManager:Su,stylesheetManager:XM,shadowDomManager:C1,processedNodeManager:p1,canvasManager:BxK,ignoreCSSAttributes:Zt,plugins:(Fg==null?void 0:(to=Fg.filter(function(L1){return L1.observer}))==
null?void 0:to.map(function(L1){return{observer:L1.observer,
options:L1.options,callback:function(Wq){return yS({type:6,data:{plugin:L1.name,payload:Wq}})}}}))||[]},A)};
gAU(Su,function(V4){try{mz.push(Ov(V4.contentDocument))}catch(to){console.warn(to)}});
var Rx=function(){oHz();mz.push(Ov(document))};
document.readyState==="interactive"||document.readyState==="complete"?Rx():(mz.push(dY("DOMContentLoaded",function(){yS({type:0,data:{}});LC==="DOMContentLoaded"&&Rx()})),mz.push(dY("load",function(){yS({type:1,
data:{}});LC==="load"&&Rx()},window)));
return function(){mz.forEach(function(V4){try{V4()}catch(to){String(to).toLowerCase().includes("cross-origin")||console.warn(to)}});
p1.destroy();NR=void 0}}catch(V4){console.warn(V4)}};
_.P=function(e,g){g=IP(kW(g));e.innerHTML=g};
JDK=function(e){var g=kpU;g||(g=Ijq(),g=kpU=_.n0.transpose(g));g=g[e];return typeof g==="string"?g:_.KM(e)};
vA6=function(e){e=String(e).toLowerCase();var g=Ijq()[e];return typeof g==="string"?g:_.O4(e)};
w6C=function(e){e=e.toLowerCase();e=Ijq()[e];return typeof e==="string"?e:null};
Ijq=function(){if(!qeU){for(var e=Object.assign({},LGt),g=_.w(rDz),c=g.next();!c.done;c=g.next())c=c.value,e[c.toLowerCase()]=c;qeU=e}return qeU};
RD6=function(e,g){var c=window.customElements;return c&&c.get(e)||aj8[e]===!0?2:g.name==="HTMLUnknownElement"?1:g.name==="HTMLElement"&&nAW.test(e)?3:0};
bzC=function(e,g){switch(g){case "innerHTML":return EAA(e)===1?2:null;case "textContent":return e=EAA(e),e===1||e===6?1:null;default:var c,k;return(k=(c=WGq[e.localName])==null?void 0:c[g])!=null?k:null}};
EAA=function(e){var g=e.localName,c=RD6(g,e.constructor);switch(c){case 0:case 1:return hDt(g,e);case 3:case 2:return 1;default:_.gj(c,"got an unknown element classification")}};
hDt=function(e,g){var c=Object.hasOwnProperty.call(X68,e)?X68[e]:null;return c!==null?c:Object.hasOwnProperty.call(Gpv,e)&&g instanceof SVGElement?Gpv[e]:null};
xEC=function(e,g){return g};
$EC=function(e){return(e=e.split(DEW,2))?{url:e[0],metadata:e[1]}:null};
fjg=function(e){var g=String(e.url).replace(Yeq,encodeURIComponent);if(e=e.metadata){Yeq.lastIndex=0;if(Yeq.test(e))return null;g+=" "+e}return g};
mEC=function(e){function g(R){var W=R.localName;if(!R.getAttribute("is")&&RD6(W,R.constructor)===2){var b;return(b=n)!=null?b:n=document.createElement("polyresinuncustomized")}(R=L[W])||(R=L[W]=document.createElement(W));return R}
var c=e.reportHandler||void 0,k=e.safeTypesBridge||jTe,I=/^$/;if(e=e.allowedIdentifierPrefixes){e=_.w(e);for(var J=e.next();!J.done;J=e.next())I=new RegExp(I.source+"|^"+_.ize(J.value))}c&&c(!1,"initResin",null);var q=PbK(I,k,c),L={},n=null;return function(R,W,b){var h=R.nodeType;if(h!==Node.ELEMENT_NODE){if(h===Node.TEXT_NODE){W=R.parentElement;b=!W;if(W&&W.nodeType===Node.ELEMENT_NODE){h=W.localName;var X=RD6(h,W.constructor);switch(X){case 0:case 1:W=hDt(h,W);b=W===1||W===6;break;case 3:case 2:b=
!0;break;default:_.gj(X,"got an unknown element classification")}}if(b)return function(A){return""+k(A,"STRING",A)}}return function(A){if(!A&&A!==document.all)return A;
c&&c(!0,"Failed to sanitize "+(R.parentElement&&R.parentElement.nodeName)+" #text node to value "+A,R.parentElement);return MR}}var D=R.localName;
h=g(R);var f=null;switch(b){case "attribute":if(vA6(W)in h)break;return function(A){return A};
case "property":if(W in h){f=bzC(h,W);break}if((X=w6C(W))&&X in h)break;return function(A){return A};
default:_.gj(b,"got an unknown resin type, expected either 'property' or 'attribute'")}var l=b==="attribute"?W.toLowerCase():JDK(W);f||(f=Obt(D,l,function(A){var d=R.getAttribute(A);return!d||/[\[\{]/.test(A)?null:d}));
return function(A){var d=CM,S=null;if(!A&&A!==document.all)return A;if(f!=null){var V=q[f],Q=V.safeType;S=V.safeReplacement;Q&&(d=k(A,Q,CM));d===CM&&(V.filterString?(d=String(k(A,"STRING",A)),d=V.filterString(D,l,d)):V.filterRaw&&(d=V.filterRaw(D,l,A,R)),d===S&&(d=CM))}d===CM&&(d=S||MR,c&&c(!0,"Failed to sanitize attribute of <"+D+">: <"+D+" "+l+'="'+A+'">',R));return d}}};
PbK=function(e,g,c){return[,{filterRaw:function(k,I,J){return J},
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:p68,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:p68,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:MR,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:Thq,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(k,I,J){J=
String(J).toLowerCase();return ekC(k,I,J)?J:MR},
safeReplacement:MR,safeType:void 0},,{filterRaw:void 0,filterString:function(k,I,J){return e.test(J)?J:MR},
safeReplacement:MR,safeType:"CONSTANT"},{filterRaw:function(k,I,J,q){if(typeof J==="string")var L=(L=J.match(ljg))?L.map($EC).filter(Boolean):[];else if(Array.isArray(J))L=J;else return p68;var n=L;L=[];var R=[],W={};if(Array.isArray(n))for(var b=0,h=n.length;b<h;++b){var X=n[b],D=X&&X.url;if(D){var f=g(D,"URL",W);if(f){var l=f!==W;(l?L:R).push({url:l?f:D,metadata:X.metadata})}}}else R.push(n);n=R.length?JSON.stringify(R):null;R=CM;if(L.length){if(!Array.isArray(L))throw Error();R=L.map(fjg).filter(Boolean).join(" , ")||
CM}n&&c&&c(!0,"Failed to sanitize attribute value of <"+k+">: <"+k+" "+I+'="'+J+'">: '+n,q);return R===CM?p68:R},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
ADA=function(e){var g=mEC(e);return function(c,k,I,J){return J||J===document.all?g(c,k,I)(J):J}};
eV=function(e,g){function c(){function I(L,n,R){for(n=Reflect.getMetadata("parameters",L)||[];n.length<=R;)n.push(null);n[R]=n[R]||[];n[R].push(q);Reflect.defineMetadata(n,L);return L}
var J=_.Mb.apply(0,arguments);if(this instanceof c)return k.apply(this,J),this;var q=new (Function.prototype.bind.apply(c,[null].concat(_.KY(J))));I.annotation=q;return I}
var k=sTv(g);c.prototype.toString=function(){return"@"+e};
return c.annotationCls=c};
sTv=function(e){return function(){var g=_.Mb.apply(0,arguments),c=this;e.forEach(function(k,I){I=g[I];if(Array.isArray(k))c[k[0]]=I&&I!==void 0?I:k[1];else for(var J in k)c[J]=I&&I[J]!==void 0?I[J]:k[J]})}};
FGW=function(e){return e!==void 0&&e!==null};
gE=function(e){if(typeof e==="string")return e;if(e===void 0||e===null)return""+e;if(e.overriddenName)return e.overriddenName;if(e.name)return e.name;e=e.toString();var g=e.indexOf("\n");return g===-1?e:e.substring(0,g)};
use=function(e){e.__forward_ref__=use;e.toString=function(){return gE(this())};
return e};
cm=function(e){return typeof e==="function"&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===use?e():e};
dEp=function(e){return e?e.map(function(g){return new (Function.prototype.bind.apply(g.type.annotationCls,[null].concat(_.KY(g.args?g.args:[]))))}):[]};
zDz=function(e){for(var g=[],c=0;c<e.length;++c){if(g.indexOf(e[c])>-1){g.push(e[c]);break}g.push(e[c])}return g};
Hzq=function(e){return e.length>1?" ("+zDz(e.slice().reverse()).map(function(g){return gE(g.token)}).join(" -> ")+")":""};
UEC=function(e,g,c,k){if(k){var I=Error("df``"+(k instanceof Error?k.message:k));I.ngOriginalError=k}else I=Error();I.addKey=QTg;I.keys=[g];I.injectors=[e];I.constructResolvingMessage=c;I.message=I.constructResolvingMessage();I.ngOriginalError=k;return I};
QTg=function(e,g){this.injectors.push(e);this.keys.push(g);this.message=this.constructResolvingMessage()};
oAC=function(e,g){return UEC(e,g,function(){return"No provider for "+gE(this.keys[0].token)+"!"+Hzq(this.keys)})};
ZzU=function(e,g){return UEC(e,g,function(){return"Cannot instantiate cyclic dependency!"+Hzq(this.keys)})};
VR6=function(e,g,c){return UEC(e,c,function(){var k=gE(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+k+"!"+Hzq(this.keys)+"."},g)};
tRv=function(e,g){for(var c=[],k=0,I=g.length;k<I;k++){var J=g[k];J&&J.length!=0?c.push(J.map(gE).join(" ")):c.push("?")}return Error("hf`"+gE(e)+"`"+c.join(", ")+"`"+gE(e))};
CbC=function(e){var g=void 0,c=void 0;if(e&&e.useClass!==void 0){g=e.useClass;var k=cm(e.useClass);var I=Bhg.factory(k);k=Nht(k)}else e&&e.useExisting!==void 0?(I=function(J){return J},k=[yDC(kf.get(cm(e.useExisting)))]):e&&e.useFactory!==void 0?(I=e.useFactory,k=KGC(e.useFactory,e.deps)):(c=e.useValue,I=function(){return e.useValue},k=Ozq);
return new MRC(I,k,g,c)};
gLz=function(e){return new ejC(kf.get(cm(e.provide)),[CbC(e)],e.multi)};
k4p=function(e){e=ccz(e,[]).map(gLz);for(var g=new Map,c=0;c<e.length;c++){var k=e[c],I=g.get(k.key.id);if(I){if(k.multiProvider!==I.multiProvider)throw Error("kf`"+I+"`"+k);if(k.multiProvider)for(var J=0;J<k.resolvedFactories.length;J++)I.resolvedFactories.push(k.resolvedFactories[J]);else g.set(k.key.id,k)}else I=void 0,k.multiProvider?I=new ejC(k.key,k.resolvedFactories.slice(),k.multiProvider):I=k,g.set(k.key.id,I)}return Array.from(g.values())};
ccz=function(e,g){e.forEach(function(c){if(c instanceof IPp)g.push({provide:c,useClass:c});else if(c&&typeof c=="object"&&c.provide!==void 0)g.push(c);else if(c instanceof Array)ccz(c,g);else throw Error("gf`"+c);});
return g};
KGC=function(e,g){if(g){var c=g.map(function(k){return[k]});
return g.map(function(k){return Jcv(e,k,c)})}return Nht(e)};
Nht=function(e){var g=Bhg.parameters(e);if(!g)return[];if(g.some(function(c){return c==null}))throw tRv(e,g);
return g.map(function(c){return Jcv(e,c,g)})};
Jcv=function(e,g,c){var k=null,I=!1;if(!Array.isArray(g))return g instanceof vLe?wnp(g.token,I,null):wnp(g,I,null);for(var J=null,q=0;q<g.length;++q){var L=g[q];if(L instanceof IPp)k=L;else if(L instanceof vLe)k=L.token;else if(L instanceof q_p)I=!0;else if(L instanceof LWp||L instanceof rcp)J=L}k=cm(k);if(k!=null)return wnp(k,I,J);throw tRv(e,c);};
wnp=function(e,g,c){return new aPq(kf.get(cm(e)),g,c)};
nLq=function(e,g){for(var c=Array(e.providers.length),k=0;k<e.providers.length;++k){var I=k;if(k<0||k>=e.providers.length)throw Error("jf`"+k);c[I]=g(e.providers[k])}return c};
RjK=function(e){return typeof e==="function"&&Bhg.parameters(e).every(function(g){return!!g})};
bXC=function(e){var g=ELg;WWV.get(e)||WWV.set(e,new g);return WWV.get(e)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(e)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(e)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e,g){var c,k;if(e.contains(g))return!0;e=_.IC(e).querySelectorAll("content,slot");for(c=0;c<e.length;++c){var I=_.IC(e[c]).getDistributedNodes();for(k=0;k<I.length;++k)if(I[k].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(I[k],g))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e){e.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(e)&&e.preventDefault();e.targetTouches&&(e=e.targetTouches[0],hjC=e.pageX,XnA=e.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 e=0,g=Jr.length;e<g;e++)document.addEventListener(Jr[e],_._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 e=0,g=Jr.length;e<g;e++)document.removeEventListener(Jr[e],_._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(e){var g=_.IC(e).rootTarget;e.type!=="touchmove"&&G4e!==g&&(G4e=g,xx6=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.IC(e).path));if(!xx6.length)return!0;if(e.type==="touchstart")return!1;e=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(e);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(xx6,e.deltaX,e.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e){for(var g=[],c=e.indexOf(Dxe),k=0;k<=c;k++)if(e[k].nodeType===Node.ELEMENT_NODE){var I=e[k],J=I.style;J.overflow!=="scroll"&&J.overflow!=="auto"&&(J=window.getComputedStyle(I));J.overflow!=="scroll"&&J.overflow!=="auto"||g.push(I)}return g};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e,g,c){if(g||c)for(var k=Math.abs(c)>=Math.abs(g),I=0;I<e.length;I++){var J=e[I];if(k?c<0?J.scrollTop>0:J.scrollTop<J.scrollHeight-J.clientHeight:g<0?J.scrollLeft>0:J.scrollLeft<J.scrollWidth-J.clientWidth)return J}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e){var g={deltaX:e.deltaX,deltaY:e.deltaY};"deltaX"in e||("wheelDeltaX"in e&&"wheelDeltaY"in e?(g.deltaX=-e.wheelDeltaX,g.deltaY=-e.wheelDeltaY):"wheelDelta"in e?(g.deltaX=0,g.deltaY=-e.wheelDelta):"axis"in e?(g.deltaX=e.axis===1?e.detail:0,g.deltaY=e.axis===2?e.detail:0):e.targetTouches&&(e=e.targetTouches[0],g.deltaX=hjC-e.pageX,g.deltaY=XnA-e.pageY));return g};
$xg=function(e){this.element=e;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
fP8=function(e){this.element=e;this.color=window.getComputedStyle(e).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");_.IC(this.waveContainer).appendChild(this.wave);Y_V(this)};
wE=function(e,g){for(var c in e)if(c.toLowerCase()===g.toLowerCase())return e[c]};
jMg=function(e,g){for(var c in e)if(c.toLowerCase()===g.toLowerCase()){delete e[c];break}};
PkA=function(e){e=_.n0.clone(e);for(var g=0;g<iXe.length;++g){var c=iXe[g],k=wE(e,c);k&&(e["X-Goog-Upload-Header-"+c]=k,jMg(e,c))}return e};
mx6=function(e){e=_.n0.clone(e);jMg(e,"X-Goog-Upload-Status")};
TaW=function(e){return pnW.some(function(g){return g.test(e)})};
FWz=function(e,g){var c;var k=(c=e.formContent)==null?void 0:c.locale;c=k==null?void 0:k.split("-")[0];k=k&&lPA.includes(k)?k:c&&lPA.includes(c)?c:void 0;k=(k!=null?k:"en").replaceAll("-","_").toLowerCase();var I;e=((I=e.initializationData)==null?0:I.useNightlyRelease)?"nightly":"live";var J;return(g==null?0:(J=g.getEnableAlohaBinarySplit)==null?0:J.call(g))?_.jw(Acz,e):_.jw(sMp,e,k)};
zjt=function(e,g,c,k){if(uH8&&dxU===g)return uH8;dxU=g;var I=FWz(e,k);return uH8=g.feedbackV2GlobalObject?Promise.resolve(g.feedbackV2GlobalObject):new Promise(function(J,q){var L=_.C0("SCRIPT");_.Eh(L,I);L.onload=function(){g.feedbackV2GlobalObject?J(g.feedbackV2GlobalObject):q(Error("nf"))};
L.onerror=function(){q(Error("of`"+I.toString()))};
c.body.appendChild(L)})};
Ux6=function(e,g,c,k){if(HXp&&QMK===g)return HXp;QMK=g;var I=FWz(e,k);return HXp=g.feedbackV2GlobalObject?Promise.resolve(g.feedbackV2GlobalObject):new Promise(function(J,q){var L=_.C0("SCRIPT");_.Eh(L,I);L.onload=function(){g.feedbackV2GlobalObject?J(g.feedbackV2GlobalObject):q(Error("nf"))};
L.onerror=function(){q(Error("of`"+I.toString()))};
c.body.appendChild(L)})};
oLA=function(e,g,c,k,I){I=I===void 0?!0:I;var J,q,L,n,R;return _.r(function(W){switch(W.nextAddress){case 1:return J=Date.now(),W.yield(zjt(e,c,k,g),2);case 2:q=W.yieldResult;if(!(I||((n=e.initializationData)==null?0:n.useNightlyRelease)||((R=e.initializationData)==null?0:R.isLocalServer))){L=q.initializeFeedbackClient(e,J,g);W.jumpTo(3);break}return W.yield(q.initializeFeedbackClientAsync(e,J,g),4);case 4:L=W.yieldResult;case 3:return L.initiateAloha(),W.return(L)}})};
ZXg=function(e,g,c,k){var I,J,q;return _.r(function(L){if(L.nextAddress==1)return I=Date.now(),L.yield(Ux6(e,c,k.document,g),2);if(L.nextAddress!=3)return J=L.yieldResult,L.yield(J.initializeFeedbackClientAsync(e,I,g,k),3);q=L.yieldResult;q.initiateAloha();return L.return(q)})};
VJU=function(e,g,c){var k=!0;k=k===void 0?!0:k;var I,J,q,L,n,R,W,b;return _.r(function(h){I=c||_.kp;if((J=g)==null?0:(L=(q=J).getEnableAlohaBinarySplit)==null?0:L.call(q)){n=I;if(n.isFormOpened)throw new qo;n.isFormOpened=!0;e.callbacks=e.callbacks||{};R=e.callbacks.onClose||function(){};
e.callbacks.onClose=function(X){n.isFormOpened=!1;R(X)};
try{return h.return(ZXg(e,g,n,I))}catch(X){throw n.isFormOpened=!1,X;}}else{W=I;if(W.isFormOpened)throw new qo;W.isFormOpened=!0;e.callbacks=e.callbacks||{};b=e.callbacks.onClose||function(){};
e.callbacks.onClose=function(X){W.isFormOpened=!1;b(X)};
try{return h.return(oLA(e,g,W,I.document,k))}catch(X){throw W.isFormOpened=!1,X;}}_.Uh(h)})};
ycp=function(e,g){return _.r(function(c){return c.return(new Promise(function(k,I){Number.isInteger(Number(e))&&Number(e)>0?(I=tJe(g!=null?g:"")+"/aloha_form_properties?productId="+e,BaU(I,function(J){J=J.target;var q=null;try{var L=JSON,n=L.stringify;if(J.JSC$10106_xhr_){var R=J.JSC$10106_xhr_.responseText;R.indexOf(")]}'\n")==0&&(R=R.substring(5));var W=_.L_(R)}else W=void 0;q=aEC(Nav,n.call(L,W))}catch(b){n=new Nav,W=S_z(),W=_.rE(W,13,!1),W=_.rE(W,14,!0),W=_.rE(W,15,!0),W=_.rE(W,20,!1),q=_.sx(n,
1,W)}k(q)},"GET","",{},2E3,!0)):I(Error("pf`"+e))}))})};
tJe=function(e){return TaW(e)?e:"https://www.google.com/tools/feedback"};
CkW=function(e){e=e.match(new RegExp(KWK,"gi"))||[];e=_.w(e);for(var g=e.next();!g.done;g=e.next()){g=g.value;a:{var c=_.w(OXp);for(var k=c.next();!k.done;k=c.next())if(k.value.test(g)){c=!1;break a}c=!0}if(!c)a:{c=_.w(MJU);for(k=c.next();!k.done;k=c.next())if(k.value.test(g)){c=!0;break a}c=!1}if(c)return!0}return!1};
eFK=function(e,g){var c={},k=Object.keys(e);k=_.w(k);for(var I=k.next();!I.done;I=k.next())I=I.value,c[I]=g(I,e[I]);return c};
g8K=function(e){switch(e){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"}};
k_q=function(e){if(window.crypto&&window.crypto.getRandomValues)try{var g=Array(e),c=new Uint8Array(e);window.crypto.getRandomValues(c);for(var k=0;k<g.length;k++)g[k]=c[k];return g}catch(J){}g=Array(e);for(c=0;c<e;c++){k=Date.now();for(var I=0;I<k%23;I++)g[c]=Math.random();g[c]=Math.floor(Math.random()*256)}if(cRv)for(c=1,k=0;k<cRv.length;k++)g[c%e]^=g[(c-1)%e]/4^cRv.charCodeAt(k),c++;return g};
aC=function(e){e=k_q(e);for(var g=[],c=0;c<e.length;c++)g.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(e[c]&63));return g.join("")};
IUC=function(){var e=_.kp.ytLoggingDocDocumentNonce_;e||(e=aC(16),_.BQ("ytLoggingDocDocumentNonce_",e));return e};
v8z=function(e){e&&_.Y2("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:JRt,clientScreenNonce:e})};
wU8=function(e){return _.uo("client-screen-nonce-store",{})[e===void 0?0:e]};
qEW=function(e,g){g=g===void 0?0:g;var c=_.uo("client-screen-nonce-store");c||(c={},_.Fq("client-screen-nonce-store",c));c[g]=e};
LKK=function(e){e=e===void 0?0:e;return e===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+e};
rRq=function(e){return _.uo(LKK(e===void 0?0:e))};
_.RC=function(e){return(e=rRq(e===void 0?0:e))?new _.n_({veType:e,youtubeData:void 0,jspbYoutubeData:void 0}):null};
aU8=function(){var e=_.uo("csn-to-ctt-auth-info");e||(e={},_.Fq("csn-to-ctt-auth-info",e));return e};
n8p=function(){return Object.values(_.uo("client-screen-nonce-store",{})).filter(function(e){return e!==void 0})};
_.EM=function(e){e=wU8(e===void 0?0:e);if(!e&&!_.dH("USE_CSN_FALLBACK",!0))return null;e||(e="UNDEFINED_CSN");return e?e:null};
E8v=function(e){for(var g=_.w(Object.values(RF8)),c=g.next();!c.done;c=g.next())if(_.EM(c.value)===e)return!0;return!1};
WKC=function(e,g,c){var k=aU8();(c=_.EM(c))&&delete k[c];g&&(k[e]=g)};
Wm=function(e){return aU8()[e]};
_.bc=function(e,g,c,k){c=c===void 0?0:c;if(e!==wU8(c)||g!==_.uo(LKK(c)))if(WKC(e,k,c),qEW(e,c),_.Fq(LKK(c),g),g=function(){setTimeout(function(){v8z(e)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(g)}catch(I){g()}else g()};
bPe=function(e,g){g=g===void 0?"":g;var c=[],k;for(k in e)if(e.hasOwnProperty(k)){var I=g!==""?g+"."+k:k;typeof e[k]==="object"?c.push.apply(c,_.KY(bPe(e[k],I))):c.push([I,e[k]])}c.sort();return c};
_.X7=function(e){var g=_.Mb.apply(1,arguments);if(!hr(e)||g.some(function(k){return!hr(k)}))throw Error("qf");
g=_.w(g);for(var c=g.next();!c.done;c=g.next())hF6(e,c.value)};
hF6=function(e,g){for(var c in g)if(hr(g[c])){if(c in e&&!hr(e[c]))throw Error("rf");c in e||(e[c]={});hF6(e[c],g[c])}else if(XUe(g[c])){if(c in e&&!XUe(e[c]))throw Error("sf");c in e||(e[c]=[]);G_V(e[c],g[c])}else e[c]=g[c];return e};
G_V=function(e,g){g=_.w(g);for(var c=g.next();!c.done;c=g.next())c=c.value,hr(c)?e.push(hF6({},c)):XUe(c)?e.push(G_V([],c)):e.push(c);return e};
hr=function(e){return typeof e==="object"&&!Array.isArray(e)};
XUe=function(e){return typeof e==="object"&&Array.isArray(e)};
Dde=function(e){for(var g=_.w(Object.entries(xdg)),c=g.next();!c.done;c=g.next())if(c=_.w(c.value),c.next(),c=c.next().value,c==="SLI_STATUS_"+e)return c;return"SLI_STATUS_UNKNOWN"};
_.Gj=function(e,g,c,k){return $dp(e,g,function(){return new _.YE6(e,g,c,k)})};
_.fUv=function(){return _.Gj("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
j_K=function(){return _.Gj("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
xf=function(){return _.Gj("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
iPe=function(){return _.Gj("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Ppt=function(){return _.Gj("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
mdC=function(){return _.Gj("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
lUV=function(e){e&&(e.dataset?e.dataset[pU6()]="true":_.bj([_.Ya(TMA)],e,"data-loaded","true".toString()))};
AR8=function(e){return e?e.dataset?e.dataset[pU6()]:e.getAttribute("data-loaded"):null};
pU6=function(){return s_p.loaded||(s_p.loaded="loaded".replace(/\-([a-z])/g,function(e,g){return g.toUpperCase()}))};
_.D5=function(e,g,c){FKA(e,g,c===void 0?null:c)};
_.dde=function(e,g){e&&g&&(e=""+_.KC(g),(e=uNv[e])&&_.MUU(e))};
FKA=function(e,g,c){c=c===void 0?null:c;var k=_.zFq(typeof e==="string"?e:e.toString()),I=document.getElementById(k),J=I&&AR8(I),q=I&&!J;J?g&&g():(g&&(J=_.Mz(k,g),g=""+_.KC(g),uNv[g]=J),q||(I=HPv(e,k,function(){AR8(I)||(lUV(I),_.C3V(k),_.k1(function(){_.gyt(k)},0))},c)))};
HPv=function(e,g,c,k){k=k===void 0?null:k;var I=_.C0("SCRIPT");I.id=g;I.onload=function(){c&&setTimeout(c,0)};
I.onreadystatechange=function(){switch(I.readyState){case "loaded":case "complete":I.onload()}};
k&&I.setAttribute("nonce",k);_.Eh(I,typeof e==="string"?_.Ry(e):e);e=document.getElementsByTagName("head")[0]||document.body;e.insertBefore(I,e.firstChild);return I};
_.zFq=function(e){var g=document.createElement("a");e0(g,e);return"js-"+$f(g.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Q_t=function(e){var g=_.uo("INNERTUBE_HOST_OVERRIDE");g&&(e=String(g)+String(_.Bc(e)));return e};
UdA=function(e){var g={};_.G("json_condensed_response")&&(g.prettyPrint="false");return e=YVe(e,g)};
_.Yf=function(e){return BV(e)?"same-origin":"include"};
_.f_=function(e){return BV(e)?"same-origin":"cors"};
jV=function(e,g,c){c=c===void 0?{}:c;e={method:g===void 0?"POST":g,mode:_.f_(e),credentials:_.Yf(e)};g={};for(var k=_.w(Object.keys(c)),I=k.next();!I.done;I=k.next())I=I.value,c[I]&&(g[I]=c[I]);Object.keys(g).length>0&&(e.headers=g);return e};
_.ic=function(e,g){g=g===void 0?{}:g;return"service:"+e+"/"+Object.keys(g).sort().map(function(c){return c+":"+g[c]}).join("/")};
o8W=function(e){var g,c,k,I;e=(g=_.x(e,_.Pm))==null?void 0:(c=g.watchEndpointSupportedOnesieConfig)==null?void 0:(k=c.html5PlaybackOnesieConfig)==null?void 0:(I=k.commonConfig)==null?void 0:I.url;if(!e)return[];g=new _.mt(e);return g.JSC$10342_domain_?["https://"+g.JSC$10342_domain_+"/generate_204"]:[]};
_.tD8=function(){return ZP6()||PmK()||VD8&&PQ("version/")?!0:_.uo("EOM_VISITOR_DATA")?!1:!0};
BMz=function(e){var g=e.docid||e.video_id||e.videoId||e.id;if(g)return g;g=e.raw_player_response;g||(e=e.player_response)&&(g=JSON.parse(e));return g&&g.videoDetails&&g.videoDetails.videoId||null};
NMK=function(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
lc=function(e){return!isNaN(Number(e))&&!_.rV(e)};
_.Ar=function(e,g,c,k){k=k===void 0?!0:k;var I=_.uo("VALID_SESSION_TEMPDATA_DOMAINS",[]),J=_.V9(window.location.href);J&&I.push(J);J=_.V9(e);if(_.Hz(I,J)||!J&&_.wV(e,"/"))if(I=document.createElement("a"),e0(I,e),e=I.href)if(e=_.Bc(e),e=_.NO(e))k&&!g.csn&&(g.itct||g.ved)&&(g=Object.assign({csn:_.EM()},g)),c?(c=parseInt(c,10),isFinite(c)&&c>0&&SEC(e,g,c)):SEC(e,g)};
KKC=function(e){var g=_.uo("VALID_SESSION_TEMPDATA_DOMAINS",[]),c=_.V9(window.location.href);c&&g.push(c);c=_.V9(e);if(!(_.Hz(g,c)||!c&&_.wV(e,"/")))return null;e=_.Bc(e);(e=_.NO(e))?(e=yRt(e),e=(e=_.Lf.get(e,void 0)||null)?_.ZC(e):{}):e=null;return e};
SEC=function(e,g,c){e=yRt(e);g=g?_.Oy(g):"";c=c||5;_.tD8()&&_.r1(e,g,c)};
yRt=function(e){for(var g=_.w(OPp),c=g.next();!c.done;c=g.next())e=_.gN(e,c.value);return"ST-"+$f(e).toString(36)};
_.MD6=function(e){if(e.requestFullscreen)e=e.requestFullscreen(void 0);else if(e.webkitRequestFullscreen)e=e.webkitRequestFullscreen();else if(e.mozRequestFullScreen)e=e.mozRequestFullScreen();else if(e.msRequestFullscreen)e=e.msRequestFullscreen();else if(e.webkitEnterFullscreen)e=e.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return e instanceof Promise?e:Promise.resolve()};
_.F7=function(e){var g;_.Hvt(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.sM()==e&&(g=document):g=e;if(g&&(e=_.Hvt(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],g))){e.call(g)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.sM=function(){var e=e===void 0?!1:e;var g=_.Hvt(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(e)for(;g&&g.shadowRoot;)g=g.shadowRoot.fullscreenElement;return g?g:null};
_.uc=function(e,g){g=g===void 0?!0:g;e.addEventListener("wheel",Cp8);e.overscrollConfig={cooldown:g}};
_.dE=function(e){e.overscrollConfig=void 0;e.removeEventListener("wheel",Cp8)};
Cp8=function(e){var g=e.deltaY,c=e.target,k=null;if(window.Polymer&&window.Polymer.Element){if(c=e.path||e.composedPath&&e.composedPath()){c=_.w(c);for(var I=c.next();!I.done&&(I=I.value,!e2W(I,g));I=c.next())if(I.overscrollConfig){k=I;break}}}else for(;c&&!e2W(c,g);){if(c.overscrollConfig){k=c;break}c=c.parentElement}k&&(g=k.overscrollConfig,g.cooldown?(k=e.deltaY,c=g.lastDeltaY||0,g.lastDeltaY=k,I=g.lastStopped||0,c&&I&&c>0==k>0?Math.abs(c)>=Math.abs(k)?(k=I+1200,c=!1):(k=I+600,c=!0):(k=Date.now()+
600,c=!0),k>Date.now()&&(e.preventDefault(),c&&(g.lastStopped=Date.now()))):e.preventDefault())};
e2W=function(e,g){return g<0&&e.scrollTop>0||g>0&&e.scrollTop<e.scrollHeight-e.clientHeight-1?(e=getComputedStyle(e).overflowY,e=="auto"||e=="scroll"):!1};
gqz=function(e){zj.initialized=!0;zj.sessionId=e.sessionId||"";zj.enabledSpans=e.enabledSpans;e.shouldSampleFn!=null&&(zj.shouldSampleFn=e.shouldSampleFn)};
c$C=function(e){zj.processors.push(e)};
Hm=function(e){return zj.initialized?zj.enabledSpans?zj.enabledSpans[e]:!0:!1};
vqC=function(e,g,c){return Hm(e)&&zj.shouldSampleFn(e,g,kxg)?new IyC(e,g,c):J$K};
_.Q1=function(e,g,c){if(typeof c==="function"){var k=c;c=void 0}var I=vqC(e,g,c),J;if(((J=c)==null?void 0:J.endTime)!=null)return k&&_.mN(Error("Df")),I;var q;I!==J$K&&((q=c)==null?void 0:q.active)!==!1&&zj.stack.push(I);if(!k)return I;if(I===J$K)return k(I);try{var L=k(I);if(L instanceof Promise)return L.then(function(n){I.end();return n},function(n){I.end("SPAN_STATUS_ERROR");
throw n;});
I.end();return L}catch(n){throw I.end("SPAN_STATUS_ERROR"),n;}};
wl8=function(){lf.subscribe("handleError",function(e){try{for(var g in UM)try{var c=UM[g];typeof UM[g]==="function"&&(c=c());e.params[g]=typeof UM[g]==="object"?JSON.stringify(c):String(c)}catch(k){_.mN(k)}}catch(k){_.mN(k)}})};
qHt=function(){};
LAz=function(e){var g=e.nodeName;if(e.id)return g+="#"+e.id;if(e.classList)for(var c=_.w(e.classList),k=c.next();!k.done;k=c.next())g+="."+k.value;e.parentElement&&(g=LAz(e.parentElement)+" > "+g);return g};
_.oC=function(e,g,c,k){k||(k={bubbles:!0,cancelable:!1,composed:!0});c!==null&&c!==void 0&&(k.detail=c);var I=new CustomEvent(g,k);_.G("untrack_fire_custom_event_killswitch")?e.dispatchEvent(I):_.EX(function(){return void e.dispatchEvent(I)});
return I};
r$W=function(e){var g=window,c=function(k){g.removeEventListener("yt-navigate-start",c);return e.call(g,k)};
g.addEventListener("yt-navigate-start",c,void 0)};
_.Z5=function(e,g,c,k){k=k===void 0?!1:k;return _.Q1("ytAction",{name:g,nodepath:LAz(e)},function(){var I=new ayz(g,!!k,c);_.oC(e,"yt-action",I);return I.returnValue})};
_.V1=function(e,g,c){return _.Z5(e,g,c,!0)};
_.Bm=function(e,g,c,k){g&&g.length&&g.forEach(function(I){var J=uJV(I);J&&(_.G("handle_service_request_actions")&&I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.sendPost?_.tr(c?c:e,[I]):_.V1(e,J,[I,c,k]))})};
_.tr=function(e,g){var c=[e];g&&c.push.apply(c,g);g=_.Z5(e,"yt-service-request",c);return g.length>0&&(g=g[0],_.oC(e,"yt-service-request-sent",g),g&&g.ajaxPromise)?(g.ajaxPromise.then(function(k){_.oC(e,"yt-service-request-completed",k)},function(k){_.oC(e,"yt-service-request-error",{error:k,
params:c})},e),g.ajaxPromise):_.No()};
_.y1=function(e,g){if(_.G("handle_service_request_actions"))_.Bm(g,e,g);else{e=_.w(e);for(var c=e.next();!c.done;c=e.next()){c=c.value;var k=void 0;((k=_.x(c,_.SV))==null?0:k.commands)?_.y1(_.x(c,_.SV).commands,g):(k=void 0,((k=_.x(c,_.K_))==null?0:k.actions)?_.y1(_.x(c,_.K_).actions,g):(k=void 0,((k=_.x(c.commandMetadata,_.OM))==null?0:k.sendPost)?_.tr(g,[c]):_.Bm(g,[c],g)))}}};
_.R2C=function(e,g,c){g=g===void 0?{}:g;typeof g==="function"&&(g={callback:g});c||g._c&&g._c.jsl&&g._c.jsl.h||_.n0.extend(g,{_c:{jsl:{h:_.uo("GAPI_HINT_PARAMS")}}});(g.gapiHintOverride||_.uo("GAPI_HINT_OVERRIDE"))&&(c=_.V0(document.location.href).gapi_jsh)&&_.n0.extend(g,{_c:{jsl:{h:c}}});nq8(e,g)};
_.C_=function(e,g,c){g=g===void 0?{}:g;e=(e=e in Mo?Mo[e]:c)||"";c={};for(var k in g){c={key$jscomp$855:c.key$jscomp$855};c.key$jscomp$855=k;var I=function(J){return function(){return String(g[J.key$jscomp$855])}}(c);
e=e.replace(new RegExp("\\$\\{"+c.key$jscomp$855+"\\}","gi"),I);e=e.replace(new RegExp("\\$"+c.key$jscomp$855,"gi"),I)}return e};
_.e4=function(e,g){return Eqg(e in Mo?Mo[e]:{},g)};
Eqg=function(e,g){var c=_.uo("I18N_PLURAL_RULES");c||(c=function(k){return k==1?"one":"other"});
return(e=e["case"+g]||e[c(g)])?e.replace("#",g.toString()):g+""};
h2e=function(e){var g=WAv(e),c=document.getElementById(g),k=c&&AR8(c);k||c&&!k||(c=bog(e,g,function(){if(!AR8(c)){lUV(c);_.C3V(g);var I=_.g$(_.gyt,g);_.k1(I,0)}}))};
bog=function(e,g,c){var k=document.createElement("link");k.id=g;k.onload=function(){c&&setTimeout(c,0)};
e=_.Ry(e);_.h0(k,e,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(k);return k};
WAv=function(e){var g=_.C0("A");e0(g,VP(e));return"css-"+$f(g.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.GxC=function(e){var g=XlC();e!==g&&(g=_.ch(),!_.G("web_autonav_allow_off_by_default")&&e||_.kn(0,141,!0),_.kn(0,140,!e),g.save())};
XlC=function(){var e=_.ch();return _.G("web_autonav_allow_off_by_default")&&!e.getFlag(141)&&_.uo("AUTONAV_OFF_BY_DEFAULT")?!1:!e.getFlag(140)};
xG6=function(e,g){var c,k;e=((c=e.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(k=c.videoAuthorizationToken)==null?void 0:k.credentialTransferTokens)||[];for(c=0;c<e.length;++c)if(e[c].scope===g)return e[c].token||void 0};
DGe=function(e){for(var g=0,c=0;c<e.length;c++)g=g*31+e.charCodeAt(c),c<e.length-1&&(g%=0x800000000000);return g%1E5};
_.It=function(e){return _.Q0("ytcsi."+(e||"")+"data_")||$Gt(e)};
_.YHU=function(e){e=_.It(e);e.metadata||(e.metadata={});return e.metadata};
_.fyK=function(e){e=_.It(e);e.tick||(e.tick={});return e.tick};
_.J5=function(e){e=_.It(e);if(e.gel){var g=e.gel;g.gelInfos||(g.gelInfos={});g.gelTicks||(g.gelTicks={})}else e.gel={gelTicks:{},gelInfos:{}};return e.gel};
_.jv8=function(e){e=_.J5(e);e.gelInfos||(e.gelInfos={});return e.gelInfos};
io8=function(e){var g=_.It(e).nonce;g||(g=aC(16),_.It(e).nonce=g);return g};
$Gt=function(e){var g={tick:{},info:{}};_.BQ("ytcsi."+(e||"")+"data_",g);return g};
PEC=function(){var e=_.Q0("ytcsi.debug");e||(e=[],_.BQ("ytcsi.debug",e),_.BQ("ytcsi.reference",{}));return e};
_.vh=function(e){e=e||"";var g=mGz();if(g[e])return g[e];var c=PEC(),k={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};c.push(k);return g[e]=k};
plU=function(e){e=e||"";var g=mGz();g[e]&&delete g[e];var c=PEC(),k={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};c.push(k);g[e]=k};
mGz=function(){var e=_.Q0("ytcsi.reference");if(e)return e;PEC();return _.Q0("ytcsi.reference")};
_.lyp=function(e){return TBW[e]||"LATENCY_ACTION_UNKNOWN"};
ueA=function(e,g,c){c=c===void 0?{}:c;var k=!1;_.dH("ytLoggingEventsDefaultDisabled",!1)&&(k=!0);k=k?null:$2;c=c===void 0?{}:c;var I=Math.round(c.timestamp||(0,_.yr)());_.Rl(g,1,I<Number.MAX_SAFE_INTEGER?I:0);I=new A$U;if(c.lact)_.Rl(I,1,isFinite(c.lact)?c.lact:-1);else if(c.timestamp)_.Rl(I,1,-1);else{var J=_.S6();_.Rl(I,1,isFinite(J)?J:-1)}if(c.sequenceGroup&&!_.G("web_gel_sequence_info_killswitch")){J=c.sequenceGroup;var q=rCe(J),L=new svp;_.Rl(L,2,q);_.vH(L,1,J);_.sx(I,3,L);c.endOfSequence&&delete FAC[c.sequenceGroup]}_.sx(g,
33,I);(c.sendIsolatedPayload?hNC:XOv)(e,{endpoint:"log_event",payload:g,cttAuthInfo:c.cttAuthInfo,dangerousLogToVisitorSession:c.dangerousLogToVisitorSession},k)};
_.dGC=function(e,g){_.w$("_start",e,g)};
_.qc=function(e,g){if(!_.G("web_csi_action_sampling_enabled")||!_.It(g).actionDisabled){var c=_.vh(g||"");_.X7(c.info,e);e.loadType&&(c=e.loadType,_.YHU(g).loadType=c);_.X7(_.jv8(g),e);c=io8(g);g=_.It(g).cttAuthInfo;z28().info(e,c,g)}};
Hoe=function(){var e,g,c,k;return((k=_.Ss().resolve(_.NN(XC))==null?void 0:(e=Gm())==null?void 0:(g=e.loggingHotConfig)==null?void 0:(c=g.csiConfig)==null?void 0:c.debugTicks)!=null?k:[]).map(function(I){return Object.values(I)[0]})};
_.w$=function(e,g,c){if(!_.G("web_csi_action_sampling_enabled")||!_.It(c).actionDisabled){var k=io8(c),I;if(I=_.G("web_csi_debug_sample_enabled")&&k){(_.Ss().resolve(_.NN(XC))==null?0:Gm())&&!Qvq&&(Qvq=!0,_.w$("gcfl",(0,_.yr)(),c));var J,q,L;I=(_.Ss().resolve(_.NN(XC))==null?void 0:(J=Gm())==null?void 0:(q=J.loggingHotConfig)==null?void 0:(L=q.csiConfig)==null?void 0:L.debugSampleWeight)||0;if(J=I!==0)b:{J=Hoe();if(J.length>0)for(q=0;q<J.length;q++)if(e===J[q]){J=!0;break b}J=!1}J?(I=DGe(k)%I!==0,
_.It(c).debugTicksExcludedLogged||(J={},J.debugTicksExcluded=I,_.qc(J,c)),_.It(c).debugTicksExcludedLogged=!0):I=!1}if(!I){e[0]!=="_"&&UGA(e,c,g);I=_.vh(c||"");I.tick[e]=g||(0,_.yr)();if(I.callback&&I.callback[e])for(I=_.w(I.callback[e]),J=I.next();!J.done;J=I.next())J=J.value,J();I=_.J5(c);I.gelTicks&&(I.gelTicks[e]=!0);J=_.fyK(c);I=g||(0,_.yr)();J[e]=I;J=_.It(c).cttAuthInfo;e==="_start"?z28().baseline(k,g,J):z28().tick(e,k,g,J);_.oqt(c);return I}}};
UGA=function(e,g,c){if(_.LA.mark)if(e.startsWith("mark_")||(e="mark_"+e),g&&(e+=" ("+g+")"),c===void 0||_.G("web_csi_disable_alt_time_performance_mark"))_.LA.mark(e);else{c=_.G("csi_use_performance_navigation_timing")?c-_.LA.timeOrigin:c-(_.LA.timeOrigin||_.LA.timing.navigationStart);try{_.LA.mark(e,{startTime:c})}catch(k){}}};
Zog=function(){var e,g=(e=_.LA.getEntriesByType)==null?void 0:e.call(_.LA,"mark");g&&g.forEach(function(c){if(c.name.startsWith("mark_")){var k;(k=_.LA.clearMarks)==null||k.call(_.LA,c.name)}})};
_.VMW=function(e){var g={},c=function(J,q,L){q=q.match("_rid")?q.split("_rid")[0]:q;typeof L==="number"&&(L=JSON.stringify(L));J.requestIds?J.requestIds.push({endpoint:q,id:L}):J.requestIds=[{endpoint:q,id:L}]};
e=_.w(Object.entries(e));for(var k=e.next();!k.done;k=e.next()){var I=_.w(k.value);k=I.next().value;I=I.next().value;switch(k){case "GetBrowse_rid":c(g,k,I);break;case "GetGuide_rid":c(g,k,I);break;case "GetHome_rid":c(g,k,I);break;case "GetPlayer_rid":c(g,k,I);break;case "GetSearch_rid":c(g,k,I);break;case "GetSettings_rid":c(g,k,I);break;case "GetTrending_rid":c(g,k,I);break;case "GetWatchNext_rid":c(g,k,I);break;case "yt_red":g.isRedSubscriber=!!I;break;case "yt_ad":g.isMonetized=!!I}}return g};
_.tMg=function(e){var g=_.r$("aft",e);if(g)return g;g=_.uo((e||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=g.length,k=0;k<c;k++){var I=_.r$(g[k],e);if(I)return I}return NaN};
_.BBC=function(e,g){_.BQ("ytglobal.timing"+(g||"")+"ready_",e)};
_.r$=function(e,g){if(e=_.fyK(g)[e])return typeof e==="number"?e:e[e.length-1]};
_.oqt=function(e){var g=_.r$("_start",e),c=_.tMg(e),k=!NBg;g&&c&&k&&(n_6(SHU,new y$6(Math.round(c-g),e)),NBg=!0)};
OoA=function(e){$Gt(e);KAU();Zog();e||(_.uo("TIMING_ACTION")&&_.Fq("PREVIOUS_ACTION",_.uo("TIMING_ACTION")),_.Fq("TIMING_ACTION",""))};
_.MMV=function(e){e=e===void 0?{}:e;_.HV(function(){at();plU();OoA();_.BBC(!1);e.cttAuthInfo&&(_.It().cttAuthInfo=e.cttAuthInfo);_.Fq("TIMING_AFT_KEYS",[]);e.isHot?_.nA({loadType:"hot"}):_.nA({loadType:"warm"});_.Fq("TIMING_ACTION","");delete _.uo("TIMING_INFO",{}).yt_lt;_.HV(_.dGC)(e.startTime,void 0)})()};
_.EV=function(e,g,c,k){g=g===void 0?{}:g;_.HV(function(){var I=c?c:e;Rt(I);var J=g.sampleRate;if(!_.G("web_csi_action_sampling_enabled")||J===void 0||J<=1)J=!1;else{var q=io8(I);J=DGe(q)%J!==0}J&&(_.It(I).actionDisabled=!0);_.vh(I||"").info.actionType=e;g.cttAuthInfo&&(_.It(I).cttAuthInfo=g.cttAuthInfo);_.Fq(I+"TIMING_ACTION",e);_.HV(_.dGC)(g.startTime,I);J={actionType:k||_.lyp(e)};g.logPreviousAction&&(J.previousAction=_.lyp(_.uo("TIMING_ACTION")));(q=_.EM())&&q!=="UNDEFINED_CSN"&&(J.clientScreenNonce=
q);_.nA(J,I);_.BBC(!0,I)})()};
Rt=function(e){_.HV(function(){at(e);plU(e);OoA(e)})()};
CE8=function(){_.HV(function(){var e=[],g;for(g in _.Q0("ytcsi.".slice(0,-1)))g.endsWith("data_")&&e.push(g.slice(0,-5));e=_.w(e);for(g=e.next();!g.done;g=e.next())Rt(g.value);at()})()};
_.gCq=function(e){return _.HV(function(){return _.eqt("_start",e)})()};
_.nA=function(e,g,c){_.HV(_.qc)(e,g,c===void 0?!1:c)};
_.Wh=function(e,g,c){return _.HV(_.w$)(e,g,c)};
_.eqt=function(e,g){return _.HV(function(){var c=_.fyK(g);return e in c})()};
kGg=function(e){if(!_.G("universal_csi_network_ticks"))return"";e=_.tv(e)||"";for(var g=Object.keys(cFz),c=0;c<g.length;c++){var k=g[c];if(e.includes(k))return k}return""};
JFz=function(e){if(!_.G("universal_csi_network_ticks"))return function(){};
var g=cFz[e];return g?(_.bB(g),function(){var c=_.G("universal_csi_network_ticks")?(c=I6z[e])?_.bB(c):!1:!1;return c}):function(){}};
_.bB=function(e,g,c){return _.HV(function(){if(_.eqt(e,c))return!1;_.Wh(e,g,c);return!0})()};
_.h5=function(e,g,c){_.HV(function(){if(!_.gCq(c)||_.eqt(e,c))return!1;_.Wh(e,g,c);return!0})()};
_.Xb=function(e){return _.HV(_.r$)(e,void 0)};
at=function(e){_.gCq(e)&&_.Wh("aa",void 0,e)};
_.rFC=function(e,g,c,k,I,J,q,L,n,R){var W=vCe();J=new _.n_({veType:g,youtubeData:J,jspbYoutubeData:L});R=Gu({automatedLogEventSource:R},W);I&&(R.cttAuthInfo=I);I={csn:W,pageVe:J.getAsJson()};_.G("expectation_logging")&&n&&n.screenCreatedLoggingExpectations&&(I.screenCreatedLoggingExpectations=n.screenCreatedLoggingExpectations);c&&c.visualElement?(I.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},q&&(I.implicitGesture.gestureType=q)):c&&_.mN(new _.E2("newScreen() parent element does not have a VE - rootVe",
g));k&&(I.cloneCsn=k);e?Dd("screenCreated",I,e,R):_.Y2("screenCreated",I,R);n_6(G5g,new w$v(W));xn.clear();qOU.clear();LXV.clear();return W};
DO=function(e,g,c,k,I,J){J=J===void 0?{}:J;a6C(e,g,c,[k],I===void 0?!1:I,J)};
a6C=function(e,g,c,k,I,J){I=I===void 0?!1:I;J=J===void 0?{}:J;Object.assign(J,Gu({cttAuthInfo:Wm(g)||void 0},g));for(var q=_.w(k),L=q.next();!L.done;L=q.next()){L=L.value;var n=L.getAsJson();(_.n0.isEmpty(n)||!n.trackingParams&&!n.veType)&&_.mN(Error("Ff"));if(_.G("no_client_ve_attach_unless_shown")){var R=nCC(L,g);if(n.veType&&!qOU.has(R)&&!LXV.has(R)&&!I){if(!_.G("il_attach_cache_limit")||xn.size<1E3){xn.set(R,[e,g,c,L]);return}_.G("il_attach_cache_limit")&&xn.size>1E3&&_.mN(new _.E2("IL Attach cache exceeded limit"))}L=
nCC(c,g);xn.has(L)?Rqp(c,g):LXV.set(L,!0)}}k=k.filter(function(W){W.csn!==g?(W.csn=g,W=!0):W=!1;return W});
c={csn:g,parentVe:c.getAsJson(),childVes:_.R4(k,function(W){return W.getAsJson()})};
g==="UNDEFINED_CSN"?$n("visualElementAttached",J,c):e?Dd("visualElementAttached",c,e,J):_.Y2("visualElementAttached",c,J)};
WXg=function(e,g,c,k,I,J,q){ECW(e,g,c,I,q)};
ECW=function(e,g,c,k,I){bae(c,g);I=Gu({cttAuthInfo:Wm(g)||void 0,automatedLogEventSource:I},g);c={csn:g,ve:c.getAsJson(),eventType:1};k&&(c.clientData=k);g==="UNDEFINED_CSN"?$n("visualElementShown",I,c):e?Dd("visualElementShown",c,e,I):_.Y2("visualElementShown",c,I)};
hqg=function(e,g,c,k){bae(c,g);var I=Gu({cttAuthInfo:Wm(g)||void 0,automatedLogEventSource:void 0},g);c={csn:g,ve:c.getAsJson(),eventType:4};k&&(c.clientData=k);g==="UNDEFINED_CSN"?$n("visualElementShown",I,c):e?Dd("visualElementShown",c,e,I):_.Y2("visualElementShown",c,I)};
X$p=function(e,g,c,k,I,J){var q=(k=k===void 0?!1:k)?16:8;k=Gu({cttAuthInfo:Wm(g)||void 0,endOfSequence:k,automatedLogEventSource:J},g);c={csn:g,ve:c.getAsJson(),eventType:q};I&&(c.clientData=I);g==="UNDEFINED_CSN"?$n("visualElementHidden",k,c):e?Dd("visualElementHidden",c,e,k):_.Y2("visualElementHidden",c,k)};
xrC=function(e,g,c,k,I,J){GGW(e,g,c,void 0,k,I,J)};
GGW=function(e,g,c,k,I,J,q){bae(c,g);k=k||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";J=Gu({cttAuthInfo:Wm(g)||void 0,automatedLogEventSource:q},g);c={csn:g,ve:c.getAsJson(),gestureType:k};I&&(c.clientData=I);g==="UNDEFINED_CSN"?$n("visualElementGestured",J,c):e?Dd("visualElementGestured",c,e,J):_.Y2("visualElementGestured",c,J)};
Drz=function(e,g,c,k){var I=Gu({cttAuthInfo:Wm(g)||void 0},g);c={csn:g,ve:c.getAsJson(),clientData:k};g==="UNDEFINED_CSN"?$n("visualElementStateChanged",I,c):e?Dd("visualElementStateChanged",c,e,I):_.Y2("visualElementStateChanged",c,I)};
$r8=function(){var e=k_q(16);for(var g=[],c=0;c<e.length;c++)g.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(e[c]&63));return g.join("")};
$n=function(e,g,c){YOW.push({payloadName:e,payload:c,jspbPayload:void 0,options:g});f6g||(f6g=DYV())};
Xov=function(e){if(YOW){for(var g=_.w(YOW),c=g.next();!c.done;c=g.next())c=c.value,c.payload&&(c.payload.csn=e.csn,_.Y2(c.payloadName,c.payload,c.options));YOW.length=0}f6g=0};
nCC=function(e,g){return""+e.getAsJson().veType+e.getAsJson().veCounter+g};
bae=function(e,g){if(_.G("no_client_ve_attach_unless_shown")){var c=nCC(e,g);qOU.set(c,!0);Rqp(e,g)}};
Rqp=function(e,g){e=nCC(e,g);xn.has(e)&&(g=xn.get(e)||[],DO(g[0],g[1],g[2],g[3],!0),xn.delete(e))};
Gu=function(e,g){_.G("log_sequence_info_on_gel_web")&&(e.sequenceGroup=g);return e};
_.Yn=function(e,g,c){_.HV(DO)(void 0,e,g,c)};
_.fA=function(e,g,c){_.HV(a6C)(void 0,e,g,c)};
_.j4=function(e,g){_.HV(WXg)(void 0,e,g,void 0,void 0,void 0)};
_.iB=function(e,g,c){_.HV(function(){_.o7(g,function(k){hqg(void 0,e,k,c)})})()};
_.Ph=function(e,g,c,k){_.HV(function(){_.o7(g,function(I){X$p(void 0,e,I,c,k)})})()};
_.m7=function(e,g,c){_.HV(xrC)(void 0,e,g,c,void 0)};
_.pA=function(e,g,c,k){_.HV(GGW)(void 0,e,g,c,k,void 0)};
_.Tu=function(e,g,c){_.HV(Drz)(void 0,e,g,c,void 0)};
jDp=function(e,g){lB.set(e,g)};
iaV=function(e,g){var c=Object.keys(e);e=new _.E2("[Command Handler] "+g,{filteredCommandNames:c,originalCommand:e});_.jW(e)};
P7C=function(e,g){iaV(e,g+" was called but not set")};
mr6=function(e){return function(){return new e}};
A5=function(e){return function(){return _.Ss().resolve(e)}};
p$K=function(e,g){var c=_.x(e,_.sf);if(c&&(c=g[c.signal]))return c();e=_.w(Object.keys(e));for(c=e.next();!c.done;c=e.next())if(c=c.value,g[c]&&(c=g[c]))return c()};
_.sV=function(e,g,c,k){return{browseEndpoint:{browseId:e},commandMetadata:{webCommandMetadata:{url:g,rootVe:c,webPageType:k===void 0?"WEB_PAGE_TYPE_BROWSE":k}}}};
T4p=function(e,g,c){var k=g=g===void 0?0:g;c=c===void 0?0:c;var I=c-k;return _.Fb(e,"PPSV",void 0,void 0,(I>600?0:I<60||c<=0||k/c>.9)?0:g)};
_.Fb=function(e,g,c,k,I){var J="/watch?v="+e;e={videoId:e};g&&(e.playlistId=g,J+="&list="+g);k&&(J+="&pp="+k);I&&(e.startTimeSeconds=I,J+="&t="+I+"s");g={watchEndpoint:e,commandMetadata:{webCommandMetadata:{url:J,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};c&&(g.clickTrackingParams=c);k&&(_.x(g,_.Pm).playerParams=k);return g};
l6A=function(e){return{browseEndpoint:{browseId:"VL"+e},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+e,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
AFz=function(e){if(e){var g;if(e){var c=(g=_.x(e.commandMetadata,_.OM))==null?void 0:g.url;g=!(!c||c==="/service_ajax")}else g=!1;if(g)return e;var k;if(e=(k=_.x(e,_.SV))==null?void 0:k.commands)for(k=_.w(e),e=k.next();!e.done;e=k.next())if(e=AFz(e.value))return e}};
_.uB=function(e){return{runs:[{text:e}]}};
sDq=function(e,g){return e&&g?{runs:[{text:e,navigationEndpoint:g}]}:void 0};
d$=function(e){return e?_.uB(e):void 0};
_.zu=function(e){return e?{simpleText:e}:void 0};
_.Hh=function(e){var g=e.type;e=e.payload;g={type:g};e!==void 0&&(g.payload=e);return g};
FXp=function(e,g,c){for(var k=Object.assign({},e),I=_.w(Object.keys(g)),J=I.next();!J.done;J=I.next()){J=J.value;var q=e[J],L=g[J];if(L===void 0)delete k[J];else if(q===void 0)k[J]=L;else if(Array.isArray(L)&&Array.isArray(q))k[J]=c?[].concat(_.KY(q),_.KY(L)):L;else if(!Array.isArray(L)&&_.SK(L)&&!Array.isArray(q)&&_.SK(q))k[J]=FXp(q,L,c);else if(typeof L===typeof q)k[J]=L;else return g=new _.E2("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:J,originalValue:q,updateValue:L}),
_.jW(g),e}return k};
zqC=function(e){if(!e.length)return"";try{if(uaK)return uaK.decode(e);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(e)}catch(q){}for(var g=0,c=[],k=e.length;g<k;){for(var I=0;I<1024&&g<k;){var J=e[g++];if(J<128)dr8[I++]=J;else{if(J<224)J=(J&31)<<6|e[g++]&63;else if(J<240)J=(J&15)<<12|(e[g++]&63)<<6|e[g++]&63;else{if(I+1===1024){--g;break}J=(J&7)<<18|(e[g++]&63)<<12|(e[g++]&63)<<6|e[g++]&63;J-=65536;dr8[I++]=55296|J>>10;J=56320|J&1023}dr8[I++]=J}}J=String.fromCharCode.apply(String,
dr8);I<1024&&(J=J.substring(0,I));c.push(J)}return c.join("")};
QDe=function(e,g){var c;if((c=HaW)==null?0:c.encodeInto)return g=HaW.encodeInto(e,g),g.read<e.length?e.length*4:g.written;for(var k=c=0;k<e.length;k++){var I=e.charCodeAt(k);I<128?g[c++]=I:(I<2048?g[c++]=I>>6|192:((I&64512)===55296&&k+1<e.length&&(e.charCodeAt(k+1)&64512)===56320?(I=65536+((I&1023)<<10)+(e.charCodeAt(++k)&1023),g[c++]=I>>18|240,g[c++]=I>>12&63|128):g[c++]=I>>12|224,g[c++]=I>>6&63|128),g[c++]=I&63|128)}return c};
UrC=function(e,g,c){if(g&&c&&c.buffer===g.exports.memory.buffer){var k=g.realloc(c.byteOffset,e);if(k)return new Uint8Array(g.exports.memory.buffer,k,e)}e=g?new Uint8Array(g.exports.memory.buffer,g.malloc(e),e):new Uint8Array(e);c&&e.set(c);return e};
_.ZO=function(e){e=new oCp(new ZaV([_.CC(decodeURIComponent(e))]));if(Vxv(e,2)){var g=Qx(e);var c=e.pos;var k=e.arrayView;c=c===void 0?0:c;var I=g===void 0?-1:g;c=c===void 0?0:c;I=I===void 0?-1:I;if(k.totalLength&&I){I<0&&(I=k.totalLength-c);k.focus(c);if(!(c-k.arrayPos+I<=k.arrays[k.arrayIdx].length)){var J=k.arrayIdx,q=k.arrayPos;k.focus(c+I-1);q=new Uint8Array(k.arrayPos+k.arrays[k.arrayIdx].length-q);for(var L=0,n=J;n<=k.arrayIdx;n++)q.set(k.arrays[n],L),L+=k.arrays[n].length;k.arrays.splice(J,
k.arrayIdx-J+1,q);k.arrayIdx=0;k.arrayPos=0;k.focus(c)}J=k.arrays[k.arrayIdx];k=new DataView(J.buffer,J.byteOffset+c-k.arrayPos,I)}else k=new DataView(new ArrayBuffer(0));k=new Uint8Array(k.buffer,k.byteOffset,k.byteLength);e.pos+=g;g=k}else g=void 0;g=g?zqC(g):void 0;e=Vxv(e,4)?Qx(e):void 0;k=tx6[e];if(typeof k==="undefined")throw e=new _.E2("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:e}),_.jW(e),e;return{entityTypeFieldNumber:e,entityType:k,entityId:g}};
_.Bh=function(e,g,c){c=c===void 0?0:c;var k=new B4K;if(HaW)e=HaW.encode(e);else{var I=new Uint8Array(Math.ceil(e.length*1.2)),J=QDe(e,I);I.length<J&&(I=new Uint8Array(J),J=QDe(e,I));I.length>J&&(I=I.subarray(0,J));e=I}e!==void 0&&(Vx(k,18),I=e.length,Vx(k,I),t5(k,I),k.buf.set(e,k.pos),k.pos+=I);e=N4g[g];if(typeof e==="undefined")throw c=new _.E2("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:g}),_.jW(c),c;e!==void 0&&(Vx(k,32),Vx(k,e));Vx(k,40);Vx(k,1);g=new Uint8Array(k.buf.buffer,
k.buf.byteOffset,k.pos);return encodeURIComponent(_.MU(g,c))};
SOp=function(e){e=e.key||e.id;if(!e)throw Error("If");return e};
KXz=function(e,g){e=e===void 0?{}:e;return yFz(e,g)};
OaC=function(e,g,c,k){if(k===void 0)return k=Object.assign({},e[g]||{}),c=(delete k[c],k),k={},Object.assign({},e,(k[g]=c,k));var I={},J={};return Object.assign({},e,(J[g]=Object.assign({},e[g],(I[c]=k,I)),J))};
Mxe=function(e,g,c,k,I){var J=e[g];if(J==null||!J[c])return e;k=FXp(J[c],k,I==="REPEATED_FIELDS_MERGE_OPTION_APPEND");I={};J={};return Object.assign({},e,(J[g]=Object.assign({},e[g],(I[c]=k,I)),J))};
_.Nc=function(e,g,c){return e[g]?e[g][c]||null:null};
eTg=function(){if(C78)return C78();var e={};C78=Sn("PersistentEntityStoreDb",{objectStores:(e.EntityStore={addedAtVersion:1},e.EntityAssociationStore={addedAtVersion:2},e),shared:!1,upgrade:function(g,c){c(1)&&sn(At(g,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(g=At(g,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),sn(g,"byParentEntityKey","parentEntityKey"),sn(g,"byChildEntityKey","childEntityKey"))},
version:3});return C78()};
g3K=function(e){return _.Qr(eTg(),e)};
S4=function(e){return window.Int32Array?new Int32Array(e):Array(e)};
k9q=function(e){return _.Qr(cgg(),e)};
Irv=function(e){return new yx("WRONG_DATA_TYPE",{encoderVersion:e})};
JgC=function(e){return e instanceof Error?new yx("UNKNOWN_ENCODE_ERROR",{originalMessage:e.message}):new yx("UNKNOWN_ENCODE_ERROR")};
v3q=function(e){return e instanceof Error?new yx("UNKNOWN_DECODE_ERROR",{originalMessage:e.message}):new yx("UNKNOWN_DECODE_ERROR")};
wFz=function(e,g){e=e instanceof yx?e:g(e);_.jW(e);throw e;};
qJp=function(e){e=(new TextEncoder).encode(e).subarray(0,16);var g=new Uint8Array(16);g.set(e);return g};
rgK=function(e){var g=LQp[e];if(g)return g;_.mN(new _.E2("Entity model not found.",{entityType:e}))};
_.KA=function(){arW||(arW=n3p());return arW};
n3p=function(){var e,g,c;return _.r(function(k){if(k.nextAddress==1)return _.lj(k,2),k.yield(_.Nl(),4);if(k.nextAddress!=2){e=k.yieldResult;if(!e||!_.R$()||typeof _.kp.BroadcastChannel==="undefined")return k.return();g=new RTg;return k.return(new OV(e,g))}c=_.Qb(k);c instanceof Error&&_.jW(c);return k.return()})};
_.Mc=function(e,g){var c;return _.r(function(k){if(k.nextAddress==1){c=e.mutations;if(!c||c.length<=0)return k.return();g&&g.dispatch(_.Hh({type:"ENTITY_LOADED",payload:c}));return k.yield(E3C(c),2)}c.length=0;_.Uh(k)})};
E3C=function(e){var g;return _.r(function(c){return c.nextAddress==1?c.yield(_.KA(),2):(g=c.yieldResult)?c.yield(_.CA(g,"readwrite",function(k){for(var I={},J=_.w(e),q=J.next(),L={};!q.done;L={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},q=J.next())L.mutation$jscomp$8=q.value,L.mutation$jscomp$8.entityKey&&WQt(L.mutation$jscomp$8)&&(L.mutationEntityType$jscomp$3=(0,_.n0.getAnyKey)(L.mutation$jscomp$8.payload),q=void 0,L.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(q=function(n){return function(){return _.b8v(k,
n.mutation$jscomp$8.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(L)),L.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(q=function(n){return function(){return hTe(k,n.mutation$jscomp$8.entityKey)}}(L)),L.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(q=function(n){return function(){return XFC(k,n.mutation$jscomp$8.entityKey,n.mutation$jscomp$8.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(L)),q&&(I[L.mutation$jscomp$8.entityKey]=
I[L.mutation$jscomp$8.entityKey]?I[L.mutation$jscomp$8.entityKey].then(q):q()));
return AK.all(Object.values(I))}),0):c.return()})};
WQt=function(e){var g;e=(g=e.options)==null?void 0:g.persistenceOption;return e==="ENTITY_PERSISTENCE_OPTION_PERSIST"||e==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
DwK=function(e,g){var c,k;_.r(function(I){if(I.nextAddress==1)return I.yield(_.KA(),2);if(I.nextAddress!=3)return(c=I.yieldResult)?I.yield(_.CA(c,"readonly",function(J){var q={},L=Object.keys(g).map(function(n){var R=g[n]?[].concat(_.KY(g[n])):[];return G9C(J,n,R,q)});
return AK.all(L).then(function(){return q})}),3):I.return();
k=I.yieldResult;Object.keys(k).length>0&&e.dispatch(xwp(k));_.Uh(I)})};
G9C=function(e,g,c,k){return eo(e,g,c).then(function(I){k[g]=$w6(c,I)})};
$w6=function(e,g){if(g.length!==e.length)throw Error("Lf");return g.reduce(function(c,k,I){c[e[I]]=k;return c},{})};
j5U=function(e){var g=e.filter(function(I){var J;return(I==null?void 0:(J=I.transferEntity)==null?void 0:J.transferState)==="TRANSFER_STATE_COMPLETE"}).length,c=e.filter(function(I){var J;
return(I==null?void 0:(J=I.transferEntity)==null?void 0:J.transferState)==="TRANSFER_STATE_FAILED"}).length,k=e.filter(function(I){var J;
return(I==null?void 0:(J=I.transferEntity)==null?void 0:J.transferState)&&YJv.includes(I.transferEntity.transferState)});
if(!(g||k!=null&&k.length))return 0;g=_.frA(k)+g;e=e.length-c;return e===0?0:Math.round(g*100/e)/100};
_.frA=function(e){var g=[];g=g.concat.apply(g,_.KY(e.filter(function(J){return J.streamEntity}).map(function(J){var q=Object.assign({},J.streamEntity),L,n=(L=J.transferEntity)==null?void 0:L.transferState;
q.streamsProgress=q.streamsProgress||[];q.streamsProgress=q.streamsProgress.map(function(R){var W=Object.assign({},R);W.numBytesDownloaded=n==="TRANSFER_STATE_COMPLETE"?R.numTotalBytes:R.numBytesDownloaded;return W});
return q}).map(function(J){return J.streamsProgress})));
var c=e=0;g=_.w(g);for(var k=g.next();!k.done;k=g.next()){var I=k.value;k=Number(I.numBytesDownloaded);I=Number(I.numTotalBytes);c+=isNaN(k)?0:k;e+=isNaN(I)?0:I}return e===0?0:Math.round(c*100/e)/100};
i8K=function(e){if(!e||!e.expirationTimestamp||!e.action)return!1;var g=(0,_.yr)()/1E3;return Number(e.expirationTimestamp)>=g};
gq=function(e){return e&&e.expirationTimestamp&&e.action?i8K(e)&&e.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.cL=function(e){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(e||"TRANSFER_STATE_UNKNOWN")};
PZg=function(e){var g=new B4K;if(e!==void 0){var c=Math.ceil(Math.log2(e.length*4+2)/7);c=c===void 0?2:c;Vx(g,10);g.submessagePosStack.push(g.pos);g.submessagePosStack.push(c);g.pos+=c;t5(g,e.length*1.2);c=QDe(e,g.buf.subarray(g.pos));g.pos+c>g.buf.length&&(t5(g,c),c=QDe(e,g.buf.subarray(g.pos)));g.pos+=c;e=g.submessagePosStack.pop();c=g.submessagePosStack.pop();for(var k=g.pos-c-e;e--;){var I=e?128:0;g.view.setUint8(c++,k&127|I);k>>=7}}g=new Uint8Array(g.buf.buffer,g.buf.byteOffset,g.pos);return(new TextDecoder("utf-8")).decode(g)};
_.kd=function(e){var g=0;e=_.w(e);for(var c=e.next(),k={};!c.done;k={transferState$jscomp$3:void 0},c=e.next()){var I=c.value,J=void 0;c=(J=I.streamEntity)!=null?J:{};J=void 0;k.transferState$jscomp$3=(J=I.transferEntity)==null?void 0:J.transferState;J=I=void 0;((I=c)==null?0:(J=I.streamsProgress)==null?0:J.length)&&c.streamsProgress.forEach(function(q){return function(L){L=Number(q.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?L.numTotalBytes:L.numBytesDownloaded);isFinite(L)&&(g+=L)}}(k))}return g};
mwV=function(e){return e.some(function(g){var c;if(!(g==null?0:(c=g.transferEntity)==null?0:c.transferState)){var k;return!(g==null?0:(k=g.policyEntity)==null?0:k.action)||g.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return YJv.includes(g.transferEntity.transferState)})};
pFq=function(e,g){if(!g)return!1;if(_.G("of_pb_en_po_ks"))return!0;var c;e=(c=_.Nc(e,"offlineVideoPolicy",_.Bh(g,"offlineVideoPolicy")))!=null?c:void 0;return!!e&&gq(e)};
_.lrp=function(e){var g=["TRANSFER_STATE_COMPLETE"];g=g===void 0?TmV:g;return e.filter(function(c){var k,I;return g.includes((I=(k=c.transferEntity)==null?void 0:k.transferState)!=null?I:"TRANSFER_STATE_UNKNOWN")})};
AgA=function(e,g){if(g){var c,k=(c=_.Nc(e,"playbackData",_.Bh(g,"playbackData")))!=null?c:null,I;c=(I=_.Nc(e,"transfer",_.Bh(g,"transfer")))!=null?I:null;var J;I=(J=_.Nc(e,"offlineVideoStreams",_.Bh(g,"offlineVideoStreams")))!=null?J:null;var q;e=(q=_.Nc(e,"offlineVideoPolicy",_.Bh(g,"offlineVideoPolicy")))!=null?q:null;if(k||c||I||e)return{playbackDataEntity:k,transferEntity:c,streamEntity:I,policyEntity:e}}};
_.Iq=function(e){var g=e.playbackData;if(!g)return[];var c=[];g=_.w(Object.keys(g));for(var k=g.next();!k.done;k=g.next()){var I=k.value;if(!s5K(e,_.ZO(I).entityId)&&(k=AgA(e,_.ZO(I).entityId))){var J=void 0,q=void 0;I=(q=Number((J=_.Nc(e,"playbackData",I))==null?void 0:J.streamDownloadTimestampSeconds))!=null?q:(0,_.yr)();c.push({entity:k,streamDownloadTimestamp:I})}}return c.sort(function(L,n){var R=L.streamDownloadTimestamp,W=n.streamDownloadTimestamp;return W===R?L.entity.streamEntity&&!n.entity.streamEntity?
1:-1:W-R}).map(function(L){return L.entity})};
FQv=function(e){return _.lrp(_.Iq(e))};
_.uxA=function(e){return _.Iq(e).filter(function(g){var c;if(((c=g.policyEntity)==null?0:c.action)&&g.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var k;if((k=g.transferEntity)==null?0:k.transferState){var I;return YJv.includes((I=g.transferEntity)==null?void 0:I.transferState)}return!0})};
s5K=function(e,g){var c;return((c=_.Nc(e,"downloadStatusEntity",_.Bh(g,"downloadStatusEntity")))==null?void 0:c.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
dwC=function(e){var g;if(e==null?0:(g=e.playbackDataEntity)==null?0:g.key)return _.ZO(e.playbackDataEntity.key).entityId;var c;if(e==null?0:(c=e.transferEntity)==null?0:c.key)return _.ZO(e.transferEntity.key).entityId;var k;if(e==null?0:(k=e.streamEntity)==null?0:k.key)return _.ZO(e.streamEntity.key).entityId;var I;if(e==null?0:(I=e.policyEntity)==null?0:I.key)return _.ZO(e.policyEntity.key).entityId};
H8V=function(e){var g=new Set,c;e=(c=e.mainDownloadsListEntity)==null?void 0:c[zT6];var k;if(!(e==null?0:(k=e.downloads)==null?0:k.length))return g;var I;e==null||(I=e.downloads)==null||I.forEach(function(J){(J==null?0:J.videoItem)&&g.add(J.videoItem)});
return g};
Jw=function(e,g){if(g){var c=_.Nc(e,"mainVideoEntity",_.Bh(g,"mainVideoEntity")),k=_.Nc(e,"downloadStatusEntity",_.Bh(g,"downloadStatusEntity")),I=_.Nc(e,"ytMainChannelEntity",_.Bh(g,"ytMainChannelEntity")),J={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};e=AgA(e,g);k=(k==null?void 0:k.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.G("woffle_render_failed_download_state_ks")&&(k==null?void 0:k.downloadState)==="DOWNLOAD_STATE_FAILED";!e&&k&&(e=J);if(e&&c&&
I)return Object.assign({},{videoEntity:c,channelEntity:I},e)}};
Uwv=function(e,g){return Q5V(e,g)==="TRANSFER_STATE_COMPLETE"&&pFq(e,g)};
o3v=function(e,g){if(!g)return!1;var c;e=(c=_.Nc(e,"playbackData",_.Bh(g,"playbackData")))!=null?c:void 0;return!!e&&!!e.playerResponseJson};
Q5V=function(e,g){if(!g)return"TRANSFER_STATE_UNKNOWN";var c=_.Nc(e,"transfer",_.Bh(g,"transfer"));if(c){var k;return(k=c.transferState)!=null?k:"TRANSFER_STATE_UNKNOWN"}c=_.Nc(e,"offlineOrchestrationActionWrapperEntity",_.Bh(g,"offlineOrchestrationActionWrapperEntity"));e=_.Nc(e,"mainVideoEntity",_.Bh(g,"mainVideoEntity"));return c||e?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
Z8t=function(e,g){if(!g)return"TRANSFER_STATE_UNKNOWN";if(e=_.Nc(e,"transfer",_.Bh(g,"transfer"))){var c;return(c=e.transferState)!=null?c:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Vq8=function(e,g){return g&&(e=_.Nc(e,"videoPlaybackPositionEntity",_.Bh(g,"videoPlaybackPositionEntity")),e==null?0:e.lastPlaybackPositionSeconds)?Number(e.lastPlaybackPositionSeconds):0};
Bm6=function(e,g){return tqC(e).some(function(c){var k;return(c==null?void 0:(k=c.mainPlaylistEntity)==null?void 0:k.playlistId)===g})};
SJz=function(e,g,c){var k=NmC(e,g);if(!k.length)return[];g=[];k=_.w(k);for(var I=k.next();!I.done;I=k.next()){I=I.value;var J=Jw(e,I);c&&Q5V(e,I)!=="TRANSFER_STATE_COMPLETE"||J&&g.push(J)}return g};
NmC=function(e,g){if(!g)return[];var c=_.Bh(g,"mainPlaylistEntity"),k;g=(k=e.mainPlaylistEntity)==null?void 0:k[c];k=[];if(g==null||!g.videos)return k;g=_.w(g.videos);for(c=g.next();!c.done;c=g.next()){c=c.value;var I=void 0,J=void 0,q=void 0,L=(I=e)==null?void 0:(J=I.mainPlaylistVideoEntity)==null?void 0:(q=J[c])==null?void 0:q.video;L&&(c=_.ZO(L).entityId)&&k.push(c)}return k};
ygC=function(e,g){if(g){var c=_.Nc(e,"mainPlaylistEntity",_.Bh(g,"mainPlaylistEntity")),k=_.Nc(e,"mainPlaylistDownloadStateEntity",_.Bh(g,"mainPlaylistDownloadStateEntity"));e=_.Nc(e,"ytMainChannelEntity",_.Bh(g,"ytMainChannelEntity"));if(k&&c)return Object.assign({},{mainPlaylistEntity:c,mainPlaylistDownloadStateEntity:k},!!e&&{channelEntity:e})}};
tqC=function(e){return KQp(e).sort(function(g,c){return c.addedTimestampMillis-g.addedTimestampMillis}).map(function(g){return g.downloadedPlaylistEntities})};
KQp=function(e){var g=e.mainPlaylistDownloadStateEntity,c=[];if(!g)return c;for(var k=_.w(Object.keys(g)),I=k.next();!I.done;I=k.next()){var J=I.value;I=ygC(e,_.ZO(J).entityId);var q=void 0;J=Number((q=g[J])==null?void 0:q.addedTimestampMillis);q=isNaN(J)?(0,_.yr)():J;I!==void 0&&c.push({downloadedPlaylistEntities:I,addedTimestampMillis:q})}return c};
O88=function(e){var g,c=(g=e.mainPlaylistVideoEntity)!=null?g:{};return new Set(tqC(e).reduce(function(k,I){k=k===void 0?[]:k;var J,q;I==null||(J=I.mainPlaylistEntity)==null||(q=J.videos)==null||q.forEach(function(L){var n;(L=(n=c[L])==null?void 0:n.video)&&k.push(L)});
return k},[]))};
Mq8=function(e){return"downloadedMusicPlaylistEntities"in e};
CZg=function(e){return"mainPlaylistEntity"in e&&"mainPlaylistDownloadStateEntity"in e};
ebV=function(e){return"videoEntity"in e&&"channelEntity"in e};
gse=function(e){var g=e.musicPlaylistDownloadMetadataEntity,c=[];if(!g)return c;for(var k=_.w(Object.keys(g)),I=k.next();!I.done;I=k.next()){I=I.value;a:{var J=e,q=_.ZO(I).entityId;if(q){var L=_.Nc(J,"musicPlaylist",_.Bh(q,"musicPlaylist"));J=_.Nc(J,"musicPlaylistDownloadMetadataEntity",_.Bh(q,"musicPlaylistDownloadMetadataEntity"));if(L&&J){L={musicPlaylistEntity:L,musicPlaylistDownloadStateEntity:J};break a}}L=void 0}J=void 0;I=Number((J=g[I])==null?void 0:J.addedTimestampMillis);I=isNaN(I)?(0,_.yr)():
I;L!==void 0&&c.push({downloadedMusicPlaylistEntities:L,addedTimestampMillis:I})}return c};
czW=function(e){var g=new Set;e=_.w(e);for(var c=e.next();!c.done;c=e.next())if(c=c.value,"musicPlaylistEntity"in c&&"musicPlaylistDownloadStateEntity"in c){c=_.w(c.musicPlaylistEntity.tracks);for(var k=c.next();!k.done;k=c.next())g.add(k.value)}return g};
kdK=function(e,g){if(g){var c=_.Nc(e,"musicTrack",_.Bh(g,"musicTrack")),k=_.Nc(e,"musicArtist",_.Bh(g,"musicArtist"))||{};if((e=AgA(e,g))&&c&&k)return Object.assign({},{musicTrackEntity:c,musicArtistEntity:k},e)}};
IGC=function(e){var g=e.musicTrackDownloadMetadataEntity,c=[];if(!g)return[];g=_.w(Object.keys(g));for(var k=g.next();!k.done;k=g.next()){var I=k.value;k=kdK(e,_.ZO(I).entityId);var J=void 0;I=Number((J=_.Nc(e,"musicTrackDownloadMetadataEntity",I))==null?void 0:J.addedTimestampMillis);J=isNaN(I)?(0,_.yr)():I;k!==void 0&&c.push({downloadedMusicEntities:k,addedTimestampMillis:J})}return c};
wvg=function(e,g){if(!g)return[];if(Object.values(JzA).includes(g))return vs6(e,g);g=_.Bh(g,"musicPlaylist");var c;e=(c=e.musicPlaylist)==null?void 0:c[g];c=[];if(e==null||!e.tracks)return c;e=_.w(e.tracks);for(g=e.next();!g.done;g=e.next())(g=_.ZO(g.value).entityId)&&c.push(g);return c};
vs6=function(e,g){var c=new Set,k=gse(e).map(function(J){return J.downloadedMusicPlaylistEntities});
k=czW(k);k=_.w(k);for(var I=k.next();!I.done;I=k.next())(I=_.ZO(I.value).entityId)&&c.add(I);return qcK(e).downloadedMusicEntities.filter(function(J){var q;if((q=J.musicTrackEntity)!=null&&q.videoId){J=J.musicTrackEntity;if(q=g==="PPOM"?!0:!c.has(J.videoId))b:switch(J=J.musicVideoType,g){case "PPSE":q=J==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:q=J!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}J=q}else J=!1;return J}).map(function(J){var q;
return(q=J.musicTrackEntity)==null?void 0:q.videoId})};
qcK=function(e){var g=IGC(e).sort(function(c,k){return k.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return"downloadedMusicEntities"in c?c.downloadedMusicEntities:Mq8(c)?c.downloadedMusicPlaylistEntities:{}});
e=gse(e).sort(function(c,k){return k.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return"downloadedMusicEntities"in c?c.downloadedMusicEntities:Mq8(c)?c.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:g,downloadedMusicPlaylistEntities:e}};
rzC=function(e,g){g=_.uo("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?wvg(e,g):NmC(e,g);if(!g.length)return"TRANSFER_STATE_UNKNOWN";g=g.map(function(c){return Z8t(e,c)});
return L5e(g)};
L5e=function(e){var g=new Set(e);if(g.has("TRANSFER_STATE_FAILED")&&g.size===1)return"TRANSFER_STATE_FAILED";g.delete("TRANSFER_STATE_FAILED");if(g.has("TRANSFER_STATE_UNKNOWN")&&g.size===1)return"TRANSFER_STATE_PRE_TRANSFER";g.delete("TRANSFER_STATE_UNKNOWN");if(g.has("TRANSFER_STATE_PRE_TRANSFER")&&g.size===1||g.size===0)return"TRANSFER_STATE_PRE_TRANSFER";e=g.has("TRANSFER_STATE_TRANSFERRING");g=g.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return e||g?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
vL=function(e){var g=e.mainVideoDownloadStateEntity,c=[];if(!g)return[];g=_.w(Object.keys(g));for(var k=g.next();!k.done;k=g.next()){var I=k.value;if(!s5K(e,_.ZO(I).entityId)){k=Jw(e,_.ZO(I).entityId);var J=void 0,q=void 0;I=(q=Number((J=_.Nc(e,"mainVideoDownloadStateEntity",I))==null?void 0:J.addedTimestampMillis))!=null?q:(0,_.yr)();k!==void 0&&c.push({downloadedVideoEntities:k,addedTimestampMillis:I})}}return c};
aGt=function(e){return vL(e).sort(function(g,c){return c.addedTimestampMillis-g.addedTimestampMillis}).map(function(g){return g.downloadedVideoEntities})};
_.RbW=function(e){var g=O88(e),c=_.wq(e),k=H8V(e),I=vL(e).filter(function(q){var L,n;if((q==null?void 0:(L=q.downloadedVideoEntities)==null?void 0:(n=L.transferEntity)==null?void 0:n.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var R,W;q=q==null?void 0:(R=q.downloadedVideoEntities)==null?void 0:(W=R.videoEntity)==null?void 0:W.key;return _.G("kevlar_use_library_entity")?q&&(k.has(q)||c[q]):q&&!g.has(q)}),J=KQp(e).filter(function(q){return rzC(e,q.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.KY(I),_.KY(J)).sort(function(q,L){return L.addedTimestampMillis-q.addedTimestampMillis}).map(function(q){return nsv(q)})};
Esz=function(e,g){if(g&&pFq(e,g)){var c,k,I=(k=(c=_.Nc(e,"playbackData",_.Bh(g,"playbackData")))!=null?c:void 0)==null?void 0:k.playerResponseJson;if(I){try{var J=JSON.parse(I);var q=_.Nc(e,"transfer",_.Bh(g,"transfer")),L=Vq8(e,g);L&&(J=Object.assign({},J,{playerConfig:Object.assign({},J.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+L*1E3}}})}));J.cotn=q==null?void 0:q.cotn}catch(n){}return J}}};
_.b38=function(e){var g,c,k;e=(k=(c=((g=e.downloadsPageViewConfigurationEntity)!=null?g:{})[_.qW])==null?void 0:c.smartDownloadsOptInBannerVisibility)!=null?k:{};var I;return(I=_.x(e,W5t))!=null?I:{}};
_.wq=function(e){var g,c,k;e=(k=(c=((g=e.mainDownloadsListEntity)!=null?g:{})[_.hb6])==null?void 0:c.downloads)!=null?k:[];g={};c=_.w(e);for(k=c.next();!k.done;k=c.next())e=void 0,g[(e=k.value.videoItem)!=null?e:""]=!0;return g};
Xv8=function(e){var g=_.wq(e);if(Object.keys(g).length===0)return!1;var c=e.mainVideoEntity;if(!c)return!0;c=_.w(Object.keys(c));for(var k=c.next();!k.done;k=c.next()){k=k.value;var I=_.ZO(k).entityId;if(g[k]&&!s5K(e,I))return!1}return!0};
_.LU=function(e){var g=_.wq(e);return vL(e).sort(function(c,k){return c.addedTimestampMillis-k.addedTimestampMillis}).map(function(c){return c.downloadedVideoEntities}).filter(function(c){var k;
return(c=c==null?void 0:(k=c.videoEntity)==null?void 0:k.key)&&!!g[c]})};
_.xTV=function(e){var g,c,k;e=(k=(c=((g=e.downloadsPageViewConfigurationEntity)!=null?g:{})[_.qW])==null?void 0:c.downloadsUpsellBannerVisibility)!=null?k:{};var I;return(I=_.x(e,Gdz))!=null?I:{}};
nsv=function(e){return"downloadedVideoEntities"in e?e.downloadedVideoEntities:"downloadedPlaylistEntities"in e?e.downloadedPlaylistEntities:{}};
DTp=function(e){var g=_.wq(e),c=O88(e),k=vL(e).filter(function(I){var J,q;return(I=I==null?void 0:(J=I.downloadedVideoEntities)==null?void 0:(q=J.videoEntity)==null?void 0:q.key)&&!g[I]&&!c.has(I)});
e=KQp(e);return[].concat(_.KY(k),_.KY(e)).sort(function(I,J){return J.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return nsv(I)})};
_.rq=function(e){if(!_.G("kevlar_use_library_entity"))return DTp(e);var g=vL(e).filter(function(k){var I,J;if(I=k=k==null?void 0:(I=k.downloadedVideoEntities)==null?void 0:(J=I.videoEntity)==null?void 0:J.key){var q,L,n;I=((L=(q=e.mainDownloadsListEntity)==null?void 0:q[zT6])==null?0:(n=L.downloads)==null?0:n.length)?H8V(e).has(k):!1}return I}),c=KQp(e);
return[].concat(_.KY(g),_.KY(c)).sort(function(k,I){return I.addedTimestampMillis-k.addedTimestampMillis}).map(function(k){return nsv(k)})};
$Tv=function(e){var g=_.wq(e),c=O88(e);return aGt(e).filter(function(k){var I;return(k=k==null?void 0:(I=k.videoEntity)==null?void 0:I.key)&&!g[k]&&!c.has(k)})};
Yct=function(e){if(!_.G("kevlar_use_library_entity"))return $Tv(e);var g=_.wq(e),c=H8V(e);return aGt(e).filter(function(k){var I;return(k=k==null?void 0:(I=k.videoEntity)==null?void 0:I.key)&&!g[k]&&c.has(k)})};
fGe=function(e,g){g=_.Bh(g,"settingEntity");var c,k,I;return!!((I=(k=((c=e.settingEntity)!=null?c:{})[g])==null?void 0:k.settingOptionValue)!=null?I:{}).boolValue};
_.aq=function(e){var g=_.LU(e);if(mwV(g))return 0;var c=[];g=_.w(g);for(var k=g.next();!k.done;k=g.next()){k=k.value;var I=void 0,J=void 0;if((I=k)==null?0:(J=I.videoEntity)==null?0:J.key)I=_.ZO(k.videoEntity.key).entityId,k=e,I=_.Bh(I,"mainVideoDownloadStateEntity"),k=_.Nc(k,"mainVideoDownloadStateEntity",I),(k=Number(k==null?void 0:k.addedTimestampMillis))&&c.push(k)}return Math.max.apply(Math,_.KY(c))};
_.nU=function(e){return e.ui.richGridMiniMode};
_.Rq=function(e){return e.ui.richGridItemsPerRow};
_.jGz=function(e){return e.ui.richGridSlimItemsPerRow};
_.i3z=function(e){return e.ui.guideIsExpanded};
_.Eo=function(e){return e.ui.miniplayerIsActive};
PUq=function(e){return e.ui.singleOptionSurveyIsActive};
_.WL=function(e){var g;return((g=e.ui)==null?void 0:g.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.mTA=function(e){return _.WL(e)==="WEB_PAGE_TYPE_WATCH"};
_.pvU=function(e){return _.WL(e)==="WEB_PAGE_TYPE_SHORTS"};
_.TOC=function(e){return e.ui.inlinePreviewIsActive};
_.lGC=function(e){return e.ui.inlinePreviewIsEnabled};
_.Aze=function(e){return e.ui.miniplayerPlaybackState};
_.bm=function(e){return e.ui.isOnline};
_.sGq=function(e){return e.ui.frostedGlassMode};
_.hw=function(e,g){return Q5V(e.entities,g)};
_.Xi=function(e,g){return rzC(e.entities,g)};
F5q=function(e,g){var c;if(g){var k;e=(k=_.Nc(e.entities,"offlineVideoPolicy",_.Bh(g,"offlineVideoPolicy")))==null?void 0:k.action}else e=void 0;return(c=e)!=null?c:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
ukg=function(e,g){var c;g?(e=_.Nc(e.entities,"offlineVideoPolicy",_.Bh(g,"offlineVideoPolicy")),e=Number(e==null?void 0:e.expirationTimestamp)):e=void 0;return(c=e)!=null?c:0};
_.dTW=function(e){return _.Iq(e.entities).length};
zbV=function(e,g){return Jw(e.entities,g)};
H3A=function(e,g){return ygC(e.entities,g)};
Gt=function(e,g){return(e=Jw(e.entities,g))?_.frA([e]):0};
_.QGz=function(e,g){var c=_.uo("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(c){var k=e.entities;var I=wvg(k,g);if(I.length){var J=[];I=_.w(I);for(var q=I.next();!q.done;q=I.next())(q=kdK(k,q.value))&&J.push(q);k=J}else k=[]}else k=SJz(e.entities,g);var L;if(c){var n=e.entities;g?(g=_.Bh(g,"musicPlaylist"),n=(L=n.musicPlaylist)==null?void 0:L[g],L=n!=null&&n.tracks?n.tracks.length:0):L=0}else L=e.entities,g?(g=_.Bh(g,"mainPlaylistEntity"),L=(n=L.mainPlaylistEntity)==null?void 0:n[g],L=L!=null&&L.videos?
L.videos.length:0):L=0;return k.length!==L?0:k?j5U(k):0};
_.UTC=function(e){return e.download.isLeaderTab};
_.osq=function(e,g,c){if(!g&&c){var k=e.entities;if(c){var I=PZg(c),J,q;g=(q=(J=_.Nc(k,"offlineabilityEntity",_.Bh(I,"offlineabilityEntity")))==null?void 0:J.addToOfflineButtonState)!=null?q:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else g="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else J=e.entities,g?(q=PZg(g),g=(I=(k=_.Nc(J,"offlineabilityEntity",_.Bh(q,"offlineabilityEntity")))==null?void 0:k.addToOfflineButtonState)!=null?I:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):g="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return g};
Z3q=function(e,g){e=e.entities;if(g){g=PZg(g);var c,k;g=(k=(c=_.Nc(e,"offlineabilityEntity",_.Bh(g,"offlineabilityEntity")))==null?void 0:c.addToOfflineButtonState)!=null?k:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else g="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return g};
_.V_p=function(e){var g=e.entities;e=_.bm(e);var c=fGe(g,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.G("kevlar_modern_downloads_page")&&c)var k=!1;else{var I,J;g=(J=(I=((k=g.downloadsPageViewConfigurationEntity)!=null?k:{})[_.qW])==null?void 0:I.smartDownloadsOptInBannerVisibility)!=null?J:{};k=e?!!g.visibleWithConnection:!!g.visibleWithoutConnection}return k};
_.t_g=function(e){return fGe(e.entities,"SMART_DOWNLOADS_ENABLED")};
_.BOV=function(e){return Xv8(e.entities)};
NOp=function(e){return _.LU(e.entities).every(function(g){var c;return(g==null?void 0:(c=g.transferEntity)==null?void 0:c.transferState)&&!YJv.includes(g.transferEntity.transferState)})};
_.ScC=function(e){var g,c,k,I=(k=(c=((g=e.entities.downloadsPageViewConfigurationEntity)!=null?g:{})[_.qW])==null?void 0:c.downloadsUpsellBannerVisibility)!=null?k:{};return _.bm(e)?!!I.visibleWithConnection:!!I.visibleWithoutConnection};
_.yzv=function(e,g){return s5K(e.entities,g)};
K5K=function(e,g){if(g){var c,k;e=(k=(c=_.Nc(e.entities,"downloadStatusEntity",_.Bh(g,"downloadStatusEntity")))==null?void 0:c.downloadState)!=null?k:"DOWNLOAD_STATE_UNKNOWN"}else e="DOWNLOAD_STATE_UNKNOWN";return e};
xd=function(e,g){return Vq8(e.entities,g)};
e5A=function(e){e=O38(e);var g=e.hours===void 0?0:e.hours,c=e.minutes===void 0?0:e.minutes,k=e.seconds===void 0?0:e.seconds,I=g>0;e=[];I&&(g=M_C(g),e.push(g));g=I;g=g===void 0?!1:g;c=(["af","be","lt"].includes(DY)||g)&&c<10?CUp().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);e.push(c);c=CUp().format(k);e.push(c);c=":";"da fi id si sr sr-Latn".split(" ").includes(DY)&&(c=".");return e.join(c)};
_.pIp=function(e){e=O38(e);var g=e.hours===void 0?0:e.hours,c=e.minutes===void 0?0:e.minutes,k=e.seconds===void 0?0:e.seconds;e=[];if(g>0){var I=gGV().format({hours:g});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(DY)||g>9999)I=I.replace(g.toString(),M_C(g)),DY==="km"&&(I=I.replace(".",","));e.push(I)}c>0&&e.push(gGV().format({minutes:c}));k>0&&e.push(gGV().format({seconds:k}));g="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");c=DY=="am"?"{0}\u1363 ":DY=="fa"?"{0}\u060c\u200f ":
DY=="my"?"{0} - ":DY=="th"?"{0} ":DY=="ur"?"{0}\u060c ":DY=="ar"||DY=="ar-XB"?"{0} \u0648":DY=="ja"||DY=="zh-CN"||DY=="zh-HK"||DY=="zh-TW"?"{0}\u3001":"{0}, ";k=DY=="am"?"\u1363 ":DY=="fa"?"\u060c\u200f ":DY=="my"?" - ":DY=="th"?" ":DY=="ur"?"\u060c ":DY=="ar"||DY=="ar-XB"?" \u0648":DY=="ja"||DY=="zh-CN"||DY=="zh-HK"||DY=="zh-TW"?"\u3001":", ";I=DY=="am"?" \u12a5\u1293 {0}":DY=="as"?" \u0986\u09f0\u09c1 {0}":DY=="az"?" v\u0259 {0}":DY=="bn"?" \u098f\u09ac\u0982 {0}":DY=="cs"?" a\u00a0{0}":DY=="de"?
" und {0}":DY=="el"?" \u03ba\u03b1\u03b9 {0}":DY=="eu"?" eta {0}":DY=="fa"?"\u060c \u0648 {0}":DY=="fil"?", at {0}":DY=="gu"?" \u0a85\u0aa8\u0ac7 {0}":DY=="hi"?", \u0914\u0930 {0}":DY=="hu"?" \u00e9s {0}":DY=="hy"?" \u0587 {0}":DY=="id"?", dan {0}":DY=="iw"?" \u05d5-{0}":DY=="ja"?"\u3001{0}":DY=="ka"?" \u10d3\u10d0 {0}":DY=="km"?" \u1793\u17b7\u1784 {0}":DY=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":DY=="ko"?" \ubc0f {0}":DY=="ky"?" \u0436\u0430\u043d\u0430 {0}":DY=="lt"?" ir {0}":DY=="lv"?" un {0}":
DY=="mr"?" \u0906\u0923\u093f {0}":DY=="ms"?" dan {0}":DY=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":DY=="ne"?" \u0930 {0}":DY=="or"?", \u0b13 {0}":DY=="pa"?" \u0a05\u0a24\u0a47 {0}":DY=="ro"?" \u0219i {0}":DY=="si"?", \u0dc3\u0dc4 {0}":DY=="sk"?" a {0}":DY=="sl"?" in {0}":DY=="sq"?" dhe {0}":DY=="sv"?" och {0}":DY=="sw"?" na {0}":DY=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":DY=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":DY=="th"?" \u0e41\u0e25\u0e30{0}":DY=="tr"?" ve {0}":DY=="ur"?
"\u060c \u0627\u0648\u0631 {0}":DY=="uz"?" va {0}":DY=="vi"?" v\u00e0 {0}":DY=="zh-HK"?"\u53ca{0}":DY=="zu"?", ne-{0}":DY=="af"||DY=="nl"?" en {0}":DY=="ar"||DY=="ar-XB"?" \u0648{0}":DY=="be"||DY=="uk"?" \u0456 {0}":DY=="en-GB"||DY=="en-IN"?" and {0}":DY=="en"||DY=="en-XA"?", and {0}":DY=="et"||DY=="fi"?" ja {0}":DY=="fr"||DY=="fr-CA"?" et {0}":DY=="zh-CN"||DY=="zh-TW"?"\u548c{0}":DY=="da"||DY=="is"||DY=="no"?" og {0}":DY=="es"||DY=="es-419"||DY=="es-US"?" y {0}":DY=="bg"||DY=="mk"||DY=="ru"||DY==
"sr"?" \u0438 {0}":DY=="gl"||DY=="it"||DY=="pt-BR"||DY=="pt-PT"?" e {0}":DY=="kk"||DY=="lo"||DY=="ml"||DY=="mn"?", {0}":" i {0}";var J=DY=="am"?"{0} \u12a5\u1293 {1}":DY=="as"?"{0} \u0986\u09f0\u09c1 {1}":DY=="az"?"{0} v\u0259 {1}":DY=="bn"?"{0} \u098f\u09ac\u0982 {1}":DY=="de"?"{0} und {1}":DY=="el"?"{0} \u03ba\u03b1\u03b9 {1}":DY=="eu"?"{0} eta {1}":DY=="fa"?"{0} \u0648 {1}":DY=="fil"?"{0} at {1}":DY=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":DY=="hi"?"{0} \u0914\u0930 {1}":DY=="hu"?"{0} \u00e9s {1}":DY==
"hy"?"{0} \u0587 {1}":DY=="iw"?"{0} \u05d5-{1}":DY=="ja"?"{0}\u3001{1}":DY=="ka"?"{0} \u10d3\u10d0 {1}":DY=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":DY=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":DY=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":DY=="ko"?"{0} \ubc0f {1}":DY=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":DY=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":DY=="lt"?"{0} ir {1}":DY=="lv"?"{0} un {1}":DY=="mr"?"{0} \u0906\u0923\u093f {1}":DY=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":DY=="ne"?"{0} \u0930 {1}":
DY=="or"?"{0} \u0b13 {1}":DY=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":DY=="ro"?"{0} \u0219i {1}":DY=="si"?"{0} \u0dc3\u0dc4 {1}":DY=="sl"?"{0} in {1}":DY=="sq"?"{0} dhe {1}":DY=="sv"?"{0} och {1}":DY=="sw"?"{0} na {1}":DY=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":DY=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":DY=="th"?"{0}\u0e41\u0e25\u0e30{1}":DY=="tr"?"{0} ve {1}":DY=="ur"?"{0} \u0627\u0648\u0631 {1}":DY=="uz"?"{0} va {1}":DY=="vi"?"{0} v\u00e0 {1}":DY=="zh-HK"?"{0}\u53ca{1}":DY==
"zu"?"{0} ne-{1}":DY=="af"||DY=="nl"?"{0} en {1}":DY=="ar"||DY=="ar-XB"?"{0} \u0648{1}":DY=="be"||DY=="uk"?"{0} \u0456 {1}":DY=="cs"||DY=="sk"?"{0} a\u00a0{1}":DY=="et"||DY=="fi"?"{0} ja {1}":DY=="fr"||DY=="fr-CA"?"{0} et {1}":DY=="id"||DY=="ms"?"{0} dan {1}":DY=="ml"||DY=="mn"?"{0}, {1}":DY=="zh-CN"||DY=="zh-TW"?"{0}\u548c{1}":DY=="da"||DY=="is"||DY=="no"?"{0} og {1}":DY=="es"||DY=="es-419"||DY=="es-US"?"{0} y {1}":DY=="bg"||DY=="mk"||DY=="ru"||DY=="sr"?"{0} \u0438 {1}":DY=="en"||DY=="en-GB"||DY==
"en-IN"||DY=="en-XA"?"{0} and {1}":DY=="gl"||DY=="it"||DY=="pt-BR"||DY=="pt-PT"?"{0} e {1}":"{0} i {1}";DY==="sq"?(I=I.replace("dhe","e"),J=J.replace("dhe","e")):DY==="th"?(k=k.replace("{0}"," {0}"),J=J.replace("{0}","{0} "),J=J.replace("{1}"," {1}")):DY==="ne"?k=",":DY==="zh-CN"?k="":g.includes(DY)&&(k=" ");return e.length<2?e.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(DY)?
e.length===2?J.replace("{0}",e[0]).replace("{1}",e[1]):c.replace("{0}",e[0])+e.slice(1,-1).join(k)+I.replace("{0}",e[e.length-1]):e.join(k)};
O38=function(e){var g=e.hours||0,c=e.minutes||0,k=e.seconds||0;g=k+c*60+g*3600+(e.days||0)*86400+(e.weeks||0)*604800+(e.months||0)*2629800+(e.years||0)*31557600;if(g<=0)return{hours:0,minutes:0,seconds:0};e=g;g=Math.floor(e/3600);e%=3600;c=Math.floor(e/60);k=Math.floor(e%60);return{hours:g,minutes:c,seconds:k}};
M_C=function(e){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var g=["fr"],c="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(DY)?e.replace(",","\u00a0"):g.includes(DY)?e.replace(",","\u202f"):c.includes(DY)?e.replace(",","."):e};
CUp=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
gGV=function(){TCV||(lRA=ATz,TCV=new sLv);return TCV};
FwK=function(e){try{return(new _.$d(5)).format(e)}catch(g){}};
Yd=function(e){return{thumbnailOverlayDownloadingRenderer:{state:e}}};
uhg=function(){var e=_.C_("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.uB(e),icon:{iconType:"PLAY_ALL"}}}};
dp6=function(e){e=_.fU(e,2);return DY!=="ru"&&DY!=="es_419"&&DY!=="es-419"&&DY!=="es"&&DY!=="es_US"&&DY!=="es-US"&&DY!=="fr"&&DY!=="pl"&&DY!=="it"&&DY!=="nl"&&DY!=="uk"&&DY!=="fr_CA"&&DY!=="fr-CA"||e===""?e:e[0].toLocaleUpperCase()+e.substring(1)};
Hjq=function(e){return function(g){var c=e(),k=_.fU(g,c.dateFormat);g=_.fU(g,c.timeFormat);var I=z5p.DATETIMEFORMATS[c.joinerStyle];I=I.replace(/'(?!')/g,"");I=I.replace("{0}",g);I=I.replace("{1}",k);return c.capitalize(I)}};
QLq=function(e){return e?typeof e.seconds==="string"&&(e.nanos===void 0||typeof e.nanos==="number"):!1};
Upz=function(e){return new Date(Number(e.seconds)*1E3+(e.nanos||0)*1E-6)};
_.fU=function(e,g){if(typeof e.getTime==="function")e={date:e};else if(QLq(e))e={date:Upz(e)};else if(typeof QLq(e.timestamp)&&typeof e.i18nInternalSecondsEastOfUtc==="number")e={date:Upz(e.timestamp),timeZone:jo(-e.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(e));var c=e;e=c.date;c=c.timeZone;g=oGC(g).format(e,c);DY==="zh-TW"&&(e=c?Number(oGC("H").format(e,c)):e.getHours(),g=e<5?g.replace("\u4e0a\u5348","\u51cc\u6668"):e<8?g.replace("\u4e0a\u5348","\u65e9\u4e0a"):e<12?
g.replace("\u4e0a\u5348","\u4e0a\u5348"):e<13?g.replace("\u4e0b\u5348","\u4e2d\u5348"):e<19?g.replace("\u4e0b\u5348","\u4e0b\u5348"):g.replace("\u4e0b\u5348","\u665a\u4e0a"));return g};
oGC=function(e){if(Zjg.has(e))return Zjg.get(e);var g=VI6(e);g=tIC(g);BCt!==!0&&(BCt=!0);NCC=!0;NCC=!1;g=new im(g,z5p);Zjg.set(e,g);return g};
VI6=function(e){return(new im(e,z5p)).patternParts_.map(function(g){return g.type===0?"'"+g.text+"'":g.text}).join("")};
tIC=function(e){return DY==="en"||DY==="es_US"||DY==="es-US"?e:e.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(g,c,k){return"H".repeat(c.length)+k})};
eup=function(e,g){Swg||(lRA=ATz,Swg=new yTp);var c=Swg;a:if(e=KwC(e),g=KwC(g||new Date),e>g)c=e.getTime()-g.getTime()>6048E5?_.fU(e,1):Ojq(e);else{for(var k=0;MIW(e,12*(k+1))<g;)++k;if(k>0)c=c.format(-k,0);else{for(k=0;MIW(e,k+1)<g;)++k;if(k>0)c=c.format(-k,2);else{e=g.getTime()-e.getTime();g=_.w(CAv);for(k=g.next();!k.done;k=g.next()){k=k.value;var I=k.unit,J=Math.floor(e/k.unitDuration);if(J>=(k.threshold===void 0?1:k.threshold)){c=c.format(-J,I);break a}}c=c.format(-0,7)}}}return c};
KwC=function(e){if(typeof e.getTime==="function")return e;if(QLq(e))return Upz(e);throw Error("Nf`"+JSON.stringify(e));};
MIW=function(e,g){for(var c=0,k;;++c)if(k=new Date(e.getFullYear(),e.getMonth()+g,e.getDate()-c,e.getHours(),e.getMinutes(),e.getSeconds()),k.getMonth()===(e.getMonth()+g)%12)return k};
_.PL=function(e){return{runs:[{text:e}]}};
_.mp=function(e){if(e&&e.simpleText)return e.simpleText;var g="";if(e&&e.runs)for(var c=0;c<e.runs.length;c++)e.runs[c].text&&(g+=e.runs[c].text);return g};
c8e=function(e,g,c,k){return e.videoEntity&&!e.policyEntity&&c!=="DOWNLOAD_STATE_FAILED"?[Yd("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:gq(e.policyEntity)&&g!=="TRANSFER_STATE_FAILED"&&g!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?g==="TRANSFER_STATE_PAUSED_BY_USER"?[Yd("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.cL(g)?[Yd("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:e.videoEntity.lengthSeconds?g9q(e.videoEntity.lengthSeconds,k):[]:
[Yd("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
g9q=function(e,g){var c=[{thumbnailOverlayTimeStatusRenderer:{text:_.uB(e5A({seconds:e})),style:"DEFAULT"}}];g&&(e=g<=0||e<=0?0:g>=e?100:Math.ceil(g*100/e),e>0&&c.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:e}}));return c};
kAV=function(e,g,c,k,I){if(g==="TRANSFER_STATE_UNKNOWN"||!e)return{};if(_.cL(g)||g==="TRANSFER_STATE_PRE_TRANSFER")var J=[Yd("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var q,L;if(g==="TRANSFER_STATE_COMPLETE"&&((q=e.mainPlaylistEntity)==null?0:(L=q.videos)==null?0:L.length)){var n;e=(J=e.mainPlaylistEntity)==null?void 0:(n=J.videos)==null?void 0:n.length;J=(J=FwK(e))?{thumbnailOverlayBottomPanelRenderer:{text:_.uB(J),icon:{iconType:"PLAYLISTS"}}}:void 0;J=[uhg(),Object.assign({},
J!=null?J:{})]}else J=[]}a:if(g==="TRANSFER_STATE_PRE_TRANSFER")c=d$(_.C_("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(g==="TRANSFER_STATE_TRANSFER_IN_QUEUE")c=d$(_.C_("WAITING_TO_DOWNLOAD"));else if(_.cL(g))c=Math.floor(c*100).toString(),c=d$(_.C_("DOWNLOADING_PERCENT",{percent:c},"Downloading... "+c+"%"));else{if(k&&(_.G("playlist_is_offline_selector_killswitch")&&(I=_.Ss().resolve(_.zI).isNetworkAvailable()),I)){c=sDq(_.C_("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
l6A(k));break a}c=void 0}g=g==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.C_("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},J.length?{thumbnailOverlays:J}:{},c?{viewPlaylistText:c}:{viewPlaylistText:_.PL("")},g.length?{badges:g}:{})};
IfK=function(e,g,c,k,I,J){if(g==="TRANSFER_STATE_UNKNOWN"||!e)return{};if(k==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var q=c8e(e,g,k);if(e.videoEntity&&!e.policyEntity&&k!=="DOWNLOAD_STATE_FAILED"){var L=_.C_("WAITING_TO_DOWNLOAD");if(L)return{shortViewCountText:_.PL(L),publishedTimeText:void 0,thumbnailOverlays:q}}if(!gq(e.policyEntity)){J=e.policyEntity&&!i8K(e.policyEntity)?_.C_("DOWNLOAD_EXPIRED",{},"Download expired"):
_.C_("TRANSFER_FAILED",{},"Download failed");var n;if((n=e.policyEntity)==null?0:n.shortMessageForDisabledAction)J=e.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:d$(J),publishedTimeText:void 0,thumbnailOverlays:q}}if(g==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.PL(_.C_("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:q};if(g==="TRANSFER_STATE_FAILED"||g==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.PL(_.C_("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:q};if(g==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(n=_.C_("WAITING_TO_DOWNLOAD"),k==="DOWNLOAD_STATE_PAUSED"&&(n=_.C_("DOWNLOAD_PAUSED",{},"Download paused")),n))return{shortViewCountText:_.PL(n),publishedTimeText:void 0,thumbnailOverlays:q};if(_.cL(g))return e=Math.floor(c*100).toString(),{shortViewCountText:_.PL(_.C_("DOWNLOADING_PERCENT",{percent:e},"Downloading... "+e+"%")),publishedTimeText:void 0,thumbnailOverlays:q};g=void 0;e.videoEntity.publishedTimestampMillis&&
(g=new Date,I&&(g=new Date(I)),g=d$(eup(new Date(Number(e.videoEntity.publishedTimestampMillis)),g)));I=[];_.G("kevlar_woffle_badge_killswitch")||(I=[{metadataBadgeRenderer:{label:_.C_("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var R;e=d$((R=e.videoEntity.localizedStrings)==null?void 0:R.viewCount);return Object.assign({},J?{shortViewCountText:void 0}:{shortViewCountText:e},J?{}:{publishedTimeText:g},{badges:I,thumbnailOverlays:q})};
v9p=function(e,g){e=e===void 0?J86:e;switch(g.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:g.payload.playlistId,inviteLinkURL:g.payload.inviteLinkUrl};default:return e}};
q8A=function(e,g){e=e===void 0?wGt:e;switch(g.type){case "SET_CURRENT_FORM_ID":return g=g.payload.formId,e.currentFormId===g?e:{currentFormId:g,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var c=g.payload;g=c.groupId;c=c.command;if(e.currentFormId){var k=Object.assign({},e.commandsMap);k[g]=c;e=Object.assign({},e,{commandsMap:k})}return e;case "RESET_COMMAND_MAP":return Object.assign({},e,{commandsMap:{}});default:return e}};
r8C=function(e,g){e=e===void 0?LDz:e;switch(g.type){case "UPDATE_CANVAS_MODE":return Object.assign({},e,{currentMode:g.payload.currentMode});default:return e}};
n9C=function(e,g){e=e===void 0?afC:e;switch(g.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},e,{guideIsExpanded:g.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},e,{scrollAtTop:g.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},e,{guideIsVisibleButNotPersistent:g.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},e,{miniplayerIsActive:g.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},e,{singleOptionSurveyIsActive:g.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},e,{slimlineSurveyRatingSelectedIndex:g.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},e,{richGridMiniMode:g.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},e,{richGridItemsPerRow:g.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},e,{richGridSlimItemsPerRow:g.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},e,{richGridContainerWidth:g.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},e,{richGridStyle:g.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},e,{currentPageType:g.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},e,{inlinePreviewIsActive:g.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},e,{inlinePreviewIsEnabled:g.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},e,{darkModeIsEnabled:g.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
e,{miniplayerPlaybackState:g.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},e,{tabGesturesIsActive:g.payload});case "SET_ONLINE_STATUS":return Object.assign({},e,{isOnline:g.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},e,{chipBarIsSticky:g.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},e,{frostedGlassMode:g.payload});default:return e}};
RuC=function(){return _.G("kevlar_disable_theater_mode_persistence")?!1:_.dH("START_IN_THEATER_MODE")};
WDA=function(e,g){e=e===void 0?E9v:e;switch(g.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},e,{transcription:g.payload});case "SET_OVERLAY_STATE":return Object.assign({},e,{overlay:g.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return e}};
j8p=function(){return xQ(Object.assign({},{continuation:bSe,download:huC,canvas:r8C,reportChannelAbuse:XGK,share:GAe,talkToRecs:x6C,ui:n9C,voiceSearch:WDA,watch:D6W,ypc:$6g,shorts:Y8p,radioButtonGroup:q8A,collabInviteLink:v9p},ffK))};
m6C=function(){return _.G("web_player_entities_middleware")?new pU(j8p(),[iSq,Ph6]):new pU(j8p(),[iSq])};
_.Tt=function(){pGt||(pGt=m6C());return pGt};
Tev=function(e,g,c){if(e.length)return{titleText:_.uB(g!=null?g:_.C_("DOWNLOADS",void 0,"Downloads")),contents:e.map(function(k){var I=k.videoEntity;k={videoId:I.videoId,title:d$(I.title),shortBylineText:d$(k.channelEntity.title),thumbnail:I.thumbnail};var J=I.videoId?xd(_.Tt().getState(),I.videoId):0;I.videoId&&c?k.navigationEndpoint=_.Fb(I.videoId,c,void 0,void 0,J):I.videoId&&(k.navigationEndpoint=T4p(I.videoId,J,I.lengthSeconds));I.lengthSeconds&&(k.thumbnailOverlays=g9q(I.lengthSeconds,J));return{playlistPanelVideoRenderer:k}}),
totalVideos:e.length}};
lfp=function(e){return(e=(0,_.n0.getValueByKeys)(e,"playlistId"))?{playlistId:e}:null};
A8K=function(){return{}};
s8V=function(e,g){return new _.Il(function(c,k){e.then(function(I){if(I){if(I=g(I))return c(I);k()}},k)})};
FDv=function(e){var g,c,k,I=(g=e.contents)==null?void 0:(c=g.twoColumnWatchNextResults)==null?void 0:(k=c.autoplay)==null?void 0:k.autoplay,J,q,L;g=(J=e.contents)==null?void 0:(q=J.twoColumnWatchNextResults)==null?void 0:(L=q.playlist)==null?void 0:L.playlist;return I&&g&&g.playlistId?{rawResponse:e,autoplayRenderer:I,playlistPanelRenderer:g,playlistId:g.playlistId}:null};
d6V=function(e){var g=g===void 0?"UNKNOWN_INTERFACE":g;if(e.length===1)return e[0];var c=uFp[g];if(c){c=new RegExp(c);for(var k=_.w(e),I=k.next();!I.done;I=k.next())if(I=I.value,c.exec(I))return I}var J=[];Object.entries(uFp).forEach(function(q){var L=_.w(q);q=L.next().value;L=L.next().value;g!==q&&J.push(L)});
c=new RegExp(J.join("|"));e.sort(function(q,L){return q.length-L.length});
k=_.w(e);for(I=k.next();!I.done;I=k.next())if(I=I.value,!c.exec(I))return I;return e[0]};
_.lm=function(e){return"/youtubei/v1/"+d6V(e)};
_.Aw=function(e,g){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:e}}},g!==void 0?{durationHintMs:g}:{})}};
_.so=function(e,g){return _.Aw(_.PL(e),g)};
zuW=function(e,g){var c={mode:"NORMAL"};e&&(c.autoplayVideo=e.navigationEndpoint,c.nextButtonVideo=e.navigationEndpoint);g&&(c.previousButtonVideo=g.navigationEndpoint);return c};
U6A=function(e,g,c){if(!c||!c.sets)return{sets:[zuW(e,g)]};var k=c.sets.find(function(q){return q.mode==="NORMAL"}),I=(0,_.n0.unsafeClone)(c);
if(!k)return I.sets.push(zuW(e,g)),I;if(!e)return c;k=_.n0.getValueByKeys.apply(null,[k].concat(_.KY(HSA)));var J=_.n0.getValueByKeys.apply(null,[e].concat(_.KY(Q8W)));if(k===J)return c;I.sets=I.sets.filter(function(q){return q.mode!=="NORMAL"});
I.sets.push(zuW(e,g));return I};
o96=function(e){return!!e.playlistPanelVideoRenderer&&!e.playlistPanelVideoRenderer.unplayableText};
ZSv=function(e){return!!e.playlistPanelVideoRenderer&&!!e.playlistPanelVideoRenderer.title};
VZq=function(e,g){if(g.contents&&!(e>=g.contents.length)&&(e=g.contents.slice(e).find(o96)))return e.playlistPanelVideoRenderer};
tZ8=function(e,g){if(g.contents)return(g=g.contents.find(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId===e}))?g.playlistPanelVideoRenderer:void 0};
Bee=function(e,g){return g.contents?g.contents.findIndex(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId===e}):-1};
Nep=function(e,g){return g.contents?g.contents.findIndex(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.playlistSetVideoId===e}):-1};
S8U=function(e,g){e.contents&&g!==-1&&e.contents.splice(g,1).length===1&&e.totalVideos!==void 0&&(--e.totalVideos,delete e.videoCountText)};
_.y8C=function(e){var g=[];if(!e||!e.contents)return g;e=_.w(e.contents);for(var c=e.next();!c.done;c=e.next())c=c.value,c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId&&g.push(c.playlistPanelVideoRenderer.videoId);return g};
_.KDt=function(e){if(e&&e.contents)return(e=e.contents.find(function(g){return!!g.playlistPanelVideoRenderer&&!!g.playlistPanelVideoRenderer.selected})||e.contents[e.currentIndex])?e.playlistPanelVideoRenderer:void 0};
OSC=function(e,g,c,k,I,J,q){I=I===void 0?!1:I;J=J===void 0?!1:J;q=q===void 0?!1:q;if(e.contents&&e.contents.length!==0){k&&(e.contents=e.contents.filter(k));k=e.contents.length;for(var L=0;L<k;L++){var n=e.contents[L].playlistPanelVideoRenderer;n&&(L===g?(J&&delete n.menu,n.indexText=_.PL("\u25b6")):I||e.isInfinite||n.indexText===void 0?delete n.indexText:n.indexText=_.PL((L+1+c).toString()))}e.currentIndex=g+c;q&&(delete e.videoCountText,e.totalVideos=k)}};
_.Fi=function(e){e=ZCC(e);if(e){var g=e.length;var c=-15%g;c<0&&(c=g+c);e=e.slice(g-c)+e.slice(0,g-c)}else e="";c="";for(g=0;g<e.length&&e[g]!==MZt;g++)c+=e[g];return c};
_.Cht=function(e,g){var c=document.body;g=g===void 0?function(L){return L}:g;
var k,I=null;e=_.w(e);for(k=e.next();!k.done;k=e.next()){var J=k.value;k="div";J[2]&&(k=g(J[2]));k=document.createElement(k);I||(I=k);var q=J[0];J=J[1];q&&(k.id=g(q));if(J)for(J=_.w(J),q=J.next();!q.done;q=J.next())k.classList.add(g(q.value));c.appendChild(k);c=k}return[I,c]};
e$W=function(e,g){for(var c="",k=0;k<g;k++)c+=e.charAt(Math.floor(Math.random()*e.length));return c};
um=function(e){return e$W("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",e)};
dq=function(e){return e$W("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",e)};
zt=function(e){return e$W("0123456789",e)};
gYz=function(){var e=performance.now(),g=new Date;var c="2."+g.getFullYear()+String(g.getMonth()+1).padStart(2,"0")+String(g.getDate()).padStart(2,"0");for(var k,I=Math.floor(Math.random()*11)+15,J=[],q=0;q<I;q++)J.push(Math.floor(Math.random()*26476865)+24547720);k=J.join(",");var L=um(10),n=um(100),R=um(102),W=um(106),b=um(108),h=um(11),X=um(1140),D=um(123),f=um(14),l=um(16),A=um(1900),d=um(23),S=um(26),V=um(34),Q=um(397),y=um(44),O=um(5),Jq=um(72),LC=um(74),bW=um(75),RA=um(88),Xg=um(91),Fg="rr3---sn-q4flrnsd rr1---sn-q4fl6nds rr4---sn-ntq7yned rr4---sn-q4flrnes rr3---sn-hgn7yn7e rr1---sn-q4flrnsl rr3---sn-q4fl6nd6 rr4---sn-5hne6n6e rr1---sn-ntqe6n76 rr5---sn-q4flrnee rr1---sn-ntq7ynle rr2---sn-q4fl6nsl rr1---sn-5hnekn7s rr2---sn-q4fl6nsr rr3---sn-t0a7ln7d rr1---sn-hgn7yn7e rr4---sn-q4flrnsk rr2---sn-q4fl6ndl rr4---sn-ntqe6nee rr3---sn-q4fl6nsy".split(" ");
var oA=Fg[Math.floor(Math.random()*Fg.length)];var Zt=(new Date("2010-01-01")).getTime();var Ev=(new Date(Zt+Math.random()*((new Date).getTime()-Zt))).toISOString().split("T")[0];for(var an,V6=[],bs=0;bs<4;bs++)V6.push(Math.floor(Math.random()*100));an=V6.join(".");var f1=Number(zt(5)),hk=Number(zt(6)),Pq=Number(zt(7)),vq=Number(zt(9)),hq=zt(1),zv=zt(10),XM=zt(16),Su=zt(19),p1=zt(2),C1=zt(20),mz=zt(21),Ov=zt(3),Rx=zt(4),V4=zt(5),to=zt(6),L1=zt(7),Wq=zt(8),Ww=zt(9);var Bw=e$W("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var Uv=[dq(5),dq(5),dq(5)].join("%2C"),jz=[zt(3),zt(5),zt(5)].join("%2C"),J0=dq(0),on=dq(1),ng=dq(10),MM=dq(108),I3=dq(11),kF=dq(12),F1=dq(13),Uu=dq(14),bK=dq(15),ZE=dq(16),b0=dq(17),me=dq(18),Q6=dq(19),y6=dq(2),Gq=dq(20),$X=dq(22),PJ=dq(23),mO=dq(24),is=dq(266),ju=dq(3),ox=dq(30),vJ=dq(34),xI=dq(35),Av=dq(36),oy=dq(4),o3=dq(40),E5=dq(43),en=dq(47),cV=dq(5),ie=dq(6),NW=dq(7),w4=dq(75),pf=dq(8),bb=dq(80),hZ=dq(9),xW="https://www."+dq(12)+".com",ko={},jY={},iF={},cO={},Cu={},I0={},hD={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:k}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:c},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+dq(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:c},{key:"client.name",value:"WEB"},{key:"client.fexp",value:k}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:mz+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+dq(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:o3,ypcGetOfflineUpsellEndpoint:{params:bb}},trackingParams:xI+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&cnr="+p1+"&ratebypass=yes&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&c=WEB&txp="+L1+"&n="+l+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:hk,width:640,height:360,lastModified:XM,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:L1,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+jz+"&mn="+
Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&cnr="+p1+"&ratebypass=yes&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&c=WEB&txp="+L1+"&n="+l+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+MM+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:hk,width:1280,
height:720,lastModified:XM,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:L1,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+jz+"&mn="+Uv+"&ms="+
Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Ww+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Pq,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Ww,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Pq,approxDurationMs:L1},{itag:248,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+jz+"&mn="+Uv+"&ms="+Uv+"&mv="+
on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fwebm&ns="+mO+"&gir="+ju+"&clen="+Ww+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:Pq,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Ww,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Pq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:399,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Ww+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Pq,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Ww,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Pq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:136,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Ww+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Pq,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Ww,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:hk,approxDurationMs:L1},{itag:247,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+jz+"&mn="+
Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fwebm&ns="+mO+"&gir="+ju+"&clen="+Ww+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:Pq,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Ww,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:398,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Ww+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Pq,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Ww,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:135,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:hk,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:hk,approxDurationMs:L1},{itag:244,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+jz+"&mn="+
Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fwebm&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+MM+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:hk,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:397,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:hk,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:134,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:hk,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:hk,highReplication:!0,approxDurationMs:L1},{itag:243,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fwebm&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:hk,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:396,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:hk,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:133,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:hk,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:hk,approxDurationMs:L1},{itag:242,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+jz+"&mn="+
Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fwebm&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:hk,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:395,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:hk,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:160,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:hk,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:f1,approxDurationMs:L1},{itag:278,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+jz+"&mn="+
Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fwebm&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:hk,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:f1,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:394,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&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="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=video%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:f1,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:f1,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:L1},{itag:140,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=audio%2Fmp4&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:hk,
initRange:{start:"0",end:"631"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:hk,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:L1,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+
p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=audio%2Fwebm&ns="+mO+"&gir="+ju+"&clen="+L1+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'audio/webm; codecs="opus"',bitrate:f1,initRange:{start:"0",end:"265"},indexRange:{start:Ov,
end:Rx},lastModified:XM,contentLength:L1,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:f1,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:L1,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=audio%2Fwebm&ns="+
mO+"&gir="+ju+"&clen="+L1+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'audio/webm; codecs="opus"',bitrate:f1,initRange:{start:"0",end:"265"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:L1,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:f1,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:L1,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+oA+".googlevideo.com/videoplayback?expire="+zv+"&ei="+d+"&ip="+an+"&id=o-AF"+E5+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+jz+"&mn="+Uv+"&ms="+Uv+"&mv="+on+"&mvi="+hq+"&pl="+p1+"&initcwndbps="+L1+"&siu="+hq+"&spc="+y+"&vprv="+hq+"&svpuc="+hq+"&mime=audio%2Fwebm&ns="+mO+"&gir="+ju+"&clen="+Wq+"&dur="+Wq+"&lmt="+XM+"&mt="+zv+"&fvip=3&keepalive="+ju+"&c=WEB&txp="+
L1+"&n="+ZE+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'audio/webm; codecs="opus"',bitrate:hk,initRange:{start:"0",end:"265"},indexRange:{start:Ov,end:Rx},lastModified:XM,contentLength:Wq,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:hk,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:L1,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="+Ww+"&docid="+h+"&ei="+d+"&feature="+L+"&fexp="+J0+"&ns="+y6+"&plid="+l+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+on+"&el="+ng+"&len="+Rx+"&of="+$X+
"&uga="+p1+"&vm="+is},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Ww+"&docid="+h+"&ei="+d+"&feature="+L+"&fexp="+J0+"&ns="+y6+"&plid="+l+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+on+"&el="+ng+"&len="+Rx+"&of="+$X+"&uga="+p1+"&vm="+is},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Ww+"&docid="+h+"&ei="+d+"&feature="+L+"&fexp="+J0+"&ns="+y6+"&plid="+l+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
on+"&el="+ng+"&len="+Rx+"&of="+$X+"&uga="+p1+"&vm="+is},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+d+"&m="+RA+"&oid="+$X+"&plid="+l+"&pltype="+NW+"&ptchn="+$X+"&ptk="+f+"&video_id="+h},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Ww+"&docid="+h+"&ei="+d+"&event="+Uu+"&feature="+L+"&fexp="+J0+"&ns="+y6+"&plid="+l+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+on},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
ZE+"&ver=2&cmt=1."+Ov+"&fmt="+Ov+"&fs=0&rt="+V4+"&euri&lact="+Ov+"&cl="+Ww+"&mos="+hq+"&volume=100&cbrand="+cV+"&cbr="+ie+"&cbrver="+an+"&c=WEB&cver="+c+"&cplayer=UNIPLAYER&cos="+hZ+"&cosver="+L1+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+p1+"&len="+Wq+"&fexp="+Uv+"&feature=g-high-rec&afmt="+Ov+"&muted=0&conn=1&docid="+h+"&ei="+d+"&plid="+l+"&vm="+dq(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
h+"&caps="+ju+"&opi="+Ww+"&xoaf="+hq+"&hl="+y6+"&ip="+an+"&ipbits="+hq+"&expire="+zv+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+an+"&key="+ju+"&lang="+O,name:{simpleText:oy},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+h+"&caps="+ju+"&opi="+Ww+"&xoaf="+hq+"&hl="+y6+"&ip="+an+"&ipbits="+hq+"&expire="+zv+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+an+"&key="+ju+"&kind="+ju+"&lang="+y6,name:{simpleText:NW},
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:I3,title:me,lengthSeconds:"1155",keywords:[ng,F1,cV,ie],channelId:mO,isOwnerViewing:!1,shortDescription:I3,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+Av+"G&rs="+vJ,width:168,height:94},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+Av+
"G&rs="+vJ,width:196,height:110},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+Av+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+Av+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+h+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:L1,author:F1,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:L1,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
$X+"/featured_channel.jpg?v="+pf,width:40,height:40}]},trackingParams:xI+"=",navigationEndpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{url:"/channel/"+mO,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:mO}},channelName:F1,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:ng}]},subscribed:!1,enabled:!0,type:"FREE",channelId:mO,showPreferences:!1,subscribedButtonText:{runs:[{text:Gq}]},unsubscribedButtonText:{runs:[{text:Gq}]},
trackingParams:xI+"=",unsubscribeButtonText:{runs:[{text:hZ}]},serviceEndpoints:[{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[mO],params:pf}},{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:o3,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:xI+"=",dialogMessages:[{runs:[{text:F1},
{text:b0},{text:Gq}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:oy}]},serviceEndpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[mO],params:pf}},accessibility:{label:bK},trackingParams:xI+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:I3}]},accessibility:{label:kF},
trackingParams:xI+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ng}},unsubscribeAccessibility:{accessibilityData:{label:bK}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Wq},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[mO],
params:pf}},unsubscribeCommand:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[mO],params:pf}},addToWatchLaterCommand:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:I3,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:I3}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+h+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Av+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+I3,width:1280,
height:720},title:{simpleText:I3},description:{simpleText:I3},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Gq,externalChannelId:mO,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:L1,category:"Travel & Events",publishDate:Ev,ownerChannelName:F1,uploadDate:Ev}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:kF},trackingParams:xI+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:o3,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:xI+"="}}],headerText:{simpleText:bK},icon:{infoCardIconRenderer:{trackingParams:xI+"="}},closeButton:{infoCardIconRenderer:{trackingParams:xI+"="}},trackingParams:xI+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:xI+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+I3+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Bw,interpreterSafeUrl:(ko.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+ox+".js",ko),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Gq},{text:bK,bold:!0}]},endpoint:{clickTrackingParams:o3,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:xI+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:cV}]},actionButton:{buttonRenderer:{text:{runs:[{text:Q6}]},navigationEndpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+h,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
h,target:"TARGET_NEW_WINDOW"}},trackingParams:xI+"="}},trackingParams:xI+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Jq+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Jq+"=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:L1,endMs:L1,title:{accessibility:{accessibilityData:{label:cV}},simpleText:Gq},metadata:{simpleText:Gq},callToAction:{simpleText:Gq},dismiss:{simpleText:oy},endpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{url:"/channel/"+mO,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:mO}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:kF}]},subscribed:!1,enabled:!0,type:"FREE",channelId:mO,showPreferences:!1,
subscribedButtonText:{runs:[{text:F1}]},unsubscribedButtonText:{runs:[{text:pf}]},trackingParams:xI+"=",unsubscribeButtonText:{runs:[{text:bK}]},serviceEndpoints:[{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[mO],params:pf}},{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:o3,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:xI+
"=",dialogMessages:[{runs:[{text:Uu},{text:Q6},{text:me}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:cV}]},serviceEndpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[mO],params:pf}},accessibility:{label:pf},trackingParams:xI+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:oy}]},
accessibility:{label:me},trackingParams:xI+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Gq}},unsubscribeAccessibility:{accessibilityData:{label:pf}}}},trackingParams:xI+"=",isSubscribe:!0,id:C1}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+Av+"G&rs="+V,width:168,height:94},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+Av+"G&rs="+vJ,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+Av+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+Av+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+h+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:L1,endMs:L1,title:{accessibility:{accessibilityData:{label:F1}},simpleText:NW},metadata:{simpleText:I3},endpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
I3,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:I3,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+oA+".googlevideo.com/videoplayback?source=youtube&oeis="+hq+"&c=WEB&oad="+Rx+"&ovd="+Rx+"&oaad="+V4+"&oavd="+V4+"&ocs="+Ov+"&oewis="+hq+"&oputc="+hq+"&ofpcc="+hq+"&siu="+hq+"&msp="+hq+"&odepv="+hq+
"&id=o-AF"+E5+"&ip="+an+"&initcwndbps="+L1+"&mt="+zv+"&oweuc="+J0}}}}},trackingParams:xI+"=",id:C1,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:hZ}},simpleText:b0},style:"DEFAULT"}}]}}],startMs:L1,trackingParams:xI+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:hq,offsetEndMilliseconds:V4},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ww+";dc_trk_cid="+Ww+";dc_dbm_token="+b+";ord="+zv+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hq+";dc_rui="+hq+";dc_exteid="+C1+";dc_av="+Ov+";dc_sk="+hq+";dc_ctype="+p1+";dc_ref=http://www.youtube.com/video/"+I3+";dc_pubid="+hq+";dc_btype=23?gclid="+Xg+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+hq+"&ns="+hq+"&event="+hq+"&device="+hq+"&content_v="+h+"&el="+ng+"&ei="+d+"&devicever="+c+"&bti="+L1+"&format="+to+"&break_type="+hq+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+hq+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+an+"&slot_pos="+hq+"&slot_len="+hq+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+jz+"&ad_len="+V4+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
I3+"&aqi="+d+"&ad_rmp="+hq+"&sli="+hq}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+
";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+to+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+L1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&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"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&ctype="+Ov+"&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"+
X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_engaged_view&ctype="+Ov+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+to+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Ww+";dc_trk_cid="+Ww+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hq+";ord="+Ww+";dc_rui="+hq+";dc_exteid="+Su+";dc_av="+hq+";dc_sk="+hq+";dc_ctype="+p1+";dc_pubid="+hq+";dc_btype=3?gclid="+Xg+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+PJ+"&ad_cpn=[AD_CPN]&id="+ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&dc_pubid="+hq+"&dc_exteid="+C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+PJ+"&ad_cpn=[AD_CPN]&id="+ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+hq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&avm="+hq+"&dc_pubid="+hq+"&dc_exteid="+
C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&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="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
R+"&sig="+PJ+"&ad_cpn=[AD_CPN]&id="+ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+hq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&dc_pubid="+hq+"&dc_exteid="+C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+to+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+to+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:o3,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+
Ov+"&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/"+h+"/mqdefault.jpg",width:320,height:180}]},trackingParams:xI+"="},trackingParams:xI+
"=",templatedCountdown:{templatedAdText:{text:Gq,isTemplated:!0,trackingParams:xI+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ie,isTemplated:!1,trackingParams:xI+"="},trackingParams:xI+"="}},trackingParams:xI+"=",skipOffsetMilliseconds:5E3}},trackingParams:xI+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:kF},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:xI+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:bK,isTemplated:!1,trackingParams:xI+"="},trackingParams:xI+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:hZ,isTemplated:!0,trackingParams:xI+"="}},trackingParams:xI+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:o3,openPopupAction:{popup:{aboutThisAdRenderer:{url:(jY.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+A+"&hl="+y6+"&origin=www.youtube.com&ata_theme="+oy,jY),trackingParams:xI+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:xI+"="}},hoverText:{runs:[{text:ie}]},trackingParams:xI+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+en+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:xI+"="},headline:{text:I3,isTemplated:!1,trackingParams:xI+"="},description:{text:pf,
trackingParams:xI+"="},actionButton:{buttonRenderer:{text:{simpleText:NW},navigationEndpoint:{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ww+";dc_trk_cid="+Ww+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hq+";ord="+Ww+";dc_rui="+hq+";dc_exteid="+C1+";dc_av="+hq+";dc_sk="+hq+";dc_ctype="+p1+";dc_pubid="+hq+";dc_btype=3?gclid="+Xg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:xI+"="}},startMs:hq,trackingParams:xI+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Uu},elementId:F1}},elementId:Uu,trackingParams:xI+"=",legacyInfoCardVastExtension:me,sodarExtensionData:{siub:ng,bgub:F1,scs:b0,bgp:cV},externalVideoId:I3,adLayoutLoggingData:{serializedAdServingDataEntry:pf},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+en+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:xI+"="},
headline:{text:ZE,isTemplated:!1,trackingParams:xI+"="},description:{text:F1,isTemplated:!1,trackingParams:xI+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Q6},navigationEndpoint:{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ww+";dc_trk_cid="+Ww+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hq+";ord="+Ww+";dc_rui="+hq+";dc_exteid="+
C1+";dc_av="+hq+";dc_sk="+hq+";dc_ctype="+p1+";dc_pubid="+hq+";dc_btype=3?gclid="+Xg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+
hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:xI+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:xI+"="}},navigationEndpoint:{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ww+";dc_trk_cid="+
Ww+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hq+";ord="+Ww+";dc_rui="+hq+";dc_exteid="+C1+";dc_av="+hq+";dc_sk="+hq+";dc_ctype="+p1+";dc_pubid="+hq+";dc_btype=3?gclid="+Xg+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+
D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:xI+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:xI+"="},abandonCommands:{commands:[{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&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="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+
hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:o3,commandExecutorCommand:{commands:[{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:oy,isTemplated:!1,trackingParams:xI+
"="},trackingParams:xI+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:I3},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+L1+";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="+Ww+";dc_trk_cid="+Ww+";ord="+zv+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hq+";dc_rui="+hq+";dc_exteid="+C1+";dc_av="+Ov+";dc_sk="+hq+";dc_ctype="+p1+";dc_ref=http://www.youtube.com/video/"+I3+";dc_pubid="+hq+";dc_btype=23?gclid="+Xg+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+hq+"&ns="+hq+"&event="+hq+"&device="+hq+"&content_v="+h+"&el="+ng+"&ei="+d+"&devicever="+c+"&bti="+L1+"&format="+to+"&break_type="+hq+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+hq+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+an+"&slot_pos="+hq+"&slot_len="+hq+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
jz+"&ad_len="+V4+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+I3+"&aqi="+d+"&ad_rmp="+hq+"&sli="+hq}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+to+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+
S+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+L1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&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"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&ctype="+Ov+"&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"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_engaged_view&ctype="+Ov+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+to+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+PJ+"&ad_cpn=[AD_CPN]&id="+
ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&dc_pubid="+hq+"&dc_exteid="+C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+
"&sig="+PJ+"&ad_cpn=[AD_CPN]&id="+ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+hq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&avm="+hq+"&dc_pubid="+hq+"&dc_exteid="+C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&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="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+PJ+"&ad_cpn=[AD_CPN]&id="+ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+hq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&dc_pubid="+hq+"&dc_exteid="+C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+to+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+to+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+
Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&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/"+h+"/mqdefault.jpg",width:320,height:180}]},trackingParams:xI+"="},trackingParams:xI+"=",templatedCountdown:{templatedAdText:{text:ZE,isTemplated:!0,trackingParams:xI+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ie,isTemplated:!1,trackingParams:xI+"="},trackingParams:xI+"="}},
trackingParams:xI+"=",skipOffsetMilliseconds:5E3}},trackingParams:xI+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Q6},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:xI+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Uu,isTemplated:!1,trackingParams:xI+"="},trackingParams:xI+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:cV,
isTemplated:!0,trackingParams:xI+"="}},trackingParams:xI+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:o3,openPopupAction:{popup:{aboutThisAdRenderer:{url:(iF.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+A+"&hl="+y6+"&origin=www.youtube.com&ata_theme="+oy,iF),trackingParams:xI+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:xI+"="}},hoverText:{runs:[{text:pf}]},trackingParams:xI+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+LC+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:xI+"="},headline:{text:Uu,isTemplated:!1,trackingParams:xI+"="},description:{text:NW,trackingParams:xI+"="},actionButton:{buttonRenderer:{text:{simpleText:hZ},navigationEndpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:xI+"="}},startMs:hq,trackingParams:xI+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:hZ},elementId:cV}},elementId:ie,trackingParams:xI+"=",legacyInfoCardVastExtension:Uu,sodarExtensionData:{siub:Uu,bgub:Uu,scs:NW,bgp:hZ},externalVideoId:I3,adLayoutLoggingData:{serializedAdServingDataEntry:NW},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+LC+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:xI+"="},headline:{text:Q6,
isTemplated:!1,trackingParams:xI+"="},description:{text:pf,isTemplated:!1,trackingParams:xI+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Gq},navigationEndpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:xI+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:xI+"="}},navigationEndpoint:{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+
hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:xI+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:xI+"="},abandonCommands:{commands:[{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&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="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:o3,commandExecutorCommand:{commands:[{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:F1,isTemplated:!1,trackingParams:xI+"="},trackingParams:xI+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:bK},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hq+";dc_exteid="+C1+";met="+hq+";ecn"+hq+"="+hq+";etm1="+hq+";eid1="+
L1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:NW}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:F1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:V4,offsetEndMilliseconds:to},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+p1+"&token=ALHj"+Q+"&index="+hq+"&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="+c+"&m_pos_ms="+V4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:oy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:to,offsetEndMilliseconds:to},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+Ov+"&token=ALHj"+Q+"&index="+hq+"&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="+
c+"&m_pos_ms="+to}},adSlotLoggingData:{serializedSlotAdServingDataEntry:I3}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:to,offsetEndMilliseconds:to},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+Ov+"&token=ALHj"+Q+"&index="+hq+"&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="+
c+"&m_pos_ms="+to}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ie}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:to,offsetEndMilliseconds:to},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+Ov+"&token=ALHj"+Q+"&index="+hq+"&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="+
c+"&m_pos_ms="+to}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pf}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:to,offsetEndMilliseconds:p1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+Ov+"&token=ALHj"+Q+"&index="+hq+"&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="+
c+"&m_pos_ms="+to}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Gq}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:p1,offsetEndMilliseconds:p1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+p1+"&token=ALHj"+Q+"&index="+hq+"&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="+
c+"&m_pos_ms="+p1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pf}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ng,isTemplated:!1,trackingParams:xI+"="},description:{text:pf,isTemplated:!1,trackingParams:xI+"="},actionButton:{buttonRenderer:{text:{simpleText:kF},navigationEndpoint:{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Ww+";dc_trk_cid="+Ww+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hq+";ord="+Ww+";dc_rui="+hq+";dc_exteid="+C1+";dc_av="+hq+";dc_sk="+hq+";dc_ctype="+p1+";dc_pubid="+hq+";dc_btype=3?gclid="+Xg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:xI+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+en+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:xI+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bW+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:xI+"="},navigationEndpoint:{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ww+";dc_trk_cid="+Ww+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hq+";ord="+Ww+
";dc_rui="+hq+";dc_exteid="+C1+";dc_av="+hq+";dc_sk="+hq+";dc_ctype="+p1+";dc_pubid="+hq+";dc_btype=3?gclid="+Xg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:xI+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:o3,openPopupAction:{popup:{aboutThisAdRenderer:{url:(cO.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+A+"&hl="+y6+"&origin=www.youtube.com&ata_theme="+oy,cO),trackingParams:xI+"="}},popupType:"DIALOG"}},trackingParams:xI+"="}},hoverText:{runs:[{text:me}]},trackingParams:xI+"="}},adVideoId:I3,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ie},associatedCompositePlayerBytesLayoutId:ZE}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:ng}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:hZ,isTemplated:!1,trackingParams:xI+"="},description:{text:pf,isTemplated:!1,trackingParams:xI+"="},actionButton:{buttonRenderer:{text:{simpleText:Uu},navigationEndpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+
D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:xI+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+LC+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:xI+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+w4+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:xI+"="},navigationEndpoint:{clickTrackingParams:o3,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+
hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:xI+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:o3,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Cu.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+A+"&hl="+y6+"&origin=www.youtube.com&ata_theme="+oy,Cu),trackingParams:xI+"="}},popupType:"DIALOG"}},trackingParams:xI+"="}},
hoverText:{runs:[{text:cV}]},trackingParams:xI+"="}},adVideoId:I3,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+I3+"&cid="+S+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ie},associatedCompositePlayerBytesLayoutId:ZE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ng}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ZE,
isTemplated:!1,trackingParams:xI+"="},description:{text:Uu,isTemplated:!1,trackingParams:xI+"="},actionButton:{buttonRenderer:{text:{simpleText:ZE},navigationEndpoint:{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ww+";dc_trk_cid="+Ww+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hq+";ord="+Ww+";dc_rui="+hq+";dc_exteid="+C1+";dc_av="+hq+";dc_sk="+hq+";dc_ctype="+
p1+";dc_pubid="+hq+";dc_btype=3?gclid="+Xg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+
V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:xI+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+en+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:xI+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bW+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:xI+
"="},navigationEndpoint:{clickTrackingParams:o3,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ww+";dc_trk_cid="+Ww+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hq+";ord="+Ww+";dc_rui="+hq+";dc_exteid="+C1+";dc_av="+hq+";dc_sk="+hq+";dc_ctype="+p1+";dc_pubid="+hq+";dc_btype=3?gclid="+Xg+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+D+"AxAA&ase=2&num="+hq+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+xW+"&label=video_click_to_advertiser_site&ctype="+Ov+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:xI+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:o3,openPopupAction:{popup:{aboutThisAdRenderer:{url:(I0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+A+"&hl="+y6+"&origin=www.youtube.com&ata_theme="+oy,I0),trackingParams:xI+"="}},popupType:"DIALOG"}},trackingParams:xI+
"="}},hoverText:{runs:[{text:hZ}]},trackingParams:xI+"="}},adVideoId:I3,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+D+"AxAA&sigh="+h+"&cid="+S+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:F1},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:ZE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:me}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:ox,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:ox,command:{innertubeCommand:{clickTrackingParams:o3,ypcGetOfflineUpsellEndpoint:{params:bb}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:xI+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:zv,nanos:vq}}}},yV=JSON.stringify(hD),eA=performance.now()-e;return{objectRepresentation:hD,jsonRepresentation:yV,generationTime:eA}};
ciK=function(e,g){if(e===g)return!0;if(!e||!g||typeof e!==typeof g)return!1;if(e instanceof Array&&g instanceof Array){if(e.length!==g.length)return!1;for(var c=0;c<e.length;c++)if(!ciK(e[c],g[c]))return!1;return!0}if(typeof e==="object"&&typeof g==="object"&&e&&g){for(c in e)if(!(c in g&&ciK(e[c],g[c])))return!1;for(var k in g)if(!(k in e))return!1;return!0}return!1};
_.Q8=function(){if(!HL){HL=new K0(new kkC);var e=_.MN("client_streamz_web_flush_count",-1);e!==-1&&(HL.invocationLimit=e)}return HL};
Uo=function(e,g,c,k){if(e===g)return!0;if(Array.isArray(e)&&Array.isArray(g)){if(e.length!==g.length)return!1;for(var I=0;I<e.length;I++)if(!Uo(e[I],g[I],c,k))return!1;return!0}if(e instanceof Set||g instanceof Set){if(e instanceof Set&&g instanceof Set){if(e.size!==g.size)return!1;k=_.w(e.values());for(I=k.next();!I.done;I=k.next())if(!g.has(I.value))return!1;return!0}return!1}if(e instanceof Function){if(k)return!0;e.name===""&&_.jW(Error("Rf"),"ERROR");return!1}if(e instanceof Date&&g instanceof
Date)return e.getTime()===g.getTime();if(e instanceof Object&&g instanceof Object){if(IsV(e)&&IsV(g))try{return e.equals(g)}catch(q){_.jW(Error("Sf`"+q),"ERROR")}I=Object.getOwnPropertyNames(e).filter(function(q){return c?e[q]!==void 0:!0});
var J=Object.getOwnPropertyNames(g).filter(function(q){return c?g[q]!==void 0:!0});
if(I.length!==J.length)return!1;I=_.w(I);for(J=I.next();!J.done;J=I.next())if(J=J.value,!Uo(e[J],g[J],c,k))return!1;return!0}return!1};
IsV=function(e){e=Object.getPrototypeOf(e).equals;return e instanceof Function&&e.length===1};
_.w1e=function(){return _.r(function(e){if(e.nextAddress==1)return Jiz!==2?e.jumpTo(2):e.yield(vY6(),3);e.nextAddress!=2&&(Jiz=e.yieldResult);return e.return(Jiz)})};
_.riv=function(){return _.r(function(e){if(e.nextAddress==1)return _.G("ab_pl_man")?qNz!==2?e.jumpTo(2):e.yield(LHV(),3):e.return(1);e.nextAddress!=2&&(qNz=e.yieldResult);return e.return(qNz)})};
R$A=function(){return _.r(function(e){if(e.nextAddress==1)return _.G("ab_fk_sk_cl")?asz!==2?e.jumpTo(2):e.yield(nYA(),3):e.return(1);e.nextAddress!=2&&(asz=e.yieldResult);return e.return(asz)})};
_.b$A=function(){return _.r(function(e){if(e.nextAddress==1)return _.G("ab_det_apb_b")?EYt!==2?e.jumpTo(2):e.yield(WHe(),3):e.return(1);e.nextAddress!=2&&(EYt=e.yieldResult);return e.return(EYt)})};
GkU=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield(Promise.all([_.w1e(),_.b$A(),_.riv(),R$A()]),2);if(g.nextAddress!=3)return h$e()?g.return(!0):g.yield(_.X1U(),3);e=g.yieldResult;return g.return(e===0)})};
h$e=function(){var e=!1,g=function(c,k){xFW.increment(k,c);c===0&&(e=!0)};
g(_.DFW(),"j.s_");g(Jiz,"f.i_");g(EYt,"a.b_");g(qNz,"p.m_");g(asz,"i.f_");$Fp===2&&($Fp=_.YNz(fsC));g($Fp,"e.h_");_.G("ks_det_gpbl")||g(_.jfC(),"p.i_");_.G("ks_get_o_pp")||g(_.i$e(),"g.o_");_.G("ab_deg_unex_thr")||g(_.PXC(),"a.o_");g(mFV,"s.t_");_.G("ab_det_sc_inj_enf")&&g(_.p1U(),"s.i_");g(TRC,"d.p_");g(_.lsC(_.oq),"o.p_");g(_.AiV()===0?0:_.sfp(),"o.a_");return _.G("debug_sk_em_precheck")?!0:e};
ur6=function(){var e=[].concat(_.KY(FHC));try{var g=gYz();e.push({jsonRepresentation:g.jsonRepresentation,objectRepresentation:g.objectRepresentation})}catch(c){e=[].concat(_.KY(FHC))}return e};
dF6=function(){var e=["adPlacements","adSlots"];try{return e.filter(function(){return!0}).length!==e.length?0:1}catch(g){return 0}};
_.i$e=function(){if(dF6()===0)return 0;var e=gYz(),g=e.objectRepresentation,c=(0,_.n0.unsafeClone)(g),k=[];if(g&&typeof g==="object")for(var I in g)k.push(I);else return 4;e=e.objectRepresentation.adPlacements;if(!(e&&e.length>0))return 4;try{if(!ciK(k,Object.getOwnPropertyNames(g)))return 0}catch(J){return 0}return ciK(c,g)?1:0};
_.lsC=function(e){if(!e||!e.length||typeof e==="string")return 0;for(var g=Object.getOwnPropertyNames(Object.prototype),c=0;c<e.length;c++)for(var k=_.Fi(e[c]),I=_.w(g),J=I.next();!J.done;J=I.next())if(k===J.value)return 0;return 1};
z$e=function(e){var g=_.Fi(e[1]);if(e[0]===null)return g;e=e[0];for(var c={},k=0;k<e.length;k++){var I=_.Fi(e[k]);if(k===0)c[I]=g;else{var J={};J[I]=c;c=J}}return c};
_.AiV=function(){for(var e=_.ZY,g=0;g<e.length;g++){var c=z$e(e[g]),k=[];k.push(c);if(k.length===0)return 0}return 1};
_.sfp=function(){for(var e=_.ZY,g={},c=0;c<e.length;g={u2l:void 0},c++){var k=[z$e(e[c])];g.u2l=[];k.forEach(function(I){return function(J){I.u2l[I.u2l.length]=J}}(g));
if(g.u2l.length===0)return 0}return 1};
_.DFW=function(){for(var e=_.w(ur6()),g=e.next();!g.done;g=e.next()){var c=g.value;g=c.jsonRepresentation;c=c.objectRepresentation;try{var k=JSON.parse(g);if(!Uo(k,c,!1,!1))return 0}catch(I){return 0}}return 1};
_.p1U=function(){try{var e=_.g1("ab_det_sc_inj_val");e.length===1&&e[0]===""&&(e=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var g=document.querySelectorAll("script"),c=_.w(g),k=c.next();!k.done;k=c.next())for(var I=k.value,J=_.w(e),q=J.next();!q.done;q=J.next()){var L=q.value;g=void 0;if((g=I.textContent)==null?0:g.includes(L))return 0}}catch(n){return 4}return 1};
_.X1U=function(){var e,g,c,k,I,J,q;return _.r(function(L){switch(L.nextAddress){case 1:_.lj(L,2),e=_.w(FHC),g=e.next();case 4:if(g.done)return L.return(1);k=c=g.value;I=k.jsonRepresentation;J=k.objectRepresentation;return L.yield((new Response(I,{status:200})).json(),7);case 7:q=L.yieldResult;if(!Uo(q,J,!1,!1))return L.return(0);g=e.next();L.jumpTo(4);break;case 2:return _.Qb(L),L.return(4)}})};
_.PXC=function(){try{btoa("abc")}catch(e){return 0}return 1};
vY6=function(){var e,g,c,k,I,J,q,L,n,R,W;return _.r(function(b){switch(b.nextAddress){case 1:_.lj(b,2),e=_.w(ur6()),g=e.next();case 4:if(g.done)return b.return(1);k=c=g.value;I=k.jsonRepresentation;J=k.objectRepresentation;q=btoa(I);L="data:application/json;base64,"+q;n=new Request(L);Object.defineProperty(n,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(n,"method",{get:function(){return"POST"}});
Object.defineProperty(n,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(n,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(n,"body",{get:function(){return new ReadableStream}});
return b.yield(fetch(n),7);case 7:return R=b.yieldResult,b.yield(R.json(),8);case 8:W=b.yieldResult;if(!Uo(W,J,!1,!1))return b.return(0);g=e.next();b.jumpTo(4);break;case 2:return _.Qb(b),b.return(4)}})};
_.YNz=function(e){if(!e||!e.length||typeof e==="string")return 0;for(var g=function(I){return _.Fi(I)},c=2,k=0;k<e.length&&(c=_.H$g(_.Cht(e[k],g)),c!==0);k++);
return c};
_.H$g=function(e){var g=_.w(e);e=g.next().value;g=g.next().value;try{var c=document.createElement("div");document.body.appendChild(c);var k=getComputedStyle(c).display;document.body.removeChild(c);if(k==="none")return 4;var I=getComputedStyle(g).display==="none"?0:1;document.body.removeChild(e);return I}catch(J){return 4}};
nYA=function(){var e,g,c;return _.r(function(k){e=new _.V8;g=document.createElement("button");g.classList.add("ytp-ad-skip-button");g.style.opacity="0";g.style.height="0px";g.style.width="0px";g.style.padding="0px";g.style.border="none";c=function(){g.parentElement&&g.parentElement.removeChild(g)};
g.onclick=function(){e.resolve(0);c()};
document.body.appendChild(g);setTimeout(function(){c();e.resolve(1)},50);
return k.return(e.promise)})};
LHV=function(){var e,g,c,k,I,J,q;return _.r(function(L){e=new _.V8;g=document.createElement("ytd-player");try{document.body.prepend(g)}catch(n){return L.return(4)}c=function(){g.parentElement&&g.parentElement.removeChild(g)};
g.getElementsByTagName("div").length>0?k=g.getElementsByTagName("div")[0]:(k=document.createElement("div"),g.appendChild(k));I=document.createElement("div");k.appendChild(I);J=document.createElement("video");q=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"});J.src=_.BJ(_.Ox(q));J.ontimeupdate=function(){c();e.resolve(0)};
I.appendChild(J);J.classList.add("html5-main-video");setTimeout(function(){I.classList.add("ad-interrupting")},200);
setTimeout(function(){c();e.resolve(1)},5E3);
return L.return(e.promise)})};
Qft=function(e){var g=gYz().objectRepresentation.playbackTracking;if(g){var c=[],k;c.push(g==null?void 0:(k=g.videostatsPlaybackUrl)==null?void 0:k.baseUrl);var I;c.push(g==null?void 0:(I=g.videostatsDelayplayUrl)==null?void 0:I.baseUrl);var J;c.push(g==null?void 0:(J=g.videostatsWatchtimeUrl)==null?void 0:J.baseUrl);var q;c.push(g==null?void 0:(q=g.ptrackingUrl)==null?void 0:q.baseUrl);var L;c.push(g==null?void 0:(L=g.qoeUrl)==null?void 0:L.baseUrl);var n;c.push(g==null?void 0:(n=g.atrUrl)==null?
void 0:n.baseUrl);g=_.w(c);for(c=g.next();!c.done;c=g.next())if((c=c.value)&&e.test(c))return c.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
UFg=function(e,g){var c,k;return _.r(function(I){switch(I.nextAddress){case 1:c=[],k=0;case 2:if(!(k<3)){I.jumpTo(4);break}return I.yield(fetch(e,{cache:"no-store",method:g}).then(function(J){c.push(J.status)}).catch(function(){c.push(-1)}),3);
case 3:k++;I.jumpTo(2);break;case 4:return I.return(c)}})};
oY8=function(e){return e.domainLookupStart===0&&e.domainLookupEnd===0&&e.connectStart===0&&e.connectEnd===0||e.duration===0};
Z$q=function(e,g,c){c=c===void 0?"GET":c;var k,I,J,q,L,n,R,W,b,h;return _.r(function(X){if(X.nextAddress==1)return X.yield(Promise.all([UFg(e,c),UFg(g,c)]),2);k=X.yieldResult;I=_.w(k);J=I.next().value;q=I.next().value;L=J;n=q;if(Math.min.apply(Math,_.KY(n))!==Math.max.apply(Math,_.KY(n))||Math.min.apply(Math,_.KY(L))!==Math.max.apply(Math,_.KY(L)))return X.return(2);if(Math.min.apply(Math,_.KY(n))===Math.min.apply(Math,_.KY(L)))return X.return(1);W=(R=performance.getEntriesByName(e))==null?void 0:
R[0];h=(b=performance.getEntriesByName(g))==null?void 0:b[0];return W&&h?oY8(h)?X.return(1):oY8(W)?X.return(0):X.return(1):X.return(2)})};
WHe=function(){var e;return _.r(function(g){var c=[];var k;var I,J,q;(I=k=(I=gYz().objectRepresentation.streamingData)==null?void 0:(J=I.formats)==null?void 0:(q=J[0])==null?void 0:q.url)&&I&&!k.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(I=I.replace("initcwndbps","ctier=L&initcwndbps"),I=I.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),k={testUrl:I,baseUrl:k,method:"GET"}):k=void 0;k&&c.push(k);_.G("ab_net_tp_e")&&c.push({testUrl:_.kp.location.origin+"/ad_companion",baseUrl:_.kp.location.origin+
"/generate_204",method:"OPTIONS"});_.G("ab_fix_creator_view_cnt")&&(c.length=0,(k=Qft(/api\/stats\/atr/))&&c.push({testUrl:_.kp.location.origin+k,baseUrl:_.kp.location.origin+"/generate_204",method:"POST"}));_.G("ad_net_pb_pbp")&&(k=Qft(/api\/stats\/qoe/))&&c.push({testUrl:_.kp.location.origin+k,baseUrl:_.kp.location.origin+"/feed/download",method:"GET"});c=c.length!==0?c[Math.floor(Math.random()*c.length)]:void 0;return(e=c)?g.return(Z$q(e.testUrl,e.baseUrl,e.method)):g.return(4)})};
_.jfC=function(){if(_.kp.hsY===void 0||_.kp.hsY===null||typeof _.kp.hsY!=="function")return 2;try{return _.kp.hsY()===!0?0:1}catch(e){return 0}};
VdC=function(e){switch(e){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.gj(e,"unknown result type")}};
_.td6=function(e,g){var c=Number(_.uo("CATSTAT",0));if(g.pfy===void 0)return c;g=g.pfy;e=VdC(e);return c&~(3<<g)|e<<g};
BRU=function(e){var g,c;if((e=(g=e.auxiliaryUi)==null?void 0:(c=g.messageRenderers)==null?void 0:c.bkaEnforcementMessageViewModel)&&e.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return e};
SNW=function(){for(var e=_.w(Object.values(_.NRt)),g=e.next();!g.done;g=e.next())g=g.value,g.r8a&&g.pfy&&_.Fq("CATSTAT",_.td6(2,g))};
_.So=function(e,g){e=_.tw("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",e);(g===void 0?0:g)?_.yiC(e,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.BL().logFlowEvent(e,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
O$U=function(){if(!KHe){if(Polymer.Base){var e=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{e.apply(this,arguments)}catch(b){_.zr(b)}};
var g=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{g.apply(this,arguments)}catch(b){_.zr(b)}};
var c=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{c.apply(this,arguments)}catch(b){_.zr(b)}};
var k=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{k.apply(this,arguments)}catch(b){_.zr(b)}};
var I=Polymer.Base._listen,J=new WeakMap;Polymer.Base._listen=function(b,h,X){var D=function(){try{X.apply(this,arguments)}catch(f){_.zr(f)}};
J.set(X,D);I.call(this,b,h,D)};
var q=Polymer.Base._unlisten;Polymer.Base._unlisten=function(b,h,X){q.call(this,b,h,J.get(X))}}if(Polymer.Async){var L=Polymer.Async,n=L._atEndOfMicrotask;
L._atEndOfMicrotask=function(){try{n.apply(L,arguments)}catch(b){_.zr(b)}}}if(Polymer.RenderStatus){var R=Polymer.RenderStatus,W=R.afterNextRender;
R.afterNextRender=function(b,h,X){W.call(R,b,function(){try{h.apply(this,arguments)}catch(D){_.zr(D)}},X)}}KHe=!0}};
_.CXg=function(e){var g=e?_.tv(e):"";if(g){if(g.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(g.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(g.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(g.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(g.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.G("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(g.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";g=g.toLowerCase();if(g==="/")return"home";if(g==="/channel_memberships")return"channel-memberships-shopfront";if(g.indexOf("/feed/trending")===0)return"trending";if(g.indexOf("/feed/explore")===0)return"explore";if(g.indexOf("/live")===0)return"live";if(g.indexOf("/results")===0)return"search";if(g.indexOf("/sports")===0)return"sports";if(g.indexOf("/fashion")===0||g.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(g))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(g))return _.G("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(g.indexOf("/channel/")===0||g.indexOf("/user/")===0||g.indexOf("/gaming")===0||g.indexOf("/post/")===0)return"channel";if(Md6(e))return"show";if(g==="/playlist"||g.indexOf("/playlist/")===0||g==="/view_play_list"||g.indexOf("/view_play_list/")===0||g.indexOf("/show/")===0)return"playlist";if(g==="/companion_canvas")return"companion-canvas";if(g==="/feed/history"||
g.indexOf("/feed/history/")===0)return"history";if(g==="/new")return"labs";if(g==="/feed/subscriptions")return"subscriptions";if(g.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(g==="/history_controls")return"standalone";if(g.indexOf("/account")===0||g==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(g.indexOf("/paid_memberships")===0||g.indexOf("/refund")===0||g.indexOf("/purchases")===0||g.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(g.indexOf("/product")===
0)return"yts-products";if(g.indexOf("/premium")===0||g.indexOf("/musicpremium")===0)return g.indexOf("/premium/offers")===0||g.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(g==="/cart/checkout"||g==="/cart")return"ypc-checkout";if(g.indexOf("/reporthistory")===0)return _.G("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(g.indexOf("/feed/downloads")===0||g.indexOf("/redeem")===0)return"browse";if(g.indexOf("/hashtag")===0)return"hashtag-landing-page";if(g.indexOf("/handle")===
0)return"handle";if(g.indexOf("/source")===0)return"audio-pivot";if(g.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(g.indexOf("/playables")===0)return"playables";if(g.indexOf("/create/live/join")===0)return"open-in-app";if(g.indexOf("/shorts")===0)return"shorts";if(g.indexOf("/feed/channels")===0)return"subscriptions-channels";var c=e?_.tv(e):"";c&&c.indexOf("/watch")===0&&_.G("web_watch_enable_learning_journey")?(e=_.V0(e),e=!!e.list&&e.list.indexOf("LJPP")===0):e=!1;if(e)return"learning_journey_watch";
if(_.G("enable_new_page_subtypes_for_ai_companion")&&g==="/feed/courses")return"your-courses"}};
_.y8=function(e){var g,c;(e=(c=_.x(e==null?void 0:e.commandMetadata,_.OM))==null?void 0:c.url)&&(g=_.CXg(e));return g};
Md6=function(e){var g=e?_.tv(e):"";if(!g)return!1;g=g.toLowerCase();return g.indexOf("/show/")===0||g.indexOf("/playlist")===0&&(e=_.V0(e),e.list&&e.list.indexOf("EL")===0)?!0:!1};
MW=function(e){var g="unknown",c;var k=((c=_.x(e==null?void 0:e.commandMetadata,_.OM))==null?void 0:c.webPageType)||"";k?(c=k.toLowerCase(),c.startsWith("web_page_type_")&&(c=c.slice(14))):c=k;c&&eXz[c.toUpperCase()]?g=eXz[c.toUpperCase()]:_.x(e,_.KU)||_.x(e,geg)?g="browse":_.x(e,_.Oo)?g="search":_.x(e,_.Pm)&&(g="watch");g==="watch"&&_.y8(e||null)==="learning_journey_watch"&&(g="learning_journey_watch");g==="unknown"&&_.mN(Error("Uf`"+JSON.stringify({clickTrackingParams:e==null?void 0:e.clickTrackingParams,
commandMetadata:e==null?void 0:e.commandMetadata,allEndpointKeys:Object.keys(e||[])})));return g};
_.CU=function(e){if(!_.cpC||e)_.cpC=_.kU();return _.cpC};
_.k2C=function(e){return!!_.x(e,_.Pm)||!!_.x(e,_.eh)&&_.G("kevlar_enable_shorts_prefetch")};
_.IIv=function(e,g){e=_.x(e,_.Pm)||_.x(e,_.eh);return"v"+e.videoId+(e.playlistId?"-pl"+e.playlistId:"")+(g?"-an1":"")+(e.params?"-pr"+e.params:"")};
_.JpK=function(e){var g=new gp(_.uo("ONE_PICK_URL",""));g.urlParamMap_.set("hostId",e);(e=_.uo("GAPI_LOCALE"))&&g.urlParamMap_.set("hl",e);(e=_.uo("SESSION_INDEX"))&&g.urlParamMap_.set("authuser",e);(e=_.uo("DELEGATED_SESSION_ID"))&&g.urlParamMap_.set("groupId",e);return g};
wuW=function(){var e=_.Ss(),g=e.resolve(_.cg);e=e.resolve(_.kv);return new veU(g,e)};
LdW=function(e){if(window.IntersectionObserver)return new qPU(e,400);throw new TypeError("Wf");};
aIz=function(){var e=Hammer.TouchAction,g=e.prototype.preventDefaults;e.prototype.preventDefaults=function(c){var k=this.actions.indexOf("pan-down")>-1;if(!k)return g.call(this,c);if(!rpC){var I=c.srcEvent;c=c.direction;var J;if((J=this.manager)==null?0:J.session.prevented)I.preventDefault();else if(k&&c&Hammer.DIRECTION_DOWN)return this.preventSrc(I)}}};
nee=function(e){if(!e||e.size===0)return Hammer.DIRECTION_ALL;if(e.size===2){if(e.has("up")&&e.has("down"))return Hammer.DIRECTION_VERTICAL;if(e.has("right")&&e.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(e.size===1){if(e.has("up"))return Hammer.DIRECTION_UP;if(e.has("down"))return Hammer.DIRECTION_DOWN;if(e.has("right"))return Hammer.DIRECTION_RIGHT;if(e.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.wp=function(e,g,c){var k=c&&c>0?c:0;c=k?Date.now()+k*1E3:0;if((k=k?_.vg.getLocalStorage():_.vg.getSessionStorage())&&window.JSON){typeof g!=="string"&&(g=JSON.stringify(g,void 0));try{k.set(e,g,c)}catch(I){k.remove(e)}}};
_.qk=function(e){var g=_.vg.getSessionStorage(),c=_.vg.getLocalStorage();if(!g&&!c||!window.JSON)return null;try{var k=g.get(e)}catch(I){}if(typeof k!=="string")try{k=c.get(e)}catch(I){}if(typeof k!=="string")return null;try{k=JSON.parse(k,void 0)}catch(I){}return k};
_.Ls=function(e){try{var g=_.vg.getSessionStorage(),c=_.vg.getLocalStorage();g&&g.remove(e);c&&c.remove(e)}catch(k){}};
Eeq=function(e){var g=RXV(),c;return _.r(function(k){switch(k.nextAddress){case 1:return _.lj(k,2),k.yield(e.match(g,{cacheName:"yt-appshell-assets"}),4);case 4:c=k.yieldResult;_.zn(k,3);break;case 2:_.Qb(k);case 3:return k.return(c)}})};
RXV=function(){var e=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Wdq.registration.scope:b7U;e.endsWith("/")&&(e=e.slice(0,-1));return e+"/app_shell_home"};
hXC=function(e){e.map(function(g){return g.source}).join("|")};
_.Xu6=function(e){return _.r(function(g){return g.return(Eeq(e))})};
G2t=function(){var e=window.caches,g;return _.r(function(c){if(c.nextAddress==1)return c.yield(_.Xu6(e),2);g=c.yieldResult;return c.return(!!g)})};
i7A=function(){_.r(function(e){if(e.nextAddress==1){if(xuU)return e.jumpTo(0);xuU=!0;if(_.G("enable_system_health_primes_monitoring"))return _.I$(Dug,3E4),$ug(),e.return();if(!(Math.random()<_.MN("web_system_health_fraction")))return e.jumpTo(0);YP8={heightPixels:screen.height,widthPixels:screen.width};rp&&!isNaN(rp.jsHeapSizeLimit)&&(YP8.memoryTotalKbytes=String(Math.round(rp.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(YP8.devicePixelRatio=window.devicePixelRatio);return e.yield(fIC(),4)}_.I$(Dug,
3E4);return e.yield(jjW(),0)})};
fIC=function(){return _.r(function(e){if(e.nextAddress==1)return a1.intersectionObserverPresent="IntersectionObserver"in window,a1.serviceWorkerPresent="serviceWorker"in navigator,a1.webSharePresent="share"in navigator,a1.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,a1.cacheStoragePresent="caches"in window,a1.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,a1.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
a1.webkitTemporaryStoragePresent="webkitTemporaryStorage"in ns&&ns.webkitTemporaryStorage&&"queryUsageAndQuota"in ns.webkitTemporaryStorage,a1.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",e.yield(NqA(),2);a1.indexedDbPresent=e.yieldResult;a1.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;a1.broadcastChannelPresent="BroadcastChannel"in window;a1.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(a1.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,a1.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Uh(e)})};
Dug=function(){var e=9E4+Math.random()*2E3;_.S6()>e||(_.G("enable_system_health_primes_monitoring")?$ug():jjW())};
jjW=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield(PPt(),2);e=g.yieldResult;_.Y2("systemHealthCaptured",e);_.Uh(g)})};
$ug=function(){var e={metric:{}},g=muA();g.networkEvents.length&&(e.metric.networkEvents=pu6(g));_.Y2("systemHealthCaptured",e)};
PPt=function(){var e,g,c,k,I,J,q,L,n,R;return _.r(function(W){switch(W.nextAddress){case 1:e={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)};g=window.screen;_.G("enable_is_extended_monitoring")&&g&&"isExtended"in g&&(e.isExtended=!!g.isExtended);c={metric:{staticContext:YP8,dynamicContext:e,webMetric:TzV,webApiSupport:a1}};
if(k=_.EM())c.csn=k;rp&&(c.metric.webMetric.currentHeapKbytes=Math.round(rp.usedJSHeapSize/1E3));window.matchMedia&&(c.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,c.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,c.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in ns&&typeof ns.getBattery==="function")){W.jumpTo(2);break}return W.yield(ns.getBattery(),3);case 3:if(I=
W.yieldResult)c.metric.dynamicContext.chargingStatus=I.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(c.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(a1.storageEstimatePresent)return W.yield(navigator.storage.estimate(),8);if(!a1.webkitTemporaryStoragePresent){W.jumpTo(5);break}return W.yield(lIv(),7);case 7:J=W.yieldResult;W.jumpTo(5);break;case 8:J=W.yieldResult;case 5:return c.metric.dynamicContext.deviceStorageQuotaMbytes=((q=J)==null?0:q.quota)?String(Math.round(J.quota/
1048576/10)*10):"-1",c.metric.dynamicContext.deviceStorageUsageMbytes=((L=J)==null?0:L.usage)?String(Math.round(J.usage/1048576/10)*10):"-1",n=c.metric.dynamicContext,W.yield(G2t(),9);case 9:return n.hasAppShell=W.yieldResult,R=muA(),R.networkEvents.length&&(c.metric.networkEvents=pu6(R)),W.return(c)}})};
lIv=function(){return new Promise(function(e){var g;a1.webkitTemporaryStoragePresent&&(g=ns.webkitTemporaryStorage)!=null&&g.queryUsageAndQuota?ns.webkitTemporaryStorage.queryUsageAndQuota(function(c,k){e({usage:c,quota:k})}):e(void 0)})};
_.R1=function(e){e&=16777215;e=[(e&16711680)>>16,(e&65280)>>8,e&255];return Ssz(e[0],e[1],e[2])};
_.EY=function(e){e=[(e&16711680)>>>16,(e&65280)>>>8,e&255,(e&4278190080)>>>24];if(!_.Ap6(e,function(g){return g===(g&255)}))throw Error("Xf`"+e.join(","));
return"rgba("+e[0]+","+e[1]+","+e[2]+","+(e[3]/255).toFixed(3)+")"};
_.sje=function(e){return[(e&16711680)>>>16,(e&65280)>>>8,e&255]};
_.Fdz=function(e){e=e.map(function(g){g/=255;return g<=.03928?g/12.92:Math.pow((g+.05)/1.05,2.4)});
return e[0]*.2126+e[1]*.7152+e[2]*.0722};
Wg=function(e,g){e=_.sje(e);return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+g+")"};
bg=function(e){return(e&4278190080)>>>24===0?Wg(e,"1"):_.EY(e)};
_.uoz=function(){try{return!!self.localStorage}catch(e){return!1}};
Qjz=function(){if(duW())_.mN(Error("Yf"));else{var e=document.createElement("iframe");e.style.display="none";var g=g===void 0?window.location.href:g;var c=_.j6(_.uo("PERSIST_IDENTITY_IFRAME_URL"));g=c?c:(new URL(g)).host.indexOf("studio")===0?_.jw(zXg,"persist_identity"):_.jw(H76,"persist_identity");_.wy(e,1,g);e.id="persist_identity";var k;(k=document.body)==null||k.appendChild(e)}};
duW=function(){var e=Uug;e||(e=document.querySelector("#persist_identity"));return e};
oeC=function(){var e=!1;try{e=!!window.sessionStorage.getItem("session_logininfo")}catch(g){e=!0}return(_.uo("INNERTUBE_CLIENT_NAME")==="WEB"||_.uo("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&e};
Z7K=function(e,g){if(!oeC())return!1;g||(g=_.uo("LOGIN_INFO"));return g?(e.session_logininfo=g,!0):!1};
tbz=function(e,g){e=e===void 0?!1:e;if((g===void 0||!g)&&Vbg!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.dH("LOG_STICKINESS",!1)){g=_.EM();var c=_.RC(),k={identityStickinessData:{initialState:Vbg}};g&&c&&_.Tu(g,c,k)}if(g=duW())if(c=g.src?(new URL(g.src)).origin:"*",e){var I;(I=g.contentWindow)==null||I.postMessage({action:"clear"},c)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(e=window.sessionStorage.getItem("session_logininfo"))){var J;(J=g.contentWindow)==null||J.postMessage({loginInfo:e},c)}};
_.h3=function(e){e=e===void 0?!0:e;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Fq("LOGIN_INFO",""),e&&window.sessionStorage.setItem("from_switch_account","1"),tbz(!0,e)}catch(g){}};
Bzq=function(e){e&&(e.startsWith("https://accounts.google.com/AddSession")?_.h3():e.startsWith("https://accounts.google.com/ServiceLogin")?_.h3():e.startsWith("https://myaccount.google.com")&&_.zs(e).getPath().endsWith("/youtubeoptions")&&_.h3())};
XZ=function(e,g){Bzq(e);if(_.dH("LOGGED_IN",!0)&&oeC()){var c=KKC(e);c==null&&(c={});Z7K(c,g)&&_.Ar(e,c)}};
NzV=function(){function e(g){for(g=g.target;g&&g.nodeName!=="A";)if(g=g.parentNode,!(g&&g instanceof HTMLElement))return;if(g&&!g.hasAttribute("download")&&g.getAttribute("rel")!=="external"&&g.href)return g.href}
document.addEventListener("mousedown",function(g){g.button!==0&&(g=e(g))&&XZ(g)});
document.addEventListener("click",function(g){(g=e(g))&&XZ(g)})};
Kdp=function(){var e=new SP8;try{if(_.dH("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(L){e.increment(5,!1);return}if(_.uo("LOGIN_INFO")){var g=ypv?ypv:window.location;_.uo("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Qjz();var c=KKC(g.href);c==null&&(c={});var k=c.session_logininfo,I=Number(window.sessionStorage.getItem("stickiness_reload")),J=k===_.uo("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
I>=2||J)I>=2?e.increment(2,J):J?e.increment(7,J):window.sessionStorage.getItem("session_logininfo")||(e.increment(3,J),Vbg="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.uo("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.uo("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))e.increment(4,J),window.sessionStorage.removeItem("stickiness_reload");
else if(I<2){window.sessionStorage.setItem("stickiness_reload",String(I+1));var q=g.href;q=_.gN(q,"sttick");XZ(q,window.sessionStorage.getItem("session_logininfo"));q=_.t_(q,{sttick:I});e.increment(I,J);_.FzV(g,q)}}else e.increment(6,!1)}else _.h3(!1)}catch(L){}};
_.Gb=function(e,g,c,k,I){g=g===void 0?{}:g;c=c===void 0?"":c;k=k===void 0?window:k;e=_.MO(e,g);XZ(e);c=_.Km(e+c,I);_.FzV(k.location,c)};
O7t=function(e){if(e.urlEndpoint){if(e=_.V0(e.urlEndpoint.url),e.adurl)return y9(e.adurl)}else if(e.watchEndpoint)return"//www.youtube.com/watch?v="+e.watchEndpoint.videoId;return null};
MbK=function(e){if(!e||!e.reportingPings)return null;var g={};e.reportingPings.forEach(function(c){c.pingType in g?g[c.pingType].push(c.url):g[c.pingType]=[c.url]});
return{adpings:Dct(g)}};
_.Du=function(e){e=e===void 0?!1:e;var g=_.ch(),c="USER_INTERFACE_THEME_LIGHT";g.getFlag(165)?c="USER_INTERFACE_THEME_DARK":g.getFlag(174)?c="USER_INTERFACE_THEME_LIGHT":_.xv()&&(c="USER_INTERFACE_THEME_DARK");return e?c:CPC()||c};
_.eVK=function(){return!_.G("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.xv=function(){return _.eVK()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.$v=function(){var e=_.ch();return _.eVK()&&!e.getFlag(165)&&!e.getFlag(174)};
CPC=function(){var e=e===void 0?window.location.href:e;if(_.G("kevlar_disable_theme_param"))return null;var g=_.tv(e);if(_.gKC(g))return"USER_INTERFACE_THEME_DARK";try{var c=_.V0(e).theme;return cXA.get(c)||null}catch(k){}return null};
_.gKC=function(e){return _.G("enable_dark_theme_only_on_shorts")?!(e==null||!e.startsWith("/shorts/")):!1};
_.ig=function(e,g,c,k,I){g=g===void 0?!1:g;c=c===void 0?!1:c;var J=_.uo("INNERTUBE_CONTEXT");if(!J)return _.jW(Error("bg")),{};J=(0,_.n0.unsafeClone)(J);_.G("web_no_tracking_params_in_shell_killswitch")||delete J.clickTracking;J.client||(J.client={});var q=J.client;q.clientName==="MWEB"&&q.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(q.clientFormFactor=_.uo("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");q.screenWidthPoints=window.innerWidth;q.screenHeightPoints=window.innerHeight;q.screenPixelDensity=
Math.round(window.devicePixelRatio||1);q.screenDensityFloat=window.devicePixelRatio||1;q.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());q.userInterfaceTheme=_.Du();if(!g){var L=_.bUK();L&&(q.connectionType=L);_.G("web_log_effective_connection_type")&&(L=XLe())&&(J.client.effectiveConnectionType=L)}var n;if(_.G("web_log_memory_total_kbytes")&&((n=_.kp.navigator)==null?0:n.deviceMemory)){var R;n=(R=_.kp.navigator)==null?void 0:R.deviceMemory;J.client.memoryTotalKbytes=""+n*1E6}g&&k&&!_.G("web_it_context_set_original_url_ks")&&
(q.originalUrl=kLA(_.kp.location.href,k).toString());_.G("web_gcf_hashes_innertube")&&(L=PgW())&&(R=L.coldConfigData,n=L.coldHashData,L=L.hotHashData,J.client.configInfo=J.client.configInfo||{},R&&(J.client.configInfo.coldConfigData=R),n&&(J.client.configInfo.coldHashData=n),L&&(J.client.configInfo.hotHashData=L));R=_.V0(_.kp.location.href);!_.G("web_populate_internal_geo_killswitch")&&R.internalcountrycode&&(q.internalGeo=R.internalcountrycode);!_.G("web_populate_client_screen_killswitch")&&I&&(q.clientScreen=
I);q.clientName==="MWEB"||q.clientName==="WEB"?(q.mainAppWebInfo||(q.mainAppWebInfo={}),q.mainAppWebInfo.graftUrl=k||_.kp.location.href,_.G("kevlar_woffle")&&_.Yv.instance&&(k=_.Yv.instance,q.mainAppWebInfo.pwaInstallabilityStatus=!k.appInstalledEventFired&&k.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),q.mainAppWebInfo.webDisplayMode=Gbq(),q.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):q.clientName==="TVHTML5"&&
(!_.G("web_lr_app_quality_killswitch")&&(k=_.uo("LIVING_ROOM_APP_QUALITY"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{appQuality:k})),k=_.uo("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{certificationScope:k}));!_.G("web_populate_time_zone_itc_killswitch")&&(k=Edq())&&(q.timeZone=k);(k=F7U())?q.experimentsToken=k:delete q.experimentsToken;q=ubq();k=_.IKp();k=(0,_.n0.getValues)(k.tokenJars);J.request=Object.assign({},J.request,{internalExperimentFlags:q,consistencyTokenJars:k});
!_.G("web_prequest_context_killswitch")&&(q=_.uo("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(J.request.externalPrequestContext=q);k=_.ch();q=k.getFlag(58);k=k.get("gsml","");J.user=Object.assign({},J.user);q&&(J.user.enableSafetyMode=q);k&&(J.user.lockedSafetyMode=!0);_.G("warm_op_csn_cleanup")?c&&(g=_.EM())&&(J.clientScreenNonce=g):!g&&(g=_.EM())&&(J.clientScreenNonce=g);e&&(J.clickTracking={clickTrackingParams:e});if(e=_.Q0("yt.mdx.remote.remoteClient_"))J.remoteClient=e;_.jh.getInstance().setLocationOnInnerTubeContext(J);
try{var W=B$W(),b=W.bid;delete W.bid;J.adSignalsInfo={params:[],bid:b};for(var h=_.w(Object.entries(W)),X=h.next();!X.done;X=h.next()){var D=_.w(X.value),f=D.next().value,l=D.next().value;W=f;b=l;e=void 0;(e=J.adSignalsInfo.params)==null||e.push({key:W,value:""+b})}var A,d;if(((A=J.client)==null?void 0:A.clientName)==="TVHTML5"||((d=J.client)==null?void 0:d.clientName)==="TVHTML5_UNPLUGGED"){var S=_.uo("INNERTUBE_CONTEXT");S.adSignalsInfo&&(J.adSignalsInfo.advertisingId=S.adSignalsInfo.advertisingId,
J.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",J.adSignalsInfo.limitAdTracking=S.adSignalsInfo.limitAdTracking)}}catch(V){_.jW(V)}return J};
_.Pg=function(){return{isShellLoad:_.dH("IS_SHELL_LOAD",!1)}};
vKv=function(){navigator.serviceWorker.getRegistrations().then(function(e){e.forEach(JXe)})};
JXe=function(e){e&&_.wZA(qjg,e.scope)};
_.wZA=function(e,g){g={scope:g||_.C4("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.QP(e),g)};
mi=function(e,g,c,k){if(g&&g.serializedYpcCujLoggingParams){if(c){var I={};I.transactionErrorType=c;k&&(I.errorMessage=k);g.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:I}}}c={};c.ypcCujContext=g;e=_.tw("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",e,c);_.BL().logFlowEvent(e,"FLOW_TYPE_YPC_ACQUISITION")}};
_.LMC=function(e,g,c,k){var I={};I.serializedTransactionFlowLoggingParams=g;c&&(I.errorType=c);k&&(I.errorMessage=k);_.Y2(e,I);_.fB()};
_.rXA=function(e){e&&_.LMC("transactionFlowStarted",e)};
_.aKK=function(e){e&&_.LMC("transactionFlowCancelled",e)};
_.ps=function(e,g,c){g&&_.LMC("transactionFlowFailed",g,e,c)};
nKU=function(e){var g=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");g&&(g.inert=e)};
_.Tb=function(){this.megabloxUrl_=null};
_.lg=function(e){try{var g=RVe==null?void 0:RVe.composedPath(e)}catch(c){g=e.composedPath?e.composedPath():[]}return g&&g.length>0?g:e.composedPath?e.composedPath():[]};
_.A3=function(e){return _.lg(e)[0]};
sY=function(e){return e instanceof ShadowRoot?ShadowRoot:e instanceof DocumentFragment?DocumentFragment:e instanceof Document?Document:HTMLElement};
EKA=function(e){if(e instanceof Element)return Element.prototype;if(e instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("fg`"+e);};
WMz=function(e,g){return _.G("sunnydom_native_scoped_query_selectors")?EKA(e).querySelector.call(e,g):sY(e).prototype.querySelector.call(e,g)};
b6z=function(e,g){return _.G("sunnydom_native_scoped_query_selectors")?EKA(e).querySelectorAll.call(e,g):sY(e).prototype.querySelectorAll.call(e,g)};
hVA=function(e){var g,c,k;return(k=(c=(g=e.parentElement)!=null?g:e.__shady_native_parentElement)!=null?c:e.__shady_parentElement)!=null?k:null};
XZW=function(e){var g,c,k;return(k=(c=(g=e.parentNode)!=null?g:e.__shady_native_parentNode)!=null?c:e.__shady_parentNode)!=null?k:null};
GLC=function(e){var g,c,k;return(k=(c=(g=e.nextSibling)!=null?g:e.__shady_native_nextSibling)!=null?c:e.__shady_nextSibling)!=null?k:null};
x$z=function(e){var g,c,k;return(k=(c=(g=e.previousSibling)!=null?g:e.__shady_native_previousSibling)!=null?c:e.__shady_previousSibling)!=null?k:null};
D$V=function(e){var g,c,k;return(k=(c=(g=e.nextElementSibling)!=null?g:e.__shady_native_nextElementSibling)!=null?c:e.__shady_nextElementSibling)!=null?k:null};
$$p=function(e){var g,c,k;return(k=(c=(g=e.previousElementSibling)!=null?g:e.__shady_native_previousElementSibling)!=null?c:e.__shady_previousElementSibling)!=null?k:null};
Yjz=function(e){var g,c,k;return new Set([].concat(_.KY((g=e.children)!=null?g:[]),_.KY((c=e.__shady_native_children)!=null?c:[]),_.KY((k=e.__shady_children)!=null?k:[])))};
fKU=function(e){var g,c,k;return new Set([].concat(_.KY((g=e.childNodes)!=null?g:[]),_.KY((c=e.__shady_native_childNodes)!=null?c:[]),_.KY((k=e.__shady_childNodes)!=null?k:[])))};
_.FZ=function(e){if(!(e instanceof Element))return null;e=e.classList?Array.from(e.classList):void 0;if(!e)return null;var g=e.indexOf("style-scope");return g>-1&&g+1<e.length?e[g+1]:null};
ug=function(e){if(!(e instanceof HTMLElement))return null;var g=e&&(e.$$||e.polymerController)?e.tagName.toLowerCase():null;return g?g:_.FZ(e)};
joq=function(e,g){return _.G("sunnydom_native_scoped_query_selectors")?e+".style-scope."+g:e.replace(/[^a-z]*[^\s]+/g,function(c){return c+".style-scope."+g})};
i6g=function(e,g){return g?e.split(",").map(function(c){return joq(c.trim(),g)}).join(", "):e};
_.dp=function(e){var g,c,k,I;return(I=(k=(c=(g=e.root)!=null?g:e.shadowRoot)!=null?c:e.__shady_native_shadowRoot)!=null?k:e.__shady_shadowRoot)!=null?I:e};
Plv=function(e){var g,c,k;return(k=(c=(g=e.__shady_parentNode)!=null?g:e.__shady_native_parentNode)!=null?c:e.parentNode)!=null?k:null};
m$e=function(e){var g,c;return(c=(g=XZW(e))!=null?g:e.host)!=null?c:null};
pZC=function(e){for(;e&&!(e instanceof HTMLElement);)e=m$e(e);return e};
TvW=function(e){var g=pZC(e);return e===g?_.FZ(e):g?ug(g):null};
lKV=function(e){return(e=pZC(e))?ug(e):null};
AXW=function(e){if(e instanceof Comment)return!1;if(e instanceof Text){var g,c;if(((c=(g=e.textContent)==null?void 0:g.trim())!=null?c:"")==="")return!1}return!0};
zb=function(e,g,c){var k=g(e);for(c=c===void 0?lKV(e):c;k&&(TvW(k)!==c||!AXW(k));)e=k,k=g(e);return k};
sov=function(e,g,c){if(!g)return null;e=lKV(e);return TvW(g)===e&&AXW(g)?g:zb(g,c,e)};
FMC=function(e){return zb(e,Plv,_.FZ(e))};
uzW=function(e){return zb(e,D$V)};
d$e=function(e){return zb(e,GLC)};
zVU=function(e){return zb(e,$$p)};
H6C=function(e){return zb(e,x$z)};
Qo8=function(e){return sov(e,e.firstChild||null,GLC)};
U$K=function(e){var g,c,k;var I=(k=(c=(g=e.firstElementChild)!=null?g:e.__shady_native_firstElementChild)!=null?c:e.__shady_firstElementChild)!=null?k:null;return sov(e,I,D$V)};
oKU=function(e){var g,c,k;var I=(k=(c=(g=e.lastChild)!=null?g:e.__shady_native_lastChild)!=null?c:e.__shady_lastChild)!=null?k:null;return sov(e,I,x$z)};
Z66=function(e){var g,c,k;var I=(k=(c=(g=e.lastElementChild)!=null?g:e.__shady_native_lastElementChild)!=null?c:e.__shady_lastElementChild)!=null?k:null;return sov(e,I,$$p)};
VFe=function(e){var g=lKV(e);return Array.from(fKU(e)).filter(function(c){return TvW(c)===g})};
tFW=function(e){var g=ug(e);return Array.from(Yjz(e)).filter(function(c){return _.FZ(c)===g})};
BvC=function(e){if(!e)return null;var g=_.FZ(e);if(!g){var c;return(c=Node.prototype.getRootNode)==null?void 0:c.call(e)}g=g.toUpperCase();for(e=hVA(e);e&&e.tagName!==g;)e=hVA(e);return e?_.dp(e):null};
_.Hg=function(e,g,c){if(e instanceof HTMLElement&&_.FZ(e)===c){var k=Array.from(e.classList).indexOf("style-scope");if(k===-1)e.classList.add("style-scope"),e.classList.add(g);else if(!(k+1>=e.classList.length)){k=e.classList[k+1];var I,J;e==null||(I=e.classList)==null||(J=I.replace)==null||J.call(I,k,g)}}if(e instanceof HTMLElement||e instanceof DocumentFragment)for(I=_.w(Yjz(e)),J=I.next();!J.done;J=I.next())_.Hg(J.value,g,c);return e};
Qg=function(e,g){if(e instanceof HTMLElement&&_.FZ(e)===g){var c=Array.from(e.classList).indexOf("style-scope");c===-1||c+1>=e.classList.length||e.classList.remove("style-scope",e.classList[c+1])}if(e instanceof HTMLElement||e instanceof DocumentFragment){c=_.w(e.children);for(var k=c.next();!k.done;k=c.next())Qg(k.value,g)}return e};
_.Nvt=function(e,g){return sY(e).prototype.appendChild.call(e,g)};
SjK=function(e,g){if(e===g)return!0;e=fKU(e);return Array.from(e).some(function(c){return SjK(c,g)})};
_.o1=function(e,g){if(e instanceof UY)return e;(g==null?0:g.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(e,"ownerDocument")&&Object.defineProperty(e,"ownerDocument",{get:function(){return window.document}});
return new UY(e)};
KMC=function(){var e=UY.prototype,g=[].concat(_.KY(yX8?[]:["getRootNode"]),["setAttribute","removeAttribute"]);g=_.w(g);for(var c=g.next(),k={};!c.done;k={method$jscomp$53:void 0},c=g.next())k.method$jscomp$53=c.value,e[k.method$jscomp$53]=function(I){return function(){return this.host[I.method$jscomp$53].apply(this.host,arguments)}}(k)};
MFW=function(){var e=UY.prototype,g=[].concat(_.KY(yX8?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.KY(O6W?[]:["querySelector","querySelectorAll"]));g=_.w(g);for(var c=g.next(),k={};!c.done;k={method$jscomp$54:void 0},c=g.next())k.method$jscomp$54=c.value,e[k.method$jscomp$54]=function(I){return function(){return this.root[I.method$jscomp$54].apply(this.root,arguments)}}(k)};
gJt=function(){var e=UY.prototype,g=[].concat(_.KY(Clt?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.KY(eK8?[]:["parentNode"]));g=_.w(g);for(var c=g.next(),k={};!c.done;k={prop$jscomp$67:void 0},c=g.next())k.prop$jscomp$67=c.value,Object.defineProperty(e,k.prop$jscomp$67,{get:function(I){return function(){return this.host[I.prop$jscomp$67]}}(k),
configurable:!0})};
IAg=function(){var e=UY.prototype,g=["activeElement"].concat(_.KY(Clt?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.KY(cG8?[]:["children"]),_.KY(k8U?[]:["lastChild"]));g=_.w(g);for(var c=g.next(),k={};!c.done;k={prop$jscomp$68:void 0},c=g.next())k.prop$jscomp$68=c.value,Object.defineProperty(e,k.prop$jscomp$68,{get:function(I){return function(){return this.root[I.prop$jscomp$68]}}(k),
configurable:!0})};
JGW=function(){for(var e=UY.prototype,g=_.w(["innerHTML","textContent"]),c=g.next(),k={};!c.done;k={prop$jscomp$69:void 0},c=g.next())k.prop$jscomp$69=c.value,Object.defineProperty(e,k.prop$jscomp$69,{get:function(I){return function(){return this.root[I.prop$jscomp$69]}}(k),
set:function(I){return function(J){this.root[I.prop$jscomp$69]=J}}(k),
configurable:!0})};
vJA=function(e){var g=UY.prototype;e=_.w(Object.entries(e));for(var c=e.next(),k={};!c.done;k={fn$jscomp$401:void 0},c=e.next()){var I=_.w(c.value);c=I.next().value;I=I.next().value;k.fn$jscomp$401=I;g[c]=function(J){return function(){return J.fn$jscomp$401.apply(null,[this.host.node||this.host].concat(_.KY(arguments)))}}(k)}};
qKC=function(){for(var e=UY.prototype,g=_.w(Object.entries(wX8)),c=g.next(),k={};!c.done;k={fn$jscomp$402:void 0},c=g.next()){var I=_.w(c.value);c=I.next().value;I=I.next().value;k.fn$jscomp$402=I;Object.defineProperty(e,c,{get:function(J){return function(){return J.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.KY(arguments)))}}(k),
configurable:!0})}};
_.Zu=function(e){return e instanceof L28||e instanceof Document?e:new L28(e)};
rGp=function(){for(var e=L28.prototype,g=_.w("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),c=g.next(),k={};!c.done;k={method$jscomp$55:void 0},c=g.next())k.method$jscomp$55=c.value,e[k.method$jscomp$55]=function(I){return function(){return HTMLElement.prototype[I.method$jscomp$55].call.apply(HTMLElement.prototype[I.method$jscomp$55],[this.node].concat(_.KY(arguments)))}}(k)};
aAC=function(){for(var e=L28.prototype,g=_.w("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),c=g.next(),k={};!c.done;k={prop$jscomp$70:void 0},c=g.next())k.prop$jscomp$70=c.value,Object.defineProperty(e,k.prop$jscomp$70,{get:function(I){return function(){var J;return(J=this.node["__shady_native_"+I.prop$jscomp$70])!=null?J:this.node[I.prop$jscomp$70]}}(k),
configurable:!0})};
_.Vg=function(e,g,c){c===void 0&&(c=!e.classList.contains(g));c?e.classList.add(g):e.classList.remove(g)};
_.t3=function(e,g,c){c===void 0&&(c=!e.hasAttribute(g));if(g==="class")throw Error("gg");c?_.Zu(e).setAttribute(g,""):_.Zu(e).removeAttribute(g)};
nJq=function(e){return(e.localName!=="slot"?[]:(0,_.Bg)(e).assignedNodes({flatten:!0})).filter(function(g){return g.nodeType===Node.ELEMENT_NODE})};
_.RKC=function(e){return(e=_.o1(e).querySelector("slot"))&&e.localName==="slot"?nJq(e):[]};
_.Nk=function(e,g){window.ShadyCSS&&window.ShadyCSS.styleSubtree(e,g)};
Sh=function(e,g){var c=g.bind(e);return function(k){c(k,k.detail)}};
_.yg=function(e,g){var c=EJ8.get(e);c||(c=new WeakMap,EJ8.set(e,c));if(c.has(g))return c.get(g);if(_.G("web_fi_listen_disable_bound_fn_helper")){var k=g.bind(e);e=function(I){k(I,I==null?void 0:I.detail)}}else e=Sh(e,g);
c.set(g,e);return e};
hKV=function(e,g){W2C(e);e.created[bWz].push(g)};
W2C=function(e){if(!e.created||!e.created[bWz]){var g=e.created,c=g?[g]:[];e.created=function(){for(var k=_.w(c),I=k.next();!I.done;I=k.next())I.value.apply(this)};
e.created[bWz]=c}};
XXg=function(e){return function(){var g=_.Mb.apply(0,arguments);return function(c,k,I){e.apply(null,_.KY(g))(c,k,I)}}};
G8g=function(){return function(){var e=_.Mb.apply(0,arguments);return function(g,c,k){zxe.apply(null,_.KY(e))(g,c,k)}}};
_.m=function(e){return G8g()(e)};
_.p=function(){return XXg(oEq).apply(null,_.KY(_.Mb.apply(0,arguments)))};
_.Ks=function(e){return _.G("pbcm_fi_listen_decorators")?xmp(e):XXg(QXe)(e)};
xmp=function(e){return function(g,c){hKV(g,function(){var k=this[c],I=_.G("web_fi_listen_disable_bound_fn_helper")?function(J){k(J,J.detail)}.bind(this):Sh(this,k);
DmA.has(e)?iq(this.hostElement,e,I):this.hostElement.addEventListener(e,I)})}};
_.OY=function(){return XXg(Use).apply(null,_.KY(_.Mb.apply(0,arguments)))};
_.u=function(e){e=e===void 0?{}:e;return XXg(H2V)(e)};
_.Mk=function(e){if(e.hostElement&&e!==e.hostElement){var g=_.IC(e.hostElement);g=e.renderIdom?g:g.shadowRoot}g||(e=e.root,g=e instanceof Node?_.IC(e):null);return g};
_.Cs=function(e){return $mt?YK6(e):function(g,c){Object.defineProperty(g,c,{get:function(){var k;return(k=_.Mk(this))==null?void 0:k.querySelector(e)},
enumerable:!0,configurable:!0})}};
YK6=function(e){return function(g,c){Object.defineProperty(g,c,{get:function(){var k,I=(k=_.o1(this.hostElement))==null?void 0:k.querySelector(e);if(I)return I;var J;return(J=_.Mk(this))==null?void 0:J.querySelector(e)},
enumerable:!0,configurable:!0})}};
_.eY=function(e){return $mt?fAC(e):function(g,c){Object.defineProperty(g,c,{get:function(){var k;return(k=_.Mk(this))==null?void 0:k.querySelectorAll(e)},
enumerable:!0,configurable:!0})}};
fAC=function(e){return function(g,c){Object.defineProperty(g,c,{get:function(){var k,I=(k=_.o1(this.hostElement))==null?void 0:k.querySelectorAll(e);if(I==null?0:I.length)return I;var J;return(J=_.Mk(this))==null?void 0:J.querySelectorAll(e)},
enumerable:!0,configurable:!0})}};
jEC=function(e){return function(g){if(![_.NZ,_.z].includes(Object.getPrototypeOf(g.prototype).constructor))throw Error("hg");p9W(Object.assign({},typeof e!=="string"?e:{is:e,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(g)}};
_.co=function(){var e=e===void 0?{}:e;return function(g){if(![SX,_.gk].includes(Object.getPrototypeOf(g.prototype).constructor))throw Error("ig");Tgq(Object.assign({},e,{disableInheritanceCheck:!0}))(g)}};
PCp=function(e,g){iWe[e]!=null||(iWe[e]=new Set);iWe[e].add(g)};
_.k_=function(){var e=_.OY.apply(null,_.KY(_.Mb.apply(0,arguments)));return function(g,c){PCp(g.is,c);e(g,c)}};
vo=function(e,g,c){if(II(e)&&!mmK.has(g)){g=g.replace(/^JSC\$[\d]+_/,"");g=g.replace(/\.\d+(\.|$)/g,function(J,q){return".#"+q});
Js[e]!=null||(Js[e]={});var k,I;(k=Js[e])[I=g]!=null||(k[I]=new Set);Js[e][g].has(c)||(Js[e][g].add(c),_.Y2("polymerPropertyAccessEvent",{componentName:e,propertyName:g,accessType:c}))}};
pXV=function(){return _.G("polymer_property_access_logging_debug")||_.G("polymer_enable_property_access_logging")};
II=function(e){if(_.G("polymer_property_access_logging_debug"))return!0;if(!_.G("polymer_enable_property_access_logging"))return!1;TX8||(TX8=Date.now());return($f(e)+TX8)%100<_.MN("polymer_property_access_logging_percent")};
lAC=function(e,g){return II(g)&&e.hostElement.loggingStatus?new Proxy(e,{get:function(c,k,I){if(c.hostElement.loggingStatus.bypassProxyController)return c[k];c.hostElement.loggingStatus.isExternalGet=!0;var J=c[k];c.hostElement.loggingStatus.isExternalGet=!1;if(J instanceof Function)return function(){var q=_.Mb.apply(0,arguments);try{return c.hostElement.loggingStatus.currentExternalCall=k,vo(g,k,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),J.apply(this===I?c:this,q)}finally{c.hostElement.loggingStatus.currentExternalCall=
void 0}};
vo(g,k,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return J},
set:function(c,k,I){if(c.hostElement.loggingStatus.bypassProxyController)return c[k]=I,!0;c.hostElement.loggingStatus.isRendererStamper?vo(g,k,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):c.hostElement.loggingStatus.isDeclarativeExternal||vo(g,k,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{c.hostElement.loggingStatus.currentExternalSet=k,c[k]=I}finally{c.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):e};
AGg=function(e,g){e&&e.loggingStatus&&!e.loggingStatus.isDeclarativeExternal&&!e.loggingStatus.isExternalGet&&e.loggingStatus.currentExternalSet!==g&&vo(e.tagName.toLowerCase(),g,"PROPERTY_ACCESS_GET_INTERNAL")};
wk=function(e,g,c){e&&(c||e.loggingStatus&&!e.loggingStatus.isInitializing&&!e.loggingStatus.isDefiningPropertyAccessor&&e.loggingStatus.currentExternalSet!==g)&&vo(e.tagName.toLowerCase(),g,"PROPERTY_ACCESS_SET_INTERNAL")};
sEz=function(){return{_definePropertyAccessor:function(e,g){var c=this,k=c.hostElement.loggingStatus;k&&(k.isDefiningPropertyAccessor=!0);var I=c[e];I!==void 0&&(c.__data?c._setPendingProperty(e,I):(c.__dataProto!=null||(c.__dataProto={}),c.__dataProto[e]=I));k&&(k.isDefiningPropertyAccessor=!1);Object.defineProperty(this,e,{get:function(){AGg(c.hostElement,e);return this.__data[e]},
set:function(J){g||this._setPendingProperty(e,J,!0)&&this._invalidateProperties()}})},
created:function(){var e=this._setPendingProperty.bind(this);this._setPendingProperty=function(g,c,k){wk(this.hostElement,g);return e.apply(this,[g,c,k])}}}};
F2z=function(e){pXV()&&_.m(qY.prototype)(e.prototype,"__templateBindingLoggingBehavior")};
u8v=function(e,g){if(g.resolvedFactories.length!==e.resolvedFactories.length)return!0;g=_.w(g.resolvedFactories.entries());for(var c=g.next();!c.done;c=g.next()){var k=_.w(c.value);c=k.next().value;k=k.next().value;if(k.providerClass){if(k.providerClass!==e.resolvedFactories[c].providerClass)return!0}else if(k.providerValue){if(k.providerValue!==e.resolvedFactories[c].providerValue)return!0}else if(k.factory!==e.resolvedFactories[c].factory)return!0}return!1};
dmg=function(e,g){e=_.w(e);for(var c=e.next();!c.done;c=e.next())if(c=c.value,c.constructor===Array)dmg(c,g);else{var k=g;k.has(c)||(c.inject&&k.add(c),c.behaviors&&dmg(c.behaviors,k))}};
LO=function(e,g){var c=e[g];e[g]=function(){var k=_.Mb.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(c)return c.apply(this,k)}};
UmW=function(){_.rk.Class=function(c,k){c=zKv(c,k);LO(c.prototype,"created");return c};
LO(aI.prototype,"_initializeProperties");LO(_.nO.prototype,"_initializeProperties");if(HWC)LO(QEC,"created");else{var e=function(){LO(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))e();else{var g=customElements.define;customElements.define=function(c,k,I){g.call(customElements,c,k,I);c==="tp-yt-iron-list"&&(e(),customElements.define=g)}}}};
ZWe=function(e,g){e.prototype.behaviors=e.prototype.behaviors||[];e.prototype.behaviors.unshift(oJK.InjectBehavior);e.prototype.provide=g};
_.Wo=function(e){return function(g){if(!e.disableElementRegistration){e.noInjection||ZWe(g,e.providers);var c=g.prototype;c.__templateHelpers||zxe(RI.prototype)(c,"__templateHelpers");c=e.is;Vfq||(Vfq=Date.now());($f(c)+Vfq)%100<_.MN("polymer_log_prop_change_observer_percent")&&zxe(Ez.prototype)(g.prototype,"__propertyObserverObserver");g.prototype.behaviors=g.prototype.behaviors||[];g.prototype.behaviors.unshift(_.tfU.YtHostElementBehavior);F2z(g);jEC({is:e.is,notifyObserversOnUndefined:e.notifyObserversOnUndefined!==
!1,fastInit:e.fastInit,template:e.template,disableEnforceFastDefaultValuesCheck:!0})(g)}}};
_.bF=function(e){return _.Wo({is:e.is,template:e.template,disableElementRegistration:e.disableElementRegistration,cssBuildOptOut:e.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
SKA=function(e,g){if(BXC){e=new e;for(var c=_.w(Object.getOwnPropertyNames(e)),k=c.next();!k.done;k=c.next())k=k.value,g[k]=e[k];for(c=g;c&&c!==Object.prototype;c=Object.getPrototypeOf(c)){k=_.w(Object.getOwnPropertyNames(c));for(var I=k.next();!I.done;I=k.next())I=I.value,e.hasOwnProperty(I)||Object.defineProperty(e,I,NXg(g,I))}}else e.apply(g)};
NXg=function(e,g){return{get:function(){var c=e[g];return c instanceof Function?c.bind(e):c},
set:function(c){e[g]=c}}};
K2K=function(e,g){for(var c=e._noAccessors,k=_.w(Object.getOwnPropertyNames(e)),I=k.next();!I.done;I=k.next())if(I=I.value,!yGA.has(I))if(c)g[I]=e[I];else{var J=Object.getOwnPropertyDescriptor(e,I);J&&(J.configurable=!0,Object.defineProperty(g,I,J))}};
OWC=function(e,g,c){return function(k){if(c){var I=c();k.model=I}if(e[g])e[g](k,k.detail)}};
hs=function(e){var g=[];if(typeof e==="string")e.length>0&&g.push.apply(g,_.KY(e.split(".")));else{e=_.w(e);for(var c=e.next();!c.done;c=e.next())c=c.value,typeof c==="string"?g.push.apply(g,_.KY(c.split("."))):g.push(c)}return g};
MfU=function(e,g){if(g[g.length-1]!=="*"&&g[g.length-1]!=="splices"){for(var c=0;c<g.length;c++){if(!e)return;e=e[g[c]]}return e}};
CC8=function(e,g){if(e.length>g.length)return!1;for(var c=0;c<e.length;c++)if(e[c]!==g[c])return!1;return!0};
gPW=function(e,g,c){if(g.type==="compute"){var k=g.getter.bind(c);var I=g.args}else k=function(){return c[g.method.methodName].apply(c,_.KY(_.Mb.apply(0,arguments)))},I=g.method.args;
efq(e,g.propertyKey,k,I,g.value)};
kZ6=function(e,g){if(g.readOnly){var c=Object.getOwnPropertyDescriptor(e.model,g.propertyKey);Object.defineProperty(e.model,g.propertyKey,{get:c.get,set:function(){}});
e.model[cx8(g.propertyKey)]=c.set}};
ISp=function(e,g,c){if(c){var k=g.propertyKey,I=g.selector;g=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.KY(g.selectorArgs.map(function(J){return{type:"path",path:J}})));
efq(e,k,function(J){var q=_.Mb.apply(1,arguments);return I.apply(null,[c.getState()].concat(_.KY(q)))},g)}};
vP6=function(e,g,c){var k=_.KM(g.propertyKey)+"-changed";Jxv(e,function(I){var J={value:I.value,queueProperty:!0};I.path.split(".").length>1&&(J.path=I.path);c.dispatchEvent(new CustomEvent(k,{detail:J}))},[{type:"wildcard",
path:g.propertyKey}])};
wE8=function(e,g,c){Jxv(e,function(){c[g.method.methodName].apply(c,_.KY(_.Mb.apply(0,arguments)))},g.method.args)};
cx8=function(e){return"_set"+(e.charAt(0).toUpperCase()+e.slice(1))};
q9t=function(){var e,g=uu(function(c){e=c},!1);
return[e,g]};
RfA=function(e){e=e.trim().replace(Loe,",").replace(rxp,"$1");var g=e[0];g==="-"&&(g=e[1]);if(g>="0"&&g<="9")return{type:"literal",value:Number(e)};if(g==="'"||g==='"')return{type:"literal",value:e.slice(1,-1)};if(g=e.match(aS8)){g=g[1];var c=nPK[g];if(c)return{type:c,path:e.slice(0,-(g.length+1))}}return{type:"path",path:e}};
hfA=function(e){var g=e.match(EPA);if(g)return e={methodName:g[1],args:Wog},g[2].trim()&&(g=g[2].replace(bEt,"&comma;").split(","),e.args=g.map(RfA)),e};
XEv=function(e,g,c,k){k=k===void 0?!1:k;g=_.KM(g);var I=Wd;I&&(c=I(c,g,"attribute",e));XA(e,c,g,k)};
XA=function(e,g,c,k){g=GZW(g,k===void 0?!1:k);g===void 0?e.removeAttribute(c):e.setAttribute(c,g)};
GZW=function(e,g){switch(typeof e){case "object":case "function":if(e instanceof Date)return e.toString();if(e){if((g===void 0?0:g)&&!_.G("polymer_reflect_objects_as_boolean_killswitch"))return e?"":void 0;g=window.trustedTypes?window.trustedTypes.isHTML(e)||window.trustedTypes.isScript(e)||window.trustedTypes.isScriptURL(e):void 0;if(g)return e;try{return JSON.stringify(e)}catch(c){_.mN(Error("Eg`"+e))}}break;case "boolean":return e?"":void 0;default:return e!==null&&e!==void 0?e.toString():void 0}};
xgz=function(e){if(e===void 0)throw Error("Fg");return e};
jUK=function(e,g,c,k){var I=DgA(k);if(I.length){k=c;var J="property";$gA.test(c)?J="attribute":c[c.length-1]==="$"&&(c=c.slice(0,-1),J="attribute");var q=Y9e(I);q&&J==="attribute"&&(c==="class"&&e.hasAttribute("class")&&(q+=" "+e.getAttribute(c)),XA(e,q,c));J==="attribute"&&k==="disable-upgrade$"&&e.setAttribute("disable-upgrade","");e.localName==="input"&&k==="value"&&e.setAttribute("value","");e.removeAttribute(k);J==="property"&&(c=_.O4(c));g=xgz(g);fSt(g,J,c,I);return!0}return c.slice(0,3)===
"on-"?(e.removeAttribute(c),(J=g).events!=null||(J.events=[]),g.events.push({name:c.slice(3),value:k}),!0):c==="id"?(g.id=k,!0):!1};
DgA=function(e){for(var g=[],c=0,k;(k=iEA.exec(e))!==null;){k.index>c&&g.push({type:"literal",value:e.slice(c,k.index)});var I=k[1][0];c=!!k[2];k=k[3].trim();if(I==="{")throw Error("Gg");(I=hfA(k))?g.push({type:"method",negate:c,signature:I}):g.push({type:"path",negate:c,path:k});c=iEA.lastIndex}c&&c<e.length&&(e=e.substring(c))&&g.push({type:"literal",value:e});return g};
Y9e=function(e){for(var g="",c=0;c<e.length;c++){var k=e[c];k.type==="literal"&&(g+=k.value)}return g};
fSt=function(e,g,c,k){e.bindings!=null||(e.bindings=[]);e.bindings.push({kind:g,target:c,parts:k})};
lSq=function(e,g,c){var k=!1;if(e.localName==="template"){k=c;var I=g.stripWhitespace;I=PYK(e,I===void 0?!1:I);var J=e.content.ownerDocument.createDocumentFragment();I.content=J;J.appendChild(e.content);k&&(k.templateInfo=I);k=!0}else e.localName==="slot"&&(g.hasInsertionPoint=!0);if(e.firstChild&&(I=c,e.localName!=="script"&&e.localName!=="style")){J=0;for(var q=e.firstChild;q;){var L=q;if(L.localName==="template"){var n=L.getAttribute("is");if((q=n==="dom-if")||n==="dom-repeat"){L.removeAttribute("is");
n=L.ownerDocument.createElement("ps-"+n);L.parentNode.replaceChild(n,L);n.appendChild(L);var R=Array.from(L.attributes);R=_.w(R);for(var W=R.next();!W.done;W=R.next())W=W.value,q?mgg.has(W.name)&&XA(n,W.value,W.name):pEA.has(W.name)?XA(n,W.value,W.name):T7v.has(W.name),L.removeAttribute(W.name);q=n}else q=L}if(q.nodeType===Node.TEXT_NODE){L=void 0;n=e;for(R=q;((L=R.nextSibling)==null?void 0:L.nodeType)===Node.TEXT_NODE;)W=void 0,(W=R).textContent!=null||(W.textContent=""),R.nextSibling.textContent&&
(R.textContent+=R.nextSibling.textContent),n.removeChild(R.nextSibling);if(g.stripWhitespace&&q.textContent&&!q.textContent.trim()){e.removeChild(q);q=q.nextSibling;continue}}lSq(q,g,{parentIndex:J,parentInfo:I});q.parentNode&&J++;q=q.nextSibling}}var b;if((b=e.hasAttributes)==null?0:b.call(e)){b=c=xgz(c);I=!1;J=Array.from(e.attributes);J=_.w(J);for(L=J.next();!L.done;L=J.next())L=L.value,I=jUK(e,b,L.name,L.value)||I;k=I||k}e.nodeType===Node.TEXT_NODE&&(b=DgA(e.textContent),b.length&&(e.textContent=
Y9e(b)||" ",c=xgz(c),fSt(c,"text","textContent",b),k=!0));c&&k&&(c.infoIndex=g.nodeInfoList.push(c)-1)};
PYK=function(e,g){g={nodeInfoList:[],stripWhitespace:(g===void 0?!1:g)||e.hasAttribute("strip-whitespace")};lSq(e.content,g);return g};
AxK=function(e){Object.assign(e,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
FoW=function(e,g,c){g.signalCache!=null||(g.signalCache={});var k=g.signalCache[c];if(!k){var I=c.split(".");k=!sUe(e,I[0]);if(I.length>1&&k){var J=e.getPathMutationSignal(I);k=function(){var q=z7(e.owner,function(){return e.getWithPath([I[0]])}),L,n=(L=J())==null?void 0:L.value;
return{rootWasDefined:q!==void 0,value:n}}}else k=function(){var q=e.getWithPath(I);
return{rootWasDefined:q!==void 0,value:q}};
g.signalCache[c]=k}return k()};
dgC=function(e,g,c,k,I){g=g.parts.map(function(q,L){if(q.type==="literal"){c.partWasDefined!=null||(c.partWasDefined=[]);var n;(n=c.partWasDefined)[L]||(n[L]=q.value!==void 0);return q.value}var R;if(q.type==="method"){var W,b=(W=(R=c.partWasDefined)==null?void 0:R[L])!=null?W:!1;b||(b=q.signature.args.every(function(D){return D.type==="literal"}));
var h=!1,X=!0;R=q.signature.args.map(function(D){if(D.type==="literal")return D.value;if(D.type!=="path")throw Error("Hg`"+D.type);var f=FoW(e,c,D.path);D=f.value;f=f.rootWasDefined;h||(h=f);X&&(X=f);return D});
b||(b=I===1?X:h);c.partWasDefined!=null||(c.partWasDefined={});c.partWasDefined[L]=b;if(!b)return;R=(L=FoW(e,c,q.signature.methodName).value)&&typeof L==="function"?L.apply(k,R):void 0}else W=FoW(e,c,q.path),R=W.value,c.partWasDefined!=null||(c.partWasDefined={}),(b=c.partWasDefined)[L]||(b[L]=R!==void 0||W.rootWasDefined);q.negate&&(R=!R);return R});
if(g.length===1){var J;return((J=c.partWasDefined)==null?0:J[0])?g[0]:u_C}return g.join("")};
zfq=function(e){return typeof e==="object"&&!!e&&"notifyPath"in e&&"canNotifyPath"in e};
HE6=function(e){return typeof e==="object"&&!!e&&"notifyPath"in e};
QUz=function(e){return"polymerController"in e};
Ugp=function(e,g){g=""+hs(g)[0];if(zfq(e))return e.canNotifyPath(g);if(QUz(e)&&zfq(e.polymerController))return e.polymerController.canNotifyPath(g);if(HE6(e)){var c;return!((c=e.properties)==null||!c[g])}if(QUz(e)&&HE6(e.polymerController)){var k;return!((k=e.polymerController.properties)==null||!k[g])}return!1};
oP6=function(e,g,c){zfq(e)||HE6(e)?e.notifyPath(g,c):QUz(e)&&(zfq(e.polymerController)||HE6(e.polymerController))&&e.polymerController.notifyPath(g,c)};
V5g=function(e,g,c){if(c!==u_C){e.kind==="attribute"||e.target!=="textContent"&&(e.target!=="value"||g.localName!=="input"&&g.localName!=="textarea")||(c=c===void 0?"":c);var k,I=(k=ZEt.Polymer)==null?void 0:k.sanitizeDOMValue;I&&(c=I(c,e.target,e.kind,g));if(e.kind==="attribute"){e=e.target;if(e==="class"||e==="name"||e==="slot")g=(0,_.Bg)(g);XA(g,c,e)}else if(e=e.target,c!==g[e]||typeof c==="object")g.loggingStatus&&(g.loggingStatus.isDeclarativeExternal=!0,vo(g.localName,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
g[e]=c,g.loggingStatus&&(g.loggingStatus.isDeclarativeExternal=!1)}};
t5U=function(e,g,c,k){var I=g.parts[0];if(g.parts.length!==1||I.type!=="path"||!Ugp(c,g.target))return!1;var J=_.w(I.path.split(".")),q=J.next().value,L=N_(J);if(sUe(e,q))return!1;k.signalCache!=null||(k.signalCache={});J=k.signalCache[I.path];var n;J=(n=J)==null?void 0:n().value;if((J==null?void 0:J.path)!==void 0){k=hs(J.path);var R=hs(I.path);k=[g.target].concat(_.KY(k.slice(R.length-1)));oP6(c,k,I.negate?!J.value:J.value);return!0}var W=G5(e,q);var b=W.getChangeRecordSignal(L),h=!1;J=function(){if(!h){var D=
z7(e.owner,function(){return W.getWithPath([])});
h||(h=D!==void 0)}return{value:b(),rootWasDefined:h}};
k.signalCache[I.path]=J;k.partWasDefined!=null||(k.partWasDefined={});J=J();(R=k.partWasDefined)[0]||(R[0]=J.rootWasDefined);var X=z7(e.owner,function(){return W.getWithPath(L)});
k.partWasDefined[0]&&z7(e.owner,function(){return void V5g(g,c,I.negate?!X:X)});
return!0};
B7v=function(e,g,c,k,I,J){if(!t5U(e,g,c,k)){var q=dgC(e,g,k,I,J);z7(e.owner,function(){return void V5g(g,c,q)})}};
N7e=function(e,g,c,k,I,J){c=_.w(c);for(var q=c.next(),L={};!q.done;L={infoIndex:void 0},q=c.next()){q=q.value;var n=q.bindings;L.infoIndex=q.infoIndex;q=q.parentInfo;if(n){n=_.w(n);for(var R=n.next(),W={};!R.done;W={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},R=n.next()){W.b$jscomp$257=R.value;if(L.infoIndex===void 0)throw Error("Ig");W.bindingCtx$jscomp$4={};e.effect(function(b,h){return function(){I&&!I()||B7v(e,b.b$jscomp$257,g[h.infoIndex],b.bindingCtx$jscomp$4,k,J)}}(W,L))}}q&&N7e(e,g,[q],
k,I,J)}};
S9v=function(e,g){e=(g.parentInfo?S9v(e,g.parentInfo):e).firstChild;for(var c=0;e;e=e.nextSibling)if(g.parentIndex===c++)return e;throw Error("Jg");};
KoK=function(e,g,c,k){e=document.importNode(e.content,!0);e.__noInsertionPoint=!(k==null?0:k.hasInsertionPoint);for(var I=Array(g.length),J={},q=0;q<g.length;q++){var L=g[q],n=S9v(e,L);I[q]=n;L.id&&(J[L.id]=n);if(L.templateInfo){var R=n.parentElement;R&&(R.templateInfo=L.templateInfo,R.parentSignalProxy=c,R.eventListenerHost=k.eventListenerHost,R.stampingEnabled=k.enabledSignal)}R=void 0;if((R=L.events)==null?0:R.length)for(R=0;R<L.events.length;R++){var W=L.events[R];yxg(k.eventListenerHost,n,W.name,
W.value,k.getModel)}}N7e(c,I,g,k.thisCtx,k.enabledSignal,k.methodInvocationRequirement);return{root:e,nodes:I,nodesById:J}};
M5U=function(e,g){e=e();var c;(c=OEV.ShadyCSS)==null||c.prepareTemplate(e,g);g=PYK(e);return{template:e,nodeInfoList:g.nodeInfoList,hasInsertionPoint:g.hasInsertionPoint}};
gjt=function(){CYq=!1;for(var e=x_.length,g=0;g<e;g++){var c=x_[g];if(c)try{c()}catch(k){Promise.resolve().then(function(){throw k;})}}x_.splice(0,e);
ert+=e};
Jfv=function(e){CYq||(CYq=!0,cfA.textContent=(k06++).toString());x_.push(e);return IJK++};
_.Y_=function(e,g,c){DF++;e=g?new vjC(DF,e,g,c):new wxz(DF,e);$_.set(DF,e);return DF};
qqz=function(e){(e=$_.get(e))&&e.cancel()};
rfW=function(e,g){e=L8p.get(e);return e?(g=e.get(g))?g:null:null};
_.fO=function(e,g,c,k){var I=rfW(e,g);if(!I){I=new aJC;var J=L8p.get(e);J||(J=new Map,L8p.set(e,J));J.set(g,I)}e=c.bind(e);I.run(e,k,void 0)};
_.njt=function(e,g){var c;(c=rfW(e,g))==null||c.cancel()};
Rrq=function(e){var g;(g=rfW(e,"doRender"))==null||g.flush()};
Po=function(e){var g;return(g=e.hostElement)!=null?g:e};
Ejz=function(e){var g=e.indexOf(".");return g===-1?e:e.slice(0,g)};
W8V=function(e,g,c,k,I,J){J=(I=(k=J?Ejz(g):g)?g:null)?e.get(I):e.__data[g];I&&J===void 0&&(J=c[g]);_.oC(e.hostElement,NMK(k)+"-changed",{value:J,queueProperty:!0,path:I!=null?I:void 0},{bubbles:!1,composed:!1})};
bce=function(e,g){e.__isReflecting=!0;XEv(e.hostElement,g,e.__data[g]);e.__isReflecting=!1};
hrp=function(e){if(e._onIronRequestResizeNotifications){var g=e._onIronRequestResizeNotifications.bind(e);e._onIronRequestResizeNotifications=function(c){_.A3(c)!==e.hostElement&&g(c)}}e._ariaActiveAttributeChanged&&(e._ariaActiveAttributeChanged=e._ariaActiveAttributeChanged.bind(e.hostElement));
e._activeChanged&&(e._activeChanged=function(c){e.toggles?XA(e.hostElement,c?"true":"false",e.ariaActiveAttribute):e.hostElement.removeAttribute(e.ariaActiveAttribute);e._changedButtonState()});
e._asyncClick&&(e._asyncClick=function(){_.Y_(function(){e.hostElement.click()},1)});
!e.keyEventTarget||e.keyEventTarget instanceof EventTarget||(e.keyEventTarget=Po(e.keyEventTarget));e._disabledChanged&&(e._disabledChanged=e._disabledChanged.bind(e.hostElement));e._observeItems&&(e._observeItems=function(c){var k=Po(c);return _.IC(k).observeNodes(function(I){e._updateItems();e._updateSelected();_.oC(k,"iron-items-changed",I,{bubbles:!1,cancelable:!1})})});
e._updateItems&&e._updateItems===_.mk._updateItems&&(e._updateItems=function(){var c=_.IC(e.hostElement).queryDistributedElements(e.selectable||"*");c=Array.prototype.filter.call(c,e._bindFilterItem);e._setItems(c)});
e._computeKeyboardClass&&(e._computeKeyboardClass=function(c){_.Vg(e.hostElement,"keyboard-focus",c)});
e.ensureRipple&&(e.ensureRipple=function(c){if(e.hasRipple&&!e.hasRipple()){if(!e._createRipple)return;e._ripple=e._createRipple();e._ripple.noink=e.noink;var k=e._rippleContainer||e.hostElement;k&&_.o1(k).appendChild(e._ripple)}var I;if(c&&((I=e._ripple)==null?0:I.uiDownAction)){k=_.o1(e._rippleContainer||e.hostElement);var J;I=(J=c.composedPath())==null?void 0:J[0];k.contains(I)&&e._ripple.uiDownAction(c)}});
e._updateMultiselectable&&(e._updateMultiselectable=function(c){c?e.hostElement.setAttribute("aria-multiselectable","true"):e.hostElement.removeAttribute("aria-multiselectable")})};
XxC=function(e,g,c){c=_.w(c);for(var k=c.next();!k.done;k=c.next())SKA(k.value.constructor,e);SKA(g.constructor,e)};
xVq=function(e,g){e=_.w(e);for(var c=e.next();!c.done;c=e.next())if(c=c.value,c.type==="signal"){var k=c.propertyKey;if(g.hasOwnProperty(k)&&g[k]!=null&&c.attributeType===Object){a:{k=g[k].constructor;for(var I=_.w(G06),J=I.next();!J.done;J=I.next())if(J=J.value,k===J){k=J;break a}k=Object}c.attributeType=k}}};
DVU=function(){};
$V8=function(e){var g;return(g=e.hostElement)!=null?g:e};
Yq6=function(){throw Error("Ng");};
fJK=function(e,g){e.constructor.prototype.useSignals=!0;var c=new e.constructor;XxC(c,e,g.behaviors);xVq(g.reactiveSchemas,c);c={};for(var k=_.w(g.reactiveSchemas),I=k.next();!I.done;I=k.next())I=I.value,I.type==="signal"&&(c[I.propertyKey]=I.attributeType);var J={copyPropertiesToProto:Yq6,didRegister:!1,typesForSignals:c},q=["disable-upgrade"].concat(_.KY(g.observedAttributes)),L=function(n){pO.call(this,e,g,J,n)};
_.Y(L,pO);_.Bd.Object.defineProperties(L,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return q}}});
J.copyPropertiesToProto=function(){for(var n=0;n<g.behaviors.length;n++)K2K(g.behaviors[n],L.prototype);K2K(e,L.prototype)};
g.legacyOptimizations||J.copyPropertiesToProto();L.prototype.is=e.is;return L};
jWe=function(e,g){if(Object.getPrototypeOf(g.prototype).constructor!==_.z)throw Error("Og");g.prototype.is=e.is;return fJK(g.prototype,e)};
icV=function(e){return e.type==="compute"||e.type==="computeWithMethod"};
PJ8=function(e){for(var g=e.reactiveSchemas.filter(icV),c=new Map,k=new Map,I=new Map,J=_.w(g),q=J.next();!q.done;q=J.next())q=q.value,c.set(q.propertyKey,q),k.set(q.propertyKey,[]),I.set(q.propertyKey,0);J=0;g=_.w(g);for(q=g.next();!q.done;q=g.next()){q=q.value;for(var L=_.w(q.type==="computeWithMethod"?q.method.args:q.args),n=L.next();!n.done;n=L.next())n=n.value,n.type!=="literal"&&(n=n.path.split(".")[0],k.has(n)&&(k.get(n).push(q.propertyKey),I.set(q.propertyKey,I.get(q.propertyKey)+1),J++))}q=
[].concat(_.KY(k.keys())).filter(function(R){return I.get(R)===0});
for(g=[];q.length;)for(L=q.shift(),g.push(c.get(L)),L=_.w(k.get(L)),n=L.next();!n.done;n=L.next())n=n.value,I.set(n,I.get(n)-1),J--,I.get(n)===0&&q.push(n);c=e.reactiveSchemas.filter(function(R){return!icV(R)});
e.reactiveSchemas=[].concat(_.KY(c),_.KY(g))};
mVe=function(e,g){if(g.properties)for(var c=_.w(Object.entries(g.properties)),k=c.next();!k.done;k=c.next()){var I=_.w(k.value);k=I.next().value;I=I.next().value;e.properties[k]=typeof I==="function"?{type:I}:I}g.observers&&e.observers.push.apply(e.observers,_.KY(g.observers));g.disabledPolySiReactions&&e.disabledPolySiReactions.push.apply(e.disabledPolySiReactions,_.KY(g.disabledPolySiReactions))};
pxU=function(e,g){for(var c=g.length-1;c>=0;c--){var k=g[c];Array.isArray(k)?pxU(e,k):e.indexOf(k)<0&&e.unshift(k)}};
T2V=function(e,g){e.reactiveSchemas=e.reactiveSchemas.filter(function(c){return c.type==="observe"&&g.includes(c.method.methodName)||icV(c)&&g.includes(c.propertyKey)?!1:!0})};
Afe=function(e,g){var c=g.prototype,k,I,J={is:e.is,reactiveSchemas:[],observedAttributes:[],behaviors:[oJK.InjectBehavior,RI.prototype],disableElementRegistration:e.disableElementRegistration,provide:(k=e.providers)!=null?k:[],reactivityMode:e.reactivityMode,signalProperties:(I=c.signalProperties)!=null?I:[]};"template"in g?J.templateGetter=function(){return g.template}:e.getTemplate&&(J.templateGetter=e.getTemplate);
c.behaviors&&pxU(J.behaviors,c.behaviors);lJp(J,g);return J};
lJp=function(e,g){for(var c=g.prototype,k={properties:{},observers:[],disabledPolySiReactions:[]},I=_.w(e.behaviors),J=I.next();!J.done;J=I.next())mVe(k,J.value);mVe(k,c);if(e.signalProperties)for(c=_.w(e.signalProperties),I=c.next();!I.done;I=c.next())delete k.properties[I.value];c=_.w(Object.entries(k.properties));for(I=c.next();!I.done;I=c.next()){J=_.w(I.value);I=J.next().value;J=J.next().value;var q=void 0;if((q=e.signalProperties)==null||!q.includes(I)){q=void 0;var L=e,n=J.type;if(!n)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{n=Reflect.getMetadata("design:type",g,I);for(var R=_.w(sWv),W=R.next();!W.done;W=R.next())if(W=W.value,n===W){n=W;break a}n=Object}else n=String;J.computed||J.selector||(L.reactiveSchemas.push({type:"signal",propertyKey:I,value:J.value,attributeType:n,readOnly:J.readOnly}),L.observedAttributes.push(_.KM(I)));J.reflectToAttribute&&L.reactiveSchemas.push({type:"reflect",propertyKey:I});if(J.computed){n=hfA(J.computed);if(!n)throw Error("Pg");L.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:I,method:n,value:J.value})}J.observer&&L.reactiveSchemas.push({type:"observe",method:{methodName:J.observer,args:[{type:"path",path:I}]}});J.notify&&L.reactiveSchemas.push({type:"notify",propertyKey:I});J.selector&&L.reactiveSchemas.push({type:"redux",propertyKey:I,selector:J.selector,selectorArgs:(q=J.selectorArgs)!=null?q:[]})}}F8K&&PJ8(e);g=_.w(k.observers);for(I=g.next();!I.done;I=g.next())c=e,I=I.value,(J=hfA(I))?c.reactiveSchemas.push({type:"observe",method:J}):console.log('Warning: unable to parse observe declaration: "'+
I+'"');T2V(e,k.disabledPolySiReactions)};
u4v=function(e,g){for(var c=0;c<g.length;c++){var k=g[c],I=void 0;(I=k).showHideApi!=null||(I.showHideApi={});I=void 0;!!e!==!((I=k.showHideApi)==null||!I.hideTemplateChildren)&&(k.nodeType===Node.TEXT_NODE?e?(k.showHideApi.polymerTextContent=k.textContent,k.textContent=""):(I=void 0,k.textContent=(I=k.showHideApi.polymerTextContent)!=null?I:null):k instanceof Element&&k.localName==="slot"?e?(k.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Bg)((0,_.Bg)(k).parentNode).replaceChild(k.showHideApi.polymerReplaced,
k)):(I=k.showHideApi.polymerReplaced)&&(0,_.Bg)((0,_.Bg)(I).parentNode).replaceChild(k,I):k instanceof HTMLElement&&k.style&&(e?(k.showHideApi.polymerDisplay=k.style.display,k.style.display="none"):k.style.display=k.showHideApi.polymerDisplay));k.showHideApi.hideTemplateChildren=e;k.showHideChildren&&k.showHideChildren(e)}};
zrg=function(){if(!dVe){var e=document.createElement("style");e.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(e);dVe=!0}};
T5=function(){return _.G("disable_hidden_dom_if_using_stamper")};
HcC=function(e,g){var c=_.lF().getState();return g?e.apply(null,[c].concat(_.KY(g))):e(c)};
ojC=function(){if(QW8)return QW8;var e=_.w(_.Wa(0,void 0,"MB1Hb")),g=e.next().value;e.next();var c=e.next().value;_.lF().subscribe(function(){UVA(c)});
return QW8=g};
UVA=function(e){ZcV||(ZcV=!0,Promise.resolve().then(function(){e(function(g){return g+1});
ZcV=!1}))};
_.lF=function(){return V7e.getAppStore()};
t7e=function(e,g){return V7e.getSelectFn()(e,g)};
_.As=function(e){V7e.getDispatchFn()(e)};
B26=function(e,g){var c={},k;for(k in e)c[k]=g(e[k],k);return c};
_.sz=function(e,g){return function(){var c;return(c=_.ds(e))!=null?c:g}};
_.FA=function(e,g){var c=Object.assign({},e),k;for(k in g)g.hasOwnProperty(k)&&(c[k]=_.sz(e[k],g[k]));return c};
N2e=function(e,g,c,k){e instanceof Element&&(c.debugName||(c.debugName="<"+e.tagName.toLowerCase()+(e.tagName.includes("-")?">":"."+e.className+">")),_.G("ytwiz_enable_debug_component_props")&&(e.debugProps||(e.debugProps=B26(g,function(I){return function(){return I()}})),g.data===void 0||"data"in e&&!e.isWebComponentWrapper||Object.defineProperty(e.debugProps,"data",{get:function(){return _.ds(g.data)},
set:function(I){var J;k==null||(J=k.data)==null||J.call(k,I)},
enumerable:!0,configurable:!0})))};
_.uF=function(e,g){if(e.length===0&&(g==null||!g.initial))return B3W(e,{debugName:g==null?void 0:g.debugName},"l");var c=_.w(B3W({source:function(){return e()},
computation:function(J,q){return(q==null?0:q.value)?e(q.value):(g==null?0:g.initial)?e(g.initial):J}},{debugName:g==null?void 0:g.debugName},"m")),k=c.next().value,I=c.next().value;
c=c.next().value;return[k,I,c]};
_.H=function(e,g){var c=function(k){return _.Q1("ytComponent",{},function(I){var J=Sq8={};var q;if(((q=c)==null?0:q.idomCompat)&&k.renderedFromIdom){var L;q=typeof c.idomCompat==="object"?(L=c)==null?void 0:L.idomCompat.callbacks:{};q=_.w(yfC(k,q));L=q.next().value;var n=q.next().value;q=q.next().value;var R=K8C(e,L);J.privateValue=R;Sq8=void 0;N2e(R,L,c,n);I.addAttributes({debugName:c.debugName});I=URz(R);I=Array.isArray(I)?I[0]:I;I[a7]||(I[a7]={});I[a7].updateSignalsFromIdomProps=q;Ocv(L,R);return R}q=
B26(k,M7C);L=K8C(e,q);N2e(L,q,c);J.privateValue=L;Sq8=void 0;I.addAttributes({debugName:c.debugName});Ocv(q,L);return L})};
c.debugName=g===void 0?"":g;return c};
K8C=function(e,g){e=e(g);return WV(e)};
CJq=function(e,g){e[g]||(e=new _.E2("IDOM interop setter undefined. Key:",g),_.jW(e))};
M7C=function(e,g){return g==="children"||g==="ref"||typeof e==="function"||e===void 0?e:function(){return _.ds(e)}};
yfC=function(e,g){var c={},k={},I={},J={},q;for(q in e){J={key$jscomp$954:J.key$jscomp$954};J.key$jscomp$954=q;var L=e[J.key$jscomp$954];if(J.key$jscomp$954==="children"||J.key$jscomp$954==="ref")c[J.key$jscomp$954]=L;else if(typeof L==="function")if(J.key$jscomp$954 in g||L.length>0)I[J.key$jscomp$954]=L,c[J.key$jscomp$954]=function(R){return function(){return I[R.key$jscomp$954].apply(I,_.KY(_.Mb.apply(0,arguments)))}}(J);
else if(J.key$jscomp$954==="data"){var n=_.w(_.uF(L,{debugName:J.key$jscomp$954+":cwis"}));L=n.next().value;n=n.next().value;c[J.key$jscomp$954]=L;k[J.key$jscomp$954]=n}else c[J.key$jscomp$954]=L;else e[J.key$jscomp$954]===void 0&&J.key$jscomp$954 in g||(n=_.w(_.Wa(e[J.key$jscomp$954],{debugName:J.key$jscomp$954+":cwis"},"eGMajf")),L=n.next().value,n=n.next().value,c[J.key$jscomp$954]=L,k[J.key$jscomp$954]=n)}return[c,k,function(R){var W={},b;for(b in R)W={key$jscomp$953:W.key$jscomp$953,val$jscomp$122:void 0},
W.key$jscomp$953=b,W.val$jscomp$122=R[W.key$jscomp$953],W.key$jscomp$953!=="children"&&W.key$jscomp$953!=="ref"&&(typeof W.val$jscomp$122==="function"?W.key$jscomp$953 in g?I[W.key$jscomp$953]=W.val$jscomp$122:W.val$jscomp$122.length>0&&(I[W.key$jscomp$953]=W.val$jscomp$122,_.mN(new _.E2("Callback detected that was not set in the idomCompat callbacks map. Key:",W.key$jscomp$953))):W.key$jscomp$953 in g&&W.val$jscomp$122===void 0||(CJq(k,W.key$jscomp$953),Dc(function(h){return function(){k[h.key$jscomp$953](h.val$jscomp$122)}}(W))))}]};
c98=function(e,g,c){var k=jXA(e.prototype,ezC,e.prototype.behaviors);k.prototype.is=g;k.prototype.localName=g;c&&ghz(k,c);return function(I){I&&(k.prototype.hostElement=I);var J=new k;J.root=J;J.hostElement=I;return J}};
ghz=function(e,g){var c;Object.defineProperty(e.prototype,"_template",{get:function(){c===void 0&&(c=g());return c},
set:function(k){c=k},
configurable:!0,enumerable:!0})};
wre=function(e,g,c,k){function I(){if(!X){for(var D=new Set,f=_.w(W),l=f.next();!l.done;l=f.next()){l=l.value;for(var A=_.w(Object.getOwnPropertyNames(l)),d=A.next();!d.done;d=A.next()){d=d.value;var S=void 0,V=(S=Object.getOwnPropertyDescriptor(l,d))==null?void 0:S.value;V&&V instanceof Function&&!dk(d)&&(!L[d]||_.G("polymer_forward_method_killswitch"))&&D.add(d)}}f=_.w(Object.entries(Object.getOwnPropertyDescriptors(e.prototype)));for(l=f.next();!l.done;l=f.next())A=_.w(l.value),l=A.next().value,
A=A.next().value,A.value instanceof Function&&!dk(l)&&D.add(l);X=D}return X}
koV(e,g,k==null?void 0:k.providers);i2g(e.prototype,e,!0);var J=c98(e,g,c),q,L=(q=e.prototype.properties)!=null?q:{},n,R,W=(R=(n=e.prototype.behaviors)==null?void 0:n.flat(Infinity))!=null?R:[];c=_.w(W);for(q=c.next();!q.done;q=c.next())L=Object.assign({},q.value.properties,L);var b=[].concat(_.KY(IeC),_.KY(Object.keys(L).map(function(D){return _.KM(D)}))),h=!1,X;
return{ctor:function(D,f){var l=J(D),A,d;D=[].concat(_.KY((A=k==null?void 0:k.allowedProps)!=null?A:[]),_.KY((d=k==null?void 0:k.allowedPropsFromBehaviors)!=null?d:[]));l.allowedProps=D.length>0?D:void 0;A={};d=_.w(b);for(D=d.next();!D.done;D=d.next())D=D.value,A[D]=_.O4(D);l.__dataAttributes=A;var S=l.ready.bind(l);l.ready=function(){f.beforeReady();S();if(II(g)&&!h){var V=l.__templateInfo;if(V==null?0:V.hostProps){V=_.w(Object.keys(V.hostProps));for(var Q=V.next();!Q.done;Q=V.next())vo(g,Q.value,
"PROPERTY_ACCESS_GET_INTERNAL")}h=!0}};
l._overrideLegacyUndefined=!0;return l},
props:L,observedAttributes:b,getInitialMethods:I,getPropsToForwardBeforeRegister:function(){for(var D=[],f=new Set,l=_.w(Object.keys(L)),A=l.next();!A.done;A=l.next())A=A.value,D.push([A,L[A].readOnly]),f.add(A);l=I();A=_.w(Object.keys(Object.getOwnPropertyDescriptors(e.prototype)));for(var d=A.next();!d.done;d=A.next())d=d.value,!J9v(d)||l.has(d)||f.has(d)||(D.push([d,!1]),f.add(d));f=_.w(vhv);for(l=f.next();!l.done;l=f.next())D.push([l.value,!0]);return D},
getPropsToForwardBeforeReady:function(D){for(var f=[],l=_.w(Object.entries(D)),A=l.next();!A.done;A=l.next()){var d=_.w(A.value);A=d.next().value;d=d.next().value;if(J9v(A)&&!(d instanceof Function)&&(f.push([A,!1]),II(g))){var S=d=void 0;(S=(d=D)._createPropertyAccessor)==null||S.call(d,A)}}return f},
shouldForwardProp:J9v,shouldLog:II}};
koV=function(e,g,c){ZWe(e,c);e.prototype.behaviors.unshift(qbA);if(pXV()){if(II(g)){var k;(k=e.prototype).behaviors!=null||(k.behaviors=[]);e.prototype.behaviors.unshift(sEz())}F2z(e)}_.m(RI.prototype)(e.prototype,"__templateHelpers")};
dk=function(e){return L0q.has(e)||e.startsWith("__compute__")};
J9v=function(e){return!dk(e)&&!e.startsWith("_")&&!e.endsWith("_")};
Eh8=function(e,g){function c(){var h=n();h=_.w(h);for(var X=h.next();!X.done;X=h.next()){var D=_.w(X.value);X=D.next().value;D=D.next().value;r9e(b.prototype,X,D)}k=!0}
var k=!1,I=e.ctor,J=e.getInitialMethods,q=e.observedAttributes,L=e.getPropsToForwardBeforeReady,n=e.getPropsToForwardBeforeRegister,R=e.shouldForwardProp,W=e.shouldLog,b=function(){var h=HTMLElement.call(this)||this;h.didForwardDynamicProps=!1;h.loggingStatus={};k||c();h.inst=I(h,{beforeReady:function(){h.didForwardDynamicProps||(h.forwardDynamicProps(),h.didForwardDynamicProps=!0)}});
h.controllerProxy=lAC(h.inst,g);h.forwardMethods();return h};
_.Y(b,HTMLElement);b.prototype.forwardMethods=function(){for(var h=this,X=_.w(this.inst.getExtraMethodsToForward()),D=X.next(),f={};!D.done;f={method$jscomp$65:void 0},D=X.next()){var l=_.w(D.value);D=l.next().value;l=l.next().value;f.method$jscomp$65=l;this[D]=function(A){return function(){return A.method$jscomp$65.call.apply(A.method$jscomp$65,[h.inst].concat(_.KY(_.Mb.apply(0,arguments))))}}(f)}X=_.w(J());
for(f=X.next();!f.done;f=X.next())f=f.value,R(f)&&aeg(this,f),W(g)&&!dk(f)&&nhK(this.inst,f)};
b.prototype.forwardDynamicProps=function(){var h=L(this.inst);h=_.w(h);for(var X=h.next();!X.done;X=h.next()){var D=_.w(X.value);X=D.next().value;D=D.next().value;r9e(this,X,D);W(g)&&!dk(X)&&RzC(this.inst,X)}};
b.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
b.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
b.prototype.attributeChangedCallback=function(h,X,D){this.inst.attributeChangedCallbackWrapper(h,X,D)};
_.Bd.Object.defineProperties(b.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return g}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Bd.Object.defineProperties(b,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return q}}});
customElements.define(g,b)};
r9e=function(e,g,c){e.hasOwnProperty(g)||Object.defineProperty(e,g,{get:function(){var k,I=((k=e.is)!=null?k:e.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||vo(I,g,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,k=this.polymerController[g],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,k},
set:function(k){if(!c){var I,J=((I=e.is)!=null?I:e.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||vo(J,g,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=g,this.loggingStatus.bypassProxyController=!0,this.polymerController[g]!==k&&(I={},this.polymerController.setProperties((I[g]=k,I)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
aeg=function(e,g,c){var k=e.polymerController;e[g]=function(){var I=_.Mb.apply(0,arguments);e.loggingStatus.currentExternalCall=g;e.loggingStatus.bypassProxyController=!0;var J,q=((J=e.is)!=null?J:e.tagName).toLowerCase();vo(q,g,"PROPERTY_ACCESS_CALL_EXTERNAL");var L;J=(L=c!=null?c:k[g])==null?void 0:L.call.apply(L,[k].concat(_.KY(I)));e.loggingStatus.currentExternalCall=void 0;e.loggingStatus.bypassProxyController=!1;return J}};
nhK=function(e,g){var c=e.hostElement,k=e[g];e[g]=function(){var I=_.Mb.apply(0,arguments);if(c.loggingStatus.currentExternalCall!==g){var J,q=((J=c.is)!=null?J:c.tagName).toLowerCase();vo(q,g,"PROPERTY_ACCESS_CALL_INTERNAL")}return k==null?void 0:k.apply(e,I)}};
RzC=function(e,g){var c=Object.getOwnPropertyDescriptor(e,g);c&&!c.get&&Object.defineProperty(e,g,{get:function(){AGg(e.hostElement,g);return c.value},
set:function(k){wk(e.hostElement,g);c.value=k}})};
W0t=function(e){return _.G("poly_si_dom_repeat_detached_fix_killswitch")||e.tagName!=="PS-DOM-REPEAT"?e.tagName==="DOM-REPEAT":!0};
hz6=function(e,g){var c=bHq(e);e instanceof Element&&c.unshift(e);e=_.w(c.filter(W0t));for(var k=e.next();!k.done;k=e.next()){var I=void 0;k=_.w((I=k.value.__instances)!=null?I:[]);for(I=k.next();!I.done;I=k.next())if(I=I.value,I.root){I=Array.from(I.root.children);I=_.w(I);for(var J=I.next();!J.done;J=I.next())c.push.apply(c,_.KY(hz6(J.value,g)))}}return c.filter(function(q){return q.usePatchedLifecycles&&q.lifecycleIsConnected===g})};
bHq=function(e){var g=null;e instanceof Element?g=Element.prototype.querySelectorAll:e instanceof DocumentFragment&&(g=DocumentFragment.prototype.querySelectorAll);return g?Array.from(g.call(e,"*")):[]};
z5=function(e){_.EX(function(){for(var g=_.w(hz6(e,!1)),c=g.next();!c.done;c=g.next()){c=c.value;c.lifecycleIsConnected=!0;try{var k=void 0,I=void 0,J=void 0,q=void 0;(k=(q=c.polymerController)!=null?q:c)==null||(J=(I=k).connectedCallback)==null||J.call(I)}catch(L){_.jW(L)}}})};
Ho=function(e){_.EX(function(){for(var g=_.w(hz6(e,!0)),c=g.next();!c.done;c=g.next()){c=c.value;c.lifecycleIsConnected=!1;try{var k=void 0,I=void 0,J=void 0,q=void 0;(k=(q=c.polymerController)!=null?q:c)==null||(J=(I=k).disconnectedCallback)==null||J.call(I)}catch(L){_.jW(L)}}})};
fev=function(){if(!XrA){XrA=!0;var e=[Node];QJ&&e.push(QJ.Wrapper);var g=Node.prototype.insertBefore,c=Node.prototype.removeChild;e=_.w(e);for(var k=e.next(),I={};!k.done;I={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},k=e.next())k=k.value,I.nativeInsertBefore=k.prototype.insertBefore,k.prototype.insertBefore=function(q){return function(L,n){if(L instanceof DocumentFragment){var R=Array.from(L.children);L=q.nativeInsertBefore.call(this,L,n);
if(this.isConnected&&q.nativeInsertBefore===g)for(n=_.w(R),R=n.next();!R.done;R=n.next())z5(R.value);return L}R=L instanceof Element&&L.isConnected;n=q.nativeInsertBefore.call(this,L,n);R&&Ho(L);this.isConnected&&z5(L);return n}}(I),I.nativeAppendChild=k.prototype.appendChild,k.prototype.appendChild=function(q){return function(L){if(L instanceof DocumentFragment){var n=Array.from(L.children);
L=q.nativeAppendChild.call(this,L);if(this.isConnected){n=_.w(n);for(var R=n.next();!R.done;R=n.next())z5(R.value)}return L}n=L instanceof Element&&L.isConnected;R=q.nativeAppendChild.call(this,L);n&&Ho(L);this.isConnected&&z5(L);return R}}(I),I.nativeRemoveChild=k.prototype.removeChild,k.prototype.removeChild=function(q){return function(L){var n=L instanceof Element&&L.isConnected,R=q.nativeRemoveChild.call(this,L);
n&&c===q.nativeRemoveChild&&Ho(L);return R}}(I),I.nativeReplaceChild=k.prototype.replaceChild,k.prototype.replaceChild=function(q){return function(L,n){if(L instanceof DocumentFragment){var R=Array.from(L.children);
L=q.nativeReplaceChild.call(this,L,n);if(this.isConnected)for(Ho(n),n=_.w(R),R=n.next();!R.done;R=n.next())z5(R.value);return L}R=L instanceof Element&&L.isConnected;var W=this.isConnected,b=q.nativeReplaceChild.call(this,L,n);W&&Ho(n);R&&Ho(L);W&&z5(L);return b}}(I);
e=[Element];QJ&&e.push(QJ.Wrapper);e=_.w(e);k=e.next();for(I={};!k.done;I={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},k=e.next())k=k.value,k.prototype.before=Go8(k.prototype.before),k.prototype.after=Go8(k.prototype.after),I.nativeReplaceWith=k.prototype.replaceWith,k.prototype.replaceWith=function(q){return function(){var L=_.Mb.apply(0,arguments),n=_.w(xPp(L)),R=n.next().value,
W=n.next().value;n=this.isConnected;q.nativeReplaceWith.apply(this,L);L=_.w(W);for(W=L.next();!W.done;W=L.next())Ho(W.value);if(n)for(Ho(this),R=_.w(R),n=R.next();!n.done;n=R.next())n=n.value,n instanceof Element&&z5(n)}}(I),I.nativeRemove=k.prototype.remove,k.prototype.remove=function(q){return function(){var L=this.isConnected;
q.nativeRemove.call(this);L&&Ho(this)}}(I),I.nativeInsertAdjacentElement=k.prototype.insertAdjacentElement,k.prototype.insertAdjacentElement=function(q){return function(L,n){var R=n.isConnected;
L=q.nativeInsertAdjacentElement.call(this,L,n);R&&Ho(n);L.isConnected&&z5(L);return L}}(I),I.nativeSetAttribute=k.prototype.setAttribute,k.prototype.setAttribute=function(q){return function(L,n){var R=DPt(this);
if(!R.usePatchedLifecycles)return q.nativeSetAttribute.call(this,L,n);var W=this.getAttribute(L);q.nativeSetAttribute.call(this,L,n);n=this.getAttribute(L);$PV(R,L,W,n)}}(I),I.nativeRemoveAttribute=k.prototype.removeAttribute,k.prototype.removeAttribute=function(q){return function(L){var n=DPt(this);
if(!n.usePatchedLifecycles)return q.nativeRemoveAttribute.call(this,L);var R=this.getAttribute(L);q.nativeRemoveAttribute.call(this,L);R!==null&&$PV(n,L,R,null)}}(I),I.nativeToggleAttribute=k.prototype.toggleAttribute,k.prototype.toggleAttribute=function(q){return function(L,n){var R=DPt(this);
if(!this.usePatchedLifecycles)return q.nativeToggleAttribute.call(this,L,n);var W=this.getAttribute(L),b=W!==null;n=q.nativeToggleAttribute.call(this,L,n);n!==b&&$PV(R,L,W,n?"":null);return n}}(I);
e=[Document,DocumentFragment,Element,ShadowRoot];QJ&&e.push(QJ.Wrapper);e=_.w(e);for(I=e.next();!I.done;I=e.next())I=I.value,I.prototype.prepend=Go8(I.prototype.prepend),I.prototype.append=Go8(I.prototype.append);(QJ==null?void 0:QJ.noPatch)===!0&&Ybp();document.readyState==="complete"?z5(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&z5(document.body)});
var J=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");J&&J.get&&J.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:J.enumerable,configurable:!0,get:J.get,set:function(q){q||Ho(this);J.set.call(this,q);return q}})}};
Go8=function(e){return function(){var g=_.Mb.apply(0,arguments),c=_.w(xPp(g)),k=c.next().value;c=c.next().value;e.apply(this,g);g=_.w(c);for(c=g.next();!c.done;c=g.next())Ho(c.value);if(this.isConnected)for(k=_.w(k),g=k.next();!g.done;g=k.next())g=g.value,g instanceof Element&&z5(g)}};
Ybp=function(){for(var e=_.w(jcq),g=e.next();!g.done;g=e.next()){g=g.value.prototype;for(var c=_.w(iHq),k=c.next();!k.done;k=c.next()){k=k.value;var I=Object.getOwnPropertyDescriptor(g,k);I&&Object.defineProperty(g,"__shady_native_"+k,I)}}};
$PV=function(e,g,c,k){var I,J;if((I=e.polymerController)==null?0:(J=I.observedAttributes)==null?0:J.includes(g))if(e=e.polymerController,e.attributeChangedCallbackWrapper)e.attributeChangedCallbackWrapper.call(e,g,c,k);else{var q;(q=e.attributeChangedCallback)==null||q.call(e,g,c,k)}};
xPp=function(e){var g=[],c=[];e=_.w(e);for(var k=e.next();!k.done;k=e.next())k=k.value,k instanceof Element&&k.isConnected&&c.push(k),k instanceof DocumentFragment?g.push.apply(g,_.KY(Array.from(k.children))):g.push(k);return[g,c]};
DPt=function(e){return!(e instanceof Element)&&e.node instanceof Element?e.node:e};
P_q=function(e,g){var c=g?["children"].concat(_.KY(g)):["children"];g=[];c=_.w(c);for(var k=c.next();!k.done;k=c.next()){var I=k.value;if(e.hasOwnProperty(I)){I==="children"?k=_.a(_.es,null,e[I]):(k=e[I],k=typeof k==="function"?k():k,k=Array.isArray(k)?k:[k]);k=WV(k).flat();if(I!=="children"){I=NMK(I);for(var J=_.w(k),q=J.next();!q.done;q=J.next())q=q.value,q instanceof Element&&q.setAttribute("slot",I)}g.push(k)}}g.length===0?e=[]:(e=WV(_.a("div",null,g)),e=Array.from(e.childNodes));return e};
prK=function(e,g,c){var k={};_.lu(function(){var I={},J;for(J in g)if(g.hasOwnProperty(J)){var q=void 0,L=void 0;if(!(((q=c.slotProps)==null?0:q.includes(J))||J==="children"||((L=c.callbackProps)==null?0:L.includes(J))||J==="ref")&&(q=_.ds(g[J]),k[J]!==q)){k[J]=q;L=void 0;var n=(L=e.hostElement)!=null?L:e;!c.skipHostForwardedProps&&mPp.has(J)&&(n[J]=q);I[J]=q}}Dc(function(){if(e.setProperties)e.setProperties(I);else for(var R=_.w(Object.entries(I)),W=R.next();!W.done;W=R.next()){var b=_.w(W.value);
W=b.next().value;b=b.next().value;e[W]=b}})},"n")};
lee=function(e,g,c,k){var I=P_q(c,k.slotProps),J=(0,_.Bg)(e);I=_.w(I);for(var q=I.next();!q.done;q=I.next())J.appendChild(q.value);prK(g,c,k);k=_.w(k.callbackProps||[]);I=k.next();for(J={};!I.done;J={kebabEventName:void 0,eventListener:void 0},I=k.next())q=I=I.value,String(I).substring(0,2)==="on"&&c[q]?(J.kebabEventName=NMK(String(I).substring(2)),J.eventListener=c[q],e.addEventListener(J.kebabEventName,J.eventListener),_.sX(function(W){return function(){e.removeEventListener(W.kebabEventName,W.eventListener)}}(J))):
g[q]=c[q];
if(c.ref){c=_.w(Tcq(c.ref));var L=c.next().value,n=c.next().value,R=g.attached.bind(g);g.attached=function(){L(e);R()};
_.sX(function(){n()})}};
Tcq=function(e){if(typeof e==="function"){var g;return[function(c){g=e(c)},
function(){var c;(c=g)==null||c()}]}if(!e.onRender||!e.onUnmount)throw Error("Tg");
return[e.onRender,e.onUnmount]};
A9e=function(e,g){g=g===void 0?{}:g;var c=function(k){var I=document.createElement(e),J;var q=(J=I.polymerController)!=null?J:I;lee(I,q,k,g);return I};
c.debugName=e;return c};
dPW=function(e,g,c,k,I){k=k===void 0?{}:k;var J=sc6,q=!1;J?(q=!0,sc6=void 0):(F08=g,J=document.createElement(g),F08=void 0);var L=J;L.usePatchedLifecycles=!0;L.lifecycleIsConnected=!1;J.loggingStatus={};var n=uOp(e,g,J,k,I);_.sX(function(){L.lifecycleIsConnected&&(L.lifecycleIsConnected=!1,n.disconnectedCallback())});
q||(J.__noInsertionPoint=!0,lee(J,n,c,k));return J};
uOp=function(e,g,c,k,I){I=I===void 0?wre:I;zzq[g]!=null||(zzq[g]=I(e,g,k==null?void 0:k.getTemplate,k));var J=zzq[g],q=J.ctor;I=J.getInitialMethods;var L=J.getPropsToForwardBeforeReady;e=J.getPropsToForwardBeforeRegister;k=J.shouldForwardProp;var n=J.observedAttributes,R=J.shouldLog,W=q(c,{beforeReady:function(){var b=W;b._takeAttributes?b._takeAttributes():b.setPropertiesFromInitialAttributeValues&&b.setPropertiesFromInitialAttributeValues();b=_.w(L(c.polymerController));for(var h=b.next();!h.done;h=
b.next()){var X=_.w(h.value);h=X.next().value;X=X.next().value;r9e(c,h,X);R(g)&&!dk(h)&&RzC(c.polymerController,h)}c.polymerController=lAC(W,g)}});
c.polymerController=W;c.polymerController.observedAttributes=n;J=_.w(W.getExtraMethodsToForward());for(q=J.next();!q.done;q=J.next())n=_.w(q.value),q=n.next().value,n=n.next().value,aeg(c,q,n);I=_.w(I());for(J=I.next();!J.done;J=I.next())J=J.value,k(J)&&aeg(c,J),R(g)&&!dk(J)&&nhK(W,J);e=_.w(e());for(k=e.next();!k.done;k=e.next())I=_.w(k.value),k=I.next().value,I=I.next().value,r9e(c,k,I);return W};
HHv=function(e){var g=Uz;Uz=e;return g};
ohv=function(e){if(Qcv.has(e)&&Uz&&UPz(Uz)===e){var g;(g=Uz)._numRenders!=null||(g._numRenders=0);Uz._numRenders++;if(Uz._numRenders>1)throw Error("Ug");return Uz}};
VOV=function(e){var g=UPz(e);Uz!==e&&g.includes("-")&&ZHv.set(e,!0)};
UPz=function(e){var g;return(g=e==null?void 0:e.tagName.toLowerCase())!=null?g:""};
tOz=function(e,g){if(e.componentType===YF)throw Error("Vg");Qcv.add(g);var c=function(){var k=HTMLElement.call(this)||this;k.is=g;if(F08===g)return k.isInert=!0,k;k.createElement();return k};
_.Y(c,HTMLElement);c.prototype.createElement=function(){if(!this.isInert){sc6=this;var k=_.w(eme(function(){return _.a(e,null)})).next().value;
sc6=void 0;AxK(this);return k}};
customElements.define(g,c)};
Nc8=function(e,g,c,k,I){e.prototype.is=g;(k==null?0:k.useSink)?Bct(e,g,c,k,I):(c=wre(e,g,c,k),Eh8(c,g));return e};
Bct=function(e,g,c,k,I){fev();var J=_.H(function(q){return dPW(e,g,q,Object.assign({},k,{getTemplate:c}),I)},"o");
J.debugName=g;tOz(J,g);return J};
y9C=function(e){return!Sbt.has(e)};
MOU=function(e,g,c,k){function I(){if(!b){for(var h=new Set(K0V),X=_.w(J.behaviors),D=X.next();!D.done;D=X.next()){D=D.value;for(var f=_.w(Object.getOwnPropertyNames(D)),l=f.next();!l.done;l=f.next()){l=l.value;var A=void 0,d=(A=Object.getOwnPropertyDescriptor(D,l))==null?void 0:A.value;d&&d instanceof Function&&(!R[l]||_.G("polymer_forward_method_killswitch"))&&h.add(l)}}X=_.w(Object.entries(Object.getOwnPropertyDescriptors(e.prototype)));for(D=X.next();!D.done;D=X.next())f=_.w(D.value),D=f.next().value,
f=f.next().value,f.value instanceof Function&&h.add(D);b=h}return b}
var J=Afe({is:g,disableElementRegistration:!1,getTemplate:c,providers:k==null?void 0:k.providers,reactivityMode:k==null?void 0:k.reactivityMode},e);if((k==null?0:k.allowedProps)||(k==null?0:k.allowedPropsFromBehaviors)){var q,L;J.allowedProps=[].concat(_.KY((q=k.allowedProps)!=null?q:[]),_.KY((L=k.allowedPropsFromBehaviors)!=null?L:[]))}var n=jWe(J,e);g=n.observedAttributes;var R={};c=_.w(J.reactiveSchemas);for(k=c.next();!k.done;k=c.next())if(k=k.value,k.type==="signal")R[k.propertyKey]={readOnly:k.readOnly},
k.readOnly&&(R[cx8(k.propertyKey)]={readOnly:!0});else if(k.type==="compute"||k.type==="computeWithMethod"||k.type==="redux")R[k.propertyKey]={readOnly:!0};var W=J.reactiveSchemas.length,b;return{ctor:function(h,X){h=new n(h);h.beforeReady=X.beforeReady;return h},
props:R,observedAttributes:g,getInitialMethods:I,getPropsToForwardBeforeRegister:function(){for(var h=[],X=new Set,D=_.w(OHC),f=D.next();!f.done;f=D.next())f=f.value,h.push([f,f!=="observers"&&f!=="properties"]),X.add(f);D=_.w(Object.keys(R));for(f=D.next();!f.done;f=D.next())f=f.value,h.push([f,R[f].readOnly]),X.add(f);D=I();f=_.w(Object.keys(Object.getOwnPropertyDescriptors(e.prototype)));for(var l=f.next();!l.done;l=f.next())l=l.value,!y9C(l)||D.has(l)||X.has(l)||(h.push([l,!1]),X.add(l));h.push(["allowedProps",
!0]);return h},
getPropsToForwardBeforeReady:function(h){var X=[];h=_.w(Object.keys(h));for(var D=h.next();!D.done;D=h.next()){D=D.value;var f=I();y9C(D)&&!f.has(D)&&X.push([D,!1])}h=_.w(J.reactiveSchemas.slice(W));for(D=h.next();!D.done;D=h.next())D=D.value,D.type!=="compute"&&D.type!=="computeWithMethod"&&D.type!=="redux"&&D.type!=="signal"||X.push([D.propertyKey,D.type==="signal"?D.readOnly:!0]);return X},
shouldForwardProp:y9C,shouldLog:II}};
_.U=function(e,g,c,k){var I,J,q=(J=(I=k)==null?void 0:I.mode)!=null?J:0;k!=null||(k={});var L;(L=k).reactivityMode!=null||(L.reactivityMode=0);return q===1?Nc8(e,g,c,Object.assign({},k,{useSink:!0}),MOU):Nc8(e,g,c,Object.assign({},k,{useSink:q===2}))};
_.oI=function(){return function(e,g,c,k){var I,J,q=(J=(I=k)==null?void 0:I.mode)!=null?J:2;k!=null||(k={});var L;(L=k).reactivityMode!=null||(L.reactivityMode=0);if(q===0)throw Error("Wg`"+q);return Bct(e,g,c,k,q===1?MOU:void 0)}};
_.ZF=function(e){return _.G("force_all_poly_si_batches")&&e||document.documentElement.hasAttribute("use-signals")?!0:!e||_.G(e+"_holdback_enabled")&&_.G("kevlar_polysi_holdback")?!1:_.G(e)};
VJ=function(e){return e?e.icon?e.icon.iconType.toLowerCase():e.customThumbnail?"member":"":""};
C_t=function(e){if(!e)return"";e=_.w(e);for(var g=e.next();!g.done;g=e.next())if((g=g.value)&&g.liveChatAuthorBadgeRenderer&&(g=VJ(g.liveChatAuthorBadgeRenderer))&&g!=="verified")return g;return""};
e4C=function(e,g){if(!e)return null;var c;return((c=e.find(function(k){return k&&k.liveChatAuthorBadgeRenderer?VJ(k.liveChatAuthorBadgeRenderer)===g:!1}))==null?void 0:c.liveChatAuthorBadgeRenderer)||null};
_.kY6=function(e){var g=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;e=V9q(e);g=V9q(g);var c=O2C(e.hex);g=O2C(g.hex);var k=g[0]/255;var I=g[1]/255,J=g[2]/255,q=Math.max(k,I,J),L=Math.min(k,I,J),n=0,R=0,W=.5*(q+L);q!=L&&(q==k?n=60*(I-J)/(q-L):q==I?n=60*(J-k)/(q-L)+120:q==J&&(n=60*(k-I)/(q-L)+240),R=0<W&&W<=.5?(q-L)/(2*W):(q-L)/(2-2*W));k=[Math.round(n+360)%360,R,W];c=g0g(c,g);for(e=c6z(e.hex);c<4.5;){e=k[2]>=.5?e.darker((4.5-c)/2):e.brighter((4.5-c)/2);c=e.toString();
I=NgC(c);if(!I.length)throw Error("Yd`"+c);c=I;c=g0g(c,g)}return e.hex()};
g0g=function(e,g){e=_.Fdz(e);g=_.Fdz(g);return(Math.max(e,g)+.05)/(Math.min(e,g)+.05)};
_.ts=function(e){return"#"+("000000"+(e&16777215).toString(16)).slice(-6)};
_.Il6=function(e){for(var g=0,c=0;c<e.length;c++)g=e.charCodeAt(c)+((g<<5)-g);e="#";for(c=0;c<3;c++)e+=("00"+(g>>c*8&255).toString(16)).slice(-2);return e};
J6V=function(e){e=(e||"").split(":");e.length===1&&e.unshift("yt-icons");e[1]=e[1].toLowerCase();return e};
alW=function(e,g){var c=(g=g===void 0?!1:g)?v0t:w5e,k=g?qkV:LcC;e.getIconNames().forEach(function(I){I=g?I:I.substring(I.indexOf(":")+1);e.name==="yt-icons"?r6C.add(I):I.includes("-filled")?c.add(I):k.add(I)})};
Bo=function(e,g,c,k){c=c===void 0?!1:c;k=k===void 0?!1:k;var I,J,q;return _.r(function(L){if(L.nextAddress==1)return L.yield(n0W,2);if(k)return L.return(r6C.has(e));I=c?v0t:w5e;J=c?qkV:LcC;return g?(q=e.includes("-filled")?e:e.concat("-filled"),L.return(I.has(q))):L.return(J.has(e))})};
_.NY=function(e){if(R4U(e))return e.toString();var g=E0g.get(e);if(g)return g;g=e.toLowerCase();var c="yt-icons",k=g.replace(/_/g,"-");switch(e){case "MY_CHANNEL":g="account_circle";break;case "ADD_TO_LIBRARY":g="add";break;case "ALERT_WARN_RED":g="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":g="person_music";break;case "BLOCK_USER":g="block";break;case "CAPTIONS":g="closed_caption";break;case "CLOSED_CAPTION":c="av";g="closed-caption";break;case "COLLECTION":c="maps";g="layers";break;case "CONTACT":c=
"icons";g="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":c="yt-studio-system-icons";g=k.split("creator-studio-")[1];break;case "DISMISSAL":g="close";break;case "DO_NOT_DISTURB":g="block";break;case "DOGFOOD":c="icons";g="pets";break;case "DRAFT":g="paper_corner_folded";
break;case "EMPTY_LIKE":g="like_outline";break;case "EXIT_APP":g="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":g=k;break;case "GAMES":c="ytg";g="my-games";break;case "GO_TO_PAGE":g="arrow-forward";break;case "GROUP":c="social";break;case "HIDE":g="not_interested";break;case "INPUT_COMPONENT":c="icons";g="settings-input-component";break;case "KIDS_BLOCK":g="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":c="ytg";g="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":c=
"ytg";g="membership-post-purchase";break;case "MULTIVIEW":g="screen_multi_view";break;case "MY_LOCATION":c="maps";g=k;break;case "NOTIFICATIONS_INBOX":g="NOTIFICATIONS";break;case "NEXT":g="chevron_right";break;case "OFFLINE":g="power-settings-new";break;case "PAUSE":c="miniplayer";break;case "PAYMENT":c="icons";break;case "PHONE_DOWNLOAD":g="phone_download";break;case "PREMIUM_STANDALONE":c="yt-logos";g="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":c="yt-logos";g="premium_standalone_cairo";
break;case "QUESTION_ANSWER":g="question_answer";break;case "REDEEM":c="icons";g="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":g="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":g="library_add";break;case "SCHOOL":c="yt-sys-icons";g="creator_academy";break;case "SETTINGS_LIGHT":g="settings_applications";break;case "SETTINGS_MATERIAL":g="settings";break;case "SEARCH_HISTORY":g="watch_history";break;case "SHOPPING_BAG":g="bag";break;case "SOCIAL":case "PEOPLE":c=
"yt-icons";g="people";break;case "STAFF_PICK":c="ytg";g="spotlight";break;case "START_DVR":g="add";break;case "STOP_DVR":c="av";g="stop";break;case "TAB_LIKED":g="like";break;case "TAB_INBOX":g="mail";break;case "TERMS_OF_SERVICE":c="icons";g="description";break;case "TRENDING":g="fire";break;case "UNBLOCK_USER":g="remove";break;case "UNPLUGGED_DARK_THEME":c="image";g="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":g="live";break;case "UNPLUGGED_SPORTS":c="ytu";g="visibility-off";break;
case "VIDEOS":c="av";g="play-circle-filled";break;case "YOUTUBE":c="yt-logos";g="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":c="yt-logos-ext";g="yt-logo-red-updated";break;case "YOUTUBE_LOGO":c="yt-logos-ext";g="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":c="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":c="shorts";g=k;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":c="yt-sys-icons";g="youtube_improve_tv";break;case "OUTLINE_BAG":c=
"yt-sys-icons";g="bag";break;case "QUEUE_PLAY_LAST":c="yt-sys-icons";g="list_queue_last";break;case "SLASH_CIRCLE_LEFT":g="slash_circle_left";break;case "SPEED_1_POINT_2X":g="1_point_2x";break;case "SPEED_1_POINT_5X":g="1_point_5x";break;case "SPEED_1_POINT_8X":g="1_point_8x";break;case "SPEED_POINT_2X":g="point_2x";break;case "SPEED_POINT_5X":g="point_5x";break;case "SPEED_POINT_8X":g="point_8x";break;case "SPEED_1X":g="1x";break;case "SPEED_2X":g="2x";break;case "TAB_BOOKMARK":g="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":c="yt-sys-icons";g="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":c="yt-sys-icons";g="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":c="yt-sys-icons",g="tic_tac_toe"}g=c+":"+g;E0g.set(e,g);return g};
R4U=function(e){var g;_.G("kevlar_use_wil_icons")?g=!!_.Ss().resolve(_.SY).resolveIcon({iconName:e.toString()}):g=!1;return g};
_.KO=function(e,g,c,k){c=c===void 0?{}:c;k=k===void 0?!1:k;c===null&&(c={});var I=_.g1("kevlar_command_handler_command_banlist");I=_.w(I);for(var J=I.next();!J.done;J=I.next())if(J=e?e.hasOwnProperty(J.value):void 0,J)return!1;I=_.x(e.commandMetadata,_.OM);return k&&I!=null&&I.url?!1:!g.disableCommandHandlerOverride&&_.yJ.instance?(k=_.yJ.instance,c.form||(c.form={element:g}),c.form.element||(c.form.element=g),!c.clickedVisualElement&&g.visualElement&&(c.clickedVisualElement=g.visualElement),k.resolveCommand(e,
c),!0):!1};
WcV=function(e,g){e=Oz(e);for(var c=_.w(e.visibilityMonitorKeys||[]),k=c.next();!k.done;k=c.next())g.unobserveByKey(k.value);e.visibilityMonitorKeys=void 0};
MY=function(e,g){if(_.EM()){if(_.G("kevlar_vimio_use_shared_monitor"))biK(e,g.data);else if(!biK(e,g.data))return;var c=g.data,k=h46(c);if(_.G("enable_client_ve_spec_logging"))WcV(e,g.observer);else{var I=Oz(e);I.trackedParams&&I.trackedParams!==k&&WcV(e,g.observer)}I=Oz(e);!c||I.data&&I.data===c||(I.data=c);X5g(e,g);I.trackedParams=k}};
X5g=function(e,g){var c=g.observer;if(!c&&_.G("web_skip_missing_vimio_observer")){var k,I;_.mN(new _.E2("VisibilityObserver is not defined.",e.tagName,e.trackedParams,(k=g.data)==null?void 0:k.trackingParams,(I=g.data)==null?void 0:I.loggingDirectives))}else{var J=g.layer,q=g.visibilityCallback||function(){},L=g.prescanCallback,n=Oz(e);
k=[];g.showOption&&k.push(c.observe(e,function(){g.skipLogging&&g.skipLogging()||_.CO().reportShown(n,void 0,J,7);q(!0)},g.showOption));
g.hideOption&&k.push(c.observe(e,function(){_.CO().reportHidden(n,void 0,J,7);q(!1)},g.hideOption));
g.prescanOption&&L&&k.push(c.observe(e,function(){L()},g.prescanOption));
n.visibilityMonitorKeys=k}};
biK=function(e,g){e=Oz(e);if(e.visualElement&&!g)return!0;if(!g)return!1;var c=!1;if(_.G("enable_client_ve_spec_logging")){var k,I;c=!!((k=g.loggingDirectives)==null?0:(I=k.clientVeSpec)==null?0:I.uiType)}k=h46(g);if(!k&&!c)return!1;_.G("mweb_component_visibility_logging")&&(e.veContainer||(e.veContainer={}),e.veContainer.trackingParams=k);if(e.trackedParams&&e.trackedParams===k)return!1;var J;if(_.G("enable_client_ve_spec_logging")&&((J=e.visualElement)==null?0:J.isClientVe())){var q;J=(q=e.visualElement)==
null?void 0:q.getAsJspb();var L,n,R,W;if(_.Qh(J,2)===((L=g.loggingDirectives)==null?void 0:(n=L.clientVeSpec)==null?void 0:n.uiType)&&_.Qh(J,3,-1)===((R=g.loggingDirectives)==null?void 0:(W=R.clientVeSpec)==null?void 0:W.elementIndex))return!1}if(_.G("enable_client_ve_spec_logging")){var b,h;!e.visualElement&&((b=g.loggingDirectives)==null?0:(h=b.clientVeSpec)==null?0:h.uiType)&&(L=g.loggingDirectives.clientVeSpec,g=L.uiType,q=L.elementIndex,L=L.clientYoutubeData,e.visualElement=_.eU(_.gL(),{veType:g,
elementIndex:q,clientYouTubeData:L}))}return!0};
h46=function(e){if(e==null?0:e.rendererContext){var g=_.x(e.rendererContext,_.cT);if(g==null?0:g.loggingDirectives)return g.loggingDirectives.trackingParams}return(e==null?0:e.loggingDirectives)?e.loggingDirectives.trackingParams:e==null?void 0:e.trackingParams};
Oz=function(e){var g;return(g=e.polymerController)!=null?g:e};
$vt=function(e){_.CO();if(_.HV(kk().JSC$13058_elementShouldLogGesture).bind(kk())(e,4)){GYt(e);var g=xvK(e);Dvq.set(e,g)}};
GYt=function(e){Dvq.has(e)&&(Dvq.get(e).cancel("untrack hover element"),Dvq.delete(e))};
xvK=function(e){var g,c=[],k=!1,I=new _.Il(function(J,q){Wt(e,"mouseenter",_.HV(function(){var L,n,R;return _.r(function(W){if(W.nextAddress==1)return g=(0,_.yr)(),L=Yke(e),c.push(L),n=fl6(e,function(){k=!0;q(Error("Xg"))}),W.yield(L,2);
if(W.nextAddress!=3)return n&&I6(n),R=jbp(e),c.push(R),W.yield(R,3);J();_.Uh(W)})}))});
I.then(function(){var J=(0,_.yr)()-g;J=Math.round(J);if(!(500>J||6E5<=J)){var q=e.getScreenLayer?e.getScreenLayer():void 0;q=_.EM(q)||"";var L=iiW(_.CO(),e);_.pA(q,e.visualElement?e.visualElement:_.Jb(L),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:J}})}$vt(e)},function(){vT&&(vT(),vT=null);
k&&(GYt(e),$vt(e))});
return I};
Yke=function(e){var g;return(new _.Il(function(c,k){vT=function(){k(Error("Yg"))};
g=_.ft.debounce(_.HV(function(){I6(I);c()}),1,100);
var I=_.iK(e,"mousemove",g)})).thenCatch(function(){var c=_.ft.cancelDebouncedJobMap.get(g);
c&&_.ft.cancelJob(c)})};
jbp=function(e){var g;return(new _.Il(function(c,k){vT=function(){k(Error("Zg"))};
g=Wt(e,"mouseleave",_.HV(function(){c()}))})).thenCatch(function(){I6(g)})};
fl6=function(e,g){return Wt(e,"mouseleave",_.HV(g))};
mv6=function(e){P8C&&_.wL.cancel(P8C);P8C=_.wL.run(function(){_.oC(e,"yt-visibility-refresh");P8C=0})};
p5C=function(e){e=Number(e);return"rgba("+[e>>16&255,e>>8&255,e&255,(e>>24&255)/255].join()+")"};
llV=function(e){if(!e)return!1;if(_.x(e,_.T9C))return!0;var g;if(e=(g=_.x(e,_.SV))==null?void 0:g.commands)for(g=_.w(e),e=g.next();!e.done;e=g.next())if(_.x(e.value,_.T9C))return!0;return!1};
A66=function(e){var g=!0;g=g===void 0?!0:g;if(!e.useSignals&&!e.experimentalPropertiesChanged||_.G("experimental_templating_behavior_nopatch_killswitch")){var c=e._propertiesChanged;e._propertiesChanged=function(k,I,J){g?e.debounceRender():e.doRender();c&&c.call(e,k,I,J)}}};
sbV=function(e,g){if(e.useSignals||e.experimentalPropertiesChanged)if(_.G("experimental_templating_behavior_nopatch_killswitch"))e.experimentalPropertiesChanged=function(){};
else return;var c=new Set,k=[e].concat(_.KY(e.behaviors));k=_.w(k);for(var I=k.next();!I.done;I=k.next()){I=I.value;for(var J in I.properties)c.has(J)||(e._addPropertyEffect(J,"function",g),c.add(J))}};
Fcv=function(){var e=Polymer.Element,g=e._prepareTemplate;e._prepareTemplate=function(){g.call(this);var c=this.prototype;if(c.experimentalTemplatingInUse&&c.experimentalTemplatingInUse()&&c.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.jW(Error("$g"));else{c=this.template.content.childNodes;for(var k=c.length-1;k>=0;k--){var I=c[k];I.nodeName!=="STYLE"&&I.nodeName!=="LINK"&&I.nodeName!=="SCRIPT"&&I.nodeName!=="#comment"&&I.remove()}}}};
uTq=function(e){var g=!0;g=g===void 0?!0:g;Fcv();var c=e.ready;e.ready=function(){this._template=null;c.call(this)};
sbV(e,g?e.debounceRender:e.doRender)};
z4C=function(e,g,c){if(c===null||c===void 0)return c;var k=Obt(e.tagName.toLowerCase(),g,function(){throw Error("Vb");});
if(k===null)return c;k=dvU[k];var I;if((I=k.isUnwrappable)==null?0:I.call(k,c)){if(k.unwrap)return k.unwrap(c);throw Error("ch");}return k.filterString?k.filterString(e.tagName,g,String(c)):c};
HiC=function(e,g,c){var k=g[g.length-1]!=="$";c=z4C(e,g,c);k?e[g]=c:(k=c==null?null:String(c),QU(e,g.slice(0,-1),k))};
Lv=function(e){_.G("mweb_after_render_to_scheduler")?_.ft.addJob(function(){try{e()}catch(g){_.q2(g)}},8):(QbC.length===0&&requestAnimationFrame(function(){setTimeout(function(){var g=QbC.slice();
QbC.length=0;g=_.w(g);for(var c=g.next();!c.done;c=g.next()){c=c.value;try{c()}catch(k){_.q2(k)}}})}),QbC.push(e))};
Uvp=function(e){if(e){var g=e.component;if(g){var c;g==null||(c=g.events)==null||c.publish("DISCONNECTED");var k;g==null||(k=g.onDisconnected)==null||k.call(g)}var I,J;(I=e.__spec)==null||(J=I.didUnmount)==null||J.call(I);for(g=0;g<e.childNodes.length;g++)Uvp(e.childNodes[g])}};
_.rL=function(e,g,c){c===void 0?delete e[g.name]:e[g.name]=c};
_.a6=function(e){var g={androidIncludeFontPadding:!1},c=0,k=[],I=[],J=[];if(e.simpleText)return g.content=e.simpleText,g;if(e.runs===void 0)return g.content="",g;e=_.w(e.runs);for(var q=e.next();!q.done;q=e.next()){q=q.value;var L=q.text,n=void 0,R=(n=L)==null?void 0:n.length;if(L&&R){k.push(L);if(q.bold||q.italics||q.strikethrough||q.underline||q.textColor!=null&&q.textColor!==0||q.deemphasize){L=I;n=L.push;var W={startIndex:c,length:R};q.bold&&(W.weightLabel="FONT_WEIGHT_MEDIUM");q.italics&&(W.italic=
!0);q.strikethrough&&(W.strikethrough="LINE_STYLE_SINGLE");q.underline&&(W.underline="LINE_STYLE_SINGLE");q.textColor!=null&&q.textColor!==0?document.documentElement.hasAttribute("dark")?W.fontColor=q.darkModeTextColor||q.textColor:W.fontColor=q.textColor:q.deemphasize&&(document.documentElement.hasAttribute("dark")?W.fontColor=parseInt("ff"+BgV("#aaa").substring(1),16):W.fontColor=parseInt("ff"+BgV("#606060").substring(1),16));n.call(L,W)}q.navigationEndpoint&&(L=J,n=L.push,W={startIndex:c,length:R,
onTap:{innertubeCommand:q.navigationEndpoint}},q.loggingDirectives&&_.rL(W,o0q,q.loggingDirectives),n.call(L,W));c+=R}}g.content=k.join("");g.styleRuns=I.length?I:void 0;g.commandRuns=J.length?J:void 0;return g};
VyK=function(e){if(e==null||!e.runs)return!0;e=_.w(e.runs);for(var g=e.next();!g.done;g=e.next())if(g=g.value,g.bracket||g.errorUnderline||g.deemphasize||_.x(g,nv)||_.x(g,ZiW))return!1;return!0};
typ=function(e,g){return function(c){var k=g.unit;if(k!==c)throw Error("fh`"+e+"`"+k+"`"+c);return g}};
R6=function(e){if(!((e==null?0:e.value)&&(e==null?0:e.unit)))return"";switch(e.unit){case "DIMENSION_UNIT_FRACTION":var g="%";break;default:g="px"}e=e.value;g==="%"&&(e*=100);return""+e+g};
B9v=function(e){try{return e()}catch(g){_.mN(g)}};
_.WT=function(e){var g=_.x(e,_.EL);if(g)return g;if((g=_.x(e,N9A))&&g.commands)return SkC(g.commands);if((g=_.x(e,y6z))&&g.commands)return SkC(g.commands);if((e=_.x(e,Kcg))&&e.identifier&&e.command&&(OiW||(OiW=[]),!OiW.includes(e.identifier)))return OiW.push(e.identifier),_.x(e.command,_.EL)};
SkC=function(e){if(e.length!==0){var g=[];e=_.w(e);for(var c=e.next();!c.done;c=e.next())(c=_.WT(c.value))&&g.push(c);return{commandExecutorCommand:{commands:g}}}};
_.hb=function(e){var g=e.defaultTarget,c=e.elementConfig,k=e.elementsCommand,I=e.skipOnClick,J=e.forceNewState,q=e.additionalCommandArgs,L=e.innertubeCommand||_.WT(k);if(L){e={};var n=MyW(L);k=n.navigatingCommand;n=n.href;k&&n?(e.href$=n,C8v(e,k,n,g),_.G("web_atagconfig_pointerdown")&&eQ6(e,k),J&&(e["force-new-state$"]=!0)):(e.role$="button",e.href$="javascript:void(0);");_.x(L,gMW)&&(e["aria-haspopup$"]=!0);I||(e.onclick=function(R){var W={};if(cmv(R)){var b=(q==null?void 0:q.clickedVisualElement)||
(q==null?void 0:q.getClickedVisualElement)&&q.getClickedVisualElement();b&&(W={clickedVisualElement:b});W=Object.assign({},{form:{element:R.target,event:R,createScreenConfig:W}},q);R.preventDefault();_.b3(L,W)}});
return Object.assign({},c,e)}};
kWt=function(e){if(e.length){if(e.length===1)return e[0];var g={};_.rL(g,_.SV,{commands:e});return g}};
X6=function(e){return e&&e.href$!=="javascript:void(0);"};
MyW=function(e){var g,c=((g=_.x(e,_.SV))==null?void 0:g.commands)||[e];e=_.w(c);for(g=e.next();!g.done;g=e.next()){g=g.value;var k=void 0,I=void 0;c=(I=_.x((k=g)==null?void 0:k.commandMetadata,_.OM))==null?void 0:I.url;_.G("web_remove_web_navigation_endpoint_data")||(k=void 0,c=c||((k=_.x(g,I1q))==null?void 0:k.url));if(c&&c!=="/service_ajax"){if(k=_.Sa(c,JmW))return e=_.BJ(k),{navigatingCommand:g,href:e};_.mN(new _.E2("AttributedString URL could not be sanitized",c))}}return{}};
cmv=function(e){return e.button!==void 0?e.button===0&&!(e.shiftKey||e.altKey||e.metaKey||e.ctrlKey):!(e.shiftKey||e.altKey||e.metaKey||e.ctrlKey)};
C8v=function(e,g,c,k){c=!BV(c);var I,J,q;if((I=_.x(g,_.KU))!=null&&I.nofollow||(J=_.x(g,_.Pm))!=null&&J.nofollow||(q=_.x(g,_.uf))!=null&&q.nofollow||c)e.rel$="nofollow";var L;g=((L=_.x(g,_.uf))==null?void 0:L.target)==="TARGET_NEW_WINDOW"?"_blank":k===void 0?"":k;e.target$=g};
eQ6=function(e,g){g.clickTrackingParams&&(e.params={itct:g.clickTrackingParams});e.onpointerdown=function(c){vMe(c)};
e._data=g};
wpt=function(e){(e.loggingUrls||[]).forEach(function(g){dK(g.baseUrl,g.attributionSrcMode)})};
vMe=function(e){var g=e.currentTarget;e=B9v(function(){return g.href});
var c=g.params;e&&_.Ar(e,c||{},8,!0)};
_.GF=function(e,g){(e=_.WT(e))&&_.b3(e,g)};
_.b3=function(e,g){_.K4(_.xk,function(c){g?c.resolveCommand(e,g):c.resolveCommand(e)})};
a1K=function(e,g){var c=["yt-core-attributed-string__link"];g!=null&&g.noLinkColor||((g==null?0:g.isOverlay)?c.push("yt-core-attributed-string__link--overlay-call-to-action-color"):c.push("yt-core-attributed-string__link--call-to-action-color"),(g==null?0:g.linkInheritColor)&&c.push("yt-core-attributed-string--link-inherit-color"));c={className:c.join(" "),tabindex$:"0"};var k=e.onTap||e.onLongPress;if(!k)return c;var I=qBq(e);I&&(c["aria-label$"]=I);g=_.hb({elementsCommand:k,elementConfig:c,skipOnClick:!(g==
null||!g.skipOnClick),forceNewState:!0});e.onLongPress&&(k=new LhC(function(){var J=_.WT(e.onLongPress);J&&_.Ss().resolve(_.xk).resolveCommand(J)}),g&&rm8(k,g));
return g||c};
qBq=function(e){var g,c;return(g=e.onTapOptions)==null?void 0:(c=g.accessibilityInfo)==null?void 0:c.accessibilityLabel};
nMC=function(e){var g=e;e<=16777215&&(g+=parseInt("ff000000",16));return _.EY(g)};
RQK=function(e){var g=e.isDarkTheme;var c=e.extension;e=e.runColor;var k=void 0;if(c=c==null?void 0:c.colorMap){g=g?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";c=_.w(c);for(var I=c.next();!I.done;I=c.next())if(I=I.value,g===I.key){k=I.value;break}}k==null&&e&&(k=e);if(k)return nMC(k)};
Di=function(e){var g=e.config;var c=e.image;var k=e.imageConfig;var I=e.imageWrapperConfig;var J=e.run;var q=e.tag;var L=e.textLength;var n=e.startIndex===void 0?0:e.startIndex;e=e.length;n===void 0&&(n=0);J={run:J,startIndex:n,endIndex:e!==void 0?n+e:L,tag:q};c&&(J.image=c);k&&(J.imageConfig=k);I&&(J.imageWrapperConfig=I);g&&(J.config=g);return J};
EM8=function(e,g){if(e.weight)return e.weight;switch(e.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 g?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
Whz=function(e){switch(e){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"}};
bht=function(e){switch(e){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"}};
fv=function(e,g,c){var k=g;e.content&&c&&(c=e.content.indexOf("\n"),c!==-1&&(k=Math.min(g,c)));if(!e.content||e.content.length<=k)g=e;else if(e.attachmentRuns||e.commandRuns||e.decorationRuns||e.styleRuns||e.paragraphStyleRuns){g=$k(e.content,k);c=k;var I=e.attachmentRuns;if(I){var J=[];I=_.w(I);for(var q=I.next();!q.done;q=I.next())q=Object.assign({},q.value),q.startIndex===void 0||q.startIndex>=c||(q.length||(q.length=0),q.length+q.startIndex>c&&(q.length=c-q.startIndex),J.push(q));c=J}else c=void 0;
J=hQW(k,e.commandRuns);I=k;var L=e.decorationRuns;if(L){q=[];L=_.w(L);for(var n=L.next();!n.done;n=L.next()){n=n.value;var R=_.x(n.textDecorator,Yk);if(R&&R.startIndex!==void 0&&!(R.startIndex>=I)){n=Object.assign({},n,{textDecorator:{highlightTextDecorator:Object.assign({},R)}});R=_.x(n.textDecorator,Yk);if(!R.length||R.length+R.startIndex>I)R.length=I-R.startIndex;q.push(n)}}I=q}else I=void 0;q=hQW(k,e.styleRuns);if(L=e.paragraphStyleRuns)for(e=[],L=_.w(L),n=L.next();!n.done;n=L.next()){var W=n.value;
n=Object.assign({},W);if(!(n.startIndex===void 0||n.startIndex>=k)){if(!n.length||n.length+n.startIndex>k)n.length=k-n.startIndex;R=[];var b=void 0,h=void 0;if((b=W)==null?0:(h=b.listGroup)==null?0:h.listItems)for(W=_.w(W.listGroup.listItems),b=W.next();!b.done;b=W.next())if(b=Object.assign({},b.value),!(b.startIndex===void 0||b.startIndex>=k)){if(!b.length||b.length+b.startIndex>k)b.length=k-b.startIndex;R.push(b)}R.length>0&&(n.listGroup||(n.listGroup={}),n.listGroup=Object.assign({},n.listGroup,
{listItems:R}));e.push(n)}}else e=void 0;g={content:g,attachmentRuns:c,commandRuns:J,decorationRuns:I,styleRuns:q,paragraphStyleRuns:e}}else g=Object.assign({},e,{content:$k(e.content,k)});return g};
hQW=function(e,g){if(g){var c=[];g=_.w(g);for(var k=g.next();!k.done;k=g.next())if(k=Object.assign({},k.value),!(k.startIndex===void 0||k.startIndex>=e)){if(!k.length||k.length+k.startIndex>e)k.length=e-k.startIndex;c.push(k)}return c}};
$k=function(e,g){var c=g,k;if(k=c>0)k=e.charCodeAt(c-1),k=k>=55296&&k<=56319;k&&(c=e.charCodeAt(c),k=c>=56320&&c<=57343);k&&--g;return e.substring(0,g)};
_.jU=function(e){return(e==null?void 0:e.content)!==void 0};
xLC=function(e){return function(g){var c=e.run;(c.onTap!==void 0||c.onLongPress!==void 0)&&_.x(c,o0q)&&MY(g,{data:{loggingDirectives:_.x(c,o0q)},observer:_.Ss().resolve(t2),hideOption:Xpg,showOption:GWv,layer:g.layer})}};
DLv=function(e){return function(g){for(var c in e)(ol[c]||ol[UX["default"]])(g,c,e[c])}};
$LA=function(e,g,c,k){for(var I=_.w(e.parts),J=I.next();!J.done;J=I.next()){J=J.value;if(typeof J==="string")throw Error("hh");if(J.start<=g&&c<=J.end){$LA(J,g,c,k);return}}e.parts.push({data:k,parts:[],start:g,end:c})};
YBU=function(e,g){for(var c=g.parts.length;c>=0;c--){var k=g.parts[c],I=g.parts[c-1],J=c===g.parts.length?g.end:k.start;I=c===0?g.start:I.end;J!==I&&g.parts.splice(c,0,e.slice(I,J));k&&YBU(e,k)}};
f1e=function(e){e.sort(function(g,c){if(g.startIndex<c.startIndex)return-1;if(c.startIndex<g.startIndex)return 1;g=g.endIndex-g.startIndex;c=c.endIndex-c.startIndex;return g>c?-1:c>g?1:0})};
_.jeW=function(e){var g=e.thumbnails;if(g){e={sources:[]};g=_.w(g);for(var c=g.next();!c.done;c=g.next()){c=c.value;var k={};k.url=c.url;k.width=c.width;k.height=c.height;e.sources.push(k)}return e}};
ihA=function(e,g,c,k){if(!g)return e.length>=1?e[e.length-1]:null;if(k)for(var I=_.w(e),J=I.next();!J.done;J=I.next()){J=J.value;var q=void 0,L=(q=J.url)==null?void 0:q.indexOf(k);if(L!==void 0&&L>=0)return J}k=_.w(e);for(I=k.next();!I.done;I=k.next())if(I=I.value,I.width&&I.height&&(c&&I.width>=g||!c&&I.height>=g))return I;for(g=e.length-1;g>=0;g--)if(c&&e[g].width||!c&&e[g].height)return e[g];return e[0]};
_.PTW=function(e){var g;return(e=(g=e.sources)==null?void 0:g[0])?e.width/e.height:0};
_.mLp=function(e){if(e.sources){e=_.w(e.sources);for(var g=e.next();!g.done;g=e.next()){g=g.value;var c=void 0;if((c=g.clientResource)==null?0:c.imageName)return g}}};
TPK=function(e){var g={};e=_.x(e.processor,ppe);var c=(e=e==null?void 0:(c=e.imageTint)==null?void 0:c.color)?_.EY(e):void 0;c&&(g.color=c);return g};
l1p=function(e){var g;if((g=e.clientResource)!=null&&g.imageColor)return _.EY(e.clientResource.imageColor)};
_.set=function(e,g,c,k,I,J,q){if(!g||g.length===0||g[0].clientResource)return null;if(c&&g[0].url)return g[0].url;k===void 0&&(k=!0);if(k){var L;e=AmC*(I||(e==null?void 0:(L=e.getBoundingClientRect())==null?void 0:L.width)||0)}else{var n;e=AmC*(J||(e==null?void 0:(n=e.getBoundingClientRect())==null?void 0:n.height)||0)}g=ihA(g,e,k,q);return(g==null?0:g.url)?g.url:(g==null?0:g.imageData)?g.imageData:null};
FhU=function(e,g,c){c=c?[c]:[];e.opacity&&c.push("opacity: "+e.opacity+";");g&&e.placeholderColor?(e=_.EY(e.placeholderColor),c.push("background-color: "+e+";")):c.push("background-color: transparent;");return c.join(" ")};
u$V=function(e,g,c,k,I){var J=["ytCoreImageHost"];g&&J.push(g);c||J.push("ytCoreImageFillParentHeight");k||J.push("ytCoreImageFillParentWidth");switch(e.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":J.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":J.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":J.push("ytCoreImageContentModeCenter");break;default:J.push("ytCoreImageContentModeScaleToFill")}e.flipForRtlLayout&&J.push("ytCoreImageFlipRtl");
switch(I){case "TOP_START":var q;J.push(((q=document.body)==null?void 0:q.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return J.join(" ")};
zQe=function(e){var g;if(e==null?0:(g=e.clientResource)==null?0:g.imageName){var c;e=(c=e.clientResource)==null?void 0:c.imageName;a:{switch(e){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":c="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":c="yt-logos-ext:yt-logo-updated";break a}c=void 0}return c||dLq.get(e)||e}};
ULp=function(e){return _.G("mweb_wiz_skip_render")?HhC(e):QeU(e)};
HhC=function(e){return function(g){var c=Y4A("wink-root");tV=o9.lastChild;fHv();K3K(c,_.a(e,g))}};
QeU=function(e){var g=g===void 0?!1:g;return function(c){if(!g||!_.G("mweb_skip_keto_to_c3_if_no_data")||c.data!==void 0){var k=gH(!1);try{var I=c.children;_.G("mweb_render_outside_patch_killswitch")||o9?I?Uf(_.a(e,c,I)):Uf(_.a(e,c)):_.mN(new _.E2("ketoToC3 called outside of a patch",{tagName:e.TAG_NAME}))}finally{gH(k)}}}};
oMg=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
VEp=function(e,g){e.onViewportEntered=g;ZhC.observe(e)};
tEW=function(){var e={rootMargin:"10%",threshold:.01};_.G("mweb_enable_set_io_root_to_null_safari")?e.root=null:_.G("mweb_enable_set_io_root_to_body_safari")&&(e.root=document.body);return new IntersectionObserver(function(g,c){g.filter(function(k){return k.intersectionRect.height>0}).forEach(function(k){k=k.target;
if(!_.G("mweb_enable_only_update_image_when_connected")||k.isConnected!==!1){var I;(I=k.onViewportEntered)==null||I.call(k);c.unobserve(k)}})},e)};
BPe=function(e,g,c,k,I){function J(){if(k){var L=k.loadedClass,n=k.notifyOnUnloaded;L&&_.i3(e,L);n&&e.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function q(){var L=c(g,e);L&&e.getAttribute("src")!==L&&(_.G("mweb_enable_only_update_image_when_connected")&&e.isConnected===!1||L===e.src||(e.src=L),J())}
I=I===void 0?!0:I;e.removeAttribute("src");J();g&&(I?VEp(e,q):q())};
NPp=function(e,g,c){if(!g)return!1;g=c(g,e);c=e.getAttribute("src");return g&&g===c&&e.complete};
SBp=function(e,g){for(var c in g)c==="className"?e.className=g[c]:(ol[c]||ol[UX.default])(e,c,g[c])};
Khp=function(e,g,c){c=c===void 0?!1:c;var k=e.sources!==void 0?e:_.jeW(e);if(k){var I=g.onload;g.onload=function(R){var W=R.target;c&&W.naturalWidth===120||_.PT(W,"ytCoreImageLoaded");g.notifyOnLoaded&&W.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));I==null||I(R)};
g.targetWidth&&g.preserveWidth&&(g.width=g.targetWidth);g.targetHeight&&g.preserveHeight&&(g.height=g.targetHeight);var J=_.mLp(k),q=J&&zQe(J),L=TPK(k);if(q)return(e=l1p(J)||L.color)&&(g.color=e),{type:"icon",iconName:q,config:Object.assign({},g,g.alt?{}:{"aria-hidden$":"true"},{"aria-label$":g.alt,role:"img"})};if(e.sources===void 0){g.alt=e.accessibility&&e.accessibility.accessibilityData&&e.accessibility.accessibilityData.label||g.alt;g.style$=FhU(e,g.shouldShowPlaceholder,g.style$);var n;g.isPreloaded=
!((n=_.x(e,ymU))==null||!n.isPreloaded)}g.contentMode&&!k.contentMode&&(k.contentMode=g.contentMode);g.className=u$V(k,g.className,g.preserveHeight,g.preserveWidth,g.objectPosition);g.loadedClass="ytCoreImageLoaded";return{type:"image",image:k,config:g}}};
_.mb=function(){var e=_.Mb.apply(0,arguments);return _.PV(OhV,function(g){var c=e.map(function(k){return k==null?void 0:k(g)});
return function(){return void c.forEach(function(k){return void(k==null?void 0:k())})}})};
MEC=function(e,g){var c=g==null?void 0:g.initial;return _.xF(function(){_.ds(!0);return c=e(c)},{equals:g==null?void 0:g.isEqual},"rSlKsc")};
CTC=function(e,g){if(e===g)return!0;if(e===void 0||g===void 0)return!1;var c,k,I,J,q,L,n,R;return e.content===g.content&&((c=e.styleRuns)==null?void 0:c.length)===((k=g.styleRuns)==null?void 0:k.length)&&((I=e.commandRuns)==null?void 0:I.length)===((J=g.commandRuns)==null?void 0:J.length)&&((q=e.attachmentRuns)==null?void 0:q.length)===((L=g.attachmentRuns)==null?void 0:L.length)&&((n=e.decorationRuns)==null?void 0:n.length)===((R=g.decorationRuns)==null?void 0:R.length)};
g46=function(e){return e.parts.map(ewC)};
ewC=function(e){if(typeof e==="string")return e;var g=e.data;e=g.image!==void 0&&g.imageConfig!==void 0?_.a("span",{el:_.mb(DLv(e.data.imageWrapperConfig))},_.a(_.pv,Object.assign({},{data:e.data.image},e.data.imageConfig))):_.a(e.data.tag,{el:_.mb(xLC(e.data),DLv(e.data.config))},e.parts.map(ewC));return WV(e)};
c7V=function(e,g){return e===g?!0:e===void 0||g===void 0?!1:e.noStyleRuns===g.noStyleRuns&&e.noLinkColor===g.noLinkColor&&e.noEndpoints===g.noEndpoints&&e.headerRuns===g.headerRuns&&e.isOverlay===g.isOverlay&&e.linkInheritColor===g.linkInheritColor&&e.userInput===g.userInput&&e.isHeadline===g.isHeadline};
kCW=function(e){return function(){var g,c,k,I,J,q,L,n,R,W,b,h,X,D;return{ariaLabel:(g=e.ariaLabel)==null?void 0:g.call(e),className:(c=e.className)==null?void 0:c.call(e),ellipsisTruncate:(k=e.ellipsisTruncate)==null?void 0:k.call(e),isOverlay:(I=e.isOverlay)==null?void 0:I.call(e),linkInheritColor:(J=e.linkInheritColor)==null?void 0:J.call(e),noEndpoints:(q=e.noEndpoints)==null?void 0:q.call(e),noStyleRuns:(L=e.noStyleRuns)==null?void 0:L.call(e),noLinkColor:(n=e.noLinkColor)==null?void 0:n.call(e),
noPreWrap:(R=e.noPreWrap)==null?void 0:R.call(e),noWrap:(W=e.noWrap)==null?void 0:W.call(e),skipOnClick:(b=e.skipOnClick)==null?void 0:b.call(e),userInput:(h=e.userInput)==null?void 0:h.call(e),headerRuns:(X=e.headerRuns)==null?void 0:X.call(e),isHeadline:(D=e.isHeadline)==null?void 0:D.call(e)}}};
J7U=function(e,g){e=new Ihe(e,g);_.jW(e);throw e;};
v4W=function(e,g,c){var k=HHv(e);e._numRenders=0;try{var I=eme(function(){return _.a(g,Object.assign({},c))})}catch(q){var J=function(L){L.args||(L.args=[]);
L.args.push("Error in web component wrapper");L.args.push(e.tagName.toLowerCase());return L};
_.Py(q instanceof Error?J(q):new Ihe("Wiz rendering error",e.tagName.toLowerCase()));throw q;}finally{HHv(k)}return I};
_.sL=function(e,g,c){function k(W){var b={};W=_.w(W);for(var h=W.next();!h.done;h=W.next()){h=h.value;var X=void 0,D=void 0,f=void 0,l=_.O4((f=(D=(X=h).getAttribute)==null?void 0:D.call(X,"slot"))!=null?f:"children");if(X=b[l])X.push(h);else if(l in J||l==="children")b[l]=[h]}W=_.w(Object.keys(b));l=W.next();for(h={};!l.done;h={content$jscomp$62:void 0},l=W.next())l=l.value,l!=="children"&&(h.content$jscomp$62=b[l],b[l]=function(A){return function(){return A.content$jscomp$62}}(h));
return b}
c=c===void 0?{}:c;e.debugName=g+" (CoW)";var I,J=(I=c.props)!=null?I:{};Qcv.add(g);var q=w4V();I=function(){var W=q.apply(this,arguments)||this;W.rawProps={};W.queuingRender=!1;W.dispose=function(){};
W.isWebComponentWrapper=!0;W.isReparenting=!1;W.hasRendered=!1;return W};
_.Y(I,q);I.prototype.render=function(){this.hasRendered=!0;for(var W=_.w([].concat(_.KY(this.attributes))),b=W.next();!b.done;b=W.next())b=b.value,b.name!=="slot"&&b.name!=="hidden"&&this.removeAttribute(b.name);W=Object.assign({},this.componentProps,this.slotProps);b=_.w(v4W(this,e,W));W=b.next().value;b=b.next().value;!(W[0]instanceof Element)||W.length>1?J7U("Wrapped Wiz components must return a single root element.",g):(W=W[0].tagName.toLowerCase(),W!==g&&J7U("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(W+" !== '"+g),g),this.dispose=b)};
I.prototype.setUpProps=function(){for(var W=this.rawProps,b=this.attributes,h=_.w(Object.keys(J)),X=h.next();!X.done;X=h.next()){X=X.value;var D=void 0;((D=this)==null?0:D[X])&&this[X]!==qFU&&W[X]===void 0&&(W[X]=this[X],(D=Object.getOwnPropertyDescriptor(this.constructor.prototype,X))&&Object.defineProperty(this,X,D))}h=_.w(b);for(X=h.next();!X.done;X=h.next()){D=X.value;X=_.O4(D.name);var f=X==="class"&&!b.getNamedItem("class-name");if(X in J||f)D=D.value===""||D.value==="true"?!0:D.value==="false"?
!1:isNaN(Number(D.value))?D.value:Number(D.value),X!=="class"||W.className?W[X]=D:W.className=D}b={};for(var l in J)J[l]!==_.TF&&J[l]!==L1v&&(W[l]instanceof Function&&J7U("Function props must be configured as STATIC, not SIGNAL.",g),X=_.w(_.Wa(W[l],void 0,"thC4wf")),h=X.next().value,X=X.next().value,b[l]=X,W[l]=h);W=_.w([W,b]);this.componentProps=W.next().value;this.setters=W.next().value;this.slotProps=k(this.childNodes)};
I.prototype.connectedCallback=function(){ZHv.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in J&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
I.prototype.disconnectedCallback=function(){if(!ZHv.has(this)){var W;a:{if(_.l3)for(W=this;W;){if(_.Ab.has(W)){W=!0;break a}W=W.parentElement}W=!1}if(W)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){W=_.w([].concat(_.KY(this.attributes)));for(var b=W.next();!b.done;b=W.next()){b=b.value;var h=void 0;b.name==="slot"||b.name==="hidden"&&((h=c.unsafeExternallySettableAttributes)==null?0:h.has("hidden"))||this.removeAttribute(b.name)}}this.innerText="";AxK(this)}}};
I.prototype._setPendingPropertyOrPath=function(){};
I.prototype.notifyPath=function(){};
_.Bd.Object.defineProperties(I.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var L=_.w(Object.keys(J)),n=L.next(),R={};!n.done;R={prop$jscomp$109:void 0},n=L.next())R.prop$jscomp$109=n.value,n=void 0,((n=c.legacyPolymer)==null?0:n.forwardHostProps)&&mPp.has(R.prop$jscomp$109)||Object.defineProperty(I.prototype,R.prop$jscomp$109,{set:function(W){return function(b){var h=this;ZHv.has(this)||(this.setters?Dc(function(){var X,D;return void((D=(X=h.setters)[W.prop$jscomp$109])==null?void 0:D.call(X,b))}):(this.rawProps[W.prop$jscomp$109]=b,this.queuingRender&&W.prop$jscomp$109===
"data"&&b!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(R),
get:r7g.has(R.prop$jscomp$109)?void 0:function(){return qFU}});
customElements.define(g,I)};
_.ahp=function(e,g){return(e=_.F6(e,g))?_.BJ(_.Km(e)):null};
_.u3=function(e){if(e=_.F6(e,Number.MAX_VALUE,void 0,"width"))return _.Km(e)};
_.F6=function(e,g,c,k){k=k===void 0?"width":k;if(!e||!e.length)return null;if(_.G("kevlar_tuner_should_always_use_device_pixel_ratio")){var I=window.devicePixelRatio;_.G("kevlar_tuner_should_clamp_device_pixel_ratio")?I=Math.min(I,_.MN("kevlar_tuner_clamp_device_pixel_ratio")):_.G("kevlar_tuner_should_use_thumbnail_factor")&&(I=_.MN("kevlar_tuner_thumbnail_factor"));n4C=I}else n4C||(n4C=window.devicePixelRatio);I=n4C;_.G("kevlar_tuner_should_always_use_device_pixel_ratio")?g*=I:I>1&&(g*=I);if(_.G("kevlar_tuner_min_thumbnail_quality"))return e[0].url||
null;I=e.length;if(_.G("kevlar_tuner_max_thumbnail_quality"))return e[I-1].url||null;if(c)for(var J=0;J<I;J++)if(e[J].url.indexOf(c)>=0)return e[J].url||null;for(c=0;c<I;c++)if(e[c][k]>=g)return e[c].url||null;for(g=I-1;g>0;g--)if(e[g][k])return e[g].url||null;return e[0].url||null};
W1q=function(){dL.size?setTimeout(function(){zF(RwU)},0):E4v=0};
RwU=function(){var e=(0,_.yr)(),g=null,c=!1;dL.forEach(function(I){I.loaded=!0;I.loadTime=e;I.pendingPaint=!1;var J=bd6.get(I);J&&J.resolve(e);g=I;c||!I.ftlEligible&&I.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(c=!0)});
var k;((k=g)==null?0:k.markDirty)&&g.markDirty();dL.clear();E4v=0;c&&hwC(e)};
X4z=function(e){dL.add(e);e.pendingPaint=!0;E4v||(E4v=_.HT(_.ft,W1q))};
GCp=function(e){e.loaded=!1;e.loadTime=Infinity;var g=bd6.get(e);g&&(g.reject(Error("nh")),bd6.delete(e));e.pendingPaint&&(dL.delete(e),e.pendingPaint=!1)};
_.x86=function(e){var g=e.indexOf(":");return g===-1?{originalName:e}:{originalName:e.substring(0,g),datasyncId:e.substring(g+1)}};
_.$8W=function(){return _.r(function(e){if(D8p!==void 0)return e.return(D8p);D8p=new Promise(function(g){var c;return _.r(function(k){switch(k.nextAddress){case 1:return _.lj(k,2),k.yield(_.Qe.open("test-only"),4);case 4:return k.yield(_.Qe.delete("test-only"),5);case 5:_.zn(k,3);break;case 2:if(c=_.Qb(k),c instanceof Error&&c.name==="SecurityError")return g(!1),k.return();case 3:g("caches"in window),_.Uh(k)}})});
return e.return(D8p)})};
jw6=function(){return _.r(function(e){if(e.nextAddress==1)return e.yield(_.$8W(),2);if(!e.yieldResult)return e.return(void 0);YFK||(YFK=new fhz);return e.return(YFK)})};
idC=function(e){var g,c,k,I;return _.r(function(J){switch(J.nextAddress){case 1:return J.yield(jw6(),2);case 2:g=J.yieldResult;if(!g)throw Error("ph");return J.yield(g.open("yt-player-local-img"),3);case 3:return c=J.yieldResult,J.yield(c.match(e),4);case 4:k=J.yieldResult;if(!k)throw Error("qh");return J.yield(k.blob(),5);case 5:return I=J.yieldResult,J.return(I)}})};
Prq=function(e,g){for(var c in e)if(e.hasOwnProperty(c)&&g[c])return c;return null};
m8C=function(e){return"stamp"+e.replace("-","_")+"_"};
p4q=function(e){var g=e.match(/\[\[([\w\.]+)\]\]/);if(g&&g.length>1)return g[1];_.jW(Error("sh`"+e));return null};
Tut=function(e){return e===void 0?_.dH("REUSE_COMPONENTS",!1):e||!1};
swU=function(e,g,c){c&&(g.is?(lhV.has(g)&&(e=lhV.get(g),c=e.listener,delete g[e.property],c.type==="element"&&g.removeEventListener(c.eventName,c.handler),lhV.delete(g)),A7W(g)):g.__proto__==HTMLElement.prototype&&(g=new _.E2("Rendererstamper removed a non custom element","Stamper: "+e+" element: "+(g&&g.nodeName)),_.mN(g)))};
F1C=function(e,g,c,k){var I=g.node?g.node:g;_.o1(c).parentNode===I&&(g.removeChild(c),swU(e,c,k));if(e=UL.get(c))UL.delete(c),_.ft.cancelJob(e);c.hidden=!1};
uRV=function(e,g,c,k){var I,J=(I=g.polymerController)!=null?I:g;I=g.loggingStatus;try{I&&(I.isRendererStamper=!0);if(typeof c!=="string"){for(var q in c.attributes)c.attributes[q]===!0?g.setAttribute(q,""):c.attributes[q]===!1?g.removeAttribute(q):g.setAttribute(q,c.attributes[q]);for(var L in c.params)J[L]=c.params[L],g!==J&&vo(g.localName,L,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(var n in c.properties){var R=c.properties[n];if(R){var W=p4q(R);J[n]=e.get(W);g!==J&&vo(g.localName,n,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");
if(n==="on-tap"||n==="on-click"){var b=e.get(W);g.addEventListener("click",b);lhV.set(g,{property:n,listener:{type:"element",eventName:"click",handler:b}})}}else _.Py(new _.E2("Undefined property binding",n))}}c.classListBinding&&c.classListBinding.split(" ").forEach(function(h){h=h.trim();if(h.startsWith("[[")){if(h=p4q(h))h=e.get(h),(Array.isArray(h)?h:(h!=null?h:"").split(" ")).forEach(function(X){X&&_.Vg(g,X,!0)})}else h&&_.Vg(g,h,!0)});
J.data=k}finally{I&&(I.isRendererStamper=!1)}if(c=UL.get(g))g.hidden=!1,UL.delete(g),_.ft.cancelJob(c)};
d8q=function(e,g,c,k){if(g&&g.children&&(c=g.children[c]))if(_.dH("DEFERRED_DETACH"))for(;c&&!UL.has(c);){var I=e,J=g,q=c,L=k;q.hidden=!0;I=_.h2(_.ft,F1C.bind(null,I,J,q,L),0);UL.set(q,I);c=c.nextElementSibling}else for(;(q=g.lastElementChild)&&(g.removeChild(q),swU(e,q,k),q!=c););};
_.o6=function(){for(var e=_.Mb.apply(0,arguments),g=!0,c=_.w(e),k=c.next();!k.done;k=c.next())if(typeof k.value!=="string"){g=!1;break}return g?e.join(" ").trim()||void 0:function(){for(var I="",J=_.w(e),q=J.next();!q.done;q=J.next())if(q=q.value,typeof q==="function"&&(q=q()),q)if(typeof q==="string")I+=" "+q;else for(var L in q)if(q.hasOwnProperty(L)){var n=q[L];typeof n==="function"&&(n=n());n&&(I+=" "+L)}I=I.trim()||void 0;return _.ds(I)}};
_.zw8=function(e,g){return _.Nc(e.entities,"markersEngagementPanelSyncEntity",g)};
_.Zi=function(e,g){return _.Nc(e.entities,"playerStateEntity",g)};
HdW=function(e,g){return _.Nc(e.entities,"fantasyWinProbabilityEntity",g)};
QwU=function(e,g){return _.Nc(e.entities,"fantasyTeamEntity",g)};
U8z=function(e,g){return _.Nc(e.entities,"fantasyPlayerEntity",g)};
o4e=function(e,g){return _.Nc(e.entities,"booleanEntity",g)};
ZdV=function(e,g){return _.Nc(e.entities,"qrCodeEntity",g)};
VkC=function(e){return _.Nc(e.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
Bu6=function(e){var g;return(g=tkt[e])!=null?g:"EVENT_SPAN_TYPE_UNKNOWN"};
NuA=function(e){return function(g){var c=Bu6(g.type);return c==="EVENT_SPAN_TYPE_UNKNOWN"?e(g):_.Q1("event",{type:c,nodepath:g.target instanceof Element?LAz(g.target):void 0},function(){return e(g)})}};
_.Ve=function(e){e&&Hm("event")&&(e=NuA(e));return tSp(function(g){var c,k=(c=e)==null?void 0:c(g);return typeof k==="boolean"?k:!0})};
tb=function(e){return function(){return e()?e():void 0}};
Odt=function(e){var g=_.io("animated-rolling-character"),c=Rm6(),k=lc(e.character)||lc(e.previousCharacter),I=_.w(LgC()),J=I.next().value,q=I.next().value;_.lo(function(){if(window.ResizeObserver&&_.G("web_fix_rolling_numbers_zoom_safari")){var L=new _.BT(function(){var R,W,b=Math.round(((W=(R=g.value.querySelector("div"))==null?void 0:R.getBoundingClientRect().height)!=null?W:0)*100)/100;b&&q(b)},500),n=new ResizeObserver(function(){L.fire()});
n.observe(g.value);return function(){n.disconnect();L.dispose()}}});
L7q(function(){var L=_.G("web_fix_rolling_numbers_zoom_safari")?J:e.marginMultiplier;if(L){var n;(n=c.value)==null||n.cancel();k?(n=e.previousCharacter?Number(e.previousCharacter)+10:e.rollUp?0:30,e.shouldAnimate||(n-=SFt(e,n))):(n=e.rollUp?0:2,e.shouldAnimate||(n-=e.rollUp?-1:1));g.value.style.marginTop="-"+n*L+"px";e.shouldAnimate?c.value=y7q(g.value,e,n,k,L):g.value.style.display=e.character?"":"none"}});
return _.a("animated-rolling-character",{el:g,class:"animatedRollingCharacterHost"},itW(k,function(){for(var L=[],n=1;n<30;n++)L.push(_.a("div",null,n%10));return _.a(_.es,null,_.a("div",null,"\u00a0"),L,_.a("div",null,"\u00a0"))},function(){return K1K(e.character)}))};
K1K=function(e){return _.a(_.es,null,_.a("div",null,"\u00a0"),_.a(_.es,null,itW(!e||_.rV(e),function(){return _.a("div",null,"\u00a0")},function(){return _.a("div",null,e)})),_.a("div",null,"\u00a0"))};
y7q=function(e,g,c,k,I){c=new Animation(new KeyframeEffect(e,[{transform:"translateY(0px)"},{transform:"translateY("+(k?SFt(g,c):g.rollUp?-1:1)*I+"px)"}],Mk8),document.timeline);g.character?(e.style.display="",c.onfinish=null):c.onfinish=function(){e.style.display="none"};
c.play();return c};
SFt=function(e,g){var c=Number(e.character)+10;if(e.previousCharacter)if(e.character){var k=Number(e.character),I=Number(e.previousCharacter);e=e.rollUp?I<k?c:c+10:I<k?c-10:c}else e=e.rollUp?30:0;else e=e.character==="0"?c:e.rollUp?c-10:c+10;return g-e};
Crv=function(e){return function(g){var c={},k;for(k in g){var I=void 0,J=void 0;((I=void 0)==null?0:(J=I.callbacks)==null?0:J[k])||(c[k]=g[k])}return _.a(bLe,null,function(){for(var q in c)g[q]=_.ds(c[q]);g.disableReactiveLogging=!0;return _.a(e,Object.assign({},g))})}};
cEV=function(e,g,c,k,I,J,q){c=new Animation(new KeyframeEffect(e,[{transform:"translateY(0px)"},{transform:"translateY("+(J?eaK(g,c,k,I):k?-1:1)*q+"px)"}],glg),document.timeline);g?(e.style.display="",c.onfinish=null):c.onfinish=function(){e.style.display="none"};
c.play();return c};
eaK=function(e,g,c,k){var I=Number(e)+10;g?e?(e=Number(e),g=Number(g),c=c?g<e?I:I+10:g<e?I-10:I):c=c?30:0:c=e==="0"?I:c?I-10:I+10;return k-c};
INe=function(e){var g=Rm6(),c=Rm6();r5W(function(){g.value=e.numberText;c.value=e.numberValue},[e.numberText]);
var k=e.fontSizeMultiplier?e.heightPx*e.fontSizeMultiplier:e.heightPx,I=KtW(function(){if(e.numberText){var q=e.numberText;var L=e.forceRollUp||!c.value||!e.numberValue||c.value<e.numberValue;var n=!!e.shouldAnimate,R=g.value,W=[],b=0,h=0,X=(R?R.replace(/\D/g,"").length:0)-(q?q.replace(/\D/g,"").length:0);R=R?R.split(/(\d)/).filter(Boolean):[];for(q=q.split(/(\d)/).filter(Boolean);X<0;){var D=q[h];W.push({character:D,rollUp:L,marginMultiplier:k,shouldAnimate:n});h++;lc(D)&&X++}for(;b<X;)D=R[b],W.push({previousCharacter:D,
rollUp:L,marginMultiplier:k,shouldAnimate:n}),b++,lc(D)||X++;for(;h<q.length;)X=q[h],D=R[b],lc(X)===lc(D)?(h++,b++):lc(X)?(b++,X=void 0):lc(D)&&(h++,D=void 0),W.push({character:X,previousCharacter:D,rollUp:L,marginMultiplier:k,shouldAnimate:n});L=W}else L=[];return L},[e.numberText]),J=e.numberText?["height: "+k+"px;",
"line-height: "+e.heightPx+"px;"].join(" "):"";return _.a("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:J,dir:"ltr","aria-hidden":"true"},I.map(function(q){return _.a(kgv,Object.assign({},q))}))};
JEv=function(e){switch(e){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.vlV=function(e,g){if(!e&&!g)return"medium";e=Math.max(e||0,g||0);return e>=256?"large":e>=96?"medium":"small"};
w8A=function(e){switch(e){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
qWK=function(e){return new KeyframeEffect(e,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
LxU=function(e){return new KeyframeEffect(e,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.N2=function(e){return function(){var g="",c;for(c in e){for(var k=e[c];typeof k==="function";)k=k();k!==void 0&&k!==null&&(g+="; "+c+": "+k)}return g.length>0?_.ds(g.slice(2)):_.ds()}};
rEe=function(e){switch(e){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"}};
aNz=function(e,g){if(g)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(e)switch(e){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
bRC=function(e,g,c,k,I,J,q){var L=nlt(e),n=L.disabled,R=L.iconPosition,W=L.style,b=L.focused,h=function(){return!!f()&&R()==="icon-only"},X=function(){return!!f()&&R()==="icon-only-40"},D=function(){return!!f()&&R()==="icon-with-label"},f=function(){return!!g||!(k==null||!k())};
return{type:function(){return W()==="call-to-action-inverse"?"text":W()==="overlay-dark"&&e().type!=="filled"&&e().type!=="tonal"?"tonal":e().type},
shouldFocus:function(){return(b()||(J==null?void 0:J()))&&!n()},
hasIconLeading:function(){return!!f()&&R()==="leading"},
hasIconTrailing:function(){return!!f()&&R()==="trailing"},
hasIconLeadingTrailing:function(){return!!f()&&!!(c||I!=null&&I())&&R()==="leading-trailing"},
hasIconOnly:h,hasIconOnly40:X,hasIconWithLabel:D,iconButton:function(){return h()||X()||D()},
visiblyDisabled:function(){return(n()?"disabled":e().state)==="disabled"||n()},
overrideSmallSizeIcon:function(){return!e().ignoreIconSizeOverride&&Rae(e(),f())},
iconToRender:g?g:function(){return _.a(_.SU,{icon:k,gradientColor:function(){var l;return(l=e().customColors)==null?void 0:l.iconGradientColor},
size:function(){return Elq(e(),!0,e().ignoreIconSizeOverride)},
active:function(){return e().toggled},
iconFilter:function(){return Wxg(e())},
animateIcon:q})},
secondaryIconToRender:c?c:function(){return _.a(_.SU,{icon:I,size:function(){return Elq(e(),!0,e().ignoreIconSizeOverride)},
active:function(){return e().toggled},
iconFilter:function(){return Wxg(e())}})}}};
nlt=function(e){return{size:function(){return e().size},
style:function(){return e().style},
focused:function(){return e().focused},
disabled:function(){return e().disabled},
onTap:function(g){var c,k;return(k=(c=e()).onTap)==null?void 0:k.call(c,g)},
alignByText:function(){return e().alignByText},
aTagConfig:function(){return e().aTagConfig},
customColors:function(){return e().customColors},
segmentedPosition:function(){return e().segmentedPosition},
toggled:function(){return e().toggled},
toggleable:function(){return e().toggleable},
accessibilityLabel:function(){return e().accessibilityLabel},
onToggle:function(g){var c,k;return(k=(c=e()).onToggle)==null?void 0:k.call(c,g)},
iconPosition:function(){return e().iconPosition},
oneOffCustomTextWrap:function(){return e().oneOffCustomTextWrap},
disableTextEllipsis:function(){return e().disableTextEllipsis},
disableBackdropFilter:function(){return e().disableBackdropFilter},
tooltipText:function(){return e().tooltipText},
tooltipShape:function(){return e().tooltipShape},
ariaHidden:function(){return e().ariaHidden},
tabIndex:function(){return e().tabIndex},
buttonText:function(){return e().buttonText},
formattedButtonText:function(){return e().formattedButtonText},
animatedTextProps:function(){return e().animatedTextProps},
onClickRateLimitMs:function(){return e().onClickRateLimitMs}}};
Rae=function(e,g){g=(e.iconPosition==="icon-only"||e.iconPosition==="icon-only-40"||e.iconPosition==="icon-with-label")&&g;return!e.segmentedPosition&&g&&e.size==="S"};
Elq=function(e,g,c){switch(e.size){case "XS":return 16;case "S":return!c&&Rae(e,g)?24:16;default:return 24}};
haC=function(e){switch(e){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"}};
X8p=function(e){switch(e){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"}};
Gg8=function(e){switch(e){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"}};
Wxg=function(e){if(e.style==="overlay-dark"&&e.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
ye=function(e){return e&&e.endsWith("px")?Number(e.slice(0,-2)):0};
$0v=function(e,g){var c=_.w(_.uF(function(){var I,J;return(J=e())!=null?J:g==null?void 0:(I=g())==null?void 0:I.text})),k=c.next().value;
return[function(I){var J=_.xF(function(){var n;return Object.assign({},{location:"bottom",offset:16,delay:1},g==null?void 0:g(),{text:(n=k())!=null?n:""})},void 0,"IJU38d");
_.AV(function(){var n=J();_.EX(function(){_.ft.addJob(function(){Kv.notify(I,n)},4)})},"WlsgZc");
var q=function(){x0A(I,J())},L=function(){D0V()};
I.addEventListener("mouseenter",q);I.addEventListener("focus",q);I.addEventListener("mouseleave",L);I.addEventListener("blur",L);I.addEventListener("tap",L);_.sX(function(){I.removeEventListener("mouseenter",q);I.removeEventListener("mouseleave",L);I.removeEventListener("focus",q);I.removeEventListener("blur",L);I.removeEventListener("tap",L);D0V()})},
c.next().value]};
fNp=function(e,g){if(!KT){var c;Sgp(function(){return c=ED6(e,g)});
return c}e.parent=YWA();return ED6(e,g)};
YWA=function(){var e=M_(KT||void 0,aZW);return TKC(e)?void 0:e};
OL=function(e,g){_.b3(e,Object.assign({},g,{forceClickLogging:!0}))};
jzz=function(e){switch(e){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
Pte=function(e,g){var c=_.WT(e==null?void 0:e.onTap),k={};c&&(k.getClickedVisualElement=function(){var I;return iRz(e,c,g==null?void 0:(I=g.value)==null?void 0:I.visualElement)});
k=_.hb({elementsCommand:e.onTap,forceNewState:!0,additionalCommandArgs:k});return X6(k)?k:void 0};
m08=function(e,g,c,k){OL(e,Object.assign({},{form:{element:g,event:c}},k))};
p8C=function(e,g,c,k,I){var J=void 0;return function(q){var L=_.WT(c?e==null?void 0:e.onDisabledTap:e==null?void 0:e.onTap);if(L){var n;J=(n=J)!=null?n:g==null?void 0:g.value;if(L)if(_.G("web_button_vm_click_client_ve_killswitch"))m08(L,J,q);else{var R;n=iRz(e,L,(R=J)==null?void 0:R.visualElement);if(I){m08(L,I,q,{clickedVisualElement:n,form:{element:I}});return}m08(L,J,q,{clickedVisualElement:n})}}k&&k(q)}};
iRz=function(e,g,c){g=g==null?void 0:g.clickTrackingParams;var k,I;e=e==null?void 0:(k=e.loggingDirectives)==null?void 0:(I=k.clientVeSpec)==null?void 0:I.uiType;if(c&&e&&!g)return c};
Ttq=function(e){switch(e){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"}};
lNW=function(e){switch(e){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"}};
AEU=function(e){switch(e){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"}};
sze=function(e){switch(e){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"}};
_.M2=function(e){return _.xF(function(){ojC()();return t7e(e)},{debugName:"d8B62c"},"DEXkhd")};
Fxt=function(e,g){return _.Nc(e.entities,"engagementToolbarStateEntityPayload",g)};
d0v=function(e){(e=_.Jb(e))&&_.unK(e)};
_.unK=function(e){var g=_.EM();g&&_.j4(g,e)};
zaq=function(e,g,c){_.Z5(e,"yt-open-popup-action",[g,c||e])};
HRV=function(e,g){var c=_.A_(e,"endpoint"),k=_.A_(e,"action");return(c=k?k:c)&&g&&(c=g.navigationEndpointPopupMap[c])&&(e=_.Q0(c,e),(c=_.A_(e,"renderer"))&&g.supportedPopups.hasOwnProperty(c))?{openPopupAction:{popupType:g.popupTypeMap[c],popup:e}}:null};
Qzt=function(e,g,c,k){if(k){var I;c=c==null?void 0:(I=c.data)==null?void 0:I.contents;(I=c instanceof Array&&c.length?c[0]:c)&&(c=_.A_(I,"renderer"))&&k.supportedPopups.hasOwnProperty(c)&&(g.stopPropagation(),zaq(e,{openPopupAction:{popupType:k.popupTypeMap[c],popup:I}}))}};
ZRW=function(e,g,c,k){k=k===void 0?!1:k;var I=U0z(g);if(I){I.href&&XZ(I.href);var J=g.button;J=J!==void 0?J===0&&!Cv(g):!Cv(g);I.data&&J&&olC(e,I,g,c,k)}};
olC=function(e,g,c,k,I){I=I===void 0?!1:I;var J=_.MN("pbj_navigate_limit",-1)===0;VGg(g);_.Ss().resolve(_.NN(FC));var q=g.data;if(Object.keys(q).length!==0)if(!_.G("unplugged_web_disable_actions_for_cec_endpoint")&&_.x(q,_.SV))_.G("endpoint_behavior_command_executor_fix_killswitch")||(c.preventDefault(),c.stopPropagation()),_.Bm(e,[q],e);else if(k=HRV(q,k))q.loggingUrls&&q.loggingUrls.forEach(function(n){n.baseUrl&&_.uw(n.baseUrl)}),c.preventDefault(),c.stopPropagation(),zaq(e,k,g);
else{var L=tGC(0,g.data,c);if(e=g.getForm)e=e(),L.tempData=L.tempData||{},L.tempData=Object.assign({},L.tempData,e);e=_.lg(c);if(k=e.find(function(n){return!!n.visualElement}))L.createScreenConfig=L.createScreenConfig||{},L.createScreenConfig.clickedVisualElement=k.visualElement;
if(!J)if(c.preventDefault(),c.stopPropagation(),_.x(q,_.BtU)&&!I&&_.yJ.instance)_.yJ.instance.resolveCommand(q,L);else if(_.G("kevlar_command_handler_formatted_string")&&!I&&_.yJ.instance&&Nt8(q))I=e.find(function(n){return!!n.is})||c.target,c={form:Object.assign({},L,{event:c,
element:I,originatingNode:g})},_.yJ.instance.resolveCommand(q,c);else{q=_.lg(c);c=[];for(I=0;I<q.length;I++)(J=q[I].is)&&c.push(J);TbU({parents:c.join(","),text:g.innerText},function(){_.oC(g,"yt-navigate",L)})}}};
SWg=function(e){if(e=U0z(e))VGg(e),Bzq(e.href)};
U0z=function(e){e=_.lg(e);for(var g,c=0;c<e.length;c++)if(g=e[c],g.tagName==="A"&&g.classList.contains("yt-simple-endpoint")){if(!g.data)break;return g}return null};
Cv=function(e){return e.shiftKey||e.altKey||e.metaKey||e.ctrlKey};
yEp=function(e,g){var c={itct:g.clickTrackingParams};_.G("kevlar_client_side_screens")&&(!_.x(g,_.eh)||_.G("kevlar_exclude_endpoint_killswitch"))&&(c.endpoint=JSON.stringify(g));_.G("enable_unknown_lact_fix_on_html5")&&_.Ss().resolve(_.NN(_.et))&&(c.lact=_.S6());Z7K(c);_.Ar(e,c)};
VGg=function(e){e.href&&Object.keys(e.data).length!==0&&yEp(e.href,e.data)};
Nt8=function(e){for(var g=_.w(KxK),c=g.next();!c.done;c=g.next())if(e[c.value])return!1;return!0};
ORK=function(){if(gi)return gi;if(window.lottie)return gi=Promise.resolve(window.lottie);var e=_.j6(_.uo("LOTTIE_URL"));return e?gi=new Promise(function(g,c){var k=document.createElement("script");k.addEventListener("load",function(){g(lottie)});
k.addEventListener("error",function(I){var J="Lottie library failed to load.";I?I.message&&(J+=" Original description: "+I.message,_.pB(I,J)):I=Error(J);_.mN(I);c(I)});
k.setAttribute("async","");_.Eh(k,e);document.head.appendChild(k)}):Promise.reject(Error("th"))};
MGe=function(){return gi?gi:ORK()};
Ct6=function(e){if(e)switch(e){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.G("kevlar_use_wil_icons"))return e=(e=VkC(_.Tt().getState()))&&e.animationLightUrl&&e.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:e.animationLightUrl,pathDarkTheme:e.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,e?e:ky.get("LIKE");break;case "LIKE_DELHI_PLAYER":return ky.get("LIKE_DELHI_PLAYER")}};
ey6=function(e){var g=Ct6(e);if(g)return g;switch(e){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return ky.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return ky.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return ky.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return ky.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return ky.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return ky.get("NOTIFICATION_BELL")}};
gcC=function(e,g){if(!e.closest)return!1;g=!!Ct6(g);return _.uo("ID_TOKEN")&&g?!!e.closest("segmented-like-dislike-button-view-model")||!!e.closest("yt-player-quick-action-buttons"):!1};
khe=function(e,g){if(!e||cQg)g=!1;else{var c;if(!(c=gcC(e,g)))if(e.closest)if(c=!_.uo("ID_TOKEN"),e=e.closest("ytd-subscription-notification-toggle-button-renderer-next"),c||!e)c=!1;else{var k;c=((k=e.data)==null?void 0:k.targetId)==="notification-bell"&&g!=="EXPAND_MORE"}else c=!1;g=c}return g};
I_C=function(e){var g,c;return _.r(function(k){switch(k.nextAddress){case 1:return _.lj(k,2),k.yield(fetch(e),4);case 4:return g=k.yieldResult,k.yield(g.json(),5);case 5:return k.return(k.yieldResult);case 2:c=_.Qb(k),_.mN(c),_.Uh(k)}})};
JQt=function(e,g){var c,k,I;return _.r(function(J){if(J.nextAddress==1)return(c=g?e.pathDarkTheme:e.path)?J.yield(Promise.all([I_C(c),ORK()]),2):J.return();k=J.yieldResult;I=k[0];IH.set(c,I);_.Uh(J)})};
wK6=function(e,g,c,k){function I(q,L){if(g.value===L&&!g.cancelled){for(;e.firstChild;)e.removeChild(e.firstChild);e.classList.add("ytSpecIconShapeHost");q(e,k)}}
var J=_.vce(_.Ss().resolve(_.SY),c);typeof J==="function"?(g.value=null,I(J,null)):(g.value=J,J.then(function(q){I(q,J)}))};
qdA=function(e,g){var c=document.createElement("div"),k=_.p4(c,function(){return _.a(_.E,{cond:e,then:function(I){return _.a(_.J4,{data:I,options:g})}})},"ea");
return[c,k]};
_.vO=function(e,g){if(g){var c={};L9W.forEach(function(k){k=rQK(g,k,"--yt-lightsource-");Object.assign(c,k)});
a_6.forEach(function(k){k=rQK(g,k,"--yt-basic-");Object.assign(c,k)});
_.Nk(e,c)}};
rQK=function(e,g,c){var k={};k[c+_.KM(g)]=e&&e[g]?_.EY(e[g]):"";return k};
_.qH=function(e,g,c){wi[e]||(wi[e]={});wi[e][g]=c};
_.Lx=function(e){wi[e]||(wi[e]={});return wi[e]};
nc6=function(e){if(!e)return{};var g=e.foregroundTitleColor,c=e.backgroundColor;e=e.borderColor;var k="text";e?k="outline":c&&(k="filled");return{type:k,customColors:{color:g?_.EY(g):void 0,backgroundColor:c?_.EY(c):void 0,borderColor:e?_.EY(e):void 0}}};
hyq=function(e){var g=e.renderer;var c=e.element;var k=e.commandController;var I=e.onTapCallback;var J=e.skipCommandHandling;var q=e.overrides;var L=e.forceIcon;var n=e.forceModernIconButton;var R=e.forceDisabled;var W=e.isSubscribe===void 0?!1:e.isSubscribe;var b=e.isPressed===void 0?!1:e.isPressed;var h=e.useButtonSize===void 0?!1:e.useButtonSize;e=Ryq(g);W&&(e.style="mono",e.type="filled");L=!g.icon||!L&&g.text?g.icon?g.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:n?"icon-only":"icon-only-40";L==="icon-only-40"&&(e.type="text");var X;n=Object;W=n.assign;h=Ec8(g,h);b=!!g.isSelected||!_.G("web_propagate_is_pressed_killswitch")&&!!b;var D=g.isSelected!==void 0;R=R===void 0?g.isDisabled:R;var f=g.text?_.a6(g.text):void 0;var l,A,d,S=((l=g.accessibilityData)==null?void 0:(A=l.accessibilityData)==null?void 0:A.label)||((d=g.accessibility)==null?void 0:d.label);l=S?S:_.mp(g.text);c=W9z(g,c,k,I,J);k=bJ6(g);k!=null&&k.length?(k=_.hb({innertubeCommand:kWt(k),
forceNewState:!0}),k=X6(k)?k:void 0):k=void 0;return W.call(n,{},e,h,{iconPosition:L},q,{focused:!1,toggled:b,toggleable:D,disabled:R,formattedButtonText:f,accessibilityLabel:l,onTap:c,aTagConfig:k},nc6((X=g.colorData)==null?void 0:X.basicColorPaletteData),{oneOffCustomTextWrap:g.oneOffCustomTextWrap})};
W9z=function(e,g,c,k,I){return function(J){var q=bJ6(e);k(q,J);if(!I){q=_.w(q);for(var L=q.next();!L.done;L=q.next())OL(L.value,{form:{element:g,event:J},commandController:c})}}};
bJ6=function(e){var g=[];e.command&&g.push(e.command);e.serviceEndpoint&&g.push(e.serviceEndpoint);e.navigationEndpoint&&g.push(e.navigationEndpoint);return g};
Ec8=function(e,g){if(g)switch(e.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(e.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Ryq=function(e){switch(e.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
XKp=function(e,g){return typeof e!=="object"||e===null?!1:Object.keys(g).every(function(c){return c in e})};
ri=function(e){return Object.fromEntries(Object.keys(e).map(function(g){return[g,g]}))};
GhU=function(e,g,c){return eFK(c,function(k,I){return function(J){var q=_.Mb.apply(1,arguments);return XKp(J,e)?I.apply(null,[J[g]].concat(_.KY(q))):I.apply(null,[J].concat(_.KY(q)))}})};
aH=function(e){return function(g,c){return GhU(e,g,c)}};
xhv=function(e,g){var c;return(c=_.Nc(e,"playlistLoopStateEntity",g))!=null?c:void 0};
DhW=function(e,g){var c;return(c=_.Nc(e,"toggleMenuServiceItemEntity",g))!=null?c:void 0};
_.nx=function(e){return e!=null&&e.watch?e.watch.isTheaterMode:!1};
_.RH=function(e){return e!=null&&e.watch?e.watch.isWatchFullscreen:!1};
_.E1=function(e){return _.$hg(e)?!0:_.YdC(e)};
_.$hg=function(e){return e!=null&&e.watch?e.watch.isSwatcherooActive:!1};
_.YdC=function(e){return e!=null&&e.watch?e.watch.isWatchNarrowWidth:!1};
_.f_W=function(e){return _.nx(e)||_.RH(e)||_.YdC(e)};
_.jQv=function(e){return e.watch.openEngagementPanels};
_.WO=function(e,g){return _.Nc(e.entities,"likeStatusEntity",g)};
iJA=function(e,g){return _.Nc(e.entities,"likeCountEntity",g)};
_.PGW=function(e,g){return _.Nc(e.entities,"stringEntity",g)};
mhC=function(e,g){return _.Nc(e.entities,"dataFreshnessEntity",g)};
pKV=function(e,g){if(!e)return!1;var c,k=(c=_.x(e,_.K_))==null?void 0:c.signal;if(k&&g.signalEndpointMap)return!!g.signalEndpointMap[k];var I;if((c=(I=_.x(e,_.b6))==null?void 0:I.request)&&g.continuationEndpointMap)return!!g.continuationEndpointMap[c];for(var J in e)if(g.commandEndpointMap[J])return!0;return!1};
TWp=function(e,g){if(g.streamingEndpointMap)for(var c in e)if(g.streamingEndpointMap[c]&&(e=g.streamingEndpointMap[c]))return e()};
l_z=function(e,g){var c,k=(c=_.x(e,_.K_))==null?void 0:c.signal;if(k&&g.signalEndpointMap&&(c=g.signalEndpointMap[k]))return c();var I;if((c=(I=_.x(e,_.b6))==null?void 0:I.request)&&g.continuationEndpointMap&&(I=g.continuationEndpointMap[c]))return I();for(var J in e)if(g.commandEndpointMap[J]&&(e=g.commandEndpointMap[J]))return e()};
AQq=function(e){var g={"Content-Type":"application/json"};_.uo("EOM_VISITOR_DATA")?g["X-Goog-EOM-Visitor-Id"]=_.uo("EOM_VISITOR_DATA"):_.uo("VISITOR_DATA")&&(g["X-Goog-Visitor-Id"]=_.uo("VISITOR_DATA"));g["X-Youtube-Bootstrap-Logged-In"]=_.uo("LOGGED_IN",!1);_.uo("DEBUG_SETTINGS_METADATA")&&(g["X-Debug-Settings-Metadata"]=_.uo("DEBUG_SETTINGS_METADATA"));e!=="cors"&&((e=_.uo("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(g["X-Youtube-Client-Name"]=e),(e=_.uo("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(g["X-Youtube-Client-Version"]=
e),(e=_.uo("CHROME_CONNECTED_HEADER"))&&(g["X-Youtube-Chrome-Connected"]=e),(e=_.uo("DOMAIN_ADMIN_STATE"))&&(g["X-Youtube-Domain-Admin-State"]=e));(e=_.uo("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(g["X-YouTube-Lava-Device-Context"]=e);return g};
sQ8=function(e,g){g.watchNextResponse||g.reelItemWatchResponse?g.watchNextResponse?e.content=g.watchNextResponse:e.content=g.reelItemWatchResponse:g.playerResponse?e.player=g.playerResponse:g.reelWatchSequenceResponse&&(e.reelSequence=g.reelWatchSequenceResponse)};
h4=function(e){return function(){return new e}};
XE=function(e){var g=_.Ss();return function(){return g.resolve(e)}};
_.GJ=function(e){if(!e)return null;for(var g=[],c=0;c<e.textSegments.length;c++){var k=e.textSegments[c];k.text?g.push(k):k.emojiId&&g.push({emoji_id:k.emojiId})}return{text_segments:g}};
HJz=function(e,g,c,k,I,J,q){J=J===void 0?[]:J;var L=new _.xy;L.endpoint=c;if(!c)return _.Py(new _.E2("handle undefined endpoint",g.tagName)),L;var n=QBV(c);n.length&&(_.Bm(e,n,g,k),L.actions=n);c.loggingUrls&&c.loggingUrls.forEach(function(W){W.baseUrl&&dK(W.baseUrl,W.attributionSrcMode)});
n=!_.G("web_skip_impression_click_killswitch")&&k&&k.impression;if(c.clickTrackingParams&&!F9K(c)&&!uVV(g)&&!n&&(n=_.gL(),!_.$y(n,g))){var R=g.getScreenLayer&&g.getScreenLayer();R?n.clickCommand(c,null,R):n.clickCommand(c,null)}n=!1;for(R=0;R<J.length;R++)if((0,J[R])(g,c,k)){n=!0;break}!n&&dhz(c)&&(L.ajaxPromise=zyt(e,g,c,k,I,q));return L};
uVV=function(e){var g;return(e=(g=e.data)==null?void 0:g.navigationEndpoint)&&!!e.clickTrackingParams};
F9K=function(e){var g=_.x(e,_.K_);if(g&&(g=g.signal)&&QQq.indexOf(g)>=0)return!0;for(var c in e)if(Uh6.indexOf(c)>=0)return!0;return!1};
dhz=function(e){var g;if(((g=_.x(e,_.K_))==null?void 0:g.signal)==="CLIENT_SIGNAL")return!1;for(var c in e)if(ocK.indexOf(c)>=0)return!1;e=Object.keys(e);return e.length===1&&e[0]==="loggingUrls"?!1:!0};
OJp=function(e,g,c,k,I,J,q){var L=_.Yy.instance;if(L&&_.fx(L,k))var n=_.jt(L,k,I).then(function(W){return(W==null?0:W.data)?W:{data:W}});
else n=e.requestDataForServiceEndpoint(k,I),_.x(k,ZJU)||_.x(k,V36)||_.x(k,_.t3A)||_.x(k,BW6)||_.mN(new _.E2("No RequestBuilder for endpoint",k));var R=_.i6();R.promise.thenCatch(function(){var W=_.A_(k,"action")||_.A_(k,"command")||_.A_(k,"endpoint");W&&(W=k[W],W.hasOwnProperty("onFailureAction")?_.Bm(g,[W.onFailureAction],c):W.hasOwnProperty("onFailureCommand")&&_.Bm(g,W.onFailureCommand,c));n.cancel("Resolver promise rejected")});
n.then(function(W){if(W){var b=W.error;if(b){if(J&&J.onServerError)J.onServerError(k,W);R.reject(new _.E2("Response error",k,b))}else if(W=W.data)if(b=W.error){if(J&&J.onServerError)J.onServerError(k,W);R.reject(new _.E2("Returned error",k,b))}else{NWg(g,c,W,k);SdV(W);if(b=HVW(W))for(var h=_.w(b),X=h.next();!X.done;X=h.next()){X=X.value;var D=_.Ss().resolve(_.NN(yQt))||K9V;if(!_.Yy.instance||!D.some(function(l){return!!_.x(k,l)})||_.G("kevlar_response_processor_allowlist_killswitch")){var f=D=void 0;
((f=_.x((D=X)==null?void 0:D.commandMetadata,_.OM))==null?0:f.sendPost)?_.tr(g,[X]):_.Bm(g,[X],c)}}(h=_.x(W==null?void 0:W.frameworkUpdates,PO))&&q&&q(h);if(J&&J.onSuccess)J.onSuccess(k,W);R.resolve(new _.ms(W,b))}}else R.reject(new _.E2("Invalid service endpoint provided",k))},function(W){R.reject(W)});
return R.promise};
SdV=function(e){var g;(e=(g=_.x(e==null?void 0:e.onResponseReceivedCommand,M3W))==null?void 0:g.continuationItems)&&(e==null?void 0:e.length)===1&&_.x(e[0],CGv)&&_.Wh("so_r",void 0,"search_overview_answer")};
zyt=function(e,g,c,k,I,J){var q;return(q=g.getNetworkManager&&g.getNetworkManager()?g.getNetworkManager():_.Ss().resolve(_.NN(_.cg)))?OJp(q,e,g,c,k,I,J):_.q2("No network manager.")};
NWg=function(e,g,c,k){if(c=c.trackingParams||c.loggingDirectives&&c.loggingDirectives.trackingParams){var I;(_.x(k,_.px)||_.x(k,eCK)||_.x(k,gOA))&&k.clickTrackingParams&&(I=_.Jb(k.clickTrackingParams));var J;k=(J=g.getScreenLayer)==null?void 0:J.call(g);g=_.gL().graftServerVe(c,I,k);_.V1(e,"yt-store-grafted-ve-action",[g])}};
_.cMt=function(e){var g=new Image;return new _.Il(function(c,k){g.addEventListener("load",function(){c()});
g.addEventListener("error",function(){k()});
g.src=e})};
kUq=function(e){return!!e};
ImU=function(e){return!!e};
JMp=function(e,g,c){var k=e.rowIndex;k!==void 0&&_.V1(e.hostElement,"yt-section-reactive-dismissal",[k,g,c])};
_.TJ=function(e,g,c){e=_.w(e);for(var k=e.next();!k.done;k=e.next()){k=k.value;if(k===g)break;for(var I=_.w(c),J=I.next();!J.done;J=I.next())if(J=J.value,k.tagName===J||!_.G("web_event_button_role_check_killswitch")&&k.role==="button"&&J==="BUTTON")return!0}return!1};
_.l6=function(e,g,c){e=_.w(e);for(var k=e.next();!k.done;k=e.next()){k=k.value;if(k===g)break;for(var I=_.w(c),J=I.next();!J.done;J=I.next())if(k.id===J.value)return!0}return!1};
_.FE=function(){var e=_.Ss().resolve(_.NN(_.A4));return e?(e=e.getCurrentPage())?_.s1(e):null:null};
_.u6=function(){var e=_.FE();if(!e){var g=_.Ss().resolve(_.NN(_.A4)),c=g?typeof g:"no page manager";g=g?g.getCurrentPage():null;c=new _.E2("Player is missing when requested.",c,g?g.tagName:"no page");_.jW(c)}return e};
_.s1=function(e){return e&&e.getPlayer?e.getPlayer():null};
vOp=function(e,g){e={args:{raw_player_response:e}};g&&(e.args=Object.assign({},e.args,g));return e};
w7V=function(e){if(e.args){if(e.args.raw_player_response)return e.args.raw_player_response;if(e.args.player_response)return JSON.parse(e.args.player_response)}};
_.qaK=function(e,g){var c={url:"/watch?v="+e.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};e.playlistId&&(c.url+="&list="+e.playlistId);e.playerParams&&(c.url+="&pp="+e.playerParams);e={watchEndpoint:e,commandMetadata:{webCommandMetadata:c}};g&&(e.clickTrackingParams=g);return e};
rMt=function(){return L_U||!!_.Q0("yt.player.Application")};
nO8=function(){return amV||!!document.querySelector("link#player-css")};
EOg=function(){function e(){L_U=!0;RCK.resolve()}
var g,c;return _.r(function(k){RCK||(RCK=new _.V8,rMt()?e():(g=document.createElement("script"),g.addEventListener("load",e),c=_.Ry(_.uo("PLAYER_JS_URL")),_.Eh(g,c),document.head.appendChild(g)));return k.return(RCK.promise)})};
b9p=function(){function e(){amV=!0;W_A.resolve()}
if(!W_A)if(W_A=new _.V8,nO8())e();else{var g=document.createElement("link");g.id="player-css";g.addEventListener("load",e);var c=_.Ry(_.uo("PLAYER_CSS_URL"));_.h0(g,c,"stylesheet");document.head.appendChild(g)}return W_A.promise};
hCW=function(){return rMt()&&nO8()?Promise.resolve([]):Promise.all([EOg(),b9p()])};
X7e=function(e,g,c){var k={args:{}};e&&(k.args.raw_player_response=e);g&&(k.args.raw_watch_next_response=g);c&&(k.args=Object.assign({},k.args,c));return k};
$Cq=function(e,g,c){var k=!1;k=k===void 0?!0:k;e=typeof e==="string"?_.di(document,e):e;var I=GUt+"_"+_.KC(e),J=xCW[I];if(J&&k)return DCg(g,c)?J.api.loadVideoByPlayerVars(g.args||null):J.loadNewVideoConfig(g),J.api;J=new zJ(e,I,g,c,void 0);xCW[I]=J;J.addOnDisposeCallback(function(){delete xCW[J.getId()]});
return J.api};
DCg=function(e,g){return g&&g.serializedExperimentFlags?g.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):e&&e.args&&e.args.fflags?e.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
YaK=function(){var e=new _.V8;e.resolved=!1;var g=e.resolve;e.resolve=function(c){e.resolved=!0;g(c)};
return e};
jJz=function(e){var g={};fmW().install((g.document_disposed={callback:e},g))};
HO=function(e,g){if(!e&&Math.random()<=_.MN("kevlar_unified_player_logging_threshold")){e=Error("vh`"+(g?g:"Unspecified error"));if(_.G("kevlar_unified_player_throw_errors"))throw e;_.mN(e)}};
_.i9W=function(){var e=_.Q0("ytDebugData.callbacks");e||(e={},_.BQ("ytDebugData.callbacks",e));return e};
mCU=function(e,g){var c=_.i9W();if(_.G("web_dd_iu")||P9K.includes(e))c[e]=g};
p7p=function(){return _.r(function(e){return e.return({isLeader:_.UTC(_.Tt().getState()),c:_.uo("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.uo("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
T56=function(){var e;_.r(function(g){if(g.nextAddress==1)return mCU("APP_STATE",p7p),g.yield(_.Ss().resolve(_.QF),2);e=g.yieldResult;mCU("PI",function(){return _.r(function(c){return c.return(e.getVideoStats())})});
_.Uh(g)})};
lmK=function(e){return!!e&&e.length>0&&e[0].loggingUrls!=null&&e[0].loggingUrls.length>0};
AMW=function(){var e=_.uo("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(e==null?void 0:e.length)===2?e[1]:null};
sJg=function(e){if(!e)return[];var g=[];e=_.w(e);for(var c=e.next();!c.done;c=e.next())if(c=c.value,c.loggingUrls){c=_.w(c.loggingUrls);for(var k=c.next();!k.done;k=c.next())k=k.value,k.baseUrl&&g.push(k.baseUrl)}return g};
F_K=function(e){var g=_.NO(_.Bc(_.kp.location.href));e=_.NO(_.Bc(e));return _.G("kevlar_clear_non_displayable_url_params")?g==U1(e):U1(g)==U1(e)};
U1=function(e){var g=_.S5p(e);e=e.slice(0);var c=["frags"];_.G("kevlar_hide_pp_url_param")&&c.push("pp");_.G("kevlar_hide_time_continue_url_param")&&c.push("time_continue");c=_.w(c);for(var k=c.next();!k.done;k=c.next())k=k.value,e=_.gN(_.NO(e),k);return _.NO(e)+(g?"#"+g:"")};
oH=function(e,g){var c=c===void 0?!0:c;g=Number(g)*1E3;var k=Math.round((0,_.yr)()),I=k.toString();e={innertubeResponse:e,serverDateTimestampMs:I,lastModifiedTimestampMs:I,expireTimestampMs:(k+g).toString(),isProcessed:c};if(c=_.uo("INNERTUBE_CONTEXT_CLIENT_NAME"))e.clientName=c;return e};
dCA=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++ujW};
zCC=function(e){return!isNaN(e)&&e>0};
QJC=function(){_.G("web_adaptive_repeat_ase")&&H9A&&_.Y2("applicationStarted",H9A)};
_.UCC=function(){var e=_.RC(),g=_.EM();g&&e&&_.Ph(g,[e],!0)};
Z9e=function(e){return e&&oOW.some(function(g){return e.includes(g)})};
yMe=function(e){var g=_.x(e,_.uf);if(!g)return!1;var c=g.url,k=g.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!c)return _.jW(Error("Ah")),!1;if(g.target==="TARGET_NEW_WINDOW"){g={};_.G("resolve_url_parent_tracking_params")&&(!_.V9(c)||Sw(window.location.href,c))&&(g={endpoint:e,itct:e.clickTrackingParams});Z7K(g);e=null;try{if(k){a:{var I=c,J=g;k=k===void 0?!1:k;J&&_.Ar(I,J);var q=_.Km(I),L=_.BJ(q);I!=L&&_.UI(Error("Zf`"+I));I=L;try{if(k){L=I;L=D2z(L);XZ(L);e=_.q5(window,L,"_blank",
"attributionsrc");break a}}catch(h){_.zr(h)}XZ(I);e=_.q5(window,q,"_blank")}VgU(_.Ss().resolve(tgg),e,c);return!0}}catch(h){_.jW(h)}_.Ar(c,g);g={target:"_blank",noopener:!1};q=window;L=tj(c)?c:_.Km(typeof c.href!="undefined"?c.href:String(c));k=self.crossOriginIsolated!==void 0;e="strict-origin-when-cross-origin";window.Request&&(e=(new Request("/")).referrerPolicy);I=g.noreferrer;if(k&&I&&e==="unsafe-url")throw Error("we");e=I&&!k;I=g.target||c.target;J=[];var n=[],R=!1;for(b in g){var W=g[b];switch(b){case "width":case "height":case "top":case "left":J.push(b+
"="+W);break;case "target":break;case "noopener":case "noreferrer":W?n.push(b):(R=!0,n.push(b+"=false"));break;case "attributionsrc":J.push(b+(W?"="+W:""));break;default:J.push(b+"="+(W?1:0))}}var b=I!==void 0&&!["_blank","_self","_top","_parent",""].includes(I);b=Pz()&&b;B5e&&k&&J.length===0&&n.length>0&&!b&&!R?(n.length===2&&(n=["noreferrer"]),_.q5(q,L,I,n[0]),e=N5A()):(b=J.join(","),_.lW()&&q.navigator&&q.navigator.standalone&&I&&I!="_self"?(b=_.C0("A"),e0(b,L),b.target=I,e&&(b.rel="noreferrer"),
((g=g.attributionsrc)||g==="")&&b.setAttribute("attributionsrc",g),g=document.createEvent("MouseEvent"),g.initMouseEvent("click",!0,!0,q,1),b.dispatchEvent(g),b=N5A()):e?(b=_.q5(q,"",I,b),q=_.BJ(L),b&&(b.opener=null,q===""&&(q="javascript:''"),q='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Z3(q)+'">',q=kW(q),(g=b.document)&&g.write&&(g.write(IP(q)),g.close()))):((b=_.q5(q,L,I,b))&&g.noopener&&(b.opener=null),b&&g.noreferrer&&(b.opener=null)),e=b);VgU(_.Ss().resolve(tgg),
e,c);return!0}b=_.tv(c);b=Z9e(b)||c==="https://studio.youtube.com/";if(_.V9(c)&&!Sw(window.location.href,c)||b)XZ(c),at(),_.Gb(c,void 0,void 0,window.top,Sa8);else return _.mN(new _.E2("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",e)),!1;return!0};
_.Mg8=function(e,g){g=g===void 0?0:g;if(!(_.x(e,K_p)||_.x(e,O96)||_.x(e,_.uf)&&_.x(e,_.uf).url))return!1;var c,k=(c=_.x(e,_.uf))==null?void 0:c.url;c=k?{externalLinkData:{url:k}}:null;return _.gL().clickCommand(e,c,g)};
eJg=function(e,g,c,k,I){I=I===void 0?{}:I;return function(J){var q,L;var n=((q=e.loggingDirectives)==null?0:(L=q.clientVeSpec)==null?0:L.uiType)?_.VF(e.loggingDirectives.clientVeSpec.uiType):void 0;I.clickedVisualElement||(I.clickedVisualElement=n);n=C9W(e,g);c(n,J);n=_.w(n);for(q=n.next();!q.done;q=n.next()){q=q.value;L=k;var R=J,W=I;W.form?W.form.event=R:W.form={element:L,event:R};OL(q,W)}}};
C9W=function(e,g){var c=[];g?(e.toggledCommand&&c.push(e.toggledCommand),e.toggledServiceEndpoint&&c.push(e.toggledServiceEndpoint)):(e.defaultCommand&&c.push(e.defaultCommand),e.defaultServiceEndpoint&&c.push(e.defaultServiceEndpoint),e.defaultNavigationEndpoint&&c.push(e.defaultNavigationEndpoint));return c};
gwK=function(e,g){var c=e.toggledStyle||e.style,k;switch((k=g?c:e.style)==null?void 0:k.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"}}};
_.t4=function(){return _.r(function(e){return e.nextAddress==1?e.yield(_.Ss().resolve(_.QF),2):e.return(_.Ss().resolve(cJz)())})};
_.BO=function(){return _.Ss().resolve(cJz)()};
_.NH=function(){return{lottieEl:void 0}};
kQC=function(e,g){return e.startsWith(g.uniqueId)};
I86=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return k.yield(_.t4(),2);g=k.yieldResult;if((c=g)==null||!c.addEventListener)return St(),k.return();g.addEventListener("onCueRangeEnter",e);_.Uh(k)})};
JJt=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return k.yield(_.t4(),2);g=k.yieldResult;if((c=g)==null||!c.removeEventListener)return St(),k.return();g.removeEventListener("onCueRangeEnter",e);_.Uh(k)})};
vw8=function(e){var g,c,k,I,J;_.r(function(q){if(q.nextAddress==1)return q.yield(_.t4(),2);g=q.yieldResult;if((c=g)==null||!c.addCueRange)return St(),q.return();k=_.w(e.timings);for(I=k.next();!I.done;I=k.next())J=I.value,g.addCueRange(e.uniqueId+"-"+J,J/1E3,(J+100)/1E3);_.Uh(q)})};
wSK=function(e){var g,c,k,I,J;_.r(function(q){if(q.nextAddress==1)return q.yield(_.t4(),2);g=q.yieldResult;if((c=g)==null||!c.removeCueRange)return St(),q.return();k=_.w(e.timings);for(I=k.next();!I.done;I=k.next())J=I.value,g.removeCueRange(e.uniqueId+"-"+J);_.Uh(q)})};
qAC=function(){var e,g,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(_.t4(),2);e=k.yieldResult;if((g=e)==null||!g.getPlayerState)return St(),k.return();c=e.getPlayerState();return k.return(c===2)})};
St=function(){_.mN(new _.E2("Smartimation player does not exist or is corrupted"))};
LTv=function(){try{var e;return(e=window.CSS)!=null&&e.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(g){return _.mN(new _.E2("Smartimation CSS.supports threw an error")),!1}};
bNK=function(e,g,c,k,I){var J=e.playlistId?rJv:a8p;g=g();c=c();I=!!e.videoId&&I()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.cL(g))return nwV({data:e,actionType:J,disabled:I},c);if(e.videoId&&k())return RJA({data:e,actionType:J,disabled:I});switch(g){case "TRANSFER_STATE_UNKNOWN":return RJA({data:e,actionType:J,disabled:I});case "TRANSFER_STATE_FAILED":return e.videoId?Ewv({data:e,actionType:J,disabled:I}):WTg({data:e,actionType:J,disabled:I});case "TRANSFER_STATE_COMPLETE":return WTg({data:e,
actionType:J,disabled:I});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return nwV({data:e,actionType:J,disabled:I},c);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return e.videoId?Ewv({data:e,actionType:J,disabled:I}):RJA({data:e,actionType:J,disabled:I});default:return RJA({data:e,actionType:J,disabled:I})}};
hJC=function(e,g){var c=e.onTapCommand,k=_.WT(c);if(e.videoId&&_.x(k,_.yF))return _.x(k,_.yF).action=g,c;e.playlistId&&_.x(k,_.Kx)&&(_.x(k,_.Kx).action=g);return c};
RJA=function(e){var g=e.data;var c=e.actionType;e=e.disabled;return{text:XSg,iconType:"OFFLINE_DOWNLOAD",onTap:hJC(g,c.ACTION_ADD),disabled:e}};
nwV=function(e,g){var c=e.data;var k=e.actionType;e=e.disabled;var I="OFFLINE_DOWNLOAD";g>=0&&g<=.1?I="OFFLINE_DOWNLOADING_ZERO":g>.1&&g<=.3?I="OFFLINE_DOWNLOADING_TWENTY":g>.3&&g<=.5?I="OFFLINE_DOWNLOADING_FORTY":g>.5&&g<=.7?I="OFFLINE_DOWNLOADING_SIXTY":g>.7&&g<1?I="OFFLINE_DOWNLOADING_EIGHTY":g===1&&(I="OFFLINE_PIN");return{text:GQv,iconType:I,onTap:hJC(c,k.ACTION_REMOVE_WITH_PROMPT),disabled:e}};
WTg=function(e){var g=e.data;var c=e.actionType;e=e.disabled;return{text:xXA,iconType:"OFFLINE_PIN",onTap:hJC(g,c.ACTION_REMOVE_WITH_PROMPT),disabled:e}};
Ewv=function(e){var g=e.data;var c=e.actionType;e=e.disabled;return{text:DXp,iconType:"OFFLINE_DOWNLOAD",onTap:hJC(g,c.ACTION_RETRY),disabled:e}};
_.O1=function(e,g){var c=ojC();return _.xF(function(){c();return t7e(e,[_.ds(g)||""])},{debugName:"LUZslf"},"Z105t")};
$Xt=function(e){var g=_.O1(_.hw,function(){return e().videoId}),c=_.O1(_.Xi,function(){return e().playlistId});
return function(){return e().videoId?g:e().playlistId?c:_.w(_.Wa("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
YAt=function(e){var g=_.O1(Gt,function(){return e().videoId}),c=_.O1(_.QGz,function(){return e().playlistId});
return function(){return e().videoId?g:e().playlistId?c:_.w(_.Wa(0,void 0,"K4tgOc")).next().value}};
f8A=function(e){var g=_.O1(_.yzv,function(){return e().videoId});
return function(){return e().videoId?g:_.w(_.Wa(!1,void 0,"Oaxwcf")).next().value}};
jOq=function(e){var g=_.O1(Z3q,function(){return e().videoId});
return function(){return e().videoId?g:_.w(_.Wa("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
iNW=function(){return{}};
_.l8C=function(e,g,c){return{submitForm:function(){var k,I,J,q;return _.r(function(L){if(L.nextAddress==1){k=Pze(e());if(!k)return L.return();if(k.onSubmit)return mXv(g),k.onSubmit(),mXv(c),L.return();if(!k.submitConfig||!k.formData)return L.jumpTo(0);k.disableDuringSubmission&&pSe(e(),!0);mXv(g);return L.yield(T_A(k.submitConfig,k.formData()),3)}I=L.yieldResult;mXv(c);if(((J=I)==null?0:J.submitResult)&&((q=k)==null?0:q.onSubmitResult))k.onSubmitResult(I.submitResult);k.disableDuringSubmission&&pSe(e(),
!1);return L.return()})},
isValid:function(){var k=Pze(e());if(k){var I;return!((I=k.isValid)==null||!I.call(k))}return!0},
isSubmitting:function(){var k,I;return!!((k=Pze(e()))==null?0:(I=k.isSubmitting)==null?0:I.call(k))}}};
_.MH=function(){if(!AJq){var e=_.w(_.Wa(new Map,void 0,"Y1XnBc"));AJq=e.next().value;sO8=e.next().value}return AJq};
_.FTC=function(e){sO8(new Map(e))};
Pze=function(e){if(e)return _.MH()().get(e)};
T_A=function(e,g){var c;return _.r(function(k){return k.nextAddress==1?g?(c=_.Ss().resolve(_.NN(uuv)))&&e.submitId?k.yield(c.submitForm(e.submitId,g,dX8,e.params,e.clickTrackingParams),2):k.return(Promise.reject(Error("Ch"))):k.return(Promise.reject(Error("Bh"))):k.return(k.yieldResult)})};
pSe=function(e,g){if(e){var c=_.MH();c().set(e,Object.assign({},c().get(e),{isSubmitting:function(){return g}}));
_.FTC(c())}};
mXv=function(e){if(e){var g=_.Ss().resolve(_.xk);g&&(e=_.WT(e()))&&g.resolveCommand(e)}};
QOW=function(e,g){g=g===void 0?{shouldPersist:!0}:g;return{useUpdatableData:function(c,k){var I=_.xF(function(){return e(c())},void 0,"Gmrblb"),J=zJv(c,I,k,g);
_.AV(function(){if(I()!=null){HNz.set(I(),J);var q=I();_.sX(function(){HNz.delete(q)})}},"j4hx9b");
return J},
getData:function(c){var k;return(k=HNz.get(e(c)))==null?void 0:k[0]()},
updateData:function(c,k){c=e(c);c=HNz.get(c);if(!c)return!1;var I=_.w(c);c=I.next().value;I=I.next().value;k=k(c());I(k);return!0}}};
zJv=function(e,g,c,k){k=k===void 0?{}:k;var I=_.w(_.uF(function(){var L=e(),n=g();return UXz(L,n,c,k)})),J=I.next().value,q=I.next().value;
return[J,function(L){q(L);var n=g();if(k.shouldPersist&&n!=null){var R,W=(R=c==null?void 0:c.map(function(b){return b()}))!=null?R:[];
_.Cx.set(n,[L,W])}}]};
UXz=function(e,g,c,k){k=k===void 0?{}:k;if(g==null||!k.shouldPersist)return e;k=_.Cx.get(g);if(!k)return e;var I=_.w(k);k=I.next().value;var J=I.next().value,q;I=(q=c==null?void 0:c.map(function(L){return L()}))!=null?q:[];
if((J==null?0:J.length)&&(c==null?0:c.length)&&I.some(function(L,n){return L!==J[n]}))return _.Cx.remove(g),e;
(c==null?0:c.length)&&_.Cx.set(g,[k,I]);return k};
ZNK=function(e){var g=_.w(_.Wa(!0,void 0,"bKtO6d")),c=g.next().value;g=g.next().value;return ow6(g,function(){var k=WV(e.children());return _.a(_.E,{cond:c,then:function(){return k},
else:e.fallback})})};
ow6=function(e,g){var c=V8e,k=0;V8e={addDep:function(){k++;Dc(function(){e(!1)})},
removeDep:function(){--k===0&&Dc(function(){e(!0)})}};
try{return g()}finally{V8e=c}};
_.eS=function(e){var g=t8g(e),c=g.data,k=g.mapping,I=g.wrapper;g=g.pendingFallback;var J=function(){return B_A(_.ds(c))},q=function(){var L=J(),n=[];
L=_.w(L);for(var R=L.next();!R.done;R=L.next()){var W=void 0;R=R.value;var b=void 0;for(W in R)if(!(!R).hasOwnProperty(W)){b=W;break}(W=b)&&n.push(W)}return n};
return e.data?_.a(ZNK,{fallback:g},function(){return _.a(_.Yz,{each:q},function(L,n){var R=I?function(D){return I(function(){return k[L](D,n)},W,n)}:function(D){return k[L](D,n)};
R.debugName||(R.debugName=String(L));if(!k[String(L)])return document.createComment("");R.componentType!==YF&&N_g(String(L));var W=SAt(J,L,n);if(_.G("web_add_microtask_to_stamper")&&!yJe.has(String(L))){var b=_.w(_.Wa(!1,void 0,"afb1md")),h=b.next().value,X=b.next().value;Promise.resolve().then(function(){yJe.add(String(L));X(!0)});
return _.a(_.E,{cond:h,then:function(){return _.a(R,{data:W})}})}return _.a(R,{data:W})})}):_.a(_.es,null)};
t8g=function(e){var g=e.targetId||KTU(e.children);if(!e.data||!g)return Object.assign({},e,{mapping:e.children});var c="stamper-"+ONK++,k=function(){var L;return(L=typeof e.targetId==="function"?e.targetId(c):e.targetId)!=null?L:c};
g=_.w(M8C(function(){var L=B_A(e.data());L.targetId=k;return L})).next().value;
var I=Object.assign({},(_.Ss().resolve(_.NN(Czz))||{}).replaceableMapping,e.children);if(e.replacementWrapper){var J=I.notificationTextRenderer,q=I.notificationMultiActionRenderer;J&&(I.notificationTextRenderer=function(L,n){return e.replacementWrapper(J({data:L.data},n))});
q&&(I.notificationMultiActionRenderer=function(L,n){return e.replacementWrapper(q({data:L.data},n))})}return Object.assign({},e,{data:g,
mapping:I,wrapper:function(L,n,R){return fNp({targetId:k,stamperIndex:R},e.wrapper?function(){return e.wrapper(L,n,R)}:L)}})};
SAt=function(e,g,c){var k;return _.xF(function(){var I=e()[c()];if(I)k=I[g];else return _.mN(new _.E2("Stamper failed to find "+String(g)+" at index "+c()+" of data array of length "+(e().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),k;return I[g]},void 0,"Su9U8")};
KTU=function(e){e=_.w(Object.keys(e));for(var g=e.next();!g.done;g=e.next())if(g=g.value,eWC.includes(g)||g$e.includes(g)||c1A.includes(g))return!0;return!1};
B_A=function(e){return e?Array.isArray(e)&&e instanceof Array?e:[e]:[]};
N_g=function(e){if(_.G("web_enable_renderer_logger")){var g;(g=_.Ss().resolve(_.NN(k$v)))!=null&&g.loggingEnabled&&!g.ids.has(e)&&g.ids.add(e)}};
I$C=function(){var e,g;return(g=(e=_.Ss().resolve(_.NN(_.gb)))==null?void 0:e())!=null?g:!1};
v$g=function(e,g){e=e===void 0?J1z:e;switch(g.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},e,{isOpen:g.payload});default:return e}};
q0v=function(e,g){e=e===void 0?w_8:e;switch(g.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},e,{isAllowed:g.payload});default:return e}};
r1V=function(e,g){e=e===void 0?Llp:e;switch(g.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},e,{errorMessage:g.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},e,{title:g.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},e,{privacy:g.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},e,{isDisabled:g.payload});default:return e}};
n$8=function(e,g){e=e===void 0?a$U:e;switch(g.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},e,{isOpen:g.payload});default:return e}};
E$8=function(e,g){e=e===void 0?RWV:e;switch(g.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},e,{isFullscreen:g.payload});case "SET_NAVIGATION_BUTTON":var c=g.payload.targetId,k=Object.assign({},e.navigationButtons);k[c]=g.payload.button;return Object.assign({},e,{navigationButtons:k});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},e,{topPanelId:g.payload});case "SET_SECONDARY_HEADER":return c=g.payload.panelId,k=Object.assign({},e.secondaryHeader),k[c]=g.payload.secondaryHeader,
Object.assign({},e,{secondaryHeader:k});default:return e}};
X_e=function(){return xQ(Object.assign({},{voiceSearch:WDA,engagementPanel:E$8,bottomSheet:v$g,cinematicSetting:q0v,shorts:Y8p,drawerLayout:n$8,createPlaylist:r1V,locationCollection:WlC,reportChannel:b5C,reportForm:hWv},ffK))};
G$6=function(e,g){_.ft.addLowPriorityJob(function(){var c,k,I;return _.r(function(J){switch(J.nextAddress){case 1:return _.lj(J,2),J.yield(ORK(),4);case 4:return J.yield(fetch(e),5);case 5:return c=J.yieldResult,J.yield(c.json(),6);case 6:k=J.yieldResult;IH.set(e,k);requestAnimationFrame(function(){g(k)});
_.zn(J,0);break;case 2:I=_.Qb(J),_.mN(I),_.Uh(J)}})})};
xQC=function(e){var g={animationConfig:{},listeners:{}},c=function(){e(!0)};
g.listeners.data_failed=c;g.listeners.error=c;g.listeners.data_ready=function(){e(!1)};
return g};
Y0K=function(e){var g=e.model;var c=e.subscribed;var k=e.isOverlay;var I=e.element;var J=e.commandController;var q=e.notificationState;if(c){var L,n;var R=(g==null?void 0:(L=g.buttonStyle)==null?void 0:L.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:g==null?void 0:(n=g.unsubscribeButtonContent)==null?void 0:n.buttonText}else{var W;R=g==null?void 0:(W=g.subscribeButtonContent)==null?void 0:W.buttonText}a:{var b;switch(g==null?void 0:(b=g.buttonStyle)==
null?void 0:b.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":L="S";break a;default:L="M"}}a:if(k)k="overlay";else switch(g.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":k="overlay";break a;default:k="mono"}a:if(c)var h="tonal";else switch((h=g.buttonStyle)==null?void 0:h.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":h=
"tonal";break a;default:h="filled"}return{style:k,type:h,state:g.disableSubscribeButton?"disabled":"active",size:L,focused:e.focused,toggled:c,accessibilityLabel:DQ8(g,c,q),buttonText:R,iconPosition:g.disableNotificationBell?"none":"leading-trailing",onTap:$QW(g,c,I,J),disableTextEllipsis:!!e.disableTextEllipsis}};
$QW=function(e,g,c,k){return function(I){if(g){var J;var q=e.disableNotificationBell?_.WT(e==null?void 0:(J=e.unsubscribeButtonContent)==null?void 0:J.onTapCommand):_.WT(e==null?void 0:e.onShowSubscriptionOptions)}else{var L;q=_.WT(e==null?void 0:(L=e.subscribeButtonContent)==null?void 0:L.onTapCommand)}q&&OL(q,{form:{element:c==null?void 0:c.value},commandController:k});I.stopPropagation()}};
DQ8=function(e,g,c){if(g){if(e==null?0:e.disableNotificationBell){var k;return e==null?void 0:(k=e.unsubscribeButtonContent)==null?void 0:k.accessibilityText}switch(c){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var I;return e==null?void 0:(I=e.bellAccessibilityData)==null?void 0:I.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var J;return e==null?void 0:(J=e.bellAccessibilityData)==null?void 0:J.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var q;return e==null?void 0:(q=
e.bellAccessibilityData)==null?void 0:q.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var L;return e==null?void 0:(L=e.bellAccessibilityData)==null?void 0:L.disabledLabel;default:var n;return e==null?void 0:(n=e.unsubscribeButtonContent)==null?void 0:n.accessibilityText}}else{var R;return e==null?void 0:(R=e.subscribeButtonContent)==null?void 0:R.accessibilityText}};
f$V=function(e,g){return _.Nc(e.entities,"subscriptionStateEntity",g)};
jZ6=function(e,g){return _.Nc(e.entities,"subscriptionNotificationStateEntity",g)};
i5g=function(e,g){return _.Nc(e.entities,"upcomingEventReminderStateEntity",g)};
PRv=function(e,g){return _.Nc(e.entities,"commentEntityPayload",g)};
mQe=function(e,g){return _.Nc(e.entities,"engagementToolbarSurfaceEntityPayload",g)};
p_V=function(e,g){return _.Nc(e.entities,"triStateButtonStateEntityPayload",g)};
TnU=function(e,g){return _.Nc(e.entities,"commerceCartCheckoutButtonEntity",g)};
l$K=function(e,g){return _.Nc(e.entities,"commandEntity",g)};
A1t=function(e){if(e){switch(e){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":e="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":e="NOTIFICATIONS_OFF";break;default:e="NOTIFICATIONS_NONE"}return e}};
sZW=function(e,g,c){c.subscribed!==g&&((c=c.key)&&_.As(_.cY("subscriptionStateEntity",c,{key:c,subscribed:g})),e.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:g})),g||_.Z5(e,"yt-unsubscribe-action"))};
uf8=function(e){e=_.x(_.WT(e),_.ku);var g,c,k,I;return(I=_.x(e==null?void 0:(g=e.panelLoadingStrategy)==null?void 0:(c=g.inlineContent)==null?void 0:(k=c.sheetViewModel)==null?void 0:k.content,FlW))==null?void 0:I.listItems};
dQz=function(e,g){if(e.onShowSubscriptionOptions&&g&&(e=uf8(e.onShowSubscriptionOptions),e!=null&&e.length)){var c=A1t(g);e.forEach(function(k){k=_.x(k,_.IB);var I,J,q,L,n=k==null?void 0:(I=k.leadingImage)==null?void 0:(J=I.sources)==null?void 0:(q=J[0])==null?void 0:(L=q.clientResource)==null?void 0:L.imageName;k&&n&&(k.isSelected=n===c)})}};
zWt=function(e,g,c,k){g&&c?e.style.width=c+"px":!g&&k&&(e.style.width=k+"px")};
H5W=function(e,g,c){var k;(k=e.lottieEl)==null||k.goToAndPlay(0);var I;(I=g.lottieEl)==null||I.goToAndPlay(0);_.JC(_.ft,function(){var J;(J=c.lottieEl)==null||J.goToAndPlay(0)},300)};
QZg=function(e){return!(e==null||!e.iconName||(e==null?0:e.title))};
UQU=function(e,g,c,k){c&&_.ft.cancelJob(c);c=_.ft.addLowPriorityJob(function(){k(void 0)},5E3);
k(c);g&&e!==(g.likeStatus==="LIKE")&&g.key&&_.As(_.cY("likeStatusEntity",g.key,{key:g.key,likeStatus:e?"LIKE":"INDIFFERENT",hadUserInteraction:e}))};
_.o$K=function(e,g){return _.Nc(e.entities,"accountLinkStatusEntity",g)};
Z5A=function(e,g){return _.Nc(e.entities,"hatsSurveyEntity",g)};
VB6=function(e,g){return _.Nc(e.entities,"hatsSurveyStateEntity",g)};
tBV=function(e,g){return _.Nc(e.entities,"quantityIncrementerEntity",g)};
Bnp=function(e){switch(e){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
Nnq=function(e){switch(e){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}};
S0C=function(e){switch(e){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.Klq=function(e){var g=_.MN("web_generic_client_event_wait_period ",0);g||(g=3E5);var c=y1g.get(e);!_.G("enable_web_client_experiment_event_timeout_killswitch")&&c&&(0,_.yr)()-c<g||(y1g.set(e,(0,_.yr)()),_.Y2("genericClientExperimentEvent",{eventType:e}))};
_.O5C=function(e,g){var c,k,I,J;a:{var q=e.style;if(q===void 0)q=17;else switch(q){case "LIVE":q=18;break a;default:q=17}}return{type:q,text:g?e5A({seconds:g}):_.mp(e.text),accessibilityText:(c=e.text)==null?void 0:(k=c.accessibility)==null?void 0:(I=k.accessibilityData)==null?void 0:I.label,icon:(J=e.icon)==null?void 0:J.iconType}};
MBC=function(e){switch(e){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
CRq=function(e){if(!e)return"";var g,c=(g=_.Ss().resolve(_.NN(_.gb)))==null?void 0:g(),k;if(!c&&((k=e.vibrantColorPalette)==null?0:k.iconInactiveColor))return Wg(e.vibrantColorPalette.iconInactiveColor,"1");var I;return c&&((I=e.darkColorPalette)==null?0:I.iconInactiveColor)?Wg(e.darkColorPalette.iconInactiveColor,"1"):e.color?Wg(e.color,"1"):e.sampledThumbnailColor?(e=e.sampledThumbnailColor,"rgba("+e.red+","+e.green+","+e.blue+");"):""};
_.vY=function(e,g){if(!e.includes("DATE_PLACEHOLDER"))return e;var c=new Date(0);c.setUTCSeconds(g);return e.replace("DATE_PLACEHOLDER",eHg(c))};
gRv=function(e,g,c){return function(k){var I=e.command;I&&(OL(I,{form:{element:c}}),g([I],k))}};
kEq=function(e,g,c,k,I){return function(J){var q=cW6(e,g);q&&OL(q,{form:{element:c},commandController:k});I&&J.stopPropagation()}};
cW6=function(e,g){if(e.signInEndpoint&&!_.G("web_subscribe_sign_in_endpoint_killswitch"))return e.signInEndpoint;if(g){if(e.serviceEndpoints)return e.serviceEndpoints[1];if(e.onUnsubscribeEndpoints)return e.onUnsubscribeEndpoints[0]}else{if(e.serviceEndpoints)return e.serviceEndpoints[0];if(e.onSubscribeEndpoints)return e.onSubscribeEndpoints[0]}};
IVC=function(e,g){var c,k,I,J;g=g&&((c=e.unsubscribeAccessibility)==null?void 0:(k=c.accessibilityData)==null?void 0:k.label)||((I=e.subscribeAccessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label);return e.longSubscriberCountText?[g,_.mp(e.longSubscriberCountText)].filter(function(q){return q}).join(" "):g};
wb=function(e,g){return g||(e==null?0:e.isChannelDelegate)?"disabled":"active"};
JWU=function(e,g){var c;switch((c=e.style)==null?void 0:c.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:wb(e)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:wb(e)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:wb(e,!0)};case "OVERLAY":return g?{style:"overlay",type:"tonal",state:wb(e)}:{style:"overlay",type:"filled",state:wb(e)};default:return g?{style:"mono",type:"tonal",state:wb(e)}:{style:"mono",type:"filled",state:wb(e)}}};
_.qy=function(){for(var e=[],g=_.w(_.Mb.apply(0,arguments)),c=g.next();!c.done;c=g.next())if(c=c.value)if(typeof c==="string")e.push(c);else{c=_.w(Object.entries(c));for(var k=c.next();!k.done;k=c.next()){var I=_.w(k.value);k=I.next().value;(I=I.next().value)&&e.push(k)}}return e.join(" ")};
vRC=function(e){switch(e){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
wfp=function(e){switch(e){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
qrC=function(e,g){var c=e.map(function(k){return k.toString()});
return _.Ve(function(k){if(c.includes(k.key)){g&&k.preventDefault();var I;(I=k.currentTarget)==null||I.click()}})};
_.LV=function(){return qrC(["Enter"])};
_.LfW=function(){return qrC(["Enter"," "],!0)};
_.rb=function(e){if(e.composedPath)return e.composedPath();if(!e.__composedPath){for(var g=[],c=e.target;c;)g.push(c),c=c.parentNode;g.push(window);e.__composedPath=g}return e.__composedPath};
_.aB=function(e,g,c){e=_.w(e);for(var k=e.next();!k.done;k=e.next()){k=k.value;if(k===g)break;for(var I=_.w(c),J=I.next();!J.done;J=I.next())if(J=J.value,k.tagName===J||k.role==="button"&&J==="BUTTON")return!0}return!1};
aV8=function(e,g){var c,k=(c=g.observer)!=null?c:_.Ss().resolve(t2);if(e){c=rWe(e);var I=[];g.showOption&&I.push(k.observe(e,function(){g.visibilityCallback(!0,e)},g.showOption));
g.hideOption&&I.push(k.observe(e,function(){g.visibilityCallback(!1,e)},g.hideOption));
g.prescanOption&&g.prescanCallback&&I.push(k.observe(e,function(){g.prescanCallback()},g.prescanOption));
var J;c.visibilityMonitorKeys=((J=c.visibilityMonitorKeys)!=null?J:[]).concat(I)}};
rWe=function(e){var g;return(g=e.polymerController)!=null?g:e};
_.RB=function(e){return!!_.nV(e)};
_.EQ=function(e,g,c,k,I){return function(J){var q=YWA();_.AV(function(){if(J){nRC(J,e(),I);var L=RHq(J,e(),g,c,k,q);_.sX(L)}},"lrewVd")}};
nRC=function(e,g,c){var k=ERe(g),I=Wfe(g),J=k&&GWv,q=I&&Xpg;(k||I)&&aV8(e,{visibilityCallback:function(L){var n=_.Ss().resolve(_.xk);L&&k?(n.resolveCommand(k,{form:{element:c?e:void 0},disableClickTracking:!0}),k=ERe(g)):!L&&I&&(n.resolveCommand(I,{form:{element:c?e:void 0},disableClickTracking:!0}),I=Wfe(g))},
showOption:J,hideOption:q})};
RHq=function(e,g,c,k,I,J){var q=new Map;if(g=_.nV(g)){var L;e=(k==null?void 0:(L=k.onTap)==null?void 0:L.value)||e;c=blz(g,e,c==null?void 0:c.onTap,I,J);e.addEventListener("click",c);q.set("click",c)}return function(){for(var n=_.w(q),R=n.next();!R.done;R=n.next()){var W=_.w(R.value);R=W.next().value;W=W.next().value;e.removeEventListener(R,W)}}};
_.nV=function(e){var g;return(e=(g=_.x(e,_.WY))==null?void 0:g.onTap)&&_.WT(e)};
ERe=function(e){var g;return(e=(g=_.x(e,_.WY))==null?void 0:g.onVisible)&&_.WT(e)};
Wfe=function(e){var g;return(e=(g=_.x(e,_.WY))==null?void 0:g.onHidden)&&_.WT(e)};
blz=function(e,g,c,k,I){var J=function(L){_.Ss().resolve(_.xk).resolveCommand(e,L)},q=function(L){k&&_.aB(_.rb(L),g,k)||J(L.target?{form:{element:L.target,
sourceData:e,mutationContext:I}}:void 0)};
c&&(q=function(L){c(L,J)});
return q};
hHe=function(e){switch(e){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}};
Xfe=function(e){var g=e.numAvatarsInCluster;switch(e.clusterSize){case "small":return g===2?22:18;case "40":return g===2?24:22;default:return g===2?24:20}};
GEp=function(e,g){return function(c){var k=Object.keys(g);_.AV(function(){if(e!=null&&e()){for(var I=_.w(k),J=I.next();!J.done;J=I.next())J=J.value,c.addEventListener(J,g[J]);_.sX(function(){for(var q=_.w(k),L=q.next();!L.done;L=q.next())L=L.value,c.removeEventListener(L,g[L])})}},"bXZGfe")}};
x46=function(e){switch(Xfe(e)){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""}};
D4q=function(e){switch(e){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""}};
$4U=function(e){switch(Xfe(e)){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""}};
YrV=function(e){switch(e){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""}};
fV8=function(e){switch(e){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}};
jkg=function(e){return e==="medium"||e==="48"||e==="large"||e==="extra-large"||e==="extra-extra-large"||e==="giant"};
ilq=function(e){return!!((e==null?0:e.includes(3))||(e==null?0:e.includes(5)))};
m4z=function(e){var g=e.data;return{size:Pxe(g.avatarImageSize),type:g.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:e.onTap,decorations:e.decorations||[],badgeText:e.badgeText,accessibilityText:e.accessibilityText,avatarButtonCustomClassName:e.avatarButtonCustomClassName,clusterLayoutConfig:e.clusterLayoutConfig}};
Pxe=function(e){switch(e){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"}};
pfA=function(e){switch(e){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}};
TAt=function(e){switch(e){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
lVC=function(e){var g=e.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",c,k=e.avatars&&e.avatars.length>0?(c=_.x(e.avatars[0],_.bD))==null?void 0:c.avatarImageSize:"AVATAR_SIZE_UNKNOWN";c=pfA(k)||0;if(g){var I,J=(I=e.avatarClusterSize)!=null?I:"AVATAR_SIZE_M";g=pfA(J);var q,L,n=Math.min((L=(q=e.avatars)==null?void 0:q.length)!=null?L:0,4),R;return{avatars:((R=e.avatars)==null?void 0:R.slice(0,4))||[],avatarSizeInPx:c,avatarStackStyle:{width:g+"px",height:g+"px",position:"relative"},avatarStyle:function(b){var h=
Xfe({clusterSize:Pxe(J),numAvatarsInCluster:n,avatarIndex:b});var X=pfA(J);n===3&&b===2?(X=(X-h)/2,X=(_.uo("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*X):X=void 0;return{position:"absolute",top:n===2&&b===1||n===3&&b===2||n===4&&b>=2?"0":void 0,bottom:n===2&&b===0||n>2&&b<2?"0":void 0,left:n===2&&b===1||n>2&&(b===1||b===3)?"0":void 0,right:n<=3&&b===0||n===4&&(b===0||b===2)?"0":void 0,transform:X?"translateX("+X+"px)":void 0,width:h+"px",height:h+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(b){return{clusterSize:Pxe(e.avatarClusterSize),numAvatarsInCluster:n,avatarIndex:b}},
avatarButtonCustomClassName:void 0}}var W;return{avatars:((W=e.avatars)==null?void 0:W.slice())||[],avatarSizeInPx:c,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:TAt(k),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
AWg=function(e,g,c){return function(){OL(e,{form:{element:g},commandController:c})}};
skC=function(e){switch(e){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
FfA=function(e){switch(e){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
utp=function(e){if("accessibilityText"in e)return e.accessibilityText||"";if("title"in e){var g,c,k;return((g=e.title)==null?void 0:(c=g.accessibility)==null?void 0:(k=c.accessibilityData)==null?void 0:k.label)||""}if("accessibility"in e){var I,J;return((I=e.accessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label)||""}return""};
d4g=function(e){return"inlinePlayerData"in e};
hC=function(e){return new zHq(e)};
HlA=function(e){switch(e){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"}};
Qkv=function(e){switch(e){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;case "BADGE_TIMELY":return 5;default:return 0}};
U4W=function(e){switch(e){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}};
oRC=function(e){return function(g){e&&(e.thumbnailElRef=g.thumbnailElRef,e.thumbnail=g.thumbnail,e.thumbnailOverlays=g.thumbnailOverlays,e.thumbnailSize=g.thumbnailSize)}};
Zlq=function(e){switch(e){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
tCg=function(e){var g=_.w(_.Wa(!1,void 0,"E6wDDe")),c=g.next().value,k=g.next().value;_.lo(function(){var I=e==null?void 0:e();if(I){var J=_.Ss().resolve(_.NN(VCp));if(J){var q={triggeringElement:I,onDwellTriggeredFn:function(){k(!0)},
onDwellEndFn:function(){k(!1)}};
J.registerElement(q);_.sX(function(){_.XJ(J,q)})}}});
return c};
BAK=function(e){if(e.querySelector("img")){var g=e.querySelector("img");g.addEventListener("error",function(){idC(g.src).then(function(c){(c=_.Ox(c).toString())?g.src=c:g.removeAttribute("src")}).catch(function(){g.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
NAp=function(e,g,c){c?c(g):_.GF(g,e.target?{form:{element:e.target}}:void 0)};
_.GP=function(e,g,c,k){return function(I){_.AV(function(){function J(W){W=W.composedPath();W=_.w(W);for(var b=W.next();!b.done;b=W.next()){b=b.value;if(b===I)break;if(b.className.indexOf("HostIsClickableAdComponent")>=0||b.tagName==="A".toString()||b.tagName==="BUTTON".toString())return!0}return!1}
var q=new Map,L,n=(L=e())==null?void 0:L.onTap;if(n){L=function(W){J(W)||NAp(W,n,g)};
var R=function(W){J(W)||W.key!=="Enter"||NAp(W,n,g)};
(c==null?0:c())||_.G("enable_web_home_top_landscape_image_layout_level_click")?(I.addEventListener("tap",L),q.set("tap",L)):(I.addEventListener("click",L),q.set("click",L));if(k==null?0:k())I.addEventListener("keydown",R),q.set("keydown",R)}_.sX(function(){for(var W=_.w(q),b=W.next();!b.done;b=W.next()){var h=_.w(b.value);b=h.next().value;h=h.next().value;I.removeEventListener(b,h)}})},"D7XqOc")}};
Sre=function(e,g){var c,k=(c=e.interaction)==null?void 0:c.onTap;if(e=_.hb({elementsCommand:k,forceNewState:!0,skipOnClick:!0}))return e.onclick=function(I){cmv(I)&&(I.preventDefault(),k&&NAp(I,k,g))},X6(e)?e:void 0};
yW8=function(e){switch(e){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Kf8=function(e){switch(e){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
Ol8=function(e){switch(e){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"}};
_.MCv=function(e){return _.G("rich_grid_enable_dynamic_offset")&&e?Math.max((e-_.MN("rich_grid_dynamic_offset_anchor_width",1300))/100*_.MN("rich_grid_dynamic_offset_offset_per_100",10),_.MN("rich_grid_dynamic_offset_lower_bound",-60)):0};
Cx8=function(e,g){switch(g){case 4:return 16;case 1:return e<528?16:e<1024?32:48;case 2:return(e>=528?16:8)/2;case 3:return(e<528?16:e<1024?32:48)+(e>=528?16:8)/2;default:return 0}};
e7v=function(e){var g=e.originalContainerWidth;var c=e.sizing;var k=e.standardUnit;if(e.isCompactList&&g<528)return 1;switch(c){case "STANDARD":return k;case "COMPACT":return k+1;case "EXTRA_COMPACT":return _.G("web_responsive_extra_compact_2x")?k*2:_.G("web_responsive_current")?k===1?2:k%2===0?k/2*3:k+2:k<4?k*2:Math.ceil(k*3/2);case "MINI":return k>1?k*2:3;default:return k}};
cev=function(e){var g=e.containerWidth;var c=e.peek;var k=e.gutter;var I=e.numItems;e=e.ignoreMaxWidthLimit;g=c?Math.max((g-c-k*I)/I,0):Math.max((g-k*(I-1))/I,0);return e?g:Math.min(g,ggt)};
_.xu=function(e){var g=e.containerWidth;var c=e.hasPeek;var k=e.sizing;var I=e.marginSettings;var J=e.isCompactList;var q=e.enableFullBleedForSingleCol;var L=e.standardUnitMinWidth;k=k||"STANDARD";c=!!c;e=g>=528?16:8;var n=c?g>=528?48:24:0;I=Cx8(g,I);var R=Math.max(g-I*2,0);L=_.G("kevlar_disable_min_width_override")?void 0:L;L=Math.min(Math.max(Math.floor((R-n+e)/((L!=null?L:kRe)+_.MCv(g)+e)),1),6);var W=(q=!!q&&L===1)||L===1&&k!=="STANDARD";c=c||W?R:Math.min(R,(ggt+e)*L-e);k=e7v({originalContainerWidth:g,
sizing:k,standardUnit:L,isCompactList:J});return{itemWidth:cev({containerWidth:c,peek:n,gutter:e,numItems:k,ignoreMaxWidthLimit:W}),gutter:e,maxContainerWidth:c,numItems:k,margin:q?0:I,contentMargin:Cx8(g,1),typographyBump:cev({containerWidth:c,peek:n,gutter:e,numItems:L,ignoreMaxWidthLimit:W})>400&&!(J&&g<528),standardUnit:L}};
D9=function(e){switch(e){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.IDg=function(e){if(e){var g;if((g=e.responsiveContainerConfiguration)==null?0:g.responsiveSize)return D9(e.responsiveContainerConfiguration.responsiveSize);if(e.layoutSizing)switch(e.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"}}};
Jet=function(e){if(e.fullbleed)return 1;switch(e.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
ree=function(e,g,c,k,I,J,q,L,n){a:if(e===4&&k==="LOCKUP_CONTENT_TYPE_SOURCE")var R=1;else switch(e){case 3:R=1;break a;default:R=0}var W=vgC(e,k);a:switch(e){case 4:J=!!(J&&J<100);break a;default:J=!1}a:switch(e){case 3:case 4:var b=k==="LOCKUP_CONTENT_TYPE_CHANNEL"||k==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:b=!1}return{metadataOnThumbnail:W,isOverlay:L||W,isCard:wip(k,q),sizing:g!=null?g:"STANDARD",typographyBump:c!=null?c:!1,isTiny:J,isCentered:b,isCollection:qZC(k),arrangement:R,addMarginForFullbleed:e===
1&&k!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:e===1&&k==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:L4z(k,I,n),disableRounding:e===5||wip(k,q)||e===1&&k==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:qZC(k)?2:0,useLegacyTypography:!(n==null||!n.useLegacyTypography),useRichGridLegacyTypography:!(n==null||!n.useRichGridLegacyTypography)&&!_.G("web_enable_typography_bump"),compactMetadata:R===0&&k==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:n==null?void 0:n.onFocusEffect,titleMaxLines:k==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
qZC=function(e){switch(e){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
wip=function(e,g){if(g&&e==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(e){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
vgC=function(e,g){if(g==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(e){case 5:return!0;case 4:return!1;default:return!1}};
L4z=function(e,g,c){if(g&&(c==null||!c.alwaysRespectPodcastShowAspectRatio||e!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(e){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}};
_.$u=function(e){if(e){var g;return((g=_.Ss().resolve(_.NN(_.gb)))==null?0:g())?e.darkThemeImage:e.image}};
R7K=function(e,g,c,k,I,J){if(I&&J&&g==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:I,height:J};if(!c)return{};I=c.size;c=c.allowFullWidth;if(g==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&c)return{fullWidth:!0};if(I===void 0)return{};switch(e){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:I,height:I};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:I,height:1/aDK*I};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:I*
ngg,height:I};default:return(k==null?0:k.height)&&(k==null?0:k.width)?k.width/k.height>1?{maxWidth:I*ngg}:{maxWidth:I}:{maxWidth:I}}};
Egv=function(e){var g;return e&&((g=_.$u(e.themedImage))!=null?g:e.image)};
W4K=function(e){var g;return e==null?void 0:(g=e.sources)==null?void 0:g[0]};
bp8=function(e){switch(e){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.h7p=function(e){if(e)return"content-id-"+e};
Xiq=function(e){switch(e.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"}}};
GRA=function(e){var g=_.Yu.currentPageSubTypeSelector(_.lF().getState())||"";return e?e+g:""};
x3v=function(e){switch(e){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
$3W=function(e){var g=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],c=_.w(_.Wa(void 0,void 0,"JrqNsb")),k=c.next().value,I=c.next().value,J=_.w(_.Wa(void 0,void 0,"rWytse"));c=J.next().value;var q=J.next().value;J=_.w(_.Wa(void 0,void 0,"DHRqxe"));var L=J.next().value,n=J.next().value;return{touchFeedbackEvents:{pointerUpEvent:k,pointerDownEvent:c,pointerLeaveEvent:L},touchFeedbackOnPointerUp:_.Ve(function(R){D3t(_.rb(R),g)||(I(R),q(void 0),n(void 0))}),
touchFeedbackOnPointerDown:_.Ve(function(R){e==null||e(R);D3t(_.rb(R),g)||(q(R),I(void 0),n(void 0))}),
touchFeedbackOnPointerLeave:_.Ve(function(R){D3t(_.rb(R),g)||(n(R),q(void 0),I(void 0))})}};
D3t=function(e,g){g=g===void 0?[]:g;g=[].concat(_.KY(g),["BUTTON".toString()]);e=_.w(e);for(var c=e.next();!c.done;c=e.next()){c=c.value;for(var k=_.w(g),I=k.next();!I.done;I=k.next())if(c.tagName===I.value)return!0}return!1};
YZt=function(e){switch(e){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"}};
fDC=function(e){return e.scrollHeight-e.offsetHeight>1};
jSz=function(e,g){var c;return fv(e,((c=e.content)==null?void 0:c.length)||0,!g)};
m3C=function(e,g,c,k,I,J){if(!g||ipV){var q;return fv(e,((q=e.content)==null?void 0:q.length)||0,!0)}g=k.value;if(!c.value||!g||!e.content)return e;c=0;k=e.content.length;q=0;PaW||(PaW=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var L=PaW;for(I=I*J*L;c<=k;)J=Math.floor(c+(k-c)/2),L=fv(e,J)||e,g.firstChild&&(g.firstChild.textContent=L.content),g.scrollHeight>I?k=J-1:(q=J,c=J+1);return fv(e,q)};
piz=function(e,g){var c,k;return(((c=e.content)==null?void 0:c.length)||0)>(((k=g.content)==null?void 0:k.length)||0)};
T8g=function(e,g,c,k,I,J){var q=_.io("truncated-text-content"),L=_.io("truncated-text-content"),n=_.io("button"),R=_.io("button"),W=_.io("button"),b=_.Ss().resolve(_.fV),h=_.w(_.uF(function(){return jSz(e(),I())})),X=h.next().value,D=h.next().value;
h=_.w(_.uF(function(){return piz(e(),X())}));
var f=h.next().value,l=h.next().value,A=null;_.AV(function(){function d(){if(q.value&&n.value&&W.value){var Q=J()?e():m3C(e(),I(),q,L,g(),c());D(Q);requestAnimationFrame(function(){if(q.value&&n.value&&W.value){var y=fDC(q.value)||piz(e(),Q);l(y);if(!k()){var O=fDC(q.value),Jq=c(),LC=q.value,bW=n.value,RA=W.value,Xg=b==="rtl";if(LC&&bW){var Fg=bW.offsetLeft;Xg&&(Fg=LC.offsetWidth-bW.offsetWidth-bW.offsetLeft);if(y){y=bW.offsetWidth;bW=LC.offsetWidth;var oA=O?bW-y-70:Fg-70;Jq="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Jq+"rem,\n      #000 "+Jq+"rem,\n      #000 100%), linear-gradient(\n      to "+((Xg?"left":"right")+",\n      #000 0px,\n      #000 "+oA+"px,\n      transparent "+(O?bW-y:oA+70)+"px)");LC.style.setProperty("-webkit-mask-image",Jq);LC.style.setProperty("mask-image",Jq)}else LC.style.setProperty("-webkit-mask-image",""),LC.style.setProperty("mask-image","");O?Xg?(RA.style.setProperty("left","0"),RA.style.setProperty("right","unset")):(RA.style.setProperty("left",""),RA.style.setProperty("right","0")):
Xg?(RA.style.setProperty("left","unset"),RA.style.setProperty("right",Fg+"px")):(RA.style.setProperty("left",Fg+"px"),RA.style.setProperty("right","unset"))}}}})}}
var S,V;(S=A)==null||(V=S.stop)==null||V.call(S);S=new _.BT(d,17);d();A=S},"KjwIxd");
_.lo(function(){D(jSz(e(),I()));l(piz(e(),X()));var d=function(){PaW=void 0;var V,Q;(V=A)==null||(Q=V.fire)==null||Q.call(V)};
if(window.ResizeObserver){var S=new ResizeObserver(d);S.observe(q.value);_.sX(function(){var V,Q;(V=A)==null||(Q=V.stop)==null||Q.call(V);S.disconnect()})}else window.addEventListener("resize",d),_.sX(function(){var V,Q;
(V=A)==null||(Q=V.stop)==null||Q.call(V);window.removeEventListener("resize",d)})});
return{isTruncated:f,displayText:X,contentRef:q,hiddenRef:L,placeholderTruncationTextRef:n,hiddenTruncationTextRef:R,truncationTextRef:W}};
lDW=function(e){return{content:e!=null?e:""}};
AeC=function(e){return _.WT(e.onTap)||_.nV(e.rendererContext)};
sSC=function(e){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:e.overflowMenuA11yLabel,onTap:function(g){g.preventDefault();g.stopPropagation();if(e.overflowMenuOnTap){var c=_.hb({elementsCommand:e.overflowMenuOnTap,forceNewState:!0});if(c==null?0:c.onclick)c.onclick(g)}}}};
_.jS=function(e,g,c,k,I){k=k===void 0?{}:k;if(!I||Math.random()<5E-4){g=g||null;c=c||null;e=e instanceof Error?e:new _.E2(e);if(e.args)for(var J=_.w(e.args),q=J.next();!q.done;q=J.next())q=q.value,q instanceof Object&&(k=Object.assign({},q,k));k.category="H5 Ads Control Flow";g&&(k.slot=g?"slot:  "+g.slotType:"");c&&(k.layout=c?"layout:  "+c.layoutType:"",k.layoutId=c.layoutId);I&&(k.known_error_aggressively_sampled=!0);e.args=[k];_.mN(e)}};
_.F4v=function(e,g){g=_.Aw(g);_.Z5(e,"yt-open-popup-action",[g,e])};
_.iD=function(e,g){_.F4v(e,_.PL(g))};
d36=function(e){if(!e)return"";if(uKq[e])return uKq[e];PY||(PY=_.C0("A"));PY.href!==e&&e0(PY,e);var g=PY.pathname;uKq[e]=g.startsWith("/")?g:"/"+g;return uKq[e]};
z7K=function(){var e=d36(window.location.href);if(e==="/")return"home";if(e.startsWith("/results"))return"search";if(e.startsWith("/watch"))return"watch";if(e.startsWith("/shorts"))return"shorts";if(e.startsWith("/hashtag"))return"hashtag";if(e.startsWith("/create_channel"))return"create_channel";if(e.startsWith("/@")||e.startsWith("/user/")||e.startsWith("/channel/"))return"channel";if(e.startsWith("/experiments"))return"experiments";if(e.startsWith("/sponsor_channel"))return"sponsorship";if(e.startsWith("/select_site"))return"settings";
if(e.startsWith("/locate"))return"locate";if(e.startsWith("/redeem"))return"redeem";if(e.startsWith("/musicpremium")||e.startsWith("/premium")||e.startsWith("/red"))return"premium";if(e.startsWith("/paid_memberships"))return"paid_memberships";if(e.startsWith("/oops"))return"oops";if(e.startsWith("/clip"))return"clip";var g;return(m3==null?void 0:(g=m3.response)==null?void 0:g.page)==="404"?"404":e.startsWith("/feed/history")?"history":e.startsWith("/feed/library")?"library":e.startsWith("/feed/subscriptions")?
"subscriptions":e.startsWith("/feed/trending")?"trending":e.startsWith("/feed/news_destination")?"news":e.startsWith("/playlist")?"playlist":e.startsWith("/minor_moment")?"minor_moment":e.startsWith("/playable/")||e.match("^/playables/(?!saved).")?"mini_app":e.startsWith("/playables")?"playables":e.startsWith("/create/live/join")?"open_in_app":e.startsWith("/feed/explore")?"explore":"browse"};
_.TP=function(){var e=m3==null?void 0:m3.response,g=e==null?void 0:e.endpoint;if(!g)return(e==null?void 0:e.page)==="watch"?"watch":z7K();var c;e=(c=_.x(g==null?void 0:g.commandMetadata,_.OM))==null?void 0:c.webPageType;c=!1;if(e&&!Hpq.includes(e))switch(e){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 k;return((k=_.x(g==null?void 0:g.commandMetadata,_.OM))==null?0:k.url)&&d36(_.x(g.commandMetadata,_.OM).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var I;return(g=(I=_.x(g,_.KU))==null?void 0:I.browseId)?QSW[g]||"browse":"browse";default:c=!0}if(_.x(g,_.pV)||_.x(g,U3C))return"sponsorship";I=d36(window.location.href);if(I.startsWith("/experiments"))return"experiments";if(I.startsWith("/create_channel"))return"create_channel";
if(_.x(g,_.uf)&&I.startsWith("/shorts"))return"shorts";if(_.x(g,_.uf)&&I.startsWith("/watch"))return"watch";c&&(g=new _.E2("Unsupported mWeb page type",{pathname:I,webPageType:e}),_.jW(g));return"browse"};
lD=function(e,g,c,k){return e&&g?e!==c||g!==k?(_.jS(Error("Lh"),void 0,void 0,{"stored-slot":e,"stored-layout":g,"latest-slot":c,"latest-layout":k}),!1):!0:!1};
ZpC=function(e,g,c){return e({targetId:g},function(k){return c.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},k,{contents:[c.continuationItems?_.x(c.continuationItems[0],ogp):{}]}):c.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},k,{header:c.continuationItems?c.continuationItems[0]:void 0}):Object.assign({},k,{contents:c.continuationItems?c.continuationItems:[]})})};
VTA=function(e,g,c,k){if(g=g.trackingParams){var I,J=(I=c.getScreenLayer)==null?void 0:I.call(c);c=_.EM(J);I=_.RC(J);if(c&&I){var q=_.Jb(g);_.G("combine_ve_grafts")?e.graftServerVe(g,I,J):_.Yn(c,I,q);k==null||k(q)}}};
B8U=function(e){var g;return((g=tTC.get(e))==null?void 0:g.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
yeq=function(e,g){var c={type:g.slotType,controlFlowManagerLayer:N8z.get(g.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};g.slotEntryTrigger&&(c.entryTriggerType=g.slotEntryTrigger.triggerType);g.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=g.slotPhysicalPosition);if(e){c.debugData={slotId:g.slotId};if(e=g.slotEntryTrigger)c.debugData.slotEntryTriggerData=SZC(e);e=g.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];e=_.w(e);for(var k=e.next();!k.done;k=e.next())c.debugData.fulfillmentTriggerData.push(SZC(k.value));
g=g.slotExpirationTriggers;c.debugData.expirationTriggerData=[];g=_.w(g);for(e=g.next();!e.done;e=g.next())c.debugData.expirationTriggerData.push(SZC(e.value))}return c};
SZC=function(e,g){var c={type:e.triggerType};g!=null&&(c.category=g);e.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=e.triggeringSlotId);e.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=e.triggeringLayoutId);return c};
K4q=function(e,g,c,k){g={opportunityType:g};e&&(k||c)&&(k=_.R4(k||[],function(I){return yeq(e,I)}),g.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},k.length>0?{slots:k}:{}));
return g};
OpU=function(e){return AC(e.opportunityAdapterMap).concat(AC(e.triggerAdapterMap)).concat(AC(e.fulfillmentAdapterFactoryMap)).concat(AC(e.slotAdapterFactoryMap)).concat(AC(e.layoutRenderingAdapterFactoryMap))};
AC=function(e){var g=[];e=_.w(e.values());for(var c=e.next();!c.done;c=e.next())c=c.value,c.isAdsControlFlowEventListener&&g.push(c);return g};
FJ=function(e){var g=e.slotId,c=e.slotType,k=e.slotPhysicalPosition;return g===void 0?new sQ("Cannot construct a slot due to the missing id.",{adSlotMetadata:e}):c===void 0?new sQ("Cannot construct a slot due to the missing type.",{adSlotMetadata:e}):k===void 0?new sQ("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:e}):{slotId:g,slotType:c,slotPhysicalPosition:k,managerLayer:"external",adSlotLoggingData:e.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new MTW}};
CaK=function(e){var g=e.layoutId,c=e.layoutType;return g===void 0?new uD("Cannot construct a layout due to the missing id.",{adLayoutMetadata:e}):c===void 0?new uD("Cannot construct a layout due to the missing type.",{adLayoutMetadata:e}):{layoutId:g,layoutType:c,managerLayer:"external",adLayoutLoggingData:e.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new MTW,interactionLoggingAdsClientData:{}}};
zP=function(e,g){if(g&&(e3V(g.viewableCommand)||e3V(g.endOfSessionCommand))){var c=gZV(g==null?void 0:g.viewableCommand);g=gZV(g==null?void 0:g.endOfSessionCommand);if(!db){var k=_.MN("custom_active_view_tos_timeout_ms");db=k>0&&k!==36E5?new cyz(kzq(),k):new cyz(kzq())}ITC(db,e);JyU(db,e,c,g)}};
HY=function(e){db&&ITC(db,e)};
kzq=function(){var e=_.uo("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(e==null?void 0:e.length)===2?e[1]:null};
e3V=function(e){e=_.WT(e);return!(e==null||!e.loggingUrls)&&e.loggingUrls.length>0};
gZV=function(e){if(!e)return[];var g=[],c,k;((k=(c=_.WT(e))==null?void 0:c.loggingUrls)!=null?k:[]).forEach(function(I){I.baseUrl&&g.push(I.baseUrl)});
return g};
vZ8=function(e){if(_.G("stop_av_measurement_on_detach"))return function(){HY(e)}};
wMe=function(e){return function(){_.G("stop_av_measurement_on_detach")&&HY(e)}};
qpA=function(e){if(_.G("stop_av_measurement_on_detach"))return function(){HY(e)}};
LLp=function(e){return e.shorts.isDesktopSmallWidth};
_.ryA=function(e){return e.shorts.isShortsActive};
_.aTp=function(e){return e.shorts.isWatchWhileMode};
_.QD=function(e){return e.shorts.isFullscreen};
_.UQ=function(e){return e.shorts.isShortsPipActive};
R3v=function(e){var g,c;if(e=(g=_.x(e.reelsAdCardButtoned,nZg))==null?void 0:(c=g.animatedRenderingConfig)==null?void 0:c.easeOutSeconds)return e+"s"};
WLV=function(e,g,c){return _.r(function(k){return k.return(new Promise(function(I){var J=new Image;J.onload=function(){I(new EZ6(e,g,c,J.naturalWidth,J.naturalHeight))};
J.src=c.toString()}))})};
beV=function(e,g){return Math.round(e/1E-5)===Math.round(g/1E-5)};
h36=function(e,g){return Math.round(e/1E-5)===Math.round(g/1E-5)};
XMq=function(e,g){return e.year===g.year&&e.month===g.month&&e.day===g.day};
Gzg=function(e,g){return e.year!==g.year?e.year<g.year:e.month!==g.month?e.month<g.month:e.day<g.day};
DK6=function(e){return e.day===xKt(e.year,e.month)?e.month===11?{year:e.year+1,month:0,day:1}:{year:e.year,month:e.month+1,day:1}:{year:e.year,month:e.month,day:e.day+1}};
$Kp=function(){var e=new Date,g={year:e.getFullYear(),month:e.getMonth(),day:e.getDate()};return{start:g,end:{year:e.getFullYear()+2,month:e.getMonth(),day:e.getDate()},selectedDate:DK6(g)}};
YpC=function(e){return(new im(2)).format(new Date(e.year,e.month,e.day))};
fTC=function(e){return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}};
jh8=function(e,g){e=(e+(Number(g.utcOffsetSec)+(new Date(e*1E3)).getTimezoneOffset()*60))*1E3;g=fTC(new Date(e));return{date:g,secondsSinceMidnight:Math.floor((e-(new Date(g.year,g.month,g.day)).getTime())/1E3)}};
ieU=function(e,g){g=g.months.findIndex(function(c){return c.year===e.year&&c.month===e.month});
return g>=0?g:void 0};
P$A=function(e){if(!e)return!1;try{if(e.host&&e.host.tagName==="YT-FORMATTED-STRING"&&e.host.id==="contenteditable-textarea"||e.nodeType===Node.ELEMENT_NODE&&e.tagName==="YTD-COMMENTBOX")return!0}catch(g){return!1}return P$A(e.parentNode)};
oB=function(e){return e?!(e.tagName!=="A"||!e.href||!e.classList.contains("yt-simple-endpoint")):!1};
mK8=function(e){return e?e.tagName==="IMG"&&e.classList.contains("emoji"):!1};
pMW=function(e,g,c){if(!e)return null;var k=oB(e);if(k&&c)return g=e.pathname.substring(e.pathname.indexOf("/channel/")+9),document.createTextNode("@"+g);if(k&&!c)return document.createTextNode("");if(mK8(e))return c=e.alt,e=e.dataset.emojiId,!e&&g&&(g=_.Z9(g,c))&&g.isCustomEmoji&&(e=g.emojiId),e?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+e+">"):document.createTextNode(c);k=e.cloneNode(!1);for(var I=0;I<e.childNodes.length;++I){var J=pMW(e.childNodes[I],g,c);J&&k.appendChild(J)}return k};
VD=function(e){return e?oB(e)?e:VD(e.lastChild):null};
Toq=function(e){return e?oB(e)?e:Toq(e.firstChild):null};
lT6=function(e){if(!e)return null;for(var g=e.previousSibling;g;)if(g.nodeType===Node.ELEMENT_NODE&&g.nodeName==="BR")g=g.previousSibling;else if(g.nodeType===Node.TEXT_NODE&&/\s+/.test(g.textContent))g=g.previousSibling;else break;(g=VD(g))?e=g:e=(e=e.parentNode)?VD(e.previousElementSibling):null;return e};
Ayz=function(e){if(!e)return null;for(var g=e.nextSibling;g;)if(g.nodeType===Node.ELEMENT_NODE&&g.nodeName==="BR")g=g.nextSibling;else if(g.nodeType===Node.TEXT_NODE&&/\s+/.test(g.textContent))g=g.nextSibling;else break;return(g=Toq(g))?g:Ayz(e.parentNode)};
shz=function(e){var g=_.gY(),c=g.JSC$11664_getStartNode();if(!P$A(c.parentNode))return null;g=g.JSC$11664_getStartOffset();if(c.nodeType===Node.TEXT_NODE){var k=_.Xm(c,oB);if(k){if(e&&g===0||!e&&g===c.length)return k}else{if(e&&g===c.length)return!c||c.nodeName==="BR"||c.nextElementSibling&&_.tC(c.nextElementSibling,"display")==="block"?null:Toq(c.nextElementSibling);if(!e&&g===0)return c?VD(c.previousElementSibling):null}}if(c.nodeType===Node.ELEMENT_NODE)if(e){if(0<=g&&g<c.childNodes.length)return Toq(c.childNodes[g])}else if(0<
g&&g<=c.childNodes.length)return VD(c.childNodes[g-1]);return null};
FLK=function(e,g,c){if(!e)return null;if(e.nodeType===Node.TEXT_NODE)if(c){var k=lT6(e);if(k&&!/^\s+\S/.test(e.wholeText.substr(0,g)))return k}else if((k=Ayz(e))&&!/\S\s+/.test(e.wholeText.substr(g,e.wholeText.length)))return k;return e.nodeType===Node.ELEMENT_NODE?c?lT6(e.childNodes[g]):Ayz(e.childNodes[g]):FLK(e.parentNode,g,c)};
uIg=function(e){if(e.hasChildNodes())switch(e.tagName){case "DIV":case "A":case "SPAN":var g="";for(e=e.firstChild;e;e=e.nextSibling)g+=uIg(e);return g;default:return""}else switch(e.nodeType){case 3:return e.textContent;default:return""}};
BY=function(e,g){return e.year===g.year&&e.month===g.month&&e.day===g.day};
Ny=function(e,g){return e.year!==g.year?e.year<g.year:e.month!==g.month?e.month<g.month:e.day<g.day};
dKv=function(e){return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}};
z3C=function(e){var g=dp6;g=g===void 0?dp6:g;g(new Date(e.year,e.month,e.day))};
SS=function(e){return dKv(new Date(Number(e.seconds)*1E3))};
HeK=function(e){return e.year!==void 0&&e.month!==void 0&&e.day!==void 0};
QhC=function(e){return e.start!==void 0&&e.end!==void 0};
UKW=function(e){return QhC(e)?e.start:e};
oZg=function(e){return QhC(e)?e.end:void 0};
VjC=function(e,g){for(var c=[],k=new Date(e.start.year,e.start.month);k.getFullYear()<e.end.year||k.getFullYear()===e.end.year&&k.getMonth()<=e.end.month;){var I=c,J=I.push,q=k.getFullYear(),L=k.getMonth(),n=e,R=g,W=void 0,b=[],h=Object.freeze({extraCssClass:"invisible"}),X=new Date(q,L),D=dKv(X);X=X.getDay();for(var f=dKv(new Date);D.month===L;){X!==ZeC&&W||(W=Array.from({length:7}).fill(h),b.push(W));var l={date:{year:q,month:L,day:D.day},extraCssClass:"",debugClass:""};l.extraCssClass=R(l.date,
D,f,n).trim();W[(X-ZeC+7)%7]=l;D=D.day===xKt(D.year,D.month)?D.month===11?{year:D.year+1,month:0,day:1}:{year:D.year,month:D.month+1,day:1}:{year:D.year,month:D.month,day:D.day+1};X=(X+1)%7}J.call(I,{weeks:b,monthLabel:yD.SHORTMONTHS[L]+" "+q,year:q,month:L,monthLabelExtraCssClass:b[0][2]===h?"shift-down-label":""});k.setMonth(k.getMonth()+1)}return c};
tjK=function(e,g){g=g.months.findIndex(function(c){return c.year===e.year&&c.month===e.month});
return g>=0?g:void 0};
NoA=function(e,g){a:{var c=c===void 0?[2,3]:c;c=_.w(c);for(var k=c.next();!k.done;k=c.next()){var I=new Date;if((new BoC(k.value)).parse(g,I,{validate:!0})){I.setHours(0,0,0,0);g=I;break a}}g=null}if(!g)return{isValid:!1,value:void 0};g=dKv(g);c=e.end;return Ny(g,e.start)||Ny(c,g)?{isValid:!1,value:void 0}:{isValid:!0,value:g}};
Mjz=function(e){var g=Sp6;g=g===void 0?yyW:g;var c=e.columnsToShow||[],k=KLz(e.columnDimensions,e.columnsToShow,e.leftFloatingColumns,g);return c.map(function(I,J){var q=e.columns[I];if(q===void 0)throw Error("Rh");var L=k?k[J]:"";var n=e.getCustomTooltip?e.getCustomTooltip(I,q.headerTooltipParagraphs):q.headerTooltipParagraphs;var R=OeU(e,I);return{type:I,index:J,style:L,classes:R,headerName:q.headerName||"",headerIcon:q.headerIcon,headerTooltipParagraphs:n||[],headerTooltipHelpContext:q.headerTooltipHelpContext,
sortOrders:q.sortOrders||[],selectionState:q.isSelectionCheckbox?e.selectionState:void 0}})};
OeU=function(e,g){var c=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],k=e.columns[g];if(k===void 0)return"";var I=c.includes("DEFAULTS")&&k.cssClass?[k.cssClass]:[];if(c.includes("SORTING")){k.sortOrders&&k.sortOrders.length&&I.push("sortable");if(e.sorting&&e.sorting.columnType===g)a:switch(e.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var J="column-sorted";break a;default:J=""}else J="";J&&I.push(J)}c.includes("FLOATING")&&(g=e.columnsToShow.indexOf(g),e.leftFloatingColumns&&g<e.leftFloatingColumns&&
I.push("floating-column"),e.leftFloatingColumns&&g===e.leftFloatingColumns-1&&I.push("last-floating-column"));c.includes("RIGHT_ALIGN")&&k.rightAlignHeader&&I.push("right-align");return I.filter(function(q){return q}).join(" ")};
KLz=function(e,g,c,k){c=c===void 0?0:c;k=k===void 0?yyW:k;if(e){var I=[],J=0;C$C(e,g,k).forEach(function(q,L){var n="min-width:"+q.minWidth+"px;padding-left:"+q.paddingLeft+"px;padding-right:"+q.paddingRight+"px;flex:"+q.flexGrow+" 0 "+q.minWidth+"px;";q.maxWidth!==Infinity&&(n=[n,"max-width:"+q.maxWidth+"px;"].join(""));J>0&&L<c&&(n=[n,"left:"+J+"px;"].join(""));I.push(n);J+=q.minWidth+q.paddingLeft+q.paddingRight});
return I}};
C$C=function(e,g,c){c=c===void 0?yyW:c;return g.map(function(k,I){k=e&&e[k]||{};var J=I===0?c.paddingLeftFirstColumn:c.padding;k.paddingLeft!==void 0&&(J=k.paddingLeft);I=I===g.length-1?c.paddingRightLastColumn:c.padding;k.paddingRight!==void 0&&(I=k.paddingRight);return{paddingLeft:J,paddingRight:I,minWidth:k.minWidth!==void 0?k.minWidth:c.minWidth,maxWidth:k.maxWidth!==void 0?k.maxWidth:c.maxWidth,flexGrow:k.flexGrow!==void 0?k.flexGrow:c.flexGrow}})};
enq=function(e){var g=e.reduce(function(k,I){var J=I.columnId,q={};I.headerText&&(q.headerName=_.mp(I.headerText));I.rightAlignHeader&&(q.rightAlignHeader=I.rightAlignHeader);var L;if((L=I.headerIcon)==null?0:L.iconType)q.headerIcon=_.NY(I.headerIcon.iconType);k[J]=q;return k},{}),c=e.filter(function(k){return!k.hideColumn}).map(function(k){return k.columnId});
e=e.filter(function(k){return!!k.dimensions}).reduce(function(k,I){k[I.columnId]=I.dimensions;
return k},{});
return{columns:g,columnsToShow:c,columnDimensions:e}};
_.giC=function(e){return e?e.simpleText?e.simpleText:e.runs?e.runs.map(function(g){return g.text}).join(""):"":""};
w3U=function(e){var g=e.data;var c=e.onTap;var k=e.isSelected;var I=e.onFocusIn;if(!g)return{};e=cYU(g);k===void 0&&(k=g==null?void 0:g.isSelected);var J;return{text:kN6(g,e),startIcon:(J=g.icon)==null?void 0:J.iconType,state:k?0:2,type:0,style:Iq6(g),onTap:JYv(g,c),accessibilityLabel:viV(g,e),onFocusIn:function(){return I==null?void 0:I()}}};
kN6=function(e,g){if(!g)return e.text?_.giC(e.text):void 0};
Iq6=function(e){var g;switch((g=e.style)==null?void 0:g.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
JYv=function(e,g){return function(c){g==null||g(c,e)}};
cYU=function(e){e=e.style&&e.style.styleType;return!ipV&&e==="STYLE_EXPLORE_LAUNCHER_CHIP"};
viV=function(e,g){if(g){var c,k,I;return(I=(c=e.accessibilityData)==null?void 0:(k=c.accessibilityData)==null?void 0:k.label)!=null?I:kN6(e,!1)}};
qtv=function(){var e;return[function(g,c,k){return _.oC(e,g,c,k)},
function(g){e=g}]};
L$p=function(e,g){return _.Nc(e.entities,"chipEntity",g)};
aqp=function(e,g,c,k){return function(){var I=rYV.has(e.displayType)&&e.selected,J=I&&e.deselectCommand?e.deselectCommand:e.tapCommand;!J||I&&k||_.GF(J,{form:{element:g==null?void 0:g.value}});c==null||c()}};
niC=function(e,g){g=g==null?void 0:g.stepStates;if(e&&g){var c,k;return(c=g[e])==null?void 0:(k=c.userQuery)==null?void 0:k.userQuery}};
KV=function(e){return{signalAction:{signal:e}}};
W$6=function(){return _.uo("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Rnq:_.Eiz};
bDA=function(e,g){e=e===void 0?"SOFT_RELOAD_PAGE":e;g=g===void 0?49504:g;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.uB(_.C_("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:g}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:e}}]}}}};
hnK=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.uB(_.C_("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:W$6()}};
X3e=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.uB(_.C_("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:W$6()}};
GNg=function(e,g){var c=_.uB(_.C_("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),k=_.uB(_.C_("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),I={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.uB(_.C_("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};I.serviceEndpoint=e?e:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[KV("SOFT_RELOAD_PAGE")]}};return{title:c,bodyText:k,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:I},
style:{value:g!=null?g:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
DIt=function(e){e=e===void 0?{}:e;return{title:_.uB(e.localizedZeroStateTitleText===void 0?"":e.localizedZeroStateTitleText),bodyText:_.uB(e.localizedZeroStateMessage===void 0?"":e.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.uB(e.localizedZeroStateButtonText===void 0?"":e.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[xIz]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
YtV=function(e){e=e===void 0?{}:e;return{title:_.uB(e.localizedOptInBannerTitleText===void 0?"":e.localizedOptInBannerTitleText),titleLength:19,subtitle:_.uB(e.localizedOptInMessage===void 0?"":e.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.uB(_.C_("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:_.uB(_.C_("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:[$I8]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
iDe=function(e,g){var c=g=g===void 0?{}:g;g=c.offlineTitleText===void 0?"":c.offlineTitleText;var k=c.offlineDescriptionText===void 0?"":c.offlineDescriptionText,I=c.formattedSupplementalText,J=c.actionButtonText===void 0?"":c.actionButtonText,q=c.titleText===void 0?"":c.titleText;c=c.descriptionText===void 0?"":c.descriptionText;var L={title:J,accessibilityText:J,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};e||(q=g,c=k,L={title:J,accessibilityText:J,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.uB(q),titleLength:q.length,overrideTitleMaxFontSize:30,subtitle:_.uB(c),supplementalText:I,primaryButton:{buttonViewModel:L},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[fqC]},darkTileImage:{thumbnails:[jKt]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.p38=function(e,g,c,k,I,J,q,L,n,R,W){I=I===void 0?!1:I;J=J===void 0?!1:J;q=q===void 0?0:q;L=L===void 0?-Infinity:L;n=n===void 0?!1:n;R=R===void 0?!1:R;W=W===void 0?!1:W;var b=[],h=_.uB(_.C_("SMART_DOWNLOADS",void 0,"Smart downloads")),X=_.uB(PLV(q,L,e.length));L=q=void 0;R?q={statementBannerRenderer:iDe(W,k)}:I?e.length>0?L=mIv(e,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.G("kevlar_manual_downloads_above"),h,X):n?L={alertBannerViewModel:{heading:{content:c.localizedOptInBannerTitleText===
void 0?"":c.localizedOptInBannerTitleText},body:{content:c.localizedPromptMessage===void 0?"":c.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.C_("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.C_("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:_.hb6}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:J&&(L={backgroundPromoRenderer:{bodyText:_.uB(_.C_("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"}}}):
J&&(L={alertBannerViewModel:{heading:{content:c.localizedOptInBannerTitleText===void 0?"":c.localizedOptInBannerTitleText},body:{content:c.localizedOptInMessage===void 0?"":c.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.C_("TURN_ON",void 0,"Turn on"),accessibilityText:_.C_("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}}}}}});c=_.uB(_.C_("YOUR_DOWNLOADS",void 0,"Your downloads"));k=void 0;g.length>0?(k=void 0,_.G("kevlar_display_downloads_numbers")&&(k=_.uB(_.e4("VIDEO_COUNT",g.length))),k=mIv(g,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,c,k)):I||e.length||
R||(k={backgroundPromoRenderer:{bodyText:_.uB(_.C_("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}}}});q?b.push({richSectionRenderer:{content:q}}):L&&!_.G("kevlar_manual_downloads_above")&&b.push({richSectionRenderer:{content:L,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
k&&b.push({richSectionRenderer:{content:k,loggingDirectives:{clientVeSpec:{uiType:51721}}}});L&&_.G("kevlar_manual_downloads_above")&&b.push({richSectionRenderer:{content:L,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(g.length>0||I&&e.length>0&&!R)&&b.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.uB(_.C_("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:b}};
_.lqC=function(e){return TwU(e,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.AYW=function(e){return TwU(e,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
TwU=function(e,g){var c=[];e=mIv(e,g,!0);c.push({richSectionRenderer:{content:e}});return{contents:c}};
mIv=function(e,g,c,k,I){c=c===void 0?!1:c;var J="RESPONSIVE_SIZE_STANDARD";_.G("kevlar_standard_rich_grid_on_offline_home")&&g==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?J="RESPONSIVE_SIZE_STANDARD":_.G("kevlar_modern_downloads_compact")?J="RESPONSIVE_SIZE_COMPACT":_.G("kevlar_modern_downloads_extra_compact")?J="RESPONSIVE_SIZE_EXTRA_COMPACT":_.G("kevlar_modern_downloads_tiny")&&(J="RESPONSIVE_SIZE_TINY");e={isExpanded:c,contents:OQ(e),entitySelectorType:g,responsiveContainerConfiguration:{responsiveSize:J}};
k&&(e.title=k);I&&(e.subtitle=I);c||(_.G("kevlar_smart_downloads_show_more_button")?(e.showMoreButton={buttonRenderer:{accessibility:{label:_.C_("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.uB(_.C_("SHOW_MORE",void 0,"Show more"))}},e.showLessButton={buttonRenderer:{accessibility:{label:_.C_("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.uB(_.C_("SHOW_LESS",void 0,"Show less"))}}):(e.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.C_("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}}}},e.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.C_("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}}}},e.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.C_("VIEW_ALL",void 0,"View all"),accessibilityText:_.C_("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:_.sV("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:e}};
OQ=function(e){var g=[];e=_.w(e);for(var c=e.next();!c.done;c=e.next())if(c=c.value,ebV(c)){var k=g,I=k.push;var J=void 0;if(c==null?0:(J=c.videoEntity)==null?0:J.videoId){J=xd(_.Tt().getState(),c.videoEntity.videoId);var q=_.Tt().getState();var L=_.Bh(c.videoEntity.videoId,"mainVideoEntity");q=!!_.wq(q.entities)[L];q={videoId:c.videoEntity.videoId,title:d$(c.videoEntity.title),shortBylineText:d$(c.channelEntity.title),thumbnail:c.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:q&&_.G("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:T4p(c.videoEntity.videoId,J,c.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.C_("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};c.videoEntity.lengthSeconds&&(q.thumbnailOverlays=g9q(c.videoEntity.lengthSeconds,J));q.isWatched=J>0;_.G("kevlar_modern_downloads_page")&&(q.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:c.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.C_("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},q.badges=void 0);c=q}else c={};I.call(k,{richItemRenderer:{content:{videoRenderer:c},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(CZg(c)){k=g;I=k.push;var n=L=J=void 0,R=void 0,W=void 0,b=void 0,h=void 0,X=void 0,D=void 0,f=void 0,l=void 0,A=void 0;q=c.mainPlaylistEntity.playlistId;var d=c==null?void 0:(A=c.mainPlaylistEntity)==null?void 0:(l=A.thumbnailStyleData)==null?void 0:(f=l[0])==null?void 0:(D=f.value)==null?void 0:(X=D.collageThumbnail)==
null?void 0:X.coverThumbnail;if(q&&d){X=l6A(q);!_.G("enable_offline_playlist_page")&&(c==null?0:(h=c.mainPlaylistEntity)==null?0:h.videos)&&(h=c==null?void 0:(b=c.mainPlaylistEntity)==null?void 0:(W=b.videos)==null?void 0:W[0],W=_.ZO(h).entityId,W=JSON.parse(W).videoId,W!==void 0&&(X=xd(_.Tt().getState(),W),X=_.Fb(W,q,void 0,void 0,X)));W=[];if(c==null?0:(R=c.mainPlaylistEntity)==null?0:(n=R.videos)==null?0:n.length)n=uhg(),R=Object,W=R.assign,b=(b=FwK(c==null?void 0:c.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.uB(b),icon:{iconType:"PLAYLISTS"}}}:void 0,W=[n,W.call(R,{},(L=b)!=null?L:{})];c={playlistId:q,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:d}},navigationEndpoint:X,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:W,title:d$(c.mainPlaylistEntity.title),shortBylineText:d$(c==null?void 0:(J=c.channelEntity)==null?void 0:J.title),badges:[{metadataBadgeRenderer:{label:_.C_("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.G("kevlar_modern_downloads_page")&&(c.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:sKq,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:q,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.C_("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},c.badges=void 0)}else c=void 0;I.call(k,{richItemRenderer:{content:{playlistRenderer:c},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return g};
PLV=function(e,g,c){e=e?vQA(e):"";g!==void 0&&isFinite(g)?g===0?g=_.C_("UPDATING",void 0,"Updating..."):(g=eup(new Date(g),new Date),g=_.C_("UPDATED_TIME",{relative_time:g},"Updated "+g)):g="";var k="";e&&g&&(k=" \u2022 ");if(c&&_.G("kevlar_display_downloads_numbers")){c=_.e4("VIDEO_COUNT",c);if(e||g)k=" \u2022 ";return c+k+e+k+g}return e+k+g};
F$W=function(e){return tqC(e.entities).length};
_.uPV=function(e,g,c){var k=D9(e.responsiveSize),I;e=!((I=e.responsiveMap)==null||!I.some(function(J){return J.containerSize==="CONTAINER_SIZE_NARROW"&&J.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:c,containerWidth:g,sizing:k,enableFullBleedForSingleCol:!1,isCompactList:k==="COMPACT"&&e}};
dIW=function(e,g){return _.Nc(e.entities,"votingEntity",g)};
My=function(e){if(e){var g;return((g=_.Ss().resolve(_.NN(_.gb)))==null?0:g())?e.darkTheme:e.lightTheme}};
znC=function(e,g){if(e.simpleText)return Object.assign({},e,{simpleText:$k(e.simpleText,g)});if(!e.runs)return e;for(var c=Object.assign({},e,{runs:[]}),k=0,I=_.w(e.runs),J=I.next();!J.done;J=I.next())if(J=J.value,J.text)if(k+J.text.length<=g)c.runs.push(J),k+=J.text.length;else return c.runs.push(Object.assign({},J,{text:$k(J.text,g-k)})),c;return e};
HDg=function(e,g){return _.Nc(e.entities,"chipBarStateEntity",g)};
QKW=function(e){switch(e){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
UIz=function(e,g){return{triggeringElement:e,onDwellTriggeredFn:function(){var c={triggeringElement:e,loadVideoPreviewEventData:g},k=document.querySelector(".video-preview");k&&k.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:c}))},
onDwellEndFn:function(){var c=document.querySelector(".video-preview");c&&c.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
oiW=function(e){var g=_.Ss().resolve(_.NN(VCp));return function(c){var k=function(){var I=e(c);return g&&I?UIz(c,I):null};
_.AV(function(){var I=k();g&&I&&Promise.resolve().then(function(){g.registerElement(I)});
_.sX(function(){g&&I&&Promise.resolve().then(function(){_.XJ(g,I)})})},"p0smCb")}};
VHW=function(e){var g=e.dataset.resizeObserverId;if(g)return g;g=""+ZD8++;return e.dataset.resizeObserverId=g};
tHg=function(e){e=_.w(e);for(var g=e.next();!g.done;g=e.next()){g=g.value;var c=VHW(g.target),k=Object.assign({},{target:g.target},CV.get(c));if(k!=null&&k.contentRect?k.contentRect.width!==g.contentRect.width||k.contentRect.height!==g.contentRect.height:1)for(CV.set(c,{borderBoxSize:g.borderBoxSize,contentBoxSize:g.contentBoxSize,contentRect:g.contentRect,devicePixelContentBoxSize:g.devicePixelContentBoxSize}),c=_.w(el.get(c)||[]),k=c.next();!k.done;k=c.next())k=k.value,k(g)}};
Nw6=function(e,g){var c=VHW(e);el.has(c)||el.set(c,new Set);el.get(c).add(g);CV.has(c)&&g(Object.assign({},{target:e},CV.get(c)));gS||(gS=new BwA(tHg));g=gS;g.observe(e)};
St8=function(e,g){var c=VHW(e);el.has(c)&&(el.get(c).delete(g),el.get(c).size===0&&(el.delete(c),CV.delete(c),gS.unobserve(e),delete e.dataset.resizeObserverId));el.size===0&&gS&&(gS.disconnect(),gS=void 0)};
K$6=function(e,g){var c=_.Ss().resolve(t2);return yYt.map(function(k){return c.observe(e,g,k)})};
ODW=function(e){var g=_.Ss().resolve(t2);e.forEach(function(c){g.unobserveByKey(c)})};
_.cj=function(e){var g=_.w(o26()),c=g.next().value,k=g.next().value,I=Object.assign({},MHz,e),J=CLU(function(q){var L=q.contentRect.height;if((q=q.contentRect.width)||L||I.canHaveZeroSize)c.width()===q&&c.height()===L||k(c,{height:L,width:q})},I.throttleMs);
return[c,function(q){var L=[];I.useVisibilityObserver&&(L=K$6(q,function(n,R){requestAnimationFrame(function(){R==="visible"?Nw6(q,J):St8(q,J)})}));
L.length||Nw6(q,J);return function(){L.length&&(ODW(L),L.length=0);St8(q,J)}}]};
_.kD=function(e,g){var c=_.w(_.Wa(!1,void 0,"YLPUhc")),k=c.next().value,I=c.next().value,J=!1,q;return function(L){if(q)return _.a(q,Object.assign({},L));if(!J){J=!0;var n=V8e;n==null||n.addDep();e().then(function(R){q=R;I(!0);n==null||n.removeDep()}).catch(function(R){n==null||n.removeDep();
if(g==null?0:g.debugName){var W,b=new _.E2("failed to load chunk",g.debugName,R==null?void 0:(W=R.toString)==null?void 0:W.call(R));_.jW(b)}else _.jW(R);throw R;})}return _.a(_.E,{cond:k,
then:function(){return _.a(q,Object.assign({},L))}})}};
gxC=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("dpUCFd"),2);e=_.eIC;return g.return(e)})};
kKW=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("U9vrqd"),2);e=cl6;return g.return(e)})};
JlA=function(e,g,c,k,I){e=g?e.switchOffCommand:e.switchOnCommand;if(k&&I)Izv(e,c,I);else{var J,q;(J=_.hb({elementsCommand:e}))==null||(q=J.onclick)==null||q.call(J,c)}};
Izv=function(e,g,c){e=_.hb({elementsCommand:e,additionalCommandArgs:{commandController:{onSuccess:function(){c(!1)},
onServerError:function(){c(!1)}}}});
if(e==null?0:e.onclick)e.onclick(g),c(!0)};
wsq=function(e){if(e)return _.x(e,vxW)};
q3z=function(e){if(e)switch(e){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
_.Im=function(e){var g=_.G(e);UM["counterfactuals."+e]=String(g);return g};
LIA=function(e,g){if(!((e==null?0:e.entitySelectorType)&&(e==null?0:e.entityKey)))return{};switch(e.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":var c,k=(c=_.BO())==null?void 0:c.getOption("captions","track"),I,J=typeof(k==null?void 0:k.translationLanguage)==="object"&&((I=k.translationLanguage)==null?void 0:I.languageName)||(k==null?void 0:k.displayName)||"";return{data:Object.assign({},!!J&&{selectionText:{content:J}},!!J&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},
{isDisabled:typeof k==="undefined"})};case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.Im("web_shorts_audio_track_picker")){var q;I=((q=_.BO())==null?void 0:q.getAudioTrack())||void 0;c=I==null?void 0:(J=I.getLanguageInfo())==null?void 0:J.getName();I={data:Object.assign({},{selectionText:{content:c}},c&&!(I==null?0:(k=I.getLanguageInfo())==null?0:k.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else I={};return I;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return k=
e!=null&&e.entityKey?(k=_.Zi(g,e.entityKey))?{isHidden:(k==null?void 0:k.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},k;default:return{}}};
rlp=function(e,g){return function(c){var k=function(I){_.aB(_.rb(I),c,g)||e(I)};
c.addEventListener("click",k);return function(){c.removeEventListener("click",k)}}};
_.azA=function(e){return function(){return _.x(e(),_.Jh)}};
nxU=function(e){switch(e){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
RI8=function(e){return nxU(e==null?void 0:e.all)};
Exq=function(e){var g={};(e=e==null?void 0:e.padding)&&(g.padding=nxU(e.vertical)+"px "+nxU(e.horizontal)+"px");return g};
WI8=function(e){switch(e){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
bkq=function(e){switch(e){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
hIW=function(e){switch(e){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
XsU=function(e,g){if(g)return{containerStyles:Exq(g),itemStyles:function(c,k){var I={flex:"1"},J=g==null?void 0:g.flexDirection;b:switch(J){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":c=!!c;break b;default:c=!!k}c||(c=_.uo("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",J==="FLEX_DIRECTION_ROW"||J==="FLEX_DIRECTION_ROW_REVERSE"?(J=RI8(g==null?void 0:g.gap)+"px",c?I["margin-left"]=J:I["margin-right"]=J):I["margin-bottom"]=RI8(g==null?void 0:g.gap)+"px",I.flex=
"1");return I},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(g==null?void 0:g.flexDirection)==="FLEX_DIRECTION_ROW"||(g==null?void 0:g.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
GKC=function(e){return e<528?"CONTAINER_SIZE_NARROW":e<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
xAq=function(e,g){e=_.w(e.responsiveMap||[]);for(var c=e.next();!c.done;c=e.next())if(c=c.value,c.containerSize===g)return c.containerType};
_.DAt=function(e,g){if(g){var c=g.responsiveSize;e=GKC(e);var k=xAq(g,e);if(k&&c){a:{if(k==="CONTAINER_TYPE_VERTICAL_LIST")if(c==="RESPONSIVE_SIZE_STANDARD"){if(e!=="CONTAINER_SIZE_NARROW"){var I="50%";break a}}else{I=e==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}I=void 0}return{responsiveSize:c,containerSize:e,containerType:k,force16By9ThumbnailAspectRatio:!g.enableContentSpecificAspectRatio,contentPreviewWidth:I,fullbleed:(k==="CONTAINER_TYPE_VERTICAL_LIST"||k==="CONTAINER_TYPE_GRID")&&e===
"CONTAINER_SIZE_NARROW"&&!1}}}};
$AC=function(e,g){var c={};switch(g){case "CONTAINER_TYPE_VERTICAL_LIST":c["flex-direction"]="column";c.padding="0 "+e.margin+"px";break;case "CONTAINER_TYPE_GRID":c["flex-direction"]="row";c.flex="none";c["flex-wrap"]="wrap";c.width=e.maxContainerWidth?e.maxContainerWidth+e.gutter+"px":void 0;c.padding="0 "+(e.margin-e.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":c["flex-direction"]="row",c.flex="none",c["overflow-x"]="auto",c.width=e.maxContainerWidth?e.maxContainerWidth+"px":void 0,
c.padding="0 "+e.margin+"px"}return c};
Y3A=function(e,g){if(g){var c=xAq(g,GKC(e));a:switch(c){case "CONTAINER_TYPE_GRID":var k=3;break a;default:k=1}k=_.uPV(g,e,k);var I=_.xu(k);return{containerLayoutConfig:_.DAt(e,g),containerStyles:$AC(I,c),itemStyles:function(J,q){J={};switch(c){case "CONTAINER_TYPE_VERTICAL_LIST":q||(J["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":J.width=I.itemWidth+"px";J["margin-right"]=I.gutter/2+"px";J["margin-left"]=I.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":J.width=I.itemWidth+
"px",J.flex="none",q||(J["margin-right"]=I.gutter+"px")}return J}}}};
mAe=function(e,g,c){if(g)return[fzA];switch(e){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[vj];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return c?[vj]:[jrp,vj];case "TRANSFER_STATE_PAUSED_BY_USER":return[ikz,vj];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[POC,vj];default:return[fzA]}};
psV=function(e,g,c,k){return mAe(e,g,k).map(function(I){var J=I.text,q=I.iconType,L=I.videoAction;I=I.playlistAction;J=J?{content:J}:void 0;q=q&&{sources:[{clientResource:{imageName:q}}]};var n=(0,_.n0.unsafeClone)(c);if(n){var R=_.x(n,_.yF),W=_.x(n,_.Kx);R&&L?R.action=L:W&&I&&(W.action=I)}return{title:J,leadingImage:q,rendererContext:n&&{commandContext:{onTap:{innertubeCommand:n}}}}})};
TUK=function(e){e=_.nV(e.rendererContext);var g;return(g=_.x(e,_.Kx))==null?void 0:g.playlistId};
lzv=function(e){var g;return(g=e.listItems)==null?void 0:g.some(function(c){var k;return _.RB((k=_.x(c,_.IB))==null?void 0:k.rendererContext)})};
Alz=function(e,g){var c;(c=e[(g+1)%e.length])==null||c.focus()};
srp=function(e,g){var c=e.length,k;(k=e[g===-1?c-1:(g-1+c)%c])==null||k.focus()};
_.wS=function(e){var g=_.Ss().resolve(_.NN(_.gb));return g!=null&&g()?e.darkThemeColorPalette:e.lightThemeColorPalette};
_.LL=function(e){return{primaryTextColor:q1(e,0),secondaryTextColor:q1(e,1),optionColor:q1(e,2),backgroundColor:q1(e,3),videoBackgroundColor:q1(e,4)}};
q1=function(e,g){if(e){switch(g){case 0:e=e.primaryTitleColor;break;case 1:e=e.secondaryTitleColor;break;case 2:e=e.surgeColor;break;case 3:e=e.section2Color;break;case 4:e=e.section3Color;break;default:return}if(e)return _.R1(e)}};
dAg=function(e){var g=e.element;var c=e.veType;var k=e.storedVisualElement===void 0?null:e.storedVisualElement;var I=e.elementIndex===void 0?0:e.elementIndex;e=e.clientYouTubeData;var J=_.EM();J!==FIt&&(u3W.clear(),FIt=J);if(g.visualElement&&u3W.has(g.visualElement))return null;if(k&&u3W.has(k))return g.visualElement=k,null;c=_.eU(_.gL(),{veType:c,elementIndex:I,clientYouTubeData:e});if(!c)return null;g.visualElement=c;u3W.add(c);return c};
_.rS=function(e,g,c,k){c=c===void 0?null:c;k=k===void 0?zIU:k;var I=I===void 0?null:I;Lv(function(){if(g){c instanceof Function&&(c=c());var J=dAg({element:g,veType:e,storedVisualElement:c,clientYouTubeData:void 0});J&&(MY(g,{data:I,observer:_.Ss().resolve(t2),hideOption:Xpg,showOption:GWv,layer:g.layer}),k(J))}})};
HkA=function(e){return e?_.EY(e):""};
Qrg=function(e){return(e==null?void 0:e.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
UAg=function(e,g){return _.Nc(e.entities,"videoOverviewAsyncDataEntity",g)};
oxg=function(e,g){var c;return"linear-gradient(to bottom, "+((c=g==null?void 0:g.map(function(k){var I=e?k.darkThemeColor:k.lightThemeColor;return I?_.EY(I)+" "+((k==null?void 0:k.startLocation)||0)*100+"%":"transparent"}))==null?void 0:c.join(", "))+")"};
Zkv=function(e,g,c,k,I){if(!((k==null?0:k.height)&&(k==null?0:k.width)))return{size:0};var J=k.width;k=k.height;if(I)return g==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||g==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&J>k?{size:312/ngg}:g==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(c!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||e!==1&&e!==2||g!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&g!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&g!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(g==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||g==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||k===J)switch(e){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(g==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||k>J)switch(e){case 1:case 3:return{size:240*aDK};default:return{size:360*aDK}}switch(e){case 1:case 2:return{size:1/ngg*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.V2W=function(e){if(!("matchMedia"in window))return _.UI(Error("Sh")),function(){return!1};
var g=window.matchMedia(e);e=_.w(_.Wa(g.matches,void 0,"waIHpe"));var c=e.next().value,k=e.next().value,I=function(J){k(J.matches)};
g.addEventListener?(g.addEventListener("change",I),_.sX(function(){g.removeEventListener("change",I)})):g.addListener&&(g.addListener(I),_.sX(function(){g.removeListener(I)}));
return c};
t2g=function(e){return e==="IMAGE_BANNER_STYLE_INSET"||e==="IMAGE_BANNER_STYLE_UNKNOWN"};
BUV=function(){if(!("matchMedia"in window))return _.UI(Error("Sh")),function(){return 0};
var e=window.matchMedia("(max-width: 527.9px)"),g=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),c=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),k=window.matchMedia("(min-width: 1024px)"),I=_.w(_.Wa(e.matches,void 0,"TmIKcb")),J=I.next().value,q=I.next().value;I=_.w(_.Wa(g.matches,void 0,"Z0fTKd"));var L=I.next().value,n=I.next().value;I=_.w(_.Wa(c.matches,void 0,"w4xy7b"));var R=I.next().value,W=I.next().value;I=_.w(_.Wa(k.matches,void 0,"DrbNC"));var b=I.next().value,
h=I.next().value,X=function(A){q(A.matches)},D=function(A){n(A.matches)},f=function(A){W(A.matches)},l=function(A){h(A.matches)};
_.lo(function(){e.addEventListener?(e.addEventListener("change",X),g.addEventListener("change",D),c.addEventListener("change",f),k.addEventListener("change",l)):e.addListener&&(e.addListener(X),g.addListener(D),c.addListener(f),k.addListener(l));_.sX(function(){e.removeEventListener?(e.removeEventListener("change",X),g.removeEventListener("change",D),c.removeEventListener("change",f),k.removeEventListener("change",l)):e.removeListener&&(e.removeListener(X),g.removeListener(D),c.removeListener(f),
k.removeListener(l))})});
return function(){return J()?1:L()?2:R()?3:b()?4:0}};
NUK=function(e){var g=0;e=_.w([e.title,e.metadata,e.actions,e.description,e.attribution]);for(var c=e.next();!c.done;c=e.next())c.value&&g++;return g};
S3t=function(e){return e===1||e===2?1:0};
KIt=function(e){e=(new ylq).parse(e);return(new Xd).render(e).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(g){var c=g.split(":").map(Number),k=0,I=0;if(c.length===3)c=_.w(c),k=c.next().value,I=c.next().value,c=c.next().value;else if(c.length===2)c=_.w(c),I=c.next().value,c=c.next().value;else if(c.length===1)c=_.w(c).next().value;else throw Error("Th");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(k*3600+I*60+c)+'" role="button">'+g+"</span>"})};
OkK=function(e){e=_.w(e.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var g=e.next(),c={};!g.done;c={clickHandler$jscomp$5:void 0},g=e.next()){g=g.value;c.clickHandler$jscomp$5=function(I){I=Number(I.target.getAttribute("data-time"));if(isNaN(I))throw Error("Uh");var J;(J=_.BO())==null||J.seekTo(I,!0)};
var k=function(I){return function(J){J.key!=="Enter"&&J.key!=="Space"||(0,I.clickHandler$jscomp$5)(J)}}(c);
g.setAttribute("tabindex","0");g.removeEventListener("click",c.clickHandler$jscomp$5);g.removeEventListener("keydown",k);g.addEventListener("click",c.clickHandler$jscomp$5);g.addEventListener("keydown",k)}};
M2e=function(){return _.a("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.a(am,{percentWidth:100}),_.a(am,{animationDelay:200}),_.a(am,{animationDelay:400}),_.a(am,{animationDelay:600}),_.a(am,{animationDelay:800,percentWidth:60}),_.a("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.a(am,{percentWidth:100}),_.a(am,{animationDelay:200}),_.a(am,{animationDelay:400}),_.a(am,{animationDelay:600,percentWidth:50}))};
am=function(e){return _.a("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(e.percentWidth===void 0?100:e.percentWidth)+"%"},_.a("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(e.animationDelay===void 0?0:e.animationDelay)+"ms"}))};
CO6=function(){var e=_.w(_.Wa(function(){return""},void 0,"dXJHWc")),g=e.next().value;
return[function(){return g()()},
e.next().value]};
eMV=function(e,g){e=e?vQA(e):"";g!==void 0&&isFinite(g)?g===0?g=_.C_("UPDATING",void 0,"Updating..."):(g=eup(new Date(g),new Date),g=_.C_("UPDATED_TIME",{relative_time:g},"Updated "+g)):g="";var c="";e&&g&&(c=" \u2022 ");return _.uB(e+c+g)};
kfC=function(e,g,c,k,I,J){g=g===void 0?0:g;var q=g7W[g],L=q.title,n=q.iconType,R=q.topButtonRenderer,W=q.sectionClientVE;q=q.videoClientVE;var b;if(g!==1||e.length){c=[];e=_.w(e);for(k=e.next();!k.done;k=e.next()){var h=k.value;if(ebV(h))c.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:h.videoEntity.videoId,title:d$(h.videoEntity.title),shortBylineText:d$(h.channelEntity.title),thumbnail:h.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:h.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.C_("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:q}}}}}});else if(CZg(h)){k=c;var X=k.push;var D=void 0,f=void 0,l=void 0,A=void 0,d=void 0,S=void 0,V=void 0,Q=void 0,y=h.mainPlaylistEntity.playlistId,O=h==null?void 0:(Q=h.mainPlaylistEntity)==null?void 0:(V=Q.thumbnailStyleData)==null?void 0:(S=V[0])==null?void 0:(d=S.value)==null?void 0:(A=d.collageThumbnail)==null?void 0:A.coverThumbnail;A=l6A(y);if(!_.G("enable_offline_playlist_page")&&
(h==null?0:(l=h.mainPlaylistEntity)==null?0:l.videos)){b:{l=h==null?void 0:(f=h.mainPlaylistEntity)==null?void 0:f.videos;f=_.Tt().getState().entities;if(l!=null&&l.length&&f)for(l=_.w(l),d=l.next();!d.done;d=l.next())if(d=_.ZO(d.value).entityId,(d=JSON.parse(d).videoId)&&Z8t(f,d)==="TRANSFER_STATE_COMPLETE"){f=d;break b}f=""}f!==void 0&&(A=xd(_.Tt().getState(),f),A=_.Fb(f,y,void 0,void 0,A))}f=sDq(_.C_("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),l6A(y));h=y&&O&&f?{playlistId:y,navigationEndpoint:A,
viewPlaylistText:f,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:O}},title:d$(h.mainPlaylistEntity.title),shortBylineText:d$(h==null?void 0:(D=h.channelEntity)==null?void 0:D.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:cBU,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.C_("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:q}}}:
void 0;X.call(k,{gridPlaylistRenderer:h})}}q={gridRenderer:{items:c}};g===1&&(b=eMV(I,J))}else if(k){var Jq=_.uB((X=c==null?void 0:c.localizedPromptMessage)!=null?X:"");q={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.uB(_.C_("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.hb6}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.uB(_.C_("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};b=eMV(I,J)}else Jq=_.uB(_.C_("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
q={};return{contents:[{shelfRenderer:{title:L,titleAnnotation:b,icon:{iconType:n},subtitle:Jq,content:q,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:R}]}}}}],loggingDirectives:{clientVeSpec:{uiType:W}}}};
IpA=function(e,g,c,k,I,J,q,L,n,R,W){c=c===void 0?{}:c;k=k===void 0?{}:k;I=I===void 0?!1:I;J=J===void 0?!1:J;q=q===void 0?!1:q;L=L===void 0?!1:L;n=n===void 0?!1:n;R=R===void 0?0:R;W=W===void 0?-Infinity:W;if(!(g.length||e.length||I||L))return J?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:DIt(c)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.uB(_.C_("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 b=[];e.length&&b.push(kfC(e,0));L?b.push({contents:[{statementBannerRenderer:iDe(n,k)}]}):I?b.push(kfC(g,1,c,q,R,W)):J&&b.push({contents:[{statementBannerRenderer:YtV(c)}]});(I&&g.length||e.length)&&b.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.uB(_.C_("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 b.map(function(h){return{itemSectionRenderer:h}})};
nL=function(e,g){if(typeof e!=="object")return null;e=_.w(Object.entries(e));for(var c=e.next();!c.done;c=e.next()){var k=_.w(c.value);c=k.next().value;k=k.next().value;if(c===g)return c;if(k=nL(k,g))return c+"."+k}return null};
Rm=function(e){var g=e.content;return(e=e.styleRuns)&&g?{runs:e.map(function(c){var k={text:g.slice(c.startIndex,c.startIndex+c.length)};c.fontColor&&(k.textColor=c.fontColor);return k})}:{simpleText:g}};
wDU=function(e,g,c,k){var I=JBC;k&&(e.quantity=k);if(!e.quantity||!e.maxQuantity)return{};k=e.minusButton;var J=e.plusButton,q,L,n,R;return{value:e.quantity,maxValue:e.maxQuantity,onChangeCallback:function(W){I(e,W)},
minusLabel:(q=_.x(k,v7K))==null?void 0:q.label,minimumReachedLabel:(L=_.x(k,v7K))==null?void 0:L.limitReachedLabel,plusLabel:(n=_.x(J,v7K))==null?void 0:n.label,maximumReachedLabel:(R=_.x(J,v7K))==null?void 0:R.limitReachedLabel,disabled:g,onRemoveCommand:c}};
JBC=function(e,g){var c=e.quantityIncrementerEntityKey;if(c){var k={};k.quantity=g;_.As(_.ET("quantityIncrementerEntity",c,k));e.onChangeCommand&&_.GF(e.onChangeCommand)}};
qDe=function(e){if(e)return e===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(e).overflowY)?e:qDe(e.parentElement)};
apW=function(e,g){(e=Lrt(e))&&((_.G("enable_mini_app_command_handler_mweb_fix")?0:g)?rBV.push({command:e,sourceData:{},commandContext:void 0}):_.Ss().resolve(_.xk).resolveCommand(e))};
Lrt=function(e){return _.x(e,_.EL)};
n7e=function(){var e=window.performance.timeOrigin+window.performance.now(),g=(new _.Wj).setSeconds(e/1E9);return _.wr(g,2,_.rj(e%1E9),0)};
E7A=function(e,g){var c;e=(c=_.x(_.x(e,_.EL),RMv))==null?void 0:c.methodName;var k,I;(c=window.youtubewebview||((k=window.webkit)==null?void 0:(I=k.messageHandlers)==null?void 0:I.youtubewebview))&&e&&(k=new bQ,e=_.vH(k,1,e),e=_.MU(e.JSC$12866_serializeBinary()),g=_.MU(g),c.postMessage(e+","+g))};
hh=function(e,g){var c=_.x(_.x(e,_.EL),RMv);c&&(g&&(c.serializedAdditionalMetadata=_.MU(g)),apW(e,!0))};
Wrg=function(e,g,c){setTimeout(function(){_.vA(e,g)},c)};
bIK=function(e){switch(e){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"}};
hMU=function(){return!!_.uo("ID_TOKEN")};
xJv=function(e){return e instanceof Error&&e.cause instanceof XDU&&e.cause.rpcErrorCode!==void 0?!GfK.includes(e.cause.rpcErrorCode):!0};
$Jq=function(){return _.MO(DJC,{authuser:""+(_.uo("SESSION_INDEX")||0)})};
XX=function(e,g,c,k){c=c===void 0?"MINI_APP_SDK_API_UNSPECIFIED":c;k=k===void 0?"":k;var I=new _.E2;c={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:k,sdkApi:c};e instanceof Error&&(I.message=e.message,I.name=e.name,e.cause instanceof XDU&&e.cause.rpcErrorCode!==void 0&&(c.rpcErrorCode=e.cause.rpcErrorCode));var J;(J=g.onError)==null||J.call(g,{loggingError:I,metadata:c})};
fpq=function(e,g,c,k){switch(e){case "MINI_APP_SOURCE_GAMESNACKS":return new YD(g,c,k);default:return new YDz(g,c,k)}};
jpq=function(e){switch(e){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"}};
iIC=function(e){switch(e){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"}};
P5W=function(e){switch(e){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";case 15:return"MINI_APP_SDK_API_OPEN_CONTENT";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
mJv=function(){return Math.floor(Math.random()*4)+1};
pD6=function(e,g,c,k){e=_.w(Object.entries(e));for(var I=e.next(),J={};!I.done;J={message$jscomp$995:void 0},I=e.next()){var q=_.w(I.value);I=q.next().value;q=q.next().value;J.message$jscomp$995=q;g.push(setTimeout(function(L){return function(){k(!1);c(L.message$jscomp$995.text)}}(J),J.message$jscomp$995.delayMs));
Number(I)>0&&g.push(setTimeout(function(){k(!0)},J.message$jscomp$995.delayMs-400))}};
TTV=function(e,g,c){c=c===void 0?zIU:c;if(e){var k=_.Ss().resolve(t2);k||_.G("mweb_no_observer_killswitch")?MY(e,{data:g,observer:k,visibilityCallback:c,hideOption:Xpg,showOption:GWv,layer:e.layer}):_.mN(new _.E2("Warning: monitorVisibility called with null observer",e.tagName,g==null?void 0:g.loggingDirectives,g==null?void 0:g.trackingParams))}else _.mN(new _.E2("Warning: monitorVisibility called with null element",g==null?void 0:g.loggingDirectives,g==null?void 0:g.trackingParams,g==null?void 0:
g.rendererContext))};
lpp=function(e,g){var c=c===void 0?zIU:c;_.G("mweb_fix_monitor_visibility_after_render")?e&&Lv(function(){TTV(e,g,c)}):Lv(function(){TTV(e,g,c)})};
ABv=function(e,g){var c=document.createElement("ytd-engagement-panel-section-list-renderer");c.data=e;var k=g!=null?g:{};e=k.isPersistentPanel;g=k.hideDelayMs;k=k.overscrollContain;e=Object.assign({},e&&{isPersistentPanel:e},g&&{hideDelayMs:g},k&&{overscrollContain:k});Object.assign(c,e);return c};
dJK=function(e){spK||(spK=Fr8(new _.$d(1,void 0,void 0,uLp),0));var g=spK.format(Math.floor(e));g=DY==="be"||DY==="bg"||DY==="es"||DY==="et"||DY==="hu"||DY==="ka"||DY==="lv"||DY==="pl"||DY==="pt-PT"||DY==="sq"?g.replace(new RegExp("^(\\d)"+uLp.GROUP_SEP.replace(".","\\.")+"(\\d+("+uLp.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):g;return e>=1E3&&e<=9999&&g[1]==="."&&(DY==="sl"||DY==="it")?g.replace(".",""):g};
_.QpK=function(e,g,c){return window.spf&&!_.G("web_disable_spfjs_client")?zMp(e,g,c):HIe(e,g)};
zMp=function(e,g,c){var k=null,I=(new _.Il(function(J,q){var L={};if(g){L.method=g.method;var n=g.postParams||{};y5C(e,g)&&(n[_.uo("XSRF_FIELD_NAME")]=_.uo("XSRF_TOKEN"));L.postData=_.Oy(n);g.type&&(L.type=g.type);n=g.headers}L.headers=ZAg(e,n);_.G("debug_forward_web_query_parameters")&&(e=_.N$C(e,window.location.search));L.experimental_headers=L.headers;L.onError=function(R){R.err&&R.xhr&&(R.err.params={url:R.xhr.responseURL,response:R.xhr.responseText.substr(0,64)});q(R.err)};
L.onPartDone=function(R){c&&c.call(null,R.part)};
L.onDone=function(R){var W=UJU(R.response,"xsrf_token");Sw(window.location.href,e)&&W&&_.Fq("XSRF_TOKEN",W);if(W=UJU(R.response,"service_worker_killswitch"))_.Fq("SERVICE_WORKER_KILLSWITCH",W),vKv();J(R.response)};
k=spf.request(e,L)})).then(o7g);
I.thenCatch(function(J){var q=J instanceof _.fL,L=J&&J.hasOwnProperty("params")&&J.params.response?J.params.response:"";J instanceof Error&&(L?q?pYz(J):L===')]}\'\n{"reload":"now"}'?pYz(J):(ZIz(J,e,L),VeC(J,L)?_.mN(J):_.jW(J)):pYz(J));k&&k.abort()});
return I};
o7g=function(e){if(e.type==="multipart"){var g=e.timing;e=e.parts.reduce(function(c,k){Object.assign(c,k);return c},{});
e.timing=e.timing||{};Object.assign(e.timing,g);e.type="reduced"}return e};
HIe=function(e,g){g=g===void 0?{}:g;var c=null,k=new _.Il(function(I,J){g.onFinish=function(q){if(q.readyState===XMLHttpRequest.DONE)if(q.status===200){if(q.responseType!=="json"){var L=q.response;L.substring(0,5)===")]}'\n"&&(L=L.substring(5));try{var n=JSON.parse(L)}catch(R){n=R}}else n=q.response;n instanceof Error?J(n):(L=UJU(n,"xsrf_token"),Sw(window.location.href,e)&&L&&_.Fq("XSRF_TOKEN",L),q=q.responseURL,window.performance&&window.performance.getEntriesByName?(L=window.performance.getEntriesByName(q).pop())?
q={responseStart:(0,_.yr)()-(L.responseEnd-L.responseStart)}:(Math.random()<.01&&(L=Error("gi"),L.params=q,_.mN(L)),q={responseStart:-1}):q={responseStart:0},n.timing=n.timing||{},Object.assign(n.timing,q),I(n))}else J(Error("fi`"+q.status))};
(c=_.vQ(e,g))||J(Error("fi`"+c.status))});
k.thenCatch(function(I){I instanceof Error&&(ZIz(I,e),VeC(I)&&(I.level="WARNING"))});
_.G("cancel_pending_navs")&&k.thenCatch(function(){c.abort()});
return k};
UJU=function(e,g){var c=e[g],k=e.parts;e.type==="multipart"&&k&&(c=(e=k.find(function(I){return g in I}))&&e[g]);
return c};
ZIz=function(e,g,c){var k=e.message||"";g={original:k,url:g};if(c)if(k=k.match(/position:?\s*(\d+)/)){k=k&&Number(k[1])?Number(k[1]):0;var I=Math.max(k-25,0);g.position=k;g.response=c.substring(I,k+25)}else g.response=c.substring(0,50);_.pB(e,g);try{e.message="JSON parse error"}catch(J){}};
VeC=function(e,g){e=e.message||"";e=!!(e.indexOf("<")>=0||e.indexOf("end of ")>=0||e.indexOf("Unterminated string")>=0||e.indexOf("Unexpected EOF"));if(!e&&g)for(var c=g.length,k=!1,I=0;I<c;I++)if(k&&g[I]==="\\")I++;else if(g[I]==='"')k=!k;else if(g[I]==="<"&&!k){e=!0;break}return e};
tez=function(){return document.documentElement.hasAttribute("dark")};
_.BTC=function(e,g){if(e!=="GFEEDBACK"&&e!=="GUIDED_HELP")_.zr(Error("hi`"+e));else{var c=_.Ss().resolve(_.NN(_.A4));if(c&&(c=c.getCurrentPage())&&c.getServiceTrackingParams&&(c=c.getServiceTrackingParams()))for(var k=0,I;I=c[k++];)if(I.service===e){if(e=I.params)for(c=0;k=e[c++];)g[k.key]=k.value;break}}};
_.NTC=function(e){var g=_.FE();g&&(g=g.getPlayer())&&(g.pauseVideo(),e.playback_id=g.getVideoData().cpn,e.eid=g.getVideoData().eventId,Object.assign(e,g.getFeedbackProductData()))};
SDe=function(){var e={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.uo("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(e.enableAnonymousFeedback=!0);_.uo("SESSION_INDEX")&&(e.authuser=String(_.uo("SESSION_INDEX")));_.G("enable_pageid_for_feedback")&&_.uo("DELEGATED_SESSION_ID")&&(e.pageId=String(_.uo("DELEGATED_SESSION_ID")));return e};
_.jl=function(e){_.G("enable_ypc_spinners")&&_.Z5(e,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},e])};
_.iQ=function(e){_.G("enable_ypc_spinners")&&_.Z5(e,"yt-close-popup-action",["yt-loading-renderer"])};
yB6=function(e){return new Promise(function(g,c){_.b3({verifyCommand:{recaptchaToken:e.recaptchaResponse}},{commandController:{onSuccess:function(k,I){I||c("ChallengeService did not return a response.");var J;g({challengeCompleted:(J=I.verified)!=null?J:!1})},
onServerError:function(k,I){c(I)}}})})};
Krv=function(e,g,c,k){g({recaptchaResponse:k}).then(function(I){I.challengeCompleted?_.a$()?(c(3),_.Ss().resolve(_.xk).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:e}})):c(2):c(4)},function(){c(4)})};
MeK=function(e,g,c){_.D5(_.jw(OI6,_.uo("HL")),function(){var k;(k=window.grecaptcha)==null||k.ready(function(){var I=window.grecaptcha;I?(c(I.render(e,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Krv.bind(null,e,yB6,g)})),g(1)):g(4)})})};
C5V=function(e,g){return function(){switch(g()){case 0:return e().captchaLoadingMessage;case 1:return e().challengeReason;case 3:return e().captchaSuccessfulMessage;case 2:return e().captchaCookieSetFailureMessage;case 4:return e().captchaFailedMessage;default:return e().challengeReason}}()};
_.Pj=function(){if(!e0A){var e=document.querySelector("#player.skeleton");e&&(_.ev(e),e0A=!0)}};
_.cnp=function(){return gTA=h$e()};
Jne=function(){return _.r(function(e){return kaq!==void 0?e.return():e.yield(IWt(),0)})};
IWt=function(){return _.r(function(e){if(e.nextAddress==1)return e.yield(GkU(),2);gTA=e.yieldResult;kaq=_.ft.addLowPriorityJob(IWt,5E3);_.Uh(e)})};
rnC=function(e){var g=g===void 0?vTz:g;var c,k,I=(c=e.responseContext)==null?void 0:(k=c.mainAppWebResponseContext)==null?void 0:k.trackingParam;if(!I){g.increment("MISSING");var J,q,L,n,R,W;_.mN(new _.E2("282054944_a",{qJQ:!!((J=e.responseContext)==null?0:(q=J.mainAppWebResponseContext)==null?0:q.loggedOut),kG3:((L=e.responseContext)==null?void 0:L.mainAppWebResponseContext)===void 0,wPn:e.responseContext===void 0,cp:(n=e.playabilityStatus)==null?void 0:n.contextParams,pKd:(((R=e.streamingData)==
null?void 0:R.formats)||[]).length>0,sfQ:(((W=e.streamingData)==null?void 0:W.adaptiveFormats)||[]).length>0,os:!!e.offlineState,cotn:e.cotn}));return 2}c="";try{c=w0v(I)}catch(X){return g.increment("C_ERROR"),_.jW(X),2}try{var b=_.VKV(c);var h=qiW(b)}catch(X){return g.increment("P_ERROR"),_.jW(X),2}h=_.z1(h,LjK,1,_.HH());I=[];h=_.w(h);for(b=h.next();!b.done;b=h.next())k=b.value,b=k.getPath(),c=(0,_.n0.getValueByKeys)(e,b.split(".")),c=String(c===void 0||c===null?"":c),k=k.getValue()||"",J=/[+\-\/_]/g,
c.replace(J,"")!==k.replace(J,"")&&(g.increment("MISMATCH"),_.G("ab_mis_log_err")&&(c=new _.E2("282054944_p",{ecE:b,g:String(c),e:String(k)}),_.jW(c)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(b)||(b.match(/enforcementMessageViewModel/i)?I.push(3):I.push(2)));if(I.length>0)return Math.max.apply(Math,_.KY(I));g.increment("SUCCESS");return 1};
R0U=function(e){var g=new mg;if(e.interpreterJavascript){var c=_.YzU(e.interpreterJavascript);c=nY(c).toString();var k=new aWV;_.vH(k,6,c);_.sx(g,1,k,FM)}else e.interpreterUrl&&(c=_.j6(e.interpreterUrl),c=_.QP(c).toString(),k=new _.nTC,_.vH(k,4,c),_.sx(g,2,k,FM));e.interpreterHash&&_.pL(g,3,e.interpreterHash,FM);e.program&&_.pL(g,4,e.program,FM);e.globalName&&_.pL(g,5,e.globalName,FM);e.clientExperimentsStateBlob&&_.pL(g,7,e.clientExperimentsStateBlob,FM);return g};
TM=function(e){var g={};e=_.w(e.split("&"));for(var c=e.next();!c.done;c=e.next())c=c.value.split("="),c.length===2&&(g[c[0]]=c[1]);return g};
ET6=function(e){return Number(e.t)||7200};
Wjz=function(){var e=e===void 0?window:e;var g,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(YIt(),2);g=e;c=g.bgevmc;if(!c)throw Error("li");return k.return({pause:function(){c.p()},
resume:function(){c.r()},
checkForRefresh:function(){return c.cr()}})})};
$N6=function(){if(_.G("bg_st_hr"))return"havuokmhhs-0";var e,g=((e=globalThis.performance)==null?void 0:e.timeOrigin)||0;return"havuokmhhs-"+Math.floor(g)};
lQ=function(e){window.bgens=e};
byz=function(){return new Promise(function(e){var g=window;g.ntpevasrs!==void 0?e(new Ah(g.ntpevasrs)):(g.ntpqfbel===void 0&&(g.ntpqfbel=[]),g.ntpqfbel.push(function(c){e(new Ah(c))}))})};
h0z=function(e){if(_.G("attmusi")&&_.G("attmusi_ue")){e={s:e.sLl.bind(e),ir:e.r8s.bind(e)};var g=window;g.attmp=e;if(g.attmq!==void 0)for(var c=_.w(g.attmq),k=c.next();!k.done;k=c.next())k=k.value,k(e);g.attmq=void 0}else g=e.sLl.bind(e),_.BQ("yt.aba.att",g),e=e.r8s.bind(e),_.BQ("yt.aba.att2",e)};
GaK=function(e){switch(_.tv(e.input)){case _.lm(X0C):var g={};return g.encryptedVideoId=e.innerTubeRequest.externalVideoId,g}return{}};
$7U=function(e){switch(_.tv(e.input)){case _.lm(X0C):if(_.G("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.lm(x7C):if(_.G("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.lm(sT):if(_.G("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&e.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.lm(D7U):var g,c;if(_.G("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((c=_.x((g=e.config)==null?void 0:g.command,_.px))==null?0:c.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.fW8=function(e){var g;if(e.playlistVideoRenderer&&((g=e.playlistVideoRenderer)==null?0:g.engagementBar))return Yi6(e.playlistVideoRenderer.engagementBar);if(_.x(e,FX)){var c;if(e=(c=_.x(e,FX))==null?void 0:c.engagementBar)return Yi6(e)}return""};
Yi6=function(e){if(!e)return"";e=_.x(e,_.jat);if(e==null||!e.actions)return"";e=_.w(e.actions);for(e=e.next();!e.done;e=e.next()){e=_.x(e.value,_.iyU);var g=void 0;if((g=e)==null||!g.itemId)break;return e.itemId}return""};
_.P48=function(e){var g;if(e.playlistVideoRenderer&&((g=e.playlistVideoRenderer)==null?0:g.videoId))return e.playlistVideoRenderer.videoId;if(_.x(e,FX)){var c,k;if(e=(c=_.x(e,FX))==null?void 0:(k=c.playlistItemData)==null?void 0:k.videoId)return e}return""};
_.m7A=function(e){var g;if(e.playlistVideoRenderer&&((g=e.playlistVideoRenderer)==null?0:g.voteCount))return e.playlistVideoRenderer.voteCount;if(_.x(e,FX)){var c,k;if(e=(c=_.x(e,FX))==null?void 0:(k=c.playlistItemData)==null?void 0:k.voteCount)return e}return 0};
_.uQ=function(e,g){return _.Nc(e.entities,"flowStateEntity",g)};
T6t=function(e,g,c,k){var I=void 0;e=_.w(e[g.iconName]||[]);for(var J=e.next();!J.done;J=e.next()){J=J.value;var q=g.iconSize;var L=g.iconStyle;q=!q||q===J[2];var n=p0v[J[0]];k&&k!==J[1]||!q||L&&L!==n?L=!1:I?(L=p0v[J[0]],L=!!g.iconStyle||L==="youtube_outline",q=I.version<=J[1],L=(!!g.iconSize||J[2]===24)&&L&&q):L=!0;L&&(I={name:g.iconName,style:p0v[J[0]],size:J[2],version:J[1],allowMirroring:!!J[3],url:c(g.iconName,J)})}return I};
lWC=function(e,g,c,k){return e+(""+p0v[c[0]]+((k===void 0?0:k)?"_experimental":"")+"/"+g+"/v"+c[1]+"/")+(c[2]+"px.svg")};
An6=function(e){return _.uo("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.uo("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":e};
saq=function(e,g){return lWC("https://fonts.gstatic.com/s/i/",e,g)};
Fj6=function(e,g){return lWC("https://fonts.gstatic.com/s/i/",e,g,!0)};
u2z=function(e,g){return lWC("https://www.gstatic.com/youtube/img/icons/web/",e,g)};
HyK=function(e){var g=e.enabled;var c=e.itemPlaybackModel;var k=e.thumbnailElRef;var I=e.containerElRef;var J=e.options;var q;_.AV(function(){var L=I==null?void 0:I.value;var n,R=(n=k())==null?void 0:n.value,W=c();n=J();if(g&&W&&L&&R&&(n==null?0:n.thumbnail)){var b={data:W,hostElement:L},h,X,D=[].concat(_.KY((h=n.thumbnailOverlays)!=null?h:[]),_.KY((X=W.overlays)!=null?X:[]));X=W.itemPlaybackOptions;h=(X==null?void 0:X.enableRoundedPlayer)||n.enableRounding;X=X==null?void 0:X.disableTimeStatusOverlay;
var f,l,A=(f=W.inlinePlayerData)==null?void 0:f.onVisible,d=(l=W.inlinePlayerData)==null?void 0:l.onSelect;l=n.thumbnail;f=n.accessibilityText||"";W=(W=_.x(A,d7W))&&W.playerDescriptors?W.playerDescriptors:void 0;if(W){A=[];for(d=0;d<W.length;d++){var S=void 0;A.push({inlinePlaybackEndpoint:W[d].inlinePlaybackEndpoint,navigationEndpoint:W[d].navigationEndpoint,thumbnail:(S=W[d].thumbnail)!=null?S:l,thumbnailOverlays:W[d].thumbnailOverlays?W[d].thumbnailOverlays:D,accessibilityText:f})}D=A}else D={inlinePlaybackEndpoint:_.WT(A),
navigationEndpoint:_.WT(d),thumbnail:l,thumbnailOverlays:D,accessibilityText:f};L={mediaRenderer:b,lockupElement:L,thumbnailElement:R,videoPreviewOpts:{videoPreviewData:D,thumbnailSize:n.thumbnailSize,enableRounding:h,mouseleaveCallback:n.mouseleaveCallback,hideTimeDisplay:X}}}else L=void 0;if(L){var V;(V=q)==null||dS(V);q=hC(L);var Q,y;((Q=c())==null?0:(y=Q.inlinePlayerData)==null?0:y.forceImpAutoplay)&&z0U(q)}},"mM6F9");
_.sX(function(){var L;(L=q)==null||dS(L)})};
QaW=function(e){e=atob(e);for(var g=[],c=0;c<e.length;c++)g.push(e.charCodeAt(c));return new Blob([new Uint8Array(g)],{type:"image/png"})};
oT6=function(e,g,c,k){k=k===void 0?"INSERTION_POSITION_UNSPECIFIED":k;return e({targetId:g},function(I){var J,q=(J=I.contents)!=null?J:[];J=c!=null?c:[];var L=U7e(q);switch(k){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},I,{contents:[].concat(_.KY(q.slice(0,L)),_.KY(J),_.KY(q.slice(L+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},I,{contents:[].concat(_.KY(J),_.KY(q))});case "INSERTION_POSITION_LAST":return Object.assign({},I,{contents:[].concat(_.KY(q),_.KY(J))});
default:return I}})};
Viv=function(e,g,c,k,I){I=I===void 0?"RELATIVE_INSERTION_POSITION_AFTER":I;return e({targetId:g},function(J){var q,L=(q=J.contents)!=null?q:[];q=Zye(L,c);if(q<0)return J;q=I==="RELATIVE_INSERTION_POSITION_BEFORE"?q:q+1;return Object.assign({},J,{contents:[].concat(_.KY(L.slice(0,q)),_.KY(k),_.KY(L.slice(q)))})})};
U7e=function(e){var g=e.findIndex(function(c){return _.x(c,_.zM)});
return g>=0?g:e.length};
Zye=function(e,g){return e.findIndex(function(c){a:{c=_.w(Object.values(c));for(var k=c.next();!k.done;k=c.next())if((k=k.value)&&k.targetId){c=k.targetId;break a}c=""}return c===g})};
B6g=function(e,g,c){return e({targetId:g},function(k){var I,J=(I=k.contents)!=null?I:[];return Object.assign({},k,{contents:tie(J,c)})})};
tie=function(e,g){return e.filter(function(c){var k=g.includes;a:{c=_.w(Object.values(c));for(var I=c.next();!I.done;I=c.next())if((I=I.value)&&I.targetId){c=I.targetId;break a}c=""}return!k.call(g,c||"")})};
_.N6C=function(e,g){return{engagementPanelSectionListRenderer:{panelIdentifier:e,identifier:g,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
Sig=function(e,g){e=e.getAvailableAudioTracks();if(e.length)return e==null?void 0:e.find(function(c){var k;return(c==null?void 0:(k=c.getLanguageInfo())==null?void 0:k.getId())===g})};
_.KjU=function(e){var g,c=(g=e.getOption("captions","tracklist",{includeAsr:!0}))!=null?g:[];return c=ynV(c,e)};
Oyz=function(e){return e.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
ynV=function(e,g){g=Oyz(g);if(g==null||!g.length)return e;var c=g.filter(function(q){return q});
g=e.filter(function(q){return q.languageCode.startsWith("en")});
c=_.w(c);for(var k=c.next();!k.done;k=c.next())if(k=k.value,g.length){var I=g[0],J=Object.assign({},I);I.languageCode!==k.languageCode&&(J.displayName=I.languageName+" >> "+k.languageName,J.translationLanguage=k,e.push(J))}return e};
MiU=function(e,g,c){e=_.KjU(e);if(e.length)return c?e.find(function(k){if(typeof(k==null?void 0:k.translationLanguage)==="object"){var I;return((I=k.translationLanguage)==null?void 0:I.languageCode)===g}return!1}):e==null?void 0:e.find(function(k){return k.languageCode===g})};
C4C=function(e){return e.getOption("captions","tracklist",{includeAsr:!0})};
e1A=function(e){var g=e.getAvailableAudioTracks();if(g!=null&&g.length){var c=e.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.KY(g.map(function(k){return{listItemViewModel:{title:{content:k.getLanguageInfo().getName()},isSelected:k.getLanguageInfo().getId()===(c==null?void 0:c.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:k.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
g5g=function(e){return e.getOption("captions","tracklist",{includeAsr:!0})};
cI6=function(e){var g=g5g(e);if(g==null?0:g.length)return g;e.loadModule("captions");return g5g(e)};
kcg=function(e){var g=e.getOption("captions","track");if(g)return g;e.loadModule("captions");return e.getOption("captions","track")};
JIv=function(e){var g=cI6(e);if(g!=null&&g.length){var c=kcg(e),k;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.C_("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(c==null?0:c.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.KY(g.map(function(I){return{listItemViewModel:{title:{content:I.displayName},
isSelected:I.displayName===(c==null?void 0:c.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:I.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.C_("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!c.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!c.translationLanguage&&{selectionText:{content:(c==null?void 0:(k=c.translationLanguage)==null?void 0:k.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Iov(e)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
Iov=function(e){var g=Oyz(e);if(g==null||!g.length)throw Error("Hi");var c=kcg(e);e=g.filter(function(k){return!k.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.KY(e.map(function(k){var I;return{listItemViewModel:{title:{content:k.languageName},isSelected:k.languageName===(c==null?void 0:(I=c.translationLanguage)==null?void 0:I.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:k.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
LJ8=function(e){return new Promise(function(g,c){if(e===void 0)_.jW(Error("Li"),"ERROR"),c(Error("Li"));else{c=new _.v5U;var k=_.wCq();c=c.init();var I=_.q$p(_.uo("YPC_MB_URL"),!0);Promise.all([c,I]).then(function(){var J=_.Hj.payments.business.integration.ClientTokenFactory.createClientToken(e,k);g(J)})}})};
n56=function(e,g,c,k,I,J,q){var L=_.i6();c=c.replace(/-/g,"+").replace(/_/g,"/");var n=_.ch().get("hl"),R=_.Q5(_.Tb),W=g==null?void 0:g.element;W&&_.jl(W);rIt(g,!0);_.aoK(R,c,L.resolve,function(){W&&_.iQ(W)},function(b){W&&_.iQ(W);
L.reject(b)},n,k?function(b){k&&_.jt(e,k,{backend_analytics:b})}:void 0,L.resolve,I,J,q);
return L.promise};
rIt=function(e,g){!(e=e==null?void 0:e.element)||e.tagName!=="YT-BUTTON-RENDERER"&&e.tagName!=="YTD-BUTTON-RENDERER"||(e.disabled=g)};
R1z=function(){var e=_.C_("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.uB(e),actionButton:{buttonRenderer:X3e()}}},popupType:"TOAST"}};
E5K=function(){var e=_.C_("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.uB(e),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
WJe=function(e){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:e}]}}};
UT=function(e,g,c,k){var I;return _.r(function(J){if(J.nextAddress==1)return _.lj(J,2),J.yield(e,4);if(J.nextAddress!=2)return(I=_.Iq(g.getState().entities).length>0)?J.return({title:_.uB(_.C_("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.uB(_.C_("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:hnK()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
J.return(GNg(c,k));_.Qb(J);return J.return(GNg(c,k))})};
bGA=function(e,g){return g?g==="PPSV"||Bm6(e,g):!1};
h1W=function(e){e.responseContext||(e.responseContext={});e.responseContext.maxAgeSeconds=0;return e};
ZZ=function(e){var g;return _.r(function(c){return c.nextAddress==1?c.yield(XCe(e,"service:topbar:fallback"),2):(g=c.yieldResult)&&_.om(g)?c.return(h1W(_.om(g))):c.return()})};
GcA=function(e){var g;return _.r(function(c){return c.nextAddress==1?c.yield(XCe(e,"service:downloads_settings:fallback"),2):(g=c.yieldResult)&&_.om(g)?c.return(g):c.return()})};
XCe=function(e,g){var c;return _.r(function(k){if(k.nextAddress==1)return e?k.yield(e.get(g),2):k.return();c=k.yieldResult;return!c||!_.om(c)||!isNaN(Number(c.data.expireTimestampMs))&&c.isExpired()?k.return():k.return(c)})};
xi8=function(e){var g=_.Ss().resolve(V5).getState().entities;return e.playlistId?bGA(g,e.playlistId):!1};
$iW=function(e){var g=_.MN("web_pbj_log_warning_rate",0);g=g>0&&Math.random()<g;if(!_.x(e,_.eh))return g&&_.mN(Error("ej")),!1;var c;return _.G("shorts_controller_retrieve_seedless_sequence_v2")&&((c=_.x(e,_.eh))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:DiW(e)?!0:(g&&_.mN(Error("fj")),!1)};
DiW=function(e){var g=(_.x(e,_.Pm)||_.x(e,_.eh)).videoId;if(!g||!Y$A.test(g))return!1;var c;return(e=(c=_.x(e.commandMetadata,_.OM))==null?void 0:c.url)&&(e.includes(g)||e.startsWith("/clip"))?!0:!1};
_.jiK=function(){var e=_.ch();return e.getFlag(192)?e.getFlag(190):!(_.Im("web_watch_cinematics_disabled_by_default")||_.Im("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&foq())};
_.th=function(e,g,c){var k={};k.currentUrl=g;k.vis=e.vis!==void 0?e.vis:0;k.splay=!1;g=_.ch();k.autoCaptionsDefaultOn=g.getFlag(66);g.getFlag(141)?g.getFlag(140)?k.autonavState="STATE_OFF":k.autonavState="STATE_ON":k.autonavState="STATE_NONE";k.html5Preference="HTML5_PREF_WANTS";isNaN(_.uo("STS"))||(k.signatureTimestamp=_.uo("STS"));e.autonav&&(k.autoplay=!0,k.autonav=!0);e.mutedAutoplay&&(k.autoplay=!0,k.mutedAutoplay=!0);e.inlinePlayback&&(k.autoplay=!0,k.autonav=!1,k.isInlineUnmutedPlayback=!!e.inlineUnmuted);
k.referer=c;k.lactMilliseconds=e.lact!==void 0?e.lact.toString():"-1";_.G("enable_unknown_lact_fix_on_html5")&&k.lactMilliseconds==="-1"&&_.mN(new _.E2("Unknown LACT is set in playbackContext.",{"lact in tempData":e.lact||"undefined",autonav:e.autonav||"undefined"}));e={};g.getFlag(194)&&(e.hasShownAmbientMode=!0);g.getFlag(192)&&(e.hasToggledOffAmbientMode=!0);_.jiK()&&(e.watchAmbientModeEnabled=!0);k.watchAmbientModeContext=e;return k};
iG6=function(e){var g={},c=e.pbis||0;c&&(g.playbackBeginsInSeconds=c);e.prefetch_reason&&e.prefetch_reason==="hc_pbis"&&(g.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return g};
PM6=function(e,g){var c;if(g==null?0:(c=g.requestTemplate)==null?0:c.panelId)e.panelId=g.requestTemplate.panelId;var k;if(g==null?0:(k=g.requestTemplate)==null?0:k.params)e.params=g.requestTemplate.params};
pCv=function(){if(mit)return mit();var e=!_.G("idb_response_store_auth_killswitch"),g={};mit=Sn("yt-it-response-store",{objectStores:(g.ResponseStore={addedAtVersion:1},g),shared:!e,upgrade:function(c,k){k(1)&&(c=At(c,"ResponseStore",{keyPath:["key","clientName"]}),sn(c,"byExpiration","expireTimestampMs"),sn(c,"byInterface","clientName"))},
version:1});return mit()};
Bj=function(e){return _.Qr(pCv(),e)};
lo6=function(e,g){var c;return _.r(function(k){return k.nextAddress==1?k.yield(_.Nl(),2):(c=k.yieldResult)?k.return(new TfA(e,g,c)):k.return()})};
AI8=function(e){var g=Object.keys(e)[0];if(g)return e.screenExit&&(g=g+";"+e.screenExit.screen),g};
siV=function(e){var g=new Map;e=_.w(e);for(var c=e.next();!c.done;c=e.next())c=c.value,c!=null&&(g.has(c.taskType)||g.set(c.taskType,[]),g.get(c.taskType).push(c));return g};
FJC=function(e){e=[].concat(_.KY(e)).sort(function(c,k){return c-k});
var g=Math.floor(e.length/2);return e.length%2?e[g]:(e[g-1]+e[g])/2};
z1C=function(e,g){e=e===void 0?W3z:e;g=g===void 0?{}:g;_.BQ("yt.logging.errors.log",_.jW);Rcq();uUU(xyA(),g);window.onerror=e;diK=EuC;window.addEventListener("unhandledrejection",function(c){if(c.reason instanceof Error){var k=c.reason;_.pB(k,{source:"unhandledrejection"});k.name==="AbortError"&&(k.level="WARNING")}EuC(c.reason);c.preventDefault()})};
_.HGC=function(e){var g,c,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y,O,Jq,LC,bW,RA,Xg,Fg,oA,Zt,Ev,an,V6,bs,f1,hk,Pq,vq,hq;return _.r(function(zv){if(zv.nextAddress==1)return zv.yield(_.CA(e,{mode:"readonly",enableRetries:!0},function(XM){return eo(XM,"playbackData").then(function(Su){var p1=Su.map(function(Rx){return Rx.transfer}).filter(function(Rx){return!!Rx}),C1=Su.map(function(Rx){return Rx.offlineVideoPolicy}).filter(function(Rx){return!!Rx}),mz=Su.filter(function(Rx){return!!Rx.key}).map(function(Rx){return _.Bh(_.ZO(Rx.key).entityId,
"downloadStatusEntity")});
p1=eo(XM,"transfer",p1);C1=eo(XM,"offlineVideoPolicy",C1);mz=eo(XM,"downloadStatusEntity",mz);var Ov=p1.then(function(Rx){Rx=Rx.reduce(function(V4,to){(to==null?0:to.offlineVideoStreams)&&V4.push.apply(V4,_.KY(to.offlineVideoStreams));return V4},[]).filter(function(V4){return!!V4});
return eo(XM,"offlineVideoStreams",Rx)});
return AK.all([p1,C1,Ov,mz]).then(function(Rx){var V4=_.w(Rx);Rx=V4.next().value;var to=V4.next().value;var L1=V4.next().value;V4=V4.next().value;return[Su,Rx,to,L1,V4]})})}),2);
if(zv.nextAddress!=3)return g=zv.yieldResult,zv.yield(_.CA(e,{mode:"readonly",enableRetries:!0},function(XM){return eo(XM,"mainDownloadsListEntity").then(function(Su){var p1,C1;return(C1=(p1=Su[0])==null?void 0:p1.downloads)!=null?C1:[]})}),3);
c=zv.yieldResult;k=_.w(g);I=k.next().value;J=k.next().value;q=k.next().value;L=k.next().value;n=k.next().value;R=I;W=J;b=q;h=L;X=n;D={};f={};l={};A={};d={};S=[];V=_.w(W);for(Q=V.next();!Q.done;Q=V.next())(y=Q.value)&&(D[y.key]=y);O=_.w(b);for(Jq=O.next();!Jq.done;Jq=O.next())(LC=Jq.value)&&(f[LC.key]=LC);bW=_.w(X);for(RA=bW.next();!RA.done;RA=bW.next())(Xg=RA.value)&&(l[Xg.key]=Xg);Fg=_.w(h);for(oA=Fg.next();!oA.done;oA=Fg.next())(Zt=oA.value)&&(A[Zt.key]=Zt);Ev=_.w(c);for(an=Ev.next();!an.done;an=
Ev.next())V6=an.value,bs=void 0,d[(bs=V6.videoItem)!=null?bs:""]=!0,V6.videoItem&&(hk=f1=void 0,Pq=(hk=(f1=_.ZO(V6.videoItem))==null?void 0:f1.entityId)!=null?hk:"",S.push({externalVideoId:Pq}));vq=R.filter(function(XM){if(!XM||!XM.key||!XM.offlineVideoPolicy)return!1;XM=_.ZO(XM.key).entityId;XM=_.Bh(XM,"downloadStatusEntity");var Su;return!(XM&&((Su=l[XM])==null?void 0:Su.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
hq=vq.map(function(XM){var Su=D[XM.transfer],p1=[];if(Su==null?0:Su.offlineVideoStreams)for(var C1=_.w(Su.offlineVideoStreams),mz=C1.next();!mz.done;mz=C1.next())(mz=A[mz.value])&&p1.push(mz);C1=f[XM.offlineVideoPolicy];mz=d;var Ov=XM==null?void 0:XM.playerResponseTimestamp,Rx=_.ZO(C1.key).entityId;XM=_.Bh(Rx,"mainVideoEntity");if(C1.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var V4="OFFLINE_VIDEO_STATE_DISABLED";C1.expirationTimestamp&&Number(C1.expirationTimestamp)<Date.now()/1E3&&(V4="OFFLINE_VIDEO_STATE_EXPIRED")}else if(C1.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")V4="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Su==null?void 0:Su.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":V4="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":V4="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":V4="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":V4="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":V4="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":V4="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:V4="OFFLINE_VIDEO_STATE_UNKNOWN"}if(V4==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Su==null?void 0:Su.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":V4="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":V4="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":V4=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Rx={id:Rx,videoState:V4};if(Su==null?0:Su.cotn)Rx.cotn=Su.cotn;if(Su==null?0:Su.maximumDownloadQuality)Rx.selectedVideoQuality=Su==null?void 0:Su.maximumDownloadQuality;if(Su==null?0:Su.lastProgressTimeMs)Rx.lastProgressTimeMs=Su.lastProgressTimeMs;Ov&&(Rx.playerResponseSavedTimeMs=String(Number(Ov)*1E3));Su=String;Ov=0;p1=_.w(p1);for(V4=p1.next();!V4.done;V4=p1.next())if(V4=V4.value,V4.streamsProgress){V4=_.w(V4.streamsProgress);for(var to=V4.next();!to.done;to=
V4.next()){var L1=void 0;Ov+=Number((L1=to.value.numBytesDownloaded)!=null?L1:0)}}Rx.downloadedBytes=Su(Ov);Rx.selectedOfflineMode=mz[XM]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";C1.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Rx.offlinePlaybackDisabledReason=C1.offlinePlaybackDisabledReason);return Rx});
return zv.return({offlineVideos:hq,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:S}}})})};
Qip=function(){var e;return _.r(function(g){return g.nextAddress==1?g.yield(_.KA(),2):(e=g.yieldResult)?g.return(_.HGC(e)):g.return({state:"PES Unavailable"})})};
ZGz=function(){var e,g,c,k;return _.r(function(I){if(I.nextAddress==1)return I.yield(_.KA(),2);if(I.nextAddress!=3)return(e=I.yieldResult)?I.yield(UiC(e),3):I.return({state:"PES Unavailable"});g=I.yieldResult;c={};k=g.reduce(function(J,q){J[q.key]=q;return J},c);
return I.return(o5C(k))})};
o5C=function(e){for(var g={},c=[],k=_.w(Object.keys(e)),I=k.next();!I.done;I=k.next()){var J=I.value;I=e[J];var q=void 0;if(((q=I)==null?void 0:q.entityType)==="mainVideoEntity"){delete e[J];var L=I.data;I={};if(L){var n=void 0;q=(n=L.videoId)!=null?n:"vid-"+J;J=e;I.video=L;delete I.video.formattedDescription;delete I.video.thumbnail;L.owner&&(n=J[L.owner],n==null?0:n.data)&&(delete J[n.key],I.video.owner=n.data,delete I.video.owner.avatar);if(L=L.downloadState)if(n=J[L],n==null?0:n.data)if(delete J[L],
L=n.data.playbackData)if(n=J[L],n!=null&&n.data){delete J[L];L=n.data;delete L.playerResponseJson;I.playbackData=L;if(L.transfer&&(n=J[L.transfer],n==null?0:n.data)){delete J[n.key];var R=n.data;I.transfer=R;n=[];R=_.w(R.offlineVideoStreams||[]);for(var W=R.next();!W.done;W=R.next())if(W=J[W.value])delete J[W.key],n.push(W.data);n&&(I.streams=n)}(L=L.offlineVideoPolicy)&&(L=J[L])&&L.data&&(delete J[L.key],I.offlineVideoPolicy=L.data)}g[q]=I}}else I&&I.entityType==="offlineOrchestrationActionWrapperEntity"&&
I.data&&(delete e[I.key],q=I.data,J=void 0,c.push({id:q.rootActionId,type:((J=q.actionProto)==null?void 0:J.actionType)||"",entity:I}))}g.wrapperEntities=c;Object.keys(e).length>0&&(g.unknownKeys=e);return g};
V1K=function(){var e,g,c,k,I,J,q,L,n;return _.r(function(R){if(R.nextAddress==1)return e=(new _.pt("")).hasLocalStorage(),k=!!((g=_.kp.crypto)==null?0:(c=g.subtle)==null?0:c.importKey),I=!!_.kp.BroadcastChannel,J=!!_.kp.navigator.locks,R.yield(NqA(),2);q=R.yieldResult;L=e&&k&&I&&J&&q;n={isSupported:L};if(L)return R.return(n);n.missingBrowserFeatures=[];q||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");e||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
k||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");I||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");J||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return R.return(n)})};
t1K=function(e,g,c,k){var I=!1,J={contentId:void 0,contentType:"video"};g=_.w(Object.entries(g));for(var q=g.next();!q.done;q=g.next()){var L=_.w(q.value);q=L.next().value;L=L.next().value;e.includes(q)&&!c.has(L)?(J.contentId=L,c.add(L),I=!0):q==="contentType"?L==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(J.contentType="playlist"):typeof L==="object"&&L!==null&&t1K(e,L,c,k)}I&&k.push(J)};
Bfp=function(){var e;return!((e=N1?N1:null)==null||!e.window)};
_.yIV=function(e){if(_.Nfq()){var g=_.S$g().mediaSession;try{g.setActionHandler("enterpictureinpicture",function(c){e(c)})}catch(c){}}};
_.Nfq=function(){return!(!N1||!N1)&&pC()&&_.YCC("Chromium")>=120};
KJW=function(e){for(var g=[],c=_.w(document.styleSheets),k=c.next(),I={};!k.done;I={node$jscomp$779:void 0},k=c.next())I.node$jscomp$779=k.value.ownerNode,I.node$jscomp$779&&(I.node$jscomp$779 instanceof HTMLStyleElement||I.node$jscomp$779 instanceof HTMLLinkElement)&&g.push(new Promise(function(J){return function(q){var L=J.node$jscomp$779.cloneNode(!0);L.onload=function(){q()};
L.onerror=function(){_.mN(Error("xj"));q()};
e.document.head.appendChild(L)}}(I)));
return Promise.all(g)};
v6e=function(e){var g=[_.Ya(OGW),_.Ya(M1v),_.Ya(CMW)];eiC(window.document.documentElement,e.document.documentElement,[_.Ya(g6K),_.Ya(cNv),_.Ya(kwC),_.Ya(InA),_.Ya(JNW)]);eiC(window.document.body,e.document.body,g)};
eiC=function(e,g,c){e=_.w(e.attributes);for(var k=e.next();!k.done;k=e.next())if(k=k.value)try{_.bj(c,g,k.name,k.value)}catch(I){}};
q6W=function(e,g){e=new _.Sl(e.document.documentElement);e.start(wBW,g);return e};
LSt=function(e){var g=e.document.documentElement;g.addEventListener("click",function(c){ZRW(g,c)});
g.addEventListener("touchstart",function(c){SWg(c)});
g.addEventListener("mousedown",function(c){SWg(c)})};
anU=function(e,g,c,k){k=k===void 0?!1:k;g=new rNW(g||e,c||e);return{x:e.x+((k===void 0?0:k)?g.lengthX*-1:g.lengthX)*.2,y:e.y+((k===void 0?0:k)?g.lengthY*-1:g.lengthY)*.2}};
n6g=function(e){if(!e)return!1;var g=e.status==="OK"||e.status==="LIVE_STREAM_OFFLINE",c,k,I,J=(I=(c=e.errorScreen)==null?void 0:c.playerLegacyDesktopYpcTrailerRenderer)!=null?I:(k=e.errorScreen)==null?void 0:k.ypcTrailerRenderer;return!!g||!!J};
_.RiK=function(e,g){if(!e)return!1;var c,k=(c=e.errorScreen)==null?void 0:c.playerLegacyDesktopYpcOfferRenderer,I;g=!!(g==null?0:(I=g.playerOverlayRenderer)==null?0:I.gatedActionsOverlayRenderer);return!!n6g(e)||!!k||!!g};
E6q=function(e){return cuW(e,0,"gclid",e.search(ksU))>=0||cuW(e,0,"gad_source",e.search(ksU))>=0};
WSA=function(e){var g=[],c=0;return{clear:function(){c=g.length=0},
push:function(k){g[c]=k;c=(c+1)%e},
iterate:function(){return function I(){var J,q,L,n;return _.y5(I,function(R){switch(R.nextAddress){case 1:_.ze(R,2),J=g.length,q=0;case 4:if(!(q<J)){R.jumpTo(2);break}L=c+q;n=_.KL;return R.yield(g[L%J],7);case 7:n(R.yieldResult);q++;R.jumpTo(4);break;case 2:_.sh(R),_.HA(R,0)}})}()}}};
bF6=function(e){e.eventsToIgnore||(e.eventsToIgnore=[]);var g=e.eventsToIgnore.map(Bu6),c=new Set(g),k=WSA(e.bufferSize);return{flush:function(){var I=Array.from(k.iterate());k.clear();I=I.map(function(J){return{name:J.name,timestamp:J.startTime,attributes:J.attributes}});
return JSON.stringify(I)},
onSpanStart:function(I){I.name==="event"&&c.has(I.attributes.type)||k.push(I)}}};
hiV=function(e){e=bF6(e);var g=e.flush;c$C({onSpanStart:e.onSpanStart});lf.subscribe("handleError",function(c){try{c.params.breadcrumbs=g()}catch(k){_.jW(k,"WARNING")}})};
XBC=function(){Rt("web_tracing_action");_.EV("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
GwK=function(){Rt("web_tracing_action");_.EV("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
$SA=function(e,g,c,k){if(g===void 0){xSK||(GwK(),setInterval(GwK,6E5),xSK=!0);var I="web_tracing_action"}else I=g;var J,q=((J=e.endTime)!=null?J:e.startTime)-e.startTime;J={};c=DSU(e.name,q,e.startTime,{webTracing:(J[e.name]=e.attributes,J)},c,I,{spanStatus:e.status,rootSpanNonce:void 0});if(e.children)for(e=_.w(e.children),I=e.next();!I.done;I=e.next())$SA(I.value,g,c,k||c)};
Y6p=function(e){var g=qHt.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(c){c.data&&typeof c.data==="object"&&(c=c.data,c.from==="extension"&&c.app==="yt.telemetry"&&(g("Received message from extension",c),e.onMessage(c)))});
return function(c,k){c={app:"yt.telemetry",from:"app",key:c,payload:k};g("Sending message to extension",c);window.postMessage(c,"*")}};
fn6=function(){var e=e===void 0?3E3:e;var g=Y6p({onMessage:function(){}}),c=[];
return{onSpanEnd:function(k){k.parentId==null&&c.push(k)===1&&setTimeout(function(){var I=[].concat(_.KY(c));c.length=0;g("spansReported",{spans:I})},e)}}};
jN6=function(e){e=e===void 0?400:e;var g=[],c=[];return{start:function(){return cDC({checkoutEveryNth:e,emit:function(k,I){I&&(g=c,c=[]);c.push(k)},
blockSelector:'img, video, audio, source, picture, [style*="background"][style*="url"]',maskAllInputs:!0,maskTextSelector:"*"})},
getRecording:function(){return[].concat(_.KY(g),_.KY(c))}}};
mSU=function(){(new iFK({sessionReplayEvents:_.MN("web_tracing_session_replay",0)})).subscribe(function(e){if(e.sessionReplayEvents>0)try{var g=jN6(e.sessionReplayEvents);g.start();var c=console.log;window.exportSessionReplay=function(){var k=JSON.stringify(g.getRecording(),null,2);k=Pit(new Blob([k],{type:"text/plain"}));var I=document.createElement("a");I.download="session_replay.json";I.dataset.downloadurl=["application/json",I.download,I.href].join(":");I.style.display="none";I.href=k;I.click();
URL.revokeObjectURL(k);c("View replay at go/yt-session-replay-viewer")}}catch(k){_.mN(Error("zj"))}})};
TIg=function(){var e=window.fetch;window.fetch=function(){var g=_.Mb.apply(0,arguments),c=_.w(g),k=c.next().value;c=c.next().value;var I=_.Q1("httpEvent",{method:(c===void 0?{}:c).method||"GET",path:pBW(k),type:"fetch"},{active:!1});return e.apply(null,_.KY(g)).then(function(J){I.addAttributes({statusCode:J.status,statusText:J.statusText});I.end();return J}).catch(function(J){I.end("SPAN_STATUS_ERROR");
throw J;})}};
lnC=function(){var e=XMLHttpRequest.prototype.open,g=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(c,k,I,J,q){var L=this;I=I===void 0?!0:I;this._requestData={method:c,url:k.toString()};this.addEventListener("load",function(){var n=L._span;n==null||n.addAttributes({statusCode:L.status,responseContentLength:L.responseText.length});n==null||n.end()});
this.addEventListener("error",function(){var n=L._span;n==null||n.addAttributes({statusCode:L.status,statusText:L.statusText});n==null||n.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var n=L._span;n==null||n.addAttributes({statusCode:L.status,aborted:!0});n==null||n.end()});
e.apply(this,[c,k,I,J,q])};
XMLHttpRequest.prototype.send=function(c){var k=this._requestData||{method:"N/A",url:"N/A"};this._span=_.Q1("httpEvent",{method:k.method,path:pBW(k.url),type:"xhr"},{active:!1});g.apply(this,[c])}};
pBW=function(e){try{if(e instanceof URL)return e.pathname;e instanceof Request&&(e=e.url);return(new URL(e,"https://youtube.com")).pathname}catch(g){return"<unable to parse path>"}};
sNz=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var e=window.performance.getEntriesByType("navigation");if(e.length>0){var g=e[0],c=window.performance.timeOrigin;_.Q1("pageLoad",{navigationType:ANA(g.type),unloadEventStart:Math.round(g.unloadEventStart),unloadEventEnd:Math.round(g.unloadEventEnd),domInteractive:Math.round(g.domInteractive),domContentLoadedEventStart:Math.round(g.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(g.domContentLoadedEventEnd),
domComplete:Math.round(g.domComplete),loadEventStart:Math.round(g.loadEventStart),loadEventEnd:Math.round(g.loadEventEnd),redirectCount:g.redirectCount},{active:!1,startTime:c+g.startTime,endTime:c+g.loadEventEnd})}}catch(k){}})};
ANA=function(e){switch(e){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
HFz=function(){for(var e=FSp.value,g={},c=_.w(e.enabledSpansArray),k=c.next();!k.done;k=c.next())g[k.value]=!0;gqz({sessionId:IUC(),enabledSpans:g,shouldSampleFn:function(I,J,q){if(u0C){var L;return I==="shortToShort"||(q==null?void 0:(L=q.rootSpan())==null?void 0:L.name)==="shortToShort"}return!0}});
wl8();Hm("pageLoad")&&sNz();Hm("httpEvent")&&(TIg(),lnC());e.exportToCsi&&c$C(dSC);e.exportToDevTools&&c$C(fn6());e.maxBreadcrumbs>0&&hiV({eventsToIgnore:ziA,bufferSize:e.maxBreadcrumbs})};
QNA=function(e){return new Promise(function(g){window.setTimeout(g,e)})};
USg=function(e){var g={bicf:function(J){e.qHx=J},
blc:function(){return e.getLatestChallengeResponse()},
bcr:function(J){e.kjM.push(J)}},c=window;
c.ntpevasrs=g;if(c.ntpqfbel!==void 0)for(var k=_.w(c.ntpqfbel),I=k.next();!I.done;I=k.next())I=I.value,I(g);c.ntpqfbel=void 0};
o6C=function(e){return _.r(function(g){if(g.nextAddress==1)return _.lj(g,2),g.yield(e.cfP(),4);if(g.nextAddress!=2)return _.zn(g,0);_.Qb(g);_.Uh(g)})};
ZFC=function(e){var g,c;(g=e.ytcsi)==null||(c=g.tick)==null||c.call(g,"pot_ist")};
VmC=function(e){if(e instanceof Error){var g=_.Q0("yt.logging.errors.log");g&&g(e,"WARNING")}};
tm8=function(e){try{var g=JSON.parse(e);if(g.bgChallenge)return g}catch(c){}};
NI6=function(){var e=window,g={networkStatusManagerPromise:_.Ss().resolve(new A5W(_.zI)),initialChallengeSli:_.G("wpo_att_sli")?new _.YE6("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};e=e===void 0?window:e;var c=e.ytAtR,k;g==null||(k=g.initialChallengeSli)==null||_.OT(k);if(c){if(c=tm8(c)){var I;g==null||(I=g.initialChallengeSli)==null||_.M1(I,"SUCCESS");BI6(c,g)}e.ytAtR=void 0}else e.ytAtRC=function(J){if(J=tm8(J)){var q;g==null||(q=g.initialChallengeSli)==null||
_.M1(q,"SUCCESS");BI6(J,g);e.ytAtRC=void 0}}};
KSt=function(){if(S6K)return S6K;try{var e=_.C0("IFRAME");_.vA(e,_.jw(yNK));e.sandbox.add("allow-same-origin");e.style.display="none";document.body.appendChild(e);return S6K=e}catch(g){e=new _.E2("Failed to create sandbox iframe"),_.jW(e)}};
OFA=function(){return function(e,g){_.uo("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[e]=g}};
MmA=function(){return function(e,g){var c={};c[e]=g;e=_.HV(_.VMW)(c);Object.keys(e).length>0&&_.nA(e)}};
gSC=function(){if(_.zZ6()==="hidden")var e="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else _.zZ6()==="visible"&&(e="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",Civ=null);e&&eS6(e)};
eS6=function(e){if(e==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||e==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(cH6===e)return;cH6=e}var g=9E4+Math.random()*2E3;if(e!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.S6()>g)&&_.zZ6()==="visible"){g=-1;Civ&&(g=Math.round((0,_.yr)()-Civ));var c=String;var k=_.Q0("_fact",window);k=k==null||k==-1?-1:Math.max(Date.now()-k,0);_.Y2("foregroundHeartbeat",{firstActivityMs:c(k),clientDocumentNonce:JRt,index:String(kVg),lastEventDeltaMs:String(g),trigger:e});
_.BQ("_fact",-1,window);kVg++;Civ=(0,_.yr)()}};
Iap=function(e,g,c,k,I,J){g=new Uint8Array(g);if(e.length===0)return g;var q=0;I=I!=null?I:e.length-1;for(var L=c;L<=I;L++){var n=e[L],R=L===c?k:0,W=void 0,b=L===I?(W=J)!=null?W:n.length:n.length;n=n.subarray(R,b);g.set(n,q);q+=n.length}return g};
vSC=function(){typeof window.queueMicrotask!=="function"&&(window.queueMicrotask=function(e){return JHV.then(e)})};
_.weK=function(){try{return!!self.sessionStorage}catch(e){return!1}};
qlg=function(){var e=navigator;return new Promise(function(g,c){var k;(k=e.webkitTemporaryStorage)!=null&&k.queryUsageAndQuota?e.webkitTemporaryStorage.queryUsageAndQuota(function(I,J){g({usage:I,quota:J})},function(I){c(I)}):c(Error("Ij"))})};
LUV=function(e,g){var c={errorSeverity:g.errorSeverity.toString(),wizFeatureFlags:Object.entries(g.featureFlags).join("\n")};nut(g,c);g=g.errorSeverity;g===3?_.jW(e,"ERROR",void 0,void 0,void 0,c):g===2&&_.jW(e,"WARNING",void 0,void 0,void 0,c);_.G("cow_if_errors_in_popup")&&g===3&&e.message.indexOf("<If>")!==-1&&window.alert(e.message)};
rHq=function(e,g){var c=lB.get(e)||{layerNode:g};c.layerNode=g;jDp(e,c);e.getScreenLayer=function(){return CL(c.layerNode)}};
aaW=function(e){var g;e=e.parentNode;for(var c;e&&((g=lB.get(e))==null||!g.isRenderer)&&!((c=e.polymerController)!=null?c:e).isRenderer_;)e=e.parentNode||e.host;if(g=e)return lB.get(g)};
nSV=function(e){if(e){lB.delete(e);var g=_.Ss().resolve(t2);WcV(e,g)}};
ES6=function(e,g,c){if(c===void 0?0:c){if(c=e.getAttribute("client-ve-type"),g.data&&!g.disableReactiveLogging||c)_.lu(function(){RSA(e,_.ds(g.data))},"Hg"),_.sX(function(){return void nSV(e)})}else typeof g.data!=="function"&&RSA(e,g.data)};
RSA=function(e,g){WUz++;bKz(e,g)&&_.ft.addJob(function(){_.e$(_.ft,function(){if(bKz(e,g)&&e.ownerDocument.documentElement===document.documentElement&&e){var c;if(e.getAttribute("layer")){var k=c=Number(e.getAttribute("layer")),I=lB.get(e);I?I.layerNode.layer=k:rHq(e,new hSt(k));(k=aaW(e))&&(I=lB.get(e))!=null&&(I.layerNode.parent=k.layerNode)}else if(c=lB.get(e))c=CL(c.layerNode);else{c=CL;k=new hSt;if(I=aaW(e))k.parent=I.layerNode;rHq(e,k);c=c(k)}c!=null||(c=0);k=e.getAttribute("client-ve-type");
I=Number(k);var J=!1;k=!1;var q=lB.get(e),L;if((L=q)&&!(L=q[Xe6]!==g)&&(L=I)){var n;L=((n=lB.get(e))==null?void 0:n.clientVeType)===void 0}L&&(q[Xe6]=g,J=k=q.isRenderer=!0);lB.has(e)&&(lB.get(e).clientVeType=I);e.visualElement&&(k=!0);if(_.G("wiz_next_ld_fix_client_ve_spec")){var R;n=((R=_.x(g==null?void 0:g.rendererContext,_.cT))==null?void 0:R.loggingDirectives)||(g==null?void 0:g.loggingDirectives)}else n=g==null?void 0:g.loggingDirectives;n&&n.clientVeSpec&&(R=GVU(_.CO(),e),R=_.xj6(_.gL(),n,R||
void 0,c))&&(e.visualElement=R);!e.visualElement&&I&&J&&(e.veType=I,R=void 0,_.G("wiz_next_client_ve_parent_fix")&&(R=GVU(_.CO(),e)),R=_.eU(_.gL(),e,R,c),e.visualElement=R);k&&(R=_.Ss().resolve(t2),MY(e,{data:g,observer:R,layer:c,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
bKz=function(e,g){return(g==null?0:g.trackingParams)||(g==null?0:g.loggingDirectives)||_.x(g==null?void 0:g.rendererContext,_.cT)||e.getAttribute("client-ve-type")?!0:!1};
Djp=function(e,g,c){e.componentType!==YF&&c instanceof HTMLElement&&g&&!_.G("cow_logging_in_component_wrapper")&&ES6(c,g,!0)};
faq=function(){if(!$jz){$jz=!0;var e=_.G("enable_wiz_context_per_component")||!1;e=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.G("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:e,enableContextBasedComponentStacks:e},{handleError:LUV,enableComponentStacksInErrorMessages:!1});Object.assign(gs,e);YlC();moA=ohv;jCg=VOV}};
YlC=function(){_.G("cow_logging_in_component_wrapper")?(Ocv=function(e,g){g instanceof HTMLElement&&ES6(g,e,!0)},Roe=function(){}):(Ocv=function(){},Roe=Djp)};
jVt=function(e,g,c){g=g===void 0?{}:g;var k,I=(k=_.x(e.commandMetadata,_.OM))==null?void 0:k.url;k=g.form||{};!c||k.element||k.skipDefaultElement||(g.form=g.form||{},g.form.element=c);if(I&&I!=="/service_ajax")return{type:0,command:e,form:g.form};if(_.G("kevlar_service_command_check")){if(_.fx(_.Ss().resolve(_.kv),e))return Object.assign({},{type:1,command:e},g)}else{var J;if((J=_.x(e.commandMetadata,_.OM))==null?0:J.apiUrl)return Object.assign({},{type:1,command:e},g)}return{type:2,command:e,form:g.form}};
iKK=function(e){if(e.form){var g=e.form,c=Object.assign({},g);g=g.element;c=(delete c.element,c);if(g)return[_.tr(g,[e.command,c,e.commandController])]}return[]};
PIA=function(e){if(e.form){var g=e.form,c=Object.assign({},g);g=g.element;c=(delete c.element,c);g&&_.Bm(g,[e.command],g,c)}};
peK=function(e,g,c){var k=new mjC(e,g),I=new gl(e,g,c);e={"/youtubei/v1/browse":new c2(e,g,c),"/youtubei/v1/player":k,"/youtubei/v1/navigation/resolve_url":new kt,"/youtubei/v1/next":I,"/youtubei/v1/guide":new Id(c),"/youtubei/v1/search":new JA(e,g,c),"/youtubei/v1/reel/reel_item_watch":new v2(e,g,c),"/youtubei/v1/get_watch":new wl(k,I)};e["/youtubei/v1/account/account_menu"]=new qe;e["/youtubei/v1/notification/get_notification_menu"]=new Lu;return e};
ad=function(){var e=_.Ss().resolve(_.rl);return Promise.resolve(Td6(e,_.kp.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
lae=function(e){return e&&(e=_.Zb(_.S5p(e)))?(new URLSearchParams(e)).get("service"):null};
Em=function(e,g){_.HT(_.nu(),function(){_.Wh("adl")});
_.Ss().resolve(AHe)(g);e=e.root;e.loadData&&e.loadData(g);(g==null?0:g.response)?_.M1(iPe(),"SUCCESS"):_.mN(new _.E2("Lifecycle: No response in data",_.dH("IS_SHELL_LOAD"),g?g.page:"NO_PAGE",g?g.endpoint:"NO_ENDPOINT"));e.polymerController.$["page-manager"].lazyPrepareCriticalPages((g==null?void 0:g.page)||"",g.endpoint);var c,k;((k=_.x(g==null?void 0:(c=g.endpoint)==null?void 0:c.commandMetadata,_.OM))==null?0:k.webPageType)&&_.Tt().dispatch(_.Rd(_.x(g.endpoint.commandMetadata,_.OM).webPageType))};
sVz=function(){var e,g;return _.r(function(c){switch(c.nextAddress){case 1:e=window;if(!e.getDataPromise){c.jumpTo(2);break}_.lj(c,3);return c.yield(e.getDataPromise(),5);case 5:return c.return(c.yieldResult);case 3:return _.Qb(c),c.yield(ad(),6);case 6:return c.return(c.yieldResult);case 2:if(e.getInitialData)return g=e.getInitialData(),e.getInitialData=void 0,c.return(g);throw Error("Kj`"+_.kp.location.href);}})};
uyU=function(){_.Fq("CSI_SERVICE_NAME","youtube");_.nA({loadType:"cold"});_.G("kevlar_log_lcp")&&FU6(function(e){_.Wh("lcp",e.value)})};
djV=function(){var e=_.eQ(document.location.href,"enable");e&&e.indexOf("scraper")>-1&&_.Fq("ADD_SCRAPER_ATTRIBUTES",!0)};
oSg=function(e){var g=e.root;e=[zSp,HKq,_.W2];_.G("web_feedback_endpoint_autolog_allowlist_killswitch")&&e.push(_.bn,QVg);UjC(function(c,k){return jVt(c,k,g)},function(c){if(!c.command)return[];
var k;((k=c.form)==null?0:k.element)?c.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},c.form,{endpoint:c.command})})):g.handleNavigate(c);return[]},e);
_.Ss().addProvider({provide:_.xk,useValue:_.yJ.instance})};
VNz=function(){var e={},g={},c;for(c in ZKz){var k=_.w(_.Wa(ZKz[c],void 0,"e17Ccb"));e[c]=k.next().value;g[c]=k.next().value}return[e,function(I){for(var J in I){var q=void 0;(q=g[J])==null||q(I[J])}}]};
_.Nde=function(e,g){var c=!1;c=c===void 0?!1:c;var k=_.n0.getValueByKeys(e,"contents","twoColumnWatchNextResults","results","results","contents"),I=_.n0.getValueByKeys(e,"contents","twoColumnWatchNextResults","playlist","playlist")||null;c&&(I=null);var J=c=null;if(I)c=_.n0.getValueByKeys(I,"titleText"),J=_.n0.unsafeClone(_.n0.getValueByKeys(I,"longBylineText")),k="",J&&(k=_.mp(J)),J=_.PL(k);else if(k){k=_.w(k);for(var q=k.next();!q.done;q=k.next())q=q.value,q.videoPrimaryInfoRenderer&&(c=_.n0.getValueByKeys.apply(_.n0,
[q].concat(_.KY(tN6)))),q.videoSecondaryInfoRenderer&&(J=_.n0.getValueByKeys.apply(_.n0,[q].concat(_.KY(BdC))))}else _.UI(Error("Pj"));var L;e.currentVideoEndpoint?L=e.currentVideoEndpoint:_.UI(Error("Qj"));var n;g&&(n=_.n0.getValueByKeys(g,"playabilityStatus","miniplayer","miniplayerRenderer"));e={miniplayerTitle:c,miniplayerSubtitle:J,watchEndpoint:L,playlistData:I};n&&(e.miniplayerRenderer=n);return e};
Sl8=function(e){if(e)return _.a6(e)};
_.yHV=function(){return{isFullscreen:function(){throw Error("Rj");},
toggleFullscreen:function(){throw Error("Sj");},
exitFullscreen:function(){throw Error("Tj");},
isAutonavEnabled:function(){throw Error("Uj");},
setAutonavEnabled:function(){throw Error("Vj");},
isAutoplaySetExplicitly:function(){throw Error("Wj");}}};
KUA=function(e){return e.videoDuration?e.numTaps>1&&e.tapDirection!==0?_.Pc(e.draggedTime/e.videoDuration,0,1):_.Pc((e.playedTime||0)/e.videoDuration,0,1):0};
OKC=function(e){return e.videoDuration?e.isDragging||e.numTaps>1&&e.tapDirection!==0?_.Pc(e.draggedTime/e.videoDuration,0,1):_.Pc((e.playedTime||0)/e.videoDuration,0,1):0};
CIz=function(e){var g,c,k;return _.x(e==null?void 0:(g=e.markersMap)==null?void 0:(c=g.find(function(I){return I.key==="HEATSEEKER"}))==null?void 0:(k=c.value)==null?void 0:k.heatmap,MNU)};
e8v=function(e){var g,c;return(c=(g=CIz(e))==null?void 0:g.heatMarkersDecorations)!=null?c:[]};
gpv=function(e){if(_.G("mweb_supported_chapters_killswitch"))return!0;var g;return!!(e==null?0:(g=e.markersMap)==null?0:g.find(function(c){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(c.key)}))};
_.cqs=function(e){var g=Object,c=g.assign,k;e={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(k=e==null?void 0:e.getPlayerState())!=null?k:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return c.call(g,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},e,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
kvY=function(e){return function(g){var c=e(),k,I=(k=c.playerApi)==null?void 0:k.getPlayerState();g&&g!==c.playerState&&(g===1||g===2)&&c.setState({playerState:I})}};
Jqw=function(e){return function(g){var c=e(),k=c.playerApi;k&&(g==null?void 0:g.type)==="newdata"&&(Itq&&(clearTimeout(Itq),Itq=void 0),_.G("web_shorts_use_progress_state_for_gapless")?(g=k==null?void 0:k.getProgressState(g==null?void 0:g.playertype),g=g.seekableEnd-g.seekableStart):g=k==null?void 0:k.getDuration(g==null?void 0:g.playertype),c.setState({playedTime:0,videoDuration:g}))}};
vp4=function(e){return function(g){var c=e(),k=c.playerApi;if(k){var I=k.getPresentingPlayerType();_.G("web_shorts_use_progress_state_for_gapless")?(k=k.getProgressState(I),k=k.seekableEnd-k.seekableStart):k=k.getDuration(I);c.setState({playedTime:g,videoDuration:k})}}};
qCZ=function(e){_.rS(112394,e,function(){return wzZ},function(g){wzZ=g})};
at1=function(e,g){if(!e)return[];var c,k,I;e=((c=e.markersMap)==null?void 0:(k=c.find(function(J){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(J.key)}))==null?void 0:(I=k.value)==null?void 0:I.chapters)||[];
!Leu(e)||(g==null?0:g.ignoreStub)||(e=[rqw()].concat(_.KY(e)));return e};
rqw=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Leu=function(e){if(e.length===0)return!1;var g;return((g=_.x(e[0],hA))==null?void 0:g.timeRangeStartMillis)!==0};
X5=function(e){return e?e.timeRangeStartMillis||0:0};
R8n=function(e,g){if(e.isDragging&&g)return e=npI(e,g),e===-1?rqw():at1(g)[e]};
npI=function(e,g){return e.isDragging&&g?at1(g,{ignoreStub:!0}).findIndex(function(c,k,I){c=EpY(e);return Wew(c,I,k).scrubberHovering}):-1};
EpY=function(e){return Object.assign({},e,{videoDuration:e.videoDuration*1E3,playedTime:e.playedTime*1E3,draggedTime:e.draggedTime*1E3})};
Wew=function(e,g,c){var k=X5(_.x(g[c],hA));g=X5(_.x(g[c+1],hA))||e.videoDuration;c=e.isDragging;var I;if(I=e.isDragging)I=e.draggedTime,I=I!==null&&I>=k&&I<g;var J=e.playedTime;return J!==null&&J>=k&&J<g?{videoPosition:"active",isScrubbing:c,scrubberHovering:I}:e.playedTime<k?{videoPosition:"pending",isScrubbing:c,scrubberHovering:I}:{videoPosition:"seen",isScrubbing:c,scrubberHovering:I}};
bCq=function(e,g){return e.videoPosition==="seen"||(g===void 0?0:g)>0};
h8Y=function(e,g,c){g=e/g.storyboardInterval;var k=at1(c);if(!k.length)return-g*72;c=0;k=_.w(k);for(var I=k.next();!I.done;I=k.next())if(X5(_.x(I.value,hA))/1E3<e)c++;else break;return-(g*72)-c*56};
XzM=function(e){return e?e.width/e.columns:0};
Gvu=function(e){return e.isHovering?e.hoveredTime:e.draggedTime};
xU4=function(e,g){e=e.draggedTime*1E3;return e>=g.visibleTimeRangeStartMillis&&e<=g.visibleTimeRangeEndMillis};
_.DUk=function(e){if(e===void 0||Number.isNaN(e))return"--:--";var g=Math.abs(Math.floor(e)),c=Math.floor(g/86400),k=Math.floor(g%86400/3600),I=Math.floor(g%3600/60);g=Math.floor(g%60);var J="";c>0&&(J+=c+":",k<10&&(J+="0"));if(c>0||k>0)J+=k+":",I<10&&(J+="0");J+=I+":";g<10&&(J+="0");J+=g;return e>=0?J:"-"+J};
$UY=function(e,g){return function(){var c=Gvu(e());var k=g();var I=e().playerApi;if(I&&I.getNumberOfStoryboardLevels()!==0){var J=I.getStoryboardFrameIndex(c,1);J!==-1?k=I.getStoryboardFrame(J,1):(c=I.getStoryboardFrameIndex(c,0),I=I.getStoryboardFrame(c,0),k&&I&&(I.height*=3,I.width*=3),k=I)}else k=null;if(!k)return null;g()&&(k.width=90*k.columns,k.height=160*k.rows);return k}};
_.Gi=function(e){if(!e||e.getVideoData)return e};
YCv=function(){var e;return{playerApi:(e=_.BO())!=null?e:void 0}};
ftw=function(e){var g;_.r(function(c){if(c.nextAddress==1)return c.yield(_.t4(),2);if(g=c.yieldResult)g.unMute(!0),g.setVolume(e,!0);_.Uh(c)})};
jAB=function(e,g){e&&(e.value=""+g,e.style.setProperty("--gradient-percent",g+"%"))};
iCZ=function(e){var g;return(g=e==null?void 0:e.value)!=null?g:0};
PWw=function(){var e;_.r(function(g){if(g.nextAddress==1)return g.yield(_.t4(),2);e=g.yieldResult;if(!e)return g.return();e.isMuted()?e.unMute(!0):e.mute(!0);_.Uh(g)})};
mUv=function(e){var g=_.Ss().resolve(_.xt).getPlayerElement();g&&e&&(e===1?g.pause():g.play())};
pzM=function(e){return!!_.x(e,_.DQ)||!!_.x(e,_.$t)};
TVM=function(e){_.V1(e,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
ltq=function(e){_.V1(e,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
sAw=function(e){return _.p4(e.document.body,function(){return _.a(Aqw,null)},"rh")};
Fes=function(){var e;return(e=navigator.userActivation)==null?void 0:e.isActive};
ugY=function(){var e=window.performance.getEntriesByType("navigation");return e?e.map(function(g){return g.type}).includes("reload"):!1};
dUZ=function(e,g){g=g===void 0?!1:g;var c,k,I,J;return _.r(function(q){if(q.nextAddress==1)return g||!_.G("kevlar_shorts_seedless_retry_initial_load")||(c=window,k=!(!c.getDataPromise&&!c.getInitialData),k)?q.yield(sVz(),2):(setTimeout(dUZ.bind(window,e,!0),1E3),q.return());if(q.nextAddress!=3)return I=q.yieldResult,q.yield(z8I(I),3);J=q.yieldResult;Em(e,J);_.Uh(q)})};
z8I=function(e){var g;if((g=e.response)==null||!g.replacementEndpoint)return _.No(e);g=_.Ss().resolve(_.rl);e=e.response;_.x(e.replacementEndpoint,_.eh)&&e.sequenceContinuation&&(_.x(e.replacementEndpoint,_.eh).sequenceParams=e.sequenceContinuation);return Yt(g,e.replacementEndpoint,{},_.kp.location.href,"shorts",function(){},function(){return!1})};
QAu=function(e){var g=_.Ss().resolve(HCI);e.playerResponse&&g.handleResponse(e.playerResponse);e.response&&g.handleResponse(e.response)};
UUq=function(e){var g=_.Tt(),c,k=_.x((c=e.response)==null?void 0:c.frameworkUpdates,PO),I;c=_.x((I=e.playerResponse)==null?void 0:I.frameworkUpdates,PO);var J;e=_.x((J=e.reelWatchSequenceResponse)==null?void 0:J.frameworkUpdates,PO);k&&_.Mc(k,g);c&&_.Mc(c,g);e&&_.Mc(e,g)};
opu=function(e){var g;_.G("enable_redirect_linking_for_desktop_web_client")&&((g=window.location.hash)==null?0:g.includes("redirect_state"))&&e.url&&(e.url=e.url.toString()+window.location.hash)};
tKY=function(e){var g=_.Ss(),c=g.resolve(_.rl);g=g.resolve(_.ZCv);e.endpoint&&(c=VKZ(c,e.endpoint),c.content&&e.response&&_.fu(g,e.response,c.content),c.player&&e.playerResponse&&_.fu(g,e.playerResponse,c.player),c.reelSequence&&e.reelWatchSequenceResponse&&_.fu(g,e.reelWatchSequenceResponse,c.reelSequence))};
j$=function(e,g){_.G("web_enable_chunk_prediction")&&BVu(g);QAu(g);UUq(g);var c;(g==null?0:g.url)&&((c=window.location.hash)==null?0:c.includes("redirect_state"))&&(opu(g),(c=lae(g.url))&&_.Z5(e.root,"yt-initialize-third-party",[c,g]));tKY(g);c=_.Ss();var k=c.resolve(NVw);g.playerResponse&&c.resolve(SCu).handleResponse(g.playerResponse);if(g.playerResponse){c=void 0;if(_.G("ab_v_vid_sig")&&g.endpoint){var I,J=(I=_.x(g.endpoint,_.Pm))!=null?I:_.x(g.endpoint,_.eh);J&&(c=J.videoId)}yqw(k,g.playerResponse,
c)}g.playerResponse&&BRU(g.playerResponse)&&_.G("web_enable_ab_rsp_cl")?Jne().then(function(){Ken(k,g.playerResponse);Em(e,g)}):Em(e,g)};
MK4=function(e){if(e=e.root.data){var g=_.Ss().resolve(OCY);e.endpoint&&(e.response&&g.handleResponse(e.response,void 0,document.querySelector("ytd-app")),e.playerResponse&&g.handleResponse(e.playerResponse),e.reelWatchSequenceResponse&&g.handleResponse(e.reelWatchSequenceResponse))}};
BVu=function(e){e.response&&_.Ss().resolve(CWk).handleResponse(e.response)};
eYq=function(e){var g,c,k,I,J,q;return _.r(function(L){switch(L.nextAddress){case 1:g=window;if(!g.getDataPromise){L.jumpTo(2);break}_.lj(L,3);return L.yield(g.getDataPromise(),5);case 5:c=L.yieldResult;j$(e,c);_.zn(L,4);break;case 3:return _.Qb(L),L.yield(ad(),6);case 6:k=L.yieldResult,_.G("web_enable_chunk_prediction")&&BVu(k),Em(e,k);case 4:return L.return();case 2:if(!_.G("sw_nav_preload_pbj")){L.jumpTo(7);break}g.fetchInitialData=function(){var n;return _.r(function(R){if(R.nextAddress==1)return R.yield(ad(),
2);n=R.yieldResult;_.G("web_enable_chunk_prediction")&&BVu(n);Em(e,n);_.Uh(R)})};
if(g.getInitialData){g.loadInitialData=function(n){j$(e,n)};
I=g.getInitialData();g.getInitialData=void 0;j$(e,I);L.jumpTo(8);break}g.fetchInitialData=void 0;return L.yield(ad(),9);case 9:J=L.yieldResult,_.G("web_enable_chunk_prediction")&&BVu(J),Em(e,J);case 8:return L.return();case 7:g.getInitialData?(q=g.getInitialData(),g.getInitialData=void 0,j$(e,q)):g.loadInitialData=function(n){j$(e,n)},_.Uh(L)}})};
ck4=function(){var e=new gII;_.z_C(e);e.registerInitializationCallback(function(){lZq(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
e.registerCallback("error",function(g,c,k){_.zr(Error("$j`"+c+"`"+k))})};
LBu=typeof Object.create=="function"?Object.create:function(e){var g=function(){};
g.prototype=e;return new g};
rk4=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,g,c){if(e==Array.prototype||e==Object.prototype)return e;e[g]=c.value;return e};
awB=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var g=0;g<e.length;++g){var c=e[g];if(c&&c.Math==Math)return c}throw Error("a");};
_.Bd=awB(this);nIu="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.Bd.BigInt64Array&&(nIu.push("BigInt64"),nIu.push("BigUint64"));var EIv=function(e,g){if(g)for(var c=0;c<nIu.length;c++)RYv(nIu[c]+"Array.prototype."+e,g)},P2=function(e,g){g&&RYv(e,g)},RYv=function(e,g){var c=_.Bd;
e=e.split(".");for(var k=0;k<e.length-1;k++){var I=e[k];if(!(I in c))return;c=c[I]}e=e[e.length-1];k=c[e];g=g(k);g!=k&&g!=null&&rk4(c,e,{configurable:!0,writable:!0,value:g})},WB4=function(){function e(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if(typeof Reflect!="undefined"&&Reflect.construct){if(e())return Reflect.construct;var g=Reflect.construct;return function(c,k,I){c=g(c,k);I&&Reflect.setPrototypeOf(c,I.prototype);return c}}return function(c,k,I){I===void 0&&(I=c);
I=LBu(I.prototype||Object.prototype);return Function.prototype.apply.call(c,I,k)||I}}(),b1q;
if(typeof Object.setPrototypeOf=="function")b1q=Object.setPrototypeOf;else{var hYw;a:{var Xwu={a:!0},GqY={};try{GqY.__proto__=Xwu;hYw=GqY.a;break a}catch(e){}hYw=!1}b1q=hYw?function(e,g){e.__proto__=g;if(e.__proto__!==g)throw new TypeError("b`"+e);return e}:null}mm=b1q;
_.Y=function(e,g){e.prototype=LBu(g.prototype);e.prototype.constructor=e;if(mm)mm(e,g);else for(var c in g)if(c!="prototype")if(Object.defineProperties){var k=Object.getOwnPropertyDescriptor(g,c);k&&Object.defineProperty(e,c,k)}else e[c]=g[c];e.superClass_=g.prototype};
xqk=function(e){var g=0;return function(){return g<e.length?{done:!1,value:e[g++]}:{done:!0}}};
_.w=function(e){var g=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(g)return g.call(e);if(typeof e.length=="number")return{next:xqk(e)};throw Error("c`"+String(e));};
N_=function(e){for(var g,c=[];!(g=e.next()).done;)c.push(g.value);return c};
_.KY=function(e){return e instanceof Array?e:N_(_.w(e))};
_.Ti=function(e){return pu(e,e)};
pu=function(e,g){e.raw=g;Object.freeze&&(Object.freeze(e),Object.freeze(g));return e};
ln=function(e,g){return Object.prototype.hasOwnProperty.call(e,g)};
Dqn=function(e){if(e==null)throw new TypeError("d");return Object(e)};
$qu=typeof Object.assign=="function"?Object.assign:function(e,g){e=Dqn(e);for(var c=1;c<arguments.length;c++){var k=arguments[c];if(k)for(var I in k)ln(k,I)&&(e[I]=k[I])}return e};
P2("Object.assign",function(e){return e||$qu});
var AA=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Yv1=function(e){if(e.isRunning_)throw new TypeError("f");
e.isRunning_=!0};
AA.prototype.JSC$9022_next_=function(e){this.yieldResult=e};
var fw4=function(e,g){e.abruptCompletion_={exception:g,isException:!0};e.nextAddress=e.catchAddress_||e.finallyAddress_};
AA.prototype.return=function(e){this.abruptCompletion_={return:e};this.nextAddress=this.finallyAddress_};
AA.prototype.yield=function(e,g){this.nextAddress=g;return{value:e}};
AA.prototype.jumpTo=function(e){this.nextAddress=e};
_.Uh=function(e){e.nextAddress=0};
_.lj=function(e,g,c){e.catchAddress_=g;c!=void 0&&(e.finallyAddress_=c)};
_.ze=function(e,g){e.catchAddress_=0;e.finallyAddress_=g||0};
_.zn=function(e,g,c){e.nextAddress=g;e.catchAddress_=c||0};
_.Qb=function(e,g){e.catchAddress_=g||0;g=e.abruptCompletion_.exception;e.abruptCompletion_=null;return g};
_.sh=function(e,g,c,k){k?e.finallyContexts_[k]=e.abruptCompletion_:e.finallyContexts_=[e.abruptCompletion_];e.catchAddress_=g||0;e.finallyAddress_=c||0};
_.HA=function(e,g,c){c=e.finallyContexts_.splice(c||0)[0];(c=e.abruptCompletion_=e.abruptCompletion_||c)?c.isException?e.nextAddress=e.catchAddress_||e.finallyAddress_:c.jumpTo!=void 0&&e.finallyAddress_<c.jumpTo?(e.nextAddress=c.jumpTo,e.abruptCompletion_=null):e.nextAddress=e.finallyAddress_:e.nextAddress=g};
jnZ=function(e){this.JSC$9027_context_=new AA;this.program_=e};
PsY=function(e,g){Yv1(e.JSC$9027_context_);var c=e.JSC$9027_context_.yieldAllIterator_;if(c)return i1k(e,"return"in c?c["return"]:function(k){return{value:k,done:!0}},g,e.JSC$9027_context_.return);
e.JSC$9027_context_.return(g);return sm(e)};
i1k=function(e,g,c,k){try{var I=g.call(e.JSC$9027_context_.yieldAllIterator_,c);if(!(I instanceof Object))throw new TypeError("e`"+I);if(!I.done)return e.JSC$9027_context_.isRunning_=!1,I;var J=I.value}catch(q){return e.JSC$9027_context_.yieldAllIterator_=null,fw4(e.JSC$9027_context_,q),sm(e)}e.JSC$9027_context_.yieldAllIterator_=null;k.call(e.JSC$9027_context_,J);return sm(e)};
sm=function(e){for(;e.JSC$9027_context_.nextAddress;)try{var g=e.program_(e.JSC$9027_context_);if(g)return e.JSC$9027_context_.isRunning_=!1,{value:g.value,done:!1}}catch(c){e.JSC$9027_context_.yieldResult=void 0,fw4(e.JSC$9027_context_,c)}e.JSC$9027_context_.isRunning_=!1;if(e.JSC$9027_context_.abruptCompletion_){g=e.JSC$9027_context_.abruptCompletion_;e.JSC$9027_context_.abruptCompletion_=null;if(g.isException)throw g.exception;return{value:g.return,done:!0}}return{value:void 0,done:!0}};
mqI=function(e){this.next=function(g){Yv1(e.JSC$9027_context_);e.JSC$9027_context_.yieldAllIterator_?g=i1k(e,e.JSC$9027_context_.yieldAllIterator_.next,g,e.JSC$9027_context_.JSC$9022_next_):(e.JSC$9027_context_.JSC$9022_next_(g),g=sm(e));return g};
this.throw=function(g){Yv1(e.JSC$9027_context_);e.JSC$9027_context_.yieldAllIterator_?g=i1k(e,e.JSC$9027_context_.yieldAllIterator_["throw"],g,e.JSC$9027_context_.JSC$9022_next_):(fw4(e.JSC$9027_context_,g),g=sm(e));return g};
this.return=function(g){return PsY(e,g)};
this[Symbol.iterator]=function(){return this}};
_.y5=function(e,g){g=new mqI(new jnZ(g));mm&&e.prototype&&mm(g,e.prototype);return g};
pwn=function(e){function g(k){return e.next(k)}
function c(k){return e.throw(k)}
return new Promise(function(k,I){function J(q){q.done?k(q.value):Promise.resolve(q.value).then(g,c).then(J,I)}
J(e.next())})};
_.r=function(e){return pwn(new mqI(new jnZ(e)))};
P2("Symbol",function(e){if(e)return e;var g=function(J,q){this.$jscomp$symbol$id_=J;rk4(this,"description",{configurable:!0,writable:!0,value:q})};
g.prototype.toString=function(){return this.$jscomp$symbol$id_};
var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",k=0,I=function(J){if(this instanceof I)throw new TypeError("g");return new g(c+(J||"")+"_"+k++,J)};
return I});
P2("Symbol.iterator",function(e){if(e)return e;e=Symbol("h");rk4(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return TZ4(xqk(this))}});
return e});
P2("Symbol.asyncIterator",function(e){return e?e:Symbol("i")});
TZ4=function(e){e={next:e};e[Symbol.iterator]=function(){return this};
return e};
_.A0=function(e){var g=e[Symbol.asyncIterator];return g!==void 0?g.call(e):new lww(_.w(e))};
lww=function(e){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return e};
this.next=function(g){return Promise.resolve(e.next(g))};
this["throw"]=function(g){return new Promise(function(c,k){var I=e["throw"];I!==void 0?c(I.call(e,g)):(c=e["return"],c!==void 0&&c.call(e),k(new TypeError("j")))})};
e["return"]!==void 0&&(this["return"]=function(g){return Promise.resolve(e["return"](g))})};
_.Mb=function(){for(var e=Number(this),g=[],c=e;c<arguments.length;c++)g[c-e]=arguments[c];return g};
_.KL=function(e){return e};
P2("globalThis",function(e){return e||_.Bd});
P2("Reflect",function(e){return e?e:{}});
P2("Reflect.construct",function(){return WB4});
P2("Reflect.setPrototypeOf",function(e){return e?e:mm?function(g,c){try{return mm(g,c),!0}catch(k){return!1}}:null});
P2("Promise",function(e){function g(){this.batch_=null}
function c(q){return q instanceof I?q:new I(function(L){L(q)})}
if(e&&(typeof _.Bd.PromiseRejectionEvent!=="undefined"||!_.Bd.Promise||_.Bd.Promise.toString().indexOf("[native code]")===-1))return e;g.prototype.asyncExecute=function(q){if(this.batch_==null){this.batch_=[];var L=this;this.asyncExecuteFunction(function(){L.executeBatch_()})}this.batch_.push(q)};
var k=_.Bd.setTimeout;g.prototype.asyncExecuteFunction=function(q){k(q,0)};
g.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var q=this.batch_;this.batch_=[];for(var L=0;L<q.length;++L){var n=q[L];q[L]=null;try{n()}catch(R){this.asyncThrow_(R)}}}this.batch_=null};
g.prototype.asyncThrow_=function(q){this.asyncExecuteFunction(function(){throw q;})};
var I=function(q){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var L=this.createResolveAndReject_();try{q(L.resolve,L.reject)}catch(n){L.reject(n)}};
I.prototype.createResolveAndReject_=function(){function q(R){return function(W){n||(n=!0,R.call(L,W))}}
var L=this,n=!1;return{resolve:q(this.resolveTo_),reject:q(this.JSC$9059_reject_)}};
I.prototype.resolveTo_=function(q){if(q===this)this.JSC$9059_reject_(new TypeError("n"));else if(q instanceof I)this.settleSameAsPromise_(q);else{a:switch(typeof q){case "object":var L=q!=null;break a;case "function":L=!0;break a;default:L=!1}L?this.resolveToNonPromiseObj_(q):this.fulfill_(q)}};
I.prototype.resolveToNonPromiseObj_=function(q){var L=void 0;try{L=q.then}catch(n){this.JSC$9059_reject_(n);return}typeof L=="function"?this.settleSameAsThenable_(L,q):this.fulfill_(q)};
I.prototype.JSC$9059_reject_=function(q){this.settle_(2,q)};
I.prototype.fulfill_=function(q){this.settle_(1,q)};
I.prototype.settle_=function(q,L){if(this.state_!=0)throw Error("o`"+q+"`"+L+"`"+this.state_);this.state_=q;this.result_=L;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
I.prototype.scheduleUnhandledRejectionCheck_=function(){var q=this;k(function(){if(q.notifyUnhandledRejection_()){var L=_.Bd.console;typeof L!=="undefined"&&L.error(q.result_)}},1)};
I.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var q=_.Bd.CustomEvent,L=_.Bd.Event,n=_.Bd.dispatchEvent;if(typeof n==="undefined")return!0;typeof q==="function"?q=new q("unhandledrejection",{cancelable:!0}):typeof L==="function"?q=new L("unhandledrejection",{cancelable:!0}):(q=_.Bd.document.createEvent("CustomEvent"),q.initCustomEvent("unhandledrejection",!1,!0,q));q.promise=this;q.reason=this.result_;return n(q)};
I.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var q=0;q<this.onSettledCallbacks_.length;++q)J.asyncExecute(this.onSettledCallbacks_[q]);this.onSettledCallbacks_=null}};
var J=new g;I.prototype.settleSameAsPromise_=function(q){var L=this.createResolveAndReject_();q.callWhenSettled_(L.resolve,L.reject)};
I.prototype.settleSameAsThenable_=function(q,L){var n=this.createResolveAndReject_();try{q.call(L,n.resolve,n.reject)}catch(R){n.reject(R)}};
I.prototype.then=function(q,L){function n(h,X){return typeof h=="function"?function(D){try{R(h(D))}catch(f){W(f)}}:X}
var R,W,b=new I(function(h,X){R=h;W=X});
this.callWhenSettled_(n(q,R),n(L,W));return b};
I.prototype.catch=function(q){return this.then(void 0,q)};
I.prototype.callWhenSettled_=function(q,L){function n(){switch(R.state_){case 1:q(R.result_);break;case 2:L(R.result_);break;default:throw Error("p`"+R.state_);}}
var R=this;this.onSettledCallbacks_==null?J.asyncExecute(n):this.onSettledCallbacks_.push(n);this.isRejectionHandled_=!0};
I.resolve=c;I.reject=function(q){return new I(function(L,n){n(q)})};
I.race=function(q){return new I(function(L,n){for(var R=_.w(q),W=R.next();!W.done;W=R.next())c(W.value).callWhenSettled_(L,n)})};
I.all=function(q){var L=_.w(q),n=L.next();return n.done?c([]):new I(function(R,W){function b(D){return function(f){h[D]=f;X--;X==0&&R(h)}}
var h=[],X=0;do h.push(void 0),X++,c(n.value).callWhenSettled_(b(h.length-1),W),n=L.next();while(!n.done)})};
return I});
var F5=function(e,g,c){if(e==null)throw new TypeError("q`"+c);if(g instanceof RegExp)throw new TypeError("r`"+c);return e+""};
P2("String.prototype.startsWith",function(e){return e?e:function(g,c){var k=F5(this,g,"startsWith"),I=k.length,J=g.length;c=Math.max(0,Math.min(c|0,k.length));for(var q=0;q<J&&c<I;)if(k[c++]!=g[q++])return!1;return q>=J}});
P2("Object.setPrototypeOf",function(e){return e||mm});
P2("Symbol.dispose",function(e){return e?e:Symbol("s")});
P2("SuppressedError",function(e){function g(c,k,I){if(!(this instanceof g))return new g(c,k,I);I=Error(I);"stack"in I&&(this.stack=I.stack);this.message=I.message;this.error=c;this.suppressed=k}
if(e)return e;_.Y(g,Error);g.prototype.name="SuppressedError";return g});
P2("Array.from",function(e){return e?e:function(g,c,k){c=c!=null?c:function(L){return L};
var I=[],J=typeof Symbol!="undefined"&&Symbol.iterator&&g[Symbol.iterator];if(typeof J=="function"){g=J.call(g);for(var q=0;!(J=g.next()).done;)I.push(c.call(k,J.value,q++))}else for(J=g.length,q=0;q<J;q++)I.push(c.call(k,g[q],q));return I}});
var AkY=function(e,g,c){e instanceof String&&(e=String(e));for(var k=e.length,I=0;I<k;I++){var J=e[I];if(g.call(c,J,I,e))return{i:I,v:J}}return{i:-1,v:void 0}};
P2("Array.prototype.find",function(e){return e?e:function(g,c){return AkY(this,g,c).v}});
P2("WeakMap",function(e){function g(){}
function c(n){var R=typeof n;return R==="object"&&n!==null||R==="function"}
function k(n){if(!ln(n,J)){var R=new g;rk4(n,J,{value:R})}}
function I(n){var R=Object[n];R&&(Object[n]=function(W){if(W instanceof g)return W;Object.isExtensible(W)&&k(W);return R(W)})}
if(function(){if(!e||!Object.seal)return!1;try{var n=Object.seal({}),R=Object.seal({}),W=new e([[n,2],[R,3]]);if(W.get(n)!=2||W.get(R)!=3)return!1;W.delete(n);W.set(R,4);return!W.has(n)&&W.get(R)==4}catch(b){return!1}}())return e;
var J="$jscomp_hidden_"+Math.random();I("freeze");I("preventExtensions");I("seal");var q=0,L=function(n){this.JSC$9067_id_=(q+=Math.random()+1).toString();if(n){n=_.w(n);for(var R;!(R=n.next()).done;)R=R.value,this.set(R[0],R[1])}};
L.prototype.set=function(n,R){if(!c(n))throw Error("t");k(n);if(!ln(n,J))throw Error("u`"+n);n[J][this.JSC$9067_id_]=R;return this};
L.prototype.get=function(n){return c(n)&&ln(n,J)?n[J][this.JSC$9067_id_]:void 0};
L.prototype.has=function(n){return c(n)&&ln(n,J)&&ln(n[J],this.JSC$9067_id_)};
L.prototype.delete=function(n){return c(n)&&ln(n,J)&&ln(n[J],this.JSC$9067_id_)?delete n[J][this.JSC$9067_id_]:!1};
return L});
P2("Map",function(e){if(function(){if(!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var L=Object.seal({x:4}),n=new e(_.w([[L,"s"]]));if(n.get(L)!="s"||n.size!=1||n.get({x:4})||n.set({x:4},"t")!=n||n.size!=2)return!1;var R=n.entries(),W=R.next();if(W.done||W.value[0]!=L||W.value[1]!="s")return!1;W=R.next();return W.done||W.value[0].x!=4||W.value[1]!="t"||!R.next().done?!1:!0}catch(b){return!1}}())return e;
var g=new WeakMap,c=function(L){this[0]={};this[1]=J();this.size=0;if(L){L=_.w(L);for(var n;!(n=L.next()).done;)n=n.value,this.set(n[0],n[1])}};
c.prototype.set=function(L,n){L=L===0?0:L;var R=k(this,L);R.list||(R.list=this[0][R.id]=[]);R.entry?R.entry.value=n:(R.entry={next:this[1],previous:this[1].previous,head:this[1],key:L,value:n},R.list.push(R.entry),this[1].previous.next=R.entry,this[1].previous=R.entry,this.size++);return this};
c.prototype.delete=function(L){L=k(this,L);return L.entry&&L.list?(L.list.splice(L.index,1),L.list.length||delete this[0][L.id],L.entry.previous.next=L.entry.next,L.entry.next.previous=L.entry.previous,L.entry.head=null,this.size--,!0):!1};
c.prototype.clear=function(){this[0]={};this[1]=this[1].previous=J();this.size=0};
c.prototype.has=function(L){return!!k(this,L).entry};
c.prototype.get=function(L){return(L=k(this,L).entry)&&L.value};
c.prototype.entries=function(){return I(this,function(L){return[L.key,L.value]})};
c.prototype.keys=function(){return I(this,function(L){return L.key})};
c.prototype.values=function(){return I(this,function(L){return L.value})};
c.prototype.forEach=function(L,n){for(var R=this.entries(),W;!(W=R.next()).done;)W=W.value,L.call(n,W[1],W[0],this)};
c.prototype[Symbol.iterator]=c.prototype.entries;var k=function(L,n){var R=n&&typeof n;R=="object"||R=="function"?g.has(n)?R=g.get(n):(R=""+ ++q,g.set(n,R)):R="p_"+n;var W=L[0][R];if(W&&ln(L[0],R))for(L=0;L<W.length;L++){var b=W[L];if(n!==n&&b.key!==b.key||n===b.key)return{id:R,list:W,index:L,entry:b}}return{id:R,list:W,index:-1,entry:void 0}},I=function(L,n){var R=L[1];
return TZ4(function(){if(R){for(;R.head!=L[1];)R=R.previous;for(;R.next!=R.head;)return R=R.next,{done:!1,value:n(R)};R=null}return{done:!0,value:void 0}})},J=function(){var L={};
return L.previous=L.next=L.head=L},q=0;
return c});
P2("Set",function(e){if(function(){if(!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),k=new e(_.w([c]));if(!k.has(c)||k.size!=1||k.add(c)!=k||k.size!=1||k.add({x:4})!=k||k.size!=2)return!1;var I=k.entries(),J=I.next();if(J.done||J.value[0]!=c||J.value[1]!=c)return!1;J=I.next();return J.done||J.value[0]==c||J.value[0].x!=4||J.value[1]!=J.value[0]?!1:I.next().done}catch(q){return!1}}())return e;
var g=function(c){this.JSC$9081_map_=new Map;if(c){c=_.w(c);for(var k;!(k=c.next()).done;)this.add(k.value)}this.size=this.JSC$9081_map_.size};
g.prototype.add=function(c){c=c===0?0:c;this.JSC$9081_map_.set(c,c);this.size=this.JSC$9081_map_.size;return this};
g.prototype.delete=function(c){c=this.JSC$9081_map_.delete(c);this.size=this.JSC$9081_map_.size;return c};
g.prototype.clear=function(){this.JSC$9081_map_.clear();this.size=0};
g.prototype.has=function(c){return this.JSC$9081_map_.has(c)};
g.prototype.entries=function(){return this.JSC$9081_map_.entries()};
g.prototype.values=function(){return this.JSC$9081_map_.values()};
g.prototype.keys=g.prototype.values;g.prototype[Symbol.iterator]=g.prototype.values;g.prototype.forEach=function(c,k){var I=this;this.JSC$9081_map_.forEach(function(J){return c.call(k,J,J,I)})};
return g});
P2("Math.log2",function(e){return e?e:function(g){return Math.log(g)/Math.LN2}});
P2("Object.values",function(e){return e?e:function(g){var c=[],k;for(k in g)ln(g,k)&&c.push(g[k]);return c}});
P2("Object.is",function(e){return e?e:function(g,c){return g===c?g!==0||1/g===1/c:g!==g&&c!==c}});
P2("Array.prototype.includes",function(e){return e?e:function(g,c){var k=this;k instanceof String&&(k=String(k));var I=k.length;c=c||0;for(c<0&&(c=Math.max(c+I,0));c<I;c++){var J=k[c];if(J===g||Object.is(J,g))return!0}return!1}});
P2("String.prototype.includes",function(e){return e?e:function(g,c){return F5(this,g,"includes").indexOf(g,c||0)!==-1}});
P2("Object.entries",function(e){return e?e:function(g){var c=[],k;for(k in g)ln(g,k)&&c.push([k,g[k]]);return c}});
P2("Number.isFinite",function(e){return e?e:function(g){return typeof g!=="number"?!1:!isNaN(g)&&g!==Infinity&&g!==-Infinity}});
P2("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
P2("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
P2("Number.isInteger",function(e){return e?e:function(g){return Number.isFinite(g)?g===Math.floor(g):!1}});
P2("Number.isSafeInteger",function(e){return e?e:function(g){return Number.isInteger(g)&&Math.abs(g)<=Number.MAX_SAFE_INTEGER}});
P2("String.prototype.endsWith",function(e){return e?e:function(g,c){var k=F5(this,g,"endsWith");c===void 0&&(c=k.length);c=Math.max(0,Math.min(c|0,k.length));for(var I=g.length;I>0&&c>0;)if(k[--c]!=g[--I])return!1;return I<=0}});
var snn=function(e,g){e instanceof String&&(e+="");var c=0,k=!1,I={next:function(){if(!k&&c<e.length){var J=c++;return{value:g(J,e[J]),done:!1}}k=!0;return{done:!0,value:void 0}}};
I[Symbol.iterator]=function(){return I};
return I};
P2("Array.prototype.entries",function(e){return e?e:function(){return snn(this,function(g,c){return[g,c]})}});
P2("Math.trunc",function(e){return e?e:function(g){g=Number(g);if(isNaN(g)||g===Infinity||g===-Infinity||g===0)return g;var c=Math.floor(Math.abs(g));return g<0?-c:c}});
P2("Number.isNaN",function(e){return e?e:function(g){return typeof g==="number"&&isNaN(g)}});
P2("Array.prototype.keys",function(e){return e?e:function(){return snn(this,function(g){return g})}});
P2("Array.prototype.values",function(e){return e?e:function(){return snn(this,function(g,c){return c})}});
P2("Array.prototype.fill",function(e){return e?e:function(g,c,k){var I=this.length||0;c<0&&(c=Math.max(0,I+c));if(k==null||k>I)k=I;k=Number(k);k<0&&(k=Math.max(0,I+k));for(c=Number(c||0);c<k;c++)this[c]=g;return this}});
EIv("fill",function(e){return e?e:Array.prototype.fill});
P2("Object.fromEntries",function(e){return e?e:function(g){var c={};if(!(Symbol.iterator in g))throw new TypeError("v`"+g);g=g[Symbol.iterator].call(g);for(var k=g.next();!k.done;k=g.next()){k=k.value;if(Object(k)!==k)throw new TypeError("w");c[k[0]]=k[1]}return c}});
P2("String.prototype.replaceAll",function(e){return e?e:function(g,c){if(g instanceof RegExp&&!g.global)throw new TypeError("x");return g instanceof RegExp?this.replace(g,c):this.replace(new RegExp(String(g).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
P2("Object.getOwnPropertySymbols",function(e){return e?e:function(){return[]}});
P2("String.prototype.repeat",function(e){return e?e:function(g){var c=F5(this,null,"repeat");if(g<0||g>1342177279)throw new RangeError("y");g|=0;for(var k="";g;)if(g&1&&(k+=c),g>>>=1)c+=c;return k}});
P2("Array.prototype.findIndex",function(e){return e?e:function(g,c){return AkY(this,g,c).i}});
P2("Array.prototype.flatMap",function(e){return e?e:function(g,c){var k=[];Array.prototype.forEach.call(this,function(I,J){I=g.call(c,I,J,this);Array.isArray(I)?k.push.apply(k,I):k.push(I)});
return k}});
P2("String.prototype.codePointAt",function(e){return e?e:function(g){var c=F5(this,null,"codePointAt"),k=c.length;g=Number(g)||0;if(g>=0&&g<k){g|=0;var I=c.charCodeAt(g);if(I<55296||I>56319||g+1===k)return I;g=c.charCodeAt(g+1);return g<56320||g>57343?I:(I-55296)*1024+g+9216}}});
P2("String.fromCodePoint",function(e){return e?e:function(g){for(var c="",k=0;k<arguments.length;k++){var I=Number(arguments[k]);if(I<0||I>1114111||I!==Math.floor(I))throw new RangeError("z`"+I);I<=65535?c+=String.fromCharCode(I):(I-=65536,c+=String.fromCharCode(I>>>10&1023|55296),c+=String.fromCharCode(I&1023|56320))}return c}});
P2("String.prototype.trimLeft",function(e){function g(){return this.replace(/^[\s\xa0]+/,"")}
return e||g});
P2("String.prototype.trimStart",function(e){return e||String.prototype.trimLeft});
P2("String.prototype.padStart",function(e){return e?e:function(g,c){var k=F5(this,null,"padStart");g-=k.length;c=c!==void 0?String(c):" ";return(g>0&&c?c.repeat(Math.ceil(g/c.length)).substring(0,g):"")+k}});
P2("Promise.prototype.finally",function(e){return e?e:function(g){return this.then(function(c){return Promise.resolve(g()).then(function(){return c})},function(c){return Promise.resolve(g()).then(function(){throw c;
})})}});
P2("Math.imul",function(e){return e?e:function(g,c){g=Number(g);c=Number(c);var k=g&65535,I=c&65535;return k*I+((g>>>16&65535)*I+k*(c>>>16&65535)<<16>>>0)|0}});
P2("Object.hasOwn",function(e){return e?e:function(g,c){return Object.prototype.hasOwnProperty.call(g,c)}});
var FBu=function(e){e=Math.trunc(e)||0;e<0&&(e+=this.length);if(!(e<0||e>=this.length))return this[e]};
P2("Array.prototype.at",function(e){return e?e:FBu});
EIv("at",function(e){return e?e:FBu});
P2("String.prototype.at",function(e){return e?e:FBu});
P2("Math.sign",function(e){return e?e:function(g){g=Number(g);return g===0||isNaN(g)?g:g>0?1:-1}});
P2("Array.prototype.flat",function(e){return e?e:function(g){g=g===void 0?1:g;var c=[];Array.prototype.forEach.call(this,function(k){Array.isArray(k)&&g>0?(k=Array.prototype.flat.call(k,g-1),c.push.apply(c,k)):c.push(k)});
return c}});
P2("String.raw",function(e){return e?e:function(g,c){g=Dqn(g);for(var k=g.raw,I=k.length,J="",q=0;q<I;++q)J+=k[q],q+1<I&&q+1<arguments.length&&(J+=String(arguments[q+1]));return J}});
P2("WeakSet",function(e){if(function(){if(!e||!Object.seal)return!1;try{var c=Object.seal({}),k=Object.seal({}),I=new e([c]);if(!I.has(c)||I.has(k))return!1;I.delete(c);I.add(k);return!I.has(c)&&I.has(k)}catch(J){return!1}}())return e;
var g=function(c){this.JSC$9096_map_=new WeakMap;if(c){c=_.w(c);for(var k;!(k=c.next()).done;)this.add(k.value)}};
g.prototype.add=function(c){this.JSC$9096_map_.set(c,!0);return this};
g.prototype.has=function(c){return this.JSC$9096_map_.has(c)};
g.prototype.delete=function(c){return this.JSC$9096_map_.delete(c)};
return g});
P2("Reflect.ownKeys",function(e){return e?e:function(g){var c=[],k=Object.getOwnPropertyNames(g);g=Object.getOwnPropertySymbols(g);for(var I=0;I<k.length;I++)(k[I].substring(0,14)=="jscomp_symbol_"?g:c).push(k[I]);return c.concat(g)}});
P2("Object.getOwnPropertyDescriptors",function(e){return e?e:function(g){for(var c={},k=Reflect.ownKeys(g),I=0;I<k.length;I++)c[k[I]]=Object.getOwnPropertyDescriptor(g,k[I]);return c}});
P2("Promise.allSettled",function(e){function g(k){return{status:"fulfilled",value:k}}
function c(k){return{status:"rejected",reason:k}}
return e?e:function(k){var I=this;k=Array.from(k,function(J){return I.resolve(J).then(g,c)});
return I.all(k)}});
P2("Number.parseInt",function(e){return e||parseInt});
var uMw=function(e,g,c){e instanceof String&&(e=String(e));for(var k=e.length-1;k>=0;k--){var I=e[k];if(g.call(c,I,k,e))return{i:k,v:I}}return{i:-1,v:void 0}};
P2("Array.prototype.findLastIndex",function(e){return e?e:function(g,c){return uMw(this,g,c).i}});
EIv("findLastIndex",function(e){return e?e:function(g,c){return uMw(this,g,c).i}});
_._DumpException=window._DumpException||function(e){throw e;};
window._DumpException=_._DumpException;var dq1=window.ytcsi;dq1&&typeof dq1.tick==="function"&&dq1.tick("rses_dpj");var zYk,un,dl,zi,H1n,QnM,Uqk,oIs,zD,Z14;zYk=zYk||{};_.kp=this||self;_.BQ=function(e,g,c){e=e.split(".");c=c||_.kp;for(var k;e.length&&(k=e.shift());)e.length||g===void 0?c[k]&&c[k]!==Object.prototype[k]?c=c[k]:c=c[k]={}:c[k]=g};
un=function(e,g){var c=_.Q0("WIZ_global_data.oxN3nb");e=c&&c[e];return e!=null?e:g};
dl=_.kp._F_toggles_default_kevlar_base||[];zi=function(){};
zi.get=function(){return null};
_.Mf=null;_.Q0=function(e,g){e=e.split(".");g=g||_.kp;for(var c=0;c<e.length;c++)if(g=g[e[c]],g==null)return null;return g};
_.H2=function(e){e.instance_=void 0;e.getInstance=function(){return e.instance_?e.instance_:e.instance_=new e}};
_.Ix=function(e){var g=typeof e;return g!="object"?g:e?Array.isArray(e)?"array":g:"null"};
_.Bz=function(e){var g=_.Ix(e);return g=="array"||g=="object"&&typeof e.length=="number"};
_.SK=function(e){var g=typeof e;return g=="object"&&e!=null||g=="function"};
_.KC=function(e){return Object.prototype.hasOwnProperty.call(e,H1n)&&e[H1n]||(e[H1n]=++QnM)};
H1n="closure_uid_"+(Math.random()*1E9>>>0);QnM=0;Uqk=function(e,g,c){return e.call.apply(e.bind,arguments)};
oIs=function(e,g,c){if(!e)throw Error();if(arguments.length>2){var k=Array.prototype.slice.call(arguments,2);return function(){var I=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(I,k);return e.apply(g,I)}}return function(){return e.apply(g,arguments)}};
_.Ju=function(e,g,c){_.Ju=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Uqk:oIs;return _.Ju.apply(null,arguments)};
_.g$=function(e,g){var c=Array.prototype.slice.call(arguments,1);return function(){var k=c.slice();k.push.apply(k,arguments);return e.apply(this,k)}};
_.QG=function(){return Date.now()};
zD=function(e){return e};
_.Um=function(e,g){function c(){}
c.prototype=g.prototype;e.superClass_=g.prototype;e.prototype=new c;e.prototype.constructor=e;e.base=function(k,I,J){for(var q=Array(arguments.length-2),L=2;L<arguments.length;L++)q[L-2]=arguments[L];return g.prototype[I].apply(k,q)}};
Z14=function(e){return e};var Vuq,tuw;_.t=function(e,g,c,k){var I=arguments.length,J=I<3?g:k===null?k=Object.getOwnPropertyDescriptor(g,c):k,q;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")J=Reflect.decorate(e,g,c,k);else for(var L=e.length-1;L>=0;L--)if(q=e[L])J=(I<3?q(J):I>3?q(g,c,J):q(g,c))||J;I>3&&J&&Object.defineProperty(g,c,J)};
_.B=function(e,g){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,g)};
Vuq=function(e,g){if(g!==null&&g!==void 0){if(typeof g!=="object"&&typeof g!=="function")throw new TypeError("B");if(c===void 0){if(!Symbol.dispose)throw new TypeError("D");var c=g[Symbol.dispose]}if(typeof c!=="function")throw new TypeError("E");e.stack.push({value:g,dispose:c,async:!1})}return g};
tuw=function(e){function g(J){e.error=e.hasError?new SuppressedError(J,e.error,"An error was suppressed during disposal."):J;e.hasError=!0}
function c(){for(;k=e.stack.pop();)try{if(!k.async&&I===1)return I=0,e.stack.push(k),Promise.resolve().then(c);if(k.dispose){var J=k.dispose.call(k.value);if(k.async)return I|=2,Promise.resolve(J).then(c,function(q){g(q);return c()})}else I|=1}catch(q){g(q)}if(I===1)return e.hasError?Promise.reject(e.error):Promise.resolve();
if(e.hasError)throw e.error;}
var k,I=0;c()};var BZM="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");e8C()&&BZM.push("details:not(:has(summary))");var cqW=BZM.join(",");_.Um(_.eK,Error);_.eK.prototype.name="CustomError";var NZk;var Svw=void 0,ykZ,KBY=typeof TextDecoder!=="undefined",atC,rqz=typeof String.prototype.isWellFormed==="function",LeK=typeof TextEncoder!=="undefined";var Wz=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},O1k=/&/g,Mun=/</g,Csn=/>/g,el4=/"/g,gXu=/'/g,cow=/\x00/g,kDq=/[\x00&<>"']/;var od=!!(dl[0]>>17&1),I0u=!!(dl[0]&4096),Jow=!!(dl[0]>>18&1),vX4=!!(dl[0]&8),wqs=!!(dl[0]&2),q7q=!!(dl[0]&4),LOu=!!(dl[0]&16),roZ=!!(dl[0]&256),a0v=!!(dl[0]&32),nXn=!!(dl[0]&1024);var Rlk,$p,EXM,WOY,bgq,B5e,AoC;Rlk=un(1,!0);$p=od?Jow:un(610401301,!1);EXM=od?I0u||!vX4:un(772657768,!0);WOY=od?wqs:un(513659523,!1);bgq=od?I0u||!q7q:un(568333945,!0);B5e=od?LOu:un(1331761403,!1);AoC=od?I0u||!roZ:un(748402147,!0);_.ZQ=od?I0u||!a0v:un(824648567,Rlk);_.E7=od?nXn:un(824656860,!1);var Yp,hlk=_.kp.navigator;Yp=hlk?hlk.userAgentData||null:null;var Qu;_.dV=function(e,g){return Array.prototype.indexOf.call(e,g,void 0)};
_.o7=function(e,g,c){Array.prototype.forEach.call(e,g,c)};
_.VG=function(e,g,c){return Array.prototype.filter.call(e,g,c)};
_.R4=function(e,g,c){return Array.prototype.map.call(e,g,c)};
Qu=function(e,g,c){return Array.prototype.some.call(e,g,c)};
_.Ap6=function(e,g,c){return Array.prototype.every.call(e,g,c)};var tA=function(e){tA[" "](e);return e};
tA[" "]=function(){};
var Mwg=function(e,g){try{return tA(e[g]),!0}catch(c){}return!1},xzV=function(e,g,c,k){k=k?k(g):g;
return Object.prototype.hasOwnProperty.call(e,k)?e[k]:e[k]=c(g)};var XqI,Vr,GDq,xMu,$Mq,Y7q,VD8,f0Y,jxB,ig1,ipV,mMk,pq1,sxZ,FO1,uQM;_.S$g=function(){return _.kp.navigator||null};
XqI=bCU();_.B2=h88();Vr=fC("Edge");GDq=Vr||_.B2;_.er=fC("Gecko")&&!(_.EC(_.xp(),"WebKit")&&!fC("Edge"))&&!(fC("Trident")||fC("MSIE"))&&!fC("Edge");_.Cb=_.EC(_.xp(),"WebKit")&&!fC("Edge");xMu=_.Cb&&fC("Mobile");_.DMZ=_.iCV();$Mq=_.PWt();Y7q=(Tv()?Yp.platform==="Linux":fC("Linux"))||_.mUC();VD8=_.ftz();f0Y=jAe();jxB=fC("iPad");ig1=fC("iPod");_.PSI=_.lW();ipV=_.EC(_.xp(),"KaiOS");mMk=function(){var e=_.kp.document;return e?e.documentMode:void 0};
a:{var Tjn="",l0M=function(){var e=_.xp();if(_.er)return/rv:([^\);]+)(\)|;)/.exec(e);if(Vr)return/Edge\/([\d\.]+)/.exec(e);if(_.B2)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e);if(_.Cb)return/WebKit\/(\S+)/.exec(e);if(XqI)return/(?:Version)[ \/]?(\S+)/.exec(e)}();
l0M&&(Tjn=l0M?l0M[1]:"");if(_.B2){var Ao1=mMk();if(Ao1!=null&&Ao1>parseFloat(Tjn)){pq1=String(Ao1);break a}}pq1=Tjn}sxZ=pq1;FO1={};_.Ne=function(e){return xzV(FO1,e,function(){return _.Gv(sxZ,e)>=0})};
if(_.kp.document&&_.B2){var dM1=mMk();uQM=dM1?dM1:parseInt(sxZ,10)||void 0}else uQM=void 0;_.zlZ=uQM;var jqz,iUC,Hgw;_.S$=Pz();jqz=jAe()||fC("iPod");iUC=fC("iPad");Hgw=_.xU6();_.yG=pC();_.Tn=_.GvK()&&!_.lW();var UUv={},gZ=null,xaq=_.er||_.Cb||typeof _.kp.btoa=="function";var kq8=typeof Uint8Array!=="undefined",NVt=!_.B2&&typeof btoa==="function",SCK=/[-_.]/g,tK8={"-":"+",_:"/",".":"="},ls={};var Tq,UMv;Tq=function(e,g){if(g!==ls)throw Error("K");this.JSC$9130_value_=e;if(e!=null&&e.length===0)throw Error("J");};
_.Ak=function(){return QxY||(QxY=new Tq(null,ls))};
UMv=function(e){return new Uint8Array(gBV(e)||0)};
Tq.prototype.isEmpty=function(){return this.JSC$9130_value_==null};
Tq.prototype.sizeBytes=function(){var e=gBV(this);return e?e.length:0};
var gBV=function(e){if(ls!==ls)throw Error("K");var g=e.JSC$9130_value_;g==null||kq8&&g!=null&&g instanceof Uint8Array||(typeof g==="string"?g=yqt(g):(_.Ix(g),g=null));return g==null?g:e.JSC$9130_value_=g},QxY;var OC8=void 0;var vw=typeof Symbol==="function"&&typeof Symbol()==="symbol",oXM=Jk("jas",void 0,!0),O1q=Jk(void 0,"0di"),Lm=Jk(void 0,"1oa"),Hq=Jk(void 0,Symbol()),Rlq=Jk(void 0,"0ub"),WO8=Jk(void 0,"0ubs"),zAp=Jk(void 0,"0ubsb"),FOC=Jk(void 0,"0actk"),Ao=Jk("m_m","messagePrototypeMarker",!0),igC=Jk(void 0,"vps"),roV=Jk();var eYU,CWq,O7,ZgY;eYU={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};CWq=Object.defineProperties;_.wZ=vw?oXM:"internalArrayState";ZgY=[];Rn(ZgY,7);O7=Object.freeze(ZgY);var s7={},Pw={},VzB=function(e,g,c){this.iterable=e;this.mapper=g;this.thisArg=c};
VzB.prototype.next=function(){var e=this.iterable.next();e.done||(e.value=this.mapper.call(this.thisArg,e.value));return e};
VzB.prototype[Symbol.iterator]=function(){return this};
var tz1=Object.freeze({}),FM={};var vIv=void 0,wwe=dZ(function(e){return e!==null&&e!==void 0});var nIK=dZ(function(e){return typeof e==="number"}),awe=dZ(function(e){return typeof e==="string"}),EIC=dZ(function(e){return typeof e==="boolean"}),Bju=dZ(function(e){return e!=null&&typeof e==="object"&&typeof e.then==="function"}),$l6=dZ(function(e){return typeof e==="function"}),ca=dZ(function(e){return!!e&&(typeof e==="object"||typeof e==="function")});var RYC=typeof _.kp.BigInt==="function"&&typeof _.kp.BigInt(0)==="bigint";var Vuv=dZ(function(e){return RYC?e>=Nj1&&e<=S74:e[0]==="-"?WB6(e,yo1):WB6(e,KOw)}),yo1=Number.MIN_SAFE_INTEGER.toString(),Nj1=RYC?BigInt(Number.MIN_SAFE_INTEGER):void 0,KOw=Number.MAX_SAFE_INTEGER.toString(),S74=RYC?BigInt(Number.MAX_SAFE_INTEGER):void 0;var OgI=typeof Uint8Array.prototype.slice==="function",Hw=0,Q4=0,XwK;var XQ,YX,Jo,D0,pwA;XQ=typeof BigInt==="function"?BigInt.asIntN:void 0;_.fg=typeof BigInt==="function"?BigInt.asUintN:void 0;YX=Number.isSafeInteger;Jo=Number.isFinite;D0=Math.trunc;pwA=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var PSp={};var wqW={},Mzk=function(){try{var e=function(){return WB4(Map,[],this.constructor)};
_.Y(e,Map);tA(new e);return!1}catch(g){return!0}}(),Ku=function(){this.JSC$9149_map_=new Map};
_.v=Ku.prototype;_.v.get=function(e){return this.JSC$9149_map_.get(e)};
_.v.set=function(e,g){this.JSC$9149_map_.set(e,g);this.size=this.JSC$9149_map_.size;return this};
_.v.delete=function(e){e=this.JSC$9149_map_.delete(e);this.size=this.JSC$9149_map_.size;return e};
_.v.clear=function(){this.JSC$9149_map_.clear();this.size=this.JSC$9149_map_.size};
_.v.has=function(e){return this.JSC$9149_map_.has(e)};
_.v.entries=function(){return this.JSC$9149_map_.entries()};
_.v.keys=function(){return this.JSC$9149_map_.keys()};
_.v.values=function(){return this.JSC$9149_map_.values()};
_.v.forEach=function(e,g){return this.JSC$9149_map_.forEach(e,g)};
Ku.prototype[Symbol.iterator]=function(){return this.entries()};
var Om=function(){if(Mzk)return Object.setPrototypeOf(Ku.prototype,Map.prototype),Object.defineProperties(Ku.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Ku;var e=function(){return WB4(Map,[],this.constructor)};
_.Y(e,Map);return e}(),FQ=function(e,g,c,k){c=c===void 0?coz:c;
k=k===void 0?coz:k;var I=Om.call(this)||this;I.arrayState=e[_.wZ]|0;I.valueCtor=g;I.keyToApi=c;I.valueToApi=I.valueCtor?I0K:k;for(var J=0;J<e.length;J++){var q=e[J],L=c(q[0],!1,!0),n=q[1];g?n===void 0&&(n=null):n=k(q[1],!1,!0,void 0,void 0,I.arrayState);Om.prototype.set.call(I,L,n)}return I};
_.Y(FQ,Om);var CS4=function(e){if(e.arrayState&2)throw Error("O");},jxe=function(e,g){return YI(Array.from(Om.prototype.entries.call(e),g))};
_.v=FQ.prototype;_.v.clear=function(){CS4(this);Om.prototype.clear.call(this)};
_.v.delete=function(e){CS4(this);return Om.prototype.delete.call(this,this.keyToApi(e,!0,!1))};
_.v.entries=function(){if(this.valueCtor){var e=Om.prototype.keys.call(this);e=new VzB(e,Jot,this)}else e=Om.prototype.entries.call(this);return e};
_.v.values=function(){if(this.valueCtor){var e=Om.prototype.keys.call(this);e=new VzB(e,FQ.prototype.get,this)}else e=Om.prototype.values.call(this);return e};
_.v.forEach=function(e,g){this.valueCtor?Om.prototype.forEach.call(this,function(c,k,I){e.call(g,I.get(k),k,I)}):Om.prototype.forEach.call(this,e,g)};
_.v.set=function(e,g){CS4(this);e=this.keyToApi(e,!0,!1);return e==null?this:g==null?(Om.prototype.delete.call(this,e),this):Om.prototype.set.call(this,e,this.valueToApi(g,!0,!0,this.valueCtor,!1,this.arrayState))};
_.v.has=function(e){return Om.prototype.has.call(this,this.keyToApi(e,!1,!1))};
_.v.get=function(e){e=this.keyToApi(e,!1,!1);var g=Om.prototype.get.call(this,e);if(g!==void 0){var c=this.valueCtor;return c?(c=this.valueToApi(g,!1,!0,c,this.callToMutableOnAccess,this.arrayState),c!==g&&Om.prototype.set.call(this,e,c),c):g}};
FQ.prototype[Symbol.iterator]=function(){return this.entries()};
FQ.prototype.toJSON=void 0;var vX6;var GDv=function(){},hlq=function(e,g){for(var c in e)!isNaN(c)&&g(e,+c,e[c])},xMK=function(e){var g=new GDv;
hlq(e,function(c,k,I){g[k]=ez(I)});
g.reviveUnknownFields=e.reviveUnknownFields;return g},a0C={reviveIntoImmutable:!0};var Xqp;var mMq,pqC;var eAw,kB,J2,al,gBZ,vW,LB,cjs,IBq,as,JjI,nq,WW,by;eAw=_.zq(0);_.Me={};_.g0=function(e,g,c,k,I){g=kB(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g,c,I);if(g!==null||k&&e.noLegacyNull!==Pw)return g};
kB=function(e,g,c,k){if(g===-1)return null;var I=g+(c?0:-1),J=e.length-1;if(!(J<1+(c?0:-1))){if(I>=J){var q=e[J];if(q!=null&&typeof q==="object"&&q.constructor===Object){c=q[g];var L=!0}else if(I===J)c=q;else return}else c=e[I];if(k&&c!=null){k=k(c);if(k==null)return k;if(!Object.is(k,c))return L?q[g]=k:e[I]=k,k}return c}};
_.e6=function(e,g,c,k){NM(e);var I=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Kg(I,I[_.wZ]|0,g,c,k);return e};
_.cW=function(e,g,c){e=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return KOz(e,e[_.wZ]|0,g,c)!==void 0};
_.kV=function(e,g,c,k){var I=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return KOz(I,I[_.wZ]|0,g,al(e,k,c))!==void 0};
_.HH=function(e){return e===tz1?2:4};
_.Is=function(e,g){e=_.g0(e,g,void 0,void 0,Vze);return e==null?_.Ak():e};
J2=function(e,g,c,k){NM(e);var I=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=I[_.wZ]|0;if(k==null){var q=NjC(I);if(S76(q,I,J,c)===g)q.set(c,0);else return e}else J=yoC(I,J,c,g);Kg(I,J,g,k);return e};
_.id=function(e,g,c,k){var I=e[_.wZ]|0,J=us(I);I=yoC(e,I,c,g,J);Kg(e,I,g,k,J)};
al=function(e,g,c){return _.JP(e,g)===c?c:-1};
_.JP=function(e,g){e=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return S76(NjC(e),e,void 0,g,void 0)};
gBZ=function(e,g,c){var k=e[_.wZ]|0,I=us(k),J=kB(e,c,I);if(J!=null&&J[Ao]===s7){if(!mB(J))return Bq(J),J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var q=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(J)&&(q=J);if(q){var L=q[_.wZ]|0;L&2&&(q=Vv(q,L))}q=U7(q,g);q!==J&&Kg(e,k,c,q,I);return q};
_.Ml=function(e,g,c,k){var I=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=I[_.wZ]|0;g=KOz(I,J,g,c,k);if(g==null)return g;J=I[_.wZ]|0;if(!mB(e,J)){var q=kDU(g);q!==g&&(Bq(e)&&(I=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=I[_.wZ]|0),g=q,J=Kg(I,J,c,g,k),yv(I,J))}return g};
_.z1=function(e,g,c,k){var I=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Ogp(e,I,I[_.wZ]|0,g,c,k,!1,!0)};
_.sx=function(e,g,c,k){c=Mzq(c);_.e6(e,g,c,k);c&&!mB(c)&&yv(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return e};
_.Fp=function(e,g,c,k){k=Mzq(k);J2(e,g,c,k);k&&!mB(k)&&yv(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return e};
vW=function(e,g,c){NM(e);var k=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=k[_.wZ]|0;if(c==null)return Kg(k,I,g),e;for(var J=c===O7?7:c[_.wZ]|0,q=J,L=cJ(J),n=L||Object.isFrozen(c),R=!0,W=!0,b=0;b<c.length;b++){var h=c[b];L||(h=mB(h),R&&(R=!h),W&&(W=h))}L||(J=R?13:5,J=W?J&-4097:J|4096);n&&J===q||(c=ez(c),q=0,J=ea(J,I));J!==q&&Rn(c,J);I=Kg(k,I,g,c);2&J||!(4096&J||16&J)||yv(k,I);return e};
LB=function(e,g,c,k){eAz(e,g,c,k);return e};
cjs=function(e,g,c){eAz(e,g,w0,void 0,c,1,!0);return e};
_.kTq=function(e,g){return _.E7?tut(_.g0(e,g,void 0,void 0,NZq)):tut(_.g0(e,g))};
_.qB=function(e,g,c){return _.E7?_.g0(e,g,void 0,c,NZq):NZq(_.g0(e,g,void 0,c))};
_.Lq=function(e,g,c){return _.E7?_.g0(e,g,void 0,c,Svz):Svz(_.g0(e,g,void 0,c))};
_.r0=function(e,g){var c=c===void 0?!1:c;var k;return(k=_.mqp(_.g0(e,g)))!=null?k:c};
_.Qh=function(e,g,c){c=c===void 0?0:c;var k;return(k=_.ax(_.g0(e,g)))!=null?k:c};
IBq=function(e,g){var c=c===void 0?0:c;e=_.lwz(_.g0(e,g));return e!=null?e:c};
as=function(e,g,c){c=c===void 0?eAw:c;var k;return(k=_.qB(e,g))!=null?k:c};
JjI=function(e){var g=g===void 0?eAw:g;var c;return(c=_.Lq(e,23))!=null?c:g};
nq=function(e,g){var c=c===void 0?0:c;var k;return(k=_.g0(e,g,void 0,void 0,_.kX))!=null?k:c};
_.Rs=function(e,g,c,k){c=c===void 0?"":c;var I;return(I=_.TD(_.g0(e,g,k)))!=null?I:c};
_.EU=function(e,g){var c=c===void 0?0:c;var k;return(k=_.Lg(_.g0(e,g)))!=null?k:c};
WW=function(e,g){var c=c===void 0?"0":c;e=_.E7?BZg(_.g0(e,g,void 0,void 0,NZq)):BZg(_.g0(e,g),!0);return e!=null?e:c};
_.vBI=function(e,g,c){e=_.gr(e,g,_.TD,3,!0);IwW(e,c);return e[c]};
by=function(e,g,c){return _.Rs(e,al(e,c,g))};
_.hP=function(e,g,c,k){return _.Ml(e,g,al(e,k,c),void 0)};
_.Ma=function(e,g){return _.TD(_.g0(e,g,void 0,_.Me))};
_.td=function(e,g,c){return _.e6(e,g,Ps8(c))};
_.rE=function(e,g,c){return _.wr(e,g,Ps8(c),!1)};
_.Xv=function(e,g,c){return _.e6(e,g,_.rj(c))};
_.Rl=function(e,g,c){return _.e6(e,g,xX(c))};
_.vH=function(e,g,c){return _.e6(e,g,pg(c))};
_.pL=function(e,g,c,k){return _.wr(e,g,pg(c),"",k)};
_.Cf=function(e,g,c){return _.e6(e,g,c==null?c:_.qM(c))};
_.GX=function(e,g,c){return _.wr(e,g,c==null?c:_.qM(c),0)};var rr=function(e,g,c){this.buffer=e;if(c&&!g)throw Error();this.JSC$9161_isImmutable=g};var wJs=function(e,g,c,k){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9164_start_=0;this.init(e,g,c,k)},Las,xV,rj4,vWt,aBB,nBn,RAB,EBn,imV,qxM;
_.v=wJs.prototype;_.v.init=function(e,g,c,k){var I=k===void 0?{}:k;k=I.aliasBytesFields===void 0?!1:I.aliasBytesFields;I=I.treatNewDataAsImmutable===void 0?!1:I.treatNewDataAsImmutable;this.aliasBytesFields=k;this.treatNewDataAsImmutable=I;e&&(e=cjW(e,this.treatNewDataAsImmutable),this.bytes_=e.buffer,this.bytesAreImmutable_=e.JSC$9161_isImmutable,this.JSC$9164_start_=g||0,this.end_=c!==void 0?this.JSC$9164_start_+c:this.bytes_.length,this.cursor_=this.JSC$9164_start_)};
_.v.free=function(){this.clear();qxM.length<100&&qxM.push(this)};
_.v.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9164_start_=0;this.aliasBytesFields=!1};
_.v.reset=function(){this.cursor_=this.JSC$9164_start_};
_.v.atEnd=function(){return this.cursor_==this.end_};
_.ja=function(e,g){var c=0,k=0,I=0,J=e.bytes_,q=e.cursor_;do{var L=J[q++];c|=(L&127)<<I;I+=7}while(I<32&&L&128);if(I>32)for(k|=(L&127)>>4,I=3;I<32&&L&128;I+=7)L=J[q++],k|=(L&127)<<I;xV(e,q);if(!(L&128))return g(c>>>0,k>>>0);throw Error();};
Las=function(e){return _.ja(e,function(g,c){return fw6(g,c,$qK)})};
xV=function(e,g){e.cursor_=g;if(g>e.end_)throw Error();};
_.$V=function(e){var g=e.bytes_,c=e.cursor_,k=g[c++],I=k&127;if(k&128&&(k=g[c++],I|=(k&127)<<7,k&128&&(k=g[c++],I|=(k&127)<<14,k&128&&(k=g[c++],I|=(k&127)<<21,k&128&&(k=g[c++],I|=k<<28,k&128&&g[c++]&128&&g[c++]&128&&g[c++]&128&&g[c++]&128&&g[c++]&128)))))throw Error();xV(e,c);return I};
_.YV=function(e){var g=e.bytes_,c=e.cursor_,k=g[c],I=g[c+1],J=g[c+2];g=g[c+3];xV(e,e.cursor_+4);return(k<<0|I<<8|J<<16|g<<24)>>>0};
rj4=function(e){var g=_.YV(e);e=_.YV(e);return xqq(g,e)};
vWt=function(e){var g=_.YV(e);e=_.YV(e);return DqA(g,e)};
aBB=function(e){var g=_.YV(e);e=(g>>31)*2+1;var c=g>>>23&255;g&=8388607;return c==255?g?NaN:e*Infinity:c==0?e*1.401298464324817E-45*g:e*Math.pow(2,c-150)*(g+8388608)};
nBn=function(e){var g=_.YV(e),c=_.YV(e);e=(c>>31)*2+1;var k=c>>>20&2047;g=4294967296*(c&1048575)+g;return k==2047?g?NaN:e*Infinity:k==0?e*4.9E-324*g:e*Math.pow(2,k-1075)*(g+4503599627370496)};
RAB=function(e){for(var g=0,c=e.cursor_,k=c+10,I=e.bytes_;c<k;){var J=I[c++];g|=J;if((J&128)===0)return xV(e,c),!!(g&127)}throw Error();};
EBn=function(e,g){if(g<0)throw Error();var c=e.cursor_;g=c+g;if(g>e.end_)throw Error();e.cursor_=g;return c};
imV=function(e,g){if(g==0)return _.Ak();var c=EBn(e,g);e.aliasBytesFields&&e.bytesAreImmutable_?c=e.bytes_.subarray(c,c+g):(e=e.bytes_,g=c+g,c=c===g?new Uint8Array(0):OgI?e.slice(c,g):new Uint8Array(e.subarray(c,g)));return c.length==0?_.Ak():new Tq(c,ls)};
qxM=[];var bmM=function(e,g,c,k){if(qxM.length){var I=qxM.pop();I.init(e,g,c,k);e=I}else e=new wJs(e,g,c,k);this.decoder_=e;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Wav(this,k)},Wav=function(e,g){g=g===void 0?{}:g;
e.discardUnknownFields=g.discardUnknownFields===void 0?!1:g.discardUnknownFields},pJv=function(e,g,c,k){if(hAq.length){var I=hAq.pop();
Wav(I,k);I.decoder_.init(e,g,c,k);return I}return new bmM(e,g,c,k)},YxV,j3V,fq,XJk,hAq;
bmM.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;hAq.length<100&&hAq.push(this)};
bmM.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
YxV=function(e){if(e.decoder_.atEnd())return!1;e.fieldCursor_=e.decoder_.cursor_;var g=_.$V(e.decoder_)>>>0,c=g>>>3;g&=7;if(!(g>=0&&g<=5))throw Error();if(c<1)throw Error();e.nextField_=c;e.nextWireType_=g;return!0};
j3V=function(e){switch(e.nextWireType_){case 0:e.nextWireType_!=0?j3V(e):RAB(e.decoder_);break;case 1:e=e.decoder_;xV(e,e.cursor_+8);break;case 2:if(e.nextWireType_!=2)j3V(e);else{var g=_.$V(e.decoder_)>>>0;e=e.decoder_;xV(e,e.cursor_+g)}break;case 5:e=e.decoder_;xV(e,e.cursor_+4);break;case 3:g=e.nextField_;do{if(!YxV(e))throw Error();if(e.nextWireType_==4){if(e.nextField_!=g)throw Error();break}j3V(e)}while(1);break;default:throw Error();}};
fq=function(e,g,c){var k=e.decoder_.end_,I=_.$V(e.decoder_)>>>0;I=e.decoder_.cursor_+I;var J=I-k;J<=0&&(e.decoder_.end_=I,c(g,e,void 0,void 0,void 0),J=I-e.decoder_.cursor_);if(J)throw Error();e.decoder_.cursor_=I;e.decoder_.end_=k;return g};
XJk=function(e){var g=_.$V(e.decoder_)>>>0;e=e.decoder_;var c=EBn(e,g);e=e.bytes_;if(KBY){var k=e,I;(I=ykZ)||(I=ykZ=new TextDecoder("utf-8",{fatal:!0}));g=c+g;k=c===0&&g===k.length?k:k.subarray(c,g);try{var J=I.decode(k)}catch(R){if(Svw===void 0){try{I.decode(new Uint8Array([128]))}catch(W){}try{I.decode(new Uint8Array([97])),Svw=!0}catch(W){Svw=!1}}!Svw&&(ykZ=void 0);throw R;}}else{J=c;g=J+g;c=[];for(var q=null,L,n;J<g;)L=e[J++],L<128?c.push(L):L<224?J>=g?gV():(n=e[J++],L<194||(n&192)!==128?(J--,
gV()):c.push((L&31)<<6|n&63)):L<240?J>=g-1?gV():(n=e[J++],(n&192)!==128||L===224&&n<160||L===237&&n>=160||((I=e[J++])&192)!==128?(J--,gV()):c.push((L&15)<<12|(n&63)<<6|I&63)):L<=244?J>=g-2?gV():(n=e[J++],(n&192)!==128||(L<<28)+(n-144)>>30!==0||((I=e[J++])&192)!==128||((k=e[J++])&192)!==128?(J--,gV()):(L=(L&7)<<18|(n&63)<<12|(I&63)<<6|k&63,L-=65536,c.push((L>>10&1023)+55296,(L&1023)+56320))):gV(),c.length>=8192&&(q=qCV(q,c),c.length=0);J=qCV(q,c)}return J};
_.GTB=function(e){var g=_.$V(e.decoder_)>>>0;return imV(e.decoder_,g)};
_.xb4=function(e,g,c){var k=_.$V(e.decoder_)>>>0;for(k=e.decoder_.cursor_+k;e.decoder_.cursor_<k;)c.push(g(e.decoder_))};
hAq=[];var Db4=function(e,g){this.JSC$9171_lo=e>>>0;this.JSC$9171_hi=g>>>0},VaW=function(e){e=BigInt.asUintN(64,e);
return new Db4(Number(e&BigInt(4294967295)),Number(e>>BigInt(32)))},Jjp=function(e){if(!e)return $bw||($bw=new Db4(0,0));
if(!/^\d+$/.test(e))return null;K1(e);return new Db4(Hw,Q4)},$bw,Zmg=function(e,g){this.JSC$9173_lo=e>>>0;
this.JSC$9173_hi=g>>>0},kTv=function(e){if(!e)return YxZ||(YxZ=new Zmg(0,0));
if(!/^-?\d+$/.test(e))return null;K1(e);return new Zmg(Hw,Q4)},YxZ;var jA=function(){this.JSC$9175_buffer_=[]},DB,fm,fBu;
jA.prototype.length=function(){return this.JSC$9175_buffer_.length};
jA.prototype.end=function(){var e=this.JSC$9175_buffer_;this.JSC$9175_buffer_=[];return e};
DB=function(e,g,c){for(;c>0||g>127;)e.JSC$9175_buffer_.push(g&127|128),g=(g>>>7|c<<25)>>>0,c>>>=7;e.JSC$9175_buffer_.push(g)};
fm=function(e,g){for(;g>127;)e.JSC$9175_buffer_.push(g&127|128),g>>>=7;e.JSC$9175_buffer_.push(g)};
_.Brg=function(e,g){if(g>=0)fm(e,g);else{for(var c=0;c<9;c++)e.JSC$9175_buffer_.push(g&127|128),g>>=7;e.JSC$9175_buffer_.push(1)}};
fBu=function(e,g){K1(g);YvC(function(c,k){DB(e,c>>>0,k>>>0)})};
jA.prototype.writeUint8=function(e){this.JSC$9175_buffer_.push(e>>>0&255)};
_.xB=function(e,g){e.JSC$9175_buffer_.push(g>>>0&255);e.JSC$9175_buffer_.push(g>>>8&255);e.JSC$9175_buffer_.push(g>>>16&255);e.JSC$9175_buffer_.push(g>>>24&255)};
jA.prototype.writeInt8=function(e){this.JSC$9175_buffer_.push(e>>>0&255)};var j3Z,bd,SxU,Omp,LaW;j3Z=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new jA};
bd=function(e,g){g.length!==0&&(e.blocks_.push(g),e.totalLength_+=g.length)};
_.imZ=function(e,g){_.GT(e,g,2);g=e.encoder_.end();bd(e,g);g.push(e.totalLength_);return g};
_.Pdw=function(e,g){var c=g.pop();for(c=e.totalLength_+e.encoder_.length()-c;c>127;)g.push(c&127|128),c>>>=7,e.totalLength_++;g.push(c);e.totalLength_++};
_.GT=function(e,g,c){fm(e.encoder_,g*8+c)};
SxU=function(e,g,c){if(c!=null)switch(vBp(c),_.GT(e,g,1),typeof c){case "number":e=e.encoder_;b1v(c);_.xB(e,Hw);_.xB(e,Q4);break;case "bigint":c=VaW(c);e=e.encoder_;g=c.JSC$9171_hi;_.xB(e,c.JSC$9171_lo);_.xB(e,g);break;default:c=Jjp(c),e=e.encoder_,g=c.JSC$9171_hi,_.xB(e,c.JSC$9171_lo),_.xB(e,g)}};
Omp=function(e,g,c){_.GT(e,g,2);fm(e.encoder_,c.length);bd(e,e.encoder_.end());bd(e,c)};
LaW=function(e,g,c,k){c!=null&&(g=_.imZ(e,g),k(c,e),_.Pdw(e,g))};var wJW,mbY,pJq,Trv,lBZ,s31,FaY,dbB,zAI;wJW=a3();mbY=a3();pJq=a3();Trv=a3();lBZ=a3();_.AjY=a3();_.iy=a3();s31=a3();FaY=a3();_.upI=a3();dbB=a3();zAI=a3();_.HmB=a3();_.Q3w=a3();_.WJ=function(e,g,c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e,g,c)};
_.WJ.prototype.toJSON=function(){return Qv(this)};
_.WJ.prototype.serialize=function(e){return JSON.stringify(Qv(this,e))};
var aEC=function(e,g){if(g==null||g=="")return new e;g=JSON.parse(g);if(!Array.isArray(g))throw Error("W");return new e(ck6(g))};
_.WJ.prototype.getExtension=function(e){EXg(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e.fieldIndex);nXA(this,e.fieldIndex);return e.ctor?e.isRepeated?e.getExtensionFn(this,e.ctor,e.fieldIndex,_.HH(),e.JSC$9186_hasMessageId):e.getExtensionFn(this,e.ctor,e.fieldIndex,e.JSC$9186_hasMessageId):e.isRepeated?e.getExtensionFn(this,e.fieldIndex,_.HH(),e.JSC$9186_hasMessageId):e.getExtensionFn(this,e.fieldIndex,e.defaultValue,e.JSC$9186_hasMessageId)};
_.WJ.prototype.clone=function(){var e=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=e[_.wZ]|0;return Qx8(this,e,g)?Hgz(this,e,!0):new this.constructor(Vv(e,g,!1))};
_.WJ.prototype[Ao]=s7;_.WJ.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var nm=function(e,g,c){this.$$binaryReaderFn=e;this.$$binaryWriterFn=g;e=zD(wJW);this.$$isMsg=!!e&&c===e||!1},WaC=qxg(function(e,g,c,k,I){if(e.nextWireType_!==2)return!1;
fq(e,gBZ(g,k,c),I);return!0},aBe),bmg=qxg(function(e,g,c,k,I){if(e.nextWireType_!==2)return!1;
fq(e,gBZ(g,k,c),I);return!0},aBe),lBV=Symbol(),GTe=Symbol(),$bz=Symbol(),Fa8=Symbol(),Pdz=Symbol(),nBA,RAe;var UbB,qhe,oBZ,PW,ZmM,Vas,tan,BrM,pq,Sxq,yj4,KaI,OmI,Mav,eLM,gW1,c0q,kes,IEY,J0n;UbB=_.zq(0);qhe=function(e,g){var c=new j3Z;upp(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Ex(lBV,TrC,Aj8,g));bd(c,c.encoder_.end());e=new Uint8Array(c.totalLength_);g=c.blocks_;for(var k=g.length,I=0,J=0;J<k;J++){var q=g[J];e.set(q,I);I+=q.length}c.blocks_=[e];return e};
oBZ=qxg(function(e,g,c,k,I){if(e.nextWireType_!==2)return!1;e=fq(e,U7([void 0,void 0],k),I);e=ez(e);k=g[_.wZ]|0;I=us(k);if(k&2)throw Error();var J=kB(g,c,I);if(J instanceof FQ)(J.arrayState&2)!=0?(J=jxe(J),J.push(e),Kg(g,k,c,J,I)):(g=J,c=g.keyToApi(e[0],!1,!0),e=e[1],e=g.valueCtor?e===void 0?null:e:g.valueToApi(e,!1,!0,void 0,!1,g.arrayState),Om.prototype.set.call(g,c,e));else if(Array.isArray(J)){var q=J[_.wZ]|0;q&8192||Rn(J,q|=8192);q&2&&(J=tzC(J),Kg(g,k,c,J,I));J.push(e)}else Kg(g,k,c,YI([e]),
I);return!0},function(e,g,c,k,I){if(g instanceof FQ)g.forEach(function(L,n){LaW(e,c,U7([n,
L],k),I)});
else if(Array.isArray(g)){for(var J=0;J<g.length;J++){var q=g[J];Array.isArray(q)&&LaW(e,c,U7(q,k),I)}YI(g)}});
PW=_.hj(function(e,g,c){if(e.nextWireType_!==1)return!1;_.Xp(g,c,nBn(e.decoder_));return!0},Ube,zAI);
ZmM=_.hj(function(e,g,c,k){if(e.nextWireType_!==1)return!1;_.id(g,c,k,nBn(e.decoder_));return!0},Ube,zAI);
Vas=_.hj(function(e,g,c){if(e.nextWireType_!==5)return!1;_.Xp(g,c,aBB(e.decoder_));return!0},oBV,dbB);
tan=_.Q3t(function(e,g,c){if(e.nextWireType_!==5&&e.nextWireType_!==2)return!1;g=_.qb(g,g[_.wZ]|0,c);e.nextWireType_==2?_.xb4(e,aBB,g):g.push(aBB(e.decoder_));return!0},function(e,g,c){g=_.Hme(_.kX,g,!0);
if(g!=null&&g.length)for(_.GT(e,c,2),fm(e.encoder_,g.length*4),c=0;c<g.length;c++){var k=e.encoder_;Gq8(g[c]);_.xB(k,Hw)}},dbB);
BrM=_.hj(function(e,g,c,k){if(e.nextWireType_!==5)return!1;_.id(g,c,k,aBB(e.decoder_));return!0},oBV,dbB);
_.NrM=_.hj(function(e,g,c){if(_.ZQ)return keW(e,g,c);if(e.nextWireType_!==0)return!1;_.Xp(g,c,_.ja(e.decoder_,_.y4));return!0},_.$B,_.iy);
_.mv=_.hj(function(e,g,c){if(_.ZQ)return keW(e,g,c);if(e.nextWireType_!==0)return!1;_.Xp(g,c,_.ja(e.decoder_,Nq));return!0},_.$B,_.iy);
pq=_.hj(function(e,g,c){if(_.ZQ)return e.nextWireType_!==0?g=!1:(e=_.ja(e.decoder_,$qK),_.Xp(g,c,e===UbB?void 0:e),g=!0),g;if(e.nextWireType_!==0)return!1;e=_.ja(e.decoder_,Nq);_.Xp(g,c,e===0?void 0:e);return!0},_.$B,_.iy);
Sxq=_.hj(function(e,g,c,k){if(_.ZQ)return _.IE8(e,g,c,k);if(e.nextWireType_!==0)return!1;_.id(g,c,k,_.ja(e.decoder_,Nq));return!0},_.$B,_.iy);
yj4=_.hj(function(e,g,c){if(_.ZQ)return J0A(e,g,c);if(e.nextWireType_!==0)return!1;_.Xp(g,c,_.ja(e.decoder_,_.tk));return!0},taA,s31);
_.TX=_.hj(function(e,g,c){if(_.ZQ)return J0A(e,g,c);if(e.nextWireType_!==0)return!1;_.Xp(g,c,_.ja(e.decoder_,xqq));return!0},taA,s31);
_.ly=_.hj(function(e,g,c){if(e.nextWireType_!==0)return!1;_.Xp(g,c,_.$V(e.decoder_));return!0},Nrg,Trv);
KaI=_.hj(function(e,g,c){if(e.nextWireType_!==0)return!1;e=_.$V(e.decoder_);_.Xp(g,c,e===0?void 0:e);return!0},Nrg,Trv);
OmI=_.hj(function(e,g,c,k){if(e.nextWireType_!==0)return!1;_.id(g,c,k,_.$V(e.decoder_));return!0},Nrg,Trv);
Mav=_.hj(function(e,g,c){if(_.ZQ)return _.wAU(e,g,c);if(e.nextWireType_!==1)return!1;_.Xp(g,c,rj4(e.decoder_));return!0},_.yj6,_.upI);
_.Cd4=_.Q3t(function(e,g,c){if(_.ZQ)return e.nextWireType_!==1&&e.nextWireType_!==2?e=!1:(g=_.qb(g,g[_.wZ]|0,c),e.nextWireType_==2?_.xb4(e,vWt,g):g.push(vWt(e.decoder_)),e=!0),e;if(e.nextWireType_!==1&&e.nextWireType_!==2)return!1;g=_.qb(g,g[_.wZ]|0,c);e.nextWireType_==2?_.xb4(e,rj4,g):g.push(rj4(e.decoder_));return!0},function(e,g,c){g=_.Hme(KB8,g,!1);
if(g!=null)for(var k=0;k<g.length;k++)SxU(e,c,g[k])},_.upI);
_.AP=_.hj(function(e,g,c){if(e.nextWireType_!==0)return!1;_.Xp(g,c,RAB(e.decoder_));return!0},Kap,mbY);
_.sU=_.hj(function(e,g,c){if(e.nextWireType_!==0)return!1;e=RAB(e.decoder_);_.Xp(g,c,e===!1?void 0:e);return!0},Kap,mbY);
eLM=_.hj(function(e,g,c,k){if(e.nextWireType_!==0)return!1;_.id(g,c,k,RAB(e.decoder_));return!0},Kap,mbY);
_.Fv=_.hj(function(e,g,c){if(e.nextWireType_!==2)return!1;_.Xp(g,c,XJk(e));return!0},MaC,pJq);
_.uy=_.hj(function(e,g,c){if(e.nextWireType_!==2)return!1;e=XJk(e);_.Xp(g,c,e===""?void 0:e);return!0},MaC,pJq);
_.d0=_.hj(function(e,g,c,k){if(e.nextWireType_!==2)return!1;_.id(g,c,k,XJk(e));return!0},MaC,pJq);
gW1=_.Q3t(function(e,g,c){if(e.nextWireType_!==2)return!1;e=XJk(e);_.qb(g,g[_.wZ]|0,c).push(e);return!0},function(e,g,c){g=_.Hme(_.TD,g,!0);
if(g!=null)for(var k=0;k<g.length;k++){var I=e,J=c,q=g[k];q!=null&&Omp(I,J,npp(q))}},pJq);
c0q=void 0;c0q=c0q===void 0?wJW:c0q;_.zX=new nm(function(e,g,c,k,I){if(e.nextWireType_!==2)return!1;k=U7(void 0,k);_.qb(g,g[_.wZ]|0,c).push(k);fq(e,k,I);return!0},function(e,g,c,k,I){if(Array.isArray(g)){for(var J=0;J<g.length;J++)Cd6(e,g[J],c,k,I);
e=g[_.wZ]|0;e&1||Rn(g,e|1)}},c0q);
_.HW=qxg(function(e,g,c,k,I,J){if(e.nextWireType_!==2)return!1;var q=g[_.wZ]|0;yoC(g,q,J,c,us(q));g=gBZ(g,k,c);fq(e,g,I);return!0},Cd6);
_.Qk=_.hj(function(e,g,c){if(e.nextWireType_!==2)return!1;_.Xp(g,c,_.GTB(e));return!0},_.eLg,_.HmB);
kes=_.hj(function(e,g,c,k){if(e.nextWireType_!==2)return!1;_.id(g,c,k,_.GTB(e));return!0},_.eLg,_.HmB);
_.UU=_.hj(function(e,g,c){if(e.nextWireType_!==0)return!1;_.Xp(g,c,_.$V(e.decoder_)>>>0);return!0},gWC,lBZ);
IEY=_.hj(function(e,g,c,k){if(e.nextWireType_!==0)return!1;_.id(g,c,k,_.$V(e.decoder_)>>>0);return!0},gWC,lBZ);
_.Z4=_.hj(function(e,g,c){if(e.nextWireType_!==0)return!1;_.Xp(g,c,_.$V(e.decoder_));return!0},_.c0v,_.Q3w);
_.Vk=_.hj(function(e,g,c){if(e.nextWireType_!==0)return!1;e=_.$V(e.decoder_);_.Xp(g,c,e===0?void 0:e);return!0},_.c0v,_.Q3w);
J0n=_.hj(function(e,g,c){if(_.ZQ)return e.nextWireType_!==0?e=!1:(_.Xp(g,c,Las(e.decoder_)),e=!0),e;if(e.nextWireType_!==0)return!1;_.Xp(g,c,_.ja(e.decoder_,jnV));return!0},function(e,g,c){g=ykV(g);
if(g!=null&&(IBU(g),g!=null))switch(_.GT(e,c,0),typeof g){case "number":e=e.encoder_;c=g;g=c<0;c=Math.abs(c)*2;b1v(c);c=Hw;var k=Q4;g&&(c==0?k==0?k=c=4294967295:(k--,c=4294967295):c--);Hw=c;Q4=k;DB(e,Hw,Q4);break;case "bigint":e=e.encoder_;g=g<<BigInt(1)^g>>BigInt(63);Hw=Number(BigInt.asUintN(32,g));Q4=Number(BigInt.asUintN(32,g>>BigInt(32)));DB(e,Hw,Q4);break;default:fBu(e.encoder_,g)}},FaY);var qhB=function(){var e=vWw,g=wAq;this.fieldIndex=175237375;this.ctor=g;this.isRepeated=0;this.getExtensionFn=_.Ml;this.defaultValue=void 0;this.JSC$9186_hasMessageId=e.messageId!=null?FM:void 0};
qhB.prototype.register=function(){tA(this)};var Lzq=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Lzq,_.WJ);var r0I=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(r0I,_.WJ);var EWz=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(EWz,_.WJ);var aEv=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(aEv,_.WJ);var nWI=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(nWI,_.WJ);var RL1=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(RL1,_.WJ);var EWw=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(EWw,_.WJ);EWw.prototype.getData=function(){return _.Is(this,2)};var Wzq=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Wzq,_.WJ);var bYZ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(bYZ,_.WJ);bYZ.prototype.getStyle=function(){return _.Ml(this,Lzq,1)};var Aj=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Aj,_.WJ);Aj.prototype.getPayloadCase=function(){return _.JP(this,ud)};
Aj.prototype.getStyle=function(){return _.hP(this,bYZ,6,ud)};
var hLw=function(){var e=new Aj,g=new nWI;return _.Fp(e,7,ud,g)},XAY=function(){var e=new Aj,g=new RL1;
return _.Fp(e,8,ud,g)},ud=[1,
2,3,4,5,6,7,8];var GeI=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(GeI,_.WJ);var x5Z=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(x5Z,_.WJ);var D5u=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(D5u,_.WJ);var $5Z=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y($5Z,_.WJ);var Yhq=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Yhq,_.WJ);var fEB=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(fEB,_.WJ);var jPn=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(jPn,_.WJ);var iYw=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(iYw,_.WJ);iYw.prototype.getData=function(){return _.Is(this,2)};var Pju=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Pju,_.WJ);var RLC=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(RLC,_.WJ);RLC.prototype.getPayloadCase=function(){return _.JP(this,tP)};
var tP=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var BW=function(e,g){e=Error.call(this,e);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=g===void 0?2:g};
_.Y(BW,Error);var m54=Promise;var pA1=function(e){this.channelPromise=e};
pA1.prototype.send=function(e,g,c){this.channelPromise.then(function(k){k.send(e,g,c)})};var Tyv=function(e,g){this.data=e;this.channel=g};
Tyv.prototype.reply=function(e,g,c){this.channel.send(e,g,c)};var lEq=function(e){this.JSC$9252_port_=e};
lEq.prototype.send=function(e,g,c){c=c===void 0?[]:c;var k=new MessageChannel;A04(k.port1,g);this.JSC$9252_port_.postMessage(e,[k.port2].concat(c))};
var sPI=function(e,g){A04(e,g);return new lEq(e)},A04=function(e,g){g&&(e.onmessage=function(c){g(new Tyv(c.data,sPI(c.ports[0])))})};var FzZ=function(e){this.verifier_=e};
FzZ.prototype.verify=function(e){return this.verifier_(e)};
var u1Z=function(e){var g=Object.create(null);(typeof e==="string"?[e]:e).forEach(function(c){if(c==="null")throw Error("Y");g[c]=!0});
return function(c){return g[c]===!0}};_.d5v=function(){if(!_.kp.addEventListener||!Object.defineProperty)return!1;var e=!1,g=Object.defineProperty({},"passive",{get:function(){e=!0}});
try{var c=function(){};
_.kp.addEventListener("test",c,g);_.kp.removeEventListener("test",c,g)}catch(k){}return e}();var zLw;_.NB=function(e){var g=e.destination;var c=e.iframe;var k=e.origin;var I=e.channelName===void 0?"ZNWN1d":e.channelName;var J=e.onMessage===void 0?void 0:e.onMessage;e=e.onEstablished===void 0?void 0:e.onEstablished;return zLw({destination:g,getSource:function(){return c.contentWindow},
originVerifier:k instanceof FzZ?k:typeof k==="function"?new FzZ(k):new FzZ(u1Z(k)),channelName:I,onMessage:J,onEstablished:e})};
zLw=function(e){var g=e.destination;var c=e.getSource;var k=e.originVerifier;var I=e.token===void 0?void 0:e.token;var J=e.channelName;var q=e.onMessage===void 0?void 0:e.onMessage;var L=e.onEstablished===void 0?void 0:e.onEstablished;return new pA1(new m54(function(n,R){var W=function(b){b.source&&b.source===c()&&k.verify(b.origin)&&(b.data.n||b.data)===J&&(g.removeEventListener("message",W,!1),I&&b.data.t!==I?R(Error("Z`"+J+"`"+I+"`"+b.data.t)):(n(sPI(b.ports[0],q)),L&&L(b)))};
g.addEventListener("message",W,!1)}))};var HYs=function(e){try{e()}catch(g){IA(g)}};var U5w=function(e){var g=this;var c=e.getMessageType;var k=e.onUnregisteredMessage===void 0?function(){}:e.onUnregisteredMessage;
var I=e.onBeforeRegisteredMessage===void 0?function(){}:e.onBeforeRegisteredMessage;
e=e.onAfterRegisteredMessage===void 0?function(){}:e.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=c;this.onUnregisteredMessage_=k;this.onBeforeRegisteredMessage_=I;this.onAfterRegisteredMessage_=e;this.onMessage=function(J){return QPB(g,J)}};
U5w.prototype.register=function(e,g){this.registry_.set(e,g);return this};
var QPB=function(e,g){var c=e.getMessageType_(g.data),k=e.registry_.get(c);k?(HYs(function(){return e.onBeforeRegisteredMessage_(g,c)}),HYs(function(){return k(g)}),HYs(function(){return e.onAfterRegisteredMessage_(g,c)})):HYs(function(){return e.onUnregisteredMessage_(g,c)})};var oWI=function(e){this.JSC$9269_channel_=e},V0u,t0B;
oWI.prototype.send=function(e,g,c){this.JSC$9269_channel_.send(Qv(e),g,c)};
_.ZYn=function(e,g){return function(c){var k=new e(c.data);return g(new Tyv(k,c.channel))}};
V0u=function(e){return function(g){return e(new Tyv(g.data,new oWI(g.channel)))}};
t0B=function(e,g){return V0u(_.ZYn(e,g))};var Byk=function(e,g,c,k){this.registry=e;this.delegate=g;this.receiveMessageConstructor=c;this.createInitMessage=k;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},nWp=function(e){var g=new U5w({getMessageType:e.getPayloadCase});
return new Byk(g,new oWI(_.NB({iframe:e.child,destination:window,origin:e.origin,channelName:e.channelName,onMessage:t0B(e.receiveMessageConstructor,g.onMessage)})),e.receiveMessageConstructor,e.createInitMessage)},Nyw=function(e,g){e.createInitMessage=g};
Byk.prototype.send=function(e){if(!this.initialised)throw new BW("Attempted to send a message before initialisation.");this.delegate.send(e)};
var Shu=function(e,g){return _.r(function(c){if(!e.initialised)throw new BW("Attempted to send a message before initialisation.");return c.return(new Promise(function(k){e.delegate.send(g,t0B(e.receiveMessageConstructor,k))}))})};
Byk.prototype.init=function(){var e=this;return _.r(function(g){if(e.initialised)throw new BW("Attempted to initialise twice. The SDK can only be initialised once.");if(e.createInitMessage!==void 0){var c=e.delegate,k=c.send,I=e.createInitMessage;var J=new r0I;var q=[].concat(_.KY(e.features));J=_.Jj(J,1,q,_.qM);k.call(c,I.call(e,J))}e.initialised=!0;_.Uh(g)})};
var SA=function(e,g){if(e.initialised)throw new BW('Attempted to set up API "'+g+'" after initialisation. All APIs must be set up before initialising the SDK.');e.features.add(g);return e.registry};
_.Bd.Object.defineProperties(Byk.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var y0M=function(e){this.channel=e;this.registered=!1};
y0M.prototype.update=function(e){if(this.channel.isInitialised){if(!this.registered)throw new BW("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var g=new Aj;var c=new aEv;c=_.td(c,1,e);g=_.Fp(g,2,ud,c);this.channel.send(g)}else this.register();this.JSC$9283_audioEnabled=e};
y0M.prototype.register=function(){SA(this.channel,1);this.registered=!0};
y0M.prototype.isAudioEnabled=function(){return this.JSC$9283_audioEnabled};var Kzn=function(e){this.channel=e};
_.v=Kzn.prototype;_.v.onFirstFrameReady=function(e){SA(this.channel,2).register(11,function(g){g=_.hP(g.data,GeI,11,tP);if(!g)throw new BW("Unexpectedly nonexistent GameFirstFrameReadyEvent");e(_.Rs(g,1))})};
_.v.onReady=function(e){SA(this.channel,2).register(4,function(g){g=_.hP(g.data,D5u,4,tP);if(!g)throw new BW("Unexpectedly nonexistent GameReadyEvent");e(_.Rs(g,1))})};
_.v.onLevelComplete=function(e){SA(this.channel,2).register(5,function(g){g=_.hP(g.data,$5Z,5,tP);if(!g)throw new BW("Unexpectedly nonexistent LevelCompleteEvent");e(_.Rs(g,1),_.Qh(g,2))})};
_.v.onGameOver=function(e){SA(this.channel,2).register(6,function(g){g=_.hP(g.data,x5Z,6,tP);if(!g)throw new BW("Unexpectedly nonexistent GameOverEvent");e(_.Rs(g,1))})};
_.v.pause=function(){var e=this;if(!this.channel.isInitialised)return SA(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new BW("Using unregistered Game Feature: pause.");var g=hLw();return new Promise(function(c){return _.r(function(k){if(k.nextAddress==1)return k.yield(Shu(e.channel,g),2);c();_.Uh(k)})})};
_.v.resume=function(){var e=this;if(!this.channel.isInitialised)return SA(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new BW("Using unregistered Game Feature: resume.");var g=XAY();return new Promise(function(c){return _.r(function(k){if(k.nextAddress==1)return k.yield(Shu(e.channel,g),2);c();_.Uh(k)})})};var OY4=function(e){this.channel=e};
OY4.prototype.onReady=function(e){SA(this.channel,5).register(8,function(g){if(!_.hP(g.data,Yhq,8,tP))throw new BW("Unexpectedly nonexistent PageReadyEvent");e()})};var M0w=function(e){this.channel=e};
M0w.prototype.onChange=function(e){SA(this.channel,3).register(7,function(g){g=_.hP(g.data,fEB,7,tP);if(!g)throw new BW("Unexpectedly nonexistent ScoreEvent");e(_.Rs(g,1),_.Qh(g,2))})};var CjI={load:function(){throw new BW("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new BW("Storage used, but storage.onSave() listener not set!");}},ev1=function(e){this.channel=e;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},gaI=function(e){SA(e.channel,4).register(2,CjI.load).register(3,CjI.save);
e.initialSetupDone=!0};
ev1.prototype.onLoad=function(e){this.initialSetupDone||gaI(this);this.loadRegistered||(this.loadRegistered=!0,SA(this.channel,4).register(2,function(g){var c,k,I;return _.r(function(J){if(J.nextAddress==1){c=_.hP(g.data,jPn,2,tP);if(!c)throw new BW("Unexpectedly nonexistent StorageLoad");k=_.Rs(c,1);return J.yield(e(k),2)}I=J.yieldResult;var q=g.reply,L=new Aj;var n=new EWw;n=_.vH(n,1,k);n=_.e6(n,2,_.sv(I,!1));L=_.Fp(L,3,ud,n);q.call(g,L);_.Uh(J)})}))};
ev1.prototype.onSave=function(e){this.initialSetupDone||gaI(this);this.saveRegistered||(this.saveRegistered=!0,SA(this.channel,4).register(3,function(g){var c,k,I;return _.r(function(J){if(J.nextAddress==1){c=_.hP(g.data,iYw,3,tP);if(!c)throw new BW("Unexpectedly nonexistent StorageSave");k=_.Rs(c,1);I=UMv(c.getData());return J.yield(e(k,I),2)}var q=g.reply,L=new Aj;var n=new Wzq;n=_.vH(n,1,k);L=_.Fp(L,4,ud,n);q.call(g,L);_.Uh(J)})}))};var cvM=function(e){this.channel=e};
cvM.prototype.update=function(e){if(!this.channel.features.has(6))throw new BW("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var g=new Aj,c=new bYZ;e=_.sx(c,1,e);g=_.Fp(g,6,ud,e);this.channel.send(g)};
cvM.prototype.register=function(){SA(this.channel,6)};var k6v=function(e){this.channel=e;this.userActivityLoggingIntervalMs=0};
k6v.prototype.onUserActivity=function(e,g){this.userActivityLoggingIntervalMs=g;SA(this.channel,7).register(9,function(c){if(!_.hP(c.data,Pju,9,tP))throw new BW("Unexpectedly nonexistent ClickEvent");e()})};var Ib1=function(e){var g=this;this.channel=e;this.init=this.channel.init.bind(this.channel);this.page=new OY4(this.channel);this.game=new Kzn(this.channel);this.audio=new y0M(this.channel);this.score=new M0w(this.channel);this.storage=new ev1(this.channel);this.style=new cvM(this.channel);this.userActivity=new k6v(this.channel);Nyw(this.channel,function(c){var k=new EWz;c=_.sx(k,1,c);c=_.Xv(c,3,g.userActivity.userActivityLoggingIntervalMs);k=g.audio.isAudioEnabled();k!==void 0&&_.td(c,2,k);k=new Aj;
return _.Fp(k,5,ud,c)})};var Jvw=function(){this.timedFunctionContext=0};
Jvw.prototype.timeExecution=function(e,g){var c=this;return function(){var k=_.Mb.apply(0,arguments);c.timedFunctionContext=e;return g.apply(null,_.KY(k))}};var vaI=function(){var e={};this.priorityTasks=(e[3]=[],e[2]=[],e[1]=[],e);this.isFlushing=!1},z6=function(e,g,c){var k=wcn(e,c);
e.priorityTasks[c].push(g);k&&e.priorityTasks[c].length===1&&e.flush()},wcn=function(e,g){return Object.keys(e.priorityTasks).map(function(c){return Number(c)}).filter(function(c){return!isNaN(c)&&c>g}).every(function(c){return e.priorityTasks[c].length===0})};
vaI.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(e){return e.length>0});)qy4(this,3),qy4(this,2),qy4(this,1)}catch(e){throw Object.values(this.priorityTasks).forEach(function(g){return void g.splice(0,g.length)}),e;
}finally{this.isFlushing=!1}}};
var qy4=function(e,g){for(;wcn(e,g)&&e.priorityTasks[g].length>0;)e.priorityTasks[g][0](),e.priorityTasks[g].shift()};
_.Bd.Object.defineProperties(vaI.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(e){return e.length>0})}}});var D5K={};var L6Y=globalThis.trustedTypes,bYV=L6Y,XA8;var zT=function(e){this.privateDoNotAccessOrElseWrappedResourceUrl=e};
zT.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var rvM,abB,na4,Rvw,Ea1,W61,brY,hvZ;rvM=_.Ti([""]);abB=pu(["\x00"],["\\0"]);na4=pu(["\n"],["\\n"]);Rvw=pu(["\x00"],["\\u0000"]);Ea1=_.Ti([""]);W61=pu(["\x00"],["\\0"]);brY=pu(["\n"],["\\n"]);hvZ=pu(["\x00"],["\\u0000"]);_.XcY=x5V(function(e){return e(rvM)})||x5V(function(e){return e(abB)})||x5V(function(e){return e(na4)})||x5V(function(e){return e(Rvw)});
_.G6I=_.Ux(Ea1)&&_.Ux(W61)&&_.Ux(brY)&&_.Ux(hvZ);var yP;_.ZB=function(e,g){this.privateDoNotAccessOrElseWrappedUrl=g};
_.ZB.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.xOk=VP("about:blank");yP=VP("about:invalid#zClosurez");var $5V=function(e){this.isValid=e},DOq=new $5V(function(e){return/^[^:]*([/?#]|$)/.test(e)}),$Ow=Nb("data"),Yyq=Nb("http"),fbv=Nb("https"),jRw=Nb("ftp"),iru=Nb("mailto"),P1s=Nb("intent"),mO1=Nb("vnd.youtube"),YhU=[$Ow,
Yyq,fbv,iru,jRw,DOq],jPA=dr(function(){return typeof URL==="function"}),pcZ=["data:",
"http:","https:","mailto:","ftp:"],PjK=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var gy=function(e){this.privateDoNotAccessOrElseWrappedHtml=e};
gy.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var nmg=dr(function(){return new gy(L6Y?L6Y.emptyHTML:"")});var TJq={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"},pAC=function(e,g){var c=Error.call(this,e+" cannot be used with intent "+TJq[g]);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.type=e;this.intent=g;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.Y(pAC,Error);_.ry=function(e){this.privateDoNotAccessOrElseWrappedScript=e};
_.ry.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var lEv=function(e){this.privateDoNotAccessOrElseWrappedAttributePrefix=e};
lEv.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var A06="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var X1=function(e){this.privateDoNotAccessOrElseWrappedStyleSheet=e};
X1.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var GP8=function(e){var g=_.Q0("window.location.href");e==null&&(e='Unknown Error of type "null/undefined"');if(typeof e==="string")return{message:e,name:"Unknown error",lineNumber:"Not available",fileName:g,stack:"Not available"};var c=!1;try{var k=e.lineNumber||e.line||"Not available"}catch(q){k="Not available",c=!0}try{var I=e.fileName||e.filename||e.sourceURL||_.kp.$googDebugFname||g}catch(q){I="Not available",c=!0}g=lbB(e);if(!(!c&&e.lineNumber&&e.fileName&&e.stack&&e.message&&e.name)){c=e.message;
if(c==null){if(e.constructor&&e.constructor instanceof Function){if(e.constructor.name)c=e.constructor.name;else if(c=e.constructor,yk[c])c=yk[c];else{c=String(c);if(!yk[c]){var J=/function\s+([^\(]+)/m.exec(c);yk[c]=J?J[1]:"[Anonymous]"}c=yk[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";typeof e.toString==="function"&&Object.prototype.toString!==e.toString&&(c+=": "+e.toString())}return{message:c,name:e.name||"UnknownError",lineNumber:k,fileName:I,stack:g||"Not available"}}return{message:e.message,
name:e.name,lineNumber:e.lineNumber,fileName:e.fileName,stack:g}},lbB=function(e,g){g||(g={});
g[Av4(e)]=!0;var c=e.stack||"",k=e.cause;k&&!g[Av4(k)]&&(c+="\nCaused by: ",k.stack&&k.stack.indexOf(k.toString())==0||(c+=typeof k==="string"?k:k.message+"\n"),c+=lbB(k,g));e=e.errors;if(Array.isArray(e)){k=1;var I;for(I=0;I<e.length&&!(k>4);I++)g[Av4(e[I])]||(c+="\nInner error "+k++ +": ",e[I].stack&&e[I].stack.indexOf(e[I].toString())==0||(c+=typeof e[I]==="string"?e[I]:e[I].message+"\n"),c+=lbB(e[I],g));I<e.length&&(c+="\n... "+(e.length-I)+" more inner errors")}return c},Av4=function(e){var g=
"";
typeof e.toString==="function"&&(g=""+e);return g+e.stack},yk={};var WCt,y9,Z3,sRu,F6M,dO4,dD,$f,Hr4;WCt=function(e,g){for(var c=e.split("%s"),k="",I=Array.prototype.slice.call(arguments,1);I.length&&c.length>1;)k+=c.shift()+I.shift();return k+c.join("%s")};
_.Kr=function(e){return encodeURIComponent(String(e))};
y9=function(e){return decodeURIComponent(e.replace(/\+/g," "))};
Z3=function(e){kDq.test(e)&&(e.indexOf("&")!=-1&&(e=e.replace(O1k,"&amp;")),e.indexOf("<")!=-1&&(e=e.replace(Mun,"&lt;")),e.indexOf(">")!=-1&&(e=e.replace(Csn,"&gt;")),e.indexOf('"')!=-1&&(e=e.replace(el4,"&quot;")),e.indexOf("'")!=-1&&(e=e.replace(gXu,"&#39;")),e.indexOf("\x00")!=-1&&(e=e.replace(cow,"&#0;")));return e};
_.uDs=function(e){return _.nC(e,"&")?"document"in _.kp?sRu(e):F6M(e):e};
sRu=function(e){var g={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=_.kp.document.createElement("div");return e.replace(dO4,function(k,I){var J=g[k];if(J)return J;I.charAt(0)=="#"&&(I=Number("0"+I.slice(1)),isNaN(I)||(J=String.fromCharCode(I)));J||(_.WA(c,kW(k+" ")),J=c.firstChild.nodeValue.slice(0,-1));return g[k]=J})};
F6M=function(e){return e.replace(/&([^;]+);/g,function(g,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return c.charAt(0)!="#"||(c=Number("0"+c.slice(1)),isNaN(c))?g:String.fromCharCode(c)}})};
dO4=/&([^;\s<&]+);?/g;_.ize=function(e){return String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.zvI=String.prototype.repeat?function(e,g){return e.repeat(g)}:function(e,g){return Array(g+1).join(e)};
_.Kq=function(e,g){if(!Number.isFinite(e))return String(e);e=String(e);var c=e.indexOf(".");c===-1&&(c=e.length);var k=e[0]==="-"?"-":"";k&&(e=e.substring(1));return k+(0,_.zvI)("0",Math.max(0,g-c))+e};
dD=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.QG()).toString(36)};
$f=function(e){for(var g=0,c=0;c<e.length;++c)g=31*g+e.charCodeAt(c)>>>0;return g};
_.O4=function(e){return String(e).replace(/\-([a-z])/g,function(g,c){return c.toUpperCase()})};
_.KM=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()};
Hr4=function(e){return e.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(g,c,k){return c+k.toUpperCase()})};var QRY=function(){this.names=new Map};
QRY.prototype.getName=function(e){var g=this.names.get(e);if(g)return g;var c;g=(c=e.description)!=null?c:dD();this.names.set(e,g);return g};var UOk=function(e){var g=Error.call(this,e?e.length+" errors occurred during unsubscription:\n"+e.map(function(c,k){return k+1+") "+c.toString()}).join("\n  "):"");
this.message=g.message;"stack"in g&&(this.stack=g.stack);this.errors=e;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.Y(UOk,Error);var DE=function(e){this.initialTeardown=e;this.closed=!1;this._teardowns=this._parentage=null};
_.v=DE.prototype;
_.v.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this._parentage;if(Array.isArray(e))for(var g=_.w(e),c=g.next();!c.done;c=g.next())c.value.remove(this);else e==null||e.remove(this);g=this.initialTeardown;if(Ge(g))try{g()}catch(J){var k=J instanceof UOk?J.errors:[J]}var I=this._teardowns;if(I)for(this._teardowns=null,g=_.w(I),c=g.next();!c.done;c=g.next()){c=c.value;try{Ge(c)?c():c.unsubscribe()}catch(J){c=void 0,k=(c=k)!=null?c:[],J instanceof UOk?k=[].concat(_.KY(k),_.KY(J.errors)):
k.push(J)}}if(k)throw new UOk(k);}};
_.v.add=function(e){if(e&&e!==this)if(this.closed)Ge(e)?e():e.unsubscribe();else{if(e instanceof DE){if(e.closed||e._hasParent(this))return;e._addParent(this)}var g;(this._teardowns=(g=this._teardowns)!=null?g:[]).push(e)}};
_.v._hasParent=function(e){var g=this._parentage;return g===e||Array.isArray(g)&&g.includes(e)};
_.v._addParent=function(e){var g=this._parentage;this._parentage=Array.isArray(g)?(g.push(e),g):g?[g,e]:e};
_.v._removeParent=function(e){var g=this._parentage;g===e?this._parentage=null:Array.isArray(g)&&zLz(g,e)};
_.v.remove=function(e){var g=this._teardowns;g&&zLz(g,e);e instanceof DE&&e._removeParent(this)};
var oa1=new DE;oa1.closed=!0;DE.JSC$9379_EMPTY=oa1;var QPe=function(){setTimeout.apply(null,_.KY(_.Mb.apply(0,arguments)))};var OU=function(e){DE.call(this);this.JSC$9384_isStopped=!1;this.destination=e instanceof OU?e:new MB(!e||Ge(e)?{next:e!=null?e:void 0}:e);HYW(e)&&e.add(this)};
_.Y(OU,DE);OU.JSC$9379_EMPTY=DE.JSC$9379_EMPTY;OU.create=function(e,g,c){return new Cq(e,g,c)};
_.v=OU.prototype;_.v.next=function(e){this.JSC$9384_isStopped||this._next(e)};
_.v.error=function(e){this.JSC$9384_isStopped||(this.JSC$9384_isStopped=!0,this._error(e))};
_.v.complete=function(){this.JSC$9384_isStopped||(this.JSC$9384_isStopped=!0,this._complete())};
_.v.unsubscribe=function(){this.closed||(this.JSC$9384_isStopped=!0,DE.prototype.unsubscribe.call(this))};
_.v._next=function(e){this.destination.next(e)};
_.v._error=function(e){this.destination.error(e);this.unsubscribe()};
_.v._complete=function(){this.destination.complete();this.unsubscribe()};
var MB=function(e){this.partialObserver=e};
MB.prototype.next=function(e){var g=this.partialObserver;if(g.next)try{g.next(e)}catch(c){YW(c)}};
MB.prototype.error=function(e){var g=this.partialObserver;if(g.error)try{g.error(e)}catch(c){YW(c)}else YW(e)};
MB.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(g){YW(g)}};
var Cq=function(e,g,c){OU.call(this);var k;Ge(e)||!e?k={next:e!=null?e:void 0,error:g!=null?g:void 0,complete:c!=null?c:void 0}:k=e;this.destination=new MB(k)};
_.Y(Cq,OU);Cq.JSC$9379_EMPTY=OU.JSC$9379_EMPTY;Cq.create=OU.create;var PA=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ij=function(e){e&&(this._subscribe=e)};
_.v=ij.prototype;_.v.lift=function(e){var g=new ij;g.source=this;g.operator=e;return g};
_.v.subscribe=function(e,g,c){e=e&&e instanceof OU||e&&Ge(e.next)&&Ge(e.error)&&Ge(e.complete)&&HYW(e)?e:new Cq(e,g,c);g=this.operator;c=this.source;e.add(g?g.call(e,c):c?this._subscribe(e):this._trySubscribe(e));return e};
_.v._trySubscribe=function(e){try{return this._subscribe(e)}catch(g){e.error(g)}};
_.v.forEach=function(e,g){var c=this;g=oWp(g);return new g(function(k,I){var J=c.subscribe(function(q){try{e(q)}catch(L){I(L),J==null||J.unsubscribe()}},I,k)})};
_.v._subscribe=function(e){var g;return(g=this.source)==null?void 0:g.subscribe(e)};
ij.prototype[PA]=function(){return this};
ij.prototype.pipe=function(){var e=_.Mb.apply(0,arguments);return e.length?U5z(e)(this):this};
ij.create=function(e){return new ij(e)};var ZrB=function(){var e=Error.call(this,"object unsubscribed");this.message=e.message;"stack"in e&&(this.stack=e.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.Y(ZrB,Error);var FD=function(){this.observers=[];this.hasError=this.JSC$9400_isStopped=this.closed=!1;this.thrownError=null};
_.Y(FD,ij);_.v=FD.prototype;_.v.lift=function(e){var g=new e9(this,this);g.operator=e;return g};
_.v._throwIfClosed=function(){if(this.closed)throw new ZrB;};
_.v.next=function(e){this._throwIfClosed();if(!this.JSC$9400_isStopped){var g=this.observers.slice();g=_.w(g);for(var c=g.next();!c.done;c=g.next())c.value.next(e)}};
_.v.error=function(e){this._throwIfClosed();if(!this.JSC$9400_isStopped){this.hasError=this.JSC$9400_isStopped=!0;this.thrownError=e;for(var g=this.observers;g.length;)g.shift().error(e)}};
_.v.complete=function(){this._throwIfClosed();if(!this.JSC$9400_isStopped){this.JSC$9400_isStopped=!0;for(var e=this.observers;e.length;)e.shift().complete()}};
_.v.unsubscribe=function(){this.JSC$9400_isStopped=this.closed=!0;this.observers=null};
_.v._trySubscribe=function(e){this._throwIfClosed();return ij.prototype._trySubscribe.call(this,e)};
_.v._subscribe=function(e){this._throwIfClosed();this._checkFinalizedStatuses(e);return this._innerSubscribe(e)};
_.v._innerSubscribe=function(e){var g=this,c=this.JSC$9400_isStopped,k=this.observers;return this.hasError||c?DE.JSC$9379_EMPTY:(k.push(e),new DE(function(){return zLz(g.observers,e)}))};
_.v._checkFinalizedStatuses=function(e){var g=this.thrownError,c=this.JSC$9400_isStopped;this.hasError?e.error(g):c&&e.complete()};
FD.create=function(e,g){return new e9(e,g)};
var e9=function(e,g){FD.call(this);this.destination=e;this.source=g};
_.Y(e9,FD);e9.create=FD.create;e9.prototype.next=function(e){var g,c;(g=this.destination)==null||(c=g.next)==null||c.call(g,e)};
e9.prototype.error=function(e){var g,c;(g=this.destination)==null||(c=g.error)==null||c.call(g,e)};
e9.prototype.complete=function(){var e,g;(e=this.destination)==null||(g=e.complete)==null||g.call(e)};
e9.prototype._subscribe=function(e){var g,c;return(c=(g=this.source)==null?void 0:g.subscribe(e))!=null?c:DE.JSC$9379_EMPTY};var $U=function(e){FD.call(this);this._value=e};
_.Y($U,FD);$U.create=FD.create;$U.prototype._subscribe=function(e){var g=FD.prototype._subscribe.call(this,e);!g.closed&&e.next(this._value);return g};
$U.prototype.getValue=function(){var e=this.thrownError,g=this._value;if(this.hasError)throw e;this._throwIfClosed();return g};
$U.prototype.next=function(e){FD.prototype.next.call(this,this._value=e)};
_.Bd.Object.defineProperties($U.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var cc=new ij(function(e){return e.complete()});var Byq=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var OY6=function(e){return e&&typeof e.length==="number"&&typeof e!=="function"};var VwY={now:function(){return(VwY.delegate||Date).now()},
delegate:void 0};var b1=function(e,g,c){e=e===void 0?Infinity:e;g=g===void 0?Infinity:g;c=c===void 0?VwY:c;FD.call(this);this.bufferSize=e;this.windowTime=g;this.timestampProvider=c;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=g===Infinity;this.bufferSize=Math.max(1,e);this.windowTime=Math.max(1,g)};
_.Y(b1,FD);b1.create=FD.create;b1.prototype.next=function(e){var g=this.buffer,c=this.infiniteTimeWindow,k=this.timestampProvider,I=this.windowTime;this.JSC$9400_isStopped||(g.push(e),!c&&g.push(k.now()+I));twY(this);FD.prototype.next.call(this,e)};
b1.prototype._subscribe=function(e){this._throwIfClosed();twY(this);for(var g=this._innerSubscribe(e),c=this.infiniteTimeWindow,k=this.buffer.slice(),I=0;I<k.length&&!e.closed;I+=c?1:2)e.next(k[I]);this._checkFinalizedStatuses(e);return g};
var twY=function(e){var g=e.bufferSize,c=e.timestampProvider,k=e.buffer;e=e.infiniteTimeWindow;var I=(e?1:2)*g;g<Infinity&&I<k.length&&k.splice(0,k.length-I);if(!e){g=c.now();c=0;for(e=1;e<k.length&&k[e]<=g;e+=2)c=e;c&&k.splice(0,c+1)}};var NJk=function(e,g){g=g===void 0?BJ1:g;this.schedulerActionCtor=e;this.now=g};
NJk.prototype.schedule=function(e,g,c){g=g===void 0?0:g;return(new this.schedulerActionCtor(this,e)).schedule(c,g)};
var BJ1=VwY.now;var Zre=function(){var e=Error.call(this,"no elements in sequence");this.message=e.message;"stack"in e&&(this.stack=e.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.Y(Zre,Error);var N5=function(e,g,c,k,I){OU.call(this,e);this.onUnsubscribe=I;g&&(this._next=function(J){try{g(J)}catch(q){this.destination.error(q)}});
c&&(this._error=function(J){try{c(J)}catch(q){this.destination.error(q)}this.unsubscribe()});
k&&(this._complete=function(){try{k()}catch(J){this.destination.error(J)}this.unsubscribe()})};
_.Y(N5,OU);N5.JSC$9379_EMPTY=OU.JSC$9379_EMPTY;N5.create=OU.create;N5.prototype.unsubscribe=function(){var e;this.closed||(e=this.onUnsubscribe)!=null&&e.call(this);OU.prototype.unsubscribe.call(this)};var Ey=function(e,g){this.source=e;this.subjectFactory=g;this._subject=null;this._refCount=0;this._connection=null};
_.Y(Ey,ij);Ey.create=ij.create;Ey.prototype._subscribe=function(e){return SyZ(this).subscribe(e)};
var SyZ=function(e){var g=e._subject;if(!g||g.JSC$9400_isStopped)e._subject=e.subjectFactory();return e._subject};
Ey.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null;e==null||e.unsubscribe()};
Ey.prototype.connect=function(){var e=this,g=this._connection;if(!g){g=this._connection=new DE;var c=SyZ(this);g.add(this.source.subscribe(new N5(c,void 0,function(k){e._teardown();c.error(k)},function(){e._teardown();
c.complete()},function(){return e._teardown()})));
g.closed&&(this._connection=null,g=DE.JSC$9379_EMPTY)}return g};var L68=Array.isArray;var abe=Array.isArray,yvB=Object,na6=yvB.getPrototypeOf,Rvz=yvB.prototype,EaC=yvB.keys;var CY=function(e,g,c){OU.call(this,e);this._next=g;this.shouldComplete=c};
_.Y(CY,OU);CY.JSC$9379_EMPTY=OU.JSC$9379_EMPTY;CY.create=OU.create;CY.prototype._complete=function(){this.shouldComplete()?OU.prototype._complete.call(this):this.unsubscribe()};var YyU=["addListener","removeListener"],$Oz=["addEventListener","removeEventListener"],jRz=["on","off"];var gg=function(){DE.call(this)};
_.Y(gg,DE);gg.JSC$9379_EMPTY=DE.JSC$9379_EMPTY;gg.prototype.schedule=function(){return this};var K6M=function(e,g){return setInterval.apply(null,[e,g].concat(_.KY(_.Mb.apply(2,arguments))))};var c9=function(e,g){DE.call(this);this.scheduler=e;this.work=g;this.pending=!1};
_.Y(c9,gg);c9.JSC$9379_EMPTY=gg.JSC$9379_EMPTY;c9.prototype.schedule=function(e,g){g=g===void 0?0:g;if(this.closed)return this;this.state=e;e=this.id;var c=this.scheduler;e!=null&&(this.id=Ors(this,e,g));this.pending=!0;this.delay=g;this.id=this.id||this.requestAsyncId(c,this.id,g);return this};
c9.prototype.requestAsyncId=function(e,g,c){c=c===void 0?0:c;return K6M(e.flush.bind(e,this),c)};
var Ors=function(e,g,c){c=c===void 0?0:c;if(c!=null&&e.delay===c&&e.pending===!1)return g;clearInterval(g)};
c9.prototype.execute=function(e,g){if(this.closed)return Error("ia");this.pending=!1;if(e=this._execute(e,g))return e;this.pending===!1&&this.id!=null&&(this.id=Ors(this,this.id,null))};
c9.prototype._execute=function(e){var g=!1;try{this.work(e)}catch(k){g=!0;var c=!!k&&k||Error(k)}if(g)return this.unsubscribe(),c};
c9.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,g=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;zLz(g,this);e!=null&&(this.id=Ors(this,e,null));this.delay=null;gg.prototype.unsubscribe.call(this)}};var MwM=function(e,g){g=g===void 0?BJ1:g;NJk.call(this,e,g);this.actions=[];this.active=!1;this.scheduled=void 0};
_.Y(MwM,NJk);MwM.prototype.flush=function(e){var g=this.actions;if(this.active)g.push(e);else{var c;this.active=!0;do if(c=e.execute(e.state,e.delay))break;while(e=g.shift());this.active=!1;if(c){for(;e=g.shift();)e.unsubscribe();throw c;}}};var L0=new ij($W);var irK=Array.isArray;var kE=function(e,g){c9.call(this,e,g);this.scheduler=e;this.work=g};
_.Y(kE,c9);kE.JSC$9379_EMPTY=c9.JSC$9379_EMPTY;kE.prototype.schedule=function(e,g){g=g===void 0?0:g;if(g>0)return c9.prototype.schedule.call(this,e,g);this.delay=g;this.state=e;this.scheduler.flush(this);return this};
kE.prototype.execute=function(e,g){return g>0||this.closed?c9.prototype.execute.call(this,e,g):this._execute(e,g)};
kE.prototype.requestAsyncId=function(e,g,c){c=c===void 0?0:c;return c!=null&&c>0||c==null&&this.delay>0?c9.prototype.requestAsyncId.call(this,e,g,c):e.flush(this)};var C1w=function(){MwM.apply(this,arguments)};
_.Y(C1w,MwM);var wcA=new C1w(kE);var ehq=function(){this.performanceMonitor=new Jvw;this.queue=new vaI;this.internalSymbol=Symbol();this.debugNames=new QRY};
ehq.prototype.getOnBackgrounded=function(){return L0};
_.Bd.Object.defineProperties(ehq.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var IX=function(e,g){g=Error.call(this,g?e+": "+g:String(e));this.message=g.message;"stack"in g&&(this.stack=g.stack);this.code=e;this.__proto__=IX.prototype;this.name=String(e)};
_.Y(IX,Error);var rN=function(e){IX.call(this,1E3,'sfr:"'+e+'"');this.measurementStrategyFailureReason=e;this.__proto__=rN.prototype};
_.Y(rN,IX);var a4=function(){IX.call(this,1003);this.__proto__=a4.prototype};
_.Y(a4,IX);var JL=function(){IX.call(this,1009);this.__proto__=JL.prototype};
_.Y(JL,IX);var gUZ=function(){IX.call(this,1011);this.__proto__=gUZ.prototype};
_.Y(gUZ,IX);var cds=function(){IX.call(this,1007);this.__proto__=a4.prototype};
_.Y(cds,IX);var wN=function(e){IX.call(this,1004,String(e));this.inputObservableIndex=e;this.__proto__=wN.prototype};
_.Y(wN,IX);var iTW=function(e){IX.call(this,1010,e);this.__proto__=PKp.prototype};
_.Y(iTW,IX);var PKp=function(e){IX.call(this,1005,e);this.__proto__=PKp.prototype};
_.Y(PKp,IX);var k1k=function(e){var g=_.Mb.apply(1,arguments),c=this;this.orderedFactories=[];this.orderedFactories.push(e);g.forEach(function(k){c.orderedFactories.push(k)})};
k1k.prototype.isSupported=function(e){return this.orderedFactories.some(function(g){return g.isSupported(e)})};
k1k.prototype.makeBeacon=function(e,g){for(var c=0;c<this.orderedFactories.length;c++)if(this.orderedFactories[c].isSupported(g))return this.orderedFactories[c].makeBeacon(e,g);throw new JL;};var WPA=Symbol("ja"),IMI=Symbol("ka"),vc=function(e,g){this.value=e;this.timeline=g},Jv=function(e,g){if(g.timeline!==e.timeline)throw new cds;
return e.value-g.value};
_.v=vc.prototype;_.v.equals=function(e){return Jv(this,e)===0};
_.v.maximum=function(e){if(e.timeline!==this.timeline)throw new cds;return this.value>=e.value?this:e};
_.v.round=function(){return new vc(Math.round(this.value),this.timeline)};
_.v.add=function(e){return new vc(this.value+e,this.timeline)};
_.v.toString=function(){return String(this.value)};var v9=function(e,g){this.context=e;this.JSC$9506_pinger=g};
v9.prototype.isSupported=function(e){return this.JSC$9506_pinger.isSupported(e)};
v9.prototype.makeBeacon=function(e,g){if(!this.isSupported(g))throw new JL;return new wg(this.context,this.JSC$9506_pinger,g!=null?g:void 0,e)};
var wg=function(e,g,c,k){var I=this;this.JSC$9512_pinger=g;this.properties=c;this.url=k;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var J;this.method=(J=c==null?void 0:c.beaconMethod)!=null?J:"GET";this.backgroundedSubscription=e.getOnBackgrounded().subscribe(function(){I.sendNow()})};
wg.prototype.deactivate=function(){this.internalIsPending=!1};
wg.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9512_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var e,g;this.JSC$9512_pinger.pingWithHeadersAndBody((e=this.properties)!=null?e:{},this.customHeaders,(g=this.body)!=null?g:"",this.url)}else this.JSC$9512_pinger.ping(this.url);this.internalIsPending=!1}catch(c){}else this.internalIsPending=!1};
wg.prototype.setHeader=function(e,g){this.customHeaders.set(e,g)};
_.Bd.Object.defineProperties(wg.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var vUw=function(){for(var e=_.w(_.Mb.apply(0,arguments)),g=e.next();!g.done;g=e.next())if(g=g.value,g.available()){this.timeProvider=g;return}this.timeProvider=new Jdq};
_.v=vUw.prototype;_.v.available=function(){return this.timeProvider.available()};
_.v.now=function(){return this.timeProvider.now()};
_.v.setTimeout=function(e,g){return this.timeProvider.setTimeout(e,g)};
_.v.clearTimeout=function(e){this.timeProvider.clearTimeout(e)};
_.v.interval=function(e,g){var c=this.intervalObservable(e).subscribe(g);return function(){return void c.unsubscribe()}};
_.v.intervalObservable=function(e){return this.timeProvider.intervalObservable(e)};
_.Bd.Object.defineProperties(vUw.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Jdq=function(){this.timeline=Symbol()};
_.v=Jdq.prototype;_.v.available=function(){return!1};
_.v.now=function(){return new vc(0,this.timeline)};
_.v.setTimeout=function(){return 0};
_.v.clearTimeout=function(){};
_.v.interval=function(){return function(){}};
_.v.intervalObservable=function(){return L0};var qs=function(e,g){this.intrinsicFunctionNamespace=e;this.performanceMonitor=g};
_.v=qs.prototype;_.v.setTimeout=function(e,g){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,e),g)};
_.v.clearTimeout=function(e){this.intrinsicFunctionNamespace.clearTimeout(e)};
_.v.interval=function(e,g){var c=this.intervalObservable(e).subscribe(g);return function(){return void c.unsubscribe()}};
_.v.intervalObservable=function(e){var g=this;return new ij(function(c){var k=0,I=g.intrinsicFunctionNamespace.setInterval(function(){c.next(k++)},e);
return function(){g.intrinsicFunctionNamespace.clearInterval(I)}})};
_.v.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var wHn=function(e,g){qs.call(this,e,g);this.timeline=IMI};
_.Y(wHn,qs);wHn.prototype.now=function(){return new vc(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
wHn.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&qs.prototype.available.call(this)};var q5w=function(e,g){qs.call(this,e,g);this.timeline=WPA};
_.Y(q5w,qs);q5w.prototype.now=function(){return new vc(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
q5w.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&qs.prototype.available.call(this)};var rdZ=function(e){this.context=e;if(Lqn===void 0)a:{var g,c,k=(g=e.global)==null?void 0:(c=g.document)==null?void 0:c.createElement("meta");if(k)try{k.httpEquiv="origin-trial";k.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";e.global.document.head.append(k);Lqn=k;break a}catch(I){}Lqn=void 0}},
Lqn;
rdZ.prototype.isSupported=function(e){return dO6(this.context)!==void 0&&!(e==null||!e.endOfSession)&&!L2(this.context)&&!(e==null?0:e.attributionEnabled)&&!(e==null?0:e.customHeaders)&&!(e==null?0:e.customBody)};
rdZ.prototype.makeBeacon=function(e,g){if(!this.isSupported(g))throw new JL;return new rg(this.context,e,g)};
var rg=function(e,g,c){this.context=e;this.properties=c;this.JSC$9539_urlWithoutToken=g;var k;this.beaconMethod=(k=c==null?void 0:c.beaconMethod)!=null?k:"GET";e=dO6(this.context);if(e===void 0)throw Error();this.fetchLater=e;aMu(this,nUv(this))},aMu=function(e,g){e.beaconResult&&e.beaconResult.activated||(e.beaconAbort=new AbortController,e.beaconResult=e.fetchLater(g,{method:e.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:e.beaconAbort.signal,activateAfter:96E4}))},nUv=function(e){e=e.JSC$9539_urlWithoutToken;
return(e.slice(-1)[0]==="&"?e:e+"&")+"flapi=1"};
rg.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
rg.prototype.sendNow=function(){};
rg.prototype.setHeader=function(){};
_.Bd.Object.defineProperties(rg.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9539_urlWithoutToken},
set:function(e){this.JSC$9539_urlWithoutToken=e;e=nUv(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);aMu(this,e)}},
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 RhY=function(e){this.context=e};
RhY.prototype.isSupported=function(){return!L2(this.context)&&!!this.context.global.fetch};
RhY.prototype.ping=function(){var e=this;return ka.apply(null,_.KY(_.Mb.apply(0,arguments).map(function(g){return Te(e.context.global.fetch(g,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(yb(function(c){return c.status===200}))}))).pipe(Vw8(function(g){return g}),BJC())};
RhY.prototype.pingWithHeadersAndBody=function(e,g,c){for(var k=_.Mb.apply(3,arguments),I=this,J=new Headers,q=_.w(g.entries()),L=q.next();!L.done;L=q.next()){var n=_.w(L.value);L=n.next().value;n=n.next().value;J.set(L,n)}var R,W=(R=e.keepAlive)!=null?R:!1;ka.apply(null,_.KY(k.map(function(b){return Te(I.context.global.fetch(b,Object.assign({},{method:String(e.beaconMethod),cache:"no-cache"},W?{keepalive:!0}:{},{mode:"no-cors",headers:J,body:c}))).pipe(yb(function(h){return h.status===200}))}))).pipe(Vw8(function(b){return b}),
BJC())};var EUB,CLU,Wqs;_.aX=function(){};
_.uW=function(e){return e};
EUB=function(e){var g=g||0;return function(){return e.apply(this,Array.prototype.slice.call(arguments,0,g))}};
_.n2=function(e){var g=!1,c;return function(){g||(c=e(),g=!0);return c}};
_.RX=function(e,g){var c=0;return function(k){_.kp.clearTimeout(c);var I=arguments;c=_.kp.setTimeout(function(){e.apply(void 0,I)},g)}};
CLU=function(e,g){var c=0,k=!1,I=[],J=function(){c=0;k&&(k=!1,q())},q=function(){c=_.kp.setTimeout(J,g);
var L=I;I=[];e.apply(void 0,L)};
return function(L){I=arguments;c?k=!0:q()}};
Wqs=function(e,g){var c=0,k=function(){c=0};
return function(I){c||(c=_.kp.setTimeout(k,g),e.apply(void 0,arguments))}};var Es=function(e,g,c,k,I){this.allowedElements=e;this.elementPolicies=g;this.allowedGlobalAttributes=c;this.globalAttributePolicies=k;this.globallyAllowedAttributePrefixes=I},b0s=function(e,g,c){c=e.elementPolicies.get(c);
return(c==null?0:c.has(g))?c.get(g):e.allowedGlobalAttributes.has(g)?{policyAction:1}:(c=e.globalAttributePolicies.get(g))?c:e.globallyAllowedAttributePrefixes&&[].concat(_.KY(e.globallyAllowedAttributePrefixes)).some(function(k){return g.indexOf(k)===0})?{policyAction:1}:{policyAction:0}};var hhq="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(" "),
XHv=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],G1B="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
xak=[["dir",{policyAction:3,conditions:dr(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:dr(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:dr(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:dr(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],DaZ=new Es(new Set(hhq),new Map(XHv),new Set(G1B),new Map(xak)),$aZ=new Es(new Set(hhq.concat(["BUTTON",
"INPUT"])),new Map(XHv),new Set(dr(function(){return G1B.concat(["class","id","name"])})),new Map(dr(function(){return xak.concat([["style",
{policyAction:1}]])})));var Y5w,fMw,i0q;Y5w=function(e,g,c,k,I){this.JSC$9596_sanitizerTable=e;this.styleElementSanitizer=g;this.styleAttributeSanitizer=c;this.JSC$9596_resourceUrlPolicy=k;this.JSC$9596_navigationUrlPolicy=I;this.changes=[]};
_.j4w=function(e,g){var c=document.implementation.createHTMLDocument("");e=fMw(e,g,c);c=c.body;c.appendChild(e);c=(new XMLSerializer).serializeToString(c);c=c.slice(c.indexOf(">")+1,c.lastIndexOf("</"));return kW(c)};
fMw=function(e,g,c){g=IMp(g,c);g=document.createTreeWalker(g,5,function(L){if(L.nodeType===3)L=1;else if(vUt(L))if(L=Jdv(L),L===null)L=2;else{var n=e.JSC$9596_sanitizerTable;L=L!=="FORM"&&(n.allowedElements.has(L)||n.elementPolicies.has(L))?1:2}else L=2;return L});
for(var k=g.nextNode(),I=c.createDocumentFragment(),J=I;k!==null;){var q=void 0;if(k.nodeType===3)e.styleElementSanitizer&&J.nodeName==="STYLE"?(k=e.styleElementSanitizer(k.data),q=e.createTextNode(k)):q=e.createTextNode(k.data);else if(vUt(k))q=i0q(e,k,c);else throw Error("$");J.appendChild(q);if(k=g.firstChild())J=q;else for(;!(k=g.nextSibling())&&(k=g.parentNode());)J=J.parentNode}return I};
Y5w.prototype.createTextNode=function(e){return document.createTextNode(e)};
i0q=function(e,g,c){var k,I=Jdv(g);c=c.createElement(I);g=g.attributes;for(var J=_.w(g),q=J.next();!q.done;q=J.next()){var L=q.value;q=L.name;L=L.value;var n=b0s(e.JSC$9596_sanitizerTable,q,I);a:{if(k=n.conditions){k=_.w(k);for(var R=k.next();!R.done;R=k.next()){var W=_.w(R.value);R=W.next().value;W=W.next().value;var b=void 0;if((R=(b=g.getNamedItem(R))==null?void 0:b.value)&&!W.has(R)){k=!1;break a}}}k=!0}if(k)switch(n.policyAction){case 1:fr(c,q,L);break;case 2:throw Error();case 3:fr(c,q,L.toLowerCase());
break;case 4:e.styleAttributeSanitizer?(L=e.styleAttributeSanitizer(L),fr(c,q,L)):fr(c,q,L);break;case 5:e.JSC$9596_resourceUrlPolicy?(n={type:2,attributeName:q,elementName:I},L=k1q(L),(L=e.JSC$9596_resourceUrlPolicy(L,n))&&fr(c,q,L.toString())):fr(c,q,L);break;case 6:if(e.JSC$9596_resourceUrlPolicy){n={type:2,attributeName:q,elementName:I};k=[];L=_.w(L.split(","));for(R=L.next();!R.done;R=L.next())W=_.w(R.value.trim().split(/\s+/,2)),R=W.next().value,W=W.next().value,k.push({url:R,descriptor:W});
L={parts:[]};k=_.w(k);for(R=k.next();!R.done;R=k.next())R=R.value,W=k1q(R.url),(W=e.JSC$9596_resourceUrlPolicy(W,n))&&L.parts.push({url:W.toString(),descriptor:R.descriptor});fr(c,q,wHA(L))}else fr(c,q,L);break;case 7:n=L;if(e.JSC$9596_navigationUrlPolicy){n={type:2,attributeName:q,elementName:I};L=k1q(L);L=e.JSC$9596_navigationUrlPolicy(L,n);if(L===null)break;n=L.toString()}L=n;n=_.iYz(L);n=n!==void 0&&pcZ.indexOf(n.toLowerCase())!==-1?L:"about:invalid#zClosurez";fr(c,q,n)}}return c};
_.PeY=dr(function(){return new Y5w(DaZ)});
_.mau=dr(function(){return new Y5w($aZ)});var pHZ=function(){this.calledBuild=!1;this.JSC$9608_sanitizerTable=DaZ},TNn=function(){pHZ.apply(this,arguments)};
_.Y(TNn,pHZ);TNn.prototype.build=function(){if(this.calledBuild)throw Error("ma");this.calledBuild=!0;return new Y5w(this.JSC$9608_sanitizerTable,void 0,void 0,this.JSC$9608_resourceUrlPolicy,this.JSC$9608_navigationUrlPolicy)};var lMu=/[^#]*/;var yve={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"},Adu=_.n2(function(){return OrW()}),
FqY=function(){var e=s41("IFRAME"),g={};
_.o7(Adu(),function(c){e.sandbox&&e.sandbox.supports&&e.sandbox.supports(c)&&(g[c]=!0)});
return g},s41=function(e,g){g=g===void 0?document:g;
return g.createElement(String(e).toLowerCase())};_.v=_.pr.prototype;_.v.clone=function(){return new _.pr(this.x,this.y)};
_.v.equals=function(e){return e instanceof _.pr&&(this==e?!0:this&&e?this.x==e.x&&this.y==e.y:!1)};
_.v.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.v.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.v.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.v.translate=function(e,g){e instanceof _.pr?(this.x+=e.x,this.y+=e.y):(this.x+=Number(e),typeof g==="number"&&(this.y+=g));return this};
_.v.scale=function(e,g){this.x*=e;this.y*=typeof g==="number"?g:e;return this};_.v=_.T6.prototype;_.v.clone=function(){return new _.T6(this.width,this.height)};
_.v.area=function(){return this.width*this.height};
_.v.aspectRatio=function(){return this.width/this.height};
_.v.isEmpty=function(){return!this.area()};
_.v.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.v.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.v.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.v.scale=function(e,g){this.width*=e;this.height*=typeof g==="number"?g:e;return this};var um1;_.n0={};um1="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.n0.add=function(e,g,c){if(e!==null&&g in e)throw Error("oa`"+g);e[g]=c};
_.n0.clear=function(e){for(var g in e)delete e[g]};
_.n0.clone=function(e){var g={},c;for(c in e)g[c]=e[c];return g};
_.n0.contains=function(e,g){return nUC(e,g)};
_.n0.containsKey=function(e,g){return e!==null&&g in e};
_.n0.containsValue=nUC;_.n0.create=WqW;_.n0.createImmutableView=function(e){var g=e;Object.isFrozen&&!Object.isFrozen(e)&&(g=Object.create(e),Object.freeze(g));return g};
_.n0.createSet=b0W;_.n0.equals=function(e,g){for(var c in e)if(!(c in g)||e[c]!==g[c])return!1;for(var k in g)if(!(k in e))return!1;return!0};
_.n0.every=function(e,g,c){for(var k in e)if(!g.call(c,e[k],k,e))return!1;return!0};
_.n0.extend=function(e,g){for(var c,k,I=1;I<arguments.length;I++){k=arguments[I];for(c in k)e[c]=k[c];for(var J=0;J<um1.length;J++)c=um1[J],Object.prototype.hasOwnProperty.call(k,c)&&(e[c]=k[c])}};
_.n0.filter=function(e,g,c){var k={},I;for(I in e)g.call(c,e[I],I,e)&&(k[I]=e[I]);return k};
_.n0.findKey=Rh8;_.n0.findValue=function(e,g,c){return(g=Rh8(e,g,c))&&e[g]};
_.n0.forEach=function(e,g,c){for(var k in e)g.call(c,e[k],k,e)};
_.n0.get=function(e,g,c){return e!==null&&g in e?e[g]:c};
_.n0.getAllPropertyNames=function(e,g,c){if(!e)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return aMK(e);for(var k={};e&&(e!==Object.prototype||g)&&(e!==Function.prototype||c);){for(var I=Object.getOwnPropertyNames(e),J=0;J<I.length;J++)k[I[J]]=!0;e=Object.getPrototypeOf(e)}return aMK(k)};
_.n0.getAnyKey=function(e){for(var g in e)return g};
_.n0.getAnyValue=function(e){for(var g in e)return e[g]};
_.n0.getCount=function(e){var g=0,c;for(c in e)g++;return g};
_.n0.getKeys=aMK;_.n0.getSuperClass=function(e){return(e=Object.getPrototypeOf(e.prototype))&&e.constructor};
_.n0.getValueByKeys=function(e,g){var c=_.Bz(g),k=c?g:arguments;for(c=c?0:1;c<k.length;c++){if(e==null)return;e=e[k[c]]}return e};
_.n0.getValues=function(e){var g=[],c=0,k;for(k in e)g[c++]=e[k];return g};
_.n0.isEmpty=function(e){for(var g in e)return!1;return!0};
_.n0.isImmutableView=function(e){return!!Object.isFrozen&&Object.isFrozen(e)};
_.n0.map=function(e,g,c){var k={},I;for(I in e)k[I]=g.call(c,e[I],I,e);return k};
_.n0.remove=function(e,g){var c;(c=g in e)&&delete e[g];return c};
_.n0.set=function(e,g,c){e[g]=c};
_.n0.setIfUndefined=function(e,g,c){return g in e?e[g]:e[g]=c};
_.n0.setWithReturnValueIfNotSet=function(e,g,c){if(g in e)return e[g];c=c();return e[g]=c};
_.n0.some=function(e,g,c){for(var k in e)if(g.call(c,e[k],k,e))return!0;return!1};
_.n0.transpose=function(e){var g={},c;for(c in e)g[e[c]]=c;return g};
_.n0.unsafeClone=EUe;var Tm=function(e,g){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=e===$ye&&g||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=da1};
Tm.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var zhk=function(e){return e instanceof Tm&&e.constructor===Tm&&e.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===da1?e.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},da1={},$ye={};
new Tm($ye,"");var Jd,gD,b2,H0k,oU4,UaM,WH,VQw,BNq,tQk,xE,NNv,Jaq,Ceu,MQv,eEq,grn,cus,ksq,U2U,ILq,vrB,wtq,Jus,W9;Jd=function(e){return e?new W9(_.be(e)):NZk||(NZk=new W9)};
_.di=function(e,g){return typeof g==="string"?e.getElementById(g):g};
gD=function(e,g){return(g||document).getElementsByTagName(String(e))};
_.Q4Z=function(e){return H0k("yt-formatted-string","paper-input-input",e)};
b2=function(e,g,c,k){e=k||e;return(g=g&&g!="*"?String(g).toUpperCase():"")||c?e.querySelectorAll(g+(c?"."+c:"")):e.getElementsByTagName("*")};
H0k=function(e,g,c){var k=document,I=e&&e!="*"?String(e).toUpperCase():"";return I||g?(c||k).querySelector(I+(g?"."+g:"")):b2(k,e,g,c)[0]||null};
oU4=function(e,g){_.n0.forEach(g,function(c,k){k=="style"?e.style.cssText=c:k=="class"?e.className=c:k=="for"?e.htmlFor=c:UaM.hasOwnProperty(k)?e.setAttribute(UaM[k],c):_.wV(k,"aria-")||_.wV(k,"data-")?e.setAttribute(k,c):e[k]=c})};
UaM={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"};_.kU=function(e){e=(e||window).document;e=e.compatMode=="CSS1Compat"?e.documentElement:e.body;return new _.T6(e.clientWidth,e.clientHeight)};
_.Z0v=function(e){var g=_.hL(e);e=e.defaultView;return new _.pr((e==null?void 0:e.pageXOffset)||g.scrollLeft,(e==null?void 0:e.pageYOffset)||g.scrollTop)};
_.hL=function(e){return e.scrollingElement?e.scrollingElement:_.Cb||e.compatMode!="CSS1Compat"?e.body||e.documentElement:e.documentElement};
WH=function(e){return e?e.defaultView:window};
_.XW=function(e,g,c){return VQw(document,arguments)};
VQw=function(e,g){var c=g[1],k=tQk(e,String(g[0]));c&&(typeof c==="string"?k.className=c:Array.isArray(c)?k.className=c.join(" "):oU4(k,c));g.length>2&&BNq(e,k,g,2);return k};
BNq=function(e,g,c,k){function I(L){L&&g.appendChild(typeof L==="string"?e.createTextNode(L):L)}
for(;k<c.length;k++){var J=c[k];if(!_.Bz(J)||_.SK(J)&&J.nodeType>0)I(J);else{a:{if(J&&typeof J.length=="number"){if(_.SK(J)){var q=typeof J.item=="function"||typeof J.item=="string";break a}if(typeof J==="function"){q=typeof J.item=="function";break a}}q=!1}_.o7(q?_.tq(J):J,I)}}};
_.C0=function(e){return tQk(document,e)};
tQk=function(e,g){g=String(g);e.contentType==="application/xhtml+xml"&&(g=g.toLowerCase());return e.createElement(g)};
_.Gl=function(){return document.createTextNode("\n")};
xE=function(e){if(e.nodeType!=1)return!1;switch(e.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};
NNv=function(e,g){BNq(_.be(e),e,arguments,1)};
_.Dg=function(e){for(var g;g=e.firstChild;)e.removeChild(g)};
_.$E=function(e,g){g.parentNode&&g.parentNode.insertBefore(e,g)};
_.YE=function(e,g){g.parentNode&&g.parentNode.insertBefore(e,g.nextSibling)};
_.ev=function(e){return e&&e.parentNode?e.parentNode.removeChild(e):null};
_.S5I=function(e,g){var c=g.parentNode;c&&c.replaceChild(e,g)};
_.ydq=function(e){var g,c=e.parentNode;if(c&&c.nodeType!=11)if(e.removeNode)e.removeNode(!1);else{for(;g=e.firstChild;)c.insertBefore(g,e);_.ev(e)}};
_.f2=function(e){return e.children!=void 0?e.children:Array.prototype.filter.call(e.childNodes,function(g){return g.nodeType==1})};
_.O0k=function(e){return e.nextElementSibling!==void 0?e.nextElementSibling:_.KqZ(e.nextSibling,!0)};
_.KqZ=function(e,g){for(;e&&e.nodeType!=1;)e=g?e.nextSibling:e.previousSibling;return e};
_.yd=function(e){return _.SK(e)&&e.nodeType==1};
_.uK=function(e,g){if(!e||!g)return!1;if(e.contains&&g.nodeType==1)return e==g||e.contains(g);if(typeof e.compareDocumentPosition!="undefined")return e==g||!!(e.compareDocumentPosition(g)&16);for(;g&&e!=g;)g=g.parentNode;return g==e};
Jaq=function(e,g){if(e==g)return 0;if(e.compareDocumentPosition)return e.compareDocumentPosition(g)&2?1:-1;if("sourceIndex"in e||e.parentNode&&"sourceIndex"in e.parentNode){var c=e.nodeType==1,k=g.nodeType==1;if(c&&k)return e.sourceIndex-g.sourceIndex;var I=e.parentNode,J=g.parentNode;return I==J?MQv(e,g):!c&&_.uK(I,g)?-1*Ceu(e,g):!k&&_.uK(J,e)?Ceu(g,e):(c?e.sourceIndex:I.sourceIndex)-(k?g.sourceIndex:J.sourceIndex)}k=_.be(e);c=k.createRange();c.selectNode(e);c.collapse(!0);e=k.createRange();e.selectNode(g);
e.collapse(!0);return c.compareBoundaryPoints(_.kp.Range.START_TO_END,e)};
Ceu=function(e,g){var c=e.parentNode;if(c==g)return-1;for(;g.parentNode!=c;)g=g.parentNode;return MQv(g,e)};
MQv=function(e,g){for(;g=g.previousSibling;)if(g==e)return-1;return 1};
eEq=function(e){var g,c=arguments.length;if(!c)return null;if(c==1)return arguments[0];var k=[],I=Infinity;for(g=0;g<c;g++){for(var J=[],q=arguments[g];q;)J.unshift(q),q=q.parentNode;k.push(J);I=Math.min(I,J.length)}J=null;for(g=0;g<I;g++){q=k[0][g];for(var L=1;L<c;L++)if(q!=k[L][g])return J;J=q}return J};
_.be=function(e){return e.nodeType==9?e:e.ownerDocument||e.document};
grn=function(e){return e.contentDocument||e.contentWindow.document};
_.j9=function(e,g){if("textContent"in e)e.textContent=g;else if(e.nodeType==3)e.data=String(g);else if(e.firstChild&&e.firstChild.nodeType==3){for(;e.lastChild!=e.firstChild;)e.removeChild(e.lastChild);e.firstChild.data=String(g)}else _.Dg(e),e.appendChild(_.be(e).createTextNode(String(g)))};
cus={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};ksq={IMG:" ",BR:"\n"};U2U=function(e){var g;e.tagName=="A"&&e.hasAttribute("href")||e.tagName=="INPUT"||e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="BUTTON"?g=!e.disabled&&(!e.hasAttribute("tabindex")||ILq(e)):g=e.hasAttribute("tabindex")&&ILq(e);return g};
ILq=function(e){e=e.tabIndex;return typeof e==="number"&&e>=0&&e<32768};
vrB=function(e){var g=[];Jus(e,g,!0);e=g.join("");e=e.replace(/ \xAD /g," ").replace(/\xAD/g,"");e=e.replace(/\u200B/g,"");e=e.replace(/ +/g," ");e!=" "&&(e=e.replace(/^\s*/,""));return e};
wtq=function(e){var g=[];Jus(e,g,!1);return g.join("")};
Jus=function(e,g,c){if(!(e.nodeName in cus))if(e.nodeType==3)c?g.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):g.push(e.nodeValue);else if(e.nodeName in ksq)g.push(ksq[e.nodeName]);else for(e=e.firstChild;e;)Jus(e,g,c),e=e.nextSibling};
_.qu4=function(e,g,c){if(!g&&!c)return null;var k=g?String(g).toUpperCase():null;return _.Xm(e,function(I){return(!k||I.nodeName==k)&&(!c||typeof I.className==="string"&&_.Hz(I.className.split(/\s+/),c))},!0)};
_.Xm=function(e,g,c){e&&!c&&(e=e.parentNode);for(c=0;e;){if(g(e))return e;e=e.parentNode;c++}return null};
W9=function(e){this.JSC$9636_document_=e||_.kp.document||document};
_.v=W9.prototype;_.v.getElement=function(e){return _.di(this.JSC$9636_document_,e)};
_.v.$=W9.prototype.getElement;_.v.getElementsByTagName=function(e,g){return(g||this.JSC$9636_document_).getElementsByTagName(String(e))};
_.v.getElementsByTagNameAndClass=function(e,g,c){return b2(this.JSC$9636_document_,e,g,c)};
_.v.$$=W9.prototype.getElementsByTagNameAndClass;_.v.setProperties=oU4;_.v.JSC$9638_createDom=function(e,g,c){return VQw(this.JSC$9636_document_,arguments)};
_.v.createElement=function(e){return tQk(this.JSC$9636_document_,e)};
_.v.createTextNode=function(e){return this.JSC$9636_document_.createTextNode(String(e))};
_.v.getWindow=function(){return this.JSC$9636_document_.defaultView};
var I4=function(e){return _.Z0v(e.JSC$9636_document_)};
_.v=W9.prototype;_.v.appendChild=function(e,g){e.appendChild(g)};
_.v.append=NNv;_.v.canHaveChildren=xE;_.v.removeNode=_.ev;_.v.getChildren=_.f2;_.v.contains=_.uK;_.v.isFocusable=U2U;_.v=l1.prototype;_.v.getWidth=function(){return this.right-this.left};
_.v.getHeight=function(){return this.bottom-this.top};
_.v.clone=function(){return new l1(this.top,this.right,this.bottom,this.left)};
_.v.contains=function(e){return this&&e?e instanceof l1?e.left>=this.left&&e.right<=this.right&&e.top>=this.top&&e.bottom<=this.bottom:e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom:!1};
_.v.expand=function(e,g,c,k){_.SK(e)?(this.top-=e.top,this.right+=e.right,this.bottom+=e.bottom,this.left-=e.left):(this.top-=e,this.right+=Number(g),this.bottom+=Number(c),this.left-=Number(k));return this};
_.v.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.v.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.v.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.v.translate=function(e,g){e instanceof _.pr?(this.left+=e.x,this.right+=e.x,this.top+=e.y,this.bottom+=e.y):(this.left+=e,this.right+=e,typeof g==="number"&&(this.top+=g,this.bottom+=g));return this};
_.v.scale=function(e,g){g=typeof g==="number"?g:e;this.left*=e;this.right*=e;this.top*=g;this.bottom*=g;return this};_.v=sy.prototype;_.v.clone=function(){return new sy(this.left,this.top,this.width,this.height)};
_.v.boundingRect=function(e){var g=Math.max(this.left+this.width,e.left+e.width),c=Math.max(this.top+this.height,e.top+e.height);this.left=Math.min(this.left,e.left);this.top=Math.min(this.top,e.top);this.width=g-this.left;this.height=c-this.top};
_.v.contains=function(e){return e instanceof _.pr?e.x>=this.left&&e.x<=this.left+this.width&&e.y>=this.top&&e.y<=this.top+this.height:this.left<=e.left&&this.left+this.width>=e.left+e.width&&this.top<=e.top&&this.top+this.height>=e.top+e.height};
_.v.distance=function(e){var g=e.x<this.left?this.left-e.x:Math.max(e.x-(this.left+this.width),0);e=e.y<this.top?this.top-e.y:Math.max(e.y-(this.top+this.height),0);return Math.sqrt(g*g+e*e)};
_.v.getSize=function(){return new _.T6(this.width,this.height)};
_.v.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.v.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.v.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.v.translate=function(e,g){e instanceof _.pr?(this.left+=e.x,this.top+=e.y):(this.left+=e,typeof g==="number"&&(this.top+=g));return this};
_.v.scale=function(e,g){g=typeof g==="number"?g:e;this.left*=e;this.width*=e;this.top*=g;this.height*=g;return this};var ruq,mn,k7V,P9,Erk,REk,Wuw,vo6,bTv,Xtu;_.i2=function(e,g,c){if(typeof g==="string")(g=_.Luw(e,g))&&(e.style[g]=c);else for(var k in g){c=e;var I=g[k],J=_.Luw(c,k);J&&(c.style[J]=I)}};
ruq={};_.Luw=function(e,g){var c=ruq[g];if(!c){var k=_.O4(g);c=k;e.style[k]===void 0&&(k=(_.Cb?"Webkit":_.er?"Moz":null)+Hr4(k),e.style[k]!==void 0&&(c=k));ruq[g]=c}return c};
_.tC=function(e,g){var c=_.be(e);return c.defaultView&&c.defaultView.getComputedStyle&&(e=c.defaultView.getComputedStyle(e,null))?e[g]||e.getPropertyValue(g)||"":""};
_.Fw=function(e,g){return _.tC(e,g)||(e.currentStyle?e.currentStyle[g]:null)||e.style&&e.style[g]};
_.aLB=function(e){return _.Fw(e,"position")};
mn=function(e,g,c){if(g instanceof _.pr){var k=g.x;g=g.y}else k=g,g=c;e.style.left=P9(k,!1);e.style.top=P9(g,!1)};
k7V=function(e){try{return e.getBoundingClientRect()}catch(g){return{left:0,top:0,right:0,bottom:0}}};
_.hd=function(e){var g=_.be(e),c=new _.pr(0,0);if(e==(g?_.be(g):document).documentElement)return c;e=k7V(e);g=I4(Jd(g));c.x=e.left+g.x;c.y=e.top+g.y;return c};
_.nrn=function(e,g,c){if(g instanceof _.T6)c=g.height,g=g.width;else if(c==void 0)throw Error("pa");e.style.width=P9(g,!0);e.style.height=P9(c,!0)};
P9=function(e,g){typeof e=="number"&&(e=(g?Math.round(e):e)+"px");return e};
Erk=function(e){return REk(e)};
REk=function(e){var g=Wuw;if(_.Fw(e,"display")!="none")return g(e);var c=e.style,k=c.display,I=c.visibility,J=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";e=g(e);c.display=k;c.position=J;c.visibility=I;return e};
Wuw=function(e){var g=e.offsetWidth,c=e.offsetHeight,k=_.Cb&&!g&&!c;return(g===void 0||k)&&e.getBoundingClientRect?(e=k7V(e),new _.T6(e.right-e.left,e.bottom-e.top)):new _.T6(g,c)};
vo6=function(e){var g=_.hd(e);e=REk(e);return new sy(g.x,g.y,e.width,e.height)};
bTv=function(e,g){e=e.style;"opacity"in e?e.opacity=g:"MozOpacity"in e?e.MozOpacity=g:"filter"in e&&(e.filter=g===""?"":"alpha(opacity="+Number(g)*100+")")};
_.ZL=function(e,g){e.style.display=g?"":"none"};
_.hEB=function(e){return"rtl"==_.Fw(e,"direction")};
Xtu=function(e){var g=_.tC(e,"marginLeft"),c=_.tC(e,"marginRight"),k=_.tC(e,"marginTop");e=_.tC(e,"marginBottom");return new l1(parseFloat(k),parseFloat(c),parseFloat(e),parseFloat(g))};
_.Gsu=function(e){var g=_.tC(e,"borderLeftWidth"),c=_.tC(e,"borderRightWidth"),k=_.tC(e,"borderTopWidth");e=_.tC(e,"borderBottomWidth");return new l1(parseFloat(k),parseFloat(c),parseFloat(e),parseFloat(g))};var p2=function(e){this.context=e};
p2.prototype.isSupported=function(e){return(e==null?0:e.attributionEnabled)||(e==null?void 0:e.beaconMethod)==="POST"||(e==null?0:e.customHeaders)||(e==null?0:e.customBody)||(e==null?0:e.keepAlive)?!1:!L2(this.context)};
p2.prototype.ping=function(){var e=this;return Vb(_.Mb.apply(0,arguments).map(function(g){try{var c=e.context.global,k=!1;k=k===void 0?!1:k;c.google_image_requests||(c.google_image_requests=[]);var I=s41("IMG",c.document);k&&(I.attributionSrc="");I.src=g;c.google_image_requests.push(I);return!0}catch(J){return!1}}).every(function(g){return g}))};
p2.prototype.pingWithHeadersAndBody=function(e,g,c){this.ping.apply(this,_.KY(_.Mb.apply(3,arguments)))};var x_n=function(e){this.context=e};
x_n.prototype.isSupported=function(e){return D_v&&!L2(this.context)&&hhv(this.context)!==void 0&&!(e==null?0:e.attributionEnabled)&&(e==null?void 0:e.beaconMethod)!=="POST"&&!(e==null?0:e.customHeaders)&&!(e==null?0:e.customBody)};
x_n.prototype.makeBeacon=function(e,g){if(!this.isSupported(g))throw new JL;return new Tl(this.context,e)};
var D_v=!1,Tl=function(e,g){this.context=e;this.JSC$9657_urlWithoutToken=g;e=hhv(this.context);if(e===void 0)throw Error();this.wrappedBeacon=new e($_Y(this),{})},$_Y=function(e){e=e.JSC$9657_urlWithoutToken;
return(e.slice(-1)[0]==="&"?e:e+"&")+"pbapi=1"};
Tl.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Tl.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Tl.prototype.setHeader=function(){};
_.Bd.Object.defineProperties(Tl.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9657_urlWithoutToken},
set:function(e){this.JSC$9657_urlWithoutToken=e;this.wrappedBeacon.setURL($_Y(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(e){if(e!=="GET")throw new JL;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var YuM=function(e){this.context=e};
YuM.prototype.isSupported=function(e){if((e==null?0:e.attributionEnabled)||(e==null?void 0:e.beaconMethod)==="GET"||(e==null?0:e.customHeaders)||(e==null?0:e.customBody)||(e==null?0:e.keepAlive))return!1;var g;return!L2(this.context)&&((g=this.context.global.navigator)==null?void 0:g.sendBeacon)!==void 0};
YuM.prototype.ping=function(){var e=this;return Vb(_.Mb.apply(0,arguments).map(function(g){var c;return(c=e.context.global.navigator)==null?void 0:c.sendBeacon(g)}).every(function(g){return g}))};
YuM.prototype.pingWithHeadersAndBody=function(e,g,c){this.ping.apply(this,_.KY(_.Mb.apply(3,arguments)))};var Hc=function(e){this.value=e},T1=function(e,g){return Vb(e.value).pipe(dJ(g))},Ad=new Hc(!1),WRW=new Hc(!0);var G1=function(e){this.value=e;this.releasedSubject=new FD};
G1.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Bd.Object.defineProperties(G1.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9670_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var TNA=["FRAME","IMG","IFRAME"],fMt=/^[01](px)?$/,pHV=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},maK=function(){var e=new pHV;
e.crossDomainLoadedDefault=!0;e.pendingImagesBlockLoad=!0;return e};var fLY=function(e,g){var c=zhq(e);if(c)if(c.onCreativeLoad)c.onCreativeLoad(g);else{var k=g?[g]:[],I=function(J){for(var q=0;q<k.length;++q)try{k[q](1,J)}catch(L){}k={push:function(L){L(1,J)}}};
c.onCreativeLoad=function(J){k.push(J)};
c.setAttribute("data-creative-load-listener","");c.addEventListener("creativeLoad",function(J){I(J.detail)});
_.kp.addEventListener("message",function(J){daC(c,I,J)})}};var l2=function(e,g){var c=this;this.global=e;this.parentContext=g;this.JSC$9681_onVisibilityChange=this.document?ka(Vb(!0),gJ(this.document,"visibilitychange")).pipe(wJ(this.parentContext.performanceMonitor,748),yb(function(){return c.getVisibilityState()}),nr()):Vb("visible");
this.document?gJ(this.document,"DOMContentLoaded").pipe(wJ(this.parentContext.performanceMonitor,739),aR(1)):Vb($aV("DOMContentLoaded"))},Ezq=function(e){return e.document!==null&&e.document.visibilityState!==void 0};
l2.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
l2.prototype.querySelector=function(e){return this.document?this.document.querySelector(e):null};
l2.prototype.querySelectorAll=function(e){return this.document?_.tq(this.document.querySelectorAll(e)):[]};
l2.prototype.elementFromPoint=function(e,g){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;e=this.document.elementFromPoint(e,g);return e===null?null:new G1(e)};
var krz=function(e,g,c){c=c===void 0?!1:c;if(g.ref===void 0||!e.document)return Vb(g).pipe(wJ(e.parentContext.performanceMonitor,749));var k=new b1(1),I=function(){k.next(g)};
c||fLY(g.ref,I);lMK(g.ref,I);return k.pipe(wJ(e.parentContext.performanceMonitor,749),aR(1))};
_.Bd.Object.defineProperties(l2.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Mwg(this.global,"document")?this.global.document||null:null}}});var H0q=_.Ti(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Q4V=_.Ti(["./reach_worklet.js"]),Uag=_.Ti(["./reach_worklet.js"]),jyq=_.Ti(["./reach_worklet.html"]),iTs=_.Ti(["./reach_worklet.js"]),PKI=_.Ti(["./reach_worklet.js"]);_.jw(jyq);_.jw(iTs);_.jw(PKI);var YU={left:0,top:0,width:0,height:0};var BNv=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),ksU=/#|$/,ILU=/[?&]($|#)/;var $_8=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y($_8,_.WJ);var D_C=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(D_C,_.WJ);var Wuz=function(e,g){return _.vH(e,2,g)},x_A=function(e,g){return _.vH(e,3,g)};
D_C.prototype.getModel=function(){return _.Rs(this,4)};
var hEe=function(e,g){return _.vH(e,4,g)},Erq=function(e,g){return _.vH(e,5,g)},GsK=function(e,g){return _.vH(e,9,g)},REq=function(e,g){return vW(e,10,g)},nrA=function(e,g){return _.td(e,11,g)},bTC=function(e,g){return _.vH(e,1,g)},XtK=function(e,g){return _.td(e,7,g)};var ruU="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var le=function(e,g,c,k){e=e===void 0?window:e;g=g===void 0?null:g;c=c===void 0?new Jvw:c;k=k===void 0?oU6():k;ehq.call(this);var I=this;this.global=e;this.debugChannel=g;this.performanceMonitor=c;this.onPageHide=DOU(function(){return gJ(I.global,"pagehide")}).pipe(wJ(this.performanceMonitor,941));
this.onLoad=DOU(function(){return gJ(I.global,"load")}).pipe(wJ(this.performanceMonitor,738),aR(1));
this.onResize=DOU(function(){return gJ(I.global,"resize")}).pipe(wJ(this.performanceMonitor,741));
this.onMessage=DOU(function(){return gJ(I.global,"message")}).pipe(wJ(this.performanceMonitor,740));
this.document=new l2(this.global,this);this.timeProvider=new vUw(new q5w(this.intrinsicFunctionNamespace,this.performanceMonitor),new wHn(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new k1k(new rdZ(this),new x_n(this),new v9(this,new RhY(this)),new v9(this,new YuM(this)),new v9(this,new p2(this)))};
_.Y(le,ehq);le.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(e){return e}};
var L2=function(e){var g=e.global;return!!e.global.HTMLFencedFrameElement&&!!g.fence&&typeof g.fence.reportEvent==="function"};
_.v=le.prototype;_.v.reportFencedFrameEvent=function(e){L2(this)&&this.global.fence.reportEvent(e)};
_.v.getOnBackgrounded=function(){return this.onPageHide.pipe(wJ(this.performanceMonitor,942),dJ(this.queue),yb(function(){}))};
_.v.postMessage=function(e,g,c){c=c===void 0?[]:c;this.global.postMessage(e,g,c)};
_.v.getWidth=function(){return C1z(this.global)?this.global.width:0};
_.v.getHeight=function(){return C1z(this.global)?this.global.height:0};
_.v.isMobile=function(){return ehU()||gUV()};
var xU=function(e,g){try{var c=wtv(g,e.global,e.isMobile());return{left:c.left,top:c.top,width:c.getWidth(),height:c.getHeight()}}catch(k){return YU}};
le.prototype.validate=function(){var e=this.beaconFactory.isSupported()||L2(this);return this.global&&this.timeProvider.available()&&e};
var G1e=function(e){return(e=fL8(e.global))?Te(e):null};
_.Bd.Object.defineProperties(le.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(e){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(e){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!C1z(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}}});_.m_k=!_.B2&&!_.GvK();var b4C=function(e){return e};var XVt=function(e){return e.pipe(IR(function(g){var c=g.endOfSessionReason;var k;return((k=g.viewable)==null?void 0:k.extrapolateToNow().value)||c!=void 0}),aR(1),Lr())};var lLg=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Aue=function(e){var g=e.sequenceNumber.toString(10).padStart(2,"0");
g=""+e.startTime+g;e.sequenceNumber<99&&e.sequenceNumber++;return g};var RsW=j0($a(function(e){return e.endOfSessionReason===void 0}),yb(function(e){return Object.assign({},e,{timestamps:qa(e)})}),IR(function(e){var g=e.viewable;
e=e.timestamps;var c;return(c=g==null?void 0:g.extrapolateUsingTimestampMap(e).value)!=null?c:!1}),yb(function(e){var g=e.beaconFactory;
var c=e.timestampedExposureHistory;var k=e.timeOnScreen;var I=e.binaryContext;e=e.timestamps;if(g===void 0||c===void 0||k===void 0||I===void 0)return!1;if(k.extrapolateUsingTimestampMap(e).value.every(function(J){return J>=0}))return!0;
c=c.map(function(J){return J.timestamp+":"+J.value}).join(",");
k=syV({bin:I,tos:k},e);g.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+k+("&eh="+c)).sendNow();return!0}),$a(function(e){return!e}),Lr());var uw8=function(e){return{id:e.pingId,mcvt:e.maxConsecutiveViewTime,p:e.creativePosition,asp:e.adSpeedPosition,tm:e.totalMeasurementTime,tu:e.totalUnviewedTime,mtos:e.maxTimeOnScreen,tos:e.timeOnScreen,v:e.binaryVersion,bin:e.binaryContext,avms:e.measurementStrategy,bs:e.browserSize,mc:e.maximumExposure,"if":e.crossDomainIframeState,vu:e.delayedImpressionJsState,app:e.inApp,mse:e.mraidError,mtop:e.mraidSituation,itpl:e.injectedTemplateId,adk:e.adKey,exk:e.awbidKey,rs:e.requestSource,la:e.isLargeAd,
cr:e.isContentRecommendationAd,uach:e.userAgentClientHints,vs:e.viewState,r:e.reasonCode,pay:e.hasCpmavUrl,co:e.clientPingOrderCounter,rst:e.adRenderStartTime,rpt:e.adRenderPeriodTime,isd:e.initialScrollDepth,lsd:e.loadedScrollDepth,context:e.errorContext,msg:e.errorMessage,stack:e.errorStack,name:e.errorName,ec:e.hasElementChanged,sfr:e.strategyFailureReasons,met:e.creativeSearchResult,wmsd:e.webMeasurementStartDiagnostic,pv:e.pageVisible,epv:e.eosPageVisible,pbe:e.inStatefulBeaconExperiment,fle:e.inFetchLaterBeaconExperiment,
vae:e.inViewableAttributionExperiment,spb:e.supportsPendingBeacon,sfl:e.supportsFetchLater,ffslot:e.isFencedFrameSlotTurtlex,reach:e.sharedStorageReachMode,io2:e.v2VisibilityBitVector,rxdbg:e.rxDebugger,omida:e.omidAppId,omidp:e.omidPartner,omidpv:e.omidPartnerVersion,omidor:e.omidOcclusionReasons,omidv:e.omidVersion,omids:e.omidSessionType,omidam:e.omidAccessMode,omidct:e.omidCreativeType,omidia:e.omidInApp,omiddc:e.omidDeviceCategory,omidlat:e.omidLastActivity,omiddit:e.omidDeviceIdleTime,qid:e.errorEscapedQueryId}};var hsC=function(e){var g=[];return e.pipe(yb(function(c){var k=c.beaconFactory,I=c.fetchBeaconFactory,J=c.timeOnScreen,q=c.timeOnScreenUrlPrefixes,L=c.payloadMapper,n=c.timeOnScreenPingId,R=c.timeOnScreenReason,W=c.urlSerializer,b=c.viewable,h=c.hasImpressionFired,X=c.inStatefulBeaconExperiment,D=c.supportsPendingBeacon,f=c.supportsFetchLater,l=c.turtlexReportEventData;if(!c.geometryMeasurable||!h||c.maxTimeOnScreen===void 0||J===void 0||q===void 0||L===void 0||n===void 0||W===void 0||k===void 0)return!1;
if(c.isTurtlex){if(R===void 0)return!1;q=c.reportFencedFrameEvent;if(!q)return!1;q({eventType:"active-view-time-on-screen",eventData:l!=null?l:"",destination:["buyer"]});return!0}if(!(X||f||R))return!1;l=qa(c);var A;b=(A=b==null?void 0:b.extrapolateUsingTimestampMap(l).value)!=null?A:!1;A=W(Object.assign({},c,{pingId:n,viewState:b?4:3,reasonCode:R!=null?R:"u",payloadMapper:L,urlPrefixes:q}),l);if(X){for(;g.length>q.length;)c=void 0,(c=g.shift())==null||c.deactivate();A.forEach(function(S,V){V>=g.length?
g.push(k.makeBeacon(S)):g[V].url=S});
return D&&I&&R!==void 0?(A.forEach(function(S){I.makeBeacon(S).sendNow()}),!0):R!==void 0}if(D&&I&&R!==void 0)return A.forEach(function(S){I.makeBeacon(S).sendNow()}),!0;
if(f&&I){for(;g.length>q.length;)D=void 0,(D=g.shift())==null||D.deactivate();var d=W(Object.assign({},c,{pingId:n,viewState:b?4:3,reasonCode:R!=null?R:"u",payloadMapper:L,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),l)[0];A.forEach(function(S,V){V>=g.length?g.push(k.makeBeacon(d,{endOfSession:!0})):g[V].url=d});
return R!==void 0?(A.forEach(function(S){I.makeBeacon(S).sendNow()}),!0):R!==void 0}return R!==void 0?(A.forEach(function(S){k.makeBeacon(S).sendNow()}),!0):!1}),$a(function(c){return!c}),Lr())};var Grt=j0(IR(function(e){return e.immediateUrlPrefixes!==void 0&&e.payloadMapper!==void 0&&e.urlSerializer!==void 0&&e.inferredPingId!==void 0&&e.beaconFactory!==void 0}),IR(function(e){return VvC(e)!==null}),orV(function(e){return e.activeViewUnmeasurableEvent},function(e){return e.emit}),yb(function(e){if(e.isTurtlex){var g=e.reportFencedFrameEvent;
if(g){var c;g({eventType:"active-view-unmeasurable",eventData:(c=e.turtlexReportEventData)!=null?c:"",destination:["buyer"]})}}else{c=void 0;var k=VvC(e);if(k==="x"){var I,J=(I=e.geometricMeasurementErrors)!=null?I:e.contextValidationErrors;J&&(g=J.stack,c=J.message)}e.urlSerializer(Object.assign({},e,{urlPrefixes:e.immediateUrlPrefixes,payloadMapper:e.payloadMapper,pingId:e.inferredPingId,viewState:2,reasonCode:k,errorMessage:c,errorStack:g}),qa(e)).forEach(function(q){e.beaconFactory.makeBeacon(q).sendNow()})}}),
aR(1),Lr());var tvq=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var nzv=j0(IR(function(e){return e.payloadMapper!==void 0&&e.immediateUrlPrefixes!==void 0&&e.urlSerializer!==void 0&&e.inferredPingId!==void 0&&e.beaconFactory!==void 0}),yb(function(e){return Object.assign({},e,{timestamps:qa(e)})}),IR(function(e){var g=e.viewable;
var c=e.hasImpressionFired;e=e.timestamps;var k;return!!c&&((k=g==null?void 0:g.extrapolateUsingTimestampMap(e).value)!=null?k:!1)}),orV(function(e){return e.activeViewViewableEvent},function(e){return e.emit}),yb(function(e){var g=e.beaconFactory,c=e.turtlexReportEventData;
if(e.isTurtlex){var k=e.reportFencedFrameEvent;if(!k)return!1;k({eventType:"active-view-viewable",eventData:c!=null?c:"",destination:["buyer"]});return!0}c=e.urlSerializer(Object.assign({},e,{urlPrefixes:e.immediateUrlPrefixes,payloadMapper:e.payloadMapper,pingId:e.inferredPingId,viewState:4,reasonCode:"v"}),e.timestamps);(k=e.cpmavUrls)&&k.length>0&&e.viewUrlSerializer&&e.viewUrlSerializer(k,e).forEach(function(I){g.makeBeacon(I).sendNow()});
(k=e.viewableRelayUrls)&&k.length>0&&e.viewUrlSerializer&&e.viewUrlSerializer(k,e).forEach(function(I){g.makeBeacon(I).sendNow()});
c.forEach(function(I){g.makeBeacon(I,{attributionEnabled:e.isViewableAttributionEnabled}).sendNow()});
return!0}),$a(function(e){return!e}),Lr());var ucA=yb(function(e){return[e.value.topWindowViewportExternalGeometry.width,e.value.topWindowViewportExternalGeometry.height]});var DM=function(e,g){this.callback=e;this.options=g;this.intersectionObserverV2=this.intersectionObserverV1=null},hUU=function(e,g){g?e.intersectionObserverV2||(g=Object.assign({},e.options,{delay:100,
trackVisibility:!0}),e.intersectionObserverV2=new IntersectionObserver(e.callback,g)):e.intersectionObserverV1||(e.intersectionObserverV1=new IntersectionObserver(e.callback,e.options))},ptI=function(e,g){e=g?e.intersectionObserverV2:e.intersectionObserverV1;
if(!e)throw new gUZ;return e};
DM.prototype.observe=function(e,g){ptI(this,e).observe(g)};
DM.prototype.unobserve=function(e,g){ptI(this,e).unobserve(g)};
DM.prototype.disconnect=function(e){ptI(this,e).disconnect()};
DM.prototype.takeRecords=function(e){return ptI(this,e).takeRecords()};var JVC={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:YU,topWindowViewportExternalGeometry:YU,measurementRequests:new FD,elementGeometrySourceName:"ns",elementGeometry:YU,intersectionGeometry:YU,viewportLocalAppOffset:{x:0,y:0}};var fcC=f0(j0(yb(function(e){var g;return(g=e.exposureOverride)!=null?g:G7K(e)}),yb(function(e){return isFinite(e)?e:0}))),lcV=f0(j0(yb(function(e){var g;
return(g=e.exposureOverride)!=null?g:G7K(e)}),yb(function(e){return isFinite(e)?e:-1})));var AL=function(e,g){this.a=e;this.b=g;if(e.clock.timeline!==g.clock.timeline)throw Error();};
AL.prototype.equivalentTo=function(e){return e instanceof AL?this.a.equivalentTo(e.a)&&this.b.equivalentTo(e.b):!1};
AL.prototype.extrapolateToTime=function(e){var g=this.a.extrapolateToTime(e).value,c=this.b.extrapolateToTime(e).value;return{timestamp:e,value:[g,c]}};
_.Bd.Object.defineProperties(AL.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 e=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),g=this.a.lastMeasurement.timestamp.equals(e)?this.a.lastMeasurement.value:this.a.extrapolateToTime(e).value,c=this.b.lastMeasurement.timestamp.equals(e)?this.b.lastMeasurement.value:this.b.extrapolateToTime(e).value;return{timestamp:e,value:[g,c]}}}});var ss=function(e,g){this.input=e;this.mapFunction=g;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
ss.prototype.equivalentTo=function(e){return e instanceof ss?this.input.equivalentTo(e.input)&&this.mapFunction===e.mapFunction:!1};
ss.prototype.extrapolateToTime=function(e){e=this.input.extrapolateToTime(e);return{timestamp:e.timestamp,value:this.mapFunction(e.value)}};
_.Bd.Object.defineProperties(ss.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var FW=function(){};
FW.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
FW.prototype.extrapolateUsingTimestampMap=function(e){var g=this.clock.timeline,c,k=(c=e.get(g))!=null?c:this.clock.now();e.set(g,k);return this.extrapolateToTime(k)};
FW.prototype.map=function(e){return new TDw(this,e)};
FW.prototype.joinWith=function(e){return new lLM(this,e)};
var lLM=function(){AL.apply(this,arguments);this.map=FW.prototype.map;this.joinWith=FW.prototype.joinWith;this.extrapolateToNow=FW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=FW.prototype.extrapolateUsingTimestampMap};
_.Y(lLM,AL);var TDw=function(){ss.apply(this,arguments);this.map=FW.prototype.map;this.joinWith=FW.prototype.joinWith;this.extrapolateToNow=FW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=FW.prototype.extrapolateUsingTimestampMap};
_.Y(TDw,ss);var PH=function(e,g){this.lastMeasurement=g;this.extrapolateToNow=FW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=FW.prototype.extrapolateUsingTimestampMap;this.map=FW.prototype.map;this.joinWith=FW.prototype.joinWith;this.clock=e};
PH.prototype.equivalentTo=function(e){return e.active};
PH.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Bd.Object.defineProperties(PH.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var FPz=yb(function(e){if(e.value.viewportGeometrySourceName==="omid"){if(e.value.elementGeometrySourceName==="nio")return"omio";if(e.value.elementGeometrySourceName==="geo")return"omgeo"}return e.value.elementGeometrySourceName==="geo"||e.value.elementGeometrySourceName==="nio"?e.value.viewportGeometrySourceName:e.value.elementGeometrySourceName});var DtA=j0(IR(function(e){return!isNaN(e)}),XD(function(e,g){return isNaN(e)?g:Math.min(e,g)},NaN),nr());var j9A=f0(j0(yb(function(e){return e.intersectionGeometry.width*e.intersectionGeometry.height/(e.exposedViewportLocalGeometry.width*e.exposedViewportLocalGeometry.height)}),yb(function(e){return isFinite(e)?Math.min(1,e):0})));var s9A=j0(f0(yb(function(e){e=e.exposureOverride?e.elementGeometry.width*e.elementGeometry.height*e.exposureOverride/(e.topWindowViewportExternalGeometry.width*e.topWindowViewportExternalGeometry.height):e.intersectionGeometry.width*e.intersectionGeometry.height/(e.topWindowViewportExternalGeometry.width*e.topWindowViewportExternalGeometry.height);return isFinite(e)?e:0})));var HnV=function(e,g){var c=this;this.timeProvider=e;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=g.pipe(nr()).subscribe(function(k){Ut8(c);c.measurementRequestObserver=k})},oFz=function(e,g){Ut8(e);
e.lastMeasurementRequest=e.timeProvider.setTimeout(function(){var c;return void((c=e.measurementRequestObserver)==null?void 0:c.next())},g)},Ut8=function(e){e.lastMeasurementRequest!==null&&e.timeProvider.clearTimeout(e.lastMeasurementRequest);
e.lastMeasurementRequest=null};
HnV.prototype.dispose=function(){Ut8(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var AuB=function(){};var LRp=function(e,g){this.context=e;this.strategies=g};
_.Y(LRp,AuB);LRp.prototype.buildGeometrySource=function(e,g){var c=this.strategies.map(function(J){return J.buildGeometrySource(e,g)}),k=Nsv(c.map(function(J){return J.geometrySource})),I=k.capturedErrors.pipe(syZ());
return{geometrySource:k.chain.pipe(dJ(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:I,strategyErrors:k.capturedErrors}].concat(_.KY(c.map(function(J){return J.additionalOutputs}))))}};
var syZ=function(){return XD(function(e,g){g instanceof rN?e.push(g.measurementStrategyFailureReason):e.push(-1);return e},[])};var aC6=function(e,g){this.context=e;this.poller=g};
_.Y(aC6,AuB);aC6.prototype.buildGeometrySource=function(e,g){var c=SXC(KPC(this.context,this.poller),vF8(this.context,g.requestSource));return{geometrySource:BsC(e.measurableCreative.pipe(c),g.inApp),additionalOutputs:{}}};var r_6=function(e,g,c){c=c===void 0?nFe(e,g):c;this.context=e;this.intersectionObserverStrategy=c};
_.Y(r_6,AuB);r_6.prototype.buildGeometrySource=function(e,g){var c=this.intersectionObserverStrategy(g.useV2);return{geometrySource:BsC(e.measurableCreative.pipe(c,RUq(this.context)),g.inApp),additionalOutputs:{}}};var FuY=function(e,g,c){var k=k===void 0?Symbol():k;this.element=e;this.immediateUrls=g;this.timeOnScreenUrls=c;this.symbol=k};var zUg=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),gz8=Object.freeze([1,.75,zUg.exposureThreshold,zUg.largeAdExposureThreshold,0]);var cyz=function(e,g){g=g===void 0?36E5:g;var c=c===void 0?!0:c;this.creatives=new FD;this.elementsToUnregister=new FD;this.elementMap=new Map;var k=new le(window,null);k.beaconFactory=new v9(k,new p2(k));qIC(k,this.creatives,this.elementsToUnregister,e,g,c).subscribe()},JyU=function(e,g,c,k){if(!e.elementMap.has(g)){var I=new G1(g);
e.elementMap.set(g,I);e.creatives.next(new FuY(I,c,k))}},ITC=function(e,g){e.elementsToUnregister.next(g);
var c=e.elementMap.get(g);c!==void 0&&(c.release(),e.elementMap.delete(g))};var bv6=function(e){var g=e.url;e=e.uaDataValues;this.JSC$9786_url_=g;this.uaDataValues_=e;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var c=/[?&]([^&=]+)=([^&]*)/g;e=c.exec(g);)this.urlParamValues_[e[1]]=e[2]},hZV=function(e){e=e.uaDataValues_;
if(!e)return"";var g=s5("uap",e.platform)+s5("uapv",e.platformVersion)+s5("uafv",e.uaFullVersion)+s5("uaa",e.architecture)+s5("uam",e.model)+s5("uab",e.bitness);e.fullVersionList&&(g+="&uafvl="+encodeURIComponent(e.fullVersionList.map(function(c){return encodeURIComponent(c.brand)+";"+encodeURIComponent(c.version)}).join("|")));
e.wow64!=null&&(g+="&uaw="+Number(e.wow64));return g.slice(1)};var uwY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(uwY,_.WJ);uwY.prototype.getId=function(){return _.Rs(this,1)};var u2=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(u2,_.WJ);u2.prototype.getSeconds=function(){return as(this,1)};
u2.prototype.setSeconds=function(e){return _.wr(this,1,xX(e),"0")};_.Wj=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(_.Wj,_.WJ);_.Wj.prototype.getSeconds=function(){return as(this,1)};
_.Wj.prototype.setSeconds=function(e){return _.wr(this,1,xX(e),"0")};
_.d_Y=function(e){var g=Number(WW(e,1));e=_.Qh(e,2);return new Date(g*1E3+e/1E6)};var dg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(dg,_.WJ);dg.prototype.getUrl=function(){return _.Rs(this,1)};
dg.prototype.setUrl=function(e){return _.pL(this,1,e)};
dg.prototype.getHeight=function(){return _.Qh(this,2)};
dg.prototype.getWidth=function(){return _.Qh(this,3)};var zl=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(zl,_.WJ);zl.prototype.getAspectRatio=function(){return nq(this,1)};
zl.prototype.getDuration=function(){return _.Ml(this,u2,2)};var zEq=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(zEq,_.WJ);var HTw=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(HTw,_.WJ);var Qyu=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Qyu,_.WJ);var U_s=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(U_s,_.WJ);var orZ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(orZ,_.WJ);var ZTu=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(ZTu,_.WJ);var Vv1=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Vv1,_.WJ);var tvk=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(tvk,_.WJ);var BD4=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(BD4,_.WJ);var H9=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(H9,_.WJ);var Q2=[2,4,5,6,7];var NDB=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(NDB,_.WJ);var w0=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(w0,_.WJ);_.v=w0.prototype;_.v.getId=function(){return _.Ml(this,uwY,1)};
_.v.getName=function(){return _.Rs(this,2)};
_.v.setDescription=function(e){return _.pL(this,3,e)};
_.v.getUrl=function(){return _.Rs(this,8)};
_.v.setUrl=function(e){return _.pL(this,8,e)};
var Us=function(e){return _.z1(e,dg,10,_.HH())};
w0.prototype.getOwner=function(e){return _.vBI(this,40,e)};
var oX=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(oX,_.WJ);_.Zg=[0,pq,KaI];_.V2=[0,pq,KaI];var Sus=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Sus,_.WJ);var tL=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(tL,_.WJ);tL.prototype.getStatus=function(){return _.EU(this,1)};
tL.prototype.removeItem=function(e){return cjs(this,2,e)};var yuk=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(yuk,_.WJ);yuk.prototype.getName=function(){return _.Rs(this,8)};var B9=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(B9,_.WJ);B9.prototype.getCommand=function(){return _.EU(this,1)};
B9.prototype.getSource=function(){return _.Ml(this,yuk,2)};
B9.prototype.setVisible=function(e){return _.rE(this,5,e)};
B9.prototype.removeItem=function(e){return cjs(this,7,e)};var Ku4=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Ku4,_.WJ);Ku4.prototype.getCommand=function(){return _.EU(this,1)};
Ku4.prototype.removeItem=function(e){return cjs(this,4,e)};
var OTq=_.ld(Ku4);var Ns=function(e,g,c){c=c===void 0?Error():c;var k=Error.call(this);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.code=e;g+=":";c instanceof Error?(this.message=g+c.message,this.stack=c.stack||""):(this.message=g+String(c),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(Ns,Error);_.Iy=function(){this.JSC$9844_disposed_=this.JSC$9844_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Iy.prototype.JSC$9844_disposed_=!1;_.Iy.prototype.isDisposed=function(){return this.JSC$9844_disposed_};
_.Iy.prototype.dispose=function(){this.JSC$9844_disposed_||(this.JSC$9844_disposed_=!0,this.disposeInternal())};
_.Iy.prototype[Symbol.dispose]=function(){this.dispose()};
_.yh=function(e,g){e.addOnDisposeCallback(_.g$(_.Fm,g))};
_.Iy.prototype.addOnDisposeCallback=function(e,g){this.JSC$9844_disposed_?g!==void 0?e.call(g):e():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),g&&(e=e.bind(g)),this.onDisposeCallbacks_.push(e))};
_.Iy.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var S9=function(e){_.Iy.call(this);this.wpc=e};
_.Y(S9,_.Iy);S9.prototype.cfP=function(){return this.wpc.f()};
S9.prototype.zSV=function(e){return this.wpc.c(e)};
S9.prototype.gf=function(e){return this.wpc.m(fCC(e))};
S9.prototype.ff4=function(e){return this.wpc.mws(fCC(e))};
var dN=function(e){_.Iy.call(this);var g=this;this.vm=e;this.nXT="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.kKI=void 0;this.cQm=this.vm.p;this.vsD=this.gX4.bind(this);this.addOnDisposeCallback(function(){return void MvB(g)})};
_.Y(dN,_.Iy);var CKu=function(e){var g;return _.r(function(c){if(c.nextAddress==1){if(!e.vm.wpc)throw new Ns(30,"NWA");return e.igr?c.return(e.igr):c.yield(e.vm.wpc(),2)}g=c.yieldResult;e.igr=new S9(g);return c.return(e.igr)})};
dN.prototype.snapshot=function(e){return this.vm.s(Object.assign({},e.zA&&{c:e.zA},e.cYL&&{s:e.cYL},e.aJY!==void 0&&{p:e.aJY}))};
dN.prototype.gX4=function(e){this.vm.e(e)};
dN.prototype.lTt=function(e,g){return this.vm.c(e,g,!1)};
var MvB=function(e){e.kKI!==void 0&&(e.nXT.forEach(function(g){var c;(c=e.kKI)==null||c.removeEventListener(g,e.vsD)}),e.kKI=void 0)};
dN.prototype.pr4=function(){return this.vm.l()};var y2=function(){_.Iy.apply(this,arguments);this.lIL=1};
_.Y(y2,_.Iy);y2.prototype.share=function(){if(this.isDisposed())throw Error("qa");this.lIL++;return this};
y2.prototype.dispose=function(){--this.lIL||_.Iy.prototype.dispose.call(this)};var eUu=function(e){this.dRD=e;e.addNewEventMetric("/client_streamz/bg/frs",_.ZM("mk"))};
eUu.prototype.record=function(e,g){this.dRD.record("/client_streamz/bg/frs",e,g)};
var gFw=function(e){this.sLL=e;e.addNewEventMetric("/client_streamz/bg/wrl",_.ZM("mn"),o4("ac"),o4("sc"),_.ZM("rk"),_.ZM("mk"))};
gFw.prototype.record=function(e,g,c,k,I,J){this.sLL.record("/client_streamz/bg/wrl",e,g,c,k,I,J)};
var cVZ=function(e){this.pfT=e;e.addNewCounter("/client_streamz/bg/ec",_.ZM("en"),_.ZM("mk"))};
cVZ.prototype.increment=function(e,g){this.pfT.JSC$10097_incrementCounter("/client_streamz/bg/ec",e,g)};
var k7Z=function(e){this.rLb=e;e.addNewEventMetric("/client_streamz/bg/el",_.ZM("en"),_.ZM("mk"))};
k7Z.prototype.record=function(e,g,c){this.rLb.record("/client_streamz/bg/el",e,g,c)};
var Ick=function(e){this.zsf=e;e.addNewCounter("/client_streamz/bg/cec",o4("ec"),_.ZM("mk"))};
Ick.prototype.increment=function(e,g){this.zsf.JSC$10097_incrementCounter("/client_streamz/bg/cec",e,g)};
var JVv=function(e){this.esD=e;e.addNewCounter("/client_streamz/bg/po/csc",o4("cs"),_.ZM("mk"))};
JVv.prototype.increment=function(e,g){this.esD.JSC$10097_incrementCounter("/client_streamz/bg/po/csc",e,g)};
var vFY=function(e){this.kib=e;e.addNewCounter("/client_streamz/bg/po/ctav",_.ZM("av"),_.ZM("mk"))};
vFY.prototype.increment=function(e,g){this.kib.JSC$10097_incrementCounter("/client_streamz/bg/po/ctav",e,g)};
var waB=function(e){this.vPD=e;e.addNewCounter("/client_streamz/bg/po/cwsc",_.ZM("su"),_.ZM("mk"))};
waB.prototype.increment=function(e,g){this.vPD.JSC$10097_incrementCounter("/client_streamz/bg/po/cwsc",e,g)};var g1t=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(g1t,_.WJ);var e_C=function(e,g){return _.Jj(e,3,g,TZ6)};var qXB=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(qXB,_.WJ);var LPw=[1,2,3];var rVv=[0,LPw,_.d0,OmI,eLM];var acn=[0,_.zX,[0,PW,_.mv]];var nFB=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(nFB,_.WJ);var RUk=[1,2,3];var EFq=[0,RUk,Sxq,ZmM,_.HW,acn];var WPn=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(WPn,_.WJ);var bnI=[0,_.zX,rVv,EFq];var hUq=[0,_.Fv];var XaB=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(XaB,_.WJ);var G7u=[0,_.Fv,-1,_.AP];var xtY=[0,_.Fv,-1,_.ly,_.AP];var Dtn=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Dtn,_.WJ);var $tY=[1,2,3];var YXY=[0,$tY,_.HW,G7u,_.HW,xtY,_.HW,hUq];var fc1=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(fc1,_.WJ);fc1.prototype.JSC$9917_serializeBinary=LzU([0,_.Fv,YXY,gW1,_.zX,bnI,Mav,_.Cd4]);var j9n=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(j9n,_.WJ);var mts=function(e){var g=new fc1;g=_.vH(g,1,e.JSC$10033_metricName);var c=inv(e);g=_.Jj(g,3,c,_.iS);c=[];for(var k=[],I=_.w(e.cellMap.keys()),J=I.next();!J.done;J=I.next())k.push(J.value.split(","));for(I=0;I<k.length;I++){J=k[I];for(var q=e.cellType,L=e.getCells(J)||[],n=[],R=0;R<L.length;R++){var W=L[R],b=W&&W.cellValue;W=new nFB;switch(q){case 3:b=Number(b);Number.isFinite(b)&&J2(W,1,RUk,xX(b));break;case 2:J2(W,2,RUk,_.cq(Number(b)))}n.push(W)}q=n;for(L=0;L<q.length;L++){n=q[L];R=new WPn;n=_.sx(R,
2,n);R=[];W=Pun(e);for(b=0;b<W.length;b++){var h=W[b],X=J[b],D=new qXB;switch(h){case 3:J2(D,1,LPw,pg(String(X)));break;case 2:h=Number(X);Number.isFinite(h)&&J2(D,2,LPw,_.rj(h));break;case 1:J2(D,3,LPw,Ps8(X==="true"))}R.push(D)}vW(n,1,R);c.push(n)}}vW(g,4,c);return g};var paY=function(e){if(!e)return"";if(/^about:(?:blank|srcdoc)$/.test(e))return window.origin||"";e.indexOf("blob:")===0&&(e=e.substring(5));e=e.split("#")[0].split("?")[0];e=e.toLowerCase();e.indexOf("//")==0&&(e=window.location.protocol+e);/^[\w\-]*:\/\//.test(e)||(e=window.location.href);var g=e.substring(e.indexOf("://")+3),c=g.indexOf("/");c!=-1&&(g=g.substring(0,c));c=e.substring(0,e.indexOf("://"));if(!c)throw Error("ra`"+e);if(c!=="http"&&c!=="https"&&c!=="chrome-extension"&&c!=="moz-extension"&&
c!=="file"&&c!=="android-app"&&c!=="chrome-search"&&c!=="chrome-untrusted"&&c!=="chrome"&&c!=="app"&&c!=="devtools")throw Error("sa`"+c);e="";var k=g.indexOf(":");if(k!=-1){var I=g.substring(k+1);g=g.substring(0,k);if(c==="http"&&I!=="80"||c==="https"&&I!=="443")e=":"+I}return c+"://"+g+e};var lcZ=function(e,g,c){var k=String(_.kp.location.href);return k&&e&&g?[g,Ts1(paY(k),e,c||null)].join(" "):null},Ts1=function(e,g,c){var k=[],I=[];
if((Array.isArray(c)?2:1)==1)return I=[g,e],_.o7(k,function(L){I.push(L)}),AVq(I.join(" "));
var J=[],q=[];_.o7(c,function(L){q.push(L.key);J.push(L.value)});
c=Math.floor((new Date).getTime()/1E3);I=J.length==0?[c,g,e]:[J.join(":"),c,g,e];_.o7(k,function(L){I.push(L)});
e=AVq(I.join(" "));e=[c,e];q.length==0||e.push(q.join(""));return e.join("_")},AVq=function(e){var g=A_V();
g.update(e);return g.digestString().toLowerCase()};var s9n;_.v=Vh.prototype;_.v.isEnabled=function(){if(!_.kp.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.v.set=function(e,g,c){var k=!1;if(typeof c==="object"){var I=c.sameSite;k=c.secure||!1;var J=c.domain||void 0;var q=c.path||void 0;var L=c.maxAge}if(/[;=\s]/.test(e))throw Error("ta`"+e);if(/[;\r\n]/.test(g))throw Error("ua`"+g);L===void 0&&(L=-1);c=J?";domain="+J:"";q=q?";path="+q:"";k=k?";secure":"";L=L<0?"":L==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+L*1E3)).toUTCString();this.JSC$9928_document_.cookie=e+"="+g+c+q+L+k+(I!=null?";samesite="+I:"")};
_.v.get=function(e,g){for(var c=e+"=",k=(this.JSC$9928_document_.cookie||"").split(";"),I=0,J;I<k.length;I++){J=Wz(k[I]);if(J.lastIndexOf(c,0)==0)return J.slice(c.length);if(J==e)return""}return g};
_.v.remove=function(e,g,c){var k=this.containsKey(e);this.set(e,"",{maxAge:0,path:g,domain:c});return k};
_.v.getKeys=function(){return s9n(this).keys};
_.v.getValues=function(){return s9n(this).values};
_.v.isEmpty=function(){return!this.JSC$9928_document_.cookie};
_.v.getCount=function(){return this.JSC$9928_document_.cookie?(this.JSC$9928_document_.cookie||"").split(";").length:0};
_.v.containsKey=function(e){return this.get(e)!==void 0};
_.v.containsValue=function(e){for(var g=s9n(this).values,c=0;c<g.length;c++)if(g[c]==e)return!0;return!1};
_.v.clear=function(){for(var e=s9n(this).keys,g=e.length-1;g>=0;g--)this.remove(e[g])};
s9n=function(e){e=(e.JSC$9928_document_.cookie||"").split(";");for(var g=[],c=[],k,I,J=0;J<e.length;J++)I=Wz(e[J]),k=I.indexOf("="),k==-1?(g.push(""),c.push(I)):(g.push(I.substring(0,k)),c.push(I.substring(k+1)));return{keys:g,values:c}};
_.Lf=new Vh(typeof document=="undefined"?null:document);var ZP6,FPw;ZP6=function(){var e=_.kp.__SAPISID||_.kp.__APISID||_.kp.__3PSAPISID||_.kp.__1PSAPISID||_.kp.__OVERRIDE_SID;if(e)return!0;typeof document!=="undefined"&&(e=new Vh(document),e=e.get("SAPISID")||e.get("APISID")||e.get("__Secure-3PAPISID")||e.get("__Secure-1PAPISID"));return!!e};
FPw=function(e,g,c,k){(e=_.kp[e])||typeof document==="undefined"||(e=(new Vh(document)).get(g));return e?lcZ(e,c,k):null};
_.BkC=function(e){var g=paY(_.kp==null?void 0:_.kp.location.href),c=[];if(ZP6()){g=g.indexOf("https:")==0||g.indexOf("chrome-extension:")==0||g.indexOf("chrome-untrusted://new-tab-page")==0||g.indexOf("moz-extension:")==0;var k=g?_.kp.__SAPISID:_.kp.__APISID;k||typeof document==="undefined"||(k=new Vh(document),k=k.get(g?"SAPISID":"APISID")||k.get("__Secure-3PAPISID"));(k=k?lcZ(k,g?"SAPISIDHASH":"APISIDHASH",e):null)&&c.push(k);g&&((g=FPw("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",e))&&c.push(g),
(e=FPw("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",e))&&c.push(e))}return c.length==0?null:c.join(" ")};var ucn=function(){this.minSize=1024};
ucn.prototype.compress=function(e){var g,c,k,I;return _.r(function(J){switch(J.nextAddress){case 1:return g=new CompressionStream("gzip"),c=(new Response(g.readable)).arrayBuffer(),k=g.writable.getWriter(),J.yield(k.write((new TextEncoder).encode(e)),2);case 2:return J.yield(k.close(),3);case 3:return I=Uint8Array,J.yield(c,4);case 4:return J.return(new I(J.yieldResult))}})};
ucn.prototype.isSupported=function(e){return e<this.minSize?!1:typeof CompressionStream!=="undefined"};var dtw=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(dtw,_.WJ);var K2=function(e,g){this.intervalMs=e;this.callback=g;this.enabled=!1;this.nowFn=function(){return _.QG()};
this.lastTimeMs=this.nowFn()};
K2.prototype.setInterval=function(e){this.intervalMs=e;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
K2.prototype.start=function(){var e=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){e.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
K2.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
K2.prototype.tick=function(){var e=this;if(this.enabled){var g=Math.max(this.nowFn()-this.lastTimeMs,0);g<this.intervalMs*.8?this.timer=setTimeout(function(){e.tick()},this.intervalMs-g):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var zUM=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(zUM,_.WJ);var HnZ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(HnZ,_.WJ);var Q9q=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Q9q,_.WJ);Q9q.prototype.getTransmissionType=function(){return _.EU(this,1)};
Q9q.prototype.getRetryCount=function(){return _.Qh(this,3)};var dNg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(dNg,_.WJ);var Os=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Os,_.WJ);var uqC=function(e){vW(zst,1,e)};
Os.prototype.getModel=function(){return _.Rs(this,6)};
var UtY=_.ld(Os);var oFw=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(oFw,_.WJ);var s7V=["platform","platformVersion","architecture","model","uaFullVersion"],zst=new Os,FRU=null;var Ms=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Ms,_.WJ);var Znq=function(e){return _.Cf(e,1,1)};var VPu=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e,4)};
_.Y(VPu,_.WJ);_.C2=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e,36)};
_.Y(_.C2,_.WJ);_.C2.prototype.getExperimentIds=function(){return _.Ml(this,dtw,16)};var tPu=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e,19)};
_.Y(tPu,_.WJ);tPu.prototype.setLogSource=function(e){return _.Cf(this,2,e)};
tPu.prototype.setScheduler=function(e){return _.Cf(this,10,e)};var Nsq=function(e,g){this.isServiceWorkerScope=g=g===void 0?!1:g;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new tPu;Number.isInteger(e)&&this.logRequest.setLogSource(e);g||(this.locale=document.documentElement.getAttribute("lang"));Bs1(this,new Ms)};
Nsq.prototype.setLogSource=function(e){this.logRequest.setLogSource(e);return this};
var Bs1=function(e,g){_.sx(e.logRequest,1,g);_.EU(g,1)||Znq(g);e.isServiceWorkerScope||(g=ec(e),_.Rs(g,5)||_.vH(g,5,e.locale));e.uach&&(g=ec(e),_.Ml(g,Os,9)||_.sx(g,9,e.uach))},SXv=function(e,g){e.transmissionType=g},yV1=function(e){var g=g===void 0?s7V:g;
var c=e.isServiceWorkerScope?void 0:WH();c?H4C(c,g).then(function(k){e.uach=UtY(k!=null?k:"[]");k=ec(e);_.sx(k,9,e.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},ec=function(e){var g=_.Ml(e.logRequest,Ms,1);
g||(g=new Ms,Bs1(e,g));e=g;g=_.Ml(e,oFw,11);g||(g=new oFw,_.sx(e,11,g));return g};
Nsq.prototype.build=function(e,g,c,k,I,J){g=g===void 0?0:g;c=c===void 0?0:c;k=k===void 0?null:k;I=I===void 0?0:I;J=J===void 0?0:J;if(!this.isServiceWorkerScope){var q=ec(this);var L=new Q9q;L=_.Cf(L,1,this.transmissionType);L=_.td(L,2,this.isFinal);c=_.Xv(L,3,c>0?c:void 0);c=_.Xv(c,4,I>0?I:void 0);c=_.Xv(c,5,J>0?J:void 0);I=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;J=I[_.wZ]|0;c=mB(c,J)?c:Qx8(c,I,J)?Hgz(c,I):new c.constructor(Vv(I,J,!0));_.sx(q,10,c)}q=this.logRequest.clone();c=Date.now().toString();
q=_.e6(q,4,xX(c));e=e.slice();e=vW(q,3,e);k&&(q=new zUM,k=_.Xv(q,13,k),q=new HnZ,k=_.sx(q,2,k),q=new VPu,k=_.sx(q,1,k),k=_.Cf(k,2,9),_.sx(e,18,k));g&&_.Rl(e,14,g);return e};BH.prototype.currBackoffCount_=0;BH.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
BH.prototype.getValue=function(){return this.currValue_};
var KPv=function(e){e.currBaseValue_=Math.min(e.maxValue_,e.currBaseValue_*e.backoffFactor_);e.currValue_=Math.min(e.maxValue_,e.currBaseValue_+(e.randomFactor_?Math.round(e.randomFactor_*(Math.random()-.5)*2*e.currBaseValue_):0));e.currBackoffCount_++};var vWw=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e,8)};
_.Y(vWw,_.WJ);var On1=_.ld(vWw);var wAq=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(wAq,_.WJ);var gG;gG=new qhB;var cN=function(e){_.Iy.call(this);var g=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$10006_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$10006_sendBeaconApiEnabled=!1;this.logSource=e.logSource;this.getAuthHeaderValue=
e.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Nsq(e.logSource,e.isServiceWorkerScope);this.network=e.network||null;this.productID=e.productID||null;this.bufferSize=1E3;this.clearcutUrl=e.urlOverride||null;this.sessionIndex=e.sessionIndex||null;this.disableAutomaticFlush=e.disableAutomaticFlush||!1;this.withCredentials=!e.disableWithCredentials;this.isServiceWorkerScope=e.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!WH()&&!!WH().navigator&&WH().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(MPv())).searchParams&&!!(new URL(MPv())).searchParams.set;var c=Znq(new Ms);Bs1(this.logRequestBuilder,c);this.flushBackoff=new BH(1E4,3E5,.1);e=Cuv(this,e.backgroundJobDeferrer);this.JSC$10006_flushTimer=new K2(this.flushBackoff.getValue(),e);this.backupTimer=new K2(6E5,e);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){es4(g);
var k;(k=g.metalogService)==null||k.flush()}}),document.addEventListener("pagehide",function(){es4(g);
var k;(k=g.metalogService)==null||k.flush()}))};
_.Y(cN,_.Iy);var Cuv=function(e,g){return e.isBrowserSupported?g?function(){g().then(function(){e.flush()})}:function(){e.flush()}:function(){}};
cN.prototype.disposeInternal=function(){es4(this);this.JSC$10006_flushTimer.stop();this.backupTimer.stop();_.Iy.prototype.disposeInternal.call(this)};
var gzY=function(e){e.clearcutUrl||(e.clearcutUrl=MPv());try{return(new URL(e.clearcutUrl)).toString()}catch(g){return(new URL(e.clearcutUrl,WH().location.origin)).toString()}};
cN.prototype.dispatch=function(e){if(e instanceof _.C2)this.log(e);else try{var g=new _.C2,c=e.serialize();var k=_.vH(g,8,c);this.log(k)}catch(I){Ja(this,4,1)}};
var Ja=function(e,g,c){e.metalogService&&e.metalogService.increment(g,c)};
cN.prototype.log=function(e){Ja(this,2,1);if(this.isBrowserSupported){e=e.clone();var g=this.sequencePosition++;e=_.Rl(e,21,g);this.componentId&&_.vH(e,26,this.componentId);g=e;if(BZg(_.g0(g,1))==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";_.e6(g,1,xX(c))}_.kTq(g,15)!=null||_.Rl(g,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(c=this.experimentIds.clone(),_.sx(g,16,c));Ja(this,1,1);g=this.pendingEvents.length-this.bufferSize+1;g>0&&(this.pendingEvents.splice(0,g),this.numLogsDroppedSinceLastFlush+=
g,Ja(this,3,g));this.pendingEvents.push(e);this.disableAutomaticFlush||this.JSC$10006_flushTimer.enabled||this.JSC$10006_flushTimer.start()}};
cN.prototype.flush=function(e,g){var c=this;if(this.pendingEvents.length===0)e&&e();else if(this.JSC$10006_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,c_w(this);else{var k=Date.now();if(this.noFlushUntilMs>k&&this.startWaitingMs<k)g&&g("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?SXv(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var I=this.pendingEvents.length,
J=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),q=this.getAuthHeaderValue();if(q&&this.lastFailedAuth===q)g&&g("stale-auth-token");else{this.pendingEvents=[];this.JSC$10006_flushTimer.enabled&&this.JSC$10006_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;k=J.serialize();var L;this.JSC$10006_compressor&&this.JSC$10006_compressor.isSupported(k.length)&&
(L=this.JSC$10006_compressor.compress(k));var n=krw(this,k,q),R=function(h){c.flushBackoff.reset();c.JSC$10006_flushTimer.setInterval(c.flushBackoff.getValue());if(h){var X=null;try{var D=JSON.stringify(JSON.parse(h.replace(")]}'\n","")));X=On1(D)}catch(f){}X&&(h=Number(as(X,1,_.zq("-1"))),h>0&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+h),EXg(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,gG.fieldIndex),nXA(X,gG.fieldIndex),X=gG.ctor?gG.getExtensionFn(X,gG.ctor,gG.fieldIndex,
gG.JSC$9186_hasMessageId):gG.getExtensionFn(X,gG.fieldIndex,null,gG.JSC$9186_hasMessageId),X=X===null?void 0:X)&&(X=_.Qh(X,1,-1),X!==-1&&(c.flushBackoff=new BH(X<1?1:X,3E5,.1),c.JSC$10006_flushTimer.setInterval(c.flushBackoff.getValue())))}e&&e();c.numRetriesSinceLastSuccessfulFlush=0},W=function(h,X){var D=_.z1(J,_.C2,3,_.HH());
var f=Number(as(J,14));KPv(c.flushBackoff);c.JSC$10006_flushTimer.setInterval(c.flushBackoff.getValue());h===401&&q&&(c.lastFailedAuth=q);f&&(c.numLogsDroppedSinceLastFlush+=f);X===void 0&&(X=c.isRetryable(h));X&&(c.pendingEvents=D.concat(c.pendingEvents),c.disableAutomaticFlush||c.JSC$10006_flushTimer.enabled||c.JSC$10006_flushTimer.start());Ja(c,7,1);g&&g("net-send-failed",h);++c.numRetriesSinceLastSuccessfulFlush},b=function(){c.network&&c.network.send(n,R,W)};
L?L.then(function(h){Ja(c,5,I);n.requestHeaders["Content-Encoding"]="gzip";n.requestHeaders["Content-Type"]="application/binary";n.body=h;n.bodyType=2;b()},function(){Ja(c,6,I);
b()}):b()}}}};
var krw=function(e,g,c){c=c===void 0?null:c;var k=k===void 0?e.withCredentials:k;var I={},J=new URL(gzY(e));c&&(I.Authorization=c);e.sessionIndex&&(I["X-Goog-AuthUser"]=e.sessionIndex,J.searchParams.set("authuser",e.sessionIndex));e.pageId&&(Object.defineProperty(I,"X-Goog-PageId",{value:e.pageId}),J.searchParams.set("pageId",e.pageId));return{url:J.toString(),body:g,bodyType:1,requestHeaders:I,requestType:"POST",withCredentials:k,timeoutMillis:e.timeoutMillis}},es4=function(e){e.logRequestBuilder.isFinal=
!0;
e.flush();e.logRequestBuilder.isFinal=!1},c_w=function(e){ICM(e,function(g,c){g=new URL(g);
g.searchParams.set("format","json");var k=!1;try{k=WH().navigator.sendBeacon(g.toString(),c.serialize())}catch(I){}k||(e.isSendBeaconSupported=!1);return k})},ICM=function(e,g){if(e.pendingEvents.length!==0){var c=new URL(gzY(e));
c.searchParams.delete("format");var k=e.getAuthHeaderValue();k&&c.searchParams.set("auth",k);c.searchParams.set("authuser",e.sessionIndex||"0");for(k=0;k<10&&e.pendingEvents.length;++k){var I=e.pendingEvents.slice(0,32),J=e.logRequestBuilder.build(I,e.numLogsDroppedSinceLastFlush,e.numRetriesSinceLastSuccessfulFlush,e.productID,e.persistedLogRecoveredCount,e.persistedLogExpiredCount);if(!g(c.toString(),J)){++e.numRetriesSinceLastSuccessfulFlush;break}e.numLogsDroppedSinceLastFlush=0;e.numRetriesSinceLastSuccessfulFlush=
0;e.persistedLogRecoveredCount=0;e.persistedLogExpiredCount=0;e.pendingEvents=e.pendingEvents.slice(I.length)}e.JSC$10006_flushTimer.enabled&&e.JSC$10006_flushTimer.stop()}};
cN.prototype.isRetryable=function(e){return 500<=e&&e<600||e===401||e===0};
var MPv=function(){return"https://play.google.com/log?format=json&hasfast=true"};var J_I=function(){this.abortSupported=typeof AbortController!=="undefined"};
J_I.prototype.send=function(e,g,c){var k=this,I,J,q,L,n,R,W,b,h,X;return _.r(function(D){switch(D.nextAddress){case 1:return J=(I=k.abortSupported?new AbortController:void 0)?setTimeout(function(){I.abort()},e.timeoutMillis):void 0,_.lj(D,2,3),q=Object.assign({},{method:e.requestType,
headers:Object.assign({},e.requestHeaders)},e.body&&{body:e.body},e.withCredentials&&{credentials:"include"},{signal:e.timeoutMillis&&I?I.signal:null}),D.yield(fetch(e.url,q),5);case 5:L=D.yieldResult;if(L.status!==200){(n=c)==null||n(L.status);D.jumpTo(3);break}if((R=g)==null){D.jumpTo(7);break}return D.yield(L.text(),8);case 8:R(D.yieldResult);case 7:case 3:_.sh(D);clearTimeout(J);_.HA(D,0);break;case 2:W=_.Qb(D);switch((b=W)==null?void 0:b.name){case "AbortError":(h=c)==null||h(408);break;default:(X=
c)==null||X(400)}D.jumpTo(3)}})};
J_I.prototype.getTransmissionType=function(){return 4};_.SQ=function(e,g){g=g===void 0?"0":g;_.Iy.call(this);this.logSource=e;this.sessionIndex=g;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$10024_clearExperimentIds=this.productID=null;this.JSC$10024_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.Y(_.SQ,_.Iy);var O4A=function(e,g){e.buildLabel=g;return e},KRA=function(e,g){e.network=g;
return e},Coq=function(e,g){e.JSC$10024_clearExperimentIds=g},y_V=function(e){e.JSC$10024_sendBeaconApiEnabled=!0;
return e};
_.SQ.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.SQ.prototype.build=function(){this.network||(this.network=new J_I);var e=new cN({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.BkC,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.yh(this,e);if(this.buildLabel){var g=this.buildLabel,c=
ec(e.logRequestBuilder);_.vH(c,7,g)}e.JSC$10006_compressor=new ucn;this.componentId&&(e.componentId=this.componentId);this.productID&&(e.productID=this.productID);this.pageId&&(e.pageId=this.pageId);this.JSC$10024_clearExperimentIds&&((c=this.JSC$10024_clearExperimentIds)?(e.experimentIds||(e.experimentIds=new dtw),g=e.experimentIds,c=c.serialize(),_.vH(g,4,c)):e.experimentIds&&_.e6(e.experimentIds,4));this.JSC$10024_sendBeaconApiEnabled&&(e.JSC$10006_sendBeaconApiEnabled=e.isSendBeaconSupported);
yV1(e.logRequestBuilder);this.bufferSize&&(e.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(e);return e};var cK8=function(e,g,c,k,I,J,q){e=e===void 0?-1:e;g=g===void 0?"":g;c=c===void 0?"":c;k=k===void 0?!1:k;I=I===void 0?"":I;_.Iy.call(this);this.logSource=e;this.componentId=g;J?g=J:(e=new _.SQ(e,"0"),e.componentId=g,_.yh(this,e),c!==""&&(e.destinationUrl=c),k&&(e.serviceWorkerScopeEnabled=!0),I&&O4A(e,I),q&&KRA(e,q),g=e.build());this.JSC$10028_transport=g};
_.Y(cK8,_.Iy);cK8.prototype.flush=function(e){e=e||[];if(e.length){for(var g=new j9n,c=[],k=0;k<e.length;k++){var I=e[k],J=mts(I);c.push(J);I.clear()}vW(g,1,c);this.JSC$10028_transport.dispatch(g);this.JSC$10028_transport.flush()}};var vzs=function(e){this.cellValue=e};var vN=function(e,g,c){this.JSC$10033_metricName=e;this.cellType=g;this.fields=c||[];this.cellMap=new Map},Pun=function(e){return e.fields.map(function(g){return g.fieldType})},inv=function(e){return e.fields.map(function(g){return g.fieldName})};
_.v=vN.prototype;_.v.addCell=function(e){var g=_.Mb.apply(1,arguments),c=this.getCells(g);c?c.push(new vzs(e)):this.JSC$10033_setCell(e,g)};
_.v.JSC$10033_setCell=function(e){var g=this.JSC$10033_getKey(_.Mb.apply(1,arguments));this.cellMap.set(g,[new vzs(e)])};
_.v.getCells=function(){var e=this.JSC$10033_getKey(_.Mb.apply(0,arguments));return this.cellMap.has(e)?this.cellMap.get(e):void 0};
_.v.getCell=function(){var e=this.getCells(_.Mb.apply(0,arguments));return e&&e.length?e[0]:void 0};
_.v.clear=function(){this.cellMap.clear()};
_.v.JSC$10033_getKey=function(){var e=_.Mb.apply(0,arguments);return e?e.join(","):"key"};var wVw=function(e,g){vN.call(this,e,3,g)};
_.Y(wVw,vN);wVw.prototype.JSC$10036_incrementCounterBy=function(e){var g=_.Mb.apply(1,arguments),c=0,k=this.getCell(g);k&&(c=k.cellValue);this.JSC$10033_setCell(c+e,g)};var qIv=function(e,g){vN.call(this,e,2,g)};
_.Y(qIv,vN);qIv.prototype.record=function(e){this.addCell(e,_.Mb.apply(1,arguments))};_.wG=function(e){this.id=e};
_.wG.prototype.toString=function(){return this.id};_.Bt=function(e,g){this.type=e instanceof _.wG?String(e):e;this.currentTarget=this.target=g;this.defaultPrevented=this.propagationStopped_=!1};
_.Bt.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Bt.prototype.preventDefault=function(){this.defaultPrevented=!0};_.qn=function(e,g){_.Bt.call(this,e?e.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;e&&this.init(e,g)};
_.Um(_.qn,_.Bt);
_.qn.prototype.init=function(e,g){var c=this.type=e.type,k=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement;this.currentTarget=g;g=e.relatedTarget;g||(c=="mouseover"?g=e.fromElement:c=="mouseout"&&(g=e.toElement));this.relatedTarget=g;k?(this.clientX=k.clientX!==void 0?k.clientX:k.pageX,this.clientY=k.clientY!==void 0?k.clientY:k.pageY,this.screenX=k.screenX||0,this.screenY=k.screenY||0):(this.offsetX=_.Cb||e.offsetX!==void 0?e.offsetX:e.layerX,
this.offsetY=_.Cb||e.offsetY!==void 0?e.offsetY:e.layerY,this.clientX=e.clientX!==void 0?e.clientX:e.pageX,this.clientY=e.clientY!==void 0?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button=e.button;this.keyCode=e.keyCode||0;this.key=e.key||"";this.charCode=e.charCode||(c=="keypress"?e.keyCode:0);this.ctrlKey=e.ctrlKey;this.altKey=e.altKey;this.shiftKey=e.shiftKey;this.metaKey=e.metaKey;this.pointerId=e.pointerId||0;this.pointerType=e.pointerType;this.state=e.state;
this.timeStamp=e.timeStamp;this.event_=e;e.defaultPrevented&&_.qn.superClass_.preventDefault.call(this)};
_.qn.prototype.isButton=function(e){return this.event_.button==e};
_.qn.prototype.stopPropagation=function(){_.qn.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.qn.prototype.preventDefault=function(){_.qn.superClass_.preventDefault.call(this);var e=this.event_;e.preventDefault?e.preventDefault():e.returnValue=!1};var LRI="closure_listenable_"+(Math.random()*1E6|0),LZ=function(e){return!(!e||!e[LRI])};var Q7p=0;var r_4=function(e){e.removed=!0;e.listener=null;e.proxy=null;e.src=null;e.handler=null};Na.prototype.add=function(e,g,c,k,I){var J=e.toString();e=this.listeners[J];e||(e=this.listeners[J]=[],this.typeCount_++);var q=aC4(e,g,k,I);q>-1?(g=e[q],c||(g.callOnce=!1)):(g=new UNg(g,this.src,J,!!k,I),g.callOnce=c,e.push(g));return g};
Na.prototype.remove=function(e,g,c,k){e=e.toString();if(!(e in this.listeners))return!1;var I=this.listeners[e];g=aC4(I,g,c,k);return g>-1?(r_4(I[g]),_.ltv(I,g),I.length==0&&(delete this.listeners[e],this.typeCount_--),!0):!1};
var nzq=function(e,g){var c=g.type;if(!(c in e.listeners))return!1;var k=_.UC(e.listeners[c],g);k&&(r_4(g),e.listeners[c].length==0&&(delete e.listeners[c],e.typeCount_--));return k};
Na.prototype.removeAll=function(e){e=e&&e.toString();var g=0,c;for(c in this.listeners)if(!e||c==e){for(var k=this.listeners[c],I=0;I<k.length;I++)++g,r_4(k[I]);delete this.listeners[c];this.typeCount_--}return g};
Na.prototype.getListener=function(e,g,c,k){e=this.listeners[e.toString()];var I=-1;e&&(I=aC4(e,g,c,k));return I>-1?e[I]:null};
Na.prototype.hasListener=function(e,g){var c=e!==void 0,k=c?e.toString():"",I=g!==void 0;return _.n0.some(this.listeners,function(J){for(var q=0;q<J.length;++q)if(!(c&&J[q].type!=k||I&&J[q].capture!=g))return!0;return!1})};
var aC4=function(e,g,c,k){for(var I=0;I<e.length;++I){var J=e[I];if(!J.removed&&J.listener==g&&J.capture==!!c&&J.handler==k)return I}return-1};var Rss,Ezk,WRs,hsv,XVw,Wt,I6,T1z,Grw,xN1,rG,DNw,b41;Rss="closure_lm_"+(Math.random()*1E6|0);Ezk={};WRs=0;_.iK=function(e,g,c,k,I){if(k&&k.once)return Wt(e,g,c,k,I);if(Array.isArray(g)){for(var J=0;J<g.length;J++)_.iK(e,g[J],c,k,I);return null}c=b41(c);return LZ(e)?e.listen(g,c,_.SK(k)?!!k.capture:!!k,I):hsv(e,g,c,!1,k,I)};
hsv=function(e,g,c,k,I,J){if(!g)throw Error("wa");var q=_.SK(I)?!!I.capture:!!I,L=rG(e);L||(e[Rss]=L=new Na(e));c=L.add(g,c,k,q,J);if(c.proxy)return c;k=XVw();c.proxy=k;k.src=e;k.listener=c;if(e.addEventListener)_.d5v||(I=q),I===void 0&&(I=!1),e.addEventListener(g.toString(),k,I);else if(e.attachEvent)e.attachEvent(Grw(g.toString()),k);else if(e.addListener&&e.removeListener)e.addListener(k);else throw Error("xa");WRs++;return c};
XVw=function(){var e=xN1,g=function(c){return e.call(g.src,g.listener,c)};
return g};
Wt=function(e,g,c,k,I){if(Array.isArray(g)){for(var J=0;J<g.length;J++)Wt(e,g[J],c,k,I);return null}c=b41(c);return LZ(e)?e.listenOnce(g,c,_.SK(k)?!!k.capture:!!k,I):hsv(e,g,c,!0,k,I)};
_.a0=function(e,g,c,k,I){if(Array.isArray(g))for(var J=0;J<g.length;J++)_.a0(e,g[J],c,k,I);else k=_.SK(k)?!!k.capture:!!k,c=b41(c),LZ(e)?e.unlisten(g,c,k,I):e&&(e=rG(e))&&(g=e.getListener(g,c,k,I))&&I6(g)};
I6=function(e){if(typeof e==="number"||!e||e.removed)return!1;var g=e.src;if(LZ(g))return nzq(g.eventTargetListeners_,e);var c=e.type,k=e.proxy;g.removeEventListener?g.removeEventListener(c,k,e.capture):g.detachEvent?g.detachEvent(Grw(c),k):g.addListener&&g.removeListener&&g.removeListener(k);WRs--;(c=rG(g))?(nzq(c,e),c.typeCount_==0&&(c.src=null,g[Rss]=null)):r_4(e);return!0};
T1z=function(e,g,c,k,I){c=b41(c);k=!!k;return LZ(e)?e.getListener(g,c,k,I):e?(e=rG(e))?e.getListener(g,c,k,I):null:null};
Grw=function(e){return e in Ezk?Ezk[e]:Ezk[e]="on"+e};
xN1=function(e,g){if(e.removed)e=!0;else{g=new _.qn(g,this);var c=e.listener,k=e.handler||e.src;e.callOnce&&I6(e);e=c.call(k,g)}return e};
rG=function(e){e=e[Rss];return e instanceof Na?e:null};
DNw="__closure_events_fn_"+(Math.random()*1E9>>>0);b41=function(e){if(typeof e==="function")return e;e[DNw]||(e[DNw]=function(g){return e.handleEvent(g)});
return e[DNw]};_.jv=function(){_.Iy.call(this);this.eventTargetListeners_=new Na(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Um(_.jv,_.Iy);_.jv.prototype[LRI]=!0;_.v=_.jv.prototype;_.v.setParentEventTarget=function(e){this.parentEventTarget_=e};
_.v.addEventListener=function(e,g,c,k){_.iK(this,e,g,c,k)};
_.v.removeEventListener=function(e,g,c,k){_.a0(this,e,g,c,k)};
_.v.dispatchEvent=function(e){var g,c=this.parentEventTarget_;if(c)for(g=[];c;c=c.parentEventTarget_)g.push(c);c=this.actualEventTarget_;var k=e.type||e;if(typeof e==="string")e=new _.Bt(e,c);else if(e instanceof _.Bt)e.target=e.target||c;else{var I=e;e=new _.Bt(k,c);_.n0.extend(e,I)}I=!0;var J;if(g)for(J=g.length-1;!e.propagationStopped_&&J>=0;J--){var q=e.currentTarget=g[J];I=$N4(q,k,!0,e)&&I}e.propagationStopped_||(q=e.currentTarget=c,I=$N4(q,k,!0,e)&&I,e.propagationStopped_||(I=$N4(q,k,!1,e)&&
I));if(g)for(J=0;!e.propagationStopped_&&J<g.length;J++)q=e.currentTarget=g[J],I=$N4(q,k,!1,e)&&I;return I};
_.v.disposeInternal=function(){_.jv.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.v.listen=function(e,g,c,k){return this.eventTargetListeners_.add(String(e),g,!1,c,k)};
_.v.listenOnce=function(e,g,c,k){return this.eventTargetListeners_.add(String(e),g,!0,c,k)};
_.v.unlisten=function(e,g,c,k){return this.eventTargetListeners_.remove(String(e),g,c,k)};
_.v.removeAllListeners=function(e){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(e):0};
var $N4=function(e,g,c,k){g=e.eventTargetListeners_.listeners[String(g)];if(!g)return!0;g=g.concat();for(var I=!0,J=0;J<g.length;++J){var q=g[J];if(q&&!q.removed&&q.capture==c){var L=q.listener,n=q.handler||q.src;q.callOnce&&nzq(e.eventTargetListeners_,q);I=L.call(n,k)!==!1&&I}}return I&&!k.defaultPrevented};
_.jv.prototype.getListener=function(e,g,c,k){return this.eventTargetListeners_.getListener(String(e),g,c,k)};
_.jv.prototype.hasListener=function(e,g){return this.eventTargetListeners_.hasListener(e!==void 0?String(e):void 0,g)};var nZ=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(e){return e&&AsyncContext.Snapshot.wrap(e)}:function(e){return e};var YIw=function(e,g){this.create_=e;this.reset_=g;this.occupants_=0;this.JSC$10068_head_=null};
YIw.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var e=this.JSC$10068_head_;this.JSC$10068_head_=e.next;e.next=null}else e=this.create_();return e};
YIw.prototype.put=function(e){this.reset_(e);this.occupants_<100&&(this.occupants_++,e.next=this.JSC$10068_head_,this.JSC$10068_head_=e)};var fCv=function(){this.workTail_=this.workHead_=null};
fCv.prototype.add=function(e,g){var c=Z4W.get();c.set(e,g);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};
fCv.prototype.remove=function(){var e=null;this.workHead_&&(e=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),e.next=null);return e};
var Z4W=new YIw(function(){return new j74},function(e){return e.reset()}),j74=function(){this.next=this.scope=this.fn=null};
j74.prototype.set=function(e,g){this.fn=e;this.scope=g;this.next=null};
j74.prototype.reset=function(){this.next=this.scope=this.fn=null};var i4u,VsA,oz8,PoM;VsA=!1;oz8=new fCv;_.R0=function(e,g){i4u||PoM();VsA||(i4u(),VsA=!0);oz8.add(e,g)};
PoM=function(){var e=Promise.resolve(void 0);i4u=function(){e.then(ts8)}};var mNZ=function(e){e.prototype.$goog_Thenable=!0},pVY=function(e){if(!e)return!1;
try{return!!e.$goog_Thenable}catch(g){return!1}};var THw,lCu,A_Z,FRq,uq1,dNM,UNM,Vsn,SIw,BHM,diK;_.Il=function(e,g){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(e!=_.aX)try{var c=this;e.call(g,function(k){c.resolve_(2,k)},function(k){c.resolve_(3,k)})}catch(k){this.resolve_(3,k)}};
THw=function(){this.next=this.context=this.JSC$10079_onRejected=this.JSC$10079_onFulfilled=this.child=null;this.always=!1};
THw.prototype.reset=function(){this.context=this.JSC$10079_onRejected=this.JSC$10079_onFulfilled=this.child=null;this.always=!1};
lCu=new YIw(function(){return new THw},function(e){e.reset()});
A_Z=function(e,g,c){var k=lCu.get();k.JSC$10079_onFulfilled=e;k.JSC$10079_onRejected=g;k.context=c;return k};
_.No=function(e){if(e instanceof _.Il)return e;var g=new _.Il(_.aX);g.resolve_(2,e);return g};
_.q2=function(e){return new _.Il(function(g,c){c(e)})};
FRq=function(e,g,c){s7Z(e,g,c,null)||_.R0(_.g$(g,e))};
_.ER=function(e){return new _.Il(function(g,c){var k=e.length,I=[];if(k)for(var J=function(R,W){k--;I[R]=W;k==0&&g(I)},q=function(R){c(R)},L,n=0;n<e.length;n++)L=e[n],FRq(L,_.g$(J,n),q);
else g(I)})};
uq1=function(e){return new _.Il(function(g){var c=e.length,k=[];if(c)for(var I=function(L,n,R){c--;k[L]=n?{fulfilled:!0,value:R}:{fulfilled:!1,reason:R};c==0&&g(k)},J,q=0;q<e.length;q++)J=e[q],FRq(J,_.g$(I,q,!0),_.g$(I,q,!1));
else g(k)})};
dNM=function(e){return new _.Il(function(g,c){var k=e.length,I=[];if(k)for(var J=function(R){g(R)},q=function(R,W){k--;
I[R]=W;k==0&&c(I)},L,n=0;n<e.length;n++)L=e[n],FRq(L,J,_.g$(q,n));
else g(void 0)})};
_.i6=function(){var e,g,c=new _.Il(function(k,I){e=k;g=I});
return new zsw(c,e,g)};
_.Il.prototype.then=function(e,g,c){return H41(this,nZ(typeof e==="function"?e:null),nZ(typeof g==="function"?g:null),c)};
mNZ(_.Il);UNM=function(e,g,c,k){Q7I(e,A_Z(g||_.aX,c||null,k))};
_.WN=function(e,g){g=nZ(g);g=A_Z(g,g);g.always=!0;Q7I(e,g);return e};
_.Il.prototype.finally=function(e){var g=this;e=nZ(e);return new _.Il(function(c,k){UNM(g,function(I){e();c(I)},function(I){e();
k(I)})})};
_.Il.prototype.thenCatch=function(e,g){return H41(this,null,nZ(e),g)};
_.Il.prototype.catch=_.Il.prototype.thenCatch;_.Il.prototype.cancel=function(e){if(this.state_==0){var g=new _.fL(e);_.R0(function(){ozY(this,g)},this)}};
var ozY=function(e,g){if(e.state_==0)if(e.parent_){var c=e.parent_;if(c.callbackEntries_){for(var k=0,I=null,J=null,q=c.callbackEntries_;q&&(q.always||(k++,q.child==e&&(I=q),!(I&&k>1)));q=q.next)I||(J=q);I&&(c.state_==0&&k==1?ozY(c,g):(J?(k=J,k.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=k),k.next=k.next.next):Z4s(c),Vsn(c,I,3,g)))}e.parent_=null}else e.resolve_(3,g)},Q7I=function(e,g){e.callbackEntries_||e.state_!=2&&e.state_!=3||tsY(e);
e.callbackEntriesTail_?e.callbackEntriesTail_.next=g:e.callbackEntries_=g;e.callbackEntriesTail_=g},H41=function(e,g,c,k){var I=A_Z(null,null,null);
I.child=new _.Il(function(J,q){I.JSC$10079_onFulfilled=g?function(L){try{var n=g.call(k,L);J(n)}catch(R){q(R)}}:J;
I.JSC$10079_onRejected=c?function(L){try{var n=c.call(k,L);n===void 0&&L instanceof _.fL?q(L):J(n)}catch(R){q(R)}}:q});
I.child.parent_=e;Q7I(e,I);return I.child};
_.Il.prototype.unblockAndFulfill_=function(e){this.state_=0;this.resolve_(2,e)};
_.Il.prototype.unblockAndReject_=function(e){this.state_=0;this.resolve_(3,e)};
_.Il.prototype.resolve_=function(e,g){this.state_==0&&(this===g&&(e=3,g=new TypeError("ya")),this.state_=1,s7Z(g,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=g,this.state_=e,this.parent_=null,tsY(this),e!=3||g instanceof _.fL||BHM(this,g)))};
var s7Z=function(e,g,c,k){if(e instanceof _.Il)return UNM(e,g,c,k),!0;if(pVY(e))return e.then(g,c,k),!0;if(_.SK(e))try{var I=e.then;if(typeof I==="function")return NHn(e,I,g,c,k),!0}catch(J){return c.call(k,J),!0}return!1},NHn=function(e,g,c,k,I){var J=!1,q=function(n){J||(J=!0,c.call(I,n))},L=function(n){J||(J=!0,k.call(I,n))};
try{g.call(e,q,L)}catch(n){L(n)}},tsY=function(e){e.executing_||(e.executing_=!0,_.R0(e.executeCallbacks_,e))},Z4s=function(e){var g=null;
e.callbackEntries_&&(g=e.callbackEntries_,e.callbackEntries_=g.next,g.next=null);e.callbackEntries_||(e.callbackEntriesTail_=null);return g};
_.Il.prototype.executeCallbacks_=function(){for(var e;e=Z4s(this);)Vsn(this,e,this.state_,this.result_);this.executing_=!1};
Vsn=function(e,g,c,k){if(c==3&&g.JSC$10079_onRejected&&!g.always)for(;e&&e.hadUnhandledRejection_;e=e.parent_)e.hadUnhandledRejection_=!1;if(g.child)g.child.parent_=null,SIw(g,c,k);else try{g.always?g.JSC$10079_onFulfilled.call(g.context):SIw(g,c,k)}catch(I){diK.call(null,I)}lCu.put(g)};
SIw=function(e,g,c){g==2?e.JSC$10079_onFulfilled.call(e.context,c):e.JSC$10079_onRejected&&e.JSC$10079_onRejected.call(e.context,c)};
BHM=function(e,g){e.hadUnhandledRejection_=!0;_.R0(function(){e.hadUnhandledRejection_&&diK.call(null,g)})};
diK=IA;_.fL=function(e){_.eK.call(this,e)};
_.Um(_.fL,_.eK);_.fL.prototype.name="cancel";var zsw=function(e,g,c){this.promise=e;this.resolve=g;this.reject=c};var bV;_.rD=function(e,g){_.jv.call(this);this.JSC$10091_interval_=e||1;this.timerObject_=g||_.kp;this.boundTick_=(0,_.Ju)(this.tick_,this);this.last_=_.QG()};
_.Um(_.rD,_.jv);_.v=_.rD.prototype;_.v.enabled=!1;_.v.JSC$10093_timer_=null;_.v.setInterval=function(e){this.JSC$10091_interval_=e;this.JSC$10093_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10093_timer_&&this.stop()};
_.v.tick_=function(){if(this.enabled){var e=_.QG()-this.last_;e>0&&e<this.JSC$10091_interval_*.8?this.JSC$10093_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10091_interval_-e):(this.JSC$10093_timer_&&(this.timerObject_.clearTimeout(this.JSC$10093_timer_),this.JSC$10093_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.v.start=function(){this.enabled=!0;this.JSC$10093_timer_||(this.JSC$10093_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10091_interval_),this.last_=_.QG())};
_.v.stop=function(){this.enabled=!1;this.JSC$10093_timer_&&(this.timerObject_.clearTimeout(this.JSC$10093_timer_),this.JSC$10093_timer_=null)};
_.v.disposeInternal=function(){_.rD.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
bV=function(e,g,c){if(typeof e==="function")c&&(e=(0,_.Ju)(e,c));else if(e&&typeof e.handleEvent=="function")e=(0,_.Ju)(e.handleEvent,e);else throw Error("za");return Number(g)>2147483647?-1:_.kp.setTimeout(e,g||0)};
_.y_Z=function(e){var g=null;return(new _.Il(function(c,k){g=bV(function(){c(void 0)},e);
g==-1&&k(Error("Aa"))})).thenCatch(function(c){_.kp.clearTimeout(g);
throw c;})};var K0=function(e){_.Iy.call(this);this.streamzLogger=e;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$10097_flushTimer=new _.rD(this.flushInterval);this.JSC$10097_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.yh(this,this.JSC$10097_flushTimer)};
_.Y(K0,_.Iy);K0.prototype.sendIsolatedPayload=function(e){this.shouldSendIsolatedPayload=e;this.invocationLimit=1};
var KRn=function(e){e.JSC$10097_flushTimer.enabled||e.JSC$10097_flushTimer.start();e.invocationCount++;e.invocationCount>=e.invocationLimit&&e.snapshotAndFlush()};
K0.prototype.snapshotAndFlush=function(){var e=this.metricMap.values();e=[].concat(_.KY(e)).filter(function(g){return g.cellMap.size});
e.length&&this.streamzLogger.flush(e,this.shouldSendIsolatedPayload);O4n(e);this.invocationCount=0;this.JSC$10097_flushTimer.enabled&&this.JSC$10097_flushTimer.stop()};
K0.prototype.addNewCounter=function(e){var g=_.Mb.apply(1,arguments);this.metricMap.has(e)||this.metricMap.set(e,new wVw(e,g))};
K0.prototype.addNewEventMetric=function(e){var g=_.Mb.apply(1,arguments);this.metricMap.has(e)||this.metricMap.set(e,new qIv(e,g))};
var Msn=function(e,g){return e.disabledMetrics.has(g)?void 0:e.metricMap.get(g)};
K0.prototype.JSC$10097_incrementCounter=function(e){this.JSC$10097_incrementCounterBy(e,1,_.Mb.apply(1,arguments))};
K0.prototype.JSC$10097_incrementCounterBy=function(e,g){var c=_.Mb.apply(2,arguments),k=Msn(this,e);k&&k instanceof wVw&&(k.JSC$10036_incrementCounterBy(g,c),KRn(this))};
K0.prototype.record=function(e,g){var c=_.Mb.apply(2,arguments),k=Msn(this,e);k&&k instanceof qIv&&(k.record(g,c),KRn(this))};
var O4n=function(e){for(var g=0;g<e.length;g++)e[g].clear()};_.ha=function(e,g,c){c=c===void 0?{}:c;g=Error.call(this,g);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.code=e;this.metadata=c;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(_.ha,Error);_.ha.prototype.toString=function(){var e="RpcError("+(NHA(this.code)||String(this.code))+")";this.message&&(e+=": "+this.message);return e};_.Cok=_.kp.JSON.parse;_.X9=_.kp.JSON.stringify;_.L_=_.kp.JSON.parse;_.e_v=function(e){switch(e){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 g1w=function(e){switch(e){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var cKY,knZ=function(){};
_.Um(knZ,_.SIz);knZ.prototype.createInstance=function(){return new XMLHttpRequest};
cKY=new knZ;_.GS=function(e){_.jv.call(this);this.headers=new Map;this.JSC$10106_xmlHttpFactory_=e||null;this.JSC$10106_active_=!1;this.JSC$10106_xhr_=null;this.JSC$10106_lastUri_="";this.JSC$10106_lastErrorCode_=0;this.JSC$10106_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$10106_timeoutId_=null;this.responseType_="";this.JSC$10106_withCredentials_=!1};
_.Um(_.GS,_.jv);var IvM=/^https?$/i,JK4=["POST","PUT"],v1B=[],BaU=function(e,g,c,k,I,J,q){var L=new _.GS;v1B.push(L);g&&L.listen("complete",g);L.listenOnce("ready",L.cleanupSend_);J&&(L.timeoutInterval_=Math.max(0,J));q&&(L.JSC$10106_withCredentials_=q);L.send(e,c,k,I)};
_.GS.prototype.cleanupSend_=function(){this.dispose();_.UC(v1B,this)};
_.GS.prototype.send=function(e,g,c,k){if(this.JSC$10106_xhr_)throw Error("Ba`"+this.JSC$10106_lastUri_+"`"+e);g=g?g.toUpperCase():"GET";this.JSC$10106_lastUri_=e;this.JSC$10106_lastError_="";this.JSC$10106_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$10106_active_=!0;this.JSC$10106_xhr_=this.createXhr();this.JSC$10106_xhr_.onreadystatechange=nZ((0,_.Ju)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10106_xhr_.open(g,String(e),!0),this.inOpen_=!1}catch(q){wQZ(this,q);return}e=
c||"";c=new Map(this.headers);if(k)if(Object.getPrototypeOf(k)===Object.prototype)for(var I in k)c.set(I,k[I]);else if(typeof k.keys==="function"&&typeof k.get==="function"){I=_.w(k.keys());for(var J=I.next();!J.done;J=I.next())J=J.value,c.set(J,k.get(J))}else throw Error("Ca`"+String(k));k=Array.from(c.keys()).find(function(q){return"content-type"==q.toLowerCase()});
I=_.kp.FormData&&e instanceof _.kp.FormData;!_.Hz(JK4,g)||k||I||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g=_.w(c);for(k=g.next();!k.done;k=g.next())c=_.w(k.value),k=c.next().value,c=c.next().value,this.JSC$10106_xhr_.setRequestHeader(k,c);this.responseType_&&(this.JSC$10106_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$10106_xhr_&&this.JSC$10106_xhr_.withCredentials!==this.JSC$10106_withCredentials_&&(this.JSC$10106_xhr_.withCredentials=this.JSC$10106_withCredentials_);
try{this.JSC$10106_timeoutId_&&(clearTimeout(this.JSC$10106_timeoutId_),this.JSC$10106_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$10106_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$10106_xhr_.send(e),this.inSend_=!1}catch(q){wQZ(this,q)}};
_.GS.prototype.createXhr=function(){return this.JSC$10106_xmlHttpFactory_?this.JSC$10106_xmlHttpFactory_.createInstance():cKY.createInstance()};
_.GS.prototype.timeout_=function(){typeof zYk!="undefined"&&this.JSC$10106_xhr_&&(this.JSC$10106_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$10106_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var wQZ=function(e,g){e.JSC$10106_active_=!1;e.JSC$10106_xhr_&&(e.inAbort_=!0,e.JSC$10106_xhr_.abort(),e.inAbort_=!1);e.JSC$10106_lastError_=g;e.JSC$10106_lastErrorCode_=5;q2n(e);LYI(e)},q2n=function(e){e.errorDispatched_||(e.errorDispatched_=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))};
_.GS.prototype.abort=function(e){this.JSC$10106_xhr_&&this.JSC$10106_active_&&(this.JSC$10106_active_=!1,this.inAbort_=!0,this.JSC$10106_xhr_.abort(),this.inAbort_=!1,this.JSC$10106_lastErrorCode_=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),LYI(this))};
_.GS.prototype.disposeInternal=function(){this.JSC$10106_xhr_&&(this.JSC$10106_active_&&(this.JSC$10106_active_=!1,this.inAbort_=!0,this.JSC$10106_xhr_.abort(),this.inAbort_=!1),LYI(this,!0));_.GS.superClass_.disposeInternal.call(this)};
_.GS.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)rKZ(this);else this.onReadyStateChangeEntryPoint_()};
_.GS.prototype.onReadyStateChangeEntryPoint_=function(){rKZ(this)};
var rKZ=function(e){if(e.JSC$10106_active_&&typeof zYk!="undefined")if(e.inSend_&&_.xo(e)==4)setTimeout(e.onReadyStateChange_.bind(e),0);else if(e.dispatchEvent("readystatechange"),e.isComplete()){e.JSC$10106_active_=!1;try{if(e.isSuccess())e.dispatchEvent("complete"),e.dispatchEvent("success");else{e.JSC$10106_lastErrorCode_=6;try{var g=_.xo(e)>2?e.JSC$10106_xhr_.statusText:""}catch(c){g=""}e.JSC$10106_lastError_=g+" ["+e.getStatus()+"]";q2n(e)}}finally{LYI(e)}}},LYI=function(e,g){if(e.JSC$10106_xhr_){e.JSC$10106_timeoutId_&&
(clearTimeout(e.JSC$10106_timeoutId_),e.JSC$10106_timeoutId_=null);
var c=e.JSC$10106_xhr_;e.JSC$10106_xhr_=null;g||e.dispatchEvent("ready");try{c.onreadystatechange=null}catch(k){}}};
_.GS.prototype.isActive=function(){return!!this.JSC$10106_xhr_};
_.GS.prototype.isComplete=function(){return _.xo(this)==4};
_.GS.prototype.isSuccess=function(){var e=this.getStatus(),g;if(!(g=g1w(e))){if(e=e===0)e=NNC(String(this.JSC$10106_lastUri_)),e=!IvM.test(e);g=e}return g};
_.xo=function(e){return e.JSC$10106_xhr_?e.JSC$10106_xhr_.readyState:0};
_.v=_.GS.prototype;_.v.getStatus=function(){try{return _.xo(this)>2?this.JSC$10106_xhr_.status:-1}catch(e){return-1}};
_.v.getResponseText=function(){try{return this.JSC$10106_xhr_?this.JSC$10106_xhr_.responseText:""}catch(e){return""}};
_.v.getResponse=function(){try{if(!this.JSC$10106_xhr_)return null;if("response"in this.JSC$10106_xhr_)return this.JSC$10106_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$10106_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$10106_xhr_)return this.JSC$10106_xhr_.mozResponseArrayBuffer}return null}catch(e){return null}};
_.v.getAllResponseHeaders=function(){return this.JSC$10106_xhr_&&_.xo(this)>=2?this.JSC$10106_xhr_.getAllResponseHeaders()||"":""};
_.v.getLastError=function(){return typeof this.JSC$10106_lastError_==="string"?this.JSC$10106_lastError_:String(this.JSC$10106_lastError_)};var MsA=function(){};
MsA.prototype.send=function(e,g,c){g=g===void 0?function(){}:g;
c=c===void 0?function(){}:c;
BaU(e.url,function(k){k=k.target;k.isSuccess()?g(k.getResponseText()):c(k.getStatus())},e.requestType,e.body,e.requestHeaders,e.timeoutMillis,e.withCredentials)};
MsA.prototype.getTransmissionType=function(){return 1};var avw=function(e,g){this.zRo=e;this.event=g;this.startTime=O5()},Ivg;
avw.prototype.done=function(){this.zRo.ug(this.event,O5()-this.startTime)};
var D7=function(){y2.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.Y(D7,y2);_.$o=function(e,g,c){var k=O5();g=g();e.ug(c,O5()-k);return g};
Ivg=function(){D7.apply(this,arguments)};
_.Y(Ivg,D7);_.v=Ivg.prototype;_.v.o1t=function(){};
_.v.pG=function(){};
_.v.ug=function(){};
_.v.logError=function(){};
_.v.gF=function(){};
_.v.u0r=function(){};
_.v.nUj=function(){};
_.v.fsj=function(){};
var n1w=function(e){D7.call(this);var g=this;this.mh=e;this.TEST_ONLY={og8:function(){return g.mh},
getExperimentIds:function(){return g.mh.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void g.mh.dispose()})};
_.Y(n1w,D7);_.v=n1w.prototype;_.v.update=function(e){this.mh.dispose();this.mh=e};
_.v.pG=function(e){this.mh.pG(e)};
_.v.ug=function(e,g){this.mh.ug(e,g)};
_.v.logError=function(e){this.mh.logError(e)};
_.v.gF=function(){this.mh.gF()};
_.v.u0r=function(e){this.mh.u0r(e)};
_.v.nUj=function(e){this.mh.nUj(e)};
_.v.fsj=function(e){this.mh.fsj(e)};
_.v.o1t=function(e){this.mh.o1t(e)};
var R_Y=function(e,g){_.Iy.call(this);var c=this;this.callback=e;this.n88=g;this.zuI=-g;this.addOnDisposeCallback(function(){return void clearTimeout(c.timer)})};
_.Y(R_Y,_.Iy);var E14=function(e){if(e.timer===void 0){var g=Math.max(0,e.zuI+e.n88-O5());e.timer=setTimeout(function(){try{e.callback()}finally{e.zuI=O5(),e.timer=void 0}},g)}},WYM=function(e,g){D7.call(this);
this.metrics=e;this.eD=g};
_.Y(WYM,D7);_.v=WYM.prototype;_.v.o1t=function(e){this.metrics.mxE.record(e,this.eD)};
_.v.pG=function(e){this.metrics.eventCount.increment(e,this.eD)};
_.v.ug=function(e,g){this.metrics.lyo.record(g,e,this.eD)};
_.v.logError=function(e){this.metrics.errorCount.increment(e,this.eD)};
_.v.u0r=function(e){this.metrics.qTK.increment(e,this.eD)};
_.v.nUj=function(e){this.metrics.oUD.increment(e,this.eD)};
_.v.fsj=function(e){this.metrics.bNl.increment(e,this.eD)};
var JK6=function(e,g){g=g===void 0?[]:g;var c={eD:e.eD||"_",t14:e.t14||[],j8V:e.j8V|0,destinationUrl:e.destinationUrl,sbW:e.sbW||function(){},
dPF:e.dPF||function(J,q){return knV(J,q,c.sbW,c.destinationUrl)}},k=c.dPF("53",c.t14.concat(g));
WYM.call(this,{mxE:new eUu(k),errorCount:new Ick(k),eventCount:new cVZ(k),lyo:new k7Z(k),rBd:new gFw(k),qTK:new JVv(k),oUD:new vFY(k),bNl:new waB(k)},c.eD);var I=this;this.TEST_ONLY={getExperimentIds:function(){return I.options.t14.concat(I.h2l).sort(function(J,q){return J-q})}};
this.options=c;this.service=k;this.iMD=!e.dPF;this.flushDebouncer=new R_Y(function(){return void I.service.snapshotAndFlush()},c.j8V);
this.addOnDisposeCallback(function(){I.flushDebouncer.dispose();I.iMD&&I.service.dispose()});
(this.h2l=g.slice()).sort(_.ug8)};
_.Y(JK6,WYM);JK6.prototype.gF=function(){E14(this.flushDebouncer)};var aWV=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(aWV,_.WJ);_.nTC=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(_.nTC,_.WJ);var mg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e,0,mg.messageId)};
_.Y(mg,_.WJ);var bfs=_.r0p(mg);mg.messageId="bfkj";var mNV=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(mNV,_.WJ);var h_s=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(h_s,_.WJ);var XQs=_.ld(h_s);_.V8=function(){var e=this;this.promise=new Promise(function(g,c){e.resolve=g;e.reject=c})};_.Yo=function(e){_.Iy.call(this);var g=this;this.o7e=Math.floor(Math.random()*200);this.aNl=new h_s;if("challenge"in e&&bfs(e.challenge)){var c=_.Rs(e.challenge,4,void 0,FM);var k=_.Rs(e.challenge,5,void 0,FM);_.Rs(e.challenge,7,void 0,FM)&&(this.aNl=XQs(_.Rs(e.challenge,7,void 0,FM)))}else c=e.program,k=e.globalName;this.addOnDisposeCallback(function(){var D,f,l;return _.r(function(A){if(A.nextAddress==1)return A.yield(g.iiF,2);D=A.yieldResult;f=D.r3G;(l=f)==null||l();_.Uh(A)})});
this.cU=v1e(e.noW||{},this.aNl);_.yh(this,this.cU);var I=new _.V8;this.iiF=I.promise;this.cU.pG("t");var J=this.cU.share(),q=new avw(J,"t"),L=function(D,f,l,A){if(!g.cU.isDisposed()){var d="k";f?d="h":l&&(d="u");d!=="k"?A!==0&&(g.cU.pG(d),g.cU.ug(d,D)):g.o7e<=0?(g.cU.pG(d),g.cU.ug(d,D),g.o7e=Math.floor(Math.random()*200)):g.o7e--}},n=function(D,f,l,A){Promise.resolve().then(function(){q.done();
J.gF();J.dispose();I.resolve({bwT:D,r3G:f,zpm:l,hOa:A})})};
if(!_.kp[k])throw this.cU.logError(25),Error("Da");if(!_.kp[k].a)throw this.cU.logError(26),Error("Ea");try{var R=_.kp[k].a;k=[];for(var W=[],b=pV8(this.aNl),h=0;h<b.length;h++)k.push(b[h]),W.push(1);var X=THt(this.aNl);for(b=0;b<X.length;b++)k.push(X[b]),W.push(2);this.puE=_.w(R(c,n,!0,e.m6b,L,[k,W],_.Rs(this.aNl,5),!1)).next().value;this.cQm=I.promise.then(function(){})}catch(D){throw this.cU.logError(28),D;
}};
_.Y(_.Yo,_.Iy);_.Yo.prototype.snapshot=function(e){if(this.isDisposed())throw Error("Fa");this.cU.pG("n");var g=this.cU.share();return this.iiF.then(function(c){var k=c.bwT;return new Promise(function(I){var J=new avw(g,"n");k(function(q){J.done();g.o1t(q.length);g.gF();g.dispose();I(q)},[e.zA,
e.cYL,e.e4b,e.aJY])})})};
_.Yo.prototype.gX4=function(e){this.iiF.then(function(g){var c;(c=g.zpm)==null||c(e)})};
_.Yo.prototype.lTt=function(e,g){return this.iiF.then(function(c){var k;return(k=c.hOa)==null?void 0:k(e,g,!1)})};
_.Yo.prototype.pr4=function(){return this.cU.share()};var Gnv=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Gnv,_.WJ);var trA=_.r0p(Gnv);var xlY=function(){this.promises={};this.lOj=null},Dlu=function(){xlY.instance||(xlY.instance=new xlY);
return xlY.instance},Y2B=function(e,g){return $l4(e,_.Ml(g,aWV,1,FM),_.Ml(g,_.nTC,2,FM),_.Rs(g,3,void 0,FM))},$l4=function(e,g,c,k){if(!g&&!c)return Promise.resolve();
if(!k)return avz(g,c);var I;(I=e.promises)[k]||(I[k]=new Promise(function(J,q){avz(g,c).then(function(){e.lOj=k;J()},function(L){delete e.promises[k];
q(L)})}));
return e.promises[k]};var fvk=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(fvk,_.WJ);var j$s=function(e,g){return _.pL(e,1,g)},ifn=function(e,g){return _.pL(e,2,g)};var fZ=function(e){_.Iy.call(this);var g=this;this.options=e;this.sNl=new _.V8;this.cQm=this.sNl.promise;this.sd9=new _.V8;this.hhL=1;this.eMW=new _.V8;this.i6m=[];this.isPaused=!1;this.c7W=e.c7W||function(){};
this.vYt=new n1w(v1e(e.noW||{}));PH4(this,e.cY,e.oCo,e.u6U,e.tsJ,Object.assign({},mlq,e.qc4||{}));this.addOnDisposeCallback(function(){return void pQ4(g)})};
_.Y(fZ,_.Iy);fZ.prototype.snapshot=function(e){var g=this;return _.r(function(c){switch(c.nextAddress){case 1:if(g.isDisposed())throw Error("Fa");if(g.oG||g.meT){c.jumpTo(2);break}return c.yield(g.sd9.promise,2);case 2:if(!g.oG){c.jumpTo(4);break}return c.yield(g.oG.snapshot(e),5);case 5:return c.return(c.yieldResult);case 4:throw g.meT;}})};
fZ.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.z8&&this.z8.pause())};
fZ.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.z8&&this.z8.resume())};
fZ.prototype.checkForRefresh=function(){var e=this;return _.r(function(g){if(e.isDisposed())throw Error("Fa");var c;if(c=e.z8)c=e.z8,c.isExpired()?(T1w(c),c.resolver(0),c=!0):c=!1,c=!c;return c?g.jumpTo(0):g.yield(e.eMW.promise,0)})};
var AKZ=function(e){var g;return _.r(function(c){if(e.isDisposed())throw Error("Fa");(g=e.z8)==null||lvv(g);return c.yield(e.eMW.promise,0)})},pQ4=function(e){e.meT=Error("Ha");
e.sd9.resolve();lCK(e.sNl.promise);e.sNl.reject(Error("Ha"));e.vYt.dispose();Promise.all(e.i6m).then(function(){var c;return _.r(function(k){(c=e.oG)==null||c.dispose();e.oG=void 0;_.Uh(k)})});
e.i6m=[];var g;(g=e.z8)==null||lvv(g);lCK(e.eMW.promise);e.eMW.reject(Error("Ha"))};
fZ.prototype.gX4=function(e){var g,c;(g=this.oG)==null||(c=g.gX4)==null||c.call(g,e)};
fZ.prototype.lTt=function(e,g){var c,k,I;return(I=(c=this.oG)==null?void 0:(k=c.lTt)==null?void 0:k.call(c,e,g))!=null?I:Promise.resolve()};
var s$I=function(e,g){var c=e.c7W;e.c7W=function(){c();g()}},FYn=function(e,g){e.isDisposed()||(e.oG=g,e.vYt.update(g.pr4()),e.sd9.resolve(),e.sNl.resolve(void 0),e.c7W())};
fZ.prototype.handleError=function(e){if(!this.isDisposed()){this.meT=e;this.sd9.resolve();var g,c;(c=(g=this.options).iBK)==null||c.call(g,e)}};
var uBk=function(e,g){g&&(Promise.all(e.i6m).then(function(){return void g.dispose()}),e.i6m=[])},jc=function(e,g){e.hhL=g;
var c,k;(k=(c=e.options).hjq)==null||k.call(c,g)},dlw=function(e){e.isDisposed()||(e.eMW.resolve(),e.eMW=new _.V8)},PH4=function(e,g,c,k,I,J){k=k===void 0?Dlu():k;
I=I===void 0?Promise.resolve(void 0):I;var q,L,n,R,W,b,h,X,D,f,l,A;_.r(function(d){switch(d.nextAddress){case 1:return d.yield(0,3);case 3:L=null;if(!q){d.jumpTo(6);break}jc(e,7);_.lj(d,7);return d.yield(ct(q.snapshot({}),J.khl,function(){return Promise.resolve("E:CTO")}),9);
case 9:L=d.yieldResult;_.zn(d,6);break;case 7:_.Qb(d),L="E:UCE";case 6:n=void 0,R=q?J.vie:J.ivf,W=new BH(R,J.wal,J.jzW,J.kND),b=1;case 10:if(!(b<=J.maxAttempts)){d.jumpTo(12);break}if(b===1){d.jumpTo(13);break}jc(e,0);e.z8=new iV(W.getValue(),J.gWr,J.vMl);return d.yield(e.z8.promise,14);case 14:h=d.yieldResult,e.z8=void 0,h===1?(b=1,W.reset()):KPv(W);case 13:_.lj(d,15);X=void 0;if(c){X=c;d.jumpTo(17);break}jc(e,5);D=k.lOj;return d.yield(ct(z_1(g,D,L),J.cMf,function(){return Promise.reject(Error("Ia"))}),
18);
case 18:X=d.yieldResult;case 17:return jc(e,3),d.yield(ct(Y2B(k,X),J.x1l,function(){return Promise.reject(Error("Ja"))}),19);
case 19:return jc(e,8),d.yield(I,20);case 20:return f=new _.Yo({challenge:X,noW:e.options.noW,m6b:e.options.m6b}),d.yield(ct(f.cQm,J.f8l,function(){return Promise.reject(Error("Ka"))}),21);
case 21:n=f;d.jumpTo(12);break;case 15:l=_.Qb(d),e.handleError(l),dlw(e);case 11:b++;d.jumpTo(10);break;case 12:if(e.isDisposed()){d.jumpTo(5);break}n&&(c=void 0,uBk(e,q),q=n,FYn(e,n),dlw(e));jc(e,2);e.z8=new iV(J.b9o,J.gWr,J.vMl);e.isPaused&&e.z8.pause();return d.yield(e.z8.promise,22);case 22:e.z8=void 0;if(e.isDisposed()){d.jumpTo(5);break}d.jumpTo(3);break;case 5:(A=q)==null||A.dispose(),_.Uh(d)}})};
fZ.prototype.pr4=function(){return this.vYt.share()};
var mlq={b9o:432E5,gWr:3E5,vMl:10,khl:1E4,cMf:3E4,x1l:3E4,f8l:6E4,ivf:1E3,vie:6E4,wal:6E5,jzW:.25,kND:2,maxAttempts:10},iV=function(e,g,c){var k=this;this.endTimeMs=0;this.olj=null;this.isPaused=!1;this.tick=function(){if(!k.isPaused){var I=k.endTimeMs-Date.now();I<=k.g6l?(k.olj=null,k.resolver(0)):k.olj=setTimeout(k.tick,Math.min(I,k.gWr))}};
this.gWr=g;this.g6l=c;this.promise=new Promise(function(I){k.resolver=I});
Hfs(this,e)},Hfs=function(e,g){e.endTimeMs=Date.now()+g;
e.tick()};
iV.prototype.pause=function(){this.isPaused||(this.isPaused=!0,T1w(this))};
iV.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var lvv=function(e){T1w(e);e.endTimeMs=0;e.isPaused=!1;e.resolver(1)},T1w=function(e){e.olj&&(clearTimeout(e.olj),e.olj=null)};
iV.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var Q$I,E16=(Q$I=Math.imul)!=null?Q$I:function(e,g){return e*g|0},kr=[196,
200,224,18],PN=function(e,g,c){c=c===void 0?[]:c;this.maxItems=e;this.n2=g===void 0?0:g;this.xH=c},Uln=function(e){var g=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!g)return new PN(e);var c=g.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new PN(e);g=c.slice(1);g.length===1&&g[0]===""&&(g=[]);c=Number(c[0]);return isNaN(c)||c<0||c>g.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new PN(e)):new PN(e,c,g)};
PN.prototype.serialize=function(){return String(this.n2)+","+this.xH.join()};
PN.prototype.insert=function(e,g){var c=void 0;if(this.xH[this.n2]!==e){var k=this.xH.indexOf(e);k!==-1?(this.xH.splice(k,1),k<this.n2&&this.n2--,this.xH.splice(this.n2,0,e)):(c=this.xH[this.n2],this.xH[this.n2]=e)}this.n2=(this.n2+1)%this.maxItems;e=n1z("iU5q-!O9@$",this.serialize());c&&e&&g(c);return e};
var o14=function(e,g){this.ziy=g;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(k){c=!1}c&&(this.index=Uln(e))},Zfv=function(e,g,c,k,I){var J=e.index?_.$o(e.ziy,function(){return XQW(e.index,bfW(g),c,k,I)},"W"):"u";
e.ziy.fsj(J)},Vnq=function(e,g,c){var k=_.w(e.index?_.$o(e.ziy,function(){return GnC(bfW(g),c)},"R"):["u"]),I=k.next().value;
k=k.next().value;e.ziy.nUj(I);return k};var tnZ={toString:function(e){var g=[],c=0;e-=-2147483648;g[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(e%52);for(e=Math.floor(e/52);e>0;)g[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(e%62),e=Math.floor(e/62);return g.join("")}};var S2q=function(e){e=B1I(e);for(var g=2654435769,c=2654435769,k=314159265,I=e.length,J=I,q=0,L=function(){g-=c;g-=k;g^=k>>>13;c-=k;c-=g;c^=g<<8;k-=g;k-=c;k^=c>>>13;g-=c;g-=k;g^=k>>>12;c-=k;c-=g;c^=g<<16;k-=g;k-=c;k^=c>>>5;g-=c;g-=k;g^=k>>>3;c-=k;c-=g;c^=g<<10;k-=g;k-=c;k^=c>>>15};J>=12;J-=12,q+=12)g+=N1q(e,q),c+=N1q(e,q+4),k+=N1q(e,q+8),L();
k+=I;switch(J){case 11:k+=e[q+10]<<24;case 10:k+=e[q+9]<<16;case 9:k+=e[q+8]<<8;case 8:c+=e[q+7]<<24;case 7:c+=e[q+6]<<16;case 6:c+=e[q+5]<<8;case 5:c+=e[q+4];case 4:g+=e[q+3]<<24;case 3:g+=e[q+2]<<16;case 2:g+=e[q+1]<<8;case 1:g+=e[q]}L();return tnZ.toString(k)},B1I=function(e){for(var g=[],c=0;c<e.length;c++)g.push(e.charCodeAt(c));
return g},N1q=function(e,g){return e[g]+(e[g+1]<<8)+(e[g+2]<<16)+(e[g+3]<<24)};var mF=function(e){_.Iy.call(this);this.tC=e;this.iKT=new _.V8};
_.Y(mF,_.Iy);var yKn=function(e,g){var c=setTimeout(function(){e.iKT.resolve()},g);
e.addOnDisposeCallback(function(){return void clearTimeout(c)})};
mF.prototype.ff4=function(e,g){var c=this.gf(e);g==null||g(c);return _.$o(this.tC,function(){return _.MU(c,2)},this.q7l)};
var KYs=function(e,g,c,k){return _.$o(e.tC,function(){return c?e.ff4(g,k):e.gf(g,k)},e.uLG)},Of1=function(e,g,c,k){mF.call(this,e);
this.anY=g;this.sl8=c;this.uLG="m";this.q7l="x";this.dYL=0;yKn(this,k)};
_.Y(Of1,mF);Of1.prototype.gf=function(e,g){var c=this;this.tC.pG(this.uLG);++this.dYL>=this.sl8&&this.iKT.resolve();var k=e();e=_.$o(this.tC,function(){return c.anY(k)},"C");
if(e===void 0)throw new Ns(17,"YNJ:Undefined");if(!(e instanceof Uint8Array))throw new Ns(18,"ODM:Invalid");g==null||g(e);return e};
var MnM=function(e,g,c){mF.call(this,e);this.iZD=g;this.uLG="f";this.q7l="z";yKn(this,c)};
_.Y(MnM,mF);MnM.prototype.gf=function(){return this.iZD};
var CHM=function(e,g,c){mF.call(this,e);this.v1l=g;this.uLG="w";this.q7l="z";yKn(this,c)};
_.Y(CHM,mF);CHM.prototype.gf=function(){var e=this;return _.$o(this.tC,function(){return _.CC(e.v1l)},"d")};
CHM.prototype.ff4=function(){return this.v1l};
var egw=function(e,g){mF.call(this,e);this.error=g;this.uLG="e";this.q7l="y"};
_.Y(egw,mF);var gmI=function(e,g){var c=(g(e.error.message)+":"+g(e.error.stack)).substring(0,2048);g=c.length+1;c=xl8(c);var k=new Uint8Array(4+c.length);k.set([42,g&127|128,g>>7,e.error.code]);k.set(c,4);return k};
egw.prototype.gf=function(){if(this.xij)return this.xij;this.xij=gmI(this,function(e){return"_"+S2q(e)});
return gmI(this,function(e){return e})};
var ctw=function(e,g,c){mF.call(this,e);this.uto=g;this.clientState=c;this.uLG="S";this.q7l="q"};
_.Y(ctw,mF);ctw.prototype.gf=function(){var e=Math.floor(Date.now()/1E3),g=[Math.random()*255,Math.random()*255],c=g.concat([this.uto&255,this.clientState],[e>>24&255,e>>16&255,e>>8&255,e&255]);e=new Uint8Array(2+c.length);e[0]=34;e[1]=c.length;e.set(c,2);c=e.subarray(2);for(var k=g=g.length;k<c.length;++k)c[k]^=c[k%g];this.tC.u0r(this.clientState);return e};var kI1={mTT:3E4,gXl:2E4},pZ=function(e){_.Iy.call(this);var g=this;this.bq4=new _.V8;this.afs=0;this.mN=void 0;this.state=2;this.vm=e.vm;this.cY=e.cY;this.qc4=Object.assign({},kI1,e.qc4||{});this.bu=e.vm.pr4();var c;this.onError=(c=e.onError)!=null?c:function(){};
this.mRz=e.mRz||!1;if(IkI(e)){var k=this.vm;this.ews=function(){return AKZ(k).catch(function(q){q=g.reportError(new Ns(g.bC?20:32,"TRG:Disposed",q));g.mN=q;var L;(L=g.bC)==null||L.dispose();g.bC=void 0;g.bq4.reject(q)})};
s$I(k,function(){return void Jt4(g)});
k.hhL===2&&Jt4(this)}else this.ews=e.c9J,Jt4(this);var I=this.bu.share();I.pG("o");var J=new avw(I,"o");this.bq4.promise.then(function(){J.done();I.gF();I.dispose()},function(){return void I.dispose()});
this.addOnDisposeCallback(function(){g.bC?(g.bC.dispose(),g.bC=void 0):g.mN?g.bu.gF():(g.mN=g.reportError(new Ns(32,"TNP:Disposed")),g.bu.gF(),g.bq4.reject(g.mN))});
_.yh(this,this.bu)};
_.Y(pZ,_.Iy);pZ.prototype.cfP=function(){return this.bq4.promise};
var vmk=function(e,g){if(!(g instanceof Ns))if(g instanceof _.ha){var c=Error(g.toString());c.stack=g.stack;g=new Ns(11,"EBH:Error",c)}else g=new Ns(12,"BSO:Unknown",g);return e.reportError(g)},Jt4=function(e){var g,c,k,I,J,q,L,n,R,W,b,h,X,D,f;
return _.r(function(l){switch(l.nextAddress){case 1:g=void 0;e.afs++;c=new _.V8;e.vm instanceof fZ&&e.vm.i6m.push(c.promise);if(!e.mRz){l.jumpTo(2);break}k=new _.V8;setTimeout(function(){return void k.resolve()});
return l.yield(k.promise,2);case 2:return I=e.bu.share(),_.lj(l,4,5),e.state=5,J={},q=[],l.yield(ct(e.vm.snapshot({zA:J,e4b:q}),e.qc4.gXl,function(){return Promise.reject(new Ns(15,"MDA:Timeout"))}),7);
case 7:L=l.yieldResult;if(e.isDisposed())throw new Ns(e.bC?20:32,"MDA:Disposed");n=q[0];e.state=6;return l.yield(ct(wbB(e.cY,L),e.qc4.mTT,function(){return Promise.reject(new Ns(10,"BWB:Timeout"))}),8);
case 8:R=l.yieldResult;if(e.isDisposed())throw new Ns(e.bC?20:32,"BWB:Disposed");e.state=7;g=_.$o(I,function(){var d=qnk(e,R,c,n);d.iKT.promise.then(function(){return void e.ews()});
return d},"i");
case 5:_.sh(l);I.dispose();_.HA(l,6);break;case 4:W=_.Qb(l);(b=g)==null||b.dispose();if(!e.mN){h=vmk(e,W);c.resolve();var A;if(A=e.vm instanceof fZ&&e.afs<2)a:if(W instanceof Ns)A=W.code!==32&&W.code!==20&&W.code!==10;else{if(W instanceof _.ha)switch(W.code){case 2:case 13:case 14:case 4:break;default:A=!1;break a}A=!0}if(A)return X=(1+Math.random()*.25)*(e.bC?6E4:1E3),D=setTimeout(function(){return void e.ews()},X),e.addOnDisposeCallback(function(){return void clearTimeout(D)}),l.return();
e.mN=h}I.logError(e.bC?13:14);e.bq4.reject(e.mN);return l.return();case 6:e.state=8,e.afs=0,(f=e.bC)==null||f.dispose(),e.bC=g,e.bq4.resolve(),_.Uh(l)}})},qnk=function(e,g,c,k){var I=IBq(g,2)*1E3;
if(I<=0)throw new Ns(31,"TTM:Invalid");if(_.Rs(g,4))return new CHM(e.bu,_.Rs(g,4),I);if(!IBq(g,3))return new MnM(e.bu,UMv(_.Is(g,1)),I);if(!k)throw new Ns(4,"PMD:Undefined");k=k(UMv(_.Is(g,1)));if(typeof k!=="function")throw new Ns(16,"APF:Failed");e.jwD=Math.floor((Date.now()+I)/1E3);e=new Of1(e.bu,k,IBq(g,3),I);e.addOnDisposeCallback(function(){return void c.resolve()});
return e};
pZ.prototype.gf=function(e){return LCv(this,Object.assign({},e),!1)};
pZ.prototype.ff4=function(e){return LCv(this,Object.assign({},e),!0)};
pZ.prototype.zSV=function(e){if(e>150)return!1;try{return this.cache=new o14(e,this.bu),!0}catch(g){return this.reportError(new Ns(22,"GBJ:init",g)),!1}};
pZ.prototype.reportError=function(e){this.bu.logError(e.code);this.onError(e);return e};
var rtu=function(e,g){g=g instanceof Ns?g:new Ns(5,"TVD:error",g);return e.reportError(g)},LCv=function(e,g,c){try{if(e.isDisposed())throw new Ns(21,"BNT:disposed");
if(!e.bC&&e.mN)throw e.mN;var k,I;return(I=(k=akZ(e,g,c))!=null?k:nmM(e,g,c))!=null?I:Rgu(e,g,c)}catch(J){if(!g.yUW)throw rtu(e,J);return Ems(e,c,J)}},akZ=function(e,g,c){var k;
return(k=e.bC)==null?void 0:KYs(k,function(){return WCw(e,g)},c,function(I){var J;
if(e.bC instanceof Of1&&((J=g.ag)==null?0:J.oLT))try{var q;(q=e.cache)==null||Zfv(q,WCw(e,g),I,g.ag.rTt,e.jwD-120)}catch(L){e.reportError(new Ns(24,"ELX:write",L))}})},nmM=function(e,g,c){var k;
if((k=g.ag)!=null&&k.mKj)try{var I,J=(I=e.cache)==null?void 0:Vnq(I,WCw(e,g),g.ag.rTt);return J?c?_.$o(e.bu,function(){return _.MU(J,2)},"a"):J:void 0}catch(q){e.reportError(new Ns(23,"RXO:read",q))}},Rgu=function(e,g,c){var k={stack:[],
error:void 0,hasError:!1};try{if(!g.ttY)throw new Ns(29,"SDF:notready");return KYs(Vuq(k,new ctw(e.bu,0,e.state)),function(){return WCw(e,g)},c)}catch(I){k.error=I,k.hasError=!0}finally{tuw(k)}},Ems=function(e,g,c){var k={stack:[],
error:void 0,hasError:!1};try{var I=rtu(e,c);return KYs(Vuq(k,new egw(e.bu,I)),function(){return[]},g)}catch(J){k.error=J,k.hasError=!0}finally{tuw(k)}},WCw=function(e,g){return g.cGh?g.cGh:g.zA?_.$o(e.bu,function(){return g.cGh=xl8(g.zA)},"c"):[]},IkI=function(e){return dZ(function(g){if(!ca(g))return!1;
for(var c=_.w(Object.entries(e)),k=c.next();!k.done;k=c.next()){var I=_.w(k.value);k=I.next().value;I=I.next().value;if(!(k in g)){if(I.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!I(g[k]))return!1}return!0})}({vm:function(e){return dZ(function(g){return g instanceof e})}(fZ)},"");var btB=function(){var e=_.Q8();this.JSC$10224_streamzService=e;e.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",U5("cookie_enabled"),U5("cookie_3p_enabled"),_.ZM("browser"))};
btB.prototype.increment=function(e,g,c){this.JSC$10224_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",e,g,c)};
var SP8=function(){var e=_.Q8();this.JSC$10248_streamzService=e;e.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",o4("tick"),U5("from_st_cookie"))};
SP8.prototype.increment=function(e,g){this.JSC$10248_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",e,g)};
var hgB=function(){var e=_.Q8();this.JSC$10254_streamzService=e;e.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.ZM("status"))};
hgB.prototype.increment=function(e){this.JSC$10254_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",e)};
var XbM=function(){var e=_.Q8();this.JSC$10257_streamzService=e;e.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.ZM("stage"),U5("is_using_ytd_player"),U5("has_expandable_tiles"))};
XbM.prototype.increment=function(e,g,c){this.JSC$10257_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",e,g,c)};
var GIn=function(){var e=_.Q8();this.JSC$10260_streamzService=e;e.addNewCounter("/client_streamz/youtube/web/response_signature",_.ZM("check_status"))};
GIn.prototype.increment=function(e){this.JSC$10260_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/response_signature",e)};
var xzZ=function(){var e=_.Q8();this.JSC$10263_streamzService=e;e.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.ZM("sig"),o4("de"))};
xzZ.prototype.increment=function(e,g){this.JSC$10263_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/e_sig_log",e,g)};
var Dzw=function(){var e=_.Q8();this.JSC$10266_streamzService=e;e.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.ZM("sig"),o4("de"))};
Dzw.prototype.increment=function(e,g){this.JSC$10266_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/e_sig_en",e,g)};
_.$zI=function(){var e=_.Q8();this.JSC$10269_streamzService=e;e.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.ZM("action"))};
_.$zI.prototype.increment=function(e){this.JSC$10269_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/enforcement_intent",e)};var TS=window;var YnY=(new Date).getTime();_.n0.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.n0.createSet("action","cite","data","formaction","href","manifest","poster","src");var fkv=function(e){this.servicePromise_=e;e.then((0,_.Ju)(function(){},this),function(){},this)},jFY=function(e,g,c){e.servicePromise_.then(function(k){var I=k[g];
if(!I)throw Error("La`"+g);return I.apply(k,c)})},mzq=function(e,g,c){for(var k=Array(arguments.length-2),I=2;I<arguments.length;I++)k[I-2]=arguments[I];
I=its(e,g).then(function(J){return J.apply(null,k)},function(J){J=Error("Ma`"+g+"`"+e+"`"+J,{cause:J});
delete Pws[g];return _.q2(J)});
return new fkv(I)},Pws={},its=function(e,g){var c=Pws[g];
if(c)return c;c=(c=_.Q0(g))?_.No(c):(new _.Il(function(k,I){var J=(new W9(document)).createElement("SCRIPT");J.async=!0;_.Eh(J,_.HJ(zhk(e)));J.onload=J.onreadystatechange=function(){J.readyState&&J.readyState!="loaded"&&J.readyState!="complete"||k()};
J.onerror=function(q){I(Error("Na`"+g+"`"+e,{cause:q}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(J)})).then(function(){var k=_.Q0(g);
if(!k)throw Error("Oa`"+g+"`"+e);return k});
return Pws[g]=c};var pbY={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},lkI=function(){var e=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=DlK(function(){return _.r(function(g){if(g.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?g.return(Promise.resolve()):g.yield(TKv(e),2);e.rsaForList.length>
0&&document.addEventListener("click",e.requestAccessForHelpPanel);_.Uh(g)})});
this.requestAccessForHelpPanel=function(){if(!(e.rsaForPromises.length>0)){for(var g=_.w(e.rsaForList),c=g.next();!c.done;c=g.next()){c=c.value;try{e.rsaForPromises.push(document.requestStorageAccessFor(c))}catch(k){}}Promise.all(e.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){e.reset()})}}};
lkI.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var TKv=function(e){var g,c,k,I;return _.r(function(J){switch(J.nextAddress){case 1:g=_.w(Object.values(pbY)),c=g.next();case 2:if(c.done){J.jumpTo(0);break}k=c.value;_.lj(J,5);return J.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:k}),7);case 7:I=J.yieldResult;I.state!=="granted"&&e.rsaForList.push(k);_.zn(J,3);break;case 5:_.Qb(J);J.jumpTo(0);break;case 3:c=g.next(),J.jumpTo(2)}})};(new lkI).initialize();var AtY=function(e){this.JSC$10283_loader_=e};
AtY.prototype.startHelp=function(e){jFY(this.JSC$10283_loader_,"startHelp",arguments)};
AtY.prototype.JSC$10285_loadChatSupport=function(e){jFY(this.JSC$10283_loader_,"loadChatSupport",arguments)};
var FCq=function(e,g){g=g||{};e=mzq(sFY,"help.service.Lazy.create",e,{apiKey:g.apiKey||g.apiKey,asxUiUri:g.asxUiUri||g.asxUiUri,environment:g.environment||g.environment,flow:g.flow||g.flow,frdProductData:g.frdProductData||g.frdProductData,frdProductDataSerializedJspb:g.frdProductDataSerializedJspb||g.frdProductDataSerializedJspb,helpCenterPath:g.helpCenterPath||g.helpCenterPath,locale:g.locale||g.locale||"en-US".replace(/-/g,"_"),nonce:g.nonce||g.nonce,productData:g.productData||g.productData,receiverUri:g.receiverUri||
g.receiverUri,renderApiUri:g.renderApiUri||g.renderApiUri,theme:g.theme||g.theme,window:g.window||g.window});return new AtY(e)},sFY=new Tm($ye,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var uYs=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(uYs,_.WJ);var dzk=_.ld(uYs);var zgI=[0,_.uy,pq,KaI];_.Htu=new function(e,g,c,k){this.configType=e;this.flagName=c;this.defaultValue=k;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 Uzs=function(){this.retriever=_.Ss().resolve(QFv)};_.Hj={get payments(){return window.payments}};Y2e(Node);Y2e(Element);var omY=Y2e(HTMLElement);Y2e(SVGElement);var Ztw,V6Z,sR,t6n;Ztw=function(e){return typeof e.className=="string"?e.className:e.getAttribute&&e.getAttribute("class")||""};
V6Z=function(e){return e.classList?e.classList:Ztw(e).match(/\S+/g)||[]};
_.lV=function(e,g){typeof e.className=="string"?e.className=g:e.setAttribute&&e.setAttribute("class",g)};
_.Aa=function(e,g){return e.classList?e.classList.contains(g):_.Hz(V6Z(e),g)};
_.PT=function(e,g){if(e.classList)e.classList.add(g);else if(!_.Aa(e,g)){var c=Ztw(e);_.lV(e,c+(c.length>0?" "+g:g))}};
sR=function(e,g){if(e.classList)Array.prototype.forEach.call(g,function(I){_.PT(e,I)});
else{var c={};Array.prototype.forEach.call(V6Z(e),function(I){c[I]=!0});
Array.prototype.forEach.call(g,function(I){c[I]=!0});
g="";for(var k in c)g+=g.length>0?" "+k:k;_.lV(e,g)}};
_.i3=function(e,g){e.classList?e.classList.remove(g):_.Aa(e,g)&&_.lV(e,Array.prototype.filter.call(V6Z(e),function(c){return c!=g}).join(" "))};
t6n=function(e,g){e.classList?Array.prototype.forEach.call(g,function(c){_.i3(e,c)}):_.lV(e,Array.prototype.filter.call(V6Z(e),function(c){return!_.Hz(g,c)}).join(" "))};var BKn=function(e){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=e.document},ytM=function(e,g){NKs(e);
var c=document.createElement("div"),k;(k=g.parentNode)==null||k.insertBefore(c,g);c.tabIndex=0;c.id="fc-focus-trap-pre-div";c=document.createElement("div");var I;(I=g.parentNode)==null||I.insertBefore(c,g.nextSibling);c.tabIndex=0;c.id="fc-focus-trap-post-div";var J=Sn4(e,g),q=Sn4(e,g,!0);J&&q&&(e.focusChangeHandler=function(){var L=e.document.activeElement;if(L)if(_.uK(g,L))e.previouslyFocusedElement=L;else if(L===e.document.activeElement)switch(e.previouslyFocusedElement){case J:q.focus();e.previouslyFocusedElement=
q;break;default:J.focus(),e.previouslyFocusedElement=J}},e.document.addEventListener("focus",e.focusChangeHandler,!0),e.document.addEventListener("focusin",e.focusChangeHandler))},NKs=function(e){e.focusChangeHandler&&(document.removeEventListener("focus",e.focusChangeHandler,!0),document.removeEventListener("focusin",e.focusChangeHandler),e.focusChangeHandler=null);
var g;(g=document.getElementById("fc-focus-trap-pre-div"))==null||g.remove();var c;(c=document.getElementById("fc-focus-trap-post-div"))==null||c.remove()},KCw=function(e,g,c,k,I){c=c===void 0?!0:c;
var J;I=(J=I===void 0?null:I)!=null?J:Sn4(e,g,k===void 0?!1:k);I!==null&&(I.focus(),c&&ytM(e,g))};
BKn.prototype.disableButton=function(e,g){g=g===void 0?null:g;e.disabled=!0;g&&_.PT(e,g)};
var Sn4=function(e,g,c){c=c===void 0?!1:c;if(U2U(g)&&!c)return g;var k=c?[].slice.call(g.children,0).reverse():g.children;k=_.w(k);for(var I=k.next();!I.done;I=k.next())if(I=I.value,omY(I)&&(I=Sn4(e,I,c)))return I;return U2U(g)&&c?g:null};var Otq=function(e){this.originalBodyOverflow="";this.JSC$10310_domHelper=Jd(e);var g;this.isScrollingEnabled=((g=this.JSC$10310_domHelper.JSC$9636_document_.body)==null?void 0:g.style.overflow)!=="hidden"};
Otq.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10310_domHelper.JSC$9636_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.Um(_.vt,_.Iy);_.v=_.vt.prototype;_.v.JSC$10313_id_=0;_.v.disposeInternal=function(){_.vt.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10311_listener_;delete this.handler_};
_.v.start=function(e){this.stop();this.JSC$10313_id_=bV(this.callback_,e!==void 0?e:this.JSC$10311_interval_)};
_.v.stop=function(){this.isActive()&&_.kp.clearTimeout(this.JSC$10313_id_);this.JSC$10313_id_=0};
_.v.fire=function(){this.stop();this.JSC$10313_doAction_()};
_.v.isActive=function(){return this.JSC$10313_id_!=0};
_.v.JSC$10313_doAction_=function(){this.JSC$10313_id_=0;this.JSC$10311_listener_&&this.JSC$10311_listener_.call(this.handler_)};_.Um(_.wD,_.Iy);var M6u=[];_.wD.prototype.listen=function(e,g,c,k){Array.isArray(g)||(g&&(M6u[0]=g.toString()),g=M6u);for(var I=0;I<g.length;I++){var J=_.iK(e,g[I],c||this.handleEvent,k||!1,this.handler_||this);if(!J)break;this.JSC$10314_keys_[J.key]=J}return this};
_.wD.prototype.listenOnce=function(e,g,c,k){return Cwu(this,e,g,c,k)};
var Cwu=function(e,g,c,k,I,J){if(Array.isArray(c))for(var q=0;q<c.length;q++)Cwu(e,g,c[q],k,I,J);else{g=Wt(g,c,k||e.handleEvent,I,J||e.handler_||e);if(!g)return e;e.JSC$10314_keys_[g.key]=g}return e};
_.wD.prototype.unlisten=function(e,g,c,k,I){if(Array.isArray(g))for(var J=0;J<g.length;J++)this.unlisten(e,g[J],c,k,I);else if(e=T1z(e,g,c||this.handleEvent,_.SK(k)?!!k.capture:!!k,I||this.handler_||this))I6(e),delete this.JSC$10314_keys_[e.key];return this};
_.wD.prototype.removeAll=function(){_.n0.forEach(this.JSC$10314_keys_,function(e,g){this.JSC$10314_keys_.hasOwnProperty(g)&&I6(e)},this);
this.JSC$10314_keys_={}};
_.wD.prototype.disposeInternal=function(){_.wD.superClass_.disposeInternal.call(this);this.removeAll()};
_.wD.prototype.handleEvent=function(){throw Error("Pa");};_.Um(q_,_.Iy);q_.prototype.connect=function(e){e&&e()};
q_.prototype.isConnected=function(){return!0};
q_.prototype.registerService=function(e,g,c){this.services_[e]={callback:g,objectPayload:!!c}};
q_.prototype.getService=function(e,g){var c=this.services_[e];return c?c:this.defaultService_?{callback:_.g$(this.defaultService_,e),objectPayload:_.SK(g)}:null};
var edB=function(e,g){if(g&&typeof e==="string")try{return JSON.parse(e)}catch(c){return null}else if(!g&&typeof e!=="string")return _.X9(e);return e};
q_.prototype.disposeInternal=function(){q_.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 ay=function(e,g){this.sequence_=[];this.onCancelFunction_=e;this.defaultScope_=g||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};
ay.prototype.cancel=function(e){if(this.fired_)this.result_ instanceof ay&&this.result_.cancel();else{if(this.parent_){var g=this.parent_;delete this.parent_;e?g.cancel(e):(g.branches_--,g.branches_<=0&&g.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new F9(this))}};
ay.prototype.continue_=function(e,g){this.blocked_=!1;g24(this,e,g)};
var g24=function(e,g,c){e.fired_=!0;e.result_=c;e.hadError_=!g;c2u(e)},IdI=function(e){if(e.fired_){if(!e.silentlyCanceled_)throw new km4(e);
e.silentlyCanceled_=!1}};
ay.prototype.callback=function(e){IdI(this);g24(this,!0,e)};
ay.prototype.errback=function(e){IdI(this);g24(this,!1,e)};
var PH6=function(e,g,c){uV(e,g,null,c)};
ay.prototype.finally=function(e){var g=this;return J2v(new Promise(function(c,k){uV(g,function(I){e();c(I)},function(I){e();
k(I)})}))};
var uV=function(e,g,c,k){var I=e.fired_;I||(g===c?g=c=nZ(g):(g=nZ(g),c=nZ(c)));e.sequence_.push([g,c,k]);I&&c2u(e)};
ay.prototype.then=function(e,g,c){var k,I,J=new _.Il(function(q,L){I=q;k=L});
uV(this,I,function(q){q instanceof F9?J.cancel():k(q);return v2n},this);
return J.then(e,g,c)};
mNZ(ay);var ifA=function(e,g){g instanceof ay?PH6(e,(0,_.Ju)(g.branch,g)):PH6(e,function(){return g})};
ay.prototype.branch=function(e){var g=new ay;uV(this,g.callback,g.errback,g);e&&(g.parent_=this,this.branches_++);return g};
ay.prototype.isError=function(e){return e instanceof Error};
var wyM=function(e){return Qu(e.sequence_,function(g){return typeof g[1]==="function"})},v2n={},c2u=function(e){if(e.unhandledErrorId_&&e.fired_&&wyM(e)){var g=e.unhandledErrorId_,c=qfB[g];
c&&(_.kp.clearTimeout(c.JSC$10331_id_),delete qfB[g]);e.unhandledErrorId_=0}e.parent_&&(e.parent_.branches_--,delete e.parent_);g=e.result_;for(var k=c=!1;e.sequence_.length&&!e.blocked_;){var I=e.sequence_.shift(),J=I[0],q=I[1];I=I[2];if(J=e.hadError_?q:J)try{var L=J.call(I||e.defaultScope_,g);L===v2n&&(L=void 0);L!==void 0&&(e.hadError_=e.hadError_&&(L==g||e.isError(L)),e.result_=g=L);if(pVY(g)||typeof _.kp.Promise==="function"&&g instanceof _.kp.Promise)k=!0,e.blocked_=!0}catch(n){g=n,e.hadError_=
!0,wyM(e)||(c=!0)}}e.result_=g;k&&(L=(0,_.Ju)(e.continue_,e,!0),k=(0,_.Ju)(e.continue_,e,!1),g instanceof ay?(uV(g,L,k),g.blocking_=!0):g.then(L,k));c&&(g=new LNn(g),qfB[g.JSC$10331_id_]=g,e.unhandledErrorId_=g.JSC$10331_id_)},J2v=function(e){var g=new ay;
e.then(function(c){g.callback(c)},function(c){g.errback(c)});
return g},km4=function(){_.eK.call(this)};
_.Um(km4,_.eK);km4.prototype.message="Deferred has already fired";km4.prototype.name="AlreadyCalledError";var F9=function(){_.eK.call(this)};
_.Um(F9,_.eK);F9.prototype.message="Deferred was canceled";F9.prototype.name="CanceledError";var LNn=function(e){this.JSC$10331_id_=_.kp.setTimeout((0,_.Ju)(this.throwError,this),0);this.JSC$10331_error_=e};
LNn.prototype.throwError=function(){delete qfB[this.JSC$10331_id_];throw this.JSC$10331_error_;};
var qfB={};var r2s={1:"NativeMessagingTransport"},pQ6=["pu","lru","pru","lpu","ppu"];_.Um(LT,_.Iy);LT.prototype.transportType=0;LT.prototype.getWindow=function(){return this.JSC$10334_domHelper_.getWindow()};
LT.prototype.getName=function(){return r2s[String(this.transportType)]||""};_.Um(nT,LT);nT.prototype.peerProtocolVersion_=null;nT.prototype.initialized_=!1;nT.prototype.transportType=1;var adw={};nT.prototype.sendTimerId_=0;
var E2u=function(e){var g=e.event_.data;if(typeof g!=="string")return!1;var c=g.indexOf("|"),k=g.indexOf(":");if(c==-1||k==-1)return!1;var I=g.substring(0,c);c=g.substring(c+1,k);g=g.substring(k+1);if(k=Eu[I])return k.xpcDeliver(c,g,e.event_.origin),!0;k=n2v(g)[0];for(var J in Eu){var q=Eu[J];if(j$W(q)==1&&!q.isConnected()&&c=="tp"&&(k=="SETUP"||k=="SETUP_NTPV2")&&Rdq(q,e.event_.origin))return delete Eu[q.name],q.name=I,Eu[I]=q,q.xpcDeliver(c,g),!0}return!1},WNu=function(e){e.protocolVersion_!=2||
e.peerProtocolVersion_!=null&&e.peerProtocolVersion_!=2||e.send("tp","SETUP_NTPV2,"+e.endpointId_);
e.peerProtocolVersion_!=null&&e.peerProtocolVersion_!=1||e.send("tp","SETUP")},bBs=function(e,g){if(e.protocolVersion_!=2||e.peerProtocolVersion_!=null&&e.peerProtocolVersion_!=2||g!=2){if(e.peerProtocolVersion_!=null&&e.peerProtocolVersion_!=1||g!=1)return;
e.send("tp","SETUP_ACK")}else e.send("tp","SETUP_ACK_NTPV2");e.setupAckSent_.fired_||e.setupAckSent_.callback(!0)},hdw=function(e,g){g>e.peerProtocolVersion_&&(e.peerProtocolVersion_=g);
e.peerProtocolVersion_==1&&(e.setupAckSent_.fired_||e.oneSidedHandshake_||e.setupAckSent_.callback(!0),e.peerEndpointId_=null)};
_.v=nT.prototype;_.v.connect=function(){var e=this.getWindow(),g=_.KC(e),c=adw[g];typeof c!=="number"&&(c=0);c==0&&_.iK(e.postMessage?e:e.document,"message",E2u,!1,nT);adw[g]=c+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.v.maybeAttemptToConnect_=function(){var e=j$W(this.JSC$10337_channel_)==0;this.oneSidedHandshake_&&e||this.JSC$10337_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),WNu(this))};
_.v.send=function(e,g){var c=this.JSC$10337_channel_.peerWindowObject_;c&&(this.send=function(k,I){var J=this,q=this.JSC$10337_channel_.name;this.sendTimerId_=bV(function(){J.sendTimerId_=0;try{var L=c.postMessage?c:c.document;L.postMessage&&L.postMessage(q+"|"+k+":"+I,J.peerHostname_)}catch(n){}},0)},this.send(e,g))};
_.v.notifyConnected_=function(){var e=this.JSC$10337_channel_,g=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;e.isConnected()||e.connectionDelay_&&e.connectionDelay_.isActive()||(e.state_=2,_.Fm(e.connectionDelay_),g!==void 0?(e.connectionDelay_=new _.vt(e.connectCb_,g),e.connectionDelay_.start()):(e.connectionDelay_=null,e.connectCb_()))};
_.v.disposeInternal=function(){if(this.initialized_){var e=this.getWindow(),g=_.KC(e),c=adw[g];adw[g]=c-1;c==1&&_.a0(e.postMessage?e:e.document,"message",E2u,!1,nT)}this.sendTimerId_&&(_.kp.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Fm(this.JSC$10337_eventHandler_);delete this.JSC$10337_eventHandler_;_.Fm(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10337_connected_.cancel();delete this.JSC$10337_connected_;delete this.send;nT.superClass_.disposeInternal.call(this)};
var n2v=function(e){e=e.split(",");e[1]=e[1]||null;return e};var Gm4;_.dG=function(e){if(e.getValues&&typeof e.getValues=="function")return e.getValues();if(typeof Map!=="undefined"&&e instanceof Map||typeof Set!=="undefined"&&e instanceof Set)return Array.from(e.values());if(typeof e==="string")return e.split("");if(_.Bz(e)){for(var g=[],c=e.length,k=0;k<c;k++)g.push(e[k]);return g}return _.n0.getValues(e)};
_.Xyu=function(e){if(e.getKeys&&typeof e.getKeys=="function")return e.getKeys();if(!e.getValues||typeof e.getValues!="function"){if(typeof Map!=="undefined"&&e instanceof Map)return Array.from(e.keys());if(!(typeof Set!=="undefined"&&e instanceof Set)){if(_.Bz(e)||typeof e==="string"){var g=[];e=e.length;for(var c=0;c<e;c++)g.push(c);return g}return _.n0.getKeys(e)}}};
Gm4=function(e,g,c){if(e.forEach&&typeof e.forEach=="function")e.forEach(g,c);else if(_.Bz(e)||typeof e==="string")Array.prototype.forEach.call(e,g,c);else for(var k=_.Xyu(e),I=_.dG(e),J=I.length,q=0;q<J;q++)g.call(c,I[q],k&&k[q],e)};var kLA,VA,BN,iBB,xfB,$fk,DfB,jl1,Yfk;
_.mt=function(e,g){this.JSC$10342_domain_=this.userInfo_=this.scheme_="";this.JSC$10342_port_=null;this.fragment_=this.JSC$10342_path_="";this.JSC$10342_ignoreCase_=!1;var c;e instanceof _.mt?(this.JSC$10342_ignoreCase_=g!==void 0?g:e.JSC$10342_ignoreCase_,_.zS(this,e.scheme_),this.userInfo_=e.userInfo_,_.HN(this,e.JSC$10342_domain_),_.QA(this,e.JSC$10342_port_),_.UR(this,e.getPath()),_.o0(this,e.JSC$10342_queryData_.clone()),_.Z7(this,e.fragment_)):e&&(c=_.oR(String(e)))?(this.JSC$10342_ignoreCase_=
!!g,_.zS(this,c[1]||"",!0),this.userInfo_=VA(c[2]||""),_.HN(this,c[3]||"",!0),_.QA(this,c[4]),_.UR(this,c[5]||"",!0),_.o0(this,c[6]||"",!0),_.Z7(this,c[7]||"",!0)):(this.JSC$10342_ignoreCase_=!!g,this.JSC$10342_queryData_=new _.ta(null,this.JSC$10342_ignoreCase_))};
_.mt.prototype.toString=function(){var e=[],g=this.scheme_;g&&e.push(BN(g,xfB,!0),":");var c=this.JSC$10342_domain_;if(c||g=="file")e.push("//"),(g=this.userInfo_)&&e.push(BN(g,xfB,!0),"@"),e.push(_.Kr(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.JSC$10342_port_,c!=null&&e.push(":",String(c));if(c=this.getPath())this.JSC$10342_domain_&&c.charAt(0)!="/"&&e.push("/"),e.push(BN(c,c.charAt(0)=="/"?DfB:$fk,!0));(c=this.JSC$10342_queryData_.toString())&&e.push("?",c);(c=this.fragment_)&&e.push("#",
BN(c,Yfk));return e.join("")};
_.mt.prototype.resolve=function(e){var g=this.clone(),c=!!e.scheme_;c?_.zS(g,e.scheme_):c=!!e.userInfo_;c?g.userInfo_=e.userInfo_:c=!!e.JSC$10342_domain_;c?_.HN(g,e.JSC$10342_domain_):c=e.JSC$10342_port_!=null;var k=e.getPath();if(c)_.QA(g,e.JSC$10342_port_);else if(c=!!e.JSC$10342_path_){if(k.charAt(0)!="/")if(this.JSC$10342_domain_&&!this.JSC$10342_path_)k="/"+k;else{var I=g.getPath().lastIndexOf("/");I!=-1&&(k=g.getPath().slice(0,I+1)+k)}I=k;if(I==".."||I==".")k="";else if(_.nC(I,"./")||_.nC(I,
"/.")){k=_.wV(I,"/");I=I.split("/");for(var J=[],q=0;q<I.length;){var L=I[q++];L=="."?k&&q==I.length&&J.push(""):L==".."?((J.length>1||J.length==1&&J[0]!="")&&J.pop(),k&&q==I.length&&J.push("")):(J.push(L),k=!0)}k=J.join("/")}else k=I}c?_.UR(g,k):c=e.JSC$10342_queryData_.toString()!=="";c?_.o0(g,e.JSC$10342_queryData_.clone()):c=!!e.fragment_;c&&_.Z7(g,e.fragment_);return g};
_.mt.prototype.clone=function(){return new _.mt(this)};
_.zS=function(e,g,c){e.scheme_=c?VA(g,!0):g;e.scheme_&&(e.scheme_=e.scheme_.replace(/:$/,""));return e};
_.HN=function(e,g,c){e.JSC$10342_domain_=c?VA(g,!0):g;return e};
_.QA=function(e,g){if(g){g=Number(g);if(isNaN(g)||g<0)throw Error("Qa`"+g);e.JSC$10342_port_=g}else e.JSC$10342_port_=null;return e};
_.mt.prototype.getPath=function(){return this.JSC$10342_path_};
_.UR=function(e,g,c){e.JSC$10342_path_=c?VA(g,!0):g;return e};
_.o0=function(e,g,c){g instanceof _.ta?(e.JSC$10342_queryData_=g,fdq(e.JSC$10342_queryData_,e.JSC$10342_ignoreCase_)):(c||(g=BN(g,jl1)),e.JSC$10342_queryData_=new _.ta(g,e.JSC$10342_ignoreCase_));return e};
_.Qd=function(e,g,c){e.JSC$10342_queryData_.set(g,c);return e};
_.Ht=function(e,g){return e.JSC$10342_queryData_.get(g)};
_.Z7=function(e,g,c){e.fragment_=c?VA(g):g;return e};
_.Nn=function(e){_.Qd(e,"zx",dD());return e};
_.zs=function(e,g){return e instanceof _.mt?e.clone():new _.mt(e,g)};
kLA=function(e,g){e instanceof _.mt||(e=_.zs(e));g instanceof _.mt||(g=_.zs(g));return e.resolve(g)};
VA=function(e,g){return e?g?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""};
BN=function(e,g,c){return typeof e==="string"?(e=encodeURI(e).replace(g,iBB),c&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null};
iBB=function(e){e=e.charCodeAt(0);return"%"+(e>>4&15).toString(16)+(e&15).toString(16)};
xfB=/[#\/\?@]/g;$fk=/[#\?:]/g;DfB=/[#\?]/g;jl1=/[#\?@]/g;Yfk=/#/g;_.ta=function(e,g){this.count_=this.keyMap_=null;this.encodedQuery_=e||null;this.JSC$10343_ignoreCase_=!!g};
_.Sc=function(e){e.keyMap_||(e.keyMap_=new Map,e.count_=0,e.encodedQuery_&&O0q(e.encodedQuery_,function(g,c){e.add(y9(g),c)}))};
_.v=_.ta.prototype;_.v.getCount=function(){_.Sc(this);return this.count_};
_.v.add=function(e,g){_.Sc(this);this.encodedQuery_=null;e=yA(this,e);var c=this.keyMap_.get(e);c||this.keyMap_.set(e,c=[]);c.push(g);this.count_+=1;return this};
_.v.remove=function(e){_.Sc(this);e=yA(this,e);return this.keyMap_.has(e)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(e).length,this.keyMap_.delete(e)):!1};
_.v.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.v.isEmpty=function(){_.Sc(this);return this.count_==0};
_.v.containsKey=function(e){_.Sc(this);e=yA(this,e);return this.keyMap_.has(e)};
_.v.containsValue=function(e){var g=this.getValues();return _.Hz(g,e)};
_.v.forEach=function(e,g){_.Sc(this);this.keyMap_.forEach(function(c,k){c.forEach(function(I){e.call(g,I,k,this)},this)},this)};
_.v.getKeys=function(){_.Sc(this);for(var e=Array.from(this.keyMap_.values()),g=Array.from(this.keyMap_.keys()),c=[],k=0;k<g.length;k++)for(var I=e[k],J=0;J<I.length;J++)c.push(g[k]);return c};
_.v.getValues=function(e){_.Sc(this);var g=[];if(typeof e==="string")this.containsKey(e)&&(g=g.concat(this.keyMap_.get(yA(this,e))));else{e=Array.from(this.keyMap_.values());for(var c=0;c<e.length;c++)g=g.concat(e[c])}return g};
_.v.set=function(e,g){_.Sc(this);this.encodedQuery_=null;e=yA(this,e);this.containsKey(e)&&(this.count_-=this.keyMap_.get(e).length);this.keyMap_.set(e,[g]);this.count_+=1;return this};
_.v.get=function(e,g){if(!e)return g;e=this.getValues(e);return e.length>0?String(e[0]):g};
_.PfI=function(e,g,c){e.remove(g);c.length>0&&(e.encodedQuery_=null,e.keyMap_.set(yA(e,g),_.tq(c)),e.count_+=c.length)};
_.ta.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var e=[],g=Array.from(this.keyMap_.keys()),c=0;c<g.length;c++){var k=g[c],I=_.Kr(k);k=this.getValues(k);for(var J=0;J<k.length;J++){var q=I;k[J]!==""&&(q+="="+_.Kr(k[J]));e.push(q)}}return this.encodedQuery_=e.join("&")};
_.ta.prototype.clone=function(){var e=new _.ta;e.encodedQuery_=this.encodedQuery_;this.keyMap_&&(e.keyMap_=new Map(this.keyMap_),e.count_=this.count_);return e};
var yA=function(e,g){g=String(g);e.JSC$10343_ignoreCase_&&(g=g.toLowerCase());return g},fdq=function(e,g){g&&!e.JSC$10343_ignoreCase_&&(_.Sc(e),e.encodedQuery_=null,e.keyMap_.forEach(function(c,k){var I=k.toLowerCase();
k!=I&&(this.remove(k),_.PfI(this,I,c))},e));
e.JSC$10343_ignoreCase_=g};
_.ta.prototype.extend=function(e){for(var g=0;g<arguments.length;g++)Gm4(arguments[g],function(c,k){this.add(k,c)},this)};_.Um(hu,q_);var mfB=RegExp("^%*tp$"),py1=RegExp("^%+tp$");_.v=hu.prototype;_.v.connectionDelay_=null;_.v.peerWindowDeferred_=null;_.v.transport_=null;_.v.state_=1;_.v.isConnected=function(){return this.state_==2};
_.v.peerWindowObject_=null;_.v.iframeElement_=null;_.v.getConfig=function(){return this.cfg_};
_.v.connect=function(e){this.connectCb_=e||_.aX;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?PH6(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.v.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10338_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var e=this.iframeElement_.contentWindow;e||(e=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=e}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ua");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10338_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new nT(this,this.cfg_.ph,this.JSC$10338_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Ta");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.v.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Fm(this.transport_);this.connectCb_=this.transport_=null;_.Fm(this.connectionDelay_);this.connectionDelay_=null};
_.v.send=function(e,g){if(this.isConnected()){try{var c=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(I){c=!1}if(c){_.SK(g)&&(g=_.X9(g));c=this.transport_;var k=c.send;mfB.test(e)&&(e="%"+e);e=e.replace(/[%:|]/g,encodeURIComponent);k.call(c,e,g)}else this.close()}};
_.v.xpcDeliver=function(e,g,c){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Ju)(this.xpcDeliver,this,e,g,c));else if(Rdq(this,c)&&!this.isDisposed()&&this.state_!=3)if(e&&e!="tp")this.isConnected()&&(e=e.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),e=py1.test(e)?e.substring(1):e,e=this.getService(e,g))&&(g=edB(g,e.objectPayload),g!=null&&e.callback(g));else switch(e=this.transport_,c=n2v(g),g=c[1],c[0]){case "SETUP_ACK":hdw(e,1);e.setupAckReceived_.fired_||e.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":e.protocolVersion_==2&&(hdw(e,2),e.setupAckReceived_.fired_||e.setupAckReceived_.callback(!0));break;case "SETUP":hdw(e,1);bBs(e,1);break;case "SETUP_NTPV2":e.protocolVersion_==2&&(c=e.peerProtocolVersion_,hdw(e,2),bBs(e,2),c!=1&&e.peerEndpointId_==null||e.peerEndpointId_==g||WNu(e),e.peerEndpointId_=g)}};
var j$W=function(e){var g=e.cfg_.role;return typeof g==="number"?g:window.parent==e.peerWindowObject_?1:0},Rdq=function(e,g){var c=e.cfg_.ph;
return _.rV(g==null?"":String(g))||_.rV(c==null?"":String(c))||g==e.cfg_.ph};
hu.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Eu[this.name];_.Fm(this.peerLoadHandler_);delete this.peerLoadHandler_;hu.superClass_.disposeInternal.call(this)};
var lvC=function(){for(var e in Eu)_.Fm(Eu[e])},Eu={};var ldq=function(e,g){this.win=e;this.allowAdsHttpEndpoint=g;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10352_domHelper=Jd(e);this.scrollManager=new Otq(e);this.accessibilityManager=new BKn(e);TFZ(this)},TFZ=function(e){var g=function(){e.allowAdsPopup&&e.allowAdsPopup.style.setProperty("display","none","important");
e.wallElement.style.setProperty("display","","important");NKs(e.accessibilityManager);KCw(e.accessibilityManager,e.wallElement.querySelector(".fc-dialog-container"),!1,!1,e.wallElement.querySelector(".fc-button-whitelist"));e.scrollManager.enableScrolling()};
e.allowAdsPopup=e.JSC$10352_domHelper.JSC$9638_createDom("DIV",{"class":"fc-whitelist-root"});e.allowAdsPopup.style.setProperty("display","none","important");e.JSC$10352_domHelper.appendChild(e.JSC$10352_domHelper.JSC$9636_document_.body,e.allowAdsPopup);var c=e.JSC$10352_domHelper.JSC$9638_createDom("DIV",{"class":"fc-dialog-overlay"});e.JSC$10352_domHelper.appendChild(e.allowAdsPopup,c);var k=e.JSC$10352_domHelper.JSC$9638_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:g});e.JSC$10352_domHelper.appendChild(e.allowAdsPopup,
k);c=e.JSC$10352_domHelper.JSC$9638_createDom("IFRAME");c.className="fc-whitelist-dialog";c.frameBorder="0";c.id="fc-whitelist-iframe";c.tabIndex="0";_.vA(c,e.allowAdsHttpEndpoint);e.JSC$10352_domHelper.appendChild(k,c);k={};k.pu=_.QP(e.allowAdsHttpEndpoint).toString();k.tp=1;k.cn="fc-whitelist-channel";k.ifrid=c.id;k.osh=!0;e.allowAdsCrossPageChannel=new hu(k);e.allowAdsCrossPageChannel.registerService("close",g);e.allowAdsCrossPageChannel.registerService("refresh",function(){e.win.location.reload()});
e.allowAdsCrossPageChannel.registerService("resize",function(I){if(I){var J=e.allowAdsPopup.querySelector(".fc-whitelist-dialog");I.width&&J.style.setProperty("width",I.width,"important");I.height&&J.style.setProperty("height",I.height,"important")}},!0);
e.allowAdsCrossPageChannel.connect()};
ldq.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10352_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var KZ=window,OR=document,A2Z=KZ.location,slI=function(){},FNs=/\[native code\]/,Mn=function(e,g,c){return e[g]=e[g]||c},uCB=function(e){e=e.sort();
for(var g=[],c=void 0,k=0;k<e.length;k++){var I=e[k];I!=c&&g.push(I);c=I}return g},CZ=function(){var e;
if((e=Object.create)&&FNs.test(e))e=e(null);else{e={};for(var g in e)e[g]=void 0}return e},ep=Mn(KZ,"gapi",{});var gQ={};gQ=Mn(KZ,"___jsl",CZ());Mn(gQ,"I",0);Mn(gQ,"hel",10);var dfI=function(){var e=A2Z.href;if(gQ.dpo)var g=gQ.h;else{g=gQ.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),k=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(e=e&&(c.exec(e)||k.exec(e)))try{g=decodeURIComponent(e[2])}catch(I){}}return g},zdu=function(e){var g=Mn(gQ,"PQ",[]);
gQ.PQ=[];var c=g.length;if(c===0)e();else for(var k=0,I=function(){++k===c&&e()},J=0;J<c;J++)g[J](I)},HBv=function(e){return Mn(Mn(gQ,"H",CZ()),e,CZ())};var cR=function(e){this.JSC$10354_obj_=e};
cR.prototype.value=function(){return this.JSC$10354_obj_};
cR.prototype.getWidth=function(){return this.JSC$10354_obj_.width};
cR.prototype.getHeight=function(){return this.JSC$10354_obj_.height};
cR.prototype.getStyle=function(){return this.JSC$10354_obj_.style};var Qlv=function(e){this.JSC$10357_obj_=e||{}};
_.v=Qlv.prototype;_.v.value=function(){return this.JSC$10357_obj_};
_.v.setUrl=function(e){this.JSC$10357_obj_.url=e;return this};
_.v.getUrl=function(){return this.JSC$10357_obj_.url};
_.v.getStyle=function(){return this.JSC$10357_obj_.style};
_.v.getId=function(){return this.JSC$10357_obj_.id};
_.v.getContext=function(){return this.JSC$10357_obj_.context};
var Ufw=function(e){e.JSC$10357_obj_.attributes=e.JSC$10357_obj_.attributes||{};return new cR(e.JSC$10357_obj_.attributes)};var o24=function(){Qlv.apply(this,arguments)};
_.Y(o24,Qlv);var ZB4=Mn(gQ,"perf",CZ());Mn(ZB4,"g",CZ());var VWs=Mn(ZB4,"i",CZ());Mn(ZB4,"r",[]);CZ();CZ();var BF1=function(e,g,c){g&&g.length>0&&(g=tWv(g),c&&c.length>0&&(g+="___"+tWv(c)),g.length>28&&(g=g.substr(0,28)+(g.length-28)),c=g,g=Mn(VWs,"_p",CZ()),Mn(g,c,CZ())[e]=(new Date).getTime(),g=ZB4.r,typeof g==="function"?g(e,"_p",c):g.push([e,"_p",c]))},tWv=function(e){return e.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var NFu=CZ(),Sf4=[],kb=function(e){throw Error("Va`"+e);};
Sf4.push(["jsl",function(e){for(var g in e)if(Object.prototype.hasOwnProperty.call(e,g)){var c=e[g];typeof c=="object"?gQ[g]=Mn(gQ,g,[]).concat(c):Mn(gQ,g,c)}if(g=e.u)e=Mn(gQ,"us",[]),e.push(g),(g=/^https:(.*)$/.exec(g))&&e.push("http:"+g[1])}]);
var y2q=/^(\/[a-zA-Z0-9_\-]+)+$/,KN1=[/\/amp\//,/\/amp$/,/^\/amp$/],OBY=/^[a-zA-Z0-9\-_\.,!]+$/,MWv=/^gapi\.loaded_[0-9]+$/,Cfw=/^[a-zA-Z0-9,._-]+$/,kyu=function(e,g,c,k,I){var J=e.split(";"),q=J.shift(),L=NFu[q],n=null;L?n=L(J,g,c,k):kb("no hint processor for: "+q);n||kb("failed to generate load url");g=n;c=g.match(eGs);(k=g.match(gNZ))&&k.length===1&&cOv.test(g)&&c&&c.length===1||kb("failed sanity: "+e);try{e="?";if(I&&I.length>0){FeW(I);var R=I.join(",");n=n+"?le="+R;e="&"}if(gQ.rol){var W=gQ.ol;
W&&W.length&&(n=""+n+e+"ol="+W.length)}}catch(b){}return n},vN1=function(e,g,c,k){e=IXw(e);
MWv.test(c)||kb("invalid_callback");g=JOv(g);k=k&&k.length?JOv(k):null;var I=function(J){return encodeURIComponent(J).replace(/%2C/g,",")};
return[encodeURIComponent(e.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",I(e.version),"/m=",I(g),k?"/exm="+I(k):"","/rt=j/sv=1/d=1/ed=1",e.activeMods?"/am="+I(e.activeMods):"",e.resourceSig?"/rs="+I(e.resourceSig):"",e.zcms?"/t="+I(e.zcms):"","/cb=",I(c)].join("")},IXw=function(e){e.charAt(0)!=="/"&&kb("relative path");
for(var g=e.substring(1).split("/"),c=[];g.length;){e=g.shift();if(!e.length||e.indexOf(".")==0)kb("empty/relative directory");else if(e.indexOf("=")>0){g.unshift(e);break}c.push(e)}e={};for(var k=0,I=g.length;k<I;++k){var J=g[k].split("="),q=decodeURIComponent(J[0]),L=decodeURIComponent(J[1]);J.length==2&&q&&L&&(e[q]=e[q]||L)}g="/"+c.join("/");y2q.test(g)||kb("invalid_prefix");c=0;for(k=KN1.length;c<k;++c)KN1[c].test(g)&&kb("invalid_prefix");c=wdw(e,"k",!0);k=wdw(e,"am");I=wdw(e,"rs");e=wdw(e,"t");
return{pathPrefix:g,version:c,activeMods:k,resourceSig:I,zcms:e}},JOv=function(e){for(var g=[],c=0,k=e.length;c<k;++c){var I=e[c].replace(/\./g,"_").replace(/-/g,"_");
Cfw.test(I)&&g.push(I)}return g.join(",")},wdw=function(e,g,c){e=e[g];
!e&&c&&kb("missing: "+g);if(e){if(OBY.test(e))return e;kb("invalid: "+g)}return null},cOv=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,gNZ=/\/cb=/g,eGs=/\/\//g;
NFu.m=function(e,g,c,k){(e=e[0])||kb("missing_hint");return"https://apis.google.com"+vN1(e,g,c,k)};
var qgv=decodeURI("%73cript"),LZq=/^[-+_0-9\/A-Za-z]+={0,2}$/,rOM=function(e,g){for(var c=[],k=0;k<e.length;++k){var I=e[k],J;if(J=I){a:{for(J=0;J<g.length;J++)if(g[J]===I)break a;J=-1}J=J<0}J&&c.push(I)}return c},aXn=function(){var e=gQ.nonce;
return e!==void 0?e&&e===String(e)&&e.match(LZq)?e:gQ.nonce=null:OR.querySelector?(e=OR.querySelector("script[nonce]"))?(e=e.nonce||e.getAttribute("nonce")||"",e&&e===String(e)&&e.match(LZq)?gQ.nonce=e:gQ.nonce=null):null:null},ENs=function(e){if(OR.readyState!="loading")nNI(e);
else{var g=aXn(),c="";g!==null&&(c=' nonce="'+g+'"');e="<"+qgv+' src="'+encodeURI(e)+'"'+c+"></"+qgv+">";OR.write(RGu?RGu.createHTML(e):e)}},nNI=function(e){var g=OR.createElement(qgv);
g.setAttribute("src",RGu?RGu.createScriptURL(e):e);e=aXn();e!==null&&g.setAttribute("nonce",e);g.async="true";(e=OR.getElementsByTagName(qgv)[0])?e.parentNode.insertBefore(g,e):(OR.head||OR.body||OR.documentElement).appendChild(g)},bbw=function(e,g,c){WZY(function(){var k=g===dfI()?Mn(ep,"_",CZ()):CZ();
k=Mn(HBv(g),"_",k);e(k)},c)},nq8=function(e,g){var c=g||{};
typeof g=="function"&&(c={},c.callback=g);var k=(g=c)&&g._c;if(k)for(var I=0;I<Sf4.length;I++){var J=Sf4[I][0],q=Sf4[I][1];q&&Object.prototype.hasOwnProperty.call(k,J)&&q(k[J],e,g)}g=[];e?g=e.split(":"):c.features&&(g=c.features);if(!(e=c.h)&&(e=dfI(),!e))throw Error("Wa");hGv(g||[],c,e)},hGv=function(e,g,c){e=uCB(e)||[];
var k=g.callback,I=g.config,J=g.timeout,q=g.ontimeout,L=g.onerror,n=void 0;typeof L=="function"&&(n=L);var R=null,W=!1;if(J&&!q||!J&&q)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";L=Mn(HBv(c),"r",[]).sort();var b=Mn(HBv(c),"L",[]).sort(),h=gQ.le||[],X=[].concat(L),D=function(S,V){if(W)return 0;KZ.clearTimeout(R);b.push.apply(b,f);var Q=((ep||{}).config||{}).update;Q?Q(I):I&&Mn(gQ,"cu",[]).push(I);if(V){BF1("me0",S,X);try{bbw(V,c,n)}finally{BF1("me1",S,X)}}return 1};
J>0&&(R=KZ.setTimeout(function(){W=!0;q()},J));
var f=rOM(e,b);if(f.length){f=rOM(e,L);var l=Mn(gQ,"CP",[]),A=l.length;l[A]=function(S){if(!S)return 0;BF1("ml1",f,X);var V=function(y){l[A]=null;D(f,S)&&zdu(function(){k&&k();y()})},Q=function(){var y=l[A+1];
y&&y()};
A>0&&l[A-1]?l[A]=function(){V(Q)}:V(Q)};
if(f.length){var d="loaded_"+gQ.I++;ep[d]=function(S){l[A](S);ep[d]=null};
e=kyu(c,f,"gapi."+d,L,h);L.push.apply(L,f);BF1("ml0",f,X);g.sync||KZ.___gapisync?ENs(e):nNI(e)}else l[A](slI)}else D(f)&&k&&k()},XdI;
var Gy1=null,xZ4=_.kp.trustedTypes;if(xZ4&&xZ4.createPolicy){try{Gy1=xZ4.createPolicy("goog#gapi",{createHTML:Z14,createScript:Z14,createScriptURL:Z14})}catch(e){_.kp.console&&_.kp.console.error(e.message)}XdI=Gy1}else XdI=Gy1;var RGu=XdI,WZY=function(e,g){if(gQ.hee&&gQ.hel>0)try{return e()}catch(c){g&&g(c),gQ.hel--,nq8("debug_error",function(){try{window.___jsl.hefn(c)}catch(k){throw c;}})}else try{return e()}catch(c){throw g&&g(c),c;
}},DZn=ep.load;
DZn&&Mn(gQ,"ol",[]).push(DZn);ep.load=function(e,g){return WZY(function(){return nq8(e,g)})};var uBq;var Yg4=function(){var e=e||[];this.dependencies_=[];$ZY(this,e)};
Yg4.prototype.toString=function(){return"MpJwZc"};
Yg4.prototype.getModuleId=function(){return"MpJwZc"};
var $ZY=function(e,g){var c=!1;c=c===void 0?!1:c;e.dependencies_=e.dependencies_.concat(g);c&&g.map(function(k){return k.getModuleId()}).forEach(function(k){dlz(function(I){I.addExtraEdge("MpJwZc",k)})})};var vfC=new Yg4;var c5z=new _.wG("a"),qM8=new _.wG("c"),wmV=function(e,g,c){_.Bt.call(this,e,g);this.node=g;this.kind=c};
_.Y(wmV,_.Bt);var fXI=function(){this.JSC$10370_keys_={};this.urlPrefix_="";this.JSC$10370_queryData_={}};
fXI.prototype.toString=function(){var e=this.urlPrefix_+j2w(this),g=_.Oy(this.JSC$10370_queryData_),c="";g!=""&&(c="?"+g);return e+c};
var ibu=function(e){e=Iu(e,"md");return!!e&&e!=="0"},j2w=function(e){var g=[],c=function(k){e.JSC$10370_keys_[k]!==void 0&&g.push(k+"="+e.JSC$10370_keys_[k])};
ibu(e)?(c("md"),c("k"),c("ck"),c("am"),c("rs"),c("gssmodulesetproto"),c("slk"),c("dti")):(c("sdch"),c("k"),c("ck"),c("am"),c("amc"),c("rt"),"d"in e.JSC$10370_keys_||JU(e,"d","0"),c("d"),c("exm"),c("excm"),(e.JSC$10370_keys_.excm||e.JSC$10370_keys_.exm)&&g.push("ed=1"),c("im"),c("dg"),c("sm"),Iu(e,"br")!="1"&&Iu(e,"br")!="0"||c("br"),c("br-d"),Iu(e,"rb")=="1"&&c("rb"),Iu(e,"zs")!=="0"&&c("zs"),PqM(e)!==""&&c("wt"),c("gssmodulesetproto"),c("ujg"),c("sp"),c("rs"),c("cb"),c("ee"),c("slk"),c("dti"),c("m"));
return g.join("/")},Iu=function(e,g){return e.JSC$10370_keys_[g]?e.JSC$10370_keys_[g]:null},JU=function(e,g,c){c?e.JSC$10370_keys_[g]=c:delete e.JSC$10370_keys_[g]},mZq=function(e,g){e.urlPrefix_=g},pdv=function(e,g){g&&g.length>0?(g.sort(),JU(e,"exm",g.join(","))):JU(e,"exm",null)},T3M=function(e,g){g&&g.length>0?(g.sort(),JU(e,"excm",g.join(","))):JU(e,"excm",null)},lXZ=function(e){return(e=Iu(e,"m"))?e.split(","):[]},PqM=function(e){switch(Iu(e,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},AOY=function(e,g){var c=Object.keys(g).filter(function(k){return!!Object.keys(g[k]).length}).map(function(k){var I=Object.keys(g[k]);
I.length>1&&I.sort();return k+":"+I.join(",")});
c.sort();JU(e,"ee",c.join(";"))},ede=function(e){var g=Iu(e,"ee");
if(!g)return{};e={};g=_.w(g.split(";"));for(var c=g.next();!c.done;c=g.next()){var k=_.w(c.value.split(":"));c=k.next().value;k=k.next().value;e[c]={};k=_.w(k.split(","));for(var I=k.next();!I.done;I=k.next())e[c][I.value]=!0}return e},s2v=function(e){delete e.JSC$10370_keys_.m;
delete e.JSC$10370_keys_.exm;delete e.JSC$10370_keys_.ed};
fXI.prototype.clone=function(){var e=new fXI;e.JSC$10370_keys_=Object.assign({},this.JSC$10370_keys_);e.urlPrefix_=this.urlPrefix_;e.JSC$10370_queryData_=Object.assign({},this.JSC$10370_queryData_);return e};
var g26=function(e,g){g=g===void 0?!0:g;var c=FZw(e),k=new fXI,I=_.oR(c)[5];_.n0.forEach(uS1,function(q){var L=I.match("/"+q+"=([^/]+)");L&&JU(k,q,L[1])});
var J="";J=e.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";mZq(k,e.substr(0,e.indexOf(J)+J.length));if(!g)return k;(e=_.oR(c)[6]||null)&&O0q(e,function(q,L){k.JSC$10370_queryData_[q]=L});
return k},OtU=function(e){e=_.tv(FZw(e));
return e===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(e)?/\/k=/.test(e):!1},FZw=function(e){return e.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?e.substr(65):e},uS1={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",ALLOW_MISSING_CHUNKS:"amc",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",
GSS_MODULE_SET_PROTO:"gssmodulesetproto",USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},dZw=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.vR=function(e){this.JSC$10382_id_=e;this.opts={}};
_.vR.prototype.JSC$10384_setLabel=function(e){this.label_=e||void 0;return this};
_.vR.prototype.addUploadMetadata=function(e,g){var c=this.opts.data||{};c[e]=g;this.opts.data=c;return this};
var zGw=function(e){var g=_.n0.filter(e.opts,function(c){return c!==null});
g=_.n0.isEmpty(g)?null:g;e=[e.JSC$10382_id_,e.label_,g];g=pzg(e);return e=e.slice(0,g+1)};
_.vR.prototype.toString=function(){var e=zGw(this);return"("+_.R4(e,function(g){return JSON.stringify(g)}).join(",")+")"};
_.vR.prototype.getId=function(){return this.JSC$10382_id_};
_.vR.prototype.getOptions=function(){return _.n0.clone(this.opts)};var wQ=function(){_.vR.call(this,"image-search")};
_.Y(wQ,_.vR);wQ.prototype.setSize=function(e){this.opts.imgsz=e;return this};
wQ.prototype.JSC$10384_setLabel=function(e){_.vR.prototype.JSC$10384_setLabel.call(this,e);return this};
wQ.prototype.addUploadMetadata=function(e,g){_.vR.prototype.addUploadMetadata.call(this,e,g);return this};var qD=function(){_.vR.call(this,"maps")};
_.Y(qD,_.vR);qD.prototype.setZoom=function(e){this.opts.zoom=e;return this};
qD.prototype.JSC$10384_setLabel=function(e){_.vR.prototype.JSC$10384_setLabel.call(this,e);return this};
qD.prototype.addUploadMetadata=function(e,g){_.vR.prototype.addUploadMetadata.call(this,e,g);return this};_.Lw=function(){_.vR.call(this,"photos")};
_.Y(_.Lw,_.vR);_.Lw.prototype.JSC$10384_setLabel=function(e){_.vR.prototype.JSC$10384_setLabel.call(this,e);return this};
_.Lw.prototype.addUploadMetadata=function(e,g){_.vR.prototype.addUploadMetadata.call(this,e,g);return this};var rQ=function(){_.vR.call(this,"url")};
_.Y(rQ,_.vR);var HbB=function(){var e=new rQ;e.opts.type="video";e.opts.site="youtube.com";return e};
rQ.prototype.JSC$10384_setLabel=function(e){_.vR.prototype.JSC$10384_setLabel.call(this,e);return this};
rQ.prototype.addUploadMetadata=function(e,g){_.vR.prototype.addUploadMetadata.call(this,e,g);return this};var au=function(){_.vR.call(this,"video-search")};
_.Y(au,_.vR);var Q2k=function(){var e=new au;e.opts.site="youtube.com";return e};
au.prototype.JSC$10384_setLabel=function(e){_.vR.prototype.JSC$10384_setLabel.call(this,e);return this};
au.prototype.addUploadMetadata=function(e,g){_.vR.prototype.addUploadMetadata.call(this,e,g);return this};var UZn=function(){_.vR.call(this,"web")};
_.Y(UZn,_.vR);UZn.prototype.JSC$10384_setLabel=function(e){_.vR.prototype.JSC$10384_setLabel.call(this,e);return this};
UZn.prototype.addUploadMetadata=function(e,g){_.vR.prototype.addUploadMetadata.call(this,e,g);return this};var nw=function(){this.items_=[];this.opts={}},oNq=function(e){switch(e){case "image-search":return new wQ;
case "maps":return new qD;case "photos":return new _.Lw;case "url":return new rQ;case "video-search":return new au;case "web":return new UZn}return new _.vR(e)};
nw.prototype.addView=function(e){this.items_.push(typeof e==="string"?oNq(e):e);return this};
var ZbM=function(e){return"("+_.R4(e.items_,function(g){return g.toString()}).join(",")+")"};
nw.prototype.toString=function(){return ZbM(this)};
nw.prototype.getViews=function(e,g){g=g===void 0?[]:g;for(var c=this.items_,k=0;k<c.length;k++){var I=c[k];I instanceof nw?I.getViews(e,g):I.getId()==e&&g.push(I)}return g};
nw.prototype.getOptions=function(){return _.n0.clone(this.opts)};var Au=function(e){this.basePickerUrl_=e||"https://docs.google.com/picker";this.nav_=new nw};
Au.prototype.nav_=null;Au.prototype.addView=function(e){this.nav_.addView(e);return this};
Au.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Au.prototype.getViews=function(e){return this.nav_.getViews(e)};
_.VXI=function(e,g){e.callback_=g;return e};var tXu=new Map;tXu.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");tXu.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");tXu.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var B3s=new Set;B3s.add("application/vnd.google-apps.kix");B3s.add("application/vnd.google-apps.ritz");B3s.add("application/vnd.google-apps.punch");var IHk=function(e,g,c){var k=c&&_.Rs(c,1);c=N3n(c);var I=e[0].getId();switch(_.EU(I,2)){case 13:return SgI(e,g,k,c);case 3:return yOw(e,g,k,c);case 10:return KZv(e,g,k,c);case 27:return KZv(e,g,k,c);case 12:return Obw(e,g);case 2:return MXB(e,g,k,c);case 5:return CqM(e,g,k,c);case 9:return ek1(e,g,k,c);case 6:return gQv(e,g,k,c);case 25:return cZB(e,g,k,c);case 1:return _.cW(e[0],zEq,26)?kHZ(e,g,k,c):KZv(e,g,k,c);default:return{}}},gQv=function(e,g,c,k){e=e.map(function(I){return{id:I.getId().getId(),
serviceId:"youtube",name:I.getName(),description:_.Rs(I,3),type:Ru(I),lastEditedUtc:_.d_Y(_.Ml(I,_.Wj,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:I.getUrl(),embedUrl:_.Rs(I,13),thumbnails:EG(Us(I))}});
return{action:g,docs:e,viewToken:k,view:c||"youtube",v2Translated:!0}},MXB=function(e,g,c,k){var I=e.map(function(J){var q=J.getId().getId(),L=_.Rs(J,7),n=J.getName(),R=Ru(J),W=_.d_Y(_.Ml(J,_.Wj,12)).getTime(),b=J.getUrl(),h=Number(JjI(J)),X=_.Rs(J,3),D=_.Rs(J,11),f=EG(Us(J));
var l=_.Ml(J,oX,21);l=_.r0(l,1);var A=_.Ml(J,oX,21);A=_.Rs(A,10);var d=_.Rs(J,13);var S=_.Ml(J,oX,21);S=_.r0(S,9);var V=_.Ml(J,oX,21);V=_.Rs(V,11);q={id:q,serviceId:"docs",mimeType:L,name:n,type:R,lastEditedUtc:W,url:b,sizeBytes:h,description:X,iconUrl:D,thumbnails:f,isShared:l,downloadUrl:A,embedUrl:d,copyable:S,resourceKey:V};L=_.Ml(J,oX,21);_.r0(L,12)&&(q.uploadState="success",q.isNew=!0);L=_.Ml(J,oX,21);_.cW(L,zl,3)&&(J=_.Ml(J,oX,21),J=_.Ml(J,zl,3),_.cW(J,u2,2)&&(L=Yr(J.getDuration().getSeconds()),
n=J.getDuration(),n=_.Qh(n,2),q.duration=L+n/1E9),q.aspectRatio=J.getAspectRatio());return q});
return{action:g,docs:I,viewToken:k,view:c||"all",extraUserInputs:JZZ(e),v2Translated:!0}},CqM=function(e,g,c,k){e=e.map(function(I){var J=_.Ml(I,NDB,15);
J=_.Ml(J,dg,1);LB(I,10,dg,J);return{id:I.getId().getId(),serviceId:"web",mimeType:_.Rs(I,7),name:I.getName(),type:Ru(I),url:I.getUrl(),description:_.Rs(I,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EG(Us(I))}});
return{action:g,docs:e,viewToken:k,view:c||"image-search",v2Translated:!0}},ek1=function(e,g,c,k){e=e.map(function(I){return{serviceId:"url",
name:Us(I)[0].getUrl().split("/").pop(),type:Ru(I),mimeType:_.Rs(I,7),url:I.getUrl(),description:_.Rs(I,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EG(Us(I))}});
return{action:g,docs:e,viewToken:k,view:c||"url",v2Translated:!0}},kHZ=function(e,g,c,k){e=e.map(function(I){return{id:I.getId().getId(),
serviceId:"picasa",name:I.getName(),type:Ru(I),description:_.Rs(I,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EG(Us(I))}});
return{action:g,docs:e,viewToken:k,view:c||"webcam",v2Translated:!0}},KZv=function(e,g,c,k){return{action:g,
docs:e.map(vQn),viewToken:k,view:wPw(c||"upload",e),extraUserInputs:JZZ(e),v2Translated:!0}},wPw=function(e,g){return g.some(function(c){var k;
return((k=_.Ml(c,H9,30))==null?void 0:_.EU(k,3))===9})?e+"/gmailphotos":e},yOw=function(e,g,c,k){var I=e.map(function(J){var q={id:J.getId().getId(),
serviceId:"picasa",mimeType:_.Rs(J,7),name:J.getName(),type:Ru(J),lastEditedUtc:_.d_Y(_.Ml(J,_.Wj,12)).getTime(),url:J.getUrl(),sizeBytes:Number(JjI(J)),description:_.Rs(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EG(Us(J)),mediaKey:J.getId().getId(),parentId:_.Rs(J,4)},L,n=(L=_.Ml(J,U_s,18))==null?void 0:_.Ml(L,Qyu,3);n&&(q.latitude=nq(n,1),q.longitude=nq(n,2));var R;J=(R=_.Ml(J,U_s,18))==null?void 0:as(R,6);R=J!=null?Yr(J):void 0;R&&(q.version=
R);return q});
return{action:g,docs:I,viewToken:k,view:c||"photos",extraUserInputs:JZZ(e),v2Translated:!0}},SgI=function(e,g,c,k){e=e.map(function(I){return{id:I.getId().getId(),
serviceId:"et",name:Us(I)[0].getUrl().split("/").pop(),description:_.Rs(I,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EG(Us(I),"etjpg")}});
return{action:g,docs:e,viewToken:k,view:c||"et",v2Translated:!0}},cZB=function(e,g,c,k){e=e.map(function(I){var J=I.getId().getId(),q=k["2"];
return{id:J,serviceId:q.type!=="gmail_themes"&&q.parent==="6226252643674576769"?"picasa":"static_themes",name:I.getName(),mimeType:_.Rs(I,7),type:Ru(I),description:_.Rs(I,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:I.getUrl(),embedUrl:I.getUrl(),thumbnails:EG(Us(I))}});
return{action:g,docs:e,viewToken:k,view:c||"photos",v2Translated:!0}},Obw=function(e,g){e=e.map(function(c){var k=_.Ml(c,HTw,27);
k=_.gr(k,1,_.TD,_.HH())[0];return{id:c.getId().getId(),serviceId:"contacts",mimeType:_.Rs(c,7),name:c.getName(),description:_.Rs(c,3),url:"mailto:"+k,thumbnail:[{url:_.Rs(c,11)}],email:k}});
return{action:g,docs:e,view:"contacts",v2Translated:!0}},N3n=function(e){if(!e)return{};
var g=_.Rs(e,3);g=g&&JSON.parse(g)||{};return{0:_.Rs(e,1),1:_.Rs(e,2),2:g}},EG=function(e,g){g=g===void 0?"":g;
if(!e.length)return null;g=="etjpg"&&(e=e.filter(function(c){return c.getUrl().includes("w1200-h300")}));
return e.map(function(c){return{url:c.getUrl(),height:c.getHeight(),width:c.getWidth(),type:g}})},JZZ=function(e){return{isAttachment:e.some(function(g){return _.r0(g,31)})}},vQn=function(e){var g,c={id:(g=e.getId())==null?void 0:g.getId(),
serviceId:q4Z(e),mimeType:_.Rs(e,7),name:e.getName(),type:Ru(e),sizeBytes:Number(JjI(e)),description:_.Rs(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:EG(Us(e)),isNew:!0};if(g=_.Ml(e,H9,30)){c.dataUrl=_.Rs(g,1)||null;a:{var k=_.Ml(e,H9,30);switch(_.EU(k,3)){case 9:k=_.hP(k,tvk,2,Q2);k={remoteRefs:k&&_.Rs(k,1)};break a;case 10:case 15:k=_.hP(k,Vv1,4,Q2);var I=Us(e);k={photo_id:k&&_.Rs(k,1),media_key:e.getId().getId(),media_type:_.EU(e,6)===1?1:2,image_url:I&&
I[0].getUrl(),width:I&&String(I[0].getWidth()),height:I&&String(I[0].getHeight())};break a}k=null}c.uploadMetadata=k;c.uploadId=_.Rs(g,9)||null;c.uploadState=LVM(g)||null}(k=g&&_.hP(g,Vv1,4,Q2))&&(c.id=_.Rs(k,1));(k=g&&_.hP(g,BD4,5,Q2))&&(c.contentId=_.Rs(k,1));(k=g&&_.hP(g,orZ,7,Q2))&&(c.contentId=_.Rs(k,1));(k=g&&_.hP(g,ZTu,6,Q2))&&(c.contentId=_.Rs(k,1));(g==null?void 0:_.EU(g,3))===1&&(c.mediaKey=e.getId().getId());return c},q4Z=function(e){var g;
switch(((g=_.Ml(e,H9,30))==null?void 0:_.EU(g,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},Ru=function(e){switch(_.EU(e,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 _.Rs(e,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},LVM=function(e){switch(e==null?void 0:_.EU(e,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 Rkw,rZM,aHu,nQv;_.EQY=function(e,g){var c=g||{};g=c.document||document;var k=_.QP(e).toString(),I=(new W9(g)).createElement("SCRIPT"),J={script_:I,timeout_:void 0},q=new ay(rZM,J),L=null,n=c.timeout!=null?c.timeout:5E3;n>0&&(L=window.setTimeout(function(){aHu(I,!0);q.errback(new nQv(1,"Timeout reached for loading script "+k))},n),J.timeout_=L);
I.onload=I.onreadystatechange=function(){I.readyState&&I.readyState!="loaded"&&I.readyState!="complete"||(aHu(I,c.cleanupWhenDone||!1,L),q.callback(null))};
I.onerror=function(){aHu(I,!0,L);q.errback(new nQv(0,"Error while loading script "+k))};
J=c.attributes||{};_.n0.extend(J,{type:"text/javascript",charset:"UTF-8"});oU4(I,J);_.Eh(I,e);Rkw(g).appendChild(I);return q};
Rkw=function(e){var g=gD("HEAD",e);return g&&g.length!==0?g[0]:e.documentElement};
rZM=function(){if(this&&this.script_){var e=this.script_;e&&e.tagName=="SCRIPT"&&aHu(e,!0,this.timeout_)}};
aHu=function(e,g,c){c!=null&&_.kp.clearTimeout(c);e.onload=function(){};
e.onerror=function(){};
e.onreadystatechange=function(){};
g&&window.setTimeout(function(){_.ev(e)},0)};
nQv=function(e,g){var c="Jsloader error (code #"+e+")";g&&(c+=": "+g);_.eK.call(this,c);this.code=e};
_.Um(nQv,_.eK);var WVZ=_.Ti(["https://apis.google.com/js/api.js"]),bMZ=_.jw(WVZ),xRB=function(e,g,c){c=c===void 0?{}:c;var k=!1,I=hkI(e,g,c).then(function(q){k=!0;return q}),J=_.y_Z(5E3).then(function(){return k?hkI(e,g,c):XPk(g,c).then(function(q){return GH1(q,e)})});
return dNM([I,J])},hkI=function(e,g,c){c=c===void 0?{}:c;
return DRw(g,c).then(function(k){return GH1(k,e)})},GH1=function(e,g){var c=_.wV(g,"gapi.")?g.slice(5):g;
return e[c]?_.No(e[c]):new _.Il(function(k,I){var J=bV(function(){I(Error("Za"))},3E4);
e.load(g,{callback:function(){_.kp.clearTimeout(J);k(e[c])},
onerror:function(q){_.kp.clearTimeout(J);I(q)}})})},DRw=function(e,g){g=g===void 0?{}:g;
return e.gapi&&e.gapi.load?_.No(e.gapi):XPk(e,g)},XPk=function(e,g){g=g===void 0?{}:g;
return _.EQY(bMZ,{document:e.document,attributes:g}).then(function(){return e.gapi})},$Rk=function(){};
$Rk.prototype.load=function(e,g,c){g=g===void 0?window:g;c=c===void 0?{}:c;var k=Date.now();return xRB(e,g,c).then(function(I){var J=Date.now();return{library:I,loadStartMs:k,loadEndMs:J}},function(I){throw I instanceof Error?I:Error(String(I));
})};var qnq=function(){_.Iy.call(this);this.gapiLoader_=new $Rk;this.origin_=null;this.gapiPickerIframeResolver_=_.i6();this.gapiIframesResolver_=_.i6();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.Y(qnq,_.Iy);var Y4n=function(e,g){var c=c===void 0?{}:c;var k=_.Q0("gapi.iframes",g);return k?(e=Date.now(),_.No({library:k,loadStartMs:e,loadEndMs:e})):e.gapiLoader_.load("gapi.iframes",g,c)},fHq=function(e,g,c,k,I,J){var q=!1;
q=q===void 0?!1:q;Y4n(e,WH(g.ownerDocument)).then(function(L){var n=L.library;e.gapiIframesResolver_.resolve(n);L=e.gapiPickerIframeResolver_;var R=L.resolve,W=q;W=W===void 0?!1:W;var b={};b["host-message-handler"]=c;e.hostMessageHandlerInternal_=b;var h=_.zs(k);h=_.zs(h);h=_.QA(_.HN(_.zS(new _.mt,h.scheme_),h.JSC$10342_domain_),h.JSC$10342_port_).toString();e.origin_=h;h=(new o24).setUrl(k);h.JSC$10357_obj_.where=g;h.JSC$10357_obj_.allowPost=W;h.JSC$10357_obj_.messageHandlers=b;W=_.Q0("makeWhiteListIframesFilter",
n)([e.origin_]);h.JSC$10357_obj_.messageHandlersFilter=W;I!=null&&(h.JSC$10357_obj_.id=I);J!=null&&(h.JSC$10357_obj_.rpctoken=J);W=Ufw(h);W.JSC$10354_obj_.style={display:"block","min-width":"100%",width:"1px"};W.JSC$10354_obj_.height="100%";Ufw(h).value().allow="camera 'src' "+e.origin_;n=n.getContext().openChild(h.value());R.call(L,n)},function(L){e.gapiIframesResolver_.reject(L);
e.gapiPickerIframeResolver_.reject(L)});
return e.gapiPickerIframeResolver_.promise},jYw=function(e,g){return _.ER([e.gapiIframesResolver_.promise,
e.gapiPickerIframeResolver_.promise]).then(function(c){var k=_.w(c);c=k.next().value;return(k=k.next().value)?k.send("picker-message-handler",g,void 0,_.Q0("makeWhiteListIframesFilter",c)([e.origin_])):_.q2(Error("$a"))})};
qnq.prototype.disposeInternal=function(){iMs(this);_.Iy.prototype.disposeInternal.call(this)};
var iMs=function(e){e.gapiPickerIframeResolver_.promise.then(function(g){g&&(g.unregister("host-message-handler"),delete e.hostMessageHandlerInternal_["host-message-handler"])})};var P01=function(){this.nextId=0};var pP4=function(e,g){switch(e.action){case "select-contacts":e=mRZ(e.contacts);break;case "visibility":e=e.visible;var c=new B9;e=_.GX(c,1,7).setVisible(e);c={};c["iframe-command"]=e.serialize();e=c;break;default:e=null}return e?jYw(g,e):_.No()},mRZ=function(e){if(!e||e.length==0)return null;
var g=new B9;_.GX(g,1,11);var c=new P01;e.forEach(function(k){if(k.email){var I=new w0;I=_.pL(I,2,k.name?k.name:k.email);var J=new HTw;k=_.CS6(J,1,_.iS,k.email,_.TD);k=_.sx(I,27,k);I=new uwY;J=":"+(c.nextId++).toString(36);I=_.pL(I,1,J);I=_.GX(I,2,12);k=_.sx(k,1,I)}else k=null;k&&LB(g,7,w0,k)});
e={};e["iframe-command"]=g.serialize();return e};_.TYk=function(){if($Mq){var e=/Windows NT ([0-9.]+)/;return(e=e.exec(_.xp()))?e[1]:"0"}return _.DMZ?(e=/1[0|1][_.][0-9_.]+/,(e=e.exec(_.xp()))?e[0].replace(/_/g,"."):"10"):VD8?(e=/Android\s+([^\);]+)(\)|;)/,(e=e.exec(_.xp()))?e[1]:""):f0Y||jxB||ig1?(e=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(e=e.exec(_.xp()))?e[1].replace(/_/g,"."):""):""}();var WR;WR=function(e){return(e=e.exec(_.xp()))?e[1]:""};
_.lHM=function(){if(_.S$)return WR(/Firefox\/([0-9.]+)/);if(_.B2||Vr||XqI)return sxZ;if(_.yG){if(_.lW()||_.iCV()){var e=WR(/CriOS\/([0-9.]+)/);if(e)return e}return WR(/Chrome\/([0-9.]+)/)}if(_.Tn&&!_.lW())return WR(/Version\/([0-9.]+)/);if(jqz||iUC){if(e=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.xp()))return e[1]+"."+e[2]}else if(Hgw)return(e=WR(/Android\s+([0-9.]+)/))?e:WR(/Version\/([0-9.]+)/);return""}();_.H2(Q$p);Q$p.prototype.nextId_=0;_.bN=function(e){return":"+(e.nextId_++).toString(36)};var mu=function(e){_.jv.call(this);this.JSC$10452_dom_=e||Jd();this.JSC$10452_id_=null;this.inDocument_=!1;this.JSC$10452_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Um(mu,_.jv);mu.prototype.idGenerator_=Q$p.getInstance();mu.prototype.getId=function(){return this.JSC$10452_id_||(this.JSC$10452_id_=_.bN(this.idGenerator_))};
mu.prototype.getElement=function(){return this.JSC$10452_element_};
var hU=function(e){e.googUiComponentHandler_||(e.googUiComponentHandler_=new _.wD(e));return e.googUiComponentHandler_},AZw=function(e,g){if(e==g)throw Error("ab");
var c;if(c=g&&e.parent_&&e.JSC$10452_id_){c=e.parent_;var k=e.JSC$10452_id_;c=c.childIndex_&&k?_.n0.get(c.childIndex_,k)||null:null}if(c&&e.parent_!=g)throw Error("ab");e.parent_=g;mu.superClass_.setParentEventTarget.call(e,g)};
mu.prototype.setParentEventTarget=function(e){if(this.parent_&&this.parent_!=e)throw Error("bb");mu.superClass_.setParentEventTarget.call(this,e)};
mu.prototype.JSC$10454_createDom=function(){this.JSC$10452_element_=this.JSC$10452_dom_.createElement("DIV")};
mu.prototype.render=function(e){sYu(this,e)};
var sYu=function(e,g,c){if(e.inDocument_)throw Error("cb");e.JSC$10452_element_||e.JSC$10454_createDom();g?g.insertBefore(e.JSC$10452_element_,c||null):e.JSC$10452_dom_.JSC$9636_document_.body.appendChild(e.JSC$10452_element_);e.parent_&&!e.parent_.inDocument_||e.enterDocument()};
_.v=mu.prototype;_.v.decorate=function(e){if(this.inDocument_)throw Error("cb");if(e&&this.canDecorate(e)){this.wasDecorated_=!0;var g=_.be(e);this.JSC$10452_dom_&&this.JSC$10452_dom_.JSC$9636_document_==g||(this.JSC$10452_dom_=Jd(e));this.decorateInternal(e);this.enterDocument()}else throw Error("db");};
_.v.canDecorate=function(){return!0};
_.v.decorateInternal=function(e){this.JSC$10452_element_=e};
_.v.enterDocument=function(){this.inDocument_=!0;FVu(this,function(e){!e.inDocument_&&e.getElement()&&e.enterDocument()})};
_.v.exitDocument=function(){FVu(this,function(e){e.inDocument_&&e.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.v.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);FVu(this,function(e){e.dispose()});
!this.wasDecorated_&&this.JSC$10452_element_&&_.ev(this.JSC$10452_element_);this.parent_=this.model_=this.JSC$10452_element_=this.childIndex_=this.children_=null;mu.superClass_.disposeInternal.call(this)};
_.v.getModel=function(){return this.model_};
_.v.addChild=function(e,g){var c=this.children_?this.children_.length:0;if(e.inDocument_&&(g||!this.inDocument_))throw Error("cb");if(c<0||c>(this.children_?this.children_.length:0))throw Error("eb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);e.parent_==this?(_.n0.set(this.childIndex_,e.getId(),e),_.UC(this.children_,e)):_.n0.add(this.childIndex_,e.getId(),e);AZw(e,this);_.sAt(this.children_,c,0,e);e.inDocument_&&this.inDocument_&&e.parent_==this?(g=this.getContentElement(),
(g.childNodes[c]||null)!=e.getElement()&&(e.getElement().parentElement==g&&g.removeChild(e.getElement()),c=g.childNodes[c]||null,g.insertBefore(e.getElement(),c))):g?(this.JSC$10452_element_||this.JSC$10454_createDom(),c=this.children_?this.children_[c+1]||null:null,sYu(e,this.getContentElement(),c?c.JSC$10452_element_:null)):this.inDocument_&&!e.inDocument_&&e.JSC$10452_element_&&e.JSC$10452_element_.parentNode&&e.JSC$10452_element_.parentNode.nodeType==1&&e.enterDocument()};
_.v.getContentElement=function(){return this.JSC$10452_element_};
var FVu=function(e,g){e.children_&&e.children_.forEach(g,void 0)};
mu.prototype.removeChild=function(e,g){if(e){var c=typeof e==="string"?e:e.getId();e=this.childIndex_&&c?_.n0.get(this.childIndex_,c)||null:null;c&&e&&(_.n0.remove(this.childIndex_,c),_.UC(this.children_,e),g&&(e.exitDocument(),e.JSC$10452_element_&&_.ev(e.JSC$10452_element_)),AZw(e,null))}if(!e)throw Error("fb");return e};_.Um(UlA,HfW);_.Um(o16,HfW);var VnU;_.n0.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var udw;_.XG=function(e,g,c){_.jv.call(this);this.target=e;this.handle=g||e;this.limits=c||new sy(NaN,NaN,NaN,NaN);this.JSC$10457_document_=_.be(e);this.JSC$10457_eventHandler_=new _.wD(this);_.yh(this,this.JSC$10457_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;_.iK(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=udw};
_.Um(_.XG,_.jv);udw=_.kp.document&&_.kp.document.documentElement&&!!_.kp.document.documentElement.setCapture&&!!_.kp.document.releaseCapture;_.dR4=function(e,g){e.hysteresisDistanceSquared_=Math.pow(g,2)};
_.v=_.XG.prototype;_.v.setEnabled=function(e){this.enabled_=e};
_.v.disposeInternal=function(){_.XG.superClass_.disposeInternal.call(this);_.a0(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10457_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10457_document_.releaseCapture();this.handle=this.target=null};
_.v.startDrag=function(e){var g=e.type=="mousedown";if(!this.enabled_||this.dragging_||g&&(!e.isButton(0)||_.DMZ&&e.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new G3("start",this,e.clientX,e.clientY,e)))this.dragging_=!0,g&&e.preventDefault();else return;else g&&e.preventDefault();g=this.JSC$10457_document_;var c=g.documentElement,k=!this.useSetCapture_;this.JSC$10457_eventHandler_.listen(g,["touchmove","mousemove"],this.handleMove_,
{capture:k,passive:!1});this.JSC$10457_eventHandler_.listen(g,["touchend","mouseup"],this.endDrag,k);this.useSetCapture_?(c.setCapture(!1),this.JSC$10457_eventHandler_.listen(c,"losecapture",this.endDrag)):this.JSC$10457_eventHandler_.listen(WH(g),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10457_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,k);this.clientX=this.startX=e.clientX;this.clientY=this.startY=e.clientY;this.screenX=e.screenX;this.screenY=e.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=I4(Jd(this.JSC$10457_document_))}};
_.v.endDrag=function(e,g){this.JSC$10457_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10457_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new G3("end",this,e.clientX,e.clientY,e,zku(this,this.deltaX),HM1(this,this.deltaY),g||e.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.v.handleMove_=function(e){if(this.enabled_){var g=e.clientX-this.clientX,c=e.clientY-this.clientY;this.clientX=e.clientX;this.clientY=e.clientY;this.screenX=e.screenX;this.screenY=e.screenY;if(!this.dragging_){var k=this.startX-this.clientX,I=this.startY-this.clientY;if(k*k+I*I>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new G3("start",this,e.clientX,e.clientY,e)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(e);return}}c=QYY(this,g,c);g=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new G3("beforedrag",
this,e.clientX,e.clientY,e,g,c))&&(URw(this,e,g,c),e.preventDefault())}};
var QYY=function(e,g,c){var k=I4(Jd(e.JSC$10457_document_));g+=k.x-e.pageScroll.x;c+=k.y-e.pageScroll.y;e.pageScroll=k;e.deltaX+=g;e.deltaY+=c;return new _.pr(zku(e,e.deltaX),HM1(e,e.deltaY))};
_.XG.prototype.onScroll_=function(e){var g=QYY(this,0,0);e.clientX=this.clientX;e.clientY=this.clientY;URw(this,e,g.x,g.y)};
var URw=function(e,g,c,k){e.target.style.left=c+"px";e.target.style.top=k+"px";e.dispatchEvent(new G3("drag",e,g.clientX,g.clientY,g,c,k))},zku=function(e,g){var c=e.limits;
e=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(e!=null?e+c:Infinity,Math.max(e!=null?e:-Infinity,g))},HM1=function(e,g){var c=e.limits;
e=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(e!=null?e+c:Infinity,Math.max(e!=null?e:-Infinity,g))};
_.XG.prototype.isDragging=function(){return this.dragging_};
var G3=function(e,g,c,k,I,J,q){_.Bt.call(this,e);this.clientX=c;this.clientY=k;this.browserEvent=I;this.left=J!==void 0?J:g.deltaX;this.top=q!==void 0?q:g.deltaY};
_.Um(G3,_.Bt);var xb=function(e){this.JSC$10464_map_=new Map;var g=arguments.length;if(g>1){if(g%2)throw Error("na");for(var c=0;c<g;c+=2)this.set(arguments[c],arguments[c+1])}else e&&this.addAll(e)};
_.v=xb.prototype;_.v.getCount=function(){return this.JSC$10464_map_.size};
_.v.getValues=function(){return Array.from(this.JSC$10464_map_.values())};
_.v.getKeys=function(){return Array.from(this.JSC$10464_map_.keys())};
_.v.containsKey=function(e){return this.JSC$10464_map_.has(e)};
_.v.containsValue=function(e){return this.getValues().some(function(g){return g==e})};
_.v.equals=function(e,g){var c=this;g=g===void 0?function(k,I){return k===I}:g;
return this===e?!0:this.JSC$10464_map_.size!=e.getCount()?!1:this.getKeys().every(function(k){return g(c.JSC$10464_map_.get(k),e.get(k))})};
_.v.isEmpty=function(){return this.JSC$10464_map_.size==0};
_.v.clear=function(){this.JSC$10464_map_.clear()};
_.v.remove=function(e){return this.JSC$10464_map_.delete(e)};
_.v.get=function(e,g){return this.JSC$10464_map_.has(e)?this.JSC$10464_map_.get(e):g};
_.v.set=function(e,g){this.JSC$10464_map_.set(e,g);return this};
_.v.addAll=function(e){if(e instanceof xb){e=_.w(e.JSC$10464_map_);for(var g=e.next();!g.done;g=e.next()){var c=_.w(g.value);g=c.next().value;c=c.next().value;this.JSC$10464_map_.set(g,c)}}else if(e)for(e=_.w(Object.entries(e)),g=e.next();!g.done;g=e.next())c=_.w(g.value),g=c.next().value,c=c.next().value,this.JSC$10464_map_.set(g,c)};
_.v.forEach=function(e,g){var c=this;g=g===void 0?this:g;this.JSC$10464_map_.forEach(function(k,I){return e.call(g,k,I,c)})};
_.v.clone=function(){return new xb(this)};(function(){for(var e=["ms","moz","webkit","o"],g,c=0;g=e[c]&&!_.kp.requestAnimationFrame;++c)_.kp.requestAnimationFrame=_.kp[g+"RequestAnimationFrame"],_.kp.cancelAnimationFrame=_.kp[g+"CancelAnimationFrame"]||_.kp[g+"CancelRequestAnimationFrame"];if(!_.kp.requestAnimationFrame){var k=0;_.kp.requestAnimationFrame=function(I){var J=(new Date).getTime(),q=Math.max(0,16-(J-k));k=J+q;return _.kp.setTimeout(function(){I(J+q)},q)};
_.kp.cancelAnimationFrame||(_.kp.cancelAnimationFrame=function(I){clearTimeout(I)})}})();
var B1p=[[],[]],N1v=0,S2v=!1,tnV=0;var oQI=_.Ti(["about:blank"]),ZM4=_.Ti(["javascript:undefined"]),VrB=_.jw(oQI);_.QP(VrB);var trn=_.jw(ZM4);_.QP(trn);_.Um(Pt,_.jv);Pt.prototype.handleEvent=function(e){var g=new _.qn(e.event_);g.type=e.type=="focusin"||e.type=="focus"?"focusin":"focusout";this.dispatchEvent(g)};
Pt.prototype.disposeInternal=function(){Pt.superClass_.disposeInternal.call(this);I6(this.listenKeyIn_);I6(this.listenKeyOut_);delete this.JSC$10470_element_};_.Um(pT,mu);_.v=pT.prototype;_.v.focusHandler_=null;_.v.visible_=!1;_.v.bgEl_=null;_.v.bgIframeEl_=null;_.v.tabCatcherElement_=null;_.v.backwardTabWrapInProgress_=!1;_.v.getCssClass=function(){return"goog-modalpopup"};
_.v.getBackgroundElement=function(){return this.bgEl_};
_.v.JSC$10454_createDom=function(){pT.superClass_.JSC$10454_createDom.call(this);var e=this.getElement(),g=Wz(this.getCssClass()).split(" ");sR(e,g);e.tabIndex=0;_.ZL(e,!1);BYq(this);NYI(this)};
var BYq=function(e){if(e.useIframeMask_&&!e.bgIframeEl_){var g=e.JSC$10452_dom_.JSC$9638_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.vA(g,VrB);e.bgIframeEl_=g;e.bgIframeEl_.className=e.getCssClass()+"-bg";_.ZL(e.bgIframeEl_,!1);bTv(e.bgIframeEl_,0)}e.bgEl_||(e.bgEl_=e.JSC$10452_dom_.JSC$9638_createDom("DIV",e.getCssClass()+"-bg"),_.ZL(e.bgEl_,!1))},NYI=function(e){e.tabCatcherElement_||(e.tabCatcherElement_=e.JSC$10452_dom_.createElement("SPAN"),_.ZL(e.tabCatcherElement_,
!1),e.tabCatcherElement_.tabIndex=0,e.tabCatcherElement_.style.position="absolute")};
_.v=pT.prototype;_.v.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.v.canDecorate=function(e){return!!e&&e.tagName=="DIV"};
_.v.decorateInternal=function(e){pT.superClass_.decorateInternal.call(this,e);e=Wz(this.getCssClass()).split(" ");sR(this.getElement(),e);BYq(this);NYI(this);this.getElement().tabIndex=0;_.ZL(this.getElement(),!1)};
_.v.enterDocument=function(){this.bgIframeEl_&&_.$E(this.bgIframeEl_,this.getElement());_.$E(this.bgEl_,this.getElement());pT.superClass_.enterDocument.call(this);_.YE(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Pt(this.JSC$10452_dom_.JSC$9636_document_);hU(this).listen(this.focusHandler_,"focusin",this.onFocus);S4n(this,!1)};
_.v.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Fm(this.focusHandler_);pT.superClass_.exitDocument.call(this);_.ev(this.bgIframeEl_);_.ev(this.bgEl_);_.ev(this.tabCatcherElement_)};
_.v.setVisible=function(e){if(e!=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_&&S4n(this,e),e){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10452_dom_.JSC$9636_document_.activeElement}catch(I){}this.updateModalAndBackground_();hU(this).listen(this.JSC$10452_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10452_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);yZM(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Wt(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){hU(this).unlisten(this.JSC$10452_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10452_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Wt(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var g=this.JSC$10452_dom_,c=g.JSC$9636_document_.body,k=g.JSC$9636_document_.activeElement||c;if(!this.lastFocus_||this.lastFocus_==c){this.lastFocus_=null;break a}(k==c||g.contains(this.getElement(),k))&&this.lastFocus_.focus()}catch(I){}this.lastFocus_=
null}}};
var S4n=function(e,g){e.modalAriaVisibilityHelper_||(e.modalAriaVisibilityHelper_=new OfC(e.JSC$10452_element_,e.JSC$10452_dom_));e=e.modalAriaVisibilityHelper_;if(g){e.hiddenElements_||(e.hiddenElements_=[]);g=e.JSC$10473_dom_.getChildren(e.JSC$10473_dom_.JSC$9636_document_.body);for(var c=0;c<g.length;c++){var k=g[c],I;if(I=k!=e.JSC$10473_element_)I=k.getAttribute("aria-hidden"),I=!(I==null||I==void 0?0:String(I));I&&(fT(k,"hidden",!0),e.hiddenElements_.push(k))}}else if(e.hiddenElements_){for(g=
0;g<e.hiddenElements_.length;g++)e.hiddenElements_[g].removeAttribute("aria-hidden");e.hiddenElements_=null}};
pT.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var yZM=function(e,g){e.bgIframeEl_&&_.ZL(e.bgIframeEl_,g);e.bgEl_&&_.ZL(e.bgEl_,g);_.ZL(e.getElement(),g);_.ZL(e.tabCatcherElement_,g)};
_.v=pT.prototype;_.v.onShow=function(){this.dispatchEvent("show")};
_.v.onHide=function(){yZM(this,!1);this.dispatchEvent("hide")};
_.v.isVisible=function(){return this.visible_};
_.v.focus=function(){this.focusElement_()};
_.v.resizeBackground_=function(){this.bgIframeEl_&&_.ZL(this.bgIframeEl_,!1);this.bgEl_&&_.ZL(this.bgEl_,!1);var e=this.JSC$10452_dom_.JSC$9636_document_;var g=_.kU(WH(this.JSC$10452_dom_.JSC$9636_document_)||window);var c=Math.max(g.width,Math.max(e.body.scrollWidth,e.documentElement.scrollWidth));e=Math.max(g.height,Math.max(e.body.scrollHeight,e.documentElement.scrollHeight));this.bgIframeEl_&&(_.ZL(this.bgIframeEl_,!0),_.nrn(this.bgIframeEl_,c,e));this.bgEl_&&(_.ZL(this.bgEl_,!0),_.nrn(this.bgEl_,
c,e))};
_.v.reposition=function(){var e;if(_.aLB(this.getElement())=="fixed")var g=e=0;else g=I4(this.JSC$10452_dom_),e=g.x,g=g.y;var c=Erk(this.getElement());var k=_.kU(WH(this.JSC$10452_dom_.JSC$9636_document_)||window);e=Math.max(e+k.width/2-c.width/2,0);g=Math.max(g+k.height/2-c.height/2,0);mn(this.getElement(),e,g);mn(this.tabCatcherElement_,e,g)};
_.v.onFocus=function(e){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():e.target==this.tabCatcherElement_&&bV(this.focusElement_,0,this)};
_.v.focusElement_=function(){try{this.getElement().focus()}catch(e){}};
_.v.disposeInternal=function(){_.Fm(this.popupShowTransition_);this.popupShowTransition_=null;_.Fm(this.popupHideTransition_);this.popupHideTransition_=null;_.Fm(this.bgShowTransition_);this.bgShowTransition_=null;_.Fm(this.bgHideTransition_);this.bgHideTransition_=null;pT.superClass_.disposeInternal.call(this)};_.Um(lK,pT);_.v=lK.prototype;_.v.escapeToCancel_=!0;_.v.hasTitleCloseButton_=!0;_.v.modal_=!0;_.v.draggable_=!0;_.v.backgroundElementOpacity_=.5;_.v.title_="";_.v.JSC$10485_dragger_=null;_.v.JSC$10485_disposeOnHide_=!1;_.v.titleEl_=null;_.v.titleTextEl_=null;_.v.titleTextId_=null;_.v.titleCloseEl_=null;_.v.contentEl_=null;_.v.buttonEl_=null;_.v.getCssClass=function(){return this.JSC$10483_class_};
_.v.setTitle=function(e){this.title_=e;this.titleTextEl_&&_.j9(this.titleTextEl_,e)};
_.v.getTitle=function(){return this.title_};
_.v.getContent=function(){return""};
_.v.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var KV4=function(e){e.getElement()||e.render();return e.getElement()};
lK.prototype.getBackgroundElement=function(){this.getElement()||this.render();return lK.superClass_.getBackgroundElement.call(this)};
var OM4=function(e,g){e.backgroundElementOpacity_=g;e.getElement()&&(g=e.getBackgroundElement())&&bTv(g,e.backgroundElementOpacity_)};
lK.prototype.setDraggable=function(e){this.draggable_=e;Mrq(this,e&&this.inDocument_)};
lK.prototype.handleDrag=function(){};
var Mrq=function(e,g){var c=Wz(e.JSC$10483_class_+"-title-draggable").split(" ");e.getElement()&&(g?sR(e.titleEl_,c):t6n(e.titleEl_,c));g&&!e.JSC$10485_dragger_?(g=new _.XG(e.getElement(),e.titleEl_),e.JSC$10485_dragger_=g,sR(e.titleEl_,c),_.iK(e.JSC$10485_dragger_,"start",e.setDraggerLimits_,!1,e),_.iK(e.JSC$10485_dragger_,"drag",e.handleDrag,!1,e)):!g&&e.JSC$10485_dragger_&&(e.JSC$10485_dragger_.dispose(),e.JSC$10485_dragger_=null)};
_.v=lK.prototype;
_.v.JSC$10454_createDom=function(){lK.superClass_.JSC$10454_createDom.call(this);var e=this.getElement(),g=this.JSC$10452_dom_;this.titleTextId_=this.getId();var c=this.getId()+".contentEl";this.titleEl_=g.JSC$9638_createDom("DIV",this.JSC$10483_class_+"-title",this.titleTextEl_=g.JSC$9638_createDom("SPAN",{className:this.JSC$10483_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=g.JSC$9638_createDom("SPAN",this.JSC$10483_class_+"-title-close"));NNv(e,this.titleEl_,this.contentEl_=
g.JSC$9638_createDom("DIV",{className:this.JSC$10483_class_+"-content",id:c}),this.buttonEl_=g.JSC$9638_createDom("DIV",this.JSC$10483_class_+"-buttons"));ZfC(this.titleTextEl_,"heading");ZfC(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;fT(this.titleCloseEl_,"label","Close");ZfC(e,"dialog");fT(e,"labelledby",this.titleTextId_||"");_.ZL(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(e=this.buttons_,e.JSC$10486_element_=this.buttonEl_,e.render());_.ZL(this.buttonEl_,!!this.buttons_);
OM4(this,this.backgroundElementOpacity_)};
_.v.decorateInternal=function(e){lK.superClass_.decorateInternal.call(this,e);e=this.getElement();var g=this.JSC$10483_class_+"-content";this.contentEl_=b2(document,null,g,e)[0];this.contentEl_||(this.contentEl_=this.JSC$10452_dom_.JSC$9638_createDom("DIV",g),e.appendChild(this.contentEl_));g=this.JSC$10483_class_+"-title";var c=this.JSC$10483_class_+"-title-text",k=this.JSC$10483_class_+"-title-close";(this.titleEl_=b2(document,null,g,e)[0])?(this.titleTextEl_=b2(document,null,c,this.titleEl_)[0],
this.titleCloseEl_=b2(document,null,k,this.titleEl_)[0]):(this.titleEl_=this.JSC$10452_dom_.JSC$9638_createDom("DIV",g),e.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=vrB(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.XW("SPAN",{className:c,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;fT(e,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10452_dom_.JSC$9638_createDom("SPAN",k),this.titleEl_.appendChild(this.titleCloseEl_));_.ZL(this.titleCloseEl_,this.hasTitleCloseButton_);g=this.JSC$10483_class_+"-buttons";(this.buttonEl_=b2(document,null,g,e)[0])?(this.buttons_=new Ts(this.JSC$10452_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10452_dom_.JSC$9638_createDom("DIV",g),e.appendChild(this.buttonEl_),this.buttons_&&(e=this.buttons_,e.JSC$10486_element_=this.buttonEl_,e.render()),_.ZL(this.buttonEl_,
!!this.buttons_));OM4(this,this.backgroundElementOpacity_)};
_.v.enterDocument=function(){lK.superClass_.enterDocument.call(this);hU(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);hU(this).listen(this.buttonEl_,"click",this.onButtonClick_);Mrq(this,this.draggable_);hU(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var e=this.getElement();ZfC(e,"dialog");this.titleTextEl_.id!==""&&fT(e,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){e=this.JSC$10452_dom_;
var g=this.getBackgroundElement();e.removeNode(this.bgIframeEl_);e.removeNode(g)}this.isVisible()&&S4n(this,!1)}};
_.v.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Mrq(this,!1);lK.superClass_.exitDocument.call(this)};
_.v.setVisible=function(e){e!=this.isVisible()&&(this.inDocument_||this.render(),lK.superClass_.setVisible.call(this,e))};
_.v.onShow=function(){lK.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.v.onHide=function(){lK.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10485_disposeOnHide_&&this.dispose()};
_.v.setDraggerLimits_=function(){var e=this.JSC$10452_dom_.JSC$9636_document_,g=_.kU(WH(e)||window),c=Math.max(e.body.scrollWidth,g.width);e=Math.max(e.body.scrollHeight,g.height);var k=Erk(this.getElement());_.aLB(this.getElement())=="fixed"?this.JSC$10485_dragger_.limits=new sy(0,0,Math.max(0,g.width-k.width),Math.max(0,g.height-k.height)):this.JSC$10485_dragger_.limits=new sy(0,0,c-k.width,e-k.height)};
_.v.onTitleCloseClick_=function(){C0s(this)};
var C0s=function(e){if(e.hasTitleCloseButton_){var g=e.buttons_,c=g&&g.cancelButton_;c?(g=g.get(c),e.dispatchEvent(new D2(c,g))&&e.setVisible(!1)):e.setVisible(!1)}},eow=function(e){e.hasTitleCloseButton_=!1;
e.titleCloseEl_&&_.ZL(e.titleCloseEl_,e.hasTitleCloseButton_)};
lK.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;lK.superClass_.disposeInternal.call(this)};
lK.prototype.onButtonClick_=function(e){a:{for(e=e.target;e!=null&&e!=this.buttonEl_;){if(e.tagName=="BUTTON")break a;e=e.parentNode}e=null}if(e&&!e.disabled){e=e.name;var g=this.buttons_.get(e);this.dispatchEvent(new D2(e,g))&&this.setVisible(!1)}};
lK.prototype.onKey_=function(e){var g=!1,c=!1,k=this.buttons_,I=e.target;if(e.type=="keydown")if(this.escapeToCancel_&&e.keyCode==27){var J=k&&k.cancelButton_;I=I.tagName=="SELECT"&&!I.disabled;J&&!I?(c=!0,g=k.get(J),g=this.dispatchEvent(new D2(J,g))):I||(g=!0)}else{if(e.keyCode==9&&e.shiftKey&&I==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(W){}bV(this.resetBackwardTabWrap_,0,this)}}else if(e.keyCode==13){if(I.tagName=="BUTTON"&&!I.disabled)J=I.name;
else if(I==this.titleCloseEl_)C0s(this);else if(k){var q=k.defaultButton_,L;if(L=q)a:{L=gD("BUTTON",k.JSC$10486_element_);for(var n,R=0;n=L[R];R++)if(n.name==q||n.id==q){L=n;break a}L=null}I=(I.tagName=="TEXTAREA"||I.tagName=="SELECT"||I.tagName=="A")&&!I.disabled;!L||L.disabled||I||(J=q)}J&&k&&(c=!0,g=this.dispatchEvent(new D2(J,String(k.get(J)))))}else I!=this.titleCloseEl_||e.keyCode!=32&&e.key!=" "||C0s(this);if(g||c)e.stopPropagation(),e.preventDefault();g&&this.setVisible(!1)};
var D2=function(e,g){this.type="dialogselect";this.key=e;this.caption=g};
_.Um(D2,_.Bt);var Ts=function(e){xb.call(this);e||Jd();this.cancelButton_=this.JSC$10486_element_=this.defaultButton_=null};
_.Um(Ts,xb);_.v=Ts.prototype;_.v.clear=function(){xb.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.v.set=function(e,g,c,k){xb.prototype.set.call(this,e,g);c&&(this.defaultButton_=e);k&&(this.cancelButton_=e);return this};
_.v.addButton=function(e,g,c){return this.set(e.key,e.caption,g,c)};
_.v.render=function(){if(this.JSC$10486_element_){_.WA(this.JSC$10486_element_,nmg);var e=Jd(this.JSC$10486_element_);this.forEach(function(g,c){g=e.JSC$9638_createDom("BUTTON",{name:c},g);c==this.defaultButton_&&(g.className="goog-buttonset-default");this.JSC$10486_element_.appendChild(g)},this)}};
_.v.decorate=function(e){if(e&&e.nodeType==1){this.JSC$10486_element_=e;e=gD("BUTTON",this.JSC$10486_element_);for(var g,c,k,I=0;g=e[I];I++)if(c=g.name||g.id,k=vrB(g)||g.value,c){var J=I==0;this.set(c,k,J,g.name=="cancel");J&&_.PT(g,"goog-buttonset-default")}}};
_.v.getElement=function(){return this.JSC$10486_element_};
var Mng={key:"ok",caption:"OK"},CHg={key:"cancel",caption:"Cancel"},gfw={key:"yes",caption:"Yes"},crM={key:"no",caption:"No"},kjY={key:"save",caption:"Save"},I5I={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Ts).addButton(Mng,!0,!0),(new Ts).addButton(Mng,!0).addButton(CHg,!1,!0),(new Ts).addButton(gfw,!0).addButton(crM,!1,!0),(new Ts).addButton(gfw).addButton(crM,!0).addButton(CHg,!1,!0),(new Ts).addButton(I5I).addButton(kjY).addButton(CHg,!0,!0));_.Um(egt,lK);_.Um(gmp,Au);var Jrv=_.Ti(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),vf1=_.Ti(["//apis.google.com/js/rpc.js"]),akV=_.jw(Jrv),rtK=_.jw(vf1),kIC=null;var su=function(e,g){_.jv.call(this);this.JSC$10495_element_=e;e=_.yd(this.JSC$10495_element_)?this.JSC$10495_element_:this.JSC$10495_element_?this.JSC$10495_element_.body:null;this.isRtl_=!!e&&_.hEB(e);this.listenKey_=_.iK(this.JSC$10495_element_,_.er?"DOMMouseScroll":"mousewheel",this,g)};
_.Um(su,_.jv);su.prototype.handleEvent=function(e){var g=0,c=0,k=e.event_;k.type=="mousewheel"?(e=wmZ(-k.wheelDelta),k.wheelDeltaX!==void 0?(g=wmZ(-k.wheelDeltaX),c=wmZ(-k.wheelDeltaY)):c=e):(e=k.detail,e>100?e=3:e<-100&&(e=-3),k.axis!==void 0&&k.axis===k.HORIZONTAL_AXIS?g=e:c=e);typeof this.maxDeltaX_==="number"&&(g=_.Pc(g,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(c=_.Pc(c,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(g=-g);g=new qMY(e,k,g,c);this.dispatchEvent(g)};
var wmZ=function(e){return _.Cb&&(_.DMZ||Y7q)&&e%40!=0?e:e/40};
su.prototype.disposeInternal=function(){su.superClass_.disposeInternal.call(this);I6(this.listenKey_);this.listenKey_=null};
var qMY=function(e,g,c,k){_.qn.call(this,g);this.type="mousewheel";this.detail=e;this.deltaX=c;this.deltaY=k};
_.Um(qMY,_.qn);_.Q5=function(e){var g="instance_";if(e.instance_&&e.hasOwnProperty(g))return e.instance_;g=new e;return e.instance_=g};var LCC;var Ltv=_.Ti(["https://about:blank"]),rrw=_.Ti(['javascript:""']),a5Z=_.Ti(["about:blank"]);_.Um(tu,egt);_.v=tu.prototype;_.v.JSC$10503_url_="";_.v.JSC$10503_iframe_=null;_.v.iframeLoaded_=!1;_.v.loadedFired_=!1;_.v.callback_=function(){};
_.v.enterDocument=function(){tu.superClass_.enterDocument.call(this);vmq(this.getBackgroundElement(),hU(this))};
_.v.render=function(e){var g=this;tu.superClass_.render.call(this,e);this.useGapi_?Y4n(this.iframeManager_,window).then(function(){return nfs(g)}).then(null,function(){g.callback_({action:"error"})}):RoB(this);
this.JSC$10501_enablePopover_&&(this.getBackgroundElement().setAttribute("popover","manual"),KV4(this).setAttribute("popover","manual"))};
var nfs=function(e){var g=e.JSC$10452_dom_.JSC$9638_createDom("div",["picker-dialog-content","picker-frame"]);_.ZL(g,!1);e.getContentElement().appendChild(g);return fHq(e.iframeManager_,g,function(c){var k=OTq(c["iframe-command"]);switch(k.getCommand()){case 1:c=e.callback_;k=_.Ml(k,tL,2);var I="";switch(k.getStatus()){case 2:I="cancel";break;case 1:I="picked";break;case 3:I="error"}var J=_.z1(k,w0,2,_.HH(tz1));k=J.length===0?{action:I}:IHk(J,I,_.Ml(k,Sus,7));c.call(e,k);e.setVisible(!1);break;case 4:eow(e);
e.callback_({action:"loaded"});break;case 7:case 8:c=e.callback_;a:{I=k.getCommand();J=_.Ml(k,tL,2);switch(I){case 7:I="uploadScheduled";break;case 8:I="uploadStateChange";break;default:k={};break a}k=_.z1(J,w0,2,_.HH(tz1));if(k.length===0)k={action:I};else{var q=_.Ml(J,Sus,7);J=q&&_.Rs(q,1);q=N3n(q);k=KZv(k,I,J,q)}}c.call(e,k)}},e.JSC$10503_url_,e.targetId_,e.rpcToken_).then(function(c){e.JSC$10503_iframe_=c.getIframeEl();
Efv(e);_.ZL(e.JSC$10503_iframe_.parentElement,!0);_.PT(e.getElement(),"picker-dialog");WtZ(e);return c})},RoB=function(e){e.JSC$10503_iframe_=e.JSC$10452_dom_.JSC$9638_createDom("IFRAME",{id:e.targetId_,
name:e.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.vA(e.JSC$10503_iframe_,b_n(e));_.PT(e.getElement(),"picker-dialog");e.getContentElement().appendChild(e.JSC$10503_iframe_);hU(e).listen(e.JSC$10503_iframe_,"load",function(){return void Efv(e)});
e.JSC$10503_iframe_.src=e.JSC$10503_url_;WtZ(e)},Xm1=function(e){hoq(e,(0,_.Ju)(function(g){g.setAuthToken(this.targetId_,this.rpcToken_)},e))},WtZ=function(e){var g=_.Ht(_.zs(e.JSC$10503_url_),"title");
g&&e.setTitle(g)},b_n=function(e){return _.YCC("Internet Explorer")>=7&&_.wV(e.JSC$10503_url_,"https")?_.jw(Ltv):_.B2?_.jw(rrw):_.jw(a5Z)},Efv=function(e){Xm1(e);
e.iframeLoaded_=!0;e.JSC$10503_iframe_.tabIndex=0;e.isVisible()&&e.focus()};
tu.prototype.handleKeydown_=function(e){e.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),e.stopPropagation(),e.preventDefault())};
var hoq=function(e,g){var c=e.JSC$10501_gadgetsDomHelper_;Ikp(function(){g(c.getWindow().gadgets.rpc)},c)};
tu.prototype.setUrl=function(e){e=_.Qd(new _.mt(e),"rpcService",this.targetId_);_.Qd(e,"rpctoken",this.rpcToken_);_.Z7(e,"rpctoken="+this.rpcToken_);_.zS(e,"https");this.JSC$10503_url_=e.toString();this.JSC$10503_iframe_&&(this.JSC$10503_iframe_.src=this.JSC$10503_url_)};
var Gjw=function(e,g){e.callback_=g;hoq(e,(0,_.Ju)(function(c){c.register(this.targetId_,(0,_.Ju)(this.handlePickerAction_,this))},e))};
tu.prototype.handlePickerAction_=function(e){var g=e.action;g=="loaded"&&(this.loadedFired_=!0,xoB(this,new o16(this.isVisible())),DoI(this),eow(this),hU(this).unlisten(this.JSC$10452_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10503_iframe_.tabIndex=0);g!="picked"&&g!="cancel"||this.setVisible(!1);this.callback_(e)};
var DoI=function(e){e.JSC$10503_appId_&&xoB(e,new UlA(e.JSC$10503_appId_,window.location.protocol+"//"+window.location.host))};
tu.prototype.setRelayUrl=function(e){hoq(this,(0,_.Ju)(function(g){g.setRelayUrl(this.targetId_,e)},this))};
var xoB=function(e,g){e.useGapi_&&pP4(g,e.iframeManager_).then(null,function(){e.callback_({action:"error"})});
hoq(e,(0,_.Ju)(function(c){c.call(this.targetId_,"picker",null,g)},e))};
tu.prototype.resizePicker_=function(){var e=WH(this.JSC$10452_dom_.JSC$9636_document_)||window;if(_.Ht(_.zs(this.JSC$10503_url_),"ignoreLimits")=="true")e=new _.T6(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Ht(_.zs(this.JSC$10503_url_),"shadeDialog")=="true"){var g=KV4(this);g=Xtu(g);var c=_.kU(e);e=c.width-80;c=c.height-40;g&&(e-=g.left?g.left:0,e-=g.right?g.right:0,c-=g.top?g.top:0,c-=g.bottom?g.bottom:0);e=new _.T6(e>0?e:0,c>0?c:0)}else(g=this.preferredDialogWidth_)?(g=Math.max(320,
Math.min(1051,g)),(c=this.preferredDialogHeight_)||(c=_.kU(e).height*.85),c=Math.max(480,Math.min(650,c))):(g=_.kU(e),c=g.width*.618,c=c<g.height?Math.round(Math.max(480,Math.min(650,c*.85))):Math.round(Math.max(480,Math.min(650,g.height*.85))),g=Math.round(c/.618)),e=_.kU(e),g=Math.min(g,Math.max(e.width,320)),c=Math.min(c,Math.max(e.height,480)),e=new _.T6(g,c);_.nrn(this.getContentElement(),e);this.reposition()};
tu.prototype.reposition=function(){if(_.Ht(_.zs(this.JSC$10503_url_),"shadeDialog")=="true"){var e=Erk(this.getElement()),g=_.kU(this.JSC$10452_dom_.getWindow());e=Math.floor(g.width/2-e.width/2);g=KV4(this);if(g=Xtu(g)){var c=g.left?g.left:0;c+=g.right?g.right:0;e=Math.floor(e-c/2)}e=e>0?e:0;g=I4(this.JSC$10452_dom_).y;mn(this.getElement(),e,g)}else tu.superClass_.reposition.call(this)};
tu.prototype.setVisible=function(e){if(e!=this.isVisible()){if(this.autoSizeDialog_){var g=this.JSC$10452_dom_.getWindow();e?(this.resizePicker_(),hU(this).listen(g,"resize",this.resizePicker_),this.iframeLoaded_||hU(this).listen(g,"keydown",this.handleKeydown_)):(hU(this).unlisten(g,"resize",this.resizePicker_),this.iframeLoaded_||hU(this).unlisten(g,"keydown",this.handleKeydown_))}if(this.JSC$10501_enablePopover_){g=this.getBackgroundElement();var c=KV4(this);"showPopover"in c&&(e?(g.showPopover(),
c.showPopover()):(g.hidePopover(),c.hidePopover()))}}tu.superClass_.setVisible.call(this,e);xoB(this,new o16(e))};
tu.prototype.focus=function(){tu.superClass_.focus.call(this);if(this.JSC$10503_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10503_iframe_.focus()}catch(e){}};var gp=function(e,g){g=g===void 0?tu:g;Au.call(this,e);this.pickerConstructor=g;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(e=window.location.origin)||(e=window.location.protocol+"//"+window.location.host);e&&this.urlParamMap_.set("origin",e);this.postProcessors_=[]};
_.Y(gp,gmp);gp.prototype.JSC$10508_disposeOnHide_=!1;
gp.prototype.build=function(){this.JSC$10409_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10409_appId_);this.getRelayUrl()||this.setRelayUrl(_.UR(_.Z7(_.o0(_.zs(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("hb");var e=new this.pickerConstructor($o1(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1,!1);e.JSC$10485_disposeOnHide_=this.JSC$10508_disposeOnHide_;
e.JSC$10503_appId_=this.JSC$10409_appId_;e.loadedFired_&&DoI(e);Gjw(e,this.callback_);return e};
var YMs=function(e){e.urlParamMap_.set("multiselectEnabled","true");return e};
_.v=gp.prototype;_.v.getHeight=function(){return this.dialogHeight_};
_.v.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.v.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.v.getTitle=function(){return this.urlParamMap_.get("title")};
_.v.getWidth=function(){return this.dialogWidth_};
var f5s=function(e){e.JSC$10508_disposeOnHide_=void 0;return e};
gp.prototype.setRelayUrl=function(e){this.urlParamMap_.set("parent",e);return this};
var jCM=function(e,g){e.urlParamMap_.set("selectButtonLabel",g);return e};
gp.prototype.setSize=function(e,g){this.dialogWidth_=e;this.dialogHeight_=g;return this};
gp.prototype.setTitle=function(e){this.urlParamMap_.set("title",e);return this};
var $o1=function(e){e.postProcessors_.length&&e.urlParamMap_.set("pp",JSON.stringify(e.postProcessors_));e.urlParamMap_.set("nav",ZbM(e.nav_));var g=new _.mt(e.getBaseUrl());e.urlParamMap_.forEach(function(c,k){_.Qd(g,k,c)});
return g};_.Um(bte,_.eK);var EmW=function(e){var g=_.n0.findKey(RgK,function(c){return e==c});
if(g===void 0)throw Error("jb`"+e);return g},$b={},RgK=($b.AbortError=3,$b.EncodingError=5,$b.InvalidModificationError=9,$b.InvalidStateError=7,$b.NotFoundError=1,$b.NotReadableError=4,$b.NoModificationAllowedError=6,$b.PathExistsError=12,$b.QuotaExceededError=10,$b.SecurityError=2,$b.SyntaxError=8,$b.TypeMismatchError=11,$b);_.Um(hge,_.Bt);var i_q=function(e,g,c){c===void 0&&(c=e.size);return e.slice?e.slice(g,c):null};var GIA=new WeakMap,Xbg=function(e,g){e=[e];for(var c=g.length-1;c>=0;--c)e.push(typeof g[c],g[c]);return e.join("\v")};_.Dzt(function(){if(!_.kp.Blob)return!1;var e=new Uint8Array(100);try{var g=new Blob([e])}catch(c){return!1}return g.size!=100?!1:!0});
var PcZ=_.Dzt(function(){if(!_.kp.Blob)return!1;var e=new Uint8Array(100);try{var g=new Blob([e])}catch(c){return!1}return i_q(g,0,1)===null?!1:!0});try{var mon,pmM,TEI=(pmM=(mon=window)==null?void 0:mon.top)!=null?pmM:_.kp;TEI.U3bHHf!=null||(TEI.U3bHHf=0);TEI.U3bHHf++}catch(e){_.kp.U3bHHf!=null||(_.kp.U3bHHf=0),_.kp.U3bHHf++};var fkC=new WeakMap;var Yn8=new WeakMap;var PwW={};var KT=void 0;var pb8=Symbol("rb");var t6A=CT("WizInjectionContext_ModelRootElement"),BKA=CT("WizInjectionContext_RendererData"),NKW=CT("WizInjectionContext_InjectingConstructor"),sF8=CT("WizInjectionContext_AppContext"),FCU=CT("WizInjectionContext_Dispatcher"),dzq=CT("WizInjectionContext_RootElement"),V6V=CT("WizInjectionContext_AsyncDeps");var Cn=Symbol("sb");var EI=function(){this.afterRenderCallbacks=null},zgp=Symbol("tb"),xz=function(e){this.props=e;
this.__unmounted=!1};
xz.prototype.didPatch=function(){};
xz.prototype.didMount=function(){};
xz.prototype.didUnmount=function(){};
xz.prototype.didUpdate=function(){};var Sn6={};var CwK=!1;var km6={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:WOY,enableContextPerComponent:WOY,enableLazyTsx:bgq,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:EXM,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var gs=Object.assign({},{attributes:{},handleError:function(e){throw e;}},km6);var l5u=Symbol("xb"),Pa=Symbol("yb"),T3g=Symbol("zb"),mZv=Symbol("Ab"),zGz=dZ(function(e){return ca(e)&&l5u in e});var adt=Symbol("Bb"),Yb={},qfe=(Yb[adt]=!0,Yb.debugName="[component]",Yb.getComponentStack=function(){for(var e=[],g=this;g;)n2C(g)&&e.push(g.debugName),g=g.parent;return e},Yb.registerSignal=function(){},Yb.registerEffect=function(){},Yb);var I9=null,va=!1,rs=1,R9=Symbol("Fb"),G7={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var fw=Symbol("Gb"),jp=Symbol("Hb"),nn=Symbol("Ib"),Yfq=Object.assign({},G7,{value:fw,dirty:!0,error:null,equal:E2K,kind:"computed",producerMustRecompute:function(e){return e.value===fw||e.value===jp},
producerRecomputeValue:function(e){if(e.value===jp)throw Error("$");var g=e.value;e.value=jp;var c=xfe(e),k=!1;try{var I=e.computation();JV(null);k=g!==fw&&g!==nn&&I!==nn&&e.equal(g,I)}catch(J){I=nn,e.error=J}finally{JV(c),e&&$fq(e)}k?e.value=g:(e.value=I,e.version++)}});var Arq=Object.assign({},G7,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var Pfp=function(){throw Error();};var pyC=null,jlC=Object.assign({},G7,{equal:E2K,value:void 0,kind:"signal"});var TFV=Object.assign({},G7,{value:fw,dirty:!0,error:null,equal:E2K,kind:"linkedSignal",producerMustRecompute:function(e){return e.value===fw||e.value===jp},
producerRecomputeValue:function(e){if(e.value===jp)throw Error("$");var g=e.value;e.value=jp;var c=xfe(e);try{var k=e.source();var I=e.computation(k,g===fw||g===nn?void 0:{source:e.sourceValue,value:g});e.sourceValue=k}catch(J){I=nn,e.error=J}finally{JV(c),e&&$fq(e)}g!==fw&&I!==nn&&e.equal(g,I)?e.value=g:(e.value=I,e.version++)}});Object.assign({},G7,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(e){e.schedule!==null&&e.schedule(e.ref)},
cleanupFn:function(){}});var FNW=Symbol("Jb"),bu=Symbol("Kb");var hV=Array.isArray;var VWW;var sCM={},RGK=ZB6(Object.assign({},{consumerAllowSignalWrites:!0},sCM)),bo=ZB6(Object.assign({},{consumerAllowSignalWrites:!0},sCM));var YF=Symbol("Pb");var $F=null,hGC,Xdp=null,GyC;var mP=0,pn=!1,iN=function(){this.queue=new Set};
iN.prototype.schedule=function(e){this.queue.add(e)};
iN.prototype.remove=function(e){this.queue.delete(e)};
iN.prototype.clear=function(){this.queue.clear()};
var fXp=Symbol("Qb"),$Z8=Symbol("Rb"),PR=function(){iN.apply(this,arguments)};
_.Y(PR,iN);PR.prototype.flush=function(){if(this.queue.size){pn=!0;for(var e=_.w(this.queue),g=e.next();!g.done;g=e.next()){g=g.value;this.queue.delete(g);try{g.run()}catch(c){FtM(c)}}pn=!1}};
var u71=function(){PR.apply(this,arguments)};
_.Y(u71,PR);var Yg6=new u71,doq=function(){PR.apply(this,arguments)};
_.Y(doq,PR);doq.prototype.schedule=function(e){return _.r(function(g){if(g.nextAddress==1)return g.yield(Promise.resolve(),2);e.run();_.Uh(g)})};
doq.prototype.enqueue=function(e){this.queue.add(e)};
var j2z=new doq,mE=function(){iN.apply(this,arguments)};
_.Y(mE,iN);mE.prototype.flush=function(){this.queue.size&&Hbe(this.queue)};
var zou=function(){mE.apply(this,arguments)};
_.Y(zou,mE);zou.prototype.schedule=function(e){e.version===0?e.run():this.queue.add(e)};
zou.prototype.flush=function(){if(this.queue.size)if(gs.flushRenderEffectsDuringRender){var e=this.queue;this.queue=new Set;Hbe(e)}else Hbe(this.queue)};
var Pqg=new zou,H_u=function(){mE.apply(this,arguments)};
_.Y(H_u,mE);H_u.prototype.schedule=function(e){return _.r(function(g){if(g.nextAddress==1)return g.yield(Promise.resolve(),2);e.run();_.Uh(g)})};
H_u.prototype.enqueue=function(e){this.queue.add(e)};
var lXV=new H_u,QCq=function(){mE.apply(this,arguments)};
_.Y(QCq,mE);var pdC=new QCq,s2C=[Pqg,Yg6,pdC],dZt=[j2z,lXV],Uoq=[Pqg,pdC,lXV],Q2q=[].concat(_.KY(s2C),_.KY(dZt)),ofB=[];pyC=function(){uSC();for(var e=_.w(ofB),g=e.next();!g.done;g=e.next())g=g.value,g()};
var FtM=IA;var pw={},Z_n=Object.assign({},Arq,(pw[l5u]=!0,pw.effectType=Pa,pw.isResettableContext=!0,pw.consumerMarkedDirty=AO8,pw.run=function(){oNU(this)},pw.cleanup=function(){Ztz(this)},pw.componentStack=void 0,pw.debugName="[effect]",pw.destroy=function(){if(ws(this))for(var e=this.producers;e!==void 0;)e=Dfe(e);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;e=_.w(Uoq);for(var g=e.next();!g.done;g=e.next())g.value.remove(this);om8(this)},pw[Symbol.dispose]=function(){this.destroy()},pw)),VVM=Object.assign({},Z_n,{version:1,
dirty:!1});var Zbg=Object.assign({},Z_n,{effectType:Pa});var VXp=Object.assign({},Z_n,{effectType:T3g});var N3A=Symbol("Tb");var TYq=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var KZC={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},yOz=
{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}]}},X68={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},Cqg=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],MXe={"*":{async:1,dir:0,loading:2,target:3}};var tVY=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,T3={},gQC=(T3[1]=null,T3[2]=function(e,g){return g instanceof gy?IP(g):yP.toString()},T3[3]=function(e,g){return tj(g)?_.BJ(g):tVY.test(String(g))?String(g):yP.toString()},T3[4]=function(e,g){return g instanceof zT?_.QP(g):yP.toString()},T3[5]=function(e,g){return String(g)},T3[7]=null,T3[8]=null,T3[10]=null,T3);var CDV=Symbol("Wb");var JZV="Y Z E P T G M K  m u n".split(" "),IHq={"":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};_.BEq=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 vV={};RegExp.prototype.hasOwnProperty("sticky");var AZz=function(e){e=String(e);for(var g=function(k,I,J){for(var q=Math.min(I.length-J,k.length),L=0;L<q;L++){var n=I[J+L];if(k[L]!==("A"<=n&&n<="Z"?n.toLowerCase():n))return!1}return!0},c=0;(c=e.indexOf("<",c))!=-1;){if(g("\x3c/script",e,c)||g("\x3c!--",e,c))return"zSoyz";
c+=1}return e};var UX={default:"__default"};var rZg=Object.prototype.hasOwnProperty;wPt.prototype=Object.create(null);var ol=Rkz();var yU=null;var jYt=function(e){this.created=[];this.deleted=[];this.node=e};var iMW=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var e=this,g=e;e;)g=e,e=e.parentNode;return g};var WVV=function(e,g){this._attrsArr=null;this.nameOrCtor=e;this.key=g;this.text=void 0};var VU=null,tV=null,o9=null,Nt=null,DRz=[],xRe=XPq,SP=[],MS8=function(e){return P0C(function(g,c,k){o9=tV=g;tV=null;c(k);GHC(null);tV=o9;o9=o9.parentNode;return g},e)}(),OVW=function(e){return P0C(function(g,c,k){var I={nextSibling:g};
tV=I;c(k);o9&&GHC(g.nextSibling);return I===tV?null:tV},e)}();var Kn=[],eRz=0;var Zd=new wPt;var NEZ=Rkz(),udz=NEZ[UX.default],FVK=NEZ.style,lHg=["focusin","focusout"],HMC="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var Roe=function(){},moA=function(){},jCg=function(){};var Mt=Symbol("dc");var Vre,ZM6=oQp;var a7=Symbol("ec");var PcV=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(" ")),
i_v=new Set(["a","font","script","style","title"]);var rH={setUp:kj8,tearDown:kj8,log:kj8,logNodeRange:kj8,graft:function(e,g){g()}};var h_={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Xq=null,Gr=function(e,g){xz.call(this,e);var c=this;this.functionComponent=g;this.hooks=[];this.hookCounter=0;this.disposeEffects=uu(function(k){c.effectContext=k;_.sX(function(){hov(c,c.el)})},gs.alwaysTrackContexts||!!KT)};
_.Y(Gr,xz);Gr.prototype.render=function(e){var g=Xq;Xq=this;this.hookCounter=0;var c=JV(bo),k=Ou(this.effectContext);try{return J2C("render",this.componentName),this.functionComponent(e)}finally{v2A("render",this.componentName),Ou(k),JV(c),Xq=g}};
_.Bd.Object.defineProperties(Gr.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return WZ8(this.functionComponent)}}});var pmg=Symbol("sc"),$oC=function(e,g,c){this.afterRenderCallbacks=null;this.kind=e;this.props=g;this.children=c};
_.Y($oC,EI);$oC.prototype.render=function(){var e=Dop(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var g=_.w(this.afterRenderCallbacks),c=g.next();!c.done;c=g.next())c=c.value,e=c(e);return e};
$oC.prototype.getChildren=function(){return this.children};var l5K=[];Pfp=function(e){throw Error("qb`"+e.debugName);};
(function(){var e=yU;yU=function(g){e==null||e(g);Arv(g)}})();Object.assign({},VVM,{effectType:Pa,elementRef:null,attributes:null,fn:function(){var e=this.elementRef;var g;e.element!=null||(e.element=(g=e.document.getElementById(e.value))!=null?g:void 0);e=e.element;for(g=this.attributes;g;){var c=g.signal();c!==g.prevValue&&(g.prevValue=c,g.namespace===1?e[g.name]=c:TYq.has(g.name)?QU(e,g.name,c?"":null):QU(e,g.name,c));g=g.next}}});_.DC.debugName="tbhMcf";_.$z.debugName="zyMFzb";Object.assign({},VVM,{effectType:Pa});_.E.debugName="RlDudd";var sCg={nonNullableCondIsNull:function(){return Error("vc")}};var UoU=function(){this.map=new Map};
UoU.prototype.push=function(e,g){var c=this.map;c.has(e)&&(this.multi||(this.multi=new Map),this.multi.set(g,c.get(e)));c.set(e,g)};
UoU.prototype.pop=function(e){var g=this.map,c=g.get(e),k;c!==void 0&&((k=this.multi)==null?0:k.has(c))?(g.set(e,this.multi.get(c)),this.multi.delete(c)):g.delete(e);return c};_.Yz.debugName="nsTGHd";_.f4.debugName="vI1rtf";var BEv={OUT_OF_ORDER_HOOK_CALL:function(e){return Error("wc`"+e)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(e,g){return Error("Ac`"+((g===void 0?0:g)?"IDOM":"Reactive")+"`"+(js(e)?e.description:e))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(e,g){return Error("Bc`"+(js(e)?e.description:e)+"`"+g)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(e){return Error("Cc`"+(js(e)?e.description:e))},
USE_ELEMENT_NOT_ASSIGNED:function(e){return Error("Dc`"+(js(e)?e.description:e))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(e){return Error("Ec`"+(js(e)?e.description:e))}};var OhV=Symbol("Fc");Vre=YMW;Vre=YMW;var kuW=Symbol("Gc");WtV({beforeRender:function(e){var g=Ou(e.effectContext);try{var c;((c=e.__syncEffects)==null?0:c.length)&&nnt(e.__syncEffects)}finally{Ou(g)}},
didPatch:function(e){var g=Ou(e.effectContext);try{var c;((c=e.__syncEffects)==null?0:c.length)&&nnt(e.__syncEffects)}finally{Ou(g)}},
didUnmount:function(e){var g;((g=e.hooks)==null?0:g.length)&&e.hooks.forEach(aOt)}});var SMB,yrM,Kts;SMB=_.kp.window;_.sI=(SMB==null?void 0:(yrM=SMB.yt)==null?void 0:yrM.config_)||(SMB==null?void 0:(Kts=SMB.ytcfg)==null?void 0:Kts.data_)||{};_.BQ("yt.config_",_.sI);var O_Z={},W7K=[];_.E2=function(e){var g=_.Mb.apply(1,arguments);var c=Error.call(this,e);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(_.KY(g));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(_.E2,Error);var ayz=function(e,g,c){this.actionName=e;this.optionalAction=g===void 0?!1:g;this.args=c===void 0?null:c;this.returnValue=[]};_.lN=function(e){this.name=e};_.sf=new _.lN("signalAction");var iAC=/^[\w.]*$/,xcv={q:!0,search_query:!0},Guz=String(Xhe);var y0;y0=Symbol("Hc");_.AU=function(e){this.name=e};
_.AU.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var PBe=function(e){this.key=e},A5W=function(e){this.deferredKey=e},phC=function(){var e=this;
this.providers=new Map;this.JSC$10808_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(e.providers)}}};
phC.prototype.addProvider=function(e){this.providers.set(e.provide,e);var g=this.JSC$10808_deferred.get(e.provide);if(g)try{g.resolver(this.resolve(e.provide))}catch(c){g.rejector(c)}};
phC.prototype.resolve=function(e){return e instanceof A5W?MVM(this,e):e instanceof PBe?CcM(this,e.key,[],!0):CcM(this,e,[])};
var MVM=function(e,g){g=g.deferredKey;if(e.JSC$10808_deferred.has(g))return e.JSC$10808_deferred.get(g).promise;var c={};c.promise=new Promise(function(k,I){c.resolver=k;c.rejector=I});
e.JSC$10808_deferred.set(g,c);return c.promise},CcM=function(e,g,c,k){k=k===void 0?!1:k;
if(c.indexOf(g)>-1)throw Error("Ic`"+g);if(e.cachedValues.has(g))return e.cachedValues.get(g);if(!e.providers.has(g)){if(k)return;throw Error("Jc`"+g);}k=e.providers.get(g);c.push(g);if(k.useValue!==void 0)var I=k.useValue;else if(k.useFactory)I=k[y0]?emB(e,k[y0],c):[],I=k.useFactory.apply(k,_.KY(I));else if(k.useClass){I=k.useClass;var J=I[y0]?emB(e,I[y0],c):[];I=new (Function.prototype.bind.apply(I,[null].concat(_.KY(J))))}else throw Error("Kc`"+g);c.pop();k.skipCache||e.cachedValues.set(g,I);return I},
emB=function(e,g,c){return g?g.map(function(k){return k instanceof PBe?CcM(e,k.key,c,!0):CcM(e,k,c)}):[]};var mcV;var FC=new _.AU("ENDPOINT_HANDLER_TOKEN");_.uf=new _.lN("urlEndpoint");var gnw=function(){this.data=[];this.cachedPackedInt52=-1};
gnw.prototype.set=function(e,g){g=g===void 0?!0:g;0<=e&&e<52&&Number.isInteger(e)&&this.data[e]!==g&&(this.data[e]=g,this.cachedPackedInt52=-1)};
gnw.prototype.get=function(e){return!!this.data[e]};
var c5w=function(e){e.cachedPackedInt52===-1&&(e.cachedPackedInt52=e.data.reduce(function(g,c,k){return g+(c?Math.pow(2,k):0)},0));
return e.cachedPackedInt52};var B$W=function(e){var g=kus;e=e===void 0?_.Q0("yt.ads.biscotti.lastId_")||"":e;var c=Object,k=c.assign,I={};I.dt=YnY;I.flash="0";a:{try{var J=g.JSC$10814_win_.top.location.href}catch(O){J=2;break a}J=J?J===g.doc_.location.href?0:1:2}I=(I.frm=J,I);try{I.u_tz=-(new Date).getTimezoneOffset();try{var q=TS.history.length}catch(O){q=0}I.u_his=q;var L;I.u_h=(L=TS.screen)==null?void 0:L.height;var n;I.u_w=(n=TS.screen)==null?void 0:n.width;var R;I.u_ah=(R=TS.screen)==null?void 0:R.availHeight;var W;I.u_aw=
(W=TS.screen)==null?void 0:W.availWidth;var b;I.u_cd=(b=TS.screen)==null?void 0:b.colorDepth}catch(O){}q=g.JSC$10814_win_;try{var h=q.screenX;var X=q.screenY}catch(O){}try{var D=q.outerWidth;var f=q.outerHeight}catch(O){}try{var l=q.innerWidth;var A=q.innerHeight}catch(O){}try{var d=q.screenLeft;var S=q.screenTop}catch(O){}try{l=q.innerWidth,A=q.innerHeight}catch(O){}try{var V=q.screen.availWidth;var Q=q.screen.availTop}catch(O){}h=[d,S,h,X,V,Q,D,f,l,A];X=vre(!1,g.JSC$10814_win_.top);D={};var y=y===
void 0?_.kp:y;f=new gnw;"SVGElement"in y&&"createElementNS"in y.document&&f.set(0);l=FqY();l["allow-top-navigation-by-user-activation"]&&f.set(1);l["allow-popups-to-escape-sandbox"]&&f.set(2);y.crypto&&y.crypto.subtle&&f.set(3);"TextDecoder"in y&&"TextEncoder"in y&&f.set(4);y=c5w(f);g=(D.bc=y,D.bih=X.height,D.biw=X.width,D.brdim=h.join(),D.vis=OnC(g.doc_),D.wgl=!!TS.WebGLRenderingContext,D);c=k.call(c,I,g);c.ca_type="image";e&&(c.bid=e);return c},kus=new function(){var e=window.document;
this.JSC$10814_win_=window;this.doc_=e};
_.BQ("yt.ads_.signals_.getAdSignalsString",function(e){return Dct(B$W(e))});_.QG();navigator.userAgent.indexOf(" (CrKey ");var dcC="XMLHttpRequest"in _.kp?function(){return new XMLHttpRequest}:null;var IOv="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),J5q=[].concat(_.KY(IOv),["client_dev_set_cookie"]);var t48={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"},Qtv="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(_.KY(IOv)),gdC=!1,onV=_.N$C,M4e=V4U;var Dyq=[{messageFn:function(e){return"Cannot read property '"+e.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(e){return"Cannot call '"+e.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(e){return e.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var vnY={messageWeights:[],callbackWeights:[{callback:JwU,weight:500},{callback:vdv,weight:500}]};var whu=function(){this.callbackWeights=[];this.messageWeights=[]},qVw,xyA=function(){if(!qVw){var e=qVw=new whu;
e.messageWeights.length=0;e.callbackWeights.length=0;uUU(e,vnY)}return qVw},uUU=function(e,g){g.messageWeights&&e.messageWeights.push.apply(e.messageWeights,g.messageWeights);
g.callbackWeights&&e.callbackWeights.push.apply(e.callbackWeights,g.callbackWeights)};_.Um(_.w1,_.Iy);_.w1.prototype.subscribe=function(e,g,c){var k=this.topics_[e];k||(k=this.topics_[e]=[]);var I=this.JSC$10837_key_;this.subscriptions_[I]=e;this.subscriptions_[I+1]=g;this.subscriptions_[I+2]=c;this.JSC$10837_key_=I+3;k.push(I);return I};
var L7k=function(e){var g=lf,c=!1,k=g.subscribe("handleError",function(I){c||(c=!0,this.unsubscribeByKey(k),e.apply(void 0,arguments))},g)};
_.w1.prototype.unsubscribe=function(e,g,c){if(e=this.topics_[e]){var k=this.subscriptions_;if(e=e.find(function(I){return k[I+1]==g&&k[I+2]==c}))return this.unsubscribeByKey(e)}return!1};
_.w1.prototype.unsubscribeByKey=function(e){var g=this.subscriptions_[e];if(g){var c=this.topics_[g];this.publishDepth_!=0?(this.pendingKeys_.push(e),this.subscriptions_[e+1]=function(){}):(c&&_.UC(c,e),delete this.subscriptions_[e],delete this.subscriptions_[e+1],delete this.subscriptions_[e+2])}return!!g};
_.w1.prototype.publish=function(e,g){var c=this.topics_[e];if(c){var k=Array(arguments.length-1),I=arguments.length,J;for(J=1;J<I;J++)k[J-1]=arguments[J];if(this.async_)for(J=0;J<c.length;J++)I=c[J],r5s(this.subscriptions_[I+1],this.subscriptions_[I+2],k);else{this.publishDepth_++;try{for(J=0,I=c.length;J<I&&!this.isDisposed();J++){var q=c[J];this.subscriptions_[q+1].apply(this.subscriptions_[q+2],k)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;c=this.pendingKeys_.pop();)this.unsubscribeByKey(c)}}return J!=
0}return!1};
var r5s=function(e,g,c){_.R0(function(){e.apply(g,c)})};
_.w1.prototype.clear=function(e){if(e){var g=this.topics_[e];g&&(g.forEach(this.unsubscribeByKey,this),delete this.topics_[e])}else this.subscriptions_.length=0,this.topics_={}};
_.w1.prototype.getCount=function(e){if(e){var g=this.topics_[e];return g?g.length:0}e=0;for(g in this.topics_)e+=this.getCount(g);return e};
_.w1.prototype.disposeInternal=function(){_.w1.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var lf=new _.w1;var gK=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(gK,_.WJ);gK.prototype.getColdHashData=function(){return _.Rs(this,3)};
gK.prototype.getHotHashData=function(){return _.Rs(this,5)};
gK.prototype.setHotHashData=function(e){return _.vH(this,5,e)};var Xgg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Xgg,_.WJ);var ttC=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(ttC,_.WJ);_.v=ttC.prototype;_.v.getDeviceId=function(){return _.Rs(this,6)};
_.v.getExperimentIds=function(e){var g=_.gr(this,9,_.ax,3,!0);IwW(g,e);return g[e]};
_.v.getPlayerType=function(){return _.EU(this,36)};
_.v.setHomeGroupInfo=function(e){return _.sx(this,81,e)};
_.v.clearLocationPlayabilityToken=function(){return _.e6(this,89)};var qf=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(qf,_.WJ);qf.prototype.setKey=function(e){return _.vH(this,1,e)};
qf.prototype.getValue=function(){return by(this,2,Nie)};
var Nie=[2,3,4,5,6];var aOw=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(aOw,_.WJ);aOw.prototype.setTrackingParams=function(e){return _.e6(this,1,_.sv(e,!1))};var BiV=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(BiV,_.WJ);var Dkz=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Dkz,_.WJ);Dkz.prototype.getExperimentIds=function(e){var g=_.gr(this,5,_.lwz,3,!0);IwW(g,e);return g[e]};var nB=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(nB,_.WJ);nB.prototype.getToken=function(){return _.Ma(this,2)};
nB.prototype.setToken=function(e){return _.vH(this,2,e)};var rF=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(rF,_.WJ);rF.prototype.setSafetyMode=function(e){return _.Cf(this,5,e)};var wF=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(wF,_.WJ);wF.prototype.setClient=function(e){return _.sx(this,1,e)};var xkC={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 Gbq;_.Yv=function(){var e=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.kp.addEventListener("beforeinstallprompt",function(g){g.preventDefault();e.deferredInstallPrompt=g});
_.kp.addEventListener("appinstalled",function(){e.appInstalledEventFired=!0},{once:!0})};
Gbq=function(){if(!_.kp.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.kp.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.kp.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.kp.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.kp.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(e){return"WEB_DISPLAY_MODE_UNKNOWN"}};var fup=function(){this.syncHeaders=!0},j1q=function(e){var g={},c=[];
"USER_SESSION_ID"in _.sI&&c.push({key:"u",value:_.uo("USER_SESSION_ID")});if(c=_.BkC(c))g.Authorization=c,c=e=e==null?void 0:e.sessionIndex,c===void 0&&(c=Number(_.uo("SESSION_INDEX",0)),c=isNaN(c)?0:c),_.G("voice_search_auth_header_removal")||(g["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in _.sI||(g["X-Origin"]=window.location.origin),e===void 0&&"DELEGATED_SESSION_ID"in _.sI&&(g["X-Goog-PageId"]=_.uo("DELEGATED_SESSION_ID"));return g};var nnw={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var sG=_.Q0("ytglobal.prefsUserPrefsPrefs_")||{},Rm4;_.BQ("ytglobal.prefsUserPrefsPrefs_",sG);_.FG=function(){this.cookieName=_.uo("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.uo("ALT_PREF_COOKIE_DOMAIN","youtube.com");var e=_.Lf.get(this.cookieName,void 0);e&&this.parse(e)};
_.ch=function(){Rm4||(Rm4=new _.FG);return Rm4};
_.FG.prototype.get=function(e,g){EnI(e);W7u(e);e=sG[e]!==void 0?sG[e].toString():null;return e!=null?e:g?g:""};
_.FG.prototype.set=function(e,g){EnI(e);W7u(e);if(g==null)throw Error("Nc");sG[e]=g.toString()};
_.FG.prototype.getFlag=function(e){return!!((bAn("f"+(Math.floor(e/31)+1))||0)&1<<e%31)};
_.kn=function(e,g,c){e="f"+(Math.floor(g/31)+1);g=1<<g%31;var k=bAn(e)||0;k=c?k|g:k&~g;k===0?delete sG[e]:(c=k.toString(16),sG[e]=c.toString())};
_.FG.prototype.remove=function(e){EnI(e);W7u(e);delete sG[e]};
_.FG.prototype.save=function(){var e=!0;_.G("web_secure_pref_cookie_killswitch")&&(e=!1);_.r1(this.cookieName,this.dump(),63072E3,this.cookieDomain,e)};
_.FG.prototype.clear=function(){_.n0.clear(sG)};
_.FG.prototype.dump=function(){var e=[],g;for(g in sG)sG.hasOwnProperty(g)&&e.push(g+"="+encodeURIComponent(String(sG[g])));return e.join("&")};
var W7u=function(e){if(/^f([1-9][0-9]*)$/.test(e))throw Error("Oc`"+e);},EnI=function(e){if(!/^\w+$/.test(e))throw Error("Pc`"+e);
},bAn=function(e){e=sG[e]!==void 0?sG[e].toString():null;
return e!=null&&/^[A-Fa-f0-9]+$/.test(e)?parseInt(e,16):null};
_.FG.prototype.parse=function(e){e=decodeURIComponent(e).split("&");for(var g=0;g<e.length;g++){var c=e[g].split("="),k=c[0];(c=c[1])&&(sG[k]=c.toString())}};var WpW={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"},$kv={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},YYV={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},hBe={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var zF;_.uN=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.h2=function(e,g,c){return e.addJob(g,0,c)};
_.uN.prototype.addLowPriorityJob=function(e,g){return this.addJob(e,1,g)};
_.JC=function(e,g,c){return e.addJob(g,2,c)};
_.e$=function(e,g,c){return e.addJob(g,3,c)};
_.HT=function(e,g,c){return e.addJob(g,4,c)};
zF=function(e){var g=_.Q0("yt.scheduler.instance.addImmediateJob");g?g(e):e()};
_.uN.prototype.debounce=function(e,g,c){var k=this,I=0,J=function(){I&&k.cancelJob(I);I=k.addJob(e,g,c);k.cancelDebouncedJobMap.set(J,I)};
return J};
_.uN.prototype.cancelThrottle=function(e){(e=this.cancelThrottledJobMap.get(e))&&e()};var dQ=function(){_.uN.apply(this,arguments)},hmB;
_.Y(dQ,_.uN);_.nu=function(){dQ.instance||(dQ.instance=new dQ);return dQ.instance};
dQ.prototype.addJob=function(e,g,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var k=_.Q0("yt.scheduler.instance.addJob");return k?k(e,g,c):c===void 0?(e(),NaN):_.k1(e,c||0)};
dQ.prototype.cancelJob=function(e){if(e===void 0||!Number.isNaN(Number(e))){var g=_.Q0("yt.scheduler.instance.cancelJob");g?g(e):_.JK(e)}};
dQ.prototype.start=function(){var e=_.Q0("yt.scheduler.instance.start");e&&e()};
dQ.prototype.pause=function(){var e=_.Q0("yt.scheduler.instance.pause");e&&e()};
hmB=function(){_.nu();var e=_.Q0("yt.scheduler.instance.setPriorityThreshold");e&&e(4)};
_.ft=_.nu();_.WQ.prototype.set=function(e,g){g===void 0?this.mechanism.remove(e):this.mechanism.set(e,_.X9(g))};
_.WQ.prototype.get=function(e){try{var g=this.mechanism.get(e)}catch(c){return}if(g!==null)try{return JSON.parse(g)}catch(c){throw"Storage: Invalid value was encountered";}};
_.WQ.prototype.remove=function(e){this.mechanism.remove(e)};_.Um(bH,_.WQ);var XhB=function(e){this.data=e},Guw=function(e){return e===void 0||e instanceof XhB?e:new XhB(e)};
bH.prototype.set=function(e,g){bH.superClass_.set.call(this,e,Guw(g))};
bH.prototype.getWrapper=function(e){e=bH.superClass_.get.call(this,e);if(e===void 0||e instanceof Object)return e;throw"Storage: Invalid value was encountered";};
bH.prototype.get=function(e){if(e=this.getWrapper(e)){if(e=e.data,e===void 0)throw"Storage: Invalid value was encountered";}else e=void 0;return e};_.Um(hK,bH);_.xcq=function(e){var g=e.creation;e=e.expiration;return!!e&&e<_.QG()||!!g&&g>_.QG()};
hK.prototype.set=function(e,g,c){if(g=Guw(g)){if(c){if(c<_.QG()){hK.prototype.remove.call(this,e);return}g.expiration=c}g.creation=_.QG()}hK.superClass_.set.call(this,e,g)};
hK.prototype.getWrapper=function(e,g){var c=hK.superClass_.getWrapper.call(this,e);if(c)if(!g&&_.xcq(c))hK.prototype.remove.call(this,e);else return c};var z3=function(){};
z3.prototype.next=function(){return HR};
var HR={done:!0,value:void 0},QC=function(e){return{value:e,done:!1}};
z3.prototype.__iterator__=function(){return this};
_.Dcw=function(e){if(e instanceof z3)return e;if(typeof e.__iterator__=="function")return e.__iterator__(!1);if(_.Bz(e)){var g=0,c=new z3;c.next=function(){for(;;){if(g>=e.length)return HR;if(g in e)return QC(e[g++]);g++}};
return c}throw Error("Qc");};var $cs=function(e){if(e instanceof UG||e instanceof ou||e instanceof Z2)return e;if(typeof e.next=="function")return new UG(function(){return e});
if(typeof e[Symbol.iterator]=="function")return new UG(function(){return e[Symbol.iterator]()});
if(typeof e.__iterator__=="function")return new UG(function(){return e.__iterator__()});
throw Error("Rc");},UG=function(e){this.func_=e};
UG.prototype.__iterator__=function(){return new ou(this.func_())};
UG.prototype[Symbol.iterator]=function(){return new Z2(this.func_())};
UG.prototype.toEs6=function(){return new Z2(this.func_())};
var ou=function(e){this.JSC$10922_iter_=e};
_.Y(ou,z3);ou.prototype.next=function(){return this.JSC$10922_iter_.next()};
ou.prototype[Symbol.iterator]=function(){return new Z2(this.JSC$10922_iter_)};
ou.prototype.toEs6=function(){return new Z2(this.JSC$10922_iter_)};
var Z2=function(e){UG.call(this,function(){return e});
this.JSC$10925_iter_=e};
_.Y(Z2,UG);Z2.prototype.next=function(){return this.JSC$10925_iter_.next()};var YVB=function(){};var VC=function(){};
_.Um(VC,YVB);VC.prototype.getCount=function(){for(var e=0,g=_.w(this),c=g.next();!c.done;c=g.next())e++;return e};
VC.prototype[Symbol.iterator]=function(){return $cs(this.__iterator__(!0)).toEs6()};
VC.prototype.clear=function(){var e=Array.from(this);e=_.w(e);for(var g=e.next();!g.done;g=e.next())this.remove(g.value)};_.Um(XB,VC);_.v=XB.prototype;_.v.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var e=this.storage_;if(e)try{e.setItem("__sak","1");e.removeItem("__sak");var g=!0}catch(c){g=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e&&e.length!==0}else g=!1;this.cachedIsStorageAvailable_=g}return this.cachedIsStorageAvailable_};
_.v.set=function(e,g){tU(this);try{this.storage_.setItem(e,g)}catch(c){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.v.get=function(e){tU(this);e=this.storage_.getItem(e);if(typeof e!=="string"&&e!==null)throw"Storage mechanism: Invalid value was encountered";return e};
_.v.remove=function(e){tU(this);this.storage_.removeItem(e)};
_.v.getCount=function(){tU(this);return this.storage_.length};
_.v.__iterator__=function(e){tU(this);var g=0,c=this.storage_,k=new z3;k.next=function(){if(g>=c.length)return HR;var I=c.key(g++);if(e)return QC(I);I=c.getItem(I);if(typeof I!=="string")throw"Storage mechanism: Invalid value was encountered";return QC(I)};
return k};
_.v.clear=function(){tU(this);this.storage_.clear()};
_.v.key=function(e){tU(this);return this.storage_.key(e)};
var tU=function(e){if(e.storage_==null)throw Error("Sc");e.isAvailable()||IA(Error("Sc"))};_.Um(GtU,XB);_.Um(xWU,XB);_.Um(Gn,VC);Gn.prototype.set=function(e,g){this.mechanism_.set(this.JSC$10940_prefix_+e,g)};
Gn.prototype.get=function(e){return this.mechanism_.get(this.JSC$10940_prefix_+e)};
Gn.prototype.remove=function(e){this.mechanism_.remove(this.JSC$10940_prefix_+e)};
Gn.prototype.__iterator__=function(e){var g=this.mechanism_[Symbol.iterator](),c=this,k=new z3;k.next=function(){var I=g.next();if(I.done)return I;for(I=I.value;I.slice(0,c.JSC$10940_prefix_.length)!=c.JSC$10940_prefix_;){I=g.next();if(I.done)return I;I=I.value}return QC(e?I.slice(c.JSC$10940_prefix_.length):c.mechanism_.get(I))};
return k};_.pt=function(e){this.expiringStorage_=(e=_.x1(e))?new hK(e):null;this.JSC$10944_domain_=document.domain||window.location.hostname};
_.v=_.pt.prototype;_.v.hasLocalStorage=function(){return!!this.expiringStorage_};
_.v.set=function(e,g,c,k){c=c||31104E3;this.remove(e);if(this.hasLocalStorage())try{this.expiringStorage_.set(e,g,Date.now()+c*1E3);return}catch(J){}var I="";if(k)try{I=escape(_.X9(g))}catch(J){return}else I=escape(g);_.r1(e,I,c,this.JSC$10944_domain_)};
_.v.get=function(e,g){var c=void 0,k=!this.hasLocalStorage();if(!k)try{c=this.expiringStorage_.get(e)}catch(I){k=!0}if(k&&(c=_.Lf.get(e,void 0))&&(c=unescape(c),g))try{c=JSON.parse(c)}catch(I){this.remove(e),c=void 0}return c};
_.v.remove=function(e){this.hasLocalStorage()&&this.expiringStorage_.remove(e);_.nd8(e,"/",this.JSC$10944_domain_)};
_.v.getCreationTime=function(e){return this.hasLocalStorage()&&(e=(this.expiringStorage_.getWrapper(e)||{}).creation,typeof e==="number")?e:null};var $Wt=function(){var e;return function(){e||(e=new _.pt("ytidb"));return e}}();var fYg;_.$1=[];fYg=!1;var ZUV=jqz||iUC;var BR={},fOI=(BR.AUTH_INVALID="No user identifier specified.",BR.EXPLICIT_ABORT="Transaction was explicitly aborted.",BR.IDB_NOT_SUPPORTED="IndexedDB is not supported.",BR.MISSING_INDEX="Index not created.",BR.MISSING_OBJECT_STORES="Object stores not created.",BR.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",BR.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",BR.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",BR.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",BR.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",BR.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",BR.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",BR),ND={},jtq=(ND.AUTH_INVALID="ERROR",ND.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",ND.EXPLICIT_ABORT="IGNORED",
ND.IDB_NOT_SUPPORTED="ERROR",ND.MISSING_INDEX="WARNING",ND.MISSING_OBJECT_STORES="ERROR",ND.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",ND.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",ND.QUOTA_EXCEEDED="WARNING",ND.QUOTA_MAYBE_EXCEEDED="WARNING",ND.UNKNOWN_ABORT="WARNING",ND.INCOMPATIBLE_DB_VERSION="WARNING",ND),Sp={},iAv=(Sp.AUTH_INVALID=!1,Sp.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Sp.EXPLICIT_ABORT=!1,Sp.IDB_NOT_SUPPORTED=!1,Sp.MISSING_INDEX=!1,Sp.MISSING_OBJECT_STORES=!1,Sp.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Sp.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Sp.QUOTA_EXCEEDED=!1,Sp.QUOTA_MAYBE_EXCEEDED=!0,Sp.UNKNOWN_ABORT=!0,Sp.INCOMPATIBLE_DB_VERSION=!1,Sp),mY=function(e,g,c,k,I){g=g===void 0?{}:g;c=c===void 0?fOI[e]:c;k=k===void 0?jtq[e]:k;I=I===void 0?iAv[e]:I;_.E2.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:e},g));this.type=e;this.message=c;this.level=k;this.retryable=I;Object.setPrototypeOf(this,mY.prototype)};
_.Y(mY,_.E2);var PBB=function(e,g){mY.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:g,foundObjectStores:e},fOI.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,PBB.prototype)};
_.Y(PBB,mY);var mW6=function(e,g){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=e;this.objectStore=g;Object.setPrototypeOf(this,mW6.prototype)};
_.Y(mW6,Error);var pL6=["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 s2=function(e){this.executor=e},AK=function(e){var g=this;
this.state={status:"PENDING"};this.JSC$10972_onFulfilled=[];this.JSC$10972_onRejected=[];e=e.executor;var c=function(I){if(g.state.status==="PENDING"){g.state={status:"FULFILLED",value:I};I=_.w(g.JSC$10972_onFulfilled);for(var J=I.next();!J.done;J=I.next())J=J.value,J()}},k=function(I){if(g.state.status==="PENDING"){g.state={status:"REJECTED",
reason:I};I=_.w(g.JSC$10972_onRejected);for(var J=I.next();!J.done;J=I.next())J=J.value,J()}};
try{e(c,k)}catch(I){k(I)}};
AK.all=function(e){return new AK(new s2(function(g,c){var k=[],I=e.length;I===0&&g(k);for(var J={i$jscomp$471:0};J.i$jscomp$471<e.length;J={i$jscomp$471:J.i$jscomp$471},++J.i$jscomp$471)AK.resolve(e[J.i$jscomp$471]).then(function(q){return function(L){k[q.i$jscomp$471]=L;I--;I===0&&g(k)}}(J)).catch(function(q){c(q)})}))};
AK.resolve=function(e){return new AK(new s2(function(g,c){e instanceof AK?e.then(g,c):g(e)}))};
AK.reject=function(e){return new AK(new s2(function(g,c){c(e)}))};
AK.prototype.then=function(e,g){var c=this,k=e!=null?e:AwK,I=g!=null?g:lYg;return new AK(new s2(function(J,q){c.state.status==="PENDING"?(c.JSC$10972_onFulfilled.push(function(){mcZ(c,c,k,J,q)}),c.JSC$10972_onRejected.push(function(){ph1(c,c,I,J,q)})):c.state.status==="FULFILLED"?mcZ(c,c,k,J,q):c.state.status==="REJECTED"&&ph1(c,c,I,J,q)}))};
AK.prototype.catch=function(e){return this.then(void 0,e)};
var mcZ=function(e,g,c,k,I){try{if(e.state.status!=="FULFILLED")throw Error("Vc");var J=c(e.state.value);J instanceof AK?T$q(e,g,J,k,I):k(J)}catch(q){I(q)}},ph1=function(e,g,c,k,I){try{if(e.state.status!=="REJECTED")throw Error("Wc");
var J=c(e.state.reason);J instanceof AK?T$q(e,g,J,k,I):k(J)}catch(q){I(q)}},T$q=function(e,g,c,k,I){g===c?I(new TypeError("Xc")):c.then(function(J){J instanceof AK?T$q(e,g,J,k,I):k(J)},function(J){I(J)})};var yC;yC=window;_.yr=yC.ytcsi&&yC.ytcsi.now?yC.ytcsi.now:yC.performance&&yC.performance.timing&&yC.performance.now&&yC.performance.timing.navigationStart?function(){return yC.performance.timing.navigationStart+yC.performance.now()}:function(){return(new Date).getTime()};var uH=function(e,g){this.JSC$10984_wrapped=e;this.options=g;this.transactionCount=0;this.startedMs=Math.round((0,_.yr)());this.hasUnknownAbortedTransaction=!1},Kw=function(){return _.G("idb_immediate_commit")},sts,F7q,Cw,zmZ;
uH.prototype.add=function(e,g,c){return _.U2(this,[e],{mode:"readwrite",enableRetries:!0,commit:Kw()},function(k){return k.objectStore(e).add(g,c)})};
uH.prototype.clear=function(e){return _.U2(this,[e],{mode:"readwrite",enableRetries:!0},function(g){return g.objectStore(e).clear()})};
uH.prototype.close=function(){this.JSC$10984_wrapped.close();var e;((e=this.options)==null?0:e.closed)&&this.options.closed()};
uH.prototype.count=function(e,g){return _.U2(this,[e],{mode:"readonly",enableRetries:!0,commit:Kw()},function(c){return c.objectStore(e).count(g)})};
var At=function(e,g,c){e=e.JSC$10984_wrapped.createObjectStore(g,c);return new OG(e)};
uH.prototype.delete=function(e,g){return _.U2(this,[e],{mode:"readwrite",enableRetries:!0,commit:Kw()&&!(g instanceof IDBKeyRange)},function(c){return c.objectStore(e).delete(g)})};
var lOY=function(e,g){return _.U2(e,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(c){return c.objectStore("ResponseStore").index("byInterface").delete(g)})};
uH.prototype.get=function(e,g){return _.U2(this,[e],{mode:"readonly",enableRetries:!0,commit:Kw()},function(c){return c.objectStore(e).get(g)})};
uH.prototype.getAll=function(e,g,c){return _.U2(this,[e],{mode:"readonly",enableRetries:!0},function(k){return k.objectStore(e).getAll(g,c)})};
uH.prototype.put=function(e,g,c){return _.U2(this,[e],{mode:"readwrite",enableRetries:!0,commit:Kw()},function(k){return k.objectStore(e).put(g,c)})};
uH.prototype.objectStoreNames=function(){return Array.from(this.JSC$10984_wrapped.objectStoreNames)};
_.U2=function(e,g,c,k){var I,J,q,L,n,R,W,b,h,X,D,f;return _.r(function(l){switch(l.nextAddress){case 1:var A={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?A.mode=c:Object.assign(A,c);I=A;e.transactionCount++;J=I.enableRetries?3:1;q=0;case 2:if(L){l.jumpTo(4);break}q++;n=Math.round((0,_.yr)());_.lj(l,5);R=e.JSC$10984_wrapped.transaction(g,I.mode);A=l.yield;var d=!!I.commit;var S=new d1(R);d=A5s(S,k,d);return A.call(l,d,7);case 7:return W=l.yieldResult,b=Math.round((0,_.yr)()),
sts(e,n,b,q,void 0,g.join(),I),l.return(W);case 5:h=_.Qb(l);X=Math.round((0,_.yr)());D=Tqz(h,e.JSC$10984_wrapped.name,g.join(),e.JSC$10984_wrapped.version);if((f=D instanceof mY&&!D.retryable)||q>=J)sts(e,n,X,q,D,g.join(),I),L=D;l.jumpTo(2);break;case 4:return l.return(Promise.reject(L))}})};
sts=function(e,g,c,k,I,J,q){g=c-g;I?(I instanceof mY&&(I.type==="QUOTA_EXCEEDED"||I.type==="QUOTA_MAYBE_EXCEEDED")&&ff("QUOTA_EXCEEDED",{dbName:iH(e.JSC$10984_wrapped.name),objectStoreNames:J,transactionCount:e.transactionCount,transactionMode:q.mode}),I instanceof mY&&I.type==="UNKNOWN_ABORT"&&(c-=e.startedMs,c<0&&c>=2147483648&&(c=0),ff("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:J,transactionDuration:g,transactionCount:e.transactionCount,dbDuration:c}),e.hasUnknownAbortedTransaction=!0),
F7q(e,!1,k,J,g,q.tag),_.Y1(I)):F7q(e,!0,k,J,g,q.tag)};
F7q=function(e,g,c,k,I,J){ff("TRANSACTION_ENDED",{objectStoreNames:k,connectionHasUnknownAbortedTransaction:e.hasUnknownAbortedTransaction,duration:I,isSuccessful:g,tryCount:c,tag:J===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":J})};
uH.prototype.getName=function(){return this.JSC$10984_wrapped.name};
var OG=function(e){this.JSC$10999_wrapped=e};
OG.prototype.add=function(e,g){return FB(this.JSC$10999_wrapped.add(e,g))};
OG.prototype.autoIncrement=function(){return this.JSC$10999_wrapped.autoIncrement};
OG.prototype.clear=function(){return FB(this.JSC$10999_wrapped.clear()).then(function(){})};
var sn=function(e,g,c){e.JSC$10999_wrapped.createIndex(g,c,{unique:!1})};
OG.prototype.count=function(e){return FB(this.JSC$10999_wrapped.count(e))};
var ubk=function(e,g){return Zv(e,{query:g},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
OG.prototype.delete=function(e){return e instanceof IDBKeyRange?ubk(this,e):FB(this.JSC$10999_wrapped.delete(e))};
OG.prototype.get=function(e){return FB(this.JSC$10999_wrapped.get(e))};
OG.prototype.getAll=function(e,g){return"getAll"in IDBObjectStore.prototype?FB(this.JSC$10999_wrapped.getAll(e,g)):dc1(this,e,g)};
var dc1=function(e,g,c){var k=[];return Zv(e,{query:g},function(I){if(!(c!==void 0&&k.length>=c))return k.push(I.getValue()),I.continue()}).then(function(){return k})};
OG.prototype.index=function(e){try{return new MD(this.JSC$10999_wrapped.index(e))}catch(g){if(g instanceof Error&&g.name==="NotFoundError")throw new mW6(e,this.JSC$10999_wrapped.name);throw g;}};
OG.prototype.getName=function(){return this.JSC$10999_wrapped.name};
OG.prototype.keyPath=function(){return this.JSC$10999_wrapped.keyPath};
OG.prototype.put=function(e,g){return FB(this.JSC$10999_wrapped.put(e,g))};
var Zv=function(e,g,c){e=e.JSC$10999_wrapped.openCursor(g.query,g.direction);return zmZ(e).then(function(k){return ui6(k,c)})},d1=function(e){var g=this;
this.JSC$11007_wrapped=e;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(c,k){g.JSC$11007_wrapped.addEventListener("complete",function(){c()});
g.JSC$11007_wrapped.addEventListener("error",function(I){I.currentTarget===I.target&&k(g.JSC$11007_wrapped.error)});
g.JSC$11007_wrapped.addEventListener("abort",function(){var I=g.JSC$11007_wrapped.error;if(I)k(I);else if(!g.aborted){I=mY;for(var J=g.JSC$11007_wrapped.objectStoreNames,q=[],L=0;L<J.length;L++){var n=J.item(L);if(n===null)throw Error("Yc");q.push(n)}I=new I("UNKNOWN_ABORT",{objectStoreNames:q.join(),dbName:g.JSC$11007_wrapped.db.name,mode:g.JSC$11007_wrapped.mode});k(I)}})})},A5s=function(e,g,c){var k=new Promise(function(I,J){try{var q=g(e);
c&&e.commit();q.then(function(L){I(L)}).catch(J)}catch(L){J(L),e.abort()}});
return Promise.all([k,e.done]).then(function(I){return _.w(I).next().value})};
d1.prototype.abort=function(){this.JSC$11007_wrapped.abort();this.aborted=!0;throw new mY("EXPLICIT_ABORT");};
d1.prototype.commit=function(){if(!this.aborted){var e,g;(g=(e=this.JSC$11007_wrapped).commit)==null||g.call(e)}};
d1.prototype.objectStore=function(e){e=this.JSC$11007_wrapped.objectStore(e);var g=this.objectStoreCache.get(e);g||(g=new OG(e),this.objectStoreCache.set(e,g));return g};
var MD=function(e){this.JSC$11009_wrapped=e};
MD.prototype.count=function(e){return FB(this.JSC$11009_wrapped.count(e))};
MD.prototype.delete=function(e){return _.Kf(this,{query:e},function(g){return g.delete().then(function(){return g.continue()})})};
MD.prototype.get=function(e){return FB(this.JSC$11009_wrapped.get(e))};
MD.prototype.getAll=function(e,g){return"getAll"in IDBIndex.prototype?FB(this.JSC$11009_wrapped.getAll(e,g)):HA1(this,e,g)};
var HA1=function(e,g,c){var k=[];return _.Kf(e,{query:g},function(I){if(!(c!==void 0&&k.length>=c))return k.push(I.getValue()),I.continue()}).then(function(){return k})};
MD.prototype.keyPath=function(){return this.JSC$11009_wrapped.keyPath};
MD.prototype.unique=function(){return this.JSC$11009_wrapped.unique};
_.Kf=function(e,g,c){e=e.JSC$11009_wrapped.openCursor(g.query===void 0?null:g.query,g.direction===void 0?"next":g.direction);return zmZ(e).then(function(k){return ui6(k,c)})};
Cw=function(e,g){this.request=e;this.cursor=g};
zmZ=function(e){return FB(e).then(function(g){return g?new Cw(e,g):null})};
Cw.prototype.continue=function(e){this.cursor.continue(e);return zmZ(this.request)};
Cw.prototype.delete=function(){return FB(this.cursor.delete()).then(function(){})};
Cw.prototype.getValue=function(){return this.cursor.value};
Cw.prototype.update=function(e){return FB(this.cursor.update(e))};var eL=function(e,g){this.name=e;this.options=g;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Qtq;
eL.prototype.openDb=function(e,g,c){c=c===void 0?{}:c;return zBC(e,g,c)};
eL.prototype.delete=function(e){e=e===void 0?{}:e;return _.HQ(this.name,e)};
Qtq=function(e,g){return new mY("INCOMPATIBLE_DB_VERSION",{dbName:e.name,oldVersion:e.options.version,newVersion:g})};
_.Qr=function(e,g){if(!g)throw lH("openWithToken",iH(e.name));return e.open()};
eL.prototype.open=function(){var e=this;if(!this.isCompatible)throw Qtq(this);if(this.connectionPromise)return this.connectionPromise;var g,c=function(){e.connectionPromise===g&&(e.connectionPromise=void 0)},k={blocking:function(J){J.close()},
closed:c,terminated:c,upgrade:this.options.upgrade},I=function(){var J,q,L,n,R,W,b,h,X,D;return _.r(function(f){switch(f.nextAddress){case 1:return q=(J=Error().stack)!=null?J:"",_.lj(f,2),f.yield(e.openDb(e.name,e.options.version,k),4);case 4:for(var l=L=f.yieldResult,A=e.options,d=[],S=_.w(Object.keys(A.objectStores)),V=S.next();!V.done;V=S.next()){V=V.value;var Q=A.objectStores[V],y=Q.removedAtVersion===void 0?Number.MAX_VALUE:Q.removedAtVersion;!(l.JSC$10984_wrapped.version>=Q.addedAtVersion)||
l.JSC$10984_wrapped.version>=y||l.JSC$10984_wrapped.objectStoreNames.contains(V)||d.push(V)}n=d;if(n.length===0){f.jumpTo(5);break}R=Object.keys(e.options.objectStores);W=L.objectStoreNames();if(e.timesReopenedToFixMissingObjectStore<_.MN("ytidb_reopen_db_retries",0))return e.timesReopenedToFixMissingObjectStore++,L.close(),_.Y1(new mY("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:e.name,expectedObjectStores:R,foundObjectStores:W})),f.return(I());if(!(e.timesDeletedToFixMissingObjectStore<_.MN("ytidb_remake_db_retries",
1))){f.jumpTo(6);break}e.timesDeletedToFixMissingObjectStore++;return f.yield(e.delete(),7);case 7:return _.Y1(new mY("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:e.name,expectedObjectStores:R,foundObjectStores:W})),f.return(I());case 6:throw new PBB(W,R);case 5:return f.return(L);case 2:b=_.Qb(f);if(b instanceof DOMException?b.name!=="VersionError":"DOMError"in self&&b instanceof DOMError?b.name!=="VersionError":!(b instanceof Object&&"message"in b)||b.message!=="An attempt was made to open a database using a lower version than the existing version."){f.jumpTo(8);
break}return f.yield(e.openDb(e.name,void 0,Object.assign({},k,{upgrade:void 0})),9);case 9:h=f.yieldResult;X=h.JSC$10984_wrapped.version;if(e.options.version!==void 0&&X>e.options.version+1)throw h.close(),e.isCompatible=!1,Qtq(e,X);return f.return(h);case 8:throw c(),b instanceof Error&&!_.G("ytidb_async_stack_killswitch")&&(b.stack=b.stack+"\n"+q.substring(q.indexOf("\n")+1)),Tqz(b,e.name,"",(D=e.options.version)!=null?D:-1);}})};
return this.connectionPromise=g=I()};var HUq=new eL("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(e,g){g(1)&&At(e,"databases",{keyPath:"actualName"})}});var BqV,Voe=new function(){}(new function(){});new _.V8;var Uck=function(e,g){eL.call(this,e,g);this.options=g;jn(e)};
_.Y(Uck,eL);var c3g=function(e,g){var c;return function(){c||(c=new Uck(e,g));return c}};
Uck.prototype.openDb=function(e,g,c){c=c===void 0?{}:c;return(this.options.shared?OUg:Kpq)(e,g,Object.assign({},c))};
Uck.prototype.delete=function(e){e=e===void 0?{}:e;return(this.options.shared?gvC:Mo8)(this.name,e)};var onZ={},kbC=Sn("ytGcfConfig",{objectStores:(onZ.coldConfigStore={addedAtVersion:1},onZ.hotConfigStore={addedAtVersion:1},onZ),shared:!1,upgrade:function(e,g){g(1)&&(sn(At(e,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),sn(At(e,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var ZAM=function(){_.Iy.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var e=_.Q0("yt.gcf.config.hotUpdateCallbacks");e?(this.localHotConfigJobQueue=[].concat(_.KY(e)),this.sharedHotConfigJobQueue=e):(this.sharedHotConfigJobQueue=[],_.BQ("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.Y(ZAM,_.Iy);ZAM.prototype.disposeInternal=function(){for(var e=_.w(this.localHotConfigJobQueue),g=e.next();!g.done;g=e.next()){var c=this.sharedHotConfigJobQueue;g=c.indexOf(g.value);g>=0&&c.splice(g,1)}this.localHotConfigJobQueue.length=0;_.Iy.prototype.disposeInternal.call(this)};var XC=function(){var e=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new ZAM;this.TEST_ONLY={initializeConfigDb:function(){e.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return e.coldGlobalConfigGroup},
setHotConfigGroup:function(g){V4q(e,g)},
setHotHashData:function(g){e.setHotHashData(g)},
setColdConfigGroup:function(g){t4Y(e,g)},
getColdHashData:function(){return e.coldHashData},
getHotHashData:function(){return e.hotHashData},
getHotConfigGroup:function(){return e.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return B$s()},
getExportedHotConfigGroup:function(){return gx()},
getExportedColdHashData:function(){return _.Q0("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Q0("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){N$v(e)},
resetInstance:function(){e.setHotHashData(void 0);SVw(e);delete XC.instance},
setDebounceTimer:function(g){e.debounceTimer=g},
getDebounceTimer:function(){return e.debounceTimer}}},y51=function(){if(!XC.instance){var e=new XC;
XC.instance=e}return XC.instance},M4B=function(e){var g;
_.r(function(c){if(c.nextAddress==1)return _.G("start_client_gcf")||_.G("delete_gcf_config_db")?_.G("start_client_gcf")?c.yield(_.Nl(),3):c.jumpTo(2):c.return();c.nextAddress!=2&&((g=c.yieldResult)&&_.R$()&&!_.G("delete_gcf_config_db")?(e.isConfigDbInitialized=!0,N$v(e)):(K7q(e),OA4(e)));return _.G("delete_gcf_config_db")?c.yield(LiK(),0):c.jumpTo(0)})},Gm=function(){var e;
return(e=gx())!=null?e:_.uo("RAW_HOT_CONFIG_GROUP")},CBB=function(e){var g,c,k,I,J,q;
return _.r(function(L){switch(L.nextAddress){case 1:if(e.hotGlobalConfigGroup)return L.return(gx());if(!e.isConfigDbInitialized)return g=lH("getHotConfig IDB not initialized"),_.UI(g),L.return(Promise.reject(g));c=tK();k=_.uo("TIME_CREATED_MS");if(!c){I=lH("getHotConfig token error");_.UI(I);L.jumpTo(2);break}return L.yield(qYe(c),3);case 3:if((J=L.yieldResult)&&J.timestamp>k)return V4q(e,J.config),e.setHotHashData(J.hashData),L.return(gx());case 2:OA4(e);if(!(c&&e.hotGlobalConfigGroup&&e.hotHashData)){L.jumpTo(4);
break}return L.yield(J3q(e.hotGlobalConfigGroup,e.hotHashData,c,k),4);case 4:return e.hotGlobalConfigGroup?L.return(gx()):(q=new _.E2("Config not available in ytConfig"),_.UI(q),L.return(Promise.reject(q)))}})},gd1=function(e){var g,c,k,I,J,q;
return _.r(function(L){switch(L.nextAddress){case 1:if(e.coldGlobalConfigGroup)return L.return(B$s());if(!e.isConfigDbInitialized)return g=lH("getColdConfig IDB not initialized"),_.UI(g),L.return(Promise.reject(g));c=tK();k=_.uo("TIME_CREATED_MS");if(!c){I=lH("getColdConfig");_.UI(I);L.jumpTo(2);break}return L.yield(wg8(c),3);case 3:if((J=L.yieldResult)&&J.timestamp>k)return t4Y(e,J.config),eB1(e,J.configData),SVw(e,J.hashData),L.return(B$s());case 2:K7q(e);if(!(c&&e.coldGlobalConfigGroup&&e.coldHashData&&
e.configData)){L.jumpTo(4);break}return L.yield(vvq(e.coldGlobalConfigGroup,e.coldHashData,e.configData,c,k),4);case 4:return e.coldGlobalConfigGroup?L.return(B$s()):(q=new _.E2("Config not available in ytConfig"),_.UI(q),L.return(Promise.reject(q)))}})},N$v=function(e){if(!e.hotGlobalConfigGroup||!e.coldGlobalConfigGroup){if(!tK()){var g=lH("scheduleGetConfigs");
_.UI(g)}e.initJob||(e.initJob=_.ft.addLowPriorityJob(function(){return _.r(function(c){switch(c.nextAddress){case 1:return _.lj(c,2),c.yield(CBB(e),4);case 4:_.zn(c,3);break;case 2:_.Qb(c);case 3:return _.lj(c,5),c.yield(gd1(e),7);case 7:_.zn(c,6);break;case 5:_.Qb(c);case 6:e.initJob&&(e.initJob=0),_.Uh(c)}})},100))}},I9p=function(e,g,c){var k,I,J;
return _.r(function(q){switch(q.nextAddress){case 1:if(!_.G("start_client_gcf")){q.jumpTo(0);break}c&&V4q(e,c);e.setHotHashData(g);k=tK();if(!k){q.jumpTo(3);break}if(c){q.jumpTo(4);break}return q.yield(qYe(k),5);case 5:I=q.yieldResult,c=(J=I)==null?void 0:J.config;case 4:return q.yield(J3q(c,g,k),3);case 3:if(c)for(var L=c,n=_.w(e.configUpdateService.sharedHotConfigJobQueue),R=n.next();!R.done;R=n.next())R=R.value,R(L);_.Uh(q)}})},JCg=function(e,g,c){var k,I,J,q;
return _.r(function(L){if(L.nextAddress==1){if(!_.G("start_client_gcf"))return L.jumpTo(0);SVw(e,g);return(k=tK())?c?L.jumpTo(4):L.yield(wg8(k),5):L.jumpTo(0)}L.nextAddress!=4&&(I=L.yieldResult,c=(J=I)==null?void 0:J.config);if(!c)return L.jumpTo(0);q=c.configData;return L.yield(vvq(c,g,q,k),0)})},PgW=function(){var e=y51(),g=(0,_.yr)()-e.debounceTimer;
if(!(e.debounceTimer!==0&&g<_.MN("send_config_hash_timer"))){g=_.Q0("yt.gcf.config.coldConfigData");var c=_.Q0("yt.gcf.config.hotHashData"),k=_.Q0("yt.gcf.config.coldHashData");g&&c&&k&&(e.debounceTimer=(0,_.yr)());return{coldConfigData:g,hotHashData:c,coldHashData:k}}},K7q=function(e){t4Y(e,_.uo("RAW_COLD_CONFIG_GROUP"));
SVw(e,_.uo("SERIALIZED_COLD_HASH_DATA"));var g;eB1(e,(g=e.coldGlobalConfigGroup)==null?void 0:g.configData)},OA4=function(e){V4q(e,_.uo("RAW_HOT_CONFIG_GROUP"));
e.setHotHashData(_.uo("SERIALIZED_HOT_HASH_DATA"))},V4q=function(e,g){e.hotGlobalConfigGroup=g;
_.BQ("yt.gcf.config.hotConfigGroup",e.hotGlobalConfigGroup||null)},t4Y=function(e,g){e.coldGlobalConfigGroup=g;
_.BQ("yt.gcf.config.coldConfigGroup",e.coldGlobalConfigGroup||null)};
XC.prototype.setHotHashData=function(e){this.hotHashData=e;_.BQ("yt.gcf.config.hotHashData",this.hotHashData||null)};
var SVw=function(e,g){e.coldHashData=g;_.BQ("yt.gcf.config.coldHashData",e.coldHashData||null)},eB1=function(e,g){e.configData=g;
_.BQ("yt.gcf.config.coldConfigData",e.configData||null)},gx=function(){return _.Q0("yt.gcf.config.hotConfigGroup")},B$s=function(){return _.Q0("yt.gcf.config.coldConfigGroup")};var vb={},cww=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";vb.assign=function(e){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var c=g.shift();if(c){if(typeof c!=="object")throw new TypeError("ad`"+c);for(var k in c)Object.prototype.hasOwnProperty.call(c,k)&&(e[k]=c[k])}}return e};
vb.shrinkBuf=function(e,g){if(e.length===g)return e;if(e.subarray)return e.subarray(0,g);e.length=g;return e};
var ktu={arraySet:function(e,g,c,k,I){if(g.subarray&&e.subarray)e.set(g.subarray(c,c+k),I);else for(var J=0;J<k;J++)e[I+J]=g[c+J]},
flattenChunks:function(e){var g,c;var k=c=0;for(g=e.length;k<g;k++)c+=e[k].length;var I=new Uint8Array(c);k=c=0;for(g=e.length;k<g;k++){var J=e[k];I.set(J,c);c+=J.length}return I}},IYk={arraySet:function(e,g,c,k,I){for(var J=0;J<k;J++)e[I+J]=g[c+J]},
flattenChunks:function(e){return[].concat.apply([],e)}};
vb.setTyped=function(){cww?(vb.Buf8=Uint8Array,vb.Buf16=Uint16Array,vb.Buf32=Int32Array,vb.assign(vb,ktu)):(vb.Buf8=Array,vb.Buf16=Array,vb.Buf32=Array,vb.assign(vb,IYk))};
vb.setTyped();var Jwq=!0;try{new Uint8Array(1)}catch(e){Jwq=!1}
var qzg=function(e){var g,c,k=e.length,I=0;for(g=0;g<k;g++){var J=e.charCodeAt(g);if((J&64512)===55296&&g+1<k){var q=e.charCodeAt(g+1);(q&64512)===56320&&(J=65536+(J-55296<<10)+(q-56320),g++)}I+=J<128?1:J<2048?2:J<65536?3:4}var L=new vb.Buf8(I);for(g=c=0;c<I;g++)J=e.charCodeAt(g),(J&64512)===55296&&g+1<k&&(q=e.charCodeAt(g+1),(q&64512)===56320&&(J=65536+(J-55296<<10)+(q-56320),g++)),J<128?L[c++]=J:(J<2048?L[c++]=192|J>>>6:(J<65536?L[c++]=224|J>>>12:(L[c++]=240|J>>>18,L[c++]=128|J>>>12&63),L[c++]=
128|J>>>6&63),L[c++]=128|J&63);return L};var y3V={};y3V=function(e,g,c,k){var I=e&65535|0;e=e>>>16&65535|0;for(var J;c!==0;){J=c>2E3?2E3:c;c-=J;do I=I+g[k++]|0,e=e+I|0;while(--J);I%=65521;e%=65521}return I|e<<16|0};for(var GI={},ck,vdq=[],wLu=0;wLu<256;wLu++){ck=wLu;for(var qoI=0;qoI<8;qoI++)ck=ck&1?3988292384^ck>>>1:ck>>>1;vdq[wLu]=ck}GI=function(e,g,c,k){c=k+c;for(e^=-1;k<c;k++)e=e>>>8^vdq[(e^g[k])&255];return e^-1};var rK={};rK={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 z9g=[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],Q1C=[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],woV=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Np6=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],En=Array(576);cb(En);var Wb=Array(60);cb(Wb);var qz=Array(512);cb(qz);var wK=Array(256);cb(wK);var Hsg=Array(29);cb(Hsg);var UkV=Array(30);cb(UkV);var IFC,Js6,v_t,k5z=!1;var Ym;
Ym=[new $m(0,0,0,0,function(e,g){var c=65535;for(c>e.pending_buf_size-5&&(c=e.pending_buf_size-5);;){if(e.lookahead<=1){xm(e);if(e.lookahead===0&&g===0)return 1;if(e.lookahead===0)break}e.strstart+=e.lookahead;e.lookahead=0;var k=e.block_start+c;if(e.strstart===0||e.strstart>=k)if(e.lookahead=e.strstart-k,e.strstart=k,bw(e,!1),e.strm.avail_out===0)return 1;if(e.strstart-e.block_start>=e.w_size-262&&(bw(e,!1),e.strm.avail_out===0))return 1}e.insert=0;if(g===4)return bw(e,!0),e.strm.avail_out===0?3:
4;e.strstart>e.block_start&&bw(e,!1);return 1}),
new $m(4,4,8,4,Ki6),new $m(4,5,16,8,Ki6),new $m(4,6,32,32,Ki6),new $m(4,4,16,16,Dk),new $m(8,16,32,32,Dk),new $m(8,16,128,128,Dk),new $m(8,32,128,256,Dk),new $m(32,128,258,1024,Dk),new $m(32,258,258,4096,Dk)];var csV={};csV=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 LkA=Object.prototype.toString;
g_g.prototype.push=function(e,g){var c=this.strm,k=this.options.chunkSize;if(this.ended)return!1;var I=g===~~g?g:g===!0?4:0;typeof e==="string"?c.input=qzg(e):LkA.call(e)==="[object ArrayBuffer]"?c.input=new Uint8Array(e):c.input=e;c.next_in=0;c.avail_in=c.input.length;do{c.avail_out===0&&(c.output=new vb.Buf8(k),c.next_out=0,c.avail_out=k);e=epz(c,I);if(e!==1&&e!==0)return Lp4(this,e),this.ended=!0,!1;if(c.avail_out===0||c.avail_in===0&&(I===4||I===2))if(this.options.to==="string"){var J=vb.shrinkBuf(c.output,
c.next_out);g=J;J=J.length;if(J<65537&&(g.subarray&&Jwq||!g.subarray))g=String.fromCharCode.apply(null,vb.shrinkBuf(g,J));else{for(var q="",L=0;L<J;L++)q+=String.fromCharCode(g[L]);g=q}this.chunks.push(g)}else g=vb.shrinkBuf(c.output,c.next_out),this.chunks.push(g)}while((c.avail_in>0||c.avail_out===0)&&e!==1);if(I===4)return(c=this.strm)&&c.state?(k=c.state.status,k!==42&&k!==69&&k!==73&&k!==91&&k!==103&&k!==113&&k!==666?e=aF(c,-2):(c.state=null,e=k===113?aF(c,-3):0)):e=-2,Lp4(this,e),this.ended=
!0,e===0;I===2&&(Lp4(this,0),c.avail_out=0);return!0};
var Lp4=function(e,g){g===0&&(e.result=e.options.to==="string"?e.chunks.join(""):vb.flattenChunks(e.chunks));e.chunks=[];e.err=g;e.msg=e.strm.msg};var rwn=typeof TextEncoder!=="undefined"?new TextEncoder:null,zpq=rwn?function(e){return rwn.encode(e)}:function(e){e=_.vz(e);
for(var g=new Uint8Array(e.length),c=0;c<g.length;c++)g[c]=e[c];return g};var cFz={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},I6z={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var kH=function(e,g){this.version=e;this.args=g};
kH.prototype.serialize=function(){return{version:this.version,args:this.args}};var E_K=function(e,g){this.topic=e;this.dataClass=g};
E_K.prototype.toString=function(){return this.topic};var aYs=_.Q0("ytPubsub2Pubsub2Instance")||new _.w1;_.w1.prototype.subscribe=_.w1.prototype.subscribe;_.w1.prototype.unsubscribeByKey=_.w1.prototype.unsubscribeByKey;_.w1.prototype.publish=_.w1.prototype.publish;_.w1.prototype.clear=_.w1.prototype.clear;_.BQ("ytPubsub2Pubsub2Instance",aYs);var RpK=_.Q0("ytPubsub2Pubsub2SubscribedKeys")||{};_.BQ("ytPubsub2Pubsub2SubscribedKeys",RpK);var bOA=_.Q0("ytPubsub2Pubsub2TopicToKeys")||{};_.BQ("ytPubsub2Pubsub2TopicToKeys",bOA);
var WkC=_.Q0("ytPubsub2Pubsub2IsAsync")||{};_.BQ("ytPubsub2Pubsub2IsAsync",WkC);_.BQ("ytPubsub2Pubsub2SkipSubKey",null);var iOt=void 0,fFU=void 0;var Fk6=_.MN("max_body_size_to_compress",5E5),uAC=_.MN("min_body_size_to_compress",500),iw=!0,UYg=0,Pb=0,QIe=_.MN("compression_performance_threshold_lr",250),ZOt=_.MN("slow_compressions_before_abandon_count",4),poU=!1,TkC=new Map,dY8=1;_.Um(mC,tYq);mC.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 ndY=function(e,g,c){c||(c=0);var k=e.W_;if(typeof g==="string")for(var I=0;I<16;I++)k[I]=g.charCodeAt(c)<<24|g.charCodeAt(c+1)<<16|g.charCodeAt(c+2)<<8|g.charCodeAt(c+3),c+=4;else for(I=0;I<16;I++)k[I]=g[c]<<24|g[c+1]<<16|g[c+2]<<8|g[c+3],c+=4;for(g=16;g<80;g++)c=k[g-3]^k[g-8]^k[g-14]^k[g-16],k[g]=(c<<1|c>>>31)&4294967295;g=e.chain_[0];c=e.chain_[1];I=e.chain_[2];for(var J=e.chain_[3],q=e.chain_[4],L,n,R=0;R<80;R++)R<40?R<20?(L=J^c&(I^J),n=1518500249):(L=c^I^J,n=1859775393):R<60?(L=c&I|J&(c|I),
n=2400959708):(L=c^I^J,n=3395469782),L=(g<<5|g>>>27)+L+q+n+k[R]&4294967295,q=J,J=I,I=(c<<30|c>>>2)&4294967295,c=g,g=L;e.chain_[0]=e.chain_[0]+g&4294967295;e.chain_[1]=e.chain_[1]+c&4294967295;e.chain_[2]=e.chain_[2]+I&4294967295;e.chain_[3]=e.chain_[3]+J&4294967295;e.chain_[4]=e.chain_[4]+q&4294967295};
mC.prototype.update=function(e,g){if(e!=null){g===void 0&&(g=e.length);for(var c=g-this.blockSize,k=0,I=this.buf_,J=this.inbuf_;k<g;){if(J==0)for(;k<=c;)ndY(this,e,k),k+=this.blockSize;if(typeof e==="string")for(;k<g;){if(I[J]=e.charCodeAt(k),++J,++k,J==this.blockSize){ndY(this,I);J=0;break}}else for(;k<g;)if(I[J]=e[k],++J,++k,J==this.blockSize){ndY(this,I);J=0;break}}this.inbuf_=J;this.total_+=g}};
mC.prototype.digest=function(){var e=[],g=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var c=this.blockSize-1;c>=56;c--)this.buf_[c]=g&255,g/=256;ndY(this,this.buf_);for(c=g=0;c<5;c++)for(var k=24;k>=0;k-=8)e[g]=this.chain_[c]>>k&255,++g;return e};var Sz8;var JS=function(e){var g=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(W){g.databaseToken=W},
triggerThrottle:function(){g.throttledSend()},
cancelThrottle:function(){g.cancelThrottledSend()},
immediateSend:function(W){return _.r(function(b){return b.yield(g.immediateSend(W),0)})},
requestWithinAgeLimit:function(W,b){return g.requestWithinAgeLimit(W,b)},
retryQueuedRequests:function(){g.retryQueuedRequests()}};
var c;this.throttleTimeout=(c=e.throttleTimeout)!=null?c:100;var k;this.retryMaxAttempts=(k=e.retryMaxAttempts)!=null?k:1;var I;this.requestAgeLimitMs=(I=e.requestAgeLimitMs)!=null?I:2592E6;var J;this.queuedRequestAgeLimitMs=(J=e.queuedRequestAgeLimitMs)!=null?J:12E4;var q;this.retryDelayMs=(q=e.retryDelayMs)!=null?q:5E3;var L;this.databaseToken=(L=e.databaseToken)!=null?L:void 0;this.enableCleaning=!!e.enableCleaning;var n;this.cleaningRate=(n=e.cleaningRate)!=null?n:.1;var R;this.potentialEsfErrorLimit=
(R=e.potentialEsfErrorLimit)!=null?R:10;e.handleError&&(this.handleError=e.handleError);e.handleWarning&&(this.handleWarning=e.handleWarning);e.disableYtIdbTransactions&&(this.disableYtIdbTransactions=e.disableYtIdbTransactions);e.bypassDbTokenDependency&&(this.bypassDbTokenDependency=e.bypassDbTokenDependency);this.getBooleanFlag=e.getBooleanFlag;this.jobManager=e.jobManager;this.logsStore=e.logsStore;this.networkManager=e.networkManager;this.sendFn=e.sendFn;this.onlineEvent=e.onlineEvent;this.offlineEvent=
e.offlineEvent;Ig(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&RBq(this)},RBq=function(e){Ig(e)&&!e.disableYtIdbTransactions&&(e.initialized=!0,e.enableCleaning&&Math.random()<=e.cleaningRate&&e.logsStore.cleanLogsStore(e.databaseToken),e.retryQueuedRequests(),e.networkManager.isNetworkAvailable()&&e.throttledSend(),e.networkManager.listen(e.onlineEvent,e.throttledSend.bind(e)),e.networkManager.listen(e.offlineEvent,e.cancelThrottledSend.bind(e)))};
_.v=JS.prototype;_.v.writeThenSend=function(e,g){var c=this;g=g===void 0?{}:g;if(Ig(this)&&this.initialized){var k={url:e,options:g,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(k,this.databaseToken).then(function(I){k.id=I;c.networkManager.isNetworkAvailable()&&c.immediateSend(k)}).catch(function(I){c.immediateSend(k);
Edk(c,I)})}else this.sendFn(e,g)};
_.v.sendThenWrite=function(e,g,c){var k=this;g=g===void 0?{}:g;if(Ig(this)&&this.initialized){var I={url:e,options:g,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(I.skipRetry=c);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!I.skipRetry){if(!I.skipRetry){var J=g.onError?g.onError:function(){};
g.onError=function(q,L){return _.r(function(n){if(n.nextAddress==1)return n.yield(k.logsStore.set(I,k.databaseToken).catch(function(R){Edk(k,R)}),2);
J(q,L);_.Uh(n)})}}this.sendFn(e,g,I.skipRetry)}else this.logsStore.set(I,this.databaseToken).catch(function(q){k.sendFn(e,g,I.skipRetry);
Edk(k,q)})}else this.sendFn(e,g,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&c)};
_.v.sendAndWrite=function(e,g){var c=this;g=g===void 0?{}:g;if(Ig(this)&&this.initialized){var k={url:e,options:g,timestamp:this.now(),status:"NEW",sendCount:0},I=!1,J=g.onSuccess?g.onSuccess:function(){};
k.options.onSuccess=function(q,L){k.id!==void 0?c.logsStore.deleteRequest(k.id,c.databaseToken):I=!0;c.networkManager.networkStatusHint&&c.getBooleanFlag&&c.getBooleanFlag("vss_network_hint")&&c.networkManager.networkStatusHint(!0);J(q,L)};
this.sendFn(k.url,k.options,void 0,!0);this.logsStore.set(k,this.databaseToken).then(function(q){k.id=q;I&&c.logsStore.deleteRequest(k.id,c.databaseToken)}).catch(function(q){Edk(c,q)})}else this.sendFn(e,g,void 0,!0)};
_.v.throttledSend=function(){var e=this;if(!Ig(this))throw Error("dd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var g;return _.r(function(c){if(c.nextAddress==1)return c.yield(e.logsStore.getMostRecentByStatus("NEW",e.databaseToken),2);if(c.nextAddress!=3)return g=c.yieldResult,g?c.yield(e.immediateSend(g),3):(e.cancelThrottledSend(),c.return());e.intervalJob&&(e.intervalJob=0,e.throttledSend());_.Uh(c)})},this.throttleTimeout))};
_.v.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.v.immediateSend=function(e){var g=this,c;return _.r(function(k){switch(k.nextAddress){case 1:if(!Ig(g))throw Error("ed");if(e.id===void 0){k.jumpTo(2);break}return k.yield(g.logsStore.markAsQueued(e.id,g.databaseToken),3);case 3:(c=k.yieldResult)||g.handleWarning(Error("fd"));case 2:if(g.requestWithinAgeLimit(e,g.requestAgeLimitMs)){k.jumpTo(4);break}g.handleWarning(Error("gd"));if(e.id===void 0){k.jumpTo(5);break}return k.yield(g.logsStore.deleteRequest(e.id,g.databaseToken),5);case 5:return k.return();
case 4:e.skipRetry||(e=Wps(g,e));if(!e){k.jumpTo(0);break}if(!e.skipRetry||e.id===void 0){k.jumpTo(8);break}return k.yield(g.logsStore.deleteRequest(e.id,g.databaseToken),8);case 8:g.sendFn(e.url,e.options,!!e.skipRetry),_.Uh(k)}})};
var Wps=function(e,g){if(!Ig(e))throw Error("hd");var c=g.options.onError?g.options.onError:function(){};
g.options.onError=function(I,J){var q,L,n,R;return _.r(function(W){switch(W.nextAddress){case 1:q=CFz(J);(L=eZC(J))&&e.getBooleanFlag&&e.getBooleanFlag("web_enable_error_204")&&e.handleError(Error("id"),g.url,J);if(!(e.getBooleanFlag&&e.getBooleanFlag("nwl_consider_error_code")&&q||e.getBooleanFlag&&!e.getBooleanFlag("nwl_consider_error_code")&&e.potentialEsfErrorCounter<=e.potentialEsfErrorLimit)){W.jumpTo(2);break}if(!e.networkManager.sendNetworkCheckRequest){W.jumpTo(3);break}return W.yield(e.networkManager.sendNetworkCheckRequest(),
3);case 3:if(e.networkManager.isNetworkAvailable()){W.jumpTo(2);break}c(I,J);if(!e.getBooleanFlag||!e.getBooleanFlag("nwl_consider_error_code")||((n=g)==null?void 0:n.id)===void 0){W.jumpTo(6);break}return W.yield(e.logsStore.resetRequest(g.id,e.databaseToken,!1),6);case 6:return W.return();case 2:if(e.getBooleanFlag&&e.getBooleanFlag("nwl_consider_error_code")&&!q&&e.potentialEsfErrorCounter>e.potentialEsfErrorLimit)return W.return();e.potentialEsfErrorCounter++;if(((R=g)==null?void 0:R.id)===void 0){W.jumpTo(8);
break}return g.sendCount<e.retryMaxAttempts?W.yield(e.logsStore.resetRequest(g.id,e.databaseToken,!0,L?!1:void 0),12):W.yield(e.logsStore.deleteRequest(g.id,e.databaseToken),8);case 12:e.jobManager.addLowPriorityJob(function(){e.networkManager.isNetworkAvailable()&&e.throttledSend()},e.retryDelayMs);
case 8:c(I,J),_.Uh(W)}})};
var k=g.options.onSuccess?g.options.onSuccess:function(){};
g.options.onSuccess=function(I,J){var q;return _.r(function(L){if(L.nextAddress==1)return((q=g)==null?void 0:q.id)===void 0?L.jumpTo(2):L.yield(e.logsStore.deleteRequest(g.id,e.databaseToken),2);e.networkManager.networkStatusHint&&e.getBooleanFlag&&e.getBooleanFlag("vss_network_hint")&&e.networkManager.networkStatusHint(!0);k(I,J);_.Uh(L)})};
return g};
JS.prototype.requestWithinAgeLimit=function(e,g){e=e.timestamp;return this.now()-e>=g?!1:!0};
JS.prototype.retryQueuedRequests=function(){var e=this;if(!Ig(this))throw Error("jd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(g){g&&!e.requestWithinAgeLimit(g,e.queuedRequestAgeLimitMs)?e.jobManager.addLowPriorityJob(function(){return _.r(function(c){if(c.nextAddress==1)return g.id===void 0?c.jumpTo(2):c.yield(e.logsStore.resetRequest(g.id,e.databaseToken),2);e.retryQueuedRequests();_.Uh(c)})}):e.networkManager.isNetworkAvailable()&&e.throttledSend()})};
var Edk=function(e,g){e.writeError&&!e.networkManager.isNetworkAvailable()?e.writeError(g):e.handleError(g)},Ig=function(e){return!!e.databaseToken||e.bypassDbTokenDependency};var gk8;var L3W={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5DeviceStorageStats:535,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,
appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,
webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,
parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,
prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,
sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,
parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,
biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,
youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,
crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,
embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534,
mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539};var bUu={},ai8=Sn("ServiceWorkerLogsDatabase",{objectStores:(bUu.SWHealthLog={addedAtVersion:1},bUu),shared:!0,upgrade:function(e,g){g(1)&&sn(At(e,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var GFA={},XTp=0;var YL6;var vk=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Hb=function(){if(!vk.instance){var e=_.Q0("yt.networkRequestMonitor.instance")||new vk;
_.BQ("yt.networkRequestMonitor.instance",e);vk.instance=e}return vk.instance};
vk.prototype.requestComplete=function(e,g){g&&(this.anyRequestHasSucceeded=!0);e=this.removeParams(e);this.requestMap.get(e)||this.requestMap.set(e,g)};
vk.prototype.isEndpointCFR=function(e){e=this.removeParams(e);return(e=this.requestMap.get(e))?!1:e===!1&&this.anyRequestHasSucceeded?!0:null};
vk.prototype.removeParams=function(e){return e.split("?")[0]};
vk.prototype.removeParams=vk.prototype.removeParams;vk.prototype.isEndpointCFR=vk.prototype.isEndpointCFR;vk.prototype.requestComplete=vk.prototype.requestComplete;vk.getInstance=Hb;var wx=function(e){_.jv.call(this);var g=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=e!=null?e:{addLowPriorityJob:function(I,J){return setTimeout(I,J)},
cancelJob:function(I){clearTimeout(I)}};
var c,k;this.isOnline=(k=(c=window.navigator)==null?void 0:c.onLine)!=null?k:!0;this.onNavigatorChange=function(){return _.r(function(I){return I.yield(hBB(g),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||XLB(this)};
_.Y(wx,_.jv);wx.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete wx.instance};
wx.prototype.isNetworkAvailable=function(){return this.isOnline};
var XLB=function(e){e.pollingJob=e.jobManager.addLowPriorityJob(function(){var g;return _.r(function(c){if(c.nextAddress==1)return e.isOnline?((g=window.navigator)==null?0:g.onLine)?c.jumpTo(3):c.yield(hBB(e),3):c.yield(hBB(e),3);XLB(e);_.Uh(c)})},3E4)},hBB=function(e,g){return e.networkRequestPromise?e.networkRequestPromise:e.networkRequestPromise=new Promise(function(c){var k,I,J,q;
return _.r(function(L){switch(L.nextAddress){case 1:return k=window.AbortController?new window.AbortController:void 0,J=(I=k)==null?void 0:I.signal,q=!1,_.lj(L,2,3),k&&(e.abortTimeoutKey=e.jobManager.addLowPriorityJob(function(){k.abort()},g||2E4)),L.yield(fetch("/generate_204",{method:"HEAD",
signal:J}),5);case 5:q=!0;case 3:_.sh(L);e.networkRequestPromise=void 0;e.abortTimeoutKey&&(e.jobManager.cancelJob(e.abortTimeoutKey),e.abortTimeoutKey=0);q!==e.isOnline&&(e.isOnline=q,e.isOnline?e.dispatchEvent("networkstatus-online"):e.dispatchEvent("networkstatus-offline"));c(q);_.HA(L,0);break;case 2:_.Qb(L),q=!1,L.jumpTo(3)}})})};var q9=function(){_.jv.call(this);var e=this;this.shouldFlushErrors=!1;wx.instance||(wx.instance=new wx(_.ft));this.sharedNetworkStatusManager=wx.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(e.shouldFlushErrors&&_.G("offline_error_handling")){var g=fiW().get("errors",!0);if(g){for(var c in g)if(g[c]){var k=new _.E2(c,"sent via offline_errors");k.name=g[c].name;k.stack=g[c].stack;k.level=g[c].level;_.zr(k)}fiW().set("errors",{},2592E3,!0)}}})};
_.Y(q9,_.jv);var Gtq=function(){if(!q9.instance){var e=_.Q0("yt.networkStatusManager.instance")||new q9;_.BQ("yt.networkStatusManager.instance",e);q9.instance=e}return q9.instance};
_.v=q9.prototype;_.v.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.v.networkStatusHint=function(e){this.sharedNetworkStatusManager.isOnline=e};
_.v.getWindowStatus=function(){var e=window.navigator.onLine;return e===void 0?!0:e};
_.v.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.v.listen=function(e,g){return this.sharedNetworkStatusManager.listen(e,g)};
_.v.sendNetworkCheckRequest=function(e){e=hBB(this.sharedNetworkStatusManager,e);e.then(function(g){_.G("use_cfr_monitor")&&Hb().requestComplete("generate_204",g)});
return e};
q9.prototype.sendNetworkCheckRequest=q9.prototype.sendNetworkCheckRequest;q9.prototype.listen=q9.prototype.listen;q9.prototype.enableErrorFlushing=q9.prototype.enableErrorFlushing;q9.prototype.getWindowStatus=q9.prototype.getWindowStatus;q9.prototype.networkStatusHint=q9.prototype.networkStatusHint;q9.prototype.isNetworkAvailable=q9.prototype.isNetworkAvailable;q9.getInstance=Gtq;_.zI=function(e){e=e===void 0?{}:e;_.jv.call(this);var g=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Gtq();var c=_.Q0("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);c&&(e.rateLimit?(this.rateLimit=e.rateLimit,c("networkstatus-online",function(){xWq(g,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){xWq(g,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){g.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",
function(){g.dispatchEvent("publicytnetworkstatus-offline")})))};
_.Y(_.zI,_.jv);_.zI.prototype.isNetworkAvailable=function(){var e=_.Q0("yt.networkStatusManager.instance.isNetworkAvailable");return e?e.bind(this.nsmInstance)():!0};
_.zI.prototype.networkStatusHint=function(e){var g=_.Q0("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);g&&g(e)};
_.zI.prototype.sendNetworkCheckRequest=function(e){var g=this,c;return _.r(function(k){c=_.Q0("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(g.nsmInstance);return _.G("skip_network_check_if_cfr")&&Hb().isEndpointCFR("generate_204")?k.return(new Promise(function(I){var J;g.networkStatusHint(((J=window.navigator)==null?void 0:J.onLine)||!0);I(g.isNetworkAvailable())})):c?k.return(c(e)):k.return(!0)})};
var xWq=function(e,g){e.rateLimit?e.lastJobTime?(_.ft.cancelJob(e.schedulerJob),e.schedulerJob=_.ft.addLowPriorityJob(function(){e.lastPublicSignalSent!==g&&(e.dispatchEvent(g),e.lastPublicSignalSent=g,e.lastJobTime=(0,_.yr)())},e.rateLimit-((0,_.yr)()-e.lastJobTime))):(e.dispatchEvent(g),e.lastPublicSignalSent=g,e.lastJobTime=(0,_.yr)()):e.dispatchEvent(g)};var pTg,LQ=function(){JS.call(this,{logsStore:{cleanLogsStore:LbC,deleteRequest:qLC,getMostRecentByStatus:JbW,markAsQueued:vkC,resetRequest:wTW,set:Iiv},networkManager:_.TLC(),handleError:function(e,g,c){var k,I=c==null?void 0:(k=c.error)==null?void 0:k.code;if(I===400||I===415){var J;e=new _.E2(e.message,g,c==null?void 0:(J=c.error)==null?void 0:J.code);_.UI(e,void 0,void 0,void 0,!0)}else _.zr(e)},
handleWarning:_.UI,sendFn:P3t,now:_.yr,writeError:j6W,jobManager:_.nu(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.MN("potential_esf_error_limit",10),getBooleanFlag:_.G,disableYtIdbTransactions:!(_.R$()&&_.liz())});this.initializationPromise=new _.V8;_.G("networkless_immediately_drop_all_requests")&&rbU();gvC("LogsDatabaseV2")};
_.Y(LQ,JS);_.$Ww=function(){var e=_.Q0("yt.networklessRequestController.instance");e||(e=new LQ,_.BQ("yt.networklessRequestController.instance",e),_.G("networkless_logging")&&_.Nl().then(function(g){e.databaseToken=g;RBq(e);e.initializationPromise.resolve();e.enableCleaning&&Math.random()<=e.cleaningRate&&e.databaseToken&&RZg(e.databaseToken);_.G("networkless_immediately_drop_sw_health_store")&&DWq(e)}));
return e};
LQ.prototype.writeThenSend=function(e,g){g||(g={});g=m2U(e,g);_.R$()||(this.initialized=!1);JS.prototype.writeThenSend.call(this,e,g)};
LQ.prototype.sendThenWrite=function(e,g,c){g||(g={});g=m2U(e,g);_.R$()||(this.initialized=!1);JS.prototype.sendThenWrite.call(this,e,g,c)};
LQ.prototype.sendAndWrite=function(e,g){g||(g={});g=m2U(e,g);_.R$()||(this.initialized=!1);JS.prototype.sendAndWrite.call(this,e,g)};
LQ.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var DWq=function(e){var g;_.r(function(c){if(!e.databaseToken)throw g=lH("clearSWHealthLogsDb"),g;return c.return(EkC(e.databaseToken).catch(function(k){e.handleError(k)}))})};_.s6p=!1;_.Abe=_.kp.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.s6p};_.BQ("ytNetworklessLoggingInitializationOptions",_.Abe);var $2=function(e){var g=this;this.config_=null;e?this.config_=e:r3z()&&(this.config_=_.O2());_.h2(_.ft,function(){MY8(g)},5E3)};
$2.prototype.isReady=function(){!this.config_&&r3z()&&(this.config_=_.O2());return!!this.config_};
var OOC=function(e,g,c,k){!_.uo("VISITOR_DATA")&&g!=="visitor_id"&&Math.random()<.01&&_.UI(new _.E2("Missing VISITOR_DATA when sending innertube request.",g,c,k));if(!e.isReady()){var I=new _.E2("innertube xhrclient not ready",g,c,k);_.zr(I);throw I;}var J={headers:k.headers||{},method:"POST",postParams:c,postBody:k.postBody,postBodyFormat:k.postBodyFormat||"JSON",onTimeout:function(){k.onTimeout()},
onFetchTimeout:k.onTimeout,onSuccess:function(b,h){if(k.onSuccess)k.onSuccess(h)},
onFetchSuccess:function(b){if(k.onSuccess)k.onSuccess(b)},
onProgress:function(b){if(k.onProgress)k.onProgress(b)},
onError:function(b,h){if(k.onError)k.onError(h)},
onFetchError:function(b){if(k.onError)k.onError(b)},
timeout:k.timeout,withCredentials:!0,compress:k.compress};J.headers["Content-Type"]||(J.headers["Content-Type"]="application/json");var q="";(I=e.config_.innertubeHostOverride)&&(q=I);var L=e.config_.innertubeUseThirdPartyAuth||!1,n=_.isz(L,q,k);Object.assign(J.headers,n);J.headers.Authorization&&!q&&L&&(J.headers["x-origin"]=window.location.origin);var R=_.t_(q+("/youtubei/"+e.config_.innertubeApiVersion+"/"+g),{alt:"json"}),W=function(b){b=b===void 0?!1:b;var h;if(k.retry&&q!="www.youtube-nocookie.com"&&
(b||_.G("skip_ls_gel_retry")||J.headers["Content-Type"]!=="application/json"||(h=ysW(g,c,n,L)),h)){var X=J.onSuccess,D=J.onFetchSuccess;J.onSuccess=function(A,d){Kkq(h);X(A,d)};
c.onFetchSuccess=function(A,d){Kkq(h);D(A,d)}}try{if(b&&k.retry&&!k.networklessOptions.bypassNetworkless)J.method="POST",k.networklessOptions.writeThenSend?_.$Ww().writeThenSend(R,J):_.$Ww().sendAndWrite(R,J);
else if(k.compress){var f=!k.networklessOptions.writeThenSend;if(J.postBody){var l=J.postBody;typeof l!=="string"&&(l=JSON.stringify(J.postBody));HOV(R,l,J,_.vQ,f)}else HOV(R,JSON.stringify(J.postParams),J,SVt,f)}else SVt(R,J)}catch(A){if(A.name==="InvalidAccessError")h&&(Kkq(h),h=0),_.UI(Error("kd"));else throw A;}h&&_.h2(_.ft,function(){MY8(e)},5E3)};
_.Fbv()?NqA().then(function(b){W(b)}):W(!1)};var svp=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(svp,_.WJ);var Yon=0,d2g=_.Cb?"webkit":_.er?"moz":_.B2?"ms":XqI?"o":"";_.BQ("ytDomDomGetNextId",_.Q0("ytDomDomGetNextId")||function(){return++Yon});var fYM={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},Vu=function(e){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(e=
e||window.event){this.event=e;for(var g in e)g in fYM||(this[g]=e[g]);this.scale=e.scale;this.rotation=e.rotation;var c=e.target||e.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var k=e.relatedTarget;if(k)try{k=k.nodeName?k:null}catch(I){k=null}else this.type=="mouseover"?k=e.fromElement:this.type=="mouseout"&&(k=e.toElement);this.relatedTarget=k;this.clientX=e.clientX!=void 0?e.clientX:e.pageX;this.clientY=e.clientY!=void 0?e.clientY:e.pageY;this.keyCode=e.keyCode?e.keyCode:e.which;
this.charCode=e.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=e.altKey;this.ctrlKey=e.ctrlKey;this.shiftKey=e.shiftKey;this.metaKey=e.metaKey;this.pageX_=e.pageX;this.pageY_=e.pageY}}catch(I){}},jqw=function(e){if(document.body&&document.documentElement){var g=document.body.scrollTop+document.documentElement.scrollTop;
e.pageX_=e.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);e.pageY_=e.clientY+g}};
Vu.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Vu.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Vu.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Zk=_.kp.ytEventsEventsListeners||{};_.BQ("ytEventsEventsListeners",Zk);var Zvg=_.kp.ytEventsEventsCounter||{count:0};_.BQ("ytEventsEventsCounter",Zvg);var VUe=_.n2(function(){var e=!1;try{var g=Object.defineProperty({},"capture",{get:function(){e=!0}});
window.addEventListener("test",null,g)}catch(c){}return e});_.Um(Bb,_.Iy);Bb.prototype.onMouseMove_=function(e){e.pageX_===void 0&&jqw(e);var g=e.pageX_;e.pageY_===void 0&&jqw(e);this.position_=new _.pr(g,e.pageY_)};
Bb.prototype.checkPosition_=function(){if(this.position_){var e=(0,_.yr)();if(this.previousTime_!=0){var g=this.previousPosition_,c=this.position_,k=g.x-c.x;g=g.y-c.y;k=Math.sqrt(k*k+g*g)/(e-this.previousTime_);this.cycles_[this.index_]=Math.abs((k-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(c=g=0;c<4;c++)g+=this.cycles_[c]||0;g>=3&&this.callback_();this.previousVelocity_=k}this.previousTime_=e;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Bb.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.tUg(this.mouseListenerKey_)};var KbC={};var kPV=new _.lN("rawColdConfigGroup");var cCe=new _.lN("rawHotConfigGroup");var iU1=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(iU1,_.WJ);var A$U=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(A$U,_.WJ);var bf=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e,500)};
_.Y(bf,_.WJ);bf.prototype.getPayloadCase=function(){return _.JP(this,Pmu)};
bf.prototype.getContext=function(){return _.Ml(this,A$U,33)};
var Pmu=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539];var Ksv=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Ksv,_.WJ);var ixV=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(ixV,_.WJ);ixV.prototype.setVideoId=function(e){return J2(this,1,P6e,pg(e))};
ixV.prototype.getPlaylistId=function(){return _.Ma(this,al(this,P6e,2))};
var P6e=[1,2];var vy=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(vy,_.WJ);vy.prototype.getContext=function(){return _.Ml(this,wF,1)};
vy.prototype.getTier=function(){return _.EU(this,7)};
vy.prototype.getRetryCount=function(){return _.Qh(this,11)};var mW4,Kt,On;mW4=_.kp.ytPubsubPubsubInstance||new _.w1;Kt=_.kp.ytPubsubPubsubSubscribedKeys||{};On=_.kp.ytPubsubPubsubTopicToKeys||{};_.Ov6=_.kp.ytPubsubPubsubIsSynchronous||{};_.w1.prototype.subscribe=_.w1.prototype.subscribe;_.w1.prototype.unsubscribeByKey=_.w1.prototype.unsubscribeByKey;_.w1.prototype.publish=_.w1.prototype.publish;_.w1.prototype.clear=_.w1.prototype.clear;_.BQ("ytPubsubPubsubInstance",mW4);_.BQ("ytPubsubPubsubTopicToKeys",On);_.BQ("ytPubsubPubsubIsSynchronous",_.Ov6);
_.BQ("ytPubsubPubsubSubscribedKeys",Kt);var Ct=window;var rx=_.G("web_enable_lifecycle_monitoring")&&c4K()!==0,pL4=_.G("web_enable_lifecycle_monitoring");var Tqw=function(e){var g=this;var c=c===void 0?0:c;var k=k===void 0?_.nu():k;this.JSC$11205_defaultPriority=c;this.scheduler=k;this.completedResolver=new _.V8;this.scheduledPayloads=e;for(e={i$jscomp$495:0};e.i$jscomp$495<this.scheduledPayloads.length;e={payload$jscomp$20:void 0,i$jscomp$495:e.i$jscomp$495},e.i$jscomp$495++)e.payload$jscomp$20=this.scheduledPayloads[e.i$jscomp$495],c=function(I){return function(){I.payload$jscomp$20.job();g.scheduledPayloads[I.i$jscomp$495].processed=!0;g.scheduledPayloads.every(function(J){return J.processed===
!0})&&g.completedResolver.resolve()}}(e),k=this.getPriority(e.payload$jscomp$20),k=this.scheduler.addJob(c,k),this.scheduledPayloads[e.i$jscomp$495]=Object.assign({},e.payload$jscomp$20,{job:c,
jobId:k})};
Tqw.prototype.flushJobs=function(){var e=this,g=Array.from(this.scheduledPayloads.keys()).sort(function(k,I){return e.getPriority(e.scheduledPayloads[I])-e.getPriority(e.scheduledPayloads[k])});
g=_.w(g);for(var c=g.next();!c.done;c=g.next())c=this.scheduledPayloads[c.value],c.jobId===void 0||c.processed||(this.scheduler.cancelJob(c.jobId),this.scheduler.addJob(c.job,10))};
Tqw.prototype.cancel=function(){for(var e=_.w(this.scheduledPayloads),g=e.next();!g.done;g=e.next())g=g.value,g.jobId===void 0||g.processed||this.scheduler.cancelJob(g.jobId),g.processed=!0;this.completedResolver.resolve()};
Tqw.prototype.getPriority=function(e){var g;return(g=e.priority)!=null?g:this.JSC$11205_defaultPriority};var ag=function(e){this.state=e;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};rx&&kJU(this.state)};
ag.prototype.install=function(e){this.plugins.push(e);return this};
ag.prototype.uninstall=function(){var e=this;_.Mb.apply(0,arguments).forEach(function(g){g=e.plugins.indexOf(g);g>-1&&e.plugins.splice(g,1)})};
ag.prototype.transition=function(e,g){var c=this;rx&&I3V(this.state);var k=this.transitions.find(function(J){return Array.isArray(J.from)?J.from.find(function(q){return q===c.state&&J.to===e}):J.from===c.state&&J.to===e});
if(k){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);lYM(this,e,g);this.state=e;rx&&kJU(this.state);k=k.action.bind(this);var I=this.plugins.filter(function(J){return J[e]}).map(function(J){return J[e]});
k(Awu(this,I),g)}else throw Error("ld`"+this.state+"`"+e);};
var Awu=function(e,g){var c=g.filter(function(I){return squ(e,I)===10}),k=g.filter(function(I){return squ(e,I)!==10});
return e.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var I=_.Mb.apply(0,arguments);return _.r(function(J){if(J.nextAddress==1)return J.yield(e.runImmediateJobsAsync.apply(e,[c].concat(_.KY(I))),2);e.setJobSetWithScheduledJobs.apply(e,[k].concat(_.KY(I)));_.Uh(J)})}:function(){var I=_.Mb.apply(0,arguments);
e.runImmediateJobsSync.apply(e,[c].concat(_.KY(I)));e.setJobSetWithScheduledJobs.apply(e,[k].concat(_.KY(I)))}};
ag.prototype.runImmediateJobsSync=function(e){var g=_.Mb.apply(1,arguments);_.nu();for(var c=_.w(e),k=c.next(),I={};!k.done;I={lifecycle$jscomp$2:void 0},k=c.next())I.lifecycle$jscomp$2=k.value,zF(function(J){return function(){FpM(J.lifecycle$jscomp$2.name);vy8(function(){return J.lifecycle$jscomp$2.callback.apply(J.lifecycle$jscomp$2,_.KY(g))});
nQ(J.lifecycle$jscomp$2.name)}}(I))};
ag.prototype.runImmediateJobsAsync=function(e){var g=_.Mb.apply(1,arguments),c,k,I,J;return _.r(function(q){q.nextAddress==1&&(_.nu(),c=_.w(e),k=c.next(),I={});if(q.nextAddress!=3){if(k.done)return q.jumpTo(0);I.lifecycle$jscomp$3=k.value;I.asyncJobCompletion=void 0;J=function(L){return function(){FpM(L.lifecycle$jscomp$3.name);var n=vy8(function(){return L.lifecycle$jscomp$3.callback.apply(L.lifecycle$jscomp$3,_.KY(g))});
Bju(n)?L.asyncJobCompletion=_.G("web_lifecycle_error_handling_killswitch")?n.then(function(){nQ(L.lifecycle$jscomp$3.name)}):n.then(function(){nQ(L.lifecycle$jscomp$3.name)},function(R){J4V(R);
nQ(L.lifecycle$jscomp$3.name)}):nQ(L.lifecycle$jscomp$3.name)}}(I);
zF(J);return I.asyncJobCompletion?q.yield(I.asyncJobCompletion,3):q.jumpTo(3)}I={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};k=c.next();return q.jumpTo(2)})};
ag.prototype.setJobSetWithScheduledJobs=function(e){var g=_.Mb.apply(1,arguments),c=this,k=e.map(function(I){return{job:function(){FpM(I.name);vy8(function(){return I.callback.apply(I,_.KY(g))});
nQ(I.name)},
priority:squ(c,I)}});
k.length&&(this.jobSet=new Tqw(k))};
var squ=function(e,g){var c,k;return(k=(c=e.overridePriority)!=null?c:g.priority)!=null?k:0},FpM=function(e){rx&&e&&kJU(e)},nQ=function(e){rx&&e&&I3V(e)},lYM=function(e,g,c){pL4&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+e.constructor.name+"] '"+e.state+"' to '"+g+"'"),console.log("with message: ",c),console.groupEnd())};
_.Bd.Object.defineProperties(ag.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var ui4=function(e){ag.call(this,e===void 0?"none":e);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(){}}]},dWY;
_.Y(ui4,ag);ui4.prototype.runApplicationNavigationBegin=function(e,g){var c=this;this.navigationTimer=_.h2(_.ft,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3);
e(g==null?void 0:g.event)};
ui4.prototype.runApplicationNavigationEnd=function(e,g){this.navigationTimer&&(_.ft.cancelJob(this.navigationTimer),this.navigationTimer=null);e(g==null?void 0:g.event)};
_.guA=function(){dWY||(dWY=new ui4);return dWY};var ec6=[];_.BQ("yt.logging.transport.getScrapedGelPayloads",function(){return ec6});var eW=function(){var e=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return e.totalEntries}}};
eW.prototype.storePayload=function(e,g){e=wOz(e);this.store[e]?this.store[e].push(g):(this.memoizedKeySequences={},this.store[e]=[g]);this.totalEntries++;_.G("more_accurate_gel_parser")&&(g=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(g));return e};
eW.prototype.smartExtractMatchingEntries=function(e){if(!e.keys.length)return[];for(var g=zB1(this,e.keys.splice(0,1)[0]),c=[],k=0;k<g.length;k++)this.store[g[k]]&&e.sizeLimit&&(this.store[g[k]].length<=e.sizeLimit?(c.push.apply(c,_.KY(this.store[g[k]])),delete this.store[g[k]]):c.push.apply(c,_.KY(this.store[g[k]].splice(0,e.sizeLimit))));this.totalEntries-=c.length;(e==null?0:e.sizeLimit)&&c.length<(e==null?void 0:e.sizeLimit)&&(e.sizeLimit-=c.length,c.push.apply(c,_.KY(this.smartExtractMatchingEntries(e))));
return c};
eW.prototype.extractMatchingEntries=function(e){e=zB1(this,e);for(var g=[],c=0;c<e.length;c++)this.store[e[c]]&&(g.push.apply(g,_.KY(this.store[e[c]])),delete this.store[e[c]]);this.totalEntries-=g.length;return g};
eW.prototype.getSequenceCount=function(e){e=zB1(this,e);for(var g=0,c=0;c<e.length;c++){var k=void 0;g+=((k=this.store[e[c]])==null?void 0:k.length)||0}return g};
var zB1=function(e,g){var c=wOz(g);if(e.memoizedKeySequences[c])return e.memoizedKeySequences[c];var k=Object.keys(e.store)||[];if(k.length<=1&&wOz(g)===k[0])return k;for(var I=[],J=0;J<k.length;J++){var q=k[J].split("/");if(HUk(g.auth,q[0])){var L=g.isJspb;HUk(L===void 0?"undefined":L?"true":"false",q[1])&&HUk(g.cttAuthInfo,q[2])&&(L=g.tier,L=L===void 0?"undefined":JSON.stringify(L),HUk(L,q[3])&&I.push(k[J]))}}return e.memoizedKeySequences[c]=I},HUk=function(e,g){return e===void 0||e==="undefined"?
!0:e===g};
eW.prototype.getSequenceCount=eW.prototype.getSequenceCount;eW.prototype.extractMatchingEntries=eW.prototype.extractMatchingEntries;eW.prototype.smartExtractMatchingEntries=eW.prototype.smartExtractMatchingEntries;eW.prototype.storePayload=eW.prototype.storePayload;var vu8=new _.AU("FinchConfigManagerService");var dH6,Fsg,zNv,k2,QqY,qQ6,wYz,sHg,A4W,DHC,uEC,Mtt,pOU;dH6=_.MN("initial_gel_batch_timeout",2E3);Fsg=_.MN("gel_queue_timeout_max_ms",6E4);zNv=_.MN("gel_min_batch_size",5);k2=void 0;QqY=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
qQ6=new QqY;wYz=new QqY;sHg=new QqY;A4W=new QqY;uEC=!0;Mtt=1;_.Oxv=new Map;pOU=_.kp.ytLoggingTransportTokensToCttTargetIds_||{};_.BQ("ytLoggingTransportTokensToCttTargetIds_",pOU);var mHt=_.kp.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.BQ("ytLoggingTransportTokensToJspbCttTargetIds_",mHt);var cy={};var x2=_.kp.ytLoggingGelSequenceIdObj_||{};_.BQ("ytLoggingGelSequenceIdObj_",x2);var a9V=[];var YQ6=new Set,bVU=0,iVp=0,jBq=0,XYg=[],hcv=[],PDU=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Uyv=function(){};
Uyv.prototype.getUrl=function(e,g){g=g===void 0?!1:g;return e.hasOwnProperty("shareEndpoint")?null:_.l9U(e,null,g)};
var tGC=function(e,g,c){e={endpoint:g,actions:[]};c=(c.path?c.path[0]:c.target).icon||"";g=c.indexOf(":");g>0&&(c=c.substr(g+1));c&&e.actions.push(c);return e};var zc8=/Command$/,dyU=/Endpoint$/,sBW=new Map;var UWM,odw;UWM=1;_.dF=function(){this.actionRoutingMap=new Map};
_.dF.prototype.triggerAction=function(e){var g=new ayz(e,!1,_.Mb.apply(1,arguments));this.handleAction(g);return g.returnValue};
_.dF.prototype.triggerOptionalAction=function(e){var g=new ayz(e,!0,_.Mb.apply(1,arguments));this.handleAction(g);return g.returnValue};
_.Rg=function(e,g,c){g.forEach(function(k){var I=uJV(k);I&&e.triggerOptionalAction(I,k,c,void 0)})};
_.dF.prototype.handleAction=function(e){var g=this.actionRoutingMap.get(e.actionName);g&&odw(e,g);e.optionalAction||e.returnValue.length!==0||(e=new _.E2("Unhandled action",e.actionName),_.UI(e))};
odw=function(e,g){g.forEach(function(c){var k=null;c?k=c.apply(null,e.args):(c=Error("md"),c.params=e.actionName,_.zr(c));e.returnValue.push(k)})};
_.zm=function(e,g,c){c||(c=UWM++);for(var k=_.w(Object.keys(g)),I=k.next();!I.done;I=k.next()){I=I.value;var J=e.actionRoutingMap.get(I);J||(J=new Map,e.actionRoutingMap.set(I,J));e.registerActionHandler(c,I,g[I],J)}return c};
_.dF.prototype.registerActionHandler=function(e,g,c,k){k.set(e,_.HV(c))};
_.Hy=function(e,g,c){g=_.w(Object.keys(g));for(var k=g.next();!k.done;k=g.next())(k=e.actionRoutingMap.get(k.value))&&k.delete(c)};
_.H2(_.dF);var VSg=function(e,g){var c=_.dF.getInstance();_.lo(function(){var k={},I=_.zm(c,(k[e]=g,k));_.sX(function(){var J={};_.Hy(c,(J[e]="",J),I)})})};Vre=YMW;var JhV=new Set(["For","If","Match","Watch"]),ZUZ={},VoB=(ZUZ[UX.default]=function(){return dR6},ZUZ.style=function(){return dR6},ZUZ),tow;
for(tow in VoB)gs.attributes[tow]=VoB[tow](gs.attributes[tow]);var t2=new _.AU("VISIBILITY_OBSERVER");var Wgp={retrieve:function(e){return this.id.\u0275prov.token===e.\u0275prov.token?this.contextValue:this?M_(this,this.id):pb8}};var BqZ=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(e){}var Nqn=typeof WeakRef==="function";var SoB=function(e){this.value=e};
SoB.prototype.deref=function(){return this.value};
var ywB=Nqn?WeakRef:SoB,Kpk=function(e){this.newKeyHandler=e;this.map=new WeakMap};
Kpk.prototype.add=function(e,g){this.map.has(e)||(this.newKeyHandler(e),this.map.set(e,[]));this.map.get(e).push(new ywB(g))};
Kpk.prototype.get=function(e){var g=this;return function k(){var I,J,q,L,n,R,W,b,h,X,D;return _.y5(k,function(f){switch(f.nextAddress){case 1:_.ze(f,2);I=g.map.get(e);if(!I)return f.return();J=0;q=_.w(I);L=q.next();case 4:if(L.done){f.jumpTo(6);break}n=L.value;R=n.deref();if(!R){f.jumpTo(5);break}J++;W=_.KL;return f.yield(R,8);case 8:W(f.yieldResult);case 5:L=q.next();f.jumpTo(4);break;case 6:if(2*J<I.length){b=0;h=_.w(I);for(X=h.next();!X.done;X=h.next())D=X.value,D.deref()&&(I[b++]=D);I.length=
b}case 2:_.sh(f),_.HA(f,0)}})}()};var OUM=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},D1C=new Kpk(function(e){e.addEventListener("abort",YTK,{once:!0})}),x1K=new WeakMap,MoY=function(e){e=e===void 0?ES:e;
this.signal=new e};
MoY.prototype.abort=function(e){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=e,e=new Event("abort"),this.signal.dispatchEvent(e))};
var ES=function(){this.target=OUM();this.aborted=!1;this.onabort=null};
ES.prototype.throwIfAborted=function(){GMC.call(this)};
ES.prototype.addEventListener=function(e,g,c){this.target.addEventListener(e,g,c)};
ES.prototype.removeEventListener=function(e,g,c){this.target.removeEventListener(e,g,c)};
ES.prototype.dispatchEvent=function(e){if(this.onabort&&e.type==="abort")this.onabort(e);return this.target.dispatchEvent(e)};
ES.abort=XjW;ES.timeout=fZv;ES.any=$1A;var hR6=BqZ?AbortController:MoY,Wk=BqZ?AbortSignal:ES;typeof Wk.abort!=="function"&&(Wk.abort=XjW);typeof Wk.prototype.throwIfAborted!=="function"&&(Wk.prototype.throwIfAborted=GMC);typeof Wk.any!=="function"&&(Wk.any=$1A);typeof Wk.timeout!=="function"&&(Wk.timeout=fZv);var Nf=null,iLW=new Map;var Cmq=function(e){e=e.clone();s2v(e);JU(e,"dg",null);JU(e,"d","0");pdv(e,null);T3M(e,null);return e},e91=!0,gvv=function(e,g,c){var k=c===void 0?{}:c;
c=k.cssRowKey===void 0?void 0:k.cssRowKey;var I=k.combinedSignature===void 0?void 0:k.combinedSignature;var J=k.extraEdges===void 0?void 0:k.extraEdges;k=k.callback===void 0?void 0:k.callback;JU(e,"m",g.join(","));J&&AOY(e,J);c&&(JU(e,"ck",c),I?JU(e,"rs",I):e91&&(e91=!1));if(k){if(k!=null&&!dZw.test(k))throw Error("Ya`"+k);JU(e,"cb",k)}e=e.toString();_.wV(e,"/")&&(e=ydv(document.location.href)+e);return _.HJ(e)};var kb1=function(e){return c3M(e).then(function(g){return JSON.parse(g.responseText)})},c3M=function(e){var g={},c=g.xmlHttpFactory?g.xmlHttpFactory.createInstance():cKY.createInstance();
return(new _.Il(function(k,I){var J;try{c.open("GET",e,!0)}catch(n){I(new bv("Error opening XHR: "+n.message,e,c))}c.onreadystatechange=function(){if(c.readyState==4){_.kp.clearTimeout(J);var n;!(n=g1w(c.status))&&(n=c.status===0)&&(n=NNC(e),n=!(n=="http"||n=="https"||n==""));n?k(c):I(new Iun(c.status,e,c))}};
c.onerror=function(){I(new bv("Network error",e,c))};
if(g.headers)for(var q in g.headers){var L=g.headers[q];L!=null&&c.setRequestHeader(q,L)}g.withCredentials&&(c.withCredentials=g.withCredentials);g.responseType&&(c.responseType=g.responseType);g.mimeType&&c.overrideMimeType(g.mimeType);g.timeoutMs>0&&(J=_.kp.setTimeout(function(){c.onreadystatechange=function(){};
c.abort();I(new J3k(e,c))},g.timeoutMs));
try{c.send(null)}catch(n){c.onreadystatechange=function(){},_.kp.clearTimeout(J),I(new bv("Error sending XHR: "+n.message,e,c))}})).thenCatch(function(k){k instanceof _.fL&&c.abort();
throw k;})},bv=function(e,g,c){_.eK.call(this,e+", url="+g);
this.url=g;this.xhr=c};
_.Um(bv,_.eK);bv.prototype.name="XhrError";var Iun=function(e,g,c){bv.call(this,"Request Failed, status="+e,g,c);this.status=e};
_.Um(Iun,bv);Iun.prototype.name="XhrHttpError";var J3k=function(e,g){bv.call(this,"Request timed out",e,g)};
_.Um(J3k,bv);J3k.prototype.name="XhrTimeoutError";zi=zi||{};var hS=function(){_.Iy.call(this)};
_.Um(hS,_.Iy);hS.prototype.initialize=function(){};m1K.prototype.execute=function(e){this.fn_&&(this.fn_.call(this.handler_||null,e),this.fn_=this.handler_=null)};
m1K.prototype.abort=function(){this.handler_=this.fn_=null};
zi.ModuleLoadCallback=m1K;_.Um(SW,_.Iy);SW.prototype.moduleConstructor_=hS;SW.prototype.module_=null;SW.prototype.getId=function(){return this.JSC$11362_id_};
SW.prototype.registerCallback=function(e,g){return Xl(this.onloadCallbacks_,e,g)};
var vvk=function(e,g){Xl(e.onErrorCallbacks_,g)},Xl=function(e,g,c){g=new zi.ModuleLoadCallback(g,c);
e.push(g);return g};
SW.prototype.isLoaded=function(){return!!this.module_};
SW.prototype.onLoad=function(e){var g=new this.moduleConstructor_;g.initialize(e());this.module_=g;g=(g=wgY(this.earlyOnloadCallbacks_,e()))||wgY(this.onloadCallbacks_,e());g||(this.onErrorCallbacks_.length=0);return g};
SW.prototype.onError=function(e){(e=wgY(this.onErrorCallbacks_,e))&&IA(Error("sd`"+e));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var wgY=function(e,g){for(var c=[],k=0;k<e.length;k++)try{e[k].execute(g)}catch(I){IA(I),c.push(I)}e.length=0;return c.length?c:null};
SW.prototype.disposeInternal=function(){SW.superClass_.disposeInternal.call(this);_.Fm(this.module_)};
zi.ModuleInfo=SW;var qYB,Evn,nvI,R91,r3w,auu,Gbk,h9I,XgM;
_.Of=function(e,g,c,k,I){k=k===void 0?!1:k;I=I===void 0?!1:I;var J=J===void 0?!0:J;this.scsReferenceUrl_=g26(_.QP(e).toString(),J);this.cssRowKey_=g;this.combinedSignature_=c;this.useNegativeLoading_=k;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(e=Iu(this.scsReferenceUrl_,"excm"))?e.split(","):[];this.shouldScanForCss_=I;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;c2K();_.GB(this,lXZ(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
qYB=function(e,g){if(g.href||g.getAttribute("data-href"))if(g=g.href||g.getAttribute("data-href"),OtU(g)&&!g26(g).urlPrefix_.endsWith("_/js/")){g=lXZ(g26(g));g=_.w(g);for(var c=g.next();!c.done;c=g.next())c=c.value,e.loadedCssModuleList_.includes(c)||e.loadedCssModuleList_.push(c)}};
_.Of.prototype.loadModules=function(e,g,c){var k=c===void 0?{}:c;g=k.extraEdges;c=k.onError;var I=k.onSuccess;k=k.forceReload;if(!e)throw Error("td");if(this.shouldScanForCss_){for(var J=_.w(document.getElementsByTagName("style")),q=J.next();!q.done;q=J.next())qYB(this,q.value);J=_.w(document.getElementsByTagName("link"));for(q=J.next();!q.done;q=J.next())qYB(this,q.value)}Liu(this,r3w(this,e),g,c,I,k)};
var Liu=function(e,g,c,k,I,J){k=k===void 0?function(){}:k;
I=I===void 0?function(){}:I;
J=J===void 0?!1:J;auu(e,g,function(q,L,n){n=n===void 0?L:n;e.enableFallbackFetch&&J?e.loadWithFetch(q,L,k,I,n):e.load(q,L,k,I,n,c)},c)||k(-1)};
_.Of.prototype.loadWithFetch=function(){_.r(function(){throw Error("ud");})};
_.Of.prototype.maybeSetAdditionalFields=function(){};
Evn=function(e,g,c){if(e.useNegativeLoading_){var k=e.scsReferenceUrl_;e={cssRowKey:e.cssRowKey_,combinedSignature:e.combinedSignature_,extraEdges:c,requestedModuleIds:nvI(e),requestedCssModuleIds:R91(e)};var I=e===void 0?{}:e;e=I.requestedModuleIds===void 0?[]:I.requestedModuleIds;c=I.requestedCssModuleIds===void 0?[]:I.requestedCssModuleIds;var J=I.cssRowKey===void 0?void 0:I.cssRowKey;var q=I.combinedSignature===void 0?void 0:I.combinedSignature;var L=I.extraEdges===void 0?void 0:I.extraEdges;
I=I.callback===void 0?void 0:I.callback;k=Cmq(k);JU(k,"d","1");pdv(k,e);T3M(k,c);g=gvv(k,g,{cssRowKey:J,combinedSignature:q,extraEdges:L,callback:I})}else k=e.scsReferenceUrl_,e={cssRowKey:e.cssRowKey_,combinedSignature:e.combinedSignature_,requestedModuleIds:nvI(e),requestedCssModuleIds:R91(e)},L=e===void 0?{}:e,e=L.requestedCssModuleIds===void 0?[]:L.requestedCssModuleIds,c=L.cssRowKey===void 0?void 0:L.cssRowKey,J=L.combinedSignature===void 0?void 0:L.combinedSignature,q=L.extraEdges===void 0?
void 0:L.extraEdges,L=L.callback===void 0?void 0:L.callback,k=Cmq(k),T3M(k,e),g=gvv(k,g,{cssRowKey:c,combinedSignature:J,extraEdges:q,callback:L});return g};
_.GB=function(e,g){for(var c=!1,k=[],I=0;I<g.length;++I){var J=g[I];e.requestedModuleMap_[J]||(e.requestedModuleMap_[J]=!0,e.requestedModuleList_.push(J),c=!0,k.push(J))}c&&(e.requestedModuleListSorted_=!1)};
_.xH=function(e,g){for(var c=[],k=0;k<g.length;++k){var I=g[k];e.requestedModuleMap_[I]&&(delete e.requestedModuleMap_[I],_.UC(e.requestedModuleList_,I),c.push(I))}};
_.Of.prototype.load=function(e,g,c,k,I){I=I===void 0?g:I;_.QP(e);var J=this.useCors_,q=this.corsMode_,L=this.fetchPriority,n=_.C0("SCRIPT");_.Eh(n,e);J&&(n.crossOrigin=q);n.async=!1;L&&n.setAttribute("fetchpriority",L);_.GB(this,g);_.Wiw(this,e,n,g,c,k,I)};
_.Wiw=function(e,g,c,k,I,J,q){q=q===void 0?k:q;e.lastScript_=c;e.insertPos.insertBefore(c,e.insertPos.firstChild);_.bs1(c,k,function(){c.parentElement.removeChild(c);e.lastScript_==c&&(e.lastScript_=null);J()},function(L){c.parentElement.removeChild(c);
e.lastScript_==c&&(e.lastScript_=null);_.xH(e,L);e.pendingModuleGraphUpdate_?e.pendingModuleGraphUpdate_.then(function(){I(-1,g)}):I(-1,g)},q)};
_.bs1=function(e,g,c,k,I){I=I===void 0?g:I;var J=g.length,q=function(){J=0;e.onload=null;e.onerror=null;L=function(){}},L=function(){q();
var R=I.filter(function(W){return!xr().getModuleInfo(W).isLoaded()});
R.length!==0?k(R,"Response was successful but was missing module(s) "+R+"."):c()},n=function(){J--;
J==0&&L()};
g.forEach(function(R){R=xr().getModuleInfo(R);R.isLoaded()?n():(Xl(R.earlyOnloadCallbacks_,n),vvk(R,n))});
e.onload=function(){return L()};
e.onerror=function(){q();k(g)}};
nvI=function(e){e.requestedModuleListSorted_||(e.requestedModuleListSorted_=!0,e.requestedModuleList_.sort());return e.requestedModuleList_};
R91=function(e){e=e.loadedCssModuleList_;e.sort();return e};
r3w=function(e,g){return g.filter(function(c){return!e.requestedModuleMap_[c]})};
auu=function(e,g,c,k){if(e.pendingModuleGraphUpdate_)return e.pendingModuleGraphUpdate_.then(function(){auu(e,g,c,k)}),!0;
if(!e.useNegativeLoading_){var I=[],J=Object.assign({},e.requestedModuleMap_);h9I(e,g,function(W){I.push(W.getId())},k,function(W){return!W.isLoaded()},J);
g=I}for(J=0;J<g.length;){for(var q=g.length-J,L=J==0?g:g.slice(J,g.length),n=Evn(e,L,k),R=_.QP(n).toString();R.length>e.urlMaxLength;)if(q>1)q-=Math.ceil((R.length-e.urlMaxLength)/6),q=Math.max(q,1),L=g.slice(J,J+q),n=Evn(e,L,k),R=_.QP(n).toString();else return e.useNegativeLoading_?(e.useNegativeLoading_=!1,e.pendingModuleGraphUpdate_=XgM(e).then(function(W){Gbk(e,W,k)}),auu(e,g.slice(J),c,k)):!1;
J+=q;e.useNegativeLoading_?c(n,L):c(n,L,J===g.length?g:[])}return!0};
Gbk=function(e,g,c){xr().setAllModuleInfoString((g||{}).moduleGraph);h9I(e,nvI(e),function(k){_.GB(e,[k.getId()])},c);
e.pendingModuleGraphUpdate_=null};
h9I=function(e,g,c,k,I,J){J=J===void 0?{}:J;var q=xr();g=_.w(g);for(var L=g.next();!L.done;L=g.next()){L=L.value;var n=q.getModuleInfo(L);if(!(J[L]||I&&!I(n))){J[L]=!0;var R=n.deps_||[];if(k){var W=[];k[L]&&(W=Object.keys(k[L]));R=R.concat(W)}h9I(e,R,c,k,I,J);c(n)}}};
XgM=function(e){e=e.scsReferenceUrl_.clone();s2v(e);JU(e,"dg",null);JU(e,"md","1");return kb1(e.toString())};var pjz=new Uint8Array(123);var xk1=[];var Dkw=function(){this.JSC$10364_loader_=null};
_.v=Dkw.prototype;_.v.setBatchModeEnabled=function(){};
_.v.setAllModuleInfoString=function(){};
_.v.addExtraEdge=function(){throw Error("vd");};
_.v.removeExtraEdge=function(){throw Error("wd");};
_.v.getModuleContext=function(){return null};
_.v.isActive=function(){return!1};
_.v.isUserActive=function(){return!1};
_.v.registerInitializationCallback=function(){};
_.v.registerCallback=function(){};var Dx=function(e,g,c,k,I){var J=Error.call(this);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.name="ModuleLoadFailure";this.type=e;this.status=g;this.requestedModuleIds=c;this.url=k;this.cause=I;this.message=this.toString()};
_.Y(Dx,Error);Dx.prototype.toString=function(){return $kq(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var $kq=function(e){switch(e.type){case Dx.Type.UNAUTHORIZED:return"Unauthorized";case Dx.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Dx.Type.TIMEOUT:return"Timed out";case Dx.Type.OLD_CODE_GONE:return"Out of date module id";case Dx.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+e.type}};
zi.ModuleLoadFailure=Dx;zi.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var $H=function(){this.moduleIds_=this.JSC$10364_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11380_extraEdges_={};this.JSC$11380_callbackMap_={};this.JSC$11380_currentlyLoadingModule_=this.baseModuleInfo_=new zi.ModuleInfo([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new ay;this.isDisposed_=this.userLastActive_=this.lastActive_=
this.batchModeEnabled_=!1};
_.Um($H,Dkw);var YYZ=function(e,g){_.eK.call(this,"Error loading "+e+": "+g)};
_.Um(YYZ,_.eK);$H.prototype.setBatchModeEnabled=function(e){this.batchModeEnabled_=e};
$H.prototype.setAllModuleInfoString=function(e,g){if(!(this instanceof $H))this.setAllModuleInfoString(e,g);else if(typeof e==="string"){if(e.startsWith("d$")){e=e.substring(2);for(var c=[],k=0,I=e.indexOf("/"),J=0,q=!1,L=0;;){var n=q?e.substring(J):e.substring(J,I);if(n.length===0)k++,J="sy"+k.toString(36),n=[];else{var R=n.indexOf(":");if(R<0)J=n,n=[];else if(R===n.length-1)J=n.substring(0,R),n=Array(c[L-1]);else{J=n.substring(0,R);n=n.substring(R+1).split(",");R=L;for(var W=0;W<n.length;W++)R-=
n[W].length===0?1:Number(n[W]),n[W]=c[R]}R=0;if(J.length===0)R=1;else if(J.charAt(0)==="+"||J.charAt(0)==="-")R=Number(J);R!==0&&(k+=R,J="sy"+k.toString(36))}c.push(J);fuI(this,J,n);if(q)break;J=I+1;I=e.indexOf("/",J);I===-1&&(q=!0);L++}this.moduleIds_=c}else if(e.startsWith("p$"))j1k(this,e);else{e=e.split("/");c=[];for(k=0;k<e.length;k++){L=e[k].split(":");I=L[0];q=[];if(L[1])for(q=L[1].split(","),L=0;L<q.length;L++)q[L]=c[parseInt(q[L],36)];c.push(I);fuI(this,I,q)}this.moduleIds_=c}g&&g.length?
(_.NU(this.loadingModuleIds_,g),this.lastInitialModuleId_=_.Aq(g)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11380_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11380_currentlyLoadingModule_=null,(g=this.baseModuleInfo_.onLoad((0,_.Ju)(this.getModuleContext,this)))&&g.length&&isw(this,new zi.ModuleLoadFailure(zi.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,g[0])),YH(this))}};
var j1k=function(e,g){var c=g.substring(2);for(g=0;g<64;g++)pjz["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(g)]=g;var k={buf:c,pos:0};KB(k);var I=KB(k),J=KB(k)+1;g=Array(I);var q=Array(I),L=Array(I);J=Array(J);var n=0,R=0,W=k.pos,b=k.buf.indexOf("|",k.pos);k.pos=b+1;for(b=0;b<I;b++){var h=KB(k),X=h&2,D=h&1;h>>>=2;D?(n+=h>>>1^-(h&1),h="sy"+n.toString(36)):(D=W,W+=h,h=c.substring(D,W));g[b]=h;X&&(J[R++]=h)}J[R]="";k.pos++;R=I&-2;c=I&1;for(n=0;n<R;n+=2)W=TSC(k),L[n]=
W&7,L[n+1]=W>>>3&7;c&&(c=TSC(k),L[R]=c&7);k.pos++;for(R=0;R<I;R++)L[R]===7&&(L[R]=KB(k));k.pos++;for(c=R=0;c<I;c++){n=L[c];W=n===0?xk1:Array(n);q[c]=W;b=R;for(X=0;X<n;X++)b-=KB(k),W[X]=J[b];J[R]===g[c]&&R++}for(k=0;k<g.length;k++)fuI(e,g[k],q[k]);e.moduleIds_=g};
_.v=$H.prototype;_.v.getModuleInfo=function(e){return this.moduleInfoMap[e]};
_.v.addExtraEdge=function(e,g){var c=this.getModuleInfo(e);c&&c.isLoaded()?this.load(g):(this.JSC$11380_extraEdges_[e]||(this.JSC$11380_extraEdges_[e]={}),this.JSC$11380_extraEdges_[e][g]=!0)};
_.v.removeExtraEdge=function(e,g){if(this.JSC$11380_extraEdges_[e]){delete this.JSC$11380_extraEdges_[e][g];for(var c in this.JSC$11380_extraEdges_[e])return;delete this.JSC$11380_extraEdges_[e]}};
_.v.isActive=function(){return this.loadingModuleIds_.length>0};
_.v.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var YH=function(e){var g=e.lastActive_,c=e.isActive();c!=g&&(e.executeCallbacks_(c?"active":"idle"),e.lastActive_=c);g=e.isUserActive();g!=e.userLastActive_&&(e.executeCallbacks_(g?"userActive":"userIdle"),e.userLastActive_=g)},fuI=function(e,g,c){e.moduleInfoMap[g]?(e=e.moduleInfoMap[g].deps_,e!=c&&e.splice.apply(e,[0,
e.length].concat(_.KY(c)))):e.moduleInfoMap[g]=new zi.ModuleInfo(c,g)},mkM=function(e,g,c){var k=[];
FeW(g,k);g=[];for(var I={},J=0;J<k.length;J++){var q=k[J],L=e.getModuleInfo(q);if(!L)throw Error("xd`"+q);var n=new ay;I[q]=n;L.isLoaded()?n.callback(null):(Pgs(e,q,L,!!c,n),e.isModuleLoading(q)||g.push(q))}g.length>0&&(e.loadingModuleIds_.length===0?e.loadModules_(g):(e.requestedModuleIdsQueue_.push(g),YH(e)));return I},Pgs=function(e,g,c,k,I){c.registerCallback(I.callback,I);
vvk(c,function(J){I.errback(new YYZ(g,J))});
e.isModuleLoading(g)?k&&(pgn(e,g),YH(e)):k&&pgn(e,g)};
$H.prototype.loadModules_=function(e,g,c){var k=this;g=g===void 0?0:g;var I=Tpq(this,e);this.loadingModuleIds_=I;this.requestedLoadingModuleIds_=this.batchModeEnabled_?e:_.tq(I);YH(this);if(I.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,I);e=this.JSC$10364_loader_;if(!e)throw Error("yd");if(Object.keys(this.JSC$11380_extraEdges_).length>0&&!e.supportsExtraEdges)throw Error("zd");c=(0,_.Ju)(e.loadModules,e,_.tq(I),this.moduleInfoMap,{extraEdges:this.JSC$11380_extraEdges_,
forceReload:!!c,onError:function(J,q,L){var n=k.requestedLoadingModuleIds_;J=J!=null?J:void 0;var R=g;L=L===void 0?!1:L;L=(L===void 0?0:L)?0:(R===void 0?0:R)+1;R=_.tq(I);k.requestedLoadingModuleIds_=n;I.forEach(_.g$(_.UC,k.requestedModuleIds_),k);J==401?(isw(k,new zi.ModuleLoadFailure(zi.ModuleLoadFailure.Type.UNAUTHORIZED,J)),k.requestedModuleIdsQueue_.length=0):J==410?(luw(k,new zi.ModuleLoadFailure(zi.ModuleLoadFailure.Type.OLD_CODE_GONE,J)),A34(k)):L>=3?(luw(k,new zi.ModuleLoadFailure(zi.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
J,R,q)),A34(k)):k.loadModules_(k.requestedLoadingModuleIds_,L,J==8001||!1)},
onTimeout:(0,_.Ju)(this.handleLoadTimeout_,this)});(e=Math.pow(g,2)*5E3)?_.kp.setTimeout(c,e):c()}};
var Tpq=function(e,g){g=g.filter(function(I){return e.moduleInfoMap[I].isLoaded()?(_.kp.setTimeout(function(){return Error("Ad`"+I)},0),!1):!0});
for(var c=[],k=0;k<g.length;k++)c=c.concat(s1Z(e,g[k]));FeW(c);return!e.batchModeEnabled_&&c.length>1?(g=c.shift(),e.requestedModuleIdsQueue_=c.map(function(I){return[I]}).concat(e.requestedModuleIdsQueue_),[g]):c},s1Z=function(e,g){var c=_.n0.createSet(e.requestedModuleIds_),k=[];
c[g]||k.push(g);g=[g];for(var I=0;I<g.length;I++)for(var J=e.getModuleInfo(g[I]).deps_,q=J.length-1;q>=0;q--){var L=J[q];e.getModuleInfo(L).isLoaded()||c[L]||(k.push(L),g.push(L))}k.reverse();FeW(k);return k};
$H.prototype.JSC$11375_setLoaded=function(){if(this.JSC$11380_currentlyLoadingModule_){var e=this.JSC$11380_currentlyLoadingModule_.getId(),g=[];if(this.JSC$11380_extraEdges_[e]){for(var c=_.w(Object.keys(this.JSC$11380_extraEdges_[e])),k=c.next();!k.done;k=c.next()){k=k.value;var I=this.getModuleInfo(k);I&&!I.isLoaded()&&(this.removeExtraEdge(e,k),g.push(k))}this.loadMultiple(g)}this.isDisposed()||((g=this.moduleInfoMap[e].onLoad((0,_.Ju)(this.getModuleContext,this)))&&g.length&&isw(this,new zi.ModuleLoadFailure(zi.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,g[0])),_.UC(this.userInitiatedLoadingModuleIds_,e),_.UC(this.loadingModuleIds_,e),this.loadingModuleIds_.length===0&&A34(this),this.lastInitialModuleId_&&e==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),YH(this),this.JSC$11380_currentlyLoadingModule_=null)}};
$H.prototype.isModuleLoading=function(e){if(_.Hz(this.loadingModuleIds_,e))return!0;for(var g=0;g<this.requestedModuleIdsQueue_.length;g++)if(_.Hz(this.requestedModuleIdsQueue_[g],e))return!0;return!1};
$H.prototype.load=function(e,g){return mkM(this,[e],g)[e]};
$H.prototype.loadMultiple=function(e){return mkM(this,e)};
var pgn=function(e,g){_.Hz(e.userInitiatedLoadingModuleIds_,g)||e.userInitiatedLoadingModuleIds_.push(g)};
$H.prototype.beforeLoadModuleCode=function(e){var g=this;this.JSC$11380_currentlyLoadingModule_&&this.JSC$11380_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11375_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[e]&&Fi4(this,this.moduleInfoMap[e].deps_||[],function(c){c.module_=new hS;_.UC(g.loadingModuleIds_,c.getId())},function(c){return!c.isLoaded()});
this.JSC$11380_currentlyLoadingModule_=this.getModuleInfo(e)};
$H.prototype.registerInitializationCallback=function(e){this.JSC$11380_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new zi.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11380_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);Xl(this.JSC$11380_currentlyLoadingModule_.earlyOnloadCallbacks_,e)};
$H.prototype.handleLoadTimeout_=function(){luw(this,new zi.ModuleLoadFailure(zi.ModuleLoadFailure.Type.TIMEOUT));A34(this)};
var luw=function(e,g){e.requestedLoadingModuleIds_.length>1?e.requestedModuleIdsQueue_=e.requestedLoadingModuleIds_.map(function(c){return[c]}).concat(e.requestedModuleIdsQueue_):isw(e,g)},isw=function(e,g){var c=e.requestedLoadingModuleIds_;
e.loadingModuleIds_.length=0;for(var k=[],I=0;I<e.requestedModuleIdsQueue_.length;I++){var J=e.requestedModuleIdsQueue_[I].filter(function(n){var R=s1Z(this,n);return Qu(c,function(W){return _.Hz(R,W)})},e);
_.NU(k,J)}for(I=0;I<c.length;I++)_.TVg(k,c[I]);for(I=0;I<k.length;I++){for(J=0;J<e.requestedModuleIdsQueue_.length;J++)_.UC(e.requestedModuleIdsQueue_[J],k[I]);_.UC(e.userInitiatedLoadingModuleIds_,k[I])}if(I=e.JSC$11380_callbackMap_.error)for(J=0;J<I.length;J++)for(var q=I[J],L=0;L<k.length;L++)q("error",k[L],g);for(k=0;k<c.length;k++)if(e.moduleInfoMap[c[k]])e.moduleInfoMap[c[k]].onError(g);e.requestedLoadingModuleIds_.length=0;YH(e)},A34=function(e){for(;e.requestedModuleIdsQueue_.length;){var g=
e.requestedModuleIdsQueue_.shift().filter(function(c){return!this.getModuleInfo(c).isLoaded()},e);
if(g.length>0){e.loadModules_(g);return}}YH(e)};
$H.prototype.registerCallback=function(e,g){Array.isArray(e)||(e=[e]);for(var c=0;c<e.length;c++){var k=e[c],I=g,J=this.JSC$11380_callbackMap_;J[k]||(J[k]=[]);J[k].push(I)}};
$H.prototype.executeCallbacks_=function(e){for(var g=this.JSC$11380_callbackMap_[e],c=0;g&&c<g.length;c++)g[c](e)};
var Fi4=function(e,g,c,k,I){k=k===void 0?function(){return!0}:k;
I=I===void 0?{}:I;g=_.w(g);for(var J=g.next();!J.done;J=g.next()){J=J.value;var q=e.getModuleInfo(J);!I[J]&&k(q)&&(I[J]=!0,Fi4(e,q.deps_||[],c,k,I),c(q))}};
$H.prototype.dispose=function(){_.ue(_.n0.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11380_callbackMap_={};this.isDisposed_=!0};
$H.prototype.isDisposed=function(){return this.isDisposed_};
_.Gs=function(){return new $H};var uZq=[5E3,2E4],gII=function(){this.JSC$10364_loader_=null;this.JSC$11388_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11388_queue_=[];this.JSC$11388_extraEdges_=Object.create(null);this.JSC$11388_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.Y(gII,Dkw);_.v=gII.prototype;_.v.setAllModuleInfoString=function(){this.JSC$11388_currentlyLoadingModule_&&this.JSC$11388_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11375_setLoaded()};
_.v.getModuleInfo=function(e){var g=this.JSC$11388_moduleInfoMap_[e];g||(g=new zi.ModuleInfo([],e),this.JSC$11388_moduleInfoMap_[e]=g);return g};
_.v.addExtraEdge=function(e,g){this.getModuleInfo(e).isLoaded()?this.load(g):(this.JSC$11388_extraEdges_[e]||(this.JSC$11388_extraEdges_[e]={}),this.JSC$11388_extraEdges_[e][g]=!0)};
_.v.removeExtraEdge=function(e,g){if(this.JSC$11388_extraEdges_[e]){delete this.JSC$11388_extraEdges_[e][g];for(var c in this.JSC$11388_extraEdges_[e])return;delete this.JSC$11388_extraEdges_[e]}};
_.v.isModuleLoading=function(e){return!!this.loadingModules_[e]};
_.v.load=function(e){dk1(this,[e]);return z9M(this,e)};
_.v.loadMultiple=function(e){var g=this,c=Object.create(null),k=[];e.forEach(function(I){c[I]||(c[I]=z9M(g,I),k.push(I))});
dk1(this,k);return c};
_.v.beforeLoadModuleCode=function(e){var g;((g=this.JSC$11388_currentlyLoadingModule_)==null?void 0:g.getId())==="synthetic_module_overhead"&&this.JSC$11375_setLoaded();var c,k;HsM(this,(k=(c=this.JSC$11388_moduleInfoMap_[e])==null?void 0:c.deps_)!=null?k:[],function(I){I.module_=new hS},function(I){return!I.isLoaded()});
this.JSC$11388_currentlyLoadingModule_=this.getModuleInfo(e)};
_.v.JSC$11375_setLoaded=function(){if(this.JSC$11388_currentlyLoadingModule_){var e=this.JSC$11388_currentlyLoadingModule_.getId(),g=[];if(this.JSC$11388_extraEdges_[e]){for(var c=_.w(Object.keys(this.JSC$11388_extraEdges_[e])),k=c.next();!k.done;k=c.next())k=k.value,this.getModuleInfo(k).isLoaded()||(this.removeExtraEdge(e,k),g.push(k));this.loadMultiple(g)}this.JSC$11388_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11388_currentlyLoadingModule_=null;(!this.isModuleLoading(e)&&/^sy[0-9a-z]{0,4}$/.test(e)||e==="synthetic_module_overhead")&&delete this.JSC$11388_moduleInfoMap_[e];this.unsetModulesAsLoading(e)}};
_.v.registerInitializationCallback=function(e){this.JSC$11388_currentlyLoadingModule_||(this.JSC$11388_moduleInfoMap_.synthetic_module_overhead=new zi.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11388_currentlyLoadingModule_=this.JSC$11388_moduleInfoMap_.synthetic_module_overhead);Xl(this.JSC$11388_currentlyLoadingModule_.earlyOnloadCallbacks_,e)};
_.v.setModulesAsLoading=function(){var e=this;_.Mb.apply(0,arguments).forEach(function(g){e.loadingModules_[g]=!0})};
_.v.unsetModulesAsLoading=function(){var e=this;_.Mb.apply(0,arguments).forEach(function(g){delete e.loadingModules_[g]})};
var z9M=function(e,g){return new _.Il(function(c,k){var I=e.getModuleInfo(g);I.isLoaded()?c(null):(I.registerCallback(function(){c(null)}),vvk(I,function(J){var q="Error loading "+g+": "+J;
J instanceof zi.ModuleLoadFailure&&J.url&&(q=q+", requested url: "+J.url.toString());k(Error(q))}))})},dk1=function(e,g){g=g.filter(function(c){return!e.isModuleLoading(c)&&!e.getModuleInfo(c).isLoaded()});
g.length>0&&(e.setModulesAsLoading.apply(e,_.KY(g)),e.JSC$11388_queue_.push(g),Q1v(e))},Q1v=function(e){for(var g={};e.activeLoads_<Infinity&&e.JSC$11388_queue_.length>0;g={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})g.ids$jscomp$37=e.JSC$11388_queue_.shift().filter(function(c){return!e.getModuleInfo(c).isLoaded()}),g.ids$jscomp$37.length>0&&(e.activeLoads_++,g.finishLoad=function(c){return function(){e.activeLoads_--;
Q1v(e);c.finishLoad=function(){}}}(g),_.ER(g.ids$jscomp$37.map(function(c){return z9M(e,c)})).then(function(c){return function(){(0,c.finishLoad)()}}(g)),g.attempt$jscomp$6=0,g.load$jscomp$1=function(c){return function(){if(Object.keys(e.JSC$11388_extraEdges_).length>0&&!e.JSC$10364_loader_.supportsExtraEdges)throw Error("zd");
e.JSC$10364_loader_.loadModules(c.ids$jscomp$37,e.JSC$11388_moduleInfoMap_,{extraEdges:e.JSC$11388_extraEdges_,onError:function(k,I){var J=uZq[c.attempt$jscomp$6++];J!==void 0?setTimeout(function(){(0,c.load$jscomp$1)()},J):(e.unsetModulesAsLoading.apply(e,_.KY(c.ids$jscomp$37)),(0,c.finishLoad)(),c.ids$jscomp$37.forEach(function(q){q=e.getModuleInfo(q);
if(!q.isLoaded())q.onError(new zi.ModuleLoadFailure(zi.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,k,c.ids$jscomp$37,I))}))}})}}(g),(0,g.load$jscomp$1)())},HsM=function(e,g,c,k,I){k=k===void 0?function(){return!0}:k;
I=I===void 0?{}:I;g=_.w(g);for(var J=g.next();!J.done;J=g.next()){J=J.value;var q=e.getModuleInfo(J);!I[J]&&k(q)&&(I[J]=!0,HsM(e,q.deps_||[],c,k,I),c(q))}};var UkZ=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var smW=Symbol("Cd");window.JSCompiler_renameProperty=function(e){return e};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var ov1=!UkZ||HTMLElement.es5Shimmed||_.kp.Reflect===void 0||_.kp.customElements===void 0||_.kp.customElements.polyfillWrapFlushCallback||!1,ZsZ,w4V=function(){var e=HTMLElement;if(ov1)return e;if(ZsZ!==void 0)return ZsZ;var g=_.kp.Reflect,c=function(){return g.construct(e,[],this.constructor)};
c.prototype=e.prototype;c.prototype.constructor=c;c.es5Shimmed=!0;Object.setPrototypeOf(c,e);return ZsZ=c},Vhu=!1;ov1||Vhu||(Vhu=!0,_.kp.HTMLElement=w4V());/*

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 HLC=/(url\()([^)]*)(\))/g,d1p=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,zRp,CB;var AO=!window.ShadyDOM||!window.ShadyDOM.inUse,thY=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Bp1=!window.customElements.polyfillWrapFlushCallback,Np4;if(Np4=AO&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var SYv=new CSSStyleSheet;SYv.replaceSync("");var y3Z=document.createElement("div");y3Z.attachShadow({mode:"open"});y3Z.shadowRoot.adoptedStyleSheets=[SYv];Np4=y3Z.shadowRoot.adoptedStyleSheets[0]===SYv}catch(e){Np4=!1}
var Ki4=Np4,Osk=window.Polymer&&window.Polymer.rootPath||U1U(document.baseURI||window.location.href),Wd=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,yAt=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,d3=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Mhn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,lq=window.Polymer&&window.Polymer.legacyOptimizations||!1,uq=window.Polymer&&window.Polymer.legacyWarnings||!1,Cg1=window.Polymer&&window.Polymer.syncInitialRender||
!1,hO=window.Polymer&&window.Polymer.legacyUndefined||!1,epw=window.Polymer&&window.Polymer.orderedComputed||!1,fQ=window.Polymer&&window.Polymer.removeNestedTemplates||!1,jL=window.Polymer&&window.Polymer.fastDomIf||!1,iv=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,g_M=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,csZ=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Pk={},k5w={},Gy=function(){return HTMLElement.apply(this,arguments)||this};
_.Y(Gy,HTMLElement);Gy.import=function(e,g){return e?(e=Pk[e]||k5w[e.toLowerCase()])&&g?e.querySelector(g):e:null};
Gy.prototype.attributeChangedCallback=function(e,g,c){g!==c&&this.register()};
Gy.prototype.register=function(e){if(e=e||this.id){if(d3&&(Pk[e]||k5w[e.toLowerCase()])!==void 0)throw Pk[e]=k5w[e.toLowerCase()]=null,Error("Dd`"+e);this.id=e;Pk[e]=k5w[e.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Bd.Object.defineProperties(Gy.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;e=_.eX(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=U1U(e)}return this.__assetpath}}});
_.Bd.Object.defineProperties(Gy,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Gy["import"]=Gy.import;Gy.prototype.modules=Pk;customElements.define("dom-module",Gy);var IFv=0,ZLV=0,g3=[],Js4=0,oDv=!1,v_w=document.createTextNode(""),woZ,pb;(new window.MutationObserver(VlK)).observe(v_w,{characterData:!0});_.my={after:function(e){return{run:function(g){return window.setTimeout(g,e)},
cancel:function(g){window.clearTimeout(g)}}},
run:function(e,g){return window.setTimeout(e,g)},
cancel:function(e){window.clearTimeout(e)}};
_.wL={run:function(e){return window.requestAnimationFrame(e)},
cancel:function(e){window.cancelAnimationFrame(e)}};
woZ={run:function(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},
cancel:function(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}};
pb={run:function(e){oDv||(oDv=!0,v_w.textContent=Js4++);g3.push(e);return IFv++},
cancel:function(e){var g=e-ZLV;if(g>=0){if(!g3[g])throw Error("Ed`"+e);g3[g]=null}}};var qzM=0,pQ=function(e){var g=e.__mixinApplications;g||(g=new WeakMap,e.__mixinApplications=g);var c=qzM++;return function(k){var I=k.__mixinSet;if(I&&I[c])return k;var J=g,q=J.get(k);q||(q=e(k),J.set(k,q),k=Object.create(q.__mixinSet||I||null),k[c]=!0,q.__mixinSet=k);return q}};_.Eg=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(e){return ShadyDOM.patch(e)}:function(e){return e};var Lkn=pQ(function(e){var g=function(){var c=e.call(this)||this;c.__dataEnabled=!1;c.__dataReady=!1;c.__dataInvalid=!1;c.__data={};c.__dataPending=null;c.__dataOld=null;c.__dataInstanceProps=null;c.__dataCounter=0;c.__serializing=!1;c._initializeProperties();return c};
_.Y(g,e);g.createProperties=function(c){var k=this.prototype,I;for(I in c)I in k||k._createPropertyAccessor(I)};
g.attributeNameForProperty=function(c){return c.toLowerCase()};
g.typeForProperty=function(){};
g.prototype._createPropertyAccessor=function(c,k){this._addPropertyToAttributeMap(c);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[c]||(this.__dataHasAccessor[c]=!0,this._definePropertyAccessor(c,k))};
g.prototype._addPropertyToAttributeMap=function(c){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var k=this.__dataAttributes[c];k||(k=this.constructor.attributeNameForProperty(c),this.__dataAttributes[k]=c);return k};
g.prototype._definePropertyAccessor=function(c,k){Object.defineProperty(this,c,{get:function(){return this.__data[c]},
set:k?function(){}:function(I){this._setPendingProperty(c,I,!0)&&this._invalidateProperties()}})};
g.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
g.prototype._initializeProperties=function(){for(var c in this.__dataHasAccessor)this.hasOwnProperty(c)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[c]=this[c],delete this[c])};
g.prototype._initializeInstanceProperties=function(c){Object.assign(this,c)};
g.prototype._setProperty=function(c,k){this._setPendingProperty(c,k)&&this._invalidateProperties()};
g.prototype._getProperty=function(c){return this.__data[c]};
g.prototype._setPendingProperty=function(c,k){var I=this.__data[c],J=this._shouldPropertyChange(c,k,I);J&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||c in this.__dataOld||(this.__dataOld[c]=I),this.__data[c]=k,this.__dataPending[c]=k);return J};
g.prototype._isPropertyPending=function(c){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(c))};
g.prototype._invalidateProperties=function(){var c=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,pb.run(function(){c.__dataInvalid&&(c.__dataInvalid=!1,c._flushProperties())}))};
g.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
g.prototype._flushProperties=function(){this.__dataCounter++;var c=this.__data,k=this.__dataPending,I=this.__dataOld;this._shouldPropertiesChange(c,k,I)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(c,k,I));this.__dataCounter--};
g.prototype._shouldPropertiesChange=function(c,k){return!!k};
g.prototype._propertiesChanged=function(){};
g.prototype._shouldPropertyChange=function(c,k,I){return I!==k&&(I===I||k===k)};
g.prototype.attributeChangedCallback=function(c,k,I,J){k!==I&&this._attributeToProperty(c,I);e.prototype.attributeChangedCallback&&e.prototype.attributeChangedCallback.call(this,c,k,I,J)};
g.prototype._attributeToProperty=function(c,k,I){if(!this.__serializing){var J=this.__dataAttributes;c=J&&J[c]||c;this[c]=this._deserializeValue(k,I||this.constructor.typeForProperty(c))}};
g.prototype._propertyToAttribute=function(c,k,I){this.__serializing=!0;I=arguments.length<3?this[c]:I;this._valueToNodeAttribute(this,I,k||this.constructor.attributeNameForProperty(c));this.__serializing=!1};
g.prototype._valueToNodeAttribute=function(c,k,I){k=this._serializeValue(k);if(I==="class"||I==="name"||I==="slot")c=(0,_.Eg)(c);k===void 0?c.removeAttribute(I):c.setAttribute(I,k===""&&window.trustedTypes?window.trustedTypes.emptyScript:k)};
g.prototype._serializeValue=function(c){switch(typeof c){case "boolean":return c?"":void 0;default:return c!=null?c.toString():void 0}};
g.prototype._deserializeValue=function(c,k){switch(k){case Boolean:return c!==null;case Number:return Number(c);default:return c}};
return g});var rsv=0,tlt=[];var aFq=pQ(function(e){function g(J){J=Object.getPrototypeOf(J);return J.prototype instanceof I?J:null}
function c(J){if(!J.hasOwnProperty("__ownProperties")){var q=null;if(J.hasOwnProperty("properties")){var L=J.properties;if(L){q={};for(var n in L){var R=L[n];q[n]=typeof R==="function"?{type:R}:R}}}J.__ownProperties=q}return J.__ownProperties}
var k=Lkn(e),I=function(){return k.apply(this,arguments)||this};
_.Y(I,k);I.finalize=function(){if(!this.hasOwnProperty("__finalized")){var J=g(this);J&&J.finalize();this.__finalized=!0;this._finalizeClass()}};
I._finalizeClass=function(){var J=c(this);J&&this.createProperties(J)};
I.typeForProperty=function(J){return(J=this._properties[J])&&J.type};
I.prototype._initializeProperties=function(){rsv++;this.constructor.finalize();k.prototype._initializeProperties.call(this)};
I.prototype.connectedCallback=function(){k.prototype.connectedCallback&&k.prototype.connectedCallback.call(this);this._enableProperties()};
I.prototype.disconnectedCallback=function(){k.prototype.disconnectedCallback&&k.prototype.disconnectedCallback.call(this)};
_.Bd.Object.defineProperties(I,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var J=this;if(!this.hasOwnProperty("__observedAttributes")){BSt(this.prototype);var q=this._properties;this.__observedAttributes=q?Object.keys(q).map(function(L){return J.prototype._addPropertyToAttributeMap(L)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var J=g(this);this.__properties=Object.assign({},J&&J._properties,c(this))}return this.__properties}}});
return I});var NS8={},STV=/-[a-z]/g,yhq=/([A-Z])/g;for(var n_4={},Rpu=HTMLElement.prototype;Rpu;){for(var E_u=Object.getOwnPropertyNames(Rpu),Wk1=0;Wk1<E_u.length;Wk1++)n_4[E_u[Wk1]]=!0;Rpu=Object.getPrototypeOf(Rpu)}var bOn=window.trustedTypes?function(e){return trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e)}:function(){return!1},hpB=pQ(function(e){var g=Lkn(e);
e=function(){return g.apply(this,arguments)||this};
_.Y(e,g);e.createPropertiesForAttributes=function(){for(var c=this.observedAttributes,k=0;k<c.length;k++)this.prototype._createPropertyAccessor(I2(c[k]))};
e.attributeNameForProperty=function(c){return JO(c)};
e.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);g.prototype._initializeProperties.call(this)};
e.prototype._initializeProtoProperties=function(c){for(var k in c)this._setProperty(k,c[k])};
e.prototype._ensureAttribute=function(c,k){this.hasAttribute(c)||this._valueToNodeAttribute(this,k,c)};
e.prototype._serializeValue=function(c){switch(typeof c){case "object":if(c instanceof Date)return c.toString();if(c){if(bOn(c))return c;try{return JSON.stringify(c)}catch(k){return""}}default:return g.prototype._serializeValue.call(this,c)}};
e.prototype._deserializeValue=function(c,k){switch(k){case Object:try{var I=JSON.parse(c)}catch(J){I=c}break;case Array:try{I=JSON.parse(c)}catch(J){I=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+c)}break;case Date:I=isNaN(c)?String(c):Number(c);I=new Date(I);break;default:I=g.prototype._deserializeValue.call(this,c,k)}return I};
e.prototype._definePropertyAccessor=function(c,k){if(!n_4[c]){var I=this[c];I!==void 0&&(this.__data?this._setPendingProperty(c,I):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[c]=I))}g.prototype._definePropertyAccessor.call(this,c,k)};
e.prototype._hasAccessor=function(c){return this.__dataHasAccessor&&this.__dataHasAccessor[c]};
e.prototype._isPropertyPending=function(c){return!!(this.__dataPending&&c in this.__dataPending)};
return e});var Xoq={"dom-if":!0,"dom-repeat":!0},G5M=!1,xYq=!1,DYZ=function(){var e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(g){return g}});
return function(g,c,k){c=c.getAttribute(k);e&&k.startsWith("on-")?g.setAttribute(k,e.createScript(c,k)):g.setAttribute(k,c)}}(),$Y4=pQ(function(e){var g=function(){return e.apply(this,arguments)||this};
_.Y(g,e);g._parseTemplate=function(c,k){if(!c._templateInfo){var I=c._templateInfo={};I.nodeInfoList=[];I.nestedTemplate=!!k;I.stripWhiteSpace=k&&k.stripWhiteSpace||c.hasAttribute&&c.hasAttribute("strip-whitespace");this._parseTemplateContent(c,I,{parent:null})}return c._templateInfo};
g._parseTemplateContent=function(c,k,I){return this._parseTemplateNode(c.content,k,I)};
g._parseTemplateNode=function(c,k,I){var J=!1;c.localName!="template"||c.hasAttribute("preserve-content")?c.localName==="slot"&&(k.hasInsertionPoint=!0):J=this._parseTemplateNestedTemplate(c,k,I)||J;if(!G5M){G5M=!0;var q=document.createElement("textarea");q.placeholder="a";xYq=q.placeholder===q.textContent}xYq&&c.localName==="textarea"&&c.placeholder&&c.placeholder===c.textContent&&(c.textContent=null);c.firstChild&&this._parseTemplateChildNodes(c,k,I);c.hasAttributes&&c.hasAttributes()&&(J=this._parseTemplateNodeAttributes(c,
k,I)||J);return J||I.noted};
g._parseTemplateChildNodes=function(c,k,I){if(c.localName!=="script"&&c.localName!=="style")for(var J=c.firstChild,q=0,L;J;J=L){if(J.localName=="template"){var n=J.getAttribute("is");if(n&&Xoq[n])for(L=J,L.removeAttribute("is"),J=L.ownerDocument.createElement(n),L.parentNode.replaceChild(J,L),J.appendChild(L);L.attributes.length;)n=L.attributes[0].name,DYZ(J,L,n),L.removeAttribute(n)}L=J.nextSibling;if(J.nodeType===Node.TEXT_NODE){for(n=L;n&&n.nodeType===Node.TEXT_NODE;)J.textContent+=n.textContent,
L=n.nextSibling,c.removeChild(n),n=L;if(k.stripWhiteSpace&&!J.textContent.trim()){c.removeChild(J);continue}}n={parentIndex:q,parentInfo:I};this._parseTemplateNode(J,k,n)&&(n.infoIndex=k.nodeInfoList.push(n)-1);J.parentNode&&q++}};
g._parseTemplateNestedTemplate=function(c,k,I){k=this._parseTemplate(c,k);(k.content=c.content.ownerDocument.createDocumentFragment()).appendChild(c.content);I.templateInfo=k;return!0};
g._parseTemplateNodeAttributes=function(c,k,I){for(var J=!1,q=Array.from(c.attributes),L=q.length-1,n;n=q[L];L--)J=this._parseTemplateNodeAttribute(c,k,I,n.name,n.value)||J;return J};
g._parseTemplateNodeAttribute=function(c,k,I,J,q){return J.slice(0,3)==="on-"?(c.removeAttribute(J),I.events=I.events||[],I.events.push({name:J.slice(3),value:q}),!0):J==="id"?(I.id=q,!0):!1};
g._contentForTemplate=function(c){var k=c._templateInfo;return k&&k.content||c.content};
g.prototype._stampTemplate=function(c,k){c&&!c.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(c);k=k||this.constructor._parseTemplate(c);var I=k.nodeInfoList;c=document.importNode(k.content||c.content,!0);c.__noInsertionPoint=!k.hasInsertionPoint;var J=c.nodeList=Array(I.length);c.$={};for(var q=0,L=I.length,n=void 0;q<L&&(n=I[q]);q++){var R=J[q]=KgW(c,n);n.id&&(c.$[n.id]=R);var W=R,b=n,h=k;b.templateInfo&&(W._templateInfo=b.templateInfo,W._parentTemplateInfo=
h);if(n.events&&n.events.length)for(W=0,b=n.events,h=void 0;W<b.length&&(h=b[W]);W++)this._addMethodEventListenerToNode(R,h.name,h.value,this)}return c};
g.prototype._addMethodEventListenerToNode=function(c,k,I,J){I=OLC(J||c,I);this._addEventListenerToNode(c,k,I);return I};
g.prototype._addEventListenerToNode=function(c,k,I){c.addEventListener(k,I)};
g.prototype._removeEventListenerFromNode=function(c,k,I){c.removeEventListener(k,I)};
return g});var nb=0,bq=[],Yzq={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},fFq=/[A-Z]/,jI4=function(e,g,c,k,I){var J=I?w3(e):e;if(g=g[J])for(J=0;J<g.length;J++){var q=g[J];if(q.info.lastRun!==nb&&(!I||kiC(e,q.trigger))){q.info.lastRun=nb;q=q.info;for(var L=c,n=k,R=0,W=L.length-1,b=-1;R<=W;){var h=R+W>>1,X=n.get(L[h].methodInfo)-n.get(q.methodInfo);if(X<0)R=h+1;else if(X>0)W=h-1;else{b=h;break}}b<
0&&(b=W+1);L.splice(b,0,q)}}},X2V=[],iOw=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"),lv=pQ(function(e){var g=$Y4(hpB(e));
e=function(){var c=g.call(this)||this;c.__isPropertyEffectsClient=!0;return c};
_.Y(e,g);e.prototype._initializeProperties=function(){g.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};
e.prototype._registerHost=function(){if(TB.length){var c=TB[TB.length-1];c._enqueueClient(this);this.__dataHost=c}};
e.prototype._initializeProtoProperties=function(c){this.__data=Object.create(c);this.__dataPending=Object.create(c);this.__dataOld={}};
e.prototype._initializeInstanceProperties=function(c){var k=this.__readOnly,I;for(I in c)k&&k[I]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[I]=this.__dataPending[I]=c[I])};
e.prototype._addPropertyEffect=function(c,k,I){this._createPropertyAccessor(c,k=="__readOnly");var J=cAK(this,k,!0)[c];J||(J=this[k][c]=[]);J.push(I)};
e.prototype._removePropertyEffect=function(c,k,I){c=cAK(this,k,!0)[c];I=c.indexOf(I);I>=0&&c.splice(I,1)};
e.prototype._hasPropertyEffect=function(c,k){k=this[k];return!(!k||!k[c])};
e.prototype._hasReadOnlyEffect=function(c){return this._hasPropertyEffect(c,"__readOnly")};
e.prototype._hasNotifyEffect=function(c){return this._hasPropertyEffect(c,"__notifyEffects")};
e.prototype._hasReflectEffect=function(c){return this._hasPropertyEffect(c,"__reflectEffects")};
e.prototype._hasComputedEffect=function(c){return this._hasPropertyEffect(c,"__computeEffects")};
e.prototype._setPendingPropertyOrPath=function(c,k,I,J){if(J||w3(Array.isArray(c)?c[0]:c)!==c){if(!J&&(J=a2(this,c),c=gt6(this,c,k),!c||!g.prototype._shouldPropertyChange.call(this,c,k,J)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(c,k,I)){if(I=this.__dataLinkedPaths)for(var q in I)J=I[q],qZ(q,c)?(J=Lb(q,J,c),this._setPendingPropertyOrPath(J,k,!0,!0)):qZ(J,c)&&(J=Lb(J,q,c),this._setPendingPropertyOrPath(J,k,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[c])return this._setPendingProperty(c,
k,I);this[c]=k}return!1};
e.prototype._setUnmanagedPropertyToNode=function(c,k,I){if(I!==c[k]||typeof I=="object")k==="className"&&(c=(0,_.Eg)(c)),c[k]=I};
e.prototype._setPendingProperty=function(c,k,I){var J=this.__dataHasPaths&&vd(c);if(this._shouldPropertyChange(c,k,(J?this.__dataTemp:this.__data)[c])){this.__dataPending||(this.__dataPending={},this.__dataOld={});c in this.__dataOld||(this.__dataOld[c]=this.__data[c]);J?this.__dataTemp[c]=k:this.__data[c]=k;this.__dataPending[c]=k;if(J||this.__notifyEffects&&this.__notifyEffects[c])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[c]=I;return!0}return!1};
e.prototype._setProperty=function(c,k){this._setPendingProperty(c,k,!0)&&this._invalidateProperties()};
e.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
e.prototype._enqueueClient=function(c){this.__dataPendingClients=this.__dataPendingClients||[];c!==this&&this.__dataPendingClients.push(c)};
e.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
e.prototype.__enableOrFlushClients=function(){var c=this.__dataPendingClients;if(c){this.__dataPendingClients=null;for(var k=0;k<c.length;k++){var I=c[k];I.__dataEnabled?I.__dataPending&&I._flushProperties():I._enableProperties()}}};
e.prototype._readyClients=function(){this.__enableOrFlushClients()};
e.prototype.setProperties=function(c,k){for(var I in c)!k&&this.__readOnly&&this.__readOnly[I]||this._setPendingPropertyOrPath(I,c[I],!0);this._invalidateProperties()};
e.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
e.prototype._propertiesChanged=function(c,k,I){c=this.__dataHasPaths;this.__dataHasPaths=!1;var J;if(J=this.__computeEffects)if(epw){nb++;var q=Lm8(this),L=[],n;for(n in k)jI4(n,J,L,q,c);for(;n=L.shift();)aQe(this,"",k,I,n)&&jI4(n.methodInfo,J,L,q,c);Object.assign(I,this.__dataOld);Object.assign(k,this.__dataPending);this.__dataPending=null}else for(q=k;R2(this,J,q,I,c);)Object.assign(I,this.__dataOld),Object.assign(k,this.__dataPending),q=this.__dataPending,this.__dataPending=null;J=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(k,I,c);this._flushClients();R2(this,this.__reflectEffects,k,I,c);R2(this,this.__observeEffects,k,I,c);if(J){q=this.__notifyEffects;L=nb++;for(var R in J)if(J[R]){if(n=q){var W=q;n=L;var b=R,h=k,X=I,D=c,f=!1,l=D?w3(b):b;if(W=W[l]){l=0;for(var A=W.length,d=void 0;l<A&&(d=W[l]);l++)d.info&&d.info.lastRun===n||D&&!kiC(b,d.trigger)||(d.info&&(d.info.lastRun=n),d.fn(this,b,h,X,d.info,D,void 0),f=!0)}n=f}if(n)var S=!0;else{if(n=c)n=R,b=k,h=w3(n),h!==
n?(h=JO(h)+"-changed",JAC(this,h,b[n],n),n=!0):n=!1;n&&(S=!0)}}var V;S&&(V=this.__dataHost)&&V._invalidateProperties&&V._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
e.prototype._propagatePropertyChanges=function(c,k,I){this.__propagateEffects&&R2(this,this.__propagateEffects,c,k,I);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,c,k,I)};
e.prototype._runEffectsForTemplate=function(c,k,I,J){var q=this,L=function(n,R){R2(q,c.propertyEffects,n,I,R,c.nodeList);for(var W=c.firstChild;W;W=W.nextSibling)q._runEffectsForTemplate(W,n,I,R)};
c.runEffects?c.runEffects(L,k,J):L(k,J)};
e.prototype.linkPaths=function(c,k){c=r3(c);k=r3(k);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[c]=k};
e.prototype.unlinkPaths=function(c){c=r3(c);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[c]};
e.prototype.notifySplices=function(c,k){var I={path:""};c=a2(this,c,I);$eK(this,c,I.path,k)};
e.prototype.get=function(c,k){return a2(k||this,c)};
e.prototype.set=function(c,k,I){I?gt6(I,c,k):this.__readOnly&&this.__readOnly[c]||this._setPendingPropertyOrPath(c,k,!0)&&this._invalidateProperties()};
e.prototype.push=function(c){var k=_.Mb.apply(1,arguments),I={path:""},J=a2(this,c,I),q=J.length,L=J.push.apply(J,_.KY(k));k.length&&XS(this,J,I.path,q,k.length,[]);return L};
e.prototype.pop=function(c){var k={path:""};c=a2(this,c,k);var I=!!c.length,J=c.pop();I&&XS(this,c,k.path,c.length,0,[J]);return J};
e.prototype.splice=function(c,k,I){var J=_.Mb.apply(3,arguments),q={path:""},L=a2(this,c,q);k<0?k=L.length-Math.floor(-k):k&&(k=Math.floor(k));var n=arguments.length===2?L.splice(k):L.splice.apply(L,[k,I].concat(_.KY(J)));(J.length||n.length)&&XS(this,L,q.path,k,J.length,n);return n};
e.prototype.shift=function(c){var k={path:""};c=a2(this,c,k);var I=!!c.length,J=c.shift();I&&XS(this,c,k.path,0,0,[J]);return J};
e.prototype.unshift=function(c){var k=_.Mb.apply(1,arguments),I={path:""},J=a2(this,c,I),q=J.unshift.apply(J,_.KY(k));k.length&&XS(this,J,I.path,0,k.length,[]);return q};
e.prototype.notifyPath=function(c,k){if(arguments.length==1){var I={path:""};k=a2(this,c,I);I=I.path}else I=Array.isArray(c)?r3(c):c;this._setPendingPropertyOrPath(I,k,!0,!0)&&this._invalidateProperties()};
e.prototype._createReadOnlyProperty=function(c,k){this._addPropertyEffect(c,"__readOnly");k&&(this["_set"+(c[0].toUpperCase()+c.substring(1))]=function(I){this._setProperty(c,I)})};
e.prototype._createPropertyObserver=function(c,k,I){var J={property:c,method:k,dynamicFn:!!I};this._addPropertyEffect(c,"__observeEffects",{fn:IQt,info:J,trigger:{name:c}});I&&this._addPropertyEffect(k,"__observeEffects",{fn:IQt,info:J,trigger:{name:k}})};
e.prototype._createMethodObserver=function(c,k){var I=xeV(c);if(!I)throw Error("Fd`"+c);bu6(this,I,"__observeEffects",rAv,null,k)};
e.prototype._createNotifyingProperty=function(c){this._addPropertyEffect(c,"__notifyEffects",{fn:vtA,info:{eventName:JO(c)+"-changed",property:c}})};
e.prototype._createReflectedProperty=function(c){var k=this.constructor.attributeNameForProperty(c);k[0]==="-"?console.warn("Property "+c+" cannot be reflected to attribute "+k+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(c,"__reflectEffects",{fn:w2p,info:{attrName:k}})};
e.prototype._createComputedProperty=function(c,k,I){var J=xeV(k);if(!J)throw Error("Gd`"+k);k=bu6(this,J,"__computeEffects",aQe,c,I);cAK(this,"__computeInfo")[c]=k};
e.prototype._marshalArgs=function(c,k,I){for(var J=this.__data,q=[],L=0,n=c.length;L<n;L++){var R=c[L],W=R.name,b=R.structured,h=R.wildcard,X=R.value;R.literal||(h?(R=qZ(W,k),b=Dev(J,I,R?k:W),X={path:R?k:W,value:b,base:R?a2(J,W):b}):X=b?Dev(J,I,W):J[W]);if(hO&&!this._overrideLegacyUndefined&&X===void 0&&c.length>1)return bq;q[L]=X}return q};
e.addPropertyEffect=function(c,k,I){this.prototype._addPropertyEffect(c,k,I)};
e.createPropertyObserver=function(c,k,I){this.prototype._createPropertyObserver(c,k,I)};
e.createMethodObserver=function(c,k){this.prototype._createMethodObserver(c,k)};
e.createNotifyingProperty=function(c){this.prototype._createNotifyingProperty(c)};
e.createReadOnlyProperty=function(c,k){this.prototype._createReadOnlyProperty(c,k)};
e.createReflectedProperty=function(c){this.prototype._createReflectedProperty(c)};
e.createComputedProperty=function(c,k,I){this.prototype._createComputedProperty(c,k,I)};
e.bindTemplate=function(c){return this.prototype._bindTemplate(c)};
e.prototype._bindTemplate=function(c,k){var I=this.constructor._parseTemplate(c),J=this.__preBoundTemplateInfo==I;if(!J)for(var q in I.propertyEffects)this._createPropertyAccessor(q);k?(I=Object.create(I),I.wasPreBound=J,this.__templateInfo?(c=c._parentTemplateInfo||this.__templateInfo,k=c.lastChild,I.parent=c,c.lastChild=I,(I.previousSibling=k)?k.nextSibling=I:c.firstChild=I):this.__templateInfo=I):this.__preBoundTemplateInfo=I;return I};
e._addTemplatePropertyEffect=function(c,k,I){(c.hostProps=c.hostProps||{})[k]=!0;c=c.propertyEffects=c.propertyEffects||{};(c[k]=c[k]||[]).push(I)};
e.prototype._stampTemplate=function(c,k){k=k||this._bindTemplate(c,!0);TB.push(this);c=g.prototype._stampTemplate.call(this,c,k);TB.pop();k.nodeList=c.nodeList;if(!k.wasPreBound)for(var I=k.childNodes=[],J=c.firstChild;J;J=J.nextSibling)I.push(J);c.templateInfo=k;I=k.nodeList;J=k.nodeInfoList;if(J.length)for(var q=0;q<J.length;q++){var L=I[q],n=J[q].bindings;if(n)for(var R=0;R<n.length;R++){var W=n[R],b=L,h=W;if(h.isCompound){for(var X=b.__dataCompoundStorage||(b.__dataCompoundStorage={}),D=h.parts,
f=Array(D.length),l=0;l<D.length;l++)f[l]=D[l].literal;D=h.target;X[D]=f;h.literal&&h.kind=="property"&&(D==="className"&&(b=(0,_.Eg)(b)),b[D]=h.literal)}Wme(L,this,W)}L.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(k,this.__data,null,!1),this._flushClients());return c};
e.prototype._removeBoundDom=function(c){c=c.templateInfo;var k=c.previousSibling,I=c.nextSibling,J=c.parent;k?k.nextSibling=I:J&&(J.firstChild=I);I?I.previousSibling=k:J&&(J.lastChild=k);c.nextSibling=c.previousSibling=null;c=c.childNodes;for(k=0;k<c.length;k++)I=c[k],(0,_.Eg)((0,_.Eg)(I).parentNode).removeChild(I)};
e._parseTemplateNode=function(c,k,I){var J=g._parseTemplateNode.call(this,c,k,I);if(c.nodeType===Node.TEXT_NODE){var q=this._parseBindings(c.textContent,k);q&&(c.textContent=hP6(q)||" ",Et6(this,k,I,"text","textContent",q),J=!0)}return J};
e._parseTemplateNodeAttribute=function(c,k,I,J,q){var L=this._parseBindings(q,k);if(L){q=J;var n="property";fFq.test(J)?n="attribute":J[J.length-1]=="$"&&(J=J.slice(0,-1),n="attribute");var R=hP6(L);R&&n=="attribute"&&(J=="class"&&c.hasAttribute("class")&&(R+=" "+c.getAttribute(J)),c.setAttribute(J,R));n=="attribute"&&q=="disable-upgrade$"&&c.setAttribute(J,"");c.localName==="input"&&q==="value"&&c.setAttribute(q,"");c.removeAttribute(q);n==="property"&&(J=I2(J));Et6(this,k,I,n,J,L,R);return!0}return g._parseTemplateNodeAttribute.call(this,
c,k,I,J,q)};
e._parseTemplateNestedTemplate=function(c,k,I){var J=g._parseTemplateNestedTemplate.call(this,c,k,I),q=c.parentNode,L=I.templateInfo,n=q.localName==="dom-if",R=q.localName==="dom-repeat";fQ&&(n||R)&&(q.removeChild(c),I=I.parentInfo,I.templateInfo=L,I.noted=!0,J=!1);c=L.hostProps;if(jL&&n)c&&(k.hostProps=Object.assign(k.hostProps||{},c),fQ||(I.parentInfo.noted=!0));else for(var W in c)Et6(this,k,I,"property","_host_"+W,[{mode:"{",source:W,dependencies:[W],hostProp:!0}]);return J};
e._parseBindings=function(c,k){for(var I=[],J=0,q;(q=iOw.exec(c))!==null;){q.index>J&&I.push({literal:c.slice(J,q.index)});J=q[1][0];var L=!!q[2];q=q[3].trim();var n=!1,R="",W=-1;J=="{"&&(W=q.indexOf("::"))>0&&(R=q.substring(W+2),q=q.substring(0,W),n=!0);W=xeV(q);var b=[];if(W){var h=W,X=h.args;h=h.methodName;for(var D=0;D<X.length;D++){var f=X[D];f.literal||b.push(f)}if((X=k.dynamicFns)&&X[h]||W.static)b.push(h),W.dynamicFn=!0}else b.push(q);I.push({source:q,mode:J,negate:L,customEvent:n,signature:W,
dependencies:b,event:R});J=iOw.lastIndex}J&&J<c.length&&(c=c.substring(J))&&I.push({literal:c});return I.length?I:null};
e._evaluateBinding=function(c,k,I,J,q,L){c=k.signature?rAv(c,I,J,q,k.signature):I!=k.source?a2(c,k.source):L&&vd(I)?a2(c,I):c.__data[I];k.negate&&(c=!c);return c};
_.Bd.Object.defineProperties(e.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Yzq}}});
return e}),TB=[];var PFM=window.ShadyCSS&&window.ShadyCSS.cssBuild,AS=pQ(function(e){function g(k,I,J,q){if(!PFM){for(var L=I.content.querySelectorAll("style"),n=iuv(I),R=Pnt(J),W=I.content.firstElementChild,b=0;b<R.length;b++){var h=R[b];h.textContent=k._processStyleText(h.textContent,q);I.content.insertBefore(h,W)}for(W=R=0;W<n.length;W++)b=n[W],h=L[R],h!==b?(b=b.cloneNode(!0),h.parentNode.insertBefore(b,h)):R++,b.textContent=k._processStyleText(b.textContent,q)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(I,
J);if(csZ&&PFM&&Ki4&&(I=I.content.querySelectorAll("style"))){var X="";Array.from(I).forEach(function(D){X+=D.textContent;D.parentNode.removeChild(D)});
k._styleSheet=new CSSStyleSheet;k._styleSheet.replaceSync(X)}}
var c=aFq(lv(e));e=function(){return c.call(this)||this};
_.Y(e,c);e._finalizeClass=function(){c._finalizeClass.call(this);var k;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(k=this.__ownObservers)&&this.createObservers(k,this._properties);this._prepareTemplate()};
e._prepareTemplate=function(){var k=this.template;k&&(typeof k==="string"?(console.error("template getter must return HTMLTemplateElement"),k=null):lq||(k=k.cloneNode(!0)));this.prototype._template=k};
e.createProperties=function(k){for(var I in k){var J=this.prototype,q=I,L=k[I],n=k;L.computed&&(L.readOnly=!0);L.computed&&(J._hasReadOnlyEffect(q)?console.warn("Cannot redefine computed property '"+q+"'."):J._createComputedProperty(q,L.computed,n));L.readOnly&&!J._hasReadOnlyEffect(q)?J._createReadOnlyProperty(q,!L.computed):L.readOnly===!1&&J._hasReadOnlyEffect(q)&&console.warn("Cannot make readOnly property '"+q+"' non-readOnly.");L.reflectToAttribute&&!J._hasReflectEffect(q)?J._createReflectedProperty(q):
L.reflectToAttribute===!1&&J._hasReflectEffect(q)&&console.warn("Cannot make reflected property '"+q+"' non-reflected.");L.notify&&!J._hasNotifyEffect(q)?J._createNotifyingProperty(q):L.notify===!1&&J._hasNotifyEffect(q)&&console.warn("Cannot make notify property '"+q+"' non-notify.");L.observer&&J._createPropertyObserver(q,L.observer,n[L.observer]);J._addPropertyToAttributeMap(q)}};
e.createObservers=function(k,I){for(var J=this.prototype,q=0;q<k.length;q++)J._createMethodObserver(k[q],I)};
e.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);c.prototype._initializeProperties.call(this);this.rootPath=Osk;this.importPath=this.constructor.importPath;var k=this.constructor;if(!k.hasOwnProperty("__propertyDefaults")){k.__propertyDefaults=null;var I=k._properties,J;for(J in I){var q=I[J];"value"in q&&(k.__propertyDefaults=k.__propertyDefaults||{},k.__propertyDefaults[J]=q)}}if(k=k.__propertyDefaults)for(var L in k)I=k[L],
this._canApplyPropertyDefault(L)&&(I=typeof I.value=="function"?I.value.call(this):I.value,this._hasAccessor(L)?this._setPendingProperty(L,I,!0):this[L]=I)};
e.prototype._canApplyPropertyDefault=function(k){return!this.hasOwnProperty(k)};
e._processStyleText=function(k,I){return Qm8(k,I)};
e._finalizeTemplate=function(k){var I=this.prototype._template;if(I&&!I.__polymerFinalized){I.__polymerFinalized=!0;var J=this.importPath;J=J?_.eX(J):"";g(this,I,k,J);this.prototype._bindTemplate(I)}};
e.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);c.prototype.connectedCallback.call(this)};
e.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);c.prototype.ready.call(this)};
e.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));c.prototype._readyClients.call(this)};
e.prototype._attachDom=function(k){var I=(0,_.Eg)(this);if(I.attachShadow)return k?(I.shadowRoot||(I.attachShadow({mode:"open",shadyUpgradeFragment:k}),I.shadowRoot.appendChild(k),this.constructor._styleSheet&&(I.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Cg1&&window.ShadyDOM&&window.ShadyDOM.flushInitial(I.shadowRoot),I.shadowRoot):null;throw Error("Id");};
e.prototype.updateStyles=function(k){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,k)};
e.prototype.resolveUrl=function(k,I){!I&&this.importPath&&(I=_.eX(this.importPath));return _.eX(k,I)};
e._parseTemplateContent=function(k,I,J){I.dynamicFns=I.dynamicFns||this._properties;return c._parseTemplateContent.call(this,k,I,J)};
e._addTemplatePropertyEffect=function(k,I,J){!uq||I in this._properties||J.info.part.signature&&J.info.part.signature.static||J.info.part.hostProp||k.nestedTemplate||console.warn("Property '"+I+"' used in template but not declared in 'properties'; attribute will not be observed.");return c._addTemplatePropertyEffect.call(this,k,I,J)};
_.Bd.Object.defineProperties(e,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var k=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof k==="function"&&(k=k());if(k===void 0){if(k=this.hasOwnProperty("is")){k=this.is;var I=null;if(k&&(!d3||Mhn)&&(I=Gy.import(k,"template"),d3&&!I))throw Error("Hd`"+k);k=I}k=k||Object.getPrototypeOf(this.prototype).constructor.template}this._template=k}return this._template},
set:function(k){this._template=k}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var k=this.importMeta;k?this._importPath=U1U(k.url):this._importPath=(k=Gy.import(this.is))&&k.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return e});var mYv=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(e){return e}}),Fme=function(e,g){poq(e,g);
this.value=g.reduce(function(c,k,I){return c+u5C(k)+e[I+1]},e[0]).toString()},poq;
Fme.prototype.toString=function(){return this.value};
_.Tkv=function(e){var g=_.Mb.apply(1,arguments);poq(e,g);var c=document.createElement("template");g=g.reduce(function(k,I,J){if(I instanceof HTMLTemplateElement)I=I.innerHTML;else if(I instanceof Fme)I=u5C(I);else throw Error("Kd`"+I);return k+I+e[J+1]},e[0]);
mYv&&(g=mYv.createHTML(g));c.innerHTML=g;return c};
poq=function(e,g){if(!Array.isArray(e)||!Array.isArray(e.raw)||g.length!==e.length-1)throw new TypeError("Ld");};var sS=AS(HTMLElement);var lF4=pQ(function(e){var g=AS(e);e=function(){var c=g.call(this)||this;c.__lastItems=null;c.__lastMulti=null;c.__selectedMap=null;return c};
_.Y(e,g);e.prototype.__updateSelection=function(c,k){var I=k.path;I=="items"?(k=k.base||[],I=this.__lastItems,c!==this.__lastMulti&&this.clearSelection(),I&&(I=sdq(k,I),this.__applySplices(I)),this.__lastItems=k,this.__lastMulti=c):k.path=="items.splices"?this.__applySplices(k.value.indexSplices):(c=I.slice(6),k=parseInt(c,10),c.indexOf(".")<0&&c==k&&this.__deselectChangedIdx(k))};
e.prototype.__applySplices=function(c){for(var k=this,I=this.__selectedMap,J={},q=0;q<c.length;J={s$jscomp$109:void 0},q++){J.s$jscomp$109=c[q];I.forEach(function(W){return function(b,h){b<W.s$jscomp$109.index||(b>=W.s$jscomp$109.index+W.s$jscomp$109.removed.length?I.set(h,b+W.s$jscomp$109.addedCount-W.s$jscomp$109.removed.length):I.set(h,-1))}}(J));
for(var L=0;L<J.s$jscomp$109.addedCount;L++){var n=J.s$jscomp$109.index+L;I.has(this.items[n])&&I.set(this.items[n],n)}}this.__updateLinks();var R=0;I.forEach(function(W,b){W<0?(k.multi?k.splice("selected",R,1):k.selected=k.selectedItem=null,I.delete(b)):R++})};
e.prototype.__updateLinks=function(){var c=this;this.__dataLinkedPaths={};if(this.multi){var k=0;this.__selectedMap.forEach(function(I){I>=0&&c.linkPaths("items."+I,"selected."+k++)})}else this.__selectedMap.forEach(function(I){c.linkPaths("selected","items."+I);
c.linkPaths("selectedItem","items."+I)})};
e.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
e.prototype.isSelected=function(c){return this.__selectedMap.has(c)};
e.prototype.isIndexSelected=function(c){return this.isSelected(this.items[c])};
e.prototype.__deselectChangedIdx=function(c){var k=this,I=this.__selectedIndexForItemIndex(c);if(I>=0){var J=0;this.__selectedMap.forEach(function(q,L){I==J++&&k.deselect(L)})}};
e.prototype.__selectedIndexForItemIndex=function(c){if(c=this.__dataLinkedPaths["items."+c])return parseInt(c.slice(9),10)};
e.prototype.deselect=function(c){var k=this.__selectedMap.get(c);if(k>=0){this.__selectedMap.delete(c);var I;this.multi&&(I=this.__selectedIndexForItemIndex(k));this.__updateLinks();this.multi?this.splice("selected",I,1):this.selected=this.selectedItem=null}};
e.prototype.deselectIndex=function(c){this.deselect(this.items[c])};
e.prototype.select=function(c){this.selectIndex(this.items.indexOf(c))};
e.prototype.selectIndex=function(c){var k=this.items[c];this.isSelected(k)?this.toggle&&this.deselectIndex(c):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(k,c),this.__updateLinks(),this.multi?this.push("selected",k):this.selected=this.selectedItem=k)};
_.Bd.Object.defineProperties(e,{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 e}),Asu=lF4(sS),Fl=function(){return Asu.apply(this,arguments)||this};
_.Y(Fl,Asu);_.Bd.Object.defineProperties(Fl,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Fl.is,Fl);var sIY=window.Polymer;window.Polymer=function(e){return window.Polymer._polymerFn(e)};
sIY&&Object.assign(Polymer,sIY);Polymer._polymerFn=function(){throw Error("Md");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:Qm8,resolveUrl:_.eX,pathFromUrl:U1U};Polymer.DomModule=Gy;Polymer.Async={timeOut:_.my,animationFrame:_.wL,idlePeriod:woZ,microTask:pb};Polymer.dedupingMixin=pQ;Polymer.wrap=_.Eg;Polymer.PropertiesChanged=Lkn;Polymer.telemetry={instanceCount:rsv,incrementInstanceCount:function(){rsv++},
registrations:tlt,register:BSt,dumpRegistrations:function(){tlt.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=aFq;Polymer.CaseMap={dashToCamelCase:I2,camelToDashCase:JO};Polymer.PropertyAccessors=hpB;Polymer.TemplateStamp=$Y4;Polymer.Path={isPath:vd,root:w3,isAncestor:Mlg,isDescendant:qZ,translate:Lb,matches:CQA,normalize:r3,split:ePU,get:a2,set:gt6,isDeep:vd};Polymer.Settings={useShadow:AO,useNativeCSSProperties:thY,useNativeCustomElements:Bp1,get rootPath(){return Osk},setRootPath:function(e){Osk=e},
get sanitizeDOMValue(){return Wd},setSanitizeDOMValue:function(e){Wd=e},
get passiveTouchGestures(){return yAt},setPassiveTouchGestures:function(e){yAt=e},
get strictTemplatePolicy(){return d3},setStrictTemplatePolicy:function(e){d3=e},
get allowTemplateFromDomModule(){return Mhn},setAllowTemplateFromDomModule:function(e){Mhn=e},
get legacyOptimizations(){return lq},setLegacyOptimizations:function(e){lq=e},
get syncInitialRender(){return Cg1},setSyncInitialRender:function(e){Cg1=e},
get legacyUndefined(){return hO},setLegacyUndefined:function(e){hO=e},
get legacyWarnings(){return uq},setLegacyWarnings:function(e){uq=e},
get orderedComputed(){return epw},setOrderedComputed:function(e){epw=e},
get fastDomIf(){return jL},setFastDomIf:function(e){jL=e},
get removeNestedTemplates(){return fQ},setRemoveNestedTemplates:function(e){fQ=e},
get suppressTemplateNotifications(){return iv},setSuppressTemplateNotifications:iv};Polymer.rootPath!==void 0&&(Osk=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Wd=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(yAt=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(d3=Polymer.strictTemplatePolicy);Mhn=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(lq=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(Cg1=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(hO=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(uq=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(epw=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(jL=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(fQ=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(iv=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Wd},
set:function(e){Wd=e}});Polymer.PropertyEffects=lv;Polymer.StyleGather={stylesFromModules:jdW,stylesFromModule:fQg,stylesFromTemplate:iuv,stylesFromModuleImports:Pnt,cssFromModules:p26,cssFromModule:meK,cssFromTemplate:Tlq,cssFromModuleImports:function(e){return(e=Gy.import(e))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e):""}};Polymer.ElementMixin=AS;Polymer.updateStyles=function(e){window.ShadyCSS&&window.ShadyCSS.styleDocument(e)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:sdq};Polymer.html=_.Tkv;Polymer.htmlLiteral=function(e){return new Fme(e,_.Mb.apply(1,arguments))};Polymer.Element=sS;Polymer.ArraySelectorMixin=lF4;Polymer.ArraySelector=Fl;var Fk4=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,uA1=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,WnC=/@media\s(.*)/;var Qde=null,Huv=window.HTMLImports&&window.HTMLImports.whenReady||null,Ue6;var dYY=null,uv=null,dx=function(){this.customStyles=[];this.enqueued=!1;otC(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},zpk=function(e){!e.enqueued&&uv&&(e.enqueued=!0,otC(uv))};
dx.prototype.addCustomStyle=function(e){e.__seenByShadyCSS||(e.__seenByShadyCSS=!0,this.customStyles.push(e),zpk(this))};
dx.prototype.getStyleForCustomStyle=function(e){if(e.__shadyCSSCachedStyle)return e.__shadyCSSCachedStyle;var g;e.getStyle?g=e.getStyle():g=e;return g};
dx.prototype.processStyles=function(){for(var e=this.customStyles,g=0;g<e.length;g++){var c=e[g];if(!c.__shadyCSSCachedStyle){var k=this.getStyleForCustomStyle(c);k&&(k=k.__appliedElement||k,dYY&&dYY(k),c.__shadyCSSCachedStyle=k)}}return e};
dx.prototype.addCustomStyle=dx.prototype.addCustomStyle;dx.prototype.getStyleForCustomStyle=dx.prototype.getStyleForCustomStyle;dx.prototype.processStyles=dx.prototype.processStyles;Object.defineProperties(dx.prototype,{transformCallback:{get:function(){return dYY},
set:function(e){dYY=e}},
validateCallback:{get:function(){return uv},
set:function(e){var g=!1;uv||(g=!0);uv=e;g&&zpk(this)}}});var V$6=!(window.ShadyDOM&&window.ShadyDOM.inUse),ZuC,tO;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(tO=window.ShadyCSS.cssBuild);var HOZ=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?ZuC=window.ShadyCSS.nativeCss:window.ShadyCSS?(t$v(window.ShadyCSS),window.ShadyCSS=void 0):t$v(window.WebComponents&&window.WebComponents.flags);var nEC=ZuC;var QIB=new dx;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(e,g){QIB.processStyles();deW(e,g)},
styleElement:function(){QIB.processStyles()},
styleDocument:function(e){QIB.processStyles();deW(document.body,e)},
getComputedStyleValue:function(e,g){return zPK(e,g)},
flushCustomStyles:function(){},
nativeCss:nEC,nativeShadow:V$6,cssBuild:tO,disableRuntime:HOZ});window.ShadyCSS.CustomStyleInterface=QIB;var UYM=window.ShadyCSS.CustomStyleInterface,zB=function(){var e=HTMLElement.call(this)||this;e._style=null;UYM.addCustomStyle(e);return e};
_.Y(zB,HTMLElement);zB.prototype.getStyle=function(){if(this._style)return this._style;var e=this.querySelector("style");if(!e)return null;this._style=e;var g=e.getAttribute("include");g&&(e.removeAttribute("include"),e.textContent=p26(g)+e.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
zB.prototype.getStyle=zB.prototype.getStyle;window.customElements.define("custom-style",zB);Polymer.CustomStyle=zB;var Hk=function(){this._timer=this._callback=this._asyncModule=null},QE,ZOw;
Hk.prototype.setConfig=function(e,g){var c=this;this._asyncModule=e;this._callback=g;this._timer=this._asyncModule.run(function(){c._timer=null;QE.delete(c);c._callback()})};
Hk.prototype.cancel=function(){this.isActive()&&(o_M(this),QE.delete(this))};
var o_M=function(e){e.isActive()&&(e._asyncModule.cancel(e._timer),e._timer=null)};
Hk.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Hk.prototype.isActive=function(){return this._timer!=null};
_.US=function(e,g,c){e instanceof Hk?o_M(e):e=new Hk;e.setConfig(g,c);return e};
QE=new Set;_.og=function(e){QE.add(e)};
ZOw=function(){var e=!!QE.size;QE.forEach(function(g){try{g.flush()}catch(c){setTimeout(function(){throw c;})}});
return e};var Nlg=typeof document.head.style.touchAction==="string",Blt=["mousedown","mousemove","mouseup","click"],cPv=[0,1,4,2],VYs;try{VYs=(new MouseEvent("test",{buttons:1})).buttons===1}catch(e){VYs=!1}var gVg=VYs,Sm8=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){Sm8=!0}});
window.addEventListener("test",null,e);window.removeEventListener("test",null,e)}catch(g){}})();
var OuV=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),M$z=[],tYk={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},EVv={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},CnU=function(e){var g=e.sourceCapabilities;if(!g||g.firesTouchEvents)if(e.__polymerGesturesHandled={skip:!0},e.type==="click"){g=!1;for(var c=vVp(e),k=0;k<c.length;k++){if(c[k].nodeType===Node.ELEMENT_NODE)if(c[k].localName==="label")M$z.push(c[k]);
else if(tYk[c[k].localName]){var I=c[k];var J=Array.prototype.slice.call(I.labels||[]);if(!J.length){J=[];try{var q=I.getRootNode();if(I.id){var L=q.querySelectorAll("label[for = '"+I.id+"']");for(I=0;I<L.length;I++)J.push(L[I])}}catch(n){}}for(I=0;I<J.length;I++)g=g||M$z.indexOf(J[I])>-1}if(c[k]===Bkv)return}g||(e.preventDefault(),e.stopPropagation())}},Bkv=null,Zx=null,qUW=0,Lv8=0,wW6=-1,rPg=!1;
document.addEventListener("touchend",function(e){Zx||eOV(!0);Bkv=vVp(e)[0];Zx=_.US(Zx,_.my.after(2500),function(){eOV();Zx=Bkv=null})},Sm8?{passive:!0}:!1);
var vVp=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(e){return e.composedPath&&e.composedPath()||[]},jX={},YN=[];
a46({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){$N(this.info)},
mousedown:function(e){if(DX(e)){var g=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e),c=this;I4e(this.info,function(k){DX(k)||(Ty("up",g,k),$N(c.info))},function(k){DX(k)&&Ty("up",g,k);
$N(c.info)});
Ty("down",g,e)}},
touchstart:function(e){Ty("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e),e.changedTouches[0],e)},
touchend:function(e){Ty("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e),e.changedTouches[0],e)}});
a46({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(e){this.moves.length>2&&this.moves.shift();this.moves.push(e)},
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;$N(this.info)},
mousedown:function(e){if(DX(e)){var g=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e),c=this,k=function(I){var J=I.clientX,q=I.clientY;nVV(c.info,J,q)&&(c.info.state=c.info.started?I.type==="mouseup"?"end":"track":"start",c.info.state==="start"&&fb("tap"),c.info.addMove({x:J,y:q}),DX(I)||(c.info.state="end",$N(c.info)),g&&ROt(c.info,g,I),c.info.started=!0)};
I4e(this.info,k,function(I){c.info.started&&k(I);$N(c.info)});
this.info.x=e.clientX;this.info.y=e.clientY}},
touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},
touchmove:function(e){var g=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e);e=e.changedTouches[0];var c=e.clientX,k=e.clientY;nVV(this.info,c,k)&&(this.info.state==="start"&&fb("tap"),this.info.addMove({x:c,y:k}),ROt(this.info,g,e),this.info.state="track",this.info.started=!0)},
touchend:function(e){var g=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e);e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),ROt(this.info,g,e))}});
a46({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(e){DX(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},
click:function(e){DX(e)&&WvV(this.info,e)},
touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},
touchend:function(e){WvV(this.info,e.changedTouches[0],e)}});var NkB=pQ(function(e){var g=function(){return e.apply(this,arguments)||this};
_.Y(g,e);g.prototype._addEventListenerToNode=function(c,k,I){iq(c,k,I)||e.prototype._addEventListenerToNode.call(this,c,k,I)};
g.prototype._removeEventListenerFromNode=function(c,k,I){Pd(c,k,I)||e.prototype._removeEventListenerFromNode.call(this,c,k,I)};
return g});var VE=pQ(function(e){var g=function(){return e.apply(this,arguments)||this};
_.Y(g,e);g.prototype._shouldPropertyChange=function(c,k,I){return bqK(this,c,k,I,!0)};
return g}),SzY=pQ(function(e){var g=function(){return e.apply(this,arguments)||this};
_.Y(g,e);g.prototype._shouldPropertyChange=function(c,k,I){return bqK(this,c,k,I,this.mutableData)};
_.Bd.Object.defineProperties(g,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return g});
VE._mutablePropertyChange=bqK;var hOC=!1;var yss=NkB(SzY(lv(HTMLElement))),tS=function(){var e=yss.call(this)||this;if(d3)throw Error("Nd");e.root=null;e.$=null;e.__children=null;return e};
_.Y(tS,yss);_.v=tS.prototype;_.v.attributeChangedCallback=function(){this.mutableData=!0};
_.v.connectedCallback=function(){XW6()||(this.style.display="none");this.render()};
_.v.disconnectedCallback=function(){this.__removeChildren()};
_.v.__insertChildren=function(){(0,_.Eg)((0,_.Eg)(this).parentNode).insertBefore(this.root,this)};
_.v.__removeChildren=function(){if(this.__children)for(var e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])};
_.v.render=function(){var e=this;if(!this.__children){var g=g||this.querySelector("template");if(!g){var c=new MutationObserver(function(){if(g=e.querySelector("template"))c.disconnect(),e.render();else throw Error("Od");});
c.observe(this,{childList:!0});return}this.root=this._stampTemplate(g);this.$=this.root.$;this.__children=[];for(var k=this.root.firstChild;k;k=k.nextSibling)this.__children[this.__children.length]=k;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Bd.Object.defineProperties(tS,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",tS);Polymer.Debouncer=Hk;Polymer.Gestures={gestures:jX,recognizers:YN,deepTargetFind:JP8,addListener:iq,removeListener:Pd,register:a46,setTouchAction:_.mZ,prevent:fb,resetMouseCanceller:function(){Zx&&Zx.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:iq,remove:Pd};Polymer.GestureEventListeners=NkB;Polymer.MutableData=VE;Polymer.OptionalMutableData=SzY;Polymer.DomBind=tS;_.Bk=function(){do{var e=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var g=ZOw()}while(e||g)};var GXK=null;xBg.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:xBg,writable:!0}});var mBv=lv(xBg),PyA=VE(mBv),Kkk=lv(function(){}),sg=function(e){var g=Kkk.call(this)||this;
g._configureProperties(e);g.root=g._stampTemplate(g.__dataHost);var c=[];g.children=c;for(var k=g.root.firstChild;k;k=k.nextSibling)c.push(k),k.__templatizeInstance=g;g.__templatizeOwner&&g.__templatizeOwner.__hideTemplateChildren__&&g._showHideChildren(!0);c=g.__templatizeOptions;(e&&c.instanceProps||!c.instanceProps)&&g._enableProperties();return g};
_.Y(sg,Kkk);_.v=sg.prototype;_.v._configureProperties=function(e){if(this.__templatizeOptions.forwardHostProp)for(var g in this.__hostProps)this._setPendingProperty(g,this.__dataHost["_host_"+g]);for(var c in e)this._setPendingProperty(c,e[c])};
_.v.forwardHostProp=function(e,g){this._setPendingPropertyOrPath(e,g,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.v._addEventListenerToNode=function(e,g,c){var k=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,g,function(J){J.model=k;c(J)});
else{var I=this.__dataHost.__dataHost;I&&I._addEventListenerToNode(e,g,c)}};
_.v._showHideChildren=function(e){$Bq(e,this.children)};
_.v._setUnmanagedPropertyToNode=function(e,g,c){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&g=="textContent"?e.__polymerTextContent__=c:Kkk.prototype._setUnmanagedPropertyToNode.call(this,e,g,c)};
_.v.dispatchEvent=function(){return!0};
_.Bd.Object.defineProperties(sg.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var e=this.__parentModel;if(!e){var g;e=this;do e=e.__dataHost.__dataHost;while((g=e.__templatizeOptions)&&!g.parentModel);this.__parentModel=e}return e}}});
var f4p=VE(sg);var N9=function(){var e=sS.call(this)||this;e.__renderDebouncer=null;e._lastIf=!1;e.__hideTemplateChildren__=!1;return e};
_.Y(N9,sS);_.v=N9.prototype;_.v.__debounceRender=function(){var e=this;this.__renderDebouncer=_.US(this.__renderDebouncer,pb,function(){return e.__render()});
_.og(this.__renderDebouncer)};
_.v.disconnectedCallback=function(){sS.prototype.disconnectedCallback.call(this);var e=(0,_.Eg)(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Eg)(e).host)||this.__teardownInstance()};
_.v.connectedCallback=function(){sS.prototype.connectedCallback.call(this);XW6()||(this.style.display="none");this.if&&this.__debounceRender()};
_.v.__ensureTemplate=function(){var e=this;if(!this.__template){var g=this._templateInfo?this:(0,_.Eg)(this).querySelector("template");if(!g){var c=new MutationObserver(function(){if((0,_.Eg)(e).querySelector("template"))c.disconnect(),e.__render();else throw Error("Rd");});
c.observe(this,{childList:!0});return!1}this.__template=g}return!0};
_.v.__ensureInstance=function(){var e=(0,_.Eg)(this).parentNode;if(this.__hasInstance()){var g=this.__getInstanceNodes();if(g&&g.length&&(0,_.Eg)(this).previousSibling!==g[g.length-1])for(var c=0,k=void 0;c<g.length&&(k=g[c]);c++)(0,_.Eg)(e).insertBefore(k,this)}else{if(!e||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0};
_.v.render=function(){_.Bk()};
_.v.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();iv&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.v.__hasInstance=function(){};
_.v.__getInstanceNodes=function(){};
_.v.__createAndInsertInstance=function(){};
_.v.__teardownInstance=function(){};
_.v._showHideChildren=function(){};
_.Bd.Object.defineProperties(N9,{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:N9.prototype.__debounceRender},restamp:{type:Boolean,observer:N9.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var OO1=function(){var e=N9.call(this)||this;e.__instance=null;e.__syncInfo=null;return e};
_.Y(OO1,N9);_.v=OO1.prototype;_.v.__hasInstance=function(){return!!this.__instance};
_.v.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.v.__createAndInsertInstance=function(e){var g=this,c=this.__dataHost||this;if(d3&&!this.__dataHost)throw Error("Pd");var k=c._bindTemplate(this.__template,!0);k.runEffects=function(I,J,q){var L=g.__syncInfo;if(g.if)L&&(g.__syncInfo=null,g._showHideChildren(),J=Object.assign(L.changedProps,J)),I(J,q);else if(g.__instance)if(L||(L=g.__syncInfo={runEffects:I,changedProps:{}}),q)for(var n in J)I=w3(n),L.changedProps[I]=g.__dataHost[I];else Object.assign(L.changedProps,J)};
this.__instance=c._stampTemplate(this.__template,k);(0,_.Eg)(e).insertBefore(this.__instance,this)};
_.v.__syncHostProperties=function(){var e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))};
_.v.__teardownInstance=function(){var e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.v._showHideChildren=function(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==e&&(this.__instance.__hidden=e,$Bq(e,this.__instance.templateInfo.childNodes));e||this.__syncHostProperties()};
var MYY=function(){var e=N9.call(this)||this;e.__ctor=null;e.__instance=null;e.__invalidProps=null;return e};
_.Y(MYY,N9);_.v=MYY.prototype;_.v.__hasInstance=function(){return!!this.__instance};
_.v.__getInstanceNodes=function(){return this.__instance.children};
_.v.__createAndInsertInstance=function(e){this.__ctor||(this.__ctor=FS(this.__template,this,{mutableData:!0,forwardHostProp:function(g,c){this.__instance&&(this.if?this.__instance.forwardHostProp(g,c):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[w3(g)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Eg)(e).insertBefore(this.__instance.root,this)};
_.v.__teardownInstance=function(){if(this.__instance){var e=this.__instance.children;if(e&&e.length){var g=(0,_.Eg)(e[0]).parentNode;if(g){g=(0,_.Eg)(g);for(var c=0,k=void 0;c<e.length&&(k=e[c]);c++)g.removeChild(k)}}this.__instance=this.__invalidProps=null}};
_.v.__syncHostProperties=function(){var e=this.__invalidProps;if(e){this.__invalidProps=null;for(var g in e)this.__instance._setPendingProperty(g,this.__dataHost[g]);this.__instance._flushProperties()}};
_.v._showHideChildren=function(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e));e||this.__syncHostProperties()};
_.nO=jL?OO1:MYY;customElements.define(_.nO.is,_.nO);Polymer.enqueueDebouncer=_.og;Polymer.flush=_.Bk;Polymer.Templatize={templatize:FS,modelForElement:FvW};Polymer.TemplateInstanceBase=sg;Polymer.DomIf=_.nO;var CFw=SzY(sS),aI=function(){var e=CFw.call(this)||this;e.__instances=[];e.__renderDebouncer=null;e.__itemsIdxToInstIdx={};e.__chunkCount=null;e.__renderStartTime=null;e.__itemsArrayChanged=!1;e.__shouldMeasureChunk=!1;e.__shouldContinueChunking=!1;e.__chunkingId=0;e.__sortFn=null;e.__filterFn=null;e.__observePaths=null;e.__ctor=null;e.__isDetached=!0;e.template=null;return e};
_.Y(aI,CFw);_.v=aI.prototype;_.v.disconnectedCallback=function(){CFw.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.v.connectedCallback=function(){CFw.prototype.connectedCallback.call(this);XW6()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var e=(0,_.Eg)((0,_.Eg)(this).parentNode),g=0;g<this.__instances.length;g++)this.__attachInstance(g,e);this.__chunkingId&&this.__render()}};
_.v.__ensureTemplatized=function(){var e=this;if(!this.__ctor){var g=this.template=this._templateInfo?this:this.querySelector("template");if(!g){var c=new MutationObserver(function(){if(e.querySelector("template"))c.disconnect(),e.__render();else throw Error("Sd");});
c.observe(this,{childList:!0});return!1}var k={};k[this.as]=!0;k[this.indexAs]=!0;k[this.itemsIndexAs]=!0;this.__ctor=FS(g,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:k,forwardHostProp:function(I,J){for(var q=this.__instances,L=0,n=void 0;L<q.length&&(n=q[L]);L++)n.forwardHostProp(I,J)},
notifyInstanceProp:function(I,J,q){CQA(this.as,J)&&(I=I[this.itemsIndexAs],J==this.as&&(this.items[I]=q),J=Lb(this.as,"items."+I,J),this.notifyPath(J,q))}})}return!0};
_.v.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.v.__functionFromPropertyValue=function(e){if(typeof e==="string"){var g=this.__getMethodHost();return function(){return g[e].apply(g,arguments)}}return e};
_.v.__sortChanged=function(e){this.__sortFn=this.__functionFromPropertyValue(e);this.items&&this.__debounceRender(this.__render)};
_.v.__filterChanged=function(e){this.__filterFn=this.__functionFromPropertyValue(e);this.items&&this.__debounceRender(this.__render)};
_.v.__computeFrameTime=function(e){return Math.ceil(1E3/e)};
_.v.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.v.__handleObservedPaths=function(e){if(this.__sortFn||this.__filterFn)if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var g=this.__observePaths,c=0;c<g.length;c++)e.indexOf(g[c])===0&&this.__debounceRender(this.__render,this.delay)};
_.v.__itemsChanged=function(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.v.__debounceRender=function(e,g){g=g===void 0?0:g;this.__renderDebouncer=_.US(this.__renderDebouncer,g>0?_.my.after(g):pb,e.bind(this));_.og(this.__renderDebouncer)};
_.v.render=function(){this.__debounceRender(this.__render);_.Bk()};
_.v.__render=function(){var e=this;if(this.__ensureTemplatized()){var g=this.items||[],c=this.__sortAndFilterItems(g),k=this.__calculateLimit(c.length);this.__updateInstances(g,k,c);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){e.__chunkingId=null;e.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);iv&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.v.__sortAndFilterItems=function(e){for(var g=this,c=Array(e.length),k=0;k<e.length;k++)c[k]=k;this.__filterFn&&(c=c.filter(function(I,J,q){return g.__filterFn(e[I],J,q)}));
this.__sortFn&&c.sort(function(I,J){return g.__sortFn(e[I],e[J])});
return c};
_.v.__calculateLimit=function(e){var g=e,c=this.__instances.length;if(this.initialCount){var k;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(g=Math.min(e,this.initialCount),this.__chunkCount=(k=Math.max(g-c,0))||1):(k=Math.min(Math.max(e-c,0),this.__chunkCount),g=Math.min(c+k,e));this.__shouldMeasureChunk=k===this.__chunkCount;this.__shouldContinueChunking=g<e;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return g};
_.v.__continueChunking=function(){if(this.__shouldMeasureChunk){var e=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/e*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.v.__updateInstances=function(e,g,c){var k=this.__itemsIdxToInstIdx={},I;for(I=0;I<g;I++){var J=this.__instances[I],q=c[I],L=e[q];k[q]=I;J?(J._setPendingProperty(this.as,L),J._setPendingProperty(this.indexAs,I),J._setPendingProperty(this.itemsIndexAs,q),J._flushProperties()):this.__insertInstance(L,I,q)}for(e=this.__instances.length-1;e>=I;e--)this.__detachAndRemoveInstance(e)};
_.v.__detachInstance=function(e){e=this.__instances[e];for(var g=(0,_.Eg)(e.root),c=0;c<e.children.length;c++)g.appendChild(e.children[c]);return e};
_.v.__attachInstance=function(e,g){g.insertBefore(this.__instances[e].root,this)};
_.v.__detachAndRemoveInstance=function(e){this.__detachInstance(e);this.__instances.splice(e,1)};
_.v.__stampInstance=function(e,g,c){var k={};k[this.as]=e;k[this.indexAs]=g;k[this.itemsIndexAs]=c;return new this.__ctor(k)};
_.v.__insertInstance=function(e,g,c){e=this.__stampInstance(e,g,c);c=(c=this.__instances[g+1])?c.children[0]:this;(0,_.Eg)((0,_.Eg)(this).parentNode).insertBefore(e.root,c);return this.__instances[g]=e};
_.v._showHideChildren=function(e){for(var g=0;g<this.__instances.length;g++)this.__instances[g]._showHideChildren(e)};
_.v.__handleItemPath=function(e,g){var c=e.slice(6),k=c.indexOf(".");e=k<0?c:c.substring(0,k);if(e==parseInt(e,10)){c=k<0?"":c.substring(k+1);this.__handleObservedPaths(c);if(e=this.__instances[this.__itemsIdxToInstIdx[e]])e._setPendingPropertyOrPath(this.as+(c?"."+c:""),g,!1,!0),e._flushProperties();return!0}};
_.v.itemForElement=function(e){return(e=this.modelForElement(e))&&e[this.as]};
_.v.indexForElement=function(e){return(e=this.modelForElement(e))&&e[this.indexAs]};
_.v.modelForElement=function(e){return FvW(this.template,e)};
_.Bd.Object.defineProperties(aI,{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:aI.prototype.__sortChanged},filter:{type:Function,observer:aI.prototype.__filterChanged},observe:{type:String,observer:aI.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!iv,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.*)"]}}});
aI.prototype._setRenderedItemCount=function(){};
customElements.define(aI.is,aI);Polymer.DomRepeat=aI;var eZ1=function(e,g){var c=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=e;this.callback=g;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){c._schedule()};
this.connect();this._schedule()},gkY=function(e){var g=(0,_.Eg)(e);
if(zy(e))return g.assignedNodes({flatten:!0});e=[];for(var c=0;c<g.childNodes.length;c++){var k=g.childNodes[c];zy(k)?e.push.apply(e,_.KY((0,_.Eg)(k).assignedNodes({flatten:!0}))):e.push(k)}return e};
_.v=eZ1.prototype;_.v.connect=function(){var e=this;zy(this._target)?this._listenSlots([this._target]):(0,_.Eg)(this._target).children&&(this._listenSlots((0,_.Eg)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(g){e._processMutations(g)}):(this._nativeChildrenObserver=new MutationObserver(function(g){e._processMutations(g)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.v.disconnect=function(){zy(this._target)?this._unlistenSlots([this._target]):(0,_.Eg)(this._target).children&&(this._unlistenSlots((0,_.Eg)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.v._schedule=function(){var e=this;this._scheduled||(this._scheduled=!0,pb.run(function(){return e.flush()}))};
_.v._processMutations=function(e){this._processSlotMutations(e);this.flush()};
_.v._processSlotMutations=function(e){if(e)for(var g=0;g<e.length;g++){var c=e[g];c.addedNodes&&this._listenSlots(c.addedNodes);c.removedNodes&&this._unlistenSlots(c.removedNodes)}};
_.v.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var e={target:this._target,addedNodes:[],removedNodes:[]},g=gkY(this._target),c=sdq(g,this._effectiveNodes),k=0,I=void 0;k<c.length&&(I=c[k]);k++)for(var J=0,q=void 0;J<I.removed.length&&(q=I.removed[J]);J++)e.removedNodes.push(q);
k=0;for(I=void 0;k<c.length&&(I=c[k]);k++)for(J=I.index;J<I.index+I.addedCount;J++)e.addedNodes.push(g[J]);this._effectiveNodes=g;g=!1;if(e.addedNodes.length||e.removedNodes.length)g=!0,this.callback.call(this._target,e);return g};
_.v._listenSlots=function(e){for(var g=0;g<e.length;g++){var c=e[g];zy(c)&&c.addEventListener("slotchange",this._boundSchedule)}};
_.v._unlistenSlots=function(e){for(var g=0;g<e.length;g++){var c=e[g];zy(c)&&c.removeEventListener("slotchange",this._boundSchedule)}};var SL=Element.prototype,cbw=SL.matches||SL.matchesSelector||SL.mozMatchesSelector||SL.msMatchesSelector||SL.oMatchesSelector||SL.webkitMatchesSelector,kFv=function(e,g){return cbw.call(e,g)},Hd=function(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e);
this.node=e},wTs;
_.v=Hd.prototype;_.v.observeNodes=function(e){return new eZ1(this.node,e)};
_.v.unobserveNodes=function(e){e.disconnect()};
_.v.notifyObserver=function(){};
_.v.deepContains=function(e){if((0,_.Eg)(this.node).contains(e))return!0;var g=e;for(e=e.ownerDocument;g&&g!==e&&g!==this.node;)g=(0,_.Eg)(g).parentNode||(0,_.Eg)(g).host;return g===this.node};
_.v.getOwnerRoot=function(){return(0,_.Eg)(this.node).getRootNode()};
_.v.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Eg)(this.node).assignedNodes({flatten:!0}):[]};
_.v.getDestinationInsertionPoints=function(){for(var e=[],g=(0,_.Eg)(this.node).assignedSlot;g;)e.push(g),g=(0,_.Eg)(g).assignedSlot;return e};
_.v.importNode=function(e,g){return(0,_.Eg)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(e,g)};
_.v.getEffectiveChildNodes=function(){return gkY(this.node)};
_.v.queryDistributedElements=function(e){for(var g=this.getEffectiveChildNodes(),c=[],k=0,I=g.length,J=void 0;k<I&&(J=g[k]);k++)J.nodeType===Node.ELEMENT_NODE&&kFv(J,e)&&c.push(J);return c};
_.Bd.Object.defineProperties(Hd.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var e=this.node;return e._activeElement!==void 0?e._activeElement:e.activeElement}}});
var yE=function(e){this.event=e};
_.Bd.Object.defineProperties(yE.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 Iiq=Hd;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var Jbs=window.ShadyDOM.Wrapper,vkv=function(){return Jbs.apply(this,arguments)||this};
_.Y(vkv,Jbs);Object.getOwnPropertyNames(Hd.prototype).forEach(function(e){e!="activeElement"&&e!="constructor"&&(vkv.prototype[e]=Hd.prototype[e])});
dBg(vkv.prototype,["classList"]);Iiq=vkv;Object.defineProperties(yE.prototype,{localTarget:{get:function(){var e=this.event.currentTarget;e=e&&_.IC(e).getOwnerRoot();for(var g=this.path,c=0;c<g.length;c++){var k=g[c];if(_.IC(k).getOwnerRoot()===e)return k}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else uv8(),dBg(Hd.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),zOC();wTs=Iiq;_.IC=function(e){e=e||document;if(e instanceof Iiq)return e;if(e instanceof yE)return e;var g=e.__domApi;g||(e instanceof Event?g=new yE(e):g=new Iiq(e),e.__domApi=g);return g};var qLv=/:host\(:dir\((ltr|rtl)\)\)/g,Lbv=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,rbq=/:dir\((?:ltr|rtl)\)/,aiY=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Ug=[],KQ=null,Qa="",nkZ=pQ(function(e){aiY||KQ||(Qa=document.documentElement.getAttribute("dir"),KQ=new MutationObserver(Hqg),KQ.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var g=hpB(e);e=function(){var c=g.call(this)||this;c.__autoDirOptOut=!1;return c};
_.Y(e,g);e._processStyleText=function(c,k){c=g._processStyleText.call(this,c,k);!aiY&&rbq.test(c)&&(c=this._replaceDirInCssText(c),this.__activateDir=!0);return c};
e._replaceDirInCssText=function(c){c=c.replace(qLv,':host([dir="$1"])');return c=c.replace(Lbv,':host([dir="$2"]) $1')};
e.prototype.ready=function(){g.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
e.prototype.connectedCallback=function(){g.prototype.connectedCallback&&g.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(KQ&&KQ.takeRecords().length&&Hqg(),Ug.push(this),this.__autoDirOptOut||this.setAttribute("dir",Qa))};
e.prototype.disconnectedCallback=function(){g.prototype.disconnectedCallback&&g.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var c=Ug.indexOf(this);c>-1&&Ug.splice(c,1)}};
e.__activateDir=!1;return e});var RZM=function(e){for(;e;){var g=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(g)return g.get;e=Object.getPrototypeOf(e.prototype).constructor}return function(){return[]}};
pQ(function(e){var g=AS(e),c=RZM(g);e=function(){return g.call(this)||this};
_.Y(e,g);e.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:g.prototype._initializeProperties.call(this)};
e.prototype._enableProperties=function(){this.__isUpgradeDisabled||g.prototype._enableProperties.call(this)};
e.prototype._canApplyPropertyDefault=function(k){return g.prototype._canApplyPropertyDefault.call(this,k)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(k))};
e.prototype.attributeChangedCallback=function(k,I,J,q){k=="disable-upgrade"?this.__isUpgradeDisabled&&J==null&&(g.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Eg)(this).isConnected&&g.prototype.connectedCallback.call(this)):g.prototype.attributeChangedCallback.call(this,k,I,J,q)};
e.prototype.connectedCallback=function(){this.__isUpgradeDisabled||g.prototype.connectedCallback.call(this)};
e.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||g.prototype.disconnectedCallback.call(this)};
_.Bd.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c.call(this).concat("disable-upgrade")}}});
return e});var o2=!1,UBv=[],ZX=[];var tAA=window.ShadyDOM,B06=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",SUA):document.readyState==="interactive"||document.readyState==="complete"?SUA():window.addEventListener("DOMContentLoaded",SUA);var OqW=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=""},yP6=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,KvW=/@import[^;]*;/gim,klv=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Igt=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,JLC=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,vEg=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,gEC=/^@[^\s]*keyframes/,
exW=/\s+/g;var w96={};var rLC=Promise.resolve();var Ek1=new Set;var WbY=/;\s*/m,bv4=/^\s*(initial)|(inherit)\s*$/,hZZ=/\s*!important/,XTI=function(){this._map={}};
XTI.prototype.set=function(e,g){e=e.trim();this._map[e]={properties:g,dependants:{}}};
XTI.prototype.get=function(e){e=e.trim();return this._map[e]||null};
var GFn=null,OS=function(){this._measureElement=this._currentElement=null;this._map=new XTI};
_.v=OS.prototype;_.v.detectMixin=function(e){e=uA1.test(e)||Fk4.test(e);uA1.lastIndex=0;Fk4.lastIndex=0;return e};
_.v.transformTemplate=function(e,g){if(e._gatheredStyle===void 0){var c=[];for(var k=e.content.querySelectorAll("style"),I=0;I<k.length;I++){var J=k[I];if(J.hasAttribute("shady-unscoped")){if(!V$6){var q=J.textContent;if(!Ek1.has(q)){Ek1.add(q);var L=document.createElement("style");L.setAttribute("shady-unscoped","");L.textContent=q;document.head.appendChild(L)}J.parentNode.removeChild(J)}}else c.push(J.textContent),J.parentNode.removeChild(J)}(c=c.join("").trim())?(k=document.createElement("style"),
k.textContent=c,e.content.insertBefore(k,e.content.firstChild),c=k):c=null;e._gatheredStyle=c}return(e=e._gatheredStyle)?this.JSC$11588_transformStyle(e,g):null};
_.v.JSC$11588_transformStyle=function(e,g){g=g===void 0?"":g;var c=EEz(e);this.transformRules(c,g);e.textContent=Rx6(c);return c};
_.v.transformCustomStyle=function(e){var g=this,c=EEz(e);b2q(c,function(k){k.selector===":root"&&(k.selector="html");g.transformRule(k)});
e.textContent=Rx6(c);return c};
_.v.transformRules=function(e,g){var c=this;this._currentElement=g;b2q(e,function(k){c.transformRule(k)});
this._currentElement=null};
_.v.transformRule=function(e){e.cssText=x2v(this,e.parsedCssText,e);e.selector===":root"&&(e.selector=":host > *")};
var x2v=function(e,g,c){g=g.replace(Fk4,function(k,I,J,q){return e._produceCssProperties(k,I,J,q,c)});
return e._consumeCssProperties(g,c)};
_.v=OS.prototype;_.v._getInitialValueForProperty=function(e){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(e)};
_.v._fallbacksFromPreviousRules=function(e){for(var g=this,c=e;c.parent;)c=c.parent;var k={},I=!1;b2q(c,function(J){(I=I||J===e)||J.selector===e.selector&&Object.assign(k,g._cssTextToMap(J.parsedCssText))});
return k};
_.v._consumeCssProperties=function(e,g){for(var c;c=uA1.exec(e);){var k=c[0],I=c[1];c=c.index;var J=c+k.indexOf("@apply"),q=c+k.length;k=e.slice(0,J);e=e.slice(q);J=g?this._fallbacksFromPreviousRules(g):{};Object.assign(J,this._cssTextToMap(k));I=this._atApplyToCssProperties(I,J);e=k+I+e;uA1.lastIndex=c+I.length}return e};
_.v._atApplyToCssProperties=function(e,g){e=e.replace(WbY,"");var c=[],k=this._map.get(e);k||(this._map.set(e,{}),k=this._map.get(e));if(k){this._currentElement&&(k.dependants[this._currentElement]=!0);var I,J=k.properties;for(I in J){var q=g&&g[I];k=[I,": var(",e,"_-_",I];q&&k.push(",",q.replace(hZZ,""));k.push(")");hZZ.test(J[I])&&k.push(" !important");c.push(k.join(""))}}return c.join("; ")};
_.v._replaceInitialOrInherit=function(e,g){var c=bv4.exec(g);c&&(g=c[1]?this._getInitialValueForProperty(e):"apply-shim-inherit");return g};
_.v._cssTextToMap=function(e,g){g=g===void 0?!1:g;e=e.split(";");for(var c,k,I={},J=0;J<e.length;J++)if(c=e[J])k=c.split(":"),k.length>1&&(c=k[0].trim(),k=k.slice(1).join(":"),g&&(k=this._replaceInitialOrInherit(c,k)),I[c]=k);return I};
_.v._invalidateMixinEntry=function(e){if(GFn)for(var g in e.dependants)g!==this._currentElement&&GFn(g)};
_.v._produceCssProperties=function(e,g,c,k,I){var J=this;c&&hxC(c,function(D,f){f&&J._map.get(f)&&(k="@apply "+f+";")});
if(!k)return e;var q=this._consumeCssProperties(""+k,I);I=e.slice(0,e.indexOf("--"));var L=q=this._cssTextToMap(q,!0),n=this._map.get(g),R=n&&n.properties;R?L=Object.assign(Object.create(R),q):this._map.set(g,L);var W=[],b,h=!1;for(b in L){var X=q[b];X===void 0&&(X="initial");!R||b in R||(h=!0);W.push(g+"_-_"+b+": "+X)}h&&this._invalidateMixinEntry(n);n&&(n.properties=L);c&&(I=e+";"+I);return I+W.join("; ")+";"};
OS.prototype.detectMixin=OS.prototype.detectMixin;OS.prototype.transformStyle=OS.prototype.JSC$11588_transformStyle;OS.prototype.transformCustomStyle=OS.prototype.transformCustomStyle;OS.prototype.transformRules=OS.prototype.transformRules;OS.prototype.transformRule=OS.prototype.transformRule;OS.prototype.transformTemplate=OS.prototype.transformTemplate;OS.prototype._separator="_-_";Object.defineProperty(OS.prototype,"invalidCallback",{get:function(){return GFn},
set:function(e){GFn=e}});var M9=new OS,D2w=function(){this.customStyleInterface=null;M9.invalidCallback=qsK},CQ=function(e){!e.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(e.customStyleInterface=window.ShadyCSS.CustomStyleInterface,e.customStyleInterface.transformCallback=function(g){M9.transformCustomStyle(g)},e.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){e.customStyleInterface.enqueued&&e.flushCustomStyles()})})};
_.v=D2w.prototype;_.v.prepareTemplate=function(e,g){CQ(this);X9K(e)===""&&(w96[g]=e,g=M9.transformTemplate(e,g),e._styleAst=g)};
_.v.flushCustomStyles=function(){CQ(this);if(this.customStyleInterface){var e=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var g=0;g<e.length;g++){var c=this.customStyleInterface.getStyleForCustomStyle(e[g]);c&&M9.transformCustomStyle(c)}this.customStyleInterface.enqueued=!1}}};
_.v.styleSubtree=function(e,g){CQ(this);g&&deW(e,g);if(e.shadowRoot)for(this.styleElement(e),e=e.shadowRoot.children||e.shadowRoot.childNodes,g=0;g<e.length;g++)this.styleSubtree(e[g]);else for(e=e.children||e.childNodes,g=0;g<e.length;g++)this.styleSubtree(e[g])};
_.v.styleElement=function(e){CQ(this);var g=e.localName,c;g?g.indexOf("-")>-1?c=g:c=e.getAttribute&&e.getAttribute("is")||"":c=e.is;g=w96[c];if(!(g&&X9K(g)!==""||!g||LnU(g))){if(LnU(g)||g._applyShimValidatingVersion!==g._applyShimNextVersion)this.prepareTemplate(g,c),agp(g);if(e=e.shadowRoot)if(e=e.querySelector("style"))e.__cssRules=g._styleAst,e.textContent=Rx6(g._styleAst)}};
_.v.styleDocument=function(e){CQ(this);this.styleSubtree(document.body,e)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var eR=new D2w,$2k=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(e,g){eR.flushCustomStyles();eR.prepareTemplate(e,g)},
prepareTemplateStyles:function(e,g,c){window.ShadyCSS.prepareTemplate(e,g,c)},
prepareTemplateDom:function(){},
styleSubtree:function(e,g){eR.flushCustomStyles();eR.styleSubtree(e,g)},
styleElement:function(e){eR.flushCustomStyles();eR.styleElement(e)},
styleDocument:function(e){eR.flushCustomStyles();eR.styleDocument(e)},
getComputedStyleValue:function(e,g){return zPK(e,g)},
flushCustomStyles:function(){eR.flushCustomStyles()},
nativeCss:nEC,nativeShadow:V$6,cssBuild:tO,disableRuntime:HOZ};$2k&&(window.ShadyCSS.CustomStyleInterface=$2k)}window.ShadyCSS.ApplyShim=M9;var YL4;YL4=window.ShadyCSS;_.gh=pQ(function(e){e=NkB(AS(e));var g=PFM?e:nkZ(e),c=RZM(g),k={x:"pan-x",y:"pan-y",none:"none",all:"auto"};e=function(){return g.call(this)||this};
_.Y(e,g);e.prototype.created=function(){};
e.prototype.__attributeReaction=function(I,J,q){(this.__dataAttributes&&this.__dataAttributes[I]||I==="disable-upgrade")&&this.attributeChangedCallback(I,J,q,null)};
e.prototype.setAttribute=function(I,J){if(g_M&&!this._legacyForceObservedAttributes){var q=this.getAttribute(I);g.prototype.setAttribute.call(this,I,J);this.__attributeReaction(I,q,String(J))}else g.prototype.setAttribute.call(this,I,J)};
e.prototype.removeAttribute=function(I){if(g_M&&!this._legacyForceObservedAttributes){var J=this.getAttribute(I);g.prototype.removeAttribute.call(this,I);this.__attributeReaction(I,J,null)}else g.prototype.removeAttribute.call(this,I)};
e.prototype._enableProperties=function(){this.__isUpgradeDisabled||g.prototype._enableProperties.call(this)};
e.prototype._canApplyPropertyDefault=function(I){return g.prototype._canApplyPropertyDefault.call(this,I)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(I))};
e.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(g.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
e.prototype.attached=function(){};
e.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(g.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
e.prototype.detached=function(){};
e.prototype.attributeChangedCallback=function(I,J,q,L){J!==q&&(I=="disable-upgrade"?this.__isUpgradeDisabled&&q==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Eg)(this).isConnected&&this.connectedCallback()):(g.prototype.attributeChangedCallback.call(this,I,J,q,L),this.attributeChanged(I,J,q)))};
e.prototype.attributeChanged=function(){};
e.prototype._initializeProperties=function(){if(lq&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var I=Object.getPrototypeOf(this);I.hasOwnProperty("__hasRegisterFinished")||(this._registered(),I.__hasRegisterFinished=!0);g.prototype._initializeProperties.call(this);this.root=this;this.created();g_M&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
e.prototype._takeAttributes=function(){for(var I=this.attributes,J=0,q=I.length;J<q;J++){var L=I[J];this.__attributeReaction(L.name,null,L.value)}};
e.prototype._registered=function(){};
e.prototype.ready=function(){this._ensureAttributes();g.prototype.ready.call(this)};
e.prototype._ensureAttributes=function(){};
e.prototype._applyListeners=function(){};
e.prototype.serialize=function(I){return this._serializeValue(I)};
e.prototype.deserialize=function(I,J){return this._deserializeValue(I,J)};
e.prototype.reflectPropertyToAttribute=function(I,J,q){this._propertyToAttribute(I,J,q)};
e.prototype.serializeValueToAttribute=function(I,J,q){this._valueToNodeAttribute(q||this,I,J)};
e.prototype.extend=function(I,J){if(!I||!J)return I||J;for(var q=Object.getOwnPropertyNames(J),L=0,n=void 0;L<q.length&&(n=q[L]);L++){var R=Object.getOwnPropertyDescriptor(J,n);R&&Object.defineProperty(I,n,R)}return I};
e.prototype.mixin=function(I,J){for(var q in J)I[q]=J[q];return I};
e.prototype.chainObject=function(I,J){I&&J&&I!==J&&(I.__proto__=J);return I};
e.prototype.instanceTemplate=function(I){I=this.constructor._contentForTemplate(I);return document.importNode(I,!0)};
e.prototype.fire=function(I,J,q){q=q||{};J=J===null||J===void 0?{}:J;I=new Event(I,{bubbles:q.bubbles===void 0?!0:q.bubbles,cancelable:!!q.cancelable,composed:q.composed===void 0?!0:q.composed});I.detail=J;(0,_.Eg)(q.node||this).dispatchEvent(I);return I};
e.prototype.listen=function(I,J,q){I=I||this;var L=this.__boundListeners||(this.__boundListeners=new WeakMap),n=L.get(I);n||(n={},L.set(I,n));L=J+q;n[L]||(n[L]=this._addMethodEventListenerToNode(I,J,q,this))};
e.prototype.unlisten=function(I,J,q){I=I||this;var L=this.__boundListeners&&this.__boundListeners.get(I);q=J+q;var n=L&&L[q];n&&(this._removeEventListenerFromNode(I,J,n),L[q]=null)};
e.prototype.setScrollDirection=function(I,J){_.mZ(J||this,k[I]||"auto")};
e.prototype.$$=function(I){return this.root.querySelector(I)};
e.prototype.distributeContent=function(){var I=_.IC(this);window.ShadyDOM&&I.shadowRoot&&ShadyDOM.flush()};
e.prototype.getEffectiveChildNodes=function(){return _.IC(this).getEffectiveChildNodes()};
e.prototype.queryDistributedElements=function(I){return _.IC(this).queryDistributedElements(I)};
e.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(I){return I.nodeType===Node.ELEMENT_NODE})};
e.prototype.getEffectiveTextContent=function(){for(var I=this.getEffectiveChildNodes(),J=[],q=0,L;L=I[q];q++)L.nodeType!==Node.COMMENT_NODE&&J.push(L.textContent);return J.join("")};
e.prototype.queryEffectiveChildren=function(I){return(I=this.queryDistributedElements(I))&&I[0]};
e.prototype.queryAllEffectiveChildren=function(I){return this.queryDistributedElements(I)};
e.prototype.getContentChildNodes=function(I){return(I=this.root.querySelector(I||"slot"))?_.IC(I).getDistributedNodes():[]};
e.prototype.getContentChildren=function(I){return this.getContentChildNodes(I).filter(function(J){return J.nodeType===Node.ELEMENT_NODE})};
e.prototype.isLightDescendant=function(I){return this!==I&&(0,_.Eg)(this).contains(I)&&(0,_.Eg)(this).getRootNode()===(0,_.Eg)(I).getRootNode()};
e.prototype.isLocalDescendant=function(I){return this.root===(0,_.Eg)(I).getRootNode()};
e.prototype.scopeSubtree=function(I,J){return N0e(I,J===void 0?!1:J)};
e.prototype.getComputedStyleValue=function(I){return YL4.getComputedStyleValue(this,I)};
e.prototype.debounce=function(I,J,q){this._debouncers=this._debouncers||{};return this._debouncers[I]=_.US(this._debouncers[I],q>0?_.my.after(q):pb,J.bind(this))};
e.prototype.isDebouncerActive=function(I){this._debouncers=this._debouncers||{};I=this._debouncers[I];return!(!I||!I.isActive())};
e.prototype.flushDebouncer=function(I){this._debouncers=this._debouncers||{};(I=this._debouncers[I])&&I.flush()};
e.prototype.cancelDebouncer=function(I){this._debouncers=this._debouncers||{};(I=this._debouncers[I])&&I.cancel()};
e.prototype.async=function(I,J){return J>0?_.my.run(I.bind(this),J):~pb.run(I.bind(this))};
e.prototype.cancelAsync=function(I){I<0?pb.cancel(~I):_.my.cancel(I)};
e.prototype.create=function(I,J){I=document.createElement(I);if(J)if(I.setProperties)I.setProperties(J);else for(var q in J)I[q]=J[q];return I};
e.prototype.elementMatches=function(I,J){return kFv(J||this,I)};
e.prototype.toggleAttribute=function(I,J){var q=this;arguments.length===3&&(q=arguments[2]);arguments.length==1&&(J=!q.hasAttribute(I));if(J)return(0,_.Eg)(q).setAttribute(I,""),!0;(0,_.Eg)(q).removeAttribute(I);return!1};
e.prototype.toggleClass=function(I,J,q){q=q||this;arguments.length==1&&(J=!q.classList.contains(I));J?q.classList.add(I):q.classList.remove(I)};
e.prototype.transform=function(I,J){J=J||this;J.style.webkitTransform=I;J.style.transform=I};
e.prototype.translate3d=function(I,J,q,L){this.transform("translate3d("+I+","+J+","+q+")",L||this)};
e.prototype.arrayDelete=function(I,J){if(Array.isArray(I)){if(J=I.indexOf(J),J>=0)return I.splice(J,1)}else if(J=a2(this,I).indexOf(J),J>=0)return this.splice(I,J,1);return null};
e.prototype._logger=function(I,J){Array.isArray(J)&&J.length===1&&Array.isArray(J[0])&&(J=J[0]);switch(I){case "log":case "warn":case "error":console[I].apply(console,_.KY(J))}};
e.prototype._log=function(){this._logger("log",_.Mb.apply(0,arguments))};
e.prototype._warn=function(){this._logger("warn",_.Mb.apply(0,arguments))};
e.prototype._error=function(){this._logger("error",_.Mb.apply(0,arguments))};
e.prototype._logf=function(I){return["[%s::%s]",this.is,I].concat(_.KY(_.Mb.apply(1,arguments)))};
_.Bd.Object.defineProperties(e.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var I=(0,_.Eg)(this).getRootNode();return I instanceof DocumentFragment?I.host:I}}});
_.Bd.Object.defineProperties(e,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return g_M&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],BSt(this.prototype)),this.__observedAttributes):c.call(this).concat("disable-upgrade")}}});
e.prototype.is="";return e});Polymer.FlattenedNodesObserver=eZ1;Polymer.DomApi=wTs;Polymer.EventApi=yE;Polymer.dom=_.IC;Polymer.dom.matchesSelector=kFv;Polymer.dom.flush=_.Bk;Polymer.dom.addDebouncer=_.og;Polymer.DirMixin=nkZ;Polymer.RenderStatus={beforeNextRender:_.VAe,afterNextRender:_.Va,flush:function(){for(;UBv.length||ZX.length;)Qse(UBv),Qse(ZX);o2=!1}};Polymer.LegacyElementMixin=_.gh;var fis;fis=VE._mutablePropertyChange;var j6s={properties:{mutableData:Boolean},_shouldPropertyChange:function(e,g,c){return fis(this,e,g,c,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(e,g,c){return fis(this,e,g,c,!0)}};
Polymer.OptionalMutableDataBehavior=j6s;var GlC={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},fgz={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Ys8=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},fgz),ivw=(0,_.gh)(HTMLElement),zKv=function(e,g){e||console.warn("Polymer.Class requires `info` argument");g=g?g(ivw):ivw;g=jXA(e,g,e.behaviors);g.is=g.prototype.is=
e.is;return g};Polymer.Class=zKv;Polymer.mixinBehaviors=function(e,g){return jXA({},(0,_.gh)(g),e)};
Polymer.GenerateClassFromInfo=jXA;_.rk=function(e){var g=typeof e==="function"?e:_.rk.Class(e);e._legacyForceObservedAttributes&&(g.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes);customElements.define(g.is,g);return g};
_.rk.Class=zKv;Polymer._polymerFn=_.rk;var P3w=window.onLegacyPolymerFunctionDefinedCallback;P3w&&P3w();var QEC={templatize:function(e,g){this._templatizerTemplate=e;this.ctor=FS(e,this,{mutableData:!!g,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(e){return new this.ctor(e)},
modelForElement:function(e){return FvW(this._templatizerTemplate,e)}};Polymer.Templatizer=QEC;_.c6=(0,_.gh)(HTMLElement).prototype;Polymer.Base=_.c6;var P2C=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.NZ=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Y(_.NZ,PolymerFakeBaseClass);var SX=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Y(SX,PolymerFakeBaseClass);var msz=Symbol("Td"),ds6=[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 m2q=m2q||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},pTM;(function(e){function g(V,Q,y){var O=S.get(V);if(!O){if(!y)return;O=new A;S.set(V,O)}V=O.get(Q);if(!V){if(!y)return;V=new A;O.set(Q,V)}return V}
function c(V,Q,y){if(k(V,Q,y))return!0;Q=h(Q);return Q!==null?c(V,Q,y):!1}
function k(V,Q,y){Q=g(Q,y,!1);return Q===void 0?!1:!!Q.has(V)}
function I(V,Q,y){if(k(V,Q,y))return J(V,Q,y);Q=h(Q);if(Q!==null)return I(V,Q,y)}
function J(V,Q,y){Q=g(Q,y,!1);if(Q!==void 0)return Q.get(V)}
function q(V,Q){var y=L(V,Q);V=h(V);if(V===null)return y;var O=q(V,Q);if(O.length<=0)return y;if(y.length<=0)return O;Q=new d;V=[];y=_.w(y);for(var Jq=y.next();!Jq.done;Jq=y.next())Jq=Jq.value,Q.has(Jq)||(Q.add(Jq),V.push(Jq));y=_.w(O);for(O=y.next();!O.done;O=y.next())O=O.value,Q.has(O)||(Q.add(O),V.push(O));return V}
function L(V,Q){V=g(V,Q,!1);var y=[];V&&V.forEach(function(O,Jq){return y.push(Jq)});
return y}
function n(V){return V===void 0}
function R(V){return typeof V==="object"?V!==null:typeof V==="function"}
function W(V){return typeof V==="function"}
function b(V){return typeof V==="symbol"?V:String(V)}
function h(V){var Q=Object.getPrototypeOf(V);if(typeof V!=="function"||V===l||Q!==l)return Q;var y=Object.getPrototypeOf(V.prototype);if(y==null||y===Object.prototype)return Q;y=y.constructor;return typeof y!=="function"||y===V?Q:y}
function X(){function V(){this._keys=[];this._values=[];this._cache=Q}
var Q={};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 O=this._find(y);if(O>=0)return this._cache=y,this._values[O]},
set:function(y,O){this.delete(y);this._keys.push(y);this._values.push(O);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=Q,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=Q},
forEach:function(y){for(var O=this.size,Jq=0;Jq<O;++Jq){var LC=this._keys[Jq],bW=this._values[Jq];this._cache=LC;y.call(this,bW,LC,this)}},
_find:function(y){for(var O=this._keys,Jq=O.length,LC=0;LC<Jq;++LC)if(O[LC]===y)return LC;return-1}};
return V}
function D(){function V(){this._map=new A}
V.prototype={get size(){return this._map.length},has:function(Q){return this._map.has(Q)},
add:function(Q){this._map.set(Q,Q);return this},
delete:function(Q){return this._map.delete(Q)},
clear:function(){this._map.clear()},
forEach:function(Q,y){this._map.forEach(Q,y)}};
return V}
function f(){function V(){this._key=y()}
function Q(Xg,Fg){for(var oA=0;oA<Fg;++oA)Xg[oA]=Math.random()*255|0}
function y(){do{if(Jq)var Xg=Jq.randomBytes(16);else typeof Uint8Array==="function"?(Xg=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Xg):Q(Xg,16)):(Xg=Array(16),Q(Xg,16));Xg[6]=Xg[6]&79|64;Xg[8]=Xg[8]&191|128;for(var Fg="",oA=0;oA<16;++oA){var Zt=Xg[oA];if(oA===4||oA===6||oA===8)Fg+="-";Zt<16&&(Fg+="0");Fg+=Zt.toString(16).toLowerCase()}Xg="@@WeakMap@@"+Fg}while(LC.call(bW,Xg));bW[Xg]=!0;return Xg}
function O(Xg,Fg){if(!LC.call(Xg,RA)){if(!Fg)return;Object.defineProperty(Xg,RA,{value:Object.create(null)})}return Xg[RA]}
var Jq=typeof global!=="undefined"&&typeof m2q==="object"&&typeof require==="function"&&require("crypto"),LC=Object.prototype.hasOwnProperty,bW={},RA=y();V.prototype={has:function(Xg){return(Xg=O(Xg,!1))?this._key in Xg:!1},
get:function(Xg){if(Xg=O(Xg,!1))return Xg[this._key]},
set:function(Xg,Fg){O(Xg,!0)[this._key]=Fg;return this},
delete:function(Xg){return(Xg=O(Xg,!1))&&this._key in Xg?delete Xg[this._key]:!1},
clear:function(){this._key=y()}};
return V}
var l=Object.getPrototypeOf(Function),A=typeof Map==="function"?Map:X(),d=typeof Set==="function"?Set:D(),S=new (typeof WeakMap==="function"?WeakMap:f());e.decorate=function(V,Q,y,O){if(n(O)){if(n(y)){if(!Array.isArray(V))throw new TypeError;if(!W(Q))throw new TypeError;for(y=V.length-1;y>=0;--y)if(O=(0,V[y])(Q),!n(O)){if(!W(O))throw new TypeError;Q=O}return Q}if(!Array.isArray(V))throw new TypeError;if(!R(Q))throw new TypeError;y=b(y);for(O=V.length-1;O>=0;--O)(0,V[O])(Q,y)}else{if(Array.isArray(V))if(R(Q)){if(n(y))throw new TypeError;
if(!R(O))throw new TypeError;}else throw new TypeError;else throw new TypeError;y=b(y);for(var Jq=V.length-1;Jq>=0;--Jq){var LC=(0,V[Jq])(Q,y,O);if(!n(LC)){if(!R(LC))throw new TypeError;O=LC}}return O}};
e.metadata=function(V,Q){return function(y,O){if(n(O)){if(!W(y))throw new TypeError;g(y,void 0,!0).set(V,Q)}else{if(!R(y))throw new TypeError;O=b(O);g(y,O,!0).set(V,Q)}}};
e.defineMetadata=function(V,Q){var y;if(R(Q))n(y)||(y=b(y));else throw new TypeError;g(Q,y,!0).set("parameters",V)};
e.hasMetadata=function(V,Q,y){if(R(Q))n(y)||(y=b(y));else throw new TypeError;return c(V,Q,y)};
e.hasOwnMetadata=function(V,Q,y){if(R(Q))n(y)||(y=b(y));else throw new TypeError;return k(V,Q,y)};
e.getMetadata=function(V,Q,y){if(R(Q))n(y)||(y=b(y));else throw new TypeError;return I(V,Q,y)};
e.getOwnMetadata=function(V,Q,y){if(R(Q))n(y)||(y=b(y));else throw new TypeError;return J(V,Q,y)};
e.getMetadataKeys=function(V,Q){if(R(V))n(Q)||(Q=b(Q));else throw new TypeError;return q(V,Q)};
e.getOwnMetadataKeys=function(V,Q){if(R(V))n(Q)||(Q=b(Q));else throw new TypeError;return L(V,Q)};
e.deleteMetadata=function(V,Q,y){if(R(Q))n(y)||(y=b(y));else throw new TypeError;var O=g(Q,y,!1);if(!n(O)){if(!O.delete(V))return!1;if(O.size>0)return!0;V=S.get(Q);V.delete(y);if(V.size>0)return!0;S.delete(Q);return!0}};
(function(V){if(typeof V.Reflect!=="undefined"){if(V.Reflect!==e)for(var Q in e)V.Reflect[Q]=e[Q]}else V.Reflect=e})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(pTM||(pTM={}));var Wdq=self;var TLv=[0,_.ly,_.Fv,_.ly];var liw=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(liw,_.WJ);var AbB=_.ma(liw,[0,_.Qk,_.zX,TLv,_.Fv,_.Z4]);var Fbq=[0,_.UU,-3,_.Z4,_.Qk,_.ly,_.NrM,_.UU,yj4,Vas,PW,_.AP,_.ly,function(){return s6I},
_.Fv],s6I=[0,_.zX,function(){return Fbq},
_.Qk,14,_.UU];_.Um(_.ya,_.Iy);_.v=_.ya.prototype;_.v.start=function(){this.stop();this.usingListeners_=!1;var e=u6B(this),g=d2M(this);e&&!g&&this.JSC$11631_win_.mozRequestAnimationFrame?(this.JSC$11631_id_=_.iK(this.JSC$11631_win_,"MozBeforePaint",this.callback_),this.JSC$11631_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11631_id_=e&&g?e.call(this.JSC$11631_win_,this.callback_):this.JSC$11631_win_.setTimeout(EUB(this.callback_),20)};
_.v.stop=function(){if(this.isActive()){var e=u6B(this),g=d2M(this);e&&!g&&this.JSC$11631_win_.mozRequestAnimationFrame?I6(this.JSC$11631_id_):e&&g?g.call(this.JSC$11631_win_,this.JSC$11631_id_):this.JSC$11631_win_.clearTimeout(this.JSC$11631_id_)}this.JSC$11631_id_=null};
_.v.fire=function(){this.stop();this.JSC$11633_doAction_()};
_.v.isActive=function(){return this.JSC$11631_id_!=null};
_.v.JSC$11633_doAction_=function(){this.usingListeners_&&this.JSC$11631_id_&&I6(this.JSC$11631_id_);this.JSC$11631_id_=null;this.JSC$11631_listener_.call(this.handler_,_.QG())};
_.v.disposeInternal=function(){this.stop();_.ya.superClass_.disposeInternal.call(this)};
var u6B=function(e){e=e.JSC$11631_win_;return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||null},d2M=function(e){e=e.JSC$11631_win_;
return e.cancelAnimationFrame||e.cancelRequestAnimationFrame||e.webkitCancelRequestAnimationFrame||e.mozCancelRequestAnimationFrame||e.oCancelRequestAnimationFrame||e.msCancelRequestAnimationFrame||null};_.BT=function(e,g,c){_.Iy.call(this);this.JSC$11634_listener_=c!=null?e.bind(c):e;this.JSC$11634_interval_=g;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11634_timer_=null};
_.Y(_.BT,_.Iy);_.v=_.BT.prototype;_.v.fire=function(e){this.args_=arguments;this.JSC$11634_timer_||this.pauseCount_?this.shouldFire_=!0:zZ4(this)};
_.v.stop=function(){this.JSC$11634_timer_&&(_.kp.clearTimeout(this.JSC$11634_timer_),this.JSC$11634_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.v.pause=function(){this.pauseCount_++};
_.v.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11634_timer_||(this.shouldFire_=!1,zZ4(this))};
_.v.disposeInternal=function(){_.Iy.prototype.disposeInternal.call(this);this.stop()};
var zZ4=function(e){e.JSC$11634_timer_=bV(function(){e.JSC$11634_timer_=null;e.shouldFire_&&!e.pauseCount_&&(e.shouldFire_=!1,zZ4(e))},e.JSC$11634_interval_);
var g=e.args_;e.args_=null;e.JSC$11634_listener_.apply(null,g)};var Hvw=function(e,g){this.childIterator_=e[_.kp.Symbol.iterator]();this.mapFn_=g};
Hvw.prototype[Symbol.iterator]=function(){return this};
Hvw.prototype.next=function(){var e=this.childIterator_.next();return{value:e.done?void 0:this.mapFn_.call(void 0,e.value),done:e.done}};
var Q6B=function(e,g){return new Hvw(e,g)};var yLt={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 KnC=/#(.)(.)(.)/,t9g=/^#(?:[0-9a-f]{3}){1,2}$/i,M9v=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;var U2q={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},yD=U2q;yD=U2q;var xKt,okI,ZvM;xKt=function(e,g){switch(g){case 1:return e%4!=0||e%100==0&&e%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
okI=function(e,g,c,k,I){e=new Date(e,g,c);I=I||0;return e.valueOf()+(((k!==void 0?k:3)-I+7)%7-((e.getDay()+6)%7-I+7)%7)*864E5};
_.kA=function(e,g,c){typeof e==="number"?(this.date=ZvM(e,g||0,c||1),VUB(this,c||1)):_.SK(e)?(this.date=ZvM(e.getFullYear(),e.getMonth(),e.getDate()),VUB(this,e.getDate())):(this.date=new Date(_.QG()),e=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),VUB(this,e))};
ZvM=function(e,g,c){g=new Date(e,g,c);e>=0&&e<100&&g.setFullYear(g.getFullYear()-1900);return g};
_.v=_.kA.prototype;_.v.firstDayOfWeek_=yD.FIRSTDAYOFWEEK;_.v.firstWeekCutOffDay_=yD.FIRSTWEEKCUTOFFDAY;_.v.clone=function(){var e=new _.kA(this.date);e.firstDayOfWeek_=this.firstDayOfWeek_;e.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return e};
_.v.getFullYear=function(){return this.date.getFullYear()};
_.v.getYear=function(){return this.getFullYear()};
_.v.getMonth=function(){return this.date.getMonth()};
_.v.getDate=function(){return this.date.getDate()};
_.v.getTime=function(){return this.date.getTime()};
_.v.getDay=function(){return this.date.getDay()};
_.v.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.v.getUTCMonth=function(){return this.date.getUTCMonth()};
_.v.getUTCDate=function(){return this.date.getUTCDate()};
_.v.getUTCDay=function(){return this.date.getDay()};
_.v.getUTCHours=function(){return this.date.getUTCHours()};
_.v.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.v.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.v.set=function(e){this.date=new Date(e.getFullYear(),e.getMonth(),e.getDate())};
_.v.setFullYear=function(e){this.date.setFullYear(e)};
_.v.setYear=function(e){this.setFullYear(e)};
_.v.setMonth=function(e){this.date.setMonth(e)};
_.v.setDate=function(e){this.date.setDate(e)};
_.v.setTime=function(e){this.date.setTime(e)};
_.v.setUTCFullYear=function(e){this.date.setUTCFullYear(e)};
_.v.setUTCMonth=function(e){this.date.setUTCMonth(e)};
_.v.setUTCDate=function(e){this.date.setUTCDate(e)};
_.v.add=function(e){if(e.years||e.months){var g=this.getMonth()+e.months+e.years*12,c=this.getYear()+Math.floor(g/12);g%=12;g<0&&(g+=12);var k=Math.min(xKt(c,g),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(g);this.setDate(k)}e.days&&(c=this.getYear(),g=c>=0&&c<=99?-1900:0,e=new Date((new Date(c,this.getMonth(),this.getDate(),12)).getTime()+e.days*864E5),this.setDate(1),this.setFullYear(e.getFullYear()+g),this.setMonth(e.getMonth()),this.setDate(e.getDate()),VUB(this,e.getDate()))};
_.v.JSC$11647_toIsoString=function(e){var g=this.getFullYear(),c=g<0?"-":g>=1E4?"+":"";return[c+_.Kq(Math.abs(g),c?6:4),_.Kq(this.getMonth()+1,2),_.Kq(this.getDate(),2)].join(e?"-":"")};
_.v.equals=function(e){return!(!e||this.getYear()!=e.getYear()||this.getMonth()!=e.getMonth()||this.getDate()!=e.getDate())};
_.v.toString=function(){return this.JSC$11647_toIsoString()};
var VUB=function(e,g){e.getDate()!=g&&e.date.setUTCHours(e.date.getUTCHours()+(e.getDate()<g?1:-1))};
_.kA.prototype.valueOf=function(){return this.date.valueOf()};var JD=function(e,g,c,k,I){this.reversed=!!g;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!c;e&&IT(this,e,k);this.depth=I!=void 0?I:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Um(JD,z3);var IT=function(e,g,c,k){if(e.node=g)e.tagType=typeof c==="number"?c:e.node.nodeType!=1?0:e.reversed?-1:1;typeof k==="number"&&(e.depth=k)};
_.v=JD.prototype;_.v.JSC$11662_copyFrom=function(e){this.node=e.node;this.tagType=e.tagType;this.depth=e.depth;this.reversed=e.reversed;this.constrained=e.constrained};
_.v.clone=function(){return new JD(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.v.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return HR;var e=this.node;var g=this.reversed?-1:1;if(this.tagType==g){var c=this.reversed?e.lastChild:e.firstChild;c?IT(this,c):IT(this,e,g*-1)}else(c=this.reversed?e.previousSibling:e.nextSibling)?IT(this,c):IT(this,e.parentNode,g*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(e=this.node)?QC(e):HR};
_.v.equals=function(e){return e.node==this.node&&(!this.node||e.tagType==this.tagType)};
_.v.splice=function(e){var g=this.node,c=this.reversed?1:-1;this.tagType==c&&(this.tagType=c*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;JD.prototype.next.call(this);this.reversed=!this.reversed;c=_.Bz(arguments[0])?arguments[0]:arguments;for(var k=c.length-1;k>=0;k--)_.YE(c[k],g);_.ev(g)};var tUM=function(){},v6=function(e){for(var g=[],c=e.getTextRangeCount(),k=0;k<c;k++)g.push(e.getTextRange(k));
return g};
tUM.prototype.isReversed=function(){return!1};
tUM.prototype.getWindow=function(){return WH(_.be(this.JSC$11664_getStartNode()))};
var BLw=function(e,g){JD.call(this,e,g,!0)};
_.Um(BLw,JD);var wh=function(e,g,c,k,I){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!I;if(e){this.startNode_=e;this.startOffset_=g;this.endNode_=c;this.endOffset_=k;if(e.nodeType==1&&e.tagName!="BR")if(e=e.childNodes,g=e[g])this.startNode_=g,this.startOffset_=0;else{e.length&&(this.startNode_=_.Aq(e));var J=!0}c.nodeType==1&&((this.endNode_=c.childNodes[k])?this.endOffset_=0:this.endNode_=c)}JD.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);J&&this.next()};
_.Um(wh,BLw);_.v=wh.prototype;_.v.JSC$11670_getStartNode=function(){return this.startNode_};
_.v.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.v.next=function(){return this.isLast()?HR:wh.superClass_.next.call(this)};
_.v.JSC$11662_copyFrom=function(e){this.startNode_=e.startNode_;this.endNode_=e.endNode_;this.startOffset_=e.startOffset_;this.endOffset_=e.endOffset_;this.isReversed_=e.isReversed_;wh.superClass_.JSC$11662_copyFrom.call(this,e)};
_.v.clone=function(){var e=new wh(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);e.JSC$11662_copyFrom(this);return e};C2t.prototype.__iterator__=function(){return new wh(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};_.Um(Kb,C2t);var NL1=function(e){var g=_.be(e).createRange();if(e.nodeType==3)g.setStart(e,0),g.setEnd(e,e.length);else if(xE(e)||e.nodeType==3){for(var c,k=e;(c=k.firstChild)&&(xE(c)||c.nodeType==3);)k=c;g.setStart(k,0);for(k=e;(c=k.lastChild)&&(xE(c)||c.nodeType==3);)k=c;g.setEnd(k,k.nodeType==1?k.childNodes.length:k.length)}else c=e.parentNode,e=Array.prototype.indexOf.call(c.childNodes,e),g.setStart(c,e),g.setEnd(c,e+1);return g},SL4=function(e,g,c,k){var I=_.be(e).createRange();
I.setStart(e,g);I.setEnd(c,k);return I};
_.v=Kb.prototype;_.v.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.v.getContainer=function(){return this.range_.commonAncestorContainer};
_.v.compareBrowserRangeEndpoints=function(e,g,c){return this.range_.compareBoundaryPoints(c==1?g==1?_.kp.Range.START_TO_START:_.kp.Range.START_TO_END:g==1?_.kp.Range.END_TO_START:_.kp.Range.END_TO_END,e)};
_.v.isCollapsed=function(){return this.range_.collapsed};
_.v.select=function(e){this.selectInternal(WH(_.be(this.range_.startContainer)).getSelection(),e)};
_.v.selectInternal=function(e){e.removeAllRanges();e.addRange(this.range_)};
_.v.insertNode=function(e,g){var c=this.range_.cloneRange();c.collapse(g);c.insertNode(e);c.detach();return e};
_.v.collapse=function(e){this.range_.collapse(e)};_.Um(Og,Kb);Og.prototype.selectInternal=function(e,g){!g||this.isCollapsed()?Og.superClass_.selectInternal.call(this,e,g):(e.collapse(this.range_.endContainer,this.range_.endOffset),e.extend(this.range_.startContainer,this.range_.startOffset))};_.Um(MZ,Kb);MZ.prototype.compareBrowserRangeEndpoints=function(e,g,c){return MZ.superClass_.compareBrowserRangeEndpoints.call(this,e,g,c)};
MZ.prototype.selectInternal=function(e,g){g?e.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):e.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var qE=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},I7p;
_.Um(qE,tUM);I7p=function(e,g){var c=new qE;c.browserRangeWrapper_=e;c.isReversed_=!!g;return c};
_.ybv=function(e){e=_.Cb?new MZ(NL1(e)):_.er?new Og(NL1(e)):new Kb(NL1(e));return I7p(e)};
_.kQ=function(e,g,c,k){var I=new qE;I.isReversed_=kS6(e,g,c,k);if(_.yd(e)&&!xE(e)){var J=e.parentNode;g=Array.prototype.indexOf.call(J.childNodes,e);e=J}_.yd(c)&&!xE(c)&&(J=c.parentNode,k=Array.prototype.indexOf.call(J.childNodes,c),c=J);I.isReversed_?(I.startNode_=c,I.startOffset_=k,I.endNode_=e,I.endOffset_=g):(I.startNode_=e,I.startOffset_=g,I.endNode_=c,I.endOffset_=k);return I};
_.v=qE.prototype;_.v.clone=function(){var e=new qE;e.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();e.startNode_=this.startNode_;e.startOffset_=this.startOffset_;e.endNode_=this.endNode_;e.endOffset_=this.endOffset_;e.isReversed_=this.isReversed_;return e};
_.v.JSC$11664_getType=function(){return"text"};
_.v.getBrowserRangeObject=function(){return Lz(this).range_};
_.v.getTextRangeCount=function(){return 1};
_.v.getTextRange=function(){return this};
var Lz=function(e){var g;if(!(g=e.browserRangeWrapper_)){g=e.JSC$11664_getStartNode();var c=e.JSC$11664_getStartOffset(),k=e.JSC$11664_getEndNode(),I=e.JSC$11664_getEndOffset();g=_.Cb?new MZ(SL4(g,c,k,I)):_.er?new Og(SL4(g,c,k,I)):new Kb(SL4(g,c,k,I));g=e.browserRangeWrapper_=g}return g};
_.v=qE.prototype;_.v.getContainer=function(){return Lz(this).getContainer()};
_.v.JSC$11664_getStartNode=function(){return this.startNode_||(this.startNode_=Lz(this).range_.startContainer)};
_.v.JSC$11664_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Lz(this).range_.startOffset};
_.v.JSC$11664_getEndNode=function(){return this.endNode_||(this.endNode_=Lz(this).range_.endContainer)};
_.v.JSC$11664_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Lz(this).range_.endOffset};
_.v.isReversed=function(){return this.isReversed_};
_.v.JSC$11664_containsRange=function(e,g){if(e.JSC$11664_getType()=="text"){var c=Lz(this);e=Lz(e);g=g&&!e.isCollapsed();e=e.range_;c=g?c.compareBrowserRangeEndpoints(e,0,1)>=0&&c.compareBrowserRangeEndpoints(e,1,0)<=0:c.compareBrowserRangeEndpoints(e,0,0)>=0&&c.compareBrowserRangeEndpoints(e,1,1)<=0}else c=!1;return c};
_.v.isCollapsed=function(){return Lz(this).isCollapsed()};
_.v.JSC$11664_getText=function(){return Lz(this).range_.toString()};
_.v.__iterator__=function(){return new wh(this.JSC$11664_getStartNode(),this.JSC$11664_getStartOffset(),this.JSC$11664_getEndNode(),this.JSC$11664_getEndOffset())};
_.v.select=function(){Lz(this).select(this.isReversed_)};
_.v.JSC$11664_removeContents=function(){var e=Lz(this).range_;e.extractContents();if(e.startContainer.hasChildNodes()&&(e=e.startContainer.childNodes[e.startOffset])){var g=e.previousSibling;wtq(e)==""&&_.ev(e);g&&wtq(g)==""&&_.ev(g)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.v.insertNode=function(e,g){e=Lz(this).insertNode(e,g);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return e};
_.v.collapse=function(e){e=this.isReversed()?!e:e;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(e);e?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Kbv=function(){};
_.Um(Kbv,tUM);Kbv.prototype.JSC$11664_containsRange=function(e,g){var c=v6(this);e=v6(e);return(g?Qu:_.Ap6)(e,function(k){return Qu(c,function(I){return I.JSC$11664_containsRange(k,g)})})};
Kbv.prototype.insertNode=function(e,g){g?_.$E(e,this.JSC$11664_getStartNode()):_.YE(e,this.JSC$11664_getEndNode());return e};var Ov4,MUq=Jd().JSC$9636_document_.documentElement;Ov4=MUq.requestFullscreen?"fullscreenchange":MUq.webkitRequestFullscreen?"webkitfullscreenchange":MUq.mozRequestFullScreen?"mozfullscreenchange":MUq.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var cP=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Um(cP,Kbv);_.v=cP.prototype;_.v.clone=function(){var e=new cP;e.browserRanges_=_.tq(this.browserRanges_);return e};
_.v.JSC$11664_getType=function(){return"mutli"};
_.v.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.v.getTextRangeCount=function(){return this.browserRanges_.length};
_.v.getTextRange=function(e){this.ranges_[e]||(this.ranges_[e]=I7p(eeA(this.browserRanges_[e])));return this.ranges_[e]};
_.v.getContainer=function(){if(!this.container_){for(var e=[],g=this.getTextRangeCount(),c=0;c<g;c++)e.push(this.getTextRange(c).getContainer());this.container_=eEq.apply(null,e)}return this.container_};
var rh=function(e){e.sortedRanges_||(e.sortedRanges_=v6(e),e.sortedRanges_.sort(function(g,c){var k=g.JSC$11664_getStartNode();g=g.JSC$11664_getStartOffset();var I=c.JSC$11664_getStartNode();c=c.JSC$11664_getStartOffset();return k==I&&g==c?0:kS6(k,g,I,c)?1:-1}));
return e.sortedRanges_};
_.v=cP.prototype;_.v.JSC$11664_getStartNode=function(){return rh(this)[0].JSC$11664_getStartNode()};
_.v.JSC$11664_getStartOffset=function(){return rh(this)[0].JSC$11664_getStartOffset()};
_.v.JSC$11664_getEndNode=function(){return _.Aq(rh(this)).JSC$11664_getEndNode()};
_.v.JSC$11664_getEndOffset=function(){return _.Aq(rh(this)).JSC$11664_getEndOffset()};
_.v.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.v.JSC$11664_getText=function(){return v6(this).map(function(e){return e.JSC$11664_getText()}).join("")};
_.v.__iterator__=function(){return new aT(this)};
_.v.select=function(){var e=this.getWindow().getSelection();e.removeAllRanges();for(var g=this.getTextRangeCount(),c=0;c<g;c++)e.addRange(this.getTextRange(c).getBrowserRangeObject())};
_.v.JSC$11664_removeContents=function(){v6(this).forEach(function(e){e.JSC$11664_removeContents()})};
_.v.collapse=function(e){if(!this.isCollapsed()){var g=e?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;g.collapse(e);this.ranges_=[g];this.sortedRanges_=[g];this.browserRanges_=[g.getBrowserRangeObject()]}};
var aT=function(e){this.iterators_=null;this.currentIdx_=0;e&&(this.iterators_=rh(e).map(function(g){return _.Dcw(g)}));
JD.call(this,e?this.JSC$11670_getStartNode():null,!1,!0)};
_.Um(aT,BLw);_.v=aT.prototype;_.v.JSC$11670_getStartNode=function(){return this.iterators_[0].JSC$11670_getStartNode()};
_.v.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.v.next=function(){for(;this.currentIdx_<this.iterators_.length;){var e=this.iterators_[this.currentIdx_],g=e.next();if(g.done)this.currentIdx_++;else return IT(this,e.node,e.tagType,e.depth),g}return HR};
_.v.JSC$11662_copyFrom=function(e){this.iterators_=_.tq(e.iterators_);aT.superClass_.JSC$11662_copyFrom.call(this,e)};
_.v.clone=function(){var e=new aT(null);e.JSC$11662_copyFrom(this);return e};var nz=function(){_.jv.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Ju)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Ju)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Ju)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Ju)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Ju)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Ju)(this.dispatchProgressEvent_,this)};
_.Um(nz,_.jv);nz.prototype.abort=function(){try{this.reader_.abort()}catch(e){throw new bte(e,"aborting read");}};
nz.prototype.getError=function(){return this.reader_.error&&new bte(this.reader_.error,"reading file")};
nz.prototype.dispatchProgressEvent_=function(e){this.dispatchEvent(new hge(e,this))};
nz.prototype.disposeInternal=function(){nz.superClass_.disposeInternal.call(this);delete this.reader_};
var eN1=function(e){var g=new nz,c=C3Z(g);g.reader_.readAsArrayBuffer(e);return c},gyw=function(e){var g=new nz,c=C3Z(g);
g.reader_.readAsDataURL(e);return c},C3Z=function(e){var g=new ay;
e.listen("loadend",_.g$(function(c,k){var I=k.reader_.result,J=k.getError();I==null||J?c.errback(J):c.callback(I);k.dispose()},g,e));
return g};var RT=function(){_.jv.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11704_eventHandler_=new _.wD(this);this.JSC$11704_isInitialized_=!1};
_.Um(RT,_.jv);var c4u=new _.wG("d"),kJq=new _.wG("beforedragstart"),I3Z=new _.wG("dragstart"),J4Z=new _.wG("beforedragmove"),vyY=new _.wG("dragmove"),wOw=new _.wG("beforedragend"),q1u=new _.wG("dragend"),LsM=new _.wG("e");RT.prototype.isDragging=function(){return!!this.JSC$11704_dragger_};
var r4I=function(e,g){g.dlgGrowthDirection_=0;g.dlgDragHoverClass_=void 0;g.dlgDragPermission=0;e.dragLists_.push(g)},a3v=function(e,g){e.getHandleForDragItem_=g};
RT.prototype.init=function(){if(!this.JSC$11704_isInitialized_){for(var e=this.dragLists_.length,g=0;g<e;g++)for(var c=_.f2(this.dragLists_[g]),k=c.length,I=0;I<k;++I){var J=c[I],q=this.getHandleForDragItem_(J),L=_.KC(q);this.dragItemForHandle_[L]=J;this.dragItemHoverClasses_&&(this.JSC$11704_eventHandler_.listen(J,"mouseover",this.handleDragItemMouseover_),this.JSC$11704_eventHandler_.listen(J,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11704_eventHandler_.listen(q,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11704_eventHandler_.listen(q,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(J);this.JSC$11704_eventHandler_.listen(q,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11704_isInitialized_=!0}};
RT.prototype.disposeInternal=function(){this.JSC$11704_eventHandler_.dispose();for(var e=this.dragLists_.length,g=0;g<e;g++){var c=this.dragLists_[g];c.dlgGrowthDirection_=void 0;c.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;nyv(this);RT.superClass_.disposeInternal.call(this)};
var RNq=function(e,g){for(var c=e.dragLists_.length,k=0;k<c;k++){var I=e.dragLists_[k];I.dlgBounds_=vo6(I)}c=e.dragItems_.length;for(k=0;k<c;k++)I=e.dragItems_[k],I!=g&&(I.dlgBounds_=vo6(I))};
_.v=RT.prototype;
_.v.handlePotentialDragStart_=function(e){var g=_.KC(e.currentTarget);g=this.dragItemForHandle_[g];if(g.parentElement.dlgDragPermission!=2){this.currDragItem_=g;a:{g=this.currDragItem_;for(var c=g.cloneNode(!0),k=gD("TEXTAREA",g),I=gD("TEXTAREA",c),J=0;J<k.length;J++)I[J].value=k[J].value;switch(g.tagName){case "TR":g=_.XW("TABLE",null,_.XW("TBODY",null,c));break a;case "TD":case "TH":g=_.XW("TABLE",null,_.XW("TBODY",null,_.XW("TR",null,c)));break a;case "TEXTAREA":c.value=g.value;default:g=c;break a}g=
void 0}this.draggerEl_=g;this.draggerElClasses_&&sR(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.be(this.currDragItem_).body.appendChild(this.draggerEl_);c=_.hd(this.currDragItem_);g=this.draggerEl_;k=_.hd(g);if(c instanceof _.pr){var q=c.y;c=c.x}mn(g,g.offsetLeft+(c-k.x),g.offsetTop+(Number(q)-k.y));this.JSC$11704_dragger_=new _.XG(this.draggerEl_);_.dR4(this.JSC$11704_dragger_,this.hysteresisDistance_);
_.iK(this.JSC$11704_dragger_,"start",this.handleDragStart_,!1,this);_.iK(this.JSC$11704_dragger_,"end",this.handleDragEnd_,!1,this);_.iK(this.JSC$11704_dragger_,"earlycancel",this.JSC$11706_cleanup_,!1,this);this.dispatchEvent(new Ee(c4u,this,e,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_));this.JSC$11704_dragger_.startDrag(e)}};
_.v.handleDragStart_=function(e){if(this.dispatchEvent(new Ee(kJq,this,e.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.O0k(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?sR(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var g=REk(this.draggerEl_);this.draggerEl_.halfWidth=g.width/2;this.draggerEl_.halfHeight=g.height/2;g=this.draggerEl_.getBoundingClientRect();
var c=e.clientY,k=zku(this.JSC$11704_dragger_,e.clientX);if(k>g.right){var I=this.currDragItem_.getBoundingClientRect();this.JSC$11704_dragger_.deltaX=k-(k-I.left)/I.width*g.width}c=HM1(this.JSC$11704_dragger_,c);c>g.bottom&&(this.JSC$11704_dragger_.deltaY+=c-g.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";RNq(this,this.currDragItem_);this.currDragItem_.style.display="";_.iK(this.JSC$11704_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Ee(I3Z,
this,e.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_))}else e.preventDefault(),this.JSC$11706_cleanup_()};
_.v.handleDragMove_=function(e){var g=_.hd(this.draggerEl_);g=new _.pr(g.x+this.draggerEl_.halfWidth,g.y+this.draggerEl_.halfHeight);a:{var c=null;if(this.currDragItem_.style.display!="none"){c=this.currDragItem_.parentNode;var k=vo6(c);if(EyI(g,k))break a}k=this.dragLists_.length;for(var I=0;I<k;I++){var J=this.dragLists_[I];if(J!=c&&EyI(g,J.dlgBounds_)){c=J;break a}}c=null}if(c){if(c==null)throw Error("ae");k=0;I=!1;J=void 0;switch(c.dlgGrowthDirection_){case 0:k=g.y;var q=WsB;var L=bxB;break;case 4:I=
!0;case 2:k=g.x;q=hN1;L=bxB;break;case 5:I=!0;case 3:k=g.x,q=XOq,L=GJq}for(var n=null,R,W=_.f2(c),b=W.length,h=0;h<b;h++){var X=W[h];if(X!=this.currDragItem_){var D=q(X.dlgBounds_);if(I){var f=xHY(X,g);J===void 0&&(J=f);L(k,D)&&(R==void 0||f<J||f==J&&(L(D,R)||D==R))&&(n=X,R=D);f<J&&(J=f)}else L(k,D)&&(R==void 0||L(D,R))&&(n=X,R=D)}}q=n!==null&&xHY(n,g)>J?null:n}else q=null;if(!this.dispatchEvent(new Ee(J4Z,this,e,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_,g,c,q)))return!1;if(c&&c.dlgDragPermission!=
1)this.currDragItem_.parentNode==c&&_.O0k(this.currDragItem_)==q||c.insertBefore(this.currDragItem_,q),this.currDragItem_.style.display="",c.dlgDragHoverClass_&&_.PT(c,c.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",L=this.dragLists_.length,R=0;R<L;R++)k=this.dragLists_[R],k.dlgDragHoverClass_&&_.i3(k,k.dlgDragHoverClass_);c!=this.currHoverList_&&(this.currHoverList_=c,RNq(this,this.currDragItem_));this.dispatchEvent(new Ee(vyY,this,e,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_,
g,c,q));return!1};
_.v.JSC$11706_cleanup_=function(){nyv(this);this.JSC$11704_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var e=this.dragLists_.length,g=0;g<e;g++)this.dragLists_[g].dlgBounds_=null;e=this.dragItems_.length;for(g=0;g<e;g++)this.dragItems_[g].dlgBounds_=null};
_.v.handleDragEnd_=function(e){if(!this.dispatchEvent(new Ee(wOw,this,e,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_)))return!1;nyv(this);this.dispatchEvent(new Ee(q1u,this,e,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_));this.JSC$11706_cleanup_();return!0};
var nyv=function(e){_.Fm(e.JSC$11704_dragger_);var g=e.draggerEl_&&e.draggerEl_.parentElement;e.draggerEl_&&_.ev(e.draggerEl_);e.currDragItem_&&e.currDragItem_.style.display=="none"&&(e.origList_.insertBefore(e.currDragItem_,e.origNextItem_),e.currDragItem_.style.display="");e.currDragItemClasses_&&e.currDragItem_?t6n(e.currDragItem_,e.currDragItemClasses_||[]):e.currDragItem_&&(e.currDragItem_.style.visibility="");for(var c=e.dragLists_.length,k=0;k<c;k++){var I=e.dragLists_[k];I.dlgDragHoverClass_&&
_.i3(I,I.dlgDragHoverClass_)}g&&e.dispatchEvent(new Ee(LsM,e,null,e.currDragItem_,e.draggerEl_,e.JSC$11704_dragger_))};
_.v=RT.prototype;_.v.getHandleForDragItem_=function(e){return e};
_.v.handleDragItemMouseover_=function(e){sR(e.currentTarget,this.dragItemHoverClasses_||[])};
_.v.handleDragItemMouseout_=function(e){t6n(e.currentTarget,this.dragItemHoverClasses_||[])};
_.v.handleDragItemHandleMouseover_=function(e){sR(e.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.v.handleDragItemHandleMouseout_=function(e){t6n(e.currentTarget,this.dragItemHandleHoverClasses_||[])};
var EyI=function(e,g){return e.x>g.left&&e.x<g.left+g.width&&e.y>g.top&&e.y<g.top+g.height},xHY=function(e,g){e=e.dlgBounds_;
return Math.abs(g.y-(e.top+(e.height-1)/2))},WsB=function(e){return e.top+e.height-1},hN1=function(e){return e.left+e.width-1},XOq=function(e){return e.left||0},bxB=function(e,g){return e<g},GJq=function(e,g){return e>g},Ee=function(e,g,c,k,I,J){_.Bt.call(this,e);
this.event=c;this.currDragItem=k;this.draggerEl=I;this.JSC$11708_dragger=J};
_.Um(Ee,_.Bt);_.Um(vP,_.Iy);var DH1=new _.pr(0,0);vP.prototype.JSC$11712_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
vP.prototype.JSC$11712_onMouseMove=function(e){var g=this.containerIsActuallyContent_?DH1:I4(Jd(this.containerNode_)),c=this.horizontalScrolling_?this.calculateScrollDelta(e.clientX+g.x,this.scrollBounds_.left,this.scrollBounds_.width):0,k=this.calculateScrollDelta(e.clientY+g.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=c;this.scrollDelta_.y=k;!(c=!c&&!k)&&(c=this.constrainScroll_)&&(c=e.clientX+g.x,e=e.clientY+g.y,g=this.containerBounds_,c=!(g.left<=c&&g.left+g.width>=
c&&g.top<=e&&g.top+g.height>=e));c?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
vP.prototype.calculateScrollDelta=function(e,g,c){var k=0;e<g?k=-8:e>g+c&&(k=8);return k};
vP.prototype.disposeInternal=function(){vP.superClass_.disposeInternal.call(this);this.JSC$11710_eventHandler_.dispose();this.scrollTimer_.dispose()};var $H1={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"}}},W6=$H1;W6=$H1;var Xs={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 jo=function(e){if(typeof e=="number"){var g=new wNp;g.standardOffset_=e;var c=e;if(c==0)c="Etc/GMT";else{var k=["Etc/GMT",c<0?"-":"+"];c=Math.abs(c);k.push(Math.floor(c/60)%100);c%=60;c!=0&&k.push(":",_.Kq(c,2));c=k.join("")}g.timeZoneId_=c;c=e;c==0?c="UTC":(k=["UTC",c<0?"+":"-"],c=Math.abs(c),k.push(Math.floor(c/60)%100),c%=60,c!=0&&k.push(":",c),c=k.join(""));e=Y1u(e);g.tzNames_=[c,c];g.tzNamesExt_={STD_LONG_NAME_GMT:e,STD_GENERIC_LOCATION:e};g.transitions_=[];return g}g=new wNp;g.timeZoneId_=
e.id;g.standardOffset_=-e.std_offset;g.tzNames_=e.names;g.tzNamesExt_=e.names_ext;g.transitions_=e.transitions;return g},Y1u=function(e){var g=["GMT"];
g.push(e<=0?"+":"-");e=Math.abs(e);g.push(_.Kq(Math.floor(e/60)%100,2),":",_.Kq(e%60,2));return g.join("")},f3v=function(e,g){g=Date.UTC(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate(),g.getUTCHours(),g.getUTCMinutes())/36E5;
for(var c=0;c<e.transitions_.length&&g>=e.transitions_[c];)c+=2;return c==0?0:e.transitions_[c-1]},jHk=function(e,g){e=e.standardOffset_-f3v(e,g);
return e===-1440?0:e};var im=function(e,g){this.patternParts_=[];this.JSC$11723_dateTimeSymbols_=g||yD;typeof e=="number"?ixZ(this,e):P6B(this,e)},mHw=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Gp=function(e){return e.getHours?e.getHours():0},P6B=function(e,g){for(NCC&&(g=g.replace(/\u200f/g,""));g;){for(var c=g,k=0;k<mHw.length;++k){var I=g.match(mHw[k]);
if(I){var J=I[0];g=g.substring(J.length);k==0&&(J=="''"?J="'":(J=J.substring(1,I[1]=="'"?J.length-1:J.length),J=J.replace(/''/g,"'")));e.patternParts_.push({text:J,type:k});break}}if(c===g)throw Error("be`"+g);}};
im.prototype.format=function(e,g){if(!e)throw Error("ce");var c=g?(e.getTimezoneOffset()-jHk(g,e))*6E4:0,k=c?new Date(e.getTime()+c):e,I=k;g&&k.getTimezoneOffset()!=e.getTimezoneOffset()&&(k=new Date(k.getTime()+(k.getTimezoneOffset()-e.getTimezoneOffset())*6E4),I=new Date(e.getTime()+(c+(c>0?-864E5:864E5))));c=[];for(var J=0;J<this.patternParts_.length;++J){var q=this.patternParts_[J].text;1==this.patternParts_[J].type?c.push(pOq(this,q,e,k,I,g)):c.push(q)}return c.join("")};
var ixZ=function(e,g){if(g<4)var c=e.JSC$11723_dateTimeSymbols_.DATEFORMATS[g];else if(g<8)c=e.JSC$11723_dateTimeSymbols_.TIMEFORMATS[g-4];else if(g<12)c=e.JSC$11723_dateTimeSymbols_.DATETIMEFORMATS[g-8],c=c.replace("{1}",e.JSC$11723_dateTimeSymbols_.DATEFORMATS[g-8]),c=c.replace("{0}",e.JSC$11723_dateTimeSymbols_.TIMEFORMATS[g-8]);else if(g===12)c=e.JSC$11723_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(g===13)c=e.JSC$11723_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{ixZ(e,10);return}P6B(e,c)},xA=function(e,g){g=String(g);
e=e.JSC$11723_dateTimeSymbols_||yD;if(e.ZERODIGIT!==void 0&&!BCt){for(var c=[],k=0;k<g.length;k++){var I=g.charCodeAt(k);c.push(48<=I&&I<=57?String.fromCharCode(e.ZERODIGIT+I-48):g.charAt(k))}g=c.join("")}return g},BCt=!1,NCC=!1,l3I=function(e,g,c,k){c=c.getFullYear();
c<=0&&k&&(c=1-c);return xA(e,TiI(c,g))},TiI=function(e,g){g==2&&(e%=100);
e<0&&g++;return _.Kq(e,g)},Dj=function(e){if(!(e.getHours&&e.getSeconds&&e.getMinutes))throw Error("de");
},A4s=function(e,g){Dj(g);
g=Gp(g);return e.JSC$11723_dateTimeSymbols_.AMPMS[g>=12&&g<24?1:0]},pOq=function(e,g,c,k,I,J){var q=g.length;
switch(g.charAt(0)){case "G":return c=k.getFullYear()>0?1:0,q>=4?e.JSC$11723_dateTimeSymbols_.ERANAMES[c]:e.JSC$11723_dateTimeSymbols_.ERAS[c];case "y":return l3I(e,q,k,!0);case "Y":return c=(new Date(okI(k.getFullYear(),k.getMonth(),k.getDate(),e.JSC$11723_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,e.JSC$11723_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),q==2&&(c%=100),xA(e,TiI(c,q));case "u":return l3I(e,q,k,!1);case "M":a:switch(c=k.getMonth(),q){case 5:q=e.JSC$11723_dateTimeSymbols_.NARROWMONTHS[c];
break a;case 4:q=e.JSC$11723_dateTimeSymbols_.MONTHS[c];break a;case 3:q=e.JSC$11723_dateTimeSymbols_.SHORTMONTHS[c];break a;default:q=xA(e,_.Kq(c+1,q))}return q;case "k":return Dj(I),xA(e,_.Kq(Gp(I)||24,q));case "S":return xA(e,(I.getMilliseconds()/1E3).toFixed(Math.min(3,q)).slice(2)+(q>3?_.Kq(0,q-3):""));case "E":return c=k.getDay(),q>=4?e.JSC$11723_dateTimeSymbols_.WEEKDAYS[c]:e.JSC$11723_dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return A4s(e,I);case "b":return A4s(e,I);case "B":return A4s(e,
I);case "h":return Dj(I),xA(e,_.Kq(Gp(I)%12||12,q));case "K":return Dj(I),xA(e,_.Kq(Gp(I)%12,q));case "H":return Dj(I),xA(e,_.Kq(Gp(I),q));case "c":a:switch(c=k.getDay(),q){case 5:q=e.JSC$11723_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:q=e.JSC$11723_dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:q=e.JSC$11723_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:q=xA(e,_.Kq(c,1))}return q;case "L":a:switch(c=k.getMonth(),q){case 5:q=e.JSC$11723_dateTimeSymbols_.STANDALONENARROWMONTHS[c];
break a;case 4:q=e.JSC$11723_dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:q=e.JSC$11723_dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:q=xA(e,_.Kq(c+1,q))}return q;case "Q":return c=Math.floor(k.getMonth()/3),q<4?e.JSC$11723_dateTimeSymbols_.SHORTQUARTERS[c]:e.JSC$11723_dateTimeSymbols_.QUARTERS[c];case "d":return xA(e,_.Kq(k.getDate(),q));case "m":return Dj(I),xA(e,_.Kq(I.getMinutes?I.getMinutes():0,q));case "s":return Dj(I),xA(e,_.Kq(I.getSeconds(),q));case "v":return(J||jo(c.getTimezoneOffset())).timeZoneId_;
case "V":return e=J||jo(c.getTimezoneOffset()),q<=2?e.timeZoneId_:f3v(e,c)>0?e.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?e.tzNamesExt_.DST_GENERIC_LOCATION:e.tzNamesExt_.DST_GENERIC_LOCATION:e.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?e.tzNamesExt_.STD_GENERIC_LOCATION:e.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return c=okI(I.getFullYear(),I.getMonth(),I.getDate(),e.JSC$11723_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,e.JSC$11723_dateTimeSymbols_.FIRSTDAYOFWEEK),xA(e,_.Kq(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,q));case "z":return e=J||jo(c.getTimezoneOffset()),q<4?e.tzNames_[f3v(e,c)>0?2:0]:e.tzNames_[f3v(e,c)>0?3:1];case "Z":return g=J||jo(c.getTimezoneOffset()),q<4?(q=-jHk(g,c),e=[q<0?"-":"+"],q=Math.abs(q),e.push(_.Kq(Math.floor(q/60)%100,2),_.Kq(q%60,2)),q=e.join("")):q=xA(e,Y1u(jHk(g,c))),q;default:return""}};var sHM=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,FsM=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,BoC=function(e){this.patternParts_=[];this.JSC$11732_dateTimeSymbols_=yD;if(typeof e=="number"){e>11&&(e=10);if(e<4)var g=this.JSC$11732_dateTimeSymbols_.DATEFORMATS[e];else e<8?g=this.JSC$11732_dateTimeSymbols_.TIMEFORMATS[e-4]:(g=this.JSC$11732_dateTimeSymbols_.DATETIMEFORMATS[e-8],g=g.replace("{1}",this.JSC$11732_dateTimeSymbols_.DATEFORMATS[e-8]),g=g.replace("{0}",this.JSC$11732_dateTimeSymbols_.TIMEFORMATS[e-
8]));uEv(this,g)}else uEv(this,e)},uEv=function(e,g){for(var c=!1,k="",I=0;I<g.length;I++){var J=g.charAt(I);
if(sHM.test(J))for(k.length>0&&(e.patternParts_.push({text:k,count:0,abutStart:!1,numeric:!1}),k=""),e.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});I<g.length-1&&g.charAt(I+1)==" ";)I++;else if(c)J=="'"?I+1<g.length&&g.charAt(I+1)=="'"?(k+="'",I++):c=!1:k+=J;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(J)>=0){k.length>0&&(e.patternParts_.push({text:k,count:0,abutStart:!1,numeric:!1}),k="");for(var q=g.charAt(I),L=I+1;L<g.length&&g.charAt(L)==q;)L++;q=L-I;q<=0?L=!1:(L="MydhHmsSDkK".indexOf(J),
L=L>0||L==0&&q<3);e.patternParts_.push({text:J,count:q,abutStart:!1,numeric:L});I+=q-1}else J=="'"?I+1<g.length&&g.charAt(I+1)=="'"?(k+="'",I++):c=!0:k+=J}k.length>0&&e.patternParts_.push({text:k,count:0,abutStart:!1,numeric:!1});g=!1;for(c=0;c<e.patternParts_.length;c++)e.patternParts_[c].numeric?!g&&c+1<e.patternParts_.length&&e.patternParts_[c+1].numeric&&(g=!0,e.patternParts_[c].abutStart=!0):g=!1};
BoC.prototype.parse=function(e,g,c){var k=!1,I=!1;c&&(k=c.predictive||!1,I=c.validate||!1);if(k)for(c=0;c<this.patternParts_.length;c++){var J=this.patternParts_[c];if(J.count>0&&("abBhHkKm".indexOf(J.text.charAt(0))<0||J.count>2||J.abutStart))throw Error("ee`"+J.text.charAt(0));}J=new dH4;c=[0];J.dayPeriodIndex=-1;for(var q=0;q<this.patternParts_.length&&!(k&&c[0]>=e.length);q++){if(this.patternParts_[q].count==0){a:{var L=e;var n=c,R=this.patternParts_[q],W=k;if(R.text.match(sHM)!=null){if(R=n[0],
zNq(L,n),n[0]>R){L=!0;break a}}else{if(L.indexOf(R.text,n[0])==n[0]){n[0]+=R.text.length;L=!0;break a}if(W&&R.text.indexOf(L.substring(n[0]))==0){n[0]+=L.length-n[0];L=!0;break a}}L=!1}if(L)continue;return 0}if(this.patternParts_[q].abutStart){a:{n=e;R=c;W=q;var b=R[0],h=0;for(L=W;L<this.patternParts_.length;L++){var X=this.patternParts_[L],D=X.count;if(D===0)break;if(L==W&&(D-=h,h++,D==0)){L=0;break a}var f=L>W&&X.numeric,l=R[0];if(!HxZ(this,n,R,X,D,J,!1)||f&&R[0]-l<D)L=W-1,R[0]=b}L-=W}if(L<=0)return 0;
q+=L-1}else if(!HxZ(this,e,c,this.patternParts_[q],0,J,k))return 0}a:{e=I;if(g==null)throw Error("fe");J.era!=void 0&&J.year!=void 0&&J.era==0&&J.year>0&&(J.year=-(J.year-1));J.year!=void 0&&g.setFullYear(J.year);k=g.getDate();g.setDate(1);J.month!=void 0&&g.setMonth(J.month);J.day!=void 0?g.setDate(J.day):(I=xKt(g.getFullYear(),g.getMonth()),g.setDate(k>I?I:k));typeof g.setHours==="function"&&(J.hours==void 0&&(J.hours=g.getHours()),J.hours<12&&(J.ampm!=void 0&&J.ampm>0?J.hours+=12:J.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(J.dayPeriodName)||["night1","night2"].includes(J.dayPeriodName)&&J.hours>=6)&&(J.hours+=12)),g.setHours(J.hours));typeof g.setMinutes==="function"&&J.minutes!=void 0&&g.setMinutes(J.minutes);typeof g.setSeconds==="function"&&J.seconds!=void 0&&g.setSeconds(J.seconds);typeof g.setMilliseconds==="function"&&J.milliseconds!=void 0&&g.setMilliseconds(J.milliseconds);if(e&&(J.year&&J.year!=g.getFullYear()||J.month&&J.month!=
g.getMonth()||J.day&&J.day!=g.getDate()||J.hours&&J.hours>=24||J.minutes&&J.minutes>=60||J.seconds&&J.seconds>=60||J.milliseconds&&J.milliseconds>=1E3))g=!1;else{J.tzOffset!=void 0&&g.setTime(g.getTime()+(J.tzOffset-g.getTimezoneOffset())*60*1E3);J.ambiguousYear&&(e=new Date,e.setFullYear(e.getFullYear()-80),g.getTime()<e.getTime()&&g.setFullYear(e.getFullYear()+100));if(J.dayOfWeek!=void 0)if(J.day==void 0)J=(7+J.dayOfWeek-g.getDay())%7,J>3&&(J-=7),e=g.getMonth(),g.setDate(g.getDate()+J),g.getMonth()!=
e&&g.setDate(g.getDate()+(J>0?-7:7));else if(J.dayOfWeek!=g.getDay()){g=!1;break a}g=!0}}return g?c[0]:0};
var HxZ=function(e,g,c,k,I,J,q){zNq(g,c);if(k.numeric&&I>0&&c[0]+I>g.length)return!1;switch(k.text.charAt(0)){case "G":return $A(g,c,[e.JSC$11732_dateTimeSymbols_.ERAS],function(L){return J.era=L}),!0;
case "M":case "L":return QHM(e,g,c,I,k,J);case "E":return $A(g,c,[e.JSC$11732_dateTimeSymbols_.WEEKDAYS,e.JSC$11732_dateTimeSymbols_.SHORTWEEKDAYS],function(L){return J.dayOfWeek=L});
case "B":case "b":return I=[],e=[[].concat(e.JSC$11732_dateTimeSymbols_.AMPMS)],I.push("isAm"),I.push("isPm"),g=$A(g,c,e,function(L){return J.dayPeriodIndex=L},q),J.dayPeriodName=I[J.dayPeriodIndex],q?g:!0;
case "a":return g=$A(g,c,[e.JSC$11732_dateTimeSymbols_.AMPMS],function(L){return J.ampm=L},q),q?g:!0;
case "y":return UHY(e,g,c,k,I,J);case "Q":return $A(g,c,[e.JSC$11732_dateTimeSymbols_.QUARTERS,e.JSC$11732_dateTimeSymbols_.SHORTQUARTERS],function(L){J.month=L*3;J.day=1});
case "d":return YA(e,g,c,k,I,function(L){J.day=L}),!0;
case "S":return oyM(e,g,c,I,J);case "h":case "K":case "H":case "k":return g=YA(e,g,c,k,I,function(L){J.hours=k.text.charAt(0)==="h"&&L===12?0:L},q),q?g:!0;
case "m":return g=YA(e,g,c,k,I,function(L){J.minutes=L},q),q?g:!0;
case "s":return YA(e,g,c,k,I,function(L){J.seconds=L}),!0;
case "z":case "Z":case "v":return Zx4(e,g,c,J);default:return!1}},UHY=function(e,g,c,k,I,J){var q=c[0];
I=fz(e,g,c,I);I===null&&(I=fz(e,g,c,0,!0));if(I===null)return!1;I>=0&&c[0]-q==2&&k.count==2?(e=I,g=(new Date).getFullYear()-80,c=g%100,J.ambiguousYear=e==c,e+=Math.floor(g/100)*100+(e<c?100:0),J.year=e):J.year=I;return!0},QHM=function(e,g,c,k,I,J){return I.numeric&&YA(e,g,c,I,k,function(q){J.month=q-1})?!0:$A(g,c,[e.JSC$11732_dateTimeSymbols_.MONTHS,
e.JSC$11732_dateTimeSymbols_.STANDALONEMONTHS,e.JSC$11732_dateTimeSymbols_.SHORTMONTHS,e.JSC$11732_dateTimeSymbols_.STANDALONESHORTMONTHS],function(q){J.month=q})},oyM=function(e,g,c,k,I){var J=c[0];
e=fz(e,g,c,k);if(e===null)return!1;c=c[0]-J;I.milliseconds=c<3?e*Math.pow(10,3-c):Math.round(e/Math.pow(10,c-3));return!0},Zx4=function(e,g,c,k){g.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);
if(c[0]>=g.length)return k.tzOffset=0,!0;var I=c[0],J=fz(e,g,c,0,!0);if(J===null)return!1;if(c[0]<g.length&&g.charAt(c[0])==":"){var q=J*60;c[0]++;J=fz(e,g,c,0);if(J===null)return!1;q+=J}else q=J,q=q<24&&c[0]-I<=3?q*60:q%100+q/100*60;k.tzOffset=-q;return!0},YA=function(e,g,c,k,I,J,q){q=q||!1;
var L=c[0];e=fz(e,g,c,I);if(e===null)return!1;if(q&&c[0]-L<k.count){if(c[0]<g.length)return!1;e*=Math.pow(10,k.count-(c[0]-L))}J(e);return!0},$A=function(e,g,c,k,I){I=I||!1;
for(var J,q=0;q<c.length;q++){J=g;for(var L=c[q],n=I,R=0,W=null,b=e.substring(J[0]).toLowerCase(),h=0;h<L.length;h++){var X=L[h].toLowerCase();if(n&&X.indexOf(b)==0){R=b.length;W=h;break}L[h].length>R&&b.indexOf(X)==0&&(R=L[h].length,W=h)}W!==null&&(J[0]+=R);J=W;if(J!==null)return k(J),!0}return!1},zNq=function(e,g){(e=e.substring(g[0]).match(FsM))&&(g[0]+=e[0].length)},fz=function(e,g,c,k,I){g=k>0?g.substring(0,c[0]+k):g;
I=I||!1;if(e.JSC$11732_dateTimeSymbols_.ZERODIGIT){k=[];for(var J=c[0];J<g.length;J++){var q=g.charCodeAt(J)-e.JSC$11732_dateTimeSymbols_.ZERODIGIT;k.push(0<=q&&q<=9?String.fromCharCode(q+48):g.charAt(J))}g=k.join("")}else g=g.substring(c[0]);e=g.match(new RegExp("^"+(I?"[+-]?":"")+"\\d+"));if(!e)return null;c[0]+=e[0].length;return parseInt(e[0],10)},dH4=function(){};
dH4.prototype.ambiguousYear=!1;var Vtq;
Vtq={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 ttv={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}"]};
ttv={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 BiZ=function(){var e={type:"unit",style:"narrow"};this.listType_=e&&e.type?e.type:"conjunction";this.listStyle_=e&&e.style?e.style:"long";this.listSymbols_=ttv;e=0;switch(this.listStyle_){case "short":e=1;break;case "narrow":e=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[e];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[e];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[e];this.listEndPattern_=
this.listSymbols_.AND_END[e];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[e];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[e];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[e];this.listEndPattern_=this.listSymbols_.OR_END[e];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[e],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[e],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[e],this.listEndPattern_=this.listSymbols_.UNIT_END[e]}};
BiZ.prototype.format=function(e){return NiB(this,e)};
var NiB=function(e,g){var c=g.length;switch(c){case 0:return"";case 1:return String(g[0]);case 2:return e.listTwoPattern_.replace("{0}",String(g[0])).replace("{1}",String(g[1]))}for(var k=e.listStartPattern_.replace("{0}",String(g[0])).replace("{1}",String(g[1])),I=2;I<c-1;++I)k=e.listMiddlePattern_.replace("{0}",k).replace("{1}",String(g[I]));return e.listEndPattern_.replace("{0}",k).replace("{1}",String(g[c-1]))};var S1Y={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"},y4I=S1Y,Ksq=S1Y;Ksq=y4I=S1Y;var Mtw,jR,P6,Fr8,ib,Oxq;
_.$d=function(e,g,c,k){var I;if(I=g){a:if(g&&g.length===3){for(I=0;I<3;I++){var J=g[I];if(J<"A"||J>"Z"&&J<"a"||J>"z"){I=!1;break a}}I=!0}else I=!1;I=!I}if(I)throw new TypeError("ge");this.intlCurrencyCode_=g?g.toUpperCase():null;this.currencyStyle_=c||0;this.overrideNumberFormatSymbols_=k||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_=jR(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof e==="number")switch(e){case 1:ib(this,jR(this).DECIMAL_PATTERN);break;case 2:ib(this,jR(this).SCIENTIFIC_PATTERN);break;case 3:ib(this,jR(this).PERCENT_PATTERN);break;case 4:e=jR(this).CURRENCY_PATTERN;g=["0"];if(c=
Xs[P6(this)]){c=c[0]&7;if(c>0)for(g.push("."),k=0;k<c;k++)g.push("0");e=e.replace(/0.00/g,g.join(""))}ib(this,e);break;case 5:Oxq(this,1);break;case 6:Oxq(this,2);break;default:throw Error("je");}else ib(this,e)};
Mtw=!1;jR=function(e){return e.overrideNumberFormatSymbols_||(Mtw?Ksq:y4I)};
P6=function(e){return e.intlCurrencyCode_||jR(e).DEF_CURRENCY_CODE};
Fr8=function(e,g){if(g>308)throw Error("ie`"+g);e.maximumFractionDigits_=g;return e};
ib=function(e,g){var c=[0];e.positivePrefix_=C6u(e,g,c);for(var k=c[0],I=-1,J=0,q=0,L=0,n=-1,R=g.length,W=!0;c[0]<R&&W;c[0]++)switch(g.charAt(c[0])){case "#":q>0?L++:J++;n>=0&&I<0&&n++;break;case "0":if(L>0)throw Error("pe`"+g);q++;n>=0&&I<0&&n++;break;case ",":n>0&&e.groupingArray_.push(n);n=0;break;case ".":if(I>=0)throw Error("qe`"+g);I=J+q+L;break;case "E":if(e.useExponentialNotation_)throw Error("re`"+g);e.useExponentialNotation_=!0;e.minExponentDigits_=0;c[0]+1<R&&g.charAt(c[0]+1)=="+"&&(c[0]++,
e.useSignForPositiveExponent_=!0);for(;c[0]+1<R&&g.charAt(c[0]+1)=="0";)c[0]++,e.minExponentDigits_++;if(J+q<1||e.minExponentDigits_<1)throw Error("se`"+g);W=!1;break;default:c[0]--,W=!1}q==0&&J>0&&I>=0&&(q=I,q==0&&q++,L=J-q,J=q-1,q=1);if(I<0&&L>0||I>=0&&(I<J||I>J+q)||n==0)throw Error("te`"+g);L=J+q+L;e.maximumFractionDigits_=I>=0?L-I:0;I>=0&&(e.minimumFractionDigits_=J+q-I,e.minimumFractionDigits_<0&&(e.minimumFractionDigits_=0));e.minimumIntegerDigits_=(I>=0?I:L)-J;e.useExponentialNotation_&&(e.maximumIntegerDigits_=
J+e.minimumIntegerDigits_,e.maximumFractionDigits_==0&&e.minimumIntegerDigits_==0&&(e.minimumIntegerDigits_=1));e.groupingArray_.push(Math.max(0,n));e.decimalSeparatorAlwaysShown_=I==0||I==L;k=c[0]-k;e.positiveSuffix_=C6u(e,g,c);c[0]<g.length&&g.charAt(c[0])==";"?(c[0]++,e.multiplier_!=1&&(e.negativePercentSignExpected_=!0),e.negativePrefix_=C6u(e,g,c),c[0]+=k,e.negativeSuffix_=C6u(e,g,c)):(e.negativePrefix_+=e.positivePrefix_,e.negativeSuffix_+=e.positiveSuffix_)};
Oxq=function(e,g){e.compactStyle_=g;ib(e,jR(e).DECIMAL_PATTERN);e.minimumFractionDigits_=0;Fr8(e,2);if(e.minimumFractionDigits_>0)throw Error("he");e.significantDigits_=2};
_.$d.prototype.parse=function(e,g){g=g||[0];if(this.compactStyle_!==0)throw Error("ke");e=e.replace(/ |\u202f/g,"\u00a0");var c=e.indexOf(this.positivePrefix_,g[0])==g[0],k=e.indexOf(this.negativePrefix_,g[0])==g[0];c&&k&&(this.positivePrefix_.length>this.negativePrefix_.length?k=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(c=!1));c?g[0]+=this.positivePrefix_.length:k&&(g[0]+=this.negativePrefix_.length);if(e.indexOf(jR(this).INFINITY,g[0])==g[0]){g[0]+=jR(this).INFINITY.length;var I=
Infinity}else{I=e;var J=!1,q=!1,L=!1,n=-1,R=1,W=jR(this).DECIMAL_SEP,b=jR(this).GROUP_SEP,h=jR(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");b=b.replace(/\u202f/g,"\u00a0");for(var X="";g[0]<I.length;g[0]++){var D=I.charAt(g[0]),f=ec4(this,D);if(f>=0&&f<=9)X+=f,L=!0;else if(D==W.charAt(0)){if(J||q)break;X+=".";J=!0}else if(D==b.charAt(0)&&("\u00a0"!=b.charAt(0)||g[0]+1<I.length&&ec4(this,I.charAt(g[0]+1))>=0)){if(J||q)break}else if(D==h.charAt(0)){if(q)break;X+="E";q=!0;n=g[0]}else if(D==
"+"||D=="-"){if(L&&n!=g[0]-1)break;X+=D}else if(this.multiplier_==1&&D==jR(this).PERCENT.charAt(0)){if(R!=1)break;R=100;if(L){g[0]++;break}}else if(this.multiplier_==1&&D==jR(this).PERMILL.charAt(0)){if(R!=1)break;R=1E3;if(L){g[0]++;break}}else break}this.multiplier_!=1&&(R=this.multiplier_);I=parseFloat(X)/R}if(c){if(e.indexOf(this.positiveSuffix_,g[0])!=g[0])return NaN;g[0]+=this.positiveSuffix_.length}else if(k){if(e.indexOf(this.negativeSuffix_,g[0])!=g[0])return NaN;g[0]+=this.negativeSuffix_.length}return k?
-I:I};
_.$d.prototype.format=function(e){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(e))return jR(this).NAN;var g=[];var c=e;if(this.compactStyle_==0)c=mG;else{c=Math.abs(c);var k=gun(this,c<=1?0:cCB(c)).divisorBase;c=gun(this,k+cCB(kPZ(this,pz(c,-k)).intValue))}e=pz(e,-c.divisorBase);(k=e<0||e==0&&1/e<0)?c.negative_prefix?g.push(c.negative_prefix):(g.push(c.prefix),g.push(this.negativePrefix_)):(g.push(c.prefix),g.push(this.positivePrefix_));if(isFinite(e))if(e*=
k?-1:1,e*=this.multiplier_,this.useExponentialNotation_){var I=e;if(I==0)I9I(this,I,this.minimumIntegerDigits_,g),JCM(this,0,g);else{var J=Math.floor(Math.log(I)/Math.log(10)+2E-15);I=pz(I,-J);var q=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(q=J%this.maximumIntegerDigits_,q<0&&(q=this.maximumIntegerDigits_+q),I=pz(I,q),J-=q,q=1):this.minimumIntegerDigits_<1?(J++,I=pz(I,-1)):(J-=this.minimumIntegerDigits_-1,I=pz(I,this.minimumIntegerDigits_-
1));I9I(this,I,q,g);JCM(this,J,g)}}else I9I(this,e,this.minimumIntegerDigits_,g);else g.push(jR(this).INFINITY);k?c.negative_suffix?g.push(c.negative_suffix):(isFinite(e)&&g.push(c.suffix),g.push(this.negativeSuffix_)):(isFinite(e)&&g.push(c.suffix),g.push(this.positiveSuffix_));return g.join("")};
var kPZ=function(e,g){var c=pz(g,e.maximumFractionDigits_);e.significantDigits_>0&&(c=vuY(c,e.significantDigits_,e.maximumFractionDigits_));c=Math.round(c);if(isFinite(c)){var k=Math.floor(pz(c,-e.maximumFractionDigits_));c=Math.floor(c-pz(k,e.maximumFractionDigits_));if(c<0||c>=pz(1,e.maximumFractionDigits_))k=Math.round(g),c=0}else k=g,c=0;return{intValue:k,fracValue:c}},I9I=function(e,g,c,k){if(e.minimumFractionDigits_>e.maximumFractionDigits_)throw Error("me");
k||(k=[]);g=kPZ(e,g);var I=g.intValue,J=g.fracValue,q=e.minimumFractionDigits_>0||J>0||!1;g=e.minimumFractionDigits_;q&&(g=e.minimumFractionDigits_);for(var L="",n=I;n>1E20;)L="0"+L,n=Math.round(pz(n,-1));L=n+L;var R=jR(e).DECIMAL_SEP;n=jR(e).ZERO_DIGIT.codePointAt(0);var W=L.length,b=0;if(I>0||c>0){for(I=W;I<c;I++)k.push(String.fromCodePoint(n));if(e.groupingArray_.length>=2)for(c=1;c<e.groupingArray_.length;c++)b+=e.groupingArray_[c];c=W-b;if(c>0){I=e.groupingArray_;b=W=0;for(var h,X=jR(e).GROUP_SEP,
D=L.length,f=0;f<D;f++)if(k.push(String.fromCodePoint(n+Number(L.charAt(f)))),D-f>1)if(h=I[b],f<c){var l=c-f;(h===1||h>0&&l%h===1)&&k.push(X)}else b<I.length&&(f===c?b+=1:h===f-c-W+1&&(k.push(X),W+=h,b+=1))}else{c=L;L=e.groupingArray_;I=jR(e).GROUP_SEP;h=c.length;X=[];for(W=L.length-1;W>=0&&h>0;W--){b=L[W];for(D=0;D<b&&h-D-1>=0;D++)X.push(String.fromCodePoint(n+Number(c.charAt(h-D-1))));h-=b;h>0&&X.push(I)}k.push.apply(k,X.reverse())}}else q||k.push(String.fromCodePoint(n));(e.decimalSeparatorAlwaysShown_||
q)&&k.push(R);J=String(J);q=J.split("e+");q.length==2&&(J=String(vuY(parseFloat(q[0]),e.significantDigits_,1)),J=J.replace(".",""),J+=(0,_.zvI)("0",parseInt(q[1],10)-J.length+1));e.maximumFractionDigits_+1>J.length&&(J="1"+(0,_.zvI)("0",e.maximumFractionDigits_-J.length)+J);for(e=J.length;J.charAt(e-1)=="0"&&e>g+1;)e--;for(g=1;g<e;g++)k.push(String.fromCodePoint(n+Number(J.charAt(g))))},JCM=function(e,g,c){c.push(jR(e).EXP_SYMBOL);
g<0?(g=-g,c.push(jR(e).MINUS_SIGN)):e.useSignForPositiveExponent_&&c.push(jR(e).PLUS_SIGN);g=""+g;for(var k=jR(e).ZERO_DIGIT,I=g.length;I<e.minExponentDigits_;I++)c.push(k);e=k.codePointAt(0)-wYw;for(k=0;k<g.length;k++)c.push(String.fromCodePoint(e+g.codePointAt(k)))},ec4=function(e,g){g=g.codePointAt(0);
if(48<=g&&g<58)return g-48;e=jR(e).ZERO_DIGIT.codePointAt(0);return e<=g&&g<e+10?g-e:-1},wYw="0".codePointAt(0),C6u=function(e,g,c){for(var k="",I=!1,J=g.length;c[0]<J;c[0]++){var q=g.charAt(c[0]);
if(q=="'")c[0]+1<J&&g.charAt(c[0]+1)=="'"?(c[0]++,k+="'"):I=!I;else if(I)k+=q;else switch(q){case "#":case "0":case ",":case ".":case ";":return k;case "\u00a4":if(c[0]+1<J&&g.charAt(c[0]+1)=="\u00a4")c[0]++,k+=P6(e);else switch(e.currencyStyle_){case 0:q=P6(e);k+=q in Xs?Xs[q][1]:q;break;case 2:q=P6(e);var L=Xs[q];k+=L?q==L[1]?q:q+" "+L[1]:q;break;case 1:q=P6(e),k+=q in Xs?Xs[q][2]:q}break;case "%":if(!e.negativePercentSignExpected_&&e.multiplier_!=1)throw Error("ne");if(e.negativePercentSignExpected_&&
e.multiplier_!=100)throw Error("oe");e.multiplier_=100;e.negativePercentSignExpected_=!1;k+=jR(e).PERCENT;break;case "\u2030":if(!e.negativePercentSignExpected_&&e.multiplier_!=1)throw Error("ne");if(e.negativePercentSignExpected_&&e.multiplier_!=1E3)throw Error("oe");e.multiplier_=1E3;e.negativePercentSignExpected_=!1;k+=jR(e).PERMILL;break;default:k+=q}}return k},mG={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},gun=function(e,g){e=e.compactStyle_==1?W6.COMPACT_DECIMAL_SHORT_PATTERN:W6.COMPACT_DECIMAL_LONG_PATTERN;e==null&&(e=W6.COMPACT_DECIMAL_SHORT_PATTERN);if(g<3)return mG;g=Math.min(14,g);var c=e[pz(1,g)];for(--g;!c&&g>=3;)c=e[pz(1,g)],g--;if(!c)return mG;c=c.other;var k=e="",I=c.indexOf(";");I>=0&&(c=c.substring(0,I),I=c.substring(I+1))&&(k=/([^0]*)(0+)(.*)/.exec(I),e=k[1],k=k[3]);return c&&c!="0"?(c=/([^0]*)(0+)(.*)/.exec(c))?{divisorBase:g+
1-(c[2].length-1),negative_prefix:e,negative_suffix:k,prefix:c[1],suffix:c[3]}:mG:mG},cCB=function(e){if(!isFinite(e))return e>0?e:0;
for(var g=0;(e/=10)>=1;)g++;return g},pz=function(e,g){if(!e||!isFinite(e)||g==0)return e;
e=String(e).split("e");return parseFloat(e[0]+"e"+(parseInt(e[1]||0,10)+g))},qQ4=function(e,g){return e&&isFinite(e)?pz(Math.round(pz(e,g)),-g):e},vuY=function(e,g,c){if(!e)return e;
g=g-cCB(e)-1;return g<-c?qQ4(e,-c):qQ4(e,g)};var L3s,rCB=L3s=L3s=qRV;var a9Z,lRA=a9Z=a9Z=LFU;var W3w=function(e){this.JSC$11773_pattern_=e;this.parsedPattern_=this.literals_=this.initialLiterals_=null;e=y4I;var g=W6;if(nuw!==e||Rck!==g)nuw=e,Rck=g,Eu1=new _.$d(1);this.numberFormatter_=Eu1},nuw=null,Rck=null,Eu1=null,bVq=RegExp("'([{}#].*?)'","g"),hcq=RegExp("''","g");
W3w.prototype.format=function(e){if(this.JSC$11773_pattern_){this.initialLiterals_=[];var g=XYM(this,this.JSC$11773_pattern_);this.parsedPattern_=GPY(this,g);this.JSC$11773_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.tq(this.initialLiterals_),g=[],xyn(this,this.parsedPattern_,e,!1,g),e=g.join("");this.literals_.length>0;)e=e.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else e="";return e};
var xyn=function(e,g,c,k,I){for(var J=0;J<g.length;J++)switch(g[J].type){case 4:I.push(g[J].value);break;case 3:var q=g[J].value;var L=e,n=I,R=c[q];R===void 0?n.push("Undefined parameter - "+q):(L.literals_.push(R),n.push(L.buildPlaceholder_(L.literals_)));break;case 2:q=g[J].value;L=e;n=c;R=k;var W=I,b=q.argumentIndex;n[b]===void 0?W.push("Undefined parameter - "+b):(b=q[n[b]],b===void 0&&(b=q.other),xyn(L,b,n,R,W));break;case 0:q=g[J].value;Dyk(e,q,c,lRA,k,I);break;case 1:q=g[J].value,Dyk(e,q,c,
rCB,k,I)}},Dyk=function(e,g,c,k,I,J){var q=g.argumentIndex,L=g.argumentOffset,n=+c[q];
isNaN(n)?J.push("Undefined or invalid parameter - "+q):(L=n-L,q=g[c[q]],q===void 0&&(k=k(Math.abs(L)),q=g[k],q===void 0&&(q=g.other)),g=[],xyn(e,q,c,I,g),c=g.join(""),I?J.push(c):(e=e.numberFormatter_.format(L),J.push(c.replace(/#/g,e))))},XYM=function(e,g){var c=e.initialLiterals_,k=e.buildPlaceholder_.bind(e);
g=g.replace(hcq,function(){c.push("'");return k(c)});
return g=g.replace(bVq,function(I,J){c.push(J);return k(c)})},$yB=function(e){var g=0,c=[],k=[],I=/[{}]/g;
I.lastIndex=0;for(var J;J=I.exec(e);){var q=J.index;J[0]=="}"?(c.pop(),c.length==0&&(J={type:1},J.value=e.substring(g,q),k.push(J),g=q+1)):(c.length==0&&(g=e.substring(g,q),g!=""&&k.push({type:0,value:g}),g=q+1),c.push("{"))}e=e.substring(g);e!=""&&k.push({type:0,value:e});return k},YQ4=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,f9k=/^\s*(\w+)\s*,\s*selectordinal\s*,/,jBk=/^\s*(\w+)\s*,\s*select\s*,/,GPY=function(e,g){var c=[];
g=$yB(g);for(var k=0;k<g.length;k++){var I={};if(0==g[k].type)I.type=4,I.value=g[k].value;else if(1==g[k].type){var J=g[k].value;switch(YQ4.test(J)?0:f9k.test(J)?1:jBk.test(J)?2:/^\s*\w+\s*/.test(J)?3:5){case 2:I.type=2;I.value=iVI(e,g[k].value);break;case 0:I.type=0;I.value=PDq(e,g[k].value);break;case 1:I.type=1;I.value=myY(e,g[k].value);break;case 3:I.type=3,I.value=g[k].value}}c.push(I)}return c},iVI=function(e,g){var c="";
g=g.replace(jBk,function(L,n){c=n;return""});
var k={};k.argumentIndex=c;g=$yB(g);for(var I=0;I<g.length;){var J=g[I].value;I++;var q=void 0;1==g[I].type&&(q=GPY(e,g[I].value));k[J.replace(/\s/g,"")]=q;I++}return k},PDq=function(e,g){var c="",k=0;
g=g.replace(YQ4,function(n,R,W){c=R;W&&(k=parseInt(W,10));return""});
var I={};I.argumentIndex=c;I.argumentOffset=k;g=$yB(g);for(var J=0;J<g.length;){var q=g[J].value;J++;var L=void 0;1==g[J].type&&(L=GPY(e,g[J].value));I[q.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=L;J++}return I},myY=function(e,g){var c="";
g=g.replace(f9k,function(L,n){c=n;return""});
var k={};k.argumentIndex=c;k.argumentOffset=0;g=$yB(g);for(var I=0;I<g.length;){var J=g[I].value;I++;var q=void 0;1==g[I].type&&(q=GPY(e,g[I].value));k[J.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=q;I++}return k};
W3w.prototype.buildPlaceholder_=function(e){return"\ufddf_"+(e.length-1).toString(10)+"_"};var sLv=function(){var e={style:1},g=pYw;this.style_=(e==null?void 0:e.style)||0;this.durationSymbols_=g||Vtq},Tbq=function(e,g){switch(g){default:case "years":return e.durationSymbols_.YEAR;
case "months":return e.durationSymbols_.MONTH;case "weeks":return e.durationSymbols_.WEEK;case "days":return e.durationSymbols_.DAY;case "hours":return e.durationSymbols_.HOUR;case "minutes":return e.durationSymbols_.MINUTE;case "seconds":return e.durationSymbols_.SECOND}},Tp=function(e,g,c){a:{c=Tbq(e,c);
switch(e.style_){case 1:if(c.LONG!=void 0){e=c.LONG;break a}case 2:if(c.NARROW!=void 0){e=c.NARROW;break a}default:e=c.SHORT;break a}e=void 0}return e?(new W3w("{DURATION_VALUE,plural,"+e+"}")).format({DURATION_VALUE:g}):""};
sLv.prototype.format=function(e){var g=[],c=e.years,k=e.months,I=e.weeks,J=e.days,q=e.hours,L=e.minutes;e=e.seconds;c!=null&&g.push(Tp(this,c,"years"));k!=null&&g.push(Tp(this,k,"months"));I!=null&&g.push(Tp(this,I,"weeks"));J!=null&&g.push(Tp(this,J,"days"));q!=null&&g.push(Tp(this,q,"hours"));L!=null&&g.push(Tp(this,L,"minutes"));e!=null&&g.push(Tp(this,e,"seconds"));return(new BiZ).format(g)};var l9q;
l9q={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 yTp=function(){this.rdtfSymbols_=ACu||l9q;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
yTp.prototype.format=function(e,g){a:{g=sBs(this,g);switch(this.style_){case 2:if(g.NARROW!=void 0){g=g.NARROW;break a}case 1:if(g.SHORT!=void 0){g=g.SHORT;break a}default:g=g.LONG;break a}g=void 0}if(!this.alwaysNumeric_&&g&&g.R&&g.R[""+e])e=g.R[""+e];else if(g){var c=Math.abs(e);e=(new W3w("{N,plural,"+(e>0||e==0&&1/e==Infinity?g.F:g.P)+"}")).format({N:c})}else e="";return e};
var sBs=function(e,g){switch(g){default:case 0:return e.rdtfSymbols_.YEAR;case 1:return e.rdtfSymbols_.QUARTER;case 2:return e.rdtfSymbols_.MONTH;case 3:return e.rdtfSymbols_.WEEK;case 4:return e.rdtfSymbols_.DAY;case 5:return e.rdtfSymbols_.HOUR;case 6:return e.rdtfSymbols_.MINUTE;case 7:return e.rdtfSymbols_.SECOND}};raK.prototype.clone=function(){return new raK(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
raK.prototype.equals=function(e){return this.x0==e.x0&&this.y0==e.y0&&this.x1==e.x1&&this.y1==e.y1&&this.x2==e.x2&&this.y2==e.y2&&this.x3==e.x3&&this.y3==e.y3};
var F3q=function(e,g){if(g==0)return e.x0;if(g==1)return e.x3;var c=m6(e.x0,e.x1,g),k=m6(e.x1,e.x2,g);e=m6(e.x2,e.x3,g);c=m6(c,k,g);k=m6(k,e,g);return m6(c,k,g)},uJZ=function(e,g){var c=(g-e.x0)/(e.x3-e.x0);
if(c<=0)return 0;if(c>=1)return 1;for(var k=0,I=1,J=0,q=0;q<8;q++){J=F3q(e,c);var L=(F3q(e,c+1E-6)-J)/1E-6;if(Math.abs(J-g)<1E-6)return c;if(Math.abs(L)<1E-6)break;else J<g?k=c:I=c,c-=(J-g)/L}for(q=0;Math.abs(J-g)>1E-6&&q<8;q++)J<g?(k=c,c=(c+I)/2):(I=c,c=(c+k)/2),J=F3q(e,c);return c};var lb;_.Um(wY,_.jv);var noV={},a7C=0,dyq=function(e,g){var c=Jd(e);Gm4(g,function(k,I){Array.isArray(k)||(k=[k]);_.o7(k,function(J){J=c.JSC$9638_createDom("INPUT",{type:"hidden",name:I,value:J});e.appendChild(J)})})};
_.v=wY.prototype;_.v.JSC$11795_form_=null;_.v.JSC$11795_iframe_=null;_.v.iframeName_=null;_.v.nextIframeId_=0;_.v.JSC$11795_active_=!1;_.v.complete_=!1;_.v.success_=!1;_.v.lastContent_=null;_.v.JSC$11795_lastErrorCode_=0;_.v.iframeDisposalTimer_=null;
_.v.send=function(e,g,c,k){if(this.JSC$11795_active_)throw Error("ue");e=new _.mt(e);g=g?g.toUpperCase():"GET";c&&_.Nn(e);lb||(lb=_.XW("FORM"),lb.acceptCharset="utf-8",c=lb.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(lb));this.JSC$11795_form_=lb;g=="GET"&&dyq(this.JSC$11795_form_,e.JSC$10342_queryData_);k&&dyq(this.JSC$11795_form_,k);c=e.toString();c=mlU(c);k=this.JSC$11795_form_;c=_.Cm(VP(c));c!==void 0&&
(k.action=c);this.JSC$11795_form_.method=g;zcY(this);HVs(this)};
_.v.abort=function(e){if(this.JSC$11795_active_){var g=AD(this);if(g)if(LZ(g))g.removeAllListeners(void 0);else if(g=rG(g)){var c=0,k;for(k in g.listeners)for(var I=g.listeners[k].concat(),J=0;J<I.length;++J)I6(I[J])&&++c}this.success_=this.JSC$11795_active_=this.complete_=!1;this.JSC$11795_lastErrorCode_=e||7;this.dispatchEvent("abort");QBZ(this)}};
_.v.disposeInternal=function(){this.JSC$11795_active_&&this.abort();wY.superClass_.disposeInternal.call(this);this.JSC$11795_iframe_&&Uyq(this);HVs(this);this.JSC$11795_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11795_form_=null;this.JSC$11795_lastErrorCode_=0;delete noV[this.JSC$11793_name_]};
_.v.isComplete=function(){return this.complete_};
_.v.isSuccess=function(){return this.success_};
_.v.isActive=function(){return this.JSC$11795_active_};
_.v.getResponseText=function(){return this.lastContent_};
_.v.getLastError=function(){return _.e_v(this.JSC$11795_lastErrorCode_)};
var zcY=function(e){e.JSC$11795_active_=!0;e.complete_=!1;e.JSC$11795_lastErrorCode_=0;e.iframeName_=e.JSC$11793_name_+"_"+(e.nextIframeId_++).toString(36);e.JSC$11795_iframe_=Jd(e.JSC$11795_form_).JSC$9638_createDom("IFRAME",{name:e.iframeName_,id:e.iframeName_});var g=e.JSC$11795_iframe_.style;g.visibility="hidden";g.width=g.height="10px";g.display="none";_.Cb?g.marginTop=g.marginLeft="-10px":(g.position="absolute",g.top=g.left="-10px");Jd(e.JSC$11795_form_).JSC$9636_document_.body.appendChild(e.JSC$11795_iframe_);
g=e.iframeName_+"_inner";var c=grn(e.JSC$11795_iframe_);if(document.baseURI){var k=Z3(g);k='<head><base href="'+Z3(document.baseURI)+'"></head><body><iframe id="'+k+'" name="'+k+'"></iframe>';k=kW(k)}else k=Z3(g),k=kW('<body><iframe id="'+k+'" name="'+k+'"></iframe>');c.write(IP(k));_.iK(c.getElementById(g),"load",e.onIframeLoaded_,!1,e);k=gD("TEXTAREA",e.JSC$11795_form_);for(var I=0,J=k.length;I<J;I++){var q=k[I].value;wtq(k[I])!=q&&(_.j9(k[I],q),k[I].value=q)}k=c.importNode(e.JSC$11795_form_,!0);
k.target=g;k.action=e.JSC$11795_form_.action;c.body.appendChild(k);I=gD("SELECT",e.JSC$11795_form_);J=gD("SELECT",k);q=0;for(var L=I.length;q<L;q++)for(var n=gD("OPTION",I[q]),R=gD("OPTION",J[q]),W=0,b=n.length;W<b;W++)R[W].selected=n[W].selected;I=gD("INPUT",e.JSC$11795_form_);J=gD("INPUT",k);q=0;for(L=I.length;q<L;q++)if(I[q].type=="file"&&I[q].value!=J[q].value){e.JSC$11795_form_.target=g;k=e.JSC$11795_form_;break}try{e.errorHandled_=!1,k.submit(),c.close(),_.er&&setTimeout(e.testForFirefoxSilentError_.bind(e),
250)}catch(h){_.a0(c.getElementById(g),"load",e.onIframeLoaded_,!1,e),c.close(),se(e,2)}};
wY.prototype.onIframeLoaded_=function(){_.a0(AD(this),"load",this.onIframeLoaded_,!1,this);try{var e=this.JSC$11795_iframe_?grn(AD(this)):null;this.complete_=!0;this.JSC$11795_active_=!1;try{var g=e.body;this.lastContent_=g.textContent||g.innerText}catch(I){var c=1}var k;c||typeof this.errorChecker_!="function"||(k=this.errorChecker_(e))&&(c=4);c?se(this,c):(this.success_=!0,this.JSC$11795_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),QBZ(this))}catch(I){se(this,1)}};
var se=function(e,g){e.errorHandled_||(e.success_=!1,e.JSC$11795_active_=!1,e.complete_=!0,e.JSC$11795_lastErrorCode_=g,e.dispatchEvent("complete"),e.dispatchEvent("error"),QBZ(e),e.errorHandled_=!0)},QBZ=function(e){Uyq(e);
HVs(e);e.JSC$11795_form_=null;e.dispatchEvent("ready")},Uyq=function(e){var g=e.JSC$11795_iframe_;
g&&(g.onreadystatechange=null,g.onload=null,g.onerror=null,e.iframesForDisposal_.push(g));e.iframeDisposalTimer_&&(clearTimeout(e.iframeDisposalTimer_),e.iframeDisposalTimer_=null);_.er?e.iframeDisposalTimer_=setTimeout(e.disposeIframes_.bind(e),2E3):e.disposeIframes_();e.JSC$11795_iframe_=null;e.iframeName_=null};
wY.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var e=this.iframesForDisposal_.pop();_.ev(e)}};
var HVs=function(e){e.JSC$11795_form_&&e.JSC$11795_form_==lb&&_.Dg(e.JSC$11795_form_)},AD=function(e){return e.JSC$11795_iframe_?grn(e.JSC$11795_iframe_).getElementById(e.iframeName_+"_inner"):null};
wY.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11795_active_){var e=this.JSC$11795_iframe_?grn(AD(this)):null;e&&!Mwg(e,"documentUri")?(_.a0(AD(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?se(this,3):se(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Fs=function(e){return e=="\r"||e=="\n"||e==" "||e=="\t"};_.qR.prototype.isInputValid=function(){return this.streamState_!=3};
_.qR.prototype.done=function(){return this.streamState_===2};
var ub=function(e,g,c){e.streamState_=3;e.errorMessage_="The stream is broken @"+e.JSC$11797_pos_+"/"+c+". With input:\n"+g;throw Error(e.errorMessage_);};
_.qR.prototype.acceptsBinaryInput=function(){return!1};
_.qR.prototype.parse=function(e){function g(){for(;b<e.length;)if(_.Fs(e[b]))b++,J.JSC$11797_pos_++;else break;return b<n}
function c(){for(var X;;){X=e[b++];if(!X)break;J.JSC$11797_pos_++;switch(J.state_){case 0:X==="{"?J.state_=2:X==="["?J.state_=4:_.Fs(X)||ub(J,e,b);continue;case 7:case 2:if(_.Fs(X))continue;if(J.state_===7)q.push(8);else if(X==="}"){I("{}");J.state_=k();continue}else q.push(3);X==='"'?J.state_=6:ub(J,e,b);continue;case 8:case 3:if(_.Fs(X))continue;X===":"?(J.state_===3&&(q.push(3),J.depth_++),J.state_=1):X==="}"?(J.depth_--,I(),J.state_=k()):X===","?(J.state_===3&&q.push(3),J.state_=7):ub(J,e,b);
continue;case 4:case 1:if(_.Fs(X))continue;if(J.state_===4)if(J.depth_++,J.state_=1,X==="]"){J.depth_--;if(J.depth_===0){J.state_=5;return}I("[]");J.state_=k();continue}else q.push(5);X==='"'?J.state_=6:X==="{"?J.state_=2:X==="["?J.state_=4:X==="t"?J.state_=9:X==="f"?J.state_=12:X==="n"?J.state_=16:X!=="-"&&("0123456789".indexOf(X)!==-1?J.state_=20:ub(J,e,b));continue;case 5:if(X===",")q.push(5),J.state_=1,J.depth_===1&&(W=b);else if(X==="]"){J.depth_--;if(J.depth_===0)return;I();J.state_=k()}else if(_.Fs(X))continue;
else ub(J,e,b);continue;case 6:var D=b;a:for(;;){for(;J.unicodeCount_>0;)if(X=e[b++],J.unicodeCount_===4?J.unicodeCount_=0:J.unicodeCount_++,!X)break a;if(X==='"'&&!J.slashed_){J.state_=k();break}if(X==="\\"&&!J.slashed_&&(J.slashed_=!0,X=e[b++],!X))break;if(J.slashed_)if(J.slashed_=!1,X==="u"&&(J.unicodeCount_=1),X=e[b++])continue;else break;L.lastIndex=b;X=L.exec(e);if(!X){b=e.length+1;break}b=X.index+1;X=e[X.index];if(!X)break}J.JSC$11797_pos_+=b-D;continue;case 9:if(!X)continue;X==="r"?J.state_=
10:ub(J,e,b);continue;case 10:if(!X)continue;X==="u"?J.state_=11:ub(J,e,b);continue;case 11:if(!X)continue;X==="e"?J.state_=k():ub(J,e,b);continue;case 12:if(!X)continue;X==="a"?J.state_=13:ub(J,e,b);continue;case 13:if(!X)continue;X==="l"?J.state_=14:ub(J,e,b);continue;case 14:if(!X)continue;X==="s"?J.state_=15:ub(J,e,b);continue;case 15:if(!X)continue;X==="e"?J.state_=k():ub(J,e,b);continue;case 16:if(!X)continue;X==="u"?J.state_=17:ub(J,e,b);continue;case 17:if(!X)continue;X==="l"?J.state_=18:
ub(J,e,b);continue;case 18:if(!X)continue;X==="l"?J.state_=k():ub(J,e,b);continue;case 19:X==="."?J.state_=20:ub(J,e,b);continue;case 20:if("0123456789.eE+-".indexOf(X)!==-1)continue;else b--,J.JSC$11797_pos_--,J.state_=k();continue;default:ub(J,e,b)}}}
function k(){var X=q.pop();return X!=null?X:1}
function I(X){J.depth_>1||(X||(X=W===-1?J.JSC$11797_buffer_+e.substring(R,b):e.substring(W,b)),J.deliverMessageAsRawString_?J.result_.push(X):J.result_.push(JSON.parse(X)),W=b)}
for(var J=this,q=J.stack_,L=J.stringInputPattern_,n=e.length,R=0,W=-1,b=0;b<n;)switch(J.streamState_){case 3:return ub(J,e,b),null;case 2:return g()&&ub(J,e,b),null;case 0:if(g()){var h=e[b++];J.JSC$11797_pos_++;if(h==="["){J.streamState_=1;R=b;J.state_=4;continue}else ub(J,e,b)}return null;case 1:return c(),J.depth_===0&&J.state_==5?(J.streamState_=2,J.JSC$11797_buffer_=e.substring(b)):J.JSC$11797_buffer_=W===-1?J.JSC$11797_buffer_+e.substring(R):e.substring(W),J.result_.length>0?(h=J.result_,J.result_=
[],h):null}return null};_.Um(_.LM,hK);rY.prototype.getValue=function(){return this.JSC$11804_value_};
rY.prototype.clone=function(){return new rY(this.JSC$11804_key_,this.JSC$11804_value_)};var dh=function(e){this.nodes_=[];if(e)a:{if(e instanceof dh){var g=e.getKeys();e=e.getValues();if(this.getCount()<=0){for(var c=this.nodes_,k=0;k<g.length;k++)c.push(new rY(g[k],e[k]));break a}}else g=_.n0.getKeys(e),e=_.n0.getValues(e);for(c=0;c<g.length;c++)this.insert(g[c],e[c])}};
_.v=dh.prototype;_.v.insert=function(e,g){var c=this.nodes_;c.push(new rY(e,g));e=c.length-1;g=this.nodes_;for(c=g[e];e>0;){var k=e-1>>1;if(g[k].JSC$11804_key_>c.JSC$11804_key_)g[e]=g[k],e=k;else break}g[e]=c};
_.v.remove=function(){var e=this.nodes_,g=e.length,c=e[0];if(!(g<=0)){if(g==1)e.length=0;else{e[0]=e.pop();e=0;g=this.nodes_;for(var k=g.length,I=g[e];e<k>>1;){var J=e*2+1,q=e*2+2;J=q<k&&g[q].JSC$11804_key_<g[J].JSC$11804_key_?q:J;if(g[J].JSC$11804_key_>I.JSC$11804_key_)break;g[e]=g[J];e=J}g[e]=I}return c.getValue()}};
_.v.peek=function(){var e=this.nodes_;if(e.length!=0)return e[0].getValue()};
_.v.getValues=function(){for(var e=this.nodes_,g=[],c=e.length,k=0;k<c;k++)g.push(e[k].getValue());return g};
_.v.getKeys=function(){for(var e=this.nodes_,g=[],c=e.length,k=0;k<c;k++)g.push(e[k].JSC$11804_key_);return g};
_.v.containsValue=function(e){return this.nodes_.some(function(g){return g.getValue()==e})};
_.v.containsKey=function(e){return this.nodes_.some(function(g){return g.JSC$11804_key_==e})};
_.v.clone=function(){return new dh(this)};
_.v.getCount=function(){return this.nodes_.length};
_.v.isEmpty=function(){return this.nodes_.length===0};
_.v.clear=function(){this.nodes_.length=0};_.v=_.aY.prototype;_.v.getCount=function(){return this.size};
_.v.getValues=function(){zp(this);for(var e=[],g=0;g<this.JSC$11810_keys_.length;g++)e.push(this.JSC$11810_map_[this.JSC$11810_keys_[g]]);return e};
_.v.getKeys=function(){zp(this);return this.JSC$11810_keys_.concat()};
_.v.containsKey=function(e){return this.has(e)};
_.v.has=function(e){return H6(this.JSC$11810_map_,e)};
_.v.containsValue=function(e){for(var g=0;g<this.JSC$11810_keys_.length;g++){var c=this.JSC$11810_keys_[g];if(H6(this.JSC$11810_map_,c)&&this.JSC$11810_map_[c]==e)return!0}return!1};
_.v.equals=function(e,g){if(this===e)return!0;if(this.size!=e.getCount())return!1;g=g||ouI;zp(this);for(var c,k=0;c=this.JSC$11810_keys_[k];k++)if(!g(this.get(c),e.get(c)))return!1;return!0};
var ouI=function(e,g){return e===g};
_.aY.prototype.isEmpty=function(){return this.size==0};
_.aY.prototype.clear=function(){this.JSC$11810_map_={};this.version_=this.size=this.JSC$11810_keys_.length=0};
_.aY.prototype.remove=function(e){return this.delete(e)};
_.aY.prototype.delete=function(e){return H6(this.JSC$11810_map_,e)?(delete this.JSC$11810_map_[e],--this.size,this.version_++,this.JSC$11810_keys_.length>2*this.size&&zp(this),!0):!1};
var zp=function(e){if(e.size!=e.JSC$11810_keys_.length){for(var g=0,c=0;g<e.JSC$11810_keys_.length;){var k=e.JSC$11810_keys_[g];H6(e.JSC$11810_map_,k)&&(e.JSC$11810_keys_[c++]=k);g++}e.JSC$11810_keys_.length=c}if(e.size!=e.JSC$11810_keys_.length){g={};for(k=c=0;c<e.JSC$11810_keys_.length;){var I=e.JSC$11810_keys_[c];H6(g,I)||(e.JSC$11810_keys_[k++]=I,g[I]=1);c++}e.JSC$11810_keys_.length=k}};
_.v=_.aY.prototype;_.v.get=function(e,g){return H6(this.JSC$11810_map_,e)?this.JSC$11810_map_[e]:g};
_.v.set=function(e,g){H6(this.JSC$11810_map_,e)||(this.size+=1,this.JSC$11810_keys_.push(e),this.version_++);this.JSC$11810_map_[e]=g};
_.v.addAll=function(e){if(e instanceof _.aY)for(var g=e.getKeys(),c=0;c<g.length;c++)this.set(g[c],e.get(g[c]));else for(g in e)this.set(g,e[g])};
_.v.forEach=function(e,g){for(var c=this.getKeys(),k=0;k<c.length;k++){var I=c[k],J=this.get(I);e.call(g,J,I,this)}};
_.v.clone=function(){return new _.aY(this)};
_.v.transpose=function(){for(var e=new _.aY,g=0;g<this.JSC$11810_keys_.length;g++){var c=this.JSC$11810_keys_[g];e.set(this.JSC$11810_map_[c],c)}return e};
_.v.keys=function(){return $cs(this.__iterator__(!0)).toEs6()};
_.v.values=function(){return $cs(this.__iterator__(!1)).toEs6()};
_.v.entries=function(){var e=this;return Q6B(this.keys(),function(g){return[g,e.get(g)]})};
_.v.__iterator__=function(e){zp(this);var g=0,c=this.version_,k=this,I=new z3;I.next=function(){if(c!=k.version_)throw Error("ve");if(g>=k.JSC$11810_keys_.length)return HR;var J=k.JSC$11810_keys_[g++];return QC(e?J:k.JSC$11810_map_[J])};
return I};
var H6=function(e,g){return Object.prototype.hasOwnProperty.call(e,g)};var ZVk=function(e,g){if(g=e.JSC$11813_map_.get(g))g.remove(),e.insert_(g);return g};
_.v=EoU.prototype;_.v.get=function(e,g){return(e=ZVk(this,e))?e.value:g};
_.v.set=function(e,g){var c=ZVk(this,e);c?c.value=g:(c=new Reg(e,g),this.JSC$11813_map_.set(e,c),this.insert_(c))};
_.v.peek=function(){return this.JSC$11813_head_.next.value};
_.v.shift=function(){return VSM(this,this.JSC$11813_head_.next)};
_.v.pop=function(){return VSM(this,this.JSC$11813_head_.prev)};
_.v.remove=function(e){return(e=this.JSC$11813_map_.get(e))?(this.removeNode(e),!0):!1};
_.v.removeNode=function(e){e.remove();this.JSC$11813_map_.remove(e.key)};
_.v.getCount=function(){return this.JSC$11813_map_.getCount()};
_.v.isEmpty=function(){return this.JSC$11813_map_.isEmpty()};
_.v.getKeys=function(){return this.map(function(e,g){return g})};
_.v.getValues=function(){return this.map(function(e){return e})};
_.v.contains=function(e){return this.some(function(g){return g==e})};
_.v.containsKey=function(e){return this.JSC$11813_map_.containsKey(e)};
_.v.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11813_head_.prev)};
_.v.forEach=function(e,g){for(var c=this.JSC$11813_head_.next;c!=this.JSC$11813_head_;c=c.next)e.call(g,c.value,c.key,this)};
_.v.map=function(e,g){for(var c=[],k=this.JSC$11813_head_.next;k!=this.JSC$11813_head_;k=k.next)c.push(e.call(g,k.value,k.key,this));return c};
_.v.some=function(e,g){for(var c=this.JSC$11813_head_.next;c!=this.JSC$11813_head_;c=c.next)if(e.call(g,c.value,c.key,this))return!0;return!1};
_.v.every=function(e,g){for(var c=this.JSC$11813_head_.next;c!=this.JSC$11813_head_;c=c.next)if(!e.call(g,c.value,c.key,this))return!1;return!0};
_.v.insert_=function(e){e.next=this.JSC$11813_head_.next;e.prev=this.JSC$11813_head_;this.JSC$11813_head_.next=e;for(e.next.prev=e;this.getCount()>100;)this.removeNode(this.JSC$11813_head_.prev)};
var VSM=function(e,g){e.JSC$11813_head_!=g&&e.removeNode(g);return g.value},Reg=function(e,g){this.key=e;
this.value=g};
Reg.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var tSI=function(){dh.apply(this,arguments)};
_.Y(tSI,dh);tSI.prototype.enqueue=function(e,g){this.insert(e,g)};var BbM=function(){var e=Error();e.name="SecurityError";throw e;},N5A=function(){return{get opener(){return null},
get closed(){return!0},get location(){BbM()},get document(){BbM()},postMessage:function(){},
close:function(){},
focus:function(){}}};var WFe={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 XNq={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 Nbq={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(XNq).join("|");var SQY=function(){function e(L){L.substr(-1)!==";"&&(L+=";");return q(L)}
for(var g=Object.keys(Nbq).sort(heA),c=Object.keys(XNq).sort(heA),k=0,I=0;k<c.length;k++)g[I]===c[k]?(c[k]+=";?",I++):c[k]+=";";var J=new RegExp("&(?:"+c.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),q=GSC();return function(L){return String(L).replace(J,e)}}();/*

 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 yCM={};var K3u=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"),OVs=/[\\&]/,MSY=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),CDZ=RegExp('[&<>"]',"g"),eRw=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),gDs=function(e){return e.charCodeAt(0)===92?e.charAt(1):SQY(e)},chk=function(e){return OVs.test(e)?e.replace(MSY,gDs):e},kMY=function(e){try{var g,c="";
if(typeof I!=="string"){var k=I;var I=";/?:@&=+$,-_.!~*'()#"}typeof k==="undefined"&&(k=!0);var J,q=yCM[I];if(q)var L=q;else{q=yCM[I]=[];for(J=0;J<128;J++){var n=String.fromCharCode(J);/^[0-9a-z]$/i.test(n)?q.push(n):q.push("%"+("0"+J.toString(16).toUpperCase()).slice(-2))}for(J=0;J<I.length;J++)q[I.charCodeAt(J)]=I[J];L=q}var R=0;for(g=e.length;R<g;R++){var W=e.charCodeAt(R);if(k&&W===37&&R+2<g&&/^[0-9a-f]{2}$/i.test(e.slice(R+1,R+3)))c+=e.slice(R,R+3),R+=2;else if(W<128)c+=L[W];else if(W>=55296&&
W<=57343){if(W>=55296&&W<=56319&&R+1<g){var b=e.charCodeAt(R+1);if(b>=56320&&b<=57343){c+=encodeURIComponent(e[R]+e[R+1]);R++;continue}}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[R])}return c}catch(h){return e}},IZq=function(e){switch(e){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return e}},QB=function(e,g){return CDZ.test(e)?g?e.replace(eRw,IZq):e.replace(CDZ,IZq):e};/*

 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 Ue;if(String.fromCodePoint)Ue=function(e){try{return String.fromCodePoint(e)}catch(g){if(g instanceof RangeError)return String.fromCharCode(65533);throw g;}};
else{var JhZ=String.fromCharCode,vDw=Math.floor;Ue=function(){var e=[],g=-1,c=arguments.length;if(!c)return"";for(var k="";++g<c;){var I=Number(arguments[g]);if(!isFinite(I)||I<0||I>1114111||vDw(I)!==I)return String.fromCharCode(65533);if(I<=65535)e.push(I);else{I-=65536;var J=(I>>10)+55296;I=I%1024+56320;e.push(J,I)}if(g+1===c||e.length>16384)k+=JhZ.apply(null,e),e.length=0}return k}};var wjY=function(e){this.root=this.current=e;this.entering=!0};
wjY.prototype.next=function(){var e=this.current,g=this.entering;if(e===null)return null;a:switch(e._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 c=!0;break a;default:c=!1}g&&c?e._firstChild?(this.current=e._firstChild,this.entering=!0):this.entering=!1:e===this.root?this.current=null:e._next===null?(this.current=
e._parent,this.entering=!1):(this.current=e._next,this.entering=!0);return{entering:g,node:e}};
var WP=function(e,g){this._type=e;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=g;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};
WP.prototype.appendChild=function(e){e.unlink();e._parent=this;this._lastChild?(this._lastChild._next=e,e._prev=this._lastChild):this._firstChild=e;this._lastChild=e};
WP.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var qTB=function(e,g){g.unlink();g._next=e._next;g._next&&(g._next._prev=g);g._prev=e;e._next=g;g._parent=e._parent;g._next||(g._parent._lastChild=g)};
WP.prototype.insertBefore=function(e){e.unlink();e._prev=this._prev;e._prev&&(e._prev._next=e);e._next=this;this._prev=e;e._parent=this._parent;e._prev||(e._parent._firstChild=e)};
_.Bd.Object.defineProperties(WP.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(e){this._literal=e}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(e){this._destination=e}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(e){this._title=e}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(e){this._info=e}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(e){this._level=e}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(e){this._listData.type=e}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(e){this._listData.tight=e}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(e){this._listData.start=e}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(e){this._onEnter=e}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(e){this._onExit=e}}});var xn6=/[ \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,
Dn8={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 Lgv=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]/),
rhY=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),aZs=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),nD4=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),RRZ=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),ED4=/`+/,WgI=/^`+/,bLB=/\.\.\./g,hR4=/--+/g,Xjs=/^<([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])?)*)>/,
GM1=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,x1u=/^ *(?:\n *)?/,D11=/^[ \t\n\x0b\x0c\x0d]/,$1n=/[ \t\n\x0b\x0c\x0d]+/g,YTu=/^\s/,fZq=/ *$/,jmM=/^ */,iLs=/^ *(?:\n|$)/,PQZ=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),m1u=/^[^\n`\[\]\\!<&*_'"]+/m,oT=function(e){var g=new WP("text");g._literal=e;return g},Zj=function(e){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=e||{}};
Zj.prototype.match=function(e){e=e.exec(this.subject.slice(this.pos));if(e===null)return null;this.pos+=e.index+e[0].length;return e[0]};
Zj.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var VB=function(e){e.match(x1u);return!0},pjw=function(e,g,c){var k=0;
var I=e.pos;if(g===39||g===34)k++,e.pos++;else for(;e.peek()===g;)k++,e.pos++;if(k===0)k=null;else{var J=I===0?"\n":e.subject.charAt(I-1);var q=e.peek();q=q===-1?"\n":Ue(q);var L=YTu.test(q);q=Lgv.test(q);var n=YTu.test(J);var R=Lgv.test(J);J=!L&&!(q&&!n&&!R);L=!n&&!(R&&!L&&!q);g===95?(n=J&&(!L||R),q=L&&(!J||q)):(n=g===39||g===34?J&&!L:J,q=L);e.pos=I;k={numdelims:k,can_open:n,can_close:q}}if(!k)return!1;I=k.numdelims;q=e.pos;e.pos+=I;q=g===39?"\u2019":g===34?"\u201c":e.subject.slice(q,e.pos);q=oT(q);
c.appendChild(q);e.delimiters={cc:g,numdelims:I,origdelims:I,node:q,previous:e.delimiters,next:null,can_open:k.can_open,can_close:k.can_close};e.delimiters.previous!==null&&(e.delimiters.previous.next=e.delimiters);return!0},TSv=function(e,g){g.previous!==null&&(g.previous.next=g.next);
g.next===null?e.delimiters=g.previous:g.next.previous=g.previous},lZk=function(e,g){var c,k,I=[],J=!1;
I[95]=g;I[42]=g;I[39]=g;I[34]=g;for(c=e.delimiters;c!==null&&c.previous!==g;)c=c.previous;for(;c!==null;){var q=c.cc;if(c.can_close){var L=c.previous;for(k=!1;L!==null&&L!==g&&L!==I[q];){J=(c.can_open||L.can_close)&&(L.origdelims+c.origdelims)%3===0;if(L.cc===c.cc&&L.can_open&&!J){k=!0;break}L=L.previous}var n=c;if(q===42||q===95)if(k){var R=c.numdelims>=2&&L.numdelims>=2?2:1;var W=L.node;var b=c.node;L.numdelims-=R;c.numdelims-=R;W._literal=W._literal.slice(0,W._literal.length-R);b._literal=b._literal.slice(0,
b._literal.length-R);var h=new WP(R===1?"emph":"strong");for(R=W._next;R&&R!==b;){var X=R._next;R.unlink();h.appendChild(R);R=X}qTB(W,h);R=L;X=c;R.next!==X&&(R.next=X,X.previous=R);L.numdelims===0&&(W.unlink(),TSv(e,L));c.numdelims===0&&(b.unlink(),L=c.next,TSv(e,c),c=L)}else c=c.next;else q===39?(c.node._literal="\u2019",k&&(L.node._literal="\u2018"),c=c.next):q===34&&(c.node._literal="\u201d",k&&(L.node.literal="\u201c"),c=c.next);k||J||(I[q]=n.previous,n.can_open||TSv(e,n))}else c=c.next}for(;e.delimiters!==
null&&e.delimiters!==g;)TSv(e,e.delimiters)},Ah4=function(e){e=e.match(rhY);
return e===null?null:chk(e.substr(1,e.length-2))},sms=function(e){var g=e.match(aZs);
if(g===null){g=e.pos;for(var c=0,k;(k=e.peek())!==-1;)if(k===92)e.pos+=1,e.peek()!==-1&&(e.pos+=1);else if(k===40)e.pos+=1,c+=1;else if(k===41)if(c<1)break;else e.pos+=1,--c;else if(D11.exec(Ue(k))!==null)break;else e.pos+=1;g=e.subject.substr(g,e.pos-g);return kMY(chk(g))}return kMY(chk(g.substr(1,g.length-2)))},Fgq=function(e){e=e.match(PQZ);
return e===null||e.length>1001?0:e.length},uXq=function(e,g,c,k){e.brackets!==null&&(e.brackets.bracketAfter=!0);
e.brackets={node:g,previous:e.brackets,previousDelimiter:e.delimiters,index:c,image:k,active:!0}},d1I=function(e,g){var c;
return(c=e.match(m1u))?(e.options.smart?g.appendChild(oT(c.replace(bLB,"\u2026").replace(hR4,function(k){var I=0,J=0;k.length%3===0?J=k.length/3:k.length%2===0?I=k.length/2:k.length%3===2?(I=1,J=(k.length-2)/3):(I=2,J=(k.length-4)/3);k="";var q;for(q=0;q<J;q++)k+="\u2014";for(q=0;q<I;q++)k+="\u2013";return k}))):g.appendChild(oT(c)),!0):!1},zRI=function(e,g,c){e.subject=g;
e.pos=0;g=e.pos;var k=Fgq(e);if(k===0)return 0;var I=e.subject.substr(0,k);if(e.peek()===58)e.pos++;else return e.pos=g,0;VB(e);k=sms(e);if(k===null||k.length===0)return e.pos=g,0;var J=e.pos;VB(e);var q=Ah4(e);q===null&&(q="",e.pos=J);var L=!0;e.match(iLs)===null&&(q===""?L=!1:(q="",e.pos=J,L=e.match(iLs)!==null));if(!L)return e.pos=g,0;I=$nv(I);if(I==="")return e.pos=g,0;c[I]||(c[I]={destination:k,title:q});return e.pos-g},HLv=function(e,g){var c,k=e.peek();
if(k===-1)return!1;switch(k){case 10:e.pos+=1;if((c=g._lastChild)&&c.type==="text"&&c._literal[c._literal.length-1]===" "){var I=c._literal[c._literal.length-2]===" ";c._literal=c._literal.replace(fZq,"");g.appendChild(new WP(I?"linebreak":"softbreak"))}else g.appendChild(new WP("softbreak"));e.match(jmM);c=!0;break;case 92:c=e.subject;e.pos+=1;e.peek()===10?(e.pos+=1,c=new WP("linebreak"),g.appendChild(c)):nD4.test(c.charAt(e.pos))?(g.appendChild(oT(c.charAt(e.pos))),e.pos+=1):g.appendChild(oT("\\"));
c=!0;break;case 96:a:if(c=e.match(WgI),c===null)c=!1;else{I=e.pos;for(var J;(J=e.match(ED4))!==null;)if(J===c){J=new WP("code");J._literal=e.subject.slice(I,e.pos-c.length).trim().replace($1n," ");g.appendChild(J);c=!0;break a}e.pos=I;g.appendChild(oT(c));c=!0}break;case 42:case 95:c=pjw(e,k,g);break;case 39:case 34:c=e.options.smart&&pjw(e,k,g);break;case 91:c=e.pos;e.pos+=1;I=oT("[");g.appendChild(I);uXq(e,I,c,!1);c=!0;break;case 33:c=e.pos;e.pos+=1;e.peek()===91?(e.pos+=1,I=oT("!["),g.appendChild(I),
uXq(e,I,c+1,!0)):g.appendChild(oT("!"));c=!0;break;case 93:var q,L=!1,n;e.pos+=1;var R=e.pos;I=e.brackets;if(I===null)g.appendChild(oT("]"));else if(I.active){c=I.image;var W=e.pos;e.peek()===40&&(e.pos++,VB(e)&&(J=sms(e))!==null&&VB(e)&&(D11.test(e.subject.charAt(e.pos-1))&&(q=Ah4(e)),1)&&VB(e)&&e.peek()===41?(e.pos+=1,L=!0):e.pos=W);if(!L){var b=e.pos,h=Fgq(e);h>2?n=e.subject.slice(b,b+h):I.bracketAfter||(n=e.subject.slice(I.index,R));h===0&&(e.pos=W);n&&(n=e.refmap[$nv(n)])&&(J=n.destination,q=
n.title,L=!0)}if(L){R=new WP(c?"image":"link");R._destination=J;R._title=q||"";for(J=I.node._next;J;)q=J._next,J.unlink(),R.appendChild(J),J=q;g.appendChild(R);lZk(e,I.previousDelimiter);e.brackets=e.brackets.previous;I.node.unlink();if(!c)for(I=e.brackets;I!==null;)I.image||(I.active=!1),I=I.previous}else e.brackets=e.brackets.previous,e.pos=R,g.appendChild(oT("]"))}else g.appendChild(oT("]")),e.brackets=e.brackets.previous;c=!0;break;case 60:(c=e.match(Xjs))?(c=c.slice(1,c.length-1),I=new WP("link"),
I._destination=kMY("mailto:"+c),I._title="",I.appendChild(oT(c)),g.appendChild(I),c=!0):(c=e.match(GM1))?(c=c.slice(1,c.length-1),I=new WP("link"),I._destination=kMY(c),I._title="",I.appendChild(oT(c)),g.appendChild(I),c=!0):c=!1;c||(c=e.match(K3u),c===null?c=!1:(I=new WP("html_inline"),I._literal=c,g.appendChild(I),c=!0));break;case 38:(c=e.match(RRZ))?(g.appendChild(oT(SQY(c))),c=!0):c=!1;break;default:c=d1I(e,g)}c||(e.pos+=1,g.appendChild(oT(Ue(k))));return!0};
Zj.prototype.parseInlines=function(e){this.subject=e._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;HLv(this,e););e._string_content=null;lZk(this,null)};
Zj.prototype.parse=Zj.prototype.parseInlines;var QmY=[/./,/^<(?: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")],U1q=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],oDq=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,ZLZ=/^[#`~*+_=<>0-9-\|]|\|/,Vlu=/[^ \t\f\v\r\n]/,tlw=/^[*+-]/,BSw=/^(\d{1,9})([.)])/,NSY=/^#{1,6}(?:[ \t]+|$)/,STZ=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,yhk=/^(?:`{3,}|~{3,})(?= *$)/,Kgs=/^(?:=+|-+)[ \t]*$/,OL1=/\r\n|\n|\r/,f7W=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,j0W=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,MlM={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(e){return e!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(e,g){for(e=g._firstChild;e;){if(YRC(e)&&e._next){g._listData.tight=!1;break}for(var c=e._firstChild;c;){if(YRC(c)&&(e._next||c._next)){g._listData.tight=!1;break}c=c._next}e=e._next}},
canContain:function(e){return e==="item"},
acceptsLines:!1},block_quote:{continue:function(e){var g=e.currentLine;if(e.indented||RY(g,e.nextNonspace)!==62)return 1;tD(e);B6(e,1,!1);nM(RY(g,e.offset))&&B6(e,1,!0);return 0},
finalize:function(){},
canContain:function(e){return e!=="item"},
acceptsLines:!1},item:{continue:function(e,g){if(e.blank){if(g._firstChild==null)return 1;tD(e)}else if(e.indent>=g._listData.markerOffset+g._listData.padding)B6(e,g._listData.markerOffset+g._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(e){return e!=="item"&&!iZW(e)},
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(e,g){var c=e.currentLine,k=e.indent;if(g._isFenced){if((k=k<=3&&c.charAt(e.nextNonspace)===g._fenceChar&&c.slice(e.nextNonspace).match(yhk))&&k[0].length>=g._fenceLength)return e.finalize(g,e.lineNumber),2;for(g=g._fenceOffset;g>0&&nM(RY(c,e.offset));)B6(e,1,!0),g--}else if(k>=4)B6(e,4,!0);else if(e.blank)tD(e);else return 1;return 0},
finalize:function(e,g){if(g._isFenced){var c=g._string_content,k=c.indexOf("\n");e=c.slice(0,k);c=c.slice(k+1);g.info=chk(e.trim());g._literal=c}else g._literal=g._string_content.replace(/(\n *)+$/,"\n");g._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(e,g){return!e.blank||g._htmlBlockType!==6&&g._htmlBlockType!==7?0:1},
finalize:function(e,g){g._literal=g._string_content.replace(/(\n *)+$/,"");g._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(e){return e.blank?1:0},
finalize:function(e,g){for(var c,k=!1;RY(g._string_content,0)===91&&(c=zRI(e.inlineParser,g._string_content,e.refmap));)g._string_content=g._string_content.slice(c),k=!0;k&&!Vlu.test(g._string_content)&&g.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(e){return E4(e.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(e){return e=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(e,g){if(!g._rowIsDelimiter){e=g._isHeader?"th":"td";for(var c=g._parent._tableColumns,k=g._string_content,I=0,J="",q,L=g._sourcepos[0][0];I<k.length;){switch(k[I]){case "|":q&&(q._string_content=J.trim(),J="",q=null,c--,c<=0&&(I=k.length));break;default:if(!q){q=new WP(e,[[L,I],[L,I]]);var n=g._parent._columnAlignment,R=g._parent._tableColumns-c;n&&R<=n.length&&R>=0&&(q._alignment=n[R]);g.appendChild(q)}J+=k[I];q._sourcepos[1][1]=I}I++}q&&(q._string_content=J.trim());g._string_content=
""}},
canContain:function(e){return e!=="row"},
acceptsLines:!1}},CQn=[function(e){if(e.indented||RY(e.currentLine,e.nextNonspace)!==62)return 0;tD(e);B6(e,1,!1);nM(RY(e.currentLine,e.offset))&&B6(e,1,!0);NE(e);e.addChild("block_quote",e.nextNonspace);return 1},
function(e){var g;if(!e.indented&&(g=e.currentLine.slice(e.nextNonspace).match(NSY))){tD(e);B6(e,g[0].length,!1);NE(e);var c=e.addChild("heading",e.nextNonspace);c.level=g[0].trim().length;c._string_content=e.currentLine.slice(e.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");B6(e,e.currentLine.length-e.offset);return 2}return 0},
function(e){var g;if(!e.indented&&(g=e.currentLine.slice(e.nextNonspace).match(STZ))){var c=g[0].length;NE(e);var k=e.addChild("code_block",e.nextNonspace);k._isFenced=!0;k._fenceLength=c;k._fenceChar=g[0][0];k._fenceOffset=e.indent;tD(e);B6(e,c,!1);return 2}return 0},
function(e,g){if(!e.indented&&RY(e.currentLine,e.nextNonspace)===60){var c=e.currentLine.slice(e.nextNonspace),k;for(k=1;k<=7;k++)if(QmY[k].test(c)&&(k<7||g.type!=="paragraph"))return NE(e),e.addChild("html_block",e.offset)._htmlBlockType=k,2}return 0},
function(e,g){var c;if(!e.indented&&g.type==="paragraph"&&(c=e.currentLine.slice(e.nextNonspace).match(Kgs))){NE(e);var k=new WP("heading",g.sourcepos);k.level=c[0][0]==="="?1:2;k._string_content=g._string_content;qTB(g,k);g.unlink();e.tip=k;B6(e,e.currentLine.length-e.offset,!1);return 2}return 0},
function(e){return!e.indented&&oDq.test(e.currentLine.slice(e.nextNonspace))?(NE(e),e.addChild("thematic_break",e.nextNonspace),B6(e,e.currentLine.length-e.offset,!1),2):0},
function(e,g){var c,k;if(!(k=e.indented&&g.type!=="list")){a:{var I=g,J=e.currentLine.slice(e.nextNonspace);k={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:e.indent};if(c=J.match(tlw))k.type="bullet",k.bulletChar=c[0][0];else{if(!(c=J.match(BSw))||I.type==="paragraph"&&c[1]!=="1"){c=null;break a}k.type="ordered";k.start=parseInt(c[1],10);k.delimiter=c[2]}var q=RY(e.currentLine,e.nextNonspace+c[0].length);if(q!==-1&&q!==9&&q!==32||I.type==="paragraph"&&!e.currentLine.slice(e.nextNonspace+
c[0].length).match(Vlu))c=null;else{tD(e);B6(e,c[0].length,!0);I=e.column;J=e.offset;do B6(e,1,!0),q=RY(e.currentLine,e.offset);while(e.column-I<5&&nM(q));q=RY(e.currentLine,e.offset)===-1;var L=e.column-I;L>=5||L<1||q?(k.padding=c[0].length+1,e.column=I,e.offset=J,nM(RY(e.currentLine,e.offset))&&B6(e,1,!0)):k.padding=c[0].length+L;c=k}}k=!c}if(k)return 0;NE(e);(k=e.tip.type!=="list")||(g=g._listData,k=!(g.type===c.type&&g.delimiter===c.delimiter&&g.bulletChar===c.bulletChar));k&&(g=e.addChild("list",
e.nextNonspace),g._listData=c);g=e.addChild("item",e.nextNonspace);g._listData=c;return 1},
function(e){var g;return((g=e.options.shouldParseIndentAsCodeBlock)!=null?g:1)&&e.indented&&e.tip.type!=="paragraph"&&!e.blank?(B6(e,4,!0),NE(e),e.addChild("code_block",e.offset),2):0},
function(e,g){var c=E4(e.currentLine),k=E4(e.lookahead);if(c!==0&&k<0&&Math.abs(c)==Math.abs(k)&&!iZW(g.type)){NE(e);g=e.addChild("table",e.nextNonspace);g._tableRows=1;g._tableColumns=Math.abs(c);c=e.lookahead;if(j0W.test(c)){k=[];for(var I=0,J=!1,q=0,L=void 0;I<c.length;){var n=q>=3;switch(c[I]){case "-":q++;break;case "|":J&&(k.push(L),L=void 0,q=0);J=!0;break;case ":":L||n||(L="left"),!L&&n&&(L="right"),L==="left"&&n&&(L="center")}I++}c=k}else c=void 0;g._columnAlignment=c;g=e.addChild("row",
e.nextNonspace);g._isHeader=!0;B6(e,e.currentLine.length-e.offset,!1);g._string_content=e.currentLine;return 1}return 0},
function(e,g){if(g.type=="table"&&E4(e.currentLine)!==0){NE(e);var c=g;g=e.addChild("row",e.nextNonspace);E4(e.currentLine)<0?g._rowIsDelimiter=!0:c._tableRows+=1;B6(e,e.currentLine.length-e.offset,!1);g._string_content=e.currentLine;return 2}return 0}],ylq=function(){var e={shouldParseIndentAsCodeBlock:!1};
e=e===void 0?{}:e;this.lastMatchedContainer=this.doc=PVC();this.refmap={};this.lastLineLength=0;this.inlineParser=new Zj(e);this.options=e;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=MlM;this.blockStarts=CQn},ePq=function(e){e.partiallyConsumedTab&&(e.offset+=1,e.tip._string_content+=" ".repeat(4-e.column%
4));
e.tip._string_content+=e.currentLine.slice(e.offset)+"\n"};
ylq.prototype.addChild=function(e,g){for(;!this.blocks[this.tip.type].canContain(e);)this.finalize(this.tip,this.lineNumber-1);e=new WP(e,[[this.lineNumber,g+1],[0,0]]);e._string_content="";this.tip.appendChild(e);return this.tip=e};
var NE=function(e){if(!e.allClosed){for(;e.oldtip!==e.lastMatchedContainer;){var g=e.oldtip._parent;e.finalize(e.oldtip,e.lineNumber-1);e.oldtip=g}e.allClosed=!0}},B6=function(e,g,c){for(var k=e.currentLine,I,J;g>0&&(J=k[e.offset]);)J==="\t"?(I=4-e.column%4,c?(e.partiallyConsumedTab=I>g,I=I>g?g:I,e.column+=I,e.offset+=e.partiallyConsumedTab?0:1,g-=I):(e.partiallyConsumedTab=!1,e.column+=I,e.offset+=1,--g)):(e.partiallyConsumedTab=!1,e.offset+=1,e.column+=1,--g)},tD=function(e){e.offset=e.nextNonspace;
e.column=e.nextNonspaceColumn;e.partiallyConsumedTab=!1},gt4=function(e){for(var g=e.currentLine,c=e.offset,k=e.column,I;(I=g.charAt(c))!=="";)if(I===" ")c++,k++;
else if(I==="\t")c++,k+=4-k%4;else break;e.blank=I==="\n"||I==="\r"||I==="";e.nextNonspace=c;e.nextNonspaceColumn=k;e.indent=e.nextNonspaceColumn-e.column;e.indented=e.indent>=4};
ylq.prototype.finalize=function(e,g){var c=e._parent;e._open=!1;e.sourcepos[1]=[g,this.lastLineLength];this.blocks[e.type].finalize(this,e);this.tip=c};
ylq.prototype.parse=function(e){this.tip=this.doc=PVC();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!e)return this.doc;this.options.time&&console.time("preparing input");var g=e.split(OL1),c=g.length;e.charCodeAt(e.length-1)===10&&--c;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(e=0;e<c;e++)a:{var k=void 0,I=g[e],J=g[e+1],q=!0,L=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;I.indexOf("\x00")!==-1&&(I=I.replace(/\0/g,"\ufffd"));this.currentLine=I;for(this.lookahead=J;(k=L._lastChild)&&k._open;){L=k;gt4(this);switch(this.blocks[L.type].continue(this,L)){case 0:break;case 1:q=!1;break;case 2:this.lastLineLength=I.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!q){L=L._parent;break}}this.allClosed=L===this.oldtip;this.lastMatchedContainer=
L;k=L.type!=="paragraph"&&MlM[L.type].acceptsLines;J=this.blockStarts;for(q=J.length;!k;){gt4(this);if(!this.indented&&!ZLZ.test(I.slice(this.nextNonspace))){tD(this);break}for(var n=0;n<q;){var R=J[n](this,L);if(R===1){L=this.tip;break}else if(R===2){L=this.tip;k=!0;break}else n++}if(n===q){tD(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){NE(this);this.blank&&L.lastChild&&(L.lastChild._lastLineBlank=!0);k=L.type;J=this.blank&&!(k==="block_quote"||k==="code_block"&&L._isFenced||
k==="item"&&!L._firstChild&&L.sourcepos[0][0]===this.lineNumber);for(q=L;q;)q._lastLineBlank=J,q=q._parent;this.blocks[k].acceptsLines?(ePq(this),k==="html_block"&&L._htmlBlockType>=1&&L._htmlBlockType<=5&&U1q[L._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(L,this.lineNumber)):this.offset<I.length&&!this.blank&&(this.addChild("paragraph",this.offset),tD(this),ePq(this))}else ePq(this);this.lastLineLength=I.length}for(;this.tip;)this.finalize(this.tip,c);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");I=new wjY(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;c=I.next();)g=c.node,e=g.type,c.entering||e!=="paragraph"&&e!=="heading"&&e!=="th"&&e!="td"||this.inlineParser.parse(g);this.options.time&&console.timeEnd("inline parsing");return this.doc};mng.prototype.render=function(e){e=new wjY(e);var g;this.buffer="";for(this.lastOut="\n";g=e.next();){var c=g.node.type;if(this[c])this[c](g.node,g.entering)}return this.buffer};
mng.prototype.out=function(e){SR(this,e)};
var SR=function(e,g){e.buffer+=g;e.lastOut=g};
mng.prototype.cr=function(){this.lastOut!=="\n"&&SR(this,"\n")};var cAu=/^javascript:|vbscript:|file:|data:/i,kiv=/^data:image\/(?:png|gif|jpeg|webp)/i,IQw=function(e){return cAu.test(e)&&!kiv.test(e)};
Xd.prototype=Object.create(mng.prototype);_.v=Xd.prototype;_.v.text=function(e){this.out(e.literal)};
_.v.html_inline=function(e){this.options.safe?SR(this,"\x3c!-- raw HTML omitted --\x3e"):SR(this,e.literal)};
_.v.html_block=function(e){this.cr();this.options.safe?SR(this,"\x3c!-- raw HTML omitted --\x3e"):SR(this,e.literal);this.cr()};
_.v.softbreak=function(){SR(this,this.options.softbreak)};
_.v.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.v.link=function(e,g){var c=this.attrs(e);g?(this.options.safe&&IQw(e.destination)||c.push(["href",QB(e.destination,!0)]),e.title&&c.push(["title",QB(e.title,!0)]),this.tag("a",c)):this.tag("/a")};
_.v.image=function(e,g){g?(this.disableTags===0&&(this.options.safe&&IQw(e.destination)?SR(this,'<img src="" alt="'):SR(this,'<img src="'+QB(e.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(e.title&&SR(this,'" title="'+QB(e.title,!0)),SR(this,'" />')))};
_.v.emph=function(e,g){this.tag(g?"em":"/em")};
_.v.strong=function(e,g){this.tag(g?"strong":"/strong")};
_.v.paragraph=function(e,g){var c=e.parent.parent;e=this.attrs(e);c!==null&&c.type==="list"&&c.listTight||(g?(this.cr(),this.tag("p",e)):(this.tag("/p"),this.cr()))};
_.v.heading=function(e,g){var c="h"+e.level;e=this.attrs(e);g?(this.cr(),this.tag(c,e)):(this.tag("/"+c),this.cr())};
_.v.code=function(e){this.tag("code");this.out(e.literal);this.tag("/code")};
_.v.code_block=function(e){var g=e.info?e.info.split(/\s+/):[],c=this.attrs(e);g.length>0&&g[0].length>0&&c.push(["class","language-"+QB(g[0],!0)]);this.cr();this.tag("pre");this.tag("code",c);this.out(e.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.v.thematic_break=function(e){e=this.attrs(e);this.cr();this.tag("hr",e,!0);this.cr()};
_.v.block_quote=function(e,g){e=this.attrs(e);g?(this.cr(),this.tag("blockquote",e)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.v.list=function(e,g){var c=e.listType==="bullet"?"ul":"ol",k=this.attrs(e);g?(e=e.listStart,e!==null&&e!==1&&k.push(["start",e.toString()]),this.cr(),this.tag(c,k)):(this.cr(),this.tag("/"+c));this.cr()};
_.v.item=function(e,g){e=this.attrs(e);g?this.tag("li",e):(this.tag("/li"),this.cr())};
_.v.custom_inline=function(e,g){g&&e.onEnter?SR(this,e.onEnter):!g&&e.onExit&&SR(this,e.onExit)};
_.v.custom_block=function(e,g){this.cr();g&&e.onEnter?SR(this,e.onEnter):!g&&e.onExit&&SR(this,e.onExit);this.cr()};
_.v.table=function(e,g){e=this.attrs(e);g?(this.cr(),this.tag("table",e)):(this.tag("/table"),this.cr())};
_.v.row=function(e,g){e._rowIsDelimiter||(e=this.attrs(e),g?this.tag("tr",e):this.tag("/tr"))};
_.v.td=function(e,g){var c=this.attrs(e);e._alignment&&c.push(["align",e._alignment]);g?this.tag("td",c):this.tag("/td")};
_.v.th=function(e,g){var c=this.attrs(e);e._alignment&&c.push(["align",e._alignment]);g?this.tag("th",c):this.tag("/th")};
_.v.out=function(e){SR(this,QB(e,!1))};
_.v.tag=function(e,g,c){if(!(this.disableTags>0)){this.buffer+="<"+e;if(g&&g.length>0){e=0;for(var k;(k=g[e])!==void 0;)this.buffer+=" "+k[0]+'="'+k[1]+'"',e++}c&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.v.attrs=function(e){var g=[];this.options.sourcepos&&(e=e.sourcepos)&&g.push(["data-sourcepos",String(e[0][0])+":"+String(e[0][1])+"-"+String(e[1][0])+":"+String(e[1][1])]);return g};
Xd.prototype.text=Xd.prototype.text;Xd.prototype.html_inline=Xd.prototype.html_inline;Xd.prototype.html_block=Xd.prototype.html_block;Xd.prototype.softbreak=Xd.prototype.softbreak;Xd.prototype.linebreak=Xd.prototype.linebreak;Xd.prototype.link=Xd.prototype.link;Xd.prototype.image=Xd.prototype.image;Xd.prototype.emph=Xd.prototype.emph;Xd.prototype.strong=Xd.prototype.strong;Xd.prototype.paragraph=Xd.prototype.paragraph;Xd.prototype.heading=Xd.prototype.heading;Xd.prototype.code=Xd.prototype.code;
Xd.prototype.code_block=Xd.prototype.code_block;Xd.prototype.thematic_break=Xd.prototype.thematic_break;Xd.prototype.block_quote=Xd.prototype.block_quote;Xd.prototype.list=Xd.prototype.list;Xd.prototype.item=Xd.prototype.item;Xd.prototype.custom_inline=Xd.prototype.custom_inline;Xd.prototype.custom_block=Xd.prototype.custom_block;Xd.prototype.table=Xd.prototype.table;Xd.prototype.row=Xd.prototype.row;Xd.prototype.td=Xd.prototype.td;Xd.prototype.th=Xd.prototype.th;Xd.prototype.out=Xd.prototype.out;
Xd.prototype.tag=Xd.prototype.tag;Xd.prototype.attrs=Xd.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 JAv,vtn,c6z;(function(){function e(F,T){return F<T?-1:F>T?1:F>=T?0:NaN}
function g(F){return function(T,Z){return e(F(T),Z)}}
function c(){for(var F=0,T=arguments.length,Z={},cz;F<T;++F){if(!(cz=arguments[F]+"")||cz in Z)throw Error("xe`"+cz);Z[cz]=[]}return new k(Z)}
function k(F){this._=F}
function I(F,T){return F.trim().split(/^|\s+/).map(function(Z){var cz="",aA=Z.indexOf(".");aA>=0&&(cz=Z.slice(aA+1),Z=Z.slice(0,aA));if(Z&&!T.hasOwnProperty(Z))throw Error("ye`"+Z);return{type:Z,name:cz}})}
function J(F,T,Z){for(var cz=0,aA=F.length;cz<aA;++cz)if(F[cz].name===T){F[cz]=SNS;F=F.slice(0,cz).concat(F.slice(cz+1));break}Z!=null&&F.push({name:T,value:Z});return F}
function q(F){var T=F,Z=T.indexOf(":");Z>=0&&(T=F.slice(0,Z))!=="xmlns"&&(F=F.slice(Z+1));return GM.hasOwnProperty(T)?{space:GM[T],local:F}:F}
function L(F){return function(){var T=this.ownerDocument,Z=this.namespaceURI;return Z==="http://www.w3.org/1999/xhtml"&&T.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?T.createElement(F):T.createElementNS(Z,F)}}
function n(F){return function(){return this.ownerDocument.createElementNS(F.space,F.local)}}
function R(F){F=q(F);return(F.local?n:L)(F)}
function W(){}
function b(F){return F==null?W:function(){return this.querySelector(F)}}
function h(F){return Array(F.length)}
function X(F,T){this.ownerDocument=F.ownerDocument;this.namespaceURI=F.namespaceURI;this._next=null;this._parent=F;this.__data__=T}
function D(F){return function(){return F}}
function f(F,T,Z,cz,aA,Dt){for(var iW=0,sC,qq=T.length,kI=Dt.length;iW<kI;++iW)(sC=T[iW])?(sC.__data__=Dt[iW],cz[iW]=sC):Z[iW]=new X(F,Dt[iW]);for(;iW<qq;++iW)if(sC=T[iW])aA[iW]=sC}
function l(F,T,Z,cz,aA,Dt,iW){var sC,qq,kI={},rZ=T.length,Dw=Dt.length,Mq=Array(rZ),uS;for(sC=0;sC<rZ;++sC)if(qq=T[sC])Mq[sC]=uS="$"+iW.call(qq,qq.__data__,sC,T),uS in kI?aA[sC]=qq:kI[uS]=qq;for(sC=0;sC<Dw;++sC)uS="$"+iW.call(F,Dt[sC],sC,Dt),(qq=kI[uS])?(cz[sC]=qq,qq.__data__=Dt[sC],kI[uS]=null):Z[sC]=new X(F,Dt[sC]);for(sC=0;sC<rZ;++sC)(qq=T[sC])&&kI[Mq[sC]]===qq&&(aA[sC]=qq)}
function A(F,T){return F<T?-1:F>T?1:F>=T?0:NaN}
function d(F){return function(){this.removeAttribute(F)}}
function S(F){return function(){this.removeAttributeNS(F.space,F.local)}}
function V(F,T){return function(){this.setAttribute(F,T)}}
function Q(F,T){return function(){this.setAttributeNS(F.space,F.local,T)}}
function y(F,T){return function(){var Z=T.apply(this,arguments);Z==null?this.removeAttribute(F):this.setAttribute(F,Z)}}
function O(F,T){return function(){var Z=T.apply(this,arguments);Z==null?this.removeAttributeNS(F.space,F.local):this.setAttributeNS(F.space,F.local,Z)}}
function Jq(F){return function(){this.style.removeProperty(F)}}
function LC(F,T,Z){return function(){this.style.setProperty(F,T,Z)}}
function bW(F,T,Z){return function(){var cz=T.apply(this,arguments);cz==null?this.style.removeProperty(F):this.style.setProperty(F,cz,Z)}}
function RA(F,T){return F.style.getPropertyValue(T)||(F.ownerDocument&&F.ownerDocument.defaultView||F.document&&F||F.defaultView).getComputedStyle(F,null).getPropertyValue(T)}
function Xg(F){return function(){delete this[F]}}
function Fg(F,T){return function(){this[F]=T}}
function oA(F,T){return function(){var Z=T.apply(this,arguments);Z==null?delete this[F]:this[F]=Z}}
function Zt(){this.textContent=""}
function Ev(F){return function(){this.textContent=F}}
function an(F){return function(){var T=F.apply(this,arguments);this.textContent=T==null?"":T}}
function V6(){this.innerHTML=""}
function bs(F){return function(){this.innerHTML=F}}
function f1(F){return function(){var T=F.apply(this,arguments);this.innerHTML=T==null?"":T}}
function hk(){return null}
function Pq(){var F=this.parentNode;F&&F.removeChild(this)}
function vq(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function hq(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function zv(F,T,Z){F=XM(F,T,Z);return function(cz){var aA=cz.relatedTarget;aA&&(aA===this||aA.compareDocumentPosition(this)&8)||F.call(this,cz)}}
function XM(F,T,Z){return function(){F.call(this,this.__data__,T,Z)}}
function Su(F){return F.trim().split(/^|\s+/).map(function(T){var Z="",cz=T.indexOf(".");cz>=0&&(Z=T.slice(cz+1),T=T.slice(0,cz));return{type:T,name:Z}})}
function p1(F){return function(){var T=this.__on;if(T){for(var Z=0,cz=-1,aA=T.length,Dt;Z<aA;++Z)(Dt=T[Z],F.type&&Dt.type!==F.type||Dt.name!==F.name)?T[++cz]=Dt:this.removeEventListener(Dt.type,Dt.listener,Dt.capture);++cz?T.length=cz:delete this.__on}}}
function C1(F,T,Z){var cz=g9k.hasOwnProperty(F.type)?zv:XM;return function(aA,Dt,iW){aA=this.__on;var sC;Dt=cz(T,Dt,iW);if(aA){iW=0;for(var qq=aA.length;iW<qq;++iW)if((sC=aA[iW]).type===F.type&&sC.name===F.name){this.removeEventListener(sC.type,sC.listener,sC.capture);this.addEventListener(sC.type,sC.listener=Dt,sC.capture=Z);sC.value=T;return}}this.addEventListener(F.type,Dt,Z);sC={type:F.type,name:F.name,value:T,listener:Dt,capture:Z};aA?aA.push(sC):this.__on=[sC]}}
function mz(F,T,Z){var cz=F.ownerDocument&&F.ownerDocument.defaultView||F.document&&F||F.defaultView,aA=cz.CustomEvent;typeof aA==="function"?aA=new aA(T,Z):(aA=cz.document.createEvent("Event"),Z?(aA.initEvent(T,Z.bubbles,Z.cancelable),aA.detail=Z.detail):aA.initEvent(T,!1,!1));F.dispatchEvent(aA)}
function Ov(F,T){return function(){return mz(this,F,T)}}
function Rx(F,T){return function(){return mz(this,F,T.apply(this,arguments))}}
function V4(F,T){this._groups=F;this._parents=T}
function to(){return new V4([[document.documentElement]],yig)}
function L1(){this._="@"+(++KHO).toString(36)}
function Wq(F,T,Z){F.prototype=T.prototype=Z;Z.constructor=F}
function Ww(F,T){F=Object.create(F.prototype);for(var Z in T)F[Z]=T[Z];return F}
function Bw(){}
function Uv(F){var T;F=(F+"").trim().toLowerCase();return(T=O$M.exec(F))?(T=parseInt(T[1],16),new MM(T>>8&15|T>>4&240,T>>4&15|T&240,(T&15)<<4|T&15,1)):(T=Mdv.exec(F))?jz(parseInt(T[1],16)):(T=CXQ.exec(F))?new MM(T[1],T[2],T[3],1):(T=eXq.exec(F))?new MM(T[1]*255/100,T[2]*255/100,T[3]*255/100,1):(T=geQ.exec(F))?J0(T[1],T[2],T[3],T[4]):(T=cpg.exec(F))?J0(T[1]*255/100,T[2]*255/100,T[3]*255/100,T[4]):(T=k27.exec(F))?kF(T[1],T[2]/100,T[3]/100,1):(T=IID.exec(F))?kF(T[1],T[2]/100,T[3]/100,T[4]):c8B.hasOwnProperty(F)?
jz(c8B[F]):F==="transparent"?new MM(NaN,NaN,NaN,0):null}
function jz(F){return new MM(F>>16&255,F>>8&255,F&255,1)}
function J0(F,T,Z,cz){cz<=0&&(F=T=Z=NaN);return new MM(F,T,Z,cz)}
function on(F){F instanceof Bw||(F=Uv(F));if(!F)return new MM;F=F.rgb();return new MM(F.r,F.g,F.b,F.opacity)}
function ng(F,T,Z,cz){return arguments.length===1?on(F):new MM(F,T,Z,cz==null?1:cz)}
function MM(F,T,Z,cz){this.r=+F;this.g=+T;this.b=+Z;this.opacity=+cz}
function I3(F){F=Math.max(0,Math.min(255,Math.round(F)||0));return(F<16?"0":"")+F.toString(16)}
function kF(F,T,Z,cz){cz<=0?F=T=Z=NaN:Z<=0||Z>=1?F=T=NaN:T<=0&&(F=NaN);return new bK(F,T,Z,cz)}
function F1(F){if(F instanceof bK)return new bK(F.h,F.s,F.l,F.opacity);F instanceof Bw||(F=Uv(F));if(!F)return new bK;if(F instanceof bK)return F;F=F.rgb();var T=F.r/255,Z=F.g/255,cz=F.b/255,aA=Math.min(T,Z,cz),Dt=Math.max(T,Z,cz),iW=NaN,sC=Dt-aA,qq=(Dt+aA)/2;sC?(iW=T===Dt?(Z-cz)/sC+(Z<cz)*6:Z===Dt?(cz-T)/sC+2:(T-Z)/sC+4,sC/=qq<.5?Dt+aA:2-Dt-aA,iW*=60):sC=qq>0&&qq<1?0:iW;return new bK(iW,sC,qq,F.opacity)}
function Uu(F,T,Z,cz){return arguments.length===1?F1(F):new bK(F,T,Z,cz==null?1:cz)}
function bK(F,T,Z,cz){this.h=+F;this.s=+T;this.l=+Z;this.opacity=+cz}
function ZE(F,T,Z){return(F<60?T+(Z-T)*F/60:F<180?Z:F<240?T+(Z-T)*(240-F)/60:T)*255}
function b0(F){if(F instanceof me)return new me(F.l,F.a,F.b,F.opacity);if(F instanceof is){if(isNaN(F.h))return new me(F.l,0,0,F.opacity);var T=F.h*kAZ;return new me(F.l,Math.cos(T)*F.c,Math.sin(T)*F.c,F.opacity)}F instanceof MM||(F=on(F));var Z=$X(F.r),cz=$X(F.g),aA=$X(F.b);T=Q6(.2225045*Z+.7168786*cz+.0606169*aA);if(Z===cz&&cz===aA)var Dt=Z=T;else Dt=Q6((.4360747*Z+.3850649*cz+.1430804*aA)/.96422),Z=Q6((.0139322*Z+.0971045*cz+.7141733*aA)/.82521);return new me(116*T-16,500*(Dt-T),200*(T-Z),F.opacity)}
function me(F,T,Z,cz){this.l=+F;this.a=+T;this.b=+Z;this.opacity=+cz}
function Q6(F){return F>Jpz?Math.pow(F,1/3):F/Ifu+J84}
function y6(F){return F>tm?F*F*F:Ifu*(F-J84)}
function Gq(F){return 255*(F<=.0031308?12.92*F:1.055*Math.pow(F,1/2.4)-.055)}
function $X(F){return(F/=255)<=.04045?F/12.92:Math.pow((F+.055)/1.055,2.4)}
function PJ(F){if(F instanceof is)return new is(F.h,F.c,F.l,F.opacity);F instanceof me||(F=b0(F));if(F.a===0&&F.b===0)return new is(NaN,0,F.l,F.opacity);var T=Math.atan2(F.b,F.a)*v9I;return new is(T<0?T+360:T,Math.sqrt(F.a*F.a+F.b*F.b),F.l,F.opacity)}
function mO(F,T,Z,cz){return arguments.length===1?PJ(F):new is(F,T,Z,cz==null?1:cz)}
function is(F,T,Z,cz){this.h=+F;this.c=+T;this.l=+Z;this.opacity=+cz}
function ju(F,T,Z,cz){if(arguments.length===1){var aA=F;if(aA instanceof ox)aA=new ox(aA.h,aA.s,aA.l,aA.opacity);else{aA instanceof MM||(aA=on(aA));var Dt=aA.g/255,iW=aA.b/255,sC=(wGw*iW+aA.r/255*-1.7884503806-3.5172982438*Dt)/(wGw+-1.7884503806-3.5172982438);iW-=sC;var qq=(1.97294*(Dt-sC)- -.29227*iW)/-.90649;iW=(Dt=Math.sqrt(qq*qq+iW*iW)/(1.97294*sC*(1-sC)))?Math.atan2(qq,iW)*v9I-120:NaN;aA=new ox(iW<0?iW+360:iW,Dt,sC,aA.opacity)}}else aA=new ox(F,T,Z,cz==null?1:cz);return aA}
function ox(F,T,Z,cz){this.h=+F;this.s=+T;this.l=+Z;this.opacity=+cz}
function vJ(F,T,Z,cz,aA){var Dt=F*F,iW=Dt*F;return((1-3*F+3*Dt-iW)*T+(4-6*Dt+3*iW)*Z+(1+3*F+3*Dt-3*iW)*cz+iW*aA)/6}
function xI(F){return function(){return F}}
function Av(F,T){return function(Z){return F+Z*T}}
function oy(F,T,Z){return F=Math.pow(F,Z),T=Math.pow(T,Z)-F,Z=1/Z,function(cz){return Math.pow(F+cz*T,Z)}}
function o3(F,T){var Z=T-F;return Z?Av(F,Z>180||Z<-180?Z-360*Math.round(Z/360):Z):xI(isNaN(F)?T:F)}
function E5(F){return(F=+F)===1?en:function(T,Z){return Z-T?oy(T,Z,F):xI(isNaN(T)?Z:T)}}
function en(F,T){var Z=T-F;return Z?Av(F,Z):xI(isNaN(F)?T:F)}
function cV(F){return function(T){var Z=T.length,cz=Array(Z),aA=Array(Z),Dt=Array(Z),iW;for(iW=0;iW<Z;++iW){var sC=ng(T[iW]);cz[iW]=sC.r||0;aA[iW]=sC.g||0;Dt[iW]=sC.b||0}cz=F(cz);aA=F(aA);Dt=F(Dt);sC.opacity=1;return function(qq){sC.r=cz(qq);sC.g=aA(qq);sC.b=Dt(qq);return sC+""}}}
function ie(F,T){return F=+F,T-=F,function(Z){return F+T*Z}}
function NW(F){return function(){return F}}
function w4(F){return function(T){return F(T)+""}}
function pf(F,T){var Z=cTp.lastIndex=kOU.lastIndex=0,cz,aA,Dt,iW=-1,sC=[],qq=[];F+="";for(T+="";(cz=cTp.exec(F))&&(aA=kOU.exec(T));)(Dt=aA.index)>Z&&(Dt=T.slice(Z,Dt),sC[iW]?sC[iW]+=Dt:sC[++iW]=Dt),(cz=cz[0])===(aA=aA[0])?sC[iW]?sC[iW]+=aA:sC[++iW]=aA:(sC[++iW]=null,qq.push({i:iW,x:ie(cz,aA)})),Z=kOU.lastIndex;Z<T.length&&(Dt=T.slice(Z),sC[iW]?sC[iW]+=Dt:sC[++iW]=Dt);return sC.length<2?qq[0]?w4(qq[0].x):NW(T):(T=qq.length,function(kI){for(var rZ=0,Dw;rZ<T;++rZ)sC[(Dw=qq[rZ]).i]=Dw.x(kI);return sC.join("")})}
function bb(F,T,Z,cz,aA,Dt){var iW,sC,qq;if(iW=Math.sqrt(F*F+T*T))F/=iW,T/=iW;if(qq=F*Z+T*cz)Z-=F*qq,cz-=T*qq;if(sC=Math.sqrt(Z*Z+cz*cz))Z/=sC,cz/=sC,qq/=sC;F*cz<T*Z&&(F=-F,T=-T,qq=-qq,iW=-iW);return{translateX:aA,translateY:Dt,rotate:Math.atan2(T,F)*q8n,skewX:Math.atan(qq)*q8n,scaleX:iW,scaleY:sC}}
function hZ(F,T,Z,cz){function aA(kI){return kI.length?kI.pop()+" ":""}
function Dt(kI,rZ,Dw,Mq,uS,pm){kI!==Dw||rZ!==Mq?(uS=uS.push("translate(",null,T,null,Z),pm.push({i:uS-4,x:ie(kI,Dw)},{i:uS-2,x:ie(rZ,Mq)})):(Dw||Mq)&&uS.push("translate("+Dw+T+Mq+Z)}
function iW(kI,rZ,Dw,Mq){kI!==rZ?(kI-rZ>180?rZ+=360:rZ-kI>180&&(kI+=360),Mq.push({i:Dw.push(aA(Dw)+"rotate(",null,cz)-2,x:ie(kI,rZ)})):rZ&&Dw.push(aA(Dw)+"rotate("+rZ+cz)}
function sC(kI,rZ,Dw,Mq){kI!==rZ?Mq.push({i:Dw.push(aA(Dw)+"skewX(",null,cz)-2,x:ie(kI,rZ)}):rZ&&Dw.push(aA(Dw)+"skewX("+rZ+cz)}
function qq(kI,rZ,Dw,Mq,uS,pm){kI!==Dw||rZ!==Mq?(uS=uS.push(aA(uS)+"scale(",null,",",null,")"),pm.push({i:uS-4,x:ie(kI,Dw)},{i:uS-2,x:ie(rZ,Mq)})):Dw===1&&Mq===1||uS.push(aA(uS)+"scale("+Dw+","+Mq+")")}
return function(kI,rZ){var Dw=[],Mq=[];kI=F(kI);rZ=F(rZ);Dt(kI.translateX,kI.translateY,rZ.translateX,rZ.translateY,Dw,Mq);iW(kI.rotate,rZ.rotate,Dw,Mq);sC(kI.skewX,rZ.skewX,Dw,Mq);qq(kI.scaleX,kI.scaleY,rZ.scaleX,rZ.scaleY,Dw,Mq);kI=rZ=null;return function(uS){for(var pm=-1,Oh=Mq.length,uj;++pm<Oh;)Dw[(uj=Mq[pm]).i]=uj.x(uS);return Dw.join("")}}}
function xW(F){return function(T,Z){var cz=F((T=Uu(T)).h,(Z=Uu(Z)).h),aA=en(T.s,Z.s),Dt=en(T.l,Z.l),iW=en(T.opacity,Z.opacity);return function(sC){T.h=cz(sC);T.s=aA(sC);T.l=Dt(sC);T.opacity=iW(sC);return T+""}}}
function ko(F){return function(T,Z){var cz=F((T=mO(T)).h,(Z=mO(Z)).h),aA=en(T.c,Z.c),Dt=en(T.l,Z.l),iW=en(T.opacity,Z.opacity);return function(sC){T.h=cz(sC);T.c=aA(sC);T.l=Dt(sC);T.opacity=iW(sC);return T+""}}}
function jY(F){return function cz(Z){function aA(Dt,iW){var sC=F((Dt=ju(Dt)).h,(iW=ju(iW)).h),qq=en(Dt.s,iW.s),kI=en(Dt.l,iW.l),rZ=en(Dt.opacity,iW.opacity);return function(Dw){Dt.h=sC(Dw);Dt.s=qq(Dw);Dt.l=kI(Math.pow(Dw,Z));Dt.opacity=rZ(Dw);return Dt+""}}
Z=+Z;aA.gamma=cz;return aA}(1)}
function iF(){return G2||(LDw(cO),G2=tB.now()+tWC)}
function cO(){G2=0}
function Cu(){this._call=this._time=this._next=null}
function I0(F,T,Z){var cz=new Cu;cz.restart(F,T,Z);return cz}
function hD(){G2=(BFC=tB.now())+tWC;Bp=BD=0;try{iF();++Bp;for(var F=NFK,T;F;)(T=G2-F._time)>=0&&F._call.call(null,T),F=F._next;--Bp}finally{Bp=0;F=NFK;for(var Z=Infinity;F;)if(F._call){Z>F._time&&(Z=F._time);var cz=F;F=F._next}else T=F._next,F._next=null,F=cz?cz._next=T:NFK=T;NJ=cz;eA(Z);G2=0}}
function yV(){var F=tB.now(),T=F-BFC;T>1E3&&(tWC-=T,BFC=F)}
function eA(F){Bp||(BD&&(BD=clearTimeout(BD)),F-G2>24?(F<Infinity&&(BD=setTimeout(hD,F-tB.now()-tWC)),Se&&(Se=clearInterval(Se))):(Se||(BFC=tB.now(),Se=setInterval(yV,1E3)),Bp=1,LDw(hD)))}
function qw(F,T,Z){var cz=new Cu;T=T==null?0:+T;cz.restart(function(aA){cz.stop();F(aA+T)},T,Z);
return cz}
function eu(F,T,Z,cz,aA,Dt){var iW=F.__transition;if(!iW)F.__transition={};else if(Z in iW)return;dy(F,Z,{name:T,index:cz,group:aA,on:veM,tween:wuS,time:Dt.time,delay:Dt.delay,duration:Dt.duration,ease:Dt.ease,timer:null,state:0})}
function bS(F,T){F=Sz(F,T);if(F.state>0)throw Error("ze");return F}
function lS(F,T){F=Sz(F,T);if(F.state>2)throw Error("Ae");return F}
function Sz(F,T){F=F.__transition;if(!F||!(F=F[T]))throw Error("Be");return F}
function dy(F,T,Z){function cz(qq){var kI,rZ;if(Z.state!==1)return Dt();for(Mq in iW){var Dw=iW[Mq];if(Dw.name===Z.name){if(Dw.state===3)return qw(cz);Dw.state===4?(Dw.state=6,Dw.timer.stop(),Dw.on.call("interrupt",F,F.__data__,Dw.index,Dw.group),delete iW[Mq]):+Mq<T&&(Dw.state=6,Dw.timer.stop(),delete iW[Mq])}}qw(function(){Z.state===3&&(Z.state=4,Z.timer.restart(aA,Z.delay,Z.time),aA(qq))});
Z.state=2;Z.on.call("start",F,F.__data__,Z.index,Z.group);if(Z.state===2){Z.state=3;sC=Array(rZ=Z.tween.length);var Mq=0;for(kI=-1;Mq<rZ;++Mq)if(Dw=Z.tween[Mq].value.call(F,F.__data__,Z.index,Z.group))sC[++kI]=Dw;sC.length=kI+1}}
function aA(qq){qq=qq<Z.duration?Z.ease.call(null,qq/Z.duration):(Z.timer.restart(Dt),Z.state=5,1);for(var kI=-1,rZ=sC.length;++kI<rZ;)sC[kI].call(null,qq);Z.state===5&&(Z.on.call("end",F,F.__data__,Z.index,Z.group),Dt())}
function Dt(){Z.state=6;Z.timer.stop();delete iW[T];for(var qq in iW)return;delete F.__transition}
var iW=F.__transition,sC;iW[T]=Z;Z.timer=I0(function(qq){Z.state=1;Z.timer.restart(cz,Z.delay,Z.time);Z.delay<=qq&&cz(qq-Z.delay)},0,Z.time)}
function Uy(F,T){var Z,cz;return function(){var aA=lS(this,F),Dt=aA.tween;if(Dt!==Z){cz=Z=Dt;Dt=0;for(var iW=cz.length;Dt<iW;++Dt)if(cz[Dt].name===T){cz=cz.slice();cz.splice(Dt,1);break}}aA.tween=cz}}
function Vd(F,T,Z){var cz,aA;if(typeof Z!=="function")throw Error();return function(){var Dt=lS(this,F),iW=Dt.tween;if(iW!==cz){aA=(cz=iW).slice();iW={name:T,value:Z};for(var sC=0,qq=aA.length;sC<qq;++sC)if(aA[sC].name===T){aA[sC]=iW;break}sC===qq&&aA.push(iW)}Dt.tween=aA}}
function UV(F,T,Z){var cz=F._id;F.each(function(){var aA=lS(this,cz);(aA.value||(aA.value={}))[T]=Z.apply(this,arguments)});
return function(aA){return Sz(aA,cz).value[T]}}
function xD(F,T){var Z;return(typeof T==="number"?ie:T instanceof Uv?r81:(Z=Uv(T))?(T=Z,r81):pf)(F,T)}
function xe(F){return function(){this.removeAttribute(F)}}
function Sf6(F){return function(){this.removeAttributeNS(F.space,F.local)}}
function y2v(F,T,Z){var cz,aA;return function(){var Dt=this.getAttribute(F);return Dt===Z?null:Dt===cz?aA:aA=T(cz=Dt,Z)}}
function ym(F,T,Z){var cz,aA;return function(){var Dt=this.getAttributeNS(F.space,F.local);return Dt===Z?null:Dt===cz?aA:aA=T(cz=Dt,Z)}}
function KNC(F,T,Z){var cz,aA,Dt;return function(){var iW=Z(this);if(iW==null)return void this.removeAttribute(F);var sC=this.getAttribute(F);return sC===iW?null:sC===cz&&iW===aA?Dt:Dt=T(cz=sC,aA=iW)}}
function KI(F,T,Z){var cz,aA,Dt;return function(){var iW=Z(this);if(iW==null)return void this.removeAttributeNS(F.space,F.local);var sC=this.getAttributeNS(F.space,F.local);return sC===iW?null:sC===cz&&iW===aA?Dt:Dt=T(cz=sC,aA=iW)}}
function OD(F,T){function Z(){var cz=this,aA=T.apply(cz,arguments);return aA&&function(Dt){cz.setAttributeNS(F.space,F.local,aA(Dt))}}
Z._value=T;return Z}
function OB8(F,T){function Z(){var cz=this,aA=T.apply(cz,arguments);return aA&&function(Dt){cz.setAttribute(F,aA(Dt))}}
Z._value=T;return Z}
function qPM(F,T){return function(){bS(this,F).delay=+T.apply(this,arguments)}}
function LdS(F,T){return T=+T,function(){bS(this,F).delay=T}}
function rpg(F,T){return function(){lS(this,F).duration=+T.apply(this,arguments)}}
function aIq(F,T){return T=+T,function(){lS(this,F).duration=T}}
function neO(F,T){if(typeof T!=="function")throw Error();return function(){lS(this,F).ease=T}}
function RXj(F){return(F+"").trim().split(/^|\s+/).every(function(T){var Z=T.indexOf(".");Z>=0&&(T=T.slice(0,Z));return!T||T==="start"})}
function Eeo(F,T,Z){var cz,aA,Dt=RXj(T)?bS:lS;return function(){var iW=Dt(this,F),sC=iW.on;if(sC!==cz)(aA=(cz=sC).copy()).on(T,Z);iW.on=aA}}
function Wdo(F){return function(){var T=this.parentNode,Z;for(Z in this.__transition)if(+Z!==F)return;T&&T.removeChild(this)}}
function b7M(F,T){var Z,cz,aA;return function(){var Dt=RA(this,F),iW=(this.style.removeProperty(F),RA(this,F));return Dt===iW?null:Dt===Z&&iW===cz?aA:aA=T(Z=Dt,cz=iW)}}
function hX7(F){return function(){this.style.removeProperty(F)}}
function Xuv(F,T,Z){var cz,aA;return function(){var Dt=RA(this,F);return Dt===Z?null:Dt===cz?aA:aA=T(cz=Dt,Z)}}
function G20(F,T,Z){var cz,aA,Dt;return function(){var iW=RA(this,F),sC=Z(this);sC==null&&(sC=(this.style.removeProperty(F),RA(this,F)));return iW===sC?null:iW===cz&&sC===aA?Dt:Dt=T(cz=iW,aA=sC)}}
function xuM(F,T,Z){function cz(){var aA=this,Dt=T.apply(aA,arguments);return Dt&&function(iW){aA.style.setProperty(F,Dt(iW),Z)}}
cz._value=T;return cz}
function DuQ(F){return function(){this.textContent=F}}
function $uQ(F){return function(){var T=F(this);this.textContent=T==null?"":T}}
function L8(F,T,Z,cz){this._groups=F;this._parents=T;this._name=Z;this._id=cz}
function IRt(F){return{type:F}}
function JTW(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function MWC(){}
function af1(F,T){var Z=new MWC;if(F instanceof MWC)F.each(function(iW,sC){Z.set(sC,iW)});
else if(Array.isArray(F)){var cz=-1,aA=F.length,Dt;if(T==null)for(;++cz<aA;)Z.set(cz,F[cz]);else for(;++cz<aA;)Z.set(T(Dt=F[cz],cz,F),Dt)}else if(F)for(cz in F)Z.set(cz,F[cz]);return Z}
function Cft(){}
function n9v(F){return function(T){for(var Z={},cz=0;cz<F.length;cz++)Z[F[cz]]=T[cz]||"";return Z}}
function YPl(F,T){var Z=n9v(F);return function(cz,aA){return T(Z(cz),aA,F)}}
function fIg(F){var T=Object.create(null),Z=[];F.forEach(function(cz){for(var aA in cz)aA in T||Z.push(T[aA]=aA)});
return Z}
function Ru1(F){function T(iW,sC){function qq(){if(pm)return vGK;if(Oh)return Oh=!1,E9q;var Ef,qt=Dw,p_;if(iW.charCodeAt(qt)===34){for(;Dw++<rZ&&iW.charCodeAt(Dw)!==34||iW.charCodeAt(++Dw)===34;);(Ef=Dw)>=rZ?pm=!0:(p_=iW.charCodeAt(Dw++))===10?Oh=!0:p_===13&&(Oh=!0,iW.charCodeAt(Dw)===10&&++Dw);return iW.slice(qt+1,Ef-1).replace(/""/g,'"')}for(;Dw<rZ;){if((p_=iW.charCodeAt(Ef=Dw++))===10)Oh=!0;else if(p_===13)Oh=!0,iW.charCodeAt(Dw)===10&&++Dw;else if(p_!==Dt)continue;return iW.slice(qt,Ef)}return pm=
!0,iW.slice(qt,rZ)}
var kI=[],rZ=iW.length,Dw=0,Mq=0,uS,pm=rZ<=0,Oh=!1;iW.charCodeAt(rZ-1)===10&&--rZ;for(iW.charCodeAt(rZ-1)===13&&--rZ;(uS=qq())!==vGK;){for(var uj=[];uS!==E9q&&uS!==vGK;)uj.push(uS),uS=qq();sC&&(uj=sC(uj,Mq++))==null||kI.push(uj)}return kI}
function Z(iW){return iW.map(cz).join(F)}
function cz(iW){return iW==null?"":aA.test(iW)?'"'+iW.replace(/"/g,'""')+'"':iW}
var aA=new RegExp('["'+F+"\n\r]"),Dt=F.charCodeAt(0);return{parse:function(iW,sC){var qq,kI;iW=T(iW,function(rZ,Dw){if(qq)return qq(rZ,Dw-1);kI=rZ;qq=sC?YPl(rZ,sC):n9v(rZ)});
iW.columns=kI||[];return iW},
parseRows:T,format:function(iW,sC){sC==null&&(sC=fIg(iW));return[sC.map(cz).join(F)].concat(iW.map(function(qq){return sC.map(function(kI){return cz(qq[kI])}).join(F)})).join("\n")},
formatRows:function(iW){return iW.map(Z).join("\n")}}}
function jjS(F){if(!F.ok)throw Error("Ce`"+F.status+"`"+F.statusText);return F.text()}
function WDn(F){return function(T,Z,cz){arguments.length===2&&typeof Z==="function"&&(cz=Z,Z=void 0);return fetch(T,Z).then(jjS).then(function(aA){return F(aA,cz)})}}
function bSB(F,T,Z,cz){if(isNaN(T)||isNaN(Z))return F;var aA,Dt=F._root;cz={data:cz};var iW=F._x0,sC=F._y0,qq=F._x1,kI=F._y1,rZ,Dw,Mq,uS,pm;if(!Dt)return F._root=cz,F;for(;Dt.length;)if((Mq=T>=(rZ=(iW+qq)/2))?iW=rZ:qq=rZ,(uS=Z>=(Dw=(sC+kI)/2))?sC=Dw:kI=Dw,aA=Dt,!(Dt=Dt[pm=uS<<1|Mq]))return aA[pm]=cz,F;var Oh=+F._x.call(null,Dt.data);var uj=+F._y.call(null,Dt.data);if(T===Oh&&Z===uj)return cz.next=Dt,aA?aA[pm]=cz:F._root=cz,F;do aA=aA?aA[pm]=Array(4):F._root=Array(4),(Mq=T>=(rZ=(iW+qq)/2))?iW=rZ:qq=
rZ,(uS=Z>=(Dw=(sC+kI)/2))?sC=Dw:kI=Dw;while((pm=uS<<1|Mq)===(Mq=(uj>=Dw)<<1|Oh>=rZ));return aA[Mq]=Dt,aA[pm]=cz,F}
function I1(F,T,Z,cz,aA){this.node=F;this.x0=T;this.y0=Z;this.x1=cz;this.y1=aA}
function i7x(F){return F[0]}
function PP0(F){return F[1]}
function wIt(F,T,Z,cz,aA,Dt){this._x=F;this._y=T;this._x0=Z;this._y0=cz;this._x1=aA;this._y1=Dt;this._root=void 0}
function huv(F){for(var T={data:F.data},Z=T;F=F.next;)Z=Z.next={data:F.data};return T}
function eGW(F,T){if((T=(F=T?F.toExponential(T-1):F.toExponential()).indexOf("e"))<0)return null;var Z=F.slice(0,T);return[Z.length>1?Z[0]+Z.slice(2):Z,+F.slice(T+1)]}
function mux(F){return F=eGW(Math.abs(F)),F?F[1]:NaN}
function puv(F,T){return function(Z,cz){for(var aA=Z.length,Dt=[],iW=0,sC=F[0],qq=0;aA>0&&sC>0;){qq+sC+1>cz&&(sC=Math.max(1,cz-qq));Dt.push(Z.substring(aA-=sC,aA+sC));if((qq+=sC+1)>cz)break;sC=F[iW=(iW+1)%F.length]}return Dt.reverse().join(T)}}
function Tzj(F){return function(T){return T.replace(/[0-9]/g,function(Z){return F[+Z]})}}
function qwC(F){return new Lwz(F)}
function Lwz(F){if(!(T=lID.exec(F)))throw Error("De`"+F);var T;this.fill=T[1]||" ";this.align=T[2]||">";this.sign=T[3]||"-";this.symbol=T[4]||"";this.zero=!!T[5];this.width=T[6]&&+T[6];this.comma=!!T[7];this.precision=T[8]&&+T[8].slice(1);this.trim=!!T[9];this.type=T[10]||""}
function XGu(F,T){T=eGW(F,T);if(!T)return F+"";F=T[0];T=T[1];return T<0?"0."+Array(-T).join("0")+F:F.length>T+1?F.slice(0,T+1)+"."+F.slice(T+1):F+Array(T-F.length+2).join("0")}
function GAB(F){return F}
function Apv(F){function T(sC){function qq(cA){var TI=p_,Cg=D3,YB,R3;if(qt==="c")Cg=Ln(cA)+Cg,cA="";else{cA=+cA;var dj=cA<0;cA=Ln(Math.abs(cA),uj);if(Ef){var qN=cA.length,cd=1,Wy=-1;a:for(;cd<qN;++cd)switch(cA[cd]){case ".":Wy=YB=cd;break;case "0":Wy===0&&(Wy=cd);YB=cd;break;default:if(!+cA[cd])break a;Wy>0&&(Wy=0)}cA=Wy>0?cA.slice(0,Wy)+cA.slice(YB+1):cA}dj&&+cA===0&&(dj=!1);TI=(dj?Dw==="("?Dw:"-":Dw==="-"||Dw==="("?"":Dw)+TI;Cg=(qt==="s"?x6v[8+D6s/3]:"")+Cg+(dj&&Dw==="("?")":"");if(mq)for(dj=-1,
YB=cA.length;++dj<YB;)if(R3=cA.charCodeAt(dj),48>R3||R3>57){Cg=(R3===46?aA+cA.slice(dj+1):cA.slice(dj))+Cg;cA=cA.slice(0,dj);break}}Oh&&!uS&&(cA=Z(cA,Infinity));R3=TI.length+cA.length+Cg.length;dj=R3<pm?Array(pm-R3+1).join(kI):"";Oh&&uS&&(cA=Z(dj+cA,dj.length?pm-Cg.length:Infinity),dj="");switch(rZ){case "<":cA=TI+cA+Cg+dj;break;case "=":cA=TI+dj+cA+Cg;break;case "^":cA=dj.slice(0,R3=dj.length>>1)+TI+cA+Cg+dj.slice(R3);break;default:cA=dj+TI+cA+Cg}return Dt(cA)}
sC=qwC(sC);var kI=sC.fill,rZ=sC.align,Dw=sC.sign,Mq=sC.symbol,uS=sC.zero,pm=sC.width,Oh=sC.comma,uj=sC.precision,Ef=sC.trim,qt=sC.type;qt==="n"?(Oh=!0,qt="g"):$6M[qt]||(uj==null&&(uj=12),Ef=!0,qt="g");if(uS||kI==="0"&&rZ==="=")uS=!0,kI="0",rZ="=";var p_=Mq==="$"?cz[0]:Mq==="#"&&/[boxX]/.test(qt)?"0"+qt.toLowerCase():"",D3=Mq==="$"?cz[1]:/[%p]/.test(qt)?iW:"",Ln=$6M[qt],mq=/[defgprs%]/.test(qt);uj=uj==null?6:/[gprs]/.test(qt)?Math.max(1,Math.min(21,uj)):Math.max(0,Math.min(20,uj));qq.toString=function(){return sC+
""};
return qq}
var Z=F.grouping&&F.thousands?puv(F.grouping,F.thousands):GAB,cz=F.currency,aA=F.decimal,Dt=F.numerals?Tzj(F.numerals):GAB,iW=F.percent||"%";return{format:T,formatPrefix:function(sC,qq){var kI=T((sC=qwC(sC),sC.type="f",sC));sC=Math.max(-8,Math.min(8,Math.floor(mux(qq)/3)))*3;var rZ=Math.pow(10,-sC),Dw=x6v[8+sC/3];return function(Mq){return kI(rZ*Mq)+Dw}}}}
function D4(){this.reset()}
function Y8I(F,T,Z){var cz=F.s=T+Z,aA=cz-T;F.t=T-(cz-aA)+(Z-aA)}
function gNV(F){return F>1?DZ:F<-1?-DZ:Math.asin(F)}
function sjO(){}
function ffu(F){var T=F[0];F=F[1];var Z=$D(F);return[Z*$D(T),Z*ot(T),ot(F)]}
function j8I(F,T){return[F[1]*T[2]-F[2]*T[1],F[2]*T[0]-F[0]*T[2],F[0]*T[1]-F[1]*T[0]]}
function iSk(F){var T=cOC(F[0]*F[0]+F[1]*F[1]+F[2]*F[2]);F[0]/=T;F[1]/=T;F[2]/=T}
function Fdq(){var F=[],T;return{point:function(Z,cz){T.push([Z,cz])},
lineStart:function(){F.push(T=[])},
lineEnd:sjO,rejoin:function(){F.length>1&&F.push(F.pop().concat(F.shift()))},
result:function(){var Z=F;F=[];T=null;return Z}}}
function kyK(F,T,Z,cz){this.x=F;this.z=T;this.o=Z;this.e=cz;this.v=!1;this.n=this.p=null}
function uoq(F,T,Z,cz,aA){var Dt=[],iW=[];F.forEach(function(Dw){if(!((Mq=Dw.length-1)<=0)){var Mq,uS=Dw[0],pm=Dw[Mq],Oh=uS;if(rm(Oh[0]-pm[0])<1E-6&&rm(Oh[1]-pm[1])<1E-6){aA.lineStart();for(sC=0;sC<Mq;++sC)aA.point((uS=Dw[sC])[0],uS[1]);aA.lineEnd()}else Dt.push(Mq=new kyK(uS,Dw,null,!0)),iW.push(Mq.o=new kyK(uS,null,Mq,!1)),Dt.push(Mq=new kyK(pm,Dw,null,!1)),iW.push(Mq.o=new kyK(pm,null,Mq,!0))}});
if(Dt.length){iW.sort(T);Ph4(Dt);Ph4(iW);var sC=0;for(F=iW.length;sC<F;++sC)iW[sC].e=Z=!Z;Z=Dt[0];for(var qq;;){for(var kI=Z,rZ=!0;kI.v;)if((kI=kI.n)===Z)return;T=kI.z;aA.lineStart();do{kI.v=kI.o.v=!0;if(kI.e){if(rZ)for(sC=0,F=T.length;sC<F;++sC)aA.point((qq=T[sC])[0],qq[1]);else cz(kI.x,kI.n.x,1,aA);kI=kI.n}else{if(rZ)for(T=kI.p.z,sC=T.length-1;sC>=0;--sC)aA.point((qq=T[sC])[0],qq[1]);else cz(kI.x,kI.p.x,-1,aA);kI=kI.p}kI=kI.o;T=kI.z;rZ=!rZ}while(!kI.v);aA.lineEnd()}}}
function Ph4(F){if(T=F.length){for(var T,Z=0,cz=F[0],aA;++Z<T;)cz.n=aA=F[Z],aA.p=cz,cz=aA;cz.n=aA=F[0];aA.p=cz}}
function duS(F){return F.length>1}
function zXQ(F,T){return((F=F.x)[0]<0?F[1]-DZ-1E-6:DZ-F[1])-((T=T.x)[0]<0?T[1]-DZ-1E-6:DZ-T[1])}
function rT6(){}
function m6v(F){return function(T,Z){var cz=$D(T),aA=$D(Z);cz=F(cz*aA);return[cz*aA*ot(T),cz*ot(Z)]}}
function MJ(F){return function(T,Z){var cz=cOC(T*T+Z*Z),aA=F(cz),Dt=ot(aA);aA=$D(aA);return[pGw(T*Dt,cz*aA),gNV(cz&&Z*Dt/cz)]}}
function H7v(F){var T=0,Z=F.children,cz=Z&&Z.length;if(cz)for(;--cz>=0;)T+=Z[cz].value;else T=1;F.value=T}
function Teq(F,T){var Z=new CI(F);F=+F.value&&(Z.value=F.value);var cz,aA=[Z],Dt,iW,sC,qq;for(T==null&&(T=Qjq);cz=aA.pop();)if(F&&(cz.value=+cz.data.value),(iW=T(cz.data))&&(qq=iW.length))for(cz.children=Array(qq),sC=qq-1;sC>=0;--sC)aA.push(Dt=cz.children[sC]=new CI(iW[sC])),Dt.parent=cz,Dt.depth=cz.depth+1;return Z.eachBefore(UuQ)}
function Qjq(F){return F.children}
function oeg(F){F.data=F.data.data}
function UuQ(F){var T=0;do F.height=T;while((F=F.parent)&&F.height<++T)}
function CI(F){this.data=F;this.depth=this.height=0;this.parent=null}
function pM(F,T,Z,cz){function aA(Dt){return F(Dt=new Date(+Dt)),Dt}
aA.floor=aA;aA.ceil=function(Dt){return F(Dt=new Date(Dt-1)),T(Dt,1),F(Dt),Dt};
aA.round=function(Dt){var iW=aA(Dt),sC=aA.ceil(Dt);return Dt-iW<sC-Dt?iW:sC};
aA.offset=function(Dt,iW){return T(Dt=new Date(+Dt),iW==null?1:Math.floor(iW)),Dt};
aA.range=function(Dt,iW,sC){var qq=[],kI;Dt=aA.ceil(Dt);sC=sC==null?1:Math.floor(sC);if(!(Dt<iW&&sC>0))return qq;do qq.push(kI=new Date(+Dt)),T(Dt,sC),F(Dt);while(kI<Dt&&Dt<iW);return qq};
aA.filter=function(Dt){return pM(function(iW){if(iW>=iW)for(;F(iW),!Dt(iW);)iW.setTime(iW-1)},function(iW,sC){if(iW>=iW)if(sC<0)for(;++sC<=0;)for(;T(iW,-1),!Dt(iW););
else for(;--sC>=0;)for(;T(iW,1),!Dt(iW););})};
Z&&(aA.count=function(Dt,iW){aRe.setTime(+Dt);nGe.setTime(+iW);F(aRe);F(nGe);return Math.floor(Z(aRe,nGe))},aA.every=function(Dt){Dt=Math.floor(Dt);
return isFinite(Dt)&&Dt>0?Dt>1?aA.filter(cz?function(iW){return cz(iW)%Dt===0}:function(iW){return aA.count(0,iW)%Dt===0}):aA:null});
return aA}
function DI(F){return pM(function(T){T.setDate(T.getDate()-(T.getDay()+7-F)%7);T.setHours(0,0,0,0)},function(T,Z){T.setDate(T.getDate()+Z*7)},function(T,Z){return(Z-T-(Z.getTimezoneOffset()-T.getTimezoneOffset())*6E4)/6048E5})}
function $e(F){return pM(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-F)%7);T.setUTCHours(0,0,0,0)},function(T,Z){T.setUTCDate(T.getUTCDate()+Z*7)},function(T,Z){return(Z-T)/6048E5})}
function Z7z(F){if(0<=F.y&&F.y<100){var T=new Date(-1,F.m,F.d,F.H,F.M,F.S,F.L);T.setFullYear(F.y);return T}return new Date(F.y,F.m,F.d,F.H,F.M,F.S,F.L)}
function IXt(F){if(0<=F.y&&F.y<100){var T=new Date(Date.UTC(-1,F.m,F.d,F.H,F.M,F.S,F.L));T.setUTCFullYear(F.y);return T}return new Date(Date.UTC(F.y,F.m,F.d,F.H,F.M,F.S,F.L))}
function ei(F){return{y:F,m:0,d:1,H:0,M:0,S:0,L:0}}
function VbQ(F){function T(Cg,YB){return function(R3){var dj=[],qN=-1,cd=0,Wy=Cg.length,mR,vn;for(R3 instanceof Date||(R3=new Date(+R3));++qN<Wy;)if(Cg.charCodeAt(qN)===37){dj.push(Cg.slice(cd,qN));(cd=lfI[mR=Cg.charAt(++qN)])!=null?mR=Cg.charAt(++qN):cd=mR==="e"?" ":"0";if(vn=YB[mR])mR=vn(R3,cd);dj.push(mR);cd=qN+1}dj.push(Cg.slice(cd,qN));return dj.join("")}}
function Z(Cg,YB){return function(R3){var dj=ei(1900);if(cz(dj,Cg,R3,0)!=R3.length)return null;if("Q"in dj)return new Date(dj.Q);"p"in dj&&(dj.H=dj.H%12+dj.p*12);if("V"in dj){if(dj.V<1||dj.V>53)return null;"w"in dj||(dj.w=1);if("Z"in dj){R3=IXt(ei(dj.y));var qN=R3.getUTCDay();R3=qN>4||qN===0?R56.ceil(R3):R56(R3);R3=A8u.offset(R3,(dj.V-1)*7);dj.y=R3.getUTCFullYear();dj.m=R3.getUTCMonth();dj.d=R3.getUTCDate()+(dj.w+6)%7}else R3=YB(ei(dj.y)),qN=R3.getDay(),R3=qN>4||qN===0?EGA.ceil(R3):EGA(R3),R3=s8Z.offset(R3,
(dj.V-1)*7),dj.y=R3.getFullYear(),dj.m=R3.getMonth(),dj.d=R3.getDate()+(dj.w+6)%7}else if("W"in dj||"U"in dj)"w"in dj||(dj.w="u"in dj?dj.u%7:"W"in dj?1:0),qN="Z"in dj?IXt(ei(dj.y)).getUTCDay():YB(ei(dj.y)).getDay(),dj.m=0,dj.d="W"in dj?(dj.w+6)%7+dj.W*7-(qN+5)%7:dj.w+dj.U*7-(qN+6)%7;return"Z"in dj?(dj.H+=dj.Z/100|0,dj.M+=dj.Z%100,IXt(dj)):YB(dj)}}
function cz(Cg,YB,R3,dj){for(var qN=0,cd=YB.length,Wy=R3.length,mR;qN<cd;){if(dj>=Wy)return-1;mR=YB.charCodeAt(qN++);if(mR===37){if(mR=YB.charAt(qN++),mR=TI[mR in lfI?YB.charAt(qN++):mR],!mR||(dj=mR(Cg,R3,dj))<0)return-1}else if(mR!=R3.charCodeAt(dj++))return-1}return dj}
var aA=F.dateTime,Dt=F.date,iW=F.time,sC=F.periods,qq=F.days,kI=F.shortDays,rZ=F.months,Dw=F.shortMonths,Mq=g6(sC),uS=c0(sC),pm=g6(qq),Oh=c0(qq),uj=g6(kI),Ef=c0(kI),qt=g6(rZ),p_=c0(rZ),D3=g6(Dw),Ln=c0(Dw),mq={a:function(Cg){return kI[Cg.getDay()]},
A:function(Cg){return qq[Cg.getDay()]},
b:function(Cg){return Dw[Cg.getMonth()]},
B:function(Cg){return rZ[Cg.getMonth()]},
c:null,d:FDq,e:FDq,f:tbq,H:Bzo,I:Nzj,j:SPl,L:uFI,m:ypD,M:KdX,p:function(Cg){return sC[+(Cg.getHours()>=12)]},
Q:d6Z,s:zus,S:O70,u:Mbz,U:CP7,V:eVz,w:gKg,W:cXx,x:null,X:null,y:kLx,Y:IKX,Z:JXO,"%":HSn},cA={a:function(Cg){return kI[Cg.getUTCDay()]},
A:function(Cg){return qq[Cg.getUTCDay()]},
b:function(Cg){return Dw[Cg.getUTCMonth()]},
B:function(Cg){return rZ[Cg.getUTCMonth()]},
c:null,d:Q8s,e:Q8s,f:vKD,H:wZx,I:qjQ,j:LM7,L:U6n,m:rXx,M:aKz,p:function(Cg){return sC[+(Cg.getUTCHours()>=12)]},
Q:d6Z,s:zus,S:nKM,u:RVO,U:EKx,V:WMq,w:b6q,W:hVx,x:null,X:null,y:XZS,Y:GLg,Z:x$q,"%":HSn},TI={a:function(Cg,YB,R3){return(YB=uj.exec(YB.slice(R3)))?(Cg.w=Ef[YB[0].toLowerCase()],R3+YB[0].length):-1},
A:function(Cg,YB,R3){return(YB=pm.exec(YB.slice(R3)))?(Cg.w=Oh[YB[0].toLowerCase()],R3+YB[0].length):-1},
b:function(Cg,YB,R3){return(YB=D3.exec(YB.slice(R3)))?(Cg.m=Ln[YB[0].toLowerCase()],R3+YB[0].length):-1},
B:function(Cg,YB,R3){return(YB=qt.exec(YB.slice(R3)))?(Cg.m=p_[YB[0].toLowerCase()],R3+YB[0].length):-1},
c:function(Cg,YB,R3){return cz(Cg,aA,YB,R3)},
d:o94,e:o94,f:D$j,H:ZSq,I:ZSq,j:$$X,L:Yjq,m:fKM,M:joo,p:function(Cg,YB,R3){return(YB=Mq.exec(YB.slice(R3)))?(Cg.p=uS[YB[0].toLowerCase()],R3+YB[0].length):-1},
Q:i6Q,s:PlD,S:m$O,u:pZ7,U:TvS,V:lKj,w:AXS,W:soD,x:function(Cg,YB,R3){return cz(Cg,Dt,YB,R3)},
X:function(Cg,YB,R3){return cz(Cg,iW,YB,R3)},
y:FM7,Y:uzS,Z:d$O,"%":zVM};mq.x=T(Dt,mq);mq.X=T(iW,mq);mq.c=T(aA,mq);cA.x=T(Dt,cA);cA.X=T(iW,cA);cA.c=T(aA,cA);return{format:function(Cg){var YB=T(Cg,mq);YB.toString=function(){return Cg};
return YB},
parse:function(Cg){var YB=Z(Cg,Z7z);YB.toString=function(){return Cg};
return YB},
utcFormat:function(Cg){var YB=T(Cg,cA);YB.toString=function(){return Cg};
return YB},
utcParse:function(Cg){var YB=Z(Cg,IXt);YB.toString=function(){return Cg};
return YB}}}
function Fc(F,T,Z){var cz=F<0?"-":"";F=(cz?-F:F)+"";var aA=F.length;return cz+(aA<Z?Array(Z-aA+1).join(T)+F:F)}
function H6g(F){return F.replace(Qol,"\\$&")}
function g6(F){return new RegExp("^(?:"+F.map(H6g).join("|")+")","i")}
function c0(F){for(var T={},Z=-1,cz=F.length;++Z<cz;)T[F[Z].toLowerCase()]=Z;return T}
function AXS(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+1)))?(F.w=+T[0],Z+T[0].length):-1}
function pZ7(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+1)))?(F.u=+T[0],Z+T[0].length):-1}
function TvS(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+2)))?(F.U=+T[0],Z+T[0].length):-1}
function lKj(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+2)))?(F.V=+T[0],Z+T[0].length):-1}
function soD(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+2)))?(F.W=+T[0],Z+T[0].length):-1}
function uzS(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+4)))?(F.y=+T[0],Z+T[0].length):-1}
function FM7(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+2)))?(F.y=+T[0]+(+T[0]>68?1900:2E3),Z+T[0].length):-1}
function d$O(F,T,Z){return(T=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(T.slice(Z,Z+6)))?(F.Z=T[1]?0:-(T[2]+(T[3]||"00")),Z+T[0].length):-1}
function fKM(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+2)))?(F.m=T[0]-1,Z+T[0].length):-1}
function o94(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+2)))?(F.d=+T[0],Z+T[0].length):-1}
function $$X(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+3)))?(F.m=0,F.d=+T[0],Z+T[0].length):-1}
function ZSq(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+2)))?(F.H=+T[0],Z+T[0].length):-1}
function joo(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+2)))?(F.M=+T[0],Z+T[0].length):-1}
function m$O(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+2)))?(F.S=+T[0],Z+T[0].length):-1}
function Yjq(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+3)))?(F.L=+T[0],Z+T[0].length):-1}
function D$j(F,T,Z){return(T=Tj.exec(T.slice(Z,Z+6)))?(F.L=Math.floor(T[0]/1E3),Z+T[0].length):-1}
function zVM(F,T,Z){return(F=U$z.exec(T.slice(Z,Z+1)))?Z+F[0].length:-1}
function i6Q(F,T,Z){return(T=Tj.exec(T.slice(Z)))?(F.Q=+T[0],Z+T[0].length):-1}
function PlD(F,T,Z){return(T=Tj.exec(T.slice(Z)))?(F.Q=+T[0]*1E3,Z+T[0].length):-1}
function FDq(F,T){return Fc(F.getDate(),T,2)}
function Bzo(F,T){return Fc(F.getHours(),T,2)}
function Nzj(F,T){return Fc(F.getHours()%12||12,T,2)}
function SPl(F,T){return Fc(1+s8Z.count(NL(F),F),T,3)}
function uFI(F,T){return Fc(F.getMilliseconds(),T,3)}
function tbq(F,T){return uFI(F,T)+"000"}
function ypD(F,T){return Fc(F.getMonth()+1,T,2)}
function KdX(F,T){return Fc(F.getMinutes(),T,2)}
function O70(F,T){return Fc(F.getSeconds(),T,2)}
function Mbz(F){F=F.getDay();return F===0?7:F}
function CP7(F,T){return Fc(oKM.count(NL(F),F),T,2)}
function eVz(F,T){var Z=F.getDay();F=Z>=4||Z===0?Wwt(F):Wwt.ceil(F);return Fc(Wwt.count(NL(F),F)+(NL(F).getDay()===4),T,2)}
function gKg(F){return F.getDay()}
function cXx(F,T){return Fc(EGA.count(NL(F),F),T,2)}
function kLx(F,T){return Fc(F.getFullYear()%100,T,2)}
function IKX(F,T){return Fc(F.getFullYear()%1E4,T,4)}
function JXO(F){F=F.getTimezoneOffset();return(F>0?"-":(F*=-1,"+"))+Fc(F/60|0,"0",2)+Fc(F%60,"0",2)}
function Q8s(F,T){return Fc(F.getUTCDate(),T,2)}
function wZx(F,T){return Fc(F.getUTCHours(),T,2)}
function qjQ(F,T){return Fc(F.getUTCHours()%12||12,T,2)}
function LM7(F,T){return Fc(1+A8u.count(SE(F),F),T,3)}
function U6n(F,T){return Fc(F.getUTCMilliseconds(),T,3)}
function vKD(F,T){return U6n(F,T)+"000"}
function rXx(F,T){return Fc(F.getUTCMonth()+1,T,2)}
function aKz(F,T){return Fc(F.getUTCMinutes(),T,2)}
function nKM(F,T){return Fc(F.getUTCSeconds(),T,2)}
function RVO(F){F=F.getUTCDay();return F===0?7:F}
function EKx(F,T){return Fc(Z6v.count(SE(F),F),T,2)}
function WMq(F,T){var Z=F.getUTCDay();F=Z>=4||Z===0?bjV(F):bjV.ceil(F);return Fc(bjV.count(SE(F),F)+(SE(F).getUTCDay()===4),T,2)}
function b6q(F){return F.getUTCDay()}
function hVx(F,T){return Fc(R56.count(SE(F),F),T,2)}
function XZS(F,T){return Fc(F.getUTCFullYear()%100,T,2)}
function GLg(F,T){return Fc(F.getUTCFullYear()%1E4,T,4)}
function x$q(){return"+0000"}
function HSn(){return"%"}
function d6Z(F){return+F}
function zus(F){return Math.floor(+F/1E3)}
function Db(F){for(var T=F.length/6|0,Z=Array(T),cz=0;cz<T;)Z[cz]="#"+F.slice(cz*6,++cz*6);return Z}
function L4(F){return VFO(F[F.length-1])}
function JOC(F){var T=F.length;return function(Z){return F[Math.max(0,Math.min(T-1,Math.floor(Z*T)))]}}
function VZk(F){this._context=F}
function tZY(F){this._curve=F}
function BeB(F,T,Z){var cz=F._x1-F._x0;T-=F._x1;var aA=(F._y1-F._y0)/(cz||T<0&&-0);F=(Z-F._y1)/(T||cz<0&&-0);return((aA<0?-1:1)+(F<0?-1:1))*Math.min(Math.abs(aA),Math.abs(F),.5*Math.abs((aA*T+F*cz)/(cz+T)))||0}
function NeI(F,T){var Z=F._x1-F._x0;return Z?(3*(F._y1-F._y0)/Z-T)/2:T}
function h56(F,T,Z){var cz=F._x0,aA=F._x1,Dt=F._y1,iW=(aA-cz)/3;F._context.bezierCurveTo(cz+iW,F._y0+iW*T,aA-iW,Dt-iW*Z,aA,Dt)}
function XIz(F){this._context=F}
function S8q(F){this._context=F}
function kT(F,T,Z){this.k=F;this.x=T;this.y=Z}
(function(F){F.length===1&&(F=g(F));return{left:function(T,Z,cz,aA){cz==null&&(cz=0);aA==null&&(aA=T.length);for(;cz<aA;){var Dt=cz+aA>>>1;F(T[Dt],Z)<0?cz=Dt+1:aA=Dt}return cz},
right:function(T,Z,cz,aA){cz==null&&(cz=0);aA==null&&(aA=T.length);for(;cz<aA;){var Dt=cz+aA>>>1;F(T[Dt],Z)>0?aA=Dt:cz=Dt+1}return cz}}})(e);
var SNS={value:function(){}};
k.prototype=c.prototype={constructor:k,on:function(F,T){var Z=this._,cz=I(F+"",Z),aA,Dt=-1,iW=cz.length;if(arguments.length<2)for(;++Dt<iW;){var sC;if(sC=aA=(F=cz[Dt]).type){a:{sC=Z[aA];for(var qq=0,kI=sC.length;qq<kI;++qq)if((aA=sC[qq]).name===F.name){aA=aA.value;break a}aA=void 0}sC=aA}if(sC)return aA}else{if(T!=null&&typeof T!=="function")throw Error("Ee`"+T);for(;++Dt<iW;)if(aA=(F=cz[Dt]).type)Z[aA]=J(Z[aA],F.name,T);else if(T==null)for(aA in Z)Z[aA]=J(Z[aA],F.name,null);return this}},
copy:function(){var F={},T=this._,Z;for(Z in T)F[Z]=T[Z].slice();return new k(F)},
call:function(F,T){if((aA=arguments.length-2)>0)for(var Z=Array(aA),cz=0,aA,Dt;cz<aA;++cz)Z[cz]=arguments[cz+2];if(!this._.hasOwnProperty(F))throw Error("ye`"+F);Dt=this._[F];cz=0;for(aA=Dt.length;cz<aA;++cz)Dt[cz].value.apply(T,Z)},
apply:function(F,T,Z){if(!this._.hasOwnProperty(F))throw Error("ye`"+F);F=this._[F];for(var cz=0,aA=F.length;cz<aA;++cz)F[cz].value.apply(T,Z)}};
var GM={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/"},y8v=function(F){return function(){return this.matches(F)}};
if(typeof document!=="undefined"){var Ia=document.documentElement;if(!Ia.matches){var tFS=Ia.webkitMatchesSelector||Ia.msMatchesSelector||Ia.mozMatchesSelector||Ia.oMatchesSelector;y8v=function(F){return function(){return tFS.call(this,F)}}}}var KDw=y8v;
X.prototype={constructor:X,appendChild:function(F){return this._parent.insertBefore(F,this._next)},
insertBefore:function(F,T){return this._parent.insertBefore(F,T)},
querySelector:function(F){return this._parent.querySelector(F)},
querySelectorAll:function(F){return this._parent.querySelectorAll(F)}};
var g9k={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(g9k={mouseenter:"mouseover",mouseleave:"mouseout"}));var yig=[null];V4.prototype=to.prototype={constructor:V4,select:function(F){typeof F!=="function"&&(F=b(F));for(var T=this._groups,Z=T.length,cz=Array(Z),aA=0;aA<Z;++aA)for(var Dt=T[aA],iW=Dt.length,sC=cz[aA]=Array(iW),qq,kI,rZ=0;rZ<iW;++rZ)(qq=Dt[rZ])&&(kI=F.call(qq,qq.__data__,rZ,Dt))&&("__data__"in qq&&(kI.__data__=qq.__data__),sC[rZ]=kI);return new V4(cz,
this._parents)},
filter:function(F){typeof F!=="function"&&(F=KDw(F));for(var T=this._groups,Z=T.length,cz=Array(Z),aA=0;aA<Z;++aA)for(var Dt=T[aA],iW=Dt.length,sC=cz[aA]=[],qq,kI=0;kI<iW;++kI)(qq=Dt[kI])&&F.call(qq,qq.__data__,kI,Dt)&&sC.push(qq);return new V4(cz,this._parents)},
data:function(F,T){if(!F)return uS=Array(this.size()),kI=-1,this.each(function(qt){uS[++kI]=qt}),uS;
var Z=T?l:f,cz=this._parents,aA=this._groups;typeof F!=="function"&&(F=D(F));for(var Dt=aA.length,iW=Array(Dt),sC=Array(Dt),qq=Array(Dt),kI=0;kI<Dt;++kI){var rZ=cz[kI],Dw=aA[kI],Mq=Dw.length,uS=F.call(rZ,rZ&&rZ.__data__,kI,cz),pm=uS.length,Oh=sC[kI]=Array(pm),uj=iW[kI]=Array(pm);Mq=qq[kI]=Array(Mq);Z(rZ,Dw,Oh,uj,Mq,uS,T);Dw=rZ=0;for(var Ef;rZ<pm;++rZ)if(Mq=Oh[rZ]){for(rZ>=Dw&&(Dw=rZ+1);!(Ef=uj[Dw])&&++Dw<pm;);Mq._next=Ef||null}}iW=new V4(iW,cz);iW._enter=sC;iW._exit=qq;return iW},
enter:function(){return new V4(this._enter||this._groups.map(h),this._parents)},
exit:function(){return new V4(this._exit||this._groups.map(h),this._parents)},
merge:function(F){var T=this._groups;F=F._groups;for(var Z=T.length,cz=Math.min(Z,F.length),aA=Array(Z),Dt=0;Dt<cz;++Dt)for(var iW=T[Dt],sC=F[Dt],qq=iW.length,kI=aA[Dt]=Array(qq),rZ,Dw=0;Dw<qq;++Dw)if(rZ=iW[Dw]||sC[Dw])kI[Dw]=rZ;for(;Dt<Z;++Dt)aA[Dt]=T[Dt];return new V4(aA,this._parents)},
order:function(){for(var F=this._groups,T=-1,Z=F.length;++T<Z;)for(var cz=F[T],aA=cz.length-1,Dt=cz[aA],iW;--aA>=0;)if(iW=cz[aA])Dt&&Dt!==iW.nextSibling&&Dt.parentNode.insertBefore(iW,Dt),Dt=iW;return this},
sort:function(F){function T(Dw,Mq){return Dw&&Mq?F(Dw.__data__,Mq.__data__):!Dw-!Mq}
F||(F=A);for(var Z=this._groups,cz=Z.length,aA=Array(cz),Dt=0;Dt<cz;++Dt){for(var iW=Z[Dt],sC=iW.length,qq=aA[Dt]=Array(sC),kI,rZ=0;rZ<sC;++rZ)if(kI=iW[rZ])qq[rZ]=kI;qq.sort(T)}return(new V4(aA,this._parents)).order()},
call:function(){var F=arguments[0];arguments[0]=this;F.apply(null,arguments);return this},
nodes:function(){var F=Array(this.size()),T=-1;this.each(function(){F[++T]=this});
return F},
node:function(){for(var F=this._groups,T=0,Z=F.length;T<Z;++T)for(var cz=F[T],aA=0,Dt=cz.length;aA<Dt;++aA){var iW=cz[aA];if(iW)return iW}return null},
size:function(){var F=0;this.each(function(){++F});
return F},
empty:function(){return!this.node()},
each:function(F){for(var T=this._groups,Z=0,cz=T.length;Z<cz;++Z)for(var aA=T[Z],Dt=0,iW=aA.length,sC;Dt<iW;++Dt)(sC=aA[Dt])&&F.call(sC,sC.__data__,Dt,aA);return this},
attr:function(F,T){var Z=q(F);if(arguments.length<2){var cz=this.node();return Z.local?cz.getAttributeNS(Z.space,Z.local):cz.getAttribute(Z)}return this.each((T==null?Z.local?S:d:typeof T==="function"?Z.local?O:y:Z.local?Q:V)(Z,T))},
style:function(F,T,Z){return arguments.length>1?this.each((T==null?Jq:typeof T==="function"?bW:LC)(F,T,Z==null?"":Z)):RA(this.node(),F)},
property:function(F,T){return arguments.length>1?this.each((T==null?Xg:typeof T==="function"?oA:Fg)(F,T)):this.node()[F]},
text:function(F){return arguments.length?this.each(F==null?Zt:(typeof F==="function"?an:Ev)(F)):this.node().textContent},
html:function(F){return arguments.length?this.each(F==null?V6:(typeof F==="function"?f1:bs)(F)):this.node().innerHTML},
append:function(F){var T=typeof F==="function"?F:R(F);return this.select(function(){return this.appendChild(T.apply(this,arguments))})},
insert:function(F,T){var Z=typeof F==="function"?F:R(F),cz=T==null?hk:typeof T==="function"?T:b(T);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),cz.apply(this,arguments)||null)})},
remove:function(){return this.each(Pq)},
clone:function(F){return this.select(F?hq:vq)},
datum:function(F){return arguments.length?this.property("__data__",F):this.node().__data__},
on:function(F,T,Z){var cz=Su(F+""),aA=cz.length,Dt;if(arguments.length<2){var iW=this.node().__on;if(iW)for(var sC=0,qq=iW.length,kI;sC<qq;++sC){var rZ=0;for(kI=iW[sC];rZ<aA;++rZ)if((Dt=cz[rZ]).type===kI.type&&Dt.name===kI.name)return kI.value}}else{iW=T?C1:p1;Z==null&&(Z=!1);for(rZ=0;rZ<aA;++rZ)this.each(iW(cz[rZ],T,Z));return this}},
dispatch:function(F,T){return this.each((typeof T==="function"?Rx:Ov)(F,T))}};
var KHO=0;L1.prototype=function(){return new L1}.prototype={constructor:L1,
get:function(F){for(var T=this._;!(T in F);)if(!(F=F.parentNode))return;return F[T]},
set:function(F,T){return F[this._]=T},
remove:function(F){return this._ in F&&delete F[this._]},
toString:function(){return this._}};
var yp=1/.7,O$M=/^#([0-9a-f]{3})$/,Mdv=/^#([0-9a-f]{6})$/,CXQ=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),eXq=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),geQ=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),cpg=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*\\)$"),
k27=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),IID=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*\\)$"),c8B={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};
Wq(Bw,Uv,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Wq(MM,ng,Ww(Bw,{brighter:function(F){F=F==null?yp:Math.pow(yp,F);return new MM(this.r*F,this.g*F,this.b*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new MM(this.r*F,this.g*F,this.b*F,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"#"+I3(this.r)+I3(this.g)+I3(this.b)},
toString:function(){var F=this.opacity;F=isNaN(F)?1:Math.max(0,Math.min(1,F));return(F===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))+(F===1?")":", "+F+")")}}));
Wq(bK,Uu,Ww(Bw,{brighter:function(F){F=F==null?yp:Math.pow(yp,F);return new bK(this.h,this.s,this.l*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new bK(this.h,this.s,this.l*F,this.opacity)},
rgb:function(){var F=this.h%360+(this.h<0)*360,T=this.l,Z=T+(T<.5?T:1-T)*(isNaN(F)||isNaN(this.s)?0:this.s);T=2*T-Z;return new MM(ZE(F>=240?F-240:F+120,T,Z),ZE(F,T,Z),ZE(F<120?F+240:F-120,T,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 kAZ=Math.PI/180,v9I=180/Math.PI,J84=4/29,tm=6/29,Ifu=3*tm*tm,Jpz=tm*tm*tm;Wq(me,function(F,T,Z,cz){return arguments.length===1?b0(F):new me(F,T,Z,cz==null?1:cz)},Ww(Bw,{brighter:function(F){return new me(this.l+18*(F==null?1:F),this.a,this.b,this.opacity)},
darker:function(F){return new me(this.l-18*(F==null?1:F),this.a,this.b,this.opacity)},
rgb:function(){var F=(this.l+16)/116,T=isNaN(this.a)?F:F+this.a/500,Z=isNaN(this.b)?F:F-this.b/200;T=.96422*y6(T);F=1*y6(F);Z=.82521*y6(Z);return new MM(Gq(3.1338561*T-1.6168667*F-.4906146*Z),Gq(-.9787684*T+1.9161415*F+.033454*Z),Gq(.0719453*T-.2289914*F+1.4052427*Z),this.opacity)}}));
Wq(is,mO,Ww(Bw,{brighter:function(F){return new is(this.h,this.c,this.l+18*(F==null?1:F),this.opacity)},
darker:function(F){return new is(this.h,this.c,this.l-18*(F==null?1:F),this.opacity)},
rgb:function(){return b0(this).rgb()}}));
var wGw=1.78277*-.29227-.1347134789;Wq(ox,ju,Ww(Bw,{brighter:function(F){F=F==null?yp:Math.pow(yp,F);return new ox(this.h,this.s,this.l*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new ox(this.h,this.s,this.l*F,this.opacity)},
rgb:function(){var F=isNaN(this.h)?0:(this.h+120)*kAZ,T=+this.l,Z=isNaN(this.s)?0:this.s*T*(1-T),cz=Math.cos(F);F=Math.sin(F);return new MM(255*(T+Z*(-.14861*cz+1.78277*F)),255*(T+Z*(-.29227*cz+-.90649*F)),255*(T+1.97294*cz*Z),this.opacity)}}));
var r81=function Z(T){function cz(Dt,iW){var sC=aA((Dt=ng(Dt)).r,(iW=ng(iW)).r),qq=aA(Dt.g,iW.g),kI=aA(Dt.b,iW.b),rZ=en(Dt.opacity,iW.opacity);return function(Dw){Dt.r=sC(Dw);Dt.g=qq(Dw);Dt.b=kI(Dw);Dt.opacity=rZ(Dw);return Dt+""}}
var aA=E5(T);cz.gamma=Z;return cz}(1),VFO=cV(function(T){var Z=T.length-1;
return function(cz){var aA=cz<=0?cz=0:cz>=1?(cz=1,Z-1):Math.floor(cz*Z),Dt=T[aA],iW=T[aA+1];return vJ((cz-aA/Z)*Z,aA>0?T[aA-1]:2*Dt-iW,Dt,iW,aA<Z-1?T[aA+2]:2*iW-Dt)}});
cV(function(T){var Z=T.length;return function(cz){var aA=Math.floor(((cz%=1)<0?++cz:cz)*Z);return vJ((cz-aA/Z)*Z,T[(aA+Z-1)%Z],T[aA%Z],T[(aA+1)%Z],T[(aA+2)%Z])}});
var cTp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kOU=new RegExp(cTp.source,"g"),q8n=180/Math.PI,GOv={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Jn,xpC,OSv,vNC,Bvg=hZ(function(T){if(T==="none")return GOv;Jn||(Jn=document.createElement("DIV"),xpC=document.documentElement,OSv=document.defaultView);Jn.style.transform=T;T=OSv.getComputedStyle(xpC.appendChild(Jn),null).getPropertyValue("transform");xpC.removeChild(Jn);T=T.slice(7,-1).split(",");return bb(+T[0],+T[1],+T[2],+T[3],
+T[4],+T[5])},"px, ","px)","deg)"),Nv0=hZ(function(T){if(T==null)return GOv;
vNC||(vNC=document.createElementNS("http://www.w3.org/2000/svg","g"));vNC.setAttribute("transform",T);if(!(T=vNC.transform.baseVal.consolidate()))return GOv;T=T.matrix;return bb(T.a,T.b,T.c,T.d,T.e,T.f)},", ",")",")");
xW(o3);xW(en);ko(o3);ko(en);jY(o3);var Dpv=jY(en),Bp=0,BD=0,Se=0,NFK,NJ,BFC=0,G2=0,tWC=0,tB=typeof performance==="object"&&performance.now?performance:Date,LDw=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(T){setTimeout(T,17)};
Cu.prototype=I0.prototype={constructor:Cu,restart:function(T,Z,cz){if(typeof T!=="function")throw new TypeError("Fe");cz=(cz==null?iF():+cz)+(Z==null?0:+Z);this._next||NJ===this||(NJ?NJ._next=this:NFK=this,NJ=this);this._call=T;this._time=cz;eA()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,eA())}};
var veM=c("start","end","interrupt"),wuS=[],Sjz=to.prototype.constructor,MZw=0,Kh=to.prototype;L8.prototype=function(T){return to().transition(T)}.prototype={constructor:L8,
select:function(T){var Z=this._name,cz=this._id;typeof T!=="function"&&(T=b(T));for(var aA=this._groups,Dt=aA.length,iW=Array(Dt),sC=0;sC<Dt;++sC)for(var qq=aA[sC],kI=qq.length,rZ=iW[sC]=Array(kI),Dw,Mq,uS=0;uS<kI;++uS)(Dw=qq[uS])&&(Mq=T.call(Dw,Dw.__data__,uS,qq))&&("__data__"in Dw&&(Mq.__data__=Dw.__data__),rZ[uS]=Mq,eu(rZ[uS],Z,cz,uS,rZ,Sz(Dw,cz)));return new L8(iW,this._parents,Z,cz)},
filter:function(T){typeof T!=="function"&&(T=KDw(T));for(var Z=this._groups,cz=Z.length,aA=Array(cz),Dt=0;Dt<cz;++Dt)for(var iW=Z[Dt],sC=iW.length,qq=aA[Dt]=[],kI,rZ=0;rZ<sC;++rZ)(kI=iW[rZ])&&T.call(kI,kI.__data__,rZ,iW)&&qq.push(kI);return new L8(aA,this._parents,this._name,this._id)},
merge:function(T){if(T._id!==this._id)throw Error();var Z=this._groups;T=T._groups;for(var cz=Z.length,aA=Math.min(cz,T.length),Dt=Array(cz),iW=0;iW<aA;++iW)for(var sC=Z[iW],qq=T[iW],kI=sC.length,rZ=Dt[iW]=Array(kI),Dw,Mq=0;Mq<kI;++Mq)if(Dw=sC[Mq]||qq[Mq])rZ[Mq]=Dw;for(;iW<cz;++iW)Dt[iW]=Z[iW];return new L8(Dt,this._parents,this._name,this._id)},
selection:function(){return new Sjz(this._groups,this._parents)},
transition:function(){for(var T=this._name,Z=this._id,cz=++MZw,aA=this._groups,Dt=aA.length,iW=0;iW<Dt;++iW)for(var sC=aA[iW],qq=sC.length,kI,rZ=0;rZ<qq;++rZ)if(kI=sC[rZ]){var Dw=Sz(kI,Z);eu(kI,T,cz,rZ,sC,{time:Dw.time+Dw.delay+Dw.duration,delay:0,duration:Dw.duration,ease:Dw.ease})}return new L8(aA,this._parents,T,cz)},
call:Kh.call,nodes:Kh.nodes,node:Kh.node,size:Kh.size,empty:Kh.empty,each:Kh.each,on:function(T,Z){var cz=this._id;return arguments.length<2?Sz(this.node(),cz).on.on(T):this.each(Eeo(cz,T,Z))},
attr:function(T,Z){var cz=q(T),aA=cz==="transform"?Nv0:xD;return this.attrTween(T,typeof Z==="function"?(cz.local?KI:KNC)(cz,aA,UV(this,"attr."+T,Z)):Z==null?(cz.local?Sf6:xe)(cz):(cz.local?ym:y2v)(cz,aA,Z+""))},
attrTween:function(T,Z){var cz="attr."+T;if(arguments.length<2)return(cz=this.tween(cz))&&cz._value;if(Z==null)return this.tween(cz,null);if(typeof Z!=="function")throw Error();var aA=q(T);return this.tween(cz,(aA.local?OD:OB8)(aA,Z))},
style:function(T,Z,cz){var aA=T==="transform"?Bvg:xD;return Z==null?this.styleTween(T,b7M(T,aA)).on("end.style."+T,hX7(T)):this.styleTween(T,typeof Z==="function"?G20(T,aA,UV(this,"style."+T,Z)):Xuv(T,aA,Z+""),cz)},
styleTween:function(T,Z,cz){var aA="style."+T;if(arguments.length<2)return(aA=this.tween(aA))&&aA._value;if(Z==null)return this.tween(aA,null);if(typeof Z!=="function")throw Error();return this.tween(aA,xuM(T,Z,cz==null?"":cz))},
text:function(T){return this.tween("text",typeof T==="function"?$uQ(UV(this,"text",T)):DuQ(T==null?"":T+""))},
remove:function(){return this.on("end.remove",Wdo(this._id))},
tween:function(T,Z){var cz=this._id;if(arguments.length<2){cz=Sz(this.node(),cz).tween;for(var aA=0,Dt=cz.length,iW;aA<Dt;++aA)if((iW=cz[aA]).name===T)return iW.value;return null}return this.each((Z==null?Uy:Vd)(cz,T,Z))},
delay:function(T){var Z=this._id;return arguments.length?this.each((typeof T==="function"?qPM:LdS)(Z,T)):Sz(this.node(),Z).delay},
duration:function(T){var Z=this._id;return arguments.length?this.each((typeof T==="function"?rpg:aIq)(Z,T)):Sz(this.node(),Z).duration},
ease:function(T){var Z=this._id;return arguments.length?this.each(neO(Z,T)):Sz(this.node(),Z).ease}};
var $pW={time:null,delay:0,duration:250,ease:function(T){return((T*=2)<=1?T*T*T:(T-=2)*T*T+2)/2}};
to.prototype.transition=function(T){var Z;if(T instanceof L8){var cz=T._id;T=T._name}else cz=++MZw,(Z=$pW).time=iF(),T=T==null?null:T+"";for(var aA=this._groups,Dt=aA.length,iW=0;iW<Dt;++iW)for(var sC=aA[iW],qq=sC.length,kI,rZ=0;rZ<qq;++rZ)if(kI=sC[rZ]){var Dw=kI,Mq=T,uS=cz,pm=rZ,Oh=sC,uj;if(!(uj=Z))a:{uj=void 0;for(var Ef=cz;!(uj=kI.__transition)||!(uj=uj[Ef]);)if(!(kI=kI.parentNode)){uj=($pW.time=iF(),$pW);break a}}eu(Dw,Mq,uS,pm,Oh,uj)}return new L8(aA,this._parents,T,cz)};
["e","w"].map(IRt);["n","s"].map(IRt);"n e s w nw ne se sw".split(" ").map(IRt);JTW.prototype=function(){return new JTW}.prototype={constructor:JTW,
moveTo:function(T,Z){this._+="M"+(this._x0=this._x1=+T)+","+(this._y0=this._y1=+Z)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(T,Z){this._+="L"+(this._x1=+T)+","+(this._y1=+Z)},
bezierCurveTo:function(T,Z,cz,aA,Dt,iW){this._+="C"+ +T+","+ +Z+","+ +cz+","+ +aA+","+(this._x1=+Dt)+","+(this._y1=+iW)},
rect:function(T,Z,cz,aA){this._+="M"+(this._x0=this._x1=+T)+","+(this._y0=this._y1=+Z)+"h"+ +cz+"v"+ +aA+"h"+-cz+"Z"},
toString:function(){return this._}};
MWC.prototype=af1.prototype={constructor:MWC,has:function(T){return" "+T in this},
get:function(T){return this[" "+T]},
set:function(T,Z){this[" "+T]=Z;return this},
remove:function(T){T=" "+T;return T in this&&delete this[T]},
clear:function(){for(var T in this)T[0]===" "&&delete this[T]},
keys:function(){var T=[],Z;for(Z in this)Z[0]===" "&&T.push(Z.slice(1));return T},
values:function(){var T=[],Z;for(Z in this)Z[0]===" "&&T.push(this[Z]);return T},
entries:function(){var T=[],Z;for(Z in this)Z[0]===" "&&T.push({key:Z.slice(1),value:this[Z]});return T},
size:function(){var T=0,Z;for(Z in this)Z[0]===" "&&++T;return T},
empty:function(){for(var T in this)if(T[0]===" ")return!1;return!0},
each:function(T){for(var Z in this)Z[0]===" "&&T(this[Z],Z.slice(1),this)}};
var Ye=af1.prototype;Cft.prototype=function(T,Z){var cz=new Cft;if(T instanceof Cft)T.each(function(iW){cz.add(iW)});
else if(T){var aA=-1,Dt=T.length;if(Z==null)for(;++aA<Dt;)cz.add(T[aA]);else for(;++aA<Dt;)cz.add(Z(T[aA],aA,T))}return cz}.prototype={constructor:Cft,
has:Ye.has,add:function(T){this[" "+T]=T;return this},
remove:Ye.remove,clear:Ye.clear,values:Ye.keys,size:Ye.size,empty:Ye.empty,each:Ye.each};var E9q={},vGK={},yXl=Ru1(",").parse,KM7=Ru1("\t").parse;WDn(yXl);WDn(KM7);var J3=function(T,Z,cz){Z=new wIt(Z==null?i7x:Z,cz==null?PP0:cz,NaN,NaN,NaN,NaN);return T==null?Z:Z.addAll(T)}.prototype=wIt.prototype;
J3.copy=function(){var T=new wIt(this._x,this._y,this._x0,this._y0,this._x1,this._y1),Z=this._root,cz,aA;if(!Z)return T;if(!Z.length)return T._root=huv(Z),T;for(cz=[{source:Z,target:T._root=Array(4)}];Z=cz.pop();)for(var Dt=0;Dt<4;++Dt)if(aA=Z.source[Dt])aA.length?cz.push({source:aA,target:Z.target[Dt]=Array(4)}):Z.target[Dt]=huv(aA);return T};
J3.add=function(T){var Z=+this._x.call(null,T),cz=+this._y.call(null,T);return bSB(this.cover(Z,cz),Z,cz,T)};
J3.addAll=function(T){var Z,cz,aA=T.length,Dt,iW,sC=Array(aA),qq=Array(aA),kI=Infinity,rZ=Infinity,Dw=-Infinity,Mq=-Infinity;for(cz=0;cz<aA;++cz)isNaN(Dt=+this._x.call(null,Z=T[cz]))||isNaN(iW=+this._y.call(null,Z))||(sC[cz]=Dt,qq[cz]=iW,Dt<kI&&(kI=Dt),Dt>Dw&&(Dw=Dt),iW<rZ&&(rZ=iW),iW>Mq&&(Mq=iW));Dw<kI&&(kI=this._x0,Dw=this._x1);Mq<rZ&&(rZ=this._y0,Mq=this._y1);this.cover(kI,rZ).cover(Dw,Mq);for(cz=0;cz<aA;++cz)bSB(this,sC[cz],qq[cz],T[cz]);return this};
J3.cover=function(T,Z){if(isNaN(T=+T)||isNaN(Z=+Z))return this;var cz=this._x0,aA=this._y0,Dt=this._x1,iW=this._y1;if(isNaN(cz))Dt=(cz=Math.floor(T))+1,iW=(aA=Math.floor(Z))+1;else if(cz>T||T>Dt||aA>Z||Z>iW){var sC=Dt-cz,qq=this._root,kI;switch(kI=(Z<(aA+iW)/2)<<1|T<(cz+Dt)/2){case 0:do{var rZ=Array(4);rZ[kI]=qq;qq=rZ}while(sC*=2,Dt=cz+sC,iW=aA+sC,T>Dt||Z>iW);break;case 1:do rZ=Array(4),rZ[kI]=qq,qq=rZ;while(sC*=2,cz=Dt-sC,iW=aA+sC,cz>T||Z>iW);break;case 2:do rZ=Array(4),rZ[kI]=qq,qq=rZ;while(sC*=
2,Dt=cz+sC,aA=iW-sC,T>Dt||aA>Z);break;case 3:do rZ=Array(4),rZ[kI]=qq,qq=rZ;while(sC*=2,cz=Dt-sC,aA=iW-sC,cz>T||aA>Z)}this._root&&this._root.length&&(this._root=qq)}else return this;this._x0=cz;this._y0=aA;this._x1=Dt;this._y1=iW;return this};
J3.data=function(){var T=[];this.visit(function(Z){if(!Z.length){do T.push(Z.data);while(Z=Z.next)}});
return T};
J3.extent=function(T){return arguments.length?this.cover(+T[0][0],+T[0][1]).cover(+T[1][0],+T[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
J3.find=function(T,Z,cz){var aA=this._x0,Dt=this._y0,iW,sC,qq,kI,rZ=this._x1,Dw=this._y1,Mq=[],uS=this._root,pm;uS&&Mq.push(new I1(uS,aA,Dt,rZ,Dw));cz==null?cz=Infinity:(aA=T-cz,Dt=Z-cz,rZ=T+cz,Dw=Z+cz,cz*=cz);for(;pm=Mq.pop();)if(!(!(uS=pm.node)||(iW=pm.x0)>rZ||(sC=pm.y0)>Dw||(qq=pm.x1)<aA||(kI=pm.y1)<Dt))if(uS.length){pm=(iW+qq)/2;var Oh=(sC+kI)/2;Mq.push(new I1(uS[3],pm,Oh,qq,kI),new I1(uS[2],iW,Oh,pm,kI),new I1(uS[1],pm,sC,qq,Oh),new I1(uS[0],iW,sC,pm,Oh));if(uS=(Z>=Oh)<<1|T>=pm)pm=Mq[Mq.length-
1],Mq[Mq.length-1]=Mq[Mq.length-1-uS],Mq[Mq.length-1-uS]=pm}else if(pm=T-+this._x.call(null,uS.data),Oh=Z-+this._y.call(null,uS.data),pm=pm*pm+Oh*Oh,pm<cz){var uj=Math.sqrt(cz=pm);aA=T-uj;Dt=Z-uj;rZ=T+uj;Dw=Z+uj;uj=uS.data}return uj};
J3.remove=function(T){if(isNaN(kI=+this._x.call(null,T))||isNaN(rZ=+this._y.call(null,T)))return this;var Z,cz=this._root,aA,Dt=this._x0,iW=this._y0,sC=this._x1,qq=this._y1,kI,rZ,Dw,Mq,uS,pm,Oh;if(!cz)return this;if(cz.length)for(;;){(uS=kI>=(Dw=(Dt+sC)/2))?Dt=Dw:sC=Dw;(pm=rZ>=(Mq=(iW+qq)/2))?iW=Mq:qq=Mq;if(!(Z=cz,cz=cz[Oh=pm<<1|uS]))return this;if(!cz.length)break;if(Z[Oh+1&3]||Z[Oh+2&3]||Z[Oh+3&3]){var uj=Z;var Ef=Oh}}for(;cz.data!==T;)if(!(aA=cz,cz=cz.next))return this;(T=cz.next)&&delete cz.next;
if(aA)return T?aA.next=T:delete aA.next,this;if(!Z)return this._root=T,this;T?Z[Oh]=T:delete Z[Oh];(cz=Z[0]||Z[1]||Z[2]||Z[3])&&cz===(Z[3]||Z[2]||Z[1]||Z[0])&&!cz.length&&(uj?uj[Ef]=cz:this._root=cz);return this};
J3.removeAll=function(T){for(var Z=0,cz=T.length;Z<cz;++Z)this.remove(T[Z]);return this};
J3.root=function(){return this._root};
J3.size=function(){var T=0;this.visit(function(Z){if(!Z.length){do++T;while(Z=Z.next)}});
return T};
J3.visit=function(T){var Z=[],cz,aA=this._root,Dt,iW,sC,qq,kI;for(aA&&Z.push(new I1(aA,this._x0,this._y0,this._x1,this._y1));cz=Z.pop();)if(!T(aA=cz.node,iW=cz.x0,sC=cz.y0,qq=cz.x1,kI=cz.y1)&&aA.length){cz=(iW+qq)/2;var rZ=(sC+kI)/2;(Dt=aA[3])&&Z.push(new I1(Dt,cz,rZ,qq,kI));(Dt=aA[2])&&Z.push(new I1(Dt,iW,rZ,cz,kI));(Dt=aA[1])&&Z.push(new I1(Dt,cz,sC,qq,rZ));(Dt=aA[0])&&Z.push(new I1(Dt,iW,sC,cz,rZ))}};
J3.visitAfter=function(T){var Z=[],cz=[],aA;for(this._root&&Z.push(new I1(this._root,this._x0,this._y0,this._x1,this._y1));aA=Z.pop();){var Dt=aA.node;if(Dt.length){var iW,sC=aA.x0,qq=aA.y0,kI=aA.x1,rZ=aA.y1,Dw=(sC+kI)/2,Mq=(qq+rZ)/2;(iW=Dt[0])&&Z.push(new I1(iW,sC,qq,Dw,Mq));(iW=Dt[1])&&Z.push(new I1(iW,Dw,qq,kI,Mq));(iW=Dt[2])&&Z.push(new I1(iW,sC,Mq,Dw,rZ));(iW=Dt[3])&&Z.push(new I1(iW,Dw,Mq,kI,rZ))}cz.push(aA)}for(;aA=cz.pop();)T(aA.node,aA.x0,aA.y0,aA.x1,aA.y1);return this};
J3.x=function(T){return arguments.length?(this._x=T,this):this._x};
J3.y=function(T){return arguments.length?(this._y=T,this):this._y};
var lID=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;qwC.prototype=Lwz.prototype;Lwz.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 D6s,$6M={"%":function(T,Z){return(T*100).toFixed(Z)},
b:function(T){return Math.round(T).toString(2)},
c:function(T){return T+""},
d:function(T){return Math.round(T).toString(10)},
e:function(T,Z){return T.toExponential(Z)},
f:function(T,Z){return T.toFixed(Z)},
g:function(T,Z){return T.toPrecision(Z)},
o:function(T){return Math.round(T).toString(8)},
p:function(T,Z){return XGu(T*100,Z)},
r:XGu,s:function(T,Z){var cz=eGW(T,Z);if(!cz)return T+"";var aA=cz[0];cz=cz[1];cz=cz-(D6s=Math.max(-8,Math.min(8,Math.floor(cz/3)))*3)+1;var Dt=aA.length;return cz===Dt?aA:cz>Dt?aA+Array(cz-Dt+1).join("0"):cz>0?aA.slice(0,cz)+"."+aA.slice(cz):"0."+Array(1-cz).join("0")+eGW(T,Math.max(0,Z+cz-1))[0]},
X:function(T){return Math.round(T).toString(16).toUpperCase()},
x:function(T){return Math.round(T).toString(16)}},x6v="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),O6S;
(function(T){return O6S=Apv(T)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});D4.prototype={constructor:D4,reset:function(){this.s=this.t=0},
add:function(T){Y8I(wdt,T,this.t);Y8I(this,wdt.s,this.s);this.s?this.t+=wdt.t:this.s=wdt.t},
valueOf:function(){return this.s}};
var wdt=new D4,kN=Math.PI,DZ=kN/2,Chw=kN/4,MFS=kN*2,YwU=kN/180,rm=Math.abs,fRp=Math.atan,pGw=Math.atan2,$D=Math.cos,ot=Math.sin,cOC=Math.sqrt;new D4;new D4;new D4;var jL6=new D4;(function(T,Z,cz,aA){return function(Dt){function iW(Ln,mq){T(Ln,mq)&&Dt.point(Ln,mq)}
function sC(Ln,mq){uS.point(Ln,mq)}
function qq(){D3.point=sC;uS.lineStart()}
function kI(){D3.point=iW;uS.lineEnd()}
function rZ(Ln,mq){p_.push([Ln,mq]);Oh.point(Ln,mq)}
function Dw(){Oh.lineStart();p_=[]}
function Mq(){rZ(p_[0][0],p_[0][1]);Oh.lineEnd();var Ln=Oh.clean(),mq=pm.result(),cA=mq.length,TI;p_.pop();Ef.push(p_);p_=null;if(cA)if(Ln&1){if(cA=mq[0],(mq=cA.length-1)>0){uj||(Dt.polygonStart(),uj=!0);Dt.lineStart();for(Ln=0;Ln<mq;++Ln)Dt.point((TI=cA[Ln])[0],TI[1]);Dt.lineEnd()}}else cA>1&&Ln&2&&mq.push(mq.pop().concat(mq.shift())),qt.push(mq.filter(duS))}
var uS=Z(Dt),pm=Fdq(),Oh=Z(pm),uj=!1,Ef,qt,p_,D3={point:iW,lineStart:qq,lineEnd:kI,polygonStart:function(){D3.point=rZ;D3.lineStart=Dw;D3.lineEnd=Mq;qt=[];Ef=[]},
polygonEnd:function(){D3.point=iW;D3.lineStart=qq;D3.lineEnd=kI;var Ln=qt,mq=Ln.length;var cA=-1;for(var TI=0,Cg,YB;++cA<mq;)TI+=Ln[cA].length;for(Cg=Array(TI);--mq>=0;)for(YB=Ln[mq],cA=YB.length;--cA>=0;)Cg[--TI]=YB[cA];qt=Cg;Ln=Ef;mq=aA[0];TI=aA[1];var R3=ot(TI);cA=[ot(mq),-$D(mq),0];YB=Cg=0;jL6.reset();R3===1?TI=DZ+1E-6:R3===-1&&(TI=-DZ-1E-6);R3=0;for(var dj=Ln.length;R3<dj;++R3)if(cd=(qN=Ln[R3]).length){var qN,cd,Wy=qN[cd-1],mR=Wy[0],vn=Wy[1]/2+Chw,qgC=ot(vn),e$s=$D(vn);for(vn=0;vn<cd;++vn,mR=
ijA,qgC=gYw,e$s=v0,Wy=LZv){var LZv=qN[vn],ijA=LZv[0];v0=LZv[1]/2+Chw;var gYw=ot(v0),v0=$D(v0),OB=ijA-mR,PA8=OB>=0?1:-1,mp6=PA8*OB,rOg=mp6>kN;qgC*=gYw;jL6.add(pGw(qgC*PA8*ot(mp6),e$s*v0+qgC*$D(mp6)));Cg+=rOg?OB+PA8*MFS:OB;rOg^mR>=mq^ijA>=mq&&(Wy=j8I(ffu(Wy),ffu(LZv)),iSk(Wy),mR=j8I(cA,Wy),iSk(mR),mR=(rOg^OB>=0?-1:1)*gNV(mR[2]),TI>mR||TI===mR&&(Wy[0]||Wy[1]))&&(YB+=rOg^OB>=0?1:-1)}}Ln=(Cg<-1E-6||Cg<1E-6&&jL6<-1E-6)^YB&1;qt.length?(uj||(Dt.polygonStart(),uj=!0),uoq(qt,zXQ,Ln,cz,Dt)):Ln&&(uj||(Dt.polygonStart(),
uj=!0),Dt.lineStart(),cz(null,null,1,Dt),Dt.lineEnd());uj&&(Dt.polygonEnd(),uj=!1);qt=Ef=null},
sphere:function(){Dt.polygonStart();Dt.lineStart();cz(null,null,1,Dt);Dt.lineEnd();Dt.polygonEnd()}};
return D3}})(function(){return!0},function(T){var Z=NaN,cz=NaN,aA=NaN,Dt;
return{lineStart:function(){T.lineStart();Dt=1},
point:function(iW,sC){var qq=iW>0?kN:-kN,kI=rm(iW-Z);if(rm(kI-kN)<1E-6)T.point(Z,cz=(cz+sC)/2>0?DZ:-DZ),T.point(aA,cz),T.lineEnd(),T.lineStart(),T.point(qq,cz),T.point(iW,cz),Dt=0;else if(aA!==qq&&kI>=kN){rm(Z-aA)<1E-6&&(Z-=aA*1E-6);rm(iW-qq)<1E-6&&(iW-=qq*1E-6);kI=Z;var rZ=cz,Dw=iW,Mq,uS,pm=ot(kI-Dw);cz=rm(pm)>1E-6?fRp((ot(rZ)*(uS=$D(sC))*ot(Dw)-ot(sC)*(Mq=$D(rZ))*ot(kI))/(Mq*uS*pm)):(rZ+sC)/2;T.point(aA,cz);T.lineEnd();T.lineStart();T.point(qq,cz);Dt=0}T.point(Z=iW,cz=sC);aA=qq},
lineEnd:function(){T.lineEnd();Z=cz=NaN},
clean:function(){return 2-Dt}}},function(T,Z,cz,aA){T==null?(cz*=DZ,aA.point(-kN,cz),aA.point(0,cz),aA.point(kN,cz),aA.point(kN,0),aA.point(kN,-cz),aA.point(0,-cz),aA.point(-kN,-cz),aA.point(-kN,0),aA.point(-kN,cz)):rm(T[0]-Z[0])>1E-6?(T=T[0]<Z[0]?kN:-kN,cz=cz*T/2,aA.point(-T,cz),aA.point(0,cz),aA.point(T,cz)):aA.point(Z[0],Z[1])},[-kN,
-DZ]);new D4;new D4;new D4;new D4;rT6.prototype={constructor:rT6,point:function(T,Z){this.stream.point(T,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()}};
$D(30*YwU);(function(T){return function(Z){var cz=new rT6,aA;for(aA in T)cz[aA]=T[aA];cz.stream=Z;return cz}})({point:function(T,Z){this.stream.point(T*YwU,Z*YwU)}});
m6v(function(T){return cOC(2/(1+T))}).invert=MJ(function(T){return 2*gNV(T/2)});
m6v(function(T){return(T=T>1?0:T<-1?kN:Math.acos(T))&&T/ot(T)}).invert=MJ(function(T){return T});
cOC(3);MJ(fRp);MJ(gNV);MJ(function(T){return 2*fRp(T)});
CI.prototype=Teq.prototype={constructor:CI,count:function(){return this.eachAfter(H7v)},
each:function(T){var Z,cz=[this],aA;do{var Dt=cz.reverse();for(cz=[];Z=Dt.pop();)if(T(Z),Z=Z.children){var iW=0;for(aA=Z.length;iW<aA;++iW)cz.push(Z[iW])}}while(cz.length);return this},
eachAfter:function(T){for(var Z,cz=[this],aA=[],Dt,iW;Z=cz.pop();)if(aA.push(Z),Z=Z.children)for(Dt=0,iW=Z.length;Dt<iW;++Dt)cz.push(Z[Dt]);for(;Z=aA.pop();)T(Z);return this},
eachBefore:function(T){for(var Z,cz=[this],aA;Z=cz.pop();)if(T(Z),Z=Z.children)for(aA=Z.length-1;aA>=0;--aA)cz.push(Z[aA]);return this},
sum:function(T){return this.eachAfter(function(Z){for(var cz=+T(Z.data)||0,aA=Z.children,Dt=aA&&aA.length;--Dt>=0;)cz+=aA[Dt].value;Z.value=cz})},
sort:function(T){return this.eachBefore(function(Z){Z.children&&Z.children.sort(T)})},
path:function(T){var Z=this;var cz=Z;var aA=T;if(cz!==aA){var Dt=cz.ancestors(),iW=aA.ancestors(),sC=null;cz=Dt.pop();for(aA=iW.pop();cz===aA;)sC=cz,cz=Dt.pop(),aA=iW.pop();cz=sC}for(aA=[Z];Z!==cz;)Z=Z.parent,aA.push(Z);for(Z=aA.length;T!==cz;)aA.splice(Z,0,T),T=T.parent;return aA},
ancestors:function(){for(var T=this,Z=[T];T=T.parent;)Z.push(T);return Z},
links:function(){var T=this,Z=[];T.each(function(cz){cz!==T&&Z.push({source:cz.parent,target:cz})});
return Z},
copy:function(){return Teq(this).eachBefore(oeg)}};
(function(T,Z){this._=T;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=Z}).prototype=Object.create(CI.prototype);
var aRe=new Date,nGe=new Date,ciu=pM(function(){},function(T,Z){T.setTime(+T+Z)},function(T,Z){return Z-T});
ciu.every=function(T){T=Math.floor(T);return isFinite(T)&&T>0?T>1?pM(function(Z){Z.setTime(Math.floor(Z/T)*T)},function(Z,cz){Z.setTime(+Z+cz*T)},function(Z,cz){return(cz-Z)/T}):ciu:null};
pM(function(T){T.setTime(Math.floor(T/1E3)*1E3)},function(T,Z){T.setTime(+T+Z*1E3)},function(T,Z){return(Z-T)/1E3},function(T){return T.getUTCSeconds()});
pM(function(T){T.setTime(Math.floor(T/6E4)*6E4)},function(T,Z){T.setTime(+T+Z*6E4)},function(T,Z){return(Z-T)/6E4},function(T){return T.getMinutes()});
pM(function(T){var Z=T.getTimezoneOffset()*6E4%36E5;Z<0&&(Z+=36E5);T.setTime(Math.floor((+T-Z)/36E5)*36E5+Z)},function(T,Z){T.setTime(+T+Z*36E5)},function(T,Z){return(Z-T)/36E5},function(T){return T.getHours()});
var s8Z=pM(function(T){T.setHours(0,0,0,0)},function(T,Z){T.setDate(T.getDate()+Z)},function(T,Z){return(Z-T-(Z.getTimezoneOffset()-T.getTimezoneOffset())*6E4)/864E5},function(T){return T.getDate()-1}),oKM=DI(0),EGA=DI(1);
DI(2);DI(3);var Wwt=DI(4);DI(5);DI(6);pM(function(T){T.setDate(1);T.setHours(0,0,0,0)},function(T,Z){T.setMonth(T.getMonth()+Z)},function(T,Z){return Z.getMonth()-T.getMonth()+(Z.getFullYear()-T.getFullYear())*12},function(T){return T.getMonth()});
var NL=pM(function(T){T.setMonth(0,1);T.setHours(0,0,0,0)},function(T,Z){T.setFullYear(T.getFullYear()+Z)},function(T,Z){return Z.getFullYear()-T.getFullYear()},function(T){return T.getFullYear()});
NL.every=function(T){return isFinite(T=Math.floor(T))&&T>0?pM(function(Z){Z.setFullYear(Math.floor(Z.getFullYear()/T)*T);Z.setMonth(0,1);Z.setHours(0,0,0,0)},function(Z,cz){Z.setFullYear(Z.getFullYear()+cz*T)}):null};
pM(function(T){T.setUTCSeconds(0,0)},function(T,Z){T.setTime(+T+Z*6E4)},function(T,Z){return(Z-T)/6E4},function(T){return T.getUTCMinutes()});
pM(function(T){T.setUTCMinutes(0,0,0)},function(T,Z){T.setTime(+T+Z*36E5)},function(T,Z){return(Z-T)/36E5},function(T){return T.getUTCHours()});
var A8u=pM(function(T){T.setUTCHours(0,0,0,0)},function(T,Z){T.setUTCDate(T.getUTCDate()+Z)},function(T,Z){return(Z-T)/864E5},function(T){return T.getUTCDate()-1}),Z6v=$e(0),R56=$e(1);
$e(2);$e(3);var bjV=$e(4);$e(5);$e(6);pM(function(T){T.setUTCDate(1);T.setUTCHours(0,0,0,0)},function(T,Z){T.setUTCMonth(T.getUTCMonth()+Z)},function(T,Z){return Z.getUTCMonth()-T.getUTCMonth()+(Z.getUTCFullYear()-T.getUTCFullYear())*12},function(T){return T.getUTCMonth()});
var SE=pM(function(T){T.setUTCMonth(0,1);T.setUTCHours(0,0,0,0)},function(T,Z){T.setUTCFullYear(T.getUTCFullYear()+Z)},function(T,Z){return Z.getUTCFullYear()-T.getUTCFullYear()},function(T){return T.getUTCFullYear()});
SE.every=function(T){return isFinite(T=Math.floor(T))&&T>0?pM(function(Z){Z.setUTCFullYear(Math.floor(Z.getUTCFullYear()/T)*T);Z.setUTCMonth(0,1);Z.setUTCHours(0,0,0,0)},function(Z,cz){Z.setUTCFullYear(Z.getUTCFullYear()+cz*T)}):null};
var lfI={"-":"",_:" ",0:"0"},Tj=/^\s*\d+/,U$z=/^%/,Qol=/[\\^$*+?|[\]().{}]/g,aXA;(function(T){aXA=VbQ(T);JAv=aXA.utcFormat;vtn=aXA.utcParse;return aXA})({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||JAv("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||vtn("%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 Cl0=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Db);L4(Cl0);var eKl=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Db);L4(eKl);var gJ0=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Db);L4(gJ0);var cGl=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Db);
L4(cGl);var k8M=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Db);L4(k8M);var IAQ=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Db);L4(IAQ);var JGS=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Db);L4(JGS);var vJx=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Db);L4(vJx);var wXl=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Db);L4(wXl);var qK7=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Db);L4(qK7);var L2l=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Db);L4(L2l);var rGX=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Db);L4(rGX);var aA7=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Db);L4(aA7);var nJo=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Db);L4(nJo);var RK7=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Db);L4(RK7);var EJl=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Db);L4(EJl);var W27=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Db);L4(W27);var bWq=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Db);L4(bWq);var hKj=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Db);L4(hKj);var XXQ=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Db);L4(XXQ);var G8Q=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Db);L4(G8Q);var xmX=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Db);L4(xmX);var Dmx=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Db);L4(Dmx);var $m0=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Db);L4($m0);var YKv=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Db);L4(YKv);var fAg=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Db);L4(fAg);var jEg=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Db);L4(jEg);Dpv(ju(300,.5,0),ju(-240,.5,1));Dpv(ju(-100,.75,.35),ju(80,1.5,.8));Dpv(ju(260,.75,.35),ju(80,1.5,.8));ju();ng();JOC(Db("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
JOC(Db("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
JOC(Db("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
JOC(Db("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
VZk.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(T,Z){T=+T;Z=+Z;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(T,Z):this._context.moveTo(T,Z);break;case 1:this._point=2;default:this._context.lineTo(T,Z)}}};
(function(T){function Z(cz){return new tZY(T(cz))}
Z._curve=T;return Z})(function(T){return new VZk(T)});
tZY.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(T,Z){this._curve.point(Z*Math.sin(T),Z*-Math.cos(T))}};
XIz.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:h56(this,this._t0,NeI(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(T,Z){var cz=NaN;T=+T;Z=+Z;if(T!==this._x1||Z!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(T,Z):this._context.moveTo(T,Z);break;case 1:this._point=2;break;case 2:this._point=3;h56(this,NeI(this,cz=BeB(this,T,Z)),cz);break;default:h56(this,this._t0,cz=BeB(this,T,Z))}this._x0=this._x1;this._x1=T;this._y0=this._y1;this._y1=Z;this._t0=cz}}};
(function(T){this._context=new S8q(T)}.prototype=Object.create(XIz.prototype)).point=function(T,Z){XIz.prototype.point.call(this,Z,T)};
S8q.prototype={moveTo:function(T,Z){this._context.moveTo(Z,T)},
closePath:function(){this._context.closePath()},
lineTo:function(T,Z){this._context.lineTo(Z,T)},
bezierCurveTo:function(T,Z,cz,aA,Dt,iW){this._context.bezierCurveTo(Z,T,aA,cz,iW,Dt)}};
kT.prototype={constructor:kT,scale:function(T){return T===1?this:new kT(this.k*T,this.x,this.y)},
translate:function(T,Z){return T===0&Z===0?this:new kT(this.k,this.x+this.k*T,this.y+this.k*Z)},
apply:function(T){return[T[0]*this.k+this.x,T[1]*this.k+this.y]},
invert:function(T){return[(T[0]-this.x)/this.k,(T[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new kT(1,0,0);c6z=Uv;GM.svg=GM.svg;GM.xhtml=GM.xhtml;GM.xlink=GM.xlink;GM.xml=GM.xml;GM.xmlns=GM.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 w2I="hammer_"+(Math.random()*1E6|0),qm4=function(){var e=document||document;if(!e[w2I]){var g=function(){(function(c,k,I,J){function q(me,Q6,y6){return setTimeout(h(me,y6),Q6)}
function L(me,Q6,y6){return Array.isArray(me)?(n(me,y6[Q6],y6),!0):!1}
function n(me,Q6,y6){var Gq;if(me)if(me.forEach)me.forEach(Q6,y6);else if(me.length!==J){var $X=0;for(Gq=me.length;$X<Gq;$X++)Q6.call(y6,me[$X],$X,me)}else for($X in me)me.hasOwnProperty($X)&&Q6.call(y6,me[$X],$X,me)}
function R(me,Q6,y6){for(var Gq=Object.keys(Q6),$X=0,PJ=Gq.length;$X<PJ;$X++)if(!y6||y6&&me[Gq[$X]]===J)me[Gq[$X]]=Q6[Gq[$X]];return me}
function W(me,Q6){return R(me,Q6,!0)}
function b(me,Q6,y6){Q6=Q6.prototype;var Gq=me.prototype=Object.create(Q6);Gq.constructor=me;Gq._super=Q6;y6&&R(Gq,y6)}
function h(me,Q6){return function(){return me.apply(Q6,arguments)}}
function X(me,Q6){return typeof me=="function"?me.apply(Q6?Q6[0]||J:J,Q6):me}
function D(me,Q6,y6){n(l(Q6),function(Gq){me.addEventListener(Gq,y6,!1)})}
function f(me,Q6,y6){n(l(Q6),function(Gq){me.removeEventListener(Gq,y6,!1)})}
function l(me){return me.trim().split(/\s+/g)}
function A(me,Q6,y6){if(me.indexOf&&!y6)return me.indexOf(Q6);for(var Gq=0,$X=me.length;Gq<$X;Gq++)if(y6&&me[Gq][y6]==Q6||!y6&&me[Gq]===Q6)return Gq;return-1}
function d(me,Q6,y6){for(var Gq=[],$X=[],PJ=0,mO=me.length;PJ<mO;PJ++){var is=Q6?me[PJ][Q6]:me[PJ];A($X,is)<0&&Gq.push(me[PJ]);$X[PJ]=is}y6&&(Gq=Q6?Gq.sort(function(ju,ox){return ju[Q6]>ox[Q6]}):Gq.sort());
return Gq}
function S(me,Q6){for(var y6,Gq=Q6[0].toUpperCase()+Q6.slice(1),$X=0,PJ=Rx.length;$X<PJ;$X++)if(y6=(y6=Rx[$X])?y6+Gq:Q6,y6 in me)return y6;return J}
function V(me,Q6){var y6=this;this.manager=me;this.callback=Q6;this.element=me.element;this.target=me.options.inputTarget;this.domHandler=function(Gq){X(me.options.enable,[me])&&y6.handler(Gq)};
this.evEl&&D(this.element,this.evEl,this.domHandler);this.evTarget&&D(this.target,this.evTarget,this.domHandler);this.evWin&&D(c,this.evWin,this.domHandler)}
function Q(me){var Q6;jz?Q6=Fg:J0?Q6=oA:Uv?Q6=Zt:Q6=Xg;return new Q6(me,y)}
function y(me,Q6,y6){var Gq=y6.pointers.length,$X=y6.changedPointers.length,PJ=Q6&1&&Gq-$X===0;y6.isFirst=!!PJ;y6.isFinal=!!(Q6&12&&Gq-$X===0);PJ&&(me.session={});y6.eventType=Q6;Q6=me.session;Gq=y6.pointers;$X=Gq.length;Q6.firstInput||(Q6.firstInput=O(y6));$X>1&&!Q6.firstMultiple?Q6.firstMultiple=O(y6):$X===1&&(Q6.firstMultiple=!1);PJ=Q6.firstInput;var mO=($X=Q6.firstMultiple)?$X.center:PJ.center,is=y6.center=Jq(Gq);y6.timeStamp=Wq();y6.deltaTime=y6.timeStamp-PJ.timeStamp;y6.angle=RA(mO,is);y6.distance=
bW(mO,is);PJ=y6.center;mO=Q6.offsetDelta||{};is=Q6.prevDelta||{};var ju=Q6.prevInput||{};if(y6.eventType===1||ju.eventType===4)is=Q6.prevDelta={x:ju.deltaX||0,y:ju.deltaY||0},mO=Q6.offsetDelta={x:PJ.x,y:PJ.y};y6.deltaX=is.x+(PJ.x-mO.x);y6.deltaY=is.y+(PJ.y-mO.y);y6.offsetDirection=LC(y6.deltaX,y6.deltaY);$X?(PJ=$X.pointers,PJ=bW(Gq[0],Gq[1],ng)/bW(PJ[0],PJ[1],ng)):PJ=1;y6.scale=PJ;$X?($X=$X.pointers,Gq=RA(Gq[1],Gq[0],ng)-RA($X[1],$X[0],ng)):Gq=0;y6.rotation=Gq;mO=Q6.lastInterval||y6;Gq=y6.timeStamp-
mO.timeStamp;y6.eventType!=8&&(Gq>25||mO.velocity===J)?(PJ=mO.deltaX-y6.deltaX,mO=mO.deltaY-y6.deltaY,is=PJ/Gq||0,ju=mO/Gq||0,Gq=is,$X=ju,is=L1(is)>L1(ju)?is:ju,PJ=LC(PJ,mO),Q6.lastInterval=y6):(is=mO.velocity,Gq=mO.velocityX,$X=mO.velocityY,PJ=mO.direction);y6.velocity=is;y6.velocityX=Gq;y6.velocityY=$X;y6.direction=PJ;Q6=me.element;a:{for(Gq=y6.srcEvent.target;Gq;){if(Gq==Q6){Gq=!0;break a}Gq=Gq.parentNode}Gq=!1}Gq&&(Q6=y6.srcEvent.target);y6.target=Q6;me.emit("hammer.input",y6);me.recognize(y6);
me.session.prevInput=y6}
function O(me){for(var Q6=[],y6=0;y6<me.pointers.length;y6++)Q6[y6]={clientX:to(me.pointers[y6].clientX),clientY:to(me.pointers[y6].clientY)};return{timeStamp:Wq(),pointers:Q6,center:Jq(Q6),deltaX:me.deltaX,deltaY:me.deltaY}}
function Jq(me){var Q6=me.length;if(Q6===1)return{x:to(me[0].clientX),y:to(me[0].clientY)};for(var y6=0,Gq=0,$X=0;$X<Q6;$X++)y6+=me[$X].clientX,Gq+=me[$X].clientY;return{x:to(y6/Q6),y:to(Gq/Q6)}}
function LC(me,Q6){return me===Q6?1:L1(me)>=L1(Q6)?me>0?2:4:Q6>0?8:16}
function bW(me,Q6,y6){y6||(y6=on);var Gq=Q6[y6[0]]-me[y6[0]];me=Q6[y6[1]]-me[y6[1]];return Math.sqrt(Gq*Gq+me*me)}
function RA(me,Q6,y6){y6||(y6=on);return Math.atan2(Q6[y6[1]]-me[y6[1]],Q6[y6[0]]-me[y6[0]])*180/Math.PI}
function Xg(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;V.apply(this,arguments)}
function Fg(){this.evEl=F1;this.evWin=Uu;V.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function oA(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};V.apply(this,arguments)}
function Zt(){V.apply(this,arguments);var me=h(this.handler,this);this.touch=new oA(this.manager,me);this.mouse=new Xg(this.manager,me)}
function Ev(me,Q6){this.manager=me;this.set(Q6)}
function an(me){if(me.indexOf("none")>-1)return"none";var Q6=me.indexOf("pan-x")>-1,y6=me.indexOf("pan-y")>-1;return Q6&&y6?"pan-x pan-y":Q6||y6?Q6?"pan-x":"pan-y":me.indexOf("manipulation")>-1?"manipulation":"auto"}
function V6(me){this.id=Ww++;this.manager=null;this.options=W(me||{},this.defaults);me=this.options.enable;this.options.enable=me===J?!0:me;this.state=1;this.simultaneous={};this.requireFail=[]}
function bs(me){return me==16?"down":me==8?"up":me==2?"left":me==4?"right":""}
function f1(me,Q6){return(Q6=Q6.manager)?Q6.get(me):me}
function hk(){V6.apply(this,arguments)}
function Pq(){hk.apply(this,arguments);this.pY=this.pX=null}
function vq(){hk.apply(this,arguments)}
function hq(){V6.apply(this,arguments);this._input=this._timer=null}
function zv(){hk.apply(this,arguments)}
function XM(){hk.apply(this,arguments)}
function Su(){V6.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function p1(me,Q6){Q6=Q6||{};var y6=Q6.recognizers;Q6.recognizers=y6===J?p1.defaults.preset:y6;return new C1(me,Q6)}
function C1(me,Q6){Q6=Q6||{};this.options=W(Q6,p1.defaults);this.options.inputTarget=this.options.inputTarget||me;this.handlers={};this.session={};this.recognizers=[];this.element=me;this.input=Q(this);this.touchAction=new Ev(this,this.options.touchAction);mz(this,!0);n(Q6.recognizers,function(y6){var Gq=this.add(new y6[0](y6[1]));y6[2]&&Gq.recognizeWith(y6[2]);y6[3]&&Gq.requireFailure(y6[2])},this)}
function mz(me,Q6){var y6=me.element;n(me.options.cssProps,function(Gq,$X){y6.style[S(y6.style,$X)]=Q6?Gq:""})}
function Ov(me,Q6){var y6=k.createEvent("Event");y6.initEvent(me,!0,!0);y6.gesture=Q6;Q6.target.dispatchEvent(y6)}
var Rx=" webkit moz MS ms o".split(" "),V4=k.createElement("div"),to=Math.round,L1=Math.abs,Wq=Date.now,Ww=1,Bw=/mobile|tablet|ip(ad|hone|od)|android/i,Uv="ontouchstart"in c,jz=S(c,"PointerEvent")!==J,J0=Uv&&Bw.test(navigator.userAgent),on=["x","y"],ng=["clientX","clientY"];V.prototype={handler:function(){},
destroy:function(){this.evEl&&f(this.element,this.evEl,this.domHandler);this.evTarget&&f(this.target,this.evTarget,this.domHandler);this.evWin&&f(c,this.evWin,this.domHandler)}};
var MM={mousedown:1,mousemove:2,mouseup:4};b(Xg,V,{handler:function(me){var Q6=MM[me.type];Q6&1&&me.button===0&&(this.pressed=!0);Q6&2&&me.which!==1&&(Q6=4);this.pressed&&this.allow&&(Q6&4&&(this.pressed=!1),this.callback(this.manager,Q6,{pointers:[me],changedPointers:[me],pointerType:"mouse",srcEvent:me}))}});
var I3={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},kF={2:"touch",3:"pen",4:"mouse",5:"kinect"},F1="pointerdown",Uu="pointermove pointerup pointercancel";c.MSPointerEvent&&(F1="MSPointerDown",Uu="MSPointerMove MSPointerUp MSPointerCancel");b(Fg,V,{handler:function(me){var Q6=this.store,y6=!1,Gq=me.type.toLowerCase().replace("ms","");Gq=I3[Gq];var $X=kF[me.pointerType]||me.pointerType;Gq&1&&(me.button===0||$X=="touch")?Q6.push(me):Gq&12&&(y6=!0);var PJ=A(Q6,me.pointerId,"pointerId");
PJ<0||(Q6[PJ]=me,this.callback(this.manager,Gq,{pointers:Q6,changedPointers:[me],pointerType:$X,srcEvent:me}),y6&&Q6.splice(PJ,1))}});
var bK={touchstart:1,touchmove:2,touchend:4,touchcancel:8};b(oA,V,{handler:function(me){var Q6=bK[me.type];var y6=Array.prototype.slice.call(me.touches,0);var Gq=this.targetIds;if(Q6&3&&y6.length===1)Gq[y6[0].identifier]=!0,Gq=[y6,y6];else{var $X,PJ=Array.prototype.slice.call(me.targetTouches,0),mO=Array.prototype.slice.call(me.changedTouches,0),is=[];if(Q6===1)for(y6=0,$X=PJ.length;y6<$X;y6++)Gq[PJ[y6].identifier]=!0;y6=0;for($X=mO.length;y6<$X;y6++)Gq[mO[y6].identifier]&&is.push(mO[y6]),Q6&12&&
delete Gq[mO[y6].identifier];Gq=is.length?[d(PJ.concat(is),"identifier",!0),is]:void 0}Gq&&this.callback(this.manager,Q6,{pointers:Gq[0],changedPointers:Gq[1],pointerType:"touch",srcEvent:me})}});
b(Zt,V,{handler:function(me,Q6,y6){var Gq=y6.pointerType=="mouse";if(y6.pointerType=="touch")this.mouse.allow=!1;else if(Gq&&!this.mouse.allow)return;Q6&12&&(this.mouse.allow=!0);this.callback(me,Q6,y6)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var ZE=S(V4.style,"touchAction"),b0=ZE!==J;Ev.prototype={set:function(me){me=="compute"&&(me=this.compute());b0&&(this.manager.element.style[ZE]=me);this.actions=me.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var me=[];n(this.manager.recognizers,function(Q6){X(Q6.options.enable,[Q6])&&(me=me.concat(Q6.getTouchAction()))});
return an(me.join(" "))},
preventDefaults:function(me){if(!b0){var Q6=me.srcEvent;me=me.offsetDirection;if(this.manager.session.prevented)Q6.preventDefault();else{var y6=this.actions,Gq=y6.indexOf("none")>-1,$X=y6.indexOf("pan-y")>-1;y6=y6.indexOf("pan-x")>-1;if(Gq||$X&&y6||$X&&me&6||y6&&me&24)return this.preventSrc(Q6)}}},
preventSrc:function(me){this.manager.session.prevented=!0;me.preventDefault()}};
V6.prototype={defaults:{},set:function(me){R(this.options,me);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(me){if(L(me,"recognizeWith",this))return this;var Q6=this.simultaneous;me=f1(me,this);Q6[me.id]||(Q6[me.id]=me,me.recognizeWith(this));return this},
dropRecognizeWith:function(me){if(L(me,"dropRecognizeWith",this))return this;me=f1(me,this);delete this.simultaneous[me.id];return this},
requireFailure:function(me){if(L(me,"requireFailure",this))return this;var Q6=this.requireFail;me=f1(me,this);A(Q6,me)===-1&&(Q6.push(me),me.requireFailure(this));return this},
dropRequireFailure:function(me){if(L(me,"dropRequireFailure",this))return this;me=f1(me,this);me=A(this.requireFail,me);me>-1&&this.requireFail.splice(me,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(me){return!!this.simultaneous[me.id]},
emit:function(me){function Q6($X){y6.manager.emit(y6.options.event+($X?Gq&16?"cancel":Gq&8?"end":Gq&4?"move":Gq&2?"start":"":""),me)}
var y6=this,Gq=this.state;Gq<8&&Q6(!0);Q6();Gq>=8&&Q6(!0)},
tryEmit:function(me){if(this.canEmit())return this.emit(me);this.state=32},
canEmit:function(){for(var me=0;me<this.requireFail.length;me++)if(!(this.requireFail[me].state&33))return!1;return!0},
recognize:function(me){me=R({},me);X(this.options.enable,[this,me])?(this.state&56&&(this.state=1),this.state=this.process(me),this.state&30&&this.tryEmit(me)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
b(hk,V6,{defaults:{pointers:1},attrTest:function(me){var Q6=this.options.pointers;return Q6===0||me.pointers.length===Q6},
process:function(me){var Q6=this.state,y6=me.eventType,Gq=Q6&6;me=this.attrTest(me);return Gq&&(y6&8||!me)?Q6|16:Gq||me?y6&4?Q6|8:Q6&2?Q6|4:2:32}});
b(Pq,hk,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var me=this.options.direction;if(me===30)return["none"];var Q6=[];me&6&&Q6.push("pan-y");me&24&&Q6.push("pan-x");return Q6},
directionTest:function(me){var Q6=this.options,y6=!0,Gq=me.distance,$X=me.direction,PJ=me.deltaX,mO=me.deltaY;$X&Q6.direction||(Q6.direction&6?($X=PJ===0?1:PJ<0?2:4,y6=PJ!=this.pX,Gq=Math.abs(me.deltaX)):($X=mO===0?1:mO<0?8:16,y6=mO!=this.pY,Gq=Math.abs(me.deltaY)));me.direction=$X;return y6&&Gq>Q6.threshold&&$X&Q6.direction},
attrTest:function(me){return hk.prototype.attrTest.call(this,me)&&(this.state&2||!(this.state&2)&&this.directionTest(me))},
emit:function(me){this.pX=me.deltaX;this.pY=me.deltaY;var Q6=bs(me.direction);Q6&&this.manager.emit(this.options.event+Q6,me);this._super.emit.call(this,me)}});
b(vq,hk,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(me){return this._super.attrTest.call(this,me)&&(Math.abs(me.scale-1)>this.options.threshold||this.state&2)},
emit:function(me){this._super.emit.call(this,me);me.scale!==1&&this.manager.emit(this.options.event+(me.scale<1?"in":"out"),me)}});
b(hq,V6,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(me){var Q6=this.options,y6=me.pointers.length===Q6.pointers,Gq=me.distance<Q6.threshold,$X=me.deltaTime>Q6.time;this._input=me;if(!Gq||!y6||me.eventType&12&&!$X)this.reset();else if(me.eventType&1)this.reset(),this._timer=q(function(){this.state=8;this.tryEmit()},Q6.time,this);
else if(me.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(me){this.state===8&&(me&&me.eventType&4?this.manager.emit(this.options.event+"up",me):(this._input.timeStamp=Wq(),this.manager.emit(this.options.event,this._input)))}});
b(zv,hk,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(me){return this._super.attrTest.call(this,me)&&(Math.abs(me.rotation)>this.options.threshold||this.state&2)}});
b(XM,hk,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Pq.prototype.getTouchAction.call(this)},
attrTest:function(me){var Q6=this.options.direction;if(Q6&30)var y6=me.velocity;else Q6&6?y6=me.velocityX:Q6&24&&(y6=me.velocityY);return this._super.attrTest.call(this,me)&&Q6&me.direction&&L1(y6)>this.options.velocity&&me.eventType&4},
emit:function(me){var Q6=bs(me.direction);Q6&&this.manager.emit(this.options.event+Q6,me);this.manager.emit(this.options.event,me)}});
b(Su,V6,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(me){var Q6=this.options,y6=me.pointers.length===Q6.pointers,Gq=me.distance<Q6.threshold,$X=me.deltaTime<Q6.time;this.reset();if(me.eventType&1&&this.count===0)return this.failTimeout();if(Gq&&$X&&y6){if(me.eventType!=4)return this.failTimeout();y6=this.pTime?me.timeStamp-this.pTime<Q6.interval:!0;Gq=!this.pCenter||bW(this.pCenter,me.center)<Q6.posThreshold;this.pTime=me.timeStamp;this.pCenter=me.center;Gq&&y6?this.count+=1:this.count=1;this._input=me;if(this.count%Q6.taps===0)return this.hasRequireFailures()?
(this._timer=q(function(){this.state=8;this.tryEmit()},Q6.interval,this),2):8}return 32},
failTimeout:function(){this._timer=q(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))}});
p1.VERSION="2.0.2";p1.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[zv,{enable:!1}],[vq,{enable:!1},["rotate"]],[XM,{direction:6}],[Pq,{direction:6},["swipe"]],[Su],[Su,{event:"doubletap",taps:2},["tap"]],[hq]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};C1.prototype={set:function(me){R(this.options,me);return this},
stop:function(me){this.session.stopped=me?2:1},
recognize:function(me){var Q6=this.session;if(!Q6.stopped){this.touchAction.preventDefaults(me);var y6=this.recognizers,Gq=Q6.curRecognizer;if(!Gq||Gq&&Gq.state&8)Gq=Q6.curRecognizer=null;for(var $X=0,PJ=y6.length;$X<PJ;$X++){var mO=y6[$X];Q6.stopped===2||Gq&&mO!=Gq&&!mO.canRecognizeWith(Gq)?mO.reset():mO.recognize(me);!Gq&&mO.state&14&&(Gq=Q6.curRecognizer=mO)}}},
get:function(me){if(me instanceof V6)return me;for(var Q6=this.recognizers,y6=0;y6<Q6.length;y6++)if(Q6[y6].options.event==me)return Q6[y6];return null},
add:function(me){if(L(me,"add",this))return this;var Q6=this.get(me.options.event);Q6&&this.remove(Q6);this.recognizers.push(me);me.manager=this;this.touchAction.update();return me},
remove:function(me){if(L(me,"remove",this))return this;var Q6=this.recognizers;me=this.get(me);Q6.splice(A(Q6,me),1);this.touchAction.update();return this},
on:function(me,Q6){var y6=this.handlers;n(l(me),function(Gq){y6[Gq]=y6[Gq]||[];y6[Gq].push(Q6)});
return this},
off:function(me,Q6){var y6=this.handlers;n(l(me),function(Gq){Q6?y6[Gq].splice(A(y6[Gq],Q6),1):delete y6[Gq]});
return this},
emit:function(me,Q6){this.options.domEvents&&Ov(me,Q6);var y6=this.handlers[me]&&this.handlers[me].slice();if(y6&&y6.length){Q6.type=me;Q6.preventDefault=function(){Q6.srcEvent.preventDefault()};
me=0;for(var Gq=y6.length;me<Gq;me++)y6[me](Q6)}},
destroy:function(){this.element&&mz(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
R(p1,{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:C1,Input:V,TouchAction:Ev,Recognizer:V6,AttrRecognizer:hk,Tap:Su,Pan:Pq,Swipe:XM,Pinch:vq,Rotate:zv,Press:hq,on:D,off:f,each:n,merge:W,extend:R,inherit:b,bindFn:h,prefixed:S});
c[I]=p1})(window,document,"Hammer");
return window.Hammer}.call({});
g.DOCUMENT=e;e[w2I]=g}return e[w2I]};/*

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

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

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 XH,vEM,w94;XH=Element.prototype;vEM=XH.matches||XH.matchesSelector||XH.mozMatchesSelector||XH.msMatchesSelector||XH.oMatchesSelector||XH.webkitMatchesSelector;w94=function(){};
_.Lnq=function(e){var g=qsu,c=[];return g._collectTabbableNodes(e,c)?g._sortByTabIndex(c):c};
_.v=w94.prototype;_.v.isFocusable=function(e){return vEM.call(e,"input, select, textarea, button, object")?vEM.call(e,":not([disabled])"):vEM.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.v._normalizedTabIndex=function(e){return this.isFocusable(e)?(e=e.getAttribute("tabindex")||0,Number(e)):-1};
_.v._collectTabbableNodes=function(e,g){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;var c=this._normalizedTabIndex(e),k=c>0;c>=0&&g.push(e);if(e.localName==="content"||e.localName==="slot")c=_.IC(e).getDistributedNodes();else{var I;c=((I=_.IC(e).shadowRoot)!=null?I:_.IC(e.root||e)).children}for(e=0;e<c.length;e++)k=this._collectTabbableNodes(c[e],g)||k;return k};
_.v._isVisible=function(e){var g=e.style;return g.visibility!=="hidden"&&g.display!=="none"?(g=window.getComputedStyle(e),g.visibility!=="hidden"&&g.display!=="none"):!1};
_.v._sortByTabIndex=function(e){var g=e.length;if(g<2)return e;var c=Math.ceil(g/2);g=this._sortByTabIndex(e.slice(0,c));e=this._sortByTabIndex(e.slice(c));return this._mergeSortByTabIndex(g,e)};
_.v._mergeSortByTabIndex=function(e,g){for(var c=[];e.length>0&&g.length>0;)this._hasLowerTabOrder(e[0],g[0])?c.push(g.shift()):c.push(e.shift());return c.concat(e,g)};
_.v._hasLowerTabOrder=function(e,g){e=Math.max(e.tabIndex,0);g=Math.max(g.tabIndex,0);return e===0||g===0?g>e:e>g};
var qsu=new w94;var rLv;var agI;_.rk({_template:function(){if(agI!==void 0)return agI;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;rLv===void 0&&(rLv=document.createElement("template"));var k=rLv;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return agI=e},
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&&_.IC(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.IC(this.parentNode).removeChild(this)},
_onTransitionend:function(e){e&&e.target===this&&this.complete()},
_openedChanged:function(e){e?this.prepare():(e=window.getComputedStyle(this),e.transitionDuration!=="0s"&&e.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 G4=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;iq(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)};
G4.prototype._bringOverlayAtIndexToFront=function(e){var g=this._overlays[e];if(g){var c=this._overlays.length-1,k=this._overlays[c];k&&this._shouldBeBehindOverlay(g,k)&&c--;if(!(e>=c)){k=Math.max(this._getZ(_.nEv(this)),this._minimumZ);for(this._getZ(g)<=k&&this._applyOverlayZ(g,k);e<c;)this._overlays[e]=this._overlays[e+1],e++;this._overlays[c]=g}}};
G4.prototype.addOverlay=function(e){var g=this._overlays.indexOf(e);if(g>=0)this._bringOverlayAtIndexToFront(g);else{g=this._overlays.length;var c=this._overlays[g-1],k=Math.max(this._getZ(c),this._minimumZ),I=this._getZ(e);c&&this._shouldBeBehindOverlay(e,c)&&(this._applyOverlayZ(c,k),g--,k=Math.max(this._getZ(this._overlays[g-1]),this._minimumZ));I<=k&&this._applyOverlayZ(e,k);this._overlays.splice(g,0,e)}this.trackBackdrop()};
G4.prototype.removeOverlay=function(e){e=this._overlays.indexOf(e);e!==-1&&(this._overlays.splice(e,1),this.trackBackdrop())};
_.nEv=function(e){return e._overlays[e._overlays.length-1]};
_.v=G4.prototype;_.v.trackBackdrop=function(){var e=this._overlayWithBackdrop();if(e||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(e)-1,this.backdropElement.opened=!!e,this.backdropElement.prepare()};
_.v._overlayWithBackdrop=function(){for(var e=this._overlays.length-1;e>=0;e--)if(this._overlays[e].withBackdrop)return this._overlays[e]};
_.v._getZ=function(e){var g=this._minimumZ;if(e){var c,k,I=Number(((c=e.hostElement)!=null?c:e).style.zIndex||window.getComputedStyle((k=e.hostElement)!=null?k:e).zIndex);I===I&&(g=I)}return g};
_.v._setZ=function(e,g){var c;((c=e.hostElement)!=null?c:e).style.zIndex=g};
_.v._applyOverlayZ=function(e,g){this._setZ(e,g+2)};
_.v._overlayInPath=function(e){e=e||[];for(var g=0;g<e.length;g++){var c=void 0;if(((c=e[g].polymerController)!=null?c:e[g])._manager===this)return e[g]}};
_.v._onCaptureClick=function(e){var g=this._overlays.length-1;if(g!==-1)for(var c=_.IC(e).path,k,I;(k=this._overlays[g])&&this._overlayInPath(c)!==((I=k.hostElement)!=null?I:k);)if(k._onCaptureClick(e),k.allowClickThrough)g--;else break};
_.v._onCaptureFocus=function(e){var g=_.nEv(this);g&&g._onCaptureFocus(e)};
_.v._onCaptureKeyDown=function(e){var g=_.nEv(this);g&&(_.yB.keyboardEventMatchesKeys(e,"esc")?g._onCaptureEsc(e):_.yB.keyboardEventMatchesKeys(e,"tab")&&g._onCaptureTab(e))};
_.v._shouldBeBehindOverlay=function(e,g){return!e.alwaysOnTop&&g.alwaysOnTop&&!g.contains(e)};
_.Bd.Object.defineProperties(G4.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 e=document.activeElement;e&&e instanceof Element!==!1||(e=document.body);for(;e.root&&_.IC(e.root).activeElement;)e=_.IC(e.root).activeElement;return e}}});
_.xL=new G4;var hjC=0,XnA=0,G4e=null,xx6=[],Jr=["wheel","mousewheel","DOMMouseScroll"],Dxe;_.G("web_no_lock_on_touchstart_killswitch")&&(Jr.push("touchstart"),Jr.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;_.DP={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:_.xL},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var e;return this._focusedChild||_.IC((e=this.hostElement)!=null?e:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var e;return _.Lnq((e=this.hostElement)!=null?e: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 e;this._observer=_.IC((e=this.hostElement)!=null?e:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var e;_.IC((e=this.hostElement)!=null?e:this).unobserveNodes(this._observer)}this._observer=null;for(var g in this.__rafs)this.__rafs[g]!==null&&cancelAnimationFrame(this.__rafs[g]);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(e){this.fire("iron-overlay-canceled",e,{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 e;((e=this.hostElement)!=null?e:this).style.outline="none";var g;((g=this.hostElement)!=null?g:this).style.display="none"}},
_openedChanged:function(e){if(e){var g;((g=this.hostElement)!=null?g:this).removeAttribute("aria-hidden")}else{var c;((c=this.hostElement)!=null?c: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 e;if(this.withBackdrop&&!((e=this.hostElement)!=null?e:this).hasAttribute("tabindex")){var g;((g=this.hostElement)!=null?g:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var c;((c=this.hostElement)!=null?c: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 e;((e=this.hostElement)!=null?e:this).style.display="none";var g;((g=this.hostElement)!=null?g:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var e,g;((e=this.hostElement)!=null?e:this).style.transition=((g=this.hostElement)!=null?g:this).style.webkitTransition="none";var c,k;((c=this.hostElement)!=null?c:this).style.transform=((k=this.hostElement)!=null?k:this).style.webkitTransform="none";var I;((I=this.hostElement)!=null?I:this).style.display=""},
_finishPositioning:function(){var e;((e=this.hostElement)!=null?e:this).style.display="none";this.scrollTop=this.scrollTop;var g,c;((g=this.hostElement)!=null?g:this).style.transition=((c=this.hostElement)!=null?c:this).style.webkitTransition="";var k,I;((k=this.hostElement)!=null?k:this).style.transform=((I=this.hostElement)!=null?I:this).style.webkitTransform="";var J;((J=this.hostElement)!=null?J:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var e=this._manager.deepActiveElement,g;if(!(g=e===document.body))a:{for(;e;e=e.assignedSlot||e.parentNode||e.host)if(e===this){g=!0;break a}g=!1}g&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(e){this.noCancelOnOutsideClick||this.cancel(e)},
_onCaptureFocus:function(e){if(this.withBackdrop){var g=_.IC(e).path;g.indexOf(this)===-1?(e.stopPropagation(),this._applyFocus()):this._focusedChild=g[0]}},
_onCaptureEsc:function(e){this.noCancelOnEscKey||this.cancel(e)},
_onCaptureTab:function(e){if(this.withBackdrop){this.__ensureFirstLastFocusables();var g=e.shiftKey,c=g?this.__firstFocusableNode:this.__lastFocusableNode;g=g?this.__lastFocusableNode:this.__firstFocusableNode;if(c===g)c=!0;else{var k=this._manager.deepActiveElement;c=k===c||k===this}c&&(e.preventDefault(),this._focusedChild=g,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 e=this._focusableNodes;this.__firstFocusableNode=e[0];this.__lastFocusableNode=e[e.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(e,g){var c=this.__rafs;c[e]!==null&&cancelAnimationFrame(c[e]);c[e]=requestAnimationFrame(function(){c[e]=null;g.call(this)}.bind(this))},
__updateScrollObservers:function(e,g,c){e&&g&&this.__isValidScrollAction(c)?(c==="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),Dxe=_._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()):(e=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),e!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(e,1),Dxe=_._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(AO)for(var e=this;e;)e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host&&this.__rootNodes.push(e),e=e.host||e.assignedSlot||e.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(g){g.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(e){e.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(e){return e==="lock"||e==="refit"||e==="cancel"},
__onCaptureScroll:function(e){if(!(this.__isAnimating||_.IC(e).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(e)}},
__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)}};
_.$L=[JLv,_.Jc,_.DP];_.rk({_template:function(){if(klq!==void 0)return klq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;cLq===void 0&&(cLq=document.createElement("template"));var k=cLq;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return klq=e},
is:"tp-yt-iron-dropdown",behaviors:[_.Kz,_.yB,_.$L,iuq],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 e=_.IC(this.$.content).getDistributedNodes(),g=0,c=e.length;g<c;g++)if(e[g].nodeType===Node.ELEMENT_NODE)return e[g]},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(),_.DP._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.DP._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.DP._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var e=this.containedElement,g=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),c=0;c<g.length;c++)g[c].node=e;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(e){this._readied&&(e?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var e=this.focusTarget||this.containedElement;e&&this.opened&&!this.noAutoFocus?e.focus():_.DP._applyFocus.apply(this,arguments)}});var Rx4;var EEw;/*

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 Wnv=new _.eJ({type:"iconset"});
_.rk({_template:function(){if(EEw!==void 0)return EEw;var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;Rx4===void 0&&(Rx4=document.createElement("template"));
var k=Rx4;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return EEw=e},
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(e){e=(e||"").split(":");this._iconName=e.pop();this._iconsetName=e.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&&_.IC(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Wnv.byKey(this._iconsetName)){var e=this._iconset.applyIcon(this,this._iconName,this.theme);e&&e.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,_.IC(this.root).appendChild(this._img)}});var b2k;var hxv;_.rk({_template:function(){if(hxv!==void 0)return hxv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
var g=e.content,c=g.insertBefore;b2k===void 0&&(b2k=document.createElement("template"));var k=b2k;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return hxv=e},
is:"tp-yt-iron-input",behaviors:[_.kL],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(){_.hc.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.IC(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.IC(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 e=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":e=/[0-9.,e-]/}return e},_bindValueChanged:function(e,g){g&&(e===void 0?g.value=null:e!==g.value&&(this.inputElement.value=e),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:e}))},
_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(e){var g=e.keyCode==19||e.keyCode==20||e.keyCode==45||e.keyCode==46||e.keyCode==144||e.keyCode==145||e.keyCode>32&&e.keyCode<41||e.keyCode>111&&e.keyCode<124;return!(e.keyCode==8||e.keyCode==9||e.keyCode==13||e.keyCode==27)&&!(e.charCode==0&&g)},
_onKeypress:function(e){if(this.allowedPattern||this.inputElement.type==="number"){var g=this._patternRegExp;if(g&&!(e.metaKey||e.ctrlKey||e.altKey)){this._patternAlreadyChecked=!0;var c=String.fromCharCode(e.charCode);this._isPrintable(e)&&!g.test(c)&&(e.preventDefault(),this._announceInvalidCharacter("Invalid character "+c+" not entered."))}}},
_checkPatternValidity:function(){var e=this._patternRegExp;if(!e)return!0;for(var g=0;g<this.inputElement.value.length;g++)if(!e.test(this.inputElement.value[g]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var e=this.inputElement.checkValidity();e&&(this.required&&this.bindValue===""?e=!1:this.hasValidator()&&(e=_.kL.validate.call(this,this.bindValue)));this.invalid=!e;this.fire("iron-input-validate");return e},
_announceInvalidCharacter:function(e){this.fire("iron-announce",{text:e})},
_computeValue:function(e){return e}});var X9u;var Gl1;var xsM=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Ds4=xsM&&xsM[1]>=8;
_.rk({_template:function(){if(Gl1!==void 0)return Gl1;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;X9u===void 0&&(X9u=document.createElement("template"));var k=X9u;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return Gl1=e},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[QEC,_.Jc,_.jds,j6s],_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 _.IC(_.IC(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var e=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,e-this._physicalCount)},set _virtualStart(e){e=this._clamp(e,0,this._maxVirtualStart);this.grid&&(e-=e%this._itemsPerRow);this._virtualStartVal=e},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(e){e%=this._physicalCount;e<0&&(e=this._physicalCount+e);this.grid&&(e-=e%this._itemsPerRow);this._physicalStartVal=e},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(e){this._physicalCountVal=e},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 e=this._firstVisibleIndexVal;if(e==null){var g=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
e=this._iterateItems(function(c,k){g+=this._getPhysicalSizeIncrement(c);if(g>this._scrollPosition)return this.grid?k-k%this._itemsPerRow:k;if(this.grid&&this._virtualCount-1===k)return k-k%this._itemsPerRow})||0}return e},
get lastVisibleIndex(){var e=this._lastVisibleIndexVal;if(e==null){if(this.grid)e=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var g=this._physicalTop+this._scrollOffset;this._iterateItems(function(c,k){g<this._scrollBottom&&(e=k);g+=this._getPhysicalSizeIncrement(c)})}this._lastVisibleIndexVal=e}return e},
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,_.wL);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(e){this.style.webkitOverflowScrolling=e===this?"touch":"";this.style.overflowY=e===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.wL)},
updateViewportBoundaries:function(){var e=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10);this._isRTL=e.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var e=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),g=e-this._scrollPosition,c=g>=0;this._scrollPosition=e;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(g)>this._physicalSize&&this._physicalSize>0?(g-=this._scrollOffset,c=Math.round(g/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=c,this._physicalStart+=c,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(e=this._getReusables(c),c?(this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length):(this._virtualStart=this._virtualStart-e.indexes.length,this._physicalStart=this._physicalStart-e.indexes.length),this._update(e.indexes,c?null:e.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),pb))},
_getReusables:function(e){var g=[],c=this._hiddenContentSize*this._ratio,k=this._virtualStart,I=this._virtualEnd,J=this._physicalCount,q=this._physicalTop+this._scrollOffset;var L=this._physicalBottom+this._scrollOffset;var n=this._scrollPosition,R=this._scrollBottom;if(e){var W=this._physicalStart;L=n-q}else W=this._physicalEnd,L-=R;for(;;){var b=this._getPhysicalSizeIncrement(W);L-=b;if(g.length>=J||L<=c)break;if(e){if(I+g.length+1>=this._virtualCount)break;if(q+b>=n-this._scrollOffset)break;g.push(W);
q+=b;W=(W+1)%J}else{if(k-g.length<=0)break;if(q+this._physicalSize-b<=R)break;g.push(W);q-=b;W=W===0?J-1:W-1}}return{indexes:g,physicalTop:q-this._scrollOffset}},
_update:function(e,g){if(!(e&&e.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(e);this._updateMetrics(e);if(g)for(;g.length;)e=g.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(e);this._positionItems();this._updateScrollerSize()}},
_createPool:function(e){this._ensureTemplatized();var g,c=Array(e);for(g=0;g<e;g++){var k=this.stamp(null);c[g]=k.root.querySelector("*");this._itemsParent.appendChild(k.root)}return c},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(e){e=this._clamp(this._physicalCount+e,3,this._virtualCount-this._virtualStart);e=this._convertIndexToCompleteRow(e);if(this.grid){var g=e%this._itemsPerRow;g&&e-g<=this._physicalCount&&(e+=this._itemsPerRow);e-=g}e-=this._physicalCount;g=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){g=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(var c=0;c<e;c++)this._physicalSizes.push(0);this._physicalCount+=e;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e);this._update();this._templateCost=(window.performance.now()-g)/e;g=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||g===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,g)),woZ):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,g),pb))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var e=this._getReusables(!0);this._physicalTop=e.physicalTop;this._virtualStart+=e.indexes.length;this._physicalStart+=e.indexes.length;this._update(e.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 e={__key__:!0};e[this.as]=!0;e[this.indexAs]=!0;e[this.selectedAs]=!0;e.tabIndex=!0;this._instanceProps=e;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(e,g){typeof g!=="undefined"&&(this.notifyResize(),_.Bk(),e&&this._updateGridMetrics())},
_itemsChanged:function(e){if(e.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,
_.wL);else if(e.path==="items.splices"){this._adjustVirtualIndex(e.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(e.value.indexSplices.some(function(c){return c.addedCount>0||c.removed.length>0})){var g=this._getActiveElement();
this.contains(g)&&g.blur()}e=e.value.indexSplices.some(function(c){return c.index+c.addedCount>=this._virtualStart&&c.index<=this._virtualEnd},this);
this._isClientFull()&&!e||this._debounce("_render",this._render,_.wL)}else e.path!=="items.length"&&this._forwardItemPath(e.path,e.value)},
_forwardItemPath:function(e,g){e=e.slice(6);var c=e.indexOf(".");c===-1&&(c=e.length);var k,I=this.modelForElement(this._offscreenFocusedItem),J=parseInt(e.substring(0,c),10);if(k=this._isIndexRendered(J)){var q=this._getPhysicalIndex(J);var L=this.modelForElement(this._physicalItems[q])}else I&&(L=I);L&&L[this.indexAs]===J&&(e=e.substring(c+1),e=this.as+(e?"."+e:""),L._setPendingPropertyOrPath(e,g,!1,!0),L._flushProperties&&L._flushProperties(),k&&(this._updateMetrics([q]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(e){e.forEach(function(g){g.removed.forEach(this._removeItem,this);g.index<this._virtualStart&&(g=Math.max(g.addedCount-g.removed.length,g.index-this._virtualStart),this._virtualStart+=g,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=g))},this)},
_removeItem:function(e){this.$.selector.deselect(e);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===e&&this._removeFocusedItem()},
_iterateItems:function(e,g){var c,k;if(arguments.length===2&&g)for(k=0;k<g.length;k++){var I=g[k];var J=this._computeVidx(I);if((c=e.call(this,I,J))!=null)return c}else{I=this._physicalStart;for(J=this._virtualStart;I<this._physicalCount;I++,J++)if((c=e.call(this,I,J))!=null)return c;for(I=0;I<this._physicalStart;I++,J++)if((c=e.call(this,I,J))!=null)return c}},
_computeVidx:function(e){return e>=this._physicalStart?this._virtualStart+(e-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+e},
_assignModels:function(e){this._iterateItems(function(g,c){var k=this._physicalItems[g],I=this.items&&this.items[c];if(I!=null){var J=this.modelForElement(k);J.__key__=null;this._forwardProperty(J,this.as,I);this._forwardProperty(J,this.selectedAs,this.$.selector.isSelected(I));this._forwardProperty(J,this.indexAs,c);this._forwardProperty(J,"tabIndex",this._focusedVirtualIndex===c?0:-1);this._physicalIndexForKey[J.__key__]=g;J._flushProperties&&J._flushProperties(!0);k.removeAttribute("hidden")}else k.setAttribute("hidden",
"")},e)},
_updateMetrics:function(e){_.Bk();var g=0,c=0,k=this._physicalAverageCount,I=this._physicalAverage;this._iterateItems(function(J){c+=this._physicalSizes[J];this._physicalSizes[J]=this._physicalItems[J].offsetHeight;g+=this._physicalSizes[J];this._physicalAverageCount+=this._physicalSizes[J]?1:0},e);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(c=this._itemsPerRow===1?c:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+g-c,this._itemsPerRow=1);this._physicalAverageCount!==k&&(this._physicalAverage=Math.round((I*k+g)/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 e=this._physicalTop;if(this.grid){var g=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(c,k){var I=Math.floor(k%this._itemsPerRow*this._itemWidth+g);this._isRTL&&(I*=-1);this.translate3d(I+"px",e+"px",0,this._physicalItems[c]);this._shouldRenderNextRow(k)&&(e+=this._rowHeight)})}else this._iterateItems(function(c){this.translate3d(0,e+"px",0,this._physicalItems[c]);
e+=this._physicalSizes[c]})},
_getPhysicalSizeIncrement:function(e){return this.grid?this._computeVidx(e)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[e]},
_shouldRenderNextRow:function(e){return e%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var e=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(e!==0){this._physicalTop=this._physicalTop-e;var g=this._scrollPosition;!Ds4&&g>0&&this._resetScrollPosition(g-e)}},
_resetScrollPosition:function(e){this.scrollTarget&&e>=0&&(this._scrollPosition=this._scrollTop=e)},
_updateScrollerSize:function(e){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((e=(e=(e=e||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(e){return this.scrollToIndex(this.items.indexOf(e))},
scrollToIndex:function(e){if(!(typeof e!=="number"||e<0||e>this.items.length-1)&&(_.Bk(),this._physicalCount!==0)){e=this._clamp(e,0,this._virtualCount-1);if(!this._isIndexRendered(e)||e>=this._maxVirtualStart)this._virtualStart=this.grid?e-this._itemsPerRow*2:e-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var g=this._physicalStart,c=this._virtualStart,k=0,I=this._hiddenContentSize;c<e&&
k<=I;)k+=this._getPhysicalSizeIncrement(g),g=(g+1)%this._physicalCount,c++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+k);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)},_.wL)},
selectItem:function(e){return this.selectIndex(this.items.indexOf(e))},
selectIndex:function(e){if(!(e<0||e>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(e)){var g=this.modelForElement(this._physicalItems[this._getPhysicalIndex(e)]);g&&(g[this.selectedAs]=!0);this.updateSizeForIndex(e)}this.$.selector.selectIndex(e)}},
deselectItem:function(e){return this.deselectIndex(this.items.indexOf(e))},
deselectIndex:function(e){e<0||e>=this._virtualCount||(this._isIndexRendered(e)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(e)])[this.selectedAs]=!1,this.updateSizeForIndex(e)),this.$.selector.deselectIndex(e))},
toggleSelectionForItem:function(e){return this.toggleSelectionForIndex(this.items.indexOf(e))},
toggleSelectionForIndex:function(e){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(e):this.$.selector.isSelected(this.items[e]))?this.deselectIndex(e):this.selectIndex(e)},
clearSelection:function(){this._iterateItems(function(e){this.modelForElement(this._physicalItems[e])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(e){(e?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(e){var g=this.modelForElement(e.target);if(g){var c=_.IC(e).path[0];e=this._getActiveElement();var k=this._physicalItems[this._getPhysicalIndex(g[this.indexAs])];if(c.localName!=="input"&&c.localName!=="button"&&c.localName!=="select"){c=g.tabIndex;g.tabIndex=-100;var I=e?e.tabIndex:-1;g.tabIndex=c;e&&k!==e&&k.contains(e)&&I!==-100||this.toggleSelectionForItem(g[this.as])}}},
_multiSelectionChanged:function(e){this.clearSelection();this.$.selector.multi=e},
updateSizeForItem:function(e){return this.updateSizeForIndex(this.items.indexOf(e))},
updateSizeForIndex:function(e){if(!this._isIndexRendered(e))return null;this._updateMetrics([this._getPhysicalIndex(e)]);this._positionItems();return null},
_manageFocus:function(){var e=this._focusedVirtualIndex;e>=0&&e<this._virtualCount?this._isIndexRendered(e)?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(e){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(e/this._itemsPerRow)*this._itemsPerRow:e},
_isIndexRendered:function(e){return e>=this._virtualStart&&e<=this._virtualEnd},
_isIndexVisible:function(e){return e>=this.firstVisibleIndex&&e<=this.lastVisibleIndex},
_getPhysicalIndex:function(e){return(this._physicalStart+(e-this._virtualStart))%this._physicalCount},
focusItem:function(e){this._focusPhysicalItem(e)},
_focusPhysicalItem:function(e){if(!(e<0||e>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(e)||this.scrollToIndex(e);var g=this._physicalItems[this._getPhysicalIndex(e)],c=this.modelForElement(g),k;c.tabIndex=-100;g.tabIndex===-100&&(k=g);k||(k=_.IC(g).querySelector('[tabindex="-100"]'));c.tabIndex=0;this._focusedVirtualIndex=e;k&&k.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 e=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var g=this.stamp(null);this._focusBackfillItem=g.root.querySelector("*");this._itemsParent.appendChild(g.root)}this._offscreenFocusedItem=this._physicalItems[e];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[e]=this._focusBackfillItem;this._focusedPhysicalIndex=e;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var e=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),g=this._physicalItems[e];if(g){var c=this.modelForElement(g),k=this.modelForElement(this._offscreenFocusedItem);c[this.as]===k[this.as]?(this._focusBackfillItem=g,c.tabIndex=-1,this._physicalItems[e]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(e){e=this.modelForElement(e.target);var g=this.modelForElement(this._focusedItem),c=this._offscreenFocusedItem!==null,k=this._focusedVirtualIndex;e&&(g===e?this._isIndexVisible(k)||this.scrollToIndex(k):(this._restoreFocusedItem(),g&&(g.tabIndex=-1),e.tabIndex=0,this._focusedVirtualIndex=k=e[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(k),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],c&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(e){switch(e.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&e.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&&e.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(e)}},
_clamp:function(e,g,c){return Math.min(c,Math.max(g,e))},
_debounce:function(e,g,c){this._debouncers=this._debouncers||{};this._debouncers[e]=_.US(this._debouncers[e],c,g.bind(this));_.og(this._debouncers[e])},
_forwardProperty:function(e,g,c){e._setPendingProperty(g,c)},
_forwardHostPropV2:function(e,g){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&this.modelForElement(c).forwardHostProp(e,g)},this)},
_notifyInstancePropV2:function(e,g,c){CQA(this.as,g)&&(e=e[this.indexAs],g==this.as&&(this.items[e]=c),this.notifyPath(Lb(this.as,"items."+e,g),c))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(e,g,c){g.indexOf(this.as+".")===0&&this.notifyPath("items."+e.__key__+"."+g.slice(this.as.length+1),c)},
_forwardParentPath:function(e,g){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&this.modelForElement(c).notifyPath(e,g)},this)},
_forwardParentProp:function(e,g){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&(this.modelForElement(c)[e]=g)},this)},
_getActiveElement:function(){var e=this._itemsParent.node.domHost;return _.IC(e?e.root:document).activeElement},
_scrollTargetChanged:function(e,g){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(g)if(e==="document")this.scrollTarget=this._doc;else if(typeof e==="string"){var c,k;this.scrollTarget=(g=(k=(c=this.domHost)==null?void 0:c.polymerController)!=null?k:this.domHost)&&g.$?g.$[e]:_.IC(this.ownerDocument).querySelector("#"+e)}else this._isValidScrollTarget()&&(this._oldScrollTarget=e,this._toggleScrollListener(this._shouldHaveListener,e))}});var $sn;var YsY;var fgw=function(e,g,c,k){e-=c;g-=k;return Math.sqrt(e*e+g*g)},jXn=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
$xg.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Y_V=function(e){e.maxRadius=0;e.mouseDownStart=0;e.mouseUpStart=0;e.xStart=0;e.yStart=0;e.xEnd=0;e.yEnd=0;e.containerMetrics=new $xg(e.element)};
fP8.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var e=jXn()-this.mouseDownStart;this.mouseUpStart&&(e-=this.mouseUpElapsed);return e},get mouseUpElapsed(){return this.mouseUpStart?jXn()-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 e=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(e*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-e/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var e=this.radius/(this.containerMetrics.size/2);var g=this.xNow-this.containerMetrics.width/2;var c=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+g+"px, "+c+"px)";this.waveContainer.style.transform="translate3d("+g+"px, "+c+"px, 0)";this.wave.style.webkitTransform="scale("+e+","+e+")";this.wave.style.transform="scale3d("+e+","+e+",1)"},
downAction:function(e){var g=this.containerMetrics.width/2,c=this.containerMetrics.height/2;Y_V(this);this.mouseDownStart=jXn();this.center?(this.xStart=g,this.yStart=c):(this.xStart=e?e.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=e?e.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=g,this.yEnd=c);e=this.containerMetrics;g=this.xStart;c=this.yStart;this.maxRadius=Math.max(fgw(g,c,0,0),fgw(g,c,
e.width,0),fgw(g,c,0,e.height),fgw(g,c,e.width,e.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=jXn())},
remove:function(){_.IC(_.IC(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.rk({_template:function(){if(YsY!==void 0)return YsY;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;$sn===void 0&&($sn=document.createElement("template"));var k=$sn;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return YsY=e},
is:"tp-yt-paper-ripple",behaviors:[_.yB],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(){_.IC(this).parentNode.nodeType==11?this.keyEventTarget=_.IC(this).getOwnerRoot().host:this.keyEventTarget=_.IC(this).parentNode;var e=this.keyEventTarget;this.listen(e,"up","uiUpAction");this.listen(e,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(e){e.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var e=0;e<this.ripples.length;++e)if(!this.ripples[e].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(e){this.noink||this.downAction(e)},
downAction:function(e){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(e),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(e){this.noink||this.upAction(e)},
upAction:function(e){this.holdDown||(this.ripples.forEach(function(g){g.upAction(e)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var e=0;e<this.ripples.length;++e){var g=this.ripples[e];g.isOpacityFullyDecayed&&!g.isRestingAtMaxRadius&&this.removeRipple(g)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var e=new fP8(this);_.IC(this.$.waves).appendChild(e.waveContainer);this.$.background.style.backgroundColor=e.color;this.ripples.push(e);this._setAnimating(!0);return e},
removeRipple:function(e){var g=this.ripples.indexOf(e);g<0||(this.ripples.splice(g,1),e.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var e;for(e=0;e<this.ripples.length;++e){var g=this.ripples[e];g.draw();this.$.background.style.opacity=g.outerOpacity;g.isOpacityFullyDecayed&&!g.isRestingAtMaxRadius&&this.removeRipple(g)}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(e,g){g!==void 0&&(e?this.downAction():this.upAction())}});var YL={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(e){Oe._downHandler.call(this,e);this.pressed&&this.ensureRipple(e)},
ensureRipple:function(e){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var g=this._rippleContainer||this.root;g&&_.IC(g).appendChild(this._ripple);if(e){g=_.IC(this._rippleContainer||this);var c=_.IC(e).rootTarget;g.deepContains(c)&&this._ripple.uiDownAction(e)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(e){this.hasRipple()&&(this._ripple.noink=e)}};var i2M={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 e=1;this.disabled?e=0:this.active||this.pressed?e=4:this.receivedFocusFromKeyboard&&(e=3);this._setElevation(e)},
_computeKeyboardClass:function(e){this.toggleClass("keyboard-focus",e)},
_spaceKeyDownHandler:function(e){Oe._spaceKeyDownHandler.call(this,e);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(e){Oe._spaceKeyUpHandler.call(this,e);this.hasRipple()&&this._ripple.uiUpAction()}},P21=[Et4,
_.Kz,YL,i2M];_.msw={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(e){e&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=e)},
_createRipple:function(){var e=YL._createRipple();e.id="ink";e.setAttribute("center","");e.classList.add("circle");return e}};
_.p9s=[Et4,_.Kz,YL,_.msw];_.Tgk=[_.p9s,hP4,{_checkedChanged:function(){bu4._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){YL._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var lgq;var ALn;var sXv=function(){};
_.v=sXv.prototype;_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._buttonStateChanged=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._createRipple=function(){};
_.v._noinkChanged=function(){};
_.v._computeKeyboardClass=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
_.v._setElevation=function(){};
sXv=_.rk({_template:function(){if(ALn!==void 0)return ALn;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
var g=e.content,c=g.insertBefore;lgq===void 0&&(lgq=document.createElement("template"));var k=lgq;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return ALn=e},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[P21],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?i2M._calculateElevation.apply(this):this._setElevation(0)}});var Fnw;var uWZ;var ds4={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(e){_.G("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(e)},
_onDialogClickWrapped:function(e){_.G("dialog_behavior_no_tap_killswitch")||this._onDialogClick(e)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(e,g){g&&(e?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(e){if(e){var g;((g=this.hostElement)!=null?g:this).setAttribute("aria-modal","true")}else{var c;((c=this.hostElement)!=null?c:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(e){this.closingReason=this.closingReason||{};this.closingReason.confirmed=e},
_onDialogClick:function(e){for(var g=_.IC(e).path,c=0,k,I=g.indexOf((k=this.hostElement)!=null?k:this);c<I;c++)if(k=g[c],k.hasAttribute&&(k.hasAttribute("dialog-dismiss")||k.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(k.hasAttribute("dialog-confirm"));this.close();e.stopPropagation();break}}},zxB=[_.$L,
ds4];var H2Z=document.createElement("template");_.P(H2Z,'<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(H2Z.content);var QXB=document.createElement("template");_.P(QXB,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(QXB.content);_.rk({_template:function(){if(uWZ!==void 0)return uWZ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
var g=e.content,c=g.insertBefore;Fnw===void 0&&(Fnw=document.createElement("template"));var k=Fnw;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return uWZ=e},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[zxB,iuq],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 UsB;var oEk;_.rk({_template:function(){if(oEk!==void 0)return oEk;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;UsB===void 0&&(UsB=document.createElement("template"));var k=UsB;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return oEk=e},
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 e,g,c;if(((e=window.ShadyDOM)==null?void 0:e.noPatch)!==!0&&((g=window.ShadyDOM)==null?void 0:g.noPatch)!=="on-demand"||((c=this.__shady_parentNode)==null?void 0:c.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(ds4)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Z2v=_.Ti(['<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>']),V9k=_.Tkv(Z2v);V9k.setAttribute("style","display: none;");document.head.appendChild(V9k.content);var t9M;var BgZ;var Ngv;var Ssw;_.rk({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[wa],configure:function(e){var g=e.node,c=g.getBoundingClientRect().height;return this._effect=new KeyframeEffect(g,[{height:c/2+"px"},{height:c+"px"}],this.timingFromConfig(e))}});
_.rk({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[wa],configure:function(e){var g=e.node,c=g.getBoundingClientRect().width;return this._effect=new KeyframeEffect(g,[{width:c/2+"px"},{width:c+"px"}],this.timingFromConfig(e))}});
_.rk({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[wa],configure:function(e){var g=e.node,c=g.getBoundingClientRect().width;return this._effect=new KeyframeEffect(g,[{width:c+"px"},{width:c-c/20+"px"}],this.timingFromConfig(e))}});
_.rk({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[wa],configure:function(e){var g=e.node,c=g.getBoundingClientRect().height;this.setPrefixedProperty(g,"transformOrigin","0 0");return this._effect=new KeyframeEffect(g,[{height:c+"px",transform:"translateY(0)"},{height:c/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(e))}});var fX={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},yLw=function(){};
_.v=yLw.prototype;_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._focusBlurHandler=function(){};
_.v._changedControlState=function(){};
_.v._setFocused=function(){};
yLw=_.rk({_template:function(){if(Ssw!==void 0)return Ssw;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;Ngv===void 0&&(Ngv=document.createElement("template"));var k=Ngv;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return Ssw=e},
is:"tp-yt-paper-menu-button",behaviors:[_.yB,_.Kz],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:fX.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:fX.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:fX.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 e=_.IC(this.$.content).getDistributedNodes(),g=0,c=e.length;g<c;g++)if(e[g].nodeType===Node.ELEMENT_NODE)return e[g]},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(e,g){e?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):g!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(e){_.Kz._disabledChanged.apply(this,arguments);e&&this.opened&&this.close()},
__onIronOverlayCanceled:function(e){var g=this.$.trigger;_.IC(e.detail).path.indexOf(g)>-1&&e.preventDefault()}});
Object.keys(fX).forEach(function(e){yLw[e]=fX[e]});var Kn1=_.ME.IronButtonState,O21=(0,_.gh)(HTMLElement);
_.rk({_template:function(){if(BgZ!==void 0)return BgZ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;t9M===void 0&&(t9M=document.createElement("template"));var k=t9M;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return BgZ=e},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Kn1,_.Kz,YL,_.Cz,_.kL],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(e){var g=(0,_.Eg)(this);g.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:e});g.shadowRoot.appendChild(e);return O21.prototype._attachDom.call(this,e)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var e=this.contentElement;e&&e.selectedItem&&this._setSelectedItem(e.selectedItem)},
get contentElement(){for(var e=_.IC(this.$.content).getDistributedNodes(),g=0,c=e.length;g<c;g++)if(e[g].nodeType===Node.ELEMENT_NODE)return e[g]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(e){this._setSelectedItem(e.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(e){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e)===this&&this.open()},
_selectedItemChanged:function(e){var g="";e?g=e.label||e.getAttribute("label")||e.textContent.trim():g="";this.value=g;this._setSelectedItemLabel(g)},
_computeMenuVerticalOffset:function(e,g){return g?g:e?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var e=this.opened?"true":"false",g=this.contentElement;g&&g.setAttribute("aria-expanded",e)},
_computeLabelClass:function(e,g,c){var k="label";if(e)c&&(k+=" label-is-hidden");else if(c||g)k+=" label-is-floating";return k},
_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 M9q;var C2w;_.rk({is:"tp-yt-paper-icon-button",_template:function(){if(C2w!==void 0)return C2w;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;M9q===void 0&&(M9q=document.createElement("template"));var k=M9q;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return C2w=e},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.p9s],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(e,g){var c=this.getAttribute("aria-label");c&&g!=c||this.setAttribute("aria-label",e)}});var een;var goM;_.jJ=[Et4,_.Kz,{hostAttributes:{role:"option",tabindex:"0"}}];_.rk({_template:function(){if(goM!==void 0)return goM;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;een===void 0&&(een=document.createElement("template"));var k=een;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return goM=e},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.jJ]});var ca1;var kS4;var I7I={attached:function(){this.fire("addon-attached")},
update:function(){}};var Jak=1,vo4=1,wNI=1,qRZ=[_.Kz,_.yB,{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();!sS&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(e,g){e?e=e+" "+g:e=g;return e},
_onAddonAttached:function(e){e=_.IC(e).rootTarget;if(e.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,e.id);else{var g="paper-input-add-on-"+vo4++;e.id=g;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,g)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(e){_.Kz._focusBlurHandler.call(this,e);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var e=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",e);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(e){try{var g=this.inputElement.selectionStart;this.value=e;this.inputElement.selectionStart=g;this.inputElement.selectionEnd=g}catch(c){this.value=e}},
_computeAlwaysFloatLabel:function(e,g){return g||e},
_updateAriaLabelledBy:function(){var e=_.IC(this.root).querySelector("label");if(e){if(e.id)var g=e.id;else g="paper-input-label-"+Jak++,e.id=g;this._ariaLabelledBy=g}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+wNI++)},
_onChange:function(e){this.shadowRoot&&this.fire(e.type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var e=document.activeElement;e instanceof HTMLElement&&e!==document.body&&e!==document.documentElement||this._focusableElement.focus()}}}];var LFq;var rau;_.rk({_template:function(){if(rau!==void 0)return rau;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;LFq===void 0&&(LFq=document.createElement("template"));var k=LFq;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return rau=e},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[I7I],properties:{_charCounterStr:{type:String,value:"0"}},update:function(e){if(e.inputElement){e.value=e.value||"";var g=e.value.toString().length.toString();e.inputElement.hasAttribute("maxlength")&&(g+="/"+e.inputElement.getAttribute("maxlength"));this._charCounterStr=g}}});var a71;var noZ;_.rk({_template:function(){if(noZ!==void 0)return noZ;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;a71===void 0&&(a71=document.createElement("template"));var k=a71;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return noZ=e},
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 I2(this.attrForValue)},get _inputElement(){return _.IC(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(e){this._addons||(this._addons=[]);e=e.target;this._addons.indexOf(e)===-1&&(this._addons.push(e),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(e){this._handleValueAndAutoValidate(e.target)},
_onValueChanged:function(e){var g=e.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,g.value===void 0||g.value===""))return;this._handleValueAndAutoValidate(e.target)},
_handleValue:function(e){var g=this._inputElementValue;g||g===0||e.type==="number"&&!e.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:e,value:g,invalid:this.invalid})},
_handleValueAndAutoValidate:function(e){this.autoValidate&&e&&(this.invalid=!(e.validate?e.validate(this._inputElementValue):e.checkValidity()));this._handleValue(e)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(e){if(this._addons)for(var g,c=0;g=this._addons[c];c++)g.update(e)},
_computeInputContentClass:function(e,g,c,k,I){var J="input-content";e?(I&&(J+=" label-is-hidden"),k&&!this.noUnfloatedLabelError&&(J+=" is-invalid")):(e=this.querySelector("label"),g||I?(J+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",k?J+=" is-invalid":c&&(J+=" label-is-highlighted")):(e&&(this.$.labelAndInputContainer.style.position="relative"),k&&!this.noUnfloatedLabelError&&(J+=" is-invalid")));c&&(J+=" focused");return J},
_computeUnderlineClass:function(e,g){var c="underline";g?c+=" is-invalid":e&&(c+=" is-highlighted");return c},
_computeAddOnContentClass:function(e,g){var c="add-on-content";g?c+=" is-invalid":e&&(c+=" is-highlighted");return c}});var ReM;var Eoq;_.rk({_template:function(){if(Eoq!==void 0)return Eoq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;ReM===void 0&&(ReM=document.createElement("template"));var k=ReM;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return Eoq=e},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[I7I],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(e){this._setInvalid(e.invalid)}});_.rk({is:"tp-yt-paper-input",_template:function(){if(kS4!==void 0)return kS4;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;ca1===void 0&&(ca1=document.createElement("template"));var k=ca1;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return kS4=e},
behaviors:[qRZ,_.Cz],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 WFB;var bZv;_.rk({_template:function(){if(bZv!==void 0)return bZv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=
e.content,c=g.insertBefore;WFB===void 0&&(WFB=document.createElement("template"));var k=WFB;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return bZv=e},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.jJ]});var hen;var XNk;_.rk({_template:function(){if(XNk!==void 0)return XNk;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
var g=e.content,c=g.insertBefore;hen===void 0&&(hen=document.createElement("template"));var k=hen;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return XNk=e},
is:"tp-yt-paper-item-body"});var GSv;var xn4;var DnY=function(){};
_.v=DnY.prototype;_.v.indexOf=function(){};
_.v.selectPrevious=function(){};
_.v.selectNext=function(){};
_.v.selectIndex=function(){};
_.v.forceSynchronousItemUpdate=function(){};
_.v._checkFallback=function(){};
_.v._addListener=function(){};
_.v._removeListener=function(){};
_.v._activateEventChanged=function(){};
_.v._updateItems=function(){};
_.v._selectSelected=function(){};
_.v._filterItem=function(){};
_.v._valueToItem=function(){};
_.v._valueToIndex=function(){};
_.v._indexToValue=function(){};
_.v._valueForItem=function(){};
_.v._observeItems=function(){};
_.v._itemActivate=function(){};
_.v.multiChanged=function(){};
_.v._updateAttrForSelected=function(){};
_.v._updateSelected=function(){};
_.v._selectMulti=function(){};
_.v._selectionChange=function(){};
_.v._toggleSelected=function(){};
_.v._valuesToItems=function(){};
_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v.select=function(){};
_.v._resetTabindices=function(){};
_.v._updateMultiselectable=function(){};
_.v._focusWithKeyboardEvent=function(){};
_.v._clearSearchText=function(){};
_.v._focusPrevious=function(){};
_.v._focusNext=function(){};
_.v._applySelection=function(){};
_.v._focusedItemChanged=function(){};
_.v._onIronItemsChanged=function(){};
_.v._onShiftTabDown=function(){};
_.v._onFocus=function(){};
_.v._onUpKey=function(){};
_.v._onDownKey=function(){};
_.v._onEscKey=function(){};
_.v._onKeydown=function(){};
_.v._activateHandler=function(){};
_.v._disabledChanged=function(){};
_.v._setSelectedItem=function(){};
_.v._setItems=function(){};
_.v._setSelectedItems=function(){};
_.v._setFocusedItem=function(){};
DnY=_.rk({_template:function(){if(xn4!==void 0)return xn4;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
var g=e.content,c=g.insertBefore;GSv===void 0&&(GSv=document.createElement("template"));var k=GSv;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return xn4=e},
is:"tp-yt-paper-listbox",behaviors:[Deq],hostAttributes:{role:"listbox"}});var $nq;var YRv;var f7s={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(e,g){return[e||g?"active":"",g?"cooldown":""].join(" ")},
__activeChanged:function(e,g){this.__setAriaHidden(!e);this.__coolingDown=!e&&g},
__altChanged:function(e){this.setAttribute("aria-label",e||"loading")},
__setAriaHidden:function(e){e?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.rk({_template:function(){if(YRv!==void 0)return YRv;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;$nq===void 0&&($nq=document.createElement("template"));var k=$nq;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return YRv=e},
is:"tp-yt-paper-spinner",behaviors:[f7s]});var j0s;var iZs;_.rk({_template:function(){if(iZs!==void 0)return iZs;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;j0s===void 0&&(j0s=document.createElement("template"));var k=j0s;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return iZs=e},
is:"tp-yt-paper-spinner-lite",behaviors:[f7s]});var PVv;var mnM;_.rk({_template:function(){if(mnM!==void 0)return mnM;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;PVv===void 0&&(PVv=document.createElement("template"));var k=PVv;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return mnM=e},
is:"tp-yt-paper-tab",behaviors:[_.Kz,_.ME.IronButtonState,YL],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 e=_.IC(this).parentNode;return!!e&&!!e.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(e){if(this.link){var g=this.queryEffectiveChildren("a");g&&e.target!==g&&g.click()}}});var pN1;var TGM;var l7Z=_.Ti(['<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>']),AaI=_.Tkv(l7Z);document.head.appendChild(AaI.content);_.rk({_template:function(){if(TGM!==void 0)return TGM;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;pN1===void 0&&(pN1=document.createElement("template"));var k=pN1;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return TGM=e},
is:"tp-yt-paper-tabs",behaviors:[_.Jc,_.Ymn],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(e){_.IC(this).querySelectorAll("tp-yt-paper-tab").forEach(e?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(e){e.setAttribute("noink","")},
_removeNoinkAttribute:function(e){e.removeAttribute("noink")},
_computeScrollButtonClass:function(e,g,c,k){return!g||c?"hidden":e?k?"hidden":"not-visible":""},
_computeTabsContentClass:function(e,g){var c="tabs-content";e&&(c+=" scrollable");if(!e||g)c+=" fit-container";return c},
_computeSelectionBarClass:function(e,g){var c="selection-bar";e?c+=" hidden":g&&(c+=" align-bottom");return c},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(e){return""+e},
_onIronSelect:function(e){this._tabChanged(e.detail.item,this._previousTab);this._previousTab=e.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();_.IM._activateHandler.apply(this,arguments)},
_scheduleActivation:function(e,g){this._pendingActivationItem=e;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,g)},
_delayedActivationHandler:function(){var e=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;e.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(e){e.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(e,g){this.scrollable&&this._affectScroll(g&&-g.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(e){this.$.tabsContainer.scrollLeft+=e;e=this.$.tabsContainer.scrollLeft;this._leftHidden=e===0||this.hideScrollButtons;this._rightHidden=e===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(e,g){if(e){var c=this.$.tabsContent.getBoundingClientRect(),k=c.width,I=e.getBoundingClientRect();c=I.left-c.left;this._pos={width:this._calcPercent(I.width,k),left:this._calcPercent(c,k)};if(this.noSlide||g==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var J=g.getBoundingClientRect();g=this.items.indexOf(g);e=this.items.indexOf(e);this.$.selectionBar.classList.add("expand");
e=g<e;this._isRTL&&(e=!e);e?this._positionBar(this._calcPercent(I.left+I.width-J.left,k)-5,this._left):this._positionBar(this._calcPercent(J.left+J.width-I.left,k)-5,this._calcPercent(c,k)+5);this.scrollable&&this._scrollToSelectedIfNeeded(I.width,c)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(e,g){g-=this.$.tabsContainer.scrollLeft;g<0?this.$.tabsContainer.scrollLeft+=g:(g+=e-this.$.tabsContainer.offsetWidth,g>0&&(this.$.tabsContainer.scrollLeft+=g))},
_calcPercent:function(e,g){return 100*e/g},
_positionBar:function(e,g){e=e||0;g=g||0;this._width=e;this._left=g;this.transform("translateX("+g+"%) scaleX("+e/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var e=this.$.selectionBar.classList;e.contains("expand")?(e.remove("expand"),e.add("contract"),this._positionBar(this._pos.width,this._pos.left)):e.contains("contract")&&e.remove("contract")}});var s0Z;var FFq;_.rk({_template:function(){if(FFq!==void 0)return FFq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;s0Z===void 0&&(s0Z=document.createElement("template"));var k=s0Z;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return FFq=e},
is:"tp-yt-paper-textarea",behaviors:[qRZ,_.Cz],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(e){this.$.input.textarea.selectionStart=e},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(e){this.$.input.textarea.selectionEnd=e},_ariaLabelledByChanged:function(e){this._focusableElement.setAttribute("aria-labelledby",e)},
_ariaDescribedByChanged:function(e){this._focusableElement.setAttribute("aria-describedby",e)},
get _focusableElement(){return this.inputElement.textarea}});var u9u;var dnB;/*

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 zes=function(){};
_.v=zes.prototype;_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._noinkChanged=function(){};
_.v._focusedChanged=function(){};
_.v.registered=function(){};
_.v._invalidChanged=function(){};
_.v.hasValidator=function(){};
_.v.validate=function(){};
_.v._getValidity=function(){};
_.v._requiredChanged=function(){};
_.v._valueChanged=function(){};
_.v._checkedChanged=function(){};
_.v._buttonStateChanged=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
zes=_.rk({is:"tp-yt-paper-toggle-button",_template:function(){if(dnB!==void 0)return dnB;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;u9u===void 0&&(u9u=document.createElement("template"));var k=u9u;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return dnB=e},
behaviors:[_.Tgk],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");_.Va(this,function(){_.mZ(this,"pan-y")})},
_ontrack:function(e){e=e.detail;e.state==="start"?this._trackStart(e):e.state==="track"?this._trackMove(e):e.state==="end"&&this._trackEnd(e)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(e){e=e.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+e:e)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+e:e));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 e=YL._createRipple();e.id="ink";e.setAttribute("recenters","");e.classList.add("circle","toggle-ink");return e}});var HZM;var Q0B;_.rk({_template:function(){if(Q0B!==void 0)return Q0B;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;HZM===void 0&&(HZM=document.createElement("template"));var k=HZM;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return Q0B=e},
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 e=_.IC(this).parentNode,g=_.IC(this).getOwnerRoot(),c;this.for?c=_.IC(g).querySelector("#"+this.for):c=e.nodeType==Node.DOCUMENT_FRAGMENT_NODE?g.host:e;return c},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(e){e==="entry"?this.show():e==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.IC(this).textContent.trim()===""){for(var e=!0,g=_.IC(this).getEffectiveChildNodes(),c=0;c<g.length;c++)if(g[c].textContent.trim()!==""){e=!1;break}if(e)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 e=this.offset;this.marginTop!=14&&this.offset==14&&(e=this.marginTop);var g=this.offsetParent.getBoundingClientRect(),c=this._target.getBoundingClientRect(),k=this.getBoundingClientRect(),I=(c.width-k.width)/2,J=(c.height-k.height)/2,q=c.left-g.left,L=c.top-g.top;switch(this.position){case "top":var n=q+I;var R=L-k.height-e;break;case "bottom":n=q+I;R=L+c.height+e;break;case "left":n=q-k.width-e;R=L+J;break;case "right":n=q+c.width+
e,R=L+J}this.fitToVisibleBounds?(g.left+n+k.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,n)+"px",this.style.right="auto"),g.top+R+k.height>window.innerHeight?(this.style.bottom=g.height+"px",this.style.top="auto"):(this.style.top=Math.max(-g.top,R)+"px",this.style.bottom="auto")):(this.style.left=n+"px",this.style.top=R+"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(e){e!==500&&this.updateStyles({"--paper-tooltip-delay-in":e+"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(e){if(e==="entry"&&this.animationEntry!=="")return this.animationEntry;if(e==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[e]&&typeof this.animationConfig[e][0].name==="string"){if(this.animationConfig[e][0].timing&&this.animationConfig[e][0].timing.delay&&this.animationConfig[e][0].timing.delay!==0){var g=this.animationConfig[e][0].timing.delay;e==="entry"?this.updateStyles({"--paper-tooltip-delay-in":g+"ms"}):e==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":g+
"ms"})}return this.animationConfig[e][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 UnM=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(UnM,_.WJ);var oos=_.ma(UnM,[0,_.Z4]);var ik=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(ik,_.WJ);var ZZZ=[3,4],Vcw=[5,6];var tck=[0,ZZZ,Vcw,_.Zg,-1,_.HW,_.V2,-1,kes,IEY];var BGY=_.ma(ik,tck),NGv=_.TT(tck);var SR1=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(SR1,_.WJ);var ya4=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(ya4,_.WJ);var KFZ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(KFZ,_.WJ);var OZ4=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(OZ4,_.WJ);var Mcn=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Mcn,_.WJ);var Pn=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Pn,_.WJ);Pn.prototype.getSource=function(){return _.EU(this,1)};
Pn.prototype.getMessage=function(){return _.Rs(this,4)};
Pn.prototype.getData=function(){return _.Ml(this,Mcn,8)};var CVw=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(CVw,_.WJ);var mW=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(mW,_.WJ);var pX=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(pX,_.WJ);var T4=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(T4,_.WJ);T4.prototype.getUrl=function(){return _.Rs(this,1)};
T4.prototype.setUrl=function(e){return _.vH(this,1,e)};
T4.prototype.hasUrl=function(){return _.TD(_.g0(this,1))!=null};var e6q=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(e6q,_.WJ);var gbu=[3];var cUq=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(cUq,_.WJ);var lk=function(e){var g=new cUq;return _.Cf(g,2,e)};
cUq.prototype.getLanguage=function(){return by(this,4,Ac)};
var k3Z=function(e){var g=lk(1);return _.Fp(g,6,Ac,e)},Ac=[3,
4,5,6];var I2w=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(I2w,_.WJ);var s_=function(e){var g=new I2w;return _.Cf(g,1,e)},FH=function(e,g){return _.Fp(e,2,JUY,g)},JUY=[2,
3,4,5];var vbk=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(vbk,_.WJ);var uk=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(uk,_.WJ);var wRY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(wRY,_.WJ);var qGu=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(qGu,_.WJ);var LEZ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(LEZ,_.WJ);var rUs=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(rUs,_.WJ);var a2I=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(a2I,_.WJ);var nbs=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(nbs,_.WJ);var da=function(e){return _.Ml(e,pX,5)};var R6s=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(R6s,_.WJ);R6s.prototype.getValue=function(){return as(this,1)};var EbI=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(EbI,_.WJ);var z4=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(z4,_.WJ);z4.prototype.getMetadata=function(){return _.hP(this,rUs,7,Hn)};
z4.prototype.hasMetadata=function(){return _.kV(this,rUs,7,Hn)};
var WEq=_.r0p(z4),Hn=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var QZ=function(e){this.JSC$12488_name_=e;this.files_=[];this.directories_=[];this.directoryMap_={}};
QZ.prototype.getName=function(){return this.JSC$12488_name_};var oM=function(e,g){this.callback_=g;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new QZ("");bwn(this,e,this.rootDirectory_);U_(this)},bwn=function(e,g,c){for(var k=0;k<g.length;k++){var I=g[k];
I.isFile?(e.fileOps_++,I.file((0,_.Ju)(e.handleFileSuccess_,e,c),(0,_.Ju)(e.handleFileError_,e))):e.unscannedDirectories_.push(new h6s(I,c))}},U_=function(e){if(e.unscannedDirectories_.length>0&&e.directoryOps_<5&&!e.hasError_){e.directoryOps_++;
var g=e.unscannedDirectories_.shift(),c=g.entry,k=new QZ(c.name);g=g.parent;g.directoryMap_[k.getName()]=k;g.directories_.push(k);c=c.createReader();c.readEntries((0,_.Ju)(e.handleDirectorySuccess_,e,c,k),(0,_.Ju)(e.handleDirectoryError_,e))}e.directoryOps_!=0||e.fileOps_!=0||e.unscannedDirectories_.length!=0&&!e.hasError_||e.callback_(e.rootDirectory_.files_,e.rootDirectory_.directories_,e.hasError_)};
oM.prototype.handleDirectorySuccess_=function(e,g,c){bwn(this,c,g);c.length==0?(this.directoryOps_--,U_(this)):e.readEntries((0,_.Ju)(this.handleDirectorySuccess_,this,e,g),(0,_.Ju)(this.handleDirectoryError_,this))};
oM.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;U_(this)};
oM.prototype.handleFileSuccess_=function(e,g){e.files_.push(g);this.fileOps_--;U_(this)};
oM.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;U_(this)};
var h6s=function(e,g){this.entry=e;this.parent=g};var ZP=function(e){_.jv.call(this);_.iK(e,"drop",this.onObjectsDropped_,!1,this);_.iK(e,"dragenter",this.onFilesDragged_,!1,this);_.iK(e,"dragover",this.onFilesDragged_,!1,this);_.iK(e,"dragleave",this.onDragLeave_,!1,this);_.iK(e,"dragend",this.onDragLeave_,!1,this)};
_.Um(ZP,_.jv);var XRB=function(e,g){_.Bt.call(this,"f");this.files=e;this.directories=g};
_.Um(XRB,_.Bt);var G3n=function(){_.Bt.call(this,"h")};
_.Um(G3n,_.Bt);var xDw=function(){_.Bt.call(this,"i")};
_.Um(xDw,_.Bt);var DDw=function(){_.Bt.call(this,"g")};
_.Um(DDw,_.Bt);ZP.prototype.onObjectsDropped_=function(e){var g=this;e.preventDefault();var c=e.event_.dataTransfer;if((e=c&&c.items)&&e.length>0&&e[0].webkitGetAsEntry){c=[];for(var k=[],I=0;I<e.length;I++){var J=e[I].webkitGetAsEntry();J?c.push(J):k.push(e[I])}new oM(c,function(q,L,n){n?g.dispatchEvent(new DDw("Error occurred while reading from the file system.")):g.dispatchEvent(new XRB(q,L,k))})}else(e=c&&c.files)&&this.dispatchEvent(new XRB(Array.from(e),[]))};
ZP.prototype.onFilesDragged_=function(e){e.type==="dragenter"&&this.dispatchEvent(new G3n);e.preventDefault()};
ZP.prototype.onDragLeave_=function(){this.dispatchEvent(new xDw)};var $Dw=function(e,g){this.JSC$12511_name_=e;this.inputElement_=g};
$Dw.prototype.getName=function(){return this.JSC$12511_name_};
$Dw.prototype.getInputElement=function(){return this.inputElement_};var VZ=function(e,g,c){g=g===void 0?"single_file":g;c=c===void 0?[]:c;_.jv.call(this);this.overlayTarget_=e;this.parentOverlay_=e!=null?e.parentNode:_.C0("scotty-overlay-parent");this.selectorType_=g;this.acceptTypes_=c;this.overlay_=YGI(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.Y(VZ,_.jv);
var YGI=function(e,g,c,k){var I=document.createElement("input");I.setAttribute("type","file");I.setAttribute("name","Filedata");_.iK(I,"change",e.onFilesSelected_,!1,e);c==="multiple_file"&&(I.multiple="true");c==="single_directory"&&(I.webkitdirectory="true");k.length>0&&I.setAttribute("accept",k.join(","));I.style.position="absolute";I.style.overflow="hidden";I.style.height="0px";I.style.width="0px";I.style.opacity="0";I.setAttribute("aria-hidden","true");I.setAttribute("tabIndex",-1);if(e.overlayTarget_!=
null)return I.style.height=g.offsetHeight+"px",I.style.width=g.offsetWidth+"px",e.parentOverlay_&&(e.parentOverlay_.style.position="relative"),_.YE(I,g),mn(I,new _.pr(g.offsetLeft,g.offsetTop)),I;e.parentOverlay_.appendChild(I);return I};
VZ.prototype.click=function(){this.overlay_.click()};
VZ.prototype.onFilesSelected_=function(e){a:{try{var g=(new XMLHttpRequest).upload!==void 0;break a}catch(R){}g=!1}if(g){var c;e=Array.from((c=e.target.files)!=null?c:[]);c=[];if(this.selectorType_==="single_directory"&&(_.Cb||Vr||_.er)){c=new QZ("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(g=0;g<e.length;g++)for(var k=e[g],I=k.webkitRelativePath.split("/"),J=c,q=0;q<I.length;q++){var L=I[q];if(q==I.length-1){L!="."&&J.files_.push(k);break}var n=J.directoryMap_[L];n==void 0&&(L=
n=new QZ(L),J.directoryMap_[L.getName()]=L,J.directories_.push(L));J=n}c=c.directories_}this.dispatchEvent(new f24(e,c,null))}else e=e.target.value,e.match(/^c:\\fakepath\\/i)&&(e=e.substring(12)),this.dispatchEvent(new f24([],[],new $Dw(e,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=YGI(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var f24=function(e,g){_.Bt.call(this,"j");this.files=e;this.directories=g};
_.Y(f24,_.Bt);var juB=function(e){this.uploadUrl_=e};var iwB=function(){_.jv.call(this)};
_.Um(iwB,_.jv);var tc=function(e){_.Bt.call(this,e)};
_.Um(tc,_.Bt);var Bn=function(e){_.Bt.call(this,e)};
_.Um(Bn,_.Bt);var PNu=function(e,g,c,k,I){_.jv.call(this);c=document.createElement("form");c.setAttribute("method",g);c.setAttribute("enctype","multipart/form-data");c.setAttribute("encoding","multipart/form-data");g=document.createElement("input");g.setAttribute("type","hidden");g.setAttribute("name","metadata");g.setAttribute("value",I);c.appendChild(g);c.appendChild(k);this.JSC$12528_form_=c;e=new _.mt(e);_.Qd(e,"upload_protocol","multipart");this.JSC$12528_url_=e.toString();this.JSC$12528_request_=new wY;this.state_=
"Ready";this.JSC$12528_errorDescription_=null;this.JSC$12528_eventHandler_=new _.wD(this);_.yh(this,this.JSC$12528_eventHandler_);this.JSC$12528_eventHandler_.listen(this.JSC$12528_request_,"success",this.onTransferSuccess_);this.JSC$12528_eventHandler_.listen(this.JSC$12528_request_,"error",this.onTransferError_)};
_.Y(PNu,iwB);_.v=PNu.prototype;_.v.run=function(){this.state_="Transferring";var e=this.JSC$12528_request_,g=this.JSC$12528_form_;if(e.JSC$11795_active_)throw Error("ue");var c=new _.mt(this.JSC$12528_url_||g.action);e.JSC$11795_form_=g;g=e.JSC$11795_form_;c=_.Cm(c.toString());c!==void 0&&(g.action=c);zcY(e)};
_.v.getResponseCode=function(){return null};
_.v.getResponseText=function(){return this.JSC$12528_request_&&this.JSC$12528_request_.getResponseText()||null};
_.v.JSC$30547_getErrorDescription=function(){return this.JSC$12528_errorDescription_};
_.v.cancel=function(){this.JSC$12528_request_&&this.JSC$12528_request_.abort();this.state_="Cancelled";this.dispatchEvent(new tc("o"))};
_.v.pause=function(){};
_.v.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new tc("l"))};
_.v.onTransferError_=function(){this.JSC$12528_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new tc("n"))};var Nx=function(){_.GS.call(this)};
_.Y(Nx,_.GS);Nx.prototype.createXhr=function(){var e=_.GS.prototype.createXhr.call(this);e.upload&&(e.upload.onprogress=(0,_.Ju)(this.onProgress_,this));return e};
Nx.prototype.onProgress_=function(e){this.dispatchEvent(e)};var mDM=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},TQY=function(e,g){var c=e.attempt_+1;
if(e.maxAttempts_>0&&c>e.maxAttempts_)return!1;c==0?g():e.delayCallId_=bV(function(){e.delayCallId_=null;g()},pR1(e),e);
e.attempt_=c;return!0};
mDM.prototype.reset=function(){this.delayCallId_&&_.kp.clearTimeout(this.delayCallId_);this.attempt_=-1};
var pR1=function(e){var g=250*Math.pow(2,e.attempt_);e.maxDelayMs_>=0&&(g=Math.min(g,e.maxDelayMs_));return g};var iXe=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var SJ=function(){_.jv.call(this);this.JSC$12538_request_=this.state_=null;this.JSC$12538_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12538_bytesTransferred_=0;this.retryIterator_=new mDM;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12538_errorDescription_=null;this.JSC$12538_eventHandler_=new _.wD(this);_.yh(this,this.JSC$12538_eventHandler_);this.JSC$12538_url_=this.blob_=null;this.JSC$12538_method_=void 0;this.chunkSize_=this.JSC$12538_metadata_=
this.JSC$12538_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12538_responseText_=this.JSC$12538_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Um(SJ,iwB);_.v=SJ.prototype;_.v.run=function(){yZ(this)};
_.v.getResponseCode=function(){return this.JSC$12538_responseCode_};
_.v.getResponseText=function(){return this.JSC$12538_responseText_};
_.v.JSC$30547_getErrorDescription=function(){return this.JSC$12538_errorDescription_};
_.v.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12538_eventHandler_.removeAll();this.JSC$12538_request_&&this.JSC$12538_request_.abort();this.retryIterator_.reset();var e=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(e==="Upload"||e==="Query")e=new Nx,e.JSC$10106_withCredentials_=this.JSC$12538_withCredentials_,e.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12538_bytesTransferred_=
0;this.dispatchEvent(new tc("o"))}};
_.v.pause=function(){this.pauseRequested_=!0};
var yZ=function(e){var g=e.state_;e.pauseRequested_?(e.pauseRequested_=!1,e.stateAfterUnpausing_=g,e.state_="Paused"):TQY(e.retryIterator_,function(){switch(e.state_){case "Start":e.JSC$12538_request_=new Nx;var c=_.n0.clone(e.JSC$12538_headers_);e.blob_.size!=null&&(c["Content-Length"]=e.blob_.size);c=PkA(c);c["X-Goog-Upload-Protocol"]="resumable";c["X-Goog-Upload-Command"]="start";e.JSC$12538_eventHandler_.removeAll();e.JSC$12538_eventHandler_.listen(e.JSC$12538_request_,"complete",e.onStartComplete_);
e.JSC$12538_request_.JSC$10106_withCredentials_=e.JSC$12538_withCredentials_;e.JSC$12538_request_.send(e.JSC$12538_url_,e.JSC$12538_method_,e.JSC$12538_metadata_,c);e.lastCommandResponseCode_=null;e.dispatchEvent(new Bn("q"));break;case "Upload":c=e.transferHandle_.uploadUrl_;var k=e.blob_.size;if(PcZ()){var I=e.chunkSize_;var J=e.offset_+I>=k;k=i_q(e.blob_,e.offset_,J?k:e.offset_+I)}else e.offset_=0,k=e.blob_,J=!0;e.JSC$12538_request_=new Nx;e.JSC$12538_request_.JSC$10106_withCredentials_=e.JSC$12538_withCredentials_;
e.JSC$12538_eventHandler_.removeAll();e.JSC$12538_eventHandler_.listen(e.JSC$12538_request_,"progress",e.onUploadProgress_);I=(0,_.Ju)(e.JSC$12540_onUploadComplete_,e,e.offset_+k.size,J);e.JSC$12538_eventHandler_.listen(e.JSC$12538_request_,"complete",I);e.lastCommandResponseCode_=null;e.dispatchEvent(new Bn("q"));J=Object.assign({},e.JSC$12538_headers_||{},{"X-Goog-Upload-Command":"upload"+(J?", finalize":""),"X-Goog-Upload-Offset":e.offset_});e.JSC$12538_request_.send(c,"POST",k,J);break;case "Query":e.JSC$12538_request_=
new Nx;e.JSC$12538_eventHandler_.removeAll();e.JSC$12538_eventHandler_.listen(e.JSC$12538_request_,"complete",e.onQueryComplete_);c=Object.assign({},e.JSC$12538_headers_||{},{"X-Goog-Upload-Command":"query"});e.JSC$12538_request_.send(e.transferHandle_.uploadUrl_,"POST","",c);e.lastCommandResponseCode_=null;e.dispatchEvent(new Bn("q"));break;default:throw Error("mf");}})||KX(e,"Transfer encountered too many consecutive failures.")},KX=function(e,g){e.state_="Error";
e.JSC$12538_errorDescription_=g;e.dispatchEvent(new tc("n"))};
SJ.prototype.onStartComplete_=function(e){var g=e.target;this.lastCommandResponseCode_=g.getStatus();this.dispatchEvent(new Bn("r"));if(l24(g))AUI(this,g);else if(FEw(g)){e=Sv(e.target.getAllResponseHeaders());for(var c in e)_.wV(c.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new tc("m"));c=wE(e,"X-Goog-Upload-URL");e=(e=wE(e,"X-Goog-Upload-Chunk-Granularity"))?parseInt(e,10):1;c===void 0||isNaN(e)||e<=0?KX(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
e)*e,this.transferHandle_=new juB(c),this.dispatchEvent(new tc("p")),this.state_="Upload",this.retryIterator_.reset(),yZ(this))}else yZ(this)};
SJ.prototype.onUploadProgress_=function(e){this.JSC$12538_bytesTransferred_=this.offset_+e.loaded;this.dispatchEvent(new tc("k"))};
SJ.prototype.JSC$12540_onUploadComplete_=function(e,g,c){var k=this,I,J;return _.r(function(q){switch(q.nextAddress){case 1:I=c.target;k.lastCommandResponseCode_=I.getStatus();k.dispatchEvent(new Bn("r"));if(uGq(I)||I.getStatus()==404)return k.JSC$12538_bytesTransferred_=e,AUI(k,I),q.return();if(FEw(I)){q.jumpTo(2);break}if(!(J=k.detectCorruptedBlobEnabled_)){q.jumpTo(3);break}return q.yield(dDq(k),4);case 4:J=q.yieldResult;case 3:if(J)return KX(k,"Blob has been modified or corrupted."),q.return();
k.requireUploadRequestModification_=I.getStatus()==400;k.state_="Query";yZ(k);return q.return();case 2:if(g)return KX(k,"Got a non-final success response after issuing a finalize command."),q.return();k.JSC$12538_bytesTransferred_=e;k.offset_=e;k.retryIterator_.reset();yZ(k);return q.return()}})};
SJ.prototype.onQueryComplete_=function(e){var g=e.target;this.lastCommandResponseCode_=g.getStatus();this.dispatchEvent(new Bn("r"));l24(g)?(g.getStatus()===200&&(this.JSC$12538_bytesTransferred_=this.blob_.size),AUI(this,g)):FEw(g)?(e=Sv(e.target.getAllResponseHeaders()),e=parseInt(wE(e,"X-Goog-Upload-Size-Received"),10),isNaN(e)?KX(this,"Server did not respond with current offset."):e<this.offset_?KX(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
e+"."):this.requireUploadRequestModification_&&this.offset_===e?KX(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<e&&this.retryIterator_.reset(),this.offset_=this.JSC$12538_bytesTransferred_=e,this.state_="Upload",yZ(this))):yZ(this)};
var AUI=function(e,g){e.JSC$12538_responseCode_=g.getStatus();var c=Sv(g.getAllResponseHeaders());mx6(c);e.JSC$12538_responseText_=g.getResponseText();e.state_="Response received";e.dispatchEvent(new tc("l"))},FEw=function(e){var g=e.getStatus();
e=Sv(e.getAllResponseHeaders());e=wE(e,"X-Goog-Upload-Status");return g===200&&e==="active"},uGq=function(e){e=Sv(e.getAllResponseHeaders());
return wE(e,"X-Goog-Upload-Status")==="final"},l24=function(e){if(uGq(e))return!0;
e=e.getStatus();return e>=400&&e<500},dDq=function(e){var g;
return _.r(function(c){if(c.nextAddress==1){if(!e.blob_||e.originalBlobSize_<=0)return c.return(!1);if(e.blob_.size!==e.originalBlobSize_)return c.return(!0);_.lj(c,2);if(g=i_q(e.blob_,0,1)){var k=c.yield,I=new nz,J=C3Z(I);I.reader_.readAsBinaryString(g);c=k.call(c,J,4)}else c=c.return(!0);return c}if(c.nextAddress!=2)return c.return(e.blob_.size!==e.originalBlobSize_);_.Qb(c);return c.return(!0)})};var z6v=function(e,g,c,k,I,J){_.jv.call(this);this.payload_=k;this.JSC$12541_url_=e;this.JSC$12541_method_=g;this.JSC$12541_headers_=c;this.JSC$12541_metadata_=I;this.encoding_=J||"binary";e=new _.kA;this.boundary_="uploader-"+dD()+"-"+e.JSC$11647_toIsoString();this.JSC$12541_responseText_=this.JSC$12541_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12541_errorDescription_=null;this.JSC$12541_eventHandler_=new _.wD(this);_.yh(this,this.JSC$12541_eventHandler_)};
_.Y(z6v,iwB);_.v=z6v.prototype;
_.v.run=function(){var e=_.n0.clone(this.JSC$12541_headers_);this.payload_.length!=null&&(e["Content-Length"]=this.payload_.length);e=PkA(e);e["X-Goog-Upload-Protocol"]="multipart";e["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Nx;this.JSC$12541_eventHandler_.removeAll();this.JSC$12541_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12541_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12541_url_,this.JSC$12541_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12541_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",e)};
_.v.getResponseCode=function(){return this.JSC$12541_responseCode_};
_.v.getResponseText=function(){return this.JSC$12541_responseText_};
_.v.JSC$30547_getErrorDescription=function(){return this.JSC$12541_errorDescription_};
_.v.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12541_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new tc("o")))};
_.v.pause=function(){};
_.v.onTransferProgress_=function(){this.dispatchEvent(new tc("k"))};
_.v.onTransferComplete_=function(e){var g=e.target.getStatus();g===void 0||g===-1?(this.JSC$12541_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new tc("n"))):(this.JSC$12541_responseCode_=g,e=e.target,g=Sv(e.getAllResponseHeaders()),mx6(g),this.JSC$12541_responseText_=e.getResponseText(),this.state_="Complete",this.dispatchEvent(new tc("l")))};_.Hwq=function(e,g,c,k){k=k===void 0?!1:k;if(c instanceof $Dw)return new PNu(e,"POST",g,c.getInputElement(),"");if(typeof c==="string"||c instanceof String)return new z6v(e,"POST",g,c,"");var I=new SJ(void 0);I.JSC$12538_url_=e;I.JSC$12538_method_="POST";I.JSC$12538_headers_=g;I.blob_=c;I.originalBlobSize_=c.size;I.JSC$12538_metadata_="";k&&(I.JSC$12538_withCredentials_=k);I.state_="Start";return I};var O_=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(O_,_.WJ);_.v=O_.prototype;_.v.getEnableSsEngine=function(){return _.r0(this,2)};
_.v.getEnableAwr=function(){return _.r0(this,3)};
_.v.getAlohaAutoGaRollout=function(){return _.r0(this,5)};
_.v.getEnableConfigurator=function(){return _.r0(this,6)};
_.v.getEnableMweb=function(){return _.r0(this,7)};
var UDI=function(){var e=Qu4();return _.rE(e,7,!0)};
O_.prototype.getEnableCtlConsentCheckbox=function(){return _.r0(this,8)};
O_.prototype.getEnableIframe=function(){return _.r0(this,9)};
var Qu4=function(){var e=new O_;e=_.rE(e,5,!0);e=_.rE(e,2,!0);e=_.rE(e,4,!1);e=_.rE(e,8,!0);return _.rE(e,9,!0)};
O_.prototype.getEnableScreenshotNudge=function(){return _.r0(this,10)};
var obs=function(){var e=UDI();return _.rE(e,10,!0)};
O_.prototype.getEnableWebStartupConfigEndpoint=function(){return _.r0(this,11)};
O_.prototype.getEnableJunkNudge=function(){return _.r0(this,12)};
var S_z=function(){var e=obs();return _.rE(e,12,!0)};
_.v=O_.prototype;_.v.getEnableConfiguratorLocale=function(){return _.r0(this,13)};
_.v.getEnableTinyNoPointer=function(){return _.r0(this,14)};
_.v.getEnableSupportSessionLogging=function(){return _.r0(this,15)};
_.v.getEnableFileUploadForScreenshot=function(){return _.r0(this,16)};
_.v.getEnableDirectDeflectionForSingleCategory=function(){return _.r0(this,17)};
_.v.getEnableImageSanitization=function(){return _.r0(this,18)};
_.v.getEnableAlohaBinarySplit=function(){return _.r0(this,19)};
_.v.getEnableDbFeedbackIntents=function(){return _.r0(this,20)};
_.v.getEnableMarkMandatoryFieldsWithRequired=function(){return _.r0(this,21)};
_.v.getEnableFeedbackCategoryCustomUi=function(){return _.r0(this,22)};
_.v.getEnableRealtimeCtl=function(){return _.r0(this,23)};var Nav=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Nav,_.WJ);var pnW=[/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 lPA="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 Acz=_.Ti(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),sMp=_.Ti(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var qo=function(){var e=Error.call(this,"Form is either loading or already opened");this.message=e.message;"stack"in e&&(this.stack=e.stack);this.name="DuplicateFormError"};
_.Y(qo,Error);var uH8,HXp,dxU,QMK;var Mx,Zwq;
Mx=function(e,g,c){e.timeOfStartCall=(new Date).getTime();var k=c||_.kp,I=k.document,J=e.nonce||_.LY(k.document);J&&!e.nonce&&(e.nonce=J);if(e.flow=="help"){var q=_.Q0("document.location.href",k);!e.helpCenterContext&&q&&(e.helpCenterContext=q.substring(0,1200));q=!0;if(g&&JSON&&JSON.stringify){var L=JSON.stringify(g);(q=L.length<=1200)&&(e.psdJson=L)}q||(g={invalidPsd:!0})}g=[e,g,c];k.GOOGLE_FEEDBACK_START_ARGUMENTS=g;c=e.feedbackServerUri||"//www.google.com/tools/feedback";if(q=k.GOOGLE_FEEDBACK_START)q.apply(k,g);
else{k=c+"/load.js?";for(var n in e)g=e[n],g==null||_.SK(g)||(k+=encodeURIComponent(n)+"="+encodeURIComponent(g)+"&");e=Jd(I).createElement("SCRIPT");J&&e.setAttribute("nonce",J);_.Eh(e,_.HJ(k));I.body.appendChild(e)}};
Zwq=function(e,g,c,k){var I,J;return _.r(function(q){I=c||_.kp;var L=e.serverEnvironment==="DEV",n=c||_.kp;n=e.nonce||_.LY(n.document);L={integrationKeys:{productId:e.productId,feedbackBucket:e.bucket,triggerId:e.triggerId},callbacks:{onClose:e.callback,onLoad:e.onLoadCallback},formContent:{locale:e.locale,disableScreenshot:e.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:e.abuseLink,additionalDataConsent:e.additionalDataConsent},initializationData:{isLocalServer:L,nonce:n,useNightlyRelease:L,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:e.feedbackServerUri,colorScheme:e.colorScheme},extraData:{productVersion:e.productVersion,authUser:e.authuser,configuratorId:e.configuratorId,customZIndex:e.customZIndex,tinyNoPointer:e.tinyNoPointer,
allowNonLoggedInFeedback:e.allowNonLoggedInFeedback,enableAnonymousFeedback:e.enableAnonymousFeedback}};g&&(n=new Map(Object.entries(g)),L.extraData.productSpecificData=n);J=L;return q.yield(VJU(J,k,I),0)})};
_.Vpn=function(e,g,c){try{if(e.flow==="help"){var k=e.helpCenterPath.replace(/^\//,"");_.q5(c||window,"https://support.google.com/"+k)}else e.flow==="submit"?Mx(e,g,c):ycp(e.productId,e.feedbackServerUri).then(function(I){I=_.Ml(I,O_,1);var J=!xMu||(I==null?void 0:I.getEnableMweb()),q=!e.tinyNoPointer||(I==null?void 0:I.getEnableTinyNoPointer());!I||I.getAlohaAutoGaRollout()&&J&&q?Zwq(e,g,c,I).catch(function(L){!L||L instanceof qo||Mx(e,g,c)}):Mx(e,g,c)},function(I){!I||I instanceof qo||Mx(e,g,c)})}catch(I){Zwq(e,
g,c,null).catch(function(J){!J||J instanceof qo||Mx(e,g,c)})}};
_.BQ("userfeedback.api.startFeedback",_.Vpn);var KWK=/https?:\/\/\S+\.\S+/,OXp=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],MJU=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var w0v=function(e){var g=e.split(""),c=[-263237435,15,g,function(k,I,J){var q=I.length;J.forEach(function(L,n,R){this.push(R[n]=I[(I.indexOf(L)-I.indexOf(this[n])+n+q--)%I.length])},k.split(""))},
function(k,I){k=(k%I.length+I.length)%I.length;I.splice(-k).reverse().forEach(function(J){I.unshift(J)})},
"response",function(){for(var k=64,I=[];++k-I.length-32;){switch(k){case 58:k-=14;case 91:case 92:case 93:continue;case 123:k=47;case 94:case 95:case 96:continue;case 46:k=95}I.push(String.fromCharCode(k))}return I},
null,12,1540023973,65941107,null,g,function(k,I){for(k=(k%I.length+I.length)%I.length;k--;)I.unshift(I.pop())},
695603893,function(k){for(var I=k.length;I;)k.push(k.splice(--I,1)[0])},
"'[;'[(",function(k,I){k.push(I)},
null,function(k,I,J,q,L){return I(J,q,L)},
"continuation",g,function(k,I){if(k.length!=0){I=(I%k.length+k.length)%k.length;var J=k[0];k[0]=k[I];k[I]=J}},
function(){for(var k=64,I=[];++k-I.length-32;){switch(k){case 91:k=44;continue;case 123:k=65;break;case 65:k-=18;continue;case 58:k=96;continue;case 46:k=95}I.push(String.fromCharCode(k))}return I},
'"),/]];'];c[7]=c;c[11]=c;c[18]=c;try{(((0,c[15])(c[21]),c[22])(c[11],c[9]),c[22])(c[new Date("1970-01-01T04:30:12.000+04:30")/1E3],c[1]),((0,c[22])(c[11],c[23]),c[4])(c[10],c[18]),(0,c[20])(c[21],c[14])<<(0,c[17])(c[18],c[1]),(0,c[4])(c[8],c[21]),(0,c[19])((0,c[19])((0,c[17])(c[7],c[9]),c[3],c[20],(0,c[6])(),c[2]),c[3],c[5],(0,c[15])(),c[2])}catch(k){return"aTlOUOubTO4AP____8P_"+e}return g.join("")};_.tpq=new _.lN("runAttestationCommand");var BQv=new _.lN("verifyCommand");_.Jh=new _.lN("accessibilityContext");var NQk=new _.lN("accessibilityData");var SGw=new _.lN("profileCardCommand");var O96=new _.lN("signInEndpoint");var K_p=new _.lN("signOutEndpoint");var KEM;_.yUq=new _.lN("accountItemSectionRenderer");KEM=new _.lN("accountItemRenderer");_.OwZ=new _.lN("saveCommandToSessionStorageAction");var Mpn=new _.lN("crossAccountChannelTransferEndpoint");var V36=new _.lN("getAccountMenuEndpoint");_.t3A=new _.lN("getAccountSwitcherEndpoint");var ZJU=new _.lN("getAccountsListEndpoint");var CNs=new _.lN("getAccountsListInnertubeEndpoint");_.etI=new _.lN("addToToastAction");var gH1=new _.lN("hideEnclosingAction");_.CX=new _.lN("replaceEnclosingAction");var cSI=new _.lN("buttonRefreshAction");var kBM=new _.lN("adsControlFlowOpportunityReceivedCommand");var IxI=new _.lN("openAdAllowlistInstructionCommand");var JSZ=new _.lN("videoMastheadAdPrimaryVideoRenderer");var vHq=new _.lN("displayAdRenderer");_.wk1=new _.lN("inFeedAdLayoutRenderer");var qSv=new _.lN("sequenceItemInPlayerAdLayoutRenderer");_.Lyk=new _.lN("adSlotRenderer");var rSM=new _.lN("adAvatarViewModel");var ax4=new _.lN("adBadgeViewModel");var nHs=new _.lN("adButtonViewModel");var RtM=new _.lN("adImageViewModel");var nZg=new _.lN("reelsAdCardButtonedViewModel");var EHM=new _.lN("reelsPlayerOverlayLayoutViewModel");var Wy4=new _.lN("formDataDecoratorCommand");var bQq=new _.lN("updateConversationIdCommand");var htk=new _.lN("showSchedulingPanelCommand");var Xkq=new _.lN("backstageCommentsRenderer");var GBq=new _.lN("backstageImageRenderer");var x94=new _.lN("backstagePostRenderer");var D9v=new _.lN("backstageZeroStateRenderer");var $94=new _.lN("postRenderer");var YSq=new _.lN("sharedPostRenderer");var fxM=new _.lN("createBackstagePostEndpoint");var jgM=new _.lN("getPostVideoPreviewEndpoint");var iQI=new _.lN("updateBackstagePostEndpoint");var PvY=new _.lN("filterChipTransformCommand");var m9s=new _.lN("insertRichSectionCommand");var HKq=new _.lN("talkToRecsDeselectCommand");var pkM=new _.lN("talkToRecsNextCommand");var zSp=new _.lN("talkToRecsSelectCommand");var Tx1=new _.lN("talkToRecsUpdateTextCommand");_.KU=new _.lN("browseEndpoint");_.lx4=new _.lN("confirmDialogEndpoint");var ASs=new _.lN("expandOnHoverCardRenderer");var sgv=new _.lN("lumiereShelfDetailsRenderer");var FyM=new _.lN("revealBusinessEmailCommand");var uln=new _.lN("validateChannelHandleCommand");var d91=new _.lN("channelCreationFormEndpoint");var zts=new _.lN("aboutChannelViewModel");var HQv=new _.lN("channelThumbnailWithLinkRenderer");var Qgq=new _.lN("channelCreationServiceEndpoint");var U9B=new _.lN("updateChannelPageSettingsEndpoint");var eD=function(e){this.delegate=e},gM=function(){eD.apply(this,arguments)};
_.Y(gM,eD);_.Bd.Object.defineProperties(gM.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(e){this.delegate.entityMetadata=e}}});var oHw=function(){gM.apply(this,arguments)};
_.Y(oHw,gM);oHw.prototype.getAssociations=function(){return[]};
oHw.prototype.getTypeName=function(){return"channelHandle"};var ZQ1=new _.lN("webResponseContextExtensionData");var ymU=new _.lN("webThumbnailDetailsExtensionData");_.WY=new _.lN("commandContext");var VLY=new _.lN("addVideoLinkAction");var tLs=new _.lN("banAuthorAction");var Bxu=new _.lN("createCommentAction");var Nxs=new _.lN("createCommentReplyAction");var SSM=new _.lN("createPollAction");var ySM=new _.lN("hideIdentityChipAction");var KyZ=new _.lN("openUpdateCommentDialogAction");var OQn=new _.lN("pinCommentAction");var MLq=new _.lN("removeCommentAction");var Cvs=new _.lN("unpinCommentAction");var cU=new _.lN("updateBackstagePollAction");var eDq=new _.lN("updateCommentVoteAction");var gAq=new _.lN("commentThreadRenderer");var cDv=function(){gM.apply(this,arguments)};
_.Y(cDv,gM);cDv.prototype.getAssociations=function(){return[]};
cDv.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var kpq=function(){gM.apply(this,arguments)};
_.Y(kpq,gM);kpq.prototype.getAssociations=function(){return[]};
kpq.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Ijk=new _.lN("commentDialogRenderer");var JDu=new _.lN("reloadCommentsCommand");var vA4=new _.lN("updateCommentsSettingsEndpoint");var w61=new _.lN("commentViewModel");var qeq=new _.lN("triStateButtonViewModel");var LGw=new _.lN("voiceReplyContainerViewModel");_.SV=new _.lN("commandExecutorCommand");var nv=new _.lN("emoji");var rDw=new _.lN("updateCreatorChannelInnertubeCommand");_.ajY=new _.lN("appendContinuationItemsAction");_.nAs=new _.lN("changeEngagementPanelVisibilityAction");_.b6=new _.lN("continuationCommand");var RD4=new _.lN("hideReportedCommentAction");var EAn=new _.lN("listMutationCommand");_.k8=new _.lN("openPopupAction");var WGk=new _.lN("persistSubscriptionsDisplayPreferencesCommand");var Yek;_.bz1=new _.lN("playlistRemoveVideosAction");_.hDw=new _.lN("updatePlaylistAction");_.X6Y=new _.lN("addToPlaylistCommand");_.Gpq=new _.lN("endPlaylistCommand");_.xEv=new _.lN("recoverPlaylistCommand");_.DEs=new _.lN("refreshPlaylistCommand");_.$E1=new _.lN("refreshFormCommand");Yek=new _.lN("openOnePickAddVideoModalCommand");var M3W=new _.lN("reloadContinuationItemsCommand");var fjM=new _.lN("restoreCachedContinuableDataCommand");_.jTB=new _.lN("scrollToEngagementPanelCommand");var izB=new _.lN("selectCountryCommand");var Pbu=new _.lN("showReloadUiCommand");var mEv=new _.lN("undoFeedbackAction");var p6Y=new _.lN("updateButtonAction");var Thk=new _.lN("updateSubscribeButtonAction");var ljM=new _.lN("updateToggleAction");var ADn=new _.lN("webNativeShareCommand");_.OM=new _.lN("webCommandMetadata");_.I_=new _.lN("webHandleServiceEndpointExtension");var I1q=new _.lN("webNavigationEndpointData");var sTq=new _.lN("backgroundAudioPlaybackCommand");var FGs=new _.lN("copyLinkCommand");var usB=new _.lN("playlistVotingRefreshPopupCommand");var dEI=new _.lN("selectChipCommand");var zDw=new _.lN("setCookieCommand");var Hzk=new _.lN("setLocalStorageCommand");var QTM=new _.lN("setPrefStorageEntryCommand");var VR4;_.UEv=new _.lN("settingsUpdateCheckboxCommand");_.oA1=new _.lN("settingsUpdateTextCommand");_.Zzq=new _.lN("settingsUpdateOptionsCommand");VR4=new _.lN("settingsUpdateSwitchCommand");_.tRq=new _.lN("settingsUpdateConnectedAppRendererCommand");var BhM=new _.lN("showCreatorChatbotEngagementPanelCommand");var Nhw=new _.lN("updateTextInputFormFieldRendererCommand");var Sew=new _.lN("updateToggleButtonStateCommand");var yD1=new _.lN("updateUrlParamCommand");var KG1=new _.lN("webSubmitFormCommand");var Ozk=new _.lN("channelSwitcherPageRenderer"),MR1=new _.lN("updateChannelSwitcherPageAction");_.zM=new _.lN("continuationItemRenderer");_.JR=new _.lN("richItemRenderer");var Cb1=new _.lN("richSectionRenderer");_.ejv=new _.lN("richShelfRenderer");_.gLw=new _.lN("metadataBadgeRenderer");_.ccw=new _.lN("multiPageMenuNotificationSectionRenderer");_.k4I=new _.lN("playlistLoopButtonStateRenderer");var IPI=new _.lN("claimLegacyYoutubeChannelEndpoint");var Jcq=new _.lN("getNotificationMenuEndpoint");var vLB=new _.lN("getSearchInVideoCommand");_.wnI=new _.lN("getTranscriptEndpoint");_.K_=new _.lN("signalServiceEndpoint");var q_I=new _.lN("verifyAgeEndpoint");var LjK=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(LjK,_.WJ);LjK.prototype.getPath=function(){return _.Rs(this,1)};
LjK.prototype.getValue=function(){return _.Rs(this,2)};var LWI=[0,_.Fv,-1];var rcI=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(rcI,_.WJ);var qiW=_.ma(rcI,[0,_.zX,LWI]);var aPk=new _.lN("dismissalEndpoint");var nLk=new _.lN("elementsCommand");_.EL=new _.lN("innertubeCommand");var d7W=new _.lN("multipleInlinePlaybackCommand");var o0q=new _.lN("loggingDirectives");var Rju=new _.lN("acknowledgeChannelTouStrikeCommand");var ELM=function(){gM.apply(this,arguments)};
_.Y(ELM,gM);ELM.prototype.getAssociations=function(){return[]};
ELM.prototype.getTypeName=function(){return"booleanEntity"};var WWZ=function(){gM.apply(this,arguments)};
_.Y(WWZ,gM);WWZ.prototype.getAssociations=function(){return[]};
WWZ.prototype.getTypeName=function(){return"stringEntity"};var PO=new _.lN("entityBatchUpdate");_.bX1=new _.lN("entityUpdateCommand");var hj1=function(){gM.apply(this,arguments)};
_.Y(hj1,gM);hj1.prototype.getAssociations=function(){var e=[];this.delegate.alternateChannel&&e.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&e.push.apply(e,_.KY(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&e.push(this.delegate.oneofChannelEntity);return[].concat(_.KY(new Set(e)))};
hj1.prototype.getTypeName=function(){return"fakeChannel"};var Xnn=function(){gM.apply(this,arguments)};
_.Y(Xnn,gM);Xnn.prototype.getAssociations=function(){var e=[];this.delegate.entryCollection&&e.push(this.delegate.entryCollection);return[].concat(_.KY(new Set(e)))};
Xnn.prototype.getTypeName=function(){return"fakePlaylist"};
var G4B=function(){gM.apply(this,arguments)};
_.Y(G4B,gM);G4B.prototype.getAssociations=function(){var e=[];this.delegate.parentPlaylist&&e.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var g=_.w(this.delegate.entries),c=g.next();!c.done;c=g.next())e.push.apply(e,_.KY((new xx4(c.value)).getAssociations()));return[].concat(_.KY(new Set(e)))};
G4B.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var xx4=function(){eD.apply(this,arguments)};
_.Y(xx4,eD);xx4.prototype.getAssociations=function(){var e=[];this.delegate.video&&e.push(this.delegate.video);return[].concat(_.KY(new Set(e)))};var DxB=function(){gM.apply(this,arguments)};
_.Y(DxB,gM);DxB.prototype.getAssociations=function(){var e=[];this.delegate.descriptionEntity&&e.push(this.delegate.descriptionEntity);this.delegate.creators&&e.push.apply(e,_.KY(this.delegate.creators));this.delegate.theBiggestFan&&e.push(this.delegate.theBiggestFan);return[].concat(_.KY(new Set(e)))};
DxB.prototype.getTypeName=function(){return"fakeVideo"};
var $xM=function(){gM.apply(this,arguments)};
_.Y($xM,gM);$xM.prototype.getAssociations=function(){return[]};
$xM.prototype.getTypeName=function(){return"fakeVideoDescription"};var Y_Z=new _.lN("fantasyRosterViewModel");var fPY=new _.lN("addFollowUpSurveyCommand");var jMM=new _.lN("getSurveyCommand");var iXB=new _.lN("ratingSurveyOptionRenderer");_.bn=new _.lN("feedbackEndpoint");var Pkn=new _.lN("reportHistoryTableCellRenderer"),mx4=new _.lN("reportHistoryTableTextCellRenderer"),pns=new _.lN("reportHistoryTableReasonCellRenderer");_.Tas=new _.lN("flagEndpoint");var lPn=new _.lN("deleteFlowStepsCommand");_.Acw=new _.lN("flowNextStepCommand");_.sMI=new _.lN("flowPrevStepCommand");var FWw=new _.lN("getFlowCommand");var uHY=new _.lN("submitFormWithValidationFlowCommand");_.dxq=new _.lN("updateFlowCommand");var zjw=function(){gM.apply(this,arguments)};
_.Y(zjw,gM);zjw.prototype.getAssociations=function(){return[]};
zjw.prototype.getTypeName=function(){return"flowStateEntity"};var HXI=new _.lN("flowFormState");_.vU=new _.lN("flowStepRenderer");var QMu=new _.lN("gameCardRenderer");var Ux4=new _.lN("accountLinkingStateChangedCommand");var oLn=function(){gM.apply(this,arguments)};
_.Y(oLn,gM);oLn.prototype.getAssociations=function(){return[]};
oLn.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var ZXM=new _.lN("changeMiniAppPlayStateCommand");var VJq=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(VJq,_.WJ);var wM=[1,2,3];var tJB=[0,wM,eLM,_.d0,BrM];var Baq=_.ma(VJq,tJB),Naq=_.TT(tJB);var S_w=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(S_w,_.WJ);var ycI=[0,_.mv,_.Fv];var KWu=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(KWu,_.WJ);var OXI=[0,_.Fv,_.mv,-1];var qd=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(qd,_.WJ);var MJq=_.TT([0,1,ycI,_.Z4,OXI,_.Fv,-1]);var Cks=new _.lN("miniAppScoreChallengeViewModel");var eFu=new _.lN("miniGameCardViewModel");var g8u=new _.lN("teaserCardViewModel");var cRq=function(){gM.apply(this,arguments)};
_.Y(cRq,gM);cRq.prototype.getAssociations=function(){return[]};
cRq.prototype.getTypeName=function(){return"logoEntity"};var k_k=new _.lN("feedbackItemRenderer");var IUv=function(){gM.apply(this,arguments)};
_.Y(IUv,gM);IUv.prototype.getAssociations=function(){return[]};
IUv.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.JRw=new _.lN("playerInterstitialRenderer");var v8w=new _.lN("getKidsBlocklistPickerCommand");_.wUY=new _.lN("updateKidsBlacklistEndpoint");_.LP=new _.lN("likeEndpoint");var qEs,LKu,rRk;qEs=new _.lN("addChatItemAction");LKu=new _.lN("removeChatItemAction");rRk=new _.lN("markChatItemAsDeletedAction");_.aUY=new _.lN("setLiveChatCollapsedStateAction");var n8I=function(){gM.apply(this,arguments)};
_.Y(n8I,gM);n8I.prototype.getAssociations=function(){return[]};
n8I.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var RFY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(RFY,_.WJ);RFY.prototype.getPayloadCase=function(){return _.JP(this,E8q)};
var E8q=[3,4];var WKv=[0,_.zX,[0,[1,2],_.d0,_.HW,[0,_.uy,1,_.uy]]];var bPB=[0,_.Fv,-1];var hF4=[0,[1],_.d0];var rM=[0,[1,2],_.d0,_.HW,[0,_.Z4]];var a_=[0,_.Fv];var XUB=[0,[0,_.AP,_.ly,[0,_.uy,_.Vk,_.uy]],1,[0,_.AP]];var G_Z=[0,pq];var xdM=[0,pq];var DdB=[0,xdM,G_Z];var $dI=[0,_.zX,[0,[1,2],_.d0,-1],_.AP];var YE4=[0,[2],1,_.HW,[0,_.uy,-1,$dI]];var fUq=[0,[1],_.HW,[0,_.uy,_.Fv,_.Vk,1,$dI]];var j_u=[0,_.ly,-1,tan,_.Z4];var iPB=[0,[0,PW,-3],-4];var nP=[0,_.AP,-3,_.Fv,_.AP,_.Zg,_.AP,WKv,_.AP,-2];var R_=[0,_.zX,[0,[1,2],_.d0,-1],_.AP,_.Fv];var Ppw=[0,[3],rM,[0,[2,3,4],J0n,_.d0,-2],_.HW,[0,_.Fv],_.mv];var mdv=[0,[3,5],_.Fv,_.TX,_.HW,[0,1,_.mv,_.Z4],_.Z4,_.HW,[0,_.Z4,_.mv]];var pU4=[0,2,_.TX,_.Fv,-1];var TMn=[0,Mav];var lUZ=[0,[3,4],2,Sxq,_.d0,_.Fv];var ARY=[0,_.Z4,-2,1,_.Fv];var s_I=[0,_.Fv,-1,_.Z4];var FKn=[0,a_,function(){return EE},
a_,_.Fv],uNq=[0,_.Z4,a_,rM,function(){return EE},
_.Fv],EE=[-161,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160],a_,_.TX,[0,_.AP,1,_.AP,1,_.AP,1,_.Z4,-1,a_],[0,1,_.AP,2,_.AP,_.Z4,_.AP],1,_.TX,-1,_.Fv,_.TX,2,PW,[0,PW,_.TX],_.Fv,1,XUB,1,rM,_.Zg,1,[0,[0,_.zX,[0,_.Fv,_.AP,_.Z4]]],[0,_.AP,[0,_.mv,[0,_.Vk]],_.mv,1,[0,KaI,-1]],_.Fv,[0,1,_.Fv],76,_.HW,[0,rM,R_,XUB,1,[0,_.zX,R_]],1,_.HW,[0,rM,_.Fv,
_.AP],_.HW,[0,rM,hF4],_.HW,[0,rM,hF4,_.TX],_.HW,[0,rM,hF4],_.HW,[0,rM,_.zX,a_,rM,gW1],_.HW,[0,rM,a_,_.Fv],_.HW,[0,rM,_.AP,nP,-1,_.AP],4,_.HW,[0,rM,_.AP,_.TX,nP,_.AP],_.HW,[0,[4,9],rM,_.Z4,_.TX,_.d0,R_,1,XUB,_.Fv,_.d0,ARY],_.HW,[0,rM,a_,rM,_.Z4,_.Fv],_.HW,[0,_.AP,rM,nP,_.AP,_.Fv],_.HW,[0,rM,a_,rM,_.Z4,_.Fv],1,_.HW,[0,rM,_.Z4,_.Fv,nP],_.HW,[0,rM,_.Z4,[0,_.Fv,_.TX],_.Fv,_.TX,_.Fv,_.UU,-2,3,s_I,_.zX,s_I,s_I,ARY],_.HW,[0,rM,_.Z4,fUq,_.zX,[0,xdM,YE4],a_,_.zX,DdB,_.Fv,1,_.Z4,j_u,iPB,Vas,-1],_.HW,[0,rM,[0,
_.Vk,-1,fUq,_.zX,[0,xdM,YE4,G_Z],[0,_.V2],1,_.uy],a_,_.Fv],_.HW,[0,rM,R_,_.Fv,[0,_.ly]],_.HW,function(){return uNq},
_.HW,[0,rM,_.TX,_.Fv,-1,_.AP],_.HW,[0,[6,7],rM,_.zX,pU4,_.Z4,R_,1,_.HW,lUZ,_.HW,TMn],_.HW,[0,_.zX,pU4,_.Z4,_.AP],_.HW,[0,_.Fv,zgI,-1],_.HW,[0,a_,_.zX,DdB,_.Fv],_.HW,[0,rM,a_,_.Fv],_.HW,[0,_.UU,_.Fv],_.HW,[0,bPB],_.HW,[0,bPB],_.HW,[0,R_],_.HW,[0,a_,R_],_.HW,function(){return FKn},
_.HW,[0,a_,_.Fv],_.HW,[0,a_,_.Fv],1,_.HW,[0,_.AP,rM,nP,_.AP,nP],_.HW,[0,_.V2],1,_.HW,[0],1,_.HW,[0,a_,_.Z4,rM,_.Z4],_.HW,[0,[1,2],_.HW,lUZ,_.HW,TMn,_.TX],_.HW,[0,_.V2,R_,mdv,_.Fv,_.TX],_.HW,[0,mdv,_.Fv,_.TX],_.HW,[0,j_u,R_,_.AP,iPB],_.HW,Ppw,_.HW,[0],_.HW,[0,_.Fv,-1,_.mv],_.HW,[0,a_,_.Fv],_.HW,[0,Ppw,_.mv,_.Fv],_.HW,[0,rM,nP,_.AP],_.HW,[0,rM,nP,_.AP],_.HW,[0,j_u,iPB,R_,_.Zg,_.AP,Vas,-1],_.HW,[0,rM,nP,_.AP],_.HW,[0,_.TX]];var ddB=[0,_.zX,EE];var zFk=_.ma(RFY,[0,E8q,1,_.mv,_.HW,[0,[18,22,24],ddB,3,[0,ddB],1,_.mv,[0,_.zX,[0,_.TX,PW],_.TX],1,EE,-1,[0,_.sU,-2,_.Zg,_.sU,-1,_.Zg,_.sU,WKv,_.sU,-2],oBZ,[!0,_.Fv,[0,hF4,2,_.Fv,_.TX,_.AP,2,_.Fv,_.UU]],[0,[1,2,3],[5,6],_.HW,[0,_.uy],_.HW,[0,_.uy,-1],_.HW,[0,_.uy],1,_.HW,bPB,_.HW,[0,_.Fv]],[0,EE,-1],_.V2,EE,_.HW,EE,[0,ddB],_.mv,EE,_.HW,EE,_.Fv,_.HW,EE,EE],_.HW,s6I,_.mv]);var HPq=new _.lN("liveChatEndpoint");var Q_w=new _.lN("liveChatItemContextMenuEndpoint");var Udn=new _.lN("liveChatReplayEndpoint");_.o8s=new _.lN("emojiPickerRenderer");var ZP4=new _.lN("liveChatAuthorBadgeViewModel");var VDY=new _.lN("deleteLiveChatMessageCommand");var tDY=new _.lN("liveChatActionEndpoint");var BMw=new _.lN("createLiveChatPollEndpoint");var NMu=new _.lN("manageLiveChatUserEndpoint");var SEv=new _.lN("moderateLiveChatEndpoint");_.yRw=new _.lN("sendLiveChatMessageEndpoint");var KK1=new _.lN("sendLiveChatVoteEndpoint");var OPI=new _.lN("clearLocationCommand");var MD4=new _.lN("resolveLocationCommand");var CpY=new _.lN("interactionLoggingCommandMetadata");var e2s=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(e2s,_.WJ);var gqw=function(e,g){return _.td(e,1,g)};var c$1=[0,_.AP];var kxM=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(kxM,_.WJ);var Iyv=function(e,g){return LB(e,1,e2s,g)};kxM.prototype.JSC$12637_serializeBinary=LzU([0,_.zX,c$1]);var xdg={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 J$u={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"},
vq1={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 LBK={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_GHOST_LOADING_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_GHOST_LOADING_ELIGIBLE"};_.T9C=new _.lN("logFlowLoggingEventCommand");_.cT=new _.lN("loggingContext");var wlY=new _.lN("audioTrackSelectActionCommand");var qHw=new _.lN("captionLanguageSelectActionCommand");var LAw=new _.lN("showAudioTrackPickerActionCommand");var r$s=new _.lN("showCaptionLanguageSelectActionCommand");var ayw=new _.lN("dismissDialogEndpoint");var nqY=new _.lN("dismissPlayerOverlayCommand");var R2v=new _.lN("hideItemSectionVideosByIdCommand");var EqM=new _.lN("showMiniplayerCommand");var WAq=function(){gM.apply(this,arguments)};
_.Y(WAq,gM);WAq.prototype.getAssociations=function(){return[]};
WAq.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var boM=function(){gM.apply(this,arguments)};
_.Y(boM,gM);boM.prototype.getAssociations=function(){return[]};
boM.prototype.getTypeName=function(){return"downloadStatusEntity"};var h2B=function(){gM.apply(this,arguments)};
_.Y(h2B,gM);h2B.prototype.getAssociations=function(){return[]};
h2B.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var Xlv=function(){gM.apply(this,arguments)};
_.Y(Xlv,gM);Xlv.prototype.getAssociations=function(){var e=[];this.delegate.downloadsList&&e.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&e.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&e.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&e.push(this.delegate.refresh);return[].concat(_.KY(new Set(e)))};
Xlv.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var Gx1=function(){gM.apply(this,arguments)};
_.Y(Gx1,gM);Gx1.prototype.getAssociations=function(){var e=[];this.delegate.refresh&&e.push(this.delegate.refresh);if(this.delegate.downloads)for(var g=_.w(this.delegate.downloads),c=g.next();!c.done;c=g.next())e.push.apply(e,_.KY((new xG4(c.value)).getAssociations()));return[].concat(_.KY(new Set(e)))};
Gx1.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var xG4=function(){eD.apply(this,arguments)};
_.Y(xG4,eD);xG4.prototype.getAssociations=function(){var e=[];this.delegate.video&&e.push(this.delegate.video);this.delegate.playlist&&e.push(this.delegate.playlist);this.delegate.videoItem&&e.push(this.delegate.videoItem);this.delegate.playlistItem&&e.push(this.delegate.playlistItem);return[].concat(_.KY(new Set(e)))};var DGB=function(){gM.apply(this,arguments)};
_.Y(DGB,gM);DGB.prototype.getAssociations=function(){var e=[];this.delegate.localImageEntities&&e.push.apply(e,_.KY(this.delegate.localImageEntities));return[].concat(_.KY(new Set(e)))};
DGB.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var $Gw=function(){gM.apply(this,arguments)};
_.Y($Gw,gM);$Gw.prototype.getAssociations=function(){var e=[];this.delegate.playbackData&&e.push(this.delegate.playbackData);this.delegate.localImageEntities&&e.push.apply(e,_.KY(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&e.push(this.delegate.videoDownloadContextEntity);return[].concat(_.KY(new Set(e)))};
$Gw.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var YHq=function(){gM.apply(this,arguments)};
_.Y(YHq,gM);YHq.prototype.getAssociations=function(){return[]};
YHq.prototype.getTypeName=function(){return"offlineabilityEntity"};var fyu=function(){gM.apply(this,arguments)};
_.Y(fyu,gM);fyu.prototype.getAssociations=function(){var e=[];this.delegate.fakeChildren&&e.push.apply(e,_.KY(this.delegate.fakeChildren));return[].concat(_.KY(new Set(e)))};
fyu.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var jvY=function(){gM.apply(this,arguments)};
_.Y(jvY,gM);jvY.prototype.getAssociations=function(){var e=[];this.delegate.video&&e.push(this.delegate.video);this.delegate.playbackData&&e.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&e.push(this.delegate.offlineVideoPolicy);return[].concat(_.KY(new Set(e)))};
jvY.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var ioY=function(){gM.apply(this,arguments)};
_.Y(ioY,gM);ioY.prototype.getAssociations=function(){return[]};
ioY.prototype.getTypeName=function(){return"continuationTokenEntity"};var PE1=function(){gM.apply(this,arguments)};
_.Y(PE1,gM);PE1.prototype.getAssociations=function(){var e=[];this.delegate.channelOwner&&e.push(this.delegate.channelOwner);this.delegate.videos&&e.push.apply(e,_.KY(this.delegate.videos));this.delegate.collaboratorChannels&&e.push.apply(e,_.KY(this.delegate.collaboratorChannels));this.delegate.downloadState&&e.push(this.delegate.downloadState);this.delegate.refresh&&e.push(this.delegate.refresh);return[].concat(_.KY(new Set(e)))};
PE1.prototype.getTypeName=function(){return"mainPlaylistEntity"};var mGw=function(){gM.apply(this,arguments)};
_.Y(mGw,gM);mGw.prototype.getAssociations=function(){var e=[];this.delegate.video&&e.push(this.delegate.video);this.delegate.channelContributor&&e.push(this.delegate.channelContributor);return[].concat(_.KY(new Set(e)))};
mGw.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var plq=function(){eD.apply(this,arguments)};
_.Y(plq,eD);plq.prototype.getAssociations=function(){var e=[];this.delegate.recommendedVideoMetadata&&e.push.apply(e,_.KY((new TBs(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.KY(new Set(e)))};
var TBs=function(){eD.apply(this,arguments)};
_.Y(TBs,eD);TBs.prototype.getAssociations=function(){var e=[];this.delegate.localImageEntities&&e.push.apply(e,_.KY(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&e.push(this.delegate.videoDownloadContextEntity);return[].concat(_.KY(new Set(e)))};var lyI=function(){eD.apply(this,arguments)};
_.Y(lyI,eD);lyI.prototype.getAssociations=function(){var e=[];this.delegate.playbackPosition&&e.push(this.delegate.playbackPosition);return[].concat(_.KY(new Set(e)))};var A$q=function(){gM.apply(this,arguments)};
_.Y(A$q,gM);A$q.prototype.getAssociations=function(){var e=[];this.delegate.owner&&e.push(this.delegate.owner);this.delegate.downloadState&&e.push(this.delegate.downloadState);this.delegate.userState&&e.push.apply(e,_.KY((new lyI(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&e.push.apply(e,_.KY((new plq(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.KY(new Set(e)))};
A$q.prototype.getTypeName=function(){return"mainVideoEntity"};var svI=function(){gM.apply(this,arguments)};
_.Y(svI,gM);svI.prototype.getAssociations=function(){var e=[];this.delegate.userChannelDetails&&e.push(this.delegate.userChannelDetails);return[].concat(_.KY(new Set(e)))};
svI.prototype.getTypeName=function(){return"ytMainChannelEntity"};var FAv=function(){gM.apply(this,arguments)};
_.Y(FAv,gM);FAv.prototype.getAssociations=function(){var e=[];this.delegate.channelOwner&&e.push(this.delegate.channelOwner);this.delegate.playbackPosition&&e.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&e.push.apply(e,_.KY(this.delegate.localImageEntities));this.delegate.downloadStatus&&e.push(this.delegate.downloadStatus);return[].concat(_.KY(new Set(e)))};
FAv.prototype.getTypeName=function(){return"ytMainVideoEntity"};var W5t=new _.lN("downloadsPageSmartDownloadsOptInBannerParams");var Gdz=new _.lN("downloadsPageUpsellBannerParams");var uen=function(){gM.apply(this,arguments)};
_.Y(uen,gM);uen.prototype.getAssociations=function(){return[]};
uen.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var dG1=function(){gM.apply(this,arguments)};
_.Y(dG1,gM);dG1.prototype.getAssociations=function(){return[]};
dG1.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var z2Y=function(){gM.apply(this,arguments)};
_.Y(z2Y,gM);z2Y.prototype.getAssociations=function(){return[]};
z2Y.prototype.getTypeName=function(){return"macroMarkerEntity"};var HoB=function(){gM.apply(this,arguments)};
_.Y(HoB,gM);HoB.prototype.getAssociations=function(){return[]};
HoB.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var Qvk=function(){gM.apply(this,arguments)};
_.Y(Qvk,gM);Qvk.prototype.getAssociations=function(){return[]};
Qvk.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var UGn=function(){gM.apply(this,arguments)};
_.Y(UGn,gM);UGn.prototype.getAssociations=function(){return[]};
UGn.prototype.getTypeName=function(){return"playerStateEntity"};var oqw=function(){gM.apply(this,arguments)};
_.Y(oqw,gM);oqw.prototype.getAssociations=function(){return[]};
oqw.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var ZoM=function(){gM.apply(this,arguments)};
_.Y(ZoM,gM);ZoM.prototype.getAssociations=function(){return[]};
ZoM.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var VMs=function(){gM.apply(this,arguments)};
_.Y(VMs,gM);VMs.prototype.getAssociations=function(){return[]};
VMs.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.$t=new _.lN("dislikeButtonViewModel");_.DQ=new _.lN("likeButtonViewModel");var tMM=new _.lN("videoSummaryContentViewModel");var BB1=new _.lN("videoSummaryParagraphViewModel");var NBM=new _.lN("changeTimelyActionVisibilityCommand");var SHq=new _.lN("hideEngagementPanelEndpoint");var y$4=new _.lN("refreshPanelEndpoint");var KAq=new _.lN("scrollToSectionEndpoint");var Oon=new _.lN("seekToVideoTimestampCommand");_.W2=new _.lN("showEngagementPanelEndpoint");var MMZ=new _.lN("showTransientPlayerScrimOverlayCommand");var CEY=new _.lN("toggleEngagementPanelCommand");var eqw=new _.lN("aiResponseBoxViewModel");_.gCk=new _.lN("createBroadcastCommand");var cFw=new _.lN("metadataUpdateCommand");var kGM=function(){gM.apply(this,arguments)};
_.Y(kGM,gM);kGM.prototype.getAssociations=function(){return[]};
kGM.prototype.getTypeName=function(){return"featuredProductsEntity"};var I6w=function(){gM.apply(this,arguments)};
_.Y(I6w,gM);I6w.prototype.getAssociations=function(){return[]};
I6w.prototype.getTypeName=function(){return"pinnedProductEntity"};var JFw=function(){gM.apply(this,arguments)};
_.Y(JFw,gM);JFw.prototype.getAssociations=function(){return[]};
JFw.prototype.getTypeName=function(){return"trendingOfferEntity"};_.vCB=new _.lN("merchandiseShelfRenderer");var w$q=new _.lN("shoppingContentLineItemViewModel");var qOq=new _.lN("shoppingDescriptionItemViewModel");var LXZ=new _.lN("gridMovieRenderer");_.rF1=new _.lN("movieRenderer");var a6v=function(){gM.apply(this,arguments)};
_.Y(a6v,gM);a6v.prototype.getAssociations=function(){return[]};
a6v.prototype.getTypeName=function(){return"compositeSourceEntity"};var nCv=function(){gM.apply(this,arguments)};
_.Y(nCv,gM);nCv.prototype.getAssociations=function(){var e=[];this.delegate.compositeSourceKeys&&e.push.apply(e,_.KY(this.delegate.compositeSourceKeys));return[].concat(_.KY(new Set(e)))};
nCv.prototype.getTypeName=function(){return"multiviewStagingEntity"};var RqI=function(){gM.apply(this,arguments)};
_.Y(RqI,gM);RqI.prototype.getAssociations=function(){var e=[];this.delegate.trackDownloadMetadatas&&e.push.apply(e,_.KY(this.delegate.trackDownloadMetadatas));return[].concat(_.KY(new Set(e)))};
RqI.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var ECs=function(){gM.apply(this,arguments)};
_.Y(ECs,gM);
ECs.prototype.getAssociations=function(){var e=[];this.delegate.downloadedTracks&&e.push.apply(e,_.KY(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&e.push.apply(e,_.KY(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&e.push.apply(e,_.KY(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&e.push.apply(e,_.KY(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&e.push.apply(e,_.KY(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
e.push.apply(e,_.KY(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&e.push.apply(e,_.KY(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&e.push.apply(e,_.KY(this.delegate.metadataOnlyTracks));return[].concat(_.KY(new Set(e)))};
ECs.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var WXM=function(){gM.apply(this,arguments)};
_.Y(WXM,gM);WXM.prototype.getAssociations=function(){var e=[];this.delegate.trackDownloadMetadatas&&e.push.apply(e,_.KY(this.delegate.trackDownloadMetadatas));return[].concat(_.KY(new Set(e)))};
WXM.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var baB=function(){gM.apply(this,arguments)};
_.Y(baB,gM);baB.prototype.getAssociations=function(){var e=[];this.delegate.playbackData&&e.push(this.delegate.playbackData);this.delegate.localImageEntities&&e.push.apply(e,_.KY(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&e.push(this.delegate.videoDownloadContextEntity);return[].concat(_.KY(new Set(e)))};
baB.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var hqM=function(){gM.apply(this,arguments)};
_.Y(hqM,gM);
hqM.prototype.getAssociations=function(){var e=[];this.delegate.musicLibraryStatusEntity&&e.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&e.push.apply(e,_.KY(this.delegate.primaryArtists));this.delegate.details&&e.push(this.delegate.details);this.delegate.userDetails&&e.push(this.delegate.userDetails);this.delegate.tracks&&e.push.apply(e,_.KY(this.delegate.tracks));this.delegate.share&&e.push(this.delegate.share);this.delegate.downloadMetadata&&e.push(this.delegate.downloadMetadata);this.delegate.refresh&&
e.push(this.delegate.refresh);return[].concat(_.KY(new Set(e)))};
hqM.prototype.getTypeName=function(){return"musicAlbumRelease"};
var X$I=function(){gM.apply(this,arguments)};
_.Y(X$I,gM);X$I.prototype.getAssociations=function(){var e=[];this.delegate.albumRelease&&e.push(this.delegate.albumRelease);this.delegate.tracks&&e.push.apply(e,_.KY(this.delegate.tracks));return[].concat(_.KY(new Set(e)))};
X$I.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var GGs=function(){gM.apply(this,arguments)};
_.Y(GGs,gM);GGs.prototype.getAssociations=function(){var e=[];this.delegate.albumRelease&&e.push(this.delegate.albumRelease);return[].concat(_.KY(new Set(e)))};
GGs.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var xr1=function(){gM.apply(this,arguments)};
_.Y(xr1,gM);xr1.prototype.getAssociations=function(){var e=[];this.delegate.details&&e.push(this.delegate.details);this.delegate.userDetails&&e.push(this.delegate.userDetails);return[].concat(_.KY(new Set(e)))};
xr1.prototype.getTypeName=function(){return"musicArtist"};
var Drw=function(){gM.apply(this,arguments)};
_.Y(Drw,gM);Drw.prototype.getAssociations=function(){var e=[];this.delegate.parentArtist&&e.push(this.delegate.parentArtist);return[].concat(_.KY(new Set(e)))};
Drw.prototype.getTypeName=function(){return"musicArtistDetail"};
var $rY=function(){gM.apply(this,arguments)};
_.Y($rY,gM);$rY.prototype.getAssociations=function(){var e=[];this.delegate.parentArtist&&e.push(this.delegate.parentArtist);return[].concat(_.KY(new Set(e)))};
$rY.prototype.getTypeName=function(){return"musicArtistUserDetail"};var YOs=function(){gM.apply(this,arguments)};
_.Y(YOs,gM);YOs.prototype.getAssociations=function(){return[]};
YOs.prototype.getTypeName=function(){return"musicLibraryEdit"};var f6M=function(){gM.apply(this,arguments)};
_.Y(f6M,gM);f6M.prototype.getAssociations=function(){return[]};
f6M.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var jDI=function(){gM.apply(this,arguments)};
_.Y(jDI,gM);
jDI.prototype.getAssociations=function(){var e=[];this.delegate.tracks&&e.push.apply(e,_.KY(this.delegate.tracks));this.delegate.refresh&&e.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&e.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&e.push(this.delegate.details);this.delegate.downloadMetadata&&e.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&e.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&e.push(this.delegate.userDetails);this.delegate.entryCollection&&
e.push(this.delegate.entryCollection);this.delegate.share&&e.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&e.push.apply(e,_.KY((new iaZ(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.KY(new Set(e)))};
jDI.prototype.getTypeName=function(){return"musicPlaylist"};
var iaZ=function(){eD.apply(this,arguments)};
_.Y(iaZ,eD);iaZ.prototype.getAssociations=function(){var e=[];this.delegate.creatorEntity&&e.push(this.delegate.creatorEntity);return[].concat(_.KY(new Set(e)))};var P7v=function(){gM.apply(this,arguments)};
_.Y(P7v,gM);P7v.prototype.getAssociations=function(){return[]};
P7v.prototype.getTypeName=function(){return"musicShare"};var mr4=function(){gM.apply(this,arguments)};
_.Y(mr4,gM);
mr4.prototype.getAssociations=function(){var e=[];this.delegate.musicLibraryStatusEntity&&e.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&e.push.apply(e,_.KY(this.delegate.artists));this.delegate.audioModeVersion&&e.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&e.push(this.delegate.videoModeVersion);this.delegate.userDetails&&e.push(this.delegate.userDetails);this.delegate.details&&e.push(this.delegate.details);this.delegate.albumRelease&&e.push(this.delegate.albumRelease);this.delegate.share&&
e.push(this.delegate.share);this.delegate.libraryEdit&&e.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&e.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&e.push(this.delegate.playbackPosition);this.delegate.lyrics&&e.push(this.delegate.lyrics);return[].concat(_.KY(new Set(e)))};
mr4.prototype.getTypeName=function(){return"musicTrack"};
var p$u=function(){gM.apply(this,arguments)};
_.Y(p$u,gM);p$u.prototype.getAssociations=function(){var e=[];this.delegate.parentTrack&&e.push(this.delegate.parentTrack);return[].concat(_.KY(new Set(e)))};
p$u.prototype.getTypeName=function(){return"musicTrackDetail"};
var T4I=function(){gM.apply(this,arguments)};
_.Y(T4I,gM);T4I.prototype.getAssociations=function(){var e=[];this.delegate.parentTrack&&e.push(this.delegate.parentTrack);return[].concat(_.KY(new Set(e)))};
T4I.prototype.getTypeName=function(){return"musicTrackUserDetail"};var FX=new _.lN("musicResponsiveListItemRenderer");var gOA=new _.lN("addToPlaylistEndpoint");var l6n=new _.lN("captionPickerEndpoint");var AFw=new _.lN("suggestStats");var sDk=new _.lN("backstageImageUploadEndpoint");var FXI=new _.lN("createBackstagePostDialogEndpoint");_.uau=new _.lN("createCommentReplyDialogEndpoint");_.drY=new _.lN("updateCommentDialogEndpoint");_.zqv=new _.lN("updateCommentReplyDialogEndpoint");var Has=new _.lN("menuEndpoint");var gMW=new _.lN("modalEndpoint");var QDB=new _.lN("playlistEditorEndpoint");var Urv=new _.lN("copyTextEndpoint");var oCI,ZaZ;oCI=new _.lN("shareEndpoint");ZaZ=new _.lN("shareEntityEndpoint");_.Vxq=new _.lN("shareEntityServiceEndpoint");_.BtU=new _.lN("userFeedbackEndpoint");_.Pm=new _.lN("watchEndpoint");var geg=new _.lN("watchPlaylistEndpoint");var tx4=new _.lN("addUpcomingEventReminderEndpoint");_.WU=new _.lN("getCommentsFromInboxCommand");var B4u=new _.lN("notificationOptOutEndpoint");var N4M=new _.lN("recordNotificationInteractionsEndpoint");var SOI=new _.lN("removeUpcomingEventReminderEndpoint");_.px=new _.lN("getDownloadActionCommand");_.yFw=new _.lN("offlineOrchestrationActionCommand");var KXw=function(){gM.apply(this,arguments)};
_.Y(KXw,gM);KXw.prototype.getAssociations=function(){return[]};
KXw.prototype.getTypeName=function(){return"captionTrack"};var Oa1=function(){gM.apply(this,arguments)};
_.Y(Oa1,gM);Oa1.prototype.getAssociations=function(){return[]};
Oa1.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var MxB=function(){gM.apply(this,arguments)};
_.Y(MxB,gM);MxB.prototype.getAssociations=function(){return[]};
MxB.prototype.getTypeName=function(){return"offlineVideoPolicy"};var C7Y=function(){gM.apply(this,arguments)};
_.Y(C7Y,gM);C7Y.prototype.getAssociations=function(){return[]};
C7Y.prototype.getTypeName=function(){return"offlineVideoStreams"};var eTM=function(){gM.apply(this,arguments)};
_.Y(eTM,gM);eTM.prototype.getAssociations=function(){var e=[];this.delegate.transfer&&e.push(this.delegate.transfer);this.delegate.adsPlaybackData&&e.push.apply(e,_.KY(this.delegate.adsPlaybackData));this.delegate.drmLicense&&e.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&e.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&e.push(this.delegate.videoDownloadContextEntity);return[].concat(_.KY(new Set(e)))};
eTM.prototype.getTypeName=function(){return"playbackData"};var g3u=function(){gM.apply(this,arguments)};
_.Y(g3u,gM);g3u.prototype.getAssociations=function(){return[]};
g3u.prototype.getTypeName=function(){return"refresh"};var cgM=function(){gM.apply(this,arguments)};
_.Y(cgM,gM);cgM.prototype.getAssociations=function(){var e=[];this.delegate.offlineVideoStreams&&e.push.apply(e,_.KY(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&e.push.apply(e,_.KY(this.delegate.captionTrack));return[].concat(_.KY(new Set(e)))};
cgM.prototype.getTypeName=function(){return"transfer"};var k9k=function(){gM.apply(this,arguments)};
_.Y(k9k,gM);k9k.prototype.getAssociations=function(){return[]};
k9k.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var Irq=new _.lN("showMoreDrawerCommand");var Jgv=new _.lN("updateEngagementPanelContentCommand");var v3k=new _.lN("getPdgBuyFlowCommand");var wFw=new _.lN("liveChatPurchaseMessageEndpoint");var qJI=new _.lN("openSuperStickerBuyFlowCommand");var LQI=new _.lN("updatePdgFeatureEnablementCommand");var rgu=function(){gM.apply(this,arguments)};
_.Y(rgu,gM);rgu.prototype.getAssociations=function(){return[]};
rgu.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var ars=function(){gM.apply(this,arguments)};
_.Y(ars,gM);ars.prototype.getAssociations=function(){return[]};
ars.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.n3I=new _.lN("pdgCommentChipRenderer");_.RTM=new _.lN("permissionRoleBottomBarRenderer");_.E31=new _.lN("updatePermissionRoleCommand");var WQw=new _.lN("prefetchWatchCommand");var b8q=new _.lN("updatePlayerErrorMessageCommand");var BW6=new _.lN("toggleCaptionsVisibilityCommand");var hTB=new _.lN("playerDisclosureViewModel");_.XF1=new _.lN("quickActionsViewModel");var G9v=new _.lN("playerResponse");var xwI=new _.lN("playlistRenderer");_.Dwu=new _.lN("playlistVideoListRenderer");_.bp=new _.lN("playlistEditEndpoint");var $w4=new _.lN("createImagePollCommand");var YJq=new _.lN("createQuizCommand");var frn=new _.lN("quizRenderer");var j5q=new _.lN("uploadedVideoRenderer");var i8u=new _.lN("decorateMessageEndpoint");var PZM=new _.lN("lpOfferCardOptionViewModel");var mwZ=new _.lN("sfvAudioItemPlaybackCommand");var pFk=function(){gM.apply(this,arguments)};
_.Y(pFk,gM);pFk.prototype.getAssociations=function(){return[]};
pFk.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.hR=new _.lN("reelNonVideoContentEndpoint");_.eh=new _.lN("reelWatchEndpoint");var TmZ=new _.lN("reelActionBarViewModel");_.XN=new _.lN("reelItemRenderer");var lrI=new _.lN("reelMetapanelViewModel");_.Agn=new _.lN("reelNonVideoContentRenderer");var s5u=new _.lN("shortsLockupViewModel");var FQq=new _.lN("sponsorButtonViewModel");var uxn=new _.lN("reelItemWatchResponse");var dw1=new _.lN("textBadgeRenderer");_.G_=new _.lN("buttonRenderer");_.x8=new _.lN("toggleButtonRenderer");var vxW=new _.lN("switchButtonViewModel");_.zT4=new _.lN("confirmDialogRenderer");var H8Z;H8Z=new _.lN("menuRenderer");_.Q5Z=new _.lN("menuFlexibleItemRenderer");var Uwq=new _.lN("pollRenderer");_.o3q=new _.lN("backgroundPromoRenderer");var VqY;_.Z8w=new _.lN("chipCloudRenderer");VqY=new _.lN("chipCloudChipRenderer");var tq1=new _.lN("dropdownRenderer");var Bm4=new _.lN("gridVideoRenderer");_.Nm1=new _.lN("itemSectionRenderer");_.SJw=new _.lN("messageRenderer");var ygv=new _.lN("sortFilterHeaderRenderer");_.KQI=new _.lN("videoRenderer");var O8Y=new _.lN("resolveUrlCommandMetadata");var MqY=function(){gM.apply(this,arguments)};
_.Y(MqY,gM);MqY.prototype.getAssociations=function(){return[]};
MqY.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.CZM=new _.lN("getAnswerCommand");_.Oo=new _.lN("searchEndpoint");var ebZ=new _.lN("genAiRichTextViewModel");var CGv=new _.lN("overviewAnswerViewModel");var gsB=new _.lN("videoOverviewViewModel");var czs=new _.lN("addToPlaylistServiceEndpoint");var kdu=new _.lN("clearSearchHistoryEndpoint");var IGv=new _.lN("clearWatchHistoryEndpoint");var Jzn=new _.lN("webSerializedServiceEndpointExtension");_.vs4=new _.lN("createCommentEndpoint");var wvM=new _.lN("createCommentReplyEndpoint");var qcu=new _.lN("performCommentActionEndpoint");var L5B=new _.lN("updateCommentEndpoint");var rzv=new _.lN("updateCommentReplyEndpoint");_.DU=new _.lN("createPlaylistServiceEndpoint");var aGw=new _.lN("deletePlaylistEndpoint");var nsq=new _.lN("deleteVideoEndpoint");var eCK=new _.lN("getReportFormEndpoint");var Rbs=new _.lN("modifyChannelNotificationPreferenceEndpoint");var rJv;_.Kx=new _.lN("offlinePlaylistEndpoint");rJv={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 a8p;_.yF=new _.lN("offlineVideoEndpoint");a8p={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 Esw=new _.lN("pingingEndpoint");_.W5w=new _.lN("selectActiveIdentityEndpoint");var b3Y=new _.lN("setSettingEndpoint");var QVg=new _.lN("undoFeedbackEndpoint");var hb4=new _.lN("unsubscribeEndpoint");_.XvY=new _.lN("updatedMetadataEndpoint");var Gdw=function(){gM.apply(this,arguments)};
_.Y(Gdw,gM);Gdw.prototype.getAssociations=function(){return[]};
Gdw.prototype.getTypeName=function(){return"settingEntity"};_.xTZ=new _.lN("updateLocalAppSettingCommand");var DTI=new _.lN("saveImageToDeviceEndpoint");var $Tq=new _.lN("shareImageCommand");var Ycw=new _.lN("sharingProviderDataCommand");var fGB=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(fGB,_.WJ);var jGw=[0,_.Fv,-1];fGB.prototype.JSC$12844_serializeBinary=LzU(jGw);var i3w=_.TT(jGw);var PUk=new _.lN("userMentionSuggestionRenderer");var mTn=new _.lN("liveChatTunnelCommand");var pvq=new _.lN("showSponsorshipsGiftOfferDialogCommand");var TOv=new _.lN("sponsorshipsScrollableShelfViewModel");var lGv=new _.lN("updateUpcomingEventReminderButtonStateCommand");var AzB=new _.lN("upcomingEventReminderButtonStateRenderer");var sGk=new _.lN("subscribeEndpoint");var F5k=new _.lN("registerTasksCommand");var ukM=new _.lN("hideSheetCommand");var dTs=new _.lN("hideSnackbarCommand");var zbZ=new _.lN("showDialogCommand");_.ku=new _.lN("showSheetCommand");var H3n=new _.lN("showSnackbarCommand");var QGw=function(){gM.apply(this,arguments)};
_.Y(QGw,gM);QGw.prototype.getAssociations=function(){return[]};
QGw.prototype.getTypeName=function(){return"chipEntity"};var UTv=function(){gM.apply(this,arguments)};
_.Y(UTv,gM);UTv.prototype.getAssociations=function(){return[]};
UTv.prototype.getTypeName=function(){return"dismissState"};_.bD=new _.lN("avatarViewModel");var osk=new _.lN("badgeViewModel");_.$8=new _.lN("buttonViewModel");_.Y8=new _.lN("chipViewModel");var Z3k=new _.lN("contentPreviewImageViewModel");var V_I=new _.lN("decoratedAvatarViewModel");_.jat=new _.lN("engagementBarViewModel");_.t_M=new _.lN("imageBannerViewModel");var BOZ=new _.lN("lockupContentMetadataRowExtension");_.NOI=new _.lN("lockupMetadataViewModel");var Sc1=new _.lN("lockupViewModel");var yzq=new _.lN("avatarStackViewModel");_.K5u=new _.lN("contentMetadataViewModel");var O3Y=function(){gM.apply(this,arguments)};
_.Y(O3Y,gM);O3Y.prototype.getAssociations=function(){return[]};
O3Y.prototype.getTypeName=function(){return"pageHeaderEntity"};_.M_v=new _.lN("pageHeaderViewModel");var CUI=new _.lN("snackbarViewModel");var e5n=new _.lN("thumbnailHoverOverlayToggleActionsViewModel");_.fP=new _.lN("toggleButtonViewModel");var gGZ=function(){gM.apply(this,arguments)};
_.Y(gGZ,gM);gGZ.prototype.getAssociations=function(){return[]};
gGZ.prototype.getTypeName=function(){return"votingEntity"};_.iyU=new _.lN("votingViewModel");var cTI=new _.lN("sectionHeaderViewModel");var kOq=new _.lN("notifyDropdownOptionSelectedCommand");var FlW=new _.lN("listViewModel");_.IB=new _.lN("listItemViewModel");var IRw=new _.lN("dialogHeaderViewModel");var JTs=function(){gM.apply(this,arguments)};
_.Y(JTs,gM);JTs.prototype.getAssociations=function(){return[]};
JTs.prototype.getTypeName=function(){return"dataFreshnessEntity"};var ogp=new _.lN("suspenseViewModel");var vGu=new _.lN("tooltipViewModel");var wIw=function(){gM.apply(this,arguments)};
_.Y(wIw,gM);wIw.prototype.getAssociations=function(){return[]};
wIw.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var qw1=function(){gM.apply(this,arguments)};
_.Y(qw1,gM);qw1.prototype.getAssociations=function(){return[]};
qw1.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var Lww=function(){gM.apply(this,arguments)};
_.Y(Lww,gM);Lww.prototype.getAssociations=function(){return[]};
Lww.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.rT4=new _.lN("transcriptSubmitCaptionCorrectionCommand");var aRB=function(){gM.apply(this,arguments)};
_.Y(aRB,gM);aRB.prototype.getAssociations=function(){return[]};
aRB.prototype.getTypeName=function(){return"buttonEntity"};var ZiW=new _.lN("unpluggedStringRunImage");var nGB=new _.lN("tabViewModel");var R54=new _.lN("tabbedViewModel");var EGn=function(){gM.apply(this,arguments)};
_.Y(EGn,gM);EGn.prototype.getAssociations=function(){return[]};
EGn.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.Www=new _.lN("updateDescriptionAction");var bjZ=new _.lN("updateToggleButtonTextAction");var h54=new _.lN("showFullscreenPlayerControlsCommand");var XIw=new _.lN("updateVideoMetadataCommand");_.GOq=new _.lN("autoplaySwitchButtonRenderer");var hA;_.xpv=new _.lN("multiMarkersPlayerBarRenderer");hA=new _.lN("chapterRenderer");var Dpq=new _.lN("heatMarkerRenderer");var MNU=new _.lN("heatmapRenderer");var $ps=new _.lN("smartSkipPlayerScrimOverlayRenderer");var Ywq=new _.lN("timedMarkerDecorationRenderer");var RMv=new _.lN("postWebToNativeMessageCommand");var bQ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(bQ,_.WJ);bQ.prototype.getMethodName=function(){return _.Rs(this,1)};var fRI=[0,_.Fv,-2];bQ.prototype.JSC$12866_serializeBinary=LzU(fRI);var jL4=_.ma(bQ,fRI);var ijn=new _.lN("whitelistEditEndpoint");var PAY=new _.lN("clearUrlParamCommand");var mp4=new _.lN("commerceActionCommand");_.pII=new _.lN("getPaymentInstrumentsParamsCommand");var TCZ=new _.lN("getPaymentsClientTokenCommand");var lRn=new _.lN("googlePaymentBillingCommand");var ATw=new _.lN("googlePaymentPurchaseManagerCommand");_.sLq=new _.lN("logGtmCommand");var Fwu=new _.lN("updateCardItemOnClickCommand");_.uhM=new _.lN("ypcPauseSubscriptionCommand");_.dp4=new _.lN("ypcResumeSubscriptionCommand");var z5I=function(){gM.apply(this,arguments)};
_.Y(z5I,gM);z5I.prototype.getAssociations=function(){return[]};
z5I.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var Hjk=function(){gM.apply(this,arguments)};
_.Y(Hjk,gM);Hjk.prototype.getAssociations=function(){return[]};
Hjk.prototype.getTypeName=function(){return"commerceCartListEntity"};var QLk=function(){gM.apply(this,arguments)};
_.Y(QLk,gM);QLk.prototype.getAssociations=function(){return[]};
QLk.prototype.getTypeName=function(){return"iconBadgeEntity"};var Upw=function(){gM.apply(this,arguments)};
_.Y(Upw,gM);Upw.prototype.getAssociations=function(){return[]};
Upw.prototype.getTypeName=function(){return"pdpStateEntity"};var oGv=function(){gM.apply(this,arguments)};
_.Y(oGv,gM);oGv.prototype.getAssociations=function(){return[]};
oGv.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var U3C=new _.lN("ypcOffersEndpoint");var ZjM=new _.lN("cardItemRenderer"),VI4=new _.lN("cardItemTextRenderer");var tI1=new _.lN("commerceCartItemQuantityPickerRenderer");var BCw=new _.lN("linkCardRenderer");var v7K=new _.lN("quantityIncrementerButtonViewModel");var NC1=new _.lN("quantityIncrementerViewModel");var SwM=new _.lN("themedImageViewModel");_.yTI=new _.lN("ypcCancelRecurrenceEndpoint");var Kwv=new _.lN("ypcCompleteTransactionEndpoint");_.Ojk=new _.lN("ypcGetCartEndpoint");_.pV=new _.lN("ypcGetOffersEndpoint");_.jD=new _.lN("ypcHandleTransactionEndpoint");var MIs=new _.lN("ypcLogWalletAnalyticDataEndpoint");_.CAq=new _.lN("ypcRedeemCodeEndpoint");var euI=new _.lN("ypcUpdateFopEndpoint");FH(s_(1),lk(4));sPI((new MessageChannel).port2);var kkv=function(){this.register=new Map},$dp=function(e,g,c){e=e+"_"+g;
ip.register.has(e)?c=ip.register.get(e):(c=c(),ip.register.set(e,c));return c},IsZ=function(e){e=_.w(e.register.values());
for(var g=e.next();!g.done;g=e.next())_.M1(g.value,"ABORTED")};
kkv.prototype.clear=function(){IsZ(this);this.register.clear()};
var ip=new kkv;var cRv=Date.now().toString();var JRt=IUC();var RF8={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 Jiw;Jiw=1;_.n_=function(e){this.veData=e};
_.Jb=function(e){return new _.n_({trackingParams:e})};
_.VF=function(e,g,c,k,I,J){var q=Jiw++;return new _.n_({veType:e,veCounter:q,elementIndex:c,dataElement:g,youtubeData:k,jspbYoutubeData:I,loggingDirectives:J})};
_.v=_.n_.prototype;
_.v.getAsJson=function(){var e={};this.veData.trackingParams!==void 0?e.trackingParams=this.veData.trackingParams:(e.veType=this.veData.veType,this.veData.veCounter!==void 0&&(e.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(e.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(e.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(e.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(e.isCounterfactual=!0);
return e};
_.v.getAsJspb=function(){var e=new aOw;this.veData.trackingParams!==void 0?e.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Xv(e,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Xv(e,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Xv(e,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.td(e,5,!0));if(this.veData.dataElement!==void 0){var g=this.veData.dataElement.getAsJspb();_.sx(e,7,g)}this.veData.youtubeData!==void 0&&_.sx(e,8,this.veData.jspbYoutubeData);
return e};
_.v.toString=function(){return JSON.stringify(this.getAsJson())};
_.v.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.v.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.BQ("yt_logging_screen.getRootVeType",rRq);_.BQ("yt_logging_screen.getCurrentCsn",_.EM);_.BQ("yt_logging_screen.getCttAuthInfo",Wm);_.BQ("yt_logging_screen.setCurrentScreen",_.bc);var vY4=function(){this.events=new Map},w1B=function(e){var g=[];
e=_.w(e.events.values());for(var c=e.next();!c.done;c=e.next())g.push(c.value);return g};
vY4.prototype.clear=function(){this.events.clear()};var LHZ=function(){this.logTransport=new qNw;this.loggedEventRegister=new vY4;this.unloggedEventRegister=new vY4;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12903_flushTimer=new _.rD(this.flushInterval);this.JSC$12903_flushTimer.listen("tick",this.flush,!1,this)};
LHZ.prototype.flush=function(){if(this.eventsCount){var e={loggedEvents:w1B(this.loggedEventRegister),unloggedEvents:w1B(this.unloggedEventRegister)};if(_.G("export_player_version_to_ytconfig")){var g;(g=_.uo("PLAYER_CLIENT_VERSION"))?(g=g.split("-")[0].replace(/\./g,""),g=isNaN(Number(g))?"0":g):g="";var c=_.uo("PLAYER_CLIENT_VERSION");if(c){c=c.split("-");var k="";c.length>1&&(k=c[c.length-1]);c=g8K(k.startsWith("canary_experiment")?"canary":k.startsWith("canary_control")?"control":"none")}else c=
"CLIENT_CANARY_STATE_UNKNOWN";e.dimensions={playerClientVersion:g,playerCanaryState:c}}this.logTransport.flush(e);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12903_flushTimer.enabled&&this.JSC$12903_flushTimer.stop()}};
var riq=function(e){PU==null&&(PU=new LHZ);var g=PU;var c=g.loggedEventRegister;e.dimensions=e.dimensions||{};e.dimensions.csn=_.EM()||"";var k=bPe(e.dimensions).join(";");if(e.records!=null)if(c.events.has(k)){var I;(I=c.events.get(k).records)==null||I.push.apply(I,_.KY(e.records))}else c.events.set(k,e);g.JSC$12903_flushTimer.enabled||g.JSC$12903_flushTimer.start();g.eventsCount++;g.eventsCount>=100&&g.flush()};var qNw=function(){};
qNw.prototype.flush=function(e,g){_.G("enable_client_sli_logging")&&_.Y2("sliEventBatch",e,{sendIsolatedPayload:!!g})};var PU;var nYn;nYn=function(e){var g=asw;e=e===void 0?{}:e;g=g.name;var c=Dde("SUCCESS");riq({dimensions:e,records:[{name:g,state:"SLI_STATE_END",status:c}]})};
_.YE6=function(e,g,c,k){this.name=e;this.sliId=g;this.timeoutMs=c;this.statusOnTimeout=k;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.YE6.prototype.getId=function(){return this.sliId};
_.OT=function(e,g){g=g===void 0?{}:g;e.ongoing||(e.ongoing=!0,e.dimensions=g,e.logSliId=Vct(),riq({dimensions:e.dimensions,records:[{name:e.name,state:"SLI_STATE_START",sliId:e.logSliId}]}),e.timeoutMs>0&&(e.timeoutHandle=setTimeout(function(){_.M1(e,e.statusOnTimeout)},e.timeoutMs)))};
_.M1=function(e,g){e.ongoing&&(e.timeoutMs>0&&clearTimeout(e.timeoutHandle),e.ongoing=!1,g={dimensions:e.dimensions,records:[{name:e.name,status:Dde(g),state:"SLI_STATE_END",sliId:e.logSliId}]},ip.register.delete(e.name+"_"+e.sliId),riq(g))};var asw=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var R$n=function(){gM.apply(this,arguments)};
_.Y(R$n,gM);R$n.prototype.getAssociations=function(){return[]};
R$n.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var EYw=new _.lN("highlightTextDecoratorColorMapExtension");var WHB=new _.lN("styleRunColorMapExtension");var TMA=_.Ti(["data-"]),s_p={};var uNv={};var mK=function(e){this.wrappedPromise_=e===void 0?null:e;this.state_=0;this.JSC$12934_value_=null};
mK.prototype.then=function(e,g,c){return this.wrappedPromise_?this.wrappedPromise_.then(e,g,c):this.state_===1&&e?(e=e.call(c,this.JSC$12934_value_))&&typeof e.then==="function"?e:_.pP(e):this.state_===2&&g?(e=g.call(c,this.JSC$12934_value_))&&typeof e.then==="function"?e:_.b$n(e):this};
mK.prototype.getValue=function(){return this.JSC$12934_value_};
mK.prototype.isRejected=function(){return this.state_==2};
mNZ(mK);_.b$n=function(e){var g=new mK;e=e===void 0?null:e;g.state_=2;g.JSC$12934_value_=e===void 0?null:e;return g};
_.pP=function(e){var g=new mK;e=e===void 0?null:e;g.state_=1;g.JSC$12934_value_=e===void 0?null:e;return g};var OPp="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var h$B=["load","abort","error"],T_=function(e,g,c){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12954_maxAspectRatio_=e;this.disableAnimation_=g===void 0?!1:g;this.disableExifRotation_=c===void 0?!1:c;this.JSC$12954_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12954_reject_=this.resolve_=null};
T_.prototype.transform=function(e){var g=this;this.mime_=e.type;uV(gyw(e),this.dataUrlRead_,this.readError_,this);uV(eN1(e.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(c,k){g.resolve_=c;g.JSC$12954_reject_=k})};
T_.prototype.dataUrlRead_=function(e){this.dataUrl_=e;this.angle_!=null&&X1q(this)};
T_.prototype.exifRead_=function(e){if(this.disableExifRotation_)this.angle_=0;else{a:if(e=new DataView(e),e.byteLength<2||e.getUint16(0)!==65496)e=-2;else{for(var g=2,c=e.byteLength;g<c;){var k=e.getUint16(g),I=e.getUint16(g+2);if(k===65505){g+=4;k=e.getUint32(g);I=e.getUint16(g+4);if(k!==1165519206||I!==0)break;g+=6;k=e.getUint16(g)===18761;g+=e.getUint32(g+4,k);I=e.getUint16(g,k);g+=2;for(var J=0;J<I;J++){if(e.getUint16(g,k)===274){g+=8;e=e.getUint16(g,k);break a}g+=12}}else if(k>>8!==255)break;
else g+=I+2}e=-1}switch(e){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&&X1q(this)};
T_.prototype.readError_=function(){this.JSC$12954_reject_()};
var X1q=function(e){Wt(e.JSC$12954_image_,h$B,e.completeTransform_,!1,e);e.JSC$12954_image_.src=_.Km(e.dataUrl_).toString();e.JSC$12954_image_.src!=yP.toString()&&e.JSC$12954_image_.src.substr(0,11)==="data:image/"||e.JSC$12954_reject_()};
T_.prototype.completeTransform_=function(){if(this.JSC$12954_image_.src!=yP.toString()){var e=_.Km(this.dataUrl_),g=this.JSC$12954_image_.naturalHeight?this.JSC$12954_image_.naturalWidth/this.JSC$12954_image_.naturalHeight:null;this.invalidAspectRatio=g>this.JSC$12954_maxAspectRatio_||g<1/this.JSC$12954_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var c=this.JSC$12954_image_.naturalWidth,k=this.JSC$12954_image_.naturalHeight,I=g=0,J=this.JSC$12954_image_.naturalHeight?this.JSC$12954_image_.naturalWidth/
this.JSC$12954_image_.naturalHeight:null;J>this.JSC$12954_maxAspectRatio_?(c=this.JSC$12954_maxAspectRatio_*k,g=(c-this.JSC$12954_image_.naturalWidth)/2,this.cropped=!0):J<1/this.JSC$12954_maxAspectRatio_?(k=this.JSC$12954_maxAspectRatio_*c,I=(k-this.JSC$12954_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)J=c,c=k,k=J,J=g,g=I,I=J;switch(this.angle_){case 90:I-=c;break;case 180:g-=c;I-=k;break;case 270:g-=
k}this.cropped||this.angle_%360!==0?(e=document.createElement("canvas"),e.width=c||1,e.height=k||1,this.JSC$12954_image_.naturalWidth&&this.JSC$12954_image_.naturalHeight&&(c=e.getContext("2d"),c.rotate(Math.PI/180*this.angle_),c.drawImage(this.JSC$12954_image_,g,I,this.JSC$12954_image_.naturalWidth,this.JSC$12954_image_.naturalHeight)),this.transformedData=_.Km(e.toDataURL(this.mime_))):this.transformedData=e}else this.transformedData=e;this.resolve_(this)}};var lp=function(e,g){_.Bt.call(this,e);this.value=g};
_.Y(lp,_.Bt);
var AR=function(e,g,c,k,I,J,q){q=q===void 0?!1:q;_.jv.call(this);var L=this;this.JSC$12959_url_=e;this.channelId_=g;this.maxFileSizeMb_=c;this.JSC$12959_maxAspectRatio_=k;this.dropZoneEl_=I;this.rejectInvalidAspectRatio_=q;this.selectButtonEl_=J;this.JSC$12959_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new ZP(this.dropZoneEl_);this.selectOverlay_=new VZ(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12959_image_=this.transfer_=null;this.handler_=new _.wD(this);_.yh(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(J,"click",function(){L.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.Y(AR,_.jv);AR.prototype.disposeInternal=function(){for(var e=this.selectButtonEl_.nextSibling;e&&e.parentNode&&e.tagName=="INPUT";)e.parentNode.removeChild(e),e=this.selectButtonEl_.nextSibling;this.cancel();_.jv.prototype.disposeInternal.call(this)};
AR.prototype.uploadPromise=function(){if(this.JSC$12959_image_==null)return null;this.uploadPromise_||Gkq(this);return this.uploadPromise_};
AR.prototype.cancel=function(){xFs(this);this.JSC$12959_image_=null};
var xFs=function(e){e.transfer_&&e.transfer_.cancel();e.transfer_=null;e.uploadPromise_=null;e.resolve_=null;e.JSC$12959_reject_=null},Gkq=function(e){xFs(e);
e.transfer_=_.Hwq(e.JSC$12959_url_,{"X-YouTube-ChannelId":e.channelId_},e.JSC$12959_image_);e.handler_.listenOnce(e.transfer_,"l",e.JSC$12961_onUploadComplete_);e.handler_.listenOnce(e.transfer_,"n",e.onUploadError_);e.transfer_.run();e.uploadPromise_=new Promise(function(g,c){e.resolve_=g;e.JSC$12959_reject_=c})};
_.v=AR.prototype;_.v.onChange_=function(e){e.files.length&&(this.JSC$12959_image_=e.files[0],this.JSC$12959_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12959_image_=null,this.dispatchEvent(new lp("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Gkq(this),(new T_(this.JSC$12959_maxAspectRatio_)).transform(this.JSC$12959_image_).then((0,_.Ju)(this.onPreview_,this),(0,_.Ju)(this.onPreviewError_,this))))};
_.v.onPreview_=function(e){if(e.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12959_image_=null),this.dispatchEvent(new lp("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;e.cropped&&this.dispatchEvent(new lp("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new lp("yt.comments.ImageUploadOverlay.CHANGE_EVENT",e.transformedData))};
_.v.onPreviewError_=function(){this.JSC$12959_image_=null;this.dispatchEvent(new lp("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.v.onHover_=function(e){e.stopPropagation();e.preventDefault();if(e.type==="dragover")e=!0;else if(e.type==="dragleave")e=!1;else return;this.dispatchEvent(new lp("yt.comments.ImageUploadOverlay.HOVER_EVENT",e))};
_.v.JSC$12961_onUploadComplete_=function(){var e=(0,_.Cok)(this.transfer_.getResponseText());this.resolve_(e.encryptedBlobId)};
_.v.onUploadError_=function(){this.JSC$12959_reject_();xFs(this)};var DFs=function(e){e=e||{};var g={},c={};this.url=e.url||"";this.args=e.args||_.n0.clone(g);this.assets=e.assets||{};this.attrs=e.attrs||_.n0.clone(c);this.fallback=e.fallback||null;this.fallbackMessage=e.fallbackMessage||null;this.html5=!!e.html5;this.disable=e.disable||{};this.loaded=!!e.loaded;this.messages=e.messages||{}};
DFs.prototype.clone=function(){var e=new DFs,g;for(g in this)if(this.hasOwnProperty(g)){var c=this[g];_.Ix(c)=="object"?e[g]=_.n0.clone(c):e[g]=c}return e};var IyC=function(e,g,c){c=c===void 0?{}:c;this.name=e;this.id=zj.nextSpanId++;this.sessionId=zj.sessionId;this.attributes=g;this.status="SPAN_STATUS_UNSET";var k;this.startTime=(k=c.startTime)!=null?k:(0,_.yr)();this.isActiveSpan=c.active;if(e=zj.stack[zj.stack.length-1])this.parentId=e.id,e.children||(e.children=[]),e.children.push(this);e=_.w(zj.processors);for(g=e.next();!g.done;g=e.next()){g=g.value;try{var I=k=void 0;(I=(k=g).onSpanStart)==null||I.call(k,this)}catch(J){_.mN(J)}}c.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",c.endTime))};
IyC.prototype.end=function(e,g){e=e===void 0?"SPAN_STATUS_OK":e;this.endTime=g=g===void 0?(0,_.yr)():g;this.duration=this.endTime-this.startTime;this.status=e;this.isActiveSpan!==!1&&(zj.stack[zj.stack.length-1]===this?zj.stack.pop():_.mN(Error("Cf`"+String(this.name))));e=_.w(zj.processors);for(g=e.next();!g.done;g=e.next()){g=g.value;try{var c=void 0,k=void 0;(k=(c=g).onSpanEnd)==null||k.call(c,this)}catch(I){_.mN(I)}}};
IyC.prototype.addAttributes=function(e){Object.assign(this.attributes,e)};
var J$K={end:function(){},
addAttributes:function(){}},zj={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},kxg={rootSpan:function(){return zj.stack[0]}};var UM={};var iFK=function(e){this.observers=[];this.value=e};
_.v=iFK.prototype;_.v.subscribe=function(e){var g=this;if(e.idx!=null)throw Error("Ef");e.idx=this.observers.length;this.observers.push(e);try{e(this.value)}catch(c){}return function(){var c=g.observers[g.observers.length-1];g.observers[e.idx]=c;c.idx=e.idx;g.observers.pop()}};
_.v.update=function(e){this.value=e(this.value);this.notify()};
_.v.mutate=function(e){e(this.value);this.notify()};
_.v.set=function(e){this.value=e;this.notify()};
_.v.notify=function(){for(var e=_.w(this.observers),g=e.next();!g.done;g=e.next()){g=g.value;try{g(this.value)}catch(c){}}};var $FI,YNw,fsv,sT,i$B,PXv,mFZ,p1q,TR1,ls1,AiZ,sfI,FHv,ur4,dF4,z$B,H$M,Qfw,UFM,oYY,Z$k,Vd1,td4,BRq,NRw,SNs,yi1,KHB,O$q,D7U,Md4,CXM,eXw,geM,cp1,k2v,IIq,Jpu,veq,wus,x7C,qPq,Lds,rp1,aIw,neB,RXZ,Eek,Wdk,b7q,hXv,Xu4,G2w,xuq,DuM,$uM,sE,YPY,fI1,jjs,i7n,PPw,mun,pu4,TzZ,lIq,Ap4,sjB,Fdw,uow,dus,zXM,H74,Qjw,UuM,oe1,X0C,Z7u,VbM,tbw,Bzk,NzZ,SPY,ypq,KdI,O7w,Mbu,CPv,eVu,gK1,cXn,kLn,IKI,JXB,vKq,wZn,qjM,LMv,rXn,aKu,nKq,RVB;$FI=["account/accounts_list"];YNw=["acknowledge_channel_tou_strike"];fsv=["notification/add_upcoming_event_reminder"];
_.jfv=["att/get"];sT=["browse","music/browse","streaming_browse","unplugged/browse"];i$B=["channel/claim_legacy_youtube_channel"];PXv=["history/clear_search_history"];mFZ=["history/clear_watch_history"];p1q=["comment/perform_comment_action"];TR1=["comment/get_comment_replies"];ls1=["ypc/commerce_action"];AiZ=["backstage/create_post"];sfI=["live/create_broadcast"];FHv=["channel/create_channel"];ur4=["comment/create_comment_reply"];dF4=["comment/create_comment"];z$B=["live_chat/create_poll"];H$M=["playlist/create"];
Qfw=["decorate_message"];UFM=["live_chat/delete_message"];oYY=["playlist/delete"];Z$k=["video/delete"];Vd1=["like/dislike"];td4=["dismissal/dismiss"];BRq=["flag/flag"];NRw=["flow"];SNs=["account/account_menu"];yi1=["playlist/get_add_to_playlist"];KHB=["get_answer"];O$q=["channel/get_channel_creation_form"];D7U=["offline/get_download_action"];Md4=["kids/get_kids_blocklist_picker"];CXM=["live_chat/get_item_context_menu"];eXw=["live_chat/get_live_chat_message_buy_flow"];geM=["live_chat/get_live_chat_replay"];
cp1=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];k2v=["live_chat/get_live_chat_super_sticker_buy_flow"];IIq=["notification/get_notification_menu"];Jpu=["playlist/get_settings_editor"];veq=["backstage/get_post_video_preview"];wus=["account/get_profile_card"];x7C=["share/get_share_panel"];qPq=["share/get_sharing_provider_data"];Lds=["get_survey"];rp1=["notification/get_unseen_count"];aIw=["get_user_mention_suggestions"];neB=["get_watch"];RXZ=["guide"];
Eek=["feedback"];Wdk=["kids/update_blacklist"];b7q=["like/like"];hXv=["live_chat/live_chat_action"];Xu4=["live_chat/manage_user"];G2w=["video_manager/metadata_update"];xuq=["live_chat/moderate"];DuM=["notification/modify_channel_preference"];$uM=["notification/opt_out"];sE=["get_panel","get_posts_by_host_panel"];YPY=["player"];fI1=["browse/edit_playlist"];jjs=["notification/record_interactions"];i7n=["reel/reel_item_watch"];PPw=["reel/reel_watch_sequence"];mun=["like/removelike"];pu4=["notification/remove_upcoming_event_reminder"];
TzZ=["flag/get_form"];lIq=["miniapp/report_value"];Ap4=["navigation/resolve_url"];sjB=["channel/reveal_business_email"];Fdw=["in_video/search"];uow=["search","sfv/search","unplugged/search"];dus=["live_chat/send_message"];zXM=["live_chat/send_live_chat_vote"];H74=["account/set_setting"];Qjw=["submit_caption_correction"];UuM=["submit_form"];oe1=["subscription/subscribe"];X0C=["get_transcript"];Z7u=["resolve_location","unplugged/resolve_location"];VbM=["subscription/unsubscribe"];tbw=["backstage/update_post"];
Bzk=["channel_edit/update_channel_page_settings"];NzZ=["comment/update_comment_reply"];SPY=["comment/update_comment"];ypq=["comment/update_comments_settings"];KdI=["creator/update_creator_channel"];O7w=["pdg/update_enablement"];Mbu=["updated_metadata"];CPv=["channel_edit/validate_channel_handle"];eVu=["verify_age"];gK1=["next","unplugged/watch_next"];cXn=["whitelist/edit"];kLn=["ypc/cancel_recurrence"];IKI=["ypc/complete_transaction"];JXB=["ypc/get_cart"];vKq=["ypc/get_fix_instrument_params"];
wZn=["ypc/get_offers"];qjM=["ypc/get_payment_instruments_params"];LMv=["ypc/handle_transaction"];rXn=["ypc/log_payment_server_analytics"];aKu=["ypc/pause_subscription"];nKq=["ypc/redeem_code"];RVB=["ypc/resume_subscription"];var EKn=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,
221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,275198,271884,222932,279119,271886,213915,275199,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,
16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,283898,120137,186350,186351,256690,264349,264351,264350,264352,
211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,
105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,
23528,61699,134104,134103,198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,
135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,295069,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,294089,249827,194E3,141121,164502,31571,195002,206793,
141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,296316,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,
220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,296813,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,
25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,
262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var Mo=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.BQ("yt.msgs_",Mo);var FN=new _.AU("ACTION_ROUTER_TOKEN");_.up=function(){this.autonavState_=_.G("kevlar_is_pupi_enabled")?2:XlC()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.up.prototype.getState=function(){return this.autonavState_};
_.up.prototype.pause=function(e){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=e):this.autonavState_==1&&(this.disabledAutonavPauseReason_=e)};
_.up.prototype.setState=function(e,g,c){g&&(this.autoplayChangedByUser=!0);g=this.autonavState_===3||e===3;this.autonavState_!=e&&(this.autonavState_=e,e!=3&&_.GxC(e==2),e=_.G("kevlar_is_pupi_enabled")?c||g:!0,_.dF.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,e,c))};
_.up.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.H2(_.up);var dM=function(){this.iR=!1};var z_={},TBW=(z_.auto_search="LATENCY_ACTION_AUTO_SEARCH",z_.ad_to_ad="LATENCY_ACTION_AD_TO_AD",z_.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",z_.app_startup="LATENCY_ACTION_APP_STARTUP",z_.browse="LATENCY_ACTION_BROWSE",z_.cast_splash="LATENCY_ACTION_CAST_SPLASH",z_.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",z_.channels="LATENCY_ACTION_CHANNELS",z_.chips="LATENCY_ACTION_CHIPS",z_.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",z_.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
z_.editor="LATENCY_ACTION_EDITOR",z_.embed="LATENCY_ACTION_EMBED",z_.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",z_.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",z_.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",z_.explore="LATENCY_ACTION_EXPLORE",z_.favorites="LATENCY_ACTION_FAVORITES",z_.home="LATENCY_ACTION_HOME",z_.inboarding="LATENCY_ACTION_INBOARDING",z_.landing="LATENCY_ACTION_LANDING",z_.learning="LATENCY_ACTION_LEARNING",
z_.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",z_.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",z_.library="LATENCY_ACTION_LIBRARY",z_.live="LATENCY_ACTION_LIVE",z_.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",z_.management="LATENCY_ACTION_MANAGEMENT",z_.mini_app="LATENCY_ACTION_MINI_APP_PLAY",z_.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",z_.onboarding="LATENCY_ACTION_ONBOARDING",z_.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
z_.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",z_.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",z_.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",z_.prebuffer="LATENCY_ACTION_PREBUFFER",z_.prefetch="LATENCY_ACTION_PREFETCH",z_.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",z_.profile_switcher="LATENCY_ACTION_LOGIN",z_.projects="LATENCY_ACTION_PROJECTS",z_.reel_watch="LATENCY_ACTION_REEL_WATCH",z_.results="LATENCY_ACTION_RESULTS",z_.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
z_.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",z_.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",z_.review="LATENCY_ACTION_REVIEW",z_.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",z_.search_ui="LATENCY_ACTION_SEARCH_UI",z_.search_suggest="LATENCY_ACTION_SUGGEST",z_.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",z_.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",z_.seek="LATENCY_ACTION_PLAYER_SEEK",z_.settings="LATENCY_ACTION_SETTINGS",z_.store="LATENCY_ACTION_STORE",
z_.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",z_.tenx="LATENCY_ACTION_TENX",z_.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",z_.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",z_.watch="LATENCY_ACTION_WATCH",z_.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",z_["watch,watch7"]="LATENCY_ACTION_WATCH",z_["watch,watch7_html5"]="LATENCY_ACTION_WATCH",z_["watch,watch7ad"]="LATENCY_ACTION_WATCH",z_["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",z_.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
z_.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",z_.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",z_.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",z_.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",z_.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",z_.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",z_.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",z_),WMw=0;var y$6=function(e,g){kH.call(this,1,arguments);this.timer=g};
_.Y(y$6,kH);var SHU=new E_K("aft-recorded",y$6);var FAC=_.kp.ytLoggingGelSequenceIdObj_||{};_.BQ("ytLoggingGelSequenceIdObj_",FAC);var HU=_.kp.ytLoggingLatencyUsageStats_||{};_.BQ("ytLoggingLatencyUsageStats_",HU);var QW=function(){this.cleanupJob=0},z28=function(){QW.instance||(QW.instance=new QW);
return QW.instance};
_.v=QW.prototype;_.v.baseline=function(e,g,c){UE(this,"baseline_"+e)||_.Y2("latencyActionBaselined",{clientActionNonce:e},{timestamp:g,cttAuthInfo:c})};
_.v.tick=function(e,g,c,k){UE(this,"tick_"+e+"_"+g)||_.Y2("latencyActionTicked",{tickName:e,clientActionNonce:g},{timestamp:c,cttAuthInfo:k})};
_.v.info=function(e,g,c){var k=Object.keys(e).join("");UE(this,"info_"+k+"_"+g)||(e=Object.assign({},e),e.clientActionNonce=g,_.Y2("latencyActionInfo",e,{cttAuthInfo:c}))};
_.v.jspbInfo=function(e,g,c){for(var k="",I=0;I<Qv(e).length;I++)Qv(e)[I]!==void 0&&(k=I===0?k.concat(""+I):k.concat("_"+I));UE(this,"info_"+k+"_"+g)||(_.vH(e,2,g),g={cttAuthInfo:c},c=_.G("jspb_sparse_encoded_pivot")?new bf([{}]):new bf,_.Fp(c,7,Pmu,e),ueA("latencyActionInfo",c,g))};
_.v.span=function(e,g,c){var k=Object.keys(e).join("");UE(this,"span_"+k+"_"+g)||(e.clientActionNonce=g,_.Y2("latencyActionSpan",e,{cttAuthInfo:c}))};
var UE=function(e,g){HU[g]=HU[g]||{count:0};var c=HU[g];c.count++;c.time=(0,_.yr)();e.cleanupJob||(e.cleanupJob=_.h2(_.ft,function(){var k=(0,_.yr)(),I;for(I in HU)HU[I]&&k-HU[I].time>6E4&&delete HU[I];e&&(e.cleanupJob=0)},5E3));
return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new _.E2("CSI data exceeded logging limit with key",g.split("_")),g.indexOf("plev")>=0||_.mN(c)),!0):!1};var b6w,hVn;b6w=window;hVn=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.LA=b6w.performance||b6w.mozPerformance||b6w.msPerformance||b6w.webkitPerformance||new hVn;var NBg=!1,Qvq=!1,KAU=(0,_.Ju)(_.LA.clearResourceTimings||_.LA.webkitClearResourceTimings||_.LA.mozClearResourceTimings||_.LA.msClearResourceTimings||_.LA.oClearResourceTimings||_.aX,_.LA);var DSU=_.HV(function(e,g,c,k,I,J,q){if(!_.G("web_csi_action_sampling_enabled")||!_.It(J).actionDisabled){var L=q==null?void 0:q.spanStatus;q=q==null?void 0:q.rootSpanNonce;var n=_.J5(J);if(n.gelSpans)n.gelSpans[e]=!0;else{var R={};n.gelSpans=(R[e]=!0,R)}WMw++;e={spanName:e,spanLengthUsec:String(Math.round(g*1E3)),spanNonce:WMw,rootSpanNonce:q||WMw};L&&(e.spanStatus=L);k&&(e.spanInfo=k);I&&(e.parentSpanNonce=I);c&&(e.spanStartTimeUsec=String(Math.round(c*1E3)));_.vh(J||"").span[String(e.spanName)]=
e;c=_.J5(J);c.gelSpans||(c.gelSpans={});_.X7(c.gelSpans,e);c=io8(J);J=_.It(J).cttAuthInfo;z28().span(e,c,J);return e.spanNonce}}),XZs=window;
XZs.ytcsi&&(XZs.ytcsi.infoGel=_.nA,XZs.ytcsi.tick=_.Wh);var w$v=function(e){kH.call(this,1,arguments);this.csn=e};
_.Y(w$v,kH);var G5g=new E_K("screen-created",w$v),YOW=[],vCe=$r8,f6g=0,xn=new Map,qOU=new Map,LXV=new Map;var Xe6=Symbol("Gf"),lB=new WeakMap;var o_=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},kk=function(){o_.instance||(o_.instance=new o_);
return o_.instance};
_.v=o_.prototype;_.v.setClient=function(e){this.client=e};
_.v.JSC$13058_newScreen=function(){this.clear();this.csn=_.EM()};
_.v.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.v.reportShown=function(e,g,c,k){var I=this.JSC$13058_getTrackingParams(e),J=e.visualElement?e.visualElement:I;g=this.shownElements.has(J);var q=this.visibleState.get(J);this.shownElements.add(J);this.visibleState.set(J,!0);e.impressionLog&&!g&&e.impressionLog();if(I||e.visualElement)if(c=GL1(this,e,c))if(J=x$w(this,e),ZU(this,e)||J){I=e.visualElement?e.visualElement:_.Jb(I);var L=e.interactionLoggingClientData;J||g?ZU(this,e)&4?q||hqg(this.client,c,I,L):ZU(this,e)&1&&!g&&ECW(this.client,c,I,L,k):
ECW(this.client,c,I,L,k)}};
_.v.reportHidden=function(e,g,c,k){var I=this.JSC$13058_getTrackingParams(e),J=e.visualElement?e.visualElement:I;g=this.hiddenElements.has(J);var q=this.visibleState.get(J);this.hiddenElements.add(J);this.visibleState.set(J,!1);if(q===!1)return!0;if(!I&&!e.visualElement)return!1;c=GL1(this,e,c);if(!c||!ZU(this,e)&&x$w(this,e))return!1;I=e.visualElement?e.visualElement:_.Jb(I);ZU(this,e)&8?X$p(this.client,c,I,void 0,void 0,k):ZU(this,e)&2&&!g&&(e=this.client,k=Gu({cttAuthInfo:Wm(c)||void 0,automatedLogEventSource:k},
c),g={csn:c,ve:I.getAsJson(),eventType:2},c==="UNDEFINED_CSN"?$n("visualElementHidden",k,g):e?Dd("visualElementHidden",g,e,k):_.Y2("visualElementHidden",g,k));return!0};
_.v.JSC$13058_getTrackingParams=function(e){var g=this.getData(e),c,k;if(_.G("il_use_view_model_logging_context")&&(g==null?0:(c=g.context)==null?0:(k=c.loggingContext)==null?0:k.loggingDirectives))return g.context.loggingContext.loggingDirectives.trackingParams||"";var I,J;if(g==null?0:(I=g.rendererContext)==null?0:(J=I.loggingContext)==null?0:J.loggingDirectives)return g.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(g==null?0:g.loggingDirectives)return g.loggingDirectives.trackingParams||
"";var q;return((q=e.veContainer)==null?0:q.trackingParams)?e.veContainer.trackingParams:(g==null?void 0:g.trackingParams)||""};
_.v.JSC$13058_elementShouldLogGesture=function(e,g){e=this.getData(e);return!!((Math.floor(Number(e&&e.loggingDirectives&&e.loggingDirectives.gestures&&e.loggingDirectives.gestures.types||""))||0)&g)};
_.v.JSC$13058_getNearestParentVe=function(e){var g=this.JSC$13058_getTrackingParams(e);return e.visualElement?e.visualElement:g?_.Jb(g):e.parentElement?this.JSC$13058_getNearestParentVe(e.parentElement):null};
var GL1=function(e,g,c){var k=_.EM(c);return e.csn===null||k===e.csn||c?k:(e=new _.E2("VisibilityLogger called before newScreen",{caller:g.tagName,previous_csn:e.csn,current_csn:k}),_.mN(e),null)};
o_.prototype.getData=function(e){var g,c=e.data||((g=e.props)==null?void 0:g.data);if(!c||e.isWebComponentWrapper){var k;c=(k=lB.get(e))==null?void 0:k[Xe6]}return c};
var x$w=function(e,g){var c;return!((c=e.getData(g))==null||!c.loggingDirectives)},ZU=function(e,g){e=e.getData(g);
return Math.floor(Number(e&&e.loggingDirectives&&e.loggingDirectives.visibility&&e.loggingDirectives.visibility.types||""))||1};var VW;VW=function(){};
_.CO=function(){VW.instance||(VW.instance=new VW);return VW.instance};
VW.prototype.setClient=function(e){_.HV(kk().setClient).bind(kk())(e)};
_.D$Z=function(){_.CO();_.HV(kk().JSC$13058_newScreen).bind(kk())()};
VW.prototype.clear=function(){_.HV(kk().clear).bind(kk())()};
VW.prototype.reportShown=function(e,g,c,k){_.HV(kk().reportShown).bind(kk())(e,g,c,k)};
VW.prototype.reportHidden=function(e,g,c,k){return _.HV(kk().reportHidden).bind(kk())(e,g,c,k)};
var iiW=function(e,g){return _.HV(kk().JSC$13058_getTrackingParams).bind(kk())(g)},GVU=function(e,g){return _.HV(kk().JSC$13058_getNearestParentVe).bind(kk())(g)};var tR,$$I;tR=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};
_.gL=function(){tR.instance||(tR.instance=new tR);return tR.instance};
tR.prototype.setClient=function(e){this.client=e};
$$I=function(e,g,c){c=c===void 0?{}:c;_.HV(function(){var k,I,J,q=((k=_.x(g==null?void 0:g.commandMetadata,_.OM))==null?void 0:k.rootVe)||((I=_.x(g==null?void 0:g.commandMetadata,CpY))==null?void 0:(J=I.screenVisualElement)==null?void 0:J.uiType);if(q){k=_.x(g==null?void 0:g.commandMetadata,O8Y);if(k==null?0:k.parentTrackingParams){var L=_.Jb(k.parentTrackingParams);if(k.parentCsn)var n=k.parentCsn}else c.clickedVisualElement?L=c.clickedVisualElement:g.clickTrackingParams&&(L=_.Jb(g.clickTrackingParams));
a:{k=_.x(g,_.Pm);I=_.x(g,geg);if(k){if(I=xG6(k,"VIDEO")){k={token:I,videoId:k.videoId};break a}}else if(I&&(k=xG6(I,"PLAYLIST"))){k={token:k,playlistId:I.playlistId};break a}k=void 0}c=Object.assign({},{cttAuthInfo:k,parentCsn:n},c);if(_.G("expectation_logging")){var R;c.loggingExpectations=((R=_.x(g==null?void 0:g.commandMetadata,CpY))==null?void 0:R.loggingExpectations)||void 0}_.BU(e,q,L,c)}else _.mN(new _.E2("Error: Trying to create a new screen without a rootVeType",g))})()};
_.BU=function(e,g,c,k){k=k===void 0?{}:k;_.HV(function(){EKn.includes(g)||(_.mN(new _.E2("createClientScreen() called with a non-page VE",g)),g=83769);k.isHistoryNavigation||(e.forwardHistoryStack=[],e.backHistoryStack.push({rootVe:g,key:k.key||""}));e.graftQueue=[];e.stateChangedQueue=[];k.dataPromises?Yjw(e,g,c,k):fKq(e,g,c,k)})()};
_.jok=function(e,g,c){c=c===void 0?0:c;_.HV(function(){g.then(function(k){e.pendingScreenCreation.has(c)&&e.pendingScreenFn&&e.pendingScreenFn();var I=_.EM(c),J=_.RC(c);if(I&&J){var q={automatedLogEventSource:3},L;(k==null?0:(L=k.response)==null?0:L.trackingParams)&&DO(e.client,I,J,_.Jb(k.response.trackingParams),!1,q);var n;(k==null?0:(n=k.playerResponse)==null?0:n.trackingParams)&&DO(e.client,I,J,_.Jb(k.playerResponse.trackingParams),!1,q)}})})()};
tR.prototype.graftServerVe=function(e,g,c){var k=this;return _.HV(function(){var I=_.Jb(e);_.Nd(k,I,g,c);return I})()};
_.xj6=function(e,g,c,k){return _.G("enable_client_ve_spec")&&g.clientVeSpec?(g=_.VF(g.clientVeSpec.uiType,void 0,g.clientVeSpec.elementIndex,g.clientVeSpec.clientYoutubeData,void 0,g),_.Nd(e,g,c,k)?g:null):g.trackingParams?e.graftServerVe(g.trackingParams,c,k):null};
_.eU=function(e,g,c,k){return _.HV(function(){if(!g.veType)return _.Py(new _.E2("Error: Trying to graft a client VE without a veType.")),null;if(g.visibilityTypes){var I=g.visibilityTypes.reduce(function(J,q){return J|q});
I={visibility:{types:String(I)}}}I=_.VF(g.veType,g.visualElement,g.elementIndex,g.clientYouTubeData,void 0,I);return _.Nd(e,I,c,k)?I:null})()};
_.Nd=function(e,g,c,k){k=k===void 0?0:k;return _.HV(function(){if(e.pendingScreenCreation.has(k))return e.graftQueue.push([g,c]),!0;var I=_.EM(k),J=c||_.RC(k);if(I&&J){if(_.G("combine_ve_grafts")){var q=e.cachedVisualElements.get(J.toString());q?q.push(g):(e.cachedRootVisualElements.set(J.toString(),J),e.cachedVisualElements.set(J.toString(),[g]));e.attachTimeout||(e.attachTimeout=_.h2(_.ft,function(){i6M(e,I)},1200))}else DO(e.client,I,J,g);
return!0}return!1})()};
_.SD=function(e,g,c){c=c===void 0?0:c;var k=e.recurringGrafts.get(c)||new Map;if(_.G("smarter_ve_dedupping"))for(var I=Array.from(k.keys()),J=0;J<I.length;J++){var q=void 0,L=void 0;var n=g;var R=I[J];R.isClientVe()&&n.isClientVe()?(q=n.getAsJson(),L=R.getAsJson(),n=q.veType!==L.veType||q.elementIndex!==L.elementIndex||q.dataElement!==L.dataElement||n.getLoggingDirectives()!==R.getLoggingDirectives()?!1:!0):n=R.veData.trackingParams!==void 0&&n.veData.trackingParams!==void 0?((L=n.veData)==null?void 0:
L.trackingParams)===((q=R.veData)==null?void 0:q.trackingParams):!1;if(n)return}else if(k.has(g))return;k.set(g,void 0);e.recurringGrafts.set(c,k);_.EM(c)==="UNDEFINED_CSN"||e.pendingScreenCreation.has(c)||_.Nd(e,g,void 0,c)};
_.yW=function(e,g,c,k){k=_.EM(k===void 0?0:k);if(!k)return!1;xrC(e.client,k,g,c);return!0};
_.KP=function(e,g,c,k){if(!g)return!1;k=_.EM(k===void 0?0:k);if(!k)return!1;xrC(e.client,k,_.Jb(g),c);return!0};
_.$y=function(e,g){var c=g.getScreenLayer&&g.getScreenLayer();if(g.visualElement)return _.yW(e,g.visualElement,void 0,c);g=iiW(_.CO(),g);return _.KP(e,g,void 0,c)};
tR.prototype.clickCommand=function(e,g,c){return _.KP(this,e.clickTrackingParams,g,c===void 0?0:c)};
tR.prototype.stateChanged=function(e,g,c){this.visualElementStateChanged(_.Jb(e),g,c===void 0?0:c)};
tR.prototype.visualElementStateChanged=function(e,g,c){c=c===void 0?0:c;c===0&&this.pendingScreenCreation.has(c)?this.stateChangedQueue.push([e,g]):this.logStateChanged(e,g,c)};
tR.prototype.logStateChanged=function(e,g,c){c=c===void 0?0:c;var k=_.EM(c);e=e||_.RC(c);return k&&e?(Drz(this.client,k,e,g),!0):!1};
var Yjw=function(e,g,c,k){k=k===void 0?{}:k;e.pendingScreenCreation.add(k.layer||0);e.pendingScreenFn=function(){fKq(e,g,c,k);var q=_.RC(k.layer);if(q){for(var L=_.w(e.graftQueue),n=L.next();!n.done;n=L.next())n=n.value,_.Nd(e,n[0],n[1]||q,k.layer);q=_.w(e.stateChangedQueue);for(L=q.next();!L.done;L=q.next())L=L.value,e.logStateChanged(L[0],L[1])}};
c||_.EM(k.layer)||e.pendingScreenFn();if(k.dataPromises)for(var I=_.w(k.dataPromises),J=I.next();!J.done;J=I.next())_.jok(e,J.value,k.layer);else _.jW(Error("Hf"))},fKq=function(e,g,c,k){k=k===void 0?{}:k;
var I=void 0;k.layer||(k.layer=0);I=k.parentLayer!==void 0?k.parentLayer:k.layer;var J=_.EM(I);I=_.RC(I);var q=c||I,L;q&&(k.parentCsn!==void 0?L={clientScreenNonce:k.parentCsn,visualElement:q}:J&&J!=="UNDEFINED_CSN"&&(L={clientScreenNonce:J,visualElement:q}));var n,R=_.uo("EVENT_ID");J==="UNDEFINED_CSN"&&R&&(n={servletData:{serializedServletEventId:R}});_.G("combine_ve_grafts")&&J&&i6M(e,J);_.G("no_client_ve_attach_unless_shown")&&q&&J&&Rqp(q,J);try{var W=_.rFC(e.client,g,L,k.csnToClone,k.cttAuthInfo,
n,k.implicitGestureType,void 0,k.loggingExpectations,k.automatedLogEventSource)}catch(X){_.pB(X,{rootVeType:g,rootVe:I,parentVisualElement:c,currentCsn:J,parentEl:L,csnToClone:k.csnToClone});_.jW(X);return}_.bc(W,g,k.layer,k.cttAuthInfo);J&&J!=="UNDEFINED_CSN"&&I&&!E8v(J)&&X$p(e.client,J,I,!0);e.backHistoryStack[e.backHistoryStack.length-1]&&!e.backHistoryStack[e.backHistoryStack.length-1].csn&&(e.backHistoryStack[e.backHistoryStack.length-1].csn=W||"");_.nA({clientScreenNonce:W});_.D$Z();var b=_.RC(k.layer);
J&&J!=="UNDEFINED_CSN"&&b&&_.G("music_web_mark_root_visible")&&_.j4(W,b);e.pendingScreenCreation.delete(k.layer||0);e.pendingScreenFn=void 0;var h;(h=e.recurringGrafts.get(k.layer))==null||h.forEach(function(X,D){X?_.Nd(e,D,X,k.layer):b&&_.Nd(e,D,b,k.layer)});
Plq(e)},Plq=function(e){for(var g=0;g<e.afterNewScreenOneOffJobs.length;g++){var c=e.afterNewScreenOneOffJobs[g];
try{c()}catch(k){_.jW(k)}}for(g=e.afterNewScreenOneOffJobs.length=0;g<e.afterNewScreenRecurringJobs.length;g++){c=e.afterNewScreenRecurringJobs[g];try{c()}catch(k){_.jW(k)}}},i6M=function(e,g){if(g===void 0)for(var c=n8p(),k=0;k<c.length;k++)c[k]!==void 0&&i6M(e,c[k]);
else e.cachedVisualElements.forEach(function(I,J){(J=e.cachedRootVisualElements.get(J))&&a6C(e.client,g,J,I)}),e.cachedVisualElements.clear(),e.cachedRootVisualElements.clear(),e.attachTimeout=void 0};var OE=function(e){e=e===void 0?{layer:0}:e;this.iR=!1;this.createScreenConfig=e;e={};this.t9m=(e.response=!1,e.playerResponse=!1,e)};
_.Y(OE,dM);OE.prototype.validate=function(e){return!(!e.data||!e.data.response&&!e.data.playerResponse)};
OE.prototype.handle=function(e){var g=_.gL(),c=this.createScreenConfig.layer;e.data.response&&e.data.response.trackingParams&&!this.t9m.response&&(g.graftServerVe(e.data.response.trackingParams,void 0,c),this.t9m.response=!0);e.data.playerResponse&&e.data.playerResponse.trackingParams&&!this.t9m.playerResponse&&(g.graftServerVe(e.data.playerResponse.trackingParams,void 0,c),this.t9m.playerResponse=!0)};var Md=function(){this.vg=_.i6();this.nq=[];this.ums=0};
Md.prototype.processChunk=function(e){if(e){for(var g=_.w(this.nq),c=g.next();!c.done;c=g.next())c=c.value,c.validate(e)&&(c.handle(e),c.iR=!0);_.Wh("np"+this.ums);this.ums++}};var UjC,m$B,lKZ;_.yJ=function(e,g,c,k,I,J,q,L){q=q===void 0?[]:q;L=L===void 0?[]:L;this.buildCommandPayload=e;this.navigate=g;this.handleServiceRequest=c;this.sendAction=k;this.JSC$13093_screenManager=I;this.commandResolverMap=J;this.autoLogResolverAllowlist=q;this.metaCommandClickLoggingDenylist=L;this.pendingCommands=new Set;this.isTracingEnabled=!1;m$B(this)};
UjC=function(e,g,c){var k=[_.bX1,pkM],I=iKK,J=PIA,q=_.gL(),L=pZv;c=c===void 0?[]:c;k=k===void 0?[]:k;_.yJ.instance=new _.yJ(e,g,I,J,q,L,c,k)};
m$B=function(e){if(!e.isTracingEnabled&&Hm("command")){var g=e.resolveCommand;e.resolveCommand=function(c,k){a:{for(I in c)if(Object.prototype.hasOwnProperty.call(c,I)){var I={commandType:I};break a}I={}}return _.Q1("command",I,g.bind(this,c,k))};
e.isTracingEnabled=!0}};
lKZ=function(e,g,c){if(!e.commandResolverMap)return!1;var k=p$K(g,e.commandResolverMap);return k?((e.autoLogResolverAllowlist.some(function(I){return!!_.x(g,I)})||(c==null?0:c.forceClickLogging))&&Tvs(e,g,c),k instanceof Promise?k.then(function(I){I.resolve(g,c)}):k.resolve(g,c),!0):!1};
_.yJ.prototype.resolveCommand=function(e,g){var c=this,k=AXs(e);if((g==null||!g.skipCommandResolverMap)&&lKZ(this,e,g))return!0;if(k)return soq(this,e,g);if(!this.buildCommandPayload)return iaV(e,"Unhandled command by buildCommandPayload"),!1;var I=this.buildCommandPayload(e,g);if(g==null?0:g.commandController)I.commandController=g.commandController;if(I.type===0){if(!this.navigate)return P7C(e,"navigate"),!1;if(!FMv(I.command))return iaV(e,"Page requests need to specify a url"),!1;_.G("logging_avoid_blocking_during_navigation")&&
_.guA().transition("application_navigating");e=this.navigate(I)||[];uq1(e).then(function(){c.pendingCommands.delete(I.command)});
return!0}if(I.type===1){if(!this.handleServiceRequest)return P7C(e,"handleServiceRequest"),!1;(g==null?0:g.forceClickLogging)&&Tvs(this,I.command,g);e=this.handleServiceRequest(I);uq1(e).then(function(){c.pendingCommands.delete(I.command)});
return!0}if(I.type===2){if(!this.sendAction)return P7C(e,"sendAction"),!1;Tvs(this,I.command,g);this.sendAction(I);return!0}return!1};
var Tvs=function(e,g,c){if((c==null||!c.disableClickTracking)&&e.JSC$13093_screenManager)if(g.clickTrackingParams&&_.G("log_click_with_layer_from_element_in_command_handler")){var k;c=c==null?void 0:(k=c.form)==null?void 0:k.element;e.JSC$13093_screenManager.clickCommand(g,null,c&&c.getScreenLayer&&c.getScreenLayer())}else g.clickTrackingParams?e.JSC$13093_screenManager.clickCommand(g):!_.G("disable_clicked_visual_element_in_command_handler")&&(c==null?0:c.clickedVisualElement)&&_.yW(e.JSC$13093_screenManager,
c.clickedVisualElement)},AXs=function(e){var g=!!_.x(e,_.SV),c;
e=((c=_.x(e,_.K_))==null?void 0:c.signal)==="CLIENT_SIGNAL";return g||e},soq=function(e,g,c){var k=_.x(g,_.SV);
if(k)var I=(k==null?void 0:k.commands)||[];else{var J;if(((J=_.x(g,_.K_))==null?void 0:J.signal)==="CLIENT_SIGNAL"){var q;I=((q=_.x(g,_.K_))==null?void 0:q.actions)||[]}}if(I){(k=uzs(e,I))&&Tvs(e,g,c);g=_.w(I);for(I=g.next();!I.done;I=g.next()){I=I.value;try{var L=Object.assign({},c);k&&(L.disableClickTracking=!0);e.resolveCommand(I,L)}catch(n){n instanceof Error&&_.jW(n)}}return!0}iaV(g,"Could not handle the meta command");return!1},uzs=function(e,g){return g.every(function(c){return e.metaCommandClickLoggingDenylist.some(function(k){return!!_.x(c,
k)})})},FMv=function(e){var g;
return!((g=_.x(e==null?void 0:e.commandMetadata,_.OM))==null||!g.url)};var CP=function(){dM.apply(this,arguments)};
_.Y(CP,dM);CP.prototype.validate=function(e){var g,c;return!this.iR&&!!((g=e.data.response)==null?0:(c=g.onResponseReceivedEndpoints)==null?0:c.length)};
CP.prototype.handle=function(e){var g=_.yJ.instance;e=_.w(e.data.response.onResponseReceivedEndpoints);for(var c=e.next();!c.done;c=e.next())g.resolveCommand(c.value)};var d$B,zVq,gB;
d$B=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.No();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.eM=function(){zVq||(zVq=new d$B);return zVq};
gB=function(){var e=_.eM();e.miniplayerButtonActivation=!1;e.userActivation=!1;e.playlistWatchPageActivation=!1;e.productDetailsPageActivation=!1;e.miniAppPageActivation=!1;e.playablesDestPageActivation=!1;e.lockupActivation=!1;e.showMiniplayerCommandActivation=!1;e.playlistSuggestionsShelfActivation=!1;e.mediaSessionPipActivation=!1;e.watchPipActivation=!1;e.watchWhileActivation=!1;e.shortsPipActivation=!1;e.companionCanvasActivation=!1};
_.H61=function(){var e=_.eM(),g=e.mediaSessionPipActivation,c=e.watchPipActivation,k=e.watchWhileActivation,I=e.playlistWatchPageActivation,J=e.lockupActivation,q=e.showMiniplayerCommandActivation,L=e.navigatingAwayFromWatchDeletedVideo,n=e.shortsPipActivation,R=e.playlistSuggestionsShelfActivation,W=e.productDetailsPageActivation,b=e.miniAppPageActivation,h=e.playablesDestPageActivation,X=e.companionCanvasActivation;return!e.miniplayerButtonActivation&&!I&&!R&&!W&&!b&&!h&&!J&&!q&&!g&&!c&&!k&&!n&&
!X||L};var Rnq;_.cl=_.sV("FEwhat_to_watch","/",3854);_.Eiz=_.sV("FEdownloads","/feed/downloads",42352);Rnq=_.sV("FEmusic_offline","browse/FEmusic_offline",42352);var pU=function(e,g){g=g===void 0?[]:g;var c=c===void 0?[]:c;g=tcq.apply(null,[BG8.apply(null,_.KY(g))].concat(_.KY(c)));this.store=KFV(e,void 0,g)};
pU.prototype.getState=function(){return this.store.getState()};
pU.prototype.dispatch=function(e){return this.store.dispatch(e)};
pU.prototype.subscribe=function(e){return this.store.subscribe(e)};
pU.prototype.replaceReducer=function(e){return this.store.replaceReducer(e)};
pU.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.kq=function(e,g,c){var k=g(e.getState());return e.subscribe(function(){var I=g(e.getState());if(I!==k){var J=k;k=I;c(I,J)}})};var xwp;_.cY=function(e,g,c){return _.Hh({type:"REPLACE_ENTITY",payload:{entityPayload:c,entityType:e,key:g}})};
xwp=function(e){return _.Hh({type:"REPLACE_ENTITIES",payload:e})};
_.ET=function(e,g,c,k){return _.Hh({type:"UPDATE_ENTITY",payload:{entityPayload:c,entityType:e,key:g,mergeOption:k}})};var ZaV=function(e){var g=this;e=e===void 0?[]:e;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;e.forEach(function(c){g.append(c)})};
_.v=ZaV.prototype;_.v.getLength=function(){return this.totalLength};
_.v.append=function(e){var g=this.arrays.length===0?!1:(g=this.arrays[this.arrays.length-1])&&g.buffer===e.buffer&&g.byteOffset+g.length===e.byteOffset;g?(g=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(g.buffer,g.byteOffset,g.length+e.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(e);this.totalLength+=e.length};
_.v.split=function(e){for(var g=new ZaV,c=new ZaV,k=_.w(this.arrays),I=k.next();!I.done;I=k.next())I=I.value,e>=I.length?(g.append(I),e-=I.length):e?(g.append(new Uint8Array(I.buffer,I.byteOffset,e)),c.append(new Uint8Array(I.buffer,I.byteOffset+e,I.length-e)),e=0):c.append(I);return{headView:g,tailView:c}};
_.v.isFocused=function(e){return e>=this.arrayPos&&e<this.arrayPos+this.arrays[this.arrayIdx].length};
_.v.focus=function(e){if(!this.isFocused(e))for(e<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=e&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var QoY=function(e,g){e.focus(g);return e.arrays[e.arrayIdx][g-e.arrayPos]};(function(){var e=function(k){return new Uint8Array(k)},g=function(k){for(var I=new Uint8Array(k.length),J=0;J<k.length;J++)I[J]=k[J];
return I},c=new Uint8Array([1]);
return c.length===1&&c[0]===1?e:g})();
var dr8=Array(1024),uaK=window.TextDecoder?new TextDecoder:void 0,HaW=window.TextEncoder?new TextEncoder:void 0;var oCp=function(e){this.arrayView=e;this.pos=0;this.pendingTagAndType=-1},Qx=function(e){var g=QoY(e.arrayView,e.pos);
++e.pos;if(g<128)return g;for(var c=g&127,k=1;g>=128;)g=QoY(e.arrayView,e.pos),++e.pos,k*=128,c+=(g&127)*k;return c},Vxv=function(e,g){var c=e.pendingTagAndType;
for(e.pendingTagAndType=-1;e.pos+1<=e.arrayView.totalLength;){c<0&&(c=Qx(e));var k=c>>3,I=c&7;if(k===g)return!0;if(k>g){e.pendingTagAndType=c;break}c=-1;switch(I){case 0:Qx(e);break;case 1:e.pos+=8;break;case 2:k=Qx(e);e.pos+=k;break;case 5:e.pos+=4}}return!1};var B4K=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=UrC(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},t5=function(e,g){g=e.pos+g;
if(!(e.buf.length>=g)){for(var c=e.buf.length*2;c<g;)c*=2;e.buf=UrC(c,e.wasm,e.buf.subarray(0,e.pos));e.view=new DataView(e.buf.buffer,e.buf.byteOffset,e.buf.byteLength)}},Vx=function(e,g){if(g>268435455){t5(e,4);
for(var c=g&1073741823,k=0;k<4;k++)e.view.setUint8(e.pos,c&127|128),c>>=7,e.pos+=1;g=Math.floor(g/268435456)}for(t5(e,4);g>127;)e.view.setUint8(e.pos,g&127|128),g>>=7,e.pos+=1;e.view.setUint8(e.pos,g);e.pos+=1};for(var N4g={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},tx6={},U$u=_.w(Object.entries(N4g)),oKq=U$u.next();!oKq.done;oKq=U$u.next()){var Z64=_.w(oKq.value),VFB=Z64.next().value,tFs=Z64.next().value,Bv1=VFB,Nvw=tFs;Nvw&&(tx6[Nvw]=Bv1)};var yFz=function(e,g){e=e===void 0?{}:e;switch(g.type){case "ENTITY_LOADED":return g.payload.reduce(function(k,I){var J,q=(J=I.options)==null?void 0:J.persistenceOption;if(q&&q!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&q!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return k;if(!I.entityKey)return _.jW(Error("Jf")),k;if(I.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!I.payload)return I=new _.E2("REPLACE entity mutation is missing a payload",{entityKey:I.entityKey}),_.jW(I),k;var L=(0,_.n0.getAnyKey)(I.payload);
return OaC(k,L,I.entityKey,I.payload[L])}if(I.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{I=I.entityKey;try{var n=_.ZO(I).entityType;L=OaC(k,n,I);break a}catch(b){if(b instanceof Error){I=new _.E2("Failed to deserialize entity key",{entityKey:I,originalMessage:b.message});_.jW(I);L=k;break a}throw b;}L=void 0}return L}if(I.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!I.payload)return I=new _.E2("UPDATE entity mutation is missing a payload",{entityKey:I.entityKey}),_.jW(I),k;L=(0,_.n0.getAnyKey)(I.payload);
var R,W;return Mxe(k,L,I.entityKey,I.payload[L],(R=I.fieldMask)==null?void 0:(W=R.mergeOptions)==null?void 0:W.repeatedFieldsMergeOption)}return k},e);
case "REPLACE_ENTITY":var c=g.payload;return OaC(e,c.entityType,c.key,c.entityPayload);case "REPLACE_ENTITIES":return Object.keys(g.payload).reduce(function(k,I){var J=g.payload[I];return Object.keys(J).reduce(function(q,L){return OaC(q,I,L,J[L])},k)},e);
case "UPDATE_ENTITY":return c=g.payload,Mxe(e,c.entityType,c.key,c.entityPayload,c.mergeOption);default:return e}};var C78;var Sju=!1,Iv,J$,vl,wB,qG,yXY=function(e){_.Iy.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Sju){var g,c=new Uint8Array(256),k=new Uint8Array(256);var I=1;for(g=0;g<256;g++)c[I]=g,k[g]=I,I^=I<<1^(I>>7&&283);Iv=new Uint8Array(256);J$=S4(256);vl=S4(256);wB=S4(256);qG=S4(256);for(var J=0;J<256;J++){I=J?k[255^c[J]]:0;I^=I<<1^I<<2^I<<3^I<<4;I=I&255^I>>>8^99;Iv[J]=I;g=I<<1^(I>>7&&283);var q=g^I;J$[J]=g<<24|I<<16|I<<8|q;vl[J]=q<<24|J$[J]>>>8;wB[J]=I<<24|vl[J]>>>
8;qG[J]=I<<24|wB[J]>>>8}Sju=!0}I=S4(44);for(c=0;c<4;c++)I[c]=e[4*c]<<24|e[4*c+1]<<16|e[4*c+2]<<8|e[4*c+3];for(k=1;c<44;c++)e=I[c-1],c%4||(e=(Iv[e>>16&255]^k)<<24|Iv[e>>8&255]<<16|Iv[e&255]<<8|Iv[e>>>24],k=k<<1^(k>>7&&283)),I[c]=I[c-4]^e;this.key=I};
_.Y(yXY,_.Iy);
yXY.prototype.encrypt=function(e){var g=e.length;e=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+g));for(var c=this.cipherBlock,k=0;k<g&&this.blockOffset<16;)e[k++]^=c[this.blockOffset++];for(var I=g-(g-k)%16;k<I;)KMv(this),e[k++]^=c[0],e[k++]^=c[1],e[k++]^=c[2],e[k++]^=c[3],e[k++]^=c[4],e[k++]^=c[5],e[k++]^=c[6],e[k++]^=c[7],e[k++]^=c[8],e[k++]^=c[9],e[k++]^=c[10],e[k++]^=c[11],e[k++]^=c[12],e[k++]^=c[13],e[k++]^=c[14],e[k++]^=c[15];if(k<g)for(KMv(this),this.blockOffset=0;k<g;)e[k++]^=
c[this.blockOffset++];return e};
var KMv=function(e){for(var g=e.key,c=e.counter[0]^g[0],k=e.counter[1]^g[1],I=e.counter[2]^g[2],J=e.counter[3]^g[3],q=3;q>=0&&!(e.counter[q]=-~e.counter[q]);q--);for(var L,n,R=4;R<40;)q=J$[c>>>24]^vl[k>>16&255]^wB[I>>8&255]^qG[J&255]^g[R++],L=J$[k>>>24]^vl[I>>16&255]^wB[J>>8&255]^qG[c&255]^g[R++],n=J$[I>>>24]^vl[J>>16&255]^wB[c>>8&255]^qG[k&255]^g[R++],J=J$[J>>>24]^vl[c>>16&255]^wB[k>>8&255]^qG[I&255]^g[R++],c=q,k=L,I=n;e=e.cipherBlock;q=g[40];e[0]=Iv[c>>>24]^q>>>24;e[1]=Iv[k>>16&255]^q>>16&255;e[2]=
Iv[I>>8&255]^q>>8&255;e[3]=Iv[J&255]^q&255;q=g[41];e[4]=Iv[k>>>24]^q>>>24;e[5]=Iv[I>>16&255]^q>>16&255;e[6]=Iv[J>>8&255]^q>>8&255;e[7]=Iv[c&255]^q&255;q=g[42];e[8]=Iv[I>>>24]^q>>>24;e[9]=Iv[J>>16&255]^q>>16&255;e[10]=Iv[c>>8&255]^q>>8&255;e[11]=Iv[k&255]^q&255;q=g[43];e[12]=Iv[J>>>24]^q>>>24;e[13]=Iv[c>>16&255]^q>>16&255;e[14]=Iv[k>>8&255]^q>>8&255;e[15]=Iv[I&255]^q&255};var O6s=!1;(function(){var e=function(k){return new Uint8Array(k)},g=function(k){for(var I=new Uint8Array(k.length),J=0;J<k.length;J++)I[J]=k[J];
return I},c=new Uint8Array([1]);
return c.length===1&&c[0]===1?e:g})();
var Lo;var eKY=function(e){a:{if(!O6s&&!Vr){if(Lo){var g=Lo;break a}Lo=(g=window.crypto)==null?void 0:g.subtle;var c,k,I;if(((c=Lo)==null?0:c.importKey)&&((k=Lo)==null?0:k.sign)&&((I=Lo)==null?0:I.encrypt)){g=Lo;break a}Lo=void 0}g=void 0}g&&(this.nativeEncryptor=new MFs(e,g));this.encryptorPolyfill=new Clw(e)};
eKY.prototype.encrypt=function(e,g){var c=this,k;return _.r(function(I){switch(I.nextAddress){case 1:if(!c.nativeEncryptor){I.jumpTo(2);break}_.lj(I,3);return I.yield(c.nativeEncryptor.encrypt(e,g),5);case 5:return I.return(I.yieldResult);case 3:k=_.Qb(I),_.mN(k),O6s=!0,c.nativeEncryptor=void 0;case 2:return I.return(c.encryptorPolyfill.encrypt(e,g))}})};
eKY.prototype.decrypt=function(e,g){return this.encrypt(e,g)};
var MFs=function(e,g){this.JSC$13166_aesKey=e;this.subtleCrypto=g};
MFs.prototype.encrypt=function(e,g){var c=this,k;return _.r(function(I){if(I.nextAddress==1)return _.lj(I,2),I.yield(gJw(c,e,g),4);if(I.nextAddress!=2)return I.return(I.yieldResult);k=_.Qb(I);_.mN(k);O6s=!0;throw k;})};
var gJw=function(e,g,c){var k,I;return _.r(function(J){switch(J.nextAddress){case 1:if(e.cryptoKey){J.jumpTo(2);break}return J.yield(e.subtleCrypto.importKey("raw",e.JSC$13166_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.cryptoKey=J.yieldResult;case 2:return k={name:"AES-CTR",counter:c,length:128},J.yield(e.subtleCrypto.encrypt(k,e.cryptoKey,g),4);case 4:return I=J.yieldResult,J.return(new Uint8Array(I))}})},Clw=function(e){this.JSC$13169_aesKey=e};
Clw.prototype.encrypt=function(e,g){this.encryptor||(this.encryptor=new yXY(this.JSC$13169_aesKey));for(var c=this.encryptor,k=0;k<4;k++)c.counter[k]=g[k*4]<<24|g[k*4+1]<<16|g[k*4+2]<<8|g[k*4+3];c.blockOffset=16;return this.encryptor.encrypt(e)};
Clw.prototype.decrypt=function(e,g){return this.encrypt(e,g)};var cGY={},cgg=Sn("yt-idb-pref-storage",{objectStores:(cGY.prefs={addedAtVersion:1},cGY),shared:!1,upgrade:function(e,g){g(1)&&sn(At(e,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.rB=function(e){this.token=e};
_.rB.getInstance=function(){return _.r(function(e){return e.return(new Promise(function(g){_.Nl().then(function(c){c?(_.rB.instance||(_.rB.instance=new _.rB(c)),g(_.rB.instance)):g(void 0)})}))})};
_.rB.prototype.get=function(e){var g=this,c,k,I;return _.r(function(J){if(J.nextAddress==1)return J.yield(k9q(g.token),2);if(J.nextAddress!=3)return c=J.yieldResult,J.yield(c.get("prefs",e),3);k=J.yieldResult;if(!k)return J.return();I=(0,_.yr)();return k.expirationTimestampMs<=I?J.return():J.return(k.value)})};
_.rB.prototype.set=function(e,g,c){c=c===void 0?31536E3:c;var k=this,I,J,q;return _.r(function(L){if(L.nextAddress==1)return I=(0,_.yr)(),J={key:e,value:g,expirationTimestampMs:I+c*1E3},L.yield(k9q(k.token),2);q=L.yieldResult;return L.yield(q.put("prefs",J),0)})};
_.rB.prototype.remove=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(k9q(g.token),2);c=k.yieldResult;return k.yield(c.delete("prefs",e),0)})};var av={},k8q=(av.INVALID_ENCODER_VERSION="Invalid encoder version",av.KEY_CREATION_FAILED="Failed to create encoder key",av.UNKNOWN_DECODE_ERROR="Failed to decode PES data",av.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",av.WRONG_DATA_TYPE="Encoder cannot process the data type",av),yx=function(e,g){g=g===void 0?{}:g;_.E2.call(this,k8q[e],Object.assign({},{name:"PESEncoderError",type:e},g));this.type=e;this.level="WARNING";Object.setPrototypeOf(this,yx.prototype)};
_.Y(yx,_.E2);var no=function(){};
no.prototype.encode=function(e,g){try{return this.encodeImpl(e,g)}catch(c){wFz(c,JgC)}};
no.prototype.decode=function(e,g){try{return this.decodeImpl(e,g)}catch(c){wFz(c,v3q)}};
var IAM=function(e,g,c){var k;return _.r(function(I){if(I.nextAddress==1)return _.lj(I,2),I.yield(e.decodeAsyncImpl(g,c),4);if(I.nextAddress!=2)return I.return(I.yieldResult);k=_.Qb(I);wFz(k,v3q);_.Uh(I)})};
no.prototype.decodeAsyncImpl=function(e,g){return Promise.resolve(this.decodeImpl(e,g))};var Rv=function(e,g){this.aesEncryptor=e;this.aesEncryptorAsync=g};
_.Y(Rv,no);Rv.prototype.encodeImpl=function(e,g){g=qJp(g);e=(new TextEncoder).encode(JSON.stringify(e));return this.aesEncryptor.encrypt(e,g)};
Rv.prototype.decodeImpl=function(e,g){if(!(e instanceof Uint8Array))throw Irv(1);var c=new TextDecoder;g=qJp(g);e=this.aesEncryptor.decrypt(e,g);return JSON.parse(c.decode(e))};
Rv.prototype.decodeAsyncImpl=function(e,g){var c=this,k,I,J;return _.r(function(q){if(q.nextAddress==1){if(!(e instanceof Uint8Array))throw Irv(1);k=new TextDecoder;I=qJp(g);return q.yield(c.aesEncryptorAsync.decrypt(e,I),2)}J=q.yieldResult;return q.return(JSON.parse(k.decode(J)))})};var LQp={accountLinkStatusEntity:oLn,booleanEntity:ELM,buttonEntity:aRB,captionTrack:KXw,channelHandle:oHw,chipEntity:QGw,commerceAcquisitionClientPayloadEntity:z5I,commerceCartListEntity:Hjk,compositeSourceEntity:a6v,multiviewStagingEntity:nCv,contextNoteFeedEntityPayload:cDv,contextNoteUserRatingEntityPayload:kpq,continuationTokenEntity:ioY,downloadQualityPickerEntity:WAq,downloadsPageRefreshTokenEntity:h2B,downloadsPageViewConfigurationEntity:uen,downloadStatusEntity:boM,dismissState:UTv,sfvAudioItemCurrentlyPlayingEntity:pFk,
emojiFountainDataEntity:qw1,emojiCustomizationSetEntity:wIw,fakeChannel:hj1,fakePlaylist:Xnn,fakePlaylistEntryCollection:G4B,fakeVideo:DxB,fakeVideoDescription:$xM,featuredProductsEntity:kGM,flowStateEntity:zjw,iconBadgeEntity:QLk,interstitialInteractionStateEntity:IUv,likeButtonAnimationEntity:dG1,liveChatPollStateEntity:n8I,dataFreshnessEntity:JTs,liveViewerLeaderboardChatEntryPointStateEntity:rgu,liveViewerLeaderboardPointsEntity:ars,liveReactionsDataEntity:Lww,logoEntity:cRq,macroMarkerEntity:z2Y,
mainDownloadsLibraryEntity:Xlv,mainDownloadsListEntity:Gx1,mainPlaylistDownloadStateEntity:DGB,mainPlaylistEntity:PE1,mainPlaylistVideoEntity:mGw,mainVideoDownloadStateEntity:$Gw,mainVideoEntity:A$q,markersEngagementPanelSyncEntity:HoB,markersVisibilityOverrideEntity:Qvk,musicAlbumReleaseDetail:X$I,musicAlbumReleaseDownloadMetadataEntity:RqI,musicAlbumRelease:hqM,musicAlbumReleaseUserDetail:GGs,musicArtistDetail:Drw,musicArtist:xr1,musicArtistUserDetail:$rY,musicDownloadsLibraryEntity:ECs,musicLibraryEdit:YOs,
musicLibraryStatusEntity:f6M,musicPlaylist:jDI,musicPlaylistDownloadMetadataEntity:WXM,musicShare:P7v,musicTrackDetail:p$u,musicTrackDownloadMetadataEntity:baB,musicTrack:mr4,musicTrackUserDetail:T4I,offlineOrchestrationActionWrapperEntity:Oa1,offlineVideoPolicy:MxB,offlineVideoStreams:C7Y,offlineabilityEntity:YHq,orchestrationWebSamplingEntity:fyu,pageHeaderEntity:O3Y,pdpStateEntity:Upw,pinnedProductEntity:I6w,playbackData:eTM,playerStateEntity:UGn,quantityIncrementerEntity:oGv,refresh:g3u,saveToPlaylistListEntity:MqY,
selectedChipIndexEntityPayload:oqw,settingEntity:Gdw,stringEntity:WWZ,suggestedFeedbackChipStateEntity:ZoM,transfer:cgM,trendingOfferEntity:JFw,videoDownloadContextEntity:k9k,videoOverviewAsyncDataEntity:R$n,videoPlaybackPositionEntity:EGn,votingEntity:gGZ,ytMainChannelEntity:svI,youchatPendingResponseEntity:VMs,ytMainDownloadedVideoEntity:jvY,ytMainVideoEntity:FAv};var JGs,wXY,eo,hTe,XFC,rGI,nJk,aAv,L2Y;JGs=function(e,g){this.JSC$13188_wrapped=e;this.JSC$13188_encoderRegistry=g;this.changedKeys={}};
wXY=function(e,g){return vJn(e.JSC$13188_encoderRegistry,g.version).decode(g.data,g.key)};
_.qKv=function(e,g,c){return e.JSC$13188_wrapped.objectStore("EntityStore").get(g).then(function(k){if(k){if(c&&k.entityType!==c)throw Error("Kf");return wXY(e,k)}})};
eo=function(e,g,c){return c?(c=c.map(function(k){return _.qKv(e,k,g)}),AK.all(c)):e.JSC$13188_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(g)).then(function(k){return k.map(function(I){return wXY(e,I)})})};
_.b8v=function(e,g,c){var k=SOp(g),I=vJn(e.JSC$13188_encoderRegistry,1),J=Object.assign({},g);return e.JSC$13188_wrapped.objectStore("EntityStore").get(k).then(function(q){if(q){if(q.entityType!==c)throw Error("Kf");J.entityMetadata||(q=wXY(e,q),J.entityMetadata=q.entityMetadata)}}).then(function(){var q={key:k,
entityType:c,data:I.encode(J,k),version:1};return AK.all([e.JSC$13188_wrapped.objectStore("EntityStore").put(q),L2Y(e,J,c)])}).then(function(){rGI(e,k,c);
return k})};
hTe=function(e,g){var c=_.ZO(g).entityType;return AK.all([e.JSC$13188_wrapped.objectStore("EntityStore").delete(g),aAv(e,g)]).then(function(){rGI(e,g,c)})};
XFC=function(e,g,c,k){var I=vJn(e.JSC$13188_encoderRegistry,1);return _.qKv(e,g,k).then(function(J){if(J){J=FXp(J,c);var q={key:g,entityType:k,data:I.encode(J,g),version:1};return AK.all([e.JSC$13188_wrapped.objectStore("EntityStore").put(q),L2Y(e,J,k)])}}).then(function(){rGI(e,g,k);
return g})};
rGI=function(e,g,c){var k=e.changedKeys[c];k||(k=new Set,e.changedKeys[c]=k);k.add(g)};
nJk=function(e,g,c){var k=SOp(g);c=rgK(c);if(!c)return AK.resolve([]);c=new c(g);e=e.JSC$13188_wrapped.objectStore("EntityAssociationStore");g=[];c=_.w(c.getAssociations());for(var I=c.next();!I.done;I=c.next())g.push(e.put({parentEntityKey:k,childEntityKey:I.value}));return AK.all(g).then(function(J){return J.map(function(q){return q[1]})})};
aAv=function(e,g){return e.JSC$13188_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(g))};
L2Y=function(e,g,c){var k=SOp(g);return aAv(e,k).then(function(){return nJk(e,g,c)})};var RKv=function(){};
_.Y(RKv,no);RKv.prototype.encodeImpl=function(e){return e};
RKv.prototype.decodeImpl=function(e){if(e instanceof Uint8Array)throw Irv(0);return e};var RTg=function(){this.cacheMap={};this.cacheMap[0]=new RKv;if(!_.G("aes_pes_encoder_killswitch")){var e=this.cacheMap;try{var g=_.nf();var c=qJp(g);var k=new Rv(new Clw(c),new eKY(c))}catch(I){throw e=I instanceof Error?new yx("KEY_CREATION_FAILED",{originalMessage:I.message}):new yx("KEY_CREATION_FAILED"),_.jW(e),e;}e[1]=k}},vJn=function(e,g){g=g===void 0?0:g;
e=e.cacheMap[g];if(!e)throw g=new yx("INVALID_ENCODER_VERSION",{encoderVersion:g}),_.jW(g),g;return e};var OV=function(e,g){_.Iy.call(this);this.token=e;this.JSC$13202_encoderRegistry=g;this.observers=[];e=new _.kp.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.nf());e.onmessage=this.JSC$13202_handleMessage.bind(this);this.channel=e};
_.Y(OV,_.Iy);_.CA=function(e,g,c){var k,I,J,q;return _.r(function(L){if(L.nextAddress==1)return L.yield(g3K(e.token),2);if(L.nextAddress!=3)return k=L.yieldResult,L.yield(_.U2(k,["EntityStore","EntityAssociationStore"],g,function(n){I=new JGs(n,e.JSC$13202_encoderRegistry);return c(I)}),3);
J=L.yieldResult;I&&(q=I.changedKeys,Object.keys(q).length>0&&(e.channel.postMessage(q),EJY(e,q)));return L.return(J)})};
OV.prototype.observe=function(e){var g=this;this.observers.push(e);return function(){var c=g.observers.indexOf(e);c>=0&&g.observers.splice(c,1)}};
var UiC=function(e){var g;return _.r(function(c){if(c.nextAddress==1)return c.yield(_.CA(e,{mode:"readonly",enableRetries:!0},function(k){return k.JSC$13188_wrapped.objectStore("EntityStore").getAll()}),2);
g=c.yieldResult;return c.return(Promise.all(g.filter(function(k){return!!k}).map(function(k){var I,J;
return _.r(function(q){if(q.nextAddress==1){I=k.key;J=k.entityType;var L=q.yield;var n=IAM(vJn(e.JSC$13202_encoderRegistry,k.version),k.data,k.key);return L.call(q,n,2)}return q.return({key:I,entityType:J,data:q.yieldResult})})})))})};
OV.prototype.JSC$13202_handleMessage=function(e){EJY(this,e.data)};
var EJY=function(e,g){e=_.w(e.observers);for(var c=e.next();!c.done;c=e.next())c=c.value,c(g)};
OV.prototype.disposeInternal=function(){this.channel.close()};
var arW;var EH,bWw,zT6;EH={};_.W2v=(EH.mainVideoEntity="mainVideoEntityActionMetadata",EH.mainPlaylistEntity="mainPlaylistEntityActionMetadata",EH.musicTrack="musicTrackEntityActionMetadata",EH.musicPlaylist="musicPlaylistEntityActionMetadata",EH);bWw=new _.AU("DOWNLOADS_ENTITY_TYPE_MAP");_.qW=_.Bh("","downloadsPageViewConfigurationEntity");zT6=_.Bh("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.hb6=_.Bh("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Bh("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Bh("SMART_DOWNLOADS_ENABLED","settingEntity");_.Bh("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var YJv=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var TmV=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var hKZ={isLeaderTab:!0};var JzA={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Wl=window,DY=Wl.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",ATz=Wl.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||lRA,z5p=Wl.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||yD,ACu=Wl.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||l9q,pYw=Wl.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||Vtq,uLp=Wl.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Ksq;var TCV;jo({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 Ojq=Hjq(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(e){return e}}}),eHg=Hjq(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(e){return e}}}),Zjg=new Map;var CAv=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],Swg;var XXM=function(e){return _.Hh({type:"SET_EPHEMERAL_ACTION",payload:e})};var G8M={ephemeralAction:null};var xmI=xQ({ephemeralAction:function(e,g){e=e===void 0?G8M.ephemeralAction:e;switch(g.type){case "SET_EPHEMERAL_ACTION":return g.payload;default:return e}}});var Dmn=function(e){return _.Hh({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:e})};var $mw={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var YK4={sharedUi:$mw,a11y:G8M,entities:{}},ffK={sharedUi:function(e,g){e=e===void 0?$mw:e;switch(g.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},e,{animatedThumbnailEnabled:g.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},e,{inlinePreviewEnabled:g.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},e,{currentPageType:g.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},e,{currentPageSubType:g.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},e,{persistentPanelVisible:g.payload});default:return e}},
a11y:xmI,entities:KXz};var J86={playlistId:"",inviteLinkURL:""};var fA1={continuationCommand:{}};var bSe=xQ({continuationCommand:function(e,g){e=e===void 0?fA1.continuationCommand:e;switch(g.type){case "SET_CONTINUATION_COMMAND":return g.payload.continuationCommand;default:return e}}});var wGt={currentFormId:"",commandsMap:{}};var huC=xQ({isLeaderTab:function(e,g){e=e===void 0?hKZ.isLeaderTab:e;switch(g.type){case "SET_IS_LEADER_TAB":var c,k;return(k=g==null?void 0:(c=g.payload)==null?void 0:c.isLeaderTab)!=null?k:e;default:return e}}});var iWB;_.jE1=function(e){return _.Hh({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:e}})};
iWB=function(e){return _.Hh({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:e}})};var bE={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var Y8p=xQ({isDesktopSmallWidth:function(e,g){e=e===void 0?bE.isDesktopSmallWidth:e;switch(g.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return g.payload.isDesktopSmallWidth;default:return e}},
isShortsActive:function(e,g){e=e===void 0?bE.isShortsActive:e;switch(g.type){case "SET_IS_SHORTS_ACTIVE":return g.payload.isShortsActive;default:return e}},
isWatchWhileMode:function(e,g){e=e===void 0?bE.isWatchWhileMode:e;switch(g.type){case "SET_IS_WATCH_WHILE_MODE":return g.payload.isWatchWhileMode;default:return e}},
playerState:function(e,g){e=e===void 0?bE.playerState:e;switch(g.type){case "SET_PLAYER_STATE":return g.payload.playerState;default:return e}},
isFullscreen:function(e,g){e=e===void 0?bE.isFullscreen:e;switch(g.type){case "SET_IS_FULLSCREEN":return g.payload.isFullscreen;default:return e}},
isSmallScreenSqueezeback:function(e,g){e=e===void 0?bE.isSmallScreenSqueezeback:e;switch(g.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return g.payload.isSmallScreenSqueezeback;default:return e}},
isShortsPipActive:function(e,g){e=e===void 0?bE.isShortsPipActive:e;switch(g.type){case "SET_IS_SHORTS_PIP_ACTIVE":return g.payload.isShortsPipActive;default:return e}},
isPlaybackStarted:function(e,g){e=e===void 0?bE.isPlaybackStarted:e;switch(g.type){case "SET_IS_PLAYBACK_STARTED":return g.payload.isPlaybackStarted;default:return e}}});var LDz={currentMode:"canvas-hidden"};var iSq=function(){return function(e){return function(g){var c=e(g);_.Z5(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[g],!0);return c}}};var PCI,cJz;PCI=new _.V8;_.QF=new _.AU("WATCH_PLAYER_PROMISE_TOKEN");_.mmu=new _.V8;_.pXZ=new _.AU("SHORTS_PLAYER_PROMISE_TOKEN");cJz=new _.AU("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var Ph6=function(){return function(e){return function(g){g.type==="ENTITY_LOADED"&&_.Ss().resolve(_.QF).then(function(c){var k;(k=c.dispatchReduxAction)==null||k.call(c,g)});
return e(g)}}};var TXY={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var XGK=xQ({additionalContext:function(e,g){e=e===void 0?TXY.additionalContext:e;switch(g.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var c;return(c=g.payload)!=null?c:"";default:return e}},
impersonatedChannelUrl:function(e,g){e=e===void 0?TXY.impersonatedChannelUrl:e;switch(g.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var c;return(c=g.payload)!=null?c:"";default:return e}},
selectedVideoIds:function(e,g){e=e===void 0?TXY.selectedVideoIds:e;switch(g.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var c={};return Object.assign({},e,(c[g.payload]=!0,c));case "VIDEO_UNSELECTED":return g=g.payload,e=Object.assign({},e),delete e[g],e;default:return e}}});var lA1={parentClickTrackingParams:""};var GAe=xQ({parentClickTrackingParams:function(e,g){e=e===void 0?lA1.parentClickTrackingParams:e;switch(g.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return g.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return e}}});var AGM=function(e){return _.Hh({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:e})},sEw=function(e){return _.Hh({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:e})};var F2w={stepStates:{}};var x6C=xQ({stepStates:function(e,g){e=e===void 0?F2w.stepStates:e;switch(g.type){case "TALK_TO_RECS_RESET_STEP_STATE":var c=g.payload,k=Object.assign({},e);delete k[c.stepId];return k;case "TALK_TO_RECS_UPDATE_SELECTION":var I=e,J=g.payload,q;e={};g={selectionStates:Object.assign({},(q=(c=I[J.stepId])==null?void 0:c.selectionStates)!=null?q:{},(e[J.token]={isSelected:J.isSelected},e)),userQuery:(k=I[J.stepId])==null?void 0:k.userQuery};c={};return Object.assign({},I,(c[J.stepId]=g,c));case "TALK_TO_RECS_UPDATE_USER_QUERY":return c=
e,k=g.payload,q={selectionStates:Object.assign({},(J=(I=c[k.stepId])==null?void 0:I.selectionStates)!=null?J:{}),userQuery:{userQuery:k.userQuery,token:k.userQueryToken}},I={},Object.assign({},c,(I[k.stepId]=q,I));default:return e}}});var u8q,dmM,HW1;u8q=function(e){return _.Hh({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:e})};
dmM=function(e){return _.Hh({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:e})};
_.Rd=function(e){return _.Hh({type:"SET_CURRENT_PAGE_TYPE",payload:e})};
_.zKq=function(e){return _.Hh({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:e})};
HW1=function(e){return _.Hh({type:"SET_CHIP_BAR_IS_STICKY",payload:e})};var afC={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"};_.h$=function(e){return _.Hh({type:"SET_PLAYER_STATE",payload:{playerState:e}})};var Xe={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:RuC(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var D6W=xQ({isTheaterMode:function(e,g){e=e===void 0?RuC():e;switch(g.type){case "SET_IS_THEATER_MODE":return g.payload.isTheaterMode;default:return e}},
isWatchActive:function(e,g){e=e===void 0?Xe.isWatchActive:e;switch(g.type){case "SET_IS_WATCH_ACTIVE":return g.payload.isWatchActive;default:return e}},
isLearningJourneyActive:function(e,g){e=e===void 0?Xe.isLearningJourneyActive:e;switch(g.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return g.payload.isLearningJourneyActive;default:return e}},
isWatchFullscreen:function(e,g){e=e===void 0?Xe.isWatchFullscreen:e;switch(g.type){case "SET_IS_WATCH_FULLSCREEN":return g.payload.isWatchFullscreen;default:return e}},
isWatchNarrowWidth:function(e,g){e=e===void 0?Xe.isWatchNarrowWidth:e;switch(g.type){case "SET_IS_WATCH_NARROW_WIDTH":return g.payload.isWatchNarrowWidth;default:return e}},
isSwatcherooActive:function(e,g){e=e===void 0?Xe.isSwatcherooActive:e;switch(g.type){case "SET_IS_SWATCHEROO_ACTIVE":return g.payload.isSwatcherooActive;default:return e}},
isWatchRetroMode:function(e,g){e=e===void 0?Xe.isWatchRetroMode:e;switch(g.type){case "SET_IS_WATCH_RETRO_MODE":return g.payload.isWatchRetroMode;default:return e}},
isLiveChatCollapsed:function(e,g){e=e===void 0?Xe.isLiveChatCollapsed:e;switch(g.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return g.payload.isLiveChatCollapsed;default:return e}},
openEngagementPanels:function(e,g){e=e===void 0?Xe.openEngagementPanels:e;var c=[].concat(_.KY(e));switch(g.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return c.push(g.payload.panelToAdd),c;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return c.splice(c.indexOf(g.payload.panelToRemove),1),c;default:return e}},
playerState:function(e,g){e=e===void 0?Xe.playerState:e;switch(g.type){case "SET_PLAYER_STATE":return g.payload.playerState;default:return e}},
watchScrollTop:function(e,g){e=e===void 0?Xe.watchScrollTop:e;switch(g.type){case "SET_WATCH_SCROLL_TOP":return g.payload.watchScrollTop;default:return e}},
watchWindowSize:function(e,g){e=e===void 0?Xe.watchWindowSize:e;switch(g.type){case "SET_WATCH_WINDOW_SIZE":return g.payload.watchWindowSize;default:return e}}});var QEv={surveyFeedbackData:{feedbackTokens:[]}};var $6g=xQ({surveyFeedbackData:function(e,g){e=e===void 0?QEv.surveyFeedbackData:e;switch(g.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return g.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},e,g.payload);default:return e}}});var E9v={};var pGt=void 0;_.G("web_enable_redux_store_on_demand")||(pGt=m6C());var Ums=function(e,g,c){var k=this;this.listId=e;this.JSC$13347_updateCallback=g;this.isOfflineVideoCallback=c;_.Tt().subscribe(function(){k.handleUpdate()})};
Ums.prototype.getPlaylistData=function(){var e=_.Tt().getState().entities;if(this.listId&&this.listId!=="PPSV"){var g=SJz(e,this.listId,!0),c=_.Bh(this.listId,"mainPlaylistEntity"),k,I;e=e==null?void 0:(k=e.mainPlaylistEntity)==null?void 0:(I=k[c])==null?void 0:I.title;return Tev(g,e,this.listId)}g=_.lrp(Yct(e));e=_.lrp(_.LU(e));e=g.concat(e);return Tev(e)};
Ums.prototype.getPlaylistId=function(){return this.listId};
Ums.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13347_updateCallback(this.listId,this.getPlaylistData(),{})};var Gx=function(e,g,c,k){k=k===void 0?[]:k;this.JSC$13350_playlistNetworkManager=e;this.listId=g;this.JSC$13350_updateCallback=c;this.videoIds=k;this.pendingUpdates=[];this.currentIndex=0};
Gx.prototype.JSC$13350_setCurrentIndex=function(e){this.currentIndex=e};
Gx.prototype.setListId=function(e){this.listId=e};
var oJu=function(e,g){e.currentCreateRequest&&e.currentCreateRequest.cancel(g);e.currentUpdateRequest&&e.currentUpdateRequest.cancel(g);e.currentRefreshRequest&&e.currentRefreshRequest.cancel(g)};
Gx.prototype.delete=function(){oJu(this,"PROXY DELETED")};
Gx.prototype.addVideos=function(e,g,c){var k=this;c!==void 0?this.videoIds.splice.apply(this.videoIds,[c,0].concat(_.KY(e))):this.videoIds.push.apply(this.videoIds,_.KY(e));this.listId||this.currentCreateRequest?(e.forEach(function(I,J){I={addedVideoId:I,action:"ACTION_ADD_VIDEO"};c&&(I.addedVideoPosition=c+J);k.pendingUpdates.push(I)}),xq(this)):ZWB(this,g.onCreateListCommand)};
var Vfk=function(e,g,c,k,I){HCp(e.videoIds,g,c);g>e.currentIndex&&c<=e.currentIndex?e.JSC$13350_setCurrentIndex(e.currentIndex+1):g===e.currentIndex?e.JSC$13350_setCurrentIndex(c):g<e.currentIndex&&c>=e.currentIndex&&e.JSC$13350_setCurrentIndex(e.currentIndex-1);e.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:k,movedSetVideoIdPredecessor:I});xq(e)},ZWB=function(e,g){oJu(e,"OBSOLETE");
e.currentCreateRequest=tfq(e.JSC$13350_playlistNetworkManager,g,e.videoIds);_.WN(e.currentCreateRequest,function(){e.currentCreateRequest=void 0}).then(function(c){e.setListId(c.playlistId);
e.pendingUpdates.length>0?xq(e):BX1(e)})},xq=function(e){if(e.pendingUpdates.length!==0&&(e.currentRefreshRequest&&e.currentRefreshRequest.cancel("OBSOLETE"),!e.currentUpdateRequest&&!e.currentCreateRequest)){var g=e.pendingUpdates.splice(0,e.pendingUpdates.length);
e.currentUpdateRequest=e.JSC$13350_playlistNetworkManager.updatePlaylist(e.listId,g);_.WN(e.currentUpdateRequest,function(){e.currentUpdateRequest=void 0}).then(function(){e.pendingUpdates.length>0?xq(e):BX1(e)}).thenCatch(function(){e.pendingUpdates.unshift.apply(e.pendingUpdates,_.KY(g))})}},BX1=function(e){e.currentRefreshRequest=_.NXM(e.JSC$13350_playlistNetworkManager,e.listId,e.currentIndex,e.videoIds[e.currentIndex]);
_.WN(e.currentRefreshRequest,function(){e.currentRefreshRequest=void 0}).then(function(g){e.JSC$13350_updateCallback(g.playlistId,g.playlistPanelRenderer,g.autoplayRenderer)})};
Gx.prototype.size=function(){return this.videoIds.length};var SKn=function(e,g,c,k){k=k===void 0?[]:k;Gx.call(this,e,g,c,k);this.JSC$13350_playlistNetworkManager=e;this.listId=g;this.JSC$13350_updateCallback=c;this.videoIds=k};
_.Y(SKn,Gx);_.Dy=function(e,g,c,k,I,J,q){I=I===void 0?[]:I;q=q===void 0?Vh:q;Gx.call(this,e,g,c,I);this.JSC$13350_playlistNetworkManager=e;this.listId=g;this.JSC$13350_updateCallback=c;this.onAuthChange=k;this.videoIds=I;this.storage=J;this.cookieReader=q;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.HT(_.ft,this.checkLoggedInStatusChange.bind(this),1E3)};
_.Y(_.Dy,Gx);_.v=_.Dy.prototype;_.v.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.HT(_.ft,this.checkLoggedInStatusChange.bind(this),1E3)};
_.v.JSC$13350_setCurrentIndex=function(e){Gx.prototype.JSC$13350_setCurrentIndex.call(this,e);this.store()};
_.v.delete=function(){_.ft.cancelJob(this.queueSapisIdJob);Gx.prototype.delete.call(this)};
_.v.setListId=function(e){Gx.prototype.setListId.call(this,e);this.store()};
_.v.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var yGn=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],K2u=["playerResponse","videoDetails"],OW1=["response","currentVideoEndpoint","watchEndpoint","videoId"],Mfq=["response","currentVideoEndpoint","watchEndpoint","playlistId"],CCY=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],efk=["response","contents","twoColumnWatchNextResults","playlist","playlist"],gPs=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
cxY=["response","contents","twoColumnWatchNextResults"];var $q={},uFp=($q.WEB_UNPLUGGED="^unplugged/",$q.WEB_UNPLUGGED_ONBOARDING="^unplugged/",$q.WEB_UNPLUGGED_OPS="^unplugged/",$q.WEB_UNPLUGGED_PUBLIC="^unplugged/",$q.WEB_CREATOR="^creator/",$q.WEB_KIDS="^kids/",$q.WEB_EXPERIMENTS="^experiments/",$q.WEB_MUSIC="^music/",$q.WEB_REMIX="^music/",$q.WEB_MUSIC_EMBEDDED_PLAYER="^music/",$q.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",$q);var veU,tfq;veU=function(e,g){this.networkManager=e;this.innertubeTransportService=g};
tfq=function(e,g,c){if(!_.x(g,_.DU))return _.q2(Error("Of"));_.x(g,_.DU).videoIds=c;c={create_playlist_title:_.C_("QUEUE",void 0,"Queue")};return s8V(_.jt(e.innertubeTransportService,g,c),lfp)};
_.NXM=function(e,g,c,k){g={videoId:k,playlistId:g,playlistIndex:c};c=_.lm(gK1);return s8V(_.Yq(e.innertubeTransportService,g,c),FDv)};
veU.prototype.updatePlaylist=function(e,g){return s8V(_.jt(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:e,actions:g}}),A8K)};var kZ4=function(e){this.storage=e},ISI;
kZ4.prototype.store=function(e,g){g=g===void 0?0:g;if(this.storage&&e.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",e),this.storage.set("TLPQindex",String(g)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(c){}};
kZ4.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
kZ4.prototype.getPlaylistId=function(){if(!this.storage)return null;var e=null;try{e=this.storage.get("TLPQplaylist")}catch(g){}return e};var Q8W=["navigationEndpoint","watchEndpoint","videoId"],HSA=["nextButtonVideo","watchEndpoint","videoId"];_.cg=new _.AU("NETWORK_TOKEN");_.A4=new _.AU("PAGE_TOKEN");_.fo=new _.AU("PLAYLIST_TOKEN");var Jxq;Jxq=new _.AU("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.kv=new _.AU("INNERTUBE_TRANSPORT_TOKEN");var vP4,jM,q9w,LoB,aSY,nPu;vP4=new Set(["ci","cr","carml"]);jM=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13397_parkedJobs=new Map;this.parkedProcessors=new Map};
_.iE=function(){jM.instance||(jM.instance=new jM);return jM.instance};
jM.prototype.onAny=function(e){return _.wEY(this,e,2)};
jM.prototype.parkOrScheduleJob=function(e,g,c,k,I){_.Pl(this,c)?_.nu().addJob(e,g,k):(I&&(e=q9w(e),LoB(this,e,g,c,I)),I=this.JSC$13397_parkedJobs.get(c),I||(this.JSC$13397_parkedJobs.set(c,[]),I=this.JSC$13397_parkedJobs.get(c)),I.push({job:e,priority:g,delay:k}))};
jM.prototype.addListener=function(e,g,c){c&&(g=q9w(g),LoB(this,g,0,e,c));c=this.parkedProcessors.get(e);c||(this.parkedProcessors.set(e,[]),c=this.parkedProcessors.get(e));c.push(g)};
jM.prototype.processSignal=function(e){if(!_.Pl(this,e)){this.inProgressSignals.add(e);var g=this.JSC$13397_parkedJobs.get(e);if(g){g=_.w(g);for(var c=g.next();!c.done;c=g.next())c=c.value,_.nu().addJob(c.job,c.priority,c.delay);this.JSC$13397_parkedJobs.delete(e)}if(g=this.parkedProcessors.get(e)){g=_.w(g);for(c=g.next();!c.done;c=g.next())c=c.value,c();this.parkedProcessors.delete(e)}this.signals.push(e);this.inProgressSignals.delete(e)}};
_.Pl=function(e,g){return vP4.has(g)||_.dH("IS_HOMEPAGE_COLD")||_.dH("IS_RESULTS_PAGE_COLD")||_.dH("IS_WATCH_PAGE_COLD")?e.signals.indexOf(g)>=0:!0};
q9w=function(e){var g=!1;return function(){g||(g=!0,e())}};
LoB=function(e,g,c,k,I){if(rxI.has(k))_.nu().addJob(g,c,I);else{var J=e.compoundSignals.get(k);J&&_.nu().addJob(function(){_.Pl(e,k)||(J.isTimeoutConditionSatisfied?_.nu().addJob(g,c):J.timeoutConditionObservers.push(function(){_.nu().addJob(g,c)}))},c,I)}};
_.wEY=function(e,g,c){if(g.length>1){var k=[],I=Object.create(null);g=_.w(g);for(var J=g.next();!J.done;J=g.next())J=J.value,I[J]||(k.push(J),I[J]=!0);g=k}if(g.length===1)return g[0];J=g;k="";I=c===2?"|":"&";J.sort();J=_.w(J);for(var q=J.next();!q.done;q=J.next())k+=q.value+I;if(!e.compoundSignals.get(k)){I=0;J=[];q=_.w(g);for(var L=q.next();!L.done;L=q.next())L=L.value,I++,_.Pl(e,L)||J.push(L);(c=c===2)&&I>J.length||!c&&!J.length?e.signals.push(k):aSY(e,k,c,g,J)}return k};
aSY=function(e,g,c,k,I){var J=I.length,q=function(){c||--J===0?e.processSignal(g):nPu(e,g)};
I=_.w(I);for(var L=I.next();!L.done;L=I.next())e.addListener(L.value,q);e.compoundSignals.set(g,{signals:k,isOnAny:c,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});nPu(e,g)};
nPu=function(e,g){if(!_.Pl(e,g)){var c=e.compoundSignals.get(g);if(c&&!c.isTimeoutConditionSatisfied){for(var k=!1,I=0,J=0,q=_.w(c.signals),L=q.next();!L.done;L=q.next()){var n=L.value;L=!_.Pl(e,n);rxI.has(n)?k=!0:(n=e.compoundSignals.get(n))?L&&!n.isTimeoutConditionSatisfied&&(J++,c.isInitialized||n.timeoutConditionObservers.push(function(){nPu(e,g)})):L&&I++}c.isInitialized=!0;
c.isOnAny?k&&(c.isTimeoutConditionSatisfied=!0):I===0&&J===0&&(c.isTimeoutConditionSatisfied=!0);if(c.isTimeoutConditionSatisfied)for(c=_.w(c.timeoutConditionObservers),k=c.next();!k.done;k=c.next())k=k.value,k()}}};
jM.prototype.processSignal=jM.prototype.processSignal;jM.prototype.parkOrScheduleJob=jM.prototype.parkOrScheduleJob;jM.prototype.onAny=jM.prototype.onAny;_.BQ("ytsignals.getInstance",_.iE);jM.prototype.onAny=jM.prototype.onAny;jM.prototype.parkOrScheduleJob=jM.prototype.parkOrScheduleJob;jM.prototype.processSignal=jM.prototype.processSignal;var rxI=new Set(["eop","eocs","dl","pcl"]);_.xt=new _.AU("MINIPLAYER_SERVICE");var mA,Rfn,EPn;mA=function(e,g,c){var k=_.dF.getInstance();if(!ISI){var I=new xWU;var J=void 0,q=_.uo("ID_TOKEN");q&&I.isAvailable()&&(J=new Gn(I,"yt-queue"+q));ISI=new kZ4(J)}I=ISI;J=_.iE();this.JSC$13404_actionRouter=k;this.JSC$13404_pageManager=e;this.playlistManager=g;this.JSC$13404_playlistNetworkManager=c;this.storage=I;this.signals=J;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.po=function(){if(!Rfn){var e=_.Ss(),g=e.resolve(_.NN(_.A4)),c=e.resolve(_.NN(_.cg)),k=e.resolve(_.NN(_.fo));e=e.resolve(_.kv);Rfn=new mA(g,k,new veU(c,e))}return Rfn};
EPn=function(e,g,c){if(c){var k;if(((k=e.responsePlaylistData)==null?void 0:k.playlistId)!==c)return}e.responsePlaylistData&&(c=Bee(g,e.responsePlaylistData),e.responsePlaylistData=(0,_.n0.unsafeClone)(e.responsePlaylistData),S8U(e.responsePlaylistData,c));c=e.temporaryItems.findIndex(function(I){return I.videoId===g});
c>-1&&e.temporaryItems.splice(c,1);_.Tx(e,_.lE(e,e.response?e.response.autoplayRenderer:void 0))};
_.WoM=function(e,g){if(e.responsePlaylistData){var c=Nep(g,e.responsePlaylistData);S8U(e.responsePlaylistData,c);if(e.queueProxy){var k=e.queueProxy;c<0||(k.videoIds.splice(c,1),c<k.currentIndex&&k.JSC$13350_setCurrentIndex(k.currentIndex-1),k.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:g}),xq(k))}}_.Tx(e,_.lE(e,e.response?e.response.autoplayRenderer:void 0))};
mA.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Tx(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
mA.prototype.setPlaylistData=function(e,g,c){this.temporaryItems=[];this.listId=e;this.responsePlaylistData=g;_.Tx(this,_.lE(this,c))};
var bEw=function(e){return(e==null?0:e.playlistId)?e.playlistId:"PPSV"},hfn=function(e){return e&&e.playlistId?e.playlistId==="PPSV"?!0:Bm6(_.Tt().getState().entities,e.playlistId):!1};
mA.prototype.isPlayingOfflineVideo=function(){return this.response?hfn(this.response):!1};
mA.prototype.closeMiniplayer=function(e){var g=this.queueProxy&&this.queueProxy.size()<=1,c=_.Ss().resolve(_.xt);if(!this.queueProxy||g)this.queueProxy&&this.clearQueue(),c.close(!0);else{c.pipController.getWindow()&&window.focus();g=this.responsePlaylistData;var k=this.temporaryItems.length+(g&&g.contents?g.contents.length:0);g=_.C_("QUEUE_CLEARED_UNPLURALIZED")||_.e4("QUEUE_CLEARED",k);g=_.so(g);c=_.C_("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");k=_.C_("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.e4("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",k);var I=_.C_("MINIPLAYER_CLOSE",void 0,"Close"),J=_.C_("CANCEL",void 0,"Cancel");_.Rg(this.JSC$13404_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.PL(c),dialogMessages:[_.PL(k)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.PL(I),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
g]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.PL(J)}}}}}}],e)}};
_.lE=function(e,g){var c={},k=e.response;c.autoplayRenderer=g;if(!e.responsePlaylistData&&!e.temporaryItems.length)return!k||!k.hasRelatedVideoData&&_.G("kevlar_prefetch_data_augments_network_data")||(c.playerData={rvs:k.relatedVideoArgs,endScreenRenderer:k.endScreenRenderer}),c;c.playerData={};if(e.index===void 0)return _.jW(Error("Qf")),c;c.panel=e.responsePlaylistData?(0,_.n0.unsafeClone)(e.responsePlaylistData):{titleText:_.PL(_.C_("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
g=c.panel;if(g.contents)for(var I=_.w(e.temporaryItems),J=I.next();!J.done;J=I.next())g.contents.push({playlistPanelVideoRenderer:J.value});e.queueProxy&&k&&k.playingVideo&&k.playingVideoId&&!tZ8(k.playingVideoId,c.panel)&&(g=k.playingVideo,I=c.panel,J=e.index,I.contents&&I.contents.splice(J===void 0?0:J,0,{playlistPanelVideoRenderer:g}));k&&k.playingVideoId&&(g=e.index,I=c.panel,g=!I.contents||g>=I.contents.length?void 0:I.contents[g].playlistPanelVideoRenderer,g&&g.videoId===k.playingVideoId||(g=
Bee(k.playingVideoId,c.panel),e.index=g!==-1?g:e.index?e.index-1:0));g=VZq(e.index+1,c.panel);I=void 0;e.index>0&&(I=VZq(e.index-1,c.panel));if(I||g)c.autoplayRenderer=U6A(g,I,c.autoplayRenderer);!g&&(k==null?0:k.relatedVideoArgs)&&(c.playerData.rvs=k.relatedVideoArgs);k=k?k.playlistIndexOffset:0;e.queueProxy?OSC(c.panel,e.index,k,ZSv,!0,!0,!0):OSC(c.panel,e.index,k);c.playerData.playlistPanelRenderer=c.panel;return c};
mA.prototype.isMiniplayerActive=function(){return _.Ss().resolve(_.xt).isMiniplayerActive()};
_.Tx=function(e,g){e.playlistManager.setAutoplayRenderer(g.autoplayRenderer||null);e.playlistManager.setPlaylistData(g.panel||null);g.playerData&&e.playlistManager.setPlayerPlaybackControlData(g.playerData)};var MZt="#";var XEq={},GZs={},xgw={},Dgn={},$gn={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:(XEq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",XEq),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:(GZs.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",GZs),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:(xgw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",xgw),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:(Dgn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",Dgn),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 FHC=[{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:$gn},{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:$gn}}];var fsC;_.ZY=[[["bmQjMzEzcmNsN2ppZ3d5a2k=","dWUjejAwYmJzYXlzbnR4dmFs"],"UlQjb20yMXM1bHY4Y2FyQURfUExBQ0VNRU5UX0tJTkRfU1RB"]];
fsC=[[["cnkjYjdyazM4ZjgxeGdrcHJpbWE=",null,null],[null,["ZXIjZWhwam8yNGszMm16eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVy","cGUjdWR2NDdvcWs1MGZ3c3R5bGUtc2Nv"],null],["YWQjeG80bmJsbm94bWZ0bWFzdGhlYWQt",["cmVyI2RibGU0Zjk2OWtseXRkLXJpY2gtZ3JpZC1yZW5kZQ=="],null],[null,["ZXIjYXhtNGRrc3c3bm9peXRkLXJpY2gtZ3JpZC1yZW5kZXI=","cGUjbWtkb3pmeHpjNTJ4c3R5bGUtc2Nv"],null],[null,["ZXIjYnFvcGR4cml2eXZ0eXRkLWJhbm5lci1wcm9tby1yZW5kZXI=","b3BlI25ld3EwdG9qOWVkc3R5bGUtc2M="],null],[null,["ZXIjeTFrZnoyZmlyNHd4eXRkLWFkLXNsb3QtcmVuZGVy"],
null]],[["ZHMjM2t4NnptbWlmc2x4cGxheWVyLWE=",null,null]]];_.oq=["a3Mja2plbGVjZzN2bHNiZ2xvYmFsQ2FsbGJhYw==","ZWQjNmM4Z25lcDc0OHVtb25BYm5vcm1hbGl0eURldGVjdA==","aXAjd3F0ZGRma2hkMTRjb25BZFNr","c2UjbDV0MmU4OTFiaXdjcmF3X3BsYXllcl9yZXNwb24=","dHMjc3lhbm9wYWxpbXBiYWRTbG8="];_.A$="a3Mja2plbGVjZzN2bHNiZ2xvYmFsQ2FsbGJhYw== ZWQjNmM4Z25lcDc0OHVtb25BYm5vcm1hbGl0eURldGVjdA== aXAjd3F0ZGRma2hkMTRjb25BZFNr c2UjbDV0MmU4OTFiaXdjcmF3X3BsYXllcl9yZXNwb24= a3MjcW1rZjZwd3JidHB3d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzXw== ZWYjd3p1OWZkdDl3bXBnYWJfc2Ff dHMjc3lhbm9wYWxpbXBiYWRTbG8=".split(" ");var sH;sH=function(e,g,c){this.hNs=e;this.r8a=g;this.pfy=c};
_.NRt=[new sH("b.f_",!1,0),new sH("j.s_",!1,2),new sH("r.s_",!1,4),new sH("e.h_",!1,6),new sH("i.s_",!0,8),new sH("s.t_",!1,10),new sH("p.h_",!1,12),new sH("s.i_",!1,14),new sH("f.i_",!1,16),new sH("a.b_",!1,18),new sH("a.o_",!1),new sH("g.o_",!1,22),new sH("p.i_",!1,24),new sH("p.m_",!1),new sH("n.k_",!0,20),new sH("i.f_",!1),new sH("a.s_",!0),new sH("m.c_",!1),new sH("n.h_",!1,26),new sH("o.p_",!1),new sH("m.p_",!0,28),new sH("o.a_",!1),new sH("d.p_",!1),new sH("e.i_",!1)].reduce(function(e,g){e[g.hNs]=
g;return e},{});var Y9B=function(){};
Y9B.prototype.flush=function(e,g){e=e===void 0?[]:e;g=g===void 0?!1:g;if(_.G("enable_client_streamz_web")){e=_.w(e);for(var c=e.next();!c.done;c=e.next())c=mts(c.value),this.rootSpec&&_.sx(c,2,this.rootSpec),c={serializedIncrementBatch:_.MU(c.JSC$9917_serializeBinary())},_.Y2("streamzIncremented",c,{sendIsolatedPayload:g})}};
var kkC=function(){};
_.Y(kkC,Y9B);var fSw=function(e){var g=new Dtn;var c=new XaB;c=_.vH(c,1,"botguard");e=_.vH(c,2,e);this.rootSpec=_.Fp(g,1,$tY,e)};
_.Y(fSw,Y9B);var HL,jUu=new Map;var mFV,Jiz,EYt,qNz,asz,$Fp,TRC,xFW;mFV=2;Jiz=2;EYt=2;qNz=2;asz=2;$Fp=2;TRC=2;xFW=new Dzw;var PYu,mgM;PYu=function(){this.ongoingFlowNonces=new Map};
_.BL=function(){mgM||(mgM=new PYu);return mgM};
_.tw=function(e,g,c){return{eventType:{flowEventNamespace:e,flowEventType:g},metadata:c,statusCode:void 0,csn:void 0,can:void 0}};
_.yiC=function(e,g){var c=_.BL(),k=pEn(c,g,!0);c.logFlowEvent(e,g,k,void 0)};
PYu.prototype.logFlowEvent=function(e,g,c,k){g={flowNonce:c||pEn(this,g),flowType:g,flowEventType:e.eventType};e.metadata&&(g.flowMetadata=e.metadata);e.statusCode!==void 0&&(g.flowEventStatus=e.statusCode);e.csn&&(g.csn=e.csn);e.can&&(g.can=e.can);_.Y2("flowEvent",g,k)};
var pEn=function(e,g,c){c=c===void 0?!1:c;var k=e.ongoingFlowNonces.get(g);if(!k||c)k=aC(16),e.ongoingFlowNonces.set(g,k);return k};_.T7q=new xzZ;var eXz={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var Fe=function(e,g,c,k,I,J,q){c=c===void 0?!1:c;k=k===void 0?!1:k;J=J===void 0?_.po():J;this.iR=!1;this.rAl=e;this.pt8=g;this.roe=c;this.fromHistory=k;this.previousVideoId=I;this.ztD=J;this.tempData=q;this.prU=new _.$zI};
_.Y(Fe,dM);Fe.prototype.validate=function(e){return!(!e.data.playerResponse||e.data.page!=="watch"&&e.data.page!=="learning_journey_watch"&&e.data.page!=="shorts"||this.iR)};
Fe.prototype.handle=function(e){var g=this,c=_.x(e.endpoint,_.Pm),k=_.x(e.endpoint,_.eh);if(_.G("kevlar_continue_playback_without_player_response")&&(c==null?0:c.videoId)&&this.previousVideoId&&(c==null?void 0:c.videoId)===this.previousVideoId&&(c==null?0:c.continuePlayback)&&!this.fromHistory)this.rAl.resolve();else{var I={};c?I.watch_endpoint=c:k&&(I.watch_endpoint=k,k.endTimeSeconds&&(I.end=k.endTimeSeconds));e.data.page==="watch"?(e.data.filler||this.roe||(_.bB("cfg"),_.dF.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(I,lSk(this,e.endpoint)),_.G("enable_masthead_quartile_ping_fix")&&Object.assign(I,Axu(this)),Object.assign(I,void 0),e.data.forceExternalPlaylist&&(I.external_list=!0)):e.data.page==="shorts"?_.dF.getInstance().triggerAction("yt-start-loading-shorts"):e.data.page==="learning_journey_watch"&&_.dF.getInstance().triggerAction("yt-start-loading-learning-journey");if(c=this.pt8()){try{c.loadVideoWithPlayerResponse(e.data.playerResponse,I),c.getPlayerPromise().then(this.rAl.resolve)}catch(J){_.jW(J),
this.rAl.resolve()}this.iR=!0;c.getPlayerPromise().then(function(J){J.addEventListener("onAbnormalityDetected",function(){var q=e.data.playerResponse,L=J.getVideoData().cpn;TRC=0;_.iEn=L;if(L=BRU(q))g.prU.increment("IN_PLAYER"),_.So(5),_.G("ab_st_vid_ks")?J.pauseVideo(!0):J.stopVideo(),q.playabilityStatus=Object.assign({},q.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:L}}),q.videoDetails=void 0,_.dF.getInstance().triggerOptionalAction("yt-updated-playability-status",
q.playabilityStatus)})})}else _.mN(Error("Tf"))}};
var lSk=function(e,g){var c=_.x(g,_.Pm);if(g&&c&&c.playlistId&&c.videoId&&(e=e.ztD,e.queueProxy?(e=e.queueProxy,c=e.listId===c.playlistId?e.attributionData.get(c.videoId):void 0):c=void 0,c))return{queue_info:c}},Axu=function(e){var g;
if((g=e.tempData)==null?0:g.adpings)return{adpings:e.tempData.adpings}};var uE=function(e,g,c){this.iR=!1;this.eto=e;this.xZE=g;this.kzZ=c};
_.Y(uE,dM);uE.prototype.validate=function(e){return!!_.n0.getValueByKeys.apply(null,[e.data].concat(_.KY(cxY)))};
uE.prototype.handle=function(e){var g=this;this.eto.promise.then(function(){var c=e.data;var k=_.n0.getValueByKeys.apply(null,[c].concat(_.KY(yGn))),I=_.n0.getValueByKeys.apply(null,[c].concat(_.KY(efk))),J=_.n0.getValueByKeys.apply(null,[c].concat(_.KY(OW1)));var q=(q=_.n0.getValueByKeys.apply(null,[c].concat(_.KY(K2u))))?{videoId:q.videoId,thumbnail:q.thumbnail,title:q.title?_.PL(q.title):void 0,shortBylineText:q.author?_.PL(q.author):void 0}:void 0;var L=void 0;_.G("web_get_playlist_id_from_current_endpoint_ks")||
(L=_.n0.getValueByKeys.apply(null,[c].concat(_.KY(Mfq))));var n=_.n0.getValueByKeys.apply(null,[c].concat(_.KY(gPs))),R=_.n0.getValueByKeys.apply(null,[c].concat(_.KY(CCY))),W=!!n||!!R&&!!R.results&&R.results.length>0,b=0;I&&I.currentIndex&&I.localCurrentIndex&&(b=I.currentIndex-I.localCurrentIndex);I&&I.playlistId&&(L=I.playlistId);c={rawResponse:c,autoplayRenderer:k,hasRelatedVideoData:W,playingVideo:q,playingVideoId:J,playlistPanelRenderer:I,playlistId:L,playlistIndex:I&&I.currentIndex,relatedVideoArgs:n,
endScreenRenderer:R,playlistIndexOffset:b};a:{k=g.kzZ;I=g.xZE;k.response=c;if(hfn(c))k.downloadPlaylistProxy&&k.downloadPlaylistProxy.getPlaylistId()===bEw(c)||(k.downloadPlaylistProxy=new Ums(bEw(c),k.setPlaylistData.bind(k),k.isPlayingOfflineVideo.bind(k))),k.responsePlaylistData=k.downloadPlaylistProxy.getPlaylistData(),k.listId=bEw(c),k.index=0;else if(c.playlistPanelRenderer&&c.playlistId&&c.autoplayRenderer)c.playlistId.startsWith("TLPQ")?k.queueProxy?k.listId===c.playlistId?(k.index=c.playlistIndex,
k.responsePlaylistData=c.playlistPanelRenderer,k.queueProxy.JSC$13350_setCurrentIndex(k.index)):c.playingVideoId&&k.index!==void 0&&I.clientParams.autoSaveToQueue&&(k.index+=1,k.queueProxy.JSC$13350_setCurrentIndex(k.index),k.queueProxy.addVideos([c.playingVideoId],{},k.index)):(k.queueProxy=new _.Dy(k.JSC$13404_playlistNetworkManager,c.playlistId,k.setPlaylistData.bind(k),k.clearQueue.bind(k),_.y8C(c.playlistPanelRenderer),k.storage),k.responsePlaylistData=c.playlistPanelRenderer,k.listId=c.playlistId,
k.index=c.playlistIndex):(k.index=c.playlistIndex,k.listId!==c.playlistId&&k.clearQueue(),k.responsePlaylistData=c.playlistPanelRenderer,k.listId=c.playlistId,k.playlistProxy=new SKn(k.JSC$13404_playlistNetworkManager,c.playlistId,k.setPlaylistData.bind(k),_.y8C(c.playlistPanelRenderer)));else if(!k.queueProxy)k.responsePlaylistData=void 0;else if(c.playingVideoId&&I.clientParams.autoSaveToQueue){if(k.index===void 0){_.jW(Error("Pf"));k.clearQueue();break a}k.queueProxy.videoIds.includes(c.playingVideoId)||
(k.index+=1,k.queueProxy.JSC$13350_setCurrentIndex(k.index),k.queueProxy.addVideos([c.playingVideoId],{},k.index))}_.Tx(k,_.lE(k,k.response.autoplayRenderer))}})};var sUB=function(e,g){g=g===void 0?_.po():g;Md.call(this);this.nq.push(new uE(this.vg,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},g));this.nq.push(new Fe(this.vg,e,!1,!1));_.G("web_response_commands_chunk_processor")&&this.nq.push(new CP)};
_.Y(sUB,Md);sUB.prototype.processChunk=function(e){e&&e.data.player===void 0&&this.vg.resolve();Md.prototype.processChunk.call(this,e)};var dB=function(e,g){e=e===void 0?{layer:0}:e;this.iR=!1;this.createScreenConfig=e;this.rjD=g;this.createScreenConfig.automatedLogEventSource=9};
_.Y(dB,dM);dB.prototype.validate=function(e){return!(this.iR||!e.endpoint)};
dB.prototype.handle=function(e){var g=_.gL(),c,k,I=(k=_.x((c=e.endpoint)==null?void 0:c.commandMetadata,_.OM))==null?void 0:k.rootVe;this.rjD&&I?_.BU(g,I,this.rjD,this.createScreenConfig):$$I(g,e.endpoint,this.createScreenConfig);this.iR=!0};var zx=function(e,g){this.iR=!1;this.vOo=e;this.previousVideoId=g};
_.Y(zx,dM);zx.prototype.validate=function(e){return _.G("kevlar_continue_playback_without_player_response")&&(e=_.x(e.endpoint,_.Pm),(e==null?0:e.videoId)&&this.previousVideoId&&(e==null?void 0:e.videoId)===this.previousVideoId&&(e==null?0:e.continuePlayback))?!1:this.vOo.ums===0};
zx.prototype.handle=function(e){_.dF.getInstance().triggerAction("yt-stop-old-player",e.data,!0)};var Fos=function(e){e=e===void 0?{layer:0}:e;Md.call(this);this.nq.push(new zx(this));this.nq.push(new dB(e));this.nq.push(new OE(e))};
_.Y(Fos,Md);var Hl=function(){dM.apply(this,arguments)};
_.Y(Hl,dM);Hl.prototype.validate=function(e){return!!e.data.preconnect};
Hl.prototype.handle=function(e){_.Wh("bc");e=_.w(e.data.preconnect);for(var g=e.next();!g.done;g=e.next())g=g.value,(new Image).src=g};var u_1=function(e,g,c,k,I,J,q){c=c===void 0?{layer:0}:c;J=J===void 0?_.po():J;Md.call(this);if(k)if(I){I=J;this.nq.push(new uE(this.vg,g,I));this.nq.push(new Hl);var L,n;this.nq.push(new Fe(this.vg,e,!1,!((L=g.clientParams)==null||!L.fromHistory),(n=g.clientParams)==null?void 0:n.previousVideoId,I,g.tempData));var R;this.nq.push(new zx(this,(R=g.clientParams)==null?void 0:R.previousVideoId));var W;(W=g.clientParams)!=null&&W.fromHistory||(c.layer||(c=Object.assign({},c,{layer:0})),this.nq.push(new dB(c,
q)),this.nq.push(new OE(c)))}else this.nq.push(new uE(this.vg,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},J)),this.nq.push(new Fe(this.vg,e,!1,!1));else this.nq.push(new zx(this)),this.nq.push(new dB(c)),this.nq.push(new OE(c));_.G("web_response_commands_chunk_processor")&&k&&this.nq.push(new CP)};
_.Y(u_1,Md);u_1.prototype.processChunk=function(e){e&&e.data.player===void 0&&this.vg.resolve();Md.prototype.processChunk.call(this,e)};var dgv=function(){this.iR=this.iR=!1};
_.Y(dgv,dM);dgv.prototype.validate=function(e){return!this.iR&&!(!e.data.csn||!e.data.rootVe)};
dgv.prototype.handle=function(e){this.iR=!0;_.bc(e.data.csn,e.data.rootVe,3)};var zfk=function(e,g,c){c=c===void 0?{layer:0}:c;Md.call(this);this.nq.push(new Fe(this.vg,e));this.nq.push(new dB(c));this.nq.push(new OE(c))};
_.Y(zfk,Md);var HE4=function(e,g,c,k,I){c=c===void 0?{layer:0}:c;k=k===void 0?_.po():k;Md.call(this);var J=!!g&&!!g.clientParams&&!!g.clientParams.miniplayer;J&&this.nq.push(new dgv);this.nq.push(new uE(this.vg,g,k));this.nq.push(new Hl);var q,L;this.nq.push(new Fe(this.vg,e,J,!((q=g.clientParams)==null||!q.fromHistory),(L=g.clientParams)==null?void 0:L.previousVideoId,k,g.tempData));var n;this.nq.push(new zx(this,(n=g.clientParams)==null?void 0:n.previousVideoId));var R;(R=g.clientParams)!=null&&R.fromHistory||
(c.layer||(c=Object.assign({},c,{layer:J?3:0})),this.nq.push(new dB(c,I)),this.nq.push(new OE(c)));_.G("web_response_commands_chunk_processor")&&this.nq.push(new CP)};
_.Y(HE4,Md);var Qq,oP4;Qq={};
_.QUw=(Qq["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Qq["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Qq["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Qq["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Qq["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Qq["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Qq["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Qq);_.UH=new _.pt("yt-edu");_.UgI=function(){this.JSC$13502_eduDisplayedThisLoad_={}};
oP4=function(e){var g=_.UgI.getInstance();var c=_.MN("kevlar_tooltip_impression_cap");g=c&&parseInt(_.UH.get(e+"-impression")||0,10)>=c||_.UH.get(e+"-dismissed")?!1:(c=_.QUw[e])&&!g.JSC$13502_eduDisplayedThisLoad_[c.setKey||e]&&(c.titleText&&_.C_(c.titleText)||c.bodyText&&_.C_(c.bodyText))?!0:!1;if(!g)return null;g=_.QUw[e];if(!g)return null;c=g.bodyText?_.C_(g.bodyText):void 0;var k=g.titleText?_.C_(g.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:g.position,popup:{bubbleHintRenderer:{text:k?
_.PL(k):void 0,detailsText:c?_.PL(c):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.PL(_.C_("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:e}}]}}}}}}}},{eduImpressionAction:{key:e}}]};
_.H2(_.UgI);var KHe=!1;for(var ZEw="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),V5M=[],ov=6;ov>=1;ov--)V5M.push({columnCount:ov,query:ov==1?0:ov*2*107-4+32,className:"grid-"+ov+"-columns",width:ov*2*107+"px"});_.Zy=function(e){this.actionRouter_=e=e===void 0?_.dF.getInstance():e;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.t5q(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.t5q=function(e){var g=e.documentWidth_-(e.miniGuideVisible_?72:0)-(e.guidePersistentAndVisible_?240:0)-(e.persistentPanelVisible_?400:0);return V5M.find(function(c){return g>c.query})};
_.H2(_.Zy);var B7q=function(){var e=this;this.JSC$13514_keyboardInUse=!1;document.addEventListener("keydown",function(){e.onKeydown()});
document.addEventListener("mousedown",function(){e.JSC$13514_keyboardInUse=!1})},N7B;
B7q.prototype.isKeyBoardInUse=function(){return this.JSC$13514_keyboardInUse};
B7q.prototype.onKeydown=function(){this.JSC$13514_keyboardInUse=!0};var S9q,Bl;_.Vq=new _.pt("yt-mentions");_.t$=function(){};
S9q=function(e,g){return Bl(g,"drag-to-reorder-edu-displayed")};
Bl=function(e,g,c,k,I,J){c=c===void 0?"OPEN_POPUP_POSITION_TOP":c;if(g){if(_.Vq.get(g))return;_.Vq.set(g,!0,k)}if(I&&J!==void 0){g=Number(_.Vq.get(I)||0);if(g>=J)return;_.Vq.set(I,g+1)}return[{openPopupAction:{popupType:"HINT",position:c,popup:{bubbleHintRenderer:{detailsText:e,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.H2(_.t$);var yxM,Kou,OEZ;yxM=function(e,g,c,k){this.JSC$13524_taskManager_=e;this.onFulfilled_=typeof g==="function"?g:null;this.onRejected_=typeof c==="function"?c:null;this.JSC$13524_context_=k};
Kou=function(e,g){e.onFulfilled_&&_.JC(e.JSC$13524_taskManager_,function(){e.onFulfilled_.call(e.JSC$13524_context_,g)})};
OEZ=function(e,g){e.onRejected_&&_.JC(e.JSC$13524_taskManager_,function(){e.onRejected_.call(e.JSC$13524_context_,g)})};
_.NG=function(e){this.JSC$13527_taskManager_=e;this.callbacks_=[]};
_.NG.prototype.then=function(e,g,c){this.callbacks_.push(new yxM(this.JSC$13527_taskManager_,e,g,c));return this};
_.NG.prototype.onSuccess=function(e){this.callbacks_.forEach(function(g){Kou(g,e)})};
_.NG.prototype.onFailure=function(e){this.callbacks_.forEach(function(g){OEZ(g,e)})};
_.NG.prototype.cancel=function(){this.callbacks_.length=0};
mNZ(_.NG);_.cpC=null;_.et=new _.AU("ACTIVITY_TOKEN");var M5q;_.rl=new _.AU("PAGE_REQUEST_TOKEN");M5q=new _.AU("FETCH_PBJ_TOKEN");_.CYk=function(e){if(e.validatedFragments_.length==0)return null;if(!e.mergedPrefetchedData_){for(var g=[],c=_.w(e.validatedFragments_),k=c.next();!k.done;k=c.next()){k=_.w(e.fragmentConfiguration_[k.value].graftedKeys);for(var I=k.next();!I.done;I=k.next())(I=e.prefetchedData_[I.value].trackingParams)&&g.push(I)}e.mergedPrefetchedData_={};Object.assign(e.mergedPrefetchedData_,e.prefetchedData_,{clientSideGrafts:g})}return e.mergedPrefetchedData_};var erw;_.SM=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
erw=function(e,g,c){if(_.k2C(g))return e.prefetchCache_.get(_.IIv(g,c))};_.yq=new _.AU("NAVIGATION_TOKEN");var gjw=function(e){var g=this;var c=c===void 0?wuW():c;var k=k===void 0?_.Ss().resolve(_.yq):k;this.onePickCommand=e;this.JSC$13599_playlistNetworkManager=c;this.navigationManager=k;this.videoPickerBuilder=_.JpK("yt-addtoplaylist");_.VXI(f5s(jCM(YMs(this.videoPickerBuilder.setTitle(e.modalTitle).setSize(1E3).addView(Q2k()).addView(HbB())).addView("youtube"),e.selectButtonLabel)),function(I){g.handleAction(I)})};
gjw.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
gjw.prototype.handleAction=function(e){var g=this;if(e&&this.onePickCommand.listId&&e.action==="picked"&&e.docs){var c=[];e.docs.forEach(function(k){c.push({addedVideoId:k.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13599_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,c).then(function(){_.G("playlist_add_video_hard_reload_killswitch")?g.navigationManager.reload():cfn(g.navigationManager)})}};var k04=function(){if(this.constructor===k04)throw new TypeError("Vf");};
_.v=k04.prototype;_.v.dispose=function(){};
_.v.disconnect=function(){};
_.v.reconnect=function(){};
_.v.observe=function(e,g,c){return{element:e,option:c}};
_.v.unobserveByKey=function(){};var qPU=function(e,g){g=g===void 0?0:g;k04.call(this);this.viewroot=e;this.defaultPrescanHeight=g;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),e?{root:e,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.Y(qPU,k04);_.v=qPU.prototype;_.v.dispose=function(){this.disconnect();this.handlers.clear()};
_.v.disconnect=function(e){this.isConnected=!1;this.pauseObservingUntilReconnect=e===void 0?!1:e;this.observer.disconnect();e=_.w(this.prescanObservers.values());for(var g=e.next();!g.done;g=e.next())g.value.disconnect()};
_.v.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var e=_.w(this.handlers),g=e.next();!g.done;g=e.next()){var c=_.w(g.value);g=c.next().value;var k=c.next().value;c=!1;k=_.w(k.keys());for(var I=k.next();!I.done;I=k.next())if((I=I.value)&&I.state==="prescan"){c=!0;break}c&&IJu(this,g).observe(g);this.observer.observe(g)}}};
_.v.handleObserveEvent=function(e){e=_.w(e);for(var g=e.next();!g.done;g=e.next()){g=g.value;var c=this.handlers.get(g.target);if(c){var k=g.isIntersecting;c=_.w(c);for(var I=c.next();!I.done;I=c.next()){var J=_.w(I.value);I=J.next().value;J=J.next().value;I&&(I.state==="visible"&&k||I.state==="hidden"&&!k)&&(J(g.target,I.state),I.calledOnce&&this.unobserveByKey({element:g.target,option:I}))}}}};
_.v.handlePrescanEvent=function(e){e=_.w(e);for(var g=e.next();!g.done;g=e.next()){g=g.value;var c=this.handlers.get(g.target);if(c&&g.isIntersecting){c=_.w(c);for(var k=c.next();!k.done;k=c.next()){var I=_.w(k.value);k=I.next().value;I=I.next().value;k&&k.state==="prescan"&&(I(g.target,k.state),k.calledOnce&&this.unobserveByKey({element:g.target,option:k}))}}}};
_.v.observe=function(e,g,c){var k=(k=this.handlers.get(e))&&k.has(c)?{element:e,option:c}:void 0;if(k)return k;k={element:e,option:c};this.handlers.has(e)||this.handlers.set(e,new Map);var I=this.handlers.get(e);I&&!I.has(c)&&I.set(c,g);this.pauseObservingUntilReconnect||(c.state==="prescan"&&IJu(this,e).observe(e),this.observer.observe(e));return k};
_.v.unobserveByKey=function(e){var g=this.handlers.get(e.element);if(g&&g.has(e.option)){g.delete(e.option);if(e&&e.option.state==="prescan")for(var c=_.w(this.prescanObservers.values()),k=c.next();!k.done;k=c.next())k.value.unobserve(e.element);g.size===0&&(this.handlers.delete(e.element),this.observer.unobserve(e.element))}};
var IJu=function(e,g){var c=e.defaultPrescanHeight;g.hasAttribute("prescan-height")&&(g=Number(g.getAttribute("prescan-height")),isNaN(g)||(c=g));if(e.prescanObservers.has(c))return e.prescanObservers.get(c);g="-0.1px -0.1px "+c+"px -0.1px";g=new IntersectionObserver(e.handlePrescanEvent.bind(e),e.viewroot?{root:e.viewroot,rootMargin:g}:{rootMargin:g});e.prescanObservers.set(c,g);return g};var Jfq=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],vjv=function(){var e,g=this;this.JSC$13616_actionRouter=e=e===void 0?_.dF.getInstance():e;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return g.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return g.visibilityObservedElementHandlerKeys}}},wxw,Ko,rfs;
vjv.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.G("kevlar_use_vimio_behavior")&&_.uo("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=LdW())};
vjv.prototype.dispose=function(){this.visibilityMonitor&&_.a0(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
vjv.prototype.handleVisibilityRefreshed=function(){for(var e=_.w(this.targetMap.entries()),g=e.next();!g.done;g=e.next()){var c=_.w(g.value);g=c.next().value;c=c.next().value;_.qqw(this,g,c)}};
_.OH=function(e,g,c){Ko(e,c);var k=_.L8I(e,g);k.element=c;e.targetedElements.set(c,g);_.qqw(e,g,k)};
Ko=function(e,g){var c=e.targetedElements.get(g);if(c){var k=e.targetMap.get(c);k&&(delete k.element,e.targetMap.set(c,k));e.targetedElements.delete(g);e.visibilityObserver&&e.visibilityObservedElementHandlerKeys&&(c=e.visibilityObservedElementHandlerKeys.get(g))&&(e.visibilityObserver.unobserveByKey(c),e.visibilityObservedElementHandlerKeys.delete(g))}};
_.qqw=function(e,g,c){var k=c.action,I=c.element;I&&k&&(Jfq.includes(g)||_.uo("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||e.visibilityMonitor&&e.visibilityMonitor.isNodeVisible(I)?rfs(e,g,c):e.visibilityObserver&&(e.visibilityObservedElementHandlerKeys||(e.visibilityObservedElementHandlerKeys=new WeakMap),k=e.visibilityObserver.observe(I,function(){rfs(e,g,c);e.visibilityObservedElementHandlerKeys.delete(I)},{calledOnce:!0,
state:"visible"}),e.visibilityObservedElementHandlerKeys.set(I,k)))};
rfs=function(e,g,c){var k=c.action;(c=c.element)&&k&&(_.Rg(e.JSC$13616_actionRouter,[k],c),e.targetMap.delete(g),e.targetedElements.delete(c),e.triggeredTargets.add(g))};
_.L8I=function(e,g){var c=e.targetMap.get(g);c||(c={},e.targetMap.set(g,c));return c};
_.MG=function(){wxw||(wxw=new vjv);return wxw};var aJv=document.createElement("div");aJv.style.touchAction="pan-down";var rpC=aJv.style.touchAction==="pan-down";var njw,Rrk;njw=function(){this.hammerFn=qm4();this.JSC$13624_screenManager=_.gL();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.VF(83615);_.SD(this.JSC$13624_screenManager,this.ve);aIz()};
_.Co=function(){Rrk||(Rrk=new njw);return Rrk};
njw.prototype.registerTouchEvents=function(e,g,c){var k=_.Mb.apply(3,arguments),I=this.hammerFn(e,{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}]]});c&&I.set({touchAction:c});this.nodeManagerMapping.set(e,I);var J=
nee(g);k=_.w(k);for(var q=k.next();!q.done;q=k.next()){q=q.value;if(q.includes("swipe")||q.includes("pinch")||q.includes("pan"))q.includes("swipe")?I.get("swipe").set({enable:!0,direction:J,velocity:.2}):q.includes("pinch")?I.get("pinch").set({enable:!0}):q.includes("pan")&&(I.get("pan").set({enable:!0,direction:J}),I.get("swipe").set({enable:!0,direction:J,velocity:.2}),I.get("swipe").recognizeWith("pan"));Ejw(this,e,I,q)}};
var Ejw=function(e,g,c,k){c.on(k,function(I){if(k.includes("pinch"))e.lastPinchTime=Date.now();else if(k.includes("swipe")&&Date.now()-e.lastPinchTime<400)return;I.pointerType!=="mouse"&&(I=k==="doubletap"?{coordinates:I.center}:k.includes("pan")?I:k.includes("swipe")?{target:I.target}:{},g.dispatchEvent(new CustomEvent(k,{bubbles:!0,composed:!0,detail:I})))})};
njw.prototype.unregisterTouchEvents=function(e){var g=_.Mb.apply(1,arguments),c=this.nodeManagerMapping.get(e);if(c){g=_.w(g);for(var k=g.next();!k.done;k=g.next())c.off(k.value);this.nodeManagerMapping.delete(e);e.style.touchAction="unset"}};var W8Z=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;_.vg={getLocalStorage:_.n2(function(){try{var e=new GtU;var g=e.isAvailable()?e:null}catch(c){return null}return g?new _.LM(g):null}),
getSessionStorage:_.n2(function(){var e=new xWU;return e.isAvailable()?new _.LM(e):null})};var bcB=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},muA=function(){bcB.instance||(bcB.instance=new bcB);
return bcB.instance},pu6=function(e){var g=e.networkEvents;
e.networkEvents=[];return g};var hrI;hrI={};_.Xx1=Sn("yt-serviceworker-metadata",{objectStores:(hrI.auth={addedAtVersion:1},hrI["resource-manifest-assets"]={addedAtVersion:2},hrI),shared:!0,upgrade:function(e,g){g(1)&&At(e,"resource-manifest-assets");g(2)&&At(e,"auth")},
version:2});var b7U=self.location.origin+"/";hXC([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);hXC([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);hXC([/\.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\//]);hXC([/purge_shell=1/]);var G04=void 0;G04=G04===void 0?[]:G04;
for(var xVk=[],DVq=_.w(J5q),$VY=DVq.next();!$VY.done;$VY=DVq.next())xVk.push({key:$VY.value});for(var Yq4=_.w(G04),fJu=Yq4.next();!fJu.done;fJu=Yq4.next())xVk.push(fJu.value);var jWB,rp=_.kp==null?void 0:(jWB=_.kp.performance)==null?void 0:jWB.memory,xuU=!1,TzV={},YP8={},a1={},ns=navigator;var ex=function(e){this.JSC$13669_expiringStorage=new hK(e)};
ex.prototype.set=function(e,g,c){c=c!==void 0?Date.now()+c:void 0;this.JSC$13669_expiringStorage.set(e,g,c)};
ex.prototype.get=function(e){return this.JSC$13669_expiringStorage.get(e)};
ex.prototype.remove=function(e){this.JSC$13669_expiringStorage.remove(e)};var zXg=_.Ti(["https://www.youtube.com/",""]),H76=_.Ti(["https://studio.youtube.com/",""]),Vbg="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Uug=null,ypv;var icZ=_.Ti(["https://www.youtube.com/iframe_api"]),g4=function(){this.playerResolver_=_.i6();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.aX;this.playbackDurationSeconds_=0},PJY=function(e){var g=function(){return window.YT&&typeof window.YT.ready==="function"};
if(g())return _.No(window.YT);var c=_.i6(),k=_.C0("SCRIPT");k.onload=k.onreadystatechange=function(){k.readyState&&k.readyState!="loaded"&&k.readyState!="complete"||(k.onload=_.aX,k.onreadystatechange=_.aX,k.onerror=_.aX,g()?c.resolve(window.YT):c.reject(new _.E2("Failed to load the iframe player library","script.onload",k.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
k.onerror=function(I){k.onload=_.aX;k.onreadystatechange=_.aX;k.onerror=_.aX;c.reject(new _.E2("Failed to load the iframe player library","script.onerror",I&&I.target&&I.target.src))};
_.Eh(k,_.jw(icZ));e.insertBefore(k,e.firstChild);return c.promise},mVB=function(e,g,c){var k,I;
_.r(function(J){switch(J.nextAddress){case 1:return e.playbackEndedCallback_=c,_.lj(J,2),J.yield(PJY(g.parentElement||null),4);case 4:k=J.yieldResult;_.zn(J,3);break;case 2:return I=_.Qb(J),I instanceof _.E2&&I.args&&I.args[0]=="script.onerror"?_.mN(I):_.jW(I),J.return();case 3:k.ready(function(){return new k.Player(g,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:e.onPlayerReady_.bind(e),onStateChange:e.onPlayerStateChange_.bind(e),
onCueRangeExit:e.onCueRangeExit_.bind(e)}})}),_.Uh(J)}})};
_.v=g4.prototype;_.v.getPlayerPromise=function(){return this.playerPromise_};
_.v.onPlayerReady_=function(e){this.playerResolver_.resolve(e.target)};
_.v.onPlayerStateChange_=function(e){if(e.data==YT.PlayerState.PLAYING){e=e.target;var g=e.getCurrentTime();e.addCueRange("playback",g,g+this.playbackDurationSeconds_)}};
_.v.onCueRangeExit_=function(e){e.data=="playback"&&(e.target.stopVideo(),this.playbackEndedCallback_())};
_.v.stopVideo=function(){this.playerPromise_.then(function(e){e.stopVideo()})};
var pxq=function(e){e.playerVars_&&e.playerPromise_.then(function(g){typeof g.cueVideoByPlayerVars!="function"?_.mN(new _.E2("vmh: player API not ready","cueVideoByPlayerVars",typeof g.cueVideoByPlayerVars)):g.cueVideoByPlayerVars(e.playerVars_)})};
g4.prototype.playVideo=function(){var e=this;this.playerVars_&&this.playerPromise_.then(function(g){typeof g.loadVideoByPlayerVars!="function"?(g=new _.E2("vmh: player API not ready","loadVideoByPlayerVars",typeof g.loadVideoByPlayerVars),_.jW(g)):g.loadVideoByPlayerVars(e.playerVars_)})};
var T2Z=function(e,g,c,k,I){g&&(c===void 0&&(c=0),k===void 0&&(k=0),e.playbackDurationSeconds_=k/1E3,e.playerVars_={adformat:"17_8",videoId:g,suggestedQuality:"hd720",startSeconds:c/1E3,player_params:I})};
g4.prototype.mute=function(){this.playerPromise_.then(function(e){e.mute()})};
g4.prototype.unMute=function(){this.playerPromise_.then(function(e){e.unMute()})};var cXA=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var c$;c$=function(){this.tokenJars={};if(this.cookiesEnabled=_.a$()){var e=_.Lf.get("CONSISTENCY",void 0);e&&lJI(this,{encryptedTokenJarContents:e})}};
_.IKp=function(){c$.instance||(c$.instance=new c$);return c$.instance};
c$.prototype.handleResponse=function(e,g){if(!g)throw Error("$f");var c,k;g=((c=g.innerTubeRequest.context)==null?void 0:(k=c.request)==null?void 0:k.consistencyTokenJars)||[];var I;(e=(I=e.responseContext)==null?void 0:I.consistencyTokenJar)&&this.replace(g,e)};
c$.prototype.replace=function(e,g){e=_.w(e);for(var c=e.next();!c.done;c=e.next())delete this.tokenJars[c.value.encryptedTokenJarContents];lJI(this,g)};
var lJI=function(e,g){if(g.encryptedTokenJarContents&&(e.tokenJars[g.encryptedTokenJarContents]=g,typeof g.expirationSeconds==="string")){var c=Number(g.expirationSeconds);setTimeout(function(){delete e.tokenJars[g.encryptedTokenJarContents]},c*1E3);
e.cookiesEnabled&&_.r1("CONSISTENCY",g.encryptedTokenJarContents,c,void 0,!0)}};var AfB,kC;AfB=window.location.hostname.split(".").slice(-2).join(".");_.jh=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var e=_.uo("LOCATION_PLAYABILITY_TOKEN");_.uo("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=sWq(this))&&(e=this.localStorage.get("yt-location-playability-token"));e&&(this.locationPlayabilityToken=e,this.mostRecentPosition=void 0)};
_.jh.getInstance=function(){kC=_.Q0("yt.clientLocationService.instance");kC||(kC=new _.jh,_.BQ("yt.clientLocationService.instance",kC));return kC};
_.jh.prototype.setLocationOnInnerTubeContext=function(e){e.client||(e.client={});if(this.mostRecentPosition)e.client.locationInfo||(e.client.locationInfo={}),e.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),e.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),e.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),e.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)e.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.jh.prototype.handleResponse=function(e){var g;e=(g=e.responseContext)==null?void 0:g.locationPlayabilityToken;e!==void 0&&(this.locationPlayabilityToken=e,this.mostRecentPosition=void 0,_.uo("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=sWq(this))&&this.localStorage.set("yt-location-playability-token",e,15552E3):_.r1("YT_CL",JSON.stringify({loctok:e}),15552E3,AfB,!0))};
var sWq=function(e){return e.localStorage===void 0?new _.pt("yt-client-location"):e.localStorage};
_.jh.prototype.clearLocationPlayabilityToken=function(e){e==="TVHTML5"?(this.localStorage=sWq(this))&&this.localStorage.remove("yt-location-playability-token"):_.nd8("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.jh.prototype.getCurrentPositionFromGeolocation=function(){var e=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var g=!1,c=1E4;_.uo("INNERTUBE_CLIENT_NAME")==="MWEB"&&(g=!0,c=15E3);return new Promise(function(k,I){navigator.geolocation.getCurrentPosition(function(J){e.mostRecentPosition=J;k(J)},function(J){I(J)},{enableHighAccuracy:g,
maximumAge:0,timeout:c})})};
_.jh.prototype.createUnpluggedLocationInfo=function(e){var g={};e=e.coords;if(e==null?0:e.latitude)g.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)g.longitudeE7=Math.floor(e.longitude*1E7);if(e==null?0:e.accuracy)g.locationRadiusMeters=Math.round(e.accuracy);return g};
_.jh.prototype.createLocationInfo=function(e){var g={};e=e.coords;if(e==null?0:e.latitude)g.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)g.longitudeE7=Math.floor(e.longitude*1E7);return g};var F8u=function(e,g){var c=xf();e||(e="unknown");g||(g="unknown");e="MAIN_APP_WEB_PAGE_TYPE_"+e.toUpperCase();e in J$u||(e="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");g="MAIN_APP_WEB_REQUEST_TYPE_"+g.toUpperCase();g in vq1||(g="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.OT(c,{mainAppWeb:{pageType:e,requestType:g,isShellLoad:_.dH("IS_SHELL_LOAD",!1)}})},u4q={start:function(){_.OT(j_K(),{mainAppWeb:_.Pg()})},
success:function(){_.M1(j_K(),"SUCCESS")},
failure:function(){_.M1(j_K(),"FAILURE")},
cancelled:function(){_.M1(j_K(),"CANCELLED")}};var dVB,zrM,qjg;dVB=_.Ti(["/sw.js"]);zrM=_.Ti(["/sw.js?0"]);_.Hc1=_.jw(dVB);qjg=_.jw(zrM);var QWY=function(){var e=Error.apply(this,arguments);this.message=e.message;"stack"in e&&(this.stack=e.stack)};
_.Y(QWY,Error);_.Tb.prototype.load=function(e){this.megabloxUrl_=_.uo("YPC_MB_URL");_.D5(this.megabloxUrl_,(0,_.Ju)(function(){e&&e()},this))};
_.aoK=function(e,g,c,k,I,J,q,L,n,R,W){_.rXA(n);e.load((0,_.Ju)(function(){try{var b=J?J:_.uo("HL"),h=_.uo("SESSION_INDEX");_.R2C("client",function(){FCq("59",{helpCenterPath:"/youtube",locale:b,window:window}).JSC$10285_loadChatSupport({authuser:String(h)})})}catch(X){throw mi(10,W,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),I&&I(X),_.jW(X),X;
}UVn(this,g,c,k,I,J,q,L,n,R,W)},e))};
_.Tb.prototype.openFixFlowDialog=function(e,g,c,k){this.load((0,_.Ju)(function(){try{ojv(this,_.Q0("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(e).withIntegratorCallback(g).load(c,k)}catch(I){throw _.jW(I),I;}},this))};
var ojv=function(e,g,c,k){var I=g.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.G("enable_window_constrained_buy_flow_dialog")&&(I=I.usingPopupStyle(_.Q0("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));k&&(I=I.usingCloseCallback(k));g.bootstrap.fromPaymentsUrl(e.megabloxUrl_);e=g.bootstrap.asMashupMode(I);c=c?c:_.uo("HL");e.usingGaiaIndex(_.uo("SESSION_INDEX")).usingLocale(c).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.G("enable_google_payments_buyflow_material2_style_web")?
e.usingStyle(":m2;pc=#444;ac=#065fd4"):e.usingStyle(":md;pc=#444;ac=#065fd4");return e},UVn=function(e,g,c,k,I,J,q,L,n,R,W){try{var b=_.Q0("payments.business.integration");
if(!b)throw new QWY("payments.business.integration is undefined");var h=b.standaloneContextAuthId.forUserId(),X=ojv(e,b,J,function(){nKU(!1);L&&L()});
q&&X.usingServerAnalyticsEventHandler(q);var D=X.inStandaloneContext(h).buyFlow(function(f){if(f&&(!f.integratorData||f.integratorData===""||f.error))if(f.error!=null)if(String(f.error)==="-1")_.aKK(n);else{var l=String(f.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";mi(10,W,l,f.debugCode);_.ps(l,n,f.debugCode);l=new _.E2("PAYMENT_ERROR_MESSAGE::"+f.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+f.internalErrorDetails);
_.jW(l)}else mi(10,W,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.ps("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",n,"EMPTY_INTEGRATOR_DATA"),_.jW(Error("cg"));c&&(nKU(!1),c(f))}).withEncryptedParameters(g);
R&&D.withClientParameters(R8A(_.VKV(R)));D.load(function(){mi(24,W);_.h5("ttc",void 0,"commerce_transaction");Rt("commerce_transaction");k&&(k(),nKU(!0))},function(f){if(f==null?0:f.debugCode)var l=f==null?void 0:f.debugCode;
else if(!f||(f==null?0:f.debugCode))l="EMPTY_LOAD_FAILURE_ERROR",_.jW(Error(l));else{l="EMPTY_LOAD_FAILURE_DEBUG_CODE";var A=new _.E2("LOAD_FAILURE:"+f.message," DEBUG_CODE:"+l);_.jW(A)}mi(10,W,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",l);_.ps("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",n,l);_.jW(f);I&&I(f)})}catch(f){throw f instanceof QWY&&(mi(10,W,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),I&&I(f)),_.jW(f),f;
}};var ZcZ;ZcZ=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.q$p=function(e,g){g=g===void 0?!1:g;e=ZcZ.test(e)?_.HJ(e):null;!g&&window.payments||!e?(e=_.i6(),g=e.promise,e.resolve()):g=_.EQY(e,{attributes:{"data-payments-main":"",id:"payment-lib"}});return g};var V7B;V7B=_.Ti(["//www.googletagmanager.com/gtm.js?id=",""]);_.ID=function(e,g){_.di(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:g}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.uo("GL")}),g=_.C0("SCRIPT"),g.async=!0,_.Eh(g,_.jw(V7B,e)),g.id="gtm",e=document.getElementsByTagName("script"),e.length==0?document.head.appendChild(g):(e=e[0],e.parentNode.insertBefore(g,e)))};
_.JF=function(e){if(e=JSON.parse(e))window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)};var t7B,B24;t7B=_.Ti(["https://clients2.google.com/gr/gr_sync.js"]);_.v5U=function(){};
_.v5U.prototype.init=function(){if(B24()){var e=_.i6();e.resolve();return e.promise}return _.EQY(_.jw(t7B)).then(function(){if(!B24())throw Error("dg");},function(){throw Error("eg");
})};
_.wCq=function(){if(!B24())return"";var e=window.google.gr;e.init({async:{schedule:"sync"},merchantId:"youtube"});e.start();e=e.finish();return e==null?"":e};
B24=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.z=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Y(_.z,PolymerFakeBaseClassWithoutHtml);_.gk=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Y(_.gk,PolymerFakeBaseClassWithoutHtml);var RVe=window.ShadyDOM;var O6W,yX8,Clt,eK8,cG8,k8U,v$,UY;O6W=_.G("enable_shadydom_free_scoped_query_methods");yX8=_.G("enable_shadydom_free_scoped_node_methods");Clt=_.G("enable_shadydom_free_scoped_readonly_properties_batch_one");eK8=_.G("enable_shadydom_free_parent_node");cG8=_.G("enable_shadydom_free_children");k8U=_.G("enable_shadydom_free_last_child");v$=window.ShadyDOM;_.Bg=v$&&v$.noPatch&&v$.wrap?v$.wrap:v$?function(e){return v$.patch(e)}:function(e){return e};
UY=function(e){if(e instanceof ShadowRoot)this.host=(0,_.Bg)(e.host),this.root=e;else if(e.$$){this.host=(0,_.Bg)(e);var g;this.root=(g=e.root)!=null?g:this.host}else if(e.polymerController){this.host=(0,_.Bg)(e);var c;this.root=(c=this.host.shadowRoot)!=null?c:this.host}else this.root=this.host=(0,_.Bg)(e)};
KMC();MFW();IAg();JGW();gJt();var N2B={querySelector:function(e,g){g=i6g(g,ug(e));return _.G("sunnydom_native_scoped_query_selectors")?WMz(e,g):WMz(_.dp(e),g)},
querySelectorAll:function(e,g){g=i6g(g,ug(e));return _.G("sunnydom_native_scoped_query_selectors")?Array.from(b6z(e,g)):b6z(_.dp(e),g)}},SqY={appendChild:function(e,g){var c=ug(e),k=_.FZ(g);
return _.Nvt(_.dp(e),c?_.Hg(g,c,k):g)},
cloneNode:function(e,g){var c=_.FZ(e);e=_.dp(e);g=sY(e).prototype.cloneNode.call(e,g);return c?Qg(g,c):g},
contains:function(e,g){var c=ug(e),k=_.FZ(g);return c!==k?!1:SjK(e,g)},
insertBefore:function(e,g,c){var k=ug(e),I=_.FZ(g);e=_.dp(e);g=k?_.Hg(g,k,I):g;return sY(e).prototype.insertBefore.call(e,g,c)},
removeChild:function(e,g){var c=ug(e);e=_.dp(e);g=c?Qg(g,c):g;return sY(e).prototype.removeChild.call(e,g)},
replaceChild:function(e,g,c){var k=ug(e),I=_.FZ(g);g=k?_.Hg(g,k,I):I?Qg(g,I):g;c=k?Qg(c,k):c;e=_.dp(e);return sY(e).prototype.replaceChild.call(e,g,c)},
getRootNode:function(e,g){g=g===void 0?{composed:!0}:g;var c;if(((c=g)!=null?c:{}).composed)e=BvC(e);else{g=e;for(e=XZW(e);e;)g=e,e=m$e(e);e=g}return e}},wX8=Clt?{firstChild:Qo8,
nextSibling:d$e,previousSibling:H6C,firstElementChild:U$K,lastElementChild:Z66,nextElementSibling:uzW,previousElementSibling:zVU,childNodes:VFe}:{};eK8&&(wX8.parentNode=FMC);cG8&&(wX8.children=tFW);k8U&&(wX8.lastChild=oKU);O6W&&vJA(N2B);yX8&&vJA(SqY);qKC();var L28=function(e){this.node=e instanceof ShadowRoot?e.host:e};
rGp();aAC();var EJ8=new WeakMap;var bWz=Symbol("Cd");var DmA=new Set(["tap","track","down","up"]),$mt=_.G("pbcm_fi_query_decorators");var qr=function(){return _.gk.apply(this,arguments)||this};
_.Y(qr,_.gk);_.v=qr.prototype;_.v.getState=function(){return this.store.getState()};
_.v.dispatch=function(e){this.store.dispatch(e)};
_.v.beforeRegister=function(){if(this&&typeof this==="object"){var e;var g=!!this.useSignals||!((e=this.polymerController)==null||!e.useSignals)}else g=!1;if(!g&&this.properties)for(g=_.w(Object.keys(this.properties)),e=g.next();!e.done;e=g.next()){var c=e.value;e=this.properties[c];if(e.selector){if(e.computed)throw Error("lg");c=["reduxPropertiesRecomputeTrigger",'"'+c+'"'].concat(_.KY(e.selectorArgs||[])).join(",");e.computed="recomputeReduxSelector("+c+")"}}};
_.v.attached=function(){var e=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){e.reduxPropertiesRecomputeTrigger++}));
_.G("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.v.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.v.recomputeReduxSelector=function(e,g){var c=_.Mb.apply(2,arguments),k=this.properties[g].selector;if(!k)throw Error("jg`"+g);return k.apply(null,[this.store.getState()].concat(_.KY(c)))};
_.v.select=function(e){var g=_.Mb.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return e.apply(null,[this.store.getState()].concat(_.KY(g)))};
_.Bd.Object.defineProperties(qr.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
qr.prototype.recomputeReduxSelector=qr.prototype.recomputeReduxSelector;_.t([_.u(),_.B("design:type",Number)],qr.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.t([_.co()],qr);var La=[],iWe={},Ez=function(){return SX.apply(this,arguments)||this};
_.Y(Ez,SX);Ez.prototype._addPropertyEffect=function(e,g,c){if(g==="__observeEffects"&&c){var k,I=(k=c.info.method)!=null?k:c.info.methodName;if(I){var J=this[I];this[I]=function(){La.push(I);try{J==null||J.apply(this,arguments)}finally{La.pop()}}}}_.c6._addPropertyEffect.apply(this,[e,
g,c])};
Ez.prototype._setPendingProperty=function(e,g,c){if(La.length){var k=La[La.length-1],I;(I=iWe[this.is])!=null&&I.has(k)||(PCp(this.is,k),_.Y2("polymerPropertyChangedInObserver",{componentName:this.is,observerName:k}))}return _.c6._setPendingProperty.apply(this,[e,g,c])};
_.t([Tgq()],Ez);var mmK=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),TX8,Js={};_.G("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Js);var qY=function(){return _.gk.apply(this,arguments)||this};
_.Y(qY,_.gk);qY.prototype._setUnmanagedPropertyToNode=function(e,g,c){e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!0);if(c!==e[g]||typeof c==="object")e[g]=c;e.is&&e.polymerController&&e.polymerController!==e&&vo(e.is,g,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!1)};
_.t([_.co()],qY);pXV()&&(sg.prototype._setUnmanagedPropertyToNode=(new qY)._setUnmanagedPropertyToNode);_.tfU={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(e){},set polymerController(e){}}]};var RI=function(){var e=SX.apply(this,arguments)||this;e.json=function(){};
return e};
_.Y(RI,SX);RI.prototype.equals=function(e,g){return e===g};
RI.prototype.isEmpty=function(e){var g;(g=!e)||(g=_.Bz(e)&&e.length===0);return g};
_.t([Tgq()],RI);var yf1=function(e){e=k4p(e);Wn.call(this,e)};
_.Y(yf1,Wn);yf1.prototype.addProvider=function(e){e=e.key?e:k4p([e])[0];var g=this.keyIdToIndex.get(e.key.id);if(g){if(u8v(e,this.providers[g]))throw Error("mg`"+e.key.displayName);}else Wn.prototype.addProvider.call(this,e)};
var K8v=new yf1([]);var Ocq=!1;var oJK={};Ocq||(UmW(),Ocq=!0);
oJK.InjectBehavior={initializeInjection:function(){var e=this.provide;try{if((e=e!=null?e:[])&&e.length>0)for(var g=k4p(e),c=_.w(g),k=c.next();!k.done;k=c.next())K8v.addProvider(k.value);var I=new Set;dmg(this.behaviors||[],I);g={};for(var J=_.w(I),q=J.next();!q.done;q=J.next()){var L=q.value;L.inject&&Object.assign(g,L.inject)}this.inject&&Object.assign(g,this.inject);for(var n=_.w(Object.keys(g)),R=n.next();!R.done;R=n.next()){var W=R.value,b=g[W];try{this[W]=K8v.resolve(b)}catch(h){throw h;}}}catch(h){throw Error(h.message);
}}};var Vfq;var BXC=/\bclass\b/.test(function(){}.toString()),yGA=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var M71=function(e){this.wasDefined=!0;Array.isArray(e)||e instanceof Array?(this.JSC$13827_getImpl=e[0],this.JSC$13827_setImpl=e[1]):this.JSC$13827_getImpl=e};
_.v=M71.prototype;_.v.getWithPath=function(e){return MfU(this.JSC$13827_getImpl(),e)};
_.v.setWithPath=function(e,g){var c=this;if(e.length)throw Error("ng");if(!this.JSC$13827_setImpl)throw Error("og");Dc(function(){c.JSC$13827_setImpl(g)})};
_.v.notifyPath=function(){throw Error("pg");};
_.v.notifySplices=function(){throw Error("qg");};
_.v.getChangeRecordSignal=function(e,g){var c=this;if(e.length)throw Error("rg");return function(){var k=c.getWithPath(e);return{path:g!=null?g:"",base:k,value:k}}};
_.v.getSplicesSignal=function(){throw Error("sg");};
_.v.getPathMutationSignal=function(){throw Error("tg");};
_.v.pop=function(){throw Error("ug");};
_.v.push=function(){throw Error("vg");};
_.v.splice=function(){throw Error("wg");};
_.v.unshift=function(){throw Error("xg");};var r4=function(e){var g=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(e)||e instanceof Array?(this.JSC$13832_getImpl=e[0],this.JSC$13832_setImpl=e[1]):this.JSC$13832_getImpl=e;this.wasDefined=!1;_.EX(function(){g.wasDefined=g.JSC$13832_getImpl()!==void 0})};
r4.prototype.getWithPath=function(e){return MfU(this.JSC$13832_getImpl(),e)};
r4.prototype.setWithPath=function(e,g){var c=this;if(e[e.length-1]!=="*"&&e[e.length-1]!=="splices"){var k=_.EX(function(){return c.getWithPath([])});
if(e.length===0){if(!this.JSC$13832_setImpl)throw Error("yg");if(k===g)return;this.wasDefined||(this.wasDefined=g!==void 0);Dc(function(){c.JSC$13832_setImpl(g)})}else{for(var I=0;I<e.length-1;I++){if(!k)return;
k=k[e[I]]}I=e[e.length-1];k&&(k[I]=g);this.wasDefined||(this.wasDefined=e.length>1||g!==void 0)}CJk(this,e,{pathComponents:e,value:g})}};
r4.prototype.notifyPath=function(e,g){e.length===0?g&&this.setWithPath(e,g.value):CJk(this,e,{pathComponents:e,value:g==null?void 0:g.value,fallbackWhenUndefined:g==null?void 0:g.value})};
var CJk=function(e,g,c,k){if(e.setMutationSignal){var I=++e.mutationIndex,J=[e.observedPath],q=e.observedPath,L;g.length===0&&(L=q);for(var n=0;n<g.length;n++){var R=q.subPaths[g[n]];if(!R)break;J.push(R);q=R;n===g.length-1&&(L=R)}for(g=!1;J.length;)q=J.shift(),q.data={index:I,mutation:c,spliceMutationIndex:k},g||(g=q===L),g&&J.push.apply(J,_.KY(Object.values(q.subPaths)));Dc(function(){e.setMutationSignal(I)})}};
r4.prototype.notifySplices=function(e,g){var c=this,k=_.EX(function(){return c.getWithPath(e)}),I=[].concat(_.KY(e),["splices"]);
CJk(this,I,{pathComponents:I,value:{indexSplices:g}});if(k==null?0:k.length)g=this.mutationIndex,I=[].concat(_.KY(e),["length"]),CJk(this,I,{pathComponents:I,value:k.length},g)};
var ezv=function(e,g,c,k,I,J){e.notifySplices(c,[{index:k,addedCount:I,removed:J,object:g,type:"splice"}])},ghw=function(e,g){e=e.observedPath;
for(var c=0;c<g.length;c++){var k=g[c],I=e.subPaths[k];I||(I={pathComponents:g.slice(0,c+1),subPaths:{}},e.subPaths[k]=I);e=I}},koZ=function(e,g,c){ghw(e,g);
if(!e.getMutationSignal){var k=_.w(_.Wa(e.mutationIndex,void 0,"sNBMCd"));e.getMutationSignal=k.next().value;e.setMutationSignal=k.next().value}var I=e.getMutationSignal;return _.xF(function(){I();return c(c9Y(e,g))},void 0,"zvsXEd")};
r4.prototype.getChangeRecordSignal=function(e,g){var c=this,k=this.mutationIndex,I;return koZ(this,e,function(J){if(J&&J.index>k){var q=J.mutation;k=J.index;I=void 0}J=_.EX(function(){return c.getWithPath(e)});
if(q){var L=q.pathComponents[q.pathComponents.length-1],n=[].concat(_.KY(q.pathComponents));if(L==="splices"||L==="length")return{base:J,path:(g?[g].concat(_.KY(n)):n).join("."),value:q.value};var R=e.length>n.length?e:n,W;return{base:J!=null?J:q.fallbackWhenUndefined,path:(g?[g].concat(_.KY(R)):R).join("."),value:(W=_.EX(function(){return c.getWithPath(R)}))!=null?W:q.fallbackWhenUndefined}}I||(I={base:J,
path:(g?[g].concat(_.KY(e)):e).join("."),value:J});return I})};
r4.prototype.getSplicesSignal=function(e){var g=this.mutationIndex,c;return koZ(this,e,function(k){if(k&&k.index>g&&k.spliceMutationIndex!==g){var I=k.mutation;g=k.index;c=void 0}return I&&I.pathComponents[I.pathComponents.length-1]==="splices"?c=k=I.value:c})};
r4.prototype.getPathMutationSignal=function(e){var g=this;ghw(this,e);if(!this.getMutationSignal){var c=_.w(_.Wa(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=c.next().value;this.setMutationSignal=c.next().value}var k=this.getMutationSignal,I=this.mutationIndex,J;return _.xF(function(){k();var q=c9Y(g,e);if(q&&q.index>I&&q.mutation&&CC8(q.mutation.pathComponents,e)){var L=q.mutation;I=q.index}if(!J||I!==J.index){var n,R;q=(R=_.EX(function(){return g.getWithPath(e)}))!=null?R:(n=L)==null?
void 0:n.fallbackWhenUndefined;
J={index:I,value:q}}return J},void 0,"RXYC9b")};
var c9Y=function(e,g){e=e.observedPath;g=_.w(g);for(var c=g.next();!c.done;c=g.next())e=e.subPaths[c.value];return e.data};
r4.prototype.pop=function(e){var g=this,c=_.EX(function(){return g.getWithPath(e)});
if(!(c instanceof Array))throw Error("zg");var k=c.length>0,I=c.pop();k&&ezv(this,c,e,c.length,0,[I]);return I};
r4.prototype.push=function(e){var g=_.Mb.apply(1,arguments),c=this,k=_.EX(function(){return c.getWithPath(e)});
if(!(k instanceof Array))throw Error("Ag");var I=k.length,J=k.push.apply(k,_.KY(g));g.length&&ezv(this,k,e,I,g.length,[]);return J};
r4.prototype.splice=function(e,g,c){var k=_.Mb.apply(3,arguments),I=this,J=_.EX(function(){return I.getWithPath(e)});
if(!(J instanceof Array))throw Error("Bg");g<0?g=J.length-Math.floor(-g):g&&(g=Math.floor(g));var q=J.splice.apply(J,[g,c].concat(_.KY(k)));(k.length||q.length)&&ezv(this,J,e,g,k.length,q);return q};
r4.prototype.unshift=function(e){var g=_.Mb.apply(1,arguments),c=this,k=_.EX(function(){return c.getWithPath(e)});
if(!(k instanceof Array))throw Error("Cg");var I=k.unshift.apply(k,_.KY(g));g.length&&ezv(this,k,e,0,g.length,[]);return I};var aD=function(e,g,c){this.model=e;this.unknownSignalResolver=g;this.options=c;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];g=_.w(q9t());e=g.next().value;g=g.next().value;this.owner=e;this.disposeImpl=g};
aD.prototype.dispose=function(){if(!this.isDisposed){for(var e=_.w(this.childSignalProxies),g=e.next();!g.done;g=e.next())g.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Iev=function(e,g){e=Ou(e.owner);try{g()}finally{Ou(e)}};
aD.prototype.effect=function(e){Iev(this,function(){_.lu(e,"j")})};
var J9q=function(e,g){e.options!=null||(e.options={});var c;(c=e.options).immutableProps!=null||(c.immutableProps=new Set);e.options.immutableProps.add(g)},sUe=function(e,g){g=""+g;
vhq(e,g);var c,k;if((c=e.options)==null?0:(k=c.immutableProps)==null?0:k.has(g))return!0;var I;if((I=e.model.__signalCache)==null?0:I.has(g))c=e.model.__signalCache.get(g),Array.isArray(c)&&J9q(e,g);var J,q,L;return(L=(J=e.options)==null?void 0:(q=J.immutableProps)==null?void 0:q.has(g))!=null?L:!1},wrB=function(e,g){var c;
e.unknownSignalResolver&&(c=e.unknownSignalResolver(g));var k,I;((k=e.options)==null?0:(I=k.immutableProps)==null?0:I.has(g))?c!=null||(c=new M71(_.Wa(e.model[g],void 0,"By5iP"))):c!=null||(c=new r4(_.Wa(e.model[g],void 0,"CXghNc")));var J=e.model.hostElement;Object.defineProperty(e.model,g,{get:function(){AGg(J,g);return c.getWithPath([])},
set:function(q){wk(J,g);e.setWithPath([g],q)},
configurable:!0});return c},vhq=function(e,g){var c,k,I;
((c=e.model.__signalCache)==null||!c.has(g))&&((k=e.options)==null?0:(I=k.externalSignalProps)==null?0:I.has(g))&&e.model[g]},G5=function(e,g){g=""+g;
var c=e.signalCache[g];if(c!==void 0)return c;c=!1;vhq(e,g);var k;if((k=e.model.__signalCache)==null?0:k.has(g))if(c=e.model.__signalCache.get(g),Array.isArray(c))c=!0,J9q(e,g);else return e.signalCache[g]=e.model.__signalCache.get(g).signal,e.signalCache[g];var I,J;k=(J=(I=e.options)==null?void 0:I.reactivityMode)!=null?J:0;var q,L;if(!((q=e.options)==null?0:(L=q.reactiveProps)==null?0:L.has(g))&&!c&&k===1)throw Error("Dg`"+g);I=c?qbn(e,g):wrB(e,g);return e.signalCache[g]=I},qbn=function(e,g){var c=
Object.getOwnPropertyDescriptor(e.model.constructor.prototype,g),k=function(){return e.model[g]};
return new M71(c&&c.get&&!c.set?k:[k,function(I){e.model[g]=I}])};
aD.prototype.getWithPath=function(e){var g=_.w(e);e=g.next().value;g=N_(g);AGg(this.model.hostElement,""+e);return G5(this,e).getWithPath(g)};
aD.prototype.setWithPath=function(e,g){if(e.length){wk(this.model.hostElement,e.join("."));var c=_.w(e);e=c.next().value;c=N_(c);G5(this,e).setWithPath(c,g)}};
aD.prototype.getPathMutationSignal=function(e){var g=_.w(e);e=g.next().value;g=N_(g);return G5(this,e).getPathMutationSignal(g)};
aD.prototype.notifyPath=function(e,g){var c=_.w(e);e=c.next().value;c=N_(c);G5(this,e).notifyPath(c,g)};
var L0k=function(e,g){if(g.type==="literal")return function(){return{rootWasDefined:!0,value:g.value}};
var c=hs(g.path),k=_.w(c),I=k.next().value;k=N_(k);var J,q;if(g.type==="path"&&(c.length===1||((J=e.options)==null?0:(q=J.immutableProps)==null?0:q.has(I))))return function(){var b=e.getWithPath(c.slice(0,1));b=MfU(b,c.slice(1));return{rootWasDefined:G5(e,c[0]).wasDefined,value:b}};
var L=G5(e,I);if(g.type==="path"){var n=L.getPathMutationSignal(k);return function(){var b,h=(b=n())==null?void 0:b.value;return{rootWasDefined:L.wasDefined,value:h}}}if(g.type==="splices"){var R=L.getSplicesSignal(k);
return function(){var b=R();return{rootWasDefined:L.wasDefined,value:b}}}var W=L.getChangeRecordSignal(k,""+I);
return function(){var b=W();return{rootWasDefined:L.wasDefined,value:b}}},Jxv=function(e,g,c){var k=c.map(function(L){return L0k(e,L)}),I=c.length===0,J=[],q=c.length!==1||c[0].type!=="path"?!1:!0;
e.effect(function(){for(var L=k.length,n=[],R=!!J.length,W=0;W<L;W++){var b=k[W](),h=b.rootWasDefined;b=b.value;I||(I=h);n[W]=b;q&&(n[W+L]=R?J[W]:n[W],J[W]=b)}I&&z7(e.owner,function(){return void g.apply(null,_.KY(n))})})},efq=function(e,g,c,k,I){var J=G5(e,g);
I!==void 0&&J.setWithPath([],I);Jxv(e,function(){var q=_.Mb.apply(0,arguments);wk(e.model.hostElement,g,!0);J.setWithPath([],c.apply(null,_.KY(q)))},k)};
aD.prototype.arrayPush=function(e){var g=_.Mb.apply(1,arguments),c=_.w(e),k=c.next().value;c=N_(c);k=G5(this,k);return k.push.apply(k,[c].concat(_.KY(g)))};
aD.prototype.arraySplice=function(e,g,c){var k=_.Mb.apply(3,arguments),I=_.w(e),J=I.next().value;I=N_(I);J=G5(this,J);return J.splice.apply(J,[I,g,c].concat(_.KY(k)))};
aD.prototype.arrayUnshift=function(e){var g=_.Mb.apply(1,arguments),c=_.w(e),k=c.next().value;c=N_(c);k=G5(this,k);return k.unshift.apply(k,[c].concat(_.KY(g)))};
aD.prototype.notifySplices=function(e,g){var c=_.w(e);e=c.next().value;c=N_(c);G5(this,e).notifySplices(c,g)};var r9B=!0,aeM=!1,F8K=!1,nhu=!1,Rzv=0;nhu=!1;Rzv=0;r9B=!0;aeM=F8K=!1;var EPA=/([^\s]+?)\(([\s\S]*)\)/,aS8=/\.([^.]+)$/,bEt=/\\,/g,Loe=/&comma;/g,rxp=/\\(.)/g,Wog=[],nPK={"*":"wildcard",splices:"splices"};var iEA=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"),$gA=/[A-Z]/,EhY=["class","hidden","id","on-dom-change"],mgg=new Set([].concat(_.KY(EhY),
["if","notify-dom-change","restamp"])),pEA=new Set([].concat(_.KY(EhY),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),T7v=new Set(["restamp"]);var mPp=new Set(["className","id"]);var u_C=Symbol(),ZEt=window;var OEV=window;var IJK=0,ert=0,x_=[],k06=0,CYq=!1,cfA=document.createTextNode("");(new window.MutationObserver(gjt)).observe(cfA,{characterData:!0});var $_=new Map,DF=0,W0w=function(e){this.mappedHandleId=e},vjC=function(e,g,c,k){this.mappedHandleId=e;
var I=this;this.mappedHandleId=e;this.callback=g;this.waitTime=c;this.schedulerPriority=k;this.handleId=_.ft.addJob(function(){I.callback();$_.delete(I.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.Y(vjC,W0w);vjC.prototype.cancel=function(){_.ft.cancelJob(this.handleId);$_.delete(this.mappedHandleId)};
var wxz=function(e,g){this.mappedHandleId=e;var c=this;this.mappedHandleId=e;this.callback=g;this.handleId=Jfv(function(){c.callback();$_.delete(c.mappedHandleId)})};
_.Y(wxz,W0w);wxz.prototype.cancel=function(){var e=this.handleId-ert;e<0||x_.length<=e||(x_[e]=null);$_.delete(this.mappedHandleId)};var aJC=function(){};
aJC.prototype.cancel=function(){this.jobHandle!==void 0&&(qqz(this.jobHandle),this.jobHandle=void 0)};
aJC.prototype.run=function(e,g,c){var k=this;this.cancel();this.callback=e;this.jobHandle=_.Y_(function(){e();k.callback=void 0},g,c)};
aJC.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var L8p=new WeakMap;var bHk=pQ(function(e){for(var g=e,c=0;c<3;c++)g=Object.getPrototypeOf(g);delete g.prototype.connectedCallback;var k=function(){return e.apply(this,arguments)||this};
_.Y(k,e);k.prototype._attachDom=function(I){if(!I)return null;var J=(0,_.Bg)(this.hostElement);J.attachShadow({mode:"open",shadyUpgradeFragment:I});J.shadowRoot.appendChild(I);return J.shadowRoot};
k.prototype._takeAttributes=function(){for(var I=this.hostElement.attributes,J=0;J<I.length;J++){var q=I[J],L=void 0,n=void 0;(n=(L=this).__attributeReaction)==null||n.call(L,q.name,null,q.value)}};
k.prototype._readyClients=function(){e.prototype._readyClients.call(this);this.root=this};
k.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);e.prototype.connectedCallback.call(this)};
_.Bd.Object.defineProperties(k,{template:{configurable:!0,enumerable:!0,get:function(){return k.prototype._template}}});
return k}),hz4=pQ(function(e){var g=function(){return e.apply(this,arguments)||this};
_.Y(g,e);g.prototype.created=function(){if(this.__notifyEffects)for(var c=_.w(Object.values(this.__notifyEffects)),k=c.next();!k.done;k=c.next()){k=_.w(k.value);for(var I=k.next();!I.done;I=k.next())I.value.fn=W8V}if(this.__reflectEffects)for(c=_.w(Object.values(this.__reflectEffects)),k=c.next();!k.done;k=c.next())for(k=_.w(k.value),I=k.next();!I.done;I=k.next())I.value.fn=bce};
g.prototype._addEventListenerToNode=function(c,k,I){c=Po(c);iq(c,k,I)||e.prototype._addEventListenerToNode.call(this,c,k,I)};
g.prototype._removeEventListenerFromNode=function(c,k,I){c=Po(c);Pd(c,k,I)||e.prototype._removeEventListenerFromNode.call(this,c,k,I)};
g.prototype._propertiesChanged=function(c,k,I){if(this.__dataToNotify&&this.__notifyEffects)for(var J=_.w(Object.keys(this.__dataToNotify)),q=J.next();!q.done;q=J.next()){q=q.value;var L=Ejz(q);this.__notifyEffects[L]||delete this.__dataToNotify[q]}else this.__dataToNotify=null;e.prototype._propertiesChanged.call(this,c,k,I)};
g.prototype.fire=function(c,k,I){k=k===void 0?{}:k;var J;return _.oC(Po((J=I==null?void 0:I.node)!=null?J:this),c,k,I)};
g.prototype._ensureAttribute=function(c,k){var I=Po(this);I.hasAttribute(c)||XA(I,k,c)};
g.prototype.isLightDescendant=function(c){var k=Po(this);return Po(k)!==c&&_.o1(k).contains(c)&&_.o1(k).getRootNode()===_.o1(c).getRootNode()};
return g});
_.Kz.ready=function(){var e;((e=this.hostElement)!=null?e:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var g;((g=this.hostElement)!=null?g:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Jc._subscribeIronResize=function(e){var g;((g=e.hostElement)!=null?g:e).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Jc._unsubscribeIronResize=function(e){var g;((g=e.hostElement)!=null?g:e).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var G06=[Array,Boolean,Date,Number,Object,String],pO=function(e,g,c,k){this.polySiInfo=e;this.polySiParams=g;this.polySiContext=c;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;k||this instanceof HTMLElement&&(k=this);if(!k)throw Error("Kg");this.allowedProps=g.allowedProps;this.hostElement=k;this.is=e.is;this.upgradeDisabled=!!g.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");e=new Set(g.reactiveSchemas.filter(function(I){return I.type!==
"observe"}).map(function(I){return I.propertyKey}));
this.signalProxy=new aD(this,void 0,{reactiveProps:e,reactivityMode:g.reactivityMode});this.__dataHasAccessor={};g=_.w(g.reactiveSchemas);for(e=g.next();!e.done;e=g.next())e=e.value,e.type==="signal"&&(this.__dataHasAccessor[e.propertyKey]=!0);this.upgradeDisabled||Xrn(this)};
pO.prototype.getExtraMethodsToForward=function(){return[]};
var Xrn=function(e){e.polySiContext.didRegister||(e.registered(),e.polySiContext.didRegister=!0);e.polySiContext.finalizedTemplate||(e.polySiContext.finalizedTemplate={},e.polySiParams.templateGetter&&(e.polySiContext.finalizedTemplate.processedTemplate=M5U(e.polySiParams.templateGetter,e.polySiParams.is)));GoY(e);var g=e.hostElement;g.loggingStatus!=null||(g.loggingStatus={});g.loggingStatus.isInitializing=!0;_.EX(function(){return void e.created()});
g.loggingStatus.isInitializing=!1;e.isPolySiElementConnected&&xPI(e)},xPI=function(e){e.didCallReady||(_.EX(function(){return void e.ready()}),e.didCallReady=!0);
e.isAttached=!0;e.attached()};
_.v=pO.prototype;_.v.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||xPI(this)};
_.v.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.v.attributeChangedCallback=function(e,g,c){if(this.upgradeDisabled)e==="disable-upgrade"&&c===null&&(this.upgradeDisabled=!1,Xrn(this));else if(g!==c){var k=_.O4(e),I=this.polySiContext.typesForSignals[k];if(I&&(!this.reflecting||_.G("polysi_attribute_changed_serializing_killswitch"))){switch(I){case Object:try{var J=JSON.parse(c)}catch(L){J=c}break;case Array:try{J=JSON.parse(c)}catch(L){J=null}break;case Date:J=isNaN(c)?String(c):Number(c);J=new Date(J);break;case Boolean:J=c!==null;break;case Number:J=
Number(c);break;default:J=c}this[k]=J}k=_.w(this.polySiParams.behaviors);for(I=k.next();!I.done;I=k.next())J=void 0,(J=I.value.attributeChanged)==null||J.call(this,e,g,c);var q;(q=this.attributeChanged)==null||q.call(this,e,g,c)}};
_.v.attributeChangedCallbackWrapper=function(e,g,c){this.attributeChangedCallback(e,g,c)};
_.v.setPropertiesFromInitialAttributeValues=function(){for(var e=0;e<this.hostElement.attributes.length;e++){var g=this.hostElement.attributes[e];(g.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(g.name))&&this.attributeChangedCallback(g.name,null,g.value)}};
_.v.created=function(){this.provide=this.polySiParams.provide;var e;(e=this.initializeInjection)==null||e.call(this);e=_.w(this.polySiParams.reactiveSchemas);for(var g=e.next();!g.done;g=e.next())g=g.value,g.type==="signal"&&(this.mutablePropNames.add(g.propertyKey),G5(this.signalProxy,g.propertyKey));XxC(this,this.polySiInfo,this.polySiParams.behaviors);e=_.w(this.polySiParams.reactiveSchemas);for(g=e.next();!g.done;g=e.next())g=g.value,g.type==="signal"&&g.value!==void 0&&(this.signalProxy.model[g.propertyKey]=
typeof g.value==="function"?g.value.call(this):g.value);if(this.polySiParams.signalProperties)for(e=_.w(this.polySiParams.signalProperties),g=e.next();!g.done;g=e.next()){g=g.value;var c=void 0;((c=this.__signalCache)==null?0:c.has(g))||(this.signalProxy.model[g]=void 0)}nhu||DPw(this);hrp(this);e=_.w(this.polySiParams.behaviors);for(g=e.next();!g.done;g=e.next())c=void 0,(c=g.value.created)==null||c.call(this);var k;(k=this.polySiInfo.created)==null||k.call(this)};
_.v.registered=function(){var e=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var g=Object.getPrototypeOf(this);g.addReactiveSchema=function(L){e.polySiParams.reactiveSchemas.push(L)};
for(var c=_.w(this.polySiParams.behaviors),k=c.next();!k.done;k=c.next()){var I=void 0;(I=k.value.beforeRegister)==null||I.call(g)}var J;(J=this.polySiInfo.beforeRegister)==null||J.call(g);g.addReactiveSchema=DVU;c=_.w(this.polySiParams.behaviors);for(k=c.next();!k.done;k=c.next())I=void 0,(I=k.value.registered)==null||I.call(g);var q;(q=this.polySiInfo.registered)==null||q.call(g)};
_.v.ready=function(){var e;(e=this.beforeReady)==null||e.call(this);nhu&&DPw(this);var g;if(e=(g=this.polySiContext.finalizedTemplate)==null?void 0:g.processedTemplate){e=KoK(e.template,e.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:e.hasInsertionPoint,thisCtx:this});g=e.nodesById;e=e.root;var c=this.hostElement;var k=k===void 0?!1:k;c=(0,_.Bg)(c);if(!c.attachShadow)throw Error("Id");if(!c.shadowRoot||k)c.attachShadow({mode:"open",shadyUpgradeFragment:e}),c.shadowRoot.appendChild(e);
this.root=c.shadowRoot;this.$=g}$PZ(this);k=_.w(this.polySiParams.behaviors);for(g=k.next();!g.done;g=k.next())e=void 0,(e=g.value.ready)==null||e.call(this);var I;(I=this.polySiInfo.ready)==null||I.call(this)};
_.v.attached=function(){for(var e=_.w(this.polySiParams.behaviors),g=e.next();!g.done;g=e.next()){var c=void 0;(c=g.value.attached)==null||c.call(this)}var k;(k=this.polySiInfo.attached)==null||k.call(this)};
_.v.detached=function(){for(var e=_.w(this.polySiParams.behaviors),g=e.next();!g.done;g=e.next()){var c=void 0;(c=g.value.detached)==null||c.call(this)}var k;(k=this.polySiInfo.detached)==null||k.call(this)};
var GoY=function(e){for(var g=_.w(e.polySiParams.behaviors),c=g.next();!c.done;c=g.next())if(c=c.value,c.listeners)for(var k in c.listeners)yxg(e,e.hostElement,k,c.listeners[k]);if(e.polySiInfo.listeners)for(var I in e.polySiInfo.listeners)yxg(e,e.hostElement,I,e.polySiInfo.listeners[I])},yxg=function(e,g,c,k,I){e=OWC(e,k,I);
iq(g,c,e)||g.addEventListener(c,e);return e},DPw=function(e){for(var g=_.w(e.polySiParams.reactiveSchemas),c=g.next();!c.done;c=g.next())c=c.value,c.type==="compute"||c.type==="computeWithMethod"?gPW(e.signalProxy,c,e):c.type==="redux"?ISp(e.signalProxy,c,e.store):c.type==="signal"&&c.readOnly&&kZ6(e.signalProxy,c)},$PZ=function(e){for(var g=_.w(e.polySiParams.reactiveSchemas),c=g.next(),k={};!c.done;k={schema$jscomp$12:void 0},c=g.next())k.schema$jscomp$12=c.value,k.schema$jscomp$12.type==="notify"?
vP6(e.signalProxy,k.schema$jscomp$12,e.hostElement):k.schema$jscomp$12.type==="observe"?wE8(e.signalProxy,k.schema$jscomp$12,e):k.schema$jscomp$12.type==="reflect"&&e.signalProxy.effect(function(J){return function(){var q=e.signalProxy.getWithPath([J.schema$jscomp$12.propertyKey]);
e.reflecting=!0;XEv(e.hostElement,J.schema$jscomp$12.propertyKey,q,!0);e.reflecting=!1}}(k));
if(e.reflectedAttributes)for(g=_.w(Object.entries(e.reflectedAttributes)),k=g.next(),c={};!k.done;c={key$jscomp$940:void 0,value$jscomp$10359:void 0},k=g.next()){var I=_.w(k.value);k=I.next().value;I=I.next().value;c.key$jscomp$940=k;c.value$jscomp$10359=I;e.signalProxy.effect(function(J){return function(){e.reflecting=!0;XEv(e.hostElement,J.key$jscomp$940,(0,J.value$jscomp$10359)(),!0);e.reflecting=!1}}(c))}};
_.v=pO.prototype;_.v._setPendingProperty=function(e,g){this.set(e,g);return!1};
_.v._enableProperties=function(){};
_.v._setPendingPropertyOrPath=function(e,g){this.notifyPath(e,g);return!1};
_.v._addPropertyEffect=function(){};
_.v._stampTemplate=function(){throw Error("Lg");};
_.v.fire=function(e,g,c){g=g===void 0?{}:g;c=c===void 0?{}:c;var k,I,J={bubbles:(k=c.bubbles)!=null?k:!0,cancelable:!!c.cancelable,composed:(I=c.composed)!=null?I:!0},q;return _.oC($V8((q=c.node)!=null?q:this.hostElement),e,g,J)};
_.v.isLightDescendant=function(e){return this.hostElement!==e&&_.o1(this.hostElement).contains(e)&&_.o1(this.hostElement).getRootNode()===_.o1(e).getRootNode()};
_.v.get=function(e,g){var c=hs(e);return g?MfU(g,c):e==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(c)};
_.v.linkPaths=function(){};
_.v.listen=function(e,g,c){e=$V8(e);this.boundListeners!=null||(this.boundListeners=new WeakMap);var k=this.boundListeners.get(e);k||(k={},this.boundListeners.set(e,k));var I=g+c;k[I]||(k[I]=yxg(this,e,g,c))};
_.v.notifyPath=function(e,g){this.signalProxy.notifyPath(hs(e),arguments.length===2?{value:g}:void 0)};
_.v.canNotifyPath=function(e){return this.mutablePropNames.has(e)&&!sUe(this.signalProxy,e)};
_.v.notifySplices=function(e,g){this.signalProxy.notifySplices(hs(e),g)};
_.v.pop=function(e){var g=this.signalProxy;e=hs(e);var c=_.w(e);e=c.next().value;c=N_(c);return G5(g,e).pop(c)};
_.v.push=function(e){var g=_.Mb.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[hs(e)].concat(_.KY(g)))};
_.v.set=function(e,g,c){if(c)throw Error("Mg");e==="hidden"?this.hostElement.hidden=!!g:this.signalProxy.setWithPath(hs(e),g)};
_.v.setProperties=function(e){e=_.w(Object.entries(e));for(var g=e.next();!g.done;g=e.next()){var c=_.w(g.value);g=c.next().value;c=c.next().value;this[g]=c}};
_.v.splice=function(e,g,c){var k=_.Mb.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[hs(e),g,c].concat(_.KY(k)))};
_.v.unlinkPaths=function(){};
_.v.unlisten=function(e,g,c){e=$V8(e);if(this.boundListeners){var k=this.boundListeners.get(e);if(k){c=g+c;var I=k[c];I&&(Pd(e,g,I)||e.removeEventListener(g,I),delete k[c])}}};
_.v.unshift=function(e){var g=_.Mb.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[hs(e)].concat(_.KY(g)))};
_.Bd.Object.defineProperties(pO.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 sWv=[Array,Boolean,Date,Number,Object,String];var dVe=!1;var na=function(){var e=HTMLElement.apply(this,arguments)||this;e.restamp=!1;e.notifyDomChange=!1;e.JSC$13940_didCallConnected=!1;e.JSC$13940_renderDebouncer=null;e.disableTemplateUpdateSignalImpl=T5()?void 0:_.Wa(!1,void 0,"kCcqO");var g;e.getDisableTemplateUpdate=(g=e.disableTemplateUpdateSignalImpl)==null?void 0:g[0];var c;e.setDisableTemplateUpdate=(c=e.disableTemplateUpdateSignalImpl)==null?void 0:c[1];return e};
_.Y(na,HTMLElement);var YbI=function(e){e.conditionSignalImpl!=null||(e.conditionSignalImpl=new r4(_.Wa(!1,void 0,"ahkyAc")));return e.conditionSignalImpl};
_.v=na.prototype;_.v.showHideChildren=function(e){feq(this,e,this.if)};
_.v.attributeChangedCallback=function(e,g,c){if(this.JSC$13940_didCallConnected)throw Error("Qg`"+e);e==="notify-dom-change"?this.notifyDomChange=c!==null:e==="restamp"&&(this.restamp=c!==null)};
_.v.debounceRender=function(){this.JSC$13940_renderDebouncer=_.US(this.JSC$13940_renderDebouncer,pb,this.JSC$13940_renderImpl.bind(this));_.og(this.JSC$13940_renderDebouncer)};
_.v.disconnectedCallback=function(){var e=(0,_.Bg)(this).parentNode;(!e||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e&&!e.host)&&jck(this)};
_.v.connectedCallback=function(){var e=this;if(_.G("ps_dom_if_require_parent_signal_proxy_killswitch")||this.parentSignalProxy)this.JSC$13940_didCallConnected=!0,r9B?zrg():this.style.display="none",this.parentSignalProxy.isDisposed&&!_.G("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){YbI(e).getWithPath([]);e.debounceRender()});
else{var g=(0,_.Bg)(this).parentNode,c={parentNode:g==null?void 0:g.nodeName};g instanceof Element&&(c.parentClassName=g.className);_.mN(new _.E2("PsDomIf connected with undefined parentSignalProxy",c))}};
_.v.render=function(){_.Bk()};
_.v.JSC$13940_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var e=this.if,g=!1;if(e){this.hasInstance()||(iHk(this),g=!0);a:{var c=(0,_.Bg)(this).parentNode;if(this.hasInstance()){var k=this.instance.children;if((k==null?0:k.length)&&(0,_.Bg)(this).previousSibling!==k[k.length-1])for(var I=0;I<k.length;I++)(0,_.Bg)(c).insertBefore(k[I],this)}else{if(!c){c=!1;break a}P_k(this,c)}c=!0}if(!c)return}else this.restamp&&jck(this);feq(this,!1,e);e&&!g&&iHk(this);aeM&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.v.hasInstance=function(){return!!this.instance};
var P_k=function(e,g){var c=e.parentSignalProxy;if(T5()){var k=_.w(_.Wa(!0,void 0,"QNXUce"));var I=k.next().value;k=k.next().value;c=e.parentSignalProxy}else{var J;var q=new aD((J=mPI(e))!=null?J:{},function(n){var R=G5(e.parentSignalProxy,n).getChangeRecordSignal([]);n=_.Wa(void 0,void 0,"mIYvwe");var W=new r4(n);q.effect(function(){if(e.getDisableTemplateUpdate&&!e.getDisableTemplateUpdate()){var b=R();W.notifyPath(hs(b.path),{value:b.value})}});
return W});
e.parentSignalProxy.childSignalProxies.push(q);var L=c=q}c=KoK(e.templateInfo,e.templateInfo.nodeInfoList,c,{eventListenerHost:e.eventListenerHost,hasInsertionPoint:e.templateInfo.hasInsertionPoint,thisCtx:e.eventListenerHost,enabledSignal:T5()?I:void 0,getModel:function(){return mPI(e)}}).root;
e.instance={root:c,children:[],hidden:!1,signalProxy:L,getTemplateUpdatesEnabled:I,setTemplateUpdatesEnabled:k};L=_.w(c.childNodes);for(I=L.next();!I.done;I=L.next())e.instance.children.push(I.value);(0,_.Bg)(g).insertBefore(e.instance.root,e)},mPI=function(e){if((e=e.parentSignalProxy.model)&&!e.hostElement){var g={},c;
for(c in e)e.hasOwnProperty(c)&&(g[c]=e[c]);return g}},jck=function(e){if(e.instance){var g=e.instance.children;
if(g.length){var c=(0,_.Bg)(g[0]).parentNode;if(c){c=(0,_.Bg)(c);for(var k=0;k<g.length;k++)c.removeChild(g[k])}}T5()?e.instance.setTemplateUpdatesEnabled(!1):e.instance.signalProxy.dispose();e.instance=void 0}},feq=function(e,g,c){g=g||!c;
e.instance&&e.instance.hidden!==g&&(e.instance.hidden=g,u4v(g,e.instance.children))},iHk=function(e){if(T5()){var g=e.instance;
g&&z7(e.parentSignalProxy.owner,function(){return!g.getTemplateUpdatesEnabled()})&&g.setTemplateUpdatesEnabled(!0)}else e.setDisableTemplateUpdate(!1)};
_.Bd.Object.defineProperties(na.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var e=this;return z7(this.parentSignalProxy.owner,function(){return YbI(e).getWithPath([])})},
set:function(e){e||(T5()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));YbI(this).setWithPath([],!!e)}}});
_.Bd.Object.defineProperties(na,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",na);var pru=[],RD=function(){var e=HTMLElement.apply(this,arguments)||this;e.as="item";e.indexAs="index";e.itemsIndexAs="itemsIndex";e.targetFramerate=20;e.notifyDomChange=!1;e.isDetached=!1;e.JSC$13947_renderDebouncer=null;e.instances=[];e.chunkingId=null;e.chunkCount=null;e.shouldMeasureChunk=!1;e.shouldContinueChunking=!1;e.renderStartTime=null;e.JSC$13947_didCallConnected=!1;return e};
_.Y(RD,HTMLElement);var Tck=function(e){e.itemSignalImpl!=null||(e.itemSignalImpl=new r4(_.Wa(pru,void 0,"fBC3h")));return e.itemSignalImpl},leB=function(e,g){Array.isArray(g)||(g=pru);
Tck(e).setWithPath([],g)};
_.v=RD.prototype;_.v.showHideChildren=function(e){for(var g=_.w(this.instances),c=g.next();!c.done;c=g.next())u4v(e,c.value.children)};
_.v.notifyPath=function(e,g){e=hs(e);e[0]==="items"&&(e.length===1?leB(this,g):Tck(this).setWithPath(e.slice(1),g))};
_.v.canNotifyPath=function(e){return e==="items"};
_.v.attributeChangedCallback=function(e,g,c){if(this.JSC$13947_didCallConnected)throw Error("Rg`"+e);e==="as"?this.as=c:e==="index-as"?this.indexAs=c:e==="items-index-as"?this.itemsIndexAs=c:e==="initial-count"?this.initialCount=Number(c):e==="notify-dom-change"?this.notifyDomChange=c!==null:e==="target-framerate"&&(this.targetFramerate=Number(c))};
_.v.disconnectedCallback=function(){this.isDetached=!0;for(var e=0;e<this.instances.length;e++)A9B(this,e);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.v.connectedCallback=function(){var e=this;if(_.G("ps_dom_repeat_require_parent_signal_proxy_killswitch")||this.parentSignalProxy){var g=Tck(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var I=g(),J=hs(I.path);if(J[0]===void 0||J[0]==="splices"||J[0]==="length")e.debounceRender();else{var q=J[0];if(q=e.instances[typeof q==="string"?Math.floor(Number(q)):q])J=[e.as].concat(_.KY(J.slice(1))),q.signalProxy.notifyPath(J,I)}});
this.JSC$13947_didCallConnected=!0;r9B?zrg():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var c=(0,_.Bg)((0,_.Bg)(this).parentNode),k=0;k<this.instances.length;k++)c.insertBefore(this.instances[k].root,this);this.chunkingId&&this.render()}}else c=(0,_.Bg)(this).parentNode,k={parentNode:c==null?void 0:c.nodeName},c instanceof Element&&(k.parentClassName=c.className),_.mN(new _.E2("PsDomRepeat connected with undefined parentSignalProxy",k))};
_.v.debounceRender=function(){this.JSC$13947_renderDebouncer=_.US(this.JSC$13947_renderDebouncer,pb,this.JSC$13947_renderImpl.bind(this));_.og(this.JSC$13947_renderDebouncer)};
_.v.render=function(){this.debounceRender();_.Bk()};
_.v.JSC$13947_renderImpl=function(){var e=this;if(!this.parentSignalProxy.isDisposed){var g=this.items,c=sc4(this,g.length);F0Y(this,g,c);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){e.chunkingId=null;if(e.shouldMeasureChunk){var k=performance.now()-e.renderStartTime;e.chunkCount=Math.round(Math.ceil(1E3/e.targetFramerate)/k*e.chunkCount)||1}e.shouldContinueChunking&&e.debounceRender()}));
aeM&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var sc4=function(e,g){var c=g,k=e.instances.length;if(e.initialCount){if(e.chunkCount){var I=Math.min(Math.max(g-k,0),e.chunkCount);c=Math.min(k+I,g)}else c=Math.min(g,e.initialCount),I=Math.max(c-k,0),e.chunkCount=I||1;e.shouldMeasureChunk=I===e.chunkCount;e.shouldContinueChunking=c<g;e.renderStartTime=performance.now()}return c},F0Y=function(e,g,c){for(var k=0;k<c;k++){var I=e.instances[k],J=g[k];
I?(I.signalProxy.setWithPath([e.as],J),I.signalProxy.setWithPath([e.indexAs],k)):uOI(e,J,k)}for(g=e.instances.length-1;g>=k;g--)c=e,I=g,A9B(c,I),_.w(c.instances.splice(I,1)).next().value.signalProxy.dispose()},A9B=function(e,g){e=e.instances[g];
g=(0,_.Bg)(e.root);for(var c=0;c<e.children.length;c++)g.appendChild(e.children[c])},uOI=function(e,g,c){var k={};
g=Object.assign({},dPs(e),(k[e.as]=g,k[e.indexAs]=c,k[e.itemsIndexAs]=c,k));var I=new aD(g,function(q){if(q!==e.as&&q!==e.indexAs){if(q===e.itemsIndexAs)return G5(I,e.indexAs);var L=G5(e.parentSignalProxy,q).getChangeRecordSignal([]);q=_.Wa(void 0,void 0,"Y7rQEe");var n=new r4(q);I.effect(function(){var R=L();n.notifyPath(hs(R.path),{value:R.value})});
return n}});
e.parentSignalProxy.childSignalProxies.push(I);k=KoK(e.templateInfo,e.templateInfo.nodeInfoList,I,{eventListenerHost:e.eventListenerHost,getModel:function(){var q={};return Object.assign({},dPs(e),(q[e.as]=I.model[e.as],q[e.indexAs]=I.model[e.indexAs],q[e.itemsIndexAs]=I.model[e.indexAs],q))},
hasInsertionPoint:e.templateInfo.hasInsertionPoint,thisCtx:e.eventListenerHost,methodInvocationRequirement:Rzv,enabledSignal:e.stampingEnabled}).root;g={root:k,children:[],signalProxy:I};k=_.w(k.childNodes);for(var J=k.next();!J.done;J=k.next())g.children.push(J.value);k=(k=e.instances[c+1])?k.children[0]:e;(0,_.Bg)((0,_.Bg)(e).parentNode).insertBefore(g.root,k);e.instances[c]=g},dPs=function(e){if((e=e.parentSignalProxy.model)&&!e.hostElement){var g={},c;
for(c in e)e.hasOwnProperty(c)&&(g[c]=e[c]);return g}};
RD.prototype.itemForElement=function(e){var g=this,c=this.instances.find(function(k){return k.children.includes(e)});
if(c)return z7(this.parentSignalProxy.owner,function(){return c.signalProxy.getWithPath([g.as])})};
RD.prototype.indexForElement=function(e){var g=this.instances.findIndex(function(c){return c.children.includes(e)});
return g>=0?g:void 0};
_.Bd.Object.defineProperties(RD.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var e=this;return z7(this.parentSignalProxy.owner,function(){return Tck(e).getWithPath([])})},
set:function(e){leB(this,e)}},
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}}});
_.Bd.Object.defineProperties(RD,{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",RD);var zzk,HHq;_.EO=new _.AU("STATE_STORE_TOKEN");zzk=new _.AU("SELECT_TOKEN");HHq=new _.AU("DISPATCH_TOKEN");var V7e={getSelectFn:function(){var e;return(e=_.Ss().resolve(_.NN(zzk)))!=null?e:HcC},
getDispatchFn:function(){var e;return(e=_.Ss().resolve(_.NN(HHq)))!=null?e:_.lF().dispatch.bind(_.lF())},
getAppStore:function(){return _.Ss().resolve(_.EO)}},QW8,ZcV=!1;var Ocv=function(){};var Sq8=void 0;var Qcq=function(){};
Qcq.prototype.hasAttribute=function(e){if(e==="dir")return!1;if(e==="disable-upgrade"){var g,c;return(c=(g=this.hostElement)==null?void 0:g.hasAttribute("disable-upgrade"))!=null?c:!1}throw Error("Sg`"+e);};
Qcq.prototype.attributeChangedCallbackWrapper=function(e,g,c){if(e==="disable-upgrade"&&this.__isUpgradeDisabled&&c===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var k;((k=this.hostElement)!=null?k:this).isConnected&&this.connectedCallback()}else g===c||this.__isReflecting||this.attributeChangedCallback(e,g,c)};
Qcq.prototype.getExtraMethodsToForward=function(){for(var e=this,g=[],c=_.w(UPw),k=c.next(),I={};!k.done;I={tagName$jscomp$67:void 0,name$jscomp$631:void 0},k=c.next())I.name$jscomp$631=k.value,k=void 0,I.name$jscomp$631==="_setPendingProperty"?(I.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),k=function(J){return function(q,L,n){vo(J.tagName$jscomp$67,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return e._setPendingProperty(q,L,n)}}(I)):k=function(J){return function(){return e[J.name$jscomp$631].apply(e,
_.KY(_.Mb.apply(0,arguments)))}}(I),g.push([I.name$jscomp$631,
k]);return g};
for(var ezC=hz4(bHk((0,_.gh)(Qcq))),IeC=["disabled","disable-upgrade"],ohq=(0,_.gh)(function(){}),ZHq=new Set(Object.getOwnPropertyNames(ohq.prototype)),L0q=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.KY(ZHq))),vhv=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),UPw=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),VOZ=new Set([].concat(_.KY(vhv),_.KY(UPw),_.KY(ZHq))),tOw=_.w(VOZ),Bcw=tOw.next();!Bcw.done;Bcw=tOw.next())mmK.add(Bcw.value);var qbA={created:function(){hrp(this);this.initializeInjection()}};var XrA=!1,QJ=window.ShadyDOM,iHq=["appendChild","insertBefore","removeChild","replaceChild"],jcq=[Node];QJ&&jcq.push(QJ.Wrapper);var sc6,F08,zzq={};var Uz,ZHv=new WeakMap,Qcv=new Set;var Sbt=new Set("context didCallReady is info params signalProxy".split(" ")),K0V="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),OHC="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var NcY=xQ({entities:KXz}),Sbw=new pU(NcY);var y91=function(){return _.gk.apply(this,arguments)||this};
_.Y(y91,_.gk);_.Bd.Object.defineProperties(y91.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Sbw}}});
_.t([_.co()],y91);_.W$=[qr.prototype,y91.prototype];_.b7={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var e=this,g={};setTimeout(function(){var c;return _.oC((c=e.hostElement)!=null?c:e,"yt-live-chat-add-tooltip-target",g)},0);
this.handler_=g.handler},
detached:function(){if(this.handler_){var e;this.handler_.removeElementFromSupportingTooltips((e=this.hostElement)!=null?e:this)}this.handler_=null}}};_.SY=new _.AU("ICON_MANAGER_TOKEN");var K0Z=[48,20,18,16,15,13,12],E0g=new Map,r6C=new Set,w5e=new Set,LcC=new Set,v0t=new Set,qkV=new Set,n0W=new Promise(function(e){var g=!1,c=!1,k=!1,I=[],J=function(q){if("detail"in q)if(q=q.detail,q.name==="yt-icons")alW(q),g=!0;else if(q.name==="yt-sys-icons")alW(q),c=!0;else{var L;((L=q.name)==null?0:L.includes("yt-sys-icons"))&&q.size!==24&&(alW(q,!0),I.push(q.size),I.length===K0Z.length&&(k=!0))}g&&c&&k&&(window.removeEventListener("iron-iconset-added",J),e())};
window.addEventListener("iron-iconset-added",J)}),OHv=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"]]);_.hF={};_.hF.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.mp,computeHref_:function(e,g){g=g===void 0?!1:g;if(!e||e.commandExecutorCommand)return null;var c=oup(e,g);return g||c!==null?c?_.G("enable_polymer_resin")?_.Km(c).toString():c:null:(_.mN(new _.E2("computeHref was null",this.is,e)),null)},
computeOptionalHref_:function(e){return this.computeHref_(e,!0)},
computeNofollow_:function(e){return e?ACK(e)?"nofollow":null:null},
computeIcon_:function(e){return e&&e.iconType?_.NY(e.iconType):""},
resolveCommand:function(e,g,c){g=g===void 0?{}:g;return _.KO(e,this.hostElement,g,c===void 0?!1:c)}};var C_w,Xa;_.MOq={};C_w=null;
Xa={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_=LdW(this.viewroot));_.Y_(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var e=this;this.unobserve_();if(_.G("kevlar_vimio_use_shared_monitor"))MY(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 g=[];this.visibilityOptionVisible_&&g.push(this.visibilityObserver.observe(this.hostElement,function(){return e.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&g.push(this.visibilityObserver.observe(this.hostElement,function(){return e.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&g.push(this.visibilityObserver.observe(this.hostElement,function(){return e.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=g}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){WcV(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 e=_.Xm(this.parentNode,function(c){var k,I=(k=c.polymerController)!=null?k:c;return!!I.getVisibilityObserverForChild&&I.getVisibilityObserverForChild()},!0);
if(e){var g;this.localVisibilityObserver_=((g=e.polymerController)!=null?g:e).getVisibilityObserverForChild()}else C_w||(C_w=LdW()),this.localVisibilityObserver_=C_w;return this.localVisibilityObserver_},visibilityCallback:function(e){e?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.G("kevlar_use_vimio_behavior")||(Xa={});Xa&&!_.G("kevlar_use_vimio_behavior")&&(delete Xa.attached,delete Xa.detached);_.MOq.YtVisibilityObserverBehavior=[Xa];var e4v={};e4v.YtVisualElementBehavior=[_.MOq.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.G("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.G("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var e=this.getScreenLayer&&this.getScreenLayer(),g=this.getVisibilityLogger();g&&g.reportShown(this,void 0,e)}},
onHidden:function(){if(_.G("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.G("kevlar_vimio_use_shared_monitor")){var e=this.getScreenLayer&&this.getScreenLayer(),g=this.getVisibilityLogger();g&&g.reportHidden(this,void 0,e)}},
getVisibilityLogger:function(){return _.G("kevlar_use_vimio_behavior")?_.CO():null},
shouldSkipLogging:function(){if(_.uo("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var e=this.getParentRenderer&&this.getParentRenderer();if(!e)return!1;var g,c=(g=e.polymerController)!=null?g:e;if(!c.data)return!1;e=this.data.trackingParams;e=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:e;var k;g=(k=c.data)==null?void 0:k.trackingParams;var I,J;g=((I=c.data)==null?0:I.loggingDirectives)?(J=c.data)==null?void 0:J.loggingDirectives.trackingParams:g;return e&&g&&e===
g}}];var Dvq=new Map,vT;var hSt=function(e){this.layer=e},CL=function(e){return e.layer!==void 0?e.layer:e.parent?CL(e.parent):e.layer=0};var P8C;_.K={};P8C=0;_.K.YtRendererBehavior=[_.hF.YtComponentBehavior,e4v.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_:_.G("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var e,g;(g=(e=this.monitorScrollElement)!=null?e:this.hostElement)==null||g.removeEventListener("scroll",_.yg(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();GYt(this.hostElement);Ko(_.MG(),this.hostElement);lB.delete(this.hostElement)},
registerRenderer:function(e){var g;((g=e.polymerController)!=null?g:e).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(e),this.markDirty())},
unregisterRenderer_:function(e){this.useVimio_||(this.childCache_.delete(e),this.markDirty())},
attached:function(){var e=this,g=this.getParentRenderer();if(g){var c,k,I;(k=(c=(I=g.polymerController)!=null?I:g).registerRenderer)==null||k.call(c,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var J,q;(q=(J=this.monitorScrollElement)!=null?J:this.hostElement)==null||q.addEventListener("scroll",_.yg(this,this.onScroll))}_.ft.addJob(function(){$vt(e.hostElement)},8);
c=new hSt(this.screenLayer||void 0);(g=lB.get(g))&&g.layerNode&&(c.parent=g.layerNode);g={};jDp(this.hostElement,(g.isRenderer=!0,g.layerNode=c,g[Xe6]=this.data,g))},
getParentRenderer:function(){for(var e=this.hostElement.parentNode,g,c;e&&((g=lB.get(e))==null||!g.isRenderer)&&!((c=e.polymerController)!=null?c:e).isRenderer_;)e=e.parentNode||e.host;return e},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.G("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.dH("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.G("debug_web_ve_data")&&this.data.trackingParams){var e="";try{e=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(c){_.jW(c)}if(e){var g=qop(e,1);g!==void 0&&(this.hostElement.dataset.veIndex=String(g));e=qop(e,2);
e!==void 0&&(this.hostElement.dataset.ve=String(e))}}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,_.G("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Jb(this.data.loggingDirectives.trackingParams)),this.visualElement=_.eU(_.gL(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var e=this.data.targetId;_.OH(_.MG(),e,this.hostElement)}else Ko(_.MG(),this.hostElement)},
onScroll:function(){var e=Date.now();e-this.lastHandledScroll_<50||(this.lastHandledScroll_=e,this.markDirty())},
markDirty:function(){_.G("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():mv6(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var e=this.getParentRenderer();if(e&&(e=lB.get(e))&&e.layerNode)return CL(e.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.KY(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var e=0;e<this.data.impressionEndpoints.length;e++)this.sendImpression(this.data.impressionEndpoints[e]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(e){e.clickTrackingParams&&delete e.clickTrackingParams;var g,c;(e==null?0:(g=e.commandMetadata)==null?0:(c=g.webCommandMetadata)==null?0:c.sendPost)?_.tr(this.hostElement,[e,{impression:!0}]):_.Bm(this.hostElement,[e],this.hostElement)},
logExplicitClick:function(e){var g=_.EM(this.getScreenLayer());if(g){var c,k=(c=e.polymerController)!=null?c:e;e=k.visualElement;k=k.trackingParams||k.clickTrackingParams;!e&&k&&(e=_.Jb(k));e&&_.m7(g,e)}}}];var g0M={},GG=function(){return _.gk.apply(this,arguments)||this};
_.Y(GG,_.gk);GG.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
GG.prototype.onPdgItemBehaviorClick=GG.prototype.onPdgItemBehaviorClick;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],GG.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],GG.prototype,"data",void 0);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],GG.prototype,"onPdgItemBehaviorClick",null);_.t([_.co()],GG);g0M.YtPdgLiveChatItemBehavior=[GG.prototype,_.K.YtRendererBehavior];var c6w;var kY4;_.xC={};_.xC.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var D6=function(){var e=SX.apply(this,arguments)||this;e.switchTemplateAtRegistration=!1;return e};
_.Y(D6,SX);D6.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||A66(this),_.njt(this,"doRender"),this.doRender())};
D6.prototype.debounceRender=function(){this.templatingFn&&_.fO(this,"doRender",this.doRender)};
D6.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.jW(Error("bh"))};
D6.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.t([Tgq()],D6);var Il4=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,$C={},dvU=($C[1]={filterString:null,isUnwrappable:null,unwrap:null},$C[2]={filterString:function(e,g,c){return Z3(c)},
isUnwrappable:function(e){return e instanceof gy},
unwrap:function(e){return IP(e)}},$C[3]={filterString:function(e,g,c){return Il4.test(c)?c:yP.toString()},
isUnwrappable:function(e){return tj(e)},
unwrap:function(e){return _.BJ(e)}},$C[4]={filterString:function(){return yP.toString()},
isUnwrappable:function(e){return e instanceof zT},
unwrap:function(e){return _.QP(e).toString()}},$C[5]={filterString:function(e,g,c){return c},
isUnwrappable:function(e){return typeof e==="string"},
unwrap:function(e){return e.toString()}},$C[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(e){return e instanceof _.ry},
unwrap:function(e){return nY(e)}},$C[8]={filterString:function(e,g,c){c=String(c).toLowerCase();
return ekC(e,g,c)?c:"zClosurez"},
isUnwrappable:null,unwrap:null},$C[10]={filterString:null,isUnwrappable:null,unwrap:null},$C);ol[UX["default"]]=HiC;var QbC=[];(function(){var e=yU;yU=function(g){e==null||e(g);Lv(function(){for(var c=0;c<g.length;c++)Uvp(g[c])})}})();var J6Z=function(){var e=_.gk.apply(this,arguments)||this;e.hasUnmounted=!1;return e};
_.Y(J6Z,_.gk);_.v=J6Z.prototype;_.v.beforeRegister=function(){var e=this.doIdomRender;this.templatingFn?_.jW(Error("ah")):(this.templatingFn=e,this.switchTemplateAtRegistration=!0,uTq(this))};
_.v.attached=function(){};
_.v.detached=function(){Uvp(this.hostElement)};
_.v.renderIdom=function(){throw Error("dh");};
_.v.doIdomRender=function(){var e=this;MS8(this.hostElement,function(){e.renderIdom()})};
_.t([_.co()],J6Z);var v0w=[D6.prototype,J6Z.prototype];var w5B,qkZ=function(){return w5B!==void 0?w5B:w5B=document.createElement("template")};
document.head.appendChild(qkZ().content);var Lc1;var r6v,als=function(){return r6v!==void 0?r6v:r6v=document.createElement("template")};
document.head.appendChild(als().content);var n0s;var R4q=document.head,E0M=R4q.appendChild,WcZ;if(n0s===void 0){var biu=document.createElement("template");_.P(biu,"\x3c!--css-build:shady--\x3e");biu.content.insertBefore(als().content.cloneNode(!0),biu.content.firstChild);n0s=biu}WcZ=n0s;E0M.call(R4q,WcZ.content);var h44,X5M=function(){return h44!==void 0?h44:h44=document.createElement("template")};
document.head.appendChild(X5M().content);var GYw;var xvu=document.head,Dvk=xvu.appendChild,$vw;if(GYw===void 0){var YkB=document.createElement("template");_.P(YkB,"\x3c!--css-build:shady--\x3e");YkB.content.insertBefore(X5M().content.cloneNode(!0),YkB.content.firstChild);GYw=YkB}$vw=GYw;Dvk.call(xvu,$vw.content);var fl4=document.head,jbI=fl4.appendChild,iis;if(Lc1===void 0){var P8v=document.createElement("template");_.P(P8v,"\x3c!--css-build:shady--\x3e");P8v.content.insertBefore(qkZ().content.cloneNode(!0),P8v.content.firstChild);Lc1=P8v}iis=Lc1;jbI.call(fl4,iis.content);var mv4,p5v=function(){return mv4!==void 0?mv4:mv4=document.createElement("template")};
document.head.appendChild(p5v().content);var T9v;_.gb=new _.AU("DARK_THEME_TOKEN");var llZ=new _.lN("accessibilityProperties");var A64=new _.lN("layoutProperties");var sbZ=new _.lN("imageType");var Fcq={};if("ytAttributedStringLinkHoverColor"in Fcq)throw Error("gh`ytAttributedStringLinkHoverColor");(function(e,g){Fcq[e]="value"in g&&"unit"in g?typ(e,g):function(c){try{return g(c)}catch(k){throw Error("eh`"+e+"`"+k.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var uTk=function(e){var g=this;this.holdTime=e===void 0?500:e;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(c){var k=new CustomEvent("LONG_PRESS"),I;(I=c.changedTouches[0].target)==null||I.dispatchEvent(k)};
this.ontouchstart=function(c){g.longPressTimeout=_.e$(_.ft,function(){g.onlongpress(c);g.longPressOccurred=!0},g.holdTime)};
this.ontouchmove=function(){_.ft.cancelJob(g.longPressTimeout);g.longPressTimeout=NaN;g.longPressOccurred=!1;g.moveOccurred=!0};
this.ontouchend=function(c){if(g.longPressTimeout&&!g.longPressOccurred&&!g.moveOccurred){var k;(k=c.changedTouches[0].target)==null||k.dispatchEvent(new Event("click"))}_.ft.cancelJob(g.longPressTimeout);g.longPressTimeout=NaN;g.longPressOccurred=!1;g.moveOccurred=!1}};var LhC=function(e,g){uTk.call(this,g);var c=this;this.callback=e;this.onlongpress=function(k){var I;(I=c.callback)==null||I.call(c,k)}};
_.Y(LhC,uTk);var rm8=function(e,g){var c=Object.assign({},g);e=_.w(new Map([["ontouchstart",e.ontouchstart],["ontouchend",e.ontouchend],["ontouchmove",e.ontouchmove]]));for(var k=e.next(),I={};!k.done;I={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},k=e.next()){var J=_.w(k.value);k=J.next().value;J=J.next().value;I.eventName$jscomp$103=k;I.eventHandler$jscomp$2=J;g[I.eventName$jscomp$103]=function(q){return function(L){var n;(n=c[q.eventName$jscomp$103])==null||n.call(c,L);(0,q.eventHandler$jscomp$2)(L)}}(I)}};_.xk=new _.AU("COMMAND_HANDLER_TOKEN");var N9A=new _.lN("parallelCommand");var Kcg=new _.lN("performOnceCommand");var y6z=new _.lN("serialCommand");var OiW=void 0;var dvq=function(){this.data=[];this.consumer=null};
dvq.prototype.push=function(e){this.consumer?this.consumer(e):this.data.push(e)};var m3={};_.Wa(m3,void 0,"sgPmTd");_.Wa(null,void 0,"jypsq");_.Wa(null,void 0,"mWiOof");var rBV=new dvq;var JmW=[$Ow,Yyq,fbv,iru,jRw,DOq,P1s,mO1];var z4v=new _.lN("bracketTextDecorator");var Yk=new _.lN("highlightTextDecorator");_.fV=new _.AU("APP_DIRECTION_TOKEN");var GWv={calledOnce:!1,state:"visible"},Xpg={calledOnce:!1,state:"hidden"};var Hiv=new _.AU("ICON_WIZ_COMPONENT_TOKEN");_.SU=_.H(function(e){var g=e.icon;var c=e.active;var k=e.className;var I=e.style;var J=e.dataSelected;var q=e.dataDisabled;var L=e.role;var n=e.animateIcon;var R=e.themeOverride;var W=e.ariaHidden;var b=e.ariaExpanded;var h=e.ariaLabel;var X=e.tabindex;var D=e.id;var f=e.size;var l=e.iconFilter;var A=e.gradientColor;var d=e.onKeydown;var S=e.title;return _.a(_.E,{cond:g,then:function(){var V=_.Ss().resolve(Hiv);return _.a(V,{icon:g,dataSelected:J,dataDisabled:q,animateIcon:n,themeOverride:R,ariaExpanded:b,
tabindex:X,id:D,active:c,size:f,role:L,className:k,ariaHidden:W,ariaLabel:h,style:function(){return I!=null&&I()||f==null||!f()?I==null?void 0:I():"width: "+(f==null?void 0:f())+"px;height: "+((f==null?void 0:f())+"px;")},
title:S,iconFilter:l,gradientColor:A,onKeydown:d})}})},"p");
_.SU.idomCompat={callbacks:{onKeydown:!0}};var ppe=new _.lN("borderImageProcessor");var AmC=window.devicePixelRatio||1;var dLq=new Map([["yt_outline_bag_black_24","bag"]]);var YC=function(e){var g=this;this.margin=.1;this.whenInViewportWithMargin=e;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){g.requestScan()});
window.addEventListener("touchend",function(){g.requestScan()});
window.addEventListener("updateui",function(){g.requestScan()});
var c=new _.BT((0,_.Ju)(this.requestScan,this),100);window.addEventListener("scroll",function(){c.fire()},!0);
window.addEventListener("resize",(0,_.Ju)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){g.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Ju)(this.requestScan,this))};
YC.prototype.observe=function(e){this.observationTargets.includes(e)||this.observationTargets.push(e)};
YC.prototype.unobserve=function(e){this.observationTargets=this.observationTargets.filter(function(g){return g!==e})};
YC.prototype.requestScan=function(){var e=this;this.scanRequested||(Lv(function(){Qbv(e)}),this.scanRequested=!0)};
var Qbv=function(e){var g=(1+e.margin)*(document.documentElement.clientHeight||window.innerHeight);e.observationTargets=e.observationTargets.filter(function(c){var k=c.getBoundingClientRect();(k=g>k.top&&!!k.height)&&e.whenInViewportWithMargin(c);return!k&&c.parentNode});
e.scanRequested=!1};
YC.prototype.disconnect=function(){this.observationTargets=[]};var UvI,Zis;UvI=_.w(_.Wa(oMg(),void 0,"O3X2wd"));_.o0k=UvI.next().value;Zis=UvI.next().value;window.addEventListener("resize",function(){Zis(oMg())});var Vyu={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},tyI=void 0,B9q=window.innerWidth,N9n=window.innerHeight;window.addEventListener("resize",function(){tyI=void 0});var Sk1;if("IntersectionObserver"in window)Sk1=tEW();else{if(tyI===void 0){var y6w;y6w="matchMedia"in window?window.matchMedia(Vyu.landscape+","+Vyu.portrait).matches:void 0;tyI=y6w!==void 0?y6w:B9q>=930&&N9n>=550||B9q>=550&&N9n>=930}Sk1=tyI?{observe:function(e){Lv(function(){var g;(g=e.onViewportEntered)==null||g.call(e)})},
unobserve:function(){}}:new YC(function(e){Lv(function(){var g;
(g=e.onViewportEntered)==null||g.call(e)})})}var ZhC=Sk1;var KcM=_.H(function(e){var g=!1,c=_.io("img",function(k){_.sX(function(){g=!0;k.onload=null})});
_.AV(function(){var k,I=(k=e.data)==null?void 0:k.call(e),J,q=(J=e.getSrc)==null?void 0:J.call(e).cb,L;k=(L=e.config)==null?void 0:L.call(e);if(L=c.value)if(J=function(R,W){if(!g)return q?q(R,W):R},SBp(L,k),_.G("web_image_dont_reload_same_src")&&NPp(L,I,J))_.G("web_image_dont_reload_same_src_simulate_load")&&L.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var n;BPe(L,I||null,J,k,(n=e.lazy)==null?void 0:n.call(e))}},"zS0jKb");
return _.a("img",{el:c})},"r");
KcM.idomCompat=!0;_.pv=_.H(function(e){var g=function(){var c,k=e.data(),I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y,O,Jq,LC,bW,RA,Xg,Fg,oA,Zt,Ev;var an={contentMode:(I=e.contentMode)==null?void 0:I.call(e),loadedClass:(J=e.loadedClass)==null?void 0:J.call(e),isPreloaded:(q=e.isPreloaded)==null?void 0:q.call(e),notifyOnLoaded:(L=e.notifyOnLoaded)==null?void 0:L.call(e),notifyOnUnloaded:(n=e.notifyOnUnloaded)==null?void 0:n.call(e),preferredThumbnail:(R=e.preferredThumbnail)==null?void 0:R.call(e),preserveHeight:(W=e.preserveHeight)==
null?void 0:W.call(e),preserveWidth:(b=e.preserveWidth)==null?void 0:b.call(e),objectPosition:(h=e.objectPosition)==null?void 0:h.call(e),targetWidth:(X=e.targetWidth)==null?void 0:X.call(e),targetHeight:(D=e.targetHeight)==null?void 0:D.call(e),shouldShowPlaceholder:(f=e.shouldShowPlaceholder)==null?void 0:f.call(e),useWidth:(l=e.useWidth)==null?void 0:l.call(e),isToggled:(A=e.isToggled)==null?void 0:A.call(e),alt:(d=e.alt)==null?void 0:d.call(e),className:(S=e.className)==null?void 0:S.call(e),
onerror:e.onerror,onload:e.onload,style$:((V=e.style$)==null?void 0:V.call(e))||((Q=e.style)==null?void 0:Q.call(e)),color:(y=e.color)==null?void 0:y.call(e),width:(O=e.width)==null?void 0:O.call(e),height:(Jq=e.height)==null?void 0:Jq.call(e),"aria-hidden$":(Zt=(LC=e["aria-hidden$"])==null?void 0:LC.call(e))!=null?Zt:(bW=e.ariaHidden)==null?void 0:bW.call(e),draggable:(RA=e.draggable)==null?void 0:RA.call(e),"data-disabled$":(Ev=(Xg=e["data-disabled$"])==null?void 0:Xg.call(e))!=null?Ev:(Fg=e.dataDisabled)==
null?void 0:Fg.call(e),size:(oA=e.size)==null?void 0:oA.call(e)};return Khp(k,an,(c=e.hideOn404)==null?void 0:c.call(e))};
return _.a(_.f4,null,_.a(_.DC,{when:function(){var c;return((c=g())==null?void 0:c.type)==="image"}},function(){return _.a(KcM,{data:function(){return g().image},
getSrc:{cb:function(c,k){var I=g().image.sources,J=g().config.isPreloaded,q=g().config.useWidth,L=g().config.targetWidth,n=g().config.targetHeight,R=g().config.preferredThumbnail;return _.set(k,I,J,q,L,n,R)||""}},
config:function(){var c=g().config,k;for(k in c)c[k]===void 0&&delete c[k];return c},
lazy:e.renderLazy})}),_.a(_.DC,{when:function(){var c;
return((c=g())==null?void 0:c.type)==="icon"}},function(){return _.a(_.SU,{icon:function(){return g().iconName},
role:function(){return g().config.role},
className:function(){return g().config.className},
style:function(){return g().config.style$+";width: "+(g().config.width+"px;height: ")+(g().config.height+"px;color: ")+(g().config.color+";")},
ariaLabel:function(){return g().config["aria-label$"]},
ariaHidden:function(){return g().config["aria-hidden$"]},
dataDisabled:function(){return g().config["data-disabled$"]},
active:function(){return g().config.isToggled},
size:function(){return g().config.size}})}))},"s");
_.pv.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Ois=_.H(function(e){var g=function(I){var J,q,L=_.mb(function(X){J=I();q=uu(function(){for(var D=_.w(b()),f=D.next();!f.done;f=D.next()){f=ewC(f.value);f=typeof f==="string"?document.createTextNode(f):f;if(!(f instanceof Node)){D=new _.E2("Part is not a node",f,typeof f);_.jW(D);break}X.appendChild(f)}})}),n=_.sz(e.config),R=function(){var X,D=I();
return!((X=n())==null||!X.ariaLabel)||!(D.commandRuns&&D.commandRuns.length!==0||D.paragraphStyleRuns&&D.paragraphStyleRuns.length!==0)},W=MEC(n,{isEqual:c7V}),b=function(){var X=I(),D=W(),f=[],l=X.content.length,A,d=(A=_.Ss().resolve(_.NN(_.gb)))==null?void 0:A();
if(X.paragraphStyleRuns)for(var S=_.w(X.paragraphStyleRuns),V=S.next();!V.done;V=S.next()){var Q=f.push,y=Q.apply;var O=void 0,Jq=V.value;if((O=Jq.listGroup)!=null&&O.listItems){var LC=[];b:switch(Jq.listGroup.listType){case "LIST_TYPE_BULLET":var bW="ul";break b;default:bW="span"}LC.push(Di({run:Jq,textLength:l,tag:bW,config:{className:"yt-core-attributed-string__list-group"},startIndex:Jq.startIndex,length:Jq.length}));for(var RA=_.w(Jq.listGroup.listItems),Xg=RA.next();!Xg.done;Xg=RA.next()){var Fg=
Xg.value;b:switch(Jq.listGroup.listType){case "LIST_TYPE_BULLET":var oA="li";break b;default:oA="span"}LC.push(Di({run:Jq,textLength:l,tag:oA,startIndex:Fg.startIndex,length:Fg.length}))}var Zt=LC}else Zt=[];y.call(Q,f,_.KY(Zt))}if(X.styleRuns&&(D==null||!D.noStyleRuns))for(var Ev=_.w(X.styleRuns),an=Ev.next();!an.done;an=Ev.next()){var V6=an.value,bs=V6,f1=d,hk=D,Pq=RQK({extension:_.x(bs.styleRunExtensions,WHB),isDarkTheme:f1===void 0?!1:f1,runColor:bs.fontColor}),vq=void 0,hq=bs,zv=[];Pq&&zv.push("yt-core-attributed-string--link-inherit-color");
hq.italic&&zv.push("yt-core-attributed-string--italicized");hq.underline&&hq.strikethrough?zv.push("yt-core-attributed-string--underline-strikethrough",Whz(hq.underline)):hq.underline?zv.push("yt-core-attributed-string--underlined",Whz(hq.underline)):hq.strikethrough&&zv.push("yt-core-attributed-string--strikethrough",Whz(hq.strikethrough));if(hq.baselineOffset){a:switch(hq.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":vq="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":vq=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:vq="yt-core-attributed-string--baseline-offset-unknown"}zv.push(vq)}var XM=zv.join(" ");var Su=bs,p1=Pq,C1={};if(Su.weight||Su.weightLabel)C1.fontWeight=EM8(Su,hk==null?void 0:hk.isHeadline).toString();p1&&(C1.color=p1);f.push(Di({run:V6,textLength:l,tag:"span",config:{className:XM,style:C1},startIndex:V6.startIndex,length:V6.length}))}if(X.decorationRuns)for(var mz=_.w(X.decorationRuns),Ov=mz.next();!Ov.done;Ov=mz.next()){var Rx=
Ov.value,V4={};if(Rx.textDecorator){var to=Rx.textDecorator,L1=d===void 0?!1:d,Wq=[],Ww=_.x(to,Yk),Bw=_.x(to,z4v);if(Ww){var Uv=Wq,jz=Uv.concat,J0=[],on=RQK({extension:_.x(Ww.highlightTextDecoratorExtensions,EYw),isDarkTheme:L1,runColor:Ww.backgroundColor});on&&J0.push("background-color: "+on+";");Ww.backgroundCornerRadius!==void 0&&J0.push("border-radius: "+Ww.backgroundCornerRadius+"px;");Ww.leftPadding!==void 0&&J0.push("padding-left: "+Ww.leftPadding+"px;");Ww.rightPadding!==void 0&&J0.push("padding-right: "+
Ww.rightPadding+"px;");Ww.topPadding!==void 0&&J0.push("padding-top: "+Ww.topPadding+"px;");Ww.bottomPadding!==void 0&&J0.push("padding-bottom: "+Ww.bottomPadding+"px;");Wq=jz.call(Uv,J0)}else if(Bw){var ng=Wq,MM=ng.concat,I3=L1?"#2ba640":"#107516",kF=Bw.color?nMC(Bw.color):I3;Wq=MM.call(ng,["padding: 2px;","border-top: solid "+kF+" 2px;","border-bottom: solid "+kF+" 2px;","background: linear-gradient(135deg, "+kF+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+kF+" 3px, rgba(0, 0, 0, 0) 3px);"])}var F1=
Wq.join(" ");V4.style$=F1;var Uu=Rx.textDecorator,bK=[],ZE=_.x(Uu,z4v);_.x(Uu,Yk)?bK.push("yt-core-attributed-string--highlight-text-decorator"):ZE&&bK.push("yt-core-attributed-string--bracket-text-decorator");var b0=bK.join(" ");V4.className=b0;V4.dir="auto"}var me=_.x(Rx.textDecorator,Yk),Q6=_.x(Rx.textDecorator,z4v),y6=_.x(Rx.textDecorator,Yk),Gq=_.x(Rx.textDecorator,z4v);f.push(Di({run:Rx,textLength:l,tag:"span",config:V4,startIndex:(me==null?void 0:me.startIndex)||(Q6==null?void 0:Q6.startIndex)||
0,length:(y6==null?void 0:y6.length)||(Gq==null?void 0:Gq.length)||0}))}if(X.commandRuns&&(D==null||!D.noEndpoints))for(var $X=_.w(X.commandRuns),PJ=$X.next();!PJ.done;PJ=$X.next()){var mO=PJ.value,is=a1K(mO,D);f.push(Di({run:mO,textLength:l,tag:"a",config:is,startIndex:mO.startIndex,length:mO.length}))}if(X.attachmentRuns)for(var ju=_.w(X.attachmentRuns),ox=ju.next();!ox.done;ox=ju.next()){var vJ=ox.value,xI=void 0,Av=void 0,oy={className:"yt-core-attributed-string--inline-block-mod"};if((Av=vJ.element)==
null?0:Av.properties){var o3=(xI=vJ.element)==null?void 0:xI.properties,E5=[],en=_.x(o3,A64);if(en==null?0:en.margin){var cV=en.margin,ie=_.uo("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",NW=ie?cV.end||cV.right:cV.start||cV.left,w4=ie?cV.start||cV.left:cV.end||cV.right;NW&&E5.push("margin-left: "+R6(NW)+";");w4&&E5.push("margin-right: "+R6(w4)+";");cV.top&&E5.push("margin-top: "+R6(cV.top)+";");cV.bottom&&E5.push("margin-bottom: "+R6(cV.bottom)+";")}var pf=E5.length!==0?E5.join(" "):
void 0;oy.style$=pf}var bb=oy,hZ=void 0,xW={alt:"",preserveHeight:!0,preserveWidth:!0},ko=["yt-core-attributed-string__image-element"];if(vJ.alignment){a:switch(vJ.alignment){case "ALIGNMENT_BASELINE":var jY="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":jY="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:jY="yt-core-attributed-string__image-element--image-alignment-bottom"}ko.push(jY)}if((hZ=
vJ.element)==null?0:hZ.properties){var iF=[],cO=_.x(vJ.element.properties,A64);(cO==null?0:cO.height)&&iF.push("height: "+R6(cO.height)+";");(cO==null?0:cO.width)&&iF.push("width: "+R6(cO.width)+";");var Cu=iF.length!==0?iF.join(" "):void 0;xW.style$=Cu;var I0=void 0;var hD=((I0=_.x(vJ.element.properties,llZ))==null?void 0:I0.label)||"";xW.alt=hD}xW.className=ko.join(" ");var yV=xW,eA=void 0;var qw=void 0,eu=void 0;var bS=((eu=vJ.element)==null?0:eu.type)?(qw=_.x(vJ.element.type,sbZ))==null?void 0:
qw.image:void 0;f.push(Di({run:vJ,textLength:l,tag:"img",image:bS,imageConfig:yV,imageWrapperConfig:bb,startIndex:vJ.startIndex,length:(eA=vJ.length)!=null?eA:0}))}if(D==null?0:D.headerRuns)for(var lS=_.w(D.headerRuns),Sz=lS.next();!Sz.done;Sz=lS.next()){var dy=Sz.value;if(dy.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(dy.headerMapping)){a:{switch(dy.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var Uy=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":Uy="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":Uy="yt-core-attributed-string--heading-3";break a}Uy=void 0}f.push(Di({run:dy,textLength:l,tag:"span",config:Uy?{className:Uy}:void 0,startIndex:dy.startIndex,length:dy.length}))}}var Vd=W();if(Vd==null?0:Vd.userInput)for(var UV=_.w(f),xD=UV.next();!xD.done;xD=UV.next()){var xe=xD.value;if(xe.tag!=="a"&&
xe.tag!=="li"){var Sf6=void 0;(Sf6=xe).config||(Sf6.config={});xe.config.dir=xe.tag==="ul"?_.Ss().resolve(_.fV):"auto"}}if(I().content){var y2v=I().content;f1e(f);for(var ym={data:null,start:0,end:y2v.length,parts:[]},KNC=_.w(f),KI=KNC.next();!KI.done;KI=KNC.next()){var OD=KI.value;$LA(ym,OD.startIndex,OD.endIndex,OD)}YBU(y2v,ym);var OB8=ym.parts}else OB8=[];return OB8},h=!0;
_.AV(function(){I();W();if(h&&(h=!1,CTC(I(),J)))return;var X=b();Promise.resolve().then(function(){var D=L.value;if(D){D.innerText="";var f;(f=q)==null||f();q=_.p4(D,function(){return _.a(g46,{parts:X})},"t")}})},"Dfzccf");
return _.a("span",{el:L,class:function(){var X;if(X=I()){X=I();var D=n(),f=[];f.push("yt-core-attributed-string");(D==null?0:D.className)&&f.push(D==null?void 0:D.className);(D==null?0:D.ellipsisTruncate)?f.push("yt-core-attributed-string--ellipsis-truncate"):(D==null?0:D.noWrap)?f.push("yt-core-attributed-string--white-space-no-wrap"):(D==null?0:D.noPreWrap)||f.push("yt-core-attributed-string--white-space-pre-wrap");(D==null?0:D.linkInheritColor)&&f.push("yt-core-attributed-string--link-inherit-color");
X.alignment&&f.push(bht(X.alignment));X.lineBreakMode&&f.push("yt-core-attributed-string--word-wrapping");X=f.join(" ")}return X},
dir:function(){var X;return((X=n())==null?0:X.userInput)?"auto":void 0},
"aria-label":function(){var X;return R()?(X=n())==null?void 0:X.ariaLabel:void 0},
role:function(){return R()?"text":void 0}})},c=MEC(function(){var I,J=(I=e.text)==null?void 0:I.call(e);
if(J)return I=_.jU(J)?J:_.a6(J),(I==null?0:I.content)?I:void 0},{isEqual:CTC}),k;
return((k=e.config)==null?0:k.contentAsserted)?g(c):_.a(_.E,{cond:c,then:g})},"v");
Ois.idomCompat=!0;_.fa=_.H(function(e){var g=_.sz(e.text),c=kCW(e);e.contentAsserted!==void 0&&(c.contentAsserted=!0);return _.a(Ois,{text:g,config:c})},"w");
_.fa.idomCompat=!0;var Ihe=function(e,g,c){g=g===void 0?"unknown":g;c=c===void 0?{}:c;_.E2.call(this,e+" ("+g+")",Object.assign({},{name:"YtWcwError",tagName:g},c));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(Ihe,_.E2);_.Ab=new WeakMap;_.l3=!1;var L1v,r7g,qFU;_.jx=Symbol("ih");_.TF=Symbol("jh");L1v=Symbol("kh");r7g=new Set(Object.getOwnPropertyNames(Element.prototype));qFU=Symbol("lh");var Mys=_.H(function(e){return _.a("yt-attributed-string",{"aria-label":e.ariaLabel,hidden:e.hidden,id:e.id,class:e.className,"force-default-style":e.forceDefaultStyle},_.a(_.fa,{text:e.data,ariaLabel:e.ariaLabel,ellipsisTruncate:e.ellipsisTruncate,isOverlay:e.isOverlay,linkInheritColor:e.linkInheritColor,noPreWrap:e.noPreWrap,noWrap:e.noWrap,userInput:e.userInput,noEndpoints:e.noEndpoints,headerRuns:e.headerRuns,isHeadline:e.isHeadline}))},"x");
_.G("web_wiz_attributed_string")&&_.sL(Mys,"yt-attributed-string",{props:{ariaHidden:_.jx,ariaLabel:_.jx,className:_.jx,ellipsisTruncate:_.jx,isOverlay:_.jx,linkInheritColor:_.jx,noEndpoints:_.jx,noStyleRuns:_.jx,noLinkColor:_.jx,noPreWrap:_.jx,noWrap:_.jx,skipOnClick:_.jx,userInput:_.jx,headerRuns:_.jx,isHeadline:_.jx,id:_.jx,data:_.jx,hidden:_.jx,forceDefaultStyle:_.jx,text:_.TF,disableUpgrade:_.TF,disable:_.TF,slot:_.TF}});var i7=function(){return _.z.apply(this,arguments)||this};
_.Y(i7,_.z);i7.prototype.renderIdom=function(){if(this.data&&!this.disable){this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns};var e=this.data,g=this.config;e&&(e=_.jU(e)?e:_.a6(e),e!=null&&e.content&&(g=g||{},g.contentAsserted=!0,ULp(Ois)({text:e,config:g})))}};
_.t([_.m(v0w),_.B("design:type",Object)],i7.prototype,"ytIdomTemplatingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],i7.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],i7.prototype,"ariaLabel",void 0);_.t([_.u(),_.B("design:type",Boolean)],i7.prototype,"disable",void 0);_.t([_.u(),_.B("design:type",Boolean)],i7.prototype,"ellipsisTruncate",void 0);_.t([_.u(),_.B("design:type",Boolean)],i7.prototype,"isOverlay",void 0);
_.t([_.u(),_.B("design:type",Boolean)],i7.prototype,"linkInheritColor",void 0);_.t([_.u(),_.B("design:type",Boolean)],i7.prototype,"noPreWrap",void 0);_.t([_.u(),_.B("design:type",Boolean)],i7.prototype,"noWrap",void 0);_.t([_.u(),_.B("design:type",Boolean)],i7.prototype,"userInput",void 0);_.t([_.u(),_.B("design:type",Boolean)],i7.prototype,"noEndpoints",void 0);_.t([_.u(),_.B("design:type",Array)],i7.prototype,"headerRuns",void 0);
_.t([_.Wo({is:"yt-attributed-string",disableElementRegistration:!0})],i7);
_.G("web_wiz_attributed_string")||_.U(i7,"yt-attributed-string",function(){if(T9v===void 0){var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
e.content.insertBefore(p5v().content.cloneNode(!0),e.content.firstChild);T9v=e}e=T9v;return e},{mode:2});var C8q,eQ4,hwC;C8q=function(){this.firstThumbnailLoaded=!1};
_.gMs=function(){eQ4||(eQ4=new C8q);return eQ4};
hwC=function(e){var g=_.gMs();g.firstThumbnailLoaded||(g.firstThumbnailLoaded=!0,_.Wh("ftl",e))};
C8q.prototype.reset=function(){this.firstThumbnailLoaded=!1};var n4C=0,bd6=new WeakMap,E4v=0,dL=new Set;var cmq,kWw=function(){return cmq!==void 0?cmq:cmq=document.createElement("template")};
document.head.appendChild(kWw().content);var I1k;var D8p,YFK,P$;_.Qe=_.kp.caches;P$=function(){};
P$.prototype.open=function(e){return _.Qe.open(Jms(e))};
P$.prototype.has=function(e){return _.Qe.has(Jms(e))};
P$.prototype.delete=function(e){return _.Qe.delete(Jms(e))};
P$.prototype.match=function(e,g){var c=this,k,I,J,q,L,n;return _.r(function(R){switch(R.nextAddress){case 1:return R.yield(c.keys(),2);case 2:k=R.yieldResult,I=_.w(k),J=I.next();case 3:if(J.done){R.jumpTo(5);break}q=J.value;return R.yield(c.open(q),6);case 6:return L=R.yieldResult,R.yield(L.match(e,g),7);case 7:if(n=R.yieldResult)return R.return(n);J=I.next();R.jumpTo(3);break;case 5:return R.return()}})};
var fhz=function(){};
_.Y(fhz,P$);var Jms=function(e){if(e.includes(":"))throw Error("oh`"+e);return e+":"+_.nf("CacheStorage get")};
fhz.prototype.keys=function(){var e,g,c,k,I,J,q,L,n;return _.r(function(R){if(R.nextAddress==1)return e=[],g=_.nf("CacheStorage keys"),R.yield(_.Qe.keys(),2);c=R.yieldResult;k=_.w(c);for(I=k.next();!I.done;I=k.next())J=I.value,q=_.x86(J),L=q.originalName,n=q.datasyncId,n===g&&e.push(L);return R.return(e)})};var mX=function(){var e=_.z.apply(this,arguments)||this;e.objectURL=null;e.loadTime=Infinity;return e};
_.Y(mX,_.z);_.v=mX.prototype;
_.v.renderIdom=function(){GCp(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();if(this.config){var e=this.config,g=this.shouldRenderLazy;ULp(_.pv)({contentMode:e.contentMode,loadedClass:e.loadedClass,isPreloaded:e.isPreloaded,notifyOnLoaded:e.notifyOnLoaded,notifyOnUnloaded:e.notifyOnUnloaded,preferredThumbnail:e.preferredThumbnail,preserveHeight:e.preserveHeight,preserveWidth:e.preserveWidth,objectPosition:e.objectPosition,targetWidth:e.targetWidth,
targetHeight:e.targetHeight,shouldShowPlaceholder:e.shouldShowPlaceholder,useWidth:e.useWidth,isToggled:e.isToggled,alt:e.alt,className:e.className,onerror:e.onerror,onload:e.onload,style$:e.style$,color:e.color,width:e.width,height:e.height,"aria-hidden$":e["aria-hidden$"],draggable:e.draggable,"data-disabled$":e["data-disabled$"],data:this.data,callback:void 0,renderLazy:g===void 0?!0:g,hideOn404:!1})}}};
_.v.objectFitToContentMode=function(e){switch(e){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.v.logThumbnailFailureVe=function(){var e=_.VF(197497);_.Nd(_.gL(),e);var g=_.EM();g&&e&&g&&_.iB(g,[e])};
_.v.loadImageFromCacheIfExists=function(e){var g=this,c=e.target;(c==null?0:c.src)&&idC(c.src).then(function(k){g.objectURL=_.Ox(k).toString();g.setSrc(c,g.objectURL)}).catch(function(){})};
_.v.onError=function(e){var g=this;if(_.G("web_use_cache_for_image_fallback")){var c=e.target;c&&idC(c.src).then(function(k){g.objectURL=_.Ox(k).toString();g.setSrc(c,g.objectURL)}).catch(function(){_.G("kevlar_woffle_log_thumbnail_failure_ve")&&g.logThumbnailFailureVe();
_.G("kevlar_woffle_fallback_image")&&g.setSrc(c,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.v.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.v.setConfig=function(){var e=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(g){e.loadImageFromCacheIfExists(g);e.revokeObjectURL();X4z(e.hostElement)},
onerror:function(g){e.onError(g)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.G("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.v.setSrc=function(e,g){g&&(e.src=g)};
_.t([_.m(v0w),_.B("design:type",Object)],mX.prototype,"ytIdomTemplatingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],mX.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],mX.prototype,"alt",void 0);_.t([_.u(),_.B("design:type",Boolean)],mX.prototype,"ftlEligible",void 0);_.t([_.u(),_.B("design:type",Number)],mX.prototype,"height",void 0);_.t([_.u(),_.B("design:type",Boolean)],mX.prototype,"notifyOnLoaded",void 0);
_.t([_.u(),_.B("design:type",Boolean)],mX.prototype,"notifyOnUnloaded",void 0);_.t([_.u(),_.B("design:type",String)],mX.prototype,"objectFit",void 0);_.t([_.u(),_.B("design:type",String)],mX.prototype,"objectPosition",void 0);_.t([_.u(),_.B("design:type",String)],mX.prototype,"preferredThumbnail",void 0);_.t([_.u(),_.B("design:type",Boolean)],mX.prototype,"preserveHeight",void 0);_.t([_.u(),_.B("design:type",Boolean)],mX.prototype,"preserveWidth",void 0);
_.t([_.u({value:!0}),_.B("design:type",Boolean)],mX.prototype,"useWidth",void 0);_.t([_.u({value:function(){return!_.dH("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.B("design:type",Boolean)],mX.prototype,"shouldRenderLazy",void 0);_.t([_.u(),_.B("design:type",Number)],mX.prototype,"width",void 0);_.t([_.Wo({is:"yt-image",disableElementRegistration:!0})],mX);
_.U(mX,"yt-image",function(){if(I1k===void 0){var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);e.content.insertBefore(kWw().content.cloneNode(!0),e.content.firstChild);
I1k=e}e=I1k;return e},{mode:2});var pa=function(){return _.z.apply(this,arguments)||this};
_.Y(pa,_.z);pa.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var e=_.WT(this.data.onVisibleCommand);e&&this.ytComponentBehavior.resolveCommand(e)}};
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],pa.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.xC.YtVisibilityBehavior),_.B("design:type",Object)],pa.prototype,"ytVisibilityBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],pa.prototype,"data",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],pa);
_.U(pa,"yt-bumper-user-edu-content-view-model",function(){if(kY4===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;c6w===void 0&&(c6w=document.createElement("template"));var k=c6w;c.call(g,k.content.cloneNode(!0),e.content.firstChild);kY4=e}e=kY4;return e},{mode:0});var vMB;var wpw,qBk=function(){if(wpw!==void 0)return wpw;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class="countdown style-scope yt-creator-goal-progress-flow-view-model" target-timestamp="[[endTimestamp]]"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden$="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;vMB===void 0&&(vMB=document.createElement("template"));var k=vMB;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return wpw=e};var Lh1;_.TG={};Lh1=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"]);_.TG.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var e=this.getContext_();return e?e.getTaskManager():_.ft},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var e=_.oC(this.hostElement,"yt-get-context-provider",{});e.detail&&e.detail.contextProvider?this.cachedProviderNode_=e.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Lh1.has(this.hostElement.localName)},
getNetworkManager:function(){var e=this.getContext_();if(e)return e.getNetworkManager()}};var A7W,rmY,nMv,a1u;_.l7=function(e){var g=rmY.get(e);if(g&&(g=g.pop()))return a1u++,g;nMv++;try{var c=document.createElement(e)}catch(k){throw new _.E2("ElementPool failed to create element",e,k.message);}return c};
A7W=function(e){var g=e.is;if(g){var c=rmY.get(g);c||(c=[],rmY.set(g,c));var k=_.uo("ELEMENT_POOL_CONFIG")||{};c.length>=(k[g]!==void 0?k[g]:_.uo("ELEMENT_POOL_DEFAULT_CAP",0))||c.push(e)}else _.mN(new _.E2("Element pool should only handle custom elements:",e.nodeName))};
rmY=new Map;nMv=0;a1u=0;var UL=new WeakMap,lhV=new WeakMap;var EMY;_.AF=function(e,g,c){c=c===void 0?_.nu():c;this.JSC$14214_defaultPriority=e;this.signal=g;this.scheduler=c;this.nextJobDescriptor=0;this.JSC$14214_parkedJobs=[];this.scheduledJobs=new Map};
_.sO=function(e,g){if(g){var c=_.iE();e.signal&&!_.Pl(c,e.signal)?(c.addListener(e.signal,function(){e.processSignal()}),e.JSC$14214_parkedJobs.push({job:g,
priority:void 0})):RQu(e,g)}};
EMY=function(e,g){if(g!==e.JSC$14214_defaultPriority){e.JSC$14214_defaultPriority=g;for(var c=_.w(e.scheduledJobs.values()),k=c.next();!k.done;k=c.next())k=k.value,e.scheduler.cancelJob(k.jobId),k.jobId=e.scheduler.addJob(k.jobWrapper,g)}};
_.AF.prototype.flushJobs=function(){EMY(this,10);this.processSignal()};
_.AF.prototype.cancel=function(){for(var e=_.w(this.scheduledJobs),g=e.next();!g.done;g=e.next()){var c=_.w(g.value);g=c.next().value;c=c.next().value;this.scheduler.cancelJob(c.jobId);this.scheduledJobs.delete(g)}this.JSC$14214_parkedJobs=[]};
_.AF.prototype.processSignal=function(){for(var e=_.w(this.JSC$14214_parkedJobs),g=e.next();!g.done;g=e.next())g=g.value,RQu(this,g.job,g.priority);this.JSC$14214_parkedJobs=[]};
var RQu=function(e,g,c){c=c||e.JSC$14214_defaultPriority;if(c===10)zF(g);else{var k=e.nextJobDescriptor++,I=function(){g();e.scheduledJobs.delete(k)},J=e.scheduler.addJob(I,c);
e.scheduledJobs.set(k,{jobWrapper:I,jobId:J,priority:c})}};var Whw;_.Fa={};Whw={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Fa.YtRendererstamperBehavior=[_.TG.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 e in this.stampDom){var g=this.stampDom[e];g&&g.id&&this.addReactiveSchema({type:"observe",method:{methodName:m8C(g.id),args:[{type:"wildcard",path:e}]}})}else{(e=(this.constructor.generatedFrom||this).observers)||(e=[]);for(g in this.stampDom){var c=this.stampDom[g];c&&c.id&&e.push(m8C(c.id)+"("+g+".*)")}this.constructor.generatedFrom.observers=e}},
addStampDomObserverFns_:function(){for(var e in this.stampDom){var g=this.stampDom[e];g.id?(this[m8C(g.id)]=this.rendererStamperObserver_.bind(this,e,g.id),this.hasDataPath_[e]=!1):(g=new _.E2("Bad rendererstamper config",this.is+":"+e),_.jW(g))}},
rendererStamperObserver_:function(e,g,c){if(c.path==e){if(c.value===void 0&&!this.hasDataPath_[e])return;this.hasDataPath_[e]=c.value!==void 0}this.rendererStamperApplyChangeRecord_(e,g,c)},
rendererStamperApplyChangeRecord_:function(e,g,c){var k=this.renderJobsMap_[g],I=null;e==c.path?(c=c.value,_.Bz(c)||(c=c===void 0||c===null?[]:[c]),e=this.stampDom[e],e.mapping&&(I=this.stampDomArray_.bind(this,c,g,e.mapping,e.reuseComponents,e.events,e.stamperStableList)),k&&k.cancel(),c=e.usePageScheduler?this.getTaskManager():void 0,k||e.initialRenderPriority==void 0)?e.renderPriority==void 0||k||(k=new _.AF(e.renderPriority,e.waitForSignal,c),this.renderJobsMap_[g]=k):(k=new _.AF(e.initialRenderPriority,
e.waitForSignal,c),this.renderJobsMap_[g]=k,I=function(J,q){J();EMY(q,10)}.bind(this,I,k)):I=e+".splices"==c.path?this.stampDomArraySplices_.bind(this,e,g,c.value):this.forwardRendererStamperChanges_.bind(this,e,g,c);
k?_.sO(k,I):I()},
forwardRendererStamperChanges_:function(e,g,c){var k=c.path.slice(e.length+1),I=this.getStampContainer_(g),J=k.indexOf("."),q=k.substring(0,J),L=!1,n=0,R=parseInt(q,0);if(q[0]=="#"){L=parseInt(q.substring(1),0);R=this.get(e);var W=this.get([e,q]);R[L]==W?n=L:n=R.indexOf(W);L=!0}else isNaN(R)||(n=R,L=!0);L&&(k=k.substring(q.length+1),J=k.indexOf("."));q=this.polymerDom(I).children[n];var b;if(I=(b=q==null?void 0:q.polymerController)!=null?b:q)k="data"+k.slice(J),typeof I.notifyPath!=="function"?_.mN(new _.E2("notifyPath missing",
this.is+": "+e+", "+g)):c.value?I.notifyPath(k,c.value):I.notifyPath(k)},
stampDomArraySplices_:function(e,g,c){if(c&&c.indexSplices){var k=this.getStampContainer_(g);if(k){for(var I=this.polymerDom(k),J=Tut(this.stampDom[e].reuseComponents),q=c.indexSplices.length,L=0;L<q;L++){for(var n=c.indexSplices[L],R=I.children[n.index],W=n.removed.length;W>0;W--)R&&R.parentElement&&(this.polymerDom(R.parentElement).removeChild(R),J&&A7W(R),R=I.children[n.index]);W=this.stampDom[e].mapping;for(var b=n.index+n.addedCount,h=document.createDocumentFragment(),X=J,D=n.index;D<b;D++){var f=
n.object[D],l=Prq(W,f);if(l){var A=W[l];f=f[l];l=this.getComponentName_(A,f);var d=R?UL.has(R):!1;X&&R&&R.is==l&&d?(l=R,this.telemetry_.reuse++,R=R.nextElementSibling):X&&R&&d?(l=this.createComponent_(A,f,J),d=this.polymerDom(R).nextElementSibling,I.insertBefore(l,d),F1C(this.is,I,R,J),R=d):(X=!1,l=this.createComponent_(A,f,J),h.appendChild(l));this.deferRenderStamperBinding_(l,A,f)}else A=new _.E2("Unimplemented type",e,g,k.tagName,Object.keys(f)[0]),_.jW(A)}I.insertBefore(h,R)}this.flushRenderStamperComponentBindings_();
this.stampDom[e].events&&_.oC(this.hostElement,"yt-rendererstamper-finished",{container:k})}else e=new _.E2("Container object not found",g,this.hostElement?this.hostElement.is:""),_.jW(e)}},
stampDomArray_:function(e,g,c,k,I,J){var q=this.getStampContainer_(g);if(q)if(g=this.polymerDom(q),k=Tut(k),e){var L=0,n=0,R;if(J=J===void 0?_.dH("STAMPER_STABLE_LIST",!1):J||!1)for(R=g.firstElementChild;R&&!UL.has(R)&&e.length>n;){J=e[n];var W=Prq(c,J);if(W){if(this.getComponentName_(c[W],J[W])!=R.is){var b=this.createComponent_(c[W],J[W],k),h=this.polymerDom(R).nextElementSibling;h?g.insertBefore(b,h):g.appendChild(b);F1C(this.is,g,R,k);R=b}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(R,
c[W],J[W]);L++;n++;R=this.polymerDom(R).nextElementSibling}else n++}d8q(this.is,g,L,k);L=R;if(e.length>n){J=document.createDocumentFragment();for(W=e.length;n<W;n++)if(b=e[n],h=Prq(c,b))R=this.createComponent_(c[h],b[h],k),this.deferRenderStamperBinding_(R,c[h],b[h]),J.appendChild(R);L&&this.polymerDom(L).parentNode&&R&&!UL.has(R)?g.insertBefore(J,L):g.appendChild(J)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();I&&_.oC(this.hostElement,"yt-rendererstamper-finished",
{container:q})}else d8q(this.is,g,0,k);else e=new _.E2("Container object not found",g,this.hostElement?this.hostElement.is:""),_.jW(e)},
polymerDom:function(e){return this.minimizePipBreakages?e:_.IC(e)},
getStampContainer_:function(e){return this.$&&this.$[e]||_.o1(this.hostElement).querySelector("#"+e)},
getComponentName_:function(e,g){return typeof e==="string"?e:e.matcher?e.matcher.call(this,g):e.component},
createComponent_:function(e,g,c){e=this.getComponentName_(e,g);try{var k=Qcv.has(e);if(c&&!k){var I=_.l7(e);try{_.Nk(I)}catch(J){c="Failed to clear styles for "+e+".",J.message&&(c+=" Original error: "+J.message),_.mN(new _.E2(c))}}else I=document.createElement(e)}catch(J){return I="YtRendererStamperBehavior failed to create "+e+".",J.message&&(I+=" Original description: "+J.message),J.message="YtRendererStamperBehavior failed to create element",_.pB(J,I),Whw.hasOwnProperty(e)?_.mN(J):_.jW(J),document.createElement("SPAN")}this.telemetry_.create++;
return I},
deferRenderStamperBinding_:function(e,g,c){this.deferredBindingTasks_.push({component:e,typeOrConfig:g,data:c})},
flushRenderStamperComponentBindings_:function(){for(var e=0,g=this.deferredBindingTasks_.length;e<g;e++){var c=this.deferredBindingTasks_[e];if(!c)break;uRV(this,c.component,c.typeOrConfig,c.data)}this.deferredBindingTasks_.length=0}}];_.sL(_.H(function(e){function g(){c().seconds&&J(e5A({seconds:Number(c().seconds)-Date.now()/1E3}))}
var c=e.targetTimestamp;e=e.className;var k=_.w(_.Wa("",void 0,"U1Q8Ae")),I=k.next().value,J=k.next().value;_.Tr(function(){g();var q=setInterval(function(){g()},1E3);
_.sX(function(){clearInterval(q)})});
return _.a("yt-countdown",{class:_.o6("ytCountDownHost",e)},_.a("div",null,I))},"z"),"yt-countdown",{props:{targetTimestamp:_.jx,
className:_.TF}});_.u7=new _.AU("KEY_MANAGER_TOKEN");var tkt={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.d4=_.H(function(e){var g=_.io("a",e.ref),c=e.aTagConfig?e.aTagConfig:_.xF(function(){var k,I,J,q,L;var n=(L=_.WT((J=e.command)==null?void 0:J.call(e)))!=null?L:(q=e.command)==null?void 0:q.call(e);return _.hb({innertubeCommand:n,skipOnClick:(k=e.skipOnClick)==null?void 0:k.call(e),defaultTarget:(I=e.target)==null?void 0:I.call(e)})||{}},void 0,"TAvz0");
_.AV(function(){_.G("mweb_get_endpoint_from_atag_command")||(g.value._data=c()._data,g.value.params=c().params)},"dcjvAe");
return _.a("a",{el:g,href:function(){return c().href$},
rel:function(){return c().rel$},
class:function(){var k,I;return(I=c().className)!=null?I:(k=e.className)==null?void 0:k.call(e)},
style:function(){var k;if((k=e.style)==null?0:k.call(e))return e.style();var I;return((I=e.disabled)==null?0:I.call(e))?"pointer-events:none":""},
"aria-haspopup":function(){return!!c()["aria-haspopup$"]},
"force-new-state":tb(function(){return c()["force-new-state$"]}),
title:tb(function(){var k,I;return(I=c().title$)!=null?I:(k=e.title)==null?void 0:k.call(e)}),
role:tb(function(){var k;return((k=e.role)==null?void 0:k.call(e))||c().role$}),
target:tb(function(){return c().target$}),
dir:tb(function(){var k;return((k=e.dir)==null?void 0:k.call(e))||c().dir}),
tabindex:function(){var k;return c().tabindex$?Number(c().tabindex$):(k=e.tabIndex)==null?void 0:k.call(e)},
"aria-hidden":function(){var k,I;return(I=c()["aria-hidden$"])!=null?I:(k=e.ariaHidden)==null?void 0:k.call(e)},
"aria-label":function(){var k,I;return(I=c()["aria-label$"])!=null?I:(k=e.ariaLabel)==null?void 0:k.call(e)},
"aria-current":e.ariaCurrent,"aria-disabled":e.disabled,"aria-labelledby":e.ariaLabelledby,"aria-describedby":e.ariaDescribedby,"aria-selected":e.ariaSelected,"tab-identifier":e.tabIdentifier,"on:pointerdown":_.Ve(function(k){var I,J;return void((J=(I=c()).onpointerdown)==null?void 0:J.call(I,k))}),
"on:click":_.Ve(function(k){var I,J;(J=(I=c()).onclick)==null||J.call(I,k);var q;(q=e.onClick)==null||q.call(e,k)}),
"on:focusin":_.Ve(function(k){var I;(I=e.onFocusin)==null||I.call(e,k)}),
"on:focusout":_.Ve(function(k){var I;(I=e.onFocusout)==null||I.call(e,k)})},e.children)},"B");var Mk8={duration:1E3,easing:"ease",fill:"forwards"};Odt.componentType=YF;var glg={duration:1E3,easing:"ease",fill:"forwards"},XpM=_.H(function(e){var g=_.io("animated-rolling-character"),c=void 0,k=function(){var L,n;return lc((L=e.character)==null?void 0:L.call(e))||lc((n=e.previousCharacter)==null?void 0:n.call(e))},I=_.w(_.Wa(0,void 0,"CYT8Ob")),J=I.next().value,q=I.next().value;
_.Tr(function(){if(window.ResizeObserver&&_.G("web_fix_rolling_numbers_zoom_safari")){var L=new _.BT(function(){var R,W,b=Math.round(((W=(R=g.value.querySelector("div"))==null?void 0:R.getBoundingClientRect().height)!=null?W:0)*100)/100;b&&q(b)},500),n=new ResizeObserver(function(){L.fire()});
n.observe(g.value);_.sX(function(){n.disconnect();L.dispose()})}});
_.AV(function(){var L=_.G("web_fix_rolling_numbers_zoom_safari")?J:e.marginMultiplier;if(L()){var n;(n=c)==null||n.cancel();if(k()){var R;n=((R=e.previousCharacter)==null?0:R.call(e))?Number(e.previousCharacter())+10:e.rollUp()?0:30;var W;if((W=e.shouldAnimate)==null||!W.call(e)){var b,h;n-=eaK((b=e.character)==null?void 0:b.call(e),(h=e.previousCharacter)==null?void 0:h.call(e),e.rollUp(),n)}}else{n=e.rollUp()?0:2;var X;(X=e.shouldAnimate)!=null&&X.call(e)||(R=n,W=e.rollUp()?-1:1,n=R-W)}g.value.style.marginTop=
"-"+n*L()+"px";var D;if((D=e.shouldAnimate)==null?0:D.call(e)){var f,l;c=cEV(g.value,(f=e.character)==null?void 0:f.call(e),(l=e.previousCharacter)==null?void 0:l.call(e),e.rollUp(),n,k(),L())}else{var A;g.value.style.display=((A=e.character)==null?0:A.call(e))?"":"none"}}},"CA6Pmf");
return _.a("animated-rolling-character",{el:g,class:"animatedRollingCharacterHost"},_.a(_.E,{cond:k,then:function(){return _.a(bhw,null)},
else:function(){return _.a(hQs,{character:e.character})}}))},"E");
XpM.idomCompat=!0;var kgv=_.G("web_enable_sink_animated_rolling_character_and_number")?XpM:Odt,GWq=_.G("web_enable_sink_animated_rolling_character_and_number")?XpM:Crv(Odt),bhw=_.H(function(){for(var e=[],g=1;g<30;g++)e.push(_.a("div",null,g%10));return _.a(_.es,null,_.a("div",null,"\u00a0"),e,_.a("div",null,"\u00a0"))},"F"),hQs=_.H(function(e){var g=e.character;
return _.a(_.es,null,_.a("div",null,"\u00a0"),_.a(_.E,{cond:function(){return!(g==null?0:g())||_.rV(g==null?void 0:g())},
then:function(){return _.a("div",null,"\u00a0")},
else:function(){return _.a("div",null,g)}}),_.a("div",null,"\u00a0"))},"G");INe.componentType=YF;var xL1=_.H(function(e){var g=void 0,c=void 0,k=function(){var J;return((J=e.fontSizeMultiplier)==null?0:J.call(e))?e.heightPx()*e.fontSizeMultiplier():e.heightPx()},I=_.xF(function(){if(!e.numberText())return[];
var J,q,L=((J=e.forceRollUp)==null?void 0:J.call(e))||!c||!((q=e.numberValue)==null?0:q.call(e))||c<e.numberValue(),n,R=e.numberText();J=k();q=!((n=e.shouldAnimate)==null||!n.call(e));n=[];var W=0,b=0,h=(g?g.replace(/\D/g,"").length:0)-(R?R.replace(/\D/g,"").length:0),X=g?g.split(/(\d)/).filter(Boolean):[];for(R=R.split(/(\d)/).filter(Boolean);h<0;){var D=R[b];n.push({character:D,rollUp:L,marginMultiplier:J,shouldAnimate:q});b++;lc(D)&&h++}for(;W<h;)D=X[W],n.push({previousCharacter:D,rollUp:L,marginMultiplier:J,
shouldAnimate:q}),W++,lc(D)||h++;for(;b<R.length;)h=R[b],D=X[W],lc(h)===lc(D)?(b++,W++):lc(h)?(W++,h=void 0):lc(D)&&(b++,D=void 0),n.push({character:h,previousCharacter:D,rollUp:L,marginMultiplier:J,shouldAnimate:q});g=e.numberText();var f;c=(f=e.numberValue)==null?void 0:f.call(e);return n},void 0,"kWiBv");
return _.a("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return e.numberText()?["height: "+k()+"px;","line-height: "+e.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.a(_.Yz,{each:I,keyBy:"INDEX"},function(J){return _.a(GWq,{character:function(){return J().character},
previousCharacter:function(){return J().previousCharacter},
marginMultiplier:function(){return J().marginMultiplier},
rollUp:function(){return J().rollUp},
shouldAnimate:function(){return J().shouldAnimate}})}))},"H");
xL1.idomCompat=!0;_.DLq=_.G("web_enable_sink_animated_rolling_character_and_number")?xL1:Crv(INe);var $Ln=function(e,g){this.fillAnimation=new Animation(qWK(e),document.timeline);this.strokeAnimation=new Animation(LxU(g),document.timeline)};
$Ln.prototype.play=function(){var e,g;(g=(e=this.fillAnimation).play)==null||g.call(e);var c,k;(k=(c=this.strokeAnimation).play)==null||k.call(c)};
$Ln.prototype.cancel=function(){var e,g;(g=(e=this.fillAnimation).cancel)==null||g.call(e);var c,k;(k=(c=this.strokeAnimation).cancel)==null||k.call(c)};_.zG=_.H(function(e){var g=e.model;var c=e.pointerDownEvent;var k=e.pointerUpEvent;var I=e.pointerLeaveEvent;var J=e.hovered;e=_.io("yt-touch-feedback-shape");var q=_.io("div"),L=_.io("div"),n=_.w(_.uF(function(){return(k==null?0:k())||(I==null?0:I())?!1:!(c==null||!c())||!1})),R=n.next().value,W=n.next().value,b=void 0,h=function(){!b&&L.value&&q.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(b=new $Ln(L.value,q.value));
var d;(d=b)==null||d.play()},X=function(){var d;
(d=b)==null||d.cancel()},D=function(){var d;
(d=b)==null||d.cancel()};
_.AV(function(){(k==null?0:k())&&h()},"bg756c");
_.AV(function(){(c==null?0:c())&&X()},"QAes8c");
_.AV(function(){(I==null?0:I())&&D()},"YaFbrc");
n=_.Ve(function(){h();W(!1)});
var f=_.Ve(function(){X();W(!0)}),l=_.Ve(function(){D();
W(!1)});
_.sX(function(){if(b){var d;(d=b)==null||d.cancel();b=void 0}});
var A={};R=_.o6("yt-spec-touch-feedback-shape",function(){return rEe(g().color)},function(){return aNz(g().thumbnailSize,!!g().isExtended)},(A["yt-spec-touch-feedback-shape--focused"]=function(){return!!g().focused&&!g().disabled},A["yt-spec-touch-feedback-shape--circular"]=function(){return!!g().circular},A["yt-spec-touch-feedback-shape--down"]=R,A["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!g().triggerEvents},A["yt-spec-touch-feedback-shape--hovered"]=function(){return J==
null?void 0:J()},A));
return _.a("yt-touch-feedback-shape",{el:e,class:R,style:_.N2({"margin-top":function(){return g().customTopExtend?"-"+g().customTopExtend+"px":void 0}}),
"on:mousedown":f,"on:mouseup":n,"on:pointerleave":l,"on:touchstart":f,"on:touchend":n,"aria-hidden":!0},_.a(_.E,{cond:function(){return!!g().hoverEffect},
then:function(){return _.a("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.N2({"border-radius":function(){return g().borderRadius},
background:function(){var d;if(d=g().hoverEffect){for(var S=[],V=_.w((d==null?void 0:d.lightingTechniques)||[]),Q=V.next();!Q.done;Q=V.next())switch(Q.value){case 2:var y=Q=void 0,O=void 0,Jq=void 0;S.push("linear-gradient(180deg, "+((Q=d)==null?void 0:(y=Q.palette)==null?void 0:y.keyLight)+", "+((O=d)==null?void 0:(Jq=O.palette)==null?void 0:Jq.background)+")")}var LC,bW;S.push((LC=g().hoverEffect)==null?void 0:(bW=LC.palette)==null?void 0:bW.background);d=S.join(", ")}else d=void 0;return d}})})}}),
_.a("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.N2({"border-radius":function(){return g().borderRadius},
"border-color":function(){var d,S;return(d=g().touchEffect)==null?void 0:(S=d.palette)==null?void 0:S.background}}),
el:q}),_.a("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.N2({"border-radius":function(){return g().borderRadius},
"background-color":function(){var d,S;return(d=g().touchEffect)==null?void 0:(S=d.palette)==null?void 0:S.background}}),
el:L}))},"L");
_.zG.idomCompat=!0;var YBq={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 H$=_.xp();H$=H$.toLowerCase();if(_.nC(H$,"android")){var f1B=H$.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);f1B&&parseFloat(f1B[1])<100||H$.match("("+Object.keys(YBq).join("|")+")")};var jes=_.H(function(e){return _.a(_.E,{cond:e.aTagConfig,then:function(g){return _.a(_.d4,{aTagConfig:g,disabled:e.disabled,className:e.className,style:e.style,title:e.title,ariaLabel:e.ariaLabel,ariaCurrent:function(){var c,k;return((c=e.toggleable)==null?void 0:c.call(e))&&((k=e.toggled)==null?void 0:k.call(e))},
ref:e.ref},e.children)},
else:function(){return _.a("button",{el:_.mb(e.ref),"on:click":_.Ve(function(g){var c;return(c=e.onClick)==null?void 0:c.call(e,g)}),
class:e.className,title:e.title,style:e.style,disabled:e.disabled,"aria-pressed":function(){var g,c;return((g=e.toggleable)==null?0:g.call(e))?!((c=e.toggled)==null||!c.call(e)):void 0},
"aria-label":e.ariaLabel,"aria-disabled":e.visiblyDisabled,"aria-hidden":e.ariaHidden,tabindex:e.tabIndex},e.children)}})},"M"),PTs=_.H(function(e){var g=e.data;
var c=e.hasIconLeading;var k=e.hasIconLeadingTrailing;var I=e.hasIconTrailing;var J=e.iconButton;var q=e.iconClassName;var L=e.secondaryIconClassName;var n=e.icon;var R=e.secondaryIcon;var W=e.textContentClassName;return _.a(Qz,{className:"",style:"display: inherit; justify-content: center"},_.a(_.E,{debugInstance:"V4z1Uc",cond:function(){return n&&(c()||k()||(J==null?void 0:J()))},
then:function(){return _.a(Qz,null,_.a("div",{class:q,"aria-hidden":"true"},n==null?void 0:n()))}}),_.a(_.E,{debugInstance:"ok3btb",
cond:function(){return(g().buttonText||g().animatedTextProps||g().formattedButtonText)&&!(J==null?0:J())},
then:function(){return _.a(Qz,null,_.a(ihn,{className:W,iconPosition:function(){return g().iconPosition},
text:function(){return g().buttonText},
oneOffCustomTextWrap:function(){return g().oneOffCustomTextWrap},
formattedButtonText:function(){return g().formattedButtonText},
animatedTextProps:function(){return g().animatedTextProps}}))}}),_.a(_.E,{debugInstance:"DO5Rz",
cond:I,then:function(){return _.a(Qz,null,_.a("div",{class:q},n==null?void 0:n()))}}),_.a(_.E,{debugInstance:"bnojSc",
cond:k,then:function(){return _.a(Qz,null,_.a("div",{class:L},R==null?void 0:R()))}}),_.a(_.E,{debugInstance:"HN3kad",
cond:function(){return!g().disabled&&!0},
then:function(){return _.a(_.zG,{model:function(){var b=g();return{color:b.style==="overlay-dark"?4:b.style==="overlay"?b.type==="filled"?4:3:b.type==="filled"||b.style==="call-to-action-inverse"||b.style==="mono-inverse"?2:1}}})}}))},"N"),ihn=_.H(function(e){var g=function(){var c,k;
return((c=e.iconPosition)==null?void 0:c.call(e))==="icon-with-label"||((k=e.oneOffCustomTextWrap)==null?void 0:k.call(e))};
return _.a("div",{class:e.className,"aria-hidden":function(){var c,k,I;return((c=e.ariaHidden)==null?void 0:c.call(e))&&(!((k=e.animatedTextProps)==null||!k.call(e))||!((I=e.formattedButtonText)==null||!I.call(e)))}},_.a(_.f4,null,_.a(_.DC,{when:function(){var c;
return(c=e.animatedTextProps)==null?void 0:c.call(e)}},function(){return _.a(_.DLq,{numberText:function(){return e.animatedTextProps().numberText},
numberValue:function(){return e.animatedTextProps().numberValue},
heightPx:function(){return e.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return e.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return e.animatedTextProps().shouldAnimate},
forceRollUp:function(){return e.animatedTextProps().forceRollUp}})}),_.a(_.DC,{when:function(){var c;
return(c=e.formattedButtonText)==null?void 0:c.call(e)}},function(){return _.a(_.fa,{text:function(){return Object.assign({},e.formattedButtonText(),{lineBreakMode:g()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":e.formattedButtonText().lineBreakMode,
alignment:g()?"TEXT_ALIGNMENT_CENTER":e.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!g()}})}),_.a(_.DC,{when:function(){var c,k;
return((c=e.iconPosition)==null?void 0:c.call(e))==="icon-with-label"&&((k=e.text)==null?void 0:k.call(e))}},function(){return _.a(_.fa,{text:function(){return{content:e.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.a(_.$z,null,function(){return e.text})))},"O"),mLI=_.H(function(e){return _.a(_.E,{debugInstance:"kM7Sgc",
cond:e.hasLabel,then:function(){var g;return _.a("label",{class:e.className},e.children,(g=e.textContent)==null?void 0:g.call(e))},
else:function(){return e.children}})},"P"),Qz=_.H(function(e){return e.children},"Q");var ppB=_.H(function(e){function g(){J(void 0);L(void 0);R(void 0)}
var c=_.mb(),k=_.w(_.Wa(void 0,void 0,"Ug77pc")),I=k.next().value,J=k.next().value;k=_.w(_.Wa(void 0,void 0,"XGf7Zb"));var q=k.next().value,L=k.next().value,n=_.w(_.Wa(void 0,void 0,"w55oqd"));k=n.next().value;var R=n.next().value;n=_.w(_.Wa(0,void 0,"rBgpzc"));var W=n.next().value,b=n.next().value;n=_.Ve(function(){switch(W()){case 1:b(2);break;case 3:var X,D;(D=(X=c.value).hidePopover)==null||D.call(X);b(0);g()}});
_.AV(function(){if(e.show()){var X;J((X=e.children)==null?void 0:X.call(e));var D;L((D=e.location)==null?void 0:D.call(e));var f;R((f=e.classNames)==null?void 0:f.call(e));switch(W()){case 0:var l,A;(A=(l=c.value).showPopover)==null||A.call(l);b(1);break;case 3:b(1);var d,S;(S=(d=c.value).hidePopover)==null||S.call(d);var V,Q;(Q=(V=c.value).showPopover)==null||Q.call(V)}}else switch(W()){case 2:b(3);break;case 1:var y,O;(O=(y=c.value).hidePopover)==null||O.call(y);g();b(0)}},"Z8V4Qb");
_.lo(function(){});
var h={};return _.a("yt-popover",{popover:"manual",el:c,style:_.N2({left:function(){var X;return(X=q())==null?void 0:X.left},
top:function(){var X;return(X=q())==null?void 0:X.top},
bottom:function(){var X;return(X=q())==null?void 0:X.bottom},
right:function(){var X;return(X=q())==null?void 0:X.right}}),
class:_.o6("ytPopoverComponentHost",k,(h.ytPopoverComponentHostClosing=function(){return W()===3},h.ytPopoverComponentHostSeeThrough=function(){var X;
return((X=e.seeThrough)==null?void 0:X.call(e))===!0},h)),
"on:animationend":n},I)},"S");var TPu={left:"0px",right:"auto",top:"0px",bottom:"auto"},l1I=function(){var e=this;this.registerTooltipElement=function(c){var k;e.tooltipElement=(k=c.querySelector("yt-popover"))!=null?k:void 0};
var g=_.w(_.Wa(void 0,void 0,"EIh5sc"));this.state=g.next().value;this.setState=g.next().value;g=_.w(_.Wa(void 0,void 0,"PC1M0b"));this.schedulerJobID=g.next().value;this.setSchedulerJobID=g.next().value},x0A=function(e,g){var c=Kv,k=_.ft.addJob(function(){var I=Am1(c,e,g);
c.currentConfig=g;c.setState({text:g.text,location:_.G("web_tooltip_location_fix")?void 0:I,anchor:e,offset:g.offset,style:g.style})},4,g.delay);
c.setSchedulerJobID(k)},D0V=function(){var e=Kv,g=e.schedulerJobID();
g&&(_.ft.cancelJob(g),e.setSchedulerJobID(void 0));e.setState(void 0);e.currentConfig=void 0};
l1I.prototype.notify=function(e,g){var c;((c=this.state())==null?void 0:c.anchor)===e&&(c=Am1(this,e,g),this.currentConfig=g,this.setState({text:g.text,location:_.G("web_tooltip_location_fix")?void 0:c,anchor:e,offset:g.offset,style:g.style}))};
var Am1=function(e,g,c){var k=g.getBoundingClientRect();g=window.innerWidth;var I=window.innerHeight,J=c.location,q=c.offset;c=c.text;if(e=e.tooltipElement){var L=getComputedStyle(e);e=L.font;var n=ye(L.lineHeight),R=ye(L.paddingLeft),W=ye(L.paddingRight),b=ye(L.paddingTop);L=ye(L.paddingBottom);var h=document.createElement("canvas").getContext("2d");h.font=e;c={width:h.measureText(c).width+R+W,height:n+b+L}}else c=void 0;e=c;if(!e)return TPu;c=e.width;e=e.height;R=q+e;b=q+c;n=k.top>=R;R=I-k.bottom>=
R;W=k.left>=b;b=g-k.right>=b;L=J;switch(J){case "top":!n&&R&&(L="bottom");break;case "bottom":!R&&n&&(L="top");break;case "left":!W&&b&&(L="right");break;case "right":!b&&W&&(L="left")}switch(L){case "top":J=k.left+k.width/2-c/2;k=k.top-e-q;break;case "bottom":J=k.left+k.width/2-c/2;k=k.bottom+q;break;case "left":J=k.left-c-q;k=k.top+k.height/2-e/2;break;case "right":J=k.right+q;k=k.top+k.height/2-e/2;break;default:J=k.left+k.width/2-c/2,k=k.bottom+q}q=Object.assign({},TPu);J+c>g?(q.right="0px",q.left=
"auto"):(q.left=Math.round(Math.max(0,J)+window.scrollX)+"px",q.right="auto");k+e>I?(q.bottom="0px",q.top="auto"):(q.top=Math.round(Math.max(0,k)+window.scrollY)+"px",q.bottom="auto");return q};var Kv;Kv=new l1I;_.sew=_.H(function(){var e=_.xF(function(){var I;return(I=Kv.state())==null?void 0:I.anchor},void 0,"tiGUn"),g=_.xF(function(){var I;
return(I=Kv.state())==null?void 0:I.text},void 0,"TA2GQe"),c=_.xF(function(){var I;
return(I=Kv.state())==null?void 0:I.style},void 0,"ucvFsf"),k=_.G("web_tooltip_location_fix")?_.xF(function(){var I=e();
var J=Kv.currentConfig;if(I&&J)return Am1(Kv,I,J)},void 0,"EpDz6"):_.xF(function(){var I;
return(I=Kv.state())==null?void 0:I.location},void 0,"aRJtfd");
return _.a("yt-tooltip",{class:"ytTooltipContainerHost",el:_.mb(Kv.registerTooltipElement),"aria-hidden":"true"},_.a(ppB,{classNames:function(){switch(c()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:k,show:function(){return!!g()&&!!k()},
seeThrough:!0},g))},"T");var aZW=CT("stamper-context");_.UO=_.H(function(e){var g=e.data;var c=e.icon;var k=e.iconName;var I=e.animateIcon;var J=e.secondaryIcon;var q=e.secondaryIconName;var L=e.focusedOverride;var n=e.clientOnlyWizTooltipsEnabled;YWA();var R=nlt(g),W=R.size,b=R.style;e=R.disabled;var h=R.onTap,X=R.alignByText,D=R.aTagConfig,f=R.customColors,l=R.segmentedPosition,A=R.toggled,d=R.toggleable,S=R.accessibilityLabel,V=R.onToggle,Q=R.iconPosition,y=R.oneOffCustomTextWrap,O=R.disableTextEllipsis,Jq=R.disableBackdropFilter,LC=R.tooltipText,
bW=R.ariaHidden,RA=R.tabIndex,Xg=R.buttonText,Fg=R.formattedButtonText,oA=R.animatedTextProps,Zt=R.onClickRateLimitMs,Ev=bRC(g,c,J,k,q,L,I),an=Ev.type;c=Ev.shouldFocus;k=Ev.hasIconLeading;I=Ev.hasIconTrailing;var V6=Ev.hasIconLeadingTrailing,bs=Ev.hasIconOnly;J=Ev.hasIconOnly40;var f1=Ev.hasIconWithLabel;q=Ev.iconButton;var hk=Ev.visiblyDisabled;L=Ev.overrideSmallSizeIcon;var Pq=Ev.iconToRender;Ev=Ev.secondaryIconToRender;var vq=_.w($0v(LC,R.tooltipShape)).next().value,hq=function(p1){h==null||h(p1);
d()&&(V==null||V(p1))},zv=_.xF(function(){return Zt==null?void 0:Zt()},void 0,"siKywb"),XM=_.xF(function(){return zv()?Wqs(hq,zv()):hq},void 0,"wDTcN");
R={};var Su={};return _.a(mLI,{className:_.o6("yt-spec-button-shape-with-label",(R["yt-spec-button-shape-with-label--is-overlay"]=function(){return b()==="overlay"||b()==="overlay-dark"},R)),
hasLabel:f1,textContent:function(){return _.a(ihn,{text:Xg,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:y,iconPosition:Q,formattedButtonText:Fg,animatedTextProps:oA})}},_.a(jes,{aTagConfig:D,
className:_.o6("yt-spec-button-shape-next",function(){return haC(an())},function(){return hk()?void 0:X8p(b())},function(){return Gg8(W())},(Su["yt-spec-button-shape-next--disabled"]=hk,Su["yt-spec-button-shape-next--focused"]=c,Su["yt-spec-button-shape-next--icon-trailing"]=I,Su["yt-spec-button-shape-next--icon-leading"]=k,Su["yt-spec-button-shape-next--icon-leading-trailing"]=V6,Su["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return V6()&&!(Xg()||Fg())},Su["yt-spec-button-shape-next--icon-button"]=
function(){return bs()||f1()},Su["yt-spec-button-shape-next--icon-only-default"]=J,Su["yt-spec-button-shape-next--align-by-text"]=X,Su["yt-spec-button-shape-next--segmented-start"]=function(){return l()==="start"},Su["yt-spec-button-shape-next--segmented-end"]=function(){return l()==="end"},Su["yt-spec-button-shape-next--override-small-size-icon"]=L,Su["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=y,Su["yt-spec-button-shape-next--disable-text-ellipsis"]=O,Su["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Jq()&&!_.G("web_disable_backdrop_filter")},Su)),
style:function(){var p1=f();if(p1){var C1=p1.color;var mz=p1.backgroundColor;p1=p1.borderColor;var Ov="";C1&&(Ov+="color: "+C1+";");mz&&(Ov+="background-color: "+mz+";");p1&&(Ov+="border-color: "+p1+";");C1={style:Ov}}else C1={};return C1.style},
onClick:function(p1){XM()(p1)},
disabled:e,ariaLabel:S,toggleable:d,toggled:A,title:function(){return(n==null?0:n())||!LC()?"":LC()},
visiblyDisabled:hk,ariaHidden:bW,tabIndex:RA,ref:function(p1){(n==null?0:n())&&vq(p1)}},_.a(PTs,{data:g,
hasIconLeading:k,hasIconLeadingTrailing:V6,hasIconTrailing:I,iconButton:q,icon:Pq,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:Ev})))},"V");
_.UO.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.oD=_.H(function(e){var g=e.data;var c=e.className;var k=e.style;var I=e.useOutlinedIcon;var J=e.buttonOverrides;var q=e.animatedTextProps;var L=e.onClick;var n=e.target;var R=_.io("button-view-model",function(Q){Q.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var y=g().targetId;y&&_.OH(_.MG(),y,Q);return function(){Ko(_.MG(),Q)}}),W=function(){return g().iconName},b=function(){var Q;
return(Q=g())==null?void 0:Q.entityKey},h=_.M2(function(Q){a:{var y=b(),O=g().buttonEntitySelectorType;
if(O&&y)switch(O){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":Q=(Q=_.Zi(Q,y))?{isHidden:Q.adsState==="ADS_STATE_NONE"||Q.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:Q={isHidden:!1};break a}Q=void 0}return Q}),X,D=(X=_.Ss().resolve(_.NN(_.gb)))==null?void 0:X(),f=function(){var Q=g();
var y=J==null?void 0:J(),O=q==null?void 0:q(),Jq=n==null?void 0:n();if(Q){var LC=lNW(Q.type);var bW=!!Q.title||!!Q.titleFormatted;var RA=!(!Q.iconName&&!Q.iconImage);bW=RA&&!bW?"icon-only":RA?Q.iconTrailing||Q.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;bW==="icon-only-40"&&(LC="text");var Xg;RA=(Xg=y==null?void 0:y.state)!=null?Xg:AEU(Q.state);var Fg,oA=(Fg=y==null?void 0:y.disabled)!=null?Fg:Q.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||Q.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.G("web_button_vm_refactor_disabled")){var Zt;oA=(Zt=y==null?void 0:y.disabled)!=null?Zt:RA==="disabled"}O=O&&O.numberText&&!isNaN(Number(O.numberValue))?O:void 0;Fg=Object;Zt=Fg.assign;Xg=Q.title;var Ev=Q.titleFormatted,an=Q.accessibilityText,V6=Ttq(Q.style),bs=sze(Q.buttonSize);Jq=p8C(Q,R,oA,L,Jq);oA=oA&&!Q.onDisabledTap;var f1=Pte(Q,R),hk=Q.customFontColor,Pq=Q.customBackgroundColor;var vq=Q.customBorderColor;var hq=Q.customDarkThemeFontColor,zv=Q.customDarkThemeBackgroundColor,XM=Q.customDarkThemeBorderColor;
hk=D&&hq?hq:hk;Pq=D&&zv?zv:Pq;vq=D&&XM?XM:vq;vq={color:hk?_.EY(hk):void 0,backgroundColor:Pq?_.EY(Pq):void 0,borderColor:vq?_.EY(vq):void 0};if(XM=_.x(Q.tooltipData,vGu)){var Su;Pq={text:(Su=XM.tooltipText)!=null?Su:"",location:jzz(XM.placement),style:XM.style}}else Pq=void 0;Q=Zt.call(Fg,{},{buttonText:Xg,formattedButtonText:Ev,animatedTextProps:O,accessibilityLabel:an,style:V6,type:LC,state:RA,size:bs,iconPosition:bW,onTap:Jq,disabled:oA,aTagConfig:f1,customColors:vq,tooltipText:Q.tooltip,tooltipShape:Pq},
y)}else Q={style:"mono",type:"text",state:"active",size:"M"};Q.focused=d();return Q},l=function(){return Elq(f(),!!g().iconName)};
e=_.w(_.Wa(!1,void 0,"yZ8hab"));X=e.next().value;var A=e.next().value,d=X;e=_.Ve(function(){var Q=_.Ss().resolve(_.NN(_.u7));Q&&A(Q.isKeyBoardInUse());return!0});
X=_.Ve(function(){A(!1);return!0});
_.AV(function(){var Q,y=_.x(g==null?void 0:(Q=g())==null?void 0:Q.onVisible,_.EL);y&&_.b3(y,{disableClickTracking:!0})},"G9MlKd");
var S=function(){var Q;return(g==null?0:(Q=g())==null?0:Q.iconImage)?{sources:[g().iconImage]}:void 0},V=_.G("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.a("button-view-model",{el:R,class:_.o6("ytSpecButtonViewModelHost",c),"on:focusin":e,"on:focusout":X},_.a(_.E,{cond:function(){var Q,y;return!((y=b()&&g().buttonEntitySelectorType&&((Q=h())==null?void 0:Q.isHidden))!=null&&y)},
then:function(){return _.a(_.E,{cond:S,then:function(Q){return _.a(_.UO,{data:f,icon:function(){return _.a(_.pv,{data:Q,alt:"",targetWidth:l,targetHeight:l,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:V})},
else:function(){return _.a(_.UO,{data:f,icon:function(){return _.a(_.SU,{icon:W,active:function(){return(I==null?0:I())?!1:f().toggled},
animateIcon:function(){var Q;return!!(k==null?0:(Q=k())==null?0:Q.animateIcon)},
size:l})},
clientOnlyWizTooltipsEnabled:V})}})}}))},"X");
_.oD.idomCompat={callbacks:{onClick:!0}};_.sL(_.H(function(e){return _.a("yt-button-view-model",{id:e.id,class:_.o6(e.scopingClassName,e.classes),icon:function(){var g;return(g=e.icon)==null?void 0:g.call(e)},
"dialog-dismiss":function(){var g;return((g=e.dialogDismiss)==null?0:g.call(e))?"":void 0}},_.a(_.oD,{data:function(){var g;
return(g=e.data)==null?void 0:g.call(e)},
className:function(){var g;return(g=e.className)==null?void 0:g.call(e)},
style:function(){var g;return(g=e.style)==null?void 0:g.call(e)},
useOutlinedIcon:function(){var g;return(g=e.useOutlinedIcon)==null?void 0:g.call(e)},
buttonOverrides:function(){var g;return(g=e.buttonOverrides)==null?void 0:g.call(e)},
animatedTextProps:function(){var g;return(g=e.animatedTextProps)==null?void 0:g.call(e)},
onClick:function(g){var c;return(c=e.onClick)==null?void 0:c.call(e,g)}}))},"Y"),"yt-button-view-model",{props:{data:_.jx,
className:_.jx,style:_.jx,useOutlinedIcon:_.jx,buttonOverrides:_.jx,animatedTextProps:_.jx,onClick:_.TF,scopingClassName:_.jx,id:_.jx,icon:_.jx,dialogDismiss:_.jx,classes:_.jx,target:_.TF}});_.sL(_.H(function(e){var g=e.data;var c=e.id;var k=e.className;var I=e.iconName;var J=e.animateIcon;var q=e.secondaryIconName;e=_.w(_.Wa(!1,void 0,"TtJl8"));var L=e.next().value,n=e.next().value,R=function(){var b=_.Ss().resolve(_.NN(_.u7));b&&n(b.isKeyBoardInUse())},W=function(){n(!1)};
e=_.io("yt-button-shape",function(b){if(_.Ss().resolve(_.NN(_.u7)))return b.addEventListener("focusin",R),b.addEventListener("focusout",W),function(){b.removeEventListener("focusin",R);b.removeEventListener("focusout",W)}});
return _.a("yt-button-shape",{el:e,id:c,class:k},_.a(_.E,{cond:g,then:function(){return _.a(_.UO,{data:g,iconName:I,secondaryIconName:q,focusedOverride:L,animateIcon:J})}}))},"Z"),"yt-button-shape",{props:{data:_.jx,
id:_.jx,className:_.jx,iconName:_.jx,animateIcon:_.jx,secondaryIconName:_.jx,clientOnlyWizTooltipsEnabled:_.jx,disableUpgrade:_.jx},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Z6=function(){var e=_.z.apply(this,arguments)||this;e.isGoalActive=!0;return e};
_.Y(Z6,_.z);Z6.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Z6.prototype.progressBarChanged=function(){var e=_.o1(this.hostElement).querySelector("#progress-bar-progress"),g,c,k,I=(k=Number((g=this.creatorGoalState)==null?void 0:g.currentGoalCount)/Number((c=this.creatorGoalState)==null?void 0:c.totalGoalCount)*100)!=null?k:0,J;e.style.width=((J=Math.min(I,100))!=null?J:0)+"%"};
Z6.prototype.goalStateChanged=function(){var e;this.isGoalActive=((e=this.creatorGoalState)==null?void 0:e.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var g;e={"--yt-progress-bar-color":p5C((g=this.creatorGoalState)==null?void 0:g.progressBarColor)};_.Nk(this.hostElement,e)};
Z6.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Bd.Object.defineProperties(Z6.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var e;return this.isGoalActive&&!((e=this.creatorGoalState)==null||!e.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.creatorGoalState)==null?0:e.endTimestampMs){var g;e=Number((g=this.creatorGoalState)==null?void 0:g.endTimestampMs)/1E3;return{seconds:String(e)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.creatorGoalState)==null?0:e.themedTargetImage){var g;e=_.x((g=this.creatorGoalState)==null?void 0:g.themedTargetImage,SwM);return this.isAppDarkTheme()?e==null?void 0:e.imageDark:e==null?void 0:e.imageLight}}}});
_.Bd.Object.defineProperties(Z6,{template:{configurable:!0,enumerable:!0,get:function(){return qBk()}}});
Z6.prototype.goalStateChanged=Z6.prototype.goalStateChanged;Z6.prototype.progressBarChanged=Z6.prototype.progressBarChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Z6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.W$),_.B("design:type",Object)],Z6.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);
_.t([_.u({selectorArgs:["data.creatorGoalEntityKey"],selector:function(e,g){return _.Nc(e.entities,"creatorGoalEntity",g)}}),
_.B("design:type",Object)],Z6.prototype,"creatorGoalState",void 0);_.t([_.u(),_.B("design:type",Object)],Z6.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Z6.prototype,"isGoalActive",void 0);_.t([_.p("creatorGoalState","isGoalActive"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Z6.prototype,"shouldShowCountdown",null);_.t([_.p("creatorGoalState"),_.B("design:type",Object),_.B("design:paramtypes",[])],Z6.prototype,"endTimestamp",null);
_.t([_.p("creatorGoalState"),_.B("design:type",Object),_.B("design:paramtypes",[])],Z6.prototype,"targetIconThemedImage",null);_.t([_.OY("creatorGoalState.currentGoalCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z6.prototype,"progressBarChanged",null);_.t([_.OY("creatorGoalState.creatorGoalState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z6.prototype,"goalStateChanged",null);
_.t([_.Wo({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Z6);_.U(Z6,"yt-creator-goal-progress-flow-view-model",function(){return qBk()},{mode:0});var Fhq;var u$Z;var Vz=function(){return _.z.apply(this,arguments)||this};
_.Y(Vz,_.z);Vz.prototype.attached=function(){var e,g,c;if(this==null?0:(e=this.data)==null?0:(g=e.pdgPurchasedBumperLoggingDirectives)==null?0:(c=g.loggingDirectives)==null?0:c.trackingParams){var k,I,J;d0v(this==null?void 0:(k=this.data)==null?void 0:(I=k.pdgPurchasedBumperLoggingDirectives)==null?void 0:(J=I.loggingDirectives)==null?void 0:J.trackingParams)}};
Vz.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Vz.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Vz.prototype,"data",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Vz);
_.U(Vz,"yt-live-chat-item-bumper-view-model",function(){if(u$Z===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Fhq===void 0&&(Fhq=document.createElement("template"));var k=Fhq;c.call(g,k.content.cloneNode(!0),e.content.firstChild);u$Z=e}e=u$Z;return e},{mode:0});var dLk;var zQB;_.ms=function(e,g){this.data=e;this.actions=g;this.data=e;this.actions=g};
_.xy=function(){};_.tF={};_.tF.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(e,g){zaq(this.hostElement,e,g)},
getNavigationEndpointPopupAction:function(e){return HRV(e,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(e,g){Qzt(this.hostElement,e,g,this.openPopupConfig)}};var KxK=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.B$={};
_.B$.YtEndpointBehavior=[_.tF.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.uo("openPopupConfig");(this.useClickHandler=_.dH("useClickHandler",!1))?this.hostElement.addEventListener("click",Sh(this,this.onEndpointClick_)):(iq(this.hostElement,"tap",Sh(this,this.onEndpointTap_)),iq(this.hostElement,"touchend",Sh(this,this.onEndpointTouchEnd_)));iq(this.hostElement,"touchstart",Sh(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Sh(this,this.onEndpointTapStart_))},
onEndpointClick_:function(e){ZRW(this.hostElement,e,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(e){var g=this.hostElement,c=this.openPopupConfig,k=this.disableCommandHandlerOverride;k=k===void 0?!1:k;var I=U0z(e);if(I){I.href&&XZ(I.href);var J=e.detail;var q=J.sourceEvent;J=J.preventer;q=q.button!==void 0?q.button===0&&!Cv(q):J?!Cv(J):!0;I.data&&q&&olC(g,I,e,c,k)}},
onEndpointTouchEnd_:function(e){Cv(e)||U0z(e)&&e.preventDefault()},
onEndpointTapStart_:function(e){SWg(e)}}];_.Nr={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(e){for(var g=_.dF.getInstance(),c=_.w(Object.keys(e)),k=c.next();!k.done;k=c.next()){var I=k.value;k=e[I];if(this&&this[k]){var J=g.actionRoutingMap.get(I);J||(J=new Map,g.actionRoutingMap.set(I,J));g.registerActionHandler(this,I,this[k].bind(this),J)}else I=Error("nd"),I.params=k,_.zr(I)}},
unregisterActionMap:function(e){_.Hy(_.dF.getInstance(),e,this)}}]};var ky=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_"+(_.G("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.G("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.G("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.G("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.G("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.G("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var gi;var IH=new Map;var cQg=window.matchMedia("(forced-colors: active)").matches;var Hhv;var Qeq;var ULI=new _.AU("LOTTIE_LOADER_TOKEN");_.Sx=_.H(function(e){var g=e.data;var c=e.className;var k=e.animationName;var I=e.animationRef;var J=e.elRefForInterop;var q=_.PV("lottie-component"),L;_.sX(function(){var R;return void((R=L)==null?void 0:R.destroy())});
var n;_.AV(function(){var R=_.ds(k);if(R!==n){n=R;var W=Object.assign({},{animationName:R,animationRef:_.ds(I)},_.ds(g));try{_.Ss().resolve(ULI)().then(function(X){var D;(D=L)==null||D.destroy();var f,l;D=(l=J==null?void 0:(f=J())==null?void 0:f.value)!=null?l:q.value;f=W.animationRef;l=W.listeners;X=X.loadAnimation(Object.assign({},{container:D},W.animationConfig));f&&(f.lottieEl=X);if(l)for(D=_.w(Object.entries(l)),f=D.next();!f.done;f=D.next())l=_.w(f.value),f=l.next().value,(l=l.next().value)&&
X.addEventListener(f,l);L=X})}catch(X){R=X;
var b="LottieComponent error.";R.message&&(b+=" Original description: "+R.message);_.pB(R,b);_.mN(R);var h;((h=W.listeners)==null?0:h.error)&&W.listeners.error(R)}}},"nrJISd");
return _.a(Ftg,{cond:function(){return!(J==null?0:J())},
then:function(){return _.a("lottie-component",{class:_.o6("ytLottieComponentHost",c),el:q})}})},"aa");_.sL(_.H(function(e){return _.a("ytd-lottie-player",{id:e.id,hidden:e.hidden,class:e.className,"aria-label":e.ariaLabel,style:"display: block;"},_.a(_.Sx,{data:e.data,animationName:function(){var g;return((g=e.data().animationConfig)==null?void 0:g.name)||""},
animationRef:function(){return e.data().animationRef}}))},"ba"),"ytd-lottie-player",{props:{data:_.jx,
id:_.jx,hidden:_.jx,className:_.jx,ariaLabel:_.jx}});var yz=function(){var e=_.z.apply(this,arguments)||this;e.animationRef={};e.delhiIconsEnabled=_.G("enable_web_delhi_icons");return e};
_.Y(yz,_.z);_.v=yz.prototype;
_.v.handlePropertyChange=function(){var e=this.animatedIcon,g=this.active,c=this.isDarkTheme;if(e){var k=this.previousActive!==g;this.previousActive=g;this.animationRef.lottieEl?k?this.toggleAnimation(g,e.totalFrames):_.G("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(g,e.totalFrames):g?this.initializeAnimationAsToggled(e.lottiePlayerProps,e.totalFrames):this.initializeAnimationAsUntoggled(e.lottiePlayerProps);e.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
e.type;this.lottiePlayerProps=this.computeLottiePlayerProps(e,c)}};
_.v.computeLottiePlayerProps=function(e,g){var c=this.deepCloneLottiePlayerProps(e);g?(g=e.nameDarkTheme,e=e.pathDarkTheme):(g=e.name,e=e.path);c.animationConfig.name=g;(g=IH.get(e))?c.animationConfig.animationData=g:c.animationConfig.path=e;return c};
_.v.initializeAnimationAsToggled=function(e,g){e.animationConfig.initialSegment=[g-1,g]};
_.v.initializeAnimationAsUntoggled=function(e){e.animationConfig.initialSegment=void 0};
_.v.toggleAnimation=function(e,g){if(e){var c;(c=this.animationRef.lottieEl)==null||c.playSegments([0,g],!0)}else{var k;(k=this.animationRef.lottieEl)==null||k.playSegments([0,1],!0)}};
_.v.setAnimationState=function(e,g){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(e?g-1:0,!0)};
_.v.deepCloneLottiePlayerProps=function(e){var g=Object.assign({},e.lottiePlayerProps.animationConfig);e=Object.assign({},e.lottiePlayerProps);e.animationConfig=g;return e};
yz.prototype.handlePropertyChange=yz.prototype.handlePropertyChange;_.t([_.u(),_.B("design:type",Object)],yz.prototype,"animatedIcon",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],yz.prototype,"active",void 0);_.t([_.u(),_.B("design:type",Boolean)],yz.prototype,"isDarkTheme",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],yz.prototype,"animatedIconType",void 0);_.t([_.u(),_.B("design:type",Boolean)],yz.prototype,"previousActive",void 0);
_.t([_.u(),_.B("design:type",Object)],yz.prototype,"lottiePlayerProps",void 0);_.t([_.u(),_.B("design:type",Object)],yz.prototype,"animationRef",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],yz.prototype,"delhiIconsEnabled",void 0);_.t([_.OY("animatedIcon","active","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yz.prototype,"handlePropertyChange",null);_.t([_.Wo({is:"yt-animated-icon",disableElementRegistration:!0})],yz);
_.U(yz,"yt-animated-icon",function(){if(Qeq===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class="lottie-player style-scope yt-animated-icon" data="[[lottiePlayerProps]]"></ytd-lottie-player>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Hhv===void 0&&(Hhv=document.createElement("template"));var k=Hhv;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Qeq=e}e=Qeq;return e},{mode:2});var oMM;var Zh1;_.J4=_.H(function(e){var g={value:null,cancelled:!1};_.sX(function(){g.cancelled=!0});
var c=_.xF(e.data,{equals:function(k,I){return k.iconName===I.iconName&&k.iconStyle===I.iconStyle&&k.iconSize===I.iconSize&&k.iconSetName===I.iconSetName&&k.iconSelected===I.iconSelected}},"ck24jb");
return _.a("span",{class:"yt-icon-shape",el:_.mb(function(k){_.AV(function(){var I,J=(I=e.options)==null?void 0:I.call(e);I=c();wK6(k,g,I,J)},"v878Je")})})},"da");
_.J4.idomCompat=!0;var p0v=["youtube_fill","youtube_outline"];var VEI=new _.eJ({type:"iconset",value:void 0}),Ka=function(){var e=_.z.apply(this,arguments)||this;e.isDarkTheme=document.documentElement.hasAttribute("dark");e.iconName="";e.iconsetName="yt-icons";e.iconset=null;e.missingIconSet=!1;e.iconType=null;e.iconShapeDataSignal=_.Wa(void 0,void 0,"TaEgXd");e.renderingOptionsSignal=_.Wa({iconWidth:"100%",iconHeight:"100%",iconFilter:e.iconFilter,iconColor:e.gradientColor},void 0,"a1vqYe");e.wizHasRendered=!1;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return e};
_.Y(Ka,_.z);Ka.prototype.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.isDarkTheme=e)};
Ka.prototype.handlePropertyChange=function(){var e=this,g,c,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A;return _.r(function(d){switch(d.nextAddress){case 1:if(g=!e.icon&&!e.iconName||!e.isAttached)return d.return();c=e;k=c.icon;I=c.size;J=c.defaultToFilled;q=c.active;L=c.targetContainer;e.toggleContainerClass(L);_.G("kevlar_use_wil_icons")&&k&&(n=J6V(k),e.iconType=n.length?n[1]:null);if(k){d.jumpTo(2);break}e.iconsetName="";e.iconName="";return d.yield(e.renderIcon(L,k),3);case 3:return d.return();case 2:R=tEs(k);
W=J6V(R);W.length&&(e.iconsetName=W[0],e.iconName=W[1]);if(!_.G("kevlar_use_wil_icons")){d.jumpTo(4);break}b=Ka;h=BPB;X=e.iconType;D=e.active;f=e.defaultToFilled;l=e.size;A=e.iconsetName;return d.yield(NPI(),6);case 6:return d.yield(h.call(b,X,D,f,l,A,d.yieldResult),5);case 5:e.iconShapeData=d.yieldResult;case 4:if(e.shouldRenderIconShape(L)){d.jumpTo(7);break}return d.yield(e.determineIconSet(R,q,J,I,L),7);case 7:return d.yield(e.renderIcon(L,k),0)}})};
Ka.prototype.toggleContainerClass=function(e){e?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var tEs=function(e){return!_.G("default_to_innertube_icon")||e.indexOf(":")>0?e:_.NY(e)};
_.v=Ka.prototype;_.v.determineIconSet=function(e,g,c,k){var I=this;return _.r(function(J){return J.nextAddress==1?_.G("kevlar_system_icons")||_.uo("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.uo("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?J.yield(I.switchToYtSysIconset(e,g,c,k),3):J.jumpTo(2):J.nextAddress!=2?J.return():J.yield(I.useYtSysIconsetForMissingIcons(e,g,c,k),0)})};
_.v.switchToYtSysIconset=function(e,g,c,k){var I=this,J,q,L,n,R,W,b;return _.r(function(h){switch(h.nextAddress){case 1:if(!e||I.iconsetName!=="yt-icons"&&I.iconsetName!=="yt-sys-icons"){h.jumpTo(0);break}J=J6V(e);q=J[1];var X=q;if(R4U(X))q=X;else{var D=X=X.toLowerCase();(X=OHv.get(X))&&(D=X);q=D}_.G("enable_polymer_icons_replace_underscores_dash")&&q.includes("_filled")&&(q=q.replace(/_filled/g,"-filled"));return h.yield(Bo(q,!0),3);case 3:return L=h.yieldResult,h.yield(Bo(q,!1),4);case 4:if((n=
h.yieldResult)||g&&L)I.iconsetName="yt-sys-icons";I.iconName=I.getIconName(q,g,c,n,L);if(k===24){h.jumpTo(0);break}R="yt-sys-icons"+k+":"+I.iconName;return h.yield(Bo(R,!1,!0),6);case 6:return W=h.yieldResult,h.yield(Bo(R,!0,!0),7);case 7:b=h.yieldResult;I.iconName=I.getIconName(q,g,c,W,b);if(!g&&W||g&&b)I.iconsetName="yt-sys-icons"+k;_.Uh(h)}})};
_.v.getIconName=function(e,g,c,k,I){e.includes("-filled")&&(e=e.replace("-filled",""));return I&&(g||c)?e+"-filled":e};
_.v.useYtSysIconsetForMissingIcons=function(e,g,c,k){var I=this,J,q;return _.r(function(L){if(L.nextAddress==1)return I.iconsetName!=="yt-icons"?L.jumpTo(0):L.yield(Bo(I.iconName,!1,!1,!0),3);if(L.nextAddress!=4)return J=L.yieldResult,L.yield(Bo(I.iconName,!1),4);q=L.yieldResult;if(J||!q)return L.jumpTo(0);I.iconsetName="yt-sys-icons";return L.yield(I.switchToYtSysIconset(e,g,c,k),0)})};
_.v.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var NPI=function(){return _.r(function(e){try{return e.return(_.Ss().resolve(_.SY))}catch(g){return e.return(new Promise(function(c){_.iE().parkOrScheduleJob(function(){c(_.Ss().resolve(_.SY))},2,"ci")}))}})},BPB=function(e,g,c,k,I,J){k=k===void 0?24:k;
if(e){e=e.toLowerCase();var q=e.endsWith("_filled")||e.endsWith("-filled");g={iconName:e,iconStyle:(g===void 0?0:g)||(c===void 0?0:c)||q?"youtube_fill":"youtube_outline",iconSize:k,iconSetName:I===void 0?"yt-icons":I};c=!!J.resolveIcon(g);c||(g.iconSize=void 0,c=!!J.resolveIcon(g));!c&&q&&(g.iconName=e.substring(0,e.length-7),g.iconSize=k,c=!!J.resolveIcon(g),c||(g.iconSize=void 0,c=!!J.resolveIcon(g)));c||(g.iconStyle=void 0,c=!!J.resolveIcon(g));c||_.mN(new _.E2("Icon not supported",{iconName:g.iconName,
iconStyle:g.iconStyle,iconSize:g.iconSize,iconType:e}));return c?g:void 0}};
_.v=Ka.prototype;_.v.shouldRenderIconShape=function(e){if(!_.G("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;e=this.getContainer(e);return!khe(e,this.icon)};
_.v.renderIcon=function(e,g){var c=this,k,I,J,q,L,n,R,W;return _.r(function(b){switch(b.nextAddress){case 1:if(g&&c.icon!==g)return b.return();k=c.getContainer(e);I=khe(k,c.icon);if(c.shouldRenderIconShape(e)&&c.iconType)return c.applyIconShape(I,k),b.return();c.removeIconShape();if(!k)return b.return();c.iconName===""&&c.iconset&&k&&(c.removeStaticIcon(c.iconset,k),I&&c.removeAnimatedIcon(k));if(c.iconName===""&&c.iconset||!c.iconsetName||!VEI)return b.return();c.iconset=VEI.byKey(c.iconsetName);
if(!c.iconset)return c.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.yg(c,c.onIconsetAdded)),b.return();c.missingIconSet&&(c.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.yg(c,c.onIconsetAdded)));q=(J=I||c.isAnimatedIcon?ey6(c.icon):void 0)&&!J.lazyLoad;n=J&&((L=J)==null?void 0:L.lazyLoad)&&(J.lottiePlayerProps.animationConfig.animationData?!0:IH.get(c.isDarkTheme?J.pathDarkTheme:J.path)?!0:!1);if(q||n)return c.applyAnimatedIcon(k,J,c.iconset),b.return();if(n||
(R=J)==null||!R.lazyLoad){b.jumpTo(2);break}W=JQt(J,c.isDarkTheme);c.applyStaticIcon(c.iconset,k,c.iconName,e,I);return b.yield(W,3);case 3:return b.yield(c.renderIcon(c.targetContainer,c.icon),4);case 4:return b.return();case 2:c.applyStaticIcon(c.iconset,k,c.iconName,e,I),_.Uh(b)}})};
_.v.getContainer=function(e){var g,c=(g=BvC(this.hostElement))==null?void 0:g.host;g=!!c&&!!c.polymerController;if(!e||g)return e?this.getTargetContainer(e,c):this.hostElement};
_.v.getTargetContainer=function(e,g){var c=_.o1(g).querySelector("#"+e);c||(e=new _.E2("yt-icon container missing",g.is,e),_.jW(e));return c};
_.v.applyStaticIcon=function(e,g,c,k,I){I&&this.removeAnimatedIcon(g);this.removeIconShape();I=I&&!!this.iconType&&!!this.iconShapeData&&_.G("kevlar_use_wil_icons");try{I?this.applyIconShape(!1,g):e.applyIcon(g,c)}catch(J){this.handleError(J,k,g)}};
_.v.applyIconShape=function(e,g){this.iconset&&g&&(this.removeStaticIcon(this.iconset,g),e&&this.removeAnimatedIcon(g));e={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var c=_.w(this.iconShapeDataSignal);g=c.next().value;c=c.next().value;var k=_.w(this.renderingOptionsSignal),I=k.next().value;k=k.next().value;c(this.iconShapeData);k(e);if(!this.wizHasRendered)for(this.wizHasRendered=!0,e=_.w(qdA(g,I)).next().value;e.firstChild;)_.o1(this.hostElement).appendChild(e.firstChild)};
_.v.removeIconShape=function(){if(_.G("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.v.removeStaticIcon=function(e,g){e.removeIcon(g)};
_.v.applyAnimatedIcon=function(e,g,c){this.removeStaticIcon(c,e);this.removeIconShape();var k;c=this.animatedIconElement&&((k=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:k.type)===g.type;if(this.animatedIconElement&&c){this.animatedIconElement.polymerController.animatedIcon=g;var I;((I=this.animatedIconElement)==null?void 0:I.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(e),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=g,this.animatedIconElement.polymerController.active=this.active,_.G("delhi_modern_web_player_icons")?(g=gcC(e,this.icon)&&e.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=g?g.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.G("kevlar_use_wil_icons")?
e.insertBefore(this.animatedIconElement,e.childNodes[0]):(e=_.o1(e),e.insertBefore(this.animatedIconElement,e.childNodes[0]))};
_.v.removeAnimatedIcon=function(e){_.G("kevlar_use_wil_icons")?this.animatedIconElement&&e.contains(this.animatedIconElement)&&e.removeChild(this.animatedIconElement):(e=_.o1(e),this.animatedIconElement&&e.contains(this.animatedIconElement)&&e.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.v.handleError=function(e,g,c){_.pB(e,this.iconName,g,c);g=khe(c,this.icon);var k=!1;window.location.href.includes("JpymaW6Lh2w")?k=!0:c._svgIcon&&(c=(c=c._svgIcon.parentNode)?c.tagName:"unknown",_.pB(e,c),c==="YT-ICON"&&e.name==="NotFoundError"?k=!0:e.name==="NotFoundError"&&g&&(k=!0));k?_.mN(e):_.jW(e)};
_.Bd.Object.defineProperties(Ka,{template:{configurable:!0,enumerable:!0,get:function(){if(Zh1===void 0){var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;
oMM===void 0&&(oMM=document.createElement("template"));var k=oMM;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Zh1=e}e=Zh1;return e}}});
Ka.prototype.handlePropertyChange=Ka.prototype.handlePropertyChange;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Ka.prototype,"actionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",String)],Ka.prototype,"icon",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],Ka.prototype,"active",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],Ka.prototype,"defaultToFilled",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],Ka.prototype,"isAnimatedIcon",void 0);
_.t([_.u({value:24}),_.B("design:type",Number)],Ka.prototype,"size",void 0);_.t([_.u({value:""}),_.B("design:type",String)],Ka.prototype,"targetContainer",void 0);_.t([_.u(),_.B("design:type",Object)],Ka.prototype,"animatedIconElement",void 0);_.t([_.u(),_.B("design:type",Object)],Ka.prototype,"isDarkTheme",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ka.prototype,"ariaHidden",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],Ka.prototype,"ariaLabel",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],Ka.prototype,"role",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],Ka.prototype,"tabindex",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],Ka.prototype,"title",void 0);_.t([_.u(),_.B("design:type",String)],Ka.prototype,"style",void 0);_.t([_.u(),_.B("design:type",String)],Ka.prototype,"iconFilter",void 0);_.t([_.u(),_.B("design:type",String)],Ka.prototype,"gradientColor",void 0);
_.t([_.OY("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],Ka.prototype,"handlePropertyChange",null);_.t([_.Wo({is:"yt-icon",noInjection:!0})],Ka);var L9W="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),a_6=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var SBI={};SBI.YtPlaintextBehavior=[_.yB,{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(e){e.preventDefault();e=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,e)},
preventRichTextFormatting_:function(e){_.yG&&(e=e.detail.keyboardEvent,e.stopImmediatePropagation(),e.preventDefault())}}];var ymq;var KhI;var OO=function(){var e=_.z.apply(this,arguments)||this;e.ignoreShadyDom=!1;e.hasChange_=!1;e.hasSetTitle_=!1;e.useIOObserverForVisibilityLogging_=_.G("kevlar_use_vimio_behavior")&&_.uo("INNERTUBE_CLIENT_NAME")==="WEB";e.ytFormattedStringObserverHandlerKeys_=void 0;return e};
_.Y(OO,_.z);_.v=OO.prototype;_.v.created=function(){this.useIOObserverForVisibilityLogging_=_.G("kevlar_use_vimio_behavior")&&_.uo("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.v.ready=function(){_.uo("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.v.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.v.detached=function(){this.unobserveIOObservers_()};
_.v.clearContents_=function(){for(var e=this.getRoot(),g=e.lastChild;g&&g.tagName!=="STYLE";){try{e.removeChild(g)}catch(c){break}g=e.lastChild}};
_.v.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var e=_.w(this.ytFormattedStringObserverHandlerKeys_),g=e.next();!g.done;g=e.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(g.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.v.resetForAttributedString=function(){var e=this.getRoot();!e.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),e.appendChild(this.ytAttributedStringElementRef))};
_.v.resetForFormattedString=function(){var e=this.getRoot(),g=e.querySelector("yt-attributed-string");g&&(this.ytAttributedStringElementRef=e.removeChild(g))};
_.v.textChanged=function(){this.textChanged_(this.text)};
_.v.textChanged_=function(e){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!e||!e.runs&&!e.simpleText;if(_.G("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var g=this.hostElement.firstChild;g&&g.nodeName==="FONT";){var c=g;g=g.nextSibling;this.hostElement.removeChild(c)}g=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
c=e.simpleText;var k;!c&&((k=e.runs)==null?void 0:k.length)===1&&this.isSimpleString_(e.runs[0])&&(c=e.runs[0].text);c!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.uo("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(c!==void 0){try{g.textContent=c}catch(I){}g.textContent||(this.isEmpty=!0)}else e=e.runs,c!==void 0&&(e=[{text:c}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),e&&this.updateText_(e),
g.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.v.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.v.computeAriaLabel_=function(e){return e};
_.v.computeEllipsisTruncateStyling=function(e,g){return e&&!g};
_.v.computeUseAttributedString=function(e){return _.G("web_replace_formatted_with_attributed_string")&&VyK(e)&&!this.disableAttributedString&&!this.enableContentEditable};
_.v.setNodeStyle_=function(e,g){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.G("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?g.removeAttribute("dir"):g.setAttribute("dir","auto");g.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");g.style.color="";var c=null;this.noStyles||(e.bold&&(g.classList.add("bold"),c="bold"),e.deemphasize&&(g.classList.add("deemphasize"),c="deemphasize"),e.italics&&g.classList.add("italic"),
e.strikethrough&&g.classList.add("strikethrough"),e.errorUnderline&&(g.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),e.bracket&&g.classList.add("bracket"),e.textColor&&(g.style.color=_.R1(e.textColor)));c!==g.getAttribute("style-target")&&(c?g.setAttribute("style-target",c):g.removeAttribute("style-target"))};
_.v.setUpVisibilityLogging_=function(e,g){var c=this;this.setNodeTrackingParams_(e,g);var k;((k=g.data)==null?0:k.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(e=this.ytRendererBehavior.visibilityObserver.observe(g,function(I){var J=c.ytRendererBehavior.getVisibilityLogger();J&&J.reportShown(I)},this.ytRendererBehavior.visibilityOptionVisible_),g=this.ytRendererBehavior.visibilityObserver.observe(g,function(I){var J=c.ytRendererBehavior.getVisibilityLogger();
J&&J.reportHidden(I)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(e),this.ytFormattedStringObserverHandlerKeys_.push(g))};
_.v.setNodeTrackingParams_=function(e,g){g.data||(g.data={});if((e=e.loggingDirectives?e.loggingDirectives.trackingParams:null)||g.data.trackingParams)g.data.trackingParams=e};
_.v.computeHasLinkOnly_=function(e){return!(!e||e.length!==1||this.noEndpoints||!e[0].navigationEndpoint)};
_.v.getRoot=function(){var e=this.buildScopeDomOptions();return this.enableContentEditable?_.o1(_.o1(this.hostElement,e).querySelector("[contenteditable]")):_.o1(this.hostElement,e)};
_.v.fixContenteditableScope=function(){var e=function(g){g&&(g.nodeType===1&&g.classList&&(g.classList.add("style-scope"),g.classList.add("yt-formatted-string")),g.childNodes&&g.childNodes.forEach(function(c){e(c)}))};
e(this.getRoot())};
_.v.updateText_=function(e){for(var g=e.length,c=this.getRoot(),k=c.firstChild;k&&k.nodeName==="STYLE";)k=k.nextSibling;for(var I=0;I<g&&k;){var J=e[I],q=_.G("remove_cr_char")&&J.text?J.text.replace("\r",""):J.text;if(this.isSimpleString_(J)&&!this.useMixedDirectionFormattedStrings)if(k.nodeName==="#text"){k.textContent!=q&&(k.textContent=q);I++;k=k.nextSibling;continue}else break;if(_.x(J,nv))break;else if(!this.noEndpoints&&J.navigationEndpoint){if(k.nodeName!=="A")break;this.setDataOnAnchor_(k,
J.navigationEndpoint)}else if(k.nodeName!=="SPAN")break;this.setNodeStyle_(J,k);this.setUpVisibilityLogging_(J,k);k.textContent!=q&&(k.textContent=q);I++;k=k.nextSibling}if(k)for(J=c.lastChild,k=I?k.previousSibling:null;J&&J!=k;){try{c.removeChild(J)}catch(L){break}J=c.lastChild}I!==g&&this.addTextNodes_(e,I)};
_.v.addTextNodes_=function(e,g){for(var c=document.createDocumentFragment(),k=e.length;g<k;g++){var I=e[g],J=_.G("remove_cr_char")&&I.text?I.text.replace("\r",""):I.text;if(this.isSimpleString_(I)&&!this.useMixedDirectionFormattedStrings)c.appendChild(document.createTextNode(J));else{var q=_.x(I,nv);if(q){if(q.image){var L=document.createElement("img");q.isCustomEmoji||L.classList.add("small-emoji");L.classList.add("emoji");q.isCustomEmoji&&(L.dataset.emojiId=q.emojiId);L.src=_.F6(q.image.thumbnails,
this.emojiSize);(I=this.get("image.accessibility.accessibilityData.label",q))?L.alt=I:q.shortcuts&&q.shortcuts.length>0?L.alt=q.shortcuts[0]:q.emojiId&&(L.alt=q.emojiId);c.appendChild(L);this.hasEmoji=!0}}else!this.noEndpoints&&I.navigationEndpoint?(L=document.createElement("a"),L.classList.add("yt-simple-endpoint"),L.setAttribute("spellcheck","false"),this.setDataOnAnchor_(L,I.navigationEndpoint)):L=document.createElement("span"),this.setNodeStyle_(I,L),this.setUpVisibilityLogging_(I,L),L.appendChild(document.createTextNode(J)),
c.appendChild(L)}}this.getRoot().appendChild(c)};
_.v.isSimpleString_=function(e){return(this.noEndpoints||!e.navigationEndpoint)&&!_.x(e,nv)&&(this.noStyles||!(e.bold||e.deemphasize||e.italics||e.strikethrough||e.errorUnderline||e.bracket||e.textColor))&&!e.loggingDirectives};
_.v.getRawText=function(){return _.mp(this.text)};
_.v.getFirstRunText=function(){var e;if(((e=this.text)==null?0:e.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.v.setFirstRunText=function(e){var g;((g=this.text)==null?0:g.runs)&&this.text.runs[0]&&(this.text.runs[0].text=e,this.textChanged_(this.text))};
_.v.setDataOnAnchor_=function(e,g){var c=this;!_.G("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(g)||this.isSignalServiceEndpoint_(g)?(e.onclick=this.serviceEndpointHandler_(g),e0(e,"#")):TbU({text:this.text,command:g},function(){ZVq(e,g,c.target)})};
_.v.isServiceEndpoint_=function(e){var g;return!((g=_.x(e==null?void 0:e.commandMetadata,_.OM))==null||!g.sendPost)};
_.v.isSignalServiceEndpoint_=function(e){return!!_.x(e,_.K_)};
_.v.serviceEndpointHandler_=function(e){var g=this;return function(c){_.tr(g.hostElement,[e]);c.preventDefault()}};
_.v.overrideAriaLabelChanged_=function(){var e=this.getRoot();this.enableContentEditable&&e&&e.setAttribute("aria-label",this.overrideAriaLabel)};
_.v.enableContentEditableChanged_=function(){var e=this,g=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),g=_.o1(this.hostElement,g),!g.lastChild||g.lastChild instanceof HTMLElement&&g.lastChild.id!=="contenteditable-root"){var c=document.createElement("div");c.id="contenteditable-root";c.setAttribute("contenteditable","true");c.setAttribute("dir","auto");c.onfocus=function(){e.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
g.appendChild(c);this.overrideAriaLabel&&c.setAttribute("aria-label",this.overrideAriaLabel)}}else c=_.Zu(this.hostElement).firstChild,c instanceof HTMLElement&&c.id==="contenteditable-root"&&_.o1(this.hostElement,g).removeChild(c)};
_.v.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.v.getNodesForVisibilityLogging_=function(){return _.VG(this.getRoot().childNodes,function(e){var g;return!((g=e.data)==null||!g.trackingParams)})};
_.v.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.v.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var e=this.ytRendererBehavior.getVisibilityLogger();e&&this.getNodesForVisibilityLogging_().forEach(function(g){e.reportShown(g)})}};
_.v.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var e=this.ytRendererBehavior.getVisibilityLogger();e&&this.getNodesForVisibilityLogging_().forEach(function(g){e.reportHidden(g)})}};
_.Bd.Object.defineProperties(OO.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.G("enable_mixed_direction_formatted_strings")}}});
OO.prototype.enableContentEditableChanged_=OO.prototype.enableContentEditableChanged_;OO.prototype.overrideAriaLabelChanged_=OO.prototype.overrideAriaLabelChanged_;OO.prototype.ellipsisTruncateChanged_=OO.prototype.ellipsisTruncateChanged_;OO.prototype.textChanged=OO.prototype.textChanged;_.t([_.m(SBI.YtPlaintextBehavior),_.B("design:type",Object)],OO.prototype,"ytPlaintextBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],OO.prototype,"ytComponentBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],OO.prototype,"text",void 0);_.t([_.u(),_.B("design:type",Boolean)],OO.prototype,"noEndpoints",void 0);_.t([_.u(),_.B("design:type",Boolean)],OO.prototype,"noStyles",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],OO.prototype,"isDarkTheme",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],OO.prototype,"splitLines",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],OO.prototype,"forceDefaultStyle",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],OO.prototype,"ellipsisTruncate",void 0);_.t([_.u(),_.B("design:type",Object)],OO.prototype,"ignoreShadyDom",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.B("design:type",Boolean)],OO.prototype,"ellipsisTruncateStyling",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.B("design:type",String)],OO.prototype,"ariaLabel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],OO.prototype,"isEmpty",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.B("design:type",Boolean)],OO.prototype,"hasLinkOnly_",void 0);_.t([_.u(),_.B("design:type",Boolean)],OO.prototype,"hasEmoji",void 0);_.t([_.u(),_.B("design:type",Boolean)],OO.prototype,"disableAttributedString",void 0);_.t([_.u(),_.B("design:type",Boolean)],OO.prototype,"isOverlay",void 0);_.t([_.u(),_.B("design:type",Boolean)],OO.prototype,"linkInheritColor",void 0);
_.t([_.u(),_.B("design:type",Boolean)],OO.prototype,"noPreWrap",void 0);_.t([_.u(),_.B("design:type",Boolean)],OO.prototype,"userInput",void 0);_.t([_.u({value:16}),_.B("design:type",Number)],OO.prototype,"emojiSize",void 0);_.t([_.u(),_.B("design:type",String)],OO.prototype,"target",void 0);_.t([_.u(),_.B("design:type",Boolean)],OO.prototype,"enableContentEditable",void 0);_.t([_.u(),_.B("design:type",String)],OO.prototype,"overrideAriaLabel",void 0);
_.t([_.u(),_.B("design:type",Boolean)],OO.prototype,"respectHtmlDir",void 0);_.t([_.u(),_.B("design:type",Boolean)],OO.prototype,"respectLangDir",void 0);_.t([_.p("plaintextOnly"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],OO.prototype,"useMixedDirectionFormattedStrings",null);_.t([_.u({computed:"computeUseAttributedString(text)"}),_.B("design:type",Boolean)],OO.prototype,"useYtAttributedString",void 0);
_.t([_.OY("text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OO.prototype,"textChanged",null);_.t([_.OY("ellipsisTruncate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OO.prototype,"ellipsisTruncateChanged_",null);_.t([_.OY("overrideAriaLabel"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OO.prototype,"overrideAriaLabelChanged_",null);
_.t([_.OY("enableContentEditable"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OO.prototype,"enableContentEditableChanged_",null);_.t([_.Wo({is:"yt-formatted-string",disableElementRegistration:!0})],OO);
_.U(OO,"yt-formatted-string",function(){if(KhI===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;ymq===void 0&&(ymq=document.createElement("template"));var k=ymq;c.call(g,k.content.cloneNode(!0),e.content.firstChild);KhI=e}e=KhI;return e});var OhZ;var MEv;var CTv;var ew1;var Mr=function(){var e=_.z.apply(this,arguments)||this;e.focused=!1;e.disabled=!1;e.isOverlay=!1;return e};
_.Y(Mr,_.z);Mr.prototype.triggerDown=function(){if(!this.disabled){_.Vg(this.hostElement,"down",!0);var e;(e=this.currentAnimation)==null||e.cancel()}};
Mr.prototype.triggerUp=function(){if(!this.disabled){_.Vg(this.hostElement,"down",!1);var e=this.fillElement;var g=this.strokeElement;typeof GroupEffect==="function"?(e=new GroupEffect([qWK(e),LxU(g)]),e=new Animation(e,document.timeline)):e=new $Ln(e,g);this.currentAnimation=e;var c;(c=this.currentAnimation)==null||c.play()}};
_.t([_.Cs(".stroke"),_.B("design:type",HTMLElement)],Mr.prototype,"strokeElement",void 0);_.t([_.Cs(".fill"),_.B("design:type",HTMLElement)],Mr.prototype,"fillElement",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Mr.prototype,"focused",void 0);_.t([_.u(),_.B("design:type",Object)],Mr.prototype,"disabled",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Mr.prototype,"isOverlay",void 0);_.t([_.Wo({is:"yt-interaction",disableElementRegistration:!0})],Mr);
_.U(Mr,"yt-interaction",function(){if(ew1===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;CTv===void 0&&(CTv=document.createElement("template"));var k=CTv;c.call(g,k.content.cloneNode(!0),e.content.firstChild);ew1=e}e=ew1;return e},{mode:2});var Ca=function(){return _.z.apply(this,arguments)||this};
_.Y(Ca,_.z);_.v=Ca.prototype;_.v.ready=function(){var e=this,g=_.o1(this.hostElement).querySelector("#button");g.addEventListener("focus",function(){N7B||(N7B=new B7q);e.keyboardFocused=N7B.isKeyBoardInUse()});
g.addEventListener("blur",function(){e.keyboardFocused=!1;e.rippleUp_()})};
_.v.computeTabIndex_=function(e){return e?-1:0};
_.v.computeButtonAriaPressed_=function(e){if(this.toggleable)return e?"true":"false"};
_.v.rippleDown_=function(){_.o1(this.hostElement).querySelector("#interaction").triggerDown()};
_.v.rippleUp_=function(){_.o1(this.hostElement).querySelector("#interaction").triggerUp()};
_.v.onPressedChanged_=function(){var e=_.Zu(_.o1(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Zu(_.o1(this.hostElement).querySelector("#button")).children[0];e&&(e.active=this.pressed)};
Ca.prototype.onPressedChanged_=Ca.prototype.onPressedChanged_;Ca.prototype.rippleUp_=Ca.prototype.rippleUp_;Ca.prototype.rippleDown_=Ca.prototype.rippleDown_;_.t([_.u(),_.B("design:type",String)],Ca.prototype,"label",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ca.prototype,"disabled",void 0);_.t([_.u(),_.B("design:type",Boolean)],Ca.prototype,"pressed",void 0);_.t([_.u(),_.B("design:type",Object)],Ca.prototype,"toggleable",void 0);
_.t([_.u(),_.B("design:type",Boolean)],Ca.prototype,"untabbable",void 0);_.t([_.u(),_.B("design:type",Boolean)],Ca.prototype,"keyboardFocused",void 0);_.t([_.Ks("down"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ca.prototype,"rippleDown_",null);_.t([_.Ks("up"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ca.prototype,"rippleUp_",null);
_.t([_.OY("pressed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ca.prototype,"onPressedChanged_",null);_.t([_.Wo({is:"yt-icon-button",disableElementRegistration:!0})],Ca);
_.U(Ca,"yt-icon-button",function(){if(MEv===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;OhZ===void 0&&(OhZ=document.createElement("template"));var k=OhZ;c.call(g,k.content.cloneNode(!0),e.content.firstChild);MEv=e}e=MEv;return e},{mode:2});var g44;var c7Z=function(){var e=document.body,g=e.appendChild;if(g44===void 0){var c=document.createElement("template");_.P(c,'\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>');
g44=c}c=g44;g.call(e,c.content)};
document.body?c7Z():window.addEventListener("DOMContentLoaded",c7Z);var kCs=_.Ti(["aria-"]),eq={};eq.YtRenderButtonBehavior=[_.K.YtRendererBehavior,_.B$.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!!_.Ss().resolve(_.NN(_.u7))&&_.G("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 e=this.computeHref_(this.endpoint,!0);e?e0(this.elements_.endpoint,e):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){e=this.buttonClass.split(" ");e=_.w(e);for(var g=e.next();!g.done;g=e.next())g=g.value,_.Vg(this.hostElement,g,!0),this.elements_.button&&_.Vg(this.elements_.button,g,!0),this.elements_.text&&_.Vg(this.elements_.text,g,!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&&(e=null,this.buttonAccessibility&&(e=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=e:e?_.bj([_.Ya(kCs)],this.elements_.button,"aria-label",e):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var e=_.Ss().resolve(_.NN(_.u7));e&&(this.keyboardFocused=e.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.l7("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,_.IC(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.IC(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(e,g){if(g)for(e=g.split(" "),e=_.w(e),g=e.next();!g.done;g=e.next())g=g.value,_.Vg(this.hostElement,g,!1),this.elements_.button&&_.Vg(this.elements_.button,g,!1),this.elements_.text&&_.Vg(this.elements_.text,g,!1)},
buttonIconChanged_:function(e){this.elements_.icon?e?(this.elements_.icon.icon=e,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.IC(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.t3(this.hostElement,"is-paper-button-with-icon",!1)):e&&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"&&_.IC(this.elements_.button).appendChild(this.elements_.icon):_.IC(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.t3(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(e){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,e){var g=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(e){case "yt_icon_button_with_label":g=!0;_.Vg(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();e=_.IC(this.elements_.button).firstElementChild;
this.elements_.icon=e;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.IC(this.elements_.endpoint).appendChild(this.elements_.button);_.IC(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.l7("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;_.IC(this.elements_.button).appendChild(this.elements_.text);_.IC(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":g=!0,this.elements_.button=this.getYtIconButton_(),e=_.IC(this.elements_.button).firstElementChild,this.elements_.icon=e,this.setIconActive_(this.elements_.icon),
_.IC(this.elements_.endpoint).appendChild(this.elements_.button)}_.t3(this.hostElement,"is-icon-button",g);_.t3(this.hostElement,"is-paper-button",!g);_.t3(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 c;_.o1((c=this.container.hostElement)!=null?c:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.IC(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(e){if(e!=void 0||this.disabled)this.disabled=e,this.elements_.button&&(this.elements_.button.disabled=e)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(e){_.G("kevlar_system_icons")&&e&&this.data&&(this.data.isSelected!==void 0?e.active=this.data.isSelected:this.data.isToggled!==void 0&&(e.active=this.data.isToggled))},
observeBasicPalette_:function(e){_.vO(this.hostElement,e)},
disabledChanged_:function(e){this.data&&this.set("data.isDisabled",e)},
onYtButtonTap_:function(e){if(this.disabled)e.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.tr(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(e=this.disableCommandHandlerOverride,!this.data||!this.data.command||e||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.G("handle_service_request_actions")||_.tr(this.hostElement,[this.serviceEndpoint]),
_.oC(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.G("handle_service_request_actions")?(e=[],this.serviceEndpoint&&e.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&e.push(this.data.command),e.length&&_.Bm(this.hostElement,e,this.hostElement)):this.data&&this.data.command&&(e=this.data.command,e.accountUnlinkCommand||e.accountLinkCommand||e.insertAdCommand||e.insertHighlightMarkerCommand||
e.createLivestreamHighlightClipCommand||e.getVideoUploadFeedbackCommand||e.musicDeletePrivatelyOwnedEntityCommand||e.ypcCancelRecurrenceEndpoint||e.getMultiSelectCommandEndpoint?_.tr(this.hostElement,[e]):_.Bm(this.hostElement,[e],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 e,g=_.o1((e=this.container.hostElement)!=null?e:this.container);g.lastChild&&g.lastChild.tagName!="STYLE";)try{g.removeChild(g.lastChild)}catch(c){break}},
getYtIconButton_:function(){var e=this.reuseEnabled_()?_.l7("yt-icon-button"):document.createElement("yt-icon-button"),g=_.IC(e).firstElementChild;if(g&&g.is!="yt-icon"){for(g=_.IC(e);g.lastChild;)g.removeChild(g.lastChild);g=null}g||(g=this.getIcon_(),this.setIconActive_(g),_.IC(e).appendChild(g));return e},
reuseEnabled_:function(){return _.G("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.l7("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.l7("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.IhB={};
_.IhB.YtButtonBehavior=[eq.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var e=this.data;e&&(this._setEndpoint(this.computeEndpoint_(e)),this._setServiceEndpoint(this.computeServiceEndpoint_(e)),this._setCommand(this.computeCommand_(e)),this._setButtonIcon(this.computeButtonIcon_(e)),this._setButtonText(this.computeButtonText_(e,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(e)),this._setButtonTooltip(this.computeTooltip_(e)),this._setButtonClass(this.computeButtonClass_(e)),this._setIconPositionType(this.computeIconPositionType_(e)),this.updateRenderedElements())},
setPressedState:function(e){var g;if((g=this.elements_)==null?0:g.button)this.elements_.button.pressed=!!e},
computeIconPositionType_:function(e){return e&&e.iconPosition||null},
computeEndpoint_:function(e){var g=e&&e.navigationEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.url"),k=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return g?g:e&&e.command&&e.command.modalEndpoint?e.command:c&&!k&&e.command?e.command:null},
computeServiceEndpoint_:function(e){var g=e&&e.serviceEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return g?g:c&&e.command?e.command:null},
computeCommand_:function(e){return e&&e.command||null},
computeButtonIcon_:function(e){return e&&e.icon&&e.icon.iconType?_.NY(e.icon.iconType):null},
computeButtonText_:function(e,g){return!g&&e&&e.text||null},
computeAccessibility_:function(e){return this.get("accessibilityData.accessibilityData",e)||e&&e.accessibility||(e&&e.text?{label:this.getSimpleString(e.text)}:null)},
computeTooltip_:function(e){return e?e.isDisabled&&e.disabledTooltip||e.tooltip||null:null},
computeButtonClass_:function(e){var g=e&&e.style?e.style.toLowerCase().replace(/_/g,"-")+" ":"";g+=e&&e.size?e.size.toLowerCase().replace(/_/g,"-")+" ":"";e.colorData&&e.colorData.basicColorPaletteData&&e.colorData.basicColorPaletteData.borderColor&&(g+="palette-with-border");return g.trim()}}];var wi={};var J7q;var v4s;var w4Z,qFq=function(){return w4Z!==void 0?w4Z:w4Z=document.createElement("template")};
document.head.appendChild(qFq().content);var L1q;var r7M,ahI=function(){return r7M!==void 0?r7M:r7M=document.createElement("template")};
document.head.appendChild(ahI().content);var n41;var Rwq,E4q=function(){return Rwq!==void 0?Rwq:Rwq=document.createElement("template")};
document.head.appendChild(E4q().content);var W1k;var bd4=document.head,hwv=bd4.appendChild,X4w;if(W1k===void 0){var GCI=document.createElement("template");_.P(GCI,"\x3c!--css-build:shady--\x3e");GCI.content.insertBefore(E4q().content.cloneNode(!0),GCI.content.firstChild);W1k=GCI}X4w=W1k;hwv.call(bd4,X4w.content);var x84=document.head,D8I=x84.appendChild,$8s;if(n41===void 0){var YFu=document.createElement("template");_.P(YFu,"\x3c!--css-build:shady--\x3e");YFu.content.insertBefore(ahI().content.cloneNode(!0),YFu.content.firstChild);n41=YFu}$8s=n41;D8I.call(x84,$8s.content);var fhw=document.head,jw4=fhw.appendChild,id1;if(L1q===void 0){var Prk=document.createElement("template");_.P(Prk,"\x3c!--css-build:shady--\x3e");Prk.content.insertBefore(qFq().content.cloneNode(!0),Prk.content.firstChild);L1q=Prk}id1=L1q;jw4.call(fhw,id1.content);var m81;_.qH("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");m81=_.G("web_button_rework")&&_.dH("BUTTON_REWORK")||_.G("web_button_rework_with_live");_.gm=function(){return _.z.apply(this,arguments)||this};
_.Y(_.gm,_.z);_.gm.prototype.created=function(){this.openPopupConfig=_.uo("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.gm.prototype.onYtNavigate_=function(e){var g=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(e.detail.endpoint);g&&(this.ytOpenPopupBehavior.openPopup(g),e.stopPropagation(),e.preventDefault())};
_.Bd.Object.defineProperties(_.gm,{template:{configurable:!0,enumerable:!0,get:function(){if(v4s===void 0){var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
var g=e.content,c=g.insertBefore;J7q===void 0&&(J7q=document.createElement("template"));var k=J7q;c.call(g,k.content.cloneNode(!0),e.content.firstChild);v4s=e}e=v4s;return e}}});
_.gm.prototype.onYtNavigate_=_.gm.prototype.onYtNavigate_;_.t([_.m(_.tF.YtOpenPopupBehavior),_.B("design:type",Object)],_.gm.prototype,"ytOpenPopupBehavior",void 0);_.t([_.m(_.IhB.YtButtonBehavior),_.B("design:type",Object)],_.gm.prototype,"ytButtonBehavior",void 0);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],_.gm.prototype,"onYtNavigate_",null);
_.t([_.Wo({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:m81})],_.gm);var p4k;var Tuw=_.G("web_button_rework")&&_.dH("BUTTON_REWORK")||_.G("web_button_rework_with_live"),cF=function(){var e=_.z.apply(this,arguments)||this;e.isPressed=!1;e.forceIconButton=!1;e.forceIconOnly=!1;e.forceModernIconButton=!1;e.skipCommandHandling=!1;e.alignByText=!1;e.fitToVisibleBounds=!0;e.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};e.onTap=function(g){_.oC(e.hostElement,"yt-service-request-sent-button-renderer",g)};
return e};
_.Y(cF,_.z);_.v=cF.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.v.onClick=function(e){var g,c=this.disabled||((g=this.data)==null?void 0:g.isDisabled);g=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");c&&g&&e.stopPropagation()};
_.v.computeIcon=function(){var e,g,c=(e=this.data)==null?void 0:(g=e.icon)==null?void 0:g.iconType;if(c)return _.NY(c)};
_.v.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.v.handleUpdateButtonAction=function(e){e=_.x(e,p6Y);var g=_.x(e==null?void 0:e.updatedButton,_.G_);if(this.data&&e&&g){var c=this.data;c.targetId&&e.targetId&&c.targetId===e.targetId&&(this.data=g)}};
_.Bd.Object.defineProperties(cF.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var e=this;if(this.data){var g=hyq({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.oC(e.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.oC(e.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});g.alignByText=this.alignByText;return g}}}});
_.Bd.Object.defineProperties(cF,{template:{configurable:!0,enumerable:!0,get:function(){if(p4k===void 0){var e=document.createElement("template");_.P(e,'\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>');p4k=e}e=p4k;return e}}});
cF.prototype.onClick=cF.prototype.onClick;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],cF.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],cF.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],cF.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],cF.prototype,"isPressed",void 0);
_.t([_.u(),_.B("design:type",Object)],cF.prototype,"forceIconButton",void 0);_.t([_.u(),_.B("design:type",Object)],cF.prototype,"forceIconOnly",void 0);_.t([_.u(),_.B("design:type",Object)],cF.prototype,"forceModernIconButton",void 0);_.t([_.u(),_.B("design:type",Object)],cF.prototype,"skipCommandHandling",void 0);_.t([_.u(),_.B("design:type",Object)],cF.prototype,"alignByText",void 0);_.t([_.u(),_.B("design:type",Object)],cF.prototype,"buttonTooltipPosition",void 0);
_.t([_.u(),_.B("design:type",Object)],cF.prototype,"fitToVisibleBounds",void 0);_.t([_.u({computed:"computeTooltip(data)"}),_.B("design:type",Object)],cF.prototype,"tooltip",void 0);_.t([_.u(),_.B("design:type",Object)],cF.prototype,"overrides",void 0);_.t([_.u(),_.B("design:type",Boolean)],cF.prototype,"disabled",void 0);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],cF.prototype,"onClick",null);
_.t([_.p("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.B("design:type",Object),_.B("design:paramtypes",[])],cF.prototype,"computedButtonShape",null);_.t([_.Wo({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Tuw,cssBuildOptOut:!0}),_.Wo({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Tuw,cssBuildOptOut:!0})],cF);var lhZ;var A7s;var k3=function(){var e=_.z.apply(this,arguments)||this;e.empty_=!0;e.loadTime=Infinity;e.pendingPaint=!1;e.hasChange_=!1;e.oldThumbnail_=null;e.oldDelayedSrc_="";e.objectURL_=null;return e};
_.Y(k3,_.z);_.v=k3.prototype;_.v.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.v.ready=function(){var e=this.shouldShowPlaceholder_();_.Vg(this.hostElement,"no-transition",!0);e&&this.hostElement.classList.add("with-placeholder")};
_.v.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.v.isThumbPreloaded_=function(e){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",e)};
_.v.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||swq};
_.v.computeThumbnailSrc_=function(e){return e&&e.thumbnails?_.F6(e.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.v.computeAlt_=function(){var e=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&e||""};
_.v.thumbnailChanged_=function(){var e=_.w([this.thumbnail,this.oldThumbnail_]),g=e.next().value;e=e.next().value;this.oldThumbnail_=g;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(e=this.computeThumbnailSrc_(e),this.computeThumbnailSrc_(g)===e))return;_.G("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(g)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):g&&_.dH("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Va(this,this.onReload_):_.Va(this,this.onShow_):this.resetImage_();g&&(this.hostElement.style.opacity=""+g.opacity)}};
_.v.delayedSrcChanged_=function(){var e=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===e||this.resetImage_()};
_.v.setSrc_=function(e){e?(_.o1(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.o1(this.hostElement).querySelector("#img").src=e):(_.o1(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.v.resetImage_=function(){GCp(this.hostElement);this.empty_=!0;this.setSrc_(swq);this.ytRendererBehavior.invalidate(!1)};
_.v.observePlaceholderColor_=function(){var e=this.thumbnail&&this.thumbnail.placeholderColor;e?this.hostElement.style.backgroundColor=_.R1(e):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.v.onLoad_=function(){_.o1(this.hostElement).querySelector("#img").src&&_.o1(this.hostElement).querySelector("#img").src!==swq&&(X4z(this.hostElement),this.notifyOnLoaded&&_.oC(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.v.onError_=function(){var e=this;if(_.G("web_use_cache_for_image_fallback"))idC(_.o1(this.hostElement).querySelector("#img").src).then(function(g){e.objectURL_=_.Ox(g).toString();e.setSrc_(e.objectURL_)}).catch(function(){_.G("kevlar_woffle_fallback_image")&&e.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.v.onPrescanVisible=function(){this.onShow_()};
_.v.onVisible=function(){if(_.G("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.v.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var e=this.computeSrc_();e!==_.o1(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(e))}};
_.v.onReload_=function(){this.empty_=!1;var e=this.computeSrc_();e!==_.o1(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(e))};
_.v.shouldShowPlaceholder_=function(){return _.G("kevlar_thumbnail_bg")};
k3.prototype.observePlaceholderColor_=k3.prototype.observePlaceholderColor_;k3.prototype.delayedSrcChanged_=k3.prototype.delayedSrcChanged_;k3.prototype.thumbnailChanged_=k3.prototype.thumbnailChanged_;_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],k3.prototype,"alt",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],k3.prototype,"ariaHidden",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],k3.prototype,"ariaLabel",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],k3.prototype,"hidden",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],k3.prototype,"id",void 0);_.t([_.m(_.xC.YtVisibilityBehavior),_.B("design:type",Object)],k3.prototype,"ytVisibilityBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",String)],k3.prototype,"delayedSrc",void 0);
_.t([_.u(),_.B("design:type",Object)],k3.prototype,"thumbnail",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],k3.prototype,"loaded",void 0);_.t([_.u(),_.B("design:type",Boolean)],k3.prototype,"notifyOnLoaded",void 0);_.t([_.u(),_.B("design:type",Number)],k3.prototype,"height",void 0);_.t([_.u(),_.B("design:type",Number)],k3.prototype,"width",void 0);_.t([_.u({value:function(){return"width"}}),
_.B("design:type",String)],k3.prototype,"dimension",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],k3.prototype,"fit",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],k3.prototype,"fitHeight",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],k3.prototype,"fitWidth",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],k3.prototype,"objectFit",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],k3.prototype,"objectPosition",void 0);_.t([_.u(),_.B("design:type",String)],k3.prototype,"preferredThumbnail",void 0);_.t([_.u({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.B("design:type",String)],k3.prototype,"alt_",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],k3.prototype,"sharedTooltipText",void 0);
_.t([_.u(),_.B("design:type",Boolean)],k3.prototype,"ftlEligible",void 0);_.t([_.u({value:void 0}),_.B("design:type",String)],k3.prototype,"observeHiddenOption",void 0);_.t([_.u({value:"observe_once"}),_.B("design:type",String)],k3.prototype,"observePrescanOption",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],k3.prototype,"roundedContainer",void 0);
_.t([_.k_("thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k3.prototype,"thumbnailChanged_",null);_.t([_.k_("delayedSrc"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k3.prototype,"delayedSrcChanged_",null);_.t([_.OY("thumbnail.placeholderColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k3.prototype,"observePlaceholderColor_",null);
_.t([_.Wo({is:"yt-img-shadow",disableElementRegistration:!0})],k3);var swq=_.dH("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.oI()(k3,"yt-img-shadow",function(){if(A7s===void 0){var e=document.createElement("template");_.P(e,'\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">');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;lhZ===void 0&&(lhZ=document.createElement("template"));var k=lhZ;c.call(g,k.content.cloneNode(!0),e.content.firstChild);A7s=e}e=A7s;return e},{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 AHe;_.I5=new _.AU("SCREEN_MANAGER_TOKEN");AHe=new _.AU("LOG_INITIAL_SCREEN_TOKEN");var F1v=ri({entities:{}});_.Jg=aH(F1v)(F1v.entities,{selectSfvAudioItemPlaybackState:function(e,g){var c,k;e=(k=_.Nc(e,"sfvAudioItemCurrentlyPlayingEntity",g))!=null?k:void 0;return(c=e==null?void 0:e.sfvAudioItemPlaybackState)!=null?c:void 0},
playlistLoopStateEntitySelector:xhv,toggleMenuServiceItemEntitySelector:DhW});_.vF=_.H(function(e){function g(O){return _.x(O,_.$8)}
function c(){var O=k().isTogglingDisabled||f()&&k().toggledIsTogglingDisabled,Jq=O||h()?f():!f();l(Jq);d(!1);if(!O){var LC;(LC=q)==null||LC(!!Jq)}var bW;((bW=J)==null?0:bW())||_.KP(_.Ss().resolve(_.I5),k().trackingParams);var RA;if(!Jq||!g(k().defaultButtonViewModel)||(RA=J)!=null&&RA()){var Xg;!g(k().toggledButtonViewModel)||((Xg=J)==null?0:Xg())||_.KP(_.Ss().resolve(_.I5),g(k().toggledButtonViewModel).trackingParams)}else _.KP(_.Ss().resolve(_.I5),g(k().defaultButtonViewModel).trackingParams)}
var k=e.data,I=e.buttonShapeOverrides,J=e.disableExplicitClickLogging,q=e.onToggle,L=e.style,n=e.useOutlinedIcon,R=e.className,W=function(){var O,Jq;return f()?(O=e.animatedTextPropsToggled)==null?void 0:O.call(e):(Jq=e.animatedTextPropsDefault)==null?void 0:Jq.call(e)},b=_.xF(function(){return W()?Object.assign({},W(),{shouldAnimate:A()}):void 0},void 0,"Zp4uoe"),h=function(){var O;
return((O=Q())==null?void 0:O.isToggled)!==void 0},X=_.w(_.uF(function(){var O,Jq,LC;
return h()?(O=Q())==null?void 0:O.isToggled:(LC=I==null?void 0:(Jq=I())==null?void 0:Jq.toggled)!=null?LC:k().isToggled})),D=X.next().value;
X=X.next().value;var f=D,l=X;X=_.w(_.uF(function(){var O,Jq;return(O=e.animatedTextPropsToggled)==null?void 0:(Jq=O.call(e))==null?void 0:Jq.shouldAnimate}));
D=X.next().value;X=X.next().value;var A=D,d=X;D=_.w(_.Wa(!1,void 0,"mq3Zfe"));var S=D.next().value,V=D.next().value,Q=_.M2(function(O){a:{var Jq=k().entityKey,LC=k().toggledStateEntitySelectorType;if(LC)switch(LC){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Jq)break;O=_.Jg.selectSfvAudioItemPlaybackState(O,Jq);if(O==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){O={isToggled:!0};break a}if(O){O={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":O={isToggled:_.jQv(O).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":O={isToggled:_.jQv(O).includes("engagement-panel-live-chat-item-section")};break a;default:_.mN(new _.E2("Error: entitySelectorType defined but not matched in selector.",O,LC))}O=void 0}return O}),y=function(){return Object.assign({},I==null?void 0:I(),{onToggle:c,
toggleable:!0,toggled:f(),focused:S()})};
return _.a("toggle-button-view-model",{"on:focusin":_.Ve(function(){var O=_.Ss().resolve(_.NN(_.u7));O&&V(O.isKeyBoardInUse());return!1}),
"on:focusout":_.Ve(function(){V(!1);return!1})},_.a(_.E,{cond:function(){return f()?g(k().toggledButtonViewModel):g(k().defaultButtonViewModel)},
then:function(O){return _.a(_.oD,{data:O,className:R,style:L,useOutlinedIcon:n,buttonOverrides:y,animatedTextProps:b})}}))},"fa");
_.vF.idomCompat={callbacks:{onToggle:!0}};_.sL(_.H(function(e){return _.a("yt-toggle-button-view-model",{class:function(){var g;return(g=e.scopingClassName)==null?void 0:g.call(e)}},_.a(_.vF,{data:function(){var g;
return(g=e.data)==null?void 0:g.call(e)},
buttonShapeOverrides:function(){var g;return(g=e.overrides)==null?void 0:g.call(e)},
animatedTextPropsDefault:function(){var g;return(g=e.animatedTextPropsDefault)==null?void 0:g.call(e)},
animatedTextPropsToggled:function(){var g;return(g=e.animatedTextPropsToggled)==null?void 0:g.call(e)},
disableExplicitClickLogging:function(){var g;return(g=e.disableExplicitClickLogging)==null?void 0:g.call(e)},
onToggle:function(g){var c;return(c=e.onToggle)==null?void 0:c.call(e,g)},
style:function(){var g;return(g=e.style)==null?void 0:g.call(e)},
useOutlinedIcon:function(){var g;return(g=e.useOutlinedIcon)==null?void 0:g.call(e)},
className:function(){var g;return(g=e.className)==null?void 0:g.call(e)}}))},"ga"),"yt-toggle-button-view-model",{props:{data:_.jx,
buttonShapeOverrides:_.jx,overrides:_.jx,animatedTextPropsDefault:_.jx,animatedTextPropsToggled:_.jx,disableExplicitClickLogging:_.jx,onToggle:_.TF,style:_.jx,useOutlinedIcon:_.jx,className:_.jx,scopingClassName:_.jx}});var wm=function(){return _.z.apply(this,arguments)||this};
_.Y(wm,_.z);wm.prototype.onTap=function(e){e.stopPropagation();e=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.ET("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:e})):this.ytLiveChatReduxBehavior.dispatch(_.cY("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:e}))};
_.Bd.Object.defineProperties(wm.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.engagementState)==null?void 0:e.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var e=_.x(this.data.toggleButton,_.fP),g;if(Number(((g=this.likeCountState)==null?void 0:g.likeCountIfIndifferentNumber)||"0")===0){var c;g=((c=this.data.likeCountPlaceholder)==null?void 0:c.content)||""}else{var k,I,J;g=((k=this.likeCountState)==null?void 0:(I=k.likeCountIfIndifferent)==null?void 0:I.content)||((J=this.data.likeCountPlaceholder)==null?void 0:J.content)||""}var q,L;c=((q=this.likeCountState)==null?void 0:(L=
q.likeCountIfLiked)==null?void 0:L.content)||"1";q=_.x(e.toggledButtonViewModel,_.$8);return Object.assign({},e,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.x(e.defaultButtonViewModel,_.$8),{title:g})},toggledButtonViewModel:{buttonViewModel:Object.assign({},q,{title:c})}})}}}});
wm.prototype.onTap=wm.prototype.onTap;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],wm.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.W$),_.B("design:type",Object)],wm.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wm.prototype,"data",void 0);
_.t([_.u({selectorArgs:["data.likeCountEntityKey"],selector:iJA}),_.B("design:type",Object)],wm.prototype,"likeCountState",void 0);_.t([_.u({selectorArgs:["data.engagementStateKey"],selector:Fxt}),_.B("design:type",Object)],wm.prototype,"engagementState",void 0);_.t([_.p("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wm.prototype,"isLiked",null);
_.t([_.p("data","likeCountState","isLiked"),_.B("design:type",Object),_.B("design:paramtypes",[])],wm.prototype,"toggleButton",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],wm.prototype,"onTap",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],wm);
_.U(wm,"yt-live-chat-like-button-view-model",function(){if(zQB===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;dLk===void 0&&(dLk=document.createElement("template"));var k=dLk;c.call(g,k.content.cloneNode(!0),e.content.firstChild);zQB=e}e=zQB;return e},{mode:0});var uRZ;var d8k;var a5=function(){return _.z.apply(this,arguments)||this};
_.Y(a5,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],a5.prototype,"data",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],a5);
_.U(a5,"yt-live-chat-paid-message-footer-renderer",function(){if(d8k===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;uRZ===void 0&&(uRZ=document.createElement("template"));var k=uRZ;c.call(g,k.content.cloneNode(!0),e.content.firstChild);d8k=e}e=d8k;return e},{mode:0});var zwY;var Hds;var Qwq;var U8w,o4B=function(){if(U8w!==void 0)return U8w;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;Qwq===void 0&&(Qwq=document.createElement("template"));var k=Qwq;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return U8w=e};var n8=function(){return _.z.apply(this,arguments)||this};
_.Y(n8,_.z);n8.prototype.onTap=function(e){e.stopPropagation()};
_.Bd.Object.defineProperties(n8.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var e=_.x(this.data.replyButton,_.$8),g,c,k,I,J,q,L,n=Number(((g=this.replyCountState)==null?void 0:g.replyCountNumber)||"0")===0?(c=this.data)==null?void 0:(k=c.replyCountPlaceholder)==null?void 0:k.content:((I=this.replyCountState)==null?void 0:(J=I.replyCount)==null?void 0:J.content)||((q=this.data)==null?void 0:(L=q.replyCountPlaceholder)==null?void 0:L.content)||"",R;return Object.assign({},
e,{title:n,accessibilityText:(R=this.replyCountState)==null?void 0:R.replyButtonAccessibilityText})}}}});
_.Bd.Object.defineProperties(n8,{template:{configurable:!0,enumerable:!0,get:function(){return o4B()}}});
n8.prototype.onTap=n8.prototype.onTap;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],n8.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.W$),_.B("design:type",Object)],n8.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],n8.prototype,"data",void 0);
_.t([_.u({selectorArgs:["data.replyCountEntityKey"],selector:function(e,g){return _.Nc(e.entities,"replyCountEntity",g)}}),
_.B("design:type",Object)],n8.prototype,"replyCountState",void 0);_.t([_.p("data","replyCountState"),_.B("design:type",Object),_.B("design:paramtypes",[])],n8.prototype,"buttonViewModel",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],n8.prototype,"onTap",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],n8);_.U(n8,"yt-live-chat-reply-button-view-model",function(){return o4B()},{mode:0});var ZdZ;var Vkv;var R5=function(){var e=_.z.apply(this,arguments)||this;e.ariaLabel="";return e};
_.Y(R5,_.z);
R5.prototype.dataChanged=function(){for(var e=(0,_.Bg)(_.o1(this.hostElement).querySelector("#image"));e.firstChild;)e.removeChild(e.firstChild);if(this.data)if(this.data.icon){var g=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(g.polymerController.icon="yt-sys-icons:shield_empty",g.polymerController.defaultToFilled=!0):g.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();e.appendChild(g)}else if(this.data.customThumbnail){g=document.createElement("img");
var c=_.ahp(this.data.customThumbnail.thumbnails,16);c?(g.src=c,e.appendChild(g),g.setAttribute("alt",this.hostElement.ariaLabel||"")):_.mN(new _.E2("Could not compute URL for thumbnail",this.data.customThumbnail))}};
R5.prototype.identity=function(e){return e};
R5.prototype.computeType=function(e){return VJ(e||void 0)};
R5.prototype.dataChanged=R5.prototype.dataChanged;_.t([_.u(),_.B("design:type",Object)],R5.prototype,"data",void 0);_.t([_.u({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.B("design:type",Object)],R5.prototype,"ariaLabel",void 0);_.t([_.u({computed:"computeType(data)",reflectToAttribute:!0}),_.B("design:type",String)],R5.prototype,"type",void 0);
_.t([_.u({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.B("design:type",String)],R5.prototype,"sharedTooltipText",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_new_shield_moderator_badge")}}),
_.B("design:type",Boolean)],R5.prototype,"enableNewModeratorBadge",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],R5.prototype,"dataChanged",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],R5);
_.U(R5,"yt-live-chat-author-badge-renderer",function(){if(Vkv===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;ZdZ===void 0&&(ZdZ=document.createElement("template"));var k=ZdZ;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Vkv=e}e=Vkv;return e},{mode:0});var tkw;var Bu4;var EJ=function(){return _.z.apply(this,arguments)||this};
_.Y(EJ,_.z);_.v=EJ.prototype;_.v.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.v.computeBadgesInsideChip=function(e){return e?e.filter(function(g){return VJ(g.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.v.computeBadgesOutsideChip=function(e){return this.prependChatBadges||!e?[]:e.filter(function(g){g=VJ(g.liveChatAuthorBadgeRenderer);return g!=="verified"&&g!=="owner"})};
_.v.computeBadgesBeforeChip=function(e){return this.prependChatBadges&&e?e.filter(function(g){g=VJ(g.liveChatAuthorBadgeRenderer);return g!=="verified"&&g!=="owner"}):[]};
_.v.computeIsHighlighted=function(e,g){var c=!!e4C(e,"owner"),k=!!e4C(e,"verified");e=!!e4C(e,"moderator");return(c||k&&!e)&&!g};
_.v.computeAuthorType=function(e){return C_t(e)};
_.v.computeAuthorClass=function(e,g){return g?(e?e+" ":"")+"single-line":e};
_.v.onSeedColorChanged=function(){_.G("live_chat_author_name_color_usernames")||_.G("live_chat_seed_color_usernames")||_.G("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):_.G("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
EJ.prototype.onSeedColorChanged=EJ.prototype.onSeedColorChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],EJ.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],EJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],EJ.prototype,"authorName",void 0);_.t([_.u(),_.B("design:type",Array)],EJ.prototype,"authorBadges",void 0);
_.t([_.u({computed:"computeAuthorType(authorBadges)"}),_.B("design:type",String)],EJ.prototype,"authorType",void 0);_.t([_.u({computed:"computeAuthorClass(authorType, singleLine)"}),_.B("design:type",String)],EJ.prototype,"authorClass",void 0);_.t([_.u({computed:"computeBadgesInsideChip(authorBadges)"}),_.B("design:type",Array)],EJ.prototype,"badgesInsideChip",void 0);_.t([_.u({computed:"computeBadgesOutsideChip(authorBadges)"}),_.B("design:type",Array)],EJ.prototype,"badgesOutsideChip",void 0);
_.t([_.u({computed:"computeBadgesBeforeChip(authorBadges)"}),_.B("design:type",Array)],EJ.prototype,"badgesBeforeChip",void 0);_.t([_.u({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.B("design:type",Boolean)],EJ.prototype,"isHighlighted",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_new_shield_moderator_badge")}}),
_.B("design:type",Boolean)],EJ.prototype,"enableNewModeratorTextColor",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],EJ.prototype,"singleLine",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],EJ.prototype,"disableHighlighting",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],EJ.prototype,"dashboardMoneyFeed",void 0);_.t([_.u({value:_.G("live_chat_prepend_badges"),reflectToAttribute:!0}),_.B("design:type",Boolean)],EJ.prototype,"prependChatBadges",void 0);
_.t([_.u(),_.B("design:type",String)],EJ.prototype,"authorNameColor",void 0);_.t([_.Cs("#author-name"),_.B("design:type",HTMLDivElement)],EJ.prototype,"username",void 0);_.t([_.OY("authorNameColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EJ.prototype,"onSeedColorChanged",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],EJ);
_.U(EJ,"yt-live-chat-author-chip",function(){if(Bu4===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;tkw===void 0&&(tkw=document.createElement("template"));var k=tkw;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Bu4=e}e=Bu4;return e},{mode:0});var Nun;var SFw;var WF=function(){var e=_.z.apply(this,arguments)||this;e.debounceCommand=_.RX(function(g){e.ytComponentBehavior.resolveCommand(g)},1500);
return e};
_.Y(WF,_.z);WF.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var e=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",g,c,k=this.isHearted?(g=this.data)==null?void 0:g.unheartCommand:(c=this.data)==null?void 0:c.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.ET("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:e}));(e=_.WT(k))&&this.debounceCommand(e)}};
_.Bd.Object.defineProperties(WF.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var e,g;if(!((e=this.data)==null?0:(g=e.creatorThumbnail)==null?0:g.sources))return{};e={thumbnails:[]};g={};g.url=this.data.creatorThumbnail.sources[0].url;e.thumbnails.push(g);return e}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((g=this.engagementState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((g=this.engagementState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((g=this.engagementState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.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}}});
WF.prototype.onTap=WF.prototype.onTap;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],WF.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.W$),_.B("design:type",Object)],WF.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],WF.prototype,"data",void 0);
_.t([_.u({selectorArgs:["data.engagementStateKey"],selector:Fxt}),_.B("design:type",Object)],WF.prototype,"engagementState",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],WF.prototype,"thumbnailDetails",null);_.t([_.p("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],WF.prototype,"isHearted",null);_.t([_.p("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],WF.prototype,"isEditable",null);
_.t([_.p("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],WF.prototype,"showCreatorView",null);_.t([_.p("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],WF.prototype,"showButton",null);_.t([_.p("data","isHearted"),_.B("design:type",String),_.B("design:paramtypes",[])],WF.prototype,"label",null);_.t([_.p("data","isHearted"),_.B("design:type",Object),_.B("design:paramtypes",[])],WF.prototype,"heartHoverText",null);
_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WF.prototype,"onTap",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],WF);
_.U(WF,"yt-live-chat-creator-heart-view-model",function(){if(SFw===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Nun===void 0&&(Nun=document.createElement("template"));var k=Nun;c.call(g,k.content.cloneNode(!0),e.content.firstChild);SFw=e}e=SFw;return e},{mode:0});var y7k=function(){this.internalMap={}};
_.v=y7k.prototype;_.v.contains=function(e){return Object.prototype.hasOwnProperty.call(this.internalMap,e)};
_.v.get=function(e){if(this.contains(e))return this.internalMap[e]};
_.v.set=function(e,g){this.internalMap[e]=g};
_.v.getKeys=function(){return Object.keys(this.internalMap)};
_.v.remove=function(e){delete this.internalMap[e]};var bZ=function(){this.mappings=new y7k;this.errorCallbacks=new Set};
bZ.prototype.getModuleId=function(e){return e.serviceId.getModuleId()};
bZ.prototype.get=function(e){a:{var g=this.mappings.get(e.toString());switch(g.type){case "mapping":e=g.value;break a;case "factory":g=g.value();this.mappings.set(e.toString(),{type:"mapping",value:g});e=g;break a;default:e=_.gj(g)}}return e};
bZ.prototype.registerService=function(e,g){this.mappings.set(e.toString(),{type:"mapping",value:g});return e};
bZ.prototype.onLoadError=function(e){var g=this;this.errorCallbacks.add(e);return function(){g.errorCallbacks.delete(e)}};
new bZ;var K1u=function(){};
_.v=K1u.prototype;
_.v.JSC$14488_getRequest=function(e,g,c){g=g===void 0?{}:g;c=c===void 0?nnw:c;var k=g;if(this.isNavigationCommand()){var I,J=(I=_.x(e==null?void 0:e.commandMetadata,_.OM))==null?void 0:I.url;k=_.ig(e.clickTrackingParams,!0,!1,J,this.JSC$14488_getClientScreen(k))}else k=_.ig(e.clickTrackingParams,!1,this.includeCsn);k={context:k};if(I=this.getExtension(e))return this.JSC$14488_buildRequest(k,I,g),I=this.getApiUrl(e),J=Object.assign({},{command:e},this.getRequestConfig(e,g)),k={input:I,requestShell:jV(I),
innerTubeRequest:k,config:J},k.config.authStrategy?k.config.authStrategy.identity=c:k.config.authStrategy={identity:c},(e=this.JSC$14488_getRequestKey(e,g))&&!k.config.requestKey&&(k.config.requestKey=e),k;e=new _.E2("Error: Failed to create Request from Command.",e);_.jW(e)};
_.v.getApiUrl=function(e){var g=_.lm(this.getApiPaths(e)),c;(e=(c=_.x(e.commandMetadata,_.OM))==null?void 0:c.apiUrl)&&(g=e);return UdA(Q_t(g))};
_.v.isNavigationCommand=function(){return!1};
_.v.JSC$14488_getClientScreen=function(){};
_.v.JSC$14488_getRequestKey=function(){};
_.v.getRequestConfig=function(){};
_.Bd.Object.defineProperties(K1u.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var hg=function(){};
_.Y(hg,K1u);hg.prototype.JSC$14495_getStoreKey=function(){};
hg.prototype.JSC$14488_getRequestKey=function(e,g){g=g===void 0?{}:g;return this.JSC$14495_getStoreKey(e,g)};var Xx=function(){};
_.Y(Xx,hg);Xx.prototype.JSC$14488_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:jV("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Xx.prototype.getApiPaths=function(){return[]};
Xx.prototype.getExtension=function(){};
Xx.prototype.JSC$14488_buildRequest=function(){};var Odw={},MkY=(Odw.GET_DATASYNC_IDS=h4(Xx),Odw);var Crq,eau,glM,qWu,vlZ,G9,JEq,cEZ,INB,kgq;Crq="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" ");eau=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.Yy=function(e,g,c,k,I,J,q,L,n){this.endpointMap=e;this.networkManager=g;this.authService=c;this.responseProcessorMap=k;this.innertubeResponseStore=I;this.contextProcessors=J;this.asyncContextProcessors=q;this.localInnertubeRouter=L;this.requestSequencer=n;this.inflightRequests=new Map;e.signalEndpointMap||(e.signalEndpointMap={});e.signalEndpointMap=Object.assign({},MkY,e.signalEndpointMap)};
glM=function(e,g,c,k,I,J,q,L,n){if(_.Yy.instance!==void 0){if(k=_.Yy.instance,e=[e!==k.endpointMap,g!==k.networkManager,c!==k.authService,I!==k.innertubeResponseStore,J!==k.contextProcessors,q!==k.asyncContextProcessors,L!==k.localInnertubeRouter],e.some(function(R){return R}))throw new _.E2("InnerTubeTransportService is already initialized",e);
}else _.Yy.instance=new _.Yy(e,g,c,k,I,J,q,L,n)};
_.jt=function(e,g,c){var k=k===void 0?nnw:k;var I=cEZ(e,g);return I?new _.Il(function(J,q){var L,n,R,W,b;return _.r(function(h){switch(h.nextAddress){case 1:return h.yield(I,2);case 2:L=h.yieldResult;n=L.JSC$14488_getRequest(g,c,k);if(!n){q(new _.E2("Error: Failed to build request for command.",g));h.jumpTo(0);break}XZ(n.input);W=((R=n.requestShell)==null?void 0:R.mode)==="cors"?"cors":void 0;if(e.authService.syncHeaders){b=kgq(n.config,W);h.jumpTo(4);break}return h.yield(INB(n.config,W),5);case 5:b=
h.yieldResult;case 4:J(JEq(e,n,b)),_.Uh(h)}})}):_.q2(new _.E2("Error: No request builder found for command.",g))};
qWu=function(e,g,c,k){var I=I===void 0?nnw:I;var J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y;return _.r(function(O){switch(O.nextAddress){case 1:J=TWp(g,e.endpointMap);if(!J)throw new _.E2("Error: No streaming request builder found for command",g);q=J.JSC$14488_getRequest(g,c,I);if(!q)throw new _.E2("Failed to build YtRequest for streaming Command",g);if((L=e.localInnertubeRouter)==null||!L.shouldPreferLocalResponse(q.input,q.innerTubeRequest)){O.jumpTo(2);break}return O.yield(e.localInnertubeRouter.localInnertubeResponse(q.input,
q.innerTubeRequest),3);case 3:return n=O.yieldResult,R={},n.playerResponse&&(G9(e,n.playerResponse,q),R.player=n.playerResponse,(W=k)==null||W(R,n)),n.watchNextResponse&&(G9(e,n.watchNextResponse,q),R.content=n.watchNextResponse,(b=k)==null||b(R,n)),O.return(R);case 2:return O.yield(vlZ(e,q),4);case 4:X=((h=q.requestShell)==null?void 0:h.mode)==="cors"?"cors":void 0;if(e.authService.syncHeaders){D=kgq(q.config,X);O.jumpTo(5);break}return O.yield(INB(q.config,X),6);case 6:D=O.yieldResult;case 5:return A=
(l=(f=q.requestShell)==null?void 0:f.headers)!=null?l:{},q.requestShell=Object.assign({},q.requestShell,{headers:Object.assign({},A,D)}),d=Object.assign({},q.requestShell),S=JSON.stringify(q.innerTubeRequest),q.requestShell.method==="POST"&&(d=Object.assign({},d,{body:S})),V=function(Jq,LC){G9(e,LC.playerResponse||LC.watchNextResponse||LC.reelItemWatchResponse||LC.reelWatchSequenceResponse,q);k==null||k(Jq,LC);LC.playerResponse&&hmB()},Q={},O.yield(w8n(e.networkManager,q.input,d,V),7);
case 7:return Q=O.yieldResult,((y=q.config)==null?0:y.responseTick)&&_.Wh(q.config.responseTick),O.return(Q)}})};
_.Yq=function(e,g,c,k,I){I=I===void 0?{authStrategy:{identity:nnw}}:I;var J=J===void 0?!0:J;var q=function(){};
q=JFz(kGg(c));g.context||(g.context=_.ig(k,J));return new _.Il(function(L){var n,R,W,b,h;return _.r(function(X){if(X.nextAddress==1)return n=Q_t(c),R=_.f_(n),e.authService.syncHeaders?(W=kgq(I,R),X.jumpTo(2)):X.yield(INB(I,R),3);X.nextAddress!=2&&(W=X.yieldResult);b=UdA(Q_t(c));h={input:b,requestShell:jV(b),innerTubeRequest:g,config:I};L(JEq(e,h,W,q));_.Uh(X)})})};
vlZ=function(e,g){var c,k,I,J,q,L,n,R,W,b,h;return _.r(function(X){switch(X.nextAddress){case 1:if(!((c=g)==null?0:(k=c.innerTubeRequest)==null?0:k.context)){X.jumpTo(0);break}I=g.innerTubeRequest.context;if(!(e.asyncContextProcessors&&e.asyncContextProcessors.length>0)){X.jumpTo(3);break}J=[];q=_.w(e.asyncContextProcessors);for(L=q.next();!L.done;L=q.next())n=L.value,R=n.processContext(g),R.wrappedPromise_&&J.push(R.wrappedPromise_);if(!(J.length>0)){X.jumpTo(3);break}return X.yield(Promise.all(J),
3);case 3:W=_.w(e.contextProcessors||[]),b=W.next();case 6:if(b.done){X.jumpTo(0);break}h=b.value;return X.yield(h.processContext(I),7);case 7:b=W.next(),X.jumpTo(6)}})};
G9=function(e,g,c){var k;if(g&&!(g==null?0:(k=g.sequenceMetaData)==null?0:k.skipProcessing)&&e.responseProcessorMap){k=_.w(Crq);for(var I=k.next();!I.done;I=k.next())I=I.value,e.responseProcessorMap[I]&&e.responseProcessorMap[I].handleResponse(g,c)}};
JEq=function(e,g,c,k){k=k===void 0?function(){}:k;
var I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y,O,Jq,LC,bW,RA,Xg,Fg,oA,Zt,Ev,an;return _.r(function(V6){switch(V6.nextAddress){case 1:q=(I=g.config)==null?void 0:(J=I.storeStrategy)==null?void 0:J.storeKey;if(!(q&&e.innertubeResponseStore&&e.innertubeResponseStore.has(q))||((L=g.config)==null?0:(n=L.storeStrategy)==null?0:n.disableCache)){V6.jumpTo(2);break}return V6.yield(e.innertubeResponseStore.get(q),3);case 3:R=V6.yieldResult;if(!R||R.isExpired()){V6.jumpTo(2);break}W=_.om(R);if(!_.G("web_process_response_store_responses")||
R.isProcessed()){V6.jumpTo(5);break}G9(e,W,g);return V6.yield(e.innertubeResponseStore.markAsProcessed(q),5);case 5:return V6.return(Promise.resolve(W));case 2:if((b=e.localInnertubeRouter)==null||!b.shouldPreferLocalResponse(g.input,g.innerTubeRequest)){V6.jumpTo(7);break}return V6.yield(e.localInnertubeRouter.localInnertubeResponse(g.input,g.innerTubeRequest),8);case 8:return h=V6.yieldResult,G9(e,h,g),V6.return(h);case 7:return V6.yield(vlZ(e,g),9);case 9:return(f=(D=g.config)==null?void 0:D.requestKey)&&
e.inflightRequests.has(f)?X=e.inflightRequests.get(f):(l=JSON.stringify(g.innerTubeRequest),S=(d=(A=g.requestShell)==null?void 0:A.headers)!=null?d:{},g.requestShell=Object.assign({},g.requestShell,{headers:Object.assign({},S,c)}),V=Object.assign({},g.requestShell),g.requestShell.method==="POST"&&(V=Object.assign({},V,{body:l})),((Q=g.config)==null?0:Q.requestTick)&&_.Wh(g.config.requestTick),y=function(){return e.networkManager.fetch(g.input,V,g.config)},X=e.requestSequencer?Lxq(e.requestSequencer,
g,y):y(),f&&e.inflightRequests.set(f,X)),V6.yield(X,10);
case 10:(O=V6.yieldResult)&&_.G("web_streaming_player")&&Array.isArray(O)&&(O=O[0].playerResponse);if(O&&"error"in O&&((Jq=O)==null?0:(LC=Jq.error)==null?0:LC.details))for(bW=O.error.details,RA=_.w(bW),Xg=RA.next();!Xg.done;Xg=RA.next())Fg=Xg.value,(oA=Fg["@type"])&&eau.indexOf(oA)>-1&&(delete Fg["@type"],O=Fg);f&&e.inflightRequests.has(f)&&e.inflightRequests.delete(f);((Zt=g.config)==null?0:Zt.responseTick)&&_.Wh(g.config.responseTick);if(O||(Ev=e.localInnertubeRouter)==null||!Ev.canProvideFallbackResponse(g.input,
g.innerTubeRequest)){V6.jumpTo(11);break}return V6.yield(e.localInnertubeRouter.localFallbackInnertubeResponse(g.input,g.innerTubeRequest),12);case 12:O=V6.yieldResult;case 11:return G9(e,O,g),((an=g.config)==null?0:an.processorTick)&&_.Wh(g.config.processorTick),k(),V6.return(O||void 0)}})};
_.fx=function(e,g){return pKV(g,e.endpointMap)};
cEZ=function(e,g){e=l_z(g,e.endpointMap);if(e!==void 0)return Promise.resolve(e)};
INB=function(e,g){var c,k,I,J;return _.r(function(q){if(q.nextAddress==1){I=(c=e)==null?void 0:(k=c.authStrategy)==null?void 0:k.sessionIndex;var L=q.yield;var n=_.No(j1q({sessionIndex:I}));return L.call(q,n,2)}J=q.yieldResult;return q.return(Promise.resolve(Object.assign({},AQq(g),J)))})};
kgq=function(e,g){var c;e=e==null?void 0:(c=e.authStrategy)==null?void 0:c.sessionIndex;c=j1q({sessionIndex:e});return Object.assign({},AQq(g),c)};var rEB,aNw,nlw,RaB,Elk,WxM,X8I,GgY,$3,x0n,D0Z,hav,$0q;rEB=0;aNw=/tone[1-5]/;nlw=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");RaB="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Elk=Number.MAX_SAFE_INTEGER;WxM=RegExp("\ufe0f","g");_.x3=function(e){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;e&&_.bRv(this,e)};
_.bRv=function(e,g){try{_.vQ(g,{context:e,onSuccess:function(k,I){Array.isArray(I)?e.load(I):(k=new _.E2("Emoji manager JSON response was not an array!",{response:I}),_.jW(k))},
onError:function(k){k=new _.E2("Failed to retrieve emoji manager initial JSON data!",{url:g,statusCode:_.cQ(k).toString()});_.mN(k)}})}catch(k){var c=new _.E2("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:g});
_.mN(c)}};
_.x3.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.x3.prototype.load=function(e,g){if(g)if(e.length)e=e.concat(g.emojis);else{this.emojis=g.emojis;this.emojiMap=g.emojiMap;this.emojiShortcutMap=g.emojiShortcutMap;this.emojiShortcutCharMap=hav(g);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=g.emojiRegex;return}this.emojis=[].concat(_.KY(new Set(this.emojis.concat(e))));this.hasInitializedShortcutCharMap=!1;e=Array(this.emojis.length);for(g=0;g<this.emojis.length;g++){var c=this.emojis[g];if(c.emojiId){this.emojiMap[c.emojiId]=c;this.emojiMap[c.emojiId].index=
g;for(var k=0;c.shortcuts&&k<c.shortcuts.length;k++)this.emojiShortcutMap[c.shortcuts[k].toLocaleLowerCase()]=c;e[g]=c.isCustomEmoji&&c.shortcuts?c.shortcuts[0]:c.emojiId}}e.sort(function(I,J){return J.length-I.length});
if(e.length)try{this.emojiRegex=new RegExp(e.join("|").replace("*","\\*"),"gi")}catch(I){this.emojiRegex=/$./}else this.emojiRegex=/$./};
X8I=function(e,g){g=_.w(g);for(var c=g.next();!c.done;c=g.next()){var k=c.value;if(k.emojiId&&e.emojiMap[k.emojiId]){c=Object.assign({},e.emojiMap[k.emojiId],k);e.emojiMap[k.emojiId]=c;var I=void 0;c.index&&((I=e.emojis[c.index])==null?void 0:I.emojiId)===k.emojiId&&(e.emojis[c.index]=c);k=void 0;if((k=c.shortcuts)==null?0:k.length)for(e.hasInitializedShortcutCharMap=!1,k=_.w(c.shortcuts),I=k.next();!I.done;I=k.next())e.emojiShortcutMap[I.value.toLocaleLowerCase()]=c}}};
GgY=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return k.yield(_.rB.getInstance(),2);if(k.nextAddress!=3)return(g=k.yieldResult)?k.yield(g.get("ytlc-emoji-pref"),3):k.return();(c=k.yieldResult)&&X8I(e,Object.keys(c).map(function(I){return{emojiId:I,stickyPrefId:c[I]}}).filter(function(I){return!!I.emojiId&&!!I.stickyPrefId}));
_.Uh(k)})};
_.Dr=function(e,g,c){return(e=e.emojiMap[g])&&(!e.isLocked||c!==void 0&&c)?e:void 0};
$3=function(e,g,c){c=_.Dr(e,g,c===void 0?!1:c);var k=g.match("\u200d");c&&e.skinTone!==0&&(e=(k==null?void 0:k.length)===1?_.Dr(e,g.replace("\u200d",nlw[e.skinTone]+"\u200d")):_.Dr(e,g+nlw[e.skinTone]))&&(c=e);return c};
x0n=function(e,g){var c=e.emojiMap[g];return(c==null?0:c.stickyPrefId)?e.emojiMap[c.stickyPrefId]:$3(e,g)};
_.Z9=function(e,g){e=e.emojiShortcutMap[g.toLocaleLowerCase()];return!e||e.isLocked?null:e};
D0Z=function(e,g,c){return hav(e,c===void 0?!1:c)[g]||{}};
hav=function(e,g){g=g===void 0?!1:g;if(!e.hasInitializedShortcutCharMap){e.hasInitializedShortcutCharMap=!0;for(var c=0;c<e.emojis.length;c++){var k=e.emojis[c];if(!(k.isLocked||g&&k.isCustomEmoji&&k.emojiId&&!e.pickerCustomEmojiIds.includes(k.emojiId)))for(var I=0;k.shortcuts&&I<k.shortcuts.length;I++){var J=k.shortcuts[I];J.startsWith(":_")&&k.isCustomEmoji&&(e.emojiShortcutCharMap[":_"]==null&&(e.emojiShortcutCharMap[":_"]=Object.create(null)),e.emojiShortcutCharMap[":_"][J]=k);if(!(J.length<3||
!k.isCustomEmoji&&aNw.test(J))){var q=J.substr(0,3).toLocaleLowerCase();e.emojiShortcutCharMap[q]==null&&(e.emojiShortcutCharMap[q]=Object.create(null));e.emojiShortcutCharMap[q][J]=k}}}}return e.emojiShortcutCharMap};
_.x3.prototype.createEmoji=function(e,g){g=g===void 0?!0:g;var c=document.createElement("img");e.isCustomEmoji||c.classList.add("small-emoji");c.classList.add("emoji");c.classList.add("yt-formatted-string");c.src=e.image?_.F6(e.image.thumbnails,this.emojiSize)||"":"";var k=void 0;e.image&&e.image.accessibility&&e.image.accessibility.accessibilityData&&(k=e.image.accessibility.accessibilityData.label);c.alt=k?k:(e.isCustomEmoji&&e.shortcuts?e.shortcuts[0]:e.emojiId)||"";e.isCustomEmoji&&(c.dataset.emojiId=
e.emojiId);_.B2&&(c.setAttribute("contenteditable","false"),c.setAttribute("unselectable","on"));g&&(e.shortcuts&&e.shortcuts.length&&c.setAttribute("shared-tooltip-text",e.shortcuts[0]),c.id="emoji-"+rEB++);return c};
_.x3.prototype.createDocumentFragment=function(e,g,c,k){g=g===void 0?!1:g;c=c===void 0?!0:c;k=k===void 0?!1:k;e=e.replace(WxM,"");for(var I=document.createDocumentFragment(),J=0,q,L=0;(q=this.emojiRegex.exec(e))!=null;){var n=_.Dr(this,q[0])||_.Z9(this,q[0]);!n||n.isCustomEmoji&&!g||(n=this.createEmoji(n,c),J!==q.index&&I.appendChild(document.createTextNode(e.substring(J,q.index))),I.appendChild(n),J=q.index+q[0].length,L++)}if(!k||L)return I.appendChild(document.createTextNode(e.substr(J))),I};
$0q=function(e,g,c){var k,I,J,q,L,n,R,W,b;return _.r(function(h){if(h.nextAddress==1){if(!g.emojiId||!e.emojiMap[g.emojiId])return h.return();k=Object.assign({},e.emojiMap[g.emojiId],{stickyPrefId:c});e.emojiMap[g.emojiId]=k;g.index&&((I=e.emojis[g.index])==null?void 0:I.emojiId)===g.emojiId&&(e.emojis[g.index]=k);if((J=g.shortcuts)==null?0:J.length)for(e.hasInitializedShortcutCharMap=!1,q=_.w(g.shortcuts),L=q.next();!L.done;L=q.next())n=L.value,e.emojiShortcutMap[n.toLocaleLowerCase()]=k;return h.yield(_.rB.getInstance(),
2)}if(h.nextAddress!=4)return(R=h.yieldResult)?h.yield(R.get("ytlc-emoji-pref"),4):h.jumpTo(0);b=(W=h.yieldResult)!=null?W:{};b[g.emojiId]=c;return h.yield(R.set("ytlc-emoji-pref",b,Elk),0)})};
_.Y3=new _.x3;var jzw;_.f8={};
jzw={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.G("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:_.G("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 im(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 e=_.o1(this.hostElement||this).querySelector("#inline-action-button-container");e&&e.setAttribute("aria-hidden","true");this.menuButton=_.o1(this.hostElement).querySelector("#menu-button")},
attached:function(){var e=this.menuButton;e&&(e.addEventListener("focusin",_.yg(this,this.onMenuButtonFocus_)),e.addEventListener("focusout",_.yg(this,this.onMenuButtonBlur_)))},
detached:function(){var e=this.menuButton;e&&(e.removeEventListener("focusin",_.yg(this,this.onMenuButtonFocus_)),e.removeEventListener("focusout",_.yg(this,this.onMenuButtonBlur_)))},
identity:_.uW,truthy:function(e){return!!e},
computeTimestampString:function(e){return e?e.timestampText?this.getSimpleString(e.timestampText):this.TIME_FORMATTER.format(new Date(e.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(e){return e},
computeMenuVisible_:function(e,g){return e||g},
computeHasInlineActionButtons:function(e){if(!e)return!1;var g,c;return!((g=e.inlineActionButtons)==null||!g.length)||!((c=e.additionalInlineActionButtons)==null||!c.length)},
createDocumentFragmentFromString:function(e){var g=_.Y3.createDocumentFragment.bind(_.Y3),c;if((c=this.participantsManager)==null||!c.viewerRegex)return g(e);c=document.createDocumentFragment();for(var k=0,I;(I=this.participantsManager.viewerRegex.exec(e))!=null;){if(I.index>0){var J=":"+I[0]+":";if((_.Dr(_.Y3,J)||_.Z9(_.Y3,J))&&e.indexOf(J)===I.index-1)continue}c.appendChild(g(e.substring(k,I.index)));k=document.createElement("span");k.appendChild(g(I[0]));k.classList.add("mention");c.appendChild(k);
k=I.index+I[0].length}c.appendChild(g(e.substring(k)));return c},
createDocumentFragment:function(e){var g=document.createDocumentFragment();if(e.simpleText)return g.appendChild(this.createDocumentFragmentFromString(e.simpleText)),g;if(!e.runs)return g;for(var c=0;c<e.runs.length;c++){var k=e.runs[c];if(k.emoji)g.appendChild(_.Y3.createEmoji(k.emoji));else if(k.text)if(k.navigationEndpoint){var I=document.createElement("a");I.classList.add("yt-simple-endpoint");ZVq(I,k.navigationEndpoint);_.o1(I).appendChild(this.createDocumentFragmentFromString(k.text));g.appendChild(I)}else g.appendChild(this.createDocumentFragmentFromString(k.text))}return g},
hasModerationOverlayVisible:function(){var e;return((e=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:e.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(e){e.composedPath().some(function(g){return(g=g instanceof Element?g:null)?g.tagName&&(g.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||g.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.G("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(e)},
colorFromDecimal:function(e){return p5C(e)},
markAsDeleted:function(e,g){this.set("data.deletedStateMessage",e);this.set("data.showOriginalContentMessage",g)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(e){if(this.data.contextMenuEndpoint){var g=_.Ss().resolve(_.cg),c=this.data.contextMenuEndpoint,k;(k=_.Yy.instance)&&_.fx(k,c)?(g=YWn(g,c),k=_.Yq(k,{},g)):k=_.fNI(g,c);k.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);e&&e.stopPropagation()}},
handleGetContextMenuResponse_:function(e){var g=_.Yy.instance;g&&_.fx(g,{liveChatEndpoint:{}})||(e=e.response);e.liveChatItemContextMenuSupportedRenderers&&e.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(e.liveChatItemContextMenuSupportedRenderers.menuRenderer);e.actions&&_.Z5(this.hostElement,"yt-live-chat-actions",[e.actions])},
handleGetContextMenuError:function(e){if(e instanceof Error||e instanceof Object||e instanceof String)var g=e;_.jW(new _.E2("Error encountered calling GetLiveChatItemContextMenu",g))},
showContextMenu_:function(e){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:e}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.oC(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.oC(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.f8.YtLiveChatItemBehavior=[jzw,_.hF.YtComponentBehavior,_.tF.YtOpenPopupBehavior];_.jq=function(){};var iRw;var PtB;var m0Y;var p8v;var iZ=function(){var e=_.z.apply(this,arguments)||this;e.active=!1;e.identity=_.uW;return e};
_.Y(iZ,_.z);iZ.prototype.dataChanged=function(){this.active=!1};
iZ.prototype.onClick=function(){_.oC(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
iZ.prototype.dataChanged=iZ.prototype.dataChanged;_.t([_.u(),_.B("design:type",Object)],iZ.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],iZ.prototype,"active",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iZ.prototype,"dataChanged",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],iZ);
_.U(iZ,"yt-live-chat-text-input-field-suggestion",function(){if(p8v===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;m0Y===void 0&&(m0Y=document.createElement("template"));var k=m0Y;c.call(g,k.content.cloneNode(!0),e.content.firstChild);p8v=e}e=p8v;return e},{mode:0});_.PF=function(e,g,c){return CustomEvent.call(this,e,{detail:{value:g,path:c}})||this};
_.Y(_.PF,CustomEvent);_.mQ=function(){var e=_.z.apply(this,arguments)||this;e.viewerName=null;e.actionMap={"yt-live-chat-actions":"onChatMessage_"};e.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];e.PARTICIPANT_TIME_USEC_=3E8;return e};
_.Y(_.mQ,_.z);_.v=_.mQ.prototype;_.v.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.v.addParticipant=function(e){var g=_.dUV(this.participants,e,function(k,I){k=k[Object.keys(k)[0]];I=I[Object.keys(I)[0]];k=String(_.mp(k.authorName)).toLowerCase();I=String(_.mp(I.authorName)).toLowerCase();return k<I?-1:k==I?0:1}.bind(this));
if(g>=0){var c=this.participants[g];c[Object.keys(c)[0]].timestampUsec&&this.splice("participants",g,1,e)}else this.splice("participants",-g-1,0,e);e=e[Object.keys(e)[0]];g=_.mp(e.authorName).toLocaleLowerCase();c=g.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(c)||(this.allParticipantsCharMap_[c]={});this.allParticipantsCharMap_[c][g]=e};
_.v.getAuthorsFromPrefix=function(e){return this.allParticipantsCharMap_.hasOwnProperty(e)?this.allParticipantsCharMap_[e]:null};
_.v.computeViewerRegex_=function(e){if(!e)return null;e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var g=e.indexOf("@")===0&&_.G("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(g+e.replace(/ /g,"\\s*")+"|^"+e.replace(/ /g,"\\s*")+"$|^"+e.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+e.replace(/ /g,"\\s*")+"$|(?<=\\s)"+e.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.v.checkForStaleParticipants_=function(){var e=this;this.trimOldParticipants_();this.asyncHandle_&&qqz(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Y_(function(){e.checkForStaleParticipants_()},3E4))};
_.v.onChatMessage_=function(e){var g=this,c=Date.now()*1E3;e.forEach(function(k){if(k=_.x(k,qEs)){k=k.item;var I=Object.keys(k)[0];g.SUPPORTED_ITEM_TYPES_.indexOf(I)!=-1&&k[I].timestampUsec>=c-g.PARTICIPANT_TIME_USEC_&&g.addParticipant(k)}},this);
this.checkForStaleParticipants_()};
_.v.trimOldParticipants_=function(){for(var e=Date.now()*1E3,g=this.participants.length-1;g>=0;g--){var c=this.participants[g];c=c[Object.keys(c)[0]];c.timestampUsec&&c.timestampUsec<e-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",g,1)}};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],_.mQ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],_.mQ.prototype,"viewerName",void 0);_.t([_.u({computed:"computeViewerRegex_(viewerName)"}),_.B("design:type",Object)],_.mQ.prototype,"viewerRegex",void 0);_.t([_.u({value:function(){return[]},
notify:!0}),_.B("design:type",Array)],_.mQ.prototype,"participants",void 0);_.t([_.Wo({is:"yt-live-chat-participants-manager",noInjection:!0})],_.mQ);var Ttk=/.*([:@#].*?)$/,p8=/\u00a0/g,lNs=String.fromCharCode(160),AEq={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"},T9=function(){var e=_.z.apply(this,arguments)||this;e.disabled=!1;e.liveChatRichMessageInput=null;e.messageInput=null;e.isValidWithNoInputText=!1;e.suggestions=[];e.emojiManager=_.Y3;e.inputMethodEditorActive=
!1;e.suggestionIndex=-1;e.JSC$14546_lastSuggestionRange=null;return e};
_.Y(T9,_.z);_.v=T9.prototype;_.v.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.v.attached=function(){_.er&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.v.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.v.dataChanged=function(){if(!this.ignoreColorMapping){var e=!1,g={},c;for(c in AEq)this.data&&this.data.hasOwnProperty(c)&&(g[AEq[c]]=this.colorFromDecimal(this.data[c]),e=!0);e&&_.Nk(this.hostElement,g)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.v.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.v.colorFromDecimal=function(e){e=Math.floor(Number(e));return"rgba("+[e>>16&255,e>>8&255,e&255,(e>>24&255)/255].join()+")"};
_.v.preventDrag=function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="none");e.preventDefault()};
_.v.preventResize=function(e){e.returnValue=!1};
_.v.onInputChange=function(){var e=this.characterCount,g=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&g&&g.remove();if(!g&&this.characterCount>this.maxCharacterLimit){var c=window.getSelection();if(c){var k=c.getRangeAt(0);c.removeAllRanges();c.addRange(k)}}if(c=this.getCurrentRange())k=this.calculateTextBeforeRange(c),this.completeEmojisInRange(c,k,!0)||this.updateSuggestions(c,k);k=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(k);
_.oC(this.hostElement,"yt-live-chat-message-input-change",k);g&&this.characterCount===0&&g.remove();c&&c.commonAncestorContainer.parentElement.id==="input"&&c.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>e):c&&!c.collapsed&&c.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(e=this.input.childNodes.length-1;e>=0;e--)this.input.childNodes[e].nodeName==="BR"&&this.input.childNodes[e].remove()};
_.v.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.v.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var e=this.getCurrentRange();e&&e.commonAncestorContainer.parentElement.id==="input"&&e.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.v.mergeOverflowText=function(e){if(e){var g=document.createRange();g.selectNodeContents(e);g=g.extractContents();this.input.insertBefore(g,e)}};
_.v.checkRangeAtEndOfInput=function(){var e=this.getCurrentRange();if(e){var g=_.o1(this.hostElement).querySelector("#overflow-text"),c=document.createRange();g&&g.previousSibling?g.previousSibling instanceof HTMLImageElement?c.selectNode(g.previousSibling):c.selectNodeContents(g.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?c.selectNode(this.input.lastChild):c.selectNodeContents(this.input.lastChild));c.collapse(!1);return c.isPointInRange(e.startContainer,
e.startOffset)}return!1};
_.v.handleOverflowText=function(e){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var g=_.o1(this.hostElement).querySelector("#overflow-text"),c=this.getCurrentRange();this.input.normalize();e=this.checkRangeAtEndOfInput()&&e;this.mergeOverflowText(g);for(var k,I=0,J=0,q,L=this.input.childNodes,n=0;n<L.length;n++){var R=L[n];R instanceof Text?(J+=R.textContent.length,J>this.maxCharacterLimit&&(k=R,I=this.maxCharacterLimit+R.textContent.length-J)):R instanceof HTMLImageElement&&
(k=void 0,J=R.dataset.emojiId&&((k=this.data)==null?0:k.emojiCharacterCount)?J+this.data.emojiCharacterCount:J+R.alt.length,k=this.input,I=n);if(J>this.maxCharacterLimit&&k){q=document.createRange();q.collapse(!1);g?(J=this.input.lastChild.previousSibling,J instanceof Text?q.setEnd(this.input.lastChild.previousSibling,J.textContent.length):J instanceof HTMLImageElement&&q.setEnd(this.input,this.input.childNodes.length-1)):q.selectNodeContents(this.input);q.setStart(k,I);break}}q&&(k=!1,c&&(e=q.isPointInRange(c.startContainer,
c.startOffset-1)),g||(g=document.createElement("span"),g.id="overflow-text",g.textContent="",g.setAttribute("contenteditable","true"),_.o1(_.o1(this.hostElement).querySelector("#input")).appendChild(g),k=!0),g&&(c=q.extractContents(),g.insertBefore(c,g.firstChild),e&&g.firstChild&&(c=document.createRange(),k?c.setStartAfter(g.lastChild):c.setStartAfter(g.firstChild),c.collapse(!0),g=window.getSelection(),g.removeAllRanges(),g.addRange(c))))}};
_.v.checkForDuplicateSpans=function(){for(var e=0;e<this.input.childNodes.length;e++){var g=this.input.childNodes[e];if(g.nodeName==="SPAN"){var c=document.createRange();c.selectNodeContents(g);c=c.extractContents();this.input.insertBefore(c,g);g.remove()}}this.handleOverflowText(!0)};
_.v.getCurrentRange=function(){var e=window.getSelection();return e&&e.rangeCount?e.getRangeAt(0).cloneRange():null};
_.v.getInputRange=function(){var e=this.getCurrentRange();if(e){for(var g=e.commonAncestorContainer,c=!1,k=_.o1(this.hostElement).querySelector("#input");g;){if(g===k){c=!0;break}g=g.parentNode}c||(e=null)}e||(e=this.getRangeAtEnd());return e};
_.v.getRangeAtEnd=function(){var e=document.createRange(),g=_.o1(this.hostElement).querySelector("#input").lastChild;!g||g.nodeName!=="#text"&&g.nodeName!=="SPAN"?(e.selectNodeContents(_.o1(this.hostElement).querySelector("#input")),e.collapse(!1)):g.nodeName==="#text"?e.setStart(g,g.textContent.length):e.setStart(g,g.childNodes.length);return e};
_.v.getChatParticipantSuggestions=function(e,g,c,k){var I=_.G("live_chat_enable_handles_web_text_input_update");if(g)for(var J in g)if(J.indexOf(e)===0||I&&J.indexOf(c+e)===0){var q=g[J],L=_.mp(q.authorName);k.push({suggestion:{author:!0,authorType:c,image:q.authorPhoto,alt:L,text:L}});if(k.length>=64)break}};
_.v.getSuggestions=function(e){var g=[],c=e.substring(0,3),k=D0Z(_.Y3,c,!0);if(k)for(var I in k)if(I.toLocaleLowerCase().indexOf(e)===0){var J=k[I];if(J&&J.emojiId){if(J=x0n(_.Y3,J.emojiId)){var q=void 0,L=void 0,n=void 0,R=void 0,W=((q=J.image)==null?0:(L=q.accessibility)==null?0:(n=L.accessibilityData)==null?0:n.label)||J.isCustomEmoji?(R=J.shortcuts)==null?void 0:R[0]:J.emojiId;g.push({suggestion:{emoji:!0,image:J.image,alt:W,text:I,textToInsertWhenSelected:J.isCustomEmoji?I:W}})}if(g.length>=
64)break}}if(!this.participantsManager)return null;if(c.indexOf("@")===0||c.indexOf("#")===0)k=c.charAt(0),e=e.substring(1),I=_.G("live_chat_enable_handles_web_text_input_update"),c.indexOf("@")===0&&I&&(I=this.participantsManager.getAuthorsFromPrefix(c.substring(0,2)),this.getChatParticipantSuggestions(e,I,k,g)),c=c.substring(1),c=this.participantsManager.getAuthorsFromPrefix(c),this.getChatParticipantSuggestions(e,c,k,g);return g?g.sort(function(b,h){return h.suggestion.text<b.suggestion.text?-1:
h.suggestion.text===b.suggestion.text?0:1}):null};
_.v.insertSuggestion=function(e){var g=_.G("live_chat_enable_handles_web_text_input_update"),c=e.authorType;g=e.text.indexOf(c)===0&&g?e.text+lNs:c+e.text+lNs;e.emoji?this.insertTextAtRange(this.JSC$14546_lastSuggestionRange,e.textToInsertWhenSelected||""):e.author&&this.insertTextAtRange(this.JSC$14546_lastSuggestionRange,g)};
_.v.updateSuggestionsAtCaret=function(){var e=this.getCurrentRange();e&&this.updateSuggestions(e,this.calculateTextBeforeRange(e))};
_.v.offsetStartOfRangeBy=function(e,g){for(;g>0;)if(e.startOffset-g>=0){e.setStart(e.startContainer,e.startOffset-g);break}else{g=e.startContainer instanceof HTMLImageElement?g-e.startContainer.alt.length:g-e.startOffset;var c=e.startContainer.previousSibling;if(!c){e.setStart(e.startContainer,0);break}if(_.G("live_chat_require_space_for_autocomplete_emoji")){var k=void 0,I=void 0;e.setStart(c,((k=c)==null?void 0:(I=k.textContent)==null?void 0:I.length)||0)}else e.setStart(c,c.childNodes.length||
0)}};
_.v.updateSuggestions=function(e,g){var c=this;this.JSC$14546_lastSuggestionRange&&(this.JSC$14546_lastSuggestionRange.detach(),this.JSC$14546_lastSuggestionRange=null);if((g=Ttk.exec(g))&&g.length&&(g=g[g.length-1].toLocaleLowerCase(),g.length>2&&(this.offsetStartOfRangeBy(e,g.length),this.JSC$14546_lastSuggestionRange=e,(e=this.getSuggestions(g))&&e.length))){this.suggestions=e;_.Va(this,function(){_.o1(c.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(e.length-1);return}this.dropdown.opened=!1};
_.v.completeEmojisInRange=function(e,g,c){var k=g.replace(/[\s\xa0]+$/,"");g=g.length-k.length;k=k.split(" ");k=k[k.length-1].trim().toLocaleLowerCase();var I=k.lastIndexOf(":");if(c&&!g&&I!==k.length-1)return!1;I!==-1&&(c=k.lastIndexOf(":",I-1),c!==-1&&(k=k.substring(c)));if((c=_.Z9(_.Y3,k))&&c.emojiId){c=x0n(_.Y3,c.emojiId)||null;this.offsetStartOfRangeBy(e,k.length+g);var J,q,L,n;k=(((J=c)==null?0:J.isCustomEmoji)?(q=c)==null?void 0:(L=q.shortcuts)==null?void 0:L[0]:(n=c)==null?void 0:n.emojiId)||
"";g&&(k+=lNs);this.insertTextAtRange(e,k);this.dropdown.opened=!1;return!0}return!1};
_.v.onSuggestion=function(e){this.insertSuggestion(e.detail);this.dropdown.opened=!1};
_.v.onKeyPress=function(e){e.keyCode===13&&(e.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.oC(this.hostElement,"yt-live-chat-send-message"))};
_.v.completeEmojis=function(){var e=document.createRange(),g=_.o1(this.hostElement).querySelector("#input").lastChild;g?e.setStart(g,g.childNodes.length):(e.selectNodeContents(_.o1(this.hostElement).querySelector("#input")),e.collapse(!1));this.completeEmojisInRange(e,this.calculateTextBeforeRange(e),_.G("live_chat_require_space_for_autocomplete_emoji"))};
_.v.maybePreventTextFormatting=function(e){!_.yG||!e.ctrlKey&&!e.metaKey||e.keyCode!==66&&e.keyCode!==73||(e.stopImmediatePropagation(),e.preventDefault())};
_.v.onKeyDown=function(e){this.maybePreventTextFormatting(e);if(this.dropdown.opened)switch(e.keyCode){case 27:this.dropdown.opened=!1;e.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;e.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);e.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),e.preventDefault()}};
_.v.onKeyUp=function(e){switch(e.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.B2)this.onInputChange()};
_.v.changeSuggestionIndex=function(e){if(this.dropdown.opened){var g=_.o1(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<g.children.length&&(g.children[this.suggestionIndex].active=!1);var c=this.suggestions.length;this.suggestionIndex=(e+c)%c;e=g.children[this.suggestionIndex];e.active=!0;g.scrollTop=e.offsetTop}};
_.v.onInputPaste=function(e){e.preventDefault();(e=e.clipboardData)&&e.types&&(e=e.getData("text/plain")||"",e=e.replace(/\n/g,""),this.insertText(e));(e=this.getCurrentRange())&&e.commonAncestorContainer.parentElement.id==="input"&&e.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.v.onFocus=function(){this._setFocused(!0)};
_.v.onBlur=function(){this._setFocused(!1)};
_.v.insertText=function(e){this.insertTextAtRange(this.getInputRange(),e)};
_.v.insertTextAtRange=function(e,g){if(e&&(e.collapsed||e.deleteContents(),g=_.Y3.createDocumentFragment(g,!0,!1))){for(var c=_.w((g==null?void 0:g.childNodes)||[]),k=c.next();!k.done;k=c.next()){k=k.value;var I=void 0,J=void 0,q=void 0,L=void 0,n=void 0;(q=(I=window)==null?void 0:(J=I.ShadyCSS)==null?void 0:J.ScopingShim)==null||(n=(L=q).scopeNode)==null||n.call(L,k,this.hostElement.localName)}c=g.lastChild;e.insertNode(g);this.focused||this.input.focus();if(this.focused){e=e.cloneRange();e.selectNodeContents(c);
e.collapse(!1);if(g=window.getSelection())g.removeAllRanges(),g.addRange(e);e.commonAncestorContainer.parentElement.id==="input"&&e.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}e=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(e);_.oC(this.hostElement,"yt-live-chat-message-input-change",e)}};
_.v.setLiveChatRichMessageInput=function(e){_.o1(_.o1(this.hostElement).querySelector("#input")).textContent="";if(e&&e.textSegments){for(var g=0;g<e.textSegments.length;g++){var c=e.textSegments[g];c.text?_.o1(_.o1(this.hostElement).querySelector("#input")).appendChild(_.Y3.createDocumentFragment(c.text,!0,!1)):c.emojiId&&(c=_.Dr(_.Y3,c.emojiId))&&_.o1(_.o1(this.hostElement).querySelector("#input")).appendChild(_.Y3.createEmoji(c,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.v.setText=function(e){this.setLiveChatRichMessageInput(e?{textSegments:[{text:e}]}:null)};
_.v.calculateTextBeforeRange=function(e){var g="",c=e.startContainer;if(c&&c instanceof Text){var k;g=((k=c.textContent)==null?void 0:k.substring(0,e.startOffset))||"";c=c.previousSibling}for(;c&&c instanceof Text;)g=c.textContent+g,c=c.previousSibling;return g.replace(p8," ")};
_.v.calculateLiveChatRichMessageInput=function(){for(var e=[],g="",c=_.o1(_.o1(this.hostElement).querySelector("#input")).childNodes,k=0;k<c.length;k++){var I=c[k];I instanceof Text?g+=I.textContent:I instanceof HTMLImageElement&&(I.dataset.emojiId?(g&&(e.push({text:g.replace(p8," ")}),g=""),e.push({emojiId:I.dataset.emojiId})):g+=I.alt)}g&&e.push({text:g.replace(p8," ")});if(c=_.o1(this.hostElement).querySelector("#overflow-text")){g="";c=c.childNodes;for(k=0;k<c.length;k++)I=c[k],I instanceof Text?
g+=I.textContent:I instanceof HTMLImageElement&&(I.dataset.emojiId?(g&&(e.push({text:g.replace(p8," ")}),g=""),e.push({emojiId:I.dataset.emojiId})):g+=I.alt);g&&e.push({text:g.replace(p8," ")})}return{textSegments:e}};
_.v.computeCharacterCount=function(e){if(!e||!e.textSegments)return 0;for(var g=0,c=0;c<e.textSegments.length;c++){var k=e.textSegments[c];if(k.text)g+=k.text.length;else if(k.emojiId){var I=void 0;if((I=this.data)==null?0:I.emojiCharacterCount)g+=this.data.emojiCharacterCount;else{var J=I=void 0,q=void 0;g+=((J=_.Dr(_.Y3,(I=k)==null?void 0:I.emojiId))==null?void 0:(q=J.shortcuts)==null?void 0:q[0].length)||0}}}return g};
_.v.characterCountChanged=function(){_.oC(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.v.focusedChanged=function(){this.hostElement.dispatchEvent(new _.PF("focused-changed",this.focused))};
_.v.focus=function(){this.setFocus(!1)};
_.v.focusAtEnd=function(){this.setFocus(!0)};
_.v.setFocus=function(e){e=e?this.getRangeAtEnd():this.getInputRange();_.o1(this.hostElement).querySelector("#input").focus();var g=window.getSelection();g&&(g.removeAllRanges(),g.addRange(e))};
_.v.insertEmoji=function(e){var g,c=((e==null?0:e.isCustomEmoji)?(g=e.shortcuts)==null?void 0:g[0]:e==null?void 0:e.emojiId)||"";this.insertText(c)};
_.v.computeText=function(e){if(!e||!e.textSegments)return"";for(var g="",c=0;c<e.textSegments.length;c++){var k=e.textSegments[c];if(k.text)g+=k.text;else if(k.emojiId){var I=void 0,J=void 0,q=void 0;g+=((J=_.Dr(_.Y3,(I=k)==null?void 0:I.emojiId))==null?void 0:(q=J.shortcuts)==null?void 0:q[0])||""}}return g};
_.v.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Bd.Object.defineProperties(T9.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.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}}});
T9.prototype.focusedChanged=T9.prototype.focusedChanged;T9.prototype.characterCountChanged=T9.prototype.characterCountChanged;T9.prototype.onSuggestion=T9.prototype.onSuggestion;T9.prototype.onMessageSet=T9.prototype.onMessageSet;T9.prototype.dataChanged=T9.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],T9.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],T9.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],T9.prototype,"disabled",void 0);_.t([_.p("disabled"),_.B("design:type",Number),_.B("design:paramtypes",[])],T9.prototype,"inputTabIndex",null);_.t([_.p("data.maxCharacterLimit"),_.u({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],T9.prototype,"maxCharacterLimit",null);
_.t([_.p("liveChatRichMessageInput"),_.u({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],T9.prototype,"characterCount",null);_.t([_.p("maxCharacterLimit, characterCount"),_.u({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],T9.prototype,"remainingCharacterCount",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],T9.prototype,"isChatMessageInput",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],T9.prototype,"inputExpanded",void 0);_.t([_.u({readOnly:!0,notify:!0}),_.B("design:type",Object)],T9.prototype,"liveChatRichMessageInput",void 0);_.t([_.u(),_.B("design:type",Object)],T9.prototype,"messageInput",void 0);_.t([_.u(),_.B("design:type",Boolean)],T9.prototype,"ignoreColorMapping",void 0);_.t([_.p("characterCount"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],T9.prototype,"hasText",null);
_.t([_.u(),_.B("design:type",Object)],T9.prototype,"isValidWithNoInputText",void 0);_.t([_.p("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.u(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],T9.prototype,"isInputValid",null);_.t([_.u({readOnly:!0,value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],T9.prototype,"focused",void 0);_.t([_.u(),_.B("design:type",Array)],T9.prototype,"suggestions",void 0);
_.t([_.u(),_.B("design:type",_.x3)],T9.prototype,"emojiManager",void 0);_.t([_.u(),_.B("design:type",_.mQ)],T9.prototype,"participantsManager",void 0);_.t([_.u(),_.B("design:type",Boolean)],T9.prototype,"noUnderline",void 0);_.t([_.u(),_.B("design:type",Object)],T9.prototype,"inputMethodEditorActive",void 0);_.t([_.Cs("#dropdown"),_.B("design:type",Object)],T9.prototype,"dropdown",void 0);_.t([_.Cs("#input"),_.B("design:type",HTMLElement)],T9.prototype,"input",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T9.prototype,"dataChanged",null);_.t([_.OY("messageInput"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T9.prototype,"onMessageSet",null);_.t([_.Ks("yt-live-chat-select-suggestion"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],T9.prototype,"onSuggestion",null);
_.t([_.OY("characterCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T9.prototype,"characterCountChanged",null);_.t([_.OY("focused"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T9.prototype,"focusedChanged",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],T9);
_.szB=_.U(T9,"yt-live-chat-text-input-field-renderer",function(){if(PtB===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;iRw===void 0&&(iRw=document.createElement("template"));var k=iRw;c.call(g,k.content.cloneNode(!0),e.content.firstChild);PtB=e}e=PtB;return e},{mode:0});var lZ=function(){var e=_.z.apply(this,arguments)||this;e.buttonOverrides={style:"overlay",type:"filled"};e.allowAnimations=!1;e.modern=_.G("web_button_rework_with_live");e.noPadding=!1;return e};
_.Y(lZ,_.z);_.v=lZ.prototype;_.v.shouldSupportInlineActionButtons=function(){return!0};
_.v.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.v.ready=function(){var e=document.querySelector("yt-live-chat-app");e&&e.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.v.attached=function(){this.allowAnimations=!1};
_.v.dataChanged=function(){if(this.data){var e={"--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)};_.Nk(this.hostElement,e);this.allowAnimations=!0}};
_.v.messageChanged=function(){var e,g=(e=this.data)==null?void 0:e.message;e=_.o1(_.o1(this.hostElement).querySelector("#message"));e.textContent="";g&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(g))};
_.v.computeShowOnlyHeader=function(e,g){return!e||e.pdgLikeButton||e.replyButton||e.buyFlowButton?!1:this.isEmpty(e,g)&&!e.footer};
_.v.computeShowFooterDivider=function(e,g,c){return e?!!e.footer&&!this.isEmpty(e,g)&&!c:!1};
_.v.computeIsUserEditable=function(e){return!!e.inputField};
_.v.computeHasHeartButton=function(e){return(e==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(e==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(e==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.v.computeNoveltyImage=function(e){if(e.headerOverlayImage&&e.headerOverlayImage.thumbnails.length){var g=e.headerOverlayImage.thumbnails[0],c,k;if((c=e.pdgPurchasedNoveltyLoggingDirectives)==null?0:(k=c.loggingDirectives)==null?0:k.trackingParams){var I,J;d0v((I=e.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(J=I.loggingDirectives)==null?void 0:J.trackingParams)}return g.width||0}return 0};
_.v.computeAuthorPhotoSize=function(e){return(e==null?0:e.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.v.inputFocus=function(){var e=_.o1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");e&&e.focus()};
_.v.inputInsertEmoji=function(e){var g=_.o1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");g&&g.insertEmoji(e)};
_.v.inputMessage=function(){var e=_.o1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),g;return e&&((g=this.data)==null?0:g.inputField)?(e.completeEmojis(),_.GJ(e.liveChatRichMessageInput)):null};
_.v.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.v.isEmpty=function(e,g){return e?e.empty||!(e.message||e.inputField||g):!0};
_.v.onLowerBuyButtonClick=function(){var e,g=_.x((e=this.data)==null?void 0:e.buyButton,_.G_);g&&g.trackingParams&&!llV(g.command)&&(e=_.Jb(g.trackingParams))&&(g=_.EM())&&_.m7(g,e)};
_.v.shouldSupportWholeItemClick=function(){return!0};
_.Bd.Object.defineProperties(lZ.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
lZ.prototype.isDeletedChanged=lZ.prototype.isDeletedChanged;lZ.prototype.messageChanged=lZ.prototype.messageChanged;lZ.prototype.dataChanged=lZ.prototype.dataChanged;_.t([_.m(g0M.YtPdgLiveChatItemBehavior),_.B("design:type",Object)],lZ.prototype,"ytPdgLiveChatItemBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.W$),_.B("design:type",Object)],lZ.prototype,"ytLiveChatReduxBehavior",void 0);
_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],lZ.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],lZ.prototype,"data",void 0);_.t([_.u({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:Fxt}),_.B("design:type",Object)],lZ.prototype,"engagementState",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.B("design:type",Boolean)],lZ.prototype,"isUserEditable",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.B("design:type",Boolean)],lZ.prototype,"hasHeartButton",void 0);_.t([_.u({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.B("design:type",Boolean)],lZ.prototype,"showOnlyHeader",void 0);
_.t([_.u({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.B("design:type",Boolean)],lZ.prototype,"showFooterDivider",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],lZ.prototype,"allowAnimations",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],lZ.prototype,"dashboardMoneyFeed",void 0);_.t([_.u({computed:"computeNoveltyImage(data)"}),_.B("design:type",Number)],lZ.prototype,"noveltyWidth",void 0);
_.t([_.u({computed:"computeAuthorPhotoSize(data)"}),_.B("design:type",Number)],lZ.prototype,"authorPhotoSize",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],lZ.prototype,"modern",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],lZ.prototype,"noPadding",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lZ.prototype,"dataChanged",null);
_.t([_.OY("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lZ.prototype,"messageChanged",null);_.t([_.p("data","dashboardMoneyFeed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],lZ.prototype,"hideLowerBumper",null);_.t([_.OY("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lZ.prototype,"isDeletedChanged",null);
_.t([_.bF({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],lZ);
_.U(lZ,"yt-live-chat-paid-message-renderer",function(){if(Hds===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;zwY===void 0&&(zwY=document.createElement("template"));var k=zwY;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Hds=e}e=Hds;return e},{mode:0});var Fxw;var unu;var Ag=function(){var e=_.gk.apply(this,arguments)||this;e._noAccessors=!0;return e};
_.Y(Ag,_.gk);Ag.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.uo("openPopupConfig")};
_.t([_.m(_.tF.YtOpenPopupBehavior),_.B("design:type",Object)],Ag.prototype,"ytOpenPopupBehavior",void 0);_.t([_.co()],Ag);_.sJ=[_.tF.YtOpenPopupBehavior,Ag.prototype];var d0q;var K9V=[_.KU,d91,_.bn,_.CZM,_.px,_.wnI,_.bp,_.eh,_.Oo,_.XvY,_.Pm];_.G("web_show_ep_endpoint_response_received")&&K9V.push(_.W2);var OCY=new _.AU("RESPONSE_RECEIVED_COMMANDS"),yQt=new _.AU("RESPONSE_RECEIVED_COMMANDS");var ocK="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Uh6=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],QQq=["GET_UNSEEN_NOTIFICATION_COUNT"];var Fx=function(){var e=_.gk.apply(this,arguments)||this;e._noAccessors=!0;e.serviceEndpointHandlers=[];return e};
_.Y(Fx,_.gk);Fx.prototype.created=function(){var e=this;this.endpointHandlerActionMap={"yt-service-request":function(g,c,k,I){var J;return HJz(e.hostElement,g,c,k,I,e.serviceEndpointHandlers,(J=e.onEntitiesUpdated)==null?void 0:J.bind(e))}}};
Fx.prototype.attached=function(){_.zm(_.dF.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Fx.prototype.detached=function(){_.Hy(_.dF.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.t([_.co()],Fx);_.zak=[Fx.prototype];var HRZ,Qzw=function(){return HRZ!==void 0?HRZ:HRZ=document.createElement("template")};
document.head.appendChild(Qzw().content);var U0w;var olv=document.head,ZRs=olv.appendChild,VGM;if(U0w===void 0){var tG1=document.createElement("template");_.P(tG1,"\x3c!--css-build:shady--\x3e");tG1.content.insertBefore(Qzw().content.cloneNode(!0),tG1.content.firstChild);U0w=tG1}VGM=U0w;ZRs.call(olv,VGM.content);var Btq,NtY=function(){return Btq!==void 0?Btq:Btq=document.createElement("template")};
document.head.appendChild(NtY().content);var SWM;var yEI=document.head,Kxu=yEI.appendChild,ORu;if(SWM===void 0){var MGB=document.createElement("template");_.P(MGB,"\x3c!--css-build:shady--\x3e");MGB.content.insertBefore(NtY().content.cloneNode(!0),MGB.content.firstChild);SWM=MGB}ORu=SWM;Kxu.call(yEI,ORu.content);var Ct4;_.qH("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.qH("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Ct4=_.G("web_button_rework")&&_.dH("BUTTON_REWORK")||_.G("web_button_rework_with_live");_.uZ=function(){var e=_.z.apply(this,arguments)||this;e.isPressed=!1;e.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return e};
_.Y(_.uZ,_.z);_.v=_.uZ.prototype;_.v.created=function(){this.showTooltips=!0};
_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.onHintIdChanged=function(){var e=this,g,c,k=(g=this.ytButtonBehavior.data)==null?void 0:(c=g.hint)==null?void 0:c.hintRenderer;if(k&&k.hintId){g=_.V1(this.hostElement,"yt-get-opened-popups-action");g=(g&&g.length===1?g[0]:[]).length>0;var I=null;k.hintId!=="sponsor-pre-purchase"||g?k.hintId.startsWith("sponsor-post-purchase")&&!g?I=oP4("membership-manage"):k.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!g&&(I=oP4("membership-freebie-join")):I=oP4("membership-join");I&&_.ft.addLowPriorityJob(function(){for(var J=
_.w(I),q=J.next();!q.done;q=J.next())e.ytComponentBehavior.resolveCommand(q.value)})}};
_.v.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.v.onYtNavigate=function(e){var g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(e.detail.endpoint);g&&(e.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(g))};
_.v.onYtServiceRequestSent=function(e,g){this.handleServiceRequestActions(g);_.oC(this.hostElement,"yt-service-request-sent-button-renderer")};
_.v.onServiceRequestCompleted=function(e,g){this.handleServiceRequestActions(g);_.oC(this.hostElement,"yt-service-request-completed-button-renderer")};
_.v.updateButton=function(e){var g;if(e=(g=_.x(e,p6Y))==null?void 0:g.updatedButton)this.ytButtonBehavior.data=_.x(e,_.G_)};
_.v.handleUpdateButtonAction=function(e){var g=this.ytButtonBehavior.data;g.targetId&&e.updateButtonAction.targetId&&g.targetId===e.updateButtonAction.targetId&&this.updateButton(e)};
_.v.handleServiceRequestActions=function(e){if(e=e.actions)for(var g=0;g<e.length;g++)this.updateButton(e[g])};
_.Bd.Object.defineProperties(_.uZ,{template:{configurable:!0,enumerable:!0,get:function(){if(d0q===void 0){var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);d0q=e}e=d0q;return e}}});
_.uZ.prototype.onServiceRequestCompleted=_.uZ.prototype.onServiceRequestCompleted;_.uZ.prototype.onYtServiceRequestSent=_.uZ.prototype.onYtServiceRequestSent;_.uZ.prototype.onYtNavigate=_.uZ.prototype.onYtNavigate;_.uZ.prototype.onPressedStateChanged=_.uZ.prototype.onPressedStateChanged;_.uZ.prototype.onHintIdChanged=_.uZ.prototype.onHintIdChanged;_.t([_.u(),_.B("design:type",Object)],_.uZ.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],_.uZ.prototype,"isPressed",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],_.uZ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.IhB.YtButtonBehavior),_.B("design:type",Object)],_.uZ.prototype,"ytButtonBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],_.uZ.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],_.uZ.prototype,"ytComponentBehavior",void 0);
_.t([_.m(eq.YtRenderButtonBehavior),_.B("design:type",Object)],_.uZ.prototype,"ytRenderButtonBehavior",void 0);_.t([_.OY("data.hint.hintRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],_.uZ.prototype,"onHintIdChanged",null);_.t([_.OY("isPressed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],_.uZ.prototype,"onPressedStateChanged",null);
_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],_.uZ.prototype,"onYtNavigate",null);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],_.uZ.prototype,"onYtServiceRequestSent",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],_.uZ.prototype,"onServiceRequestCompleted",null);_.t([_.bF({is:"ytd-button-renderer",disableElementRegistration:Ct4})],_.uZ);var dm=function(){var e=_.z.apply(this,arguments)||this;e.modern=_.G("web_button_rework_with_live");e.buttonOverrides={style:"overlay",type:"filled"};return e};
_.Y(dm,_.z);_.v=dm.prototype;_.v.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.v.ready=function(){var e=document.querySelector("yt-live-chat-app");e&&e.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.v.dataChanged=function(){if(this.data&&this.data.sticker){var e=_.F6(this.data.sticker.thumbnails,this.stickerWidth);e||_.cMt(e).thenCatch(function(){_.mN(new _.E2("Failed to load Super Sticker with url",e))})}};
_.v.computeAuthorPhotoSize=function(e){return(e==null?0:e.isV2Style)?32:40};
_.v.computeIsV2Style=function(e){return(e==null?0:e.isV2Style)?!0:!1};
_.v.onStickerLoaded=function(e){var g,c,k;(g=_.A3(e))==null||(c=g.parentNode)==null||(k=c.classList)==null||k.add("sticker-loaded")};
_.v.computeNoveltyImageWidth=function(e){var g,c;if(e==null?0:(g=e.headerOverlayImage)==null?0:(c=g.thumbnails)==null?0:c.length){g=e.headerOverlayImage.thumbnails[0];var k,I;if((k=e.pdgPurchasedNoveltyLoggingDirectives)==null?0:(I=k.loggingDirectives)==null?0:I.trackingParams){var J,q;d0v((J=e.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(q=J.loggingDirectives)==null?void 0:q.trackingParams)}return g.width||0}return 0};
_.v.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.v.updateStickerStyles=function(){var e=this.data;e&&(e={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(e.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(e.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(e.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(e.authorNameTextColor)},
_.Nk(this.hostElement,e))};
_.v.onBuyButtonClick=function(){var e,g=_.x((e=this.data)==null?void 0:e.buyButton,_.G_);g&&!llV(g.command)&&this.ytRendererBehavior.logExplicitClick(g)};
_.v.shouldSupportWholeItemClick=function(){return!0};
_.Bd.Object.defineProperties(dm.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 e;return((e=this.data)==null?0:e.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
dm.prototype.updateStickerStyles=dm.prototype.updateStickerStyles;dm.prototype.isDeletedChanged=dm.prototype.isDeletedChanged;dm.prototype.onStickerLoaded=dm.prototype.onStickerLoaded;dm.prototype.dataChanged=dm.prototype.dataChanged;_.t([_.m(g0M.YtPdgLiveChatItemBehavior),_.B("design:type",Object)],dm.prototype,"ytPdgLiveChatItemBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],dm.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],dm.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],dm.prototype,"data",void 0);
_.t([_.u({computed:"computeAuthorPhotoSize(data)"}),_.B("design:type",Number)],dm.prototype,"authorPhotoSize",void 0);_.t([_.u(),_.B("design:type",Boolean)],dm.prototype,"isDeleted",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],dm.prototype,"dashboardMoneyFeed",void 0);_.t([_.u({computed:"computeNoveltyImageWidth(data)"}),_.B("design:type",Number)],dm.prototype,"noveltyWidth",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],dm.prototype,"modern",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.B("design:type",Boolean)],dm.prototype,"isV2Style",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dm.prototype,"dataChanged",null);_.t([_.Ks("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],dm.prototype,"onStickerLoaded",null);
_.t([_.p("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],dm.prototype,"stickerWidth",null);_.t([_.p("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],dm.prototype,"stickerHeight",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dm.prototype,"hasHeartButton",null);_.t([_.p("data","dashboardMoneyFeed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dm.prototype,"hideLowerBumper",null);
_.t([_.OY("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dm.prototype,"isDeletedChanged",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dm.prototype,"updateStickerStyles",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],dm);
_.U(dm,"yt-live-chat-paid-sticker-renderer",function(){if(unu===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;Fxw===void 0&&(Fxw=document.createElement("template"));var k=Fxw;c.call(g,k.content.cloneNode(!0),e.content.firstChild);unu=e}e=unu;return e},{mode:0});var ey4;var gc1;var cQM,khB=function(){return cQM!==void 0?cQM:cQM=document.createElement("template")};
document.head.appendChild(khB().content);var I_v,JQw=function(){return I_v!==void 0?I_v:I_v=document.createElement("template")};
document.head.appendChild(JQw().content);var vcB;var wK4,qdn=function(){return wK4!==void 0?wK4:wK4=document.createElement("template")};
document.head.appendChild(qdn().content);var L9s;var rQu=document.head,a_4=rQu.appendChild,nc4;if(L9s===void 0){var Ryk=document.createElement("template");_.P(Ryk,"\x3c!--css-build:shady--\x3e");Ryk.content.insertBefore(qdn().content.cloneNode(!0),Ryk.content.firstChild);L9s=Ryk}nc4=L9s;a_4.call(rQu,nc4.content);var EcY=document.head,W9w=EcY.appendChild,bJ4;if(vcB===void 0){var z9=document.createElement("template");_.P(z9,"\x3c!--css-build:shady--\x3e");z9.content.insertBefore(JQw().content.cloneNode(!0),z9.content.firstChild);z9.content.insertBefore(khB().content.cloneNode(!0),z9.content.firstChild);vcB=z9}bJ4=vcB;W9w.call(EcY,bJ4.content);var HF=function(){var e=_.gk.apply(this,arguments)||this;e.focusedIndex=0;e.verticalOffset=0;e.verticalAlign="top";e.dynamicAlign=!0;return e};
_.Y(HF,_.gk);HF.prototype.emojiUrl=function(e){e=_.Dr(this.emojiManager,e);if(!e)return"";var g;e=(g=e.image)==null?void 0:g.thumbnails;return _.F6(e,24)||""};
var hyk=function(e){var g;e.emojiVariants&&(g=e.data)!=null&&g.target&&_.Va(e,function(){e.set("verticalOffset",-1*e.hostElement.clientHeight);var c=_.o1(e.hostElement).querySelector("img");c&&c.focus()})};
_.v=HF.prototype;_.v.onKeyboardEnter=function(){};
_.v.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.v.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.v.onKeyDown=function(e){switch(e.keyCode){case 13:this.onKeyboardEnter();e.preventDefault();break;case 40:this.changeFocus(1);e.preventDefault();break;case 38:this.changeFocus(-1);e.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.v.onYtEmojiSelect=function(e){var g=this,c,k,I,J,q,L,n,R;return _.r(function(W){if(W.nextAddress==1)return k=(c=g.data)==null?void 0:c.emoji,q=((I=k)==null?void 0:I.stickyPrefId)||((J=k)==null?void 0:J.emojiId),n=(L=e.detail)==null?void 0:L.emojiId,q&&n&&q!==n?W.yield((R=g.emojiManager)==null?void 0:$0q(R,k,n),2):W.return();_.Z5(g.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[k,n]);_.Uh(W)})};
_.v.changeFocus=function(e){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+e+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(e=_.o1(this.hostElement).querySelector("#variants"))&&e.children[this.focusedIndex].focus())};
_.Bd.Object.defineProperties(HF.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
HF.prototype.onYtEmojiSelect=HF.prototype.onYtEmojiSelect;HF.prototype.onKeyDown=HF.prototype.onKeyDown;HF.prototype.onEmojiVariantsChanged=HF.prototype.onEmojiVariantsChanged;HF.prototype.onVerticalOffsetOrPositionTargetChanged=HF.prototype.onVerticalOffsetOrPositionTargetChanged;_.t([_.m(_.$L),_.B("design:type",Object)],HF.prototype,"ironOverlayBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],HF.prototype,"data",void 0);_.t([_.u(),_.B("design:type",_.x3)],HF.prototype,"emojiManager",void 0);
_.t([_.u(),_.B("design:type",Object)],HF.prototype,"emojiVariants",void 0);_.t([_.u(),_.B("design:type",Object)],HF.prototype,"focusedIndex",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],HF.prototype,"positionTarget",null);_.t([_.u({reflectToAttribute:!0}),_.p("verticalOffset","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],HF.prototype,"isPositioned",null);_.t([_.u(),_.B("design:type",Object)],HF.prototype,"verticalOffset",void 0);
_.t([_.u(),_.B("design:type",Object)],HF.prototype,"verticalAlign",void 0);_.t([_.u(),_.B("design:type",Object)],HF.prototype,"dynamicAlign",void 0);_.t([_.OY("verticalOffset","positionTarget"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HF.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.t([_.OY("emojiVariants"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HF.prototype,"onEmojiVariantsChanged",null);
_.t([_.Ks("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],HF.prototype,"onKeyDown",null);_.t([_.Ks("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype",Promise)],HF.prototype,"onYtEmojiSelect",null);_.t([_.co()],HF);var XKI=[HF.prototype];var Ghq;var xhq;var Dhs=/medium-light|medium-dark|light|medium|dark/,$hM=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Ydv=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Q7=function(){var e=_.z.apply(this,arguments)||this;e.userSelection={left:null,right:null};e.scrollAction="lock";e.isEmojiDraftInProgress=!1;return e};
_.Y(Q7,_.z);_.v=Q7.prototype;_.v.onClick=function(e){e=_.A3(e);e instanceof HTMLImageElement&&this.selectOrUpdateEmoji(e)};
_.v.selectOrUpdateEmoji=function(e){var g=e.getAttribute("selection");g&&(g==="default"?_.oC(this.hostElement,"yt-emoji-select",_.Dr(this.emojiManager,e.id)):g==="left"?this.userSelection=Object.assign({},this.userSelection,{left:e.src}):g==="right"?this.userSelection=Object.assign({},this.userSelection,{right:e.src}):g==="user"&&this.userSelection.left&&this.userSelection.right&&_.oC(this.hostElement,"yt-emoji-select",_.Dr(this.emojiManager,e.id)))};
_.v.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.v.onMultiSelectorThumbnailRowChanged=function(){var e,g,c;((e=this.data)==null?0:(g=e.emoji)==null?0:(c=g.multiSelectorThumbnailRow)==null?0:c.length)&&this.openSelector()};
_.v.getThumbnailFromEmojiRow=function(e){var g,c;return(e==null?void 0:(g=e.thumbnails)==null?void 0:(c=g[0])==null?void 0:c.url)||""};
_.v.getEmojiAltTextForPartialSelector=function(e){var g;return((g=this.getThumbnailFromEmojiRow(e).match($hM))==null?void 0:g[0])||""};
_.v.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.v.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.v.getRowSelection=function(e){return["left","right"][e]};
_.v.getIdFromComposedEmoji=function(e){return(e==null?void 0:e.emojiId)||""};
_.v.getEmojiFromPartialSelections=function(e,g){if(!e&&!g)return null;var c,k,I=(c=this.data)==null?void 0:(k=c.emoji)==null?void 0:k.variantIds;if(!I||!I.length)return null;var J;e=(J=e.match(Dhs))==null?void 0:J[0];var q;g=(q=g.match(Dhs))==null?void 0:q[0];if(!e||!g)return null;var L=Ydv.get(e);q=Ydv.get(g);if(L===q){q=Array.from(Ydv.values()).filter(function(R){return R!==L}).join("|");
var n=new RegExp("^((?!("+q+")).)*"+L+"$")}else n=new RegExp(L+".*"+q);return(I=I.find(function(R){return n.test(R)}))&&_.Dr(this.emojiManager,I)||null};
_.v.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var e,g=this.ytEmojiSelectorBehavior.emojiUrl(((e=this.data.emoji)==null?void 0:e.emojiId)||"");_.o1(this.hostElement).querySelector('[selection="user"]').src.includes(g)||(this.isEmojiDraftInProgress=!0)}};
_.v.onDomChange=function(){hyk(this.ytEmojiSelectorBehavior)};
_.v.getFocusableElements=function(){return _.o1(this.hostElement).querySelectorAll("img").filter(function(e){return e.getAttribute("role")==="option"})};
_.v.changeFocus=function(e){var g=this.getFocusableElements();g!=null&&g.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+e+g.length)%g.length,this.ytEmojiSelectorBehavior.focusedIndex<g.length&&(e=g[this.ytEmojiSelectorBehavior.focusedIndex])&&e.focus())};
_.v.onKeyboardEnter=function(){var e=this.getFocusableElements();e!=null&&e.length&&(e=e[this.ytEmojiSelectorBehavior.focusedIndex])&&e instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(e),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Bd.Object.defineProperties(Q7.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var e=this,g,c,k;return this.emojiManager&&((g=this.data)==null?0:(c=g.emoji)==null?0:(k=c.variantIds)==null?0:k.length)?this.data.emoji.variantIds.map(function(I){return!!I&&_.Dr(e.emojiManager,I)}).filter(function(I){return!!I}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var e,g=(e=this.userSelection)==null?void 0:e.left,c;e=(c=this.userSelection)==null?void 0:c.right;return g&&e?this.getEmojiFromPartialSelections(g,e):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.composedEmojiSelection)==null?0:e.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var g;e=(g=this.userSelection)==null?void 0:g.left;var c;g=(c=this.userSelection)==null?void 0:c.right;if(!e&&!g){var k;return this.ytEmojiSelectorBehavior.emojiUrl(((k=this.data.emoji)==null?void 0:k.emojiId)||"")}return e&&!g?e:!e&&g?g:""}}});
Q7.prototype.onMultiSelectorThumbnailRowChanged=Q7.prototype.onMultiSelectorThumbnailRowChanged;Q7.prototype.onClick=Q7.prototype.onClick;_.t([_.m(_.$L),_.B("design:type",Object)],Q7.prototype,"ironOverlayBehavior",void 0);_.t([_.m(XKI),_.B("design:type",Object)],Q7.prototype,"ytEmojiSelectorBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Q7.prototype,"data",void 0);_.t([_.u(),_.B("design:type",_.x3)],Q7.prototype,"emojiManager",void 0);
_.t([_.u(),_.B("design:type",Object)],Q7.prototype,"userSelection",void 0);_.t([_.u(),_.B("design:type",Object)],Q7.prototype,"scrollAction",void 0);_.t([_.u(),_.B("design:type",Object)],Q7.prototype,"isEmojiDraftInProgress",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Q7.prototype,"emojiVariants",null);_.t([_.p("data","userSelection"),_.B("design:type",Object),_.B("design:paramtypes",[])],Q7.prototype,"composedEmojiSelection",null);
_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],Q7.prototype,"onClick",null);_.t([_.OY("data.emoji.multiSelectorThumbnailRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q7.prototype,"onMultiSelectorThumbnailRowChanged",null);_.t([_.p("data","userSelection","composedEmojiSelection"),_.B("design:type",String),_.B("design:paramtypes",[])],Q7.prototype,"draftEmojiUrl",null);
_.t([_.Wo({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Q7);
_.U(Q7,"yt-emoji-multi-person-selector",function(){if(xhq===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Ghq===void 0&&(Ghq=document.createElement("template"));var k=Ghq;c.call(g,k.content.cloneNode(!0),e.content.firstChild);xhq=e}e=xhq;return e},{mode:2});var f_s;var jQq;var UJ=function(){var e=_.z.apply(this,arguments)||this;e.tooltip_=null;return e};
_.Y(UJ,_.z);_.v=UJ.prototype;_.v.dataChanged_=function(){var e;if((e=this.data)==null?0:e.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.o1(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Bg)(this.tooltip_).textContent=this.data.tooltip};
_.v.computeTargetId=function(){var e;return((e=this.data)==null?void 0:e.targetId)||""};
_.v.computeId_=function(e){return e};
_.v.computeIcon_=function(e){return _.NY(e)};
_.v.onTap_=function(){this.active=!this.active;_.oC(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.v.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("active-changed",this.active))};
_.Bd.Object.defineProperties(UJ.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var e,g;if((e=this.data)==null?0:(g=e.icon)==null?0:g.iconType)return this.data.icon.iconType==="SUPER_STICKER";var c,k;return((c=this.data)==null?void 0:(k=c.icon)==null?void 0:k.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
UJ.prototype.activeChangedForBinding=UJ.prototype.activeChangedForBinding;UJ.prototype.dataChanged_=UJ.prototype.dataChanged_;_.t([_.m(_.b7.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],UJ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],UJ.prototype,"data",void 0);_.t([_.u({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.B("design:type",String)],UJ.prototype,"id",void 0);
_.t([_.u({computed:"computeTargetId(data.targetId)"}),_.B("design:type",String)],UJ.prototype,"targetId",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],UJ.prototype,"active",void 0);_.t([_.u({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.B("design:type",String)],UJ.prototype,"icon",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UJ.prototype,"dataChanged_",null);
_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],UJ.prototype,"iconFilled",null);_.t([_.OY("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UJ.prototype,"activeChangedForBinding",null);_.t([_.Wo({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],UJ);
_.U(UJ,"yt-emoji-picker-category-button-renderer",function(){if(jQq===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;f_s===void 0&&(f_s=document.createElement("template"));var k=f_s;c.call(g,k.content.cloneNode(!0),e.content.firstChild);jQq=e}e=jQq;return e},{mode:2});var iJn;var PGs;var o5=function(){var e=_.z.apply(this,arguments)||this;e.ariaLabel=null;e.ariaActivedescendant=null;e.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};e.JSC$14611_ignoreNextFocus_=!1;e.longPressTimeoutId=-1;return e};
_.Y(o5,_.z);_.v=o5.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.v.emojiChanged_=function(){this.changeFocus_(0,!1);for(var e=_.gL(),g=0;g<this.emoji.length;g++){var c={veType:88013,elementIndex:g},k=this.emoji[g];k.isCustomEmoji&&(k=document.querySelector(("#"+k.emojiId).replace("/","\\/")))&&(c=_.eU(e,c))&&(k.visualElement=c)}};
_.v.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.v.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.v.emojiSkinToneChanged_=function(e){this.skinTone=e};
_.v.dataChanged=function(){this.data&&this.data.emojiData&&X8I(this.emojiManager,this.data.emojiData)};
_.v.emojiUrl=function(e){e=this.getEmoji(e);if(!e)return"";var g;e=(g=e.image)==null?void 0:g.thumbnails;return _.F6(e,24)||""};
_.v.emojiAlt=function(e){var g=this.get("image.accessibility.accessibilityData.label",e);return g?g:e.isCustomEmoji?e.shortcuts[0]:e.emojiId};
_.v.emojiAriaLabel=function(e){return e.shortcuts?e.shortcuts[0]:""};
_.v.emojiAriaSelected=function(e,g,c){return e&&c==g?"true":"false"};
_.v.getEmoji=function(e){if(this.emojiManager)return this.shouldUseStickyPreferences?x0n(this.emojiManager,e):$3(this.emojiManager,e)};
_.v.computeId_=function(e){return e.categoryId||""};
_.v.computeEmoji=function(e){var g=this;return this.emojiManager?e.emojiIds?e.emojiIds.map(function(c){return c?_.Dr(g.emojiManager,c):null}).filter(kUq):e.emojiData?e.emojiData.map(function(c){var k=!!c.emojiId&&_.Dr(g.emojiManager,c.emojiId);
return k?Object.assign({},k,c):null}).filter(kUq):[]:[]};
_.v.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.v.computeAriaLabel_=function(e){return _.mp(e)};
_.v.computeAriaActivedescendant_=function(e,g){return e&&e[g]?e[g].emojiId||"":""};
_.v.handleLongPressEmojiWithVariants=function(e,g){this.changeFocusToEmoji(e.emojiId,!1);this.openVariantSelector(e,g)};
_.v.onMouseDown=function(e){var g=this;this.hostElement!==document.activeElement&&(this.JSC$14611_ignoreNextFocus_=!0);if(e.button===0){var c=_.A3(e);if(c instanceof HTMLImageElement){var k=_.o1(this.hostElement).querySelector("#repeat").itemForElement(c);this.emojiContainsVariants(k)&&(this.longPressTimeoutId=setTimeout(function(){g.handleLongPressEmojiWithVariants(k,c)},500))}}};
_.v.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.v.onFocus=function(){this.JSC$14611_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14611_ignoreNextFocus_=!1};
_.v.onBlur_=function(){this.showFocus=!1};
_.v.emojiContainsVariants=function(e){return!!(e&&e.variantIds&&e.variantIds.length)};
_.v.onClick=function(e){clearTimeout(this.longPressTimeoutId);e=_.A3(e);if(e instanceof HTMLImageElement){var g=e.id;this.changeFocusToEmoji(g,!1);var c=this.getEmoji(g),k;if(k=this.shouldUseStickyPreferences&&this.emojiContainsVariants(c)){var I;k=!((I=this.emojiManager.emojiMap[g])!=null&&I.stickyPrefId)}k?(I=_.o1(this.hostElement).querySelector("#repeat").itemForElement(e),this.openVariantSelector(I,e)):_.oC(this.hostElement,"yt-emoji-select",c)}};
_.v.isActiveEmojiWithVariants=function(e,g){return e&&g?g.stickyPrefId?e===g.stickyPrefId:e===g.emojiId:!1};
_.v.onCloseEmojiVariantSelector=function(e){this.activeEmojiWithVariantsId===e&&(this.activeEmojiWithVariantsId="")};
_.v.onMouseOver_=function(e){e=_.A3(e);e instanceof HTMLImageElement&&_.oC(this.hostElement,"yt-emoji-hover",_.Dr(this.emojiManager,e.id))};
_.v.changeFocus_=function(e,g){this.focusedIndex=(this.focusedIndex+e+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(e=this.emoji[this.focusedIndex],g&&(this.showFocus=!0,_.o1(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.oC(this.hostElement,"yt-emoji-hover",e)))};
_.v.changeFocusToEmoji=function(e,g){if(e){var c=this.emoji.findIndex(function(k){return k.emojiId===e});
c!==-1&&this.changeFocus_(c-this.focusedIndex,g)}};
_.v.onKeyDown_=function(e){switch(e.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var g=this.emoji[this.focusedIndex];if(g&&g.emojiId){if(this.emojiContainsVariants(g)){var c=_.o1(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(g,c)}else _.oC(this.hostElement,"yt-emoji-select",$3(this.emojiManager,g.emojiId)),this.hostElement.focus();e.preventDefault()}}break;case 40:this.changeFocus_(1,!0);e.preventDefault();break;case 38:this.changeFocus_(-1,!0),
e.preventDefault()}};
_.v.onEmojiStickyPreferenceChanged=function(e,g){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&e.emojiId&&e.variantIds&&e.variantIds.includes(g)&&this.activeEmojiWithVariantsId!==g&&this.setStickyEmojiPreference(e.emojiId,g)};
_.v.openVariantSelector=function(e,g){this.activeEmojiWithVariantsId=e.stickyPrefId||e.emojiId||"";_.oC(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:e,target:g})};
_.v.setStickyEmojiPreference=function(e,g){if(this.data){var c=this.emoji.findIndex(function(I){return I.emojiId===e});
if(c!==-1){var k=this.emoji[c];k.stickyPrefId=g;this.set("emoji."+c,Object.assign({},k));this.activeEmojiWithVariantsId=g}}};
o5.prototype.onKeyDown_=o5.prototype.onKeyDown_;o5.prototype.onMouseOver_=o5.prototype.onMouseOver_;o5.prototype.onClick=o5.prototype.onClick;o5.prototype.onBlur_=o5.prototype.onBlur_;o5.prototype.onFocus=o5.prototype.onFocus;o5.prototype.onMouseUp=o5.prototype.onMouseUp;o5.prototype.onMouseDown=o5.prototype.onMouseDown;o5.prototype.dataChanged=o5.prototype.dataChanged;o5.prototype.disableIncrementalLoadingChanged_=o5.prototype.disableIncrementalLoadingChanged_;o5.prototype.emojiManagerChanged_=o5.prototype.emojiManagerChanged_;
o5.prototype.emojiChanged_=o5.prototype.emojiChanged_;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],o5.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],o5.prototype,"data",void 0);_.t([_.u({computed:"computeId_(data)"}),_.B("design:type",String)],o5.prototype,"id",void 0);_.t([_.u({computed:"computeEmoji(data)"}),_.B("design:type",Array)],o5.prototype,"emoji",void 0);_.t([_.u(),_.B("design:type",Number)],o5.prototype,"skinTone",void 0);
_.t([_.u(),_.B("design:type",_.x3)],o5.prototype,"emojiManager",void 0);_.t([_.u(),_.B("design:type",Boolean)],o5.prototype,"disableIncrementalLoading",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],o5.prototype,"focusedIndex",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],o5.prototype,"showFocus",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.B("design:type",Object)],o5.prototype,"ariaLabel",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.B("design:type",Object)],o5.prototype,"ariaActivedescendant",void 0);_.t([_.u({value:60}),_.B("design:type",Number)],o5.prototype,"domRepeatTargetFramerate",void 0);_.t([_.u({value:1}),_.B("design:type",Number)],o5.prototype,"domRepeatInitialCount",void 0);_.t([_.u({value:""}),_.B("design:type",String)],o5.prototype,"activeEmojiWithVariantsId",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],o5.prototype,"shouldUseStickyPreferences",void 0);_.t([_.OY("emoji"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],o5.prototype,"emojiChanged_",null);_.t([_.OY("emojiManager"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],o5.prototype,"emojiManagerChanged_",null);
_.t([_.OY("disableIncrementalLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],o5.prototype,"disableIncrementalLoadingChanged_",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],o5.prototype,"dataChanged",null);_.t([_.Ks("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],o5.prototype,"onMouseDown",null);
_.t([_.Ks("mouseup"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],o5.prototype,"onMouseUp",null);_.t([_.Ks("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],o5.prototype,"onFocus",null);_.t([_.Ks("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],o5.prototype,"onBlur_",null);
_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],o5.prototype,"onClick",null);_.t([_.Ks("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],o5.prototype,"onMouseOver_",null);_.t([_.Ks("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],o5.prototype,"onKeyDown_",null);
_.t([_.Wo({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],o5);
_.U(o5,"yt-emoji-picker-category-renderer",function(){if(PGs===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;iJn===void 0&&(iJn=document.createElement("template"));var k=iJn;c.call(g,k.content.cloneNode(!0),e.content.firstChild);PGs=e}e=PGs;return e},{mode:2});var mhv;var pKZ;var TWI;var l_w;var Zr=function(){var e=_.z.apply(this,arguments)||this;e.ariaLabel=null;e.ariaActivedescendant=null;e.getFormattedStringRawText=_.mp;e.JSC$14617_ignoreNextFocus_=!1;return e};
_.Y(Zr,_.z);_.v=Zr.prototype;_.v.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.emojiUrl=function(e){var g,c;e=(g=$3(this.emojiManager,e,!0))==null?void 0:(c=g.image)==null?void 0:c.thumbnails;return _.F6(e,24)||""};
_.v.emojiAlt=function(e){var g=this.get("image.accessibility.accessibilityData.label",e);return g?g:e.isCustomEmoji?e.shortcuts[0]:e.emojiId};
_.v.emojiId=function(e){return"emoji"+e};
_.v.computeId_=function(e){return e.categoryId||""};
_.v.computeAriaActivedescendant_=function(e){return this.emoji&&e<this.emoji.length?this.emojiId(e):""};
_.v.emojiChanged_=function(){this.changeFocus_(0,!1);for(var e=_.gL(),g=0;g<this.emoji.length;g++){var c={veType:88013,elementIndex:g},k=this.emoji[g];k.isCustomEmoji&&(k=document.querySelector(("#"+k.emojiId).replace("/","\\/")))&&(c=_.eU(e,c))&&(k.visualElement=c)}};
_.v.computeEmoji_=function(e){var g=this;return this.emojiManager?e.emojiIds.map(function(c){return _.Dr(g.emojiManager,c,!0)}).filter(ImU):[]};
_.v.titleOffsetChanged_=function(){var e=this.hostElement.getBoundingClientRect(),g=_.o1(this.hostElement).querySelector("#title").getBoundingClientRect();e=Math.max(0,Math.min(this.titleOffset,e.height-g.height));_.o1(this.hostElement).querySelector("#title").style.top=e+"px"};
_.v.onEmojiMouseOver_=function(e){_.oC(this.hostElement,"yt-emoji-hover",e.model.item)};
_.v.onEmojiTap_=function(e){this.data.command&&(e=tGC(_.Ss().resolve(_.NN(FC)),this.data.command,e),_.oC(this.hostElement,"yt-navigate",e))};
_.v.emojiAriaLabel=function(e){return e.shortcuts[0]};
_.v.emojiAriaSelected=function(e,g,c){return e&&c==g?"true":"false"};
_.v.changeFocus_=function(e,g){var c=this.emoji.length;this.focusedIndex=(this.focusedIndex+e+c)%c;e=this.emoji[this.focusedIndex];if(g){var k;(k=_.o1(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||k.scrollIntoView(!1);_.oC(this.hostElement,"yt-emoji-hover",e)}};
_.v.onMouseDown_=function(){this.JSC$14617_ignoreNextFocus_=!0};
_.v.onFocus_=function(){this.JSC$14617_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14617_ignoreNextFocus_=!1};
_.v.onBlur_=function(){this.showFocus=!1};
_.v.onKeyDown_=function(e){switch(e.keyCode){case 13:this.onEmojiTap_(e);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);e.preventDefault();break;case 38:this.changeFocus_(-1,!0),e.preventDefault()}};
Zr.prototype.onKeyDown_=Zr.prototype.onKeyDown_;Zr.prototype.onBlur_=Zr.prototype.onBlur_;Zr.prototype.onFocus_=Zr.prototype.onFocus_;Zr.prototype.onMouseDown_=Zr.prototype.onMouseDown_;Zr.prototype.onEmojiTap_=Zr.prototype.onEmojiTap_;Zr.prototype.titleOffsetChanged_=Zr.prototype.titleOffsetChanged_;Zr.prototype.emojiChanged_=Zr.prototype.emojiChanged_;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Zr.prototype,"ytComponentBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],Zr.prototype,"data",void 0);_.t([_.u({computed:"computeId_(data)"}),_.B("design:type",String)],Zr.prototype,"id",void 0);_.t([_.u({computed:"computeEmoji_(data)"}),_.B("design:type",Array)],Zr.prototype,"emoji",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],Zr.prototype,"titleOffset",void 0);_.t([_.u({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.B("design:type",Object)],Zr.prototype,"ariaLabel",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.B("design:type",Object)],Zr.prototype,"ariaActivedescendant",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],Zr.prototype,"showFocus",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],Zr.prototype,"focusedIndex",void 0);_.t([_.u(),_.B("design:type",_.x3)],Zr.prototype,"emojiManager",void 0);
_.t([_.OY("emoji"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zr.prototype,"emojiChanged_",null);_.t([_.OY("titleOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zr.prototype,"titleOffsetChanged_",null);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Zr.prototype,"onEmojiTap_",null);
_.t([_.Ks("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zr.prototype,"onMouseDown_",null);_.t([_.Ks("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zr.prototype,"onFocus_",null);_.t([_.Ks("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zr.prototype,"onBlur_",null);
_.t([_.Ks("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Zr.prototype,"onKeyDown_",null);_.t([_.Wo({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Zr);
_.U(Zr,"yt-emoji-picker-upsell-category-renderer",function(){if(l_w===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;TWI===void 0&&(TWI=document.createElement("template"));var k=TWI;c.call(g,k.content.cloneNode(!0),e.content.firstChild);l_w=e}e=l_w;return e},{mode:2});var AQk;var sQY;var V7=function(){var e=_.z.apply(this,arguments)||this;e.scrollAction="lock";e.verticalAlign="top";return e};
_.Y(V7,_.z);_.v=V7.prototype;_.v.onClick=function(e){e=_.A3(e);e instanceof HTMLImageElement&&_.oC(this.hostElement,"yt-emoji-select",_.Dr(this.emojiManager,e.id))};
_.v.openSelector=function(){this.ironOverlayBehavior.open()};
_.v.onDomChange=function(){hyk(this.ytEmojiSelectorBehavior)};
_.v.computeIsFamilySelector=function(e){var g;return(e==null?void 0:(g=e.emoji)==null?void 0:g.emojiId)==="\ud83d\udc6a"};
_.v.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var e=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];e&&e.emojiId&&(_.oC(this.hostElement,"yt-emoji-select",_.Dr(this.emojiManager,e.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Bd.Object.defineProperties(V7.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var e=this,g,c,k;return this.emojiManager&&((g=this.data)==null?0:(c=g.emoji)==null?0:(k=c.variantIds)==null?0:k.length)?this.data.emoji.variantIds.map(function(I){return!!I&&_.Dr(e.emojiManager,I)}).filter(function(I){return!!I}):[]}}});
V7.prototype.onClick=V7.prototype.onClick;_.t([_.m(_.$L),_.B("design:type",Object)],V7.prototype,"ironOverlayBehavior",void 0);_.t([_.m(XKI),_.B("design:type",Object)],V7.prototype,"ytEmojiSelectorBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],V7.prototype,"data",void 0);_.t([_.u(),_.B("design:type",_.x3)],V7.prototype,"emojiManager",void 0);_.t([_.u(),_.B("design:type",Object)],V7.prototype,"scrollAction",void 0);_.t([_.u(),_.B("design:type",Object)],V7.prototype,"verticalAlign",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.B("design:type",Boolean)],V7.prototype,"isFamilySelector",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],V7.prototype,"emojiVariants",null);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],V7.prototype,"onClick",null);_.t([_.Wo({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],V7);
_.U(V7,"yt-emoji-variant-selector",function(){if(sQY===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;AQk===void 0&&(AQk=document.createElement("template"));var k=AQk;c.call(g,k.content.cloneNode(!0),e.content.firstChild);sQY=e}e=sQY;return e},{mode:2});var F9u=/:/g,uVZ=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],tg=function(){var e=_.z.apply(this,arguments)||this;e.emojiVariantSelector=null;e.emojiMultiPersonSelector=null;e.identity=_.uW;e.lastAnimationTime_=0;e.animationStart_=null;e.animationEnd_=null;return e};
_.Y(tg,_.z);_.v=tg.prototype;
_.v.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.v.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Y3)};
_.v.attached=function(){_.B2&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&GgY(this.emojiManager)};
_.v.dataChanged=function(){var e;if((e=this.data)==null?0:e.categories){e=this.emojiManager;var g=this.getCustomEmojiIds();e.pickerCustomEmojiIds=[].concat(_.KY(RaB),_.KY(g))}};
_.v.getCustomEmojiIds=function(){var e,g=(e=this.data.categories)==null?void 0:e.find(function(J){var q;return((q=J.emojiPickerCategoryRenderer)==null?void 0:q.categoryId)&&uVZ.includes(J.emojiPickerCategoryRenderer.categoryId)}),c;
e=(c=this.data.categories)==null?void 0:c.find(function(J){return J.emojiPickerUpsellCategoryRenderer});
var k,I;return[g==null?void 0:(k=g.emojiPickerCategoryRenderer)==null?void 0:k.emojiIds,e==null?void 0:(I=e.emojiPickerUpsellCategoryRenderer)==null?void 0:I.emojiIds].flat().filter(function(J){return!!J})};
_.v.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.v.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.v.updateCategoriesAndPlaceholderInternal=function(e,g){var c=this;e&&g&&(this.categories=e.categories||[],this.categoryButtons=e.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Y_(function(){c.updateButtons_()}))};
_.v.computeId_=function(e){return e.id||""};
_.v.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(e){return e.emojiPickerCategoryRenderer&&e.emojiPickerCategoryRenderer.emojiData}):!1};
_.v.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.v.onShowEmojiVariantSelector=function(e){var g=e.detail.emojiData;g.variantIds&&g.variantIds.length&&(g.multiSelectorThumbnailRow&&g.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:g,target:e.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:g,target:e.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.v.onIronOverlayClosed=function(e){var g=x0n(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");g&&e.composedPath&&(e.composedPath().includes(_.o1(this.hostElement).querySelector("#emoji-variant-selector"))||e.composedPath().includes(_.o1(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Z5(this.hostElement,"yt-close-emoji-variant-selector",[g.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.v.onEmojiVariantSelectorMouseup=function(e){var g=e.target.firstChild;this.variantSelectorOpened&&g&&_.Y_(function(){g.noCancelOnOutsideClick=!1},100)};
_.v.onEmojiVariantSelectorMousedown=function(e){e=e.target.firstChild;this.variantSelectorOpened&&e&&(e.noCancelOnOutsideClick=!1)};
_.v.onSelectCategory_=function(e){var g=this.search!="";this.search="";for(var c=_.o1(this.hostElement).querySelector("#categories").children,k=0;k<c.length;k++){var I=c[k];if(I.id==e.detail.categoryId){g?(_.o1(this.hostElement).querySelector("#categories").scrollTop=I.offsetTop,this.updateButtons_()):(this.animationStart_=_.o1(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=I.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.v.onEmojiHover_=function(e){this.placeholder=e.detail.shortcuts?e.detail.shortcuts[0]:""};
_.v.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.v.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.v.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.v.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.v.computeSearchCategory_=function(e){e=e.replace(F9u,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();e=e.split(" ");for(var g=[],c=this.emojiManager.emojis,k=0;k<c.length;k++){var I=c[k];if(I.searchTerms)for(var J=0;J<I.searchTerms.length;J++){for(var q=I.searchTerms[J].toLocaleLowerCase(),L=!1,n=0;n<e.length;n++)if(q.indexOf(e[n])!=-1){L=!0;break}if(L&&(!I.isCustomEmoji||!I.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(I.emojiId))){g.push(I.emojiId);
break}}}return{categoryId:-1,emojiIds:g}};
_.v.computeSearchEmptyMessage_=function(e,g){return e&&g&&g.emojiIds&&g.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.v.computeSearching_=function(e){return this.emojiManager&&e.replace(F9u,"").length>1};
_.v.computeSkinToneHidden=function(){var e;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((e=this.data)==null||!e.hideSkinTonePicker)};
_.v.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.v.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.v.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.v.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.v.selectSkinTone_=function(e){e=Number(e.target.getAttribute("tone"));this.set("emojiManager.skinTone",e);_.Z5(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[e]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.v.skinToneChanged_=function(){_.o1(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var e=_.o1(this.hostElement).querySelector("#dropdown-content").children,g=0;g<e.length;g++)g===this.skinTone?e[g].setAttribute("selected",""):e[g].removeAttribute("selected")};
_.v.animateScroll_=function(e){this.lastAnimationTime_||(this.lastAnimationTime_=e);e-=this.lastAnimationTime_;e<200?(_.o1(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*e/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.o1(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.v.searchChanged_=function(){this.updateButtons_()};
_.v.updateButtons_=function(){var e=null;if(!this.search)for(var g=_.o1(this.hostElement).querySelector("#categories").scrollTop,c=_.o1(this.hostElement).querySelector("#categories").children,k=0;k<c.length;k++){var I=c[k];I.offsetTop<=g&&(e=I.id)}g=_.o1(this.hostElement).querySelector("#category-buttons").children;for(c=0;c<g.length;c++)k=g[c],k.active=k.id===e};
tg.prototype.searchChanged_=tg.prototype.searchChanged_;tg.prototype.skinToneChanged_=tg.prototype.skinToneChanged_;tg.prototype.onEmojiHover_=tg.prototype.onEmojiHover_;tg.prototype.onSelectCategory_=tg.prototype.onSelectCategory_;tg.prototype.onShowEmojiVariantSelector=tg.prototype.onShowEmojiVariantSelector;tg.prototype.updateCategoriesAndPlaceholder_=tg.prototype.updateCategoriesAndPlaceholder_;tg.prototype.dataChanged=tg.prototype.dataChanged;
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],tg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],tg.prototype,"data",void 0);_.t([_.u({value:function(){return[]}}),
_.B("design:type",Array)],tg.prototype,"categories",void 0);_.t([_.u({value:function(){return[]}}),
_.B("design:type",Array)],tg.prototype,"categoryButtons",void 0);_.t([_.u({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.B("design:type",Boolean)],tg.prototype,"disableScroll",void 0);_.t([_.u({computed:"computeId_(data)",reflectToAttribute:!0}),_.B("design:type",String)],tg.prototype,"id",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],tg.prototype,"selected",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],tg.prototype,"disableIncrementalLoading",void 0);_.t([_.u(),_.B("design:type",String)],tg.prototype,"placeholder",void 0);_.t([_.u({value:""}),_.B("design:type",String)],tg.prototype,"search",void 0);_.t([_.u({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.B("design:type",Boolean)],tg.prototype,"searching",void 0);_.t([_.u({computed:"computeSearchCategory_(search)"}),_.B("design:type",Object)],tg.prototype,"searchCategory",void 0);
_.t([_.u({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.B("design:type",Object)],tg.prototype,"searchEmptyMessage",void 0);_.t([_.u({computed:"identity(emojiManager.skinTone)"}),_.B("design:type",Number)],tg.prototype,"skinTone",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],tg.prototype,"skinToneOpened",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],tg.prototype,"variantSelectorOpened",void 0);
_.t([_.u({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.B("design:type",Boolean)],tg.prototype,"skinToneHidden",void 0);_.t([_.u(),_.B("design:type",_.x3)],tg.prototype,"emojiManager",void 0);_.t([_.u(),_.B("design:type",Object)],tg.prototype,"emojiVariantSelector",void 0);_.t([_.u(),_.B("design:type",Object)],tg.prototype,"emojiMultiPersonSelector",void 0);
_.t([_.u({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.B("design:type",Boolean)],tg.prototype,"shouldUseStickyPreferences",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tg.prototype,"dataChanged",null);_.t([_.OY("data","selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tg.prototype,"updateCategoriesAndPlaceholder_",null);
_.t([_.Ks("yt-show-emoji-variant-selector"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],tg.prototype,"onShowEmojiVariantSelector",null);_.t([_.Ks("yt-emoji-picker-select-category"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],tg.prototype,"onSelectCategory_",null);_.t([_.Ks("yt-emoji-hover"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],tg.prototype,"onEmojiHover_",null);
_.t([_.OY("skinTone"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tg.prototype,"skinToneChanged_",null);_.t([_.OY("search"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tg.prototype,"searchChanged_",null);_.t([_.Wo({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],tg);
_.U(tg,"yt-emoji-picker-renderer",function(){if(pKZ===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;mhv===void 0&&(mhv=document.createElement("template"));var k=mhv;c.call(g,k.content.cloneNode(!0),e.content.firstChild);pKZ=e}e=pKZ;return e},{mode:2});var BF=function(){var e=_.z.apply(this,arguments)||this;e.emojiManager=_.Y3;e.isDarkTheme=document.documentElement.hasAttribute("dark");e.selectedIndex=1;e.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return e};
_.Y(BF,_.z);_.v=BF.prototype;_.v.handleEmojiCustomizationVisible=function(e){this.emojiPickerRenderer.selected=e;this.selectedIndex=1;e?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.v.emojiCustomizationSetChanged=function(){var e;(e=this.data)!=null&&e.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.OC(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.v.updateSaveButtonState=function(e){var g;(g=this.data)!=null&&g.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.cY("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:e}))};
_.v.emojiUrl=function(e){e=_.Dr(this.emojiManager,e);if(!e)return"";var g;e=(g=e.image)==null?void 0:g.thumbnails;return _.F6(e,24)||""};
_.v.emojiAlt=function(e){var g=_.Dr(this.emojiManager,e);if(!g)return e;var c,k,I,J=(g==null?void 0:(c=g.image)==null?void 0:(k=c.accessibility)==null?void 0:(I=k.accessibilityData)==null?void 0:I.label)||"";return J?J:g.isCustomEmoji?g.shortcuts[0]:g.emojiId||e};
_.v.emojiAriaLabel=function(e){var g,c;return((g=_.Dr(this.emojiManager,e))==null?void 0:(c=g.shortcuts)==null?void 0:c[0])||e};
_.v.onEmojiClick=function(e){e.model.index!==0&&(this.selectedIndex=e.model.index)};
_.v.onEmojiSelect=function(e){e=e.detail;var g,c;((g=this.data)==null?0:g.emojiCustomizationSetEntityKey)&&((c=this.emojiCustomizationSet)==null?0:c.emojiId)&&e.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,e.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.cY("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,e.emojiId,this.selectedIndex)}))};
_.v.canEditEmoji=function(e,g,c){e=e.indexOf(g);return e===c||e===0||c===0?!1:!0};
_.v.getUpdatedEmojiIdList=function(e,g,c){var k=e.indexOf(g);e=[].concat(_.KY(e));k>=0&&(e[k]=e[c]);e[c]=g;return e};
_.Bd.Object.defineProperties(BF,{template:{configurable:!0,enumerable:!0,get:function(){if(gc1===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;ey4===void 0&&(ey4=document.createElement("template"));var k=ey4;c.call(g,k.content.cloneNode(!0),e.content.firstChild);gc1=e}e=gc1;return e}}});
BF.prototype.onEmojiSelect=BF.prototype.onEmojiSelect;_.t([_.m(_.W$),_.B("design:type",Object)],BF.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],BF.prototype,"ytActionHandlerBehavior",void 0);_.t([_.Cs("yt-emoji-picker-renderer"),_.B("design:type",Object)],BF.prototype,"emojiPickerRenderer",void 0);
_.t([_.u({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(e,g){return _.Nc(e.entities,"emojiCustomizationSetEntity",g)},
observer:"emojiCustomizationSetChanged"}),_.B("design:type",Object)],BF.prototype,"emojiCustomizationSet",void 0);_.t([_.u(),_.B("design:type",Object)],BF.prototype,"originalEmojiSet",void 0);_.t([_.u(),_.B("design:type",_.x3)],BF.prototype,"emojiManager",void 0);_.t([_.u(),_.B("design:type",Object)],BF.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],BF.prototype,"isDarkTheme",void 0);_.t([_.u(),_.B("design:type",Object)],BF.prototype,"selectedIndex",void 0);
_.t([_.Ks("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],BF.prototype,"onEmojiSelect",null);_.t([_.Wo({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],BF);var dhw;var zyw;var HJw;var QQk;var Nw=function(){var e=_.z.apply(this,arguments)||this;e.authorBadges=[];return e};
_.Y(Nw,_.z);_.v=Nw.prototype;_.v.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.v.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.v.dataChanged=function(){var e=C_t(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",e)};
_.v.updateMessage=function(){var e=this.data.message,g=_.o1(_.o1(this.hostElement).querySelector("#message"));g.textContent="";e&&g.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(e))};
_.v.shouldSupportWholeItemClick=function(){return!0};
_.v.onShowOriginalClick=function(e){e.preventDefault();this.showOriginal=!0};
_.v.computeShowBar=function(e,g,c){return e&&g||c};
_.v.computeAuthorBadges=function(e){return e.authorBadges||[]};
_.v.computeAuthorIsOwner=function(e){return!!e4C(e.authorBadges,"owner")};
_.v.computeAuthorNameColor=function(e){var g;if(_.G("live_chat_author_name_color_usernames")&&(e==null?0:(g=e.authorName)==null?0:g.simpleText))return _.kY6(_.Il6(e.authorName.simpleText));if(_.G("live_chat_seed_color_usernames")&&(e==null?0:e.authorSeedColorArgb))return _.kY6(_.ts(e.authorSeedColorArgb));if(_.G("live_chat_colored_usernames"))return"#cc0000";var c;return _.G("live_chat_simple_color_usernames")&&(e==null?0:(c=e.authorName)==null?0:c.simpleText)&&(e==null?0:e.authorUsernameColorLight)&&
(e==null?0:e.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.ts(e.authorUsernameColorDark):_.ts(e.authorUsernameColorLight):""};
Nw.prototype.updateMessage=Nw.prototype.updateMessage;Nw.prototype.dataChanged=Nw.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],Nw.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Nw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Nw.prototype,"data",void 0);
_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Nw.prototype,"showOriginal",void 0);_.t([_.u({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Nw.prototype,"isDimmed",void 0);_.t([_.u({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Nw.prototype,"showBar",void 0);
_.t([_.u({computed:"computeAuthorBadges(data)"}),_.B("design:type",Array)],Nw.prototype,"authorBadges",void 0);_.t([_.u({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Nw.prototype,"authorIsOwner",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Nw.prototype,"inCollapsedBanner",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Nw.prototype,"inBanner",void 0);
_.t([_.u({value:_.G("live_chat_hide_avatars"),reflectToAttribute:!0}),_.B("design:type",Boolean)],Nw.prototype,"avatarHidden",void 0);_.t([_.u({computed:"computeAuthorNameColor(data)"}),_.B("design:type",String)],Nw.prototype,"authorNameColor",void 0);_.t([_.u(),_.B("design:type",_.mQ)],Nw.prototype,"participantsManager",void 0);_.t([_.u({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.B("design:type",Object)],Nw.prototype,"filledButtonOverrides",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nw.prototype,"dataChanged",null);_.t([_.OY("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nw.prototype,"updateMessage",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Nw);
_.U(Nw,"yt-live-chat-text-message-renderer",function(){if(QQk===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;HJw===void 0&&(HJw=document.createElement("template"));var k=HJw;c.call(g,k.content.cloneNode(!0),e.content.firstChild);QQk=e}e=QQk;return e},{mode:0});var Sq=function(){var e=_.z.apply(this,arguments)||this;e.tonalButtonOverrides={type:"tonal",style:"overlay"};return e};
_.Y(Sq,_.z);
Sq.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]]"}}}}}};
Sq.prototype.shouldSupportInlineActionButtons=function(){return!0};
Sq.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Bd.Object.defineProperties(Sq.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],Sq.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Sq.prototype,"data",void 0);_.t([_.u(),_.B("design:type",_.mQ)],Sq.prototype,"participantsManager",void 0);
_.t([_.u(),_.B("design:type",Object)],Sq.prototype,"tonalButtonOverrides",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.infoDialogButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],Sq.prototype,"hasInfoDialogButton",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Sq);
_.U(Sq,"yt-live-chat-auto-mod-message-renderer",function(){if(zyw===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;dhw===void 0&&(dhw=document.createElement("template"));var k=dhw;c.call(g,k.content.cloneNode(!0),e.content.firstChild);zyw=e}e=zyw;return e},{mode:0});var Uh4;var ocu;var ZJq;var V34=function(){return _.z.apply(this,arguments)||this};
_.Y(V34,_.z);_.t([_.u(),_.B("design:type",Object)],V34.prototype,"data",void 0);_.t([_.bF({is:"ytd-factoid-renderer",disableElementRegistration:!0})],V34);
_.U(V34,"ytd-factoid-renderer",function(){if(ZJq!==void 0)return ZJq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ZJq=e},{mode:1});var y7=function(){return _.z.apply(this,arguments)||this};
_.Y(y7,_.z);y7.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.t([_.u(),_.B("design:type",Object)],y7.prototype,"data",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],y7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],y7);
_.U(y7,"yt-live-chat-channel-activity-reputation-renderer",function(){if(ocu===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Uh4===void 0&&(Uh4=document.createElement("template"));var k=Uh4;c.call(g,k.content.cloneNode(!0),e.content.firstChild);ocu=e}e=ocu;return e},{mode:0});var t3n;var BW4;var K8=function(){return _.z.apply(this,arguments)||this};
_.Y(K8,_.z);K8.prototype.ready=function(){var e=document.querySelector("yt-live-chat-app");e&&e.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Boolean)],K8.prototype,"menuFocused",void 0);_.t([_.u(),_.B("design:type",Object)],K8.prototype,"data",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],K8.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],K8);
_.U(K8,"yt-live-chat-donation-announcement-renderer",function(){if(BW4===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;t3n===void 0&&(t3n=document.createElement("template"));var k=t3n;c.call(g,k.content.cloneNode(!0),e.content.firstChild);BW4=e}e=BW4;return e},{mode:0});var NWM;var SdZ,yQw=function(){if(SdZ!==void 0)return SdZ;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;NWM===void 0&&(NWM=document.createElement("template"));var k=NWM;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return SdZ=e};var OJ=function(){return _.z.apply(this,arguments)||this};
_.Y(OJ,_.z);_.Bd.Object.defineProperties(OJ,{template:{configurable:!0,enumerable:!0,get:function(){return yQw()}}});
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],OJ.prototype,"data",void 0);_.t([_.Wo({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],OJ);_.U(OJ,"yt-live-chat-empty-feed-view-model",function(){return yQw()},{mode:0});var K9Z;var OJI;var Mw=function(){return _.z.apply(this,arguments)||this};
_.Y(Mw,_.z);Mw.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"}}}}}};
_.Bd.Object.defineProperties(Mw.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var e,g;return{runs:[{text:(e=this.data)==null?void 0:(g=e.channelName)==null?void 0:g.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var e=[],g;if((g=this.data)==null||!g.channelBadges)return e;var c;g=_.w((c=this.data)==null?void 0:c.channelBadges);for(c=g.next();!c.done;c=g.next()){c=_.x(c.value,ZP4);var k=void 0,I=void 0;if((k=c)==null?0:(I=k.badgeImage)==null?0:I.sources)k=void 0,I={liveChatAuthorBadgeRenderer:{tooltip:c.tooltip,accessibility:{accessibilityData:{label:(k=_.x(c.rendererContext,_.Jh))==null?void 0:k.label}}}},c.badgeImage.sources[0].clientResource?I.liveChatAuthorBadgeRenderer.icon=
{iconType:c.badgeImage.sources[0].clientResource.imageName}:I.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:c.badgeImage.sources},e.push(I)}return e}}});
_.t([_.u(),_.B("design:type",Object)],Mw.prototype,"data",void 0);_.t([_.p("data.channelName"),_.B("design:type",Object),_.B("design:paramtypes",[])],Mw.prototype,"channelName",null);_.t([_.p("data.channelBadges"),_.B("design:type",Array),_.B("design:paramtypes",[])],Mw.prototype,"channelBadges",null);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Mw.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Mw);
_.U(Mw,"yt-live-chat-identity-view-model",function(){if(OJI===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;K9Z===void 0&&(K9Z=document.createElement("template"));var k=K9Z;c.call(g,k.content.cloneNode(!0),e.content.firstChild);OJI=e}e=OJI;return e},{mode:0});var M3s;var CGq;var eCu;var gOn;var C8=function(){var e=_.z.apply(this,arguments)||this;e.hidden=!1;e.supportsInlineActionButtons=!0;return e};
_.Y(C8,_.z);C8.prototype.ready=function(){var e;((e=document.querySelector("yt-live-chat-app"))==null?0:e.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
C8.prototype.dataChanged=function(e){var g=(0,_.Bg)(_.o1(this.hostElement).querySelector("#detail-text"));g.textContent="";(e==null?0:e.detailText)&&g.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(e.detailText))};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],C8.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u({observer:"dataChanged"}),_.B("design:type",Object)],C8.prototype,"data",void 0);
_.t([_.u({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.B("design:type",Object)],C8.prototype,"hidden",void 0);_.t([_.bF({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],C8);
_.U(C8,"yt-live-chat-legacy-paid-message-renderer",function(){if(gOn===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;eCu===void 0&&(eCu=document.createElement("template"));var k=eCu;c.call(g,k.content.cloneNode(!0),e.content.firstChild);gOn=e}e=gOn;return e},{mode:0});var cMw;var kUk;var Imq={},e_=function(){return _.gk.apply(this,arguments)||this};
_.Y(e_,_.gk);e_.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
e_.prototype.onLiveChatMembershipItemBehaviorClick=e_.prototype.onLiveChatMembershipItemBehaviorClick;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],e_.prototype,"data",void 0);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],e_.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.t([_.co()],e_);
Imq.YtLiveChatMembershipItemBehavior=[e_.prototype,_.K.YtRendererBehavior];var gO=function(){var e=_.z.apply(this,arguments)||this;e.supportsInlineActionButtons=!0;e.hasPrimaryHeaderText=!1;e.showOnlyHeader=!1;e.authorBadges=[];e.modern=_.G("web_button_rework_with_live");e.buttonOverrides={style:"overlay",type:"filled"};return e};
_.Y(gO,_.z);_.v=gO.prototype;_.v.shouldSupportInlineActionButtons=function(){return!0};
_.v.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.v.ready=function(){var e=document.querySelector("yt-live-chat-app");e&&e.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.v.messageChanged=function(){var e=this.data.message,g=(0,_.Bg)(_.o1(this.hostElement).querySelector("#message"));g.textContent="";e&&g.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(e))};
_.v.computeHasPrimaryHeaderText=function(e){return!(!e||!e.headerPrimaryText)};
_.v.computeShowOnlyHeader=function(e,g){return this.isMessageEmpty(e,g)};
_.v.computeAuthorBadges=function(e){return e.authorBadges||[]};
_.v.isMessageEmpty=function(e,g){return!e||e.empty?!0:!e.message&&!e.inputField&&!g};
_.v.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.v.getInputElement=function(){return _.o1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.v.inputFocus=function(){var e=this.getInputElement();e&&e.focus()};
_.v.inputInsertEmoji=function(e){var g=this.getInputElement();g&&g.insertEmoji(e)};
_.v.inputMessage=function(){var e=this.getInputElement();return e&&this.data.inputField?(e.completeEmojis(),_.GJ(e.liveChatRichMessageInput)):null};
_.v.onFooterButtonClick=function(){this.data.footerButton&&_.oC(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.v.shouldSupportWholeItemClick=function(){return!0};
gO.prototype.isDeletedChanged=gO.prototype.isDeletedChanged;gO.prototype.messageChanged=gO.prototype.messageChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],gO.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.m(Imq.YtLiveChatMembershipItemBehavior),_.B("design:type",Object)],gO.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],gO.prototype,"data",void 0);_.t([_.u({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gO.prototype,"hasPrimaryHeaderText",void 0);_.t([_.u({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.B("design:type",Object)],gO.prototype,"showOnlyHeader",void 0);
_.t([_.u({computed:"computeAuthorBadges(data)"}),_.B("design:type",Array)],gO.prototype,"authorBadges",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gO.prototype,"modern",void 0);_.t([_.OY("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gO.prototype,"messageChanged",null);_.t([_.OY("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gO.prototype,"isDeletedChanged",null);
_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],gO);
_.U(gO,"yt-live-chat-membership-item-renderer",function(){if(kUk===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;cMw===void 0&&(cMw=document.createElement("template"));var k=cMw;c.call(g,k.content.cloneNode(!0),e.content.firstChild);kUk=e}e=kUk;return e},{mode:0});var JMI;var vOI;var cv=function(){return _.z.apply(this,arguments)||this};
_.Y(cv,_.z);cv.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],cv.prototype,"data",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],cv);
_.U(cv,"yt-live-chat-mode-change-message-renderer",function(){if(vOI===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;JMI===void 0&&(JMI=document.createElement("template"));var k=JMI;c.call(g,k.content.cloneNode(!0),e.content.firstChild);vOI=e}e=vOI;return e},{mode:0});var w7Z;var qau;var ks=function(){return _.z.apply(this,arguments)||this};
_.Y(ks,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],ks.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ks.prototype,"data",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],ks);
_.U(ks,"yt-live-chat-moderation-message-renderer",function(){if(qau===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;w7Z===void 0&&(w7Z=document.createElement("template"));var k=w7Z;c.call(g,k.content.cloneNode(!0),e.content.firstChild);qau=e}e=qau;return e},{mode:0});var L_q;var rMw;var IG=function(){return _.z.apply(this,arguments)||this};
_.Y(IG,_.z);IG.prototype.onClick=function(){var e;if((e=this.data)!=null&&e.onClickCommand){var g;_.yJ.instance.resolveCommand((g=this.data)==null?void 0:g.onClickCommand)}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.W$),_.B("design:type",Object)],IG.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],IG.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],IG.prototype,"data",void 0);
_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],IG);
_.U(IG,"yt-live-chat-offer-click-count-message-renderer",function(){if(rMw===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;L_q===void 0&&(L_q=document.createElement("template"));var k=L_q;c.call(g,k.content.cloneNode(!0),e.content.firstChild);rMw=e}e=rMw;return e},{mode:0});var amZ;var nOY=function(){return _.z.apply(this,arguments)||this};
_.Y(nOY,_.z);_.t([_.u(),_.B("design:type",Object)],nOY.prototype,"data",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],nOY);
_.U(nOY,"yt-live-chat-placeholder-item-renderer",function(){if(amZ===void 0){var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);amZ=e}e=amZ;return e},{mode:0});var RCu;var EOM;var W_n=new im(7),Jz=function(){var e=_.z.apply(this,arguments)||this;e.data={};return e};
_.Y(Jz,_.z);Jz.prototype.dataChanged=function(){var e;((e=this.data)==null?0:e.class)&&_.Vg(this.hostElement,this.data.class,!0);var g;((g=this.oldData)==null?0:g.class)&&_.Vg(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Jz.prototype.computeTimestampString=function(e){return W_n.format(new Date(e/1E3))};
Jz.prototype.dataChanged=Jz.prototype.dataChanged;_.t([_.u(),_.B("design:type",Object)],Jz.prototype,"data",void 0);_.t([_.u({computed:"computeTimestampString(data.timestampUsec)"}),_.B("design:type",String)],Jz.prototype,"timestampString",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jz.prototype,"dataChanged",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Jz);
_.U(Jz,"yt-live-chat-server-error-message",function(){if(EOM===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;RCu===void 0&&(RCu=document.createElement("template"));var k=RCu;c.call(g,k.content.cloneNode(!0),e.content.firstChild);EOM=e}e=EOM;return e},{mode:0});var b9I;var hCs;var vv=function(){var e=_.z.apply(this,arguments)||this;e.defaultToFilledIcon=!1;return e};
_.Y(vv,_.z);vv.prototype.computeHasPrimaryColorIcon=function(e){return e==="SPARK"||e==="SPONSORSHIP_STAR"};
vv.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vv.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],vv.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],vv.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vv.prototype,"defaultToFilledIcon",void 0);_.t([_.u(),_.B("design:type",Object)],vv.prototype,"data",void 0);
_.t([_.u({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.B("design:type",Boolean)],vv.prototype,"hasPrimaryColorIcon",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],vv);
_.U(vv,"yt-live-chat-viewer-engagement-message-renderer",function(){if(hCs===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;b9I===void 0&&(b9I=document.createElement("template"));var k=b9I;c.call(g,k.content.cloneNode(!0),e.content.firstChild);hCs=e}e=hCs;return e},{mode:0});var X7B;var wO=function(){var e=_.z.apply(this,arguments)||this;e.modernUpdate=!1;e.buttonStyle="overlay";e.buttonType="filled";return e};
_.Y(wO,_.z);wO.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
wO.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wO.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],wO.prototype,"modernUpdate",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],wO.prototype,"buttonStyle",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],wO.prototype,"buttonType",void 0);
_.t([_.bF({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],wO);
_.U(wO,"ytd-ad-hover-text-button-renderer",function(){if(X7B!==void 0)return X7B;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return X7B=e},{mode:1});var GUw;var qT=function(){var e=_.z.apply(this,arguments)||this;e.buttonOverrides={size:"XS"};return e};
_.Y(qT,_.z);qT.prototype.onHelpTap=function(e){this.data&&this.data.informationDialog&&(_.oC(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),e.preventDefault(),e.stopPropagation())};
_.t([_.u(),_.B("design:type",Object)],qT.prototype,"buttonOverrides",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qT.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],qT);
_.U(qT,"ytd-live-chat-purchased-product-message-renderer",function(){if(GUw!==void 0)return GUw;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return GUw=e},{mode:1});var xCs;var DCM;var L3=function(){var e=_.z.apply(this,arguments)||this;e.isContainerDeleted=!1;return e};
_.Y(L3,_.z);L3.prototype.onContextMenuClick=function(e){this.ytLiveChatItemBehavior.showContextMenu(e)};
L3.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))};
L3.prototype.isContainerDeletedChanged=L3.prototype.isContainerDeletedChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],L3.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],L3.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],L3.prototype,"isContainerDeleted",void 0);
_.t([_.u(),_.B("design:type",String)],L3.prototype,"deletedStateMessage",void 0);_.t([_.OY("isContainerDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L3.prototype,"isContainerDeletedChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],L3);
_.U(L3,"ytd-sponsorships-live-chat-header-renderer",function(){if(DCM!==void 0)return DCM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return DCM=e},{mode:1});var rO=function(){var e=_.z.apply(this,arguments)||this;e.modern=_.G("web_button_rework_with_live");e.buttonOverrides={style:"overlay",type:"filled"};return e};
_.Y(rO,_.z);rO.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]]"}}}}}};
rO.prototype.onCtaButtonClick=function(){var e,g=_.x((e=this.data)==null?void 0:e.optInPrompt,_.G_);if(e=this.maybeGetButtonCommand(g)){var c;(c=_.gL())==null||c.clickCommand(e)}};
rO.prototype.maybeGetButtonCommand=function(e){return!e||!e.command||_.x(e.command,pvq)===void 0&&_.x(e.command,mTn)===void 0?null:e.command};
rO.prototype.shouldHideOptinPrompt=function(e,g){return!e||g};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],rO.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],rO.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],rO.prototype,"modern",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],rO);
_.U(rO,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(xCs!==void 0)return xCs;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return xCs=e},{mode:1});var $Ck;var aG=function(){return _.z.apply(this,arguments)||this};
_.Y(aG,_.z);aG.prototype.onContextMenuClick=function(e){this.ytLiveChatItemBehavior.showContextMenu(e)};
aG.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))};
aG.prototype.isDeletedChanged=aG.prototype.isDeletedChanged;_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],aG.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],aG.prototype,"data",void 0);_.t([_.OY("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aG.prototype,"isDeletedChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],aG);
_.U(aG,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if($Ck!==void 0)return $Ck;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="star_circle_ribbon" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return $Ck=e},{mode:1});var n3=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return e};
_.Y(n3,_.z);_.v=n3.prototype;
_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.v.handleLiveChatAction=function(e){_.x(e,rRk)?this.handleMarkChatItemAsDeletedAction(_.x(e,rRk)):_.x(e,LKu)&&this.handleRemoveChatItemAction(_.x(e,LKu))};
_.v.handleLiveChatActions=function(e){e.forEach(this.handleLiveChatAction,this)};
_.v.handleMarkChatItemAsDeletedAction=function(e){var g=this,c;((c=this.data)==null?0:c.items)&&this.data.items.forEach(function(k,I){var J=Object.keys(k)[0];Object.values(k)[0].id===e.targetItemId&&g.markAsDeleted("data.items",I,J,e.deletedStateMessage,e.showOriginalContentMessage)})};
_.v.handleRemoveChatItemAction=function(e){var g=this,c;((c=this.data)==null?0:c.items)&&this.data.items.forEach(function(k,I){Object.values(k)[0].id===e.targetItemId&&g.splice("data.items",I,1)})};
_.v.markAsDeleted=function(e,g,c,k,I){e=[e,g,c].join(".");this.set(e+".deletedStateMessage",k);this.set(e+".showOriginalContentMessage",I)};
_.t([_.u(),_.B("design:type",Object)],n3.prototype,"data",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],n3.prototype,"ytActionHandlerBehavior",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],n3);
_.U(n3,"yt-live-chat-item-display-list-renderer",function(){if(CGq===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;M3s===void 0&&(M3s=document.createElement("template"));var k=M3s;c.call(g,k.content.cloneNode(!0),e.content.firstChild);CGq=e}e=CGq;return e},{mode:0});var Yau;var fms,jJw=function(){if(fms!==void 0)return fms;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;Yau===void 0&&(Yau=document.createElement("template"));var k=Yau;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return fms=e};var RG=function(){var e=_.z.apply(this,arguments)||this;e.isHeader=!1;return e};
_.Y(RG,_.z);RG.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Bd.Object.defineProperties(RG,{template:{configurable:!0,enumerable:!0,get:function(){return jJw()}}});
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],RG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],RG.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],RG.prototype,"isHeader",void 0);_.t([_.Wo({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],RG);_.U(RG,"yt-live-chat-item-display-renderer",function(){return jJw()},{mode:0});var i9s,P9u,AMs,lmu;
i9s={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}};P9u={home:"eohps",search:"eosps",watch:"eowps"};_.mCq=["watch","search","home"];
_.Ec=function(){this.JSC$14728_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14728_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.uo("PRECONSTRUCTION_DELAY",0);this.signals_=_.iE();this.targetPage_=""};
_.Ec.prototype.init=function(e,g){e=e===void 0?"":e;g=g===void 0?null:g;if(this.JSC$14728_isInitialized_)this.abort();else if(this.JSC$14728_isInitialized_=!0,e&&_.p7I(this,e),g){var c=_.Pl(this.signals_,"pcl")?0:10,k=function(){for(var I=0,J;J=_.mCq[I++];)J!=e&&J!=g&&this.pendingPages_.push(J);_.T54(this)}.bind(this);
this.signals_.parkOrScheduleJob(k,c,"pcl")}};
_.Ec.prototype.abort=function(){this.fragmentJobId_&&(_.ft.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);lmu(this)};
_.p7I=function(e,g){e.JSC$14728_isInitialized_&&!e.targetPage_&&(e.targetPage_=g,AMs(e,g),e.isInitialPass_=!1,AMs(e,g),e.signals_.processSignal(P9u[e.targetPage_]),lmu(e),_.T54(e))};
_.T54=function(e){e.pendingPages_.length&&!e.pagePreparerJobId_&&(e.pagePreparerJobId_=_.h2(_.ft,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.p7I(this,this.pendingPages_.shift())}.bind(e),e.DEFAULT_DELAY_))};
AMs=function(e,g){if(g=i9s[g])for(var c in g){var k=!1,I=c;c.charAt(0)=="~"&&(k=!0,I=c.substring(1));var J=g[c];J=typeof J=="object"?J:{count:J};g[c]=J;J.componentName=I;J.count>0&&(e.isInitialPass_?k||e.isSeenDuringInitialPass_[I]||(e.JSC$14728_queue_.push({componentName:I,count:1,signals:J.signals}),e.isSeenDuringInitialPass_[I]=!0,J.count--):e.JSC$14728_queue_.push(J))}};
lmu=function(e){e.JSC$14728_queue_.length=0;e.targetPage_="";e.isInitialPass_=!0;e.signals_.processSignal("eop")};
_.Ec.getInstance=function(){return _.Q5(_.Ec)};var sJM=function(){this.signals=_.iE();this.init()};
sJM.prototype.startPreconstruction=function(){_.Ec.getInstance().init(_.dH("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
sJM.prototype.init=function(){F_u(this);window.Polymer&&O_Z&&O$U();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var e=_.kp.ytcsi;if(e&&e.gt&&(e=e.gt())&&e.tick&&(e.tick.aft>0||e.tick.pbs>0)&&(_.dH("IS_HOMEPAGE_COLD")||_.dH("IS_RESULTS_PAGE_COLD")||_.dH("IS_WATCH_PAGE_COLD"))){ujs(this);break a}hpe(SHU,this.onNotifications,this)}};
var F_u=function(e){var g=function(){e.signals.processSignal("dl")};
document.readyState==="complete"?(_.UI(Error("uh"),"WARNING"),g()):_.BLz(window,"load",g)};
sJM.prototype.onNotifications=function(e){e.timer||(_.dH("IS_HOMEPAGE_COLD")||_.dH("IS_RESULTS_PAGE_COLD")||_.dH("IS_WATCH_PAGE_COLD"))&&ujs(this)};
var ujs=function(e){e.signals.parkOrScheduleJob(function(){e.signals.processSignal("eocs")},10,"eor")};
new sJM;var dCn=function(){return _.gk.apply(this,arguments)||this};
_.Y(dCn,_.gk);_.Bd.Object.defineProperties(dCn.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.G("enable_entity_store_from_dependency_injection")?_.lF():_.Tt()}}});
_.t([_.co()],dCn);_.Wv=[qr.prototype,dCn.prototype];var zCv=["ytd-rich-shelf-renderer"],bU=function(){var e=_.gk.apply(this,arguments)||this;e._noAccessors=!0;e.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";e.followUpDialogPromise=null;e.followUpDialogPromiseResolve=null;e.followUpDialogPromiseReject=null;return e};
_.Y(bU,_.gk);_.v=bU.prototype;_.v.dismissibleItemIsDismissedChanged_=function(e){_.G("kevlar_fluid_dismiss")&&(e?_.oC(this.hostElement,"yt-dismissible-item-dismissed"):_.oC(this.hostElement,"yt-dismissible-item-undismissed"))};
_.v.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.v.dismissibleItemReset_=function(){var e=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 _.Il(function(g,c){e.followUpDialogPromiseResolve=g;e.followUpDialogPromiseReject=c});
_.oC(this.hostElement,"yt-enable-lockup-interaction")};
_.v.dismissibleItemOnYtServiceRequestSent_=function(e,g){g.actions&&this.dismissibleItemProcessActions(g.actions,e)};
_.v.dismissibleItemOnRequestSent=function(e){for(var g=_.w(e.detail),c=g.next();!c.done;c=g.next()){var k=void 0;(c=(k=_.x(c.value,_.K_))==null?void 0:k.actions)&&this.dismissibleItemProcessActions(c,e)}};
_.v.dismissibleItemOnCommandSent=function(e,g){g&&this.dismissibleItemProcessActions(g,e)};
_.v.setAndGetDismissedContentId=function(e){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+e};
_.v.replayDismissAction=function(e){this.dismissibleItemProcessActions([e])};
_.v.dismissibleItemProcessActions=function(e,g){for(var c=0;c<e.length;c++){var k=e[c],I=void 0;((I=_.x(k,_.SV))==null?0:I.commands)&&this.dismissibleItemProcessActions(_.x(k,_.SV).commands,g);if(_.x(k,_.CX)){if(I=_.x(k,_.CX),!I.replaceParentSection||zCv.includes(this.hostElement.nodeName.toLowerCase()))I.groupDismissal&&JMp(this,I.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(I),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.cY("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:k})),k=void 0,(k=g)==null||k.stopPropagation()}else if(_.x(k,gH1))this.dismissibleItemHandleHideEnclosingAction_(),k=void 0,(k=g)==null||k.stopPropagation();else if(_.x(k,mEv))k=_.x(k,mEv),I=void 0,((I=k)==null?0:I.targetGroupId)&&JMp(this,{targetGroupId:k.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.cY("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
k=void 0,(k=g)==null||k.stopPropagation();else if(_.x(k,_.K_))(k=_.x(k,_.K_).actions)&&_.Bm(this.hostElement,k,this.hostElement),k=void 0,(k=g)==null||k.stopPropagation();else{var J=I=void 0;((I=_.x(k,_.sf))==null?void 0:I.signal)!=="TELL_US_WHY"||((J=_.x(k,_.sf))==null?0:J.targetId)&&_.G("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),k=void 0,(k=g)==null||k.stopPropagation())}}};
_.v.dismissibleItemOnYtServiceRequestCompleted_=function(e,g){var c=this.get("feedbackResponses.0.followUpDialog",g.data);c?this.followUpDialogPromiseResolve(c):g.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(g.actions,e)};
_.v.dismissibleItemHandleReplaceEnclosingAction_=function(e){this.dismissedRenderer=e.item;this.isDismissed=!0;var g=null;(g=_.o1(this.hostElement).querySelector("#dismissed"))&&_.Va(this,function(){_.oF(g)});
_.oC(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.v.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.v.dismissibleItemHandleUndoFeedbackAction_=function(){_.oC(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.v.dismissibleItemHandleTellUsWhySignalAction_=function(){var e=this;this.followUpDialogPromise.then(function(g){e.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:g}})})};
bU.prototype.dismissibleItemOnYtServiceRequestCompleted_=bU.prototype.dismissibleItemOnYtServiceRequestCompleted_;bU.prototype.dismissibleItemOnCommandSent=bU.prototype.dismissibleItemOnCommandSent;bU.prototype.dismissibleItemOnRequestSent=bU.prototype.dismissibleItemOnRequestSent;bU.prototype.dismissibleItemOnYtServiceRequestSent_=bU.prototype.dismissibleItemOnYtServiceRequestSent_;bU.prototype.dismissibleItemDataChanged_=bU.prototype.dismissibleItemDataChanged_;
bU.prototype.dismissibleItemIsDismissedChanged_=bU.prototype.dismissibleItemIsDismissedChanged_;_.t([_.m(_.sJ),_.B("design:type",Object)],bU.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],bU.prototype,"ytdReduxBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],bU.prototype,"isDismissed",void 0);_.t([_.u(),_.B("design:type",Object)],bU.prototype,"dismissedRenderer",void 0);
_.t([_.OY("isDismissed"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],bU.prototype,"dismissibleItemIsDismissedChanged_",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bU.prototype,"dismissibleItemDataChanged_",null);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],bU.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.t([_.Ks("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],bU.prototype,"dismissibleItemOnRequestSent",null);
_.t([_.Ks("yt-dismissible-item-action"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Array]),_.B("design:returntype")],bU.prototype,"dismissibleItemOnCommandSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],bU.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.t([_.co()],bU);_.hz=[_.sJ,_.Wv,bU.prototype];var Xk=function(){var e=_.gk.apply(this,arguments)||this;e.disableGridStateAware=!1;e.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};e.currentGridClass="";return e};
_.Y(Xk,_.gk);Xk.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Va(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var e=this.gridStateAwareGetElement();_.Vg(e,"grid",!0)}};
Xk.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Xk.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.o1(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Xk.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var e="grid-disabled";else{e=_.Zy.getInstance();var g=this.get("pageSubtype");e=g&&ZEw.includes(g)?"grid-disabled":e.currentSnapState_?e.currentSnapState_.className:null}(g=this.gridStateAwareGetElement())&&e!==this.currentGridClass&&(e&&_.Vg(g,e,!0),this.currentGridClass&&_.Vg(g,this.currentGridClass,!1),this.currentGridClass=e)};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Xk.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",String)],Xk.prototype,"gridStateAwareSizingElementSelector",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Xk.prototype,"disableGridStateAware",void 0);_.t([_.co()],Xk);_.Gd=[Xk.prototype,_.Nr.YtActionHandlerBehavior];_.xs=new _.AU("GUIDE_TOKEN");var $s;_.DG={};$s=function(){var e=_.gk.apply(this,arguments)||this;e.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 e};
_.Y($s,_.gk);_.v=$s.prototype;_.v.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.v.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var e=_.Ss().resolve(_.NN(_.xs));e&&(this.guidePersistentAndVisible=e.getGuidePersistentAndVisible(),this.activeEndpoint=e.getActiveEndpoint(),this.guideOpened=e.getGuideOpened(),this.miniGuideVisible=e.getMiniGuideVisible())};
_.v.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.v.handleGuideStateAction=function(e){this.guidePersistentAndVisible=e};
_.v.handleMiniGuideStateAction=function(e){this.miniGuideVisible=e};
_.v.handleGuideOpenedAction=function(e){this.guideOpened=e};
_.v.handleActiveEndpointAction=function(e){this.activeEndpoint=e};
$s.prototype.onActiveEndpointChange=$s.prototype.onActiveEndpointChange;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],$s.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],$s.prototype,"guidePersistentAndVisible",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],$s.prototype,"miniGuideVisible",void 0);_.t([_.u(),_.B("design:type",Object)],$s.prototype,"activeEndpoint",void 0);
_.t([_.OY("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$s.prototype,"onActiveEndpointChange",null);_.t([_.u(),_.B("design:type",Boolean)],$s.prototype,"guideOpened",void 0);_.t([_.co()],$s);_.DG.YtdGuideStateAwareBehavior=[];_.DG.YtdGuideStateAwareBehavior.push($s.prototype,_.Nr.YtActionHandlerBehavior);var H9n=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Ys=function(){var e=_.gk.apply(this,arguments)||this;e.hoverJobId=0;e.JSC$14755_touched=!1;return e};
_.Y(Ys,_.gk);_.v=Ys.prototype;_.v.created=function(){this.useExpandableTooltip=!H9n.includes(this.is)};
_.v.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.v.detached=function(){this.useExpandableTooltip=!1};
_.v.lockupOnDown=function(e){this.interactionElement&&!_.TJ(_.lg(e),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.v.lockupOnUp=function(e){this.interactionElement&&!_.TJ(_.lg(e),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.v.onTouchStart=function(){this.JSC$14755_touched=!0};
_.v.lockupOnMouseEnter=function(){var e=this,g=_.MN("kevlar_lockup_hover_delay",-1);this.JSC$14755_touched&&g>=0?(_.ft.cancelJob(this.hoverJobId),this.hoverJobId=_.ft.addJob(function(){e.lockupIsHovered=!0},8,g),this.JSC$14755_touched=!1):this.lockupIsHovered=!0};
_.v.lockupOnMouseLeave=function(){this.hoverJobId&&(_.ft.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.v.lockupOnPopupClosed=function(e,g){var c;((c=g.popupRenderer)==null?void 0:c.is)==="ytd-menu-popup-renderer"&&(e=g.popupRenderer.veData,g=_.EM(),e&&g&&_.Ph(g,[e]))};
_.v.lockupOnLockupRequested=function(e){var g=e.detail.videoIds[0],c;e.detail&&g===((c=this.data)==null?void 0:c.videoId)&&(e.detail.returnValue=[this.data])};
_.v.lockupOnYtServiceRequestSent=function(e,g){if(e=g.actions)for(var c=0;c<e.length;c++){var k=e[c];if(k.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&g.ajaxPromise){var I=void 0,J=(I=_.x(g.endpoint,_.bp))==null?void 0:I.playlistId;I=void 0;k=(I=k.removedVideoId)!=null?I:"";EPn(_.po(),k,J)}else k.action==="ACTION_REMOVE_VIDEO"&&g.ajaxPromise&&(J=void 0,k=(J=k.setVideoId)!=null?J:"",_.WoM(_.po(),k))}};
_.v.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.v.lockupOnLockupEnabled=function(){if(!this.$){var e=_.Ss().resolve(_.A4).getCurrentPage(),g=this.getParentRenderer?this.getParentRenderer():void 0;_.mN(new _.E2("component not ready",this.is,this.isAttached,e==null?void 0:e.is,g==null?void 0:g.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Ys.prototype.lockupOnLockupEnabled=Ys.prototype.lockupOnLockupEnabled;Ys.prototype.lockupOnLockupDisabled=Ys.prototype.lockupOnLockupDisabled;Ys.prototype.lockupOnYtServiceRequestSent=Ys.prototype.lockupOnYtServiceRequestSent;Ys.prototype.lockupOnLockupRequested=Ys.prototype.lockupOnLockupRequested;Ys.prototype.lockupOnPopupClosed=Ys.prototype.lockupOnPopupClosed;Ys.prototype.lockupOnMouseLeave=Ys.prototype.lockupOnMouseLeave;Ys.prototype.lockupOnMouseEnter=Ys.prototype.lockupOnMouseEnter;
Ys.prototype.onTouchStart=Ys.prototype.onTouchStart;Ys.prototype.lockupOnUp=Ys.prototype.lockupOnUp;Ys.prototype.lockupOnDown=Ys.prototype.lockupOnDown;_.t([_.u(),_.B("design:type",Object)],Ys.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],Ys.prototype,"lockupIsHovered",void 0);_.t([_.u(),_.B("design:type",Boolean)],Ys.prototype,"lockupTouchTriggered",void 0);_.t([_.u(),_.B("design:type",Boolean)],Ys.prototype,"useExpandableTooltip",void 0);
_.t([_.Cs("#interaction"),_.B("design:type",Object)],Ys.prototype,"interactionElement",void 0);_.t([_.Ks("down"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ys.prototype,"lockupOnDown",null);_.t([_.Ks("up"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ys.prototype,"lockupOnUp",null);
_.t([_.Ks("touchstart"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ys.prototype,"onTouchStart",null);_.t([_.Ks("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ys.prototype,"lockupOnMouseEnter",null);_.t([_.Ks("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ys.prototype,"lockupOnMouseLeave",null);
_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Ys.prototype,"lockupOnPopupClosed",null);_.t([_.Ks("yt-lockup-requested"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ys.prototype,"lockupOnLockupRequested",null);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],Ys.prototype,"lockupOnYtServiceRequestSent",null);_.t([_.Ks("yt-disable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ys.prototype,"lockupOnLockupDisabled",null);
_.t([_.Ks("yt-enable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ys.prototype,"lockupOnLockupEnabled",null);_.t([_.co()],Ys);_.f3=[Ys.prototype];_.QJv={YtdReduxBehavior:[]};_.QJv.YtdReduxBehavior.push.apply(_.QJv.YtdReduxBehavior,_.Wv);var j_=function(){var e=_.gk.apply(this,arguments)||this;e._noAccessors=!0;e.disableNowPlaying=!1;e.disableTooltips=!1;e.useHoveredProperty=!1;e.hovered=!1;e.isThumbnailHovered_=!1;e.addBackground=_.G("kevlar_thumbnail_bg");e.nowPlaying=!1;e.disableRounding=!1;e.size="small";return e};
_.Y(j_,_.gk);_.v=j_.prototype;_.v.computeThumbnailOverlaySidePanelWidth_=function(e,g){return e-g};
_.v.computeSize=function(e,g){if(!this.disableRounding){if(!e&&!g)return"small";e=Math.max(e||0,g||0);return e>=256?"large":e>=96?"medium":"small"}};
_.v.computeFinalHoveredState_=function(e,g,c){return this.nowPlaying?!1:_.G("kevlar_thumbnail_fluid")&&e?g:c};
_.v.computeHoverOverlays_=function(e,g){return e&&g?g:void 0};
_.v.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.v.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.v.checkMiniplayer_=function(){var e;if(((e=this.data)==null?0:e.playlistSetVideoId)&&_.G("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{e=_.eM();var g=e.currentEndpoint;!this.disableNowPlaying&&g&&_.x(g,_.Pm)&&this.data?(g=_.x(g,_.Pm),this.nowPlaying=this.data.playlistId?g.playlistId===this.data.playlistId:g.videoId===this.data.videoId,this.isVideoPlaying=e==null?void 0:e.isVideoPlaying):this.nowPlaying=!1}};
j_.prototype.checkMiniplayer_=j_.prototype.checkMiniplayer_;j_.prototype.onMouseLeave_=j_.prototype.onMouseLeave_;j_.prototype.onMouseEnter_=j_.prototype.onMouseEnter_;j_.prototype.computeHoverOverlays_=j_.prototype.computeHoverOverlays_;j_.prototype.computeFinalHoveredState_=j_.prototype.computeFinalHoveredState_;j_.prototype.computeSize=j_.prototype.computeSize;j_.prototype.computeThumbnailOverlaySidePanelWidth_=j_.prototype.computeThumbnailOverlaySidePanelWidth_;
_.t([_.m(_.Wv),_.B("design:type",Object)],j_.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],j_.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Number)],j_.prototype,"height",void 0);_.t([_.u(),_.B("design:type",Boolean)],j_.prototype,"bottomSidePanel",void 0);_.t([_.u(),_.B("design:type",Number)],j_.prototype,"width",void 0);_.t([_.u(),_.B("design:type",Object)],j_.prototype,"disableNowPlaying",void 0);
_.t([_.u({selector:_.Eo}),_.B("design:type",Boolean)],j_.prototype,"miniplayerIsActive",void 0);_.t([_.u(),_.B("design:type",Object)],j_.prototype,"disableTooltips",void 0);_.t([_.u(),_.B("design:type",Object)],j_.prototype,"useHoveredProperty",void 0);_.t([_.u(),_.B("design:type",Object)],j_.prototype,"hovered",void 0);_.t([_.u(),_.B("design:type",Object)],j_.prototype,"isThumbnailHovered_",void 0);
_.t([_.u({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.B("design:type",Boolean)],j_.prototype,"finalHoveredState_",void 0);_.t([_.u({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.B("design:type",Number)],j_.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j_.prototype,"addBackground",void 0);
_.t([_.u({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.B("design:type",Object)],j_.prototype,"hoverOverlays_",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j_.prototype,"nowPlaying",void 0);_.t([_.u(),_.B("design:type",Boolean)],j_.prototype,"isVideoPlaying",void 0);_.t([_.u(),_.B("design:type",Object)],j_.prototype,"disableRounding",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.B("design:type",Object)],j_.prototype,"size",void 0);_.t([_.Ks("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j_.prototype,"onMouseEnter_",null);_.t([_.Ks("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j_.prototype,"onMouseLeave_",null);
_.t([_.OY("data","disableNowPlaying","miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j_.prototype,"checkMiniplayer_",null);_.t([_.co()],j_);var UC1=[j_.prototype];_.iU={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(e,g){return e+":"+_.KC(g)},
getPlayerListener_:function(e,g,c){e=this.getPlayerListenerKey_(e,g);g=this.playerListeners_.get(e);c&&this.playerListeners_.delete(e);return g},
savePlayerListener_:function(e,g){var c=g.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(e,g),c);return c},
listenToPlayerEvent:function(e,g,c){c=this.savePlayerListener_(g,c);e.addEventListener(g,c)},
listenToPlayerEvents:function(e,g){g.forEach(function(c,k){this.listenToPlayerEvent(e,k,c)}.bind(this))},
unlistenFromPlayerEvent:function(e,g,c){c=this.getPlayerListener_(g,c,!0);e.removeEventListener(g,c)},
unlistenFromPlayerEvents:function(e,g){g.forEach(function(c,k){this.unlistenFromPlayerEvent(e,k,c)}.bind(this))}}};
_.Pv=function(){};_.oOs=new _.AU("PLAYER_API_TOKEN");var L_U=!1,RCK,amV=!1,W_A;var zJ=function(e,g,c,k,I){_.Iy.call(this);var J=this;this.playerId=g;this.webPlayerContextConfig=k;this.kvM=I;this.pU4=!1;this.api={};this.dKl=this.dYh=null;this.e5y=new _.w1;this.o3={};this.uIm=this.zo4=this.elementId=this.gJx=this.config=null;this.h8h=!1;this.yd=this.g64=null;this.bH9={};this.xEb=["onReady"];this.lastError=null;this.v4D=NaN;this.upG={};this.mUj=0;this.kw=this.targetElement=e;_.yh(this,this.e5y);Z9B(this);c?this.mUj=setTimeout(function(){J.loadNewVideoConfig(c)},0):k&&(Vgq(this),
tgM(this))};
_.Y(zJ,_.Iy);zJ.prototype.getId=function(){return this.playerId};
zJ.prototype.loadNewVideoConfig=function(e){if(!this.isDisposed()){this.mUj&&(clearTimeout(this.mUj),this.mUj=0);var g=e||{};g instanceof DFs||(g=new DFs(g));this.config=g;this.setConfig(e);tgM(this);this.isReady()&&B5B(this)}};
var Vgq=function(e){var g;e.webPlayerContextConfig?g=e.webPlayerContextConfig.rootElementId:g=e.config.attrs.id;e.elementId=g||e.elementId;e.elementId==="video-player"&&(e.elementId=e.playerId,e.webPlayerContextConfig?e.webPlayerContextConfig.rootElementId=e.playerId:e.config.attrs.id=e.playerId);var c;((c=e.kw)==null?void 0:c.id)===e.elementId&&(e.elementId+="-player",e.webPlayerContextConfig?e.webPlayerContextConfig.rootElementId=e.elementId:e.config.attrs.id=e.elementId)};
zJ.prototype.setConfig=function(e){this.gJx=e;this.config=N5n(e);Vgq(this);if(!this.zo4){var g;this.zo4=SaY(this,((g=this.config.args)==null?void 0:g.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var c;if((c=this.config)==null?0:c.attrs)e=this.config.attrs,(g=e.width)&&this.kw&&(this.kw.style.width=P9(Number(g)||g,!0)),(e=e.height)&&this.kw&&(this.kw.style.height=P9(Number(e)||e,!0))};
zJ.prototype.getConfig=function(){return this.gJx};
var B5B=function(e){if(e.config&&e.config.loaded!==!0)if(e.config.loaded=!0,!e.config.args||e.config.args.autoplay!=="0"&&e.config.args.autoplay!==0&&e.config.args.autoplay!==!1){var g;e.api.loadVideoByPlayerVars((g=e.config.args)!=null?g:null)}else e.api.cueVideoByPlayerVars(e.config.args)},K_I=function(e){var g=!0,c=e.getPlayerElement();
c&&e.config&&(g=c.dataset.version===yMB(e));return g&&!!_.Q0("yt.player.Application.create")},tgM=function(e){if(!e.isDisposed()&&!e.h8h){var g=K_I(e);
if(g&&(e.getPlayerElement()?"html5":null)==="html5")e.uIm="html5",e.isReady()||O94(e);else if(MgY(e),e.uIm="html5",g&&e.yd&&e.targetElement)e.targetElement.appendChild(e.yd),O94(e);else{e.config&&(e.config.loaded=!0);var c=!1;e.g64=function(){c=!0;var k=C9s(e,"player_bootstrap_method")?_.Q0("yt.player.Application.createAlternate")||_.Q0("yt.player.Application.create"):_.Q0("yt.player.Application.create");var I=e.config?N5n(e.config):void 0;k&&k(e.targetElement,I,e.webPlayerContextConfig,e.kvM);O94(e)};
e.h8h=!0;g?e.g64():(_.D5(yMB(e),e.g64),(g=eJM(e))&&h2e(g||""),gwu(e)&&!c&&_.BQ("yt.player.Application.create",null))}}};
zJ.prototype.getPlayerElement=function(){var e=_.di(document,this.elementId);!e&&this.kw&&this.kw.querySelector&&(e=this.kw.querySelector("#"+this.elementId));return e};
var O94=function(e){if(!e.isDisposed()){var g=e.getPlayerElement(),c=!1;g&&g.getApiInterface&&g.getApiInterface()&&(c=!0);if(c){e.h8h=!1;if(!C9s(e,"html5_remove_not_servable_check_killswitch")){var k;if((g==null?0:g.isNotServable)&&e.config&&(g==null?0:g.isNotServable((k=e.config.args)==null?void 0:k.video_id)))return}cJw(e)}else e.v4D=setTimeout(function(){O94(e)},50)}},cJw=function(e){Z9B(e);
e.pU4=!0;var g=e.getPlayerElement();if(g){e.dYh=kQv(e,g,"addEventListener");e.dKl=kQv(e,g,"removeEventListener");var c=g.getApiInterface();c=c.concat(g.getInternalApiInterface());for(var k=e.api,I=0;I<c.length;I++){var J=c[I];k[J]||(k[J]=kQv(e,g,J))}}for(var q in e.o3)e.o3.hasOwnProperty(q)&&e.dYh&&e.dYh(q,e.o3[q]);B5B(e);e.zo4&&e.zo4(e.api);e.e5y.publish("onReady",e.api)},kQv=function(e,g,c){var k=g[c];
return function(){var I=_.Mb.apply(0,arguments);try{return e.lastError=null,k.apply(g,I)}catch(J){if(c!=="sendAbandonmentPing")throw J.params=c,e.lastError=J,I=new _.E2("PlayerProxy error in method call",{error:J,method:c,playerId:e.playerId}),I.level="WARNING",I;}}},Z9B=function(e){e.pU4=!1;
if(e.dKl)for(var g in e.o3)e.o3.hasOwnProperty(g)&&e.dKl(g,e.o3[g]);for(var c in e.upG)e.upG.hasOwnProperty(c)&&clearTimeout(Number(c));e.upG={};e.dYh=null;e.dKl=null;g=e.api;for(var k in g)g.hasOwnProperty(k)&&(g[k]=null);g.addEventListener=function(I,J){e.addEventListener(I,J)};
g.removeEventListener=function(I,J){e.removeEventListener(I,J)};
g.destroy=function(){e.dispose()};
g.getLastError=function(){return e.getLastError()};
g.getPlayerType=function(){return e.getPlayerType()};
g.getCurrentVideoConfig=function(){return e.getConfig()};
g.loadNewVideoConfig=function(I){e.loadNewVideoConfig(I)};
g.isReady=function(){return e.isReady()}};
zJ.prototype.isReady=function(){return this.pU4};
zJ.prototype.addEventListener=function(e,g){var c=this;this.isDisposed();var k=SaY(this,g);k&&(_.Hz(this.xEb,e)||this.o3[e]||(g=I84(this,e),this.dYh&&this.dYh(e,g)),this.e5y.subscribe(e,k),e==="onReady"&&this.isReady()&&setTimeout(function(){k(c.api)},0))};
zJ.prototype.removeEventListener=function(e,g){this.isDisposed()||(g=SaY(this,g))&&this.e5y.unsubscribe(e,g)};
var SaY=function(e,g){var c=g;if(typeof g==="string"){if(e.bH9[g])return e.bH9[g];c=function(){var k=_.Mb.apply(0,arguments),I=_.Q0(g);if(I)try{I.apply(_.kp,k)}catch(J){throw k=new _.E2("PlayerProxy error when executing callback",{error:J}),k.level="ERROR",k;}};
e.bH9[g]=c}return c?c:null},I84=function(e,g){var c=function(k){var I=function(){e.isDisposed();
if(!e.isDisposed())try{e.e5y.publish(g,k!=null?k:void 0)}catch(L){var q=new _.E2("PlayerProxy error when creating global callback",{error:L.message,event:g,playerId:e.playerId,data:k,originalStack:L.stack,componentStack:L.componentStack});q.level="WARNING";throw q;}};
if(C9s(e,"web_player_publish_events_immediately"))I();else{var J=setTimeout(function(){I();_.n0.remove(e.upG,String(J))},0);
_.n0.add(e.upG,String(J),!0)}};
return e.o3[g]=c};
zJ.prototype.getPlayerType=function(){return this.uIm||(this.getPlayerElement()?"html5":null)};
zJ.prototype.getLastError=function(){return this.lastError};
var MgY=function(e){e.cancel();Z9B(e);e.uIm=null;e.config&&(e.config.loaded=!1);var g=e.getPlayerElement();g&&(K_I(e)||!gwu(e)?e.yd=g:(g&&g.destroy&&g.destroy(),e.yd=null));e.targetElement&&_.Dg(e.targetElement)};
zJ.prototype.cancel=function(){this.g64&&_.dde(yMB(this),this.g64);clearTimeout(this.v4D);this.h8h=!1};
zJ.prototype.disposeInternal=function(){MgY(this);if(this.yd&&this.config&&this.yd.destroy)try{this.yd.destroy()}catch(g){var e=new _.E2("PlayerProxy error during disposal",{error:g});e.level="ERROR";throw e;}this.bH9=null;for(e in this.o3)this.o3.hasOwnProperty(e)&&delete this.o3[e];this.gJx=this.config=this.api=null;delete this.targetElement;delete this.kw;_.Iy.prototype.disposeInternal.call(this)};
var gwu=function(e){var g,c;e=(g=e.config)==null?void 0:(c=g.args)==null?void 0:c.fflags;return!!e&&e.indexOf("player_destroy_old_version=true")!==-1},yMB=function(e){return e.webPlayerContextConfig?e.webPlayerContextConfig.jsUrl:(e=e.config.assets)?e.js:""},eJM=function(e){return e.webPlayerContextConfig?e.webPlayerContextConfig.cssUrl:(e=e.config.assets)?e.css:""},C9s=function(e,g){if(e.webPlayerContextConfig)var c=e.webPlayerContextConfig.serializedExperimentFlags;
else{var k;if((k=e.config)==null?0:k.args)c=e.config.args.fflags}return(c||"").split("&").includes(g+"=true")},N5n=function(e){for(var g={},c=_.w(Object.keys(e)),k=c.next();!k.done;k=c.next()){k=k.value;
var I=e[k];g[k]=typeof I==="object"?_.n0.clone(I):I}return g};var xCW={},GUt="player_uid_"+(Math.random()*1E9>>>0);var m5=function(e,g,c,k,I,J){g=g===void 0?document.createElement("div"):g;this.webPlayerContextConfig=e;this.container=g;this.commandResolver=c;this.apiResolver=YaK();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.V8;k||J?JJw(this):vwY(this);this.pendingPlayerResponse=k;this.pendingWatchNextResponse=I;this.pendingPlayerVars=J;wSu(this)};
m5.prototype.loadVideoWithPlayerResponse=function(e,g,c){this.loadVideo(e,g,c)};
m5.prototype.loadVideoWithPlayerVars=function(e){return this.loadVideo(void 0,void 0,e)};
m5.prototype.destroy=function(e){if(e=_.di(document,e))e=GUt+"_"+_.KC(e),(e=xCW[e])&&e.dispose()};
var LTq=function(e,g){var c;_.r(function(k){if(k.nextAddress==1)return e.pendingWatchNextResponse=g,e.synchronousApi?(c=e.synchronousApi,k.jumpTo(2)):k.yield(e.api,3);k.nextAddress!=2&&(c=k.yieldResult);if(!qA1(e,c))return k.return();e.pendingWatchNextResponse&&(c.updateVideoData({raw_watch_next_response:e.pendingWatchNextResponse}),e.pendingWatchNextResponse=void 0);_.Uh(k)})},qA1=function(e,g){var c;
if(!(g==null?0:(c=g.isReady)==null?0:c.call(g))){var k;_.mN(new _.E2("playerApi is falsey",{synchronousApi:e.synchronousApi,apiResolved:e.apiResolver.resolved,playerApiUndefined:g===void 0,playerApiNull:g===null,playerApiReady:(g==null?void 0:(k=g.isReady)==null?void 0:k.call(g))===!0,playerApiMethods:g?Object.keys(g):[]}));return!1}return!0},rJq=function(e,g){if(typeof e[g]==="function")return e[g]()},a8I=function(e){var g=window,c,k=(c=g.ytplayer)==null?void 0:c.bootstrapPlayerContainer;
if((c=k==null?void 0:k.firstElementChild)&&_.Aa(c,"html5-video-player")){var I,J,q=(I=g.ytplayer)==null?void 0:(J=I.bootstrapWebPlayerContextConfig)==null?void 0:J.contextId;I=e.webPlayerContextConfig.contextId;if(q&&q===I){k!==e.container&&(k=!1,rJq(c,"getPlayerState")===2&&(k=!0),e.container.appendChild(c),k||rJq(c,"playVideo"));var L;if((L=g.ytplayer)==null?0:L.bootstrapPlayerResponse)e.bootstrapPlayerResponse=g.ytplayer.bootstrapPlayerResponse}}},wSu=function(e){var g,c,k,I,J;
_.r(function(q){if(q.nextAddress==1)return e.pageReadyOrDataAvailable?q.jumpTo(2):q.yield(e.pageReadyOrDataAvailableResolver.promise,2);if(q.nextAddress!=4)return!_.G("kevlar_player_unified_player_loading")||rMt()&&nO8()?q.jumpTo(4):q.yield(hCW(),4);a8I(e);if(e.pendingPlayerResponse||e.pendingPlayerVars)g=X7e(e.pendingPlayerResponse,e.pendingWatchNextResponse,e.pendingPlayerVars),e.pendingPlayerResponse&&e.pendingPlayerResponse===e.bootstrapPlayerResponse&&(g.loaded=!0),e.bootstrapPlayerResponse=
void 0;c=$Cq(e.container,g,e.webPlayerContextConfig);((k=g)==null?0:k.loaded)&&e.pendingWatchNextResponse?(LTq(e,e.pendingWatchNextResponse),e.pendingPlayerResponse=void 0,e.pendingPlayerVars=void 0):nwZ(e);I=function(L){c.removeEventListener("onReady",I);e.synchronousApi=L;e.apiResolver.resolve(L)};
c.addEventListener("onReady",I);e.commandResolver!==void 0&&(J=e.commandResolver,c.addEventListener("innertubeCommand",function(L){J(L)}));
_.Uh(q)})};
m5.prototype.loadVideo=function(e,g,c){var k=this,I,J,q,L,n,R,W,b,h;return _.r(function(X){if(X.nextAddress==1)return k.pendingPlayerResponse=e,k.pendingWatchNextResponse=g,k.pendingPlayerVars=c,JJw(k),k.synchronousApi?(I=k.synchronousApi,X.jumpTo(2)):X.yield(k.api,3);X.nextAddress!=2&&(I=X.yieldResult);if(!qA1(k,I))return X.return(new Promise(function(){}));
q=new Promise(function(D){J=D});
L=function(){var D=I.getPlayerResponse();D&&(I.removeEventListener("onVideoDataChange",L),J(D))};
I.addEventListener("onVideoDataChange",L);if(k.pendingPlayerResponse||k.pendingPlayerVars)k.pendingPlayerResponse&&k.pendingPlayerResponse===k.bootstrapPlayerResponse?(J(k.pendingPlayerResponse),k.pendingWatchNextResponse&&LTq(k,k.pendingWatchNextResponse)):(n=X7e(k.pendingPlayerResponse,k.pendingWatchNextResponse,k.pendingPlayerVars),(h=(R=k.pendingPlayerResponse)==null?void 0:(W=R.playerConfig)==null?void 0:(b=W.playbackStartConfig)==null?void 0:b.startPaused)?I.cueVideoByPlayerVars(n.args):I.loadVideoByPlayerVars(n.args)),
nwZ(k),k.bootstrapPlayerResponse=void 0;return X.return(q)})};
var vwY=function(e){if(document.readyState==="complete"||document.readyState==="interactive")JJw(e);else{var g=function(){document.removeEventListener("DOMContentLoaded",g);JJw(e)};
document.addEventListener("DOMContentLoaded",g)}},JJw=function(e){e.pageReadyOrDataAvailable=!0;
e.pageReadyOrDataAvailableResolver.resolve()},nwZ=function(e){e.pendingPlayerResponse=void 0;
e.pendingWatchNextResponse=void 0;e.pendingPlayerVars=void 0};
_.Bd.Object.defineProperties(m5.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var p3=function(e){ag.call(this,e===void 0?"document_active":e);var g=this;this.overridePriority=10;this.JSC$14788_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(c){g.transition("document_disposed",{event:c})});
window.addEventListener("beforeunload",function(c){g.transition("document_disposed_preventable",{event:c})});
window.addEventListener("unload",function(c){g.transition("document_disposed",{event:c});g.JSC$14788_hasRun=new Map})};
_.Y(p3,ag);
p3.prototype.runPreventableDispose=function(e,g){if(!this.JSC$14788_hasRun.get("document_disposed_preventable")){e(g==null?void 0:g.event);var c,k;if((g==null?0:(c=g.event)==null?0:c.defaultPrevented)||(g==null?0:(k=g.event)==null?0:k.returnValue)){g.event.returnValue||(g.event.returnValue=!0);g.event.defaultPrevented||g.event.preventDefault();this.JSC$14788_hasRun=new Map;this.transition("document_active");return}}this.JSC$14788_hasRun.set("document_disposed_preventable",!0);this.JSC$14788_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
p3.prototype.runDispose=function(e,g){this.JSC$14788_hasRun.get("document_disposed")?this.transition("document_active"):(e(g==null?void 0:g.event),this.JSC$14788_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
p3.prototype.runFlush=function(e,g){e(g==null?void 0:g.event);this.transition("document_active")};
p3.prototype.runActive=function(){};var Td=function(e){ag.call(this,e===void 0?"document_visibility_unknown":e);var g=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(c){document.visibilityState==="visible"?g.transition("document_visible",{event:c}):g.transition("document_hidden",
{event:c})});
_.G("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(c){g.transition("document_backgrounded",{event:c})}),window.addEventListener("focus",function(c){g.transition("document_foregrounded",{event:c})}))};
_.Y(Td,ag);Td.prototype.runVisible=function(e,g){e(g==null?void 0:g.event);_.G("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Td.prototype.runHidden=function(e,g){e(g==null?void 0:g.event);_.G("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Td.prototype.runBackgrounded=function(e,g){e(g==null?void 0:g.event)};
Td.prototype.runForegrounded=function(e,g){e(g==null?void 0:g.event)};var lU=function(){this.teardownLifecycle=new p3;this.visibilityLifecycle=new Td};
lU.prototype.install=function(){var e=_.Mb.apply(0,arguments),g=this;e.forEach(function(c){g.teardownLifecycle.install(c)});
e.forEach(function(c){g.visibilityLifecycle.install(c)})};var Az=function(){lU.call(this);var e={};this.install((e.document_disposed={callback:this.abortSlisAndFlush},e));_.G("combine_ve_grafts")&&(e={},this.install((e.document_disposed={callback:this.flushInteractionLoggingAttachVes},e)));e={};this.install((e.flush_logs={callback:this.logFinalPayload},e));_.G("web_log_cfg_cee_ks")||_.h2(_.ft,RJn)};
_.Y(Az,lU);var fmW=function(){Az.loggingInstance||(Az.loggingInstance=new Az);return Az.loggingInstance};
Az.prototype.logFinalPayload=function(){if(_.G("web_fp_via_jspb")){var e=new iU1,g=_.EM();g&&_.vH(e,1,g);g=_.G("jspb_sparse_encoded_pivot")?new bf([{}]):new bf;_.Fp(g,380,Pmu,e);ueA("finalPayload",g);_.G("web_fp_via_jspb_and_json")&&_.Y2("finalPayload",{csn:_.EM()})}else _.Y2("finalPayload",{csn:_.EM()})};
Az.prototype.abortSlisAndFlush=function(){IsZ(ip);PU!=null&&PU.flush()};
Az.prototype.flushInteractionLoggingAttachVes=function(){i6M(_.gL())};
var RJn=function(){var e=_.uo("CLIENT_EXPERIMENT_EVENTS");if(e){var g=rk6();e=_.w(e);for(var c=e.next();!c.done;c=e.next())c=c.value,g(c)&&_.Y2("genericClientExperimentEvent",{eventType:c});delete _.sI.CLIENT_EXPERIMENT_EVENTS}};var Ewq={};
Ewq.YtPlayerBehavior=[_.iU.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 e=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.V8;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;jJz(function(){e.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.mZ(this,"pan-down"),_.G("kevlar_pinch_fullscreen")&&_.Co().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.G("kevlar_pinch_fullscreen")&&_.Co().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(e,g,c){var k=this;HO(this.useUnifiedPlayer_());if(this.mainAppPlayer_)HO(!1,"MainAppPlayer already created.");else{var I=_.G("kevlar_player_container_query_killswitch")?this.$.container:_.o1(this.hostElement).querySelector("#container");this.mainAppPlayer_=new m5(this.getWebPlayerContextConfig_(),I,function(J){return _.KO(J,k.hostElement)},e,g,c);
this.mainAppPlayer_.api.then(function(J){k.player_=J;k.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&PCI.resolve(J)})}},
loadVideoWithPlayerResponse:function(e,g){var c=this;if(this.useUnifiedPlayer_()){var k=this.watchNextData,I,J=(I=e.videoDetails)==null?void 0:I.videoId,q,L,n;(I=(q=this.watchNextData)==null?void 0:(L=q.currentVideoEndpoint)==null?void 0:(n=L.watchEndpoint)==null?void 0:n.videoId)&&J!=I&&(k=void 0,_.G("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(e,k,g):this.createMainAppPlayer_(e,k,g);this.mainAppPlayer_.api.then(function(){_.oC(c.hostElement,
"yt-player-updated")})}else this.update(vOp(e,g))},
loadVideoWithPlayerVars:function(e){var g=this;this.useUnifiedPlayer_()?(_.G("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(e):this.createMainAppPlayer_(void 0,void 0,e),this.mainAppPlayer_.api.then(function(){_.oC(g.hostElement,"yt-player-updated")})):this.update({args:e})},
update:function(e){var g=this;if(this.useUnifiedPlayer_())HO(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(e);var c=BMz(e.args);c&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==c&&Object.assign(e.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(e).then(function(k){_.oC(g.hostElement,"yt-player-updated",_.G("kevlar_player_updated_obsolete_player_killswitch")?
k:void 0)})}_.Py(new _.E2("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(g.getPlayerPromise(),2);c=k.yieldResult;if(!c)throw Error("wh");e&&g.updatePlayerPlaylist_(e);_.Uh(k)})},
acquireApi_:function(e){var g=this;if(this.useUnifiedPlayer_())HO(!1,"Invalid method call in kevlar_unified_player.");else return _.ft.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(HO(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(c){g.shouldAutoplay_(e)?c.loadVideoByPlayerVars(e.args):c.cueVideoByPlayerVars(e.args)})):this.initPlayerPromise_=this.initPlayerContainer_(e),this.initPlayerPromise_},
initPlayerContainer_:function(e){var g=this;if(this.useUnifiedPlayer_())HO(!1,"Invalid method call in kevlar_unified_player.");else return HO(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.mN(Error("xh")),HO(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.G("kevlar_player_container_query_killswitch")?this.$.container:_.o1(this.hostElement).querySelector("#container"),hCW().then(function(){var c=g.initPlayer_(e);g.playerResolver_.resolve(c);
return c})},
onPlayerReady_:function(e,g){this.useUnifiedPlayer_()?HO(!1,"Invalid method call in kevlar_unified_player."):(e.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&PCI.resolve(e),g(e))},
maybeCallApiMethodOnElement_:function(e,g){if(typeof e[g]==="function")return e[g]()},
maybeAdoptBootstrapPlayer_:function(){var e=window,g,c=(g=e.ytplayer)==null?void 0:g.bootstrapPlayerContainer;if((g=c==null?void 0:c.firstElementChild)&&g.classList.contains("html5-video-player")){var k,I,J=(k=e.ytplayer)==null?void 0:(I=k.bootstrapWebPlayerContextConfig)==null?void 0:I.contextId;k=this.getWebPlayerContextConfig_().contextId;if(J&&J===k){c!==this.playerContainer_&&(c=!1,this.maybeCallApiMethodOnElement_(g,"getPlayerState")===2&&(c=!0),this.playerContainer_.appendChild(g),c||this.maybeCallApiMethodOnElement_(g,
"playVideo"));var q;if((q=e.ytplayer)==null?0:q.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=e.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(e){var g=this;if(this.useUnifiedPlayer_())HO(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(c){g.maybeAdoptBootstrapPlayer_();var k=e?w7V(e):void 0;k&&k==g.bootstrapPlayerResponse_&&(e.loaded=!0);k=g.playerContainer_;var I=g.getWebPlayerContextConfig_();k=$Cq(k,e,I);g.player_=k;g.onPlayerReadyEvent_=g.onPlayerReady_.bind(g,g.player_,c);g.player_.addEventListener("onReady",g.onPlayerReadyEvent_);g.player_.addEventListener("innertubeCommand",
g.onPlayerInnerTubeCommand_.bind(g))})},
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(e){e.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(e){e.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var e=_.Ss().resolve(_.A4).getCurrentPage();e&&e.getScrollTop()<=0?_.mZ(this,"pan-down"):_.mZ(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(e){e.isFullscreen()||e.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(e){e.isFullscreen()&&e.toggleFullscreen()})},
updatePlayerPlaylist_:function(e){var g=this,c,k,I;return _.r(function(J){if(J.nextAddress==1)return c=_.Ss().resolve(_.NN(_.fo)),k=!!(c&&c.playlistComponent&&c.playlistComponent.loopOn),J.yield(g.getPlayerPromise(),2);var q=I=J.yieldResult,L=q.updatePlaylist,n=[];if(_.G("kevlar_player_playlist_use_local_index")){var R,W;var b=(W=(R=e.localCurrentIndex)!=null?R:e.currentIndex)!=null?W:0}else{var h;b=(h=e.currentIndex)!=null?h:0}if(e.contents)for(R=0;R<e.contents.length;R++)if((W=e.contents[R])&&W.playlistPanelVideoRenderer)if(o96(W)){W=
W.playlistPanelVideoRenderer;h="";W.shortBylineText&&(h=_.mp(W.shortBylineText));var X="";W.title?X=_.mp(W.title):W.unplayableText&&(X=_.mp(W.unplayableText));n.push({author:h,title:X,encrypted_id:W.videoId})}else R<b&&--b;L.call(q,{index:b,list:e.playlistId?e.playlistId:"",loop:k,playlist_title:e.title,playlist_length:n.length,video:n,fetch:0,external_list:"1",title:e.title?e.title:"",playlist_author:e.ownerName?_.mp(e.ownerName):void 0});_.Uh(J)})},
focusOnPlayer:function(){_.Va(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var e=this.playerContainer_.querySelector(".html5-video-player");e&&(_.sc(_.Ss().resolve(_.et)),e.focus())}})},
preparePlayer:function(){var e=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(g){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")g();else{var c=function(){document.removeEventListener("DOMContentLoaded",c);g()};
document.addEventListener("DOMContentLoaded",c)}})).then(function(){return hCW()}).then(function(){e.initPlayerPromise_||e.preparePlayerJobId_||(e.preparePlayerJobId_=_.h2(_.ft,function(){e.initPlayerPromise_||(e.initPlayerPromise_=e.initPlayerContainer_())}))}):_.Py(new _.E2("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(e){this.useUnifiedPlayer_()?HO(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(e)||(e.args.autoplay="0")},
shouldAutoplay_:function(e){if(this.useUnifiedPlayer_())HO(!1,"Invalid method call in kevlar_unified_player.");else{var g=this.get("args.el",e);return g&&g!="detailpage"&&this.isMiniplayerActive_()||g&&(g=="sponsorshipsoffer"||g=="handlesclaiming")&&this.get("args.autoplay",e)=="0"?!1:(e=w7V(e))&&this.get("playerConfig.playbackStartConfig.startPaused",e)?!1:!0}},
isMiniplayerActive_:function(){return _.Ss().resolve(_.xt).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var e=this.getPlayer();if(e){var g=e.getPlayerState();_.G("kevlar_player_check_ad_state_on_stop")&&(g=e.getPlayerState(e.getPresentingPlayerType()));g!=5&&e.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(e,g,c){c=c===void 0?!1:c;var k=this,I,J,q,L;return _.r(function(n){if(n.nextAddress==1)return g||(g=k.hostElement),I=k.useUnifiedPlayer_()?!!k.mainAppPlayer_:!!k.initPlayerPromise_,I?n.yield(k.getPlayerPromise(),2):(c?e.insertBefore(g,e.firstChild):e.appendChild(g),n.return());J=n.yieldResult;q=J.getPlayerState(J.getPresentingPlayerType());L=!1;if(q==-1||q==1||q==3)L=!0;c?e.insertBefore(g,e.firstChild):e.appendChild(g);L&&J.playVideo();J.setSize(NaN,NaN);_.Uh(n)})},
watchNextDataChanged_:function(e){var g=this;e&&(this.useUnifiedPlayer_()&&_.G("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&LTq(this.mainAppPlayer_,e):this.getPlayerPromise().then(function(c){c.updateVideoData(g.computeWatchNextPlayerVars_(e))}))},
computeWatchNextPlayerVars_:function(e){if(this.useUnifiedPlayer_()&&_.G("kevlar_unified_player_update_watch_next_killswitch"))HO(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:e}},
maybeSendAbandonmentPing_:function(){var e=this.getPlayer();e&&e.getPlayerState()!=5&&e.getPlayerState()!=0&&e.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var e=_.uo("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(e=Object.assign({},e),e.rootElementId=this.playerId);e.serializedExperimentIds&&e.serializedExperimentFlags||_.mN(Error("yh"));return e},
hasWebPlayerContextConfig_:function(){return!!_.uo("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(e){this.useUnifiedPlayer_()?HO(!1,"Invalid method call in kevlar_unified_player."):_.KO(e,this.hostElement)},
useUnifiedPlayer_:function(){var e=_.G("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.G("kevlar_unified_player")||e}}];var WTM={};WTM.YtPlaylistPanelBehavior=[_.K.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(e){e=e.detail;if(e.actions.loop!=void 0||e.actions["yt-icons:loop"]!=void 0)this.loopOn=e.actions.loop||e.actions["yt-icons:loop"];if(e.actions.shuffle!=void 0||e.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=e.actions.shuffle||e.actions["yt-icons:shuffle"]},
setMenuData_:function(e){if(!e||!e.playlistButtons||e.isInfinite)return null;for(var g=e.playlistButtons.menuRenderer.topLevelButtons,c=g.length,k=0;k<c;k++)if(g[k].toggleButtonRenderer){var I=g[k].toggleButtonRenderer;I.defaultIcon.iconType=="LOOP"&&this.loopOn?I.isToggled=this.loopOn:I.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(I.isToggled=this.shuffleOn)}return e.playlistButtons}}];_.Fk={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(e,g,c){var k=this.getClickTarget_(g);if(k&&this.isClickAllowed_(k)){g.preventDefault();e=(0,_.n0.unsafeClone)(e);var I=this.getContainerBoundingRect();g=this.getRelativeClickXy_(g,I);this.expandEndpointUrlMacros_(e,{NX:g[0],NY:g[1],NB:k.code});c&&this.truncateWebCommendMetadataUrl_(e);_.oC(this.hostElement,"yt-navigate",{endpoint:e})}},
getClickTarget_:function(e){if(!this.clickTargetMap)return null;e=_.lg(e)||[];e=_.w(e);for(var g=e.next();!g.done;g=e.next()){g=g.value;if(g===_.o1(this.hostElement).querySelector("#menu"))break;if(g=this.clickTargetMap.get(g.id))return g}return null},
getRelativeClickXy_:function(e,g){var c=Math.round(e.detail.x-g.left);e=Math.round(e.detail.y-g.top);return c<0||e<0?[null,null]:[c,e]},
getContainerBoundingRect:function(){return _.o1(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(e,g){for(var c=_.w(e.loggingUrls||[]),k=c.next();!k.done;k=c.next())k=k.value,k.baseUrl&&(k.baseUrl=BD6(k.baseUrl,g));e.urlEndpoint&&e.urlEndpoint.url&&(e.urlEndpoint.url=BD6(e.urlEndpoint.url,g));e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.url&&(e.commandMetadata.webCommandMetadata.url=BD6(e.commandMetadata.webCommandMetadata.url,g))},
truncateWebCommendMetadataUrl_:function(e){if(e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.url){var g=e.commandMetadata.webCommandMetadata.url,c=g.indexOf("&pp=");if(c>0){var k=g.indexOf("&",c+1);e.commandMetadata.webCommandMetadata.url=k>c&&k<g.length?g.slice(0,c)+g.slice(k):g.slice(0,c)}}},
configureClickTargets:function(e,g,c){this.containerId=e;this.clickTargetMap=new Map;e=_.w(g);for(g=e.next();!g.done;g=e.next())if(g=g.value,g.location){var k=c.get(g.location);k&&(_.Vg(_.o1(this.hostElement).querySelector("#"+k),"yt-simple-endpoint",this.isClickAllowed_(g)),this.clickTargetMap.set(k,g))}},
isClickAllowed_:function(e){return e.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||e.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||e.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||e.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.uU={};
_.uU.YtLazyListBehavior=[_.TG.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 e=(this.constructor.generatedFrom||this).observers;e||(e=[]);e.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
e}},
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 e=this.renderElementsOutsideVisibleArea_;e&&(EMY(e,4),e.processSignal())},
deepLazyListObserver_:function(e){var g=this;if(e){var c=e.value||[];if(this.itemsPath==e.path){var k=this.nonDeferredItemCount;e=0;k>-1&&c.length>k&&(e=_.uo("REMAINING_DOVA_DEFERRED_CHUNKS",-1));e>0?(k>0&&(k=c.slice(0,k),this.setInitialItemsOnDataChanged(k)),(k=this.renderElementsOutsideVisibleArea_)?k.cancel():(k=this.renderElementsOutsideVisibleArea_=new _.AF(2,"eocs"),_.BLz(window,"scroll",function(){return g.renderDeferredElements()})),_.sO(k,function(){g.setInitialItemsOnDataChanged(c)}),_.Fq("REMAINING_DOVA_DEFERRED_CHUNKS",
e-1)):this.setInitialItemsOnDataChanged(c)}else if(this.itemsPath+".splices"==e.path)this.onItemsUpdated_(c);
else k="shownItems"+e.path.substr(this.itemsPath.length),this.useSignals&&k==="shownItems.length"||this.notifyPath(k,e.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(e){e&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(e),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(e){e=e.indexSplices;for(var g=0,c=e.length;g<c;g++){var k=e[g];if(k.index<this.shownCount&&(k.removed&&this.splice("shownItems",k.index,k.removed.length),k.addedCount)){var I=k.object.slice(k.index,k.index+k.addedCount);k=["shownItems",k.index,0];k.push.apply(k,I);this.splice.apply(this,k)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(e){this.cancelPendingTasks_();e||(e=[]);this.items_=e;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&&(_.dH("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Va(this,this.tryRenderChunk_)))},
fillRange_:function(e,g){this.canShowMore&&this.items_&&(e=this.items_.slice(e,g),e.unshift("shownItems"),this.push.apply(this,e),this.shownCount=g,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var e=this;this.canShowMore&&_.fO(this,"renderChunk",function(){e.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.dH("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.JC(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var e=this.renderElementsOutsideVisibleArea_;e&&(e.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var e=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(e-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=e;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(e){return Math.ceil(1E3/e)},
onCanShowMoreUpdated_:function(e){this.data&&this.items_!==null&&(e?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(e){!this.shouldUseTaskManager()&&this.data&&(!e&&this.canShowMore?(_.njt(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):e&&this.partiallyRenderedItems_.has(this.items_)&&(_.G("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Hv;_.dO={};
Hv=function(){var e=_.gk.apply(this,arguments)||this;e.atStart=!0;e.atEnd=!0;e.startIndex=0;e.endIndex=0;e.scrollCount=0;e.initialStartIndex=0;e.disableScrollEventListener=!1;e.useFloorScrolling=!1;e.isSearch=!1;e.dragging=!1;e.dragMouseStart=0;e.dragOffsetStart=0;e.disableWheelScroll=!1;e.centerListItems=!1;e.offset=0;e.minComponentWidth=0;e.marginWidthRight=0;e.marginWidthLeft=0;e.setButtonsStateRequested=!1;e.itemsVisibilityObserver=null;e.fullyVisibleItemsIndices=[];e.JSC$14817_onWheelScroll=function(g){if(e.isSearch&&
!e.disableWheelScroll&&_.G("desktop_enable_dmpanel_wheel_scroll")){var c=g.shiftKey?Math.abs(g.deltaY)>Math.abs(g.deltaX)?g.deltaY:g.deltaX:g.deltaX;c!==0&&(g.preventDefault(),e.ytLazyListBehavior.fillRemainingListItems(),e.offset+=c,zd(e),e.reposition_())}};
e.onPointerDown=function(g){bNu(e)&&(e.dragMouseStart=g.clientX,e.dragOffsetStart=e.offset,e.dragging=!0)};
e.onPointerMove=function(g){bNu(e)&&e.dragging&&(e.ytLazyListBehavior.fillRemainingListItems(),e.offset=e.dragOffsetStart-(g.clientX-e.dragMouseStart),zd(e),e.reposition_())};
e.onPointerUp=function(){bNu(e)&&(e.dragging=!1)};
return e};
_.Y(Hv,_.gk);var hJ1=function(e){var g=_.o1(e.hostElement).querySelector("#items").children;if(!g)return 0;var c=0;e=_.w(e.fullyVisibleItemsIndices);for(var k=e.next();!k.done;k=e.next())c+=g[k.value].clientWidth;return c},bNu=function(e){return e.isSearch&&_.G("desktop_enable_dmpanel_click_drag_scroll")};
Hv.prototype.created=function(){this.cachedViewportWidth=_.uo("initialInnerWidth")||window.innerWidth;this.JSC$14817_cachedViewportHeight=_.uo("initialInnerHeight")||window.innerHeight;_.uo("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Fq("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Hv.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.G("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();XSM(this)};
Hv.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.G("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var e;(e=this.itemsVisibilityObserver)==null||e.disconnect();this.itemsVisibilityObserver=null;var g;(g=this.itemsObserver)==null||g.disconnect()};
var XSM=function(e){var g=_.o1(e.hostElement).querySelector("#scroll-container");if(g){if(!e.itemsVisibilityObserver){var c=window.getComputedStyle(g).marginRight;e.itemsVisibilityObserver=new IntersectionObserver(function(k){GQq(e,k)},{root:g,
rootMargin:c,threshold:.98})}if(g=_.o1(e.hostElement).querySelector("#items"))e.itemsObserver=new eZ1(g,function(k){xXn(e,k)})}},xXn=function(e,g){DXI(e)&&(Array.from(g.addedNodes).filter(function(c){return c.nodeType===Node.ELEMENT_NODE}).forEach(function(c){e.itemsVisibilityObserver&&e.itemsVisibilityObserver.observe(c)}),Array.from(g.removedNodes).filter(function(c){return c.nodeType===Node.ELEMENT_NODE}).forEach(function(c){e.itemsVisibilityObserver&&e.itemsVisibilityObserver.unobserve(c)}))},
GQq=function(e,g){var c=new Set(e.fullyVisibleItemsIndices);
g=_.w(g);for(var k=g.next();!k.done;k=g.next()){k=k.value;var I=k.target.parentElement;I?(I=Array.from(I.children).indexOf(k.target),k.isIntersecting?c.add(I):c.has(I)&&c.delete(I)):_.mN(new _.E2("Parent element not found",k.target.nodeName))}e.fullyVisibleItemsIndices=Array.from(c).sort(function(J,q){return J-q});
c.size===0?_.mN(new _.E2("No visible entries in horizontal list")):(e.startIndex=e.fullyVisibleItemsIndices[0],e.endIndex=e.fullyVisibleItemsIndices[e.fullyVisibleItemsIndices.length-1])},DXI=function(e){e.data?e=(e=e.data)&&e.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===e.itemSizeConstraint:!1:e=!1;
return e};
_.v=Hv.prototype;_.v.addScrollEventListeners=function(){var e=_.o1(this.hostElement).querySelector("#scroll-container");e.style.touchAction="pan-y";e.addEventListener("wheel",this.JSC$14817_onWheelScroll);e.addEventListener("pointerdown",this.onPointerDown);e.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.v.removeScrollEventListeners=function(){var e=_.o1(this.hostElement).querySelector("#scroll-container");e.removeEventListener("wheel",this.JSC$14817_onWheelScroll);e.removeEventListener("pointerdown",this.onPointerDown);e.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.v.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Va(this,this.setStartIndex,[this.initialStartIndex])};
_.v.reposition_=function(){var e=_.uo("HTML_DIR")=="rtl"?"":"-",g=_.o1(this.hostElement).querySelector("#items");g&&(g.style.transform="translateX("+e+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.v.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Va(this,this.setButtonsState_))};
_.v.setButtonsState_=function(){this.setButtonsStateRequested=!1;var e=_.o1(this.hostElement).querySelector("#items").firstElementChild;if(e){this.minComponentWidth||(this.minComponentWidth=$Xw(this,e));e=_.o1(this.hostElement).querySelector("#scroll-container").clientWidth;var g=_.o1(this.hostElement).querySelector("#items");g=_.G("kevlar_horizontal_list_scroll_width_killswitch")?g.clientWidth:g.scrollWidth;var c=this.get(this.ytLazyListBehavior.itemsPath,this);if(c){var k=Math.round(e/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+k,c.length)-1)}this.ytLazyListBehavior.canShowMore?g+this.minComponentWidth>=this.offset+e&&(this.atEnd=!1):this.atEnd=this.offset+e>=g-20?!0:!1;this.atStart=this.offset<=20}};
_.v.setStartIndex=function(e){if(!this.minComponentWidth){var g=_.o1(this.hostElement).querySelector("#items").firstElementChild;if(!g)return;this.minComponentWidth=$Xw(this,g)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*e;zd(this);this.reposition_()};
_.v.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Bk();var e=_.o1(this.hostElement).querySelector("#scroll-container").clientWidth;_.G("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=$Xw(this,_.o1(this.hostElement).querySelector("#items").firstElementChild));e=this.useFloorScrolling?Math.floor(e/this.minComponentWidth)||1:Math.round(e/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&YAw(this);this.offset+=DXI(this)?
hJ1(this):e*this.minComponentWidth;zd(this);this.reposition_();this.scrollCount++};
_.v.prevClick_=function(){var e=_.o1(this.hostElement).querySelector("#scroll-container").clientWidth;e=this.useFloorScrolling?Math.floor(e/this.minComponentWidth)||1:Math.round(e/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=DXI(this)?hJ1(this):this.minComponentWidth*this.scrollCount-1):this.offset-=DXI(this)?hJ1(this):e*this.minComponentWidth;this.centerListItems&&YAw(this);zd(this);this.reposition_()};
_.v.onIronResize_=function(){this.resizeSupportEnabled&&_.Va(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.v.onItemsTransitionEnd_=function(e){_.A3(e)===_.o1(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.v.onChildElementFocus_=function(e){e=e.target.closest("#items > *");var g=_.o1(this.hostElement).querySelector("#scroll-container");if(g.contains(e)){if(_.G("web_horizontal_list_behavior_focus_killswitch"))if(e.offsetLeft<this.offset)this.offset=Math.abs(e.offsetLeft)<e.clientWidth?0:e.offsetLeft;else if(e.offsetLeft+e.clientWidth>this.offset+g.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Bk(),this.offset=e.offsetLeft+e.clientWidth-g.clientWidth;else return;else{var c=_.o1(this.hostElement).querySelector("#items"),
k=_.uo("HTML_DIR")==="rtl",I=k?c.clientWidth-e.offsetLeft:e.offsetLeft;c=k?c.clientWidth-(e.offsetLeft+e.clientWidth):e.offsetLeft+e.clientWidth;var J=k?I>this.offset+g.clientWidth:I<this.offset,q=k?c<this.offset:c>this.offset+g.clientWidth,L=k?J:q;if(k?q:J)g=k?c:I,this.offset=Math.abs(g)<e.clientWidth?0:g;else if(L)this.ytLazyListBehavior.fillRemainingListItems(),_.Bk(),this.offset=(k?I:c)-g.clientWidth;else return}zd(this);this.reposition_()}};
_.v.observeShownItems_=function(){this.reset()};
_.v.checkComponentWidthResize=function(){var e=_.o1(this.hostElement).querySelector("#items").firstElementChild;e&&(e=$Xw(this,e),this.centerListItems||e!==this.minComponentWidth)&&(this.minComponentWidth=e,this.offset=e*this.scrollCount,this.centerListItems&&YAw(this),zd(this),this.reposition_())};
var $Xw=function(e,g){var c=window.getComputedStyle(g).marginRight;c=Math.floor(Number(c.replace("px","")));var k=window.getComputedStyle(g).marginLeft;k=Math.floor(Number(k.replace("px","")));e.centerListItems&&!e.marginWidthRight&&(e.marginWidthRight=c,e.marginWidthLeft=k);return e.resizeSupportEnabled?g.getBoundingClientRect().width+c:g.offsetWidth+c},zd=function(e){var g=_.o1(e.hostElement).querySelector("#scroll-container").clientWidth,c=_.o1(e.hostElement).querySelector("#items").clientWidth;
e.offset<0?e.offset=0:e.offset+g>=c&&(e.offset=c-g)},YAw=function(e){e.offset-=(_.o1(e.hostElement).querySelector("#scroll-container").clientWidth+e.marginWidthRight-e.minComponentWidth)/2-e.marginWidthLeft};
_.Bd.Object.defineProperties(Hv.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var e=_.uo("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(e==-1)e=this.JSC$14817_cachedViewportHeight,e=e>1320?5:e>1020?4:e>730?3:e>430?2:1;else if(e==0)return 0;_.Fq("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",e-1);e=_.uo("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(e>-1)return e;e=this.cachedViewportWidth;e=e>1600?6:e>1400?5:e>1300?4:e>1090?5:e>870?4:e>660?3:2;_.Fq("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
e);return e},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.G("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Hv.prototype.observeShownItems_=Hv.prototype.observeShownItems_;Hv.prototype.onChildElementFocus_=Hv.prototype.onChildElementFocus_;Hv.prototype.onItemsTransitionEnd_=Hv.prototype.onItemsTransitionEnd_;Hv.prototype.onIronResize_=Hv.prototype.onIronResize_;Hv.prototype.prevClick_=Hv.prototype.prevClick_;Hv.prototype.nextClick_=Hv.prototype.nextClick_;Hv.prototype.setButtonsState_=Hv.prototype.setButtonsState_;Hv.prototype.requestButtonsStateUpdate_=Hv.prototype.requestButtonsStateUpdate_;
Hv.prototype.reposition_=Hv.prototype.reposition_;Hv.prototype.reset=Hv.prototype.reset;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.uU.YtLazyListBehavior),_.B("design:type",Object)],Hv.prototype,"ytLazyListBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hv.prototype,"atStart",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hv.prototype,"atEnd",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"startIndex",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"endIndex",void 0);_.t([_.u({value:6}),_.B("design:type",Number)],Hv.prototype,"initialCount",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"scrollCount",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"initialStartIndex",void 0);
_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"disableScrollEventListener",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"supportComponentResize",void 0);_.t([_.u({value:function(){var e=this;return function(){return e.prevClick_()}}}),
_.B("design:type",Function)],Hv.prototype,"boundPrevClick",void 0);_.t([_.u({value:function(){var e=this;return function(){return e.nextClick_()}}}),
_.B("design:type",Function)],Hv.prototype,"boundNextClick",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"useFloorScrolling",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"isSearch",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"dragging",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"dragMouseStart",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"dragOffsetStart",void 0);
_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"disableWheelScroll",void 0);_.t([_.u(),_.B("design:type",Object)],Hv.prototype,"centerListItems",void 0);_.t([_.Ks("iron-resize"),_.OY("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hv.prototype,"onIronResize_",null);_.t([_.Ks("transitionend"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Hv.prototype,"onItemsTransitionEnd_",null);
_.t([_.Ks("focusin"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Hv.prototype,"onChildElementFocus_",null);_.t([_.OY("shownItems"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hv.prototype,"observeShownItems_",null);_.t([_.co()],Hv);_.dO.YtdHorizontalListBehavior=[];_.dO.YtdHorizontalListBehavior.push(_.Jc,_.K.YtRendererBehavior,_.uU.YtLazyListBehavior,_.DG.YtdGuideStateAwareBehavior,Hv.prototype);var P9K=["APP_STATE","PI"];var Q3,Uc=function(e){this.hostElement=e},oG=function(e,g){if(g&&(lmK(g.viewableCommands)||lmK(g.endOfSessionCommands))){var c=sJg(g.viewableCommands);
g=sJg(g.endOfSessionCommands);if(!Q3){var k=_.MN("custom_active_view_tos_timeout_ms");Q3=k>0&&k!==36E5?new cyz(AMW(),k):new cyz(AMW())}ITC(Q3,e.hostElement);JyU(Q3,e.hostElement,c,g)}},ZG=function(e){Q3&&ITC(Q3,e.hostElement)};var f8n=_.Ti(["about:blank"]),jOk={pushState:window.history.pushState,replaceState:window.history.replaceState};var V3=function(e){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=e;this.internalPushState=e.pushState.bind(e);this.internalReplaceState=e.replaceState.bind(e)};
V3.prototype.init=function(){this.initialized=!0};
V3.prototype.pushState=function(e,g){this.initialized||this.init();this.internalPushState&&this.internalPushState(e,"",g)};
V3.prototype.replaceState=function(e,g){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(e,"",g)};
V3.prototype.getState=function(){return this.history&&this.history.state};var iNs=function(e){var g=function(){var c=e.apply(this,arguments)||this;c.boundHistoryPushState=!1;c.boundHistoryReplaceState=!1;c.debugInfo={};return c};
_.Y(g,e);g.prototype.init=function(){var c=_.C0("IFRAME");_.vA(c,_.jw(f8n));c.sandbox="allow-same-origin";c.style.display="none";this.iframe=c;document.body.appendChild(c);this.bindHistoryStateFunctions();e.prototype.init.call(this)};
g.prototype.bindHistoryStateFunctions=function(){var c=this,k=[],I;this.iframe&&((I=this.iframe.contentWindow)==null?0:I.history)&&(I=this.iframe.contentWindow.history)&&(k.push(I),Object.getPrototypeOf(I)&&k.push(Object.getPrototypeOf(I)));window.history&&k.push(window.history);I=window.history;Object.getPrototypeOf(I)&&k.push(Object.getPrototypeOf(I));k.push(jOk);I=function(q){for(var L=null,n=0;n<k.length;n++){var R=k[n][q];if(typeof R==="function"){L=R.bind(window.history);c.debugInfo[q]=n;break}}return L};
if(!this.boundHistoryReplaceState){var J=I("replaceState");J&&(this.internalReplaceState=J,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(I=I("pushState"))&&(this.internalPushState=I,this.boundHistoryPushState=!0)};
return g}(V3),PzB=function(){return iNs.call(this,window.history)||this};
_.Y(PzB,iNs);PzB.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var tz=function(e){this.browserHistory=e;this.initialized=!1};
tz.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
tz.prototype.pushState=function(e,g){this.initialized||this.init();this.browserHistory.pushState(e,g)};
tz.prototype.replaceState=function(e,g){this.initialized||this.init();this.browserHistory.replaceState(e,g)};
tz.prototype.handlePopstate=function(e){return e.state};_.mXq=function(e,g,c,k,I){this.endpoint=e;this.forward=g;this.historyEntry=c;this.JSC$31245_savedComponentState=k;this.legacyBorder=I===void 0?!1:I};var pSB=function(e,g){this.rootData=e;this.scrollTop=g};_.Bv=new _.AU("EPHEMERAL_STORE_TOKEN");_.NT=function(e){this.data=Object.assign({},e);var g;(g=this.data.innertubeResponse)==null||delete g.frameworkUpdates};
_.NT.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.yr)()};
_.NT.prototype.isProcessed=function(){return!!this.data.isProcessed};
_.om=function(e){return Object.assign({},e.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var T_n=function(){this.maxSize=100;this.timeToDataCache=new Map};
T_n.prototype.get=function(e){var g=this.timeToDataCache.get(e);g&&(this.timeToDataCache.delete(e),this.timeToDataCache.set(e,g));if(g&&g.rootData&&(_.G("web_use_response_store_for_history_cache")||_.G("mweb_use_new_history_manager"))){var c=_.Ss().resolve(_.Bv),k=l81(g),I=!!k;if(k){if(k.content){var J=S_(c,k.content);I&&J?g.rootData.response=_.om(J):I=!1}k.player&&(J=S_(c,k.player),I&&J?g.rootData.playerResponse=_.om(J):I=!1);k.reelSequence&&(c=S_(c,k.reelSequence),I&&c?g.rootData.reelWatchSequenceResponse=
_.om(c):I=!1)}I||(this.timeToDataCache.delete(e),g=void 0)}return g};
T_n.prototype.set=function(e,g){if(g.rootData&&(_.G("web_use_response_store_for_history_cache")||_.G("mweb_use_new_history_manager"))){var c=l81(g),k=Object.assign({},g.rootData);c&&(c.content&&g.rootData.response&&(AJk(this,c.content,g.rootData.response),k.response=null),c.player&&g.rootData.playerResponse&&(AJk(this,c.player,g.rootData.playerResponse),k.playerResponse=null),c.reelSequence&&g.rootData.reelWatchSequenceResponse&&(AJk(this,c.reelSequence,g.rootData.reelWatchSequenceResponse),k.reelWatchSequenceResponse=
null));g=new pSB(k,g.scrollTop)}this.timeToDataCache.has(e)?this.timeToDataCache.delete(e):this.timeToDataCache.size>=this.maxSize&&(c=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(c.value));this.maxSize!==0&&this.timeToDataCache.set(e,g)};
T_n.prototype.clear=function(){this.timeToDataCache.clear()};
var l81=function(e){var g=_.Ss().resolve(_.NN(_.rl)),c;if((c=e.rootData)==null?0:c.endpoint)return g==null?void 0:VKZ(g,e.rootData.endpoint);var k;_.mN(new _.E2("History snapshot response data does not contain endpoint",(k=e.rootData)==null?void 0:k.url));return null},AJk=function(e,g,c){if(e.maxSize>0){var k;
(e=(k=c.responseContext)==null?void 0:k.maxAgeSeconds)&&Number(e)>0&&(k=_.Ss().resolve(_.Bv),c=oH(c,e),k.put(g,new _.NT(c)))}};var sOY=function(e,g,c){this.endpoint=g;this.JSC$31251_savedComponentState=c===void 0?null:c;this.entryTime=e};var ujW=1;var y3=function(e){var g=function(){var c=e.apply(this,[].concat(_.KY(_.Mb.apply(0,arguments))))||this;c.historyEntryTime=0;c.historySnapshotCache=c.createHistoryCache();return c};
_.Y(g,e);g.prototype.createHistoryCache=function(){return new T_n};
g.prototype.saveAndReplace=function(c,k,I){var J=window.location.href;var q=q===void 0?{}:q;var L=(L=this.browserHistory.getState())&&L.entryTime?L.entryTime:dCA();c=this.createNewHistoryEntry(c,q,L);this.saveSnapshot(L,k,I);this.replaceState(c,J||window.location.href)};
g.prototype.saveAndPush=function(c,k,I,J,q){q=q===void 0?{}:q;this.saveSnapshot(this.historyEntryTime,I,J);I=this.historySnapshotCache;J=this.historyEntryTime;var L=I.timeToDataCache.keys();L=_.w(L);for(var n=L.next();!n.done;n=L.next())n=n.value,n>J&&I.timeToDataCache.delete(n);k=this.createNewHistoryEntry(k,q);this.pushState(k,c)};
g.prototype.saveSnapshot=function(c,k,I){this.historySnapshotCache.set(c,new pSB(k,I))};
g.prototype.createNewHistoryEntry=function(c,k,I){I=I===void 0?dCA():I;return new sOY(I,c,k)};
g.prototype.handlePopstate=function(c){var k=e.prototype.handlePopstate.call(this,c),I=null,J=null,q=!1,L=null;k&&k.entryTime&&(L=this.historySnapshotCache.get(k.entryTime)||null,q=k.entryTime>this.historyEntryTime,this.historyEntryTime=k.entryTime,I=k.endpoint,J=k.JSC$31251_savedComponentState);this.handleHistoryCacheLoad(new _.mXq(I,q,L,J),c);return k};
g.prototype.pushState=function(c,k){Number(c==null?void 0:c.entryTime)>=0&&(this.historyEntryTime=c.entryTime);e.prototype.pushState.call(this,c,k)};
g.prototype.replaceState=function(c,k){Number(c==null?void 0:c.entryTime)>=0&&(this.historyEntryTime=c.entryTime);e.prototype.replaceState.call(this,c,k)};
g.prototype.handleHistoryCacheLoad=function(){};
return g}(tz),FT1=function(){var e=y3.call(this,new PzB)||this;
e.dispatchElement=null;e.entryIndex=0;return e};
_.Y(FT1,y3);_.v=FT1.prototype;_.v.init=function(e){e=e===void 0?!0:e;y3.prototype.init.call(this);this.initialized||(e||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.v.handlePopstate=function(e){var g=null;e.state||(g="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return y3.prototype.handlePopstate.call(this,e);var c=new CustomEvent("yt-history-pop",{cancelable:!0});_.Z5(this.dispatchElement,"yt-history-pop",[c,{errorMsg:g}]);_.V1(this.dispatchElement,"yt-close-all-popups-action");if(!c.defaultPrevented){c=_.Ss().resolve(_.A4);g=c.getCurrentData();var k=c.getCurrentPage();c=0;k?(k=_.Z5(this.dispatchElement,"yt-get-page-offset",
[k]),k.length>0&&(c=k[0])):_.mN(new _.E2("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:g?g.page:"undefined"}));g&&(g.csn=_.EM());this.saveSnapshot(this.historyEntryTime,g,c)}return y3.prototype.handlePopstate.call(this,e)};
_.v.handleHistoryCacheLoad=function(e,g){e.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.w(_.V1(this.dispatchElement,"yt-history-will-navigate",[g])).next().value||_.Z5(this.dispatchElement,"yt-history-load",[g,e]))};
_.v.pushState=function(e,g){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var c=new _.E2("history.pushState is not a function",this.getDebugString());_.jW(c)}y3.prototype.pushState.call(this,e,g)};
_.v.replaceState=function(e,g){if(!this.browserHistory.boundHistoryReplaceState){var c=new _.E2("history.replaceState is not a function",this.getDebugString());_.jW(c)}y3.prototype.replaceState.call(this,e,g)};
_.v.saveAndPush=function(e,g,c,k,I){I=I===void 0?{}:I;c&&(c.csn=_.EM());y3.prototype.saveAndPush.call(this,e,g,c,k,I)};
_.v.getDebugString=function(){var e=[];this.initialized&&e.push("i");this.browserHistory.boundHistoryReplaceState&&e.push("bhr");this.browserHistory.boundHistoryPushState&&e.push("bhs");"replaceState"in this.browserHistory.debugInfo&&e.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&e.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&e.push("ei:"+String(this.entryIndex));return e.join(",")};
_.K3=function(e,g){e.init(!0);var c=e.browserHistory.getState();e.replaceState(c,U1(g))};
FT1.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Oc=new _.AU("DESKTOP_HISTORY_MANAGER_TOKEN");var uuq=[10,20,30,40,50,60],MT=function(){this.currentPartitionIndex=0},dXY=function(e){nYn({mainAppWeb:_.Pg(),
survivalSli:{partitionMinute:e,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},zJq=function(e){nYn({mainAppWeb:_.Pg(),
survivalSli:{partitionMinute:e,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},HNw=function(e){return e.currentPartitionIndex>=0&&e.currentPartitionIndex<uuq.length?uuq[e.currentPartitionIndex]:-1},QOs=function(e){return e.currentPartitionIndex>0&&e.currentPartitionIndex-1<uuq.length?uuq[e.currentPartitionIndex-1]:-1};
MT.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var e=QOs(this);e>0&&zJq(e);e=HNw(this);e>0&&dXY(e);UXw(this)}};
var UXw=function(e){var g=HNw(e);if(g>0){var c=QOs(e);c<0&&(c=0);e.intervalId=_.ft.addJob(function(){var k=QOs(e);k>0&&zJq(k);k=HNw(e);k>0&&dXY(k);UXw(e)},3,(g-c)*6E4);
e.currentPartitionIndex+=1}else e.currentPartitionIndex=-1};var ow4=function(e){vP.call(this,e,132);this.isDocument=e===document.documentElement};
_.Y(ow4,vP);ow4.prototype.calculateScrollDelta=function(e,g,c){var k=0;e<g?k=e<g-100?-48:-8:e>g+c&&(k=e>g+c+100?48:8);return k};
ow4.prototype.JSC$11712_onMouseMove=function(e){this.isDocument||(e.clientX=e.event_.pageX,e.clientY=e.event_.pageY);vP.prototype.JSC$11712_onMouseMove.call(this,e)};_.ZNu=function(e,g){var c=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14871_dragListGroup=null;this.onDraggerCreated=function(k){var I=k.JSC$11708_dragger;I.scrollTarget_=c.scrollElement;k=k.draggerEl;I&&k.menuOpened&&I.setEnabled(!1)};
this.onDragStart=function(k){var I=k.draggerEl;k=k.currDragItem;var J=Object.assign({},k==null?void 0:k.data);J.trackingParams=void 0;I.data=J;I.style.position="absolute";I.style.width=(k==null?void 0:k.clientWidth)+"px";I.style.zIndex="2030";I.onDrag&&I.onDrag();k=_.be(I);(J=k.querySelector("ytd-app"))?_.o1(J).appendChild(I):k.body.appendChild(I);c.dragScrollSupport=new ow4(c.scrollElement);c.dragScrollSupport.horizontalScrolling_=!1;I=c.dragScrollSupport;I.constrainScroll_=!!I.margin_&&!1};
this.onDrop=function(k){c.handleDrop(k);c.dragScrollSupport&&(_.Fm(c.dragScrollSupport),c.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(c.JSC$14871_dragListGroup){var k=c.JSC$14871_dragListGroup;RNq(k,k.currDragItem_)}};
this.handleDrop=g};
_.C3=function(e){e.JSC$14871_dragListGroup&&(_.a0(e.JSC$14871_dragListGroup,I3Z,e.onDragStart),_.a0(e.JSC$14871_dragListGroup,q1u,e.onDragStart),e.JSC$14871_dragListGroup.dispose(),e.JSC$14871_dragListGroup=null);e.dragScrollSupport&&(_.Fm(e.dragScrollSupport),e.dragScrollSupport=null);e.scrollElement.removeEventListener("scroll",e.onReorderableScroll)};
_.V8B=function(e,g,c,k){k=k===void 0?"":k;_.C3(e);c&&(e.scrollElement=c);e.JSC$14871_dragListGroup=new RT;e.JSC$14871_dragListGroup.hysteresisDistance_=2;r4I(e.JSC$14871_dragListGroup,g);e.JSC$14871_dragListGroup.draggerElClasses_=Wz("dragging").split(" ");k&&a3v(e.JSC$14871_dragListGroup,function(I){var J=I||document,q=null;J.getElementsByClassName?q=J.getElementsByClassName(k)[0]:q=H0k("*",k,I);return q||I});
_.iK(e.JSC$14871_dragListGroup,c4u,e.onDraggerCreated);_.iK(e.JSC$14871_dragListGroup,I3Z,e.onDragStart);_.iK(e.JSC$14871_dragListGroup,q1u,e.onDrop);e.JSC$14871_dragListGroup.init();e.scrollElement.addEventListener("scroll",e.onReorderableScroll,{passive:!0})};
_.Bd.Object.defineProperties(_.ZNu.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var t8M=function(){this.skipNextNavigation=!1},B_n=function(e,g,c){if(!g)return!1;
if(e.skipNextNavigation)return e.skipNextNavigation=!1;if(_.x(c,_.uf))return!1;var k,I,J;if((k=_.x(c,_.KU))==null?0:(I=k.browseEndpointContextSupportedConfigs)==null?0:(J=I.browseEndpointContextMainConfig)==null?0:J.skipConfirmation)return!1;var q;return((q=_.x(g.commandMetadata,_.OM))==null?void 0:q.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
t8M.prototype.showConfirmationDialog=function(e,g){this.navigateParams=g;this.customConfirmationCommand?_.Ss().resolve(_.xk).resolveCommand(this.customConfirmationCommand):(g={openPopupAction:{popup:{confirmDialogRenderer:{title:_.PL(_.C_("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.PL(_.C_("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.PL(_.C_("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.PL(_.C_("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.dF.getInstance().triggerAction("yt-open-popup-action",g,e))};
t8M.prototype.cancelPendingNavigation=function(){var e;((e=this.navigateParams)==null?void 0:e.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var N_M=function(){},yJB=function(e,g,c,k,I,J,q){c=c===void 0?{}:c;
q=q===void 0?{}:q;var L=_.Ss().resolve(_.rl),n,R=(n=_.x(g,_.uf))==null?void 0:n.url;return R?Td6(L,R,c,window.location.href,function(W,b){SAw(e,W,b,!1,!0,c,J,k)},function(){return!1}):Yt(L,g,c,window.location.href,MW(g),function(W,b){SAw(e,W,b,!1,!0,c,J,k)},I,q)},SAw=function(e,g,c,k,I,J,q,L){if(!e.JSC$14886_chunkHandler)if(c.page==="learning_journey_watch"&&_.G("web_enable_canvas_on_learning_journey")){var n=!_.x(L,_.KU);
I=I||k;if(n)if(I){if(_.G("kevlar_continue_playback_without_player_response")){var R;var W=(R=_.x(L,_.Pm))==null?void 0:R.videoId}k={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:k,previousVideoId:W},tempData:J}}else k={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else k={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};e.JSC$14886_chunkHandler=new u_1(_.FE,k,q,n,I)}else if(c.page==="watch"||c.page==="learning_journey_watch")if(I||k){if(_.G("kevlar_continue_playback_without_player_response")){var b;
n=(b=_.x(L,_.Pm))==null?void 0:b.videoId}e.JSC$14886_chunkHandler=new HE4(_.FE,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:k,previousVideoId:n},tempData:J},q)}else e.JSC$14886_chunkHandler=new sUB(_.FE);else c.page==="shorts"&&I&&!k?e.JSC$14886_chunkHandler=new zfk(_.FE,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:J},q):e.JSC$14886_chunkHandler=new Fos(q);e.JSC$14886_chunkHandler.processChunk({endpoint:g,data:c});return e.JSC$14886_chunkHandler.vg.promise},
KTq=function(e,g,c,k,I){(c=_.CYk(c))&&SAw(e,g,c,!1,!0,k,void 0,I)};_.ONu=new _.AU("NAVIGATION_SERVICE_TOKEN");var M8v=function(){this.pendingNavigationPromise=null};
_.v=M8v.prototype;_.v.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.v.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.v.addEventListener=function(){throw Error("zh");};
_.v.dispatchEvent=function(){throw Error("zh");};
_.v.removeEventListener=function(){throw Error("zh");};var Czw=new _.AU("APP_ROOT");var H9A=null;var eWv=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],eI=function(){_.jv.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];g$B(this)};
_.Y(eI,_.jv);eI.prototype.verifyUser=function(){var e=g$B(this),g=e.logout;if(!e.sessionChange)return!0;this.dispatchEvent("ytsessionchange");g&&this.dispatchEvent("ytuserinvalid");return!1};
var g$B=function(e){var g=eWv.map(function(I){var J;return(J=_.Lf.get(I))!=null?J:""}),c=g.some(function(I,J){return e.sessionCookies&&e.sessionCookies[J]!==""&&I===""}),k=g.some(function(I,J){return e.sessionCookies&&e.sessionCookies[J]!==I});
e.sessionCookies=g;return{logout:c,sessionChange:k}};
eI.prototype.clearTimeout=function(){this.scheduledJobId&&(_.ft.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var tgg=new _.AU("POSTMESSAGE_TUNNEL_TOKEN");var oOW=["/parent_tools","/file_download","/artist_roster"],Sa8=[$Ow,Yyq,fbv,iru,jRw,DOq,P1s,mO1];var gC=new _.AU("NAVIGATION_CONFIRMATION_SERVICE");var c1n="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /recap /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),k$q=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],cI=function(e,g){this.pendingNavigationPromise=null;this.JSC$14909_clientRoot=e;this.historyManager=g;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 N_M;this.debugString=e.is;e={"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};_.zm(_.dF.getInstance(),e,this.JSC$14909_clientRoot)},q0q,LlI,r1Z,a$q,w_Y;
_.Y(cI,M8v);cI.prototype.reload=function(){_.Gb(window.location.href)};
var cfn=function(e){e.currentEndpoint&&_.x(e.currentEndpoint,_.eh)?e.reload():e.currentEndpoint&&e.navigate(e.currentEndpoint,!0,void 0,{disableCache:!0})};
cI.prototype.navigate=function(e,g,c,k,I,J,q,L){g=g===void 0?!1:g;c=c===void 0?{}:c;k=k===void 0?{}:k;var n=_.Ss().resolve(gC),R;if(!q&&B_n(n,(R=this.currentEndpoint)!=null?R:void 0,e))return n.showConfirmationDialog(this.JSC$14909_clientRoot.parentElement,{endpoint:e,reload:g,params:c,tempData:k,requestType:I,createScreenConfig:J}),!1;var W=_.iE();_.Pl(W,"eocs")||W.parkOrScheduleJob(function(){W.processSignal("eocs")},10,"eor");
QJC();q=MW(e);n=k.autonav==="1";R=_.EM();eI.instance||(eI.instance=new eI);var b=eI.instance.verifyUser(),h;if(_.G("enable_dark_theme_only_on_shorts")){var X=document.documentElement.hasAttribute("dark"),D=_.Du(!0)==="USER_INTERFACE_THEME_DARK";if(q==="shorts"){if(!X)if(_.G("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var f;_.Gb((f=_.x(e==null?void 0:e.commandMetadata,_.OM))==null?void 0:f.url,void 0,void 0,window.top)}}else{var l;_.Gb(_.t_((l=_.x(e==
null?void 0:e.commandMetadata,_.OM))==null?void 0:l.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.G("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!X){var A;_.Gb(_.t_((A=_.x(e==null?void 0:e.commandMetadata,_.OM))==null?void 0:A.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(D!==X){var d;_.Gb(_.t_((d=_.x(e==null?void 0:e.commandMetadata,_.OM))==null?void 0:d.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(q==="watch"){if(I$v(_.Ss().resolve(_.xt),
e)&&(b||_.G("fix_miniplayer_navigation_killswitch")))return!1;_.G("block_all_player_prefetch_requests")||(h=erw(_.Q5(_.SM),e,n))}else{var S,V=(S=_.x(this.currentEndpoint,_.Pm))==null?void 0:S.videoId;V&&_.rB.getInstance().then(function(Fg){Fg&&Fg.set("yt-miniplayer-shown-video-id",V)})}h&&(c.frags=h.missingFragments_.join(","));
f=null;var Q;l=(Q=_.x(e==null?void 0:e.commandMetadata,_.OM))==null?void 0:Q.ignoreNavigation;if(!l)if(_.G("kevlar_command_url")){var y;f=(y=_.x(e==null?void 0:e.commandMetadata,_.OM))==null?void 0:y.url}else f=_.l9U(e,c);if(f&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&f==this.lastNavigationUrl)return _.nA({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.M1(xf(),"CANCELLED")}f&&(this.lastNavigationUrl=f);SNW();_.Fq("IS_HOMEPAGE_COLD",
!1);_.Fq("IS_RESULTS_PAGE_COLD",!1);_.Fq("IS_WATCH_PAGE_COLD",!1);e.loggingUrls&&e.loggingUrls.forEach(function(Fg){Fg.baseUrl&&_.uw(Fg.baseUrl)});
_.Mg8(e,J?J.layer:0)&&_.G("kevlar_flush_logs_on_away_navigation")&&_.fB();if(yMe(e))return!1;F8u(q,I);if(!f)return l||_.mN(new _.E2("Can't construct url for endpoint",e)),_.M1(xf(),"FAILURE"),!1;_.UCC();Q=e&&_.x(e,_.KU)&&_.x(e,_.KU).browseId.startsWith("UC");c=(y=_.G("enable_dark_theme_only_on_shorts")&&q==="shorts"?!1:_.$v()&&document.documentElement.hasAttribute("dark")!==_.xv())?{themeRefresh:1}:{};y&&!_.a$()&&_.Du()==="USER_INTERFACE_THEME_DARK"&&(c.theme="dark");Q=y||J1w(f)&&!Q&&!_.G("kevlar_disable_url_allowlist");
b||(Q=!0);if(Q||_.uo("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var O;var Jq=(O=window.top)==null?void 0:O.location.href}catch(Fg){var LC;Jq=(LC=Fg)==null?void 0:LC.message}_.mN(new _.E2("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Jq}))}e=_.G("kevlar_redirect_on_window_killswitch")?window.top:window;XZ(f);_.Gb(_.t_(f,c),void 0,void 0,e);_.M1(xf(),"ABORTED");return!1}_.G("kevlar_early_popup_close")&&_.Z5(this.JSC$14909_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14886_chunkHandler=void 0;var bW;Jq=MW((bW=this.currentEndpoint)!=null?bW:void 0);(bW=q==="shorts"&&Jq==="shorts")||_.MMV();_.HV(UGA)("nr",void 0);n&&_.nA({webInfo:{navigationReason:"an"}});e.clickTrackingParams&&(k.itct=e.clickTrackingParams,k.csn=R);Z7K(k);k.endpoint=JSON.stringify(e);_.G("enable_unknown_lact_fix_on_html5")&&(_.Ss().resolve(_.et),k.lact=_.S6());_.n0.isEmpty(k)||_.Ar(f,k);!_.G("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(J=Object.assign({},{layer:0},J,{parentLayer:3}));this.pendingNavigationPromise=J=yJB(this.pageFetcher,e,k,this.currentEndpoint,this.JSC$14909_isNetworkPromiseStale.bind(this),J,L);J=J.then(this.handleNavigateSuccess.bind(this,J,e,h,k),this.handleNavigateFail.bind(this,J,e));_.eM().navigationFinishPromise=J;g={endpoint:e,pageType:q,url:U1(f),reload:!!g,noProgressBar:bW};I&&(g.type=I);var RA;I=_.y8((RA=this.currentEndpoint)!=null?RA:null);RA=_.y8(e!=null?e:null);this.fireEvent("yt-navigate-start",
g);var Xg;(Xg=_.Ss().resolve(_.NN(_.ONu)))==null||Xg.publish("navigation-start",{sourcePageSubtype:I,destinationPageSubtype:RA});h&&KTq(this.pageFetcher,e,h,k,this.currentEndpoint);return!0};
cI.prototype.JSC$14909_isNetworkPromiseStale=function(e){return e!=this.pendingNavigationPromise};
var v$M=function(e,g,c,k,I){var J=MW(g);g={endpoint:g,pageType:J};I&&(g.errorMessage=I);_.mN(c);g.navigationDoneMs=_.Wh("nd");g.navigationErrorReason=k;e.fireEvent("yt-navigate-error",g)};
cI.prototype.handleNavigateFail=function(e,g,c){var k=void 0;c instanceof _.fL&&(k=c,pYz(c));if(this.JSC$14909_isNetworkPromiseStale(e))return _.q2(k);_.M1(xf(),"FAILURE");v$M(this,g,c,"101");return _.q2(c)};
cI.prototype.handleNavigateSuccess=function(e,g,c,k,I){if(this.JSC$14909_isNetworkPromiseStale(e))return _.No();this.pendingNavigationPromise=null;if(!I)return g=new _.E2("Missing data in response for navigation endpoint",g),_.q2(g);if(I.reload)return window.location.reload(!0),_.No();c&&(e={},_.n0.extend(e,_.CYk(c),I),I=e);var J,q;c=(J=I)==null?void 0:(q=J.timing)==null?void 0:q.responseStart;c!=null&&_.Wh("srt",c);_.Wh("pdc");var L,n;J=(L=I)==null?void 0:(n=L.timing)==null?void 0:n.info;J!=null&&
(L=_.HV(_.VMW)(J),_.nA(L));_.M1(xf(),"SUCCESS");w_Y(this,g,I,1,k);return _.No()};
var J1w=function(e){var g=e;_.G("kevlar_no_redirect_to_classic_2_ks")||(g=(new _.mt(e)).getPath());if(g==="/"||g==="/red")return!1;var c=!0;c1n.forEach(function(k){e.indexOf(k)===0&&(c=!1)});
k$q.forEach(function(k){var I=k.url;_.G(k.expFlag)&&e.indexOf(I)===0&&(c=!1)});
return c};
cI.prototype.publishPageData=function(e){this.fireEvent("yt-page-data-fetched",{pageData:e})};
q0q=function(e,g,c,k,I,J){var q=null;g.page!=="watch"&&g.page!=="learning_journey_watch"||k?g.filler||_.Z5(e.JSC$14909_clientRoot,"yt-stop-old-player",[g]):q=SAw(e.pageFetcher,I,g,c,!1,J,void 0,e.currentEndpoint);if(q)return q.then(e.publishPageData.bind(e,g));e.publishPageData(g);return _.No()};
LlI=function(e,g,c){var k=null;if(!c)return k=new _.E2("Empty data",e.debugString,g);var I=c.response;if(!I)return k;var J={endpointType:MW(g)||"unknown"};I.responseContext?(I=I.responseContext.errors)&&(k=new _.E2("Errors in response context",e.debugString,g,I,J)):k=I.error||I.errorMetadata?new _.E2("Errors in response",e.debugString,g,I.error,I.errorMetadata,J):new _.E2("responseContext missing",e.debugString,g,Object.keys(I).sort().join(","),J);var q,L,n,R;if(e=c==null?void 0:(q=c.response)==null?
void 0:(L=q.responseContext)==null?void 0:(n=L.webResponseContextExtensionData)==null?void 0:(R=n.webResponseContextDebugData)==null?void 0:R.debugErrorMessages)for(q=0;q<e.length;q++);return k};
r1Z=function(e){var g,c,k,I;return e==null?void 0:(g=e.response)==null?void 0:(c=g.responseContext)==null?void 0:(k=c.errors)==null?void 0:(I=k.error)==null?void 0:I["0"]};
a$q=function(e,g){var c;if(c=g.url&&!g.url.startsWith("/clip"))c=g.url,c=!_.G("webfe_parse_debug_param_in_resolveurl_service")&&e.searchDebugUrlMatcher.test(c)||Ucq(c)?!0:!1;if(c)Ucq(g.url)&&_.V0(window.location.href).themeRefresh?(g=_.gN(g.url,"themeRefresh"),_.K3(e.historyManager,g)):g.url&&!F_K(g.url)&&_.K3(e.historyManager,g.url);else if(g.endpoint){var k,I,J;(c=(k=g.endpoint)==null?void 0:(I=k.commandMetadata)==null?void 0:(J=I.webCommandMetadata)==null?void 0:J.url)&&!F_K(c)&&_.K3(e.historyManager,
c);c&&g.url&&c!=g.url&&!g.url.match("playnext=1")&&new _.E2("Response url mismatch in response data",e.debugString,c,g.url)}};
_.n$Y=function(e,g,c,k,I,J,q,L){J=J===void 0?!1:J;var n=_.Ss().resolve(gC),R;if(!L&&B_n(n,(R=e.currentEndpoint)!=null?R:void 0,g))return n.showConfirmationDialog(e.JSC$14909_clientRoot.parentElement,{endpoint:g,data:c,navigationType:k,tempData:I,isMiniplayer:J,isForwardHistoryNavigation:q==null?void 0:q.forward}),_.No();e.pageFetcher.JSC$14886_chunkHandler=void 0;return w_Y(e,g,c,k,I,J)};
w_Y=function(e,g,c,k,I,J){J=J===void 0?!1:J;e.isMiniplayerExpansion=J;var q=k===2;e.currentEndpoint=g;e.numNavigations++;e.numNavigations&&(TzV.navigationCount=e.numNavigations);_.Fq("NUM_NAV",e.numNavigations);var L=LlI(e,g,c);if(L)return v$M(e,g,L,"102",r1Z(c)),_.q2(L);var n,R,W,b;L=c.rootVe||(c==null?void 0:(n=c.response)==null?void 0:(R=n.responseContext)==null?void 0:(W=R.webResponseContextExtensionData)==null?void 0:(b=W.ytConfigData)==null?void 0:b.rootVisualElementType);!q&&c&&a$q(e,c);var h,
X;n=c==null?void 0:(h=c.response)==null?void 0:(X=h.responseContext)==null?void 0:X.maxAgeSeconds;if(!q&&!isNaN(n)){var D;_.G("kevlar_use_response_ttl_to_invalidate_cache")?D=(0,_.yr)()+1E3*n:_.G("kevlar_always_invalidate_cache")&&(D=0);isNaN(D)||(c.expirationTime=D)}_.Q5(_.SM).prefetchCache_.clear();q||c.page!=="watch"||k!==1?k=q0q(e,c,q,!!J,g,I):(e.publishPageData(c),k=_.No());I=k.then(function(){var f=MW(g);f={endpoint:g,pageType:f,fromHistory:q,response:c};f.navigationDoneMs=_.Wh("nd");e.fireEvent("yt-navigate-finish",
f);var l;(l=_.Ss().resolve(_.NN(_.ONu)))==null||l.publish("navigation-end")});
c.csn&&L&&c.clientSideGrafts&&k.then(e.attachClientSideGrafts.bind(e,c,_.RC()));return I};
_.v=cI.prototype;_.v.attachClientSideGrafts=function(e,g){e.clientSideGrafts&&g&&e.clientSideGrafts.forEach(function(c){if(g&&c){var k=_.Jb(c);_.G("combine_ve_grafts")?_.gL().graftServerVe(c,g):_.Yn(e.csn,g,k)}})};
_.v.handleSignalActionHistoryBack=function(){window.history.back()};
_.v.handleSignalActionCloseWindow=function(){window.close()};
_.v.handleSignalActionReloadPage=function(){this.reload()};
_.v.handleSignalActionSoftReloadPage=function(){cfn(this)};
_.v.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.v.fireEvent=function(e,g){e=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0,detail:g});this.dispatchEvent(e)};
_.v.addEventListener=function(e,g){this.JSC$14909_clientRoot.addEventListener(e,g)};
_.v.dispatchEvent=function(e){return this.JSC$14909_clientRoot.dispatchEvent(e)};
_.v.removeEventListener=function(e,g){this.JSC$14909_clientRoot.removeEventListener(e,g)};
cI[y0]=[Czw,_.Oc];var RWZ;var E$Y=function(){return _.z.apply(this,arguments)||this};
_.Y(E$Y,_.z);_.Bd.Object.defineProperties(E$Y,{template:{configurable:!0,enumerable:!0,get:function(){if(RWZ===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);RWZ=e}e=RWZ;return e}}});
_.t([_.m(Ewq.YtPlayerBehavior),_.B("design:type",Object)],E$Y.prototype,"ytPlayerBehavior",void 0);_.t([_.bF({is:"ytd-player"})],E$Y);var Wl1;var b51;var hWq;var kG=function(){var e=_.z.apply(this,arguments)||this;e.forceModernIconButton=!1;e.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return e};
_.Y(kG,_.z);kG.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]]"}}}}}};
kG.prototype.handleAccountLinkingStateChangedCommand=function(e){if(e=_.x(e,Ux4)){var g,c=(g=this.data)==null?void 0:g.providerKey;g=e.providerKey;c&&g&&c.id===g.id&&c.subject===g.subject&&(e=e.linked,e!==void 0&&(this.set("data.linked",e),this.notifyPath("data.linked"),_.G("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(e)))}};
kG.prototype.setPlayerAccountLinkState=function(e){var g=new kxM;Iyv(g,gqw(new e2s,e));var c=_.FE();c&&c.getPlayerPromise().then(function(k){k.setAccountLinkState(_.MU(g.JSC$12637_serializeBinary(),4));k.updateAccountLinkingConfig(e)})};
kG.prototype.handleShowAccountLinkDialog=function(){var e=this.get("button.buttonRenderer.command");e&&_.y1([e],this.hostElement)};
_.Bd.Object.defineProperties(kG.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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.t([_.m([_.Nr.YtActionHandlerBehavior]),_.B("design:type",Object)],kG.prototype,"actionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],kG.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],kG.prototype,"overrides",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],kG.prototype,"forceModernIconButton",void 0);_.t([_.u({value:"bottom"}),_.B("design:type",String)],kG.prototype,"buttonTooltipPosition",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],kG.prototype,"forceIconButton",void 0);_.t([_.u(),_.B("design:type",Boolean)],kG.prototype,"disableTextTransform",void 0);
_.t([_.p("data","data.linked","data.isWarning"),_.B("design:type",Object),_.B("design:paramtypes",[])],kG.prototype,"button",null);_.t([_.bF({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],kG);
_.U(kG,"ytd-account-link-button-renderer",function(){if(hWq!==void 0)return hWq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return hWq=e},{mode:1});var X_B;var G$4=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],IL=function(){return _.z.apply(this,arguments)||this};
_.Y(IL,_.z);IL.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
IL.prototype.updateButtonActiveState=function(){var e=this,g=!!G$4.find(function(c){return e.currentState===c});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.G("enable_web_delhi_icons")&&(g=!1);this.button&&(this.button.isPressed=g)};
_.Bd.Object.defineProperties(IL.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.playlistLoopStateEntity)==null?void 0:e.state)||((g=this.data)==null?void 0:g.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var e=void 0,g;if(this.currentState&&((g=this.data)==null?0:g.states)){g=_.w(this.data.states);for(var c=g.next();!c.done;c=g.next()){c=_.x(c.value,_.k4I);var k=void 0;if(((k=c)==null?void 0:k.state)===this.currentState){e=c;break}}}return e}}});
IL.prototype.updateButtonActiveState=IL.prototype.updateButtonActiveState;_.t([_.m(_.Wv),_.B("design:type",Object)],IL.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.Jg.playlistLoopStateEntitySelector}),_.B("design:type",Object)],IL.prototype,"playlistLoopStateEntity",void 0);_.t([_.u(),_.B("design:type",Object)],IL.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],IL.prototype,"forceIconOnly",void 0);_.t([_.Cs("ytd-button-renderer"),_.B("design:type",_.uZ)],IL.prototype,"button",void 0);
_.t([_.p("data","playlistLoopStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],IL.prototype,"currentState",null);_.t([_.OY("currentButtonStateRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IL.prototype,"updateButtonActiveState",null);_.t([_.p("currentState"),_.B("design:type",Object),_.B("design:paramtypes",[])],IL.prototype,"currentButtonStateRenderer",null);
_.t([_.bF({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],IL);
_.U(IL,"ytd-playlist-loop-button-renderer",function(){if(X_B!==void 0)return X_B;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return X_B=e},
{mode:1});var xQv;var DQY=_.C_("DOWNLOAD",{},"Download"),$Qs=_.C_("DOWNLOADING",{},"Downloading"),Y0u=_.C_("DOWNLOADED",{},"Downloaded"),f$Z=_.C_("RETRY",{},"Retry"),JT=function(){var e=_.z.apply(this,arguments)||this;e.forceIconButton=!1;e.forceIconOnly=!1;e.overrides=!1;e.buttonTooltipPosition=!1;e.styleActionButton=!1;e.disableTextTransform=!1;e.downloadProgress=0;e.isDownloadComplete=!1;e.isHidden=!0;e.transferState="TRANSFER_STATE_UNKNOWN";e.isVideoDeletedByUser=!1;e.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return e};
_.Y(JT,_.z);_.v=JT.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.dataChanged=function(){var e;(e=this.data)!=null&&e.text||(e=_.hw(_.Tt().getState(),this.videoId),this.updateButtonState(e))};
_.v.computeVideoId=function(e){return e};
_.v.computePlayerStateEntityKey=function(e){return e};
_.v.showHideButton=function(){this.updateButtonVisibility()};
_.v.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var e;((e=this.playerStateEntity)==null?void 0:e.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.v.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.v.updateButtonState=function(e){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==$Qs||!_.cL(e))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(e){case "TRANSFER_STATE_UNKNOWN":e=DQY;var g="OFFLINE_DOWNLOAD";var c="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":e=f$Z;g="OFFLINE_DOWNLOAD";c="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":e=Y0u;g="OFFLINE_PIN";c="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":e=
$Qs;g="OFFLINE_DOWNLOADING_ZERO";c="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":e=f$Z;g="OFFLINE_DOWNLOAD";c="ACTION_RETRY";break;default:e=DQY,g="OFFLINE_DOWNLOAD",c="ACTION_ADD"}this.isVideoDeletedByUser&&(e=DQY,g="OFFLINE_DOWNLOAD",c="ACTION_ADD");var k=Object.assign({},this.data);k.text=_.PL(e);k.tooltip=e;k.icon={iconType:g};k.size="SIZE_DEFAULT";k.style="STYLE_DEFAULT";_.x(k.command,_.yF)&&(_.x(k.command,_.yF).action=c);this.set("data",k)}};
_.v.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var e="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?e="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?e="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?e="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?e="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?e="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(e="OFFLINE_PIN",this.isDownloadComplete=!0);var g;e!==((g=this.data.icon)==null?void 0:g.iconType)&&(g=Object.assign({},this.data),g.text=_.PL($Qs),g.tooltip=$Qs,g.icon={iconType:e},_.x(g.command,_.yF)&&(_.x(g.command,_.yF).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",g))}};
JT.prototype.updateProgress=JT.prototype.updateProgress;JT.prototype.onTransferStateChanged=JT.prototype.onTransferStateChanged;JT.prototype.showHideButton=JT.prototype.showHideButton;JT.prototype.dataChanged=JT.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],JT.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],JT.prototype,"forceIconButton",void 0);
_.t([_.u(),_.B("design:type",Object)],JT.prototype,"forceIconOnly",void 0);_.t([_.u(),_.B("design:type",Object)],JT.prototype,"overrides",void 0);_.t([_.u(),_.B("design:type",Object)],JT.prototype,"buttonTooltipPosition",void 0);_.t([_.u(),_.B("design:type",Object)],JT.prototype,"styleActionButton",void 0);_.t([_.u(),_.B("design:type",Object)],JT.prototype,"disableTextTransform",void 0);
_.t([_.u({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.B("design:type",String)],JT.prototype,"videoId",void 0);_.t([_.u({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.B("design:type",String)],JT.prototype,"playerStateEntityKey",void 0);_.t([_.u(),_.B("design:type",Object)],JT.prototype,"data",void 0);_.t([_.u({selector:Gt,selectorArgs:["videoId"]}),_.B("design:type",Object)],JT.prototype,"downloadProgress",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],JT.prototype,"isDownloadComplete",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],JT.prototype,"isHidden",void 0);_.t([_.u({selector:_.hw,selectorArgs:["videoId"]}),_.B("design:type",String)],JT.prototype,"transferState",void 0);_.t([_.u({selector:_.yzv,selectorArgs:["videoId"]}),_.B("design:type",Object)],JT.prototype,"isVideoDeletedByUser",void 0);
_.t([_.u({selector:Z3q,selectorArgs:["videoId"]}),_.B("design:type",Object)],JT.prototype,"offlineabilityState",void 0);_.t([_.u({selector:_.Zi,selectorArgs:["playerStateEntityKey"]}),_.B("design:type",Object)],JT.prototype,"playerStateEntity",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],JT.prototype,"showTooltips",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],JT.prototype,"sendCommandWhenDisabled",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],JT.prototype,"disabled",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JT.prototype,"dataChanged",null);_.t([_.k_("offlineabilityState","playerStateEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JT.prototype,"showHideButton",null);
_.t([_.k_("transferState","isVideoDeletedByUser"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JT.prototype,"onTransferStateChanged",null);_.t([_.k_("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JT.prototype,"updateProgress",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],JT);
_.U(JT,"ytd-download-button-renderer",function(){if(xQv!==void 0)return xQv;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return xQv=e},{mode:2});var jZ4;var i5M,PRq=function(){if(i5M!==void 0)return i5M;var e=document.createElement("template");_.P(e,'\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 i5M=e};var mQB=_.G("web_button_rework")&&_.dH("BUTTON_REWORK")||_.G("web_button_rework_with_live"),p_Z=_.MN("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,vI=function(){var e=_.z.apply(this,arguments)||this;e.isPressed=!1;e.forceIconButton=!1;e.forceIconOnly=!1;e.forceModernIconButton=!1;e.alignByText=!1;e.isShorts=!1;e.animatedText=!1;e.shouldAnimate=!1;e.JSC$14947_browserSupportsAnimation=_.G("web_supports_animations_api");e.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};e.onTap=function(){var g;if((g=e.data)==null||!g.defaultNavigationEndpoint){var c;g=!((c=e.data)==null?0:c.isToggled);var k;if((k=e.data)==null||!k.preventAutoToggle){e.shouldAnimate=!1;e.disableTextUpdateJobId&&_.ft.cancelJob(e.disableTextUpdateJobId);e.disableTextUpdateJobId=_.ft.addLowPriorityJob(function(){e.disableTextUpdateJobId=void 0},p_Z);
var I;e.set("data.isToggled",!((I=e.data)==null?0:I.isToggled));c=e.getInnertubeIcon();k={toggled:g,actions:{}};c&&(k.actions[c.toLowerCase()]=g);_.oC(e.hostElement,"yt-toggle-button",k)}}};
return e};
_.Y(vI,_.z);_.v=vI.prototype;_.v.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.ft.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.toggle=function(e){var g;this.set("data.isToggled",e!==void 0?e:!((g=this.data)==null?0:g.isToggled))};
_.v.handleUpdateToggleButtonStateCommand=function(e){if(this.data){e=_.x(e,Sew);var g,c,k,I=(g=this.data)==null?void 0:(c=g.toggleButtonSupportedData)==null?void 0:(k=c.toggleButtonIdData)==null?void 0:k.id;I&&e&&I===(e==null?void 0:e.buttonId)&&this.set("data.isToggled",e.toggled)}};
_.v.handleUpdateToggleButtonTextAction=function(e){if(this.data){e=_.x(e,bjZ);var g,c,k,I=(g=this.data)==null?void 0:(c=g.toggleButtonSupportedData)==null?void 0:(k=c.toggleButtonIdData)==null?void 0:k.id;I&&e&&I===(e==null?void 0:e.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=e.defaultNumericalValue,this.set("data.defaultText",e.defaultText),this.set("data.toggledText",e.toggledText),this.shouldAnimate=!1)}};
_.v.getInnertubeIcon=function(){var e=this.data;if(e){var g,c,k=((g=e.defaultIcon)==null?0:g.iconType)?(c=e.defaultIcon)==null?void 0:c.iconType:null,I,J;g=((I=e.toggledIcon)==null?0:I.iconType)?(J=e.toggledIcon)==null?void 0:J.iconType:k;return e.isToggled?g:k}};
_.v.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Bd.Object.defineProperties(vI.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var e={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$14947_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var g=e.renderer;var c=e.element;var k=e.toggled;var I=e.onTapCallback;var J=e.commandClientArgs;var q=e.overrides;var L=e.forceIcon;var n=e.forceModernIconButton;var R=e.forceDisabled;var W=e.useAnimatedText;var b=e.animatedTextProps;e=gwK(g,k);L=!g.defaultIcon||!L&&g.defaultText?g.defaultIcon?"leading":void 0:n?"icon-only":"icon-only-40";L==="icon-only-40"&&(e.type="text");var h;n=Object;var X=n.assign,D;a:switch((D=
g.style)==null?void 0:D.styleType){case "STYLE_COMPACT_GRAY":D={size:"S"};break a;default:D={size:"M"}}var f=!!k;var l=(l=k&&g.toggledText||g.defaultText)?_.a6(l):void 0;W?(W=_.mp(k&&g.toggledText||g.defaultText))&&b&&!isNaN(Number(b.numberValue))?(b.numberText=W,k&&(b.numberValue+=1),W=b):W=void 0:W=void 0;var A,d,S,V;var Q=(b=((d=k?g.toggledAccessibilityData||((Q=g.toggledText)==null?void 0:Q.accessibility):g.accessibilityData||((A=g.defaultText)==null?void 0:A.accessibility))==null?void 0:(S=d.accessibilityData)==
null?void 0:S.label)||((V=g.accessibility)==null?void 0:V.label))?b:_.mp(k&&g.toggledText||g.defaultText);R=R===void 0?g.isDisabled:R;c=eJg(g,k,I,c,J);k=C9W(g,k);k!=null&&k.length?(k=_.hb({innertubeCommand:kWt(k),forceNewState:!0}),k=X6(k)?k:void 0):k=void 0;g=X.call(n,{},e,D,{iconPosition:L},q,{focused:!1,toggled:f,toggleable:!0,formattedButtonText:l,animatedTextProps:W,accessibilityLabel:Q,disabled:R,onTap:c,aTagConfig:k},nc6((h=g.colorData)==null?void 0:h.basicColorPaletteData));g.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(g.type="filled");return g}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var e=this.getInnertubeIcon();if(e)return _.NY(e)}}});
vI.prototype.resetAnimation=vI.prototype.resetAnimation;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],vI.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],vI.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vI.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],vI.prototype,"isPressed",void 0);_.t([_.u(),_.B("design:type",Object)],vI.prototype,"forceIconButton",void 0);_.t([_.u(),_.B("design:type",Object)],vI.prototype,"forceIconOnly",void 0);_.t([_.u(),_.B("design:type",Object)],vI.prototype,"forceModernIconButton",void 0);_.t([_.u(),_.B("design:type",Object)],vI.prototype,"alignByText",void 0);_.t([_.u(),_.B("design:type",Object)],vI.prototype,"overrides",void 0);
_.t([_.u(),_.B("design:type",Boolean)],vI.prototype,"disabled",void 0);_.t([_.u(),_.B("design:type",Object)],vI.prototype,"isShorts",void 0);_.t([_.u(),_.B("design:type",Object)],vI.prototype,"buttonTooltipPosition",void 0);_.t([_.u(),_.B("design:type",Object)],vI.prototype,"animatedText",void 0);_.t([_.u(),_.B("design:type",String)],vI.prototype,"textNumberValue",void 0);_.t([_.u({computed:"computeTooltip(data, data.isToggled)"}),_.B("design:type",Object)],vI.prototype,"tooltip",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vI.prototype,"resetAnimation",null);_.t([_.p("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.B("design:type",Object),_.B("design:paramtypes",[])],vI.prototype,"computedButtonShape",null);_.t([_.p("data.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],vI.prototype,"computedIcon",null);
_.t([_.bF({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],vI);mQB&&_.U(vI,"ytd-toggle-button-renderer",PRq,{mode:2});var Tnq=_.H(function(e){function g(R){var W;return _.r(function(b){if(b.nextAddress==1)return(W=!kQC(R,L())||!L().enabled)?b.jumpTo(2):b.yield(qAC(),3);b.nextAddress!=2&&(W=b.yieldResult);if(W)return b.return();c();setTimeout(function(){q(!1)},1500);
_.Uh(b)})}
function c(){setTimeout(function(){q(!0);var R;(R=k.lottieEl)==null||R.goToAndPlay(0)},150)}
var k=_.NH(),I=_.w(_.Wa(!1,void 0,"UfUosc")),J=I.next().value,q=I.next().value,L=_.sz(e.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.lo(function(){var R,W;((R=e.settings)==null?void 0:(W=R.call(e))==null?void 0:W.uniqueId)==="this is not intended behavior"&&_.mN(new _.E2("Smartimation Settings is undefined"))});
_.AV(function(){L().experimentEnabled&&(L().enabled?I86(g):(q(!1),JJt(g)),_.sX(function(){JJt(g)}))},"IHhVmc");
_.AV(function(){L().timings.join("");L().experimentEnabled&&(vw8(L()),_.sX(function(){wSK(L())}))},"fsfhOe");
var n=_.xF(function(){var R=k,W=L().uniqueId+"-border",b,h;var X="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((h=(b=_.Ss().resolve(_.NN(_.gb)))==null?void 0:b())!=null&&h?"dark":"light")+"_v2.json";return{animationRef:R,animationConfig:{name:W,autoplay:!1,loop:!1,path:X}}},void 0,"UWvUGe");
I={};return _.a("yt-smartimation",{class:_.o6(e.className,"smartimation",(I["smartimation--experiment-enabled"]=function(){return L().experimentEnabled},I["smartimation--active-border"]=J,I["smartimation--enable-masking"]=LTv(),I))},_.a(_.E,{cond:function(){return L().experimentEnabled},
then:function(){return _.a("div",{class:"smartimation__border"},_.a(_.Sx,{className:"smartimation__border-gradient",data:n,animationName:function(){return n().animationConfig.name}}))}}),_.a("div",{class:"smartimation__content"},e.children))},"ja");
Tnq.idomCompat=!0;_.sL(Tnq,"yt-smartimation",{props:{className:_.jx,settings:_.jx}});var wC=function(){var e=_.z.apply(this,arguments)||this;e.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};e.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};e.shouldEnableSmartimation=!1;return e};
_.Y(wC,_.z);wC.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
wC.prototype.onDataChanged=function(){var e,g;this.shouldEnableSmartimation=(((e=this.data)==null?void 0:(g=e.timedAnimationData)==null?void 0:g.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
wC.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var e=_.x(this.data.likeButton,_.x8),g=_.x(this.data.dislikeButton,_.x8);return!!((e==null?0:e.isToggled)||(g==null?0:g.isToggled))};
wC.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]]"}}}}}};
_.Bd.Object.defineProperties(wC.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var e,g,c=((e=this.data)==null?void 0:(g=e.timedAnimationData)==null?void 0:g.animationTiming)||[];return{uniqueId:"like-dislike",timings:c,enabled:this.shouldEnableSmartimation,experimentEnabled:c.length>0}}}});
wC.prototype.onDataChanged=wC.prototype.onDataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wC.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],wC.prototype,"likeButtonOverride",void 0);_.t([_.u(),_.B("design:type",Object)],wC.prototype,"dislikeButtonOverride",void 0);
_.t([_.p("shouldEnableSmartimation"),_.B("design:type",Object),_.B("design:paramtypes",[])],wC.prototype,"smartimationSettings",null);_.t([_.OY("data"),_.Ks("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wC.prototype,"onDataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],wC);
_.U(wC,"ytd-segmented-like-dislike-button-renderer",function(){if(jZ4!==void 0)return jZ4;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return jZ4=e},{mode:1});var l$u;var A1w;(A1w=document.body)==null||A1w.setAttribute("rounded-container","");var sZs={};sZs.YtToggleButtonBehavior=[_.Nr.YtActionHandlerBehavior,eq.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 e=this.data.isToggled;if(!this.isModal_(e)){if(!this.data.preventAutoToggle){this.toggle();var g={toggled:this.data.isToggled,actions:{}};g.actions[this.buttonIcon]=this.data.isToggled;_.oC(this.hostElement,"yt-toggle-button",g)}g=this.data.defaultServiceEndpoint||null;var c=this.data.toggledServiceEndpoint||null;if(g&&c||g&&this.data.preventAutoToggle)e=e?c:g,g=this.disableCommandHandlerOverride,_.G("killswitch_toggle_button_behavior_resolve_command")||g?_.tr(this.hostElement,
[e]):_.KO(e,this.hostElement),_.oC(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:e})}},
stateChanged_:function(){var e=this.data;if(e){var g=e.isToggled;this._setEndpoint(this.computeEndpoint_(e));this._setServiceEndpoint(this.computeServiceEndpoint_(e));this._setButtonIcon(this.computeButtonIcon_(e,g));this._setButtonText(this.computeButtonText_(e,g));this._setButtonAccessibility(this.computeAccessibility_(e,g));this._setButtonTooltip(this.computeTooltip_(e,g));this._setButtonClass(this.computeButtonClass_(e,g));this._setIconPositionType(this.computeIconPositionType_(e));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=g):this.elements_.button.setAttribute("aria-pressed",g));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=g)}},
shouldSetIconActiveState_:function(){return _.G("kevlar_system_icons")},
toggle:function(e){this.set("data.isToggled",e!==void 0?e:!this.data.isToggled);_.G("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(e){if(e){var g,c;return!!((g=this.data)==null?0:(c=g.toggledServiceEndpoint)==null?0:c.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(e){return e&&e.defaultNavigationEndpoint||null},
computeButtonIcon_:function(e,g){var c=e&&e.defaultIcon?_.NY(e.defaultIcon.iconType):null;e=e&&e.toggledIcon?_.NY(e.toggledIcon.iconType):c;return g?e:c},
handleUpdateToggleButtonStateCommand_:function(e){e=e.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==e.buttonId&&this.toggle(e.toggled)},
computeButtonText_:function(e,g){return e?g&&e.toggledText||e.defaultText||null:null},
computeAccessibility_:function(e,g){return e?(g?this.get("toggledAccessibilityData.accessibilityData",e):this.get("accessibilityData.accessibilityData",e))||e.accessibility||null:null},
computeTooltip_:function(e,g){return e?g&&e.toggledTooltip||e.defaultTooltip||null:null},
computeButtonClass_:function(e,g){if(!e)return"";var c="",k=e.toggledStyle||e.style;if(g=g?k:e.style){g.styleType&&(g=g.styleType);try{c+=g.toLowerCase().replace(/_/g,"-")+" "}catch(I){_.pB(I,g,typeof g),_.mN(I)}}if(e=e.size){e.sizeType&&(e=e.sizeType);try{c+=e.toLowerCase().replace(/_/g,"-")+" "}catch(I){_.pB(I,e,typeof e),_.mN(I)}}return c.trim()},
computeIconPositionType_:function(e){return e&&e.iconPosition||null},
computeServiceEndpoint_:function(e){var g=e&&e.serviceEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return g?g:c&&e.command?e.command:null},
handleUpdateToggleButtonTextAction_:function(e){e=e.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==e.buttonId&&(this.set("data.defaultText",e.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",e.toggledText),this.notifyPath("data.toggledText"))}}];_.qH("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Fls=_.G("web_button_rework")&&_.dH("BUTTON_REWORK")||_.G("web_button_rework_with_live"),qp=function(){var e=_.z.apply(this,arguments)||this;e.systemIcons=_.G("kevlar_system_icons");e.roundedContainer=!0;return e};
_.Y(qp,_.z);qp.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
qp.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var e=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var g={toggled:!!this.data.isToggled,actions:{}};g.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var c,k;g.actions.playlistId=(c=this.data.defaultServiceEndpoint)==null?void 0:(k=c.playlistEditEndpoint)==null?void 0:k.playlistId;_.oC(this.hostElement,"yt-toggle-button",g)}(e=e?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(e)}};
qp.prototype.onYtNavigate=function(e){var g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(e.detail.endpoint);g&&(e.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(g))};
_.Bd.Object.defineProperties(qp,{template:{configurable:!0,enumerable:!0,get:function(){if(l$u===void 0){var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);l$u=e}e=l$u;return e}}});
qp.prototype.onYtNavigate=qp.prototype.onYtNavigate;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],qp.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],qp.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(sZs.YtToggleButtonBehavior),_.B("design:type",Object)],qp.prototype,"ytToggleButtonBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],qp.prototype,"data",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],qp.prototype,"showTooltips",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],qp.prototype,"systemIcons",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],qp.prototype,"roundedContainer",void 0);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qp.prototype,"onYtNavigate",null);
_.t([_.bF({is:"ytd-toggle-button-renderer",disableElementRegistration:Fls})],qp);var ufY,dQw;_.Lj=new _.AU("PANEL_CONTROLLER_TOKEN");_.rC=new _.AU("SHEET_CONTROLLER_TOKEN");_.aL=new _.AU("DIALOG_CONTROLLER_TOKEN");ufY=new _.AU("DIALOG_CONTAINER_TOKEN");dQw=new _.AU("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.nj=new _.AU("PERSISTENT_PANEL_CONTROLLER_TOKEN");var XSg=_.C_("DOWNLOAD",{},"Download"),GQv=_.C_("DOWNLOADING",{},"Downloading"),xXA=_.C_("DOWNLOADED",{},"Downloaded"),DXp=_.C_("RETRY",{},"Retry");var zWw=_.H(function(e){var g=iNW,c=function(){return""},k=$Xt(e.data),I=YAt(e.data),J=f8A(e.data),q=jOq(e.data);
g=function(){var L=e.data(),n=bNK(L,k(),I(),J(),q()),R=!!L.videoId,W=n.text;return{title:R?W:void 0,tooltip:R?void 0:W,accessibilityText:W,onTap:n.onTap,iconName:n.iconType,style:L.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:n.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:L.buttonSize}};
c={};c=_.o6("ytDownloadButtonViewModelHost",(c.ytDownloadButtonViewModelIsHidden=function(){var L=e.data(),n=q();return L.playlistId||n()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||n()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},c));
return _.a("download-button-view-model",{class:c},_.a(_.oD,{data:g}))},"ka");
zWw.idomCompat=!0;var uuv=new _.AU("SUBMIT_API_SERVICE_TOKEN");var AJq,sO8,dX8={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var k$v=new _.AU("RENDERER_LOGGER_TOKEN");var Czz=new _.AU("RENDERER_STAMPER_OPTIONS_TOKEN");var HNz;_.Cx=new EoU;HNz=new Map;var eWC="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),c1A=["notificationTextRenderer","notificationMultiActionRenderer"],
g$e="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),M8C=QOW(function(e){return _.ds(e==null?void 0:e.targetId)}).useUpdatableData;var V8e=null;var ONK=0,yJe=new Set;_.eS.debugName="EjJbCe";var H5s=_.H(function(e){var g=e.data;e=e.className;_.Tr(function(){g().formId||_.jW(Error("Dh"))});
var c=_.l8C(function(){return g().formId},function(){return g().beforeSubmitCommand},function(){return g().afterSubmitCommand}),k=c.submitForm,I=c.isValid,J=c.isSubmitting,q=function(){return{state:g().isDisabled||!I()||J()?"disabled":"active"}};
return _.a("yt-submit-button-view-model",{class:_.o6("ytSubmitButtonViewModelHost",e)},_.a(_.eS,{data:function(){return g().button}},{buttonViewModel:function(L){return _.a(_.oD,{data:L.data,
buttonOverrides:q,onClick:k})}}))},"na");var UQq=_.H(function(e){var g=e.backgroundLottieRef;var c=e.foregroundLottieRef;var k=e.children;var I=e.wrapperClass;var J=e.disableAnimation;e=function(){return(_.G("web_animated_actions")||_.G("web_animated_actions_v2"))&&!(J==null?0:J())};
return _.a("yt-animated-action",{class:_.o6("ytAnimatedActionHost",I)},_.a("div",{class:"ytAnimatedActionContentWithBackground"},_.a(_.E,{cond:e,then:function(){return _.a(QZM,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:g==null?void 0:g(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(I$C()?"dark":"light")+"_v5.json"}}}})}}),k),_.a(_.E,{cond:e,
then:function(){return _.a(QZM,{lottiePlayerProps:function(){return{animationRef:c==null?void 0:c(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(I$C()?"dark":"light")+"_v4.json"}}}})}}))},"oa");
UQq.idomCompat=!0;var QZM=_.H(function(e){var g=e.wrapperClass;var c=e.lottieClass;var k=e.lottiePlayerProps;return _.a("div",{class:_.o6("ytAnimatedActionLottie",g),"aria-hidden":"true"},_.a(_.Sx,{className:c,data:k,animationName:function(){return k().animationConfig.name}}))},"pa");var J1z={isOpen:!1};var w_8={isAllowed:!1};var Llp={errorMessage:"",title:"",privacy:"",isDisabled:!0};var a$U={isOpen:!1};var RWV={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var o$u={response:void 0};var WlC=function(e,g){e=e===void 0?o$u:e;switch(g.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},e,{response:g.payload});default:return e}};var Z5n={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var b5C=function(e,g){e=e===void 0?Z5n:e;switch(g.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},e,{nextDisabled:g.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},e,{nextCommand:g.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},e,{footerSubmissionData:g.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},e,{isImpersonationValid:g.payload});default:return e}};var VB4={reportFormData:void 0,reportDetailsFormData:void 0};var hWv=function(e,g){e=e===void 0?VB4:e;switch(g.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},e,{reportFormData:g.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},e,{reportDetailsFormData:g.payload});default:return e}};var tBZ=void 0;_.G("mweb_enable_redux_store_on_demand")||(tBZ=new pU(X_e()));var RL=_.G("enable_web_delhi_icons");var BnI=_.H(function(e){e=_.FA(e,{themeOverride:void 0,animationRef:{}});var g=e.animatedIconType,c=e.active,k=e.themeOverride,I=e.animationRef;e=e.staticIconFn;var J=_.w(_.Wa(void 0,void 0,"l48agc")),q=J.next().value,L=J.next().value,n=function(){a:{var l=g();var A=k==null?void 0:k();var d;A=(A==null?void 0:A.useDarkTheme)||((d=_.Ss().resolve(_.NN(_.gb)))==null?void 0:d());switch(l){case "LIKE":tBZ||(tBZ=new pU(X_e()));l=(l=VkC(tBZ.getState()))&&l.animationLightUrl&&l.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:A?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:A?l.animationDarkUrl:l.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(l){A=l;break a}A="animated_like_icon_"+(A?"dark":"light")+"_"+(RL?"v5":"v4");A={lottiePlayerProps:{animationConfig:{name:A,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+A+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(RL?" animated-like-icon-delhi":"")}}},totalFrames:RL?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":A={lottiePlayerProps:{animationConfig:{name:A?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(A?"dark":"light")+(RL?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(RL?" animated-subscribe-icon-delhi":"")}}},totalFrames:RL?120:79,lazyLoad:!1};break a}A=
void 0}return A},R=function(){var l,A;
return(A=(l=n())==null?void 0:l.lottiePlayerProps.animationConfig.name)!=null?A:""},W=function(){if(n()){var l=n().lottiePlayerProps.animationConfig.path;
return IH.get(l)||q()}};
J=_.w(_.Wa(!1,void 0,"sDrGId"));var b=J.next().value;J=J.next().value;var h=xQC(J),X=function(){var l=n(),A,d,S;return(S=l==null?void 0:(A=l.lottiePlayerProps.animationConfig)==null?void 0:(d=A.rendererSettings)==null?void 0:d.className)!=null?S:""},D=void 0,f=void 0;
_.AV(function(){var l=n(),A=R(),d=W(),S=b(),V=c();if(l&&(f!==A&&(f=A,D=V,A=I(),h.animationConfig=l.lottiePlayerProps.animationConfig,h.animationRef=A,d&&(h.animationConfig.animationData=d,h.animationConfig.path=void 0),A=l.lottiePlayerProps.animationConfig.path,!IH.get(A)&&l.lazyLoad&&A&&G$6(A,L)),!(S||l.lazyLoad&&!d))){if(d=!I().lottieEl)V?(S=l.totalFrames,h.animationConfig.initialSegment=[S-1,S]):h.animationConfig.initialSegment=void 0;if(D!==V&&!d)if(d=I(),V){var Q;(Q=d.lottieEl)==null||Q.playSegments([0,
l.totalFrames],!0)}else{var y;(y=d.lottieEl)==null||y.playSegments([0,1],!0)}D=V}},"RQVZ1d");
return _.a("animated-icon",{class:"ytAnimatedIconHost"},_.a(_.E,{cond:function(){var l,A;return!((l=n())==null||!l.lottiePlayerProps.animationConfig.path||((A=n())==null?0:A.lazyLoad)&&!W()||b())},
then:function(){return _.a(_.Sx,{data:h,animationName:R,className:X,animationRef:I})},
else:e}))},"ra");_.Ew=_.H(function(e){var g=_.io("yt-subscribe-button-view-model"),c=_.io("div"),k=_.io("div"),I=_.NH(),J=_.NH(),q=_.NH(),L=_.O1(f$V,function(){return e.data().stateEntityStoreKey}),n=_.O1(jZ6,function(){var V6,bs;
return(bs=(V6=e.data().notificationStateEntityStoreKeys)==null?void 0:V6.subsNotificationStateKey)!=null?bs:""}),R=function(){return!e.data().enableSubscribeButtonPostClickAnimation},W=_.w(_.Wa(0,void 0,"YtsSKb")),b=W.next().value,h=W.next().value;
W=_.w(_.Wa(0,void 0,"V6JxRe"));var X=W.next().value,D=W.next().value;W=_.w(_.Wa(!1,void 0,"JUCSZ"));var f=W.next().value,l=W.next().value;W=_.w(_.Wa(!1,void 0,"oV6jwf"));var A=W.next().value,d=W.next().value;W=_.w(_.Wa(!1,void 0,"hK1Whe"));var S=W.next().value,V=W.next().value,Q;W=_.w(_.Wa(!1,void 0,"Asaolf"));var y=W.next().value,O=W.next().value,Jq=function(){d(!0);_.JC(_.ft,function(){d(!1)},1500)};
_.AV(function(){var V6=A();_.EX(function(){V6&&!R()&&L()&&H5W(I,J,q)})},"Qq6Hsf");
_.AV(function(){var V6=L();_.EX(function(){if(!R()&&V6){var bs;((bs=e.animateWidth)==null?0:bs.call(e))&&zWt(g.value,!!V6.subscribed,b(),X());var f1,hk;((f1=Q)==null?0:f1.subscribed)||!V6.subscribed||V6.key!==((hk=Q)==null?void 0:hk.key)||Jq();Q=V6}})},"hog8te");
W=_.xF(function(){var V6,bs,f1,hk=e.data(),Pq=!((V6=L())==null||!V6.subscribed);V6=!((bs=e.isOverlay)==null||!bs.call(e));bs=f()?g:void 0;var vq=(f1=n())==null?void 0:f1.state;f1=y();dQz(hk,vq);return Y0K({model:hk,subscribed:Pq,isOverlay:V6,element:bs,notificationState:vq,disableTextEllipsis:!0,focused:f1})},void 0,"hc1PRd");
var LC=function(){var V6;if(!R()&&((V6=e.animateWidth)==null?0:V6.call(e))&&(c==null?0:c.value)&&(k==null?0:k.value)&&!S()){V6=L();var bs=_.w((V6==null?0:V6.subscribed)?[c,k]:[k,c]),f1=bs.next().value;bs=bs.next().value;f1=Math.ceil(f1.value.getBoundingClientRect().width);bs=Math.ceil(bs.value.getBoundingClientRect().width);h(f1);D(bs);zWt(g.value,!(V6==null||!V6.subscribed),f1,bs);V(!0)}},bW=_.Ve(function(V6){LC();
var bs=L();bs&&(V6.detail.endpoint.subscribeEndpoint||V6.detail.endpoint.unsubscribeEndpoint)&&sZW(g.value,!bs.subscribed,bs)}),RA=function(){var V6=_.Ss().resolve(_.NN(_.u7));
V6&&O(V6.isKeyBoardInUse())},Xg=function(){O(!1)};
_.QV("yt-player-subscribe",function(V6){var bs=L();bs&&V6===e.data().channelId&&sZW(g.value,!0,bs)});
_.QV("yt-player-unsubscribe",function(V6){var bs=L();bs&&V6===e.data().channelId&&sZW(g.value,!1,bs)});
_.QV("yt-update-subscribe-button-action",function(V6){V6=_.x(V6,Thk);var bs=L();bs&&V6&&V6.channelId===e.data().channelId&&sZW(g.value,!!V6.subscribed,bs)});
_.lo(function(){g.value&&(g.value.addEventListener("focusin",RA),g.value.addEventListener("focusout",Xg));var V6=_.h2(_.ft,function(){LC()});
l(!0);_.sX(function(){_.ft.cancelJob(V6);g.value&&(g.value.removeEventListener("focusin",RA),g.value.removeEventListener("focusout",Xg))})});
var Fg=function(){var V6,bs,f1;if(f1=!((V6=L())==null||!V6.subscribed))V6=!!e.data().disableNotificationBell,f1=(bs=n())==null?void 0:bs.state,f1=!V6&&!!f1;return f1},oA=function(){var V6;
return!((V6=L())==null?0:V6.subscribed)},Zt=function(){var V6,bs;
if(bs=oA()){bs=!!e.data().disableNotificationBell;var f1=(V6=n())==null?void 0:V6.state;bs=!bs&&!!f1}return bs},Ev={},an={};
return _.a("yt-subscribe-button-view-model",{class:_.o6(e.className,"ytSubscribeButtonViewModelHost",(Ev.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var V6,bs;return!((V6=L())==null||!V6.subscribed)&&((bs=e.animateWidth)==null?void 0:bs.call(e))&&A()},Ev.ytSubscribeButtonViewModelHostHidden=function(){var V6;
return!((V6=L())==null?0:V6.subscribed)&&e.data().hideWhenUnsubscribed},Ev)),
el:g,"on:yt-service-request-sent":bW},_.a(UQq,{backgroundLottieRef:I,foregroundLottieRef:J,wrapperClass:_.o6("ytSubscribeButtonViewModelAnimatedActionWrapper",(an.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var V6;return((V6=e.animateWidth)==null?void 0:V6.call(e))&&A()},an.ytSubscribeButtonViewModelStaticWidth=function(){var V6;
return!((V6=e.animateWidth)==null?0:V6.call(e))},an)),
disableAnimation:R},_.a("div",{el:c,class:"ytSubscribeButtonViewModelContainer"},_.a(_.UO,{data:W,icon:function(){return _.a(_.E,{cond:Fg,then:function(){var V6=function(){var bs;return A1t((bs=n())==null?void 0:bs.state)};
return _.a(_.E,{cond:function(){return R()||V6()!=="NOTIFICATIONS_NONE"},
then:function(){return _.a(_.SU,{icon:V6})},
else:function(){return _.a(BnI,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:q})}})}})},
secondaryIconName:function(){return Fg()?"EXPAND":void 0}}))),_.a("div",{el:k,
class:"ytSubscribeButtonViewModelInvisible"},_.a(_.E,{cond:function(){var V6;return((V6=e.animateWidth)==null?void 0:V6.call(e))&&!R()&&!S()},
then:function(){return _.a(_.UO,{data:_.xF(function(){var V6;return Y0K({model:e.data(),subscribed:oA(),isOverlay:!((V6=e.isOverlay)==null||!V6.call(e)),element:g,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var V6;return Zt()?A1t((V6=n())==null?void 0:V6.state):void 0},
secondaryIconName:function(){return Zt()?"EXPAND":void 0}})}})))},"ua");
_.Ew.idomCompat=!0;var Nnk=_.H(function(e){var g=e.data;var c=_.O1(f$V,function(){return g().subscriptionStateEntityKey});
return _.a(_.E,{cond:function(){var k=g(),I=c();return!k.hideWhenUnsubscribed||(I==null?0:I.subscribed)?_.x(g().button,_.$8):void 0},
then:function(k){return _.a("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.a(_.oD,{data:k,buttonOverrides:function(){return{toggled:!0}}}))}})},"va");
Nnk.idomCompat=!0;var S0v,WI;S0v=_.H(function(e){return _.a(_.eS,{data:function(){return e.actionRow().actions}},{buttonViewModel:function(g){var c=g.data;
return _.a(WI,{isRow:e.isRow,isIconOnlyButton:function(){return QZg(c())},
useIntrinsicWidth:e.useIntrinsicWidth},_.a(_.oD,{data:c}))},
subscribeButtonViewModel:function(g){return _.a(WI,{isRow:e.isRow},_.a(_.Ew,{data:g.data,isOverlay:!1,animateWidth:function(){return!e.isRow()}}))},
downloadButtonViewModel:function(g){var c=g.data;return _.a(WI,{isRow:e.isRow,isIconOnlyButton:function(){return!!c().playlistId}},_.a(zWw,{data:c}))},
submitButtonViewModel:function(g){var c=g.data;return _.a(WI,{isRow:e.isRow,isIconOnlyButton:function(){var k=c();return QZg(_.x(k==null?void 0:k.button,_.$8))}},_.a(H5s,{data:c}))},
toggleButtonViewModel:function(g){var c=g.data;return _.a(WI,{isRow:e.isRow,isIconOnlyButton:function(){var k=c();return QZg(_.x(k.isToggled?k.toggledButtonViewModel:k.defaultButtonViewModel,_.$8))}},_.a(_.vF,{data:c}))},
subscribePlusButtonViewModel:function(g){return _.a(WI,{isRow:e.isRow},_.a(Nnk,{data:g.data}))}})},"wa");
WI=_.H(function(e){var g={};return _.a("div",{class:_.o6("ytFlexibleActionsViewModelAction",(g.ytFlexibleActionsViewModelActionRowAction=e.isRow,g.ytFlexibleActionsViewModelActionIntrinsicWidth=e.useIntrinsicWidth,g.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,g.ytFlexibleActionsViewModelActionIconOnlyButton=e.isIconOnlyButton,g))},e.children)},"xa");
_.bA=_.H(function(e){var g=function(){var k;return((k=e.layout)==null?void 0:k.call(e))===1},c={};
return _.a("yt-flexible-actions-view-model",{class:_.o6("ytFlexibleActionsViewModelHost",e.className,(c.ytFlexibleActionsViewModelInline=function(){return!g()},c.ytFlexibleActionsViewModelScrollable=function(){return e.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},c))},_.a(_.Yz,{each:function(){return e.data().actionsRows||[]}},function(k){return _.a(_.E,{cond:g,
then:function(){return _.a("div",{class:"ytFlexibleActionsViewModelActionRow"},_.a(S0v,{actionRow:k,isRow:g,useIntrinsicWidth:function(){return!!e.data().respectActionIntrinsicWidth}}))},
else:function(){return _.a(S0v,{actionRow:k,isRow:g})}})}))},"ya");_.sL(_.bA,"yt-flexible-actions-view-model",{props:{data:_.jx,layout:_.jx,justifyContentOverride:_.jx,className:_.jx}});_.hT=_.H(function(e){var g=_.O1(_.WO,function(){var I;return(I=e.data().dislikeEntityKey)!=null?I:""}),c=_.xF(function(){var I=g();
return I?I.likeStatus==="DISLIKE":_.x(e.data().toggleButtonViewModel,_.fP).isToggled},void 0,"fNr9he"),k=_.xF(function(){return Object.assign({},_.x(e.data().toggleButtonViewModel,_.fP),{isToggled:c()})},void 0,"AezoCc");
return _.a("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.a(_.vF,{data:k,buttonShapeOverrides:e.buttonShapeOverrideables,onToggle:function(I){var J=g();J&&I!==(J.likeStatus==="DISLIKE")&&J.key&&_.As(_.ET("likeStatusEntity",J.key,{likeStatus:I?"DISLIKE":"INDIFFERENT",hadUserInteraction:I}))}}))},"za");
_.hT.idomCompat=!0;_.Xh=_.H(function(e){var g=_.G("web_supports_animations_api"),c=MEC(function(h){var X=R();if(!h){var D,f;return{numberText:(f=X==null?void 0:(D=X.likeCountIfIndifferent)==null?void 0:D.content)!=null?f:"",numberValue:Number(X==null?void 0:X.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var l;D=(X==null?void 0:(l=X.likeCountIfIndifferent)==null?void 0:l.content)!==h.numberText;if(L()||!D)return h;var A;return{numberText:(X==null?void 0:(A=X.likeCountIfIndifferent)==null?void 0:A.content)||
"",numberValue:Number(X==null?void 0:X.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!X}}),k=MEC(function(h){var X=R();
if(!h){var D,f;return{numberText:(f=X==null?void 0:(D=X.likeCountIfLiked)==null?void 0:D.content)!=null?f:"",numberValue:Number(X==null?void 0:X.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var l;D=(X==null?void 0:(l=X.likeCountIfIndifferent)==null?void 0:l.content)!==h.numberText;if(L()||!D)return h;var A;return{numberText:(X==null?void 0:(A=X.likeCountIfLiked)==null?void 0:A.content)||"",numberValue:Number(X==null?void 0:X.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!X}}),I=_.w(_.Wa(void 0,
void 0,"xYSlUe")),J=I.next().value,q=I.next().value,L=J,n=_.O1(_.WO,function(){var h,X;
return(X=(h=e.data())==null?void 0:h.likeStatusEntityKey)!=null?X:""}),R=_.O1(iJA,function(){var h,X;
return((h=e.likeCountEntity)==null?void 0:(X=h.call(e))==null?void 0:X.key)||""}),W=_.xF(function(){var h;
return((h=n())==null?void 0:h.likeStatus)==="LIKE"},void 0,"DG5Osd"),b=function(){var h;
return g&&!((h=e.likeCountEntity)==null||!h.call(e))};
return _.a("like-button-view-model",{class:_.o6("ytLikeButtonViewModelHost",e.className)},_.a(_.vF,{data:function(){var h=Object,X=h.assign,D;var f=_.x((D=e.data())==null?void 0:D.toggleButtonViewModel,_.fP);return X.call(h,{},f||{},{isToggled:W()})},
buttonShapeOverrides:e.buttonShapeOverrideables,animatedTextPropsDefault:function(){return b()?c():void 0},
animatedTextPropsToggled:function(){return b()?k():void 0},
onToggle:function(h){UQU(h,n(),L(),q)},
style:function(){var h;return((h=e.disableIconAnimation)==null?0:h.call(e))?void 0:{animateIcon:"true"}}}))},"Aa");
_.Xh.idomCompat=!0;var y1M=_.H(function(e){var g=function(){return _.x(e.data().likeButtonViewModel,_.DQ)},c=function(){var I;
return((I=g())==null?void 0:I.likeStatusEntityKey)||""},k=_.xF(function(){var I,J;
var q=(J=_.O1(_.WO,c)())!=null?J:(I=g())==null?void 0:I.likeStatusEntity;I=e.data();var L;I=(I==null?void 0:(L=I.timedAnimationData)==null?void 0:L.animationTiming)||[];return{uniqueId:"like-dislike",timings:I,enabled:(q==null?void 0:q.likeStatus)==="INDIFFERENT"&&I.length>0,experimentEnabled:I.length>0}},void 0,"zZ3GQb");
return _.a("segmented-like-dislike-button-view-model",{class:_.o6("ytSegmentedLikeDislikeButtonViewModelHost",e.className),"button-renderer":!0},_.a(Tnq,{settings:k},_.a("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.a(_.E,{cond:g,then:function(I){return _.a(_.Xh,{data:I,likeCountEntity:function(){return e.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.G("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.a(_.E,{cond:function(){return _.x(e.data().dislikeButtonViewModel,_.$t)},
then:function(I){return _.a(_.hT,{data:I,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Ba");
y1M.idomCompat=!0;_.sL(y1M,"segmented-like-dislike-button-view-model",{props:{data:_.jx,className:_.jx}});var Klk=_.H(function(e){var g=e.data;var c=e.className;var k=e.setMinWidth;var I=e.forceIconOnly;var J=_.io("account-link-button-view-model"),q=_.O1(_.o$K,function(){var h;return(h=g().accountLinkStatusEntityKey)!=null?h:""}),L=_.O1(_.o$K,function(){var h;
return(h=g().accountLinkStatusSecondaryEntityKey)!=null?h:""}),n=function(){if(!_.G("web_account_link_secondary_killswitch")){var h,X;
return((h=q())==null?void 0:h.linked)||((X=L())==null?void 0:X.linked)}var D;return(D=q())==null?void 0:D.linked};
_.AV(function(){var h=q();if(h){var X=Iyv(new kxM,gqw(new e2s,!!h.linked));_.t4().then(function(D){D&&(D.setAccountLinkState(_.MU(X.JSC$12637_serializeBinary(),4)),D.updateAccountLinkingConfig(!!h.linked))})}},"IvZF7");
var R=function(){return _.x(g().toggleButtonViewModel,_.fP)};
_.QV("yt-signal-action-show-account-link-dialog",function(){if(R()){var h=n()?R().toggledButtonViewModel:R().defaultButtonViewModel;h=_.x(h,_.$8);var X;if((X=q())==null?0:X.isWarning){X=_.x(g().warningButtonViewModel,_.$8);if(!X){_.UI(Error("Eh"));return}h=X}var D;(X=_.WT((D=h)==null?void 0:D.onTap))&&_.y1([X],J.value)}else _.UI(Error("Fh"))});
var W=function(){var h=R();return Object.assign({},h,{isToggled:n()})},b=function(){return(I==null?0:I())?{iconPosition:"icon-only"}:{}};
return _.a("account-link-button-view-model",{class:_.o6("ytwAccountLinkButtonViewModelHost",c,function(){return(k==null?0:k())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:J,"button-renderer":!0},_.a("div",null,_.a(_.E,{cond:function(){var h;if((h=q())==null?0:h.isWarning)return(h=_.x(g().warningButtonViewModel,_.$8))||_.UI(Error("Eh")),h},
then:function(h){return _.a(_.oD,{data:h,buttonOverrides:b})},
else:function(){return _.a(_.vF,{data:W,buttonShapeOverrides:b})}})))},"Da");_.sL(Klk,"account-link-button-view-model",{props:{data:_.jx,className:_.TF,setMinWidth:_.TF,forceIconOnly:_.TF}});_.qH("menuRenderer","menuRenderer","ytd-menu-renderer");
var O51={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"}},
MBv=_.G("web_fix_missing_action_buttons")?100:200,GO=function(){var e=_.z.apply(this,arguments)||this;e.safeArea=!_.G("kevlar_flex_menu_safe_area_killswitch");e.tonalOverride=!1;e.threeDotSize="M";e.isOverlay=!1;e.useOverlayDark=!1;e.topLevelIconsOnly=!1;e.JSC$15082_lastWidth=0;e.maybeUpdateFlexibleMenu=function(){_.G("web_fix_missing_action_buttons")?requestAnimationFrame(e.maybeUpdateFlexibleMenuImpl):e.maybeUpdateFlexibleMenuImpl()};
e.maybeUpdateFlexibleMenuImpl=function(){var g;if((g=e.data)!=null&&g.flexibleItems){e.maybeFlushDebouncer();g=e.hostElement.clientWidth;var c=g>e.JSC$15082_lastWidth,k,I=((k=e.topLevelButtonsContainer)==null?void 0:k.scrollHeight)||0,J;k=((J=e.flexibleItemButtonsContainer)==null?void 0:J.scrollHeight)||0;J=e.hostElement.scrollHeight>Math.max(I,k)+8;c?(e.resetFlexibleItems(),e.JSC$15082_lastWidth=e.hostElement.clientWidth,e.maybeUpdateFlexibleMenu()):J&&(e.shrinkFlexibleMenu(),e.JSC$15082_lastWidth=
g)}};
e.computeThreeDotButtonShape=function(){if(e.tonalOverride)return Object.assign({},{onTap:function(){e.onOverflowTap()},
iconPosition:"icon-only",style:e.isOverlay?e.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:e.threeDotSize,state:"active",accessibilityLabel:e.computeAccessibilityLabel(e.data)},e.threeDotButtonOverride)};
e.onOverflowTap=function(){var g,c,k,I,J,q,L,n,R,W,b;_.r(function(h){switch(h.nextAddress){case 1:if((g=e.data)==null?0:g.fetchMenuCommand)return c=_.Ss().resolve(_.xk),c.resolveCommand(e.data.fetchMenuCommand,{form:{element:e.hostElement}}),h.return();if(((k=e.data)==null?0:k.isDisabled)&&((I=e.data)==null?0:I.disabledCommand))return _.KO(e.data.disabledCommand,e.hostElement),h.return();J=e.createMenuRendererVe();q={items:e.items};if((L=e.data)==null?0:L.menuPopupAccessibility)q.menuPopupAccessibility=
e.data.menuPopupAccessibility;if((n=e.data)==null?0:n.footer)q.footer=e.data.footer;R={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:q},veData:J}};W=_.Ss().resolve(_.rC);if(!_.G("ytd-menu-singleton-sheet-killswitch")){h.jumpTo(2);break}return h.yield(W.openSheet({openPopupActionCommand:R},e.hostElement),3);case 3:return h.return();case 2:return h.yield(W.isSheetOpen(),4);case 4:return(b=h.yieldResult)?h.yield(W.closeSheet(),0):h.yield(W.openSheet({openPopupActionCommand:R},e.hostElement),
0)}})};
return e};
_.Y(GO,_.z);_.v=GO.prototype;_.v.updateButtonOverrides=function(){if(!_.G("menu_renderer_label_update_upkillswitch")){var e=_.o1(this.hostElement).querySelector("yt-button-view-model");e&&(e.buttonOverrides=this.buttonOverrides)}};
_.v.computeHasItems=function(){var e;return((e=this.topLevelButtonData)==null?void 0:e.length)||this.hasFlexibleItems};
_.v.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.v.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Nk(this.hostElement,{"--ytd-menu-renderer-button-color":_.R1(this.data.iconColor)}))};
_.v.onStamperFinished=function(){this.JSC$15082_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.v.setupFlexibleMenu=function(){var e=this,g;(g=this.data)!=null&&g.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.BT(this.maybeUpdateFlexibleMenu,MBv,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){e.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.v.maybeFlushDebouncer=function(){if(_.G("web_replace_formatted_with_attributed_string")){var e;(e=this.topLevelButtons)==null||e.forEach(function(c){var k;(c=(k=c.getElementsByTagName("yt-attributed-string"))==null?void 0:k[0])&&Rrq(c)});
var g;(g=this.flexibleItemButtons)==null||g.forEach(function(c){var k;(c=(k=c.getElementsByTagName("yt-attributed-string"))==null?void 0:k[0])&&Rrq(c)})}};
_.v.resetFlexibleItems=function(){var e;if((e=this.data)!=null&&e.flexibleItems){_.G("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var g;this.flexAsTopLevelButtons=(g=this.data.flexibleItems)==null?void 0:g.map(function(c){return _.x(c,_.Q5Z).topLevelButton});
_.G("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.v.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.v.shrinkFlexibleMenu=function(){var e;(e=this.flexAsTopLevelButtons)!=null&&e.length&&(this.flexAsTopLevelButtons=[].concat(_.KY(this.flexAsTopLevelButtons.slice(0,-1))))};
_.v.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:O51,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:O51,events:!0}}};
_.v.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.v.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.v.detached=function(){this.icon="MORE_VERT"};
_.v.computeTopLevelButtonData=function(e){if(!e)return[];var g;e=(g=e==null?void 0:e.topLevelButtons)!=null?g:[];return _.n0.unsafeClone([].concat(_.KY(e)))};
_.v.computeItems=function(e,g){if(!e)return[];var c=[];if(g){var k=(e.flexibleItems||[]).map(function(q){return _.x(q,_.Q5Z)});
k=_.w(k);for(var I=k.next();!I.done;I=k.next())I=I.value,g.includes(I.topLevelButton)||(I=I.menuItem)&&c.push(I)}var J;e=(J=e==null?void 0:e.items)!=null?J:[];return[].concat(_.KY(c),_.KY(e))};
_.v.computeMenuActive=function(e,g){return e||g};
_.v.onPopupOpened=function(){this.overlayOpen=!0;_.oC(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.v.onPopupClosed=function(){this.overlayOpen=!1;_.oC(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.v.onPopupCanceled=function(){this.overlayOpen=!1;_.oC(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.v.computeAccessibilityLabel=function(e){return this.get("accessibility.accessibilityData.label",e)};
_.v.isHidden=function(e,g){return this.tonalOverride||!e?!0:e.fetchMenuCommand||e.isDisabled&&e.disabledCommand?!1:!(g==null?0:g.length)};
_.v.isModernOverflowHidden=function(e,g){return this.tonalOverride&&e?e.fetchMenuCommand?!1:!(g==null?0:g.length):!0};
_.v.createMenuRendererVe=function(){var e,g=(e=this.data)==null?void 0:e.trackingParams;e=_.EM();var c=_.RC();return g&&e&&c?(g=_.Jb(g),c=_.VF(7591),_.G("combine_ve_grafts")?_.Nd(_.gL(),c,g):_.Yn(e,g,c),c):null};
_.Bd.Object.defineProperties(GO.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.flexAsTopLevelButtons)==null||!e.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
GO.prototype.onPopupCanceled=GO.prototype.onPopupCanceled;GO.prototype.onPopupClosed=GO.prototype.onPopupClosed;GO.prototype.onPopupOpened=GO.prototype.onPopupOpened;GO.prototype.tonalOverrideChanged=GO.prototype.tonalOverrideChanged;GO.prototype.resetFlexibleItems=GO.prototype.resetFlexibleItems;GO.prototype.setupFlexibleMenu=GO.prototype.setupFlexibleMenu;GO.prototype.iconButtonColorChanged=GO.prototype.iconButtonColorChanged;GO.prototype.updateButtonOverrides=GO.prototype.updateButtonOverrides;
_.t([_.m(_.sJ),_.B("design:type",Object)],GO.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Cs("#button-shape"),_.B("design:type",HTMLElement)],GO.prototype,"buttonShape",void 0);_.t([_.Cs("#button"),_.B("design:type",Object)],GO.prototype,"button",void 0);
_.t([_.u(),_.B("design:type",Object)],GO.prototype,"data",void 0);_.t([_.u({computed:"computeTopLevelButtonData(data)"}),_.B("design:type",Array)],GO.prototype,"topLevelButtonData",void 0);_.t([_.u(),_.B("design:type",Array)],GO.prototype,"flexAsTopLevelButtons",void 0);_.t([_.u({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.B("design:type",Array)],GO.prototype,"items",void 0);_.t([_.u({value:"MORE_VERT"}),_.B("design:type",String)],GO.prototype,"icon",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],GO.prototype,"safeArea",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.B("design:type",Boolean)],GO.prototype,"menuActive",void 0);_.t([_.u(),_.B("design:type",Boolean)],GO.prototype,"menuFocused",void 0);_.t([_.u({value:"bottom"}),_.B("design:type",String)],GO.prototype,"buttonTooltipPosition",void 0);_.t([_.u(),_.B("design:type",Boolean)],GO.prototype,"overlayOpen",void 0);
_.t([_.u({value:!0}),_.B("design:type",Boolean)],GO.prototype,"forceIconButton",void 0);_.t([_.u(),_.B("design:type",Boolean)],GO.prototype,"styleActionButton",void 0);_.t([_.u(),_.B("design:type",Boolean)],GO.prototype,"disableTextTransformOnButtons",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],GO.prototype,"tonalOverride",void 0);_.t([_.u(),_.B("design:type",Object)],GO.prototype,"threeDotSize",void 0);
_.t([_.u(),_.B("design:type",Object)],GO.prototype,"threeDotButtonOverride",void 0);_.t([_.u(),_.B("design:type",Object)],GO.prototype,"isOverlay",void 0);_.t([_.u(),_.B("design:type",Object)],GO.prototype,"useOverlayDark",void 0);_.t([_.u({computed:"computeButtonOverride(tonalOverride)"}),_.B("design:type",Object)],GO.prototype,"buttonOverride",void 0);_.t([_.u(),_.B("design:type",Boolean)],GO.prototype,"minimizePipBreakages",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],GO.prototype,"hasCustomIconColor",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("flexAsTopLevelButtons"),_.B("design:type",Object),_.B("design:paramtypes",[])],GO.prototype,"hasFlexibleItems",null);_.t([_.u({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.B("design:type",Boolean)],GO.prototype,"hasItems",void 0);_.t([_.u(),_.B("design:type",Object)],GO.prototype,"topLevelIconsOnly",void 0);
_.t([_.OY("topLevelIconsOnly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GO.prototype,"updateButtonOverrides",null);_.t([_.p("topLevelIconsOnly"),_.B("design:type",Object),_.B("design:paramtypes",[])],GO.prototype,"buttonOverrides",null);_.t([_.Cs("#top-level-buttons-computed"),_.B("design:type",HTMLElement)],GO.prototype,"topLevelButtonsContainer",void 0);_.t([_.eY(".top-level-buttons > *"),_.B("design:type",Array)],GO.prototype,"topLevelButtons",void 0);
_.t([_.Cs("#flexible-item-buttons"),_.B("design:type",HTMLElement)],GO.prototype,"flexibleItemButtonsContainer",void 0);_.t([_.eY("#flexible-item-buttons > *"),_.B("design:type",Array)],GO.prototype,"flexibleItemButtons",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GO.prototype,"iconButtonColorChanged",null);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GO.prototype,"setupFlexibleMenu",null);_.t([_.k_("topLevelIconsOnly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GO.prototype,"resetFlexibleItems",null);_.t([_.OY("tonalOverride"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GO.prototype,"tonalOverrideChanged",null);
_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GO.prototype,"onPopupOpened",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GO.prototype,"onPopupClosed",null);_.t([_.Ks("yt-popup-canceled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GO.prototype,"onPopupCanceled",null);
_.U(GO,"ytd-menu-renderer",function(){if(b51===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);b51=e}e=b51;return e},{mode:2});var CRk;var eHM;_.xG=_.H(function(e){var g=e.data;var c=function(){if(g().icon)a:{var I={iconName:g().icon};for(var J=_.Ss().resolve(_.SY),q=_.w([12,24]),L=q.next();!L.done;L=q.next()){var n=L.value;L=Object.assign({},I,{iconStyle:"youtube_fill",iconSize:n});n=Object.assign({},I,{iconStyle:"youtube_outline",iconSize:n});if(J.resolveIcon(L)){I=L;break a}if(J.resolveIcon(n)){I=n;break a}}I=void 0}else I=void 0;return I};
e={};var k={};return _.a("badge-shape",{class:_.o6("yt-badge-shape",function(){return S0C(g().type)},(e["yt-badge-shape--overlay"]=function(){return g().isOverlay},e["yt-badge-shape--ads-include-dot"]=function(){return g().adsIncludeDot},e["yt-badge-shape--thumbnail-badge"]=function(){a:switch(g().type){case 17:case 18:case 19:var I=!0;
break a;default:I=!1}return I},e["yt-badge-shape--status-badge"]=function(){a:switch(g().type){case 12:case 13:case 14:case 15:case 16:var I=!0;
break a;default:I=!1}return I},e["yt-badge-shape--no-text"]=function(){return!g().text},e["yt-badge-shape--modern"]=function(){return g().modern||_.G("web_modern_badge_shape")},e["yt-badge-shape--typography"]=function(){a:{var I=g();
if(I.shouldInheritTypography)switch(I.type){case 0:case 1:case 9:I=!0;break a;default:I=!1}else I=!1}return!I},e)),
style:_.N2({"background-color":function(){var I;return(I=g().customColors)==null?void 0:I.backgroundColor}}),
role:function(){return g().accessibilityText?"img":void 0},
"aria-label":function(){return g().accessibilityText}},_.a(_.E,{cond:function(){return g().animation},
then:function(I){return _.a(_.Sx,{className:"yt-badge-shape__icon",data:I,animationName:function(){return I().animationConfig.name||""}})}}),_.a(_.E,{cond:function(){var I;
return c()&&!((I=g())==null?0:I.animation)},
then:function(){return _.a("div",{class:"yt-badge-shape__icon"},_.a(_.J4,{data:function(){return c()}}))}}),_.a("div",{class:_.o6("yt-badge-shape__text",(k["yt-badge-shape__text--clip-text-overflow"]=function(){return g().clipTextOverflow},k["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(g().numBadgesInRow||0)>1},k))},function(){var I;
return(I=g())==null?void 0:I.text}))},"Ea");
_.xG.idomCompat=!0;_.sL(_.xG,"badge-shape",{props:{data:_.jx}});var DR=function(){var e=_.z.apply(this,arguments)||this;e.systemIcons=_.G("kevlar_system_icons");e.animated=_.G("animated_live_badge_icon");e.useBadgeShape=_.G("web_badge_shape_defrag");return e};
_.Y(DR,_.z);_.v=DR.prototype;_.v.addTooltips=function(){for(var e=_.o1(this.hostElement).querySelectorAll(".badge"),g=0,c;c=e[g++];){var k=this.repeatElement.itemForElement(c);c=_.o1(c);c.lastChild&&c.lastChild.is==="tp-yt-paper-tooltip"&&c.removeChild(c.lastChild);if(k=k.metadataBadgeRenderer&&k.metadataBadgeRenderer.tooltip){var I=_.l7("tp-yt-paper-tooltip");(0,_.Bg)(I).textContent=k;I.setAttribute("position","top");I.setAttribute("aria-hidden","true");c.appendChild(I)}}};
_.v.badgesChanged=function(){var e=this;_.iE().parkOrScheduleJob(function(){e.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.v.standaloneRoundedBadgeChanged=function(){var e=this.useRoundedBadge?this.useRoundedBadge:void 0;e&&(this.useRoundedBadge=e)};
_.v.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.v.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.v.computeStyle=function(e){_.G("kevlar_ytb_live_badges")&&e==="BADGE_STYLE_TYPE_LIVE_NOW"&&(e="badge-style-type-live-now-alternate");return e?e.toLowerCase().replace(/_/g,"-"):""};
_.v.computeRole=function(e){return this.computeAriaLabel(e)?"img":"status"};
_.v.computeAriaLabel=function(e){var g;return(e==null?void 0:(g=e.accessibilityData)==null?void 0:g.label)||(e==null?void 0:e.label)};
_.v.computeBadgeShape=function(e){if(e){var g,c;var k=Bnp(e.style);var I=Nnq(e.style),J=e.label,q=((g=e.accessibilityData)==null?void 0:g.label)||e.label;a:switch(e.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":g=!0;break a;default:g=!1}var L=(c=e.icon)==null?void 0:c.iconType;a:switch(e.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":e=!0;break a;default:e=!1}k={type:k,brNzRatingBadgeType:I,text:J,accessibilityText:q,
isOverlay:g,icon:L!=="PREMIUM"?L:void 0,modern:_.G("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:e}}else k={};return k};
_.v.updateComputedBadges=function(e,g,c){var k=this;(g=g?[g]:c?[c]:void 0)?this.computedBadges=g:this.computedBadges=e==null?void 0:e.filter(function(I){var J;if((J=I.metadataBadgeRenderer)==null?0:J.groups){J=!1;I=_.w(I.metadataBadgeRenderer.groups);for(var q=I.next();!q.done;q=I.next()){q=q.value;var L=void 0;J=J||((L=k.hiddenBadgeGroups)==null?void 0:L.includes(q))}return!J}return!0})};
_.v.useFilledIcons=function(e){return _.G("kevlar_system_icons")&&(e==="AUDIO_BADGE"||e==="CHECK_CIRCLE_THICK"||e==="OFFICIAL_ARTIST_BADGE"||e==="SPONSORSHIP_STAR"||e==="PERSON_RADAR_FILLED"||e==="PERSON_RADAR")};
_.v.computeBadgeShapeStyle=function(e){return this.useBadgeShape?e==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||e==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":e==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.v.computeIcon=function(e){var g,c;e=e==null?void 0:(g=e.metadataBadgeRenderer)==null?void 0:(c=g.icon)==null?void 0:c.iconType;if(e!=="PREMIUM"&&e)return _.NY(e)};
_.v.computeStandaloneBadge=function(e){var g;e=e==null?void 0:(g=e.icon)==null?void 0:g.iconType;return e==="PREMIUM_STANDALONE"||e==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
DR.prototype.hiddenBadgeGroupsChanged=DR.prototype.hiddenBadgeGroupsChanged;DR.prototype.standaloneBadgeChanged=DR.prototype.standaloneBadgeChanged;DR.prototype.standaloneRoundedBadgeChanged=DR.prototype.standaloneRoundedBadgeChanged;DR.prototype.badgesChanged=DR.prototype.badgesChanged;_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],DR.prototype,"hidden",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],DR.prototype,"componentBehavior",void 0);
_.t([_.u(),_.B("design:type",Array)],DR.prototype,"badges",void 0);_.t([_.u(),_.B("design:type",Object)],DR.prototype,"topStandaloneBadge",void 0);_.t([_.u(),_.B("design:type",Object)],DR.prototype,"bottomStandaloneBadge",void 0);_.t([_.u(),_.B("design:type",Object)],DR.prototype,"computedBadges",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],DR.prototype,"mediumFontAdBadge",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],DR.prototype,"useRoundedBadge",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],DR.prototype,"largeFontAdBadge",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],DR.prototype,"overlayAd",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],DR.prototype,"overlayPremium",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],DR.prototype,"noDotAdBadge",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],DR.prototype,"collectionTruncate",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],DR.prototype,"isThumbnailBadge",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],DR.prototype,"wrapBadges",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Number)],DR.prototype,"numBadgesInRow",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],DR.prototype,"systemIcons",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],DR.prototype,"animated",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],DR.prototype,"useBadgeShape",void 0);_.t([_.u({value:[]}),_.B("design:type",Array)],DR.prototype,"hiddenBadgeGroups",void 0);_.t([_.Cs("#repeat"),_.B("design:type",aI)],DR.prototype,"repeatElement",void 0);_.t([_.k_("badges"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DR.prototype,"badgesChanged",null);
_.t([_.k_("useRoundedBadge"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DR.prototype,"standaloneRoundedBadgeChanged",null);_.t([_.k_("topStandaloneBadge","bottomStandaloneBadge"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DR.prototype,"standaloneBadgeChanged",null);_.t([_.k_("hiddenBadgeGroups"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DR.prototype,"hiddenBadgeGroupsChanged",null);
_.t([_.bF({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],DR);
var gRq=_.oI()(DR,"ytd-badge-supported-renderer",function(){if(eHM===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);eHM=e}e=eHM;return e},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:2});var $G=function(){var e=_.z.apply(this,arguments)||this;e.iconType="STAR";e.plaMedium=_.G("enable_pla_resizing_for_desktop_medium");e.plaLarge=_.G("enable_pla_resizing_for_desktop_large");e.plaExtraLarge=_.G("enable_pla_resizing_for_desktop_extra_large");e.standardizeIconSize=_.G("kevlar_system_icons");e.mediaHoverOverlayInitialVisibility=_.G("enable_top_landscape_image_button_command_web");e.noBottomMargin=!1;e.thumbnailObjectFit="CONTAIN";e.thumbnailFitHeight=!0;e.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return e};
_.Y($G,_.z);_.v=$G.prototype;_.v.created=function(){this.activeView=new Uc(this.hostElement)};
_.v.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",$G.JSC$15095_DEFAULT_CLICK_LOCATION_BEHAVIOR,$G.JSC$15095_CLICK_LOCATION_ID_MAP))};
_.v.onTap=function(e){this.onTapOrClick(e)};
_.v.onTapOrClick=function(e){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,e,!1)};
_.v.updateMediaBackgroundImage=function(){var e=this.get("data.image.thumbnail.thumbnails");e&&(e=_.F6(e,0))&&_.Nk(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+e+")"})};
_.v.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var e=0;e<this.data.impressionEndpoints.length;e++){var g=this.data.impressionEndpoints[e];g.clickTrackingParams&&delete g.clickTrackingParams;_.Ss().resolve(_.xk).resolveCommand(g,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var c;((c=this.data)==null?0:c.activeView)&&oG(this.activeView,this.data.activeView)}};
_.v.handleMuteAd=function(){};
_.v.attached=function(){var e=this;_.G("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZG(e.activeView)})};
_.v.detached=function(){_.G("stop_av_measurement_on_detach")&&ZG(this.activeView)};
_.Bd.Object.defineProperties($G.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.titleText)return"";var g;return _.C_("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((g=this.data)==null?void 0:g.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.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 e;return!((e=this.data)==null||!e.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"}}});
$G.prototype.onTap=$G.prototype.onTap;$G.prototype.dataChanged=$G.prototype.dataChanged;
$G.JSC$15095_CLICK_LOCATION_ID_MAP=_.G("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"]]);
$G.JSC$15095_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.G("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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.hz),_.B("design:type",Object)],$G.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],$G.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Fk.YtSparklesClickLocationBehavior),_.B("design:type",Object)],$G.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.m([_.Nr.YtActionHandlerBehavior]),_.B("design:type",Object)],$G.prototype,"actionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$G.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],$G.prototype,"clickCommand",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],$G.prototype,"miniMode",void 0);_.t([_.u(),_.B("design:type",String)],$G.prototype,"iconType",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$G.prototype,"plaMedium",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$G.prototype,"plaLarge",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$G.prototype,"plaExtraLarge",void 0);_.t([_.p("data.titleText"),_.B("design:type",String),_.B("design:paramtypes",[])],$G.prototype,"titleAriaLabel",null);_.t([_.p("data.rating"),_.B("design:type",Object),_.B("design:paramtypes",[])],$G.prototype,"getRating",null);_.t([_.p("data.price"),_.B("design:type",Object),_.B("design:paramtypes",[])],$G.prototype,"getPrice",null);
_.t([_.p("data.thirdLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],$G.prototype,"getThirdLine",null);_.t([_.p("data.fourthLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],$G.prototype,"getFourthLine",null);_.t([_.p("data.fifthLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],$G.prototype,"getFifthLine",null);_.t([_.p("getRating"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$G.prototype,"computeRatingHidden",null);
_.t([_.p("getPrice"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$G.prototype,"computePriceHidden",null);_.t([_.p("getThirdLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$G.prototype,"computeThirdLineHidden",null);_.t([_.p("getFourthLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$G.prototype,"computeFourthLineHidden",null);_.t([_.p("getFifthLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$G.prototype,"computeFifthLineHidden",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data.energyIcon"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$G.prototype,"hasEnergyIcon",null);_.t([_.p("computePriceHidden","computeRatingHidden"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$G.prototype,"computeSecondaryTextHidden",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$G.prototype,"standardizeIconSize",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$G.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$G.prototype,"noBottomMargin",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.layout"),_.B("design:type",String),_.B("design:paramtypes",[])],$G.prototype,"layout",null);_.t([_.p("data.layout"),_.B("design:type",Object),_.B("design:paramtypes",[])],$G.prototype,"mediaThumbnailWidth",null);
_.t([_.p("layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$G.prototype,"useRoundedBadge",null);_.t([_.u(),_.B("design:type",String)],$G.prototype,"thumbnailObjectFit",void 0);_.t([_.u(),_.B("design:type",Object)],$G.prototype,"thumbnailFitHeight",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$G.prototype,"dataChanged",null);
_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$G.prototype,"onTap",null);_.t([_.bF({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],$G);
_.U($G,"ytd-display-ad-renderer",function(){if(CRk!==void 0)return CRk;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return CRk=e},{mode:1});var cW4;var kEk;var IVv;var y1g=new Map;var JWq=!1;var YG=function(){var e=_.z.apply(this,arguments)||this;e.DEFAULT_TOOLTIP_OFFSET="10";e.TOOLTIP_OFFSET_NO_BANNER="-8";e.badges=null;e.noEndpoints=!1;e.wrapText=!1;e.forceVerified=!1;e.tooltipPosition="top";e.compactStyle=!1;e.height=0;e.lineHeight=0;return e};
_.Y(YG,_.z);_.v=YG.prototype;_.v.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.v.attached=function(){var e=this;this.observer=new MutationObserver(function(g,c){e.handleResized();c.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.v.detached=function(){this.observer&&this.observer.disconnect()};
_.v.logTooltipEvent=function(){_.G("kevlar_wiz_tooltip_event_killswitch")||JWq||(_.Klq("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),JWq=!0)};
_.v.handleWindowResized=function(){this.handleResized()};
_.v.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.v.onHeightChanged=function(){if(this.verified){var e=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.uo("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=e:this.textContainerEl.style.marginRight=e}};
_.v.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.uo("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.v.handleResized=function(){var e=this;this.verified&&_.ft.addLowPriorityJob(function(){e.fitBackgroundToText();var g=getComputedStyle(e.hostElement).lineHeight;g&&(g=g.match(/\d+/))&&g.length&&(e.lineHeight=Number(g[0]));e.height=e.lineHeight&&!e.wrapText?e.lineHeight:e.textEl.offsetHeight})};
_.v.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var e=document.createRange(),g=_.o1(this.textEl).children;g.length>0?e.selectNodeContents(g[0]):e.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(e.getBoundingClientRect().width)+"px"}};
_.v.computeChannelBadgeStyle=function(e){var g;if((e==null?0:(g=e.runs)==null?0:g.length)&&e.runs[0].textColor)return"--ytd-badge-icon-color:"+_.R1(e.runs[0].textColor)+";"};
_.Bd.Object.defineProperties(YG.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"?_.PL(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var e=this.get("badges.0.metadataBadgeRenderer.tooltip");if(e)return e}return _.mp(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
YG.prototype.onLineHeightChanged=YG.prototype.onLineHeightChanged;YG.prototype.onHeightChanged=YG.prototype.onHeightChanged;YG.prototype.onChannelNameChanged=YG.prototype.onChannelNameChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],YG.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],YG.prototype,"badges",void 0);_.t([_.u(),_.B("design:type",Object)],YG.prototype,"channelName",void 0);
_.t([_.u(),_.B("design:type",Object)],YG.prototype,"noEndpoints",void 0);_.t([_.u(),_.B("design:type",Object)],YG.prototype,"wrapText",void 0);_.t([_.u(),_.B("design:type",Object)],YG.prototype,"forceVerified",void 0);_.t([_.u(),_.B("design:type",Object)],YG.prototype,"tooltipPosition",void 0);_.t([_.u(),_.B("design:type",String)],YG.prototype,"tooltip",void 0);_.t([_.u(),_.B("design:type",Boolean)],YG.prototype,"hasChannelArt",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],YG.prototype,"compactStyle",void 0);_.t([_.Cs("#text-container"),_.B("design:type",HTMLElement)],YG.prototype,"textContainerEl",void 0);_.t([_.Cs("#text"),_.B("design:type",Object)],YG.prototype,"textEl",void 0);_.t([_.Cs("#verified-tooltip"),_.B("design:type",HTMLElement)],YG.prototype,"verifiedTooltip",void 0);_.t([_.u(),_.B("design:type",Object)],YG.prototype,"height",void 0);
_.t([_.u(),_.B("design:type",Object)],YG.prototype,"lineHeight",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("badges","forceVerified"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],YG.prototype,"verified",null);_.t([_.p("badges","verified"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],YG.prototype,"hideBadges",null);_.t([_.p("channelName"),_.B("design:type",Object),_.B("design:paramtypes",[])],YG.prototype,"formattedName",null);
_.t([_.p("badges","verified","formattedName"),_.B("design:type",String),_.B("design:paramtypes",[])],YG.prototype,"tooltipText",null);_.t([_.p("hasChannelArt"),_.B("design:type",String),_.B("design:paramtypes",[])],YG.prototype,"tooltipOffset",null);_.t([_.OY("channelName"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YG.prototype,"onChannelNameChanged",null);
_.t([_.OY("height"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YG.prototype,"onHeightChanged",null);_.t([_.OY("lineHeight","height"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YG.prototype,"onLineHeightChanged",null);_.t([_.bF({is:"ytd-channel-name",disableElementRegistration:!0})],YG);
_.U(YG,"ytd-channel-name",function(){if(IVv!==void 0)return IVv;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return IVv=e},{mode:2});var fj=function(){var e=_.z.apply(this,arguments)||this;e.standardizeIconSize=_.G("kevlar_system_icons");return e};
_.Y(fj,_.z);fj.prototype.basicPaletteChanged=function(){var e;(e=this.data.color)!=null&&e.basicColorPaletteData&&_.vO(this.hostElement,this.data.color.basicColorPaletteData)};
fj.prototype.useFilledIcons=function(e){return _.G("kevlar_system_icons")&&(e==="CHECK_CIRCLE_THICK"||e==="OFFICIAL_ARTIST_BADGE")};
_.Bd.Object.defineProperties(fj.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return this.data.authorCreator||((e=this.data)==null?void 0:(g=e.color)==null?void 0:(c=g.basicColorPaletteData)==null?void 0:c.backgroundColor)}}});
fj.prototype.basicPaletteChanged=fj.prototype.basicPaletteChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fj.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],fj.prototype,"standardizeIconSize",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.authorUnifiedVerified"),_.B("design:type",Object),_.B("design:paramtypes",[])],fj.prototype,"verified",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],fj.prototype,"creator",null);_.t([_.OY("data.color.basicColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fj.prototype,"basicPaletteChanged",null);_.t([_.bF({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],fj);
_.U(fj,"ytd-author-comment-badge-renderer",function(){if(kEk!==void 0)return kEk;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return kEk=e},{mode:1});var vRv;var jI=function(){return _.z.apply(this,arguments)||this};
_.Y(jI,_.z);jI.prototype.computeThumbnailWidth=function(e){if(e==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],jI.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],jI.prototype,"data",void 0);_.t([_.u({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],jI.prototype,"icon",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],jI.prototype,"surface",void 0);
_.t([_.u({reflectToAttribute:!0,value:_.G("enable_shrink_image_size_on_web_posts_singleton")}),_.B("design:type",Boolean)],jI.prototype,"searchSxsUx",void 0);_.t([_.u({reflectToAttribute:!0,value:_.G("enable_community_page_on_desktop")}),_.B("design:type",Boolean)],jI.prototype,"useSmallerPostImageAttachments",void 0);_.t([_.bF({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],jI);
_.U(jI,"ytd-backstage-image-renderer",function(){if(vRv!==void 0)return vRv;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return vRv=e},{mode:1});var wfI;var iA=function(){var e=_.z.apply(this,arguments)||this;e.isLoading=!1;e.selectedItemIndex=-1;return e};
_.Y(iA,_.z);_.v=iA.prototype;_.v.computeIsChannelOwner=function(e){if(!e)return!0;e=e[0];return!(e&&(e.signinEndpoint||e.selectServiceEndpoint))};
_.v.computeIsImagePoll=function(e){return(e==null?void 0:e.type)==="POLL_TYPE_IMAGE"};
_.v.computeIsTotalVotesDisabled=function(e){return!(e==null?0:e.totalVotes)};
_.v.thumbnailSrc=function(e){var g,c,k,I;return(e==null?0:(g=e.thumbnails)==null?0:(c=g[0])==null?0:c.url)?_.Km((k=e.thumbnails)==null?void 0:(I=k[0])==null?void 0:I.url):void 0};
_.v.progressWidth=function(e){return"width:"+(e?e*100:0)+"%;"};
_.v.textAreaWidth=function(e){return this.isImagePoll?null:"width:"+(e?e*100:0)+"%;"};
_.v.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.v.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var e=this.data.choices,g=0;g<e.length;g++)if(e[g].selected){this.selectedItemIndex=g;break}};
_.v.onPopupClosed=function(e,g){e=Number(this.pollVotes.selected);g.confirmed&&(this.selectChoice(e,!1),_.Z5(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.v.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.v.onYtCommentPollRevert=function(e,g){g&&(this.selectChoice(g.selectedChoiceIndex,!0),this.set("data.totalVotes",g.totalVotes))};
_.v.onYtServiceRequestSent=function(e,g){if(g.actions)for(e=0;e<g.actions.length;e++){var c=g.actions[e];_.x(c,cU)&&this.set("data.totalVotes",_.x(c,cU).totalVotes)}};
_.v.onYtServiceRequestCompleted=function(e){var g=this.get("detail.data.actionResults.0.feedback",e);e=this.get("detail.data.actionResults.0.status",e);if(g==="FEEDBACK_DESELECT"||g==="FEEDBACK_SELECT")this.isLoading=!1,e==="STATUS_FAILED"?_.oC(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.v.getEndpoint=function(e,g){return g===e?this.data.choices[g].deselectServiceEndpoint||null:this.data.choices[e].selectServiceEndpoint||null};
_.v.selectChoice=function(e,g){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var c=0;c<this.data.choices.length;c++){var k;if(e===this.selectedItemIndex){var I=!1;var J=k=null}else k=(I=c===e)?this.data.choices[c].voteRatioIfSelected:this.data.choices[c].voteRatioIfNotSelected,J=I?this.data.choices[c].votePercentageIfSelected:this.data.choices[c].votePercentageIfNotSelected;this.set("data.choices."+c+".voteRatio",k);
this.set("data.choices."+c+".votePercentage",J);this.set("data.choices."+c+".selected",I)}g||(this.isLoading=!0,(g=this.getEndpoint(e,this.selectedItemIndex))&&_.Ss().resolve(_.xk).resolveCommand(g,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===e?-1:e};
_.Bd.Object.defineProperties(iA.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
iA.prototype.onYtServiceRequestCompleted=iA.prototype.onYtServiceRequestCompleted;iA.prototype.onYtServiceRequestSent=iA.prototype.onYtServiceRequestSent;iA.prototype.onYtCommentPollRevert=iA.prototype.onYtCommentPollRevert;iA.prototype.onPopupClosed=iA.prototype.onPopupClosed;iA.prototype.dataChanged=iA.prototype.dataChanged;_.t([_.m(_.jJ),_.B("design:type",Object)],iA.prototype,"paperItemBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],iA.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],iA.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],iA.prototype,"isLoading",void 0);_.t([_.u({computed:"computeIsChannelOwner(data.choices)"}),_.B("design:type",Boolean)],iA.prototype,"isChannelOwner",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.B("design:type",Boolean)],iA.prototype,"isImagePoll",void 0);_.t([_.u({computed:"computeIsTotalVotesDisabled(data)"}),_.B("design:type",Boolean)],iA.prototype,"isTotalVotesDisabled",void 0);_.t([_.u(),_.B("design:type",Object)],iA.prototype,"previousPollInfo",void 0);_.t([_.u(),_.B("design:type",Object)],iA.prototype,"selectedItemIndex",void 0);_.t([_.Cs("#poll-votes"),_.B("design:type",Object)],iA.prototype,"pollVotes",void 0);
_.t([_.p("isChannelOwner"),_.B("design:type",Object),_.B("design:paramtypes",[])],iA.prototype,"endpointStyle",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iA.prototype,"dataChanged",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],iA.prototype,"onPopupClosed",null);
_.t([_.Ks("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],iA.prototype,"onYtCommentPollRevert",null);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],iA.prototype,"onYtServiceRequestSent",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],iA.prototype,"onYtServiceRequestCompleted",null);_.t([_.bF({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],iA);
_.U(iA,"ytd-backstage-poll-renderer",function(){if(wfI!==void 0)return wfI;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option" aria-selected$="[[item.selected]]">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return wfI=e},{mode:2});var qrv;var Lfs={autoplay:!1,loop:!1},rWB={simpleText:""},PI=function(){var e=_.z.apply(this,arguments)||this;e.isLoading=!1;e.usesPanelLockup=!1;e.selectedItemIndex=-1;e.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Lfs,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});e.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Lfs,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});e.correctnessAnimationProps=[];e.correctnessAnimationRefs=[];return e};
_.Y(PI,_.z);_.v=PI.prototype;_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.v.computeIsChannelOwner=function(e){if(!e)return!0;e=e[0];return!(e&&(e.signinEndpoint||e.selectServiceEndpoint))};
_.v.computeIsTotalVotesDisabled=function(e){return!(e==null?0:e.totalVotes)};
_.v.computeIsImageQuiz=function(e){return(e==null?void 0:e.type)==="POLL_TYPE_IMAGE"};
_.v.onExplanationChanged=function(){this.expander.reset()};
_.v.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var e=this.data.choices;if(e){this.maybeInitializeQuizLotties(e);for(var g=0;g<e.length;g++)if(e[g].isSelected||this.isChannelOwner&&e[g].isCorrect){this.selectedItemIndex=g;return}this.selectedItemIndex=-1}}};
_.v.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var e=this.selectedItemIndex,g=Number(this.quizVotes.selected);this.selectChoice(g);this.sendVoteAction(g,e);this.quizVotes.selected=-1;var c;e=!((c=this.data)==null?0:c.enableAnimation);this.maybePlayAnswerAnimations(e)}};
_.v.onYtCommentPollRevert=function(e,g){g&&(this.selectChoice(g.selectedChoiceIndex),this.set("data.totalVotes",g.totalVotes))};
_.v.onYtServiceRequestSent=function(e,g){if(g.actions)for(e=_.w(g.actions),g=e.next();!g.done;g=e.next())(g=_.x(g.value,cU))&&this.set("data.totalVotes",g.totalVotes)};
_.v.onYtServiceRequestCompleted=function(e){var g=this.get("detail.data.actionResults.0.feedback",e);e=this.get("detail.data.actionResults.0.status",e);if(g==="FEEDBACK_DESELECT"||g==="FEEDBACK_SELECT")this.isLoading=!1,e==="STATUS_FAILED"?_.oC(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.v.getAnimationPropsForChoiceIndex=function(e,g){return g[e]};
_.v.maybePlayAnswerAnimations=function(e){e=e===void 0?!1:e;var g;if((g=this.data)!=null&&g.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){g=_.w(this.correctnessAnimationRefs);for(var c=g.next();!c.done;c=g.next()){var k=void 0,I=void 0;(k=c.value)==null||(I=k.lottieEl)==null||I.stop()}if(!(this.selectedItemIndex<0)){g=0;e&&(g=this.isCorrect?37:25);var J,q;(J=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(q=J.lottieEl)==null||q.goToAndPlay(e?g:0,!0);if(!(this.isCorrect||
(J=this.data.choices.findIndex(function(W){return W.isCorrect}),J<0))){var L,n;
(n=(L=this.correctnessAnimationRefs[J])==null?void 0:L.lottieEl)==null||n.goToAndPlay(37,!0);var R;L=(R=this.fadeContainers)==null?void 0:R.item(J);!e&&L&&this.fadeIn(L)}}}};
_.v.thumbnailSrc=function(e){var g,c,k,I;return(e==null?0:(g=e.thumbnails)==null?0:(c=g[0])==null?0:c.url)?_.Km((k=e.thumbnails)==null?void 0:(I=k[0])==null?void 0:I.url):void 0};
_.v.a11yVotedText=function(e,g){var c,k,I=((c=this.data)==null?void 0:(k=c.correctVotedText)==null?void 0:k.simpleText)||"",J,q;c=((J=this.data)==null?void 0:(q=J.votedText)==null?void 0:q.simpleText)||"";if(!g)return"";var L,n;if((L=this.data)==null?0:(n=L.choices)==null?0:n[e].isCorrect)return I;var R,W;return((R=this.data)==null?0:(W=R.choices)==null?0:W[e].isSelected)?c:""};
_.v.getEndpoint=function(e,g){return g===e?this.data.choices[e].deselectServiceEndpoint||null:this.data.choices[e].selectServiceEndpoint||null};
_.v.sendVoteAction=function(e,g){if(e=this.getEndpoint(e,g))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(e)};
_.v.selectChoice=function(e){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var g=0;g<this.data.choices.length;g++)this.set("data.choices."+g+".isSelected",e===this.selectedItemIndex?!1:g===e);this.selectedItemIndex=this.selectedItemIndex===e?-1:e};
_.v.maybeInitializeQuizLotties=function(e){var g=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=e.map(function(c){return{animationConfig:c.isCorrect?g.baseCorrectLottiePlayerAnimationConfig:g.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){g.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(c){return c.animationRef||{}})};
_.v.fadeIn=function(e){e.classList.add("fade-in");_.HT(_.ft,function(){e.classList.remove("fade-in")},900)};
_.Bd.Object.defineProperties(PI.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.G("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.mp(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 e,g;return((e=this.data)==null?void 0:(g=e.choices)==null?void 0:g.some(function(c){return c.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null||!e.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?rWB:this.data.choices[this.selectedItemIndex].explanation||rWB}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null||!e.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
PI.prototype.onYtServiceRequestCompleted=PI.prototype.onYtServiceRequestCompleted;PI.prototype.onYtServiceRequestSent=PI.prototype.onYtServiceRequestSent;PI.prototype.onYtCommentPollRevert=PI.prototype.onYtCommentPollRevert;PI.prototype.dataChanged=PI.prototype.dataChanged;PI.prototype.onExplanationChanged=PI.prototype.onExplanationChanged;_.t([_.m(_.jJ),_.B("design:type",Object)],PI.prototype,"paperItemBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],PI.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.TG.YtTaskEmitterBehavior),_.B("design:type",Object)],PI.prototype,"ytTaskEmitterBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],PI.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],PI.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],PI.prototype,"isLoading",void 0);_.t([_.u(),_.B("design:type",Object)],PI.prototype,"usesPanelLockup",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.B("design:type",Boolean)],PI.prototype,"isChannelOwner",void 0);_.t([_.u({computed:"computeIsTotalVotesDisabled(data)"}),_.B("design:type",Boolean)],PI.prototype,"isTotalVotesDisabled",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.B("design:type",Boolean)],PI.prototype,"isImageQuiz",void 0);_.t([_.u(),_.B("design:type",Object)],PI.prototype,"previousQuizInfo",void 0);_.t([_.u(),_.B("design:type",Object)],PI.prototype,"selectedItemIndex",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data","usesPanelLockup"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PI.prototype,"shouldUseModernUi",null);
_.t([_.eY(".fade-container"),_.B("design:type",Object)],PI.prototype,"fadeContainers",void 0);_.t([_.u(),_.B("design:type",Array)],PI.prototype,"correctnessAnimationProps",void 0);_.t([_.p("explanation","showCorrectAnswer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PI.prototype,"showExplanation",null);_.t([_.p("isChannelOwner","isAttempted"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PI.prototype,"showCorrectAnswer",null);
_.t([_.p("isChannelOwner","isAttempted","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PI.prototype,"isQuizAnsweringDisabled",null);_.t([_.p("isQuizAnsweringDisabled"),_.B("design:type",Object),_.B("design:paramtypes",[])],PI.prototype,"endpointStyle",null);_.t([_.p("data","selectedItemIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PI.prototype,"isAttempted",null);
_.t([_.p("data","selectedItemIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],PI.prototype,"explanation",null);_.t([_.p("data","selectedItemIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PI.prototype,"isCorrect",null);_.t([_.Cs("ytd-expander"),_.B("design:type",Object)],PI.prototype,"expander",void 0);_.t([_.Cs("#quiz-votes"),_.B("design:type",Object)],PI.prototype,"quizVotes",void 0);
_.t([_.OY("explanation"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PI.prototype,"onExplanationChanged",null);_.t([_.OY("data","isChannelOwner"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PI.prototype,"dataChanged",null);_.t([_.Ks("yt-comment-quiz-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],PI.prototype,"onYtCommentPollRevert",null);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],PI.prototype,"onYtServiceRequestSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],PI.prototype,"onYtServiceRequestCompleted",null);_.t([_.bF({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],PI);
_.U(PI,"ytd-backstage-quiz-renderer",function(){if(qrv!==void 0)return qrv;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class="correctness-lottie style-scope ytd-backstage-quiz-renderer" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return qrv=e},{mode:1});var aVY;var mw=function(){return _.z.apply(this,arguments)||this};
_.Y(mw,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],mw.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],mw.prototype,"data",void 0);_.t([_.bF({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],mw);
_.U(mw,"ytd-post-uploaded-video-renderer",function(){if(aVY!==void 0)return aVY;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return aVY=e},{mode:1});var nR1;var pj=function(){return _.z.apply(this,arguments)||this};
_.Y(pj,_.z);pj.prototype.useFilledIcons=function(e){return e==="SPONSORSHIP_STAR"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],pj.prototype,"data",void 0);_.t([_.bF({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],pj);
var RHk=_.oI()(pj,"ytd-sponsors-only-badge-renderer",function(){if(nR1===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);nR1=e}e=nR1;return e},{allowedProps:["data"],
mode:1});var ERB;var TO=function(){return _.z.apply(this,arguments)||this};
_.Y(TO,_.z);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],TO.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],TO.prototype,"data",void 0);_.t([_.bF({is:"ytd-child-video-renderer",disableElementRegistration:!0})],TO);
_.U(TO,"ytd-child-video-renderer",function(){if(ERB!==void 0)return ERB;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ERB=e},{mode:1});var WfB;var blw;var lA=function(){var e=_.z.apply(this,arguments)||this;e.size=0;e.fallbackImageSize={height:void 0,width:9999};e.webModernCollections=!1;return e};
_.Y(lA,_.z);_.v=lA.prototype;_.v.computeBlurredImageSize=function(e){return e?{height:e*2,width:e*2}:this.fallbackImageSize};
_.v.computeImageSize=function(e){return e?{height:e,width:e}:this.fallbackImageSize};
_.v.computeObjectFit=function(e){return e?"FILL":"CONTAIN"};
_.v.computePreserve=function(e){return e?!0:!1};
_.v.setBackground=function(){var e,g;if((e=this.data)==null?0:(g=e.thumbnail)==null?0:g.sampledThumbnailColor)e=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+e.red+","+e.green+","+e.blue+",1)"};
lA.prototype.setBackground=lA.prototype.setBackground;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],lA.prototype,"watchFeedThumbnail",void 0);_.t([_.u(),_.B("design:type",Object)],lA.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],lA.prototype,"size",void 0);
_.t([_.u({computed:"computeBlurredImageSize(size)"}),_.B("design:type",Object)],lA.prototype,"blurredImageSize",void 0);_.t([_.u({computed:"computeImageSize(size)"}),_.B("design:type",Object)],lA.prototype,"imageSize",void 0);_.t([_.u({computed:"computePreserve(size)"}),_.B("design:type",String)],lA.prototype,"preserve",void 0);_.t([_.u({computed:"computeObjectFit(size)"}),_.B("design:type",String)],lA.prototype,"objectFit",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],lA.prototype,"webModernCollections",void 0);_.t([_.OY("data.thumbnail.sampledThumbnailColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lA.prototype,"setBackground",null);_.t([_.bF({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],lA);
_.U(lA,"ytd-playlist-custom-thumbnail-renderer",function(){if(blw!==void 0)return blw;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return blw=e},{mode:1});var hHB;var AT=function(){return _.z.apply(this,arguments)||this};
_.Y(AT,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],AT.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Number)],AT.prototype,"width",void 0);_.t([_.bF({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],AT);
_.U(AT,"ytd-playlist-video-thumbnail-renderer",function(){if(hHB!==void 0)return hHB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return hHB=e},{mode:1});var XfB;var sw=function(){return _.z.apply(this,arguments)||this};
_.Y(sw,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],sw.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Number)],sw.prototype,"width",void 0);_.t([_.bF({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],sw);
_.U(sw,"ytd-show-custom-thumbnail-renderer",function(){if(XfB!==void 0)return XfB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return XfB=e},{mode:1});var GEI;var Fh=function(){return _.z.apply(this,arguments)||this};
_.Y(Fh,_.z);Fh.prototype.useFilledIcons=function(e){return e==="MUSIC"||e==="COURSE"};
Fh.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Wg(this.overlayColor,"0.8");else if(this.overlayColor){var e=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+e.red+","+e.green+","+e.blue+",0.8)"}};
_.Bd.Object.defineProperties(Fh.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)}}});
Fh.prototype.overlayColorChanged=Fh.prototype.overlayColorChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Fh.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Fh.prototype,"overlayColor",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.icon","data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fh.prototype,"overlayStyle",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data.icon","data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fh.prototype,"overlayTextStyle",null);_.t([_.OY("overlayColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fh.prototype,"overlayColorChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Fh);
_.U(Fh,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(GEI!==void 0)return GEI;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return GEI=e},{mode:1});var x44;var uA=function(){var e=_.z.apply(this,arguments)||this;e.active=!1;return e};
_.Y(uA,_.z);uA.prototype.computeIsSpinnerHidden=function(e){return(e==null?void 0:e.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
uA.prototype.computeOverlayIcon=function(e){return(e==null?void 0:e.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(e==null?void 0:e.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],uA.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],uA.prototype,"active",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],uA);
_.U(uA,"ytd-thumbnail-overlay-downloading-renderer",function(){if(x44!==void 0)return x44;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return x44=e},{mode:1});var D4k;var dC=function(){return _.z.apply(this,arguments)||this};
_.Y(dC,_.z);_.Bd.Object.defineProperties(dC.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],dC.prototype,"data",void 0);_.t([_.p("data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],dC.prototype,"text",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],dC);
_.U(dC,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(D4k!==void 0)return D4k;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return D4k=e},{mode:1});var $4q,YrZ=function(){if($4q!==void 0)return $4q;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return $4q=e};var zO=function(){return _.z.apply(this,arguments)||this};
_.Y(zO,_.z);_.Bd.Object.defineProperties(zO,{template:{configurable:!0,enumerable:!0,get:function(){return YrZ()}}});
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],zO.prototype,"animateEqualizer",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],zO);_.oI()(zO,"ytd-thumbnail-overlay-equalizer",function(){return YrZ()},{allowedProps:["animateEqualizer"],
mode:1});var fVY;var HI=function(){var e=_.z.apply(this,arguments)||this;e.nowPlayingBadge=_.G("web_now_playing_badge");e.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return e};
_.Y(HI,_.z);HI.prototype.activeChanged=function(){var e=this;_.G("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Va(this,function(){_.oC(e.hostElement,"yt-playlist-lockup-now-playing-active",e)})};
HI.prototype.onMiniplayerPlayStateChanged=function(e){var g,c=(g=_.x(_.eM().currentEndpoint,_.Pm))==null?void 0:g.videoId;this.isVideoPlaying=e&&(_.G("web_limit_now_playing_animation_killswitch")||this.videoId===c)};
HI.prototype.activeChanged=HI.prototype.activeChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],HI.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],HI.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],HI.prototype,"isVideoPlaying",void 0);_.t([_.u(),_.B("design:type",String)],HI.prototype,"videoId",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],HI.prototype,"equalizerOnly",void 0);_.t([_.u(),_.B("design:type",Boolean)],HI.prototype,"isActive",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],HI.prototype,"nowPlayingBadge",void 0);_.t([_.OY("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HI.prototype,"activeChanged",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],HI);
_.U(HI,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(fVY!==void 0)return fVY;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return fVY=e},{mode:1});var jkM;var QL=function(){return _.z.apply(this,arguments)||this};
_.Y(QL,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],QL.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],QL);
_.U(QL,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(jkM!==void 0)return jkM;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return jkM=e},{mode:2});var ilk;var Uw=function(){return _.z.apply(this,arguments)||this};
_.Y(Uw,_.z);Uw.prototype.onDurationChanged=function(){var e,g;_.o1(this.hostElement).querySelector("#progress").style.width=((g=(e=this.data)==null?void 0:e.percentDurationWatched)!=null?g:0)+"%"};
Uw.prototype.onDurationChanged=Uw.prototype.onDurationChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Uw.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Uw.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Uw.prototype,"isLive",void 0);_.t([_.OY("data.percentDurationWatched"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"onDurationChanged",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Uw);
_.U(Uw,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(ilk!==void 0)return ilk;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ilk=e},{mode:1});var PxB;var oL=function(){var e=_.z.apply(this,arguments)||this;e.bottomPanel=!1;e.richGridOverlay=!1;e.watchFeedOverlay=!1;e.isCompact=!1;return e};
_.Y(oL,_.z);oL.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Bd.Object.defineProperties(oL.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:(g=e.icon)==null?void 0:g.iconType)==="PLAY_ALL"&&_.G("kevlar_system_icons")}}});
oL.prototype.widthChanged=oL.prototype.widthChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],oL.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],oL.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Number)],oL.prototype,"width",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],oL.prototype,"bottomPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],oL.prototype,"richGridOverlay",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],oL.prototype,"watchFeedOverlay",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],oL.prototype,"isCompact",void 0);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oL.prototype,"isIconFilled",null);_.t([_.OY("width","watchFeedOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oL.prototype,"widthChanged",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],oL);
_.U(oL,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(PxB!==void 0)return PxB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return PxB=e},{mode:1});var m4w;var pfn=["CLIP","SHORTS"],ZR=function(){var e=_.z.apply(this,arguments)||this;e.animated=_.G("animated_live_badge_icon");e.hasIcon=!1;e.updateTimerIntervalId=0;e.timeSinceLive=0;return e};
_.Y(ZR,_.z);_.v=ZR.prototype;_.v.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.v.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.v.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.v.hasIconOrText=function(){var e,g;return!!(((e=this.data)==null?0:e.icon)||((g=this.data)==null?0:g.text))};
_.v.initializeLiveBadgeTimer=function(){var e=this,g,c=(g=this.liveBadgeData)==null?void 0:g.startTimestampSec;if(c&&this.canShowLiveBadgeTimer()){var k;g=Number((k=this.liveBadgeData)==null?void 0:k.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(c);this.updateTimerIntervalId=_.I$(function(){e.canShowLiveBadgeTimer()?e.timeSinceLive++:(e.timeSinceLive=0,window.clearInterval(e.updateTimerIntervalId))},g)}else this.timeSinceLive=0};
_.v.canShowLiveBadgeTimer=function(){var e=Date.now(),g,c;return e<(Number((g=this.liveBadgeData)==null?void 0:g.endTimestampSec)-1)*1E3&&e>Number((c=this.liveBadgeData)==null?void 0:c.startTimestampSec)*1E3};
_.Bd.Object.defineProperties(ZR.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.O5C(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.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 pfn.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
ZR.prototype.initializeLiveBadgeTimer=ZR.prototype.initializeLiveBadgeTimer;ZR.prototype.dataChanged=ZR.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],ZR.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ZR.prototype,"data",void 0);_.t([_.u({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],ZR.prototype,"icon",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],ZR.prototype,"animated",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.B("design:type",Boolean)],ZR.prototype,"hideTimeStatus",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ZR.prototype,"hasIcon",void 0);_.t([_.u(),_.B("design:type",Object)],ZR.prototype,"timeSinceLive",void 0);_.t([_.p("data","timeSinceLive"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZR.prototype,"badgeShapeData",null);
_.t([_.p("data","overlayType"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ZR.prototype,"hideBadgeShape",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZR.prototype,"dataChanged",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZR.prototype,"overlayStyle",null);
_.t([_.p("data.liveBadgeData"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZR.prototype,"liveBadgeData",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.type"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZR.prototype,"overlayType",null);_.t([_.p("overlayType","overlayStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ZR.prototype,"useFilledIcon",null);
_.t([_.k_("liveBadgeData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZR.prototype,"initializeLiveBadgeTimer",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],ZR);
_.U(ZR,"ytd-thumbnail-overlay-time-status-renderer",function(){if(m4w!==void 0)return m4w;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return m4w=e},{mode:2});var TAw;var VL=function(){return _.z.apply(this,arguments)||this};
_.Y(VL,_.z);VL.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"}}}}};
VL.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(e){if(this.hasPlaybackProgressBar)return{percentDurationWatched:e.percentDurationWatched}};
VL.prototype.computeHasPlaybackProgressBar=function(e){return!!e.percentDurationWatched&&e.percentDurationWatched>0};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],VL.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.B("design:type",Boolean)],VL.prototype,"hasPlaybackProgressBar",void 0);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],VL);
_.U(VL,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(TAw!==void 0)return TAw;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return TAw=e},{mode:1});var lVv;var AWM=_.H(function(e){var g=e.data;var c=e.children;var k=function(){return!!g().doubleStack},I=function(){return!!g().includeStackHeight};
return _.a("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!g().experimentEnabled}},_.a(_.E,{cond:g,
then:function(){var J={};return _.a(_.es,null,_.a(_.E,{cond:I,then:function(){var q={};return _.a("div",{class:_.o6("ytCollectionsStackSpacer",(q.ytCollectionsStackSpacerDoubleStack=k,q))})}}),_.a("div",{class:_.o6((J.ytCollectionsStackRelativeStack=I,J))},_.a(_.E,{cond:k,
then:function(){var q={};return _.a("div",{class:_.o6("ytCollectionsStackCollectionStack2",function(){return g().customClassName2ndStack},(q.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return g().enableResponsiveMode},q)),
style:_.N2({"background-color":function(){return CRq(g())}})})}}),_.a("div",{class:_.o6("ytCollectionsStackCollectionStack1",function(){return g().customClassName1stStack},function(){return MBC(g().thumbnailSize?g().thumbnailSize:"medium")}),
style:_.N2({"background-color":function(){return CRq(g())}})}),c))}}))},"Fa");_.sL(AWM,"yt-collections-stack",{props:{data:_.jx}});var tT=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};e.webModernCollections=!1;e.isSearch=!1;e.isDoubleStack=!1;e.thumbnailSize="medium";return e};
_.Y(tT,_.z);_.v=tT.prototype;
_.v.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.v.getThumbnailDetails=function(e){if(e!=null&&e.thumbnailRenderer){var g=e.thumbnailRenderer,c;if((c=g.playlistVideoThumbnailRenderer)==null?0:c.thumbnail)return g.playlistVideoThumbnailRenderer.thumbnail;var k;if((k=g.playlistCustomThumbnailRenderer)==null?0:k.thumbnail)return g.playlistCustomThumbnailRenderer.thumbnail;e=e.thumbnailRenderer;var I;if((I=e.showCustomThumbnailRenderer)==null?0:I.thumbnail)return e.showCustomThumbnailRenderer.thumbnail}};
_.v.computeOverlayColor=function(e){var g,c;if((g=this.getThumbnailDetails(e))==null?0:(c=g.darkColorPalette)==null?0:c.section2Color)return this.getThumbnailDetails(e).darkColorPalette.section2Color;var k;return(k=this.getThumbnailDetails(e))==null?void 0:k.sampledThumbnailColor};
_.v.computeWebModernCollections=function(e){if(e==null||!e.thumbnailOverlays)return!1;e=_.w(e.thumbnailOverlays);for(var g=e.next();!g.done;g=e.next()){var c=void 0;if((c=g.value)==null?0:c.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.v.computeNavigationEndpoint=function(e){return AFz(e==null?void 0:e.navigationEndpoint)};
_.Bd.Object.defineProperties(tT.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var e=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:e==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:e==null?void 0:e.vibrantColorPalette,darkColorPalette:e==null?void 0:e.darkColorPalette,experimentEnabled:!0}}}});
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],tT.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(UC1),_.B("design:type",Object)],tT.prototype,"ytdThumbnailBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],tT.prototype,"componentBehavior",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],tT.prototype,"watchFeedThumbnail",void 0);_.t([_.u(),_.B("design:type",Number)],tT.prototype,"customThumbnailSize",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],tT.prototype,"hideAria",void 0);_.t([_.u(),_.B("design:type",Object)],tT.prototype,"data",void 0);_.t([_.u({computed:"computeOverlayColor(data)"}),_.B("design:type",Object)],tT.prototype,"overlayColor",void 0);
_.t([_.u({computed:"computeWebModernCollections(data)"}),_.B("design:type",Object)],tT.prototype,"webModernCollections",void 0);_.t([_.u({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],tT.prototype,"computedNavigationEndpoint",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],tT.prototype,"isSearch",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],tT.prototype,"isDoubleStack",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],tT.prototype,"thumbnailSize",void 0);_.t([_.p("data","isDoubleStack","thumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],tT.prototype,"collectionStack",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],tT);
_.U(tT,"ytd-playlist-thumbnail",function(){if(lVv!==void 0)return lVv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return lVv=e},{mode:2});var skv;_.sL(_.H(function(e){return _.a("yt-text-view-model",{class:_.o6("ytTextViewModelHost")},_.a(_.fa,{text:function(){return e.data().text}}))},"Ga"),"yt-text-view-model",{props:{data:_.jx}});var BI=function(){var e=_.z.apply(this,arguments)||this;e.noEndpoints=!1;e.amsterdamPostMvp=_.G("web_amsterdam_post_mvp_playlists");e.badges=[];e.transferState="TRANSFER_STATE_UNKNOWN";return e};
_.Y(BI,_.z);_.v=BI.prototype;_.v.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.v.getMetadata=function(e){if(!e)return[];var g=[],c=e.shortViewCountText||e.viewCountText;c&&g.push(_.mp(c));e.publishedTimeText&&g.push(_.mp(e.publishedTimeText));e.upcomingEventData&&e.upcomingEventData.upcomingEventText&&g.push(_.vY(_.mp(e.upcomingEventData.upcomingEventText),Number(e.upcomingEventData.startTime)));return g};
_.v.observeDataForBylineSeparator=function(){this.data&&_.Vg(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.v.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.R1(this.metadataColor)};
_.v.getSimpleString=function(e){return _.mp(e)};
_.v.isBylineHidden=function(e){return this.noByline||!((e==null?0:e.longBylineText)||(e==null?0:e.shortBylineText))};
_.v.isMetadataHidden=function(e){var g;return((g=this.getMetadata(e))==null?void 0:g.length)===0};
_.v.isBylineMetadataSeparatorHidden=function(e){return this.isMetadataHidden(e)||!this.shouldShowVideoInfo};
_.v.isLongByline=function(e,g){return g&&!(e==null||!e.longBylineText)};
_.Bd.Object.defineProperties(BI.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var e;return this.amsterdamPostMvp&&!((e=this.data)==null||!e.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.G("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
BI.prototype.metadataColorChanged=BI.prototype.metadataColorChanged;BI.prototype.observeDataForBylineSeparator=BI.prototype.observeDataForBylineSeparator;_.t([_.m(_.Wv),_.B("design:type",Object)],BI.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],BI.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],BI.prototype,"noEndpoints",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],BI.prototype,"isSlimShort",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],BI.prototype,"radioMeta",void 0);_.t([_.u({selector:_.E1}),_.B("design:type",Object)],BI.prototype,"isGridViewEnabled",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],BI.prototype,"richMeta",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],BI.prototype,"amsterdamPostMvp",void 0);
_.t([_.u(),_.B("design:type",Boolean)],BI.prototype,"noByline",void 0);_.t([_.u({computed:"isLongByline(data, radioMeta)"}),_.B("design:type",Boolean)],BI.prototype,"longByline",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],BI.prototype,"truncateMetadataLine",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],BI.prototype,"miniMode",void 0);_.t([_.u(),_.B("design:type",Number)],BI.prototype,"metadataColor",void 0);
_.t([_.u(),_.B("design:type",Array)],BI.prototype,"badges",void 0);_.t([_.u({selector:_.hw,selectorArgs:["data.videoId"]}),_.B("design:type",String)],BI.prototype,"transferState",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],BI.prototype,"isDownloading",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],BI.prototype,"typographyBump",void 0);_.t([_.Cs("#metadata-line"),_.B("design:type",HTMLElement)],BI.prototype,"metadataLine",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BI.prototype,"observeDataForBylineSeparator",null);_.t([_.OY("metadataColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BI.prototype,"metadataColorChanged",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],BI.prototype,"shouldShowVideoInfo",null);
_.t([_.p("badges"),_.B("design:type",String),_.B("design:paramtypes",[])],BI.prototype,"inlineBadgeClass",null);_.t([_.p("longByline"),_.B("design:type",String),_.B("design:paramtypes",[])],BI.prototype,"longBylineClass",null);_.t([_.p("data","longByline"),_.B("design:type",Object),_.B("design:paramtypes",[])],BI.prototype,"bylineText",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],BI.prototype,"hasAttributedBylineText",null);
_.t([_.p("isGridViewEnabled","data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],BI.prototype,"watchFeedBigThumbs",null);_.t([_.bF({is:"ytd-video-meta-block",disableElementRegistration:!0})],BI);
_.U(BI,"ytd-video-meta-block",function(){if(skv!==void 0)return skv;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return skv=e},{mode:2});_.qH("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Np=function(){var e=_.z.apply(this,arguments)||this;e.displayItemCount=2;e.isBackstagePlaylist=!1;e.isPostCompactPlaylist=!1;e.shouldShowChannelThumbnail=!1;return e};
_.Y(Np,_.z);_.v=Np.prototype;_.v.computeFirstVideos=function(e,g){return e===void 0||g===void 0?[]:e.slice(0,g)};
_.v.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var e=this.data.thumbnailRenderer;e.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",e.playlistVideoThumbnailRenderer.thumbnail);e.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",e.playlistCustomThumbnailRenderer.thumbnail)}};
_.v.computeThumbnailHeight=function(e,g,c,k,I){return k?I==="BIG"?280:I==="MASSIVE"?337:234:c?240:g?72:e?118:138};
_.v.computeThumbnailWidth=function(e,g,c,k,I){return k?I==="MEDIUM"?450:I==="BIG"?500:I==="MASSIVE"?600:420:c?360:g?128:e?210:246};
_.v.computeUseBiggerThumbs=function(e){return e&&_.G("enable_desktop_search_bigger_thumbs")};
_.v.computeShouldShowChannelThumbnail=function(e,g){return e&&!(g==null||!g.channelThumbnail)};
_.Bd.Object.defineProperties(Np.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Np.prototype.dataChanged=Np.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],Np.prototype,"ytdLockupBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Np.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Np.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Np.prototype,"displayItemCount",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Np.prototype,"isBackstagePlaylist",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Np.prototype,"isPostCompactPlaylist",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Np.prototype,"isSearch",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.B("design:type",Boolean)],Np.prototype,"useBiggerThumbs",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.C4("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],Np.prototype,"biggerThumbsStyle",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Np.prototype,"isDownloads",void 0);_.t([_.u({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.B("design:type",Object)],Np.prototype,"shouldShowChannelThumbnail",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Np.prototype,"dataChanged",null);
_.t([_.p("isSearch"),_.B("design:type",String),_.B("design:paramtypes",[])],Np.prototype,"stackThumbnailSize",null);_.t([_.bF({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Np);
_.U(Np,"ytd-playlist-renderer",function(){if(WfB===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);WfB=e}e=WfB;return e},{mode:1});var Ffn;var utI;var SI=function(){var e=_.z.apply(this,arguments)||this;e.startX=0;return e};
_.Y(SI,_.z);SI.prototype.onEndpointMouseDown=function(e){this.startX=e.clientX};
SI.prototype.onEndpointClick=function(e){this.startX!==e.clientX&&(e.preventDefault(),e.stopPropagation())};
SI.prototype.computeObjectFit=function(e){return e==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||e==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||e==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
SI.prototype.computeCardStyle=function(e){return e?e.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Bd.Object.defineProperties(SI.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:(g=e.searchRefinementCardRendererStyle)==null?void 0:g.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],SI.prototype,"data",void 0);_.t([_.u({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.B("design:type",Number)],SI.prototype,"objectFit",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.B("design:type",String)],SI.prototype,"cardStyle",void 0);
_.t([_.u({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],SI.prototype,"roundContainer",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],SI.prototype,"isAlbumCard",null);_.t([_.p("data","isAlbumCard"),_.B("design:type",Object),_.B("design:paramtypes",[])],SI.prototype,"collectionStack",null);_.t([_.bF({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],SI);
_.U(SI,"ytd-search-refinement-card-renderer",function(){if(utI!==void 0)return utI;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return utI=e},{mode:1});var d4M;var yL=function(){var e=_.z.apply(this,arguments)||this;e.isRichGrid=!1;return e};
_.Y(yL,_.z);_.t([_.u(),_.B("design:type",Object)],yL.prototype,"data",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],yL.prototype,"componentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],yL.prototype,"ytdReduxBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],yL.prototype,"isRichGrid",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],yL.prototype,"miniMode",void 0);
_.t([_.bF({is:"ytd-game-details-renderer",disableElementRegistration:!0})],yL);
_.U(yL,"ytd-game-details-renderer",function(){if(d4M!==void 0)return d4M;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return d4M=e},{mode:1});var zHk;var Hln;var Kj=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return e};
_.Y(Kj,_.z);_.v=Kj.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.currentStateData=function(e){var g=e||this.data;return g&&g.states&&g.currentStateId!=null?g.states.find(function(c){return c.stateId===g.currentStateId})||null:null};
_.v.currentStateRendererData=function(e){return(e=this.currentStateData(e))&&e.state&&e.state.buttonRenderer?e.state.buttonRenderer:null};
_.v.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.v.computeButtonIcon=function(e){e=this.currentStateRendererData(e);var g;return(e==null?0:(g=e.icon)==null?0:g.iconType)?e.icon.iconType.toLowerCase():null};
_.v.computeAccessibility=function(e){return(e=this.currentStateRendererData(e))&&e.accessibilityData?e.accessibilityData.accessibilityData||null:null};
_.v.computeButtonClass=function(e){var g=this.currentStateRendererData(e);if(!g)return"";e="";var c=g.style;c&&(e+=c.toLowerCase().replace(/_/g,"-")+" ");(g=g.size)&&(e+=g.toLowerCase().replace(/_/g,"-")+" ");return e.trim()};
_.v.computeServiceEndpoint=function(e){if(!e)return null;var g=e&&e.serviceEndpoint,c=this.get("command.commandMetadata.webCommandMetadata.sendPost",e);return g?g:c&&e.command?e.command:null};
_.v.computeBellMenuItemParams=function(e){var g;e=(g=_.x(e==null?void 0:e.command,_.SV))==null?void 0:g.commands;if(!e||e.length===0)return null;g=_.x(e[0],_.k8);var c,k;return(g==null?0:(c=g.popup)==null?0:(k=c.menuPopupRenderer)==null?0:k.items)?g.popup.menuPopupRenderer.items.map(function(I){return I.menuServiceItemRenderer.trackingParams}):null};
_.v.handleBellMenuOpenSelectedAction=function(e){var g=e.trackingParams,c=this.computeBellMenuItemParams(this.data);this.data&&g&&c&&c.includes(g)&&this.ytRenderButtonBehavior._setButtonIcon(e.icon.iconType.toLowerCase())};
_.v.onYtServiceRequestCompleted=function(e,g){(e=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",g))&&this.set("data",e)};
_.v.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.v.resetState=function(){this.set("data.currentStateId",3)};
_.v.onYtButtonTapHandler=function(){if(this.data){var e=this.currentStateRendererData(this.data);e&&this.ytRendererBehavior.logExplicitClick(e)}};
Kj.prototype.onYtServiceRequestError=Kj.prototype.onYtServiceRequestError;Kj.prototype.onYtServiceRequestCompleted=Kj.prototype.onYtServiceRequestCompleted;Kj.prototype.stateChanged=Kj.prototype.stateChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Kj.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(eq.YtRenderButtonBehavior),_.B("design:type",Object)],Kj.prototype,"ytRenderButtonBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Kj.prototype,"data",void 0);_.t([_.k_("data","data.currentStateId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kj.prototype,"stateChanged",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],Kj.prototype,"onYtServiceRequestCompleted",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Kj.prototype,"onYtServiceRequestError",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Kj);
_.U(Kj,"ytd-subscription-notification-toggle-button-renderer",function(){if(Hln!==void 0)return Hln;var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Hln=e},{mode:1});var Qkq;var Ow=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};e.tapHandler=function(){if(e.data){var g=e.currentStateRendererData();g&&e.ytRendererBehavior.logExplicitClick(g)}};
return e};
_.Y(Ow,_.z);_.v=Ow.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.currentStateData=function(){var e=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(g){return g.stateId===e.data.currentStateId})||null:null};
_.v.currentStateRendererData=function(){var e=this.currentStateData();return e&&e.state&&e.state.buttonRenderer?e.state.buttonRenderer:null};
_.v.computeAccessibilityLabel=function(){var e,g,c;return(e=this.currentStateRendererData())==null?void 0:(g=e.accessibilityData)==null?void 0:(c=g.accessibilityData)==null?void 0:c.label};
_.v.computeBellMenuItemParams=function(){var e,g,c=(g=_.x((e=this.data)==null?void 0:e.command,_.SV))==null?void 0:g.commands;if(!c||c.length===0)return null;e=_.x(c[0],_.k8);var k,I;return(e==null?0:(k=e.popup)==null?0:(I=k.menuPopupRenderer)==null?0:I.items)?e.popup.menuPopupRenderer.items.map(function(J){return J.menuServiceItemRenderer.trackingParams}):null};
_.v.handleBellMenuOpenSelectedAction=function(e){var g=e.trackingParams,c=this.computeBellMenuItemParams();if(this.data&&g&&c&&c.includes(g)&&(e==null||!e.isDisabled)){var k;((k=_.x(e.serviceEndpoint,_.K_))==null?void 0:k.signal)!=="CLIENT_SIGNAL"&&(this.icon=e.icon.iconType)}};
_.v.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.v.onYtServiceRequestCompleted=function(e,g){if(e=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",g))this.icon=void 0,this.set("data",e)};
_.v.onYtServiceRequestError=function(){this.icon=void 0};
_.Bd.Object.defineProperties(Ow.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var e=this.data,g=this.textLabel,c=this.hostElement,k=this.computeAccessibilityLabel(),I=this.tapHandler,J=this.isOverlay?"overlay":"mono",q=(e==null?0:e.disableButton)?"disabled":"active";g=g?_.a6(g):void 0;return{style:J,type:"tonal",state:q,size:"M",focused:!1,formattedButtonText:g,iconPosition:"leading-trailing",onTap:gRv(e,I,c),accessibilityLabel:k}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var e=this.currentStateRendererData(),g,c,k=(c=this.icon)!=null?c:e==null?void 0:(g=e.icon)==null?void 0:g.iconType;if(k)return _.NY(k)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(e=this.data)==null?void 0:(g=e.secondaryIcon)==null?void 0:g.iconType;if(c)return _.NY(c)}}});
Ow.prototype.onYtServiceRequestError=Ow.prototype.onYtServiceRequestError;Ow.prototype.onYtServiceRequestCompleted=Ow.prototype.onYtServiceRequestCompleted;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Ow.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ow.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Ow.prototype,"textLabel",void 0);
_.t([_.u(),_.B("design:type",String)],Ow.prototype,"icon",void 0);_.t([_.u(),_.B("design:type",Boolean)],Ow.prototype,"isOverlay",void 0);_.t([_.p("data.*","textLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ow.prototype,"computedButtonShape",null);_.t([_.p("data.*","icon"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ow.prototype,"computedIcon",null);_.t([_.p("computedIcon"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ow.prototype,"computedAnimateIcon",null);
_.t([_.p("data.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ow.prototype,"computedSecondaryIcon",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],Ow.prototype,"onYtServiceRequestCompleted",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ow.prototype,"onYtServiceRequestError",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Ow);_.U(Ow,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Qkq!==void 0)return Qkq;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return Qkq=e},{mode:2});var U4s;_.sL(UQq,"yt-animated-action",{props:{backgroundLottieRef:_.jx,foregroundLottieRef:_.jx,wrapperClass:_.jx,disableAnimation:_.jx},unsafeExternallySettableAttributes:new Set(["key"])});var Mp=function(){var e=_.z.apply(this,arguments)||this;e.animatedActionEnabled=_.G("web_animated_actions");e.foregroundLottieRef={};e.backgroundLottieRef={};e.forceIconOnly=!1;e.showTextWhileAnimating=!1;e.keyboardFocused=!1;e.isAnimating=!1;e.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return e};
_.Y(Mp,_.z);_.v=Mp.prototype;_.v.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.v.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.v.attached=function(){this.keyboardFocused=!1};
_.v.onYtServiceRequestSent=function(e,g){(this.get("endpoint.subscribeEndpoint",g)||this.get("endpoint.unsubscribeEndpoint",g))&&this.updateSubscriptionState(!this.subscribed)};
_.v.onYtServiceRequestCompleted=function(e,g){(e=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",g.data))&&this.bellButton&&(this.bellButton.data=e)};
_.v.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Nk(this.hostElement)};
_.v.onPlayerSubscribe=function(e){this.isCompactRed()||e!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.v.onPlayerUnsubscribe=function(e){this.isCompactRed()||e!==this.data.channelId||this.updateSubscriptionState(!1)};
_.v.handleUpdateSubscribeButtonAction=function(e){e=_.x(e,Thk);var g;e&&e.channelId===((g=this.data)==null?void 0:g.channelId)&&this.updateSubscriptionState(!!e.subscribed)};
_.v.computeButtonStyle=function(e){return this.get("style.styleType",e)||null};
_.v.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.v.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.v.updateSubscriptionState=function(e){if(e!==this.subscribed){this.set("data.subscribed",e);var g,c=(g=this.data)==null?void 0:g.subscribedEntityKey;c&&this.ytdReduxBehavior.dispatch(_.cY("subscriptionStateEntity",c,{key:c,subscribed:e}));this.isCompactRed()||_.oC(this.hostElement,"yt-subscription-changed",e);e||(_.Z5(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!e),e&&this.hasBellButton&&this.startAnimation())}};
_.v.startAnimation=function(){var e=this;if(!this.isAnimating){var g=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var c;(c=this.backgroundLottieRef.lottieEl)==null||c.goToAndPlay(0);var k;(k=this.foregroundLottieRef.lottieEl)==null||k.goToAndPlay(0);_.ft.addJob(function(){e.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.ft.addJob(function(){e.updateContainerToFitContent(!!e.subscribed,!0)},2,1500);
_.ft.addJob(function(){e.isAnimating=!1},2,g)}};
_.v.maybeAnimateBellIcon=function(){var e=_.Zu(this.hostElement).querySelector("yt-animated-icon");if(e){var g;(g=e.animationRef.lottieEl)==null||g.goToAndPlay(0)}};
_.v.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.v.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.v.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var e;this.unsubscribedWidth=(e=this.subscribeButtonShape)==null?void 0:e.getBoundingClientRect().width}var g;this.subscribedWidth=(g=this.bellButton)==null?void 0:g.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.v.updateContainerToFitContent=function(e,g){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(e?(e=this.subscribedWidth,g=this.isAnimating&&!g,this.subscribedIconOnlyWidth===void 0||g||(e=this.subscribedIconOnlyWidth),this.hostElement.style.width=e+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.v.clearContainerSize=function(){this.hostElement.style.width=""};
_.v.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.v.maybeSetSubscribedButtonIconOnlyWidth=function(){var e=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 g;e.subscribedIconOnlyWidth=(g=e.bellButton)==null?void 0:g.getBoundingClientRect().width;requestAnimationFrame(function(){if(e.bellButton){var c;e.bellButton.textLabel=
(c=e.data)==null?void 0:c.subscribedButtonText}})})))};
_.Bd.Object.defineProperties(Mp.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 e;return(e=this.data)==null?void 0:e.subscribedButtonText}var g;return this.forceIconOnly?void 0:(g=this.data)==null?void 0:g.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var e,g,c=((e=this.data)==null?void 0:(g=e.timedAnimationData)==null?void 0:g.animationTiming)||[];return{uniqueId:"subscribe",timings:c,enabled:c.length>0&&!this.subscribed,experimentEnabled:c.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var e;return!this.subscribed&&((e=this.data)==null?void 0:e.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 e={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var g=e.renderer;var c=e.element;var k=e.subscribed;var I=e.commandController;var J=e.isOverlay;e=e.stopPropagation;var q=JWU(g,k);J&&(q.style="overlay");J=Object;var L=J.assign,n;a:switch((n=g.style)==null?void 0:n.styleType){case "COMPACT_GRAY":case "COMPACT_RED":n={size:"S"};break a;default:n={size:"M"}}var R=IVC(g,
k);var W=(W=k?g.subscribedButtonText:g.unsubscribedButtonText)?_.a6(W):void 0;return L.call(J,{},q,n,{focused:!1,toggled:k,accessibilityLabel:R,formattedButtonText:W,onTap:kEq(g,k,c,I,e)})}}}});
Mp.prototype.onMouseDown=Mp.prototype.onMouseDown;Mp.prototype.onDataChanged=Mp.prototype.onDataChanged;Mp.prototype.observedSubscribed=Mp.prototype.observedSubscribed;Mp.prototype.onYtServiceRequestCompleted=Mp.prototype.onYtServiceRequestCompleted;Mp.prototype.onYtServiceRequestSent=Mp.prototype.onYtServiceRequestSent;Mp.prototype.maybeUpdateBellButtonText=Mp.prototype.maybeUpdateBellButtonText;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Mp.prototype,"ytComponentBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Mp.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Mp.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Mp.prototype,"data",void 0);
_.t([_.u({selectorArgs:["data.subscribedEntityKey"],selector:f$V}),_.B("design:type",Object)],Mp.prototype,"subscriptionStateEntity",void 0);_.t([_.u({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Mp.prototype,"subscribed",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Mp.prototype,"branded",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Mp.prototype,"animatedActionEnabled",void 0);
_.t([_.u(),_.B("design:type",Object)],Mp.prototype,"foregroundLottieRef",void 0);_.t([_.u(),_.B("design:type",Object)],Mp.prototype,"backgroundLottieRef",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Mp.prototype,"overlayButton",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.B("design:type",Object)],Mp.prototype,"buttonStyle",void 0);_.t([_.u(),_.B("design:type",Object)],Mp.prototype,"forceIconOnly",void 0);
_.t([_.u(),_.B("design:type",Object)],Mp.prototype,"showTextWhileAnimating",void 0);_.t([_.u({value:function(){return!!_.Ss().resolve(_.NN(_.u7))&&_.G("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.B("design:type",Boolean)],Mp.prototype,"useKeyboardFocused",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Mp.prototype,"keyboardFocused",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Mp.prototype,"isAnimating",void 0);_.t([_.p("data.notificationPreferenceButton.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],Mp.prototype,"hasBellButton",null);
_.t([_.OY("subscribedButtonText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mp.prototype,"maybeUpdateBellButtonText",null);_.t([_.p("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],Mp.prototype,"subscribedButtonText",null);_.t([_.p("data.timedAnimationData.animationTiming","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],Mp.prototype,"smartimationSettings",null);
_.t([_.u({reflectToAttribute:!0}),_.p("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],Mp.prototype,"subscribeButtonHidden",null);_.t([_.u({reflectToAttribute:!0}),_.p("subscribed","hasBellButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],Mp.prototype,"subscribeButtonInvisible",null);
_.t([_.u({reflectToAttribute:!0}),_.p("subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],Mp.prototype,"unsubscribeButtonHidden",null);_.t([_.Cs("ytd-subscription-notification-toggle-button-renderer-next"),_.B("design:type",Object)],Mp.prototype,"bellButton",void 0);_.t([_.Cs("#subscribe-button-shape"),_.B("design:type",HTMLElement)],Mp.prototype,"subscribeButtonShape",void 0);
_.t([_.p("overlayButton","subscribed","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Mp.prototype,"buttonShape",null);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],Mp.prototype,"onYtServiceRequestSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],Mp.prototype,"onYtServiceRequestCompleted",null);
_.t([_.OY("subscribed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mp.prototype,"observedSubscribed",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mp.prototype,"onDataChanged",null);_.t([_.Ks("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Mp.prototype,"onMouseDown",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Mp);
_.U(Mp,"ytd-subscribe-button-renderer",function(){if(U4s!==void 0)return U4s;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return U4s=e},{mode:1});var Cj=function(){var e=_.z.apply(this,arguments)||this;e.isRichGrid=!1;return e};
_.Y(Cj,_.z);Cj.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Cj.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Cj.prototype,"isRichGrid",void 0);_.t([_.bF({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Cj);
_.U(Cj,"ytd-game-card-renderer",function(){if(zHk!==void 0)return zHk;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return zHk=e},{mode:1});var eZ={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.G("defer_menus")&&!W8Z?0:void 0,waitForSignal:"eocs"};var oR1;var Zlk;var ge=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return e};
_.Y(ge,_.z);_.v=ge.prototype;_.v.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.v.onSeriesReminderStateEntityChange=function(){var e,g,c;((e=this.eventReminderStateEntity)==null?0:e.key)&&((g=this.seriesReminderStateEntity)==null?void 0:g.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((c=this.eventReminderStateEntity)==null?void 0:c.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.cY("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.v.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.v.onYtServiceRequestError=function(){var e;this.updateReminderStateEntitiesFromButtonState((e=this.data)==null?void 0:e.currentState)};
_.v.handleUpdateUpcomingEventReminderButtonStateCommand=function(e){if(e=_.x(e,lGv)){var g,c=(g=this.data)==null?void 0:g.targetId;c&&e.targetId===c&&_.Y_(this.updateReminderStateEntitiesFromButtonState.bind(this,e.state))}};
_.v.getButtonStateFromReminderState=function(){var e;if(((e=this.seriesReminderStateEntity)==null?void 0:e.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var g;if(((g=this.eventReminderStateEntity)==null?void 0:g.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var c,k;if(((c=this.seriesReminderStateEntity)==null?void 0:c.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((k=this.eventReminderStateEntity)==
null?void 0:k.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var I;return(I=this.data)==null?void 0:I.currentState};
_.v.updateReminderStateEntitiesFromButtonState=function(e){if(e){switch(e){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":e="UPCOMING_EVENT_REMINDER_STATE_NONE";var g="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":e="UPCOMING_EVENT_REMINDER_STATE_SINGLE";g="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":e="UPCOMING_EVENT_REMINDER_STATE_NONE";g="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var c;
((c=this.eventReminderStateEntity)==null?0:c.key)&&this.ytdReduxBehavior.dispatch(_.cY("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:e})));var k;((k=this.seriesReminderStateEntity)==null?0:k.key)&&this.ytdReduxBehavior.dispatch(_.cY("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:g})))}};
_.Bd.Object.defineProperties(ge.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var e=this.getButtonStateFromReminderState(),g,c;if(e&&((g=this.data)==null?0:(c=g.states)==null?0:c.length))for(g=_.w(this.data.states),c=g.next();!c.done;c=g.next()){c=c.value;var k=void 0;if(((k=_.x(c,AzB))==null?void 0:k.state)===e)return _.x(c,AzB)}}}});
ge.prototype.onYtServiceRequestError=ge.prototype.onYtServiceRequestError;ge.prototype.onYtServiceRequestCompleted=ge.prototype.onYtServiceRequestCompleted;ge.prototype.onSeriesReminderStateEntityChange=ge.prototype.onSeriesReminderStateEntityChange;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],ge.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],ge.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ge.prototype,"data",void 0);_.t([_.u({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:i5g}),_.B("design:type",Object)],ge.prototype,"eventReminderStateEntity",void 0);
_.t([_.u({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(e,g){return _.Nc(e.entities,"sportsSeriesReminderStateEntity",g)}}),
_.B("design:type",Object)],ge.prototype,"seriesReminderStateEntity",void 0);_.t([_.p("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],ge.prototype,"currentButtonStateRenderer",null);_.t([_.OY("seriesReminderStateEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ge.prototype,"onSeriesReminderStateEntityChange",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ge.prototype,"onYtServiceRequestCompleted",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ge.prototype,"onYtServiceRequestError",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],ge);
_.U(ge,"ytd-upcoming-event-reminder-button-renderer",function(){if(Zlk!==void 0)return Zlk;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
return Zlk=e},{mode:1});var VCI;var cG=function(){return _.z.apply(this,arguments)||this};
_.Y(cG,_.z);cG.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Bd.Object.defineProperties(cG.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(_.G("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],cG.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],cG.prototype,"shelfDismissal",void 0);_.t([_.p("data.responseText"),_.B("design:type",Object),_.B("design:paramtypes",[])],cG.prototype,"text",null);
_.t([_.p("data.responseText"),_.B("design:type",Object),_.B("design:paramtypes",[])],cG.prototype,"textAriaLabel",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],cG);
_.U(cG,"ytd-notification-multi-action-renderer",function(){if(VCI!==void 0)return VCI;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return VCI=e},{mode:1});var tCM;var k9=function(){return _.z.apply(this,arguments)||this};
_.Y(k9,_.z);k9.prototype.ready=function(){var e=this;_.o1(this.hostElement).querySelector("#undo").addEventListener("tap",function(){e.onUndoTap()})};
k9.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.Ss().resolve(_.xk).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],k9.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],k9);
_.U(k9,"ytd-notification-text-renderer",function(){if(tCM!==void 0)return tCM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return tCM=e},{mode:1});var BAu;var I8=function(){var e=_.z.apply(this,arguments)||this;e.mouseOverDelayJobId=0;e.fadeInImageDelayJobId=0;e.startTimeMs=-1;e.loadingStartTimeMs=-1;e.loadingEndTimeMs=-1;e.hasVideoPreview=!1;return e};
_.Y(I8,_.z);_.v=I8.prototype;_.v.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.v.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.v.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.v.showThumbnail=function(){var e=this;this.csn=_.EM();_.bB("fmth");_.ft.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.HT(_.ft,function(){e.loadingStartTimeMs=(0,_.yr)();var g=_.o1(e.hostElement).querySelector("#thumbnail");g.complete?e.displayMouseOverImage():g.addEventListener("load",_.yg(e,e.displayMouseOverImage))},150):_.Vg(_.o1(this.hostElement).querySelector("#play"),"show",!0)};
_.v.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.v.onTap=function(){this.removeVideoPreview()};
_.v.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var e=this.videoId,g=this.csn,c=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,k=this.startTimeMs,I=this.hasVideoPreview,J=_.Jb(this.trackingParams),q={isMovingThumbnail:I};I&&k>0&&(c>0&&(q.movingThumbnailLoadingDurationMs=Math.round(c)),q.durationHoveredMs=Math.round((0,_.yr)()-k));e&&(q.videoId=e);_.pA(g,J,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:q});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.v.removeVideoPreview=function(){_.ft.cancelJob(this.mouseOverDelayJobId);_.ft.cancelJob(this.fadeInImageDelayJobId);var e=_.o1(this.hostElement).querySelector("#thumbnail");_.Vg(e,"fade-in",!1);e.removeEventListener("load",_.yg(this,this.displayMouseOverImage));e=_.o1(this.hostElement).querySelector("#play");_.Vg(e,"fade-in",!1);_.Vg(e,"show",!1)};
_.v.displayMouseOverImage=function(){var e=_.o1(this.hostElement).querySelector("#thumbnail"),g=_.o1(this.hostElement).querySelector("#play");this.isImageAvailable(e)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.yr)(),this.startTimeMs=(0,_.yr)(),this.fadeInImageDelayJobId=_.HT(_.ft,function(){_.Vg(e,"fade-in",!0)},50)):_.Vg(g,"fade-in",!0)};
_.v.computeThumbnail=function(e,g){var c;e&&e.movingThumbnailDetails&&e.movingThumbnailDetails.thumbnails&&g?c=_.F6(e.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):c=g?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(c)return _.Km(c)};
_.v.isImageAvailable=function(e){return!(!e.src||e.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||e.naturalWidth===120)};
I8.prototype.onTap=I8.prototype.onTap;I8.prototype.dataChanged=I8.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],I8.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],I8.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],I8.prototype,"csn",void 0);_.t([_.u(),_.B("design:type",Object)],I8.prototype,"trackingParams",void 0);
_.t([_.u(),_.B("design:type",String)],I8.prototype,"videoId",void 0);_.t([_.u(),_.B("design:type",Boolean)],I8.prototype,"isAttachedAndDataSet",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I8.prototype,"dataChanged",null);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I8.prototype,"onTap",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],I8);
_.U(I8,"ytd-moving-thumbnail-renderer",function(){if(BAu!==void 0)return BAu;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return BAu=e},{mode:1});var NAI;_.Sl=function(e){this.hostElement=e;this.eventSink=null;this.eventList=[]};
_.Sl.prototype.shouldForward=function(){var e,g;return(g=(e=this.eventSink)==null?void 0:e.isConnected)!=null?g:document.body.contains(this.eventSink)};
_.Sl.prototype.start=function(e,g){this.eventSink&&this.stop();for(var c=0;c<e.length;c++)this.hostElement.addEventListener(e[c],_.yg(this,this.forwardEvent));var k;this.eventSink=(k=g.hostElement)!=null?k:g;this.eventList=e};
_.Sl.prototype.stop=function(){for(var e=0;e<this.eventList.length;e++)this.hostElement.removeEventListener(this.eventList[e],_.yg(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Sl.prototype.forwardEvent=function(e,g){this.shouldForward()&&(e.stopPropagation(),this.eventSink instanceof Element?_.oC(this.eventSink,e.type,g):_.mN(new _.E2("eventSink is not an element")))};_.J8={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Sl(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(e,g){this.forwarder_.start(e,g)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var vG=function(){return _.z.apply(this,arguments)||this};
_.Y(vG,_.z);_.v=vG.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.uo("HTML_DIR")==="rtl"?"right":"left"};
_.v.dataChanged=function(){this.popupOpen=!1};
_.v.computeAriaLabel=function(e){return _.x(e,NQk).label};
_.v.onTap=function(e){e.stopPropagation();e.preventDefault();this.data.command&&_.Ss().resolve(_.xk).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.v.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.v.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
vG.prototype.onPopupClosed=vG.prototype.onPopupClosed;vG.prototype.onPopupOpened=vG.prototype.onPopupOpened;vG.prototype.onTap=vG.prototype.onTap;vG.prototype.dataChanged=vG.prototype.dataChanged;_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],vG.prototype,"eventForwardingBehavior",void 0);_.t([_.m(_.qx),_.B("design:type",Object)],vG.prototype,"ironButtonState",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],vG.prototype,"componentBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],vG.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:-1}),_.B("design:type",Number)],vG.prototype,"tabindex",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.B("design:type",Object)],vG.prototype,"ariaLabel",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],vG.prototype,"disableTooltips",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],vG.prototype,"popupOpen",void 0);
_.t([_.u(),_.B("design:type",Element)],vG.prototype,"eventSink",void 0);_.t([_.Cs("#tooltip"),_.B("design:type",Object)],vG.prototype,"tooltip",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vG.prototype,"dataChanged",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vG.prototype,"onTap",null);
_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vG.prototype,"onPopupOpened",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vG.prototype,"onPopupClosed",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],vG);
_.U(vG,"ytd-thumbnail-overlay-button-renderer",function(){if(NAI!==void 0)return NAI;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return NAI=e},{mode:1});var SrB;var we=function(){return _.z.apply(this,arguments)||this};
_.Y(we,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],we.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],we.prototype,"disableAnimation",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],we.prototype,"rounded",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],we.prototype,"transparentBackground",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],we.prototype,"noPadding",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],we);
_.U(we,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(SrB!==void 0)return SrB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return SrB=e},{mode:1});var yWY;var q6=function(){return _.z.apply(this,arguments)||this};
_.Y(q6,_.z);q6.prototype.computeIconPosition=function(e){return this.get("iconPosition",e)||null};
q6.prototype.computeIconStyle=function(e){return this.get("iconStyle",e)||null};
q6.prototype.computeIsIconStyleFilled=function(e){if(!e)return!1;var g;return e.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((g=e.icon)==null?void 0:g.iconType)==="ERROR_BLACK"};
_.t([_.u(),_.B("design:type",Object)],q6.prototype,"data",void 0);_.t([_.u({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.B("design:type",Object)],q6.prototype,"iconPosition",void 0);_.t([_.u({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.B("design:type",Object)],q6.prototype,"iconStyle",void 0);_.t([_.u({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],q6.prototype,"iconStyleFilled",void 0);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],q6);
_.U(q6,"ytd-thumbnail-overlay-icon-renderer",function(){if(yWY!==void 0)return yWY;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return yWY=e},{mode:1});var KfY;var LS=function(){return _.z.apply(this,arguments)||this};
_.Y(LS,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],LS.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],LS);
_.U(LS,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(KfY!==void 0)return KfY;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return KfY=e},{mode:1});var OlY;var re=function(){var e=_.z.apply(this,arguments)||this;e.isPreviewLoading=!1;return e};
_.Y(re,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],re.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],re.prototype,"isPreviewLoading",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],re);
_.U(re,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(OlY!==void 0)return OlY;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return OlY=e},{mode:1});var MCq;var a8=function(){return _.z.apply(this,arguments)||this};
_.Y(a8,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],a8.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],a8);
_.U(a8,"ytd-thumbnail-overlay-pinking-renderer",function(){if(MCq!==void 0)return MCq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return MCq=e},{mode:1});var CxY;var nS=function(){var e=_.z.apply(this,arguments)||this;e.disableTooltips=!1;e.isLoading=!1;e.useExpandableTooltip=!1;e.toggled=!1;e.hovered=!1;e.mouseoverDelayJobId=0;e.toggleDelayJobId=0;e.expandAnimationDelayJobId=0;return e};
_.Y(nS,_.z);_.v=nS.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.o1(this.hostElement).querySelector("#tooltip").position=_.uo("HTML_DIR")==="rtl"?"right":"left"};
_.v.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.ft.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.ft.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.ft.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.v.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.ft.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.ft.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.ft.cancelJob(this.expandAnimationDelayJobId)};
_.v.computeIcon=function(e,g,c){return(e=c?g:e)&&e.iconType?_.NY(e.iconType):void 0};
_.v.computeAriaLabel=function(e,g,c){return _.x(c?g:e,NQk).label};
_.v.computeTooltip=function(e,g,c){return c?g:e};
_.v.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.v.computeIconOnHover=function(e,g){if((e==null?0:e.iconType)&&!g)return _.NY(e.iconType)};
_.v.onTap=function(e){var g=this;e.stopPropagation();e.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(e=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(e),this.useExpandableTooltip&&(this.toggleDelayJobId=_.HT(_.ft,function(){g.hovered=!1;g.data&&!g.data.toggledServiceEndpoint&&(g.expandAnimationDelayJobId=_.HT(_.ft,function(){g.set("data.isToggled",
!1)},200))},2E3))};
_.v.onMouseenter=function(){var e=this;this.mouseoverDelayJobId=_.HT(_.ft,function(){e.hovered=!0},300)};
_.v.onMouseleave=function(){_.ft.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.v.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.v.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.v.onServiceRequestCompleted=function(e,g){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(g)||this.set("data.isToggled",!this.data.isToggled)};
_.v.serviceRequestWasSuccessful=function(e){return _.x(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.bp)?e.data.status==="STATUS_SUCCEEDED":!0};
nS.prototype.onServiceRequestCompleted=nS.prototype.onServiceRequestCompleted;nS.prototype.onPopupClosed=nS.prototype.onPopupClosed;nS.prototype.onPopupOpened=nS.prototype.onPopupOpened;nS.prototype.onMouseleave=nS.prototype.onMouseleave;nS.prototype.dataChanged=nS.prototype.dataChanged;_.t([_.m(_.qx),_.B("design:type",Object)],nS.prototype,"ironButtonState",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],nS.prototype,"ytComponentBehavior",void 0);
_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],nS.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],nS.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.B("design:type",Object)],nS.prototype,"ariaLabel",void 0);_.t([_.u(),_.B("design:type",Object)],nS.prototype,"disableTooltips",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],nS.prototype,"popupOpen",void 0);_.t([_.u(),_.B("design:type",Object)],nS.prototype,"isLoading",void 0);_.t([_.u(),_.B("design:type",Element)],nS.prototype,"eventSink",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],nS.prototype,"useExpandableTooltip",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.B("design:type",Object)],nS.prototype,"toggled",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],nS.prototype,"hovered",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.B("design:type",Object)],nS.prototype,"iconOnHover",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nS.prototype,"dataChanged",null);
_.t([_.Ks("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nS.prototype,"onMouseleave",null);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nS.prototype,"onPopupOpened",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nS.prototype,"onPopupClosed",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],nS.prototype,"onServiceRequestCompleted",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],nS);
_.U(nS,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(CxY!==void 0)return CxY;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return CxY=e},{mode:2});var e7q;var ggw=_.H(function(e){var g=e.data;var c=e.thumbnailSize;var k=function(){return g().enableSegmentView};
return _.a("yt-thumbnail-overlay-progress-bar-view-model",{class:_.o6("ytThumbnailOverlayProgressBarHost",function(){return vRC(c==null?void 0:c())})},_.a(_.E,{cond:k,
then:function(){return _.a("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.a("div",{class:_.qy("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+g().startPercent+"%"}}),_.a("div",{class:_.qy("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+g().segmentDurationPercent+"%"}},_.a("div",{class:_.qy("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.a("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.a("div",null," ",function(){return g().segmentLabel})),_.a("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.a("div",{class:_.qy("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.a(_.E,{cond:function(){return!k()&&g().startPercent},
then:function(){var I={};return _.a("div",{class:_.qy("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(I.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.G("web_enable_modern_progress_bar_overlay"),I))},_.a("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+g().startPercent+"%"}}))}}))},"Ha");
ggw.idomCompat=!0;_.ceq=_.H(function(e){var g=_.NH(),c=_.M2(function(I){var J,q,L;a:{var n=(J=e.data())==null?void 0:J.animationActivationTargetId;J=((q=e.data())==null?void 0:q.animationActivationEntityKey)||"";q=(L=e.data())==null?void 0:L.animationActivationEntitySelectorType;if(J&&n)switch(q){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":I=_.Zi(I,J);L=_.Ss().resolve(_.NN(_.xt));n=!!(I&&I.videoId===n&&(L==null?0:L.isMiniplayerActive()));n={activated:n,playAnimation:n&&I.playerState==="PLAYER_STATE_PLAYING"};
break a}n=void 0}return n});
_.AV(function(){var I;if((I=c())==null?0:I.activated){var J;if((J=c())==null?0:J.playAnimation){var q;(q=g.lottieEl)==null||q.goToAndPlay(0)}else{var L;(L=g.lottieEl)==null||L.goToAndStop(0)}}},"DbQiXd");
var k=function(){var I,J=!((I=c())==null||!I.activated);if(e.data()){I=e.data();var q=void 0;I.icon&&(q=_.mLp(I.icon),q=zQe(q));var L=void 0,n;if((n=I.backgroundColor)==null?0:n.lightTheme){var R;L={backgroundColor:Wg((R=I.backgroundColor)==null?void 0:R.lightTheme,"0.8")}}if(I.text||q||J){if(J&&I.lottieData&&g){R=I.lottieData;var W,b,h;n={animationConfig:{name:R.url,path:R.url,autoplay:(W=R.settings)==null?void 0:W.autoplay,loop:(h=(b=R.settings)==null?void 0:b.loop)!=null?h:!0},animationRef:g}}else n=
void 0;if(J)W=17;else b:switch(I.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":W=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":W=19;break b;default:W=17}J={type:W,text:J&&I.animatedText?I.animatedText:I.text,icon:q,customColors:L,animation:n}}else J=void 0}else J=void 0;return J};
return _.a("yt-thumbnail-badge-view-model",{class:_.o6("ytThumbnailBadgeViewModelHost",e.class)},_.a(_.E,{cond:k,then:function(){return _.a(_.xG,{data:function(){return k()}})}}))},"Ja");var kRB=_.H(function(e){var g={},c={};return _.a("yt-thumbnail-bottom-overlay-view-model",{class:_.o6("ytThumbnailBottomOverlayViewModelHost",(g.ytThumbnailBottomOverlayViewModelHostBackground=function(){return e.data().enableGradientBackground},g))},_.a(_.eS,{data:function(){return e.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(k){return _.a(ggw,{data:k.data,
thumbnailSize:e.thumbnailSize})}}),_.a("div",{class:_.o6("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var k;
return wfp((k=e.thumbnailSize)==null?void 0:k.call(e))},(c.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var k;
return(k=e.isClip)==null?void 0:k.call(e)},c.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var k;
return!_.G("web_enable_modern_progress_bar_overlay")&&((k=e.thumbnailSize)==null?void 0:k.call(e))==="small"},c))},_.a(_.eS,{data:function(){return e.data().badge}},{thumbnailBadgeViewModel:function(k){return _.a(_.ceq,{data:k.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.a(_.eS,{data:function(){return e.data().badges}},{thumbnailBadgeViewModel:function(k){return _.a(_.ceq,{data:k.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ka");
kRB.idomCompat=!0;_.sL(kRB,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.TF,thumbnailSize:_.TF,isClip:_.TF}});var R8=_.H(function(e){var g=e.data;var c=e.className;e=e.alwaysShow;var k=_.LfW(),I={};return _.a("thumbnail-hover-overlay-view-model",{el:_.mb(_.EQ(function(){return g().rendererContext})),
class:_.o6("ytThumbnailHoverOverlayViewModelHost",c,(I.ytThumbnailHoverOverlayViewModelHostForceHover=e,I)),"aria-label":function(){var J;return(J=_.x(g().rendererContext,_.Jh))==null?void 0:J.label},
role:function(){return _.nV(g().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.nV(g().rendererContext)!==void 0?0:void 0},
"on:keypress":k},_.a("div",{class:_.o6("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(g().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var J="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:J="ytThumbnailHoverOverlayViewModelStyleCover"}return J})},_.a(_.E,{cond:function(){return g().icon},
then:function(J){return _.a(_.pv,{data:J,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.a(_.E,{cond:function(){return g().text},
then:function(J){return _.a(_.fa,{text:J,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ma");
R8.idomCompat=!0;var IDM=_.H(function(e){var g=e.data;return _.a(_.eS,{data:function(){return g==null?void 0:g().overlays}},{thumbnailHoverOverlayViewModel:R8})},"Na");
IDM.idomCompat=!0;var Jew={};var vgv=_.H(function(e){var g=e.data;var c=e.image;var k=e.state;var I=e.iconType;var J=e.overlays;var q=e.isOverlay;var L=_.PV("div");e=_.w(_.Wa(!0,void 0,"AA4e7b"));var n=e.next().value,R=e.next().value,W=function(){return!!g().onTap},b=_.sz(I,"LIVE");
_.AV(function(){var X=g();requestAnimationFrame(function(){if(L.value===null)var D=!0;else{var f=L.value;D=X.badgeText;var l=hHe(X.size);D in Jew?f=Jew[D]:(f=f.clientWidth,Jew[D]=f);(D=f>l)?L.value.style.display="none":L.value.style.visibility="visible"}R(D)})},"vNdN8b");
var h=function(){var X={};return X["yt-spec-avatar-shape__image"]=!0,X["yt-spec-avatar-shape__image--ads-app"]=g().type===1,X["yt-spec-avatar-shape__image--inscribed-square"]=g().type===2,X};
return _.a("yt-avatar-shape",null,_.a("div",{el:_.mb(GEp(W,{keydown:function(X){if(X.key==="Enter"){var D;(D=X.currentTarget)==null||D.click()}},
click:function(X){var D,f;return void((f=(D=g()).onTap)==null?void 0:f.call(D,X))}})),
class:function(){var X={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},D=g();X=(X[D.clusterLayoutConfig?$4U(D.clusterLayoutConfig):YrV(D.size)]=!0,X["yt-spec-avatar-shape__button--tappable"]=W(),X);(D=g().avatarButtonCustomClassName)&&(X[D]=!0);return _.qy(X)},
"aria-label":function(){return W()?g().accessibilityText:""},
role:function(){return W()?"button":void 0},
tabindex:function(){return W()?0:void 0}},_.a("div",{class:function(){var X,D=g(),f=k==null?void 0:k(),l=q==null?void 0:q(),A=!((X=D.decorations)==null||!X.includes(2)||D.size!=="medium"&&D.size!=="large"),d=D.size==="tiny"||D.size==="extra-small",S,V,Q,y,O={};
X=(O["yt-spec-avatar-shape--live-ring"]=!!(((S=D.decorations)==null?0:S.includes(0))&&jkg(D.size)),O["yt-spec-avatar-shape--stories-watched"]=A&&!(f==null||!f.storiesWatched),O["yt-spec-avatar-shape--stories-unwatched"]=A&&!(f==null?0:f.storiesWatched),O["yt-spec-avatar-shape--background-border"]=ilq(D.decorations)&&!d,O["yt-spec-avatar-shape--background-border-thin"]=ilq(D.decorations)&&d,O["yt-spec-avatar-shape__on-select-border"]=!((V=D.decorations)==null||!V.includes(4)),O["yt-spec-avatar-shape__white-border"]=
!((Q=D.decorations)==null||!Q.includes(5)),O["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((y=D.decorations)==null?0:y.includes(5))&&d),O["yt-spec-avatar-shape--is-overlay"]=!!l,O);return _.qy(X)},
style:function(){a:{var X=g().clusterLayoutConfig;if(X){b:{var D=X.numAvatarsInCluster;var f=X.avatarIndex;if(f!==D-1){switch(X.clusterSize){case "small":X="32";break;case "medium":X="36";break;case "40":X="40";break;default:D=void 0;break b}D="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+X+"x"+X+"_avatars_"+D+"_index_"+f+".svg"}else D=void 0}if(D){D=_.N2({"-webkit-mask-image":"url("+D+")","mask-image":"url("+D+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}D=void 0}return D}},_.a("div",{class:function(){var X={};
var D=g();X=(X[D.clusterLayoutConfig?x46(D.clusterLayoutConfig):D4q(D.size)]=!0,X["yt-spec-avatar-shape--no-margin"]=ilq(g().decorations),X["yt-spec-avatar-shape--square"]=g().type===2,X);return _.qy(X)}},_.a(_.pv,{data:c,
alt:function(){return!W()&&g().accessibilityText?g().accessibilityText:""},
targetWidth:function(){return fV8(g().size)},
targetHeight:function(){return fV8(g().size)},
className:function(){return _.qy(h())}}),_.a(_.E,{cond:function(){var X;
return((X=g().decorations)==null?void 0:X.includes(0))&&jkg(g().size)},
then:function(){return _.a("div",{class:function(){var X={};X=(X["yt-spec-avatar-shape__live-badge"]=!0,X["yt-spec-avatar-shape__live-badge--badge-small"]=g().size==="small",X["yt-spec-avatar-shape__live-badge--badge-medium"]=g().size==="medium"||g().size==="48",X["yt-spec-avatar-shape__live-badge--badge-large"]=g().size==="large",X["yt-spec-avatar-shape__live-badge--badge-extra-large"]=g().size==="extra-large"||g().size==="extra-extra-large"||g().size==="giant",X);return _.qy(X)}},_.a(_.E,{cond:function(){return g().badgeText},
then:function(X){return _.a("div",{class:"yt-spec-avatar-shape__badge-text",el:L},X)}}),_.a(_.E,{cond:n,
then:function(){return _.a("div",{class:"yt-spec-avatar-shape__badge-icon"},_.a(_.SU,{icon:b,size:function(){a:switch(g().size){case "extra-large":var X=16;break a;default:X=13}return X}}))}}))}}),_.a(_.E,{cond:function(){var X,D;
return((X=g().decorations)==null?void 0:X.includes(1))||((D=g().decorations)==null?void 0:D.includes(0))&&!jkg(g().size)},
then:function(){return _.a("div",{class:function(){var X=g(),D,f,l={};var A=(l["yt-spec-avatar-shape__live-dot"]=!((D=X.decorations)==null||!D.includes(0)||jkg(X.size)),l["yt-spec-avatar-shape__new-content"]=!((f=X.decorations)==null||!f.includes(1)),l);return _.qy(A)}})}}),_.a(_.E,{cond:function(){return!!J},
then:function(){return _.a("div",{class:function(){var X={};X=Object.assign((X["yt-spec-avatar-shape__image-overlays"]=!0,X),h());return _.qy(X)}},J==null?void 0:J())}})))))},"Qa");
vgv.idomCompat={callbacks:{overlays:!0}};_.E8=_.H(function(e){function g(){c().endpoint&&_.GF(c().endpoint)}
var c=e.data;var k=e.decorations;var I=e.avatarButtonCustomClassName;var J=e.isOverlay;var q=e.clusterLayoutConfig;return _.a("avatar-view-model",null,_.a(_.E,{cond:function(){return c().image},
then:function(L){return _.a(vgv,{data:function(){return m4z({data:c(),onTap:c().endpoint?g:void 0,decorations:k==null?void 0:k(),badgeText:void 0,accessibilityText:c().accessibilityText,avatarButtonCustomClassName:I==null?void 0:I(),clusterLayoutConfig:q==null?void 0:q()})},
image:L,iconType:"RADAR_LIVE",overlays:function(){return _.a(IDM,{data:c})},
isOverlay:J})}}))},"Ra");
_.E8.idomCompat=!0;_.WG=_.H(function(e){var g=e.data;e=e.className;var c=_.PV("yt-decorated-avatar-view-model"),k=function(){return _.x(g().avatar,_.bD)},I=_.xF(function(){var J,q=g(),L=k(),n=_.nV(g().rendererContext),R=(J=c.value)!=null?J:void 0,W;
if(L){R={data:q,avatar:L,onTap:n,element:R};J=R.data;q=R.avatar;L=R.onTap;n=R.element;R=R.commandController;L=L?AWg(L,n,R):void 0;n=[];J.liveData&&n.push(0);var b;R=(b=J.liveData)==null?void 0:b.liveBadgeText;b=(W=_.x(J.rendererContext,_.Jh))==null?void 0:W.label;W=m4z({data:q,onTap:L,decorations:n,badgeText:R,accessibilityText:b?b:J.a11yLabel})}else W={size:"medium"};return W},void 0,"c00kWd");
return _.a("yt-decorated-avatar-view-model",{class:_.o6("ytDecoratedAvatarViewModelHost",e),el:c},_.a(_.E,{cond:function(){var J;return(J=k())==null?void 0:J.image},
then:function(J){return _.a(vgv,{data:I,image:J,iconType:"RADAR_LIVE",overlays:function(){return _.a(IDM,{data:k})}})}}))},"Sa");
_.WG.idomCompat=!0;_.bh=_.H(function(e){var g=function(){var L;return Object.assign({},e.data(),(L=e.overrides)==null?void 0:L.call(e))},c=function(){return _.RB(g().rendererContext)},k=function(){var L=g().avatars,n,R;
return(R=(n=(L==null?0:L[0])?_.x(L[0],_.bD):void 0)==null?void 0:n.avatarImageSize)!=null?R:"AVATAR_SIZE_UNKNOWN"},I=function(){return lVC(g())},J=function(){if(g().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var L=void 0;
else if((L=e.decorations)==null?0:L.call(e))L=e.decorations();else{L=g();var n=0;L.avatars&&(n+=L.avatars.length);L.decoratedText&&(n+=1);L=n>1?[3]:[]}return L},q={};
return _.a("yt-avatar-stack-view-model",{el:_.mb(_.EQ(function(){return g().rendererContext})),
class:_.o6("yt-avatar-stack-view-model",e.className,(q["yt-avatar-stack-view-model--tappable"]=c,q["yt-avatar-stack-view-model--is-overlay"]=e.isOverlay,q["yt-avatar-stack-view-model--medium-text"]=e.useMediumText,q)),tabindex:function(){return c()?0:void 0},
role:function(){return c()?"link":void 0},
"aria-label":function(){var L,n;return(n=(L=_.x(g().rendererContext,_.Jh))==null?void 0:L.label)!=null?n:""}},_.a(_.E,{cond:function(){var L;
return g().avatars&&!((L=e.hideAvatar)==null?0:L.call(e))},
then:function(){return _.a("div",{class:"yt-avatar-stack-view-model__avatars"},_.a(_.E,{cond:function(){return g().decoratedText},
then:function(L){var n={};return _.a("div",{class:_.o6("yt-avatar-stack-view-model__text-container",(n["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return k()==="AVATAR_SIZE_XXS"||k()==="AVATAR_SIZE_XS"},n["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var R;
return((R=e.isOverlay)==null?void 0:R.call(e))&&(k()==="AVATAR_SIZE_XXS"||k()==="AVATAR_SIZE_XS")},n)),
style:_.N2({width:function(){return I().avatarSizeInPx+"px"},
height:function(){return I().avatarSizeInPx+"px"}})},_.a(_.fa,{text:L,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.a("div",{style:function(){return _.N2(I().avatarStackStyle)()},
class:function(){return I().avatarStackClass}},_.a(_.eS,{data:function(){return I().avatars.reverse()}},{avatarViewModel:function(L,n){return _.a("div",{style:function(){var R,W;
return _.N2((W=(R=I()).avatarStyle)==null?void 0:W.call(R,n()))()},
class:function(){return I().avatarClass}},_.a(_.E8,{data:L.data,
decorations:J,avatarButtonCustomClassName:function(){return I().avatarButtonCustomClassName},
isOverlay:e.isOverlay,clusterLayoutConfig:function(){var R,W;return(W=(R=I()).clusterLayoutConfig)==null?void 0:W.call(R,n())}}))},
decoratedAvatarViewModel:function(L,n){return _.a("div",{style:function(){var R,W;return _.N2((W=(R=I()).avatarStyle)==null?void 0:W.call(R,n()))()},
class:function(){return I().avatarClass}},_.a(_.WG,{data:L.data}))}})))}}),_.a(_.E,{cond:function(){return g().text},
then:function(L){return _.a(_.fa,{text:L,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ta");
_.bh.idomCompat=!0;_.sL(_.H(function(e){var g=e.data;var c=e.thumbnailSize;return _.a("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.a("div",{class:_.o6("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return skC(c==null?void 0:c())})},_.a(_.eS,{data:function(){return g().avatarStack}},{avatarStackViewModel:function(k){return _.a(_.bh,{data:k.data,
decorations:[5]})}})))},"Ua"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.jx,
thumbnailSize:_.jx}});var wiI=_.H(function(e){e=_.FA(e,{hidden:!1});var g=e.data;e=e.hidden;return _.a("yt-thumbnail-overlay-title-view-model",{class:_.o6("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(g().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var c="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:c="ytThumbnailOverlayTitleViewModelPositionTop"}return c}),
hidden:e},_.a(_.E,{cond:function(){return g().leadingContent},
then:function(c){return _.a("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.a(_.eS,{data:c},{decoratedAvatarViewModel:_.WG}))}}),_.a("div",null,_.a(_.fa,{text:function(){return g().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.a(_.E,{cond:function(){return g().subtitle},
then:function(){return _.a(_.fa,{text:function(){return g().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Va");
wiI.idomCompat=!0;_.sL(wiI,"yt-thumbnail-overlay-title-view-model",{props:{data:_.jx,hidden:_.jx}});_.h8=_.H(function(e){e=_.FA(e,{isClip:!1});var g=e.data,c=e.thumbnailSize,k={};return _.a("yt-thumbnail-overlay-badge-view-model",{class:_.o6("yt-thumbnail-overlay-badge-view-model",function(){a:switch(g().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var I="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:I="yt-thumbnail-overlay-badge-view-model--bottom-end"}return I},function(){return FfA(c==null?void 0:c())},(k["yt-thumbnail-overlay-badge-view-model--clip"]=e.isClip,
k))},_.a(_.eS,{data:function(){return g().thumbnailBadges}},{thumbnailBadgeViewModel:function(I){return _.a(_.ceq,{data:I.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Wa");
_.h8.idomCompat=!0;_.sL(_.h8,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.jx,thumbnailSize:_.jx,isClip:_.jx}});var qZ1=_.H(function(e){var g=e.data;e=e.hidden;var c=_.xF(function(){return g().indicatorCount||0},void 0,"AbKnMc"),k={};
return _.a("yt-page-indicator-view-model",{class:_.o6("ytPageIndicatorViewModelHost",(k.ytPageIndicatorViewModelIndicatorHidden=function(){return!g().indicatorCount},k)),
hidden:e},_.a(_.Yz,{each:function(){return Array(c())}},function(I,J){var q={};
return _.a("div",{class:_.o6("ytPageIndicatorViewModelIndicator",(q.ytPageIndicatorViewModelIndicatorSelected=function(){return g().selectedIndex===J()},q))})}))},"Xa");
qZ1.idomCompat=!0;_.sL(qZ1,"yt-page-indicator-view-model",{props:{data:_.jx,hidden:_.jx}});var XF=function(){var e=_.z.apply(this,arguments)||this;e.eventSink=function(){return e};
e.disableInteraction=!1;e.noRoundedCorners=!1;e.isPreviewLoading=!1;e.isOriginalAspectRatio=!1;e.computedObjectFit=!1;e.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return e};
_.Y(XF,_.z);_.v=XF.prototype;
_.v.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.G("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.v.onImageLoaded=function(){this.loaded=!0};
_.v.onImageUnloaded=function(){this.loaded=!1};
_.v.computeRichThumbnail=function(e,g,c,k){if(e&&g&&!k&&!_.G("disable_moving_thumbs_handling")&&!c)return g};
_.v.computeImageWidth=function(e,g){return g||9999};
_.v.computeIsOriginalAspectRatio=function(e){return e};
_.v.computeIsLive=function(e){if(e==null?0:e.badges)for(var g=0;g<e.badges.length;g++){var c=e.badges[g];if(c.metadataBadgeRenderer&&c.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(e==null?0:e.thumbnailOverlays)for(g=0;g<e.thumbnailOverlays.length;g++)if(c=e.thumbnailOverlays[g],c.thumbnailOverlayTimeStatusRenderer&&c.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.v.computeObjectFit=function(e,g){return g||(e?"CONTAIN":"")};
_.v.computeNavigationEndpoint=function(e,g,c){return e?g:c};
_.v.computeHasClip=function(e){e=_.w(e||[]);for(var g=e.next();!g.done;g=e.next())if(g.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.v.computeOverlayColor=function(e){var g;return(e==null?0:(g=e.darkColorPalette)==null?0:g.section2Color)?e.darkColorPalette.section2Color:e==null?void 0:e.sampledThumbnailColor};
_.Bd.Object.defineProperties(XF.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.vlV(this.width)}}});
XF.prototype.onImageUnloaded=XF.prototype.onImageUnloaded;XF.prototype.onImageLoaded=XF.prototype.onImageLoaded;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],XF.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(UC1),_.B("design:type",Object)],XF.prototype,"ytdThumbnailBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],XF.prototype,"componentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],XF.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],XF.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],XF.prototype,"circular",void 0);
_.t([_.u({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.B("design:type",Object)],XF.prototype,"richThumbnail",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.B("design:type",Boolean)],XF.prototype,"hasClip",void 0);_.t([_.u(),_.B("design:type",Object)],XF.prototype,"eventSink",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],XF.prototype,"queued",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],XF.prototype,"richGridThumbnail",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],XF.prototype,"useExpandableTooltip",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],XF.prototype,"useUntranslatedNavigationEndpoint",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],XF.prototype,"disableInteraction",void 0);
_.t([_.u({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.B("design:type",Object)],XF.prototype,"computedNavigationEndpoint",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],XF.prototype,"nowPlayingEqualizerOnly",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],XF.prototype,"hidePlaybackStatus",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],XF.prototype,"objectFit",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],XF.prototype,"noRoundedCorners",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],XF.prototype,"watchFeedThumbnail",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],XF.prototype,"isPreviewLoading",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.B("design:type",Object)],XF.prototype,"isOriginalAspectRatio",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.B("design:type",Object)],XF.prototype,"computedObjectFit",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.B("design:type",Boolean)],XF.prototype,"isLiveVideo",void 0);
_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],XF.prototype,"loaded",void 0);_.t([_.u({computed:"computeOverlayColor(data.thumbnail)"}),_.B("design:type",Object)],XF.prototype,"overlayColor",void 0);_.t([_.u(),_.B("design:type",Boolean)],XF.prototype,"minimizePipBreakages",void 0);_.t([_.u({selector:_.lGC}),_.B("design:type",Boolean)],XF.prototype,"inlinePreviewIsEnabled",void 0);_.t([_.u(),_.B("design:type",Number)],XF.prototype,"width",void 0);
_.t([_.p("inlinePreviewIsEnabled"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XF.prototype,"isPreviewDisabled",null);_.t([_.p("width"),_.B("design:type",String),_.B("design:paramtypes",[])],XF.prototype,"thumbnailSize",null);_.t([_.Ks("image-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XF.prototype,"onImageLoaded",null);
_.t([_.Ks("image-unloaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XF.prototype,"onImageUnloaded",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-thumbnail"})],XF);
_.oI()(XF,"ytd-thumbnail",function(){if(e7q===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);e7q=e}e=e7q;return e},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying minimizePipBreakages".split(" "),mode:2});var zHq=function(e){var g=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15355_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15355_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(c){L4w(g,c)};
this.onLockupMouseLeaveFn=function(c){c=c.relatedTarget;var k,I;((k=document.getElementsByTagName("ytd-video-preview"))==null?0:(I=k.item(0))==null?0:I.contains(c))||(g.terminateVideoPreview(),GA(g))};
this.onThumbnailMouseDownFn=function(){g.terminateVideoPreview();GA(g)};
this.onTouchStart=function(){g.JSC$15355_touched=!0};
this.mediaRenderer=e.mediaRenderer;this.thumbnailElement=e.thumbnailElement;this.lockupElement=e.lockupElement;this.videoPreviewOptsInput=e.videoPreviewOpts;reB(this);x9(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)):
_.mN(Error("Gh")):_.mN(Error("Hh")):aDu(this)},dS=function(e){aDu(e);
var g;(g=e.lockupElement)==null||g.removeEventListener("mouseenter",e.onMouseMoveFn);var c;(c=e.lockupElement)==null||c.removeEventListener("mouseleave",e.onLockupMouseLeaveFn);var k;(k=e.lockupElement)==null||k.removeEventListener("touchstart",e.onTouchStart);var I;(I=e.thumbnailElement)==null||I.removeEventListener("mousedown",e.onThumbnailMouseDownFn);GA(e)},reB=function(e){e.inlinePreviewIsEnabledForUser=_.Tt().getState().ui.inlinePreviewIsEnabled;
e.unsubscribeFromInlinePreviewIsEnabled=_.kq(_.Tt(),_.lGC,function(g){(e.inlinePreviewIsEnabledForUser=g)||GA(e)});
e.JSC$15355_unsubscribeFromInlinePreviewIsActive=_.kq(_.Tt(),_.TOC,function(g){(e.inlinePreviewIsActive=g)||GA(e)})},aDu=function(e){e.unsubscribeFromInlinePreviewIsEnabled();
e.unsubscribeFromInlinePreviewIsEnabled=function(){};
e.JSC$15355_unsubscribeFromInlinePreviewIsActive();e.JSC$15355_unsubscribeFromInlinePreviewIsActive=function(){}},L4w=function(e,g){g.buttons>0||(g=_.MN("kevlar_lockup_hover_delay",-1),e.JSC$15355_touched&&g>=0?(_.ft.cancelJob(e.videoPreviewJobId),e.videoPreviewJobId=_.HT(_.ft,function(){ngM(e)},g),e.JSC$15355_touched=!1):ngM(e))},z0U=function(e){e.videoPreviewJobId=_.HT(_.ft,function(){return _.r(function(g){return g.yield(R7u(e,{isAutoplay:!0}),0)})})},ngM=function(e){!e.previewTriggered&&x9(e)&&
(e.inlinePreviewIsActive&&e.terminateVideoPreview(),e.previewTriggered=!0,e.mediaRenderer.isInlinePreviewTriggered=!0,_.ft.cancelJob(e.videoPreviewJobId),e.videoPreviewJobId=_.HT(_.ft,function(){return _.r(function(g){return g.yield(R7u(e),0)})}))},R7u=function(e,g){g=g===void 0?{}:g;
var c=g.isAutoplay===void 0?!1:g.isAutoplay;var k,I,J,q;return _.r(function(L){if(L.nextAddress==1){if(!x9(e))return L.return();k=e.getVideoPreviewOpts();if(!k)return L.return();c&&(k.isAutoplay=!0);return(J=(I=_.V1(e.mediaRenderer.hostElement,"yt-open-video-preview-action",[k]))&&I[0])?L.yield(I[0],3):L.jumpTo(2)}L.nextAddress!=2&&(J=L.yieldResult===1);if(J){var n=(q=e.mediaRenderer)==null?void 0:q.data;n&&(d4g(n)?delete n.inlinePlayerData:"inlinePlaybackEndpoint"in n&&delete n.inlinePlaybackEndpoint)}_.Uh(L)})};
zHq.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var e,g;if((g=(e=this.videoPreviewOptsInput)==null?void 0:e.videoPreviewData)!=null)e=g;else if(e=this.mediaRenderer.data)if(d4g(e))e={inlinePlaybackEndpoint:_.WT(e.inlinePlayerData.onVisible),navigationEndpoint:_.WT(e.onTap),thumbnail:"image"in e?e.image:e.thumbnail,thumbnailOverlays:void 0,accessibilityText:utp(e)};else if("multipleInlinePlaybackEndpoint"in e){var c=_.x(_.x(e.multipleInlinePlaybackEndpoint,nLk),d7W);if(c!=
null&&c.playerDescriptors){g=[];c=_.w(c.playerDescriptors);for(var k=c.next();!k.done;k=c.next())k=k.value,g.push({inlinePlaybackEndpoint:k.inlinePlaybackEndpoint,navigationEndpoint:k.navigationEndpoint,thumbnail:k.thumbnail,thumbnailOverlays:k.thumbnailOverlays,accessibilityText:utp(e)});e=g}else e=void 0}else e={inlinePlaybackEndpoint:e.inlinePlaybackEndpoint,navigationEndpoint:e.navigationEndpoint,thumbnail:e.thumbnail,thumbnailOverlays:e.thumbnailOverlays,accessibilityText:utp(e)};else e=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:e,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var x9=function(e){var g;if(g=e.inlinePreviewIsEnabledForUser)g=(e=e.mediaRenderer.data)?"inlinePlaybackEndpoint"in e&&e.inlinePlaybackEndpoint||d4g(e)&&e.inlinePlayerData||"multipleInlinePlaybackEndpoint"in e&&e.multipleInlinePlaybackEndpoint?!0:!1:!1;return g};
zHq.prototype.terminateVideoPreview=function(){_.Z5(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var GA=function(e){_.ft.cancelJob(e.videoPreviewJobId);e.inlinePreviewIsActive=!1;e.previewTriggered=!1;e.mediaRenderer.isInlinePreviewTriggered=!1};var Egq=_.Ti(["#"]),Df=function(){var e=_.z.apply(this,arguments)||this;e.isDisabled=!1;return e};
_.Y(Df,_.z);_.v=Df.prototype;
_.v.configureRendererStamper=function(){return{"data.menu":eZ,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.getMetadata=function(e){var g=[];if(e.metadataText&&Object.keys(e.metadataText).length>0){var c=this.ytRendererBehavior.getSimpleString(e.metadataText);e.upcomingEventData&&e.upcomingEventData.upcomingEventText&&(c=_.vY(c,Number(e.upcomingEventData.startTime)));g.push(c)}else e.shortViewCountText&&g.push(this.ytRendererBehavior.getSimpleString(e.shortViewCountText)),e.publishedTimeText&&g.push(this.ytRendererBehavior.getSimpleString(e.publishedTimeText)),e.upcomingEventData&&e.upcomingEventData.upcomingEventText&&
(c=this.ytRendererBehavior.getSimpleString(e.upcomingEventData.upcomingEventText),g.push(_.vY(c,Number(e.upcomingEventData.startTime))));return g};
_.v.calculateBylineText=function(e){return e.shortBylineText?e.shortBylineText:e.bylineText?e.bylineText:null};
_.v.calculateIsDisabled=function(e){return!!e.isDisabled};
_.v.computeHrefWithDefault=function(e){return this.ytComponentBehavior.computeHref_(e)||_.fEe(Egq)};
_.v.onDetailsTap=function(e){var g=this.data&&this.data.navigationEndpoint;g&&!_.TJ(_.lg(e)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.G("kevlar_grid_video_renderer_killswitch")?_.oC(this.hostElement,"yt-navigate",{endpoint:g}):this.ytComponentBehavior.resolveCommand(g))};
_.v.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15362_inlinePreviewHoverListener=hC({mediaRenderer:this,lockupElement:_.o1(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.o1(this.hostElement).querySelector("ytd-thumbnail")})};
_.v.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$15362_inlinePreviewHoverListener)==null||dS(e)};
_.v.computeThumbnailWidth=function(e,g){return g&&g>0?g:e?360:210};
_.v.computeNumBadgesInRow=function(e){var g;return((g=e.badges)==null?void 0:g.length)||0};
_.v.computeShowChannelThumbnail=function(e,g){var c;return g&&!!(e==null?0:(c=e.channelThumbnailSupportedRenderers)==null?0:c.channelThumbnailWithLinkRenderer)};
_.Bd.Object.defineProperties(Df.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$15362_inlinePreviewHoverListener)==null?0:x9(e))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
Df.prototype.dataChanged=Df.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Df.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Df.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],Df.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.m(_.f3),_.B("design:type",Object)],Df.prototype,"ytdLockupBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Df.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Df.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],Df.prototype,"noEndpoints",void 0);_.t([_.u({computed:"calculateBylineText(data)"}),_.B("design:type",Object)],Df.prototype,"bylineText",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Df.prototype,"isSearch",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Df.prototype,"isDownloading",void 0);_.t([_.u({reflectToAttribute:!0,value:0}),_.B("design:type",Number)],Df.prototype,"width",void 0);_.t([_.u({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.B("design:type",Object)],Df.prototype,"isDisabled",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Df.prototype,"dataChanged",null);_.t([_.p("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Df.prototype,"isHovered",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Df.prototype,"hasAttributedBylineText",null);
_.t([_.p("bylineText","hasAttributedBylineText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Df.prototype,"showBylineText",null);_.t([_.bF({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Df);
_.U(Df,"ytd-grid-video-renderer",function(){if(oR1!==void 0)return oR1;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return oR1=e},{mode:2});var W4u;var $9=function(){var e=_.z.apply(this,arguments)||this;e.roundedContainer=!0;e.skipRoundingTop=!1;e.disableTopPadding=!1;e.amsterdamEnabled=_.G("enable_desktop_amsterdam_info_panels");e.extractOverlay=!1;return e};
_.Y($9,_.z);$9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$9.prototype.onClick=function(e){var g,c=(g=this.data)==null?void 0:g.sourceEndpoint;!_.TJ(_.lg(e),this.hostElement,["A".toString()])&&c&&_.oC(this.hostElement,"yt-navigate",{endpoint:c})};
_.Bd.Object.defineProperties($9.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 e;return!((e=this.data)==null||!e.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var e,g;return(g=(e=this.data)==null?void 0:e.paragraphMaxLines)!=null?g:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$9.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$9.prototype,"showVerticalDividers",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$9.prototype,"roundedContainer",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$9.prototype,"skipRoundingTop",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$9.prototype,"disableTopPadding",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],$9.prototype,"amsterdamEnabled",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$9.prototype,"extractOverlay",void 0);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],$9.prototype,"showMetadataAtTop",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],$9.prototype,"showMetadataBelowTitle",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],$9.prototype,"hasMenu",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data.truncateParagraphs"),_.B("design:type",Object),_.B("design:paramtypes",[])],$9.prototype,"truncateParagraphs",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.paragraphMaxLines"),_.B("design:type",Number),_.B("design:paramtypes",[])],$9.prototype,"paragraphMaxLines",null);
_.t([_.u({type:_.G("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.p("data.background"),_.B("design:type",Object),_.B("design:paramtypes",[])],$9.prototype,"background",null);_.t([_.bF({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],$9);
_.U($9,"ytd-info-panel-content-renderer",function(){if(W4u!==void 0)return W4u;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return W4u=e},{mode:2});var bpY;var h7I;var Xik;var GRn;var Y9=function(){return _.z.apply(this,arguments)||this};
_.Y(Y9,_.z);Y9.prototype.computeStyle=function(e){return e};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Y9.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],Y9.prototype,"style_",void 0);_.t([_.Wo({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Y9);
_.U(Y9,"yt-channel-thumbnail-with-link-renderer",function(){if(GRn===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;Xik===void 0&&(Xik=document.createElement("template"));var k=Xik;c.call(g,k.content.cloneNode(!0),e.content.firstChild);GRn=e}e=GRn;return e},{mode:2});var fS=function(){return _.z.apply(this,arguments)||this};
_.Y(fS,_.z);fS.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"}}}};
fS.prototype.computeTitleStyle=function(e){return e||null};
fS.prototype.computeAvatarStyle=function(e){return e||null};
fS.prototype.computeShowNavigationButton=function(e,g){return!(e==null||!e.navigationButton||g)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fS.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.B("design:type",String)],fS.prototype,"titleStyle",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.B("design:type",String)],fS.prototype,"avatarStyle",void 0);_.t([_.u(),_.B("design:type",Boolean)],fS.prototype,"hideNavigationButton",void 0);_.t([_.bF({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],fS);
_.U(fS,"ytd-rich-list-header-renderer",function(){if(h7I!==void 0)return h7I;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return h7I=e},{mode:2});var jZ=function(){return _.z.apply(this,arguments)||this};
_.Y(jZ,_.z);jZ.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],jZ.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],jZ.prototype,"isSearch",void 0);_.t([_.bF({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],jZ);
_.U(jZ,"ytd-preview-card-renderer",function(){if(bpY!==void 0)return bpY;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return bpY=e},{mode:1});var x3q;var ih=function(){return _.z.apply(this,arguments)||this};
_.Y(ih,_.z);ih.prototype.configureRendererStamper=function(){return{"data.menu":eZ}};
ih.prototype.dataChanged=function(){var e=this.get("colorExtractionPalette.section1Color",this.data);e=_.R1(e);_.Nk(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":e})};
ih.prototype.computeCardStyle=function(e){return this.get("style.value",e)||null};
ih.prototype.dataChanged=ih.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ih.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],ih.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ih.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.B("design:type",String)],ih.prototype,"cardStyle",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ih.prototype,"dataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],ih);
_.U(ih,"ytd-compact-channel-recommendation-card-renderer",function(){if(x3q!==void 0)return x3q;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return x3q=e},{mode:1});var D3w;var $3s;var PG=function(){var e=_.z.apply(this,arguments)||this;e.alignAuto=!1;e.collapsed=!0;e.isToggled=!1;e.alwaysCollapsed=!1;e.canToggle=!0;e.collapsedHeight=80;e.disableToggle=!1;e.alwaysToggleable=!1;e.reversed=!1;e.shouldUseNumberOfLines=!1;e.recomputeOnResize=!1;e.canToggleJobId=0;e.lastReversed=!1;return e};
_.Y(PG,_.z);_.v=PG.prototype;_.v.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.v.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.v.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var e=_.o1(this.hostElement),g=e.childNodes,c=document.createDocumentFragment(),k=e.childNodes.length-1;k>=0;k--)_.o1(c).appendChild(g[k]);_.G("enable_shadydom_free_scoped_node_methods")?_.Zu(this.hostElement).appendChild(c):e.appendChild(c)}};
_.v.ready=function(){var e=this;_.Y_(function(){e.initChildrenObserver()},1)};
_.v.attached=function(){var e;(e=this.resizeObserver)==null||e.observe(this.content)};
_.v.detached=function(){this.detachObserver()};
_.v.toggle=function(e,g){this.canToggle&&(this.isToggled=g,_.oC(this.hostElement,"yt-refit"),e&&e.stopPropagation())};
_.v.reset=function(){this.childrenChanged()};
_.v.onIronResize=function(){this.recomputeOnResize&&!_.G("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.v.computeIsMoreVisible=function(e,g){return e&&!g};
_.v.computeShouldUseNumberOfLines=function(e){try{return!!e&&window.CSS.supports("-webkit-line-clamp","1")}catch(g){}return!1};
_.v.computeIsLessVisible=function(e,g){return e&&g};
_.v.observeCollapsedHeightAndMaxLines=function(){var e=this.collapsedHeight,g=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Nk(this.hostElement,{"--ytd-expander-max-lines":""+g,"--ytd-expander-collapsed-height":""}):_.Nk(this.hostElement,{"--ytd-expander-collapsed-height":e+"px","--ytd-expander-max-lines":""})};
_.v.handleMoreTap=function(e){this.disableToggle||(_.oC(this.hostElement,"yt-expander-more-tapped"),this.toggle(e,!0))};
_.v.handleLessTap=function(e){_.oC(this.hostElement,"yt-expander-less-tapped");this.toggle(e,!1)};
_.v.initChildrenObserver=function(){var e=this;this.observer=new MutationObserver(function(){e.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.G("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.BT(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var g;(g=e.resizeThrottle)==null||g.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.v.childrenChanged=function(){var e=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){zF(function(){e.canToggleJobId=0;e.calculateCanCollapse()})}))};
_.v.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.v.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.v.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("collapsed-changed",this.collapsed))};
_.v.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("is-toggled-changed",this.isToggled))};
_.v.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("can-toggle-changed",this.canToggle))};
_.Bd.Object.defineProperties(PG.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
PG.prototype.canToggleChangedForBinding=PG.prototype.canToggleChangedForBinding;PG.prototype.isToggledChangedForBinding=PG.prototype.isToggledChangedForBinding;PG.prototype.collapsedChangedForBinding=PG.prototype.collapsedChangedForBinding;PG.prototype.observeCollapsedHeightAndMaxLines=PG.prototype.observeCollapsedHeightAndMaxLines;PG.prototype.onIronResize=PG.prototype.onIronResize;PG.prototype.reversedChanged=PG.prototype.reversedChanged;PG.prototype.toggledChanged=PG.prototype.toggledChanged;
PG.prototype.alwaysToggleableChanged=PG.prototype.alwaysToggleableChanged;_.t([_.m(_.Jc),_.B("design:type",Object)],PG.prototype,"ironResizableBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],PG.prototype,"alignAuto",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],PG.prototype,"collapsed",void 0);_.t([_.u(),_.B("design:type",Object)],PG.prototype,"isToggled",void 0);_.t([_.u(),_.B("design:type",Object)],PG.prototype,"alwaysCollapsed",void 0);
_.t([_.u(),_.B("design:type",Object)],PG.prototype,"canToggle",void 0);_.t([_.u(),_.B("design:type",Object)],PG.prototype,"collapsedHeight",void 0);_.t([_.u(),_.B("design:type",Object)],PG.prototype,"disableToggle",void 0);_.t([_.u(),_.B("design:type",Object)],PG.prototype,"alwaysToggleable",void 0);_.t([_.u(),_.B("design:type",Object)],PG.prototype,"reversed",void 0);_.t([_.u(),_.B("design:type",Number)],PG.prototype,"maxNumberOfLines",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.B("design:type",Object)],PG.prototype,"shouldUseNumberOfLines",void 0);_.t([_.u(),_.B("design:type",Object)],PG.prototype,"recomputeOnResize",void 0);_.t([_.Cs("#content"),_.B("design:type",HTMLDivElement)],PG.prototype,"content",void 0);_.t([_.k_("alwaysToggleable"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PG.prototype,"alwaysToggleableChanged",null);
_.t([_.k_("isToggled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PG.prototype,"toggledChanged",null);_.t([_.p("canToggleJobId"),_.B("design:type",Object),_.B("design:paramtypes",[])],PG.prototype,"isResetting",null);_.t([_.OY("reversed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PG.prototype,"reversedChanged",null);
_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PG.prototype,"onIronResize",null);_.t([_.OY("maxNumberOfLines","collapsedHeight"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PG.prototype,"observeCollapsedHeightAndMaxLines",null);_.t([_.OY("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PG.prototype,"collapsedChangedForBinding",null);
_.t([_.OY("isToggled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PG.prototype,"isToggledChangedForBinding",null);_.t([_.OY("canToggle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PG.prototype,"canToggleChangedForBinding",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-expander"})],PG);
_.U(PG,"ytd-expander",function(){if($3s!==void 0)return $3s;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return $3s=e},{mode:1});var mD=function(){return _.z.apply(this,arguments)||this};
_.Y(mD,_.z);mD.prototype.computeIsCarousel=function(e){return!!e.isCarousel};
mD.prototype.observeLightsourcePalette=function(){var e,g=(e=this.data)==null?void 0:e.vibrantsourceColorPaletteData;g&&_.vO(this.hostElement,g)};
mD.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
mD.prototype.observeLightsourcePalette=mD.prototype.observeLightsourcePalette;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],mD.prototype,"data",void 0);_.t([_.u({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],mD.prototype,"isCarousel",void 0);
_.t([_.OY("data.vibrantsourceColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mD.prototype,"observeLightsourcePalette",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],mD);
_.U(mD,"ytd-media-upsell-renderer",function(){if(D3w!==void 0)return D3w;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return D3w=e},{mode:2});var YZw;var pS=function(){var e=_.z.apply(this,arguments)||this;e.JSC$15389_playerEvents=new Map;e.listeningToPlayer=!1;e.startX=0;e.active=!1;e.shouldShowButtons=_.G("web_buttons_hidden_killswitch");e.isHighlighted=!1;e.useHighlightStyling=_.G("web_enable_deeper_metadata_highlight_styling");e.enableProblemWalkthrough=_.G("problem_walkthrough_sd");return e};
_.Y(pS,_.z);_.v=pS.prototype;
_.v.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.v.created=function(){this.JSC$15389_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.v.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.yg(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.yg(this,this.onActiveUpdate))};
_.v.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.yg(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.yg(this,this.onActiveUpdate))};
_.v.onDataChanged=function(){this.removePlayerListeners()};
_.v.onColorPaletteChange=function(){var e={},g;if(_.Du()==="USER_INTERFACE_THEME_DARK"&&((g=this.data)==null?0:g.darkColorPalette)){var c=this.data.darkColorPalette;e["--ytd-macro-markers-list-item-background-color"]=_.EY(this.get("section2Color",c))}else{var k;_.Du()==="USER_INTERFACE_THEME_LIGHT"&&((k=this.data)==null?0:k.lightColorPalette)&&(c=this.data.lightColorPalette,e["--ytd-macro-markers-list-item-background-color"]=_.EY(this.get("section3Color",c)))}c?(e["--ytd-macro-markers-list-item-title-color"]=
_.EY(this.get("primaryTitleColor",c)),e["--ytd-macro-markers-list-item-secondary-color"]=_.EY(this.get("secondaryTitleColor",c)),e["--ytd-macro-markers-list-item-timestamp-background-color"]=_.EY(this.get("section1Color",c)),this.customButtonProperties={customColors:{color:_.EY(this.get("primaryTitleColor",c))}},this.useColorSampling=!0):(e["--ytd-macro-markers-list-item-background-color"]="initial",e["--ytd-macro-markers-list-item-title-color"]="initial",e["--ytd-macro-markers-list-item-secondary-color"]=
"initial",e["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Nk(this.hostElement,e)};
_.v.onEndpointMouseDown=function(e){this.startX=e.clientX};
_.v.onEndpointClick=function(e){var g=this,c,k,I;return _.r(function(J){if(J.nextAddress==1){if(g.startX!==e.clientX)return e.preventDefault(),J.return();g.data&&g.ytRendererBehavior.logExplicitClick(g.data);if(!g.seekWithAnimationOnClick)return J.jumpTo(0);if(e.button!==0||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||_.TJ(_.lg(e),g.hostElement,["BUTTON".toString()]))return J.return();e.stopPropagation();e.preventDefault();return g.data?J.yield(_.u6().getPlayerPromise(),3):J.return()}c=J.yieldResult;
I=(k=_.x(g.data.onTap,_.Pm))==null?void 0:k.startTimeSeconds;I!==void 0&&c.seekToTimeWithAnimation(I*1E3,_.mp(g.data.title));_.Uh(J)})};
_.v.computeLayout=function(e){return e};
_.v.computeIsHighlighted=function(e){return!!e};
_.v.computeCarouselType=function(e){return e};
_.v.hideCarousel=function(e){return this.hideThumbnail(e)};
_.v.hideThumbnail=function(e){return this.enableProblemWalkthrough&&e!==null&&e==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.v.onRepeatButtonToggle=function(e){var g=this;e.detail.toggled&&_.u6().getPlayerPromise().then(function(c){g.ytPlayerListenerBehavior.listenToPlayerEvents(c,g.JSC$15389_playerEvents);g.listeningToPlayer=!0})};
_.v.onLoopRangeChange=function(e){var g=_.o1(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(g){var c=g.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",g.polymerController.data);if(c){var k=Number(c.endTimeMs);if(Number(c.startTimeMs)!==(e==null?void 0:e.startTimeMs)||k!==(e==null?void 0:e.endTimeMs))g.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.v.removePlayerListeners=function(){var e=this;this.listeningToPlayer&&_.u6().getPlayerPromise().then(function(g){e.ytPlayerListenerBehavior.unlistenFromPlayerEvents(g,e.JSC$15389_playerEvents);e.listeningToPlayer=!1})};
_.v.onActiveUpdate=function(e){this.active=e.detail.active};
pS.prototype.onColorPaletteChange=pS.prototype.onColorPaletteChange;pS.prototype.onDataChanged=pS.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],pS.prototype,"ytPlayerListenerBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],pS.prototype,"data",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],pS.prototype,"useCustomColors",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],pS.prototype,"active",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],pS.prototype,"shouldShowButtons",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.B("design:type",String)],pS.prototype,"layout",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.B("design:type",Object)],pS.prototype,"isHighlighted",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],pS.prototype,"useHighlightStyling",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],pS.prototype,"enableProblemWalkthrough",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.B("design:type",String)],pS.prototype,"carouselType",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],pS.prototype,"useColorSampling",void 0);_.t([_.u(),_.B("design:type",Boolean)],pS.prototype,"seekWithAnimationOnClick",void 0);_.t([_.u(),_.B("design:type",Object)],pS.prototype,"customButtonProperties",void 0);
_.t([_.Cs("#repeat-button"),_.B("design:type",HTMLElement)],pS.prototype,"repeatButton",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pS.prototype,"onDataChanged",null);_.t([_.OY("data.lightColorPalette","data.darkColorPalette"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pS.prototype,"onColorPaletteChange",null);
_.t([_.bF({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],pS);
_.U(pS,"ytd-macro-markers-list-item-renderer",function(){if(YZw!==void 0)return YZw;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return YZw=e},{mode:1});var fDv;var jSw;var TA=function(){return _.z.apply(this,arguments)||this};
_.Y(TA,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],TA.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],TA);
_.U(TA,"ytd-title-and-button-list-header-renderer",function(){if(jSw!==void 0)return jSw;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return jSw=e},{mode:1});var ipZ;var Pas=new _.AU("BUTTON_RENDERER_TOKEN");_.lh=_.H(function(e){var g=_.Ss().resolve(Pas);return _.a(g,Object.assign({},e,{overrides:e.buttonOverrides}))},"Ya");var m3v=_.H(function(e){var g=e.data,c=_.sz(e.useSquareAspectRatio,!1);return _.a("dismissed-mini-game-card-view-model",null,_.a(_.E,{cond:function(){var k,I;return(k=g().responseText)==null?void 0:(I=k.runs)==null?void 0:I.length},
then:function(){var k={};return _.a("div",{class:_.o6("yt-mini-game-card-view-model__dismissed-card",(k["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!c()},k["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.G("web_game_card_force_2_by_3")},k["yt-mini-game-card-view-model--dismissed-square-card"]=c,k))},_.a("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.a(_.E,{cond:function(){return g().responseText.runs[0].text},
then:function(I){return _.a("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:I},I)}}),_.a(_.eS,{data:function(){return g().buttons}},{buttonRenderer:_.lh,
buttonViewModel:_.oD})))}}))},"Za");var piw=_.H(function(e){var g=e.data;return _.a("br-nz-badge-shape",{class:_.o6(function(){return HlA(g().brNzRatingBadgeType)}),
role:function(){return g().accessibilityText?"img":void 0},
"aria-label":function(){return g().accessibilityText}},function(){var c;
return(c=g())==null?void 0:c.text})},"$a");_.A8=_.H(function(e){var g=function(){var c=e.data(),k,I,J,q,L;if(c){var n=!((k=e.workaroundShortsIsThumbnailBadge)==null||!k.call(e));k=(I=e.modern)==null?void 0:I.call(e);I=(J=e.numBadgesInRow)==null?void 0:J.call(e);J=(q=e.clipTextOverflow)==null?void 0:q.call(e);q=(L=e.inheritTypography)==null?void 0:L.call(e);var R;a:switch(c.badgeStyle){case "BADGE_OVERLAY":L=!0;break a;default:L=!1}c={type:n?17:Qkv(c.badgeStyle),brNzRatingBadgeType:U4W(c.badgeStyle),text:c.badgeText,icon:c.iconName,isOverlay:L,
modern:k||_.G("web_modern_badge_view_model"),accessibilityText:c.accessibilityLabel||((R=_.x(c.rendererContext,_.Jh))==null?void 0:R.label),numBadgesInRow:I,clipTextOverflow:J,shouldInheritTypography:q}}else c=void 0;return c};
return _.a("yt-badge-view-model",{class:_.o6("ytBadgeViewModelHost",e.class)},_.a(_.f4,null,_.a(_.DC,{when:function(){var c;return!((c=g())==null||!c.brNzRatingBadgeType)}},function(){return _.a(piw,{data:function(){return g()}})}),_.a(_.DC,{when:function(){return!!g()&&!g().brNzRatingBadgeType}},function(){return _.a(_.xG,{data:function(){return g()}})})))},"ab");
_.A8.idomCompat=!0;var z7u=_.H(function(e){e=_.FA(e,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var g=e.data,c=e.useFullWidth,k=e.isDesktopWeb,I=e.addSearchResultTopMargin,J=function(){return g().layout},q=function(){return g().title},L=function(){return g().metadataText?g().metadataText:g().genre},n=function(){return g().channelName},R=function(){return g().image},W=function(){return g().colorPalette},b=function(){return g().actionButton},h=function(){return g().overflowButton},
X=function(){return g().avatar},D=function(){return g().ageRating},f=function(){return g().thumbnailOverlays},l=function(){var V={};
V=_.o6("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(V["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return k()},V));
return _.a("div",{class:V},_.a(T8M,{imageData:R,colorPalette:W}),_.a(lDs,{onTap:function(){return g().onTap},
imageData:R,accessibilityText:function(){return g().accessibilityText},
overlayBadgeText:function(){return g().overlayBadgeText},
iconName:function(){return g().iconName},
unplayableInlinePlaybackIconName:function(){return g().unplayableInlinePlaybackIconName},
thumbnailOverlays:f,isDesktopWeb:k}),_.a(_.E,{cond:function(){return!k()},
then:function(){return _.a(_.es,null,_.a(Ae1,{layout:J,colorPalette:W,isDesktopWeb:k,overflowButton:h,avatar:X,onTap:function(){return g().onTap},
genre:L,title:q,channelName:n}),_.a(sSv,{actionButton:b}))}}))},A=function(){var V={};
V=_.o6((V["yt-mini-game-card-view-model--search-result-desktop"]=function(){return k()},V["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!k()},V["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return I()},V));
return _.a("div",{class:V},l(),_.a(F4q,{description:function(){return g().description},
isDesktopWeb:k,title:q,genre:L,onTap:function(){return g().onTap},
actionButton:b,overflowButton:h,avatar:X,channelName:n}))},d=function(){var V={};
V=_.o6("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(V["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return k()},V["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return k()&&g().width===135},V["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return k()},V["yt-mini-game-card-view-model--big-metadata-font"]=function(){return g().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},V["yt-mini-game-card-view-model--use-full-width"]=
function(){return c()},V["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.G("web_game_card_force_2_by_3")},V));
return _.a("div",{class:V},_.a(uKk,{colorPalette:W,isDesktopWeb:k,onTap:function(){return g().onTap},
accessibilityText:function(){return g().accessibilityText},
overlayBadgeText:function(){return g().overlayBadgeText},
iconName:function(){return g().iconName},
unplayableInlinePlaybackIconName:function(){return g().unplayableInlinePlaybackIconName},
actionButton:b,imageData:R,thumbnailOverlays:f}),_.a(Ae1,{layout:J,colorPalette:W,isDesktopWeb:k,overflowButton:h,avatar:X,onTap:function(){return g().onTap},
genre:L,title:q,channelName:n}),_.a(_.E,{cond:D,then:function(Q){return _.a(d34,{ageRating:Q})}}))},S=function(){var V={};
V=_.o6("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(V["yt-mini-game-card-view-model--square-card-desktop"]=function(){return k()},V["yt-mini-game-card-view-model--use-full-width"]=function(){return c()},V));
return _.a("div",{class:V},_.a(lDs,{onTap:function(){return g().onTap},
imageData:R,accessibilityText:function(){return g().accessibilityText},
overlayBadgeText:function(){return g().overlayBadgeText},
iconName:function(){return g().iconName},
unplayableInlinePlaybackIconName:function(){return g().unplayableInlinePlaybackIconName},
thumbnailOverlays:f,isDesktopWeb:k}),_.a(Ae1,{layout:J,colorPalette:W,isDesktopWeb:k,overflowButton:h,avatar:X,onTap:function(){return g().onTap},
genre:L,title:q,channelName:n}),_.a(_.E,{cond:D,then:function(Q){return _.a(d34,{ageRating:Q})}}))};
return _.a("mini-game-card-view-model",{class:e.className},_.a(_.f4,null,_.a(_.DC,{when:function(){return J()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return d()}),_.a(_.DC,{when:function(){return J()==="MINI_APP_LAYOUT_SQUARE"}},function(){return S()}),_.a(_.DC,{when:function(){return J()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return A()})))},"bb");
z7u.idomCompat=!0;var sSv=_.H(function(e){var g=_.sz(e.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.a(_.eS,{data:e.actionButton},{buttonViewModel:function(c){return _.a("div",{class:g},_.a(_.oD,{data:c.data}))}})},"cb"),lDs=_.H(function(e){var g=e.onTap;
var c=e.imageData;var k=e.accessibilityText;var I=e.overlayBadgeText;var J=e.iconName;var q=e.unplayableInlinePlaybackIconName;var L=e.isDesktopWeb;e=e.thumbnailOverlays;return _.a(_.d4,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:g},_.a(_.pv,{data:c,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(k==null?void 0:k())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.a(_.eS,{data:e},{thumbnailOverlayBadgeViewModel:_.h8}),_.a(Hpk,{overlayBadgeText:I,iconName:J,unplayableInlinePlaybackIconName:q,isDesktopWeb:L}))},"db"),Hpk=_.H(function(e){var g=e.overlayBadgeText;
var c=e.iconName;var k=e.unplayableInlinePlaybackIconName;var I=e.isDesktopWeb;return _.a("div",{class:"yt-mini-game-card-view-model__badge-container"},_.a(_.E,{cond:c,then:function(J){return _.a("div",{class:"yt-mini-game-card-view-model__badge"},_.a("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.a(_.SU,{icon:J,className:"yt-mini-game-card-view-model__icon",size:12}),_.a("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},g)))}}),_.a(_.E,{cond:function(){return!c()&&
g()},
then:function(){return _.a("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},g)}}),_.a(_.E,{cond:function(){return k()&&I()},
then:function(){return _.a("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.a(_.SU,{icon:k,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"eb"),T8M=_.H(function(e){var g=e.colorPalette;
var c=e.imageData;var k=function(){return g().vibrantColorPalette?g().vibrantColorPalette.section2Color:g().sectionTwoColor};
return _.a(_.es,null,_.a("div",{class:"yt-mini-game-card-view-model__background-base",style:_.N2({"background-color":function(){return Wg(k(),"1")}})}),_.a("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.N2({"background-image":function(){return"url("+c().sources[0].url+")"}})}),_.a("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.N2({background:function(){return"linear-gradient(180deg,\n    "+Wg(k(),".8")+" 0%,\n    "+Wg(k(),".4")+" 25%,\n    "+Wg(g().vibrantColorPalette?g().vibrantColorPalette.section4Color:g().sectionFourColor,".8")+" 100%)"}})}))},"fb"),Ae1=_.H(function(e){var g=e.layout;
var c=e.colorPalette;var k=e.overflowButton;var I=e.avatar;var J=e.onTap;var q=e.title;var L=e.channelName;var n=e.genre;var R=function(){var W;return g()!=="MINI_APP_LAYOUT_SQUARE"&&((W=c())==null?0:W.textPrimaryColor)?"color: "+Wg(c().textPrimaryColor,".7"):""};
return _.a("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.a(_.E,{cond:I,then:function(){return _.a("div",{class:"yt-mini-game-card-view-model__avatar"},_.a(_.eS,{data:I},{avatarViewModel:_.E8}))}}),_.a(_.d4,{command:J,
className:"yt-mini-game-card-view-model__metadata-details"},_.a("h3",{class:"yt-mini-game-card-view-model__title",title:q},q),_.a(_.E,{cond:I,then:function(){return _.a("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.a("span",{class:"yt-mini-game-card-view-model__genre",title:L,style:R},L),_.a("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:R},n))},
else:function(){return _.a("span",{class:"yt-mini-game-card-view-model__genre",title:n},n)}})),_.a("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.a(_.eS,{data:k},{buttonViewModel:function(W){var b=W.data;
return _.a(_.oD,{data:function(){return Object.assign({},b(),{customFontColor:g()==="MINI_APP_LAYOUT_SINGLETON"?b().customFontColor:void 0})}})}})))},"gb"),uKk=_.H(function(e){var g=e.colorPalette;
var c=e.isDesktopWeb;var k=e.onTap;var I=e.accessibilityText;var J=e.overlayBadgeText;var q=e.iconName;var L=e.unplayableInlinePlaybackIconName;var n=e.actionButton;var R=e.imageData;e=e.thumbnailOverlays;return _.a("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.a(T8M,{imageData:R,colorPalette:g}),_.a(lDs,{onTap:k,imageData:R,accessibilityText:I,overlayBadgeText:J,iconName:q,unplayableInlinePlaybackIconName:L,isDesktopWeb:c,thumbnailOverlays:e}),_.a(_.E,{cond:function(){return n==
null?void 0:n()},
then:function(){return _.a(sSv,{actionButton:n})}}))},"hb"),F4q=_.H(function(e){var g=e.description;
var c=e.isDesktopWeb;var k=e.title;var I=e.genre;var J=e.onTap;var q=e.actionButton;var L=e.overflowButton;var n=e.avatar;e=e.channelName;var R={};R=_.o6("yt-mini-game-card-view-model--search-result-metadata-wrapper",(R["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=c,R["yt-mini-game-card-view-model--show-unplayable-on-hover"]=c,R["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!c()},R));
var W={};W=_.o6("yt-mini-game-card-view-model__search-result-info-row",(W["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!c()},W));
return _.a("div",{class:R},_.a("div",{class:W},_.a(_.d4,{command:J,className:"yt-mini-game-card-view-model__metadata-details"},_.a("h3",{class:"yt-mini-game-card-view-model__title",title:k},k),_.a("span",{class:"yt-mini-game-card-view-model__genre",title:I},I)),_.a(sSv,{actionButton:q,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.a("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.a(_.eS,{data:L},{buttonViewModel:_.oD}))),_.a("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.a("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.a("div",{class:"yt-mini-game-card-view-model__avatar"},_.a(_.eS,{data:n},{avatarViewModel:function(b){var h=b.data;return _.a(_.E8,{data:function(){return Object.assign({},h(),{avatarImageSize:c()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.a(_.d4,{command:J,
className:"yt-mini-game-card-view-model__description"},_.a("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},e)),_.a(_.d4,{command:J,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.a("div",null)))),_.a(_.E,{cond:c,then:function(){return _.a(_.d4,{command:J,className:"yt-mini-game-card-view-model__description"},g)}}))},"ib"),d34=_.H(function(e){var g=e.ageRating;
return _.a("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.a(_.pv,{data:function(){return{sources:[{url:g().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.a(_.A8,{data:function(){return{badgeText:g().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"jb");_.sL(z7u,"mini-game-card-view-model",{props:{data:_.jx,className:_.jx,useFullWidth:_.jx,isDesktopWeb:_.jx,addSearchResultTopMargin:_.jx}});_.sL(m3v,"dismissed-mini-game-card-view-model",{props:{data:_.jx,useSquareAspectRatio:_.jx}});var s8=function(){var e=_.z.apply(this,arguments)||this;e.isSearch=!1;e.isRichGrid=!1;return e};
_.Y(s8,_.z);_.v=s8.prototype;_.v.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.v.dismissibleItemOnYtServiceRequestSent=function(e,g){g.actions&&this.dismissibleItemProcessActions(e,g.actions)};
_.v.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.v.dataChanged=function(){this.dismissibleItemReset()};
_.v.dismissibleItemProcessActions=function(e,g){for(var c=0;c<g.length;c++){var k=g[c];_.x(k,_.CX)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.x(k,_.CX)),e.stopPropagation())}};
_.v.dismissibleItemHandleReplaceEnclosingAction=function(e){this.dismissedRenderer=e.item;this.isDismissed=!0};
_.Bd.Object.defineProperties(s8.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var e;return!!this.data&&!((e=this.dismissedRenderer)==null?0:e.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.dismissedRenderer)==null||!e.notificationMultiActionRenderer)}}});
s8.prototype.dataChanged=s8.prototype.dataChanged;s8.prototype.dismissibleItemOnRequestSent=s8.prototype.dismissibleItemOnRequestSent;s8.prototype.dismissibleItemOnYtServiceRequestSent=s8.prototype.dismissibleItemOnYtServiceRequestSent;_.t([_.u(),_.B("design:type",Object)],s8.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s8.prototype,"isSearch",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],s8.prototype,"isDismissed",void 0);
_.t([_.u(),_.B("design:type",Object)],s8.prototype,"dismissedRenderer",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s8.prototype,"isRichGrid",void 0);_.t([_.p("data.layout"),_.B("design:type",Object),_.B("design:paramtypes",[])],s8.prototype,"useSquareAspectRatio",null);_.t([_.p("data","dismissedRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],s8.prototype,"showCard",null);
_.t([_.p("data","dismissedRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],s8.prototype,"showDismissed",null);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],s8.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.t([_.Ks("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],s8.prototype,"dismissibleItemOnRequestSent",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s8.prototype,"dataChanged",null);_.t([_.Wo({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],s8);
_.U(s8,"ytd-mini-game-card-view-model",function(){if(ipZ!==void 0)return ipZ;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ipZ=e},{mode:2});var QSs;var U31;var FF=function(){return _.NZ.apply(this,arguments)||this};
_.Y(FF,_.NZ);FF.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
FF.prototype.getContinuationUrl=function(e){var g={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(g.itct=this.data.clickTrackingParams);return _.MO(e,g)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],FF.prototype,"data",void 0);_.t([_.Wo({is:"yt-reload-continuation",noInjection:!0})],FF);var ogI;var Zp1;var uh=function(){var e=_.z.apply(this,arguments)||this;e.notificationData={};return e};
_.Y(uh,_.z);_.v=uh.prototype;_.v.isMenuExpanded=function(e){return e&&e.length<=1?"undefined":"false"};
_.v.dataChanged_=function(){this.selected=void 0;var e=this.computeSelectedIndex_(this.data);e>=0&&(this.selected=e);e=this.data&&this.data.length>1;_.Vg(this.hostElement,"has-items",e);_.o1(this.hostElement).querySelector("#label").tabIndex=e?0:-1};
_.v.onDropdownOpen=function(){var e=_.EM();if(this.parentTrackingParams&&this.data){var g=_.Jb(this.parentTrackingParams);this.data.forEach(function(c){e&&g&&c.trackingParams&&(c=_.Jb(c.trackingParams),_.Yn(e,g,c),_.iB(e,[c]))})}else this.parentTrackingParams||_.mN(new _.E2("No parent tracking params passed in for yt-dropdown-menu."))};
_.v.hasNotification=function(e){var g;if(e.targetId&&((g=this.notificationData)==null?0:g.targetId)){var c;return e.targetId===((c=this.notificationData)==null?void 0:c.targetId)}};
_.v.computeSelectedIndex_=function(e){if(e)for(var g=0,c=e.length;g<c;g++)if(e[g].selected)return g;return-1};
_.v.computeLabel_=function(e){return this.data&&e!=void 0?this.data[e].title:""};
_.v.computeShowIcon_=function(e,g){return!g&&!!e};
_.v.computeVerticalOffset_=function(e){return e?36:0};
_.v.computeEndpoint_=function(e){return e.endpoint||e.navigationEndpoint};
_.v.onLabelClick_=function(e){this.data&&this.data.length<=1?e.stopPropagation():this.menuExpanded="true"};
_.v.onIronActivate_=function(e){e=e.detail.item;var g=_.o1(this.hostElement).querySelector("#repeat").itemForElement(e);if(g&&g.trackingParams){var c=_.EM(),k=_.Jb(g.trackingParams);c&&_.m7(c,k)}if(g&&g.serviceEndpoint)_.G("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(g.serviceEndpoint):_.tr(this.hostElement,[g.serviceEndpoint]),_.oC(this.hostElement,"yt-playlist-reloading");else a:{if((g=e.querySelector("yt-supported-renderers"))&&
(g=g.rendererElement)&&g.is=="yt-reload-continuation"){g.trigger();break a}(e=e.querySelector("yt-reload-continuation"))&&e.trigger()}};
_.v.onTap_=function(e){e.preventDefault()};
_.v.onItemTap_=function(e){this.ytEndpointBehavior.onEndpointTap_(e)};
_.v.onLinkFocus_=function(e){try{var g=e.target}catch(k){}if(g){var c=g.querySelector("tp-yt-paper-item");c&&_.fO(this,"focus",function(){c.focus()})}};
_.v.onMenuClose_=function(){this.menuExpanded="false"};
_.v.isLabelIconActive_=function(e){return e==="true"};
_.v.computeHasSubtitle_=function(e){return!!e};
_.v.computeHrefForItem_=function(e){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(e))};
_.v.updateSelectedFromBinding=function(e){this.selected=e.detail.value};
_.Bd.Object.defineProperties(uh.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
uh.prototype.onMenuClose_=uh.prototype.onMenuClose_;uh.prototype.onTap_=uh.prototype.onTap_;uh.prototype.onIronActivate_=uh.prototype.onIronActivate_;uh.prototype.onDropdownOpen=uh.prototype.onDropdownOpen;uh.prototype.dataChanged_=uh.prototype.dataChanged_;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],uh.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.B$.YtEndpointBehavior),_.B("design:type",Object)],uh.prototype,"ytEndpointBehavior",void 0);
_.t([_.u(),_.B("design:type",Array)],uh.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],uh.prototype,"parentTrackingParams",void 0);_.t([_.u(),_.B("design:type",Object)],uh.prototype,"selected",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],uh.prototype,"useLabel",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],uh.prototype,"useComputedAriaLabel",void 0);_.t([_.u(),_.B("design:type",String)],uh.prototype,"icon",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],uh.prototype,"iconLabel",void 0);_.t([_.u(),_.B("design:type",String)],uh.prototype,"ariaLabel",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],uh.prototype,"disabled",void 0);_.t([_.u({computed:"isMenuExpanded(data)"}),_.B("design:type",String)],uh.prototype,"menuExpanded",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],uh.prototype,"closeOnActivate",void 0);
_.t([_.u({reflectToAttribute:!0,value:_.G("web_modern_buttons")}),_.B("design:type",Boolean)],uh.prototype,"modernButtons",void 0);_.t([_.u(),_.B("design:type",Object)],uh.prototype,"notificationData",void 0);_.t([_.p("ariaLabel, selected"),_.u(),_.B("design:type",String),_.B("design:paramtypes",[])],uh.prototype,"computedAriaLabel",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uh.prototype,"dataChanged_",null);
_.t([_.Ks("paper-dropdown-open"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],uh.prototype,"onDropdownOpen",null);_.t([_.Ks("iron-activate"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],uh.prototype,"onIronActivate_",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],uh.prototype,"onTap_",null);
_.t([_.Ks("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],uh.prototype,"onMenuClose_",null);_.t([_.Wo({is:"yt-dropdown-menu",disableElementRegistration:!0})],uh);
_.U(uh,"yt-dropdown-menu",function(){if(Zp1===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;ogI===void 0&&(ogI=document.createElement("template"));var k=ogI;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Zp1=e}e=Zp1;return e},{mode:2});var de=function(){var e=_.z.apply(this,arguments)||this;e.hasNotification=!1;return e};
_.Y(de,_.z);de.prototype.computeId=function(e){return e};
de.prototype.computeHorizontalAlign=function(e){return e?"right":"left"};
de.prototype.computeAccessibilityLabel=function(e){var g,c;return((g=e.accessibility)==null?void 0:(c=g.accessibilityData)==null?void 0:c.label)||null};
de.prototype.notificationDataChanged=function(){var e;this.hasNotification=!!this.notificationData&&!((e=this.data)==null?0:e.icon)};
de.prototype.notificationDataChanged=de.prototype.notificationDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.b7.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],de.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],de.prototype,"data",void 0);_.t([_.u({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",String)],de.prototype,"id",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],de.prototype,"isRightAligned",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],de.prototype,"disabled",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],de.prototype,"closeOnActivate",void 0);_.t([_.u(),_.B("design:type",Object)],de.prototype,"notificationData",void 0);_.t([_.u(),_.B("design:type",Object)],de.prototype,"hasNotification",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],de.prototype,"useComputedAriaLabel",void 0);_.t([_.OY("notificationData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],de.prototype,"notificationDataChanged",null);_.t([_.Wo({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],de);
_.U(de,"yt-sort-filter-sub-menu-renderer",function(){if(U31===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;QSs===void 0&&(QSs=document.createElement("template"));var k=QSs;c.call(g,k.content.cloneNode(!0),e.content.firstChild);U31=e}e=U31;return e},{mode:2});var VTn=_.H(function(e){var g=e.data;var c=_.Ve(function(){var J=g().onTap;(J=_.x(J,_.EL))&&_.Ss().resolve(_.xk).resolveCommand(J);return!1}),k=function(){return{sources:[{url:g().thumbnailUrl,
width:120,height:90}]}},I=function(){return g().rating&&g().ratingA11yLabel&&g().reviewsCount&&g().reviewsCountA11yLabel};
return _.a("place-data-view-model",null,_.a(_.E,{cond:function(){return g().placeName&&g().placeCategory},
then:function(){return _.a("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":c},_.a(_.pv,{data:k,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.a(_.d4,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return g().onTap}},_.a("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return g().placeName}},function(){return g().placeName})),_.a("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.a(_.E,{cond:I,
then:function(){return _.a("div",{class:_.o6("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.a("span",{class:"score",title:function(){return g().ratingA11yLabel}},function(){return g().rating}),_.a("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.a(_.SU,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.a("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return g().reviewsCountA11yLabel}},function(){return g().reviewsCount}))},
else:function(){return _.a("div",{class:_.o6("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.a("div",{class:_.o6("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.a("span",{class:"category",
title:function(){return g().placeCategory}},function(){return g().placeCategory}))))}}))},"kb");
VTn.idomCompat=!0;_.sL(VTn,"place-data-view-model",{props:{data:_.jx}});var tTv=new _.AU("INLINE_PLAYBACK_HOOK_TOKEN");var B8q=ri({sharedUi:$mw});_.Yu=aH(B8q)(B8q.sharedUi,{animatedThumbnailEnabledSelector:function(e){return e.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(e){return e.inlinePreviewEnabled},
currentPageTypeSelector:function(e){return e.currentPageType},
currentPageSubTypeSelector:function(e){return e.currentPageSubType},
persistentPanelVisibleSelector:function(e){return e.persistentPanelVisible}});var N8w=function(e){this.setActiveSlideIndex=e;this.jobIds=[];this.isSlideshowPlaying=!1},K4k=function(e,g){e.isSlideshowPlaying||(e.isSlideshowPlaying=!0,SZv(e),yek(e,g,0))},SZv=function(e){_.HT(_.ft,function(){e.setActiveSlideIndex(0)},1)},yek=function(e,g,c){e.jobIds.push(_.HT(_.ft,function(){var k=c<g-1?c+1:0;
e.setActiveSlideIndex(k);yek(e,g,k)},1800))};var Opq,Cau;Opq=new _.AU("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.MTs=new _.AU("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");Cau=new _.AU("COMMON_MARK_VIEW_MODEL_TOKEN");var e3Z=new _.AU("IMAGE_ON_LOAD_HANDLER_TOKEN");var gZZ=_.H(function(e){return _.a("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.a(_.E,{cond:function(){var g;return(g=e.data())==null?void 0:g.thumbnail},
then:function(g){return _.a(_.pv,{data:g,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"lb");_.cyw=_.H(function(e){var g=e.data;var c=e.lockupExperiments;e={};return _.a("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.a("div",{class:_.o6("ytThumbnailOverlayButtonViewModelButton",(e.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var k;return c&&((k=c())==null?void 0:k.useLegacySizedIconButton)},e))},_.a(_.eS,{data:function(){return g().overlayButton}},{buttonViewModel:function(k){return _.a(_.oD,{data:k.data,
buttonOverrides:function(){var I;return c&&((I=c())==null?0:I.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"mb");
_.cyw.idomCompat=!0;var kzk=_.H(function(e){return _.a("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Ve(function(g){g.preventDefault();return!1})},_.a(_.eS,{data:function(){return e.data().buttons}},{toggleButtonViewModel:function(g){return _.a("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.a(_.vF,{data:g.data}))}}))},"nb");
kzk.idomCompat=!0;var IT1=_.H(function(e){var g=function(){var c;return((c=_.x(e.data().rendererContext,_.Jh))==null?void 0:c.label)||""};
return _.a("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.a(_.E,{cond:function(){return e.data().image},
then:function(){return _.a("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.a(_.pv,{data:function(){return e.data().image},
alt:g}))}}),_.a(_.E,{cond:function(){return e.data().text},
then:function(){return _.a("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return e.data().text})}}))},"ob");var Jyq=_.Yu.animatedThumbnailEnabledSelector,zA=_.H(function(e){var g=[],c=function(){var h,X;return _.vlV((h=e.width)==null?void 0:h.call(e),(X=e.height)==null?void 0:X.call(e))},k=_.Ss().resolve(_.NN(e3Z)),I=_.io("yt-thumbnail-view-model",function(){g.push("elRef.value set");
var h;(h=e.playbackRef)==null||h.call(e,{thumbnailElRef:I,thumbnail:e.data().image,thumbnailOverlays:e.data().overlays,thumbnailSize:c()})});
_.lo(function(){g.push("onInit");_.sX(function(){g.push("onCleanup")})});
var J=_.M2(Jyq),q=function(){var h,X;return(X=(h=e.aspectRatio)==null?void 0:h.call(e))!=null?X:0},L=function(){return(e.data().image?_.PTW(e.data().image):q())<=1&&q()===0},n=function(){return L()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},R=function(){I.value||_.mN(new _.E2("Thumbnail elRef.value is null",g.join("\n")));
k&&I.value&&k(I.value)},W=function(){var h,X;
return((h=e.hovered)==null?void 0:h.call(e))&&c()!=="large"&&((X=e.data().overlays)==null?void 0:X.some(function(D){return _.x(D,e5n)}))},b={};
return _.a("yt-thumbnail-view-model",{class:_.o6("ytThumbnailViewModelHost",e.className,function(){return Zlq(q())},function(){var h,X;
a:{var D=c(),f=(h=e.disableRounding)==null?void 0:h.call(e);h=(X=e.isClip)==null?void 0:X.call(e);if(!f&&!h)switch(D){case "large":X="ytThumbnailViewModelLarge";break a;case "small":X="ytThumbnailViewModelSmall";break a;default:X="ytThumbnailViewModelMedium";break a}X=void 0}return X},(b.ytThumbnailViewModelCinematic=L,b)),
style:_.N2({"background-color":function(){var h,X=L()?(h=e.data().backgroundColor)==null?void 0:h.lightTheme:void 0;return X?Wg(X,"1"):void 0}}),
el:I},_.a(_.E,{cond:L,then:function(){return _.a("div",{class:"ytThumbnailViewModelBlurredImage"},_.a(_.pv,{data:function(){return e.data().image},
alt:"",contentMode:n,targetWidth:e.width,onload:R}))}}),_.a("div",{class:"ytThumbnailViewModelImage"},_.a(_.pv,{data:function(){return e.data().image},
alt:"",contentMode:n,targetWidth:e.width,onload:R}),null),_.a(_.eS,{data:function(){return W()?void 0:e.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:wiI,thumbnailOverlayBadgeViewModel:function(h){return _.a(_.h8,{data:h.data,thumbnailSize:c,isClip:e.isClip})},
thumbnailBottomOverlayViewModel:function(h){return _.a(kRB,{data:h.data,thumbnailSize:c,isClip:e.isClip})},
thumbnailOverlayFullViewModel:IT1,thumbnailOverlayButtonViewModel:function(h){return _.a(_.cyw,{data:h.data,lockupExperiments:e.lockupExperiments})},
channelDisclosureViewModel:function(h){h=h.data;var X;return _.a("div",null,(X=_.Ss().resolve(_.NN(Opq)))==null?void 0:X({data:h}))}}),_.a(_.eS,{data:function(){var h;
return((h=e.hovered)==null?0:h.call(e))?e.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(h){return _.a(R8,{data:h.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:kzk}),_.a(_.eS,{data:function(){var h;return((h=e.hovered)==null?0:h.call(e))&&J()?e.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:gZZ}),_.a(_.E,{cond:e.isClip,then:function(){return _.a("div",{class:"ytPinkingNsHost"},_.a("svg",{class:"ytPinkingNsPinkingLeft"},_.a("defs",null,_.a("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.a("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.a("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.a("svg",{class:"ytPinkingNsPinkingRight"},_.a("defs",null,_.a("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.a("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.a("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"pb");
zA.idomCompat={callbacks:{playbackRef:!0}};var vZY=_.H(function(e){var g=_.w(_.Wa(-1,void 0,"RW2Ole")),c=g.next().value,k=g.next().value;_.lo(function(){var I=new N8w(k);K4k(I,e.data().thumbnails.length);_.sX(function(){if(I.isSlideshowPlaying){I.isSlideshowPlaying=!1;for(var J=I.jobIds,q=0,L=J.length;q<L;q++)_.ft.cancelJob(J[q]);I.jobIds.length=0}})});
return _.a("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.a(_.eS,{data:function(){return e.data().thumbnails}},{thumbnailViewModel:function(I,J){return _.a("div",{class:function(){var q=!e.data().primaryThumbnail,L=J(),n=c(),R=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
q&&L===0&&R.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");L<=n&&R.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return R.join(" ")}},_.a(zA,{data:I.data,
disableRounding:e.disableRounding}))}}))},"qb");
vZY.idomCompat=!0;var VCp=new _.AU("DWELL_DETECTOR_REGISTRY_TOKEN");var qpn=_.H(function(e){var g=tCg(e.triggeringElement),c=function(){return!!e.data().primaryThumbnail},k=function(){var J,q=(J=e.data())==null?void 0:J.maxHeight,L;
J=(L=e.maxHeight)==null?void 0:L.call(e);return q!=null&&J!=null?Math.min(q,J):J!=null?J:q},I=function(){var J=k();
if(J){var q;if(c()&&(q=e.includeStackHeight)!=null&&q.call(e)){var L;q=((L=e.doubleStack)==null?0:L.call(e))?8:4}else q=0;J=J-q-1;if(!(J<0)){L=Math;q=L.ceil;var n,R;var W=JEv((R=(n=e.aspectRatio)==null?void 0:n.call(e))!=null?R:0);return q.call(L,J*W)}}};
return _.a("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.N2({height:function(){return k()?k()+"px":void 0},
width:function(){return I()?I()+"px":void 0}})},_.a(wMB,{stackEnabled:c,
thumbnailSize:function(){var J,q;return _.vlV((J=e.width)==null?void 0:J.call(e),(q=e.height)==null?void 0:q.call(e))},
doubleStack:e.doubleStack,stackColor:function(){return e.data().stackColor},
includeStackHeight:e.includeStackHeight},_.a(_.eS,{data:function(){return e.data().primaryThumbnail}},{thumbnailViewModel:function(J){var q={};
return _.a(zA,{data:J.data,width:e.width,height:e.height,aspectRatio:e.aspectRatio,disableRounding:e.disableRounding,className:_.o6((q.ytCollectionThumbnailViewModelHostHasStacks=c,q)),hovered:e.hovered,playbackRef:e.playbackRef})}}),_.a(_.E,{cond:function(){var J;
return g()&&((J=e.data().thumbnails)==null?void 0:J.length)},
then:function(){return _.a("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.a(vZY,{data:e.data,disableRounding:function(){return!c()}}))}})))},"rb");
qpn.idomCompat={callbacks:{playbackRef:!0}};
var wMB=_.H(function(e){var g=e.children;var c=e.stackEnabled;var k=e.thumbnailSize;var I=e.doubleStack;var J=e.stackColor;var q=e.includeStackHeight;var L,n=(L=_.Ss().resolve(_.NN(_.gb)))==null?void 0:L();return _.a(_.E,{cond:c,then:function(){return _.a(AWM,{data:function(){var R,W;return{experimentEnabled:!0,thumbnailSize:k(),doubleStack:I==null?void 0:I(),color:n?J==null?void 0:(R=J())==null?void 0:R.darkTheme:J==null?void 0:(W=J())==null?void 0:W.lightTheme,enableResponsiveMode:!1,includeStackHeight:q==
null?void 0:q()}}},g)},
else:function(){return g}})},"sb");var LLI=new _.AU("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");_.ryn=_.H(function(e){var g=e.data;e=_.io("ad-card-badge-view-model");return _.a("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:e},_.a(_.E,{cond:function(){return g().imageBadge},
then:function(c){return _.a(_.pv,{data:c,alt:""})}}))},"tb");var QN;_.HG={calledOnce:!0,state:"visible"};QN={calledOnce:!0,state:"hidden"};_.U8=_.H(function(e){var g=_.FA(e,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});e=Object.assign({},g);var c=g.data;g=g.customCommandResolver;var k=(delete e.data,delete e.customCommandResolver,e);e=_.By({visibilityCallback:function(L,n){var R,W=(R=c().interaction)==null?void 0:R.onFirstVisible;L&&(W&&_.GF(W),k.setOnErrorHandler()&&BAK(n))},
showOption:_.HG});g=_.GP(function(){return c().interaction},g,function(){var L;
return(L=k.listenToTapEvent)==null?void 0:L.call(k)});
var I=_.w(_.Wa(!1,void 0,"wAC0Lc")),J=I.next().value,q=I.next().value;I=_.Ve(function(L){var n;((n=k.setTouchEndHandler)==null?0:n.call(k))&&!J()&&(L.currentTarget.click(),q(!0),setTimeout(function(){q(!1)},100));
return!1});
return _.a("ad-image-view-model",{class:function(){var L,n=[((L=c().interaction)==null?0:L.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],R;((R=k.isGridViewEnabled)==null?0:R.call(k))&&n.push("ytwAdImageViewModelHostInGridView");return n.join(" ")},
el:_.mb(e,g),"on:touchend":I},_.a("div",{class:"ytwAdImageViewModelHostImageContainer"},_.a(_.pv,{data:function(){var L;return{sources:c().imageSources,contentMode:(L=c().imageProperties)==null?void 0:L.contentMode}},
alt:function(){var L,n;return((L=c().interaction)==null?void 0:(n=L.accessibility)==null?void 0:n.label)||""},
targetHeight:k.targetHeight,targetWidth:k.targetWidth,preserveHeight:k.preserveHeight,preserveWidth:k.preserveWidth,useWidth:k.useWidth,style:function(){var L,n;return"vertical-align: bottom;"+(((L=c().background)==null?0:L.color)?"background-color:"+_.R1((n=c().background)==null?void 0:n.color)+";":"")},
className:function(){return k.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var L,n;return(n=(L=k.setDraggable)==null?void 0:L.call(k))!=null?n:void 0}})))},"vb");var aTI=_.H(function(e){var g=e.data;var c=e.customCommandResolver;return _.a("carousel-ad-card-image-view-model",{class:function(){var k;return((k=g().interaction)==null?0:k.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.mb(_.By({visibilityCallback:function(k){var I,J=(I=g().interaction)==null?void 0:I.onFirstVisible;k&&J&&_.GF(J)},
showOption:_.HG}),_.GP(function(){return g().interaction},c)),
"aria-label":function(){var k,I;return(k=g().interaction)==null?void 0:(I=k.accessibility)==null?void 0:I.label}},_.a(_.eS,{data:function(){return g().adImage}},{adImageViewModel:function(k){return _.a(_.U8,{data:k.data,
customCommandResolver:c})}}),_.a("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.a(_.eS,{data:function(){return g().badge}},{adCardBadgeViewModel:_.ryn})),_.a(_.zG,{model:{color:4}}))},"wb");var nZM=_.H(function(e){var g=_.w(_.Wa(0,void 0,"JJ0QQc")),c=g.next().value;g.next();var k=g.next().value,I=_.w(_.Wa(!1,void 0,"f6YICe"));g=I.next().value;var J=I.next().value,q;_.sX(function(){clearTimeout(q)});
I=_.Ve(function(){var R;((R=e.animate)==null?0:R.call(e))?(J(!0),q=setTimeout(function(){J(!1);L()},200)):L();
return!1});
var L=function(){k(function(R){return(R+e.numShownItems())%e.data().length})},n={};
return _.a("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.a("div",{class:_.o6("ytwHorizontalCarouselCarouselWrapper")},_.a("div",{class:_.o6("ytwHorizontalCarouselCarouselInnerWrapper",(n.ytwHorizontalCarouselAnimating=g,n))},_.a(_.Yz,{each:e.data,keyBy:"INDEX"},function(R,W){return _.a("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.N2({"flex-basis":function(){return"calc((100% - (8px * "+(e.numShownItems()-1)+")) / "+e.numShownItems()+")"},
order:function(){var b=W-c();b<0&&(b+=e.data().length);return b}})},e.children(R,W))}))),_.a("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":I},e.nextButton()))},"xb");var WLZ=_.H(function(e){var g=e.data;var c=e.customCommandResolver;var k=e.expansive;var I=e.isLockupAttachment;return _.a("carousel-ad-card-collection-view-model",{el:_.mb(_.By({visibilityCallback:function(J){var q,L=(q=g().interaction)==null?void 0:q.onFirstVisible;J&&L&&_.GF(L)},
showOption:_.HG})),class:"ytwCarouselAdCardCollectionViewModelHost"},_.a(_.E,{cond:function(){return I==null?void 0:I()},
then:function(){return _.a(R3q,{data:g,customCommandResolver:c})},
else:function(){return _.a(EZ4,{data:g,customCommandResolver:c,expansive:k})}}))},"yb"),R3q=_.H(function(e){var g=e.data;
var c=e.customCommandResolver;return _.a("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarousel",tabindex:0},_.a(_.eS,{data:function(){return g().carouselAdCards||[]}},{carouselAdCardImageViewModel:function(k){return _.a("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarouselItem"},_.a(aTI,{data:k.data,
customCommandResolver:c}))}}))},"zb"),EZ4=_.H(function(e){var g=e.data;
var c=e.customCommandResolver;var k=e.expansive;return _.a(nZM,{data:function(){var I;return((I=g())==null?void 0:I.carouselAdCards)||[]},
nextButton:function(){return _.a(_.eS,{data:function(){return g().nextButton}},{buttonViewModel:function(I){var J=I.data;
return _.a(_.oD,{data:function(){return(k==null?0:k())?Object.assign({},J(),{style:"mono"}):J()},
className:_.G("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(I){return _.a(_.eS,{data:I},{carouselAdCardImageViewModel:function(J){return _.a(aTI,{data:J.data,customCommandResolver:c})}})})},"Ab");_.o8=_.H(function(e){var g=e.data;var c=e.customCommandResolver;var k=e.className;var I=e.delayedClassName;var J=e.animationEntityKey;var q=e.isCompactWidth;var L=e.isContentWidth;e=_.w(_.Wa(!1,void 0,"B1koDf"));var n=e.next().value,R=e.next().value,W=_.sz(J,""),b=_.O1(o4e,W),h=function(){var RA,Xg;return(Xg=(RA=b())==null?void 0:RA.value)!=null?Xg:!1},X=function(){_.As(_.cY("booleanEntity",W(),{key:W(),
value:!0}));Q=void 0};
J=_.w(_.uF(h));var D=J.next().value,f=J.next().value;J=_.w(_.uF(h));var l=J.next().value,A=J.next().value;J=_.w(_.uF(function(){var RA;return h()?(RA=g().styleTransitionConfig)==null?void 0:RA.destinationStyle:void 0}));
var d=J.next().value,S=J.next().value,V=function(){var RA=Object.assign({},g(),d()&&{style:d()});var Xg,Fg,oA=RA.label,Zt=(Xg=RA.interaction)==null?void 0:(Fg=Xg.accessibility)==null?void 0:Fg.label;Xg=RA.iconImage?RA.label&&RA.label.content?RA.iconLeading?"leading":"trailing":"icon-only":void 0;RA={formattedButtonText:oA,accessibilityLabel:Zt,style:Kf8(RA.style),type:Ol8(RA.style),state:"active",size:yW8(RA.size),iconPosition:Xg,disabled:!1,aTagConfig:Sre(RA,c)};RA.focused=n();return RA},Q;
J=_.By({visibilityCallback:function(RA){var Xg,Fg=(Xg=g().interaction)==null?void 0:Xg.onFirstVisible;RA&&Fg&&_.GF(Fg)},
showOption:_.HG});var y=function(){return Elq(V(),!!g().iconImage)};
e={};var O={};k=_.o6(function(){return"ytwAdButtonViewModelHost"},function(){return g().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var RA=!!g().delayedAppearanceConfig,Xg=D();
return RA?Xg?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var RA=!!g().delayedAppearanceConfig,Xg=l();
return RA?Xg?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!g().delayedAppearanceConfig||D()?I==null?void 0:I():""},(e.ytwAdButtonViewModelHostCompactWidth=function(){return q==null?void 0:q()},e),(O.ytwAdButtonViewModelHostContentWidth=function(){return L==null?void 0:L()},O),k!=null?k:"");
var Jq=function(){var RA,Xg=(RA=g().delayedAppearanceConfig)==null?void 0:RA.delayedInvisibleSeconds;Xg&&(Q=_.JC(_.ft,function(){f(!0);LC()},Xg*1E3))},LC=function(){var RA,Xg=(RA=g().delayedAppearanceConfig)==null?void 0:RA.delayedVisibleSeconds;
Xg&&(Q=_.JC(_.ft,function(){A(!0);bW()},Xg*1E3))},bW=function(){var RA,Xg=(RA=g().styleTransitionConfig)==null?void 0:RA.styleTransitionSeconds,Fg,oA=(Fg=g().styleTransitionConfig)==null?void 0:Fg.destinationStyle;
Xg&&oA?Q=_.JC(_.ft,function(){S(oA);X()},Xg*1E3):X()};
_.lo(function(){Jq()});
_.sX(function(){Q&&_.ft.cancelJob(Q)});
return _.a("ad-button-view-model",{"on:focusin":_.Ve(function(){var RA=_.Ss().resolve(_.NN(_.u7));RA&&R(RA.isKeyBoardInUse());return!1}),
"on:focusout":_.Ve(function(){R(!1);return!1}),
class:k,el:_.mb(J),style:_.N2({"transition-duration":"0.3s"})},_.a(_.E,{cond:V,then:function(){return _.a(_.UO,{data:V,icon:function(){return _.a(_.E,{cond:function(){return g().iconImage},
then:function(RA){return _.a(_.pv,{data:RA,alt:"",targetWidth:y,targetHeight:y,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Bb");var beZ=_.H(function(e){var g=e.data;e=function(){return g().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var c=_.By({visibilityCallback:function(J){var q,L=(q=g().interaction)==null?void 0:q.onFirstVisible;J&&L&&_.GF(L)},
showOption:_.HG}),k={},I={};return _.a("ad-button-group-view-model",{class:_.o6("ytwAdButtonGroupViewModelHost",(k.ytwAdButtonGroupViewModelHostCompactWidth=e,k)),el:_.mb(c)},_.a("div",{class:_.o6("ytwAdButtonGroupViewModelHostSecondaryButton",(I.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=e,I))},_.a(_.eS,{data:function(){return g().secondaryAdButton}},{adButtonViewModel:function(J){return _.a(_.o8,{data:J.data})}})),_.a("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.a(_.eS,
{data:function(){return g().primaryAdButton}},{adButtonViewModel:function(J){return _.a(_.o8,{data:J.data})}})))},"Cb");var h34=_.H(function(e){var g=function(){var c;return((c=e.data())==null?void 0:c.answers)||[]};
return _.a("yt-survey-icons",{class:"ytSurveyIconsHost"},_.a("div",{class:"ytSurveyIconsHeader"},_.a("div",{class:"ytSurveyIconsTitle"},function(){var c;return(c=e.data())==null?void 0:c.text}),_.a("div",null,_.a(_.UO,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var c;(c=e.onDismiss)==null||c.call(e)}}},
iconName:"DISMISSAL"}))),_.a("div",null,_.a("div",{class:"ytSurveyIconsAnswers"},_.a(_.Yz,{each:function(){return g()},
keyBy:"INDEX"},function(c,k){return _.a("div",null,_.a(_.UO,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var I;(I=e.onSelect)==null||I.call(e,c(),k)}}},
icon:function(){return _.a(_.SU,{icon:function(){var I,J;return(I=c())==null?void 0:(J=I.icon)==null?void 0:J.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.a("div",{class:"ytSurveyIconsAnswersText"},_.a("div",null,function(){return g().length?g()[0].text:""}),_.a("div",null,function(){return g().length?g()[g().length-1].text:""}))))},"Db");var XMk=_.H(function(e){var g=_.mb(_.EQ(function(){var n;return(n=e.data())==null?void 0:n.rendererContext},void 0,void 0,void 0,!0)),c=_.w(_.Wa(!1,void 0,"GW0yjf")),k=c.next().value,I=c.next().value,J=_.O1(Z5A,function(){var n;
return(n=e.data().keys)==null?void 0:n.surveyEntityKey}),q=_.O1(VB6,function(){var n;
return(n=e.data().keys)==null?void 0:n.surveyStateEntityKey});
_.QV("ytd-slimline-survey-show-action",function(){I(!1)});
var L=function(){var n,R;var W=(n=q())==null?void 0:(R=n.questionStack)==null?void 0:R[0];if(W!==void 0){var b,h;return(b=J())==null?void 0:(h=b.questions)==null?void 0:h[W]}};
c={};return _.a("yt-slimline-survey-view-model",{el:g,class:_.o6("ytSlimlineSurveyViewModelHost",(c.ytSlimlineSurveyViewModelCollapsed=function(){return k()},c))},_.a("div",{class:"ytSlimlineSurveyViewModelContainer"},_.a(_.E,{cond:function(){var n;
return((n=L())==null?void 0:n.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.a(h34,{data:function(){return L()},
onSelect:function(n,R){var W,b;return _.r(function(h){I(!0);if(b=(W=e.data())==null?void 0:W.onSelectRating)_.GF(b),_.As(u8q(R));_.Uh(h)})},
onDismiss:function(){I(!0);var n;var R=(n=J())==null?void 0:n.dismissalFeedbackToken;n=R?{feedbackEndpoint:{feedbackToken:R}}:void 0;n&&_.b3(n,{form:{element:g.value}})}})}})))},"Eb");var GzM=_.H(function(e){return _.a("yt-table-view-model",{class:_.o6("ytTableViewModelHost",e.className)},_.a(_.Yz,{each:function(){return e.data().rows||[]}},function(g){var c={};
return _.a("div",{class:_.o6("ytTableViewModelRow",(c.ytTableViewModelRowBottomBorder=function(){return e.data().showSeparators},c))},_.a(_.Yz,{each:function(){return(g==null?void 0:g.cells)||[]}},function(k,I){var J,q={};
return _.a("span",{class:_.o6((q.ytTableViewModelRowLabel=function(){return I()===0&&e.data().showHorizontalHeaders},q.ytTableViewModelCell=function(){return!e.data().showHorizontalHeaders||I()>0},q))},(J=k.text)==null?void 0:J.content)}))}))},"Fb");var xKw=_.H(function(e){return _.a("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.a(_.eS,{data:function(){var g;return(g=e.data())==null?void 0:g.attachments}},{flexibleActionsViewModel:function(g){return _.a("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.a(_.bA,{data:g.data,
layout:function(){var c;return((c=e.lockupStyle())==null?void 0:c.arrangement)===1?0:1},
justifyContentOverride:function(){var c;return((c=e.lockupStyle())==null?void 0:c.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(g){return _.a("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.a(XMk,{data:g.data}))},
expandableMetadataViewModel:function(g){g=g.data;var c;return _.a("div",{class:_.o6("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(c=_.Ss().resolve(_.NN(LLI)))==null?void 0:c({data:g}))},
adButtonGroupViewModel:function(g){return _.a("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.a(beZ,{data:g.data}))},
adButtonViewModel:function(g){return _.a("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.a(_.o8,{data:g.data,isCompactWidth:!0}))},
tableViewModel:function(g){return _.a("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.a(GzM,{data:g.data}))},
aiCompanionAttachmentViewModel:function(g){g=g.data;var c;return _.a("div",{class:"ytLockupAttachmentsViewModelAttachment"},(c=_.Ss().resolve(_.NN(_.MTs)))==null?void 0:c({data:g}))},
carouselAdCardCollectionViewModel:function(g){return _.a("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.a(WLZ,{data:g.data,isLockupAttachment:!0}))}}))},"Gb");var kRe=_.MN("rich_grid_min_item_width",310),ggt=_.MN("rich_grid_max_item_width",500);var ngg,aDK;ngg=16/9;aDK=2/3;_.Zf=_.H(function(e){var g=e.data;var c=e.className;var k=e.imageSizeConfig;var I=e.notifyOnLoaded;var J=function(){return g().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},q=function(){var h;
return _.RB((h=g())==null?void 0:h.rendererContext)};
e={};e=(e.ytContentPreviewImageViewModelHost=!0,e.ytContentPreviewImageViewModelCircleImage=function(){return J()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},e.ytContentPreviewImageViewModelTappable=function(){return q()},e);
var L=function(){var h,X;return(X=(h=_.x(g().rendererContext,_.Jh))==null?void 0:h.label)!=null?X:""},n=function(){return Egv(g())},R=function(){var h=R7K(J(),g().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",k==null?void 0:k(),W4K(n()),g().layoutWidth,g().layoutHeight),X=Object.assign({},h);
h.width&&(X.width=Math.round(h.width));h.height&&(X.height=Math.round(h.height));h.maxWidth&&(X.maxWidth=Math.round(h.maxWidth));h.maxHeight&&(X.maxHeight=Math.round(h.maxHeight));return X},W=_.xF(function(){return R().height},void 0,"CxFlJb"),b=_.xF(function(){return R().width},void 0,"lb8Jhd");
return _.a("yt-content-preview-image-view-model",{el:_.mb(_.EQ(function(){var h;return(h=g())==null?void 0:h.rendererContext})),
role:function(){return q()?"link":void 0},
tabindex:function(){return q()?0:void 0},
class:_.o6(c,e,function(){var h=J();var X=k==null?void 0:k();h=h==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||h==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||h==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||h==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(X==null?void 0:X.size)!=null&&X.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(X==null?void 0:X.size)!=null&&X.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return h}),
style:function(){var h=R(),X=[];h.width&&X.push("width: "+h.width+"px");h.height&&X.push("height: "+h.height+"px");h.maxWidth&&X.push("max-width: "+h.maxWidth+"px");h.maxHeight&&X.push("max-height: "+h.maxHeight+"px");h.fullWidth&&X.push("width: 100%");return X.join(";")}},_.a(_.E,{cond:n,
then:function(h){return _.a(_.pv,{data:h,alt:L,"data-disabled$":function(){return!L()},
notifyOnLoaded:I,targetWidth:b,targetHeight:W,preserveWidth:function(){return!!b()},
preserveHeight:function(){return!!W()}})}}),_.a(_.eS,{data:function(){var h;
return(h=g())==null?void 0:h.overlays}},{thumbnailHoverOverlayViewModel:R8,
thumbnailOverlayButtonViewModel:_.cyw}))},"Hb");
_.Zf.idomCompat=!0;var VN=_.H(function(e){var g=e.data;var c=e.className;var k=e.useSmallLayout;var I=e.useMediumText;var J=e.useHeavyText;var q=function(){return!(I==null||!I())||!(J==null||!J())};
e={};return _.a("yt-attribution-view-model",{el:_.mb(_.EQ(function(){var L;return(L=g())==null?void 0:L.rendererContext})),
class:_.o6(c,(e.ytAttributionViewModelHost=!0,e.ytAttributionViewModelMediumText=I,e.ytAttributionViewModelHeavyText=J,e))},_.a(_.E,{cond:function(){return _.RB(g().rendererContext)},
then:function(){return _.a("button",{class:"ytAttributionViewModelTappable"},_.a(DK4,{data:g,useSmallLayout:k,badgesShouldInheritTypography:q}))},
else:function(){return _.a(DK4,{data:g,useSmallLayout:k,badgesShouldInheritTypography:q})}}))},"Ib"),DK4=_.H(function(e){var g=e.data;
var c=e.useSmallLayout;var k=e.badgesShouldInheritTypography;var I=function(){return{size:(c==null?0:c())?16:24}};
return _.a(_.es,null,_.a(_.eS,{data:function(){return g().contentPreviewImage}},{contentPreviewImageViewModel:function(J){return _.a(_.Zf,{data:J.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:I})}}),_.a(_.eS,{data:function(){return g().badge}},{badgeViewModel:function(J){return _.a(_.A8,{data:J.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:k})}}),_.a(_.E,{cond:function(){return g().text},
then:function(){return _.a(_.fa,{text:function(){return g().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.a(_.E,{cond:function(){return g().suffix},
then:function(){return _.a(_.fa,{text:function(){return g().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Jb");
VN.idomCompat=!0;var $KI,Ypv,fT1,jhY,ieq;$KI=_.H(function(e){var g=e.delimiter;var c=e.max;var k=e.index;var I=e.isStandalone;return _.a(_.E,{cond:function(){return c()-1>k()},
then:function(){var J={};return _.a("span",{class:_.o6("yt-content-metadata-view-model__delimiter",(J["yt-content-metadata-view-model__delimiter--standalone"]=I,J)),"aria-hidden":!0},g)}})},"Kb");
Ypv=_.H(function(e){var g=e.metadataPart;var c=e.maxLines;return _.a(_.fa,{text:function(){return g().text},
linkInheritColor:!0,className:function(){return bp8(c())},
userInput:!0})},"Lb");
fT1=_.H(function(e){var g=e.metadataPart;var c=e.maxLines;return _.a(_.E,{cond:function(){return g().tooltip},
then:function(k){return _.a("span",{title:k,role:"tooltip"},_.a(Ypv,{metadataPart:g,maxLines:c}))},
else:function(){return _.a(Ypv,{metadataPart:g,maxLines:c})}})},"Mb");
jhY=_.H(function(e){var g=e.metadataPart;var c=e.isOverlay;var k=e.useMediumText;var I=e.hideAvatar;var J=function(){return g().maxLines!==void 0?g().maxLines:1};
return _.a(_.es,null,_.a(_.eS,{data:function(){return g().avatarStack}},{avatarStackViewModel:function(q){return _.a(_.bh,{data:q.data,
isOverlay:c,useMediumText:k,hideAvatar:I})},
badgeViewModel:_.A8}),_.a(_.E,{cond:function(){return g().leadingIcon},
then:function(q){return _.a(_.SU,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return q().name},
size:function(){return q().width}})}}),_.a(_.E,{cond:function(){return g().text},
then:function(){return _.a(fT1,{metadataPart:g,maxLines:J})}}),_.a(_.E,{cond:function(){return g().icon},
then:function(q){return _.a(_.SU,{className:"yt-content-metadata-view-model__icon",icon:function(){return q().name},
size:function(){return q().width}})}}))},"Nb");
ieq=_.H(function(e){var g=e.metadataRow;var c=e.isInline;var k=e.delimiter;var I=e.isOverlay;var J=e.useMediumText;var q=e.extensions;var L=function(){var R,W=q==null?void 0:(R=q())==null?void 0:R.lockupMetadata;R=g();var b,h;return!!((W==null?0:(b=W.byline)==null?0:b.hideAvatar)&&((h=_.x(R,BOZ))==null?void 0:h.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},n=function(){return g().metadataParts||[]};
e={};return _.a("div",{class:_.o6("yt-content-metadata-view-model__metadata-row",(e["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=c,e["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var R,W=q==null?void 0:(R=q())==null?void 0:R.lockupMetadata;R=g();var b,h;return!!((W==null?0:(b=W.byline)==null?0:b.addPadding)&&((h=_.x(R,BOZ))==null?void 0:h.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},e["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var R;
return!!(q==null?0:(R=q())==null?0:R.lockupMetadata)&&g().badges&&!g().metadataParts},e))},_.a(_.eS,{data:function(){return g().badges}},{badgeViewModel:function(R){return _.a("div",{class:"yt-content-metadata-view-model__badge"},_.a(_.A8,{data:R.data,
numBadgesInRow:function(){var W,b;return((W=g())==null?void 0:(b=W.badges)==null?void 0:b.length)||0}}))}}),_.a(_.Yz,{each:n},function(R,W){return _.a(_.es,null,_.a(jhY,{metadataPart:R,
isOverlay:I,useMediumText:J,hideAvatar:L}),_.a($KI,{delimiter:k,max:function(){return n().length},
index:W,isStandalone:!1}))}),_.a(_.E,{cond:function(){return g().isSpacerRow&&!c()},
then:function(){return _.a("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Ob");
_.t8=_.H(function(e){e=_.FA(e,{layout:0,isOverlay:!1});var g=e.data,c=e.layout,k=e.isOverlay,I=e.useMediumText,J=e.extensions,q=function(){return c()===0},L=function(){var R;
return((R=g().metadataRows)==null?void 0:R.filter(function(W){var b,h=J==null?void 0:(b=J())==null?void 0:b.lockupMetadata,X,D;b=!!((h==null?0:(X=h.description)==null?0:X.hideDescription)&&((D=_.x(W,BOZ))==null?void 0:D.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var f,l;return!((h==null?0:(f=h.spacer)==null?0:f.hideSpacer)&&((l=_.x(W,BOZ))==null?void 0:l.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||b)}))||[]},n={};
return _.a("yt-content-metadata-view-model",{class:_.o6(e.className,"yt-content-metadata-view-model",(n["yt-content-metadata-view-model--inline"]=q,n["yt-content-metadata-view-model--tappable"]=function(){return _.RB(g().rendererContext)},n["yt-content-metadata-view-model--medium-text"]=I,n)),
el:_.mb(_.EQ(function(){return g().rendererContext}))},_.a(_.Yz,{each:L},function(R,W){return _.a(_.es,null,_.a(ieq,{metadataRow:R,
isInline:q,delimiter:function(){return g().delimiter},
isOverlay:k,useMediumText:I,extensions:J}),_.a(_.E,{cond:function(){return q()&&!R.isSpacerRow},
then:function(){return _.a($KI,{delimiter:function(){return g().delimiter},
max:function(){return L().length},
index:W,isStandalone:!0})}}))}))},"Pb");
_.t8.idomCompat=!0;var P$n=_.H(function(e){var g=_.Ss().resolve(_.NN(_.gb)),c={};return _.a("yt-lockup-metadata-view-model",{class:_.o6("yt-lockup-metadata-view-model",function(){a:{var k=e.lockupStyle();if(k==null?0:k.isOverlay)k="yt-lockup-metadata-view-model--overlay";else switch(k==null?void 0:k.arrangement){case 1:k="yt-lockup-metadata-view-model--horizontal";break a;default:k="yt-lockup-metadata-view-model--vertical"}}return k},function(){a:{var k=e.lockupStyle();
switch(k==null?void 0:k.titleMaxLines){case 1:k="yt-lockup-metadata-view-model--title-max-lines-1";break a}k=void 0}return k},function(){a:{var k=e.lockupStyle();
if(k==null?0:k.isTiny)k="yt-lockup-metadata-view-model--tiny";else switch(k==null?void 0:k.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":k="yt-lockup-metadata-view-model--compact";break a;default:k="yt-lockup-metadata-view-model--standard"}}return k},(c["yt-lockup-metadata-view-model--overlay"]=function(){var k;
return(k=e.lockupStyle())==null?void 0:k.isOverlay},c["yt-lockup-metadata-view-model--card"]=function(){var k;
return(k=e.lockupStyle())==null?void 0:k.isCard},c["yt-lockup-metadata-view-model--centered"]=function(){var k;
return(k=e.lockupStyle())==null?void 0:k.isCentered},c["yt-lockup-metadata-view-model--typography-bump"]=function(){var k;
return(k=e.lockupStyle())==null?void 0:k.typographyBump},c["yt-lockup-metadata-view-model--legacy-typography"]=function(){var k;
return(k=e.lockupStyle())==null?void 0:k.useLegacyTypography},c["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var k;
return(k=e.lockupStyle())==null?void 0:k.useRichGridLegacyTypography},c))},_.a(_.eS,{data:function(){return e.data().image}},{avatarStackViewModel:function(k){return _.a("div",{class:"yt-lockup-metadata-view-model__avatar"},_.a(_.bh,{data:k.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(k){return _.a("div",{class:"yt-lockup-metadata-view-model__avatar"},_.a(_.E8,{data:k.data}))},
decoratedAvatarViewModel:function(k){return _.a("div",{class:"yt-lockup-metadata-view-model__avatar"},_.a(_.WG,{data:k.data}))}}),_.a("div",{class:"yt-lockup-metadata-view-model__text-container"},_.a("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var k;return(k=e.data().title)==null?void 0:k.content}},_.a(_.E,{cond:function(){return e.data().title},
then:function(k){return _.a(_.d4,{command:e.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.N2({color:function(){var I;a:{var J=e.lockupStyle();var q=(I=e.hovered)==null?void 0:I.call(e);I=!(g==null||!g());var L;if((J==null?0:(L=J.onFocusEffect)==null?0:L.textPrimaryColor)&&q&&(J=I?J.onFocusEffect.textPrimaryColor.darkTheme:J.onFocusEffect.textPrimaryColor.lightTheme)){J=bg(J);break a}J=void 0}return J}}),
ariaLabel:e.lockupAccessibilityLabel},_.a(_.fa,{text:k,userInput:!0}))}})),_.a("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.N2({color:function(){var k;a:{var I=e.lockupStyle();var J=(k=e.hovered)==null?void 0:k.call(e);k=!(g==null||!g());var q;if((I==null?0:(q=I.onFocusEffect)==null?0:q.textSecondaryColor)&&J&&(I=k?I.onFocusEffect.textSecondaryColor.darkTheme:I.onFocusEffect.textSecondaryColor.lightTheme)){I=bg(I);break a}I=void 0}return I}})},_.a(_.eS,{data:function(){return e.data().metadata}},{contentMetadataViewModel:function(k){return _.a(_.t8,{data:k.data,
layout:function(){var I,J;return(J=(I=e.layout)==null?void 0:I.call(e))!=null?J:1},
useMediumText:function(){var I,J;return((I=e.lockupStyle())==null?void 0:I.typographyBump)||((J=e.lockupStyle())==null?void 0:J.useRichGridLegacyTypography)},
extensions:function(){var I,J,q,L;return{lockupMetadata:{byline:{hideAvatar:((I=e.lockupStyle())==null?void 0:I.arrangement)===0,addPadding:((J=e.lockupStyle())==null?void 0:J.arrangement)===1},description:{hideDescription:!((q=e.lockupStyle())==null||!q.compactMetadata)},spacer:{hideSpacer:!((L=e.lockupStyle())==null||!L.compactMetadata)}}}}})}})),_.a(_.eS,{data:function(){return e.data().attribution}},{attributionViewModel:function(k){return _.a("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.a(VN,{data:k.data,
useSmallLayout:!0}))}})),_.a("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.a(_.eS,{data:function(){return e.data().menuButton}},{buttonViewModel:function(k){return _.a(_.oD,{data:k.data,
buttonOverrides:function(){var I;return((I=e.lockupStyle())==null?0:I.isOverlay)?{style:"overlay"}:void 0}})}})))},"Qb");
P$n.idomCompat=!0;var mKY=_.H(function(e){var g=_.io("notification-multi-action-renderer");_.Tr(function(){requestAnimationFrame(function(){_.oF(g.value)})});
var c={},k={},I={};return _.a("notification-multi-action-renderer",{class:_.o6("ytNotificationMultiActionRendererHost",(c.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var J;return(J=e.useLegacyShelfStyle)==null?void 0:J.call(e)},c)),
el:g},_.a("span",{"aria-live":"polite",class:_.o6("ytNotificationMultiActionRendererTextContainer",(k.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var J;return(J=e.useLegacyShelfStyle)==null?void 0:J.call(e)},k))},_.a(_.fa,{text:function(){return e.data().responseText}})),_.a("div",{class:_.o6("ytNotificationMultiActionRendererButtonContainer",(I.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var J;
return(J=e.useLegacyShelfStyle)==null?void 0:J.call(e)},I))},_.a(_.eS,{data:function(){var J;
return(J=e.data().buttons)==null?void 0:J.map(function(q){if(q=q.buttonRenderer){var L,n=Object,R=n.assign,W=(L=q.icon)==null?void 0:L.iconType;L=(L=q.command||q.serviceEndpoint||q.navigationEndpoint)?{innertubeCommand:L}:void 0;q={buttonViewModel:R.call(n,{},{iconName:W,onTap:L,trackingParams:q.trackingParams,titleFormatted:q.text?_.a6(q.text):void 0},Xiq(q))}}else q=void 0;return q}).filter(function(q){return!!q})}},{buttonViewModel:function(J,q){return _.a("div",null,_.a(_.oD,{data:J.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var L;return((L=e.useModernStyles)==null?0:L.call(e))?{type:q()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Sb");var pMs=_.H(function(e){var g=_.io("notification-text-renderer");_.Tr(function(){requestAnimationFrame(function(){_.oF(g.value)})});
return _.a("notification-text-renderer",{el:g,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.a(_.fa,{text:function(){return e.data().successResponseText}}))},"Ub");_.BG=_.H(function(e){var g=_.O1(l$K,function(){var k;return GRA((k=e.contentId)==null?void 0:k.call(e))}),c=function(){var k;
return _.x((k=g())==null?void 0:k.command,_.CX)};
return _.a(_.E,{cond:function(){var k;if(!(k=c())){var I;k=_.x((I=g())==null?void 0:I.command,gH1)}return k},
then:function(){return _.a(_.E,{cond:c,then:function(){var k={};return _.a("div",{class:_.o6("ytDismissibleItemReplacedContent",function(){var I;return x3v((I=e.aspectRatio)==null?void 0:I.call(e))})},_.a("div",{class:_.o6((k.ytDismissibleItemAspectRatioContainer=function(){var I;
return((I=e.aspectRatio)==null?void 0:I.call(e))!==void 0},k))},_.a(_.eS,{data:function(){var I;
return(I=c())==null?void 0:I.item}},{notificationMultiActionRenderer:function(I){return _.a(mKY,{data:I.data,
useModernStyles:e.useModernStyle,useLegacyShelfStyle:e.useLegacyShelfStyle})},
notificationTextRenderer:pMs})))}})},
else:e.children})},"Vb");_.Tok=_.H(function(e){var g=e.data;var c=e.customCommandResolver;e=_.mb(_.By({visibilityCallback:function(J){var q,L=(q=g().interaction)==null?void 0:q.onFirstVisible;J&&L&&_.GF(L)},
showOption:_.HG}));var k=function(){var J;return((J=g().interaction)==null?0:J.onTap)?function(q){var L;NAp(q,(L=g().interaction)==null?void 0:L.onTap,c)}:void 0},I=function(){var J,q=g(),L=k(),n=(J=_.x(g().rendererContext,_.Jh))==null?void 0:J.label;
a:switch(q.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":J=1;break a;default:J=0}return{size:YZt(q.size),type:J,onTap:L,accessibilityText:n}};
return _.a("ad-avatar-view-model",{class:function(){var J;return((J=g().interaction)==null?0:J.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:e},_.a(_.E,{cond:function(){return g().image},
then:function(J){return _.a(vgv,{data:I,image:J})}}))},"Wb");_.N6=_.H(function(e){var g=_.FA(e,{hasDot:!1,usedInMasthead:!1}),c=Object.assign({},g),k=g.data,I=g.hasDot;e=g.customCommandResolver;var J=g.usedInMasthead,q=(delete c.data,delete c.hasDot,delete c.customCommandResolver,delete c.usedInMasthead,c);g=function(){return k().style};
g!==void 0&&g!==null||_.UI(Error("Ih"));e=_.GP(function(){return k().interaction},e);
return _.a("ad-badge-view-model",{class:_.o6(function(){var L;return((L=k().interaction)==null?0:L.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var L=q.adRenderingContextType(),n=J();
k();return L!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||n?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.mb(e)},_.a(_.xG,{data:function(){var L;k();return{type:2,text:(L=k().label)==null?void 0:L.content,adsIncludeDot:I(),isOverlay:k().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xb");var lT4;_.SZ=_.H(function(e){var g=e.data;var c=e.customCommandResolver;var k=e.adRenderingContextType;return _.a("ad-details-line-view-model",{class:function(){var I;return((I=g().interaction)==null?0:I.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.mb(_.By({visibilityCallback:function(I){var J,q=(J=g().interaction)==null?void 0:J.onFirstVisible;I&&q&&_.GF(q)},
showOption:_.HG}),_.GP(function(){return g().interaction},c))},_.a(_.E,{cond:function(){return g().style},
then:function(I){return _.a(_.Yz,{each:function(){var J;return((J=g())==null?void 0:J.attributes)||[]},
keyBy:"INDEX"},function(J){return _.a(lT4,{attribute:J,style:I,adRenderingContextType:function(){return k()}})})}}))},"Yb");
lT4=_.H(function(e){var g=e.attribute;var c=e.style;var k=e.adRenderingContextType;return _.a(_.E,{cond:function(){return g().text},
then:function(I){return _.a(_.fa,{text:I,className:function(){var J=k();c();return J==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Zb");var Ayw=_.H(function(e){var g=e.data;var c=e.typographyBump;var k=function(){return g().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},I=function(){return{size:"M"}};
e={};return _.a(_.es,null,_.a("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.a(_.fa,{text:function(){return g().headline},
className:_.o6((e.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineLegacy=function(){return!_.G("enable_desktop_vdc_components")},e.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline=function(){return _.G("enable_desktop_vdc_components")},e.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return k==null?void 0:k()},e.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(c==null?void 0:c())&&!(k==null?0:k())},e)),
linkInheritColor:!0}),_.a(_.E,{cond:function(){return g().description},
then:function(J){var q={};return _.a(_.fa,{text:J,className:_.o6("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(q.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return k==null?void 0:k()},q.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(c==null?void 0:c())&&!(k==null?0:k())},q)),
linkInheritColor:!0})}}),_.a(_.E,{cond:function(){return g().secondaryDescription},
then:function(J){var q={};return _.a(_.fa,{text:J,className:_.o6("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(q.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return c==null?void 0:c()},q)),
linkInheritColor:!0})}}),_.a("div",{class:function(){return k()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.a(_.E,{cond:function(){return g().adAvatar},
then:function(){return _.a("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.a(_.eS,{data:function(){return g().adAvatar}},{adAvatarViewModel:_.Tok}))}}),_.a(_.eS,{data:function(){return g().adBadge}},{adBadgeViewModel:function(J){return _.a(_.N6,{data:J.data,
hasDot:function(){return!!g().adDetailsLine},
adRenderingContextType:function(){return g().adRenderingContextType}})}}),_.a(_.eS,{data:function(){return g().adDetailsLine}},{adDetailsLineViewModel:function(J){return _.a(_.SZ,{data:J.data,
adRenderingContextType:function(){return g().adRenderingContextType}})}}))),_.a("div",{class:function(){return _.G("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":k()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.a(_.eS,{data:function(){return g().menu}},{buttonViewModel:function(J){return _.a(_.oD,{data:J.data,
buttonOverrides:_.G("enable_desktop_vdc_components")?I:function(){a:switch(g().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var q="S";break a;default:q="M"}return{size:q}}})}})))},"$b"),shw=_.H(function(e){var g=e.data;
var c=e.noBottomMargin;var k=e.useVideoLockupTopPadding;var I=e.typographyBump;e={};e=_.o6("ytwFeedAdMetadataViewModelHostMetadata",(e.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return c==null?void 0:c()},e.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return k==null?void 0:k()},e));
var J=function(){return g().adBadge};
J!==void 0&&J!==null||_.UI(Error("Jh"));J={};var q={};return _.a(_.es,null,_.a(_.E,{cond:function(){return g().adAvatar},
then:function(){return _.a("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.a(_.eS,{data:function(){return g().adAvatar}},{adAvatarViewModel:function(L){return _.a(_.Tok,{data:L.data})}}))}}),_.a("div",{class:e},_.a("div",{class:_.o6("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(J.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return I==null?void 0:I()},J.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(I==
null?void 0:I())&&_.G("web_enable_typography_bump_v2")},J))},_.a(_.fa,{text:function(){return g().headline},
linkInheritColor:!0})),_.a(_.E,{cond:function(){return g().description},
then:function(L){return _.a(_.fa,{text:L,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.a("div",{class:function(){return g().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.G("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.a(_.eS,{data:function(){return g().adBadge}},
{adBadgeViewModel:function(L){return _.a(_.N6,{data:L.data,
hasDot:function(){return!!g().adDetailsLine},
adRenderingContextType:function(){return g().adRenderingContextType}})}}),_.a(_.eS,{data:function(){return g().adDetailsLine}},{adDetailsLineViewModel:function(L){return _.a(_.SZ,{data:L.data,
adRenderingContextType:function(){return g().adRenderingContextType}})}})),_.a(_.E,{cond:function(){return g().secondaryDescription},
then:function(L){return _.a(_.fa,{text:L,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.a("div",{class:_.o6("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(q.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return k==null?void 0:k()},q))},_.a(_.eS,{data:function(){return g().menu}},{buttonViewModel:_.oD})))},"ac"),yN=_.H(function(e){var g=e.data;
var c=e.noBottomMargin;var k=e.listenToTapEvent;var I=e.setTouchEndHandler;var J=e.useVideoLockupTopPadding;var q=e.typographyBump;e=_.By({visibilityCallback:function(b){var h,X=(h=g().interaction)==null?void 0:h.onFirstVisible;b&&X&&_.GF(X)},
showOption:_.HG});var L=_.GP(function(){return g().interaction},void 0,function(){return k==null?void 0:k()}),n=_.w(_.Wa(!1,void 0,"KSFskc")),R=n.next().value,W=n.next().value;
n=_.Ve(function(b){(I==null?0:I())&&!R()&&(b.currentTarget.click(),W(!0),setTimeout(function(){W(!1)},100));
return!1});
return _.a("feed-ad-metadata-view-model",{class:function(){var b;return((b=g().interaction)==null?0:b.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.mb(e,L),"on:touchend":n},_.a(_.f4,null,_.a(_.DC,{when:function(){return g().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.a(Ayw,{data:g,
typographyBump:q})}),_.a(_.DC,{when:function(){return g().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.a(shw,{data:g,
noBottomMargin:c,useVideoLockupTopPadding:J,typographyBump:q})})))},"bc");var FLu,uIM;FLu=_.Yu.inlinePreviewEnabledSelector;_.KS=_.H(function(e){return _.a("yt-lockup-view-model",{class:_.o6(e.className,"yt-lockup-view-model--wrapper")},_.a(_.BG,{contentId:function(){return e.data().contentId},
useModernStyle:!0,aspectRatio:function(){var g,c;return((g=e.containerType)==null?void 0:g.call(e))!==3?L4z(e.data().contentType,(c=e.force16By9ThumbnailAspectRatio)==null?void 0:c.call(e)):void 0}},function(){return _.a(uIM,Object.assign({},e))}))},"cc");
uIM=_.H(function(e){e=_.FA(e,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0,useOverlayStyling:void 0});var g=e.data,c=e.containerLayoutConfig,k=e.containerType,I=e.sizing,J=e.protectBackground,q=e.typographyBump,L=e.force16By9ThumbnailAspectRatio,n=e.thumbnailFixedWidth,R=e.thumbnailTargetWidth,W=e.lockupExperiments,
b=e.elementsPerRow,h=e.useOverlayStyling,X=_.Ss().resolve(_.NN(_.gb));e=_.mb(_.EQ(function(){var Zt;return(Zt=g())==null?void 0:Zt.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL","AD-BUTTON-VIEW-MODEL"],!0));var D=_.M2(FLu),f=_.Ss().resolve(_.NN(tTv)),l=f?{}:void 0,A=function(){var Zt,Ev,an;return(an=(Ev=_.x((Zt=g())==null?void 0:Zt.rendererContext,_.Jh))==null?void 0:Ev.label)!=null?an:void 0},d=function(){var Zt;
return(Zt=_.x(g().metadata,_.NOI))==null?void 0:Zt.endorsement},S=function(){var Zt=c==null?void 0:c(),Ev;
if(Zt==null?0:Zt.containerType){var an=(Ev=g())==null?void 0:Ev.contentType;Ev=W();var V6=q(),bs=R(),f1=J();Zt=Object.assign({},ree(Jet(Zt),D9(Zt.responsiveSize),V6,an,Zt.force16By9ThumbnailAspectRatio,bs,f1,void 0,Ev),{thumbnailFixedWidth:Zt.contentPreviewWidth})}else Zt=ree(k(),I(),q(),(an=g())==null?void 0:an.contentType,L(),R(),J(),h(),W());return Zt};
f&&l&&f({enabled:function(){return D()},
itemPlaybackModel:function(){return g().itemPlayback},
thumbnailElRef:function(){return l.thumbnailElRef},
containerElRef:e,options:function(){var Zt=l.thumbnailOverlays||[],Ev=d(),an;!Ev||((an=W())==null?0:an.onFocusEffect)||Zt.push(Ev);var V6,bs;return{thumbnail:l.thumbnail,thumbnailOverlays:Zt,accessibilityText:A(),thumbnailSize:l.thumbnailSize,enableRounding:S().isCollection,containPlayerWithinThumbnail:S().isCollection,mouseleaveCallback:function(){y(!1)},
trackingParams:(V6=_.x(g().rendererContext,_.cT))==null?void 0:(bs=V6.loggingDirectives)==null?void 0:bs.trackingParams}}});
var V=0;f=_.w(_.Wa(!1,void 0,"hPOYMe"));var Q=f.next().value,y=f.next().value;f=_.w(_.Wa(!1,void 0,"oGMpeb"));var O=f.next().value,Jq=f.next().value;f=_.Ve(function(){O()?(_.ft.cancelJob(V),V=_.ft.addJob(function(){y(!0)},8,32)):y(!0);
return!0});
var LC=_.Ve(function(Zt){Zt=Zt.relatedTarget;var Ev=document.querySelector("ytd-video-preview");Zt&&Ev&&Ev.contains(Zt)||(V&&(_.ft.cancelJob(V),V=0),y(!1))});
_.sX(function(){V&&(_.ft.cancelJob(V),V=0)});
var bW=$3W(function(){Jq(!0)}),RA=bW.touchFeedbackEvents,Xg=bW.touchFeedbackOnPointerUp,Fg=bW.touchFeedbackOnPointerDown;
bW=bW.touchFeedbackOnPointerLeave;var oA={};return _.a(_.es,null,_.a("div",{el:e,class:_.o6("yt-lockup-view-model",function(){a:{var Zt=S();if(Zt.metadataOnThumbnail)Zt="yt-lockup-view-model--metadata-on-thumbnail";else switch(Zt.arrangement){case 1:Zt="yt-lockup-view-model--horizontal";break a;default:Zt="yt-lockup-view-model--vertical"}}return Zt},function(){a:{var Zt=S();
if(Zt.metadataOnThumbnail)Zt="yt-lockup-view-model--metadata-on-thumbnail";else{switch(Zt.collectionStackNumber){case 1:Zt="yt-lockup-view-model--collection-stack-1";break a;case 2:Zt="yt-lockup-view-model--collection-stack-2";break a}Zt=void 0}}return Zt},function(){var Zt;
return _.h7p((Zt=g())==null?void 0:Zt.contentId)},(oA["yt-lockup-view-model--card"]=function(){return S().isCard},oA["yt-lockup-view-model--compact"]=function(){return S().isTiny||S().sizing!=="STANDARD"},oA["yt-lockup-view-model--protect-background"]=J,oA["yt-lockup-view-model--add-margins"]=function(){return S().addMarginForFullbleed},oA["yt-lockup-view-model--centered"]=function(){return S().isCentered},oA["yt-lockup-view-model--fullbleed"]=function(){return S().fullbleed},oA["yt-lockup-view-model--single-column-grid"]=
function(){return b()===1&&k()===2},oA["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var Zt;
return(Zt=W())==null?void 0:Zt.useRichGridLegacyMargin},oA["yt-lockup-view-model--flex-none"]=function(){return!_.G("lockup_flex_none_killswitch")},oA)),
"on:mousedown":Fg,"on:mouseleave":LC,"on:mouseup":Xg,"on:mouseover":f,"on:touchstart":Fg,"on:touchend":Xg,"on:pointerleave":bW},_.a(_.zG,{model:function(){var Zt,Ev,an=Object,V6=an.assign,bs=(l==null?void 0:l.thumbnailSize)||"small";a:{var f1=S();var hk=!!(d()&&((Zt=W())==null?0:Zt.onFocusEffect));switch((l==null?void 0:l.thumbnailSize)||"small"){case "small":Zt=4;break;case "large":Zt=12;break;default:Zt=8}if(hk)f1=Zt+12;else{switch(f1.collectionStackNumber){case 1:f1=Zt+8;break a;case 2:f1=Zt+12;
break a}f1=void 0}}bs={thumbnailSize:bs,triggerEvents:!0,customTopExtend:f1};var Pq;f1=(Ev=W())==null?void 0:Ev.onFocusEffect;hk=!(X==null||!X());if(f1){var vq,hq;Ev=hk?(vq=f1.onFocusColor)==null?void 0:vq.darkTheme:(hq=f1.onFocusColor)==null?void 0:hq.lightTheme;var zv,XM;vq=hk?(zv=f1.keyLightColor)==null?void 0:zv.darkTheme:(XM=f1.keyLightColor)==null?void 0:XM.lightTheme;var Su;zv=hk?(Pq=f1.touchResponseColor)==null?void 0:Pq.darkTheme:(Su=f1.touchResponseColor)==null?void 0:Su.lightTheme;Pq={background:Ev!==
void 0?bg(Ev):void 0,keyLight:vq!==void 0?bg(vq):void 0};Su=[];XM=_.w(f1.lightingTechniques||[]);for(vq=XM.next();!vq.done;vq=XM.next())switch(vq.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":Su.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":Su.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":Su.push(3)}Pq={hoverEffect:{palette:Pq,lightingTechniques:Su},touchEffect:{palette:{background:zv!==void 0?bg(zv):void 0}}}}else Pq={};return V6.call(an,{},bs,Pq)},
hovered:function(){return Q()},
pointerDownEvent:RA.pointerDownEvent,pointerUpEvent:RA.pointerUpEvent,pointerLeaveEvent:RA.pointerLeaveEvent}),_.a(_.E,{cond:function(){var Zt;return d()&&Q()&&((Zt=W())==null?void 0:Zt.onFocusEffect)},
then:function(){return _.a("div",{class:"yt-lockup-view-model__endorsement"},_.a(_.eS,{data:function(){return d()}},{attributionViewModel:function(Zt){return _.a(VN,{data:Zt.data,
useHeavyText:!0})}}))}}),_.a(_.d4,{command:function(){var Zt;
return _.nV((Zt=g())==null?void 0:Zt.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(n()||S().thumbnailFixedWidth)&&S().arrangement===1?"width: "+(n()||S().thumbnailFixedWidth):""}},_.a(_.eS,{data:function(){var Zt;
return(Zt=g())==null?void 0:Zt.contentImage}},{thumbnailViewModel:function(Zt){return _.a(zA,{data:Zt.data,
aspectRatio:function(){return S().aspectRatio},
disableRounding:function(){return S().disableRounding},
width:R,hovered:function(){return Q()&&!(D()&&g().itemPlayback)},
isClip:function(){var Ev;return((Ev=g())==null?void 0:Ev.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:oRC(l),lockupExperiments:function(){return W()}})},
collectionThumbnailViewModel:function(Zt){return _.a(qpn,{data:Zt.data,aspectRatio:function(){return S().aspectRatio},
disableRounding:function(){return S().disableRounding},
width:R,doubleStack:function(){return S().collectionStackNumber===2},
hovered:function(){return Q()&&!(D()&&g().itemPlayback)},
playbackRef:oRC(l)})},
decoratedAvatarViewModel:_.WG})),_.a("div",{class:"yt-lockup-view-model__metadata"},_.a(_.eS,{data:function(){var Zt;return(Zt=g())==null?void 0:Zt.metadata}},{lockupMetadataViewModel:function(Zt){return _.a(P$n,{data:Zt.data,
hovered:Q,lockupStyle:S,lockupCommand:function(){var Ev;return _.nV((Ev=g())==null?void 0:Ev.rendererContext)},
lockupAccessibilityLabel:function(){return A()},
layout:function(){var Ev;return((Ev=W())==null?0:Ev.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(Zt){return _.a(yN,{data:Zt.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:q})}}),_.a(_.eS,{data:function(){var Zt;
return(Zt=g())==null?void 0:Zt.attachmentSlot}},{lockupAttachmentsViewModel:function(Zt){return _.a(xKw,{data:Zt.data,
lockupStyle:S})}}))),_.a(_.eS,{data:function(){var Zt;
return(Zt=g())==null?void 0:Zt.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Zt){return _.a(xKw,{data:Zt.data,
lockupStyle:S})}}))},"dc");
_.KS.idomCompat=!0;_.sL(_.KS,"yt-lockup-view-model",{props:{data:_.jx,containerLayoutConfig:_.jx,containerType:_.jx,sizing:_.jx,protectBackground:_.jx,typographyBump:_.jx,thumbnailFixedWidth:_.jx,thumbnailTargetWidth:_.jx,force16By9ThumbnailAspectRatio:_.jx,className:_.jx,lockupExperiments:_.jx,elementsPerRow:_.jx,useOverlayStyling:_.jx}});var PaW,dKq=_.H(function(e){var g=_.FA(e,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),c=g.text,k=g.alwaysShowTruncationText;e=g.truncationText;var I=g.onTextClick,J=g.maxLines,q=g.disableTextMask,L=g.textStyle,n=g.accessibilityLabel,R=g.textSize,W=g.alwaysTruncateAtMaxLines,b=g.expandOnClick;g=_.w(_.Wa(!1,void 0,"EzA1q"));var h=g.next().value,X=g.next().value;g=_.Ve(function(){b()&&X(!h());I==null||I()});
var D=function(){a:switch(R()){case "medium":var O=2;break a;case "large":O=2.2;break a;default:O=1.8}return O},f=T8g(c,function(){return h()?Infinity:J()},D,q,W,h),l=f.isTruncated;
c=f.displayText;W=f.contentRef;var A=f.hiddenRef,d=f.placeholderTruncationTextRef,S=f.hiddenTruncationTextRef;f=f.truncationTextRef;var V={},Q={},y={};return _.a("truncated-text",{class:_.o6((V["yt-truncated-text"]=!0,V["yt-truncated-text--overlay"]=function(){return L()==="overlay"},V["yt-truncated-text--medium-text"]=function(){return R()==="medium"},V["yt-truncated-text--large-text"]=function(){return R()==="large"},V["yt-truncated-text--primary-text"]=function(){return L()==="primary-text"},V)),
"on:click":g,style:function(){return"line-height: "+D()+"rem;"}},_.a("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:W,style:function(){return h()?"":"max-height: "+J()*D()+"rem;"}},_.a(_.fa,{text:c}),_.a("button",{"aria-disabled":!0,
disabled:!0,class:_.o6((Q["yt-truncated-text__inline-button"]=!0,Q["yt-truncated-text--hidden"]=function(){return!(!h()&&(k!=null&&k()||l()))},Q)),
el:d,style:function(){return"line-height: "+D()+"rem;"}},_.a(_.fa,{text:e}))),_.a("truncated-text-content",{class:_.o6("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:A,style:function(){return h()?"":"max-height: "+J()*D()+"rem;"},
"aria-hidden":"true"},_.a(_.fa,{text:c}),_.a("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:S,style:function(){return"line-height: "+D()+"rem;"}},_.a(_.fa,{text:e}))),_.a("button",{"aria-label":n,
class:_.o6((y["yt-truncated-text__absolute-button"]=function(){return!q()},y["yt-truncated-text__bottom-button"]=function(){return q()},y["yt-truncated-text--hidden"]=function(){return!(!h()&&(k!=null&&k()||l()))},y)),
el:f,style:function(){return"line-height: "+D()+"rem;"}},_.a(_.fa,{text:e})))},"fc");
dKq.idomCompat={callbacks:{onTextClick:!0}};var Qhv=_.H(function(e){var g=e.data;e=e.className;var c=_.xF(function(){return AeC(g())},void 0,"uDhDke"),k=_.a(_.es,null,_.a(_.E,{cond:function(){return g().heroText||g().image},
then:function(){return _.a(z31,{data:g})}}),_.a(Heu,{data:g,
sizeSmall:function(){return g().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.a("yt-video-attribute-view-model",{class:e},_.a("div",{class:function(){var I=g();a:switch(I.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var J="yt-video-attribute-view-model--vertical";break a;default:J="yt-video-attribute-view-model--horizontal"}a:switch(I.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var q="yt-video-attribute-view-model--image-small";break a;default:q="yt-video-attribute-view-model--image-large"}a:switch(I.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var L=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":L="yt-video-attribute-view-model--image-avatar";break a;default:L=""}a:switch(I.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var n="yt-video-attribute-view-model--metadata-header";break a;default:n=""}a:switch(I.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var R="yt-video-attribute-view-model--container-card";break a;default:R=""}return["yt-video-attribute-view-model",J,q,
L,n,R,AeC(I)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.N2({"background-color":function(){var I=g();if(I.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var J="";else{J=I.lightColorPalette;I=I.darkColorPalette;var q,L=((q=_.Ss().resolve(_.NN(_.gb)))==null?0:q())&&I?I:J;J=(J=L==null?void 0:L.section2Color)?_.EY(J):""}return J}})},_.a(_.E,{cond:c,
then:function(){return _.a(_.d4,{className:"yt-video-attribute-view-model__content-container",command:c,role:"group",ariaLabel:function(){return g().title}},k)},
else:function(){return _.a("div",{class:"yt-video-attribute-view-model__content-container"},k)}})))},"gc");
Qhv.idomCompat=!0;var z31=_.H(function(e){var g=e.data;var c,k=(c=_.Ss().resolve(_.NN(_.gb)))==null?void 0:c(),I=function(){return k&&g().darkThemeImage?g().darkThemeImage:g().image},J=_.xF(function(){return sSC(g())},void 0,"UDqj0b");
return _.a("div",{class:"yt-video-attribute-view-model__hero-section"},_.a(_.f4,null,_.a(_.DC,{when:I},function(){return _.a(_.pv,{data:function(){return I()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.a(_.DC,{when:function(){return g().heroText}},function(){return _.a("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.a("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return g().heroText}))})),_.a(_.E,{cond:function(){return g().overflowMenuOnTap},
then:function(){return _.a("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.a(_.UO,{data:J,iconName:"MORE_VERT"}))}}))},"hc");
z31.idomCompat=!0;var Heu=_.H(function(e){var g=e.data;e=e.sizeSmall;var c=function(){return g().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},k=_.xF(function(){return X6(_.hb({innertubeCommand:AeC(g())}))?"link":AeC(g())?"button":"group"},void 0,"e2MmYe"),I={};
return _.a("div",{class:_.o6("yt-video-attribute-view-model__metadata",(I["yt-video-attribute-view-model--small-font"]=e,I)),role:k},_.a("h1",{class:"yt-video-attribute-view-model__title"},function(){return g().title}),_.a(_.E,{cond:function(){return g().subtitle},
then:function(){return _.a("h4",{class:"yt-video-attribute-view-model__subtitle"},_.a(_.E,{cond:c,then:function(){return _.a(dKq,{text:function(){return lDW(g().subtitle)},
truncationText:function(){return lDW(g().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.a("span",null,function(){return g().subtitle})}}))}}),_.a(_.E,{cond:function(){return g().secondarySubtitle},
then:function(J){return _.a("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.a(_.fa,{text:function(){var q=J();if(q!=null&&q.attachmentRuns){for(var L=[],n=_.w(q.attachmentRuns),R=n.next();!R.done;R=n.next())R=R.value,R.element&&L.push(Object.assign({},R,{element:Object.assign({},R.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));q=Object.assign({},q,{attachmentRuns:L})}return q}}))}}),_.a(_.eS,
{data:function(){return g().buttonViewModel}},{buttonViewModel:function(J){return _.a(_.oD,{data:J.data,
className:"yt-video-attribute-view-model__button"})}}))},"ic");
Heu.idomCompat=!0;_.sL(Qhv,"yt-video-attribute-view-model",{props:{data:_.jx,className:_.jx}});var O8=function(){var e=_.z.apply(this,arguments)||this;e.useHighlightStyling=_.G("web_enable_deeper_metadata_highlight_styling");e.isSearch=!1;e.JSC$15614_lastScrollContainerWidth=NaN;e.pageLoadingFromNavigation=!1;e.currentIndex=0;e.supportComponentResize=!1;return e};
_.Y(O8,_.z);_.v=O8.prototype;
_.v.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.v.attached=function(){document.addEventListener("yt-page-type-changed",_.yg(this,this.onPageChange))};
_.v.detached=function(){document.removeEventListener("yt-page-type-changed",_.yg(this,this.onPageChange))};
_.v.getItemsPath=function(){return"data.cards"};
_.v.onIronResize=function(){this.updateListStyles()};
_.v.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var e;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(e=this.data)==null?void 0:e.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.G("problem_walkthrough_sd")&&!!this.centerItems};
_.v.computeCardListStyle=function(e){return e||null};
_.v.computeEmpty=function(e){return!this.get("cards.length",e)};
_.v.computeThumbnailStyle=function(e){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",e)||null};
_.v.computeHasSubtitle=function(e){return!!this.get("header.richListHeaderRenderer.subtitle",e)};
_.v.computeInitialCountNumber=function(e){return this.hasSquareMiniApp&&e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.v.computeUseFloorScrolling=function(e){return e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.v.computeHasGameCard=function(e){return(e=this.get("cards",e))?e.some(function(g){return g.gameCardRenderer}):!1};
_.v.computeCenterHeaderTitle=function(e){return!(e==null||!e.centerHeaderTitle)};
_.v.computeHasPortraitMiniApp=function(e){return(e=e==null?void 0:e.cards)?e.some(function(g){return g.miniGameCardViewModel&&g.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.v.computeHasSquareMiniApp=function(e){return(e=e==null?void 0:e.cards)?e.some(function(g){return g.miniGameCardViewModel&&g.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.v.computeHasSkinnyWidthPortraitMiniApp=function(e){return(e=e==null?void 0:e.cards)?e.some(function(g){return g.miniGameCardViewModel&&g.miniGameCardViewModel.width===135}):!1};
_.v.computeCenterItems=function(e){return!!e};
_.v.computeHasInfoPanel=function(e){var g;return e==null?void 0:(g=e.cards)==null?void 0:g.some(function(c){return c.infoPanelContentRenderer})};
_.v.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.v.getItemByIndex=function(e){var g=this.items.children;return g&&g.length>e?g[e]:void 0};
_.v.onPageChange=function(){var e=this;this.pageLoadingFromNavigation=!0;_.ft.addJob(function(){e.pageLoadingFromNavigation=!1;_.V1(e.hostElement,"yt-terminate-video-preview-action")},8)};
_.v.updateListStyles=function(){if(_.G("problem_walkthrough_sd")&&this.JSC$15614_scrollContainer!==void 0){var e=this.JSC$15614_scrollContainer.clientWidth;e!==this.JSC$15614_lastScrollContainerWidth&&(this.JSC$15614_lastScrollContainerWidth=e,_.Nk(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(e*.8,415)+"px"}),_.oC(this.hostElement,"iron-resize"))}};
_.Bd.Object.defineProperties(O8.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.G("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return!!((e=this.data)==null?0:(g=e.cards)==null?0:(c=g[0])==null?0:c.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return!!((e=this.data)==null?0:(g=e.cards)==null?0:(c=g[0])==null?0:c.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return _.G("enable_desktop_amsterdam_info_panels")&&!!((e=this.data)==null?0:(g=e.cards)==null?0:(c=g[0])==null?0:c.infoPanelContentRenderer)}}});
O8.prototype.dataChanged=O8.prototype.dataChanged;O8.prototype.onIronResize=O8.prototype.onIronResize;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],O8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.dO.YtdHorizontalListBehavior),_.B("design:type",Object)],O8.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.m(_.hz),_.B("design:type",Object)],O8.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],O8.prototype,"data",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],O8.prototype,"useCustomColors",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],O8.prototype,"useHighlightStyling",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.B("design:type",Object)],O8.prototype,"cardListStyle",void 0);_.t([_.u({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.B("design:type",Boolean)],O8.prototype,"empty",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.B("design:type",Boolean)],O8.prototype,"hasSubtitle",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.B("design:type",Boolean)],O8.prototype,"thumbnailStyle",void 0);_.t([_.u({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.B("design:type",Boolean)],O8.prototype,"hasGameCard",void 0);_.t([_.u({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.B("design:type",Boolean)],O8.prototype,"centerHeaderTitle",void 0);
_.t([_.u({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.B("design:type",Boolean)],O8.prototype,"hasPortraitMiniApp",void 0);_.t([_.u({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.B("design:type",Boolean)],O8.prototype,"hasSquareMiniApp",void 0);_.t([_.u({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.B("design:type",Boolean)],O8.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.t([_.u({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.B("design:type",Boolean)],O8.prototype,"hasInfoPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],O8.prototype,"isSearch",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],O8.prototype,"inlineStructuredDescription",void 0);_.t([_.Cs("#scroll-container"),_.B("design:type",HTMLDivElement)],O8.prototype,"JSC$15614_scrollContainer",void 0);
_.t([_.u({computed:"computeInitialCountNumber(data.style.type)"}),_.B("design:type",Number)],O8.prototype,"initialCount",void 0);_.t([_.u({computed:"computeUseFloorScrolling(data.style.type)"}),_.B("design:type",Boolean)],O8.prototype,"useFloorScrolling",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.B("design:type",Boolean)],O8.prototype,"centerItems",void 0);_.t([_.u(),_.B("design:type",Object)],O8.prototype,"pageLoadingFromNavigation",void 0);
_.t([_.u(),_.B("design:type",Object)],O8.prototype,"currentIndex",void 0);_.t([_.u(),_.B("design:type",Number)],O8.prototype,"scrollCount",void 0);_.t([_.u(),_.B("design:type",Object)],O8.prototype,"supportComponentResize",void 0);_.t([_.Cs("#items"),_.B("design:type",HTMLDivElement)],O8.prototype,"items",void 0);_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],O8.prototype,"onIronResize",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],O8.prototype,"dataChanged",null);_.t([_.u({reflectToAttribute:!0}),_.p("inlineStructuredDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],O8.prototype,"hideNavigationButton",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],O8.prototype,"modernChapters",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],O8.prototype,"hasVideoAttributeViewModels",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],O8.prototype,"modernInfoPanels",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],O8);
_.U(O8,"ytd-horizontal-card-list-renderer",function(){if(fDv!==void 0)return fDv;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return fDv=e},{mode:2});var UKs=_.H(function(e){var g=e.data;var c={};return _.a("video-summary-content-view-model",{class:_.o6("videoSummaryContentViewModelHost",e.className,(c.videoSummaryContentViewModelHostIsSearch=e.isSearch,c))},_.a(_.Yz,{each:function(){var k=[],I=g().paragraphs;if(I==null||!I.length)return[];for(var J=0;J<I.length;J++){var q=_.x(I[J],BB1),L=void 0;J>0&&(L=_.x(I[J-1],BB1));L&&!!L.marker===!!q.marker?k[k.length-1].paragraphs.push(q):k.push({isList:!!q.marker,paragraphs:[q]})}return k},
keyBy:"INDEX"},function(k){return _.a(_.E,{cond:function(){return k().isList},
then:function(){return _.a("ul",{class:"videoSummaryContentViewModelList"},_.a(_.Yz,{each:function(){return k().paragraphs},
keyBy:"INDEX"},function(I){return _.a("li",{class:"videoSummaryContentViewModelListItem"},_.a(_.fa,{text:function(){return I().text}}))}))},
else:function(){return _.a("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.a(_.Yz,{each:function(){return k().paragraphs},
keyBy:"INDEX"},function(I){return _.a("p",{class:"videoSummaryContentViewModelParagraph"},_.a(_.fa,{text:function(){return I().text}}))}))}})}),_.a(_.E,{cond:function(){return!!_.x(g().likeButtonViewModel,_.DQ)&&!!_.x(g().dislikeButtonViewModel,_.$t)},
then:function(){return _.a("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.a("div",{class:"videoSummaryContentViewModelLikeButton"},_.a(_.Xh,{data:function(){return _.x(g().likeButtonViewModel,_.DQ)},
disableIconAnimation:!0})),_.a(_.hT,{data:function(){return _.x(g().dislikeButtonViewModel,_.$t)}}))}}))},"jc");
UKs.idomCompat=!0;_.sL(UKs,"video-summary-content-view-model",{props:{data:_.jx,isSearch:_.jx,className:_.jx}});var M6=function(){var e=_.z.apply(this,arguments)||this;var g,c;e.isExpanded=(c=(g=e.data)==null?void 0:g.isExpanded)!=null?c:!1;e.disableExpand=!1;e.showProminentLabel=!1;e.showRightSideLabel=!0;e.toggleExpandableContent=function(k){e.disableExpand||(k.stopPropagation(),_.l6(_.lg(k),e.hostElement,["info","expanded-subtitle"])||(e.isExpanded=!e.isExpanded,e.ytRendererBehavior.logExplicitClick(e.data),e.JSC$15625_cardList&&!_.G("expandable_metadata_a11y_fix_ks")&&_.Va(e,function(){_.Un(e.hostElement)})))};
e.useSquareThumbnail=!1;e.startX=0;return e};
_.Y(M6,_.z);_.v=M6.prototype;_.v.computeUseSquareThumbnail=function(){var e;return(e=this.data)==null?void 0:e.useSquareThumbnail};
_.v.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.v.dataChanged=function(){if(this.data){var e,g;this.isExpanded=(g=(e=this.data)==null?void 0:e.isExpanded)!=null?g:!1;var c,k,I,J;if(e=this.isDarkTheme()?(c=this.data)==null?void 0:(k=c.colorData)==null?void 0:k.darkColorPalette:(I=this.data)==null?void 0:(J=I.colorData)==null?void 0:J.lightColorPalette){var q,L;if((q=this.data)==null?0:(L=q.colorData)==null?0:L.vibrantColorPalette)e.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.vO(this.hostElement,e)}}};
_.v.isExpandedChanged=function(){this.isExpanded&&this.JSC$15625_cardList&&_.oC(this.JSC$15625_cardList,"iron-resize")};
_.v.computeIsExpanded=function(e){return!!e.isExpanded};
_.v.computeShowProminentLabel=function(e,g){var c;return!!(e==null?0:(c=e.header)==null?0:c.showLeadingCollapsedLabel)&&!g};
_.v.computeShowRightSideLabel=function(e,g){var c;return!(e==null?0:(c=e.header)==null?0:c.showLeadingCollapsedLabel)&&!g};
_.v.captureContentClick=function(e){if(!this.disableExpand)if(_.G("expandable_metadata_fix_killswitch")){var g=e.target;_.qu4(g,"ytd-macro-markers-list-item-renderer")||e.stopPropagation();(g==null?void 0:g.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.l6(_.lg(e),this.hostElement,["items"])||_.TJ(_.lg(e),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.v.timestampClick=function(e){e.stopPropagation();var g,c;(e=(g=this.data)==null?void 0:(c=g.header)==null?void 0:c.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(e)};
_.v.onDown=function(e){e.stopPropagation();this.startX=e.detail?e.detail.x:0};
_.v.onUp=function(e){this.skipKeyInteraction(e)&&e.stopPropagation()};
_.v.skipKeyInteraction=function(e){var g=e.target;if((g==null?void 0:g.id)==="scroll-container"||(g==null?void 0:g.id)==="items"||e.detail&&e.detail.x!==this.startX)return!0;e=_.lg(e);e=_.w(e);for(g=e.next();!g.done;g=e.next()){g=g.value;if(g===this.hostElement)break;if(g.hasAttribute&&g.hasAttribute("skip-key-interaction"))return!0}return!1};
_.v.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Bd.Object.defineProperties(M6.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var e;return!!_.x((e=this.data)==null?void 0:e.expandedContent,tMM)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var e;return!!_.x((e=this.data)==null?void 0:e.expandedContent,Sc1)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var e,g;return!((e=this.data)==null||!e.useCustomColors)&&!((g=this.data)==null||!g.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var e,g;return!!((e=this.data)==null?0:(g=e.header)==null?0:g.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var e,g;return!!((e=this.data)==null?0:(g=e.header)==null?0:g.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(e=this.data)==null?void 0:(g=e.header)==null?void 0:g.expandedSubtitleTapCommand;e=c&&_.x(c,_.uf);return _.G("web_open_ai_support_links_external_window")&&(e==null?void 0:e.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(e=this.data)==null?void 0:(g=e.header)==null?void 0:g.expandedSubtitleTapCommand;e=c&&_.x(c,_.uf);return _.G("web_open_ai_support_links_external_window")&&(e==null?void 0:e.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var e,g;return!!((e=this.data)==null?0:(g=e.header)==null?0:g.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
M6.prototype.onUp=M6.prototype.onUp;M6.prototype.onDown=M6.prototype.onDown;M6.prototype.isExpandedChanged=M6.prototype.isExpandedChanged;M6.prototype.dataChanged=M6.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],M6.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],M6.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],M6.prototype,"isExpanded",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],M6.prototype,"disableExpand",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],M6.prototype,"isSearch",void 0);
_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],M6.prototype,"isWatch",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.B("design:type",Object)],M6.prototype,"showProminentLabel",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.B("design:type",Object)],M6.prototype,"showRightSideLabel",void 0);
_.t([_.u({value:!1,reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M6.prototype,"hasVideoSummary",null);_.t([_.u({value:!1,reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M6.prototype,"hasLockupViewModel",null);_.t([_.u({reflectToAttribute:!0}),_.p("data","isWatch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M6.prototype,"useCustomColors",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M6.prototype,"showInfoButton",null);_.t([_.p("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M6.prototype,"showTimestamp",null);_.t([_.p("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M6.prototype,"showExpandedSubtitle",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],M6.prototype,"expandedSubtitleTarget",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],M6.prototype,"expandedSubtitleRel",null);_.t([_.p("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M6.prototype,"showThumbnail",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],M6.prototype,"useVppShoppingDestinationStyle",null);
_.t([_.u(),_.B("design:type",Object)],M6.prototype,"toggleExpandableContent",void 0);_.t([_.Cs("ytd-horizontal-card-list-renderer"),_.B("design:type",Object)],M6.prototype,"JSC$15625_cardList",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.B("design:type",Object)],M6.prototype,"useSquareThumbnail",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],M6.prototype,"dataChanged",null);
_.t([_.OY("isExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],M6.prototype,"isExpandedChanged",null);_.t([_.Ks("down"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],M6.prototype,"onDown",null);_.t([_.Ks("up"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],M6.prototype,"onUp",null);
_.t([_.bF({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],M6);
_.U(M6,"ytd-expandable-metadata-renderer",function(){if(Ffn!==void 0)return Ffn;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Ffn=e},{mode:1});var oZM,Zev=function(){if(oZM!==void 0)return oZM;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return oZM=e};_.sL(_.bh,"yt-avatar-stack-view-model",{props:{className:_.jx,data:_.jx,overrides:_.jx,isOverlay:_.jx,useMediumText:_.jx,decorations:_.jx,hideAvatar:_.jx}});_.qH("itemSectionRenderer","videoRenderer","ytd-video-renderer");var CS=function(){var e=_.z.apply(this,arguments)||this;e.disableExpand=!1;e.shouldShowChannelInfo=!1;e.hasAttributedBylineText=!1;e.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return e};
_.Y(CS,_.z);_.v=CS.prototype;_.v.computeUseSearchUi=function(){var e,g;return this.isSearch||((e=this.data)==null?void 0:(g=e.style)==null?void 0:g.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.v.computeUseThreeLineTitle=function(){var e;return((e=this.data)==null?void 0:e.maxTitleLines)===3};
_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.G("polymer_video_renderer_defer_menu")&&!W8Z?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.v.attached=function(){_.Vg(this.hostElement,"blue-links",_.G("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.t3(_.o1(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var e=this.get("data.buttons.buttonRenderer.serviceEndpoint"),g;e&&((g=_.x(e.commandMetadata,_.I_))==null?0:g.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(e);this.updateInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15630_inlinePreviewHoverListener=hC({mediaRenderer:this,lockupElement:this.JSC$15630_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.v.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$15630_inlinePreviewHoverListener)==null||dS(e)};
_.v.onTextWrapperClick=function(e){var g,c,k=this.hideTranslation?(g=this.data)==null?void 0:g.untranslatedNavigationEndpoint:(c=this.data)==null?void 0:c.navigationEndpoint;g=_.l6(_.lg(e),this.hostElement,["expandable-metadata"]);!k||g&&!_.G("expandable_metadata_fix_killswitch")||_.TJ(_.lg(e),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.oC(this.hostElement,"yt-navigate",{endpoint:k})};
_.v.computeThumbnailWidth=function(e,g,c,k,I){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:k?I==="MASSIVE"?600:I==="BIG"?500:I==="MEDIUM"?450:420:c?360:g?128:e?210:246};
_.v.computeUseBiggerThumbs=function(e){return e&&_.G("enable_desktop_search_bigger_thumbs")};
_.v.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.v.computeHasAttributedBylineText=function(){var e;return!((e=this.data)==null||!e.attributedBylineText)};
_.v.computeVideoStyle=function(){if(_.G("enable_video_style")){var e,g;return(e=this.data)==null?void 0:(g=e.style)==null?void 0:g.value}};
_.v.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.v.handleHideItemSectionVideosByIdCommand=function(e){var g;e=(g=_.x(e,R2v))==null?void 0:g.videoId;this.data&&this.data.videoId===e&&(this.isHidden=!0)};
_.v.getMetadataSnippetContainerClass=function(e){return e?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.v.computeTitleText=function(e,g,c){return e?c:g};
_.v.computeDescriptionSnippet=function(e,g,c){return e?c:g};
_.v.computeSnippetText=function(e,g,c){return e?c:g};
_.v.computeNavigationEndpoint=function(e,g){return e?g==null?void 0:g.untranslatedNavigationEndpoint:g==null?void 0:g.navigationEndpoint};
_.v.hideInlineTitleIcon=function(e,g){return e||!g};
_.Bd.Object.defineProperties(CS.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 e;return(e=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?e:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return!!(this==null?0:(e=this.data)==null?0:(g=e.channelThumbnailSupportedRenderers)==null?0:(c=g.channelThumbnailWithLinkRenderer)==null?0:c.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var e;return!!_.x((e=this.data)==null?void 0:e.avatar,yzq)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$15630_inlinePreviewHoverListener)==null?0:x9(e))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Bd.Object.defineProperties(CS,{template:{configurable:!0,enumerable:!0,get:function(){return Zev()}}});
CS.prototype.dataChanged=CS.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],CS.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],CS.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.m(_.f3),_.B("design:type",Object)],CS.prototype,"ytdLockupBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],CS.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],CS.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],CS.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],CS.prototype,"isBackstageVideo",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],CS.prototype,"isPostCompactVideo",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],CS.prototype,"isHistory",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],CS.prototype,"isRichGridVideoPost",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],CS.prototype,"isHidden",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],CS.prototype,"isSearch",void 0);_.t([_.u({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.B("design:type",Boolean)],CS.prototype,"useSearchUi",void 0);_.t([_.u({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.B("design:type",Boolean)],CS.prototype,"useThreeLineTitle",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.B("design:type",Boolean)],CS.prototype,"useBiggerThumbs",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.B("design:type",Object)],CS.prototype,"videoStyle",void 0);_.t([_.u({computed:"computeDisableExpand(videoStyle)"}),_.B("design:type",Object)],CS.prototype,"disableExpand",void 0);
_.t([_.u({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.B("design:type",Object)],CS.prototype,"shouldShowChannelInfo",void 0);_.t([_.u({computed:"computeHasAttributedBylineText(data)"}),_.B("design:type",Object)],CS.prototype,"hasAttributedBylineText",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.C4("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],CS.prototype,"biggerThumbsStyle",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.B("design:type",String)],CS.prototype,"inlineTitleIcon",void 0);_.t([_.u({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.B("design:type",Object)],CS.prototype,"computedNavigationEndpoint",void 0);_.t([_.u({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(e,g){return _.Nc(e.entities,"searchVideoResultEntity",g)}}),
_.B("design:type",Object)],CS.prototype,"searchVideoResultEntity",void 0);_.t([_.Cs("ytd-thumbnail"),_.B("design:type",HTMLElement)],CS.prototype,"thumbnail",void 0);_.t([_.Cs("#dismissible"),_.B("design:type",HTMLElement)],CS.prototype,"JSC$15630_dismissibleMedia",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CS.prototype,"dataChanged",null);
_.t([_.p("searchVideoResultEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CS.prototype,"hideTranslation",null);_.t([_.p("searchVideoResultEntity"),_.B("design:type",Array),_.B("design:paramtypes",[])],CS.prototype,"hiddenBadgeGroups",null);_.t([_.p("data","useAvatar"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CS.prototype,"shouldShowChannelThumbnail",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CS.prototype,"useAvatar",null);
_.t([_.p("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CS.prototype,"isHovered",null);_.t([_.bF({is:"ytd-video-renderer",disableElementRegistration:!0})],CS);_.U(CS,"ytd-video-renderer",function(){return Zev()},{mode:2});var ed=function(){var e=_.z.apply(this,arguments)||this;e.editDialog=null;e.roundedContainer=!0;e.isLoading=!1;e.isRichGrid=!1;e.isRichGridRepost=!1;e.reduceSidePaddings=_.G("reduce_side_paddings_in_shelf");e.JSC$15637_spinnerEl=null;return e};
_.Y(ed,_.z);_.v=ed.prototype;
_.v.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.contentTextChanged=function(){this.expander.reset()};
_.v.dataChanged=function(){var e=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var g=0,c=this.data.actions&&this.data.actions.length;g<c;g++)this.openEditDialog(_.x(this.data.actions[g],KyZ));if((g=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(g=this.get("buttonRenderer.hint.hintRenderer.hintId",g))&&g.startsWith("share-post-hint")){var k=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(k){_.t$.getInstance();var I=Bl(_.PL(_.C_("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.ft.addLowPriorityJob(function(){_.Bm(e.hostElement,I,k)})}}}};
_.v.updatePoll=function(e){e>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.v.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15637_spinnerEl||(this.JSC$15637_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.o1(this.hostElement).appendChild(this.JSC$15637_spinnerEl));this.JSC$15637_spinnerEl&&(this.JSC$15637_spinnerEl.active=this.isLoading)};
_.v.onYtNavigate=function(e){var g=this.get("updateCommentDialogEndpoint",e.detail.endpoint);g&&(this.openEditDialog(g),e.stopPropagation())};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null};
_.v.onYtCommentPollRevert=function(e,g){g&&this.updatePoll(g.selectedChoiceIndex)};
_.v.onYtServiceRequestSent=function(e,g){var c;g.endpoint&&(_.x(g.endpoint,L5B)||_.x(g.endpoint,qcu)&&((c=_.x(g.endpoint,qcu))==null||!c.clientActions))&&(this.isLoading=!0);if(g.actions)for(e=0;e<g.actions.length;e++)c=g.actions[e],_.x(c,cU)&&(c=this.get("updateBackstagePollAction.selectedChoiceIndex",c),c==void 0&&(c=-1),this.updatePoll(c))};
_.v.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.v.openEditDialog=function(e){e&&e.dialog&&(this.editDialog=e.dialog,e=this.editDialogEl.firstElementChild)&&(e.focus(),e.openDialog&&e.openDialog())};
_.v.computeIsPostHidden=function(e,g){return!!e||g};
_.v.computeSurfaceType=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.v.computeUsesCompactLockup=function(e){return e==="BACKSTAGE_SURFACE_TYPE_HOME"||e==="BACKSTAGE_SURFACE_TYPE_SEARCH"||e==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||e==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||e==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||e==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.v.computeShowWithoutToolbar=function(e){return!e.actionButtons&&!e.actionMenu};
_.v.computePostAttachment=function(e){if(e.backstageAttachment){if(_.x(e.backstageAttachment,Uwq))return"poll";if(_.x(e.backstageAttachment,frn))return"quiz";if(_.x(e.backstageAttachment,_.KQI))return"video";if(_.x(e.backstageAttachment,j5q))return"uploaded-videos";if(_.x(e.backstageAttachment,GBq))return e.contentText?"image":"image-only";if(_.x(e.backstageAttachment,xwI))return"playlist"}return"none"};
_.v.computePostTabIndex=function(e){return e?0:-1};
_.v.computeButtonTooltipPosition=function(e){return this.computeUsesCompactLockup(e)?"top":"bottom"};
_.v.computeHasText=function(e){return!(e==null||!e.contentText)};
_.v.onTap=function(e){var g,c;if(((g=this.data)==null?0:g.navigationEndpoint)&&((c=this.data)==null?void 0:c.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var k;((k=this.data)==null?0:k.navigationEndpoint)&&!_.TJ(_.lg(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Bd.Object.defineProperties(ed.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.voteCount)||_.PL("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.x(this.data.backstageAttachment,Uwq))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.x(this.data.backstageAttachment,j5q))}}});
ed.prototype.onYtServiceRequestCompleted=ed.prototype.onYtServiceRequestCompleted;ed.prototype.onYtServiceRequestSent=ed.prototype.onYtServiceRequestSent;ed.prototype.onYtCommentPollRevert=ed.prototype.onYtCommentPollRevert;ed.prototype.onYtCommentboxDismiss=ed.prototype.onYtCommentboxDismiss;ed.prototype.onYtNavigate=ed.prototype.onYtNavigate;ed.prototype.isLoadingChanged=ed.prototype.isLoadingChanged;ed.prototype.dataChanged=ed.prototype.dataChanged;ed.prototype.contentTextChanged=ed.prototype.contentTextChanged;
_.t([_.m(_.hz),_.B("design:type",Object)],ed.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ed.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],ed.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ed.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],ed.prototype,"editDialog",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ed.prototype,"roundedContainer",void 0);_.t([_.u(),_.B("design:type",Object)],ed.prototype,"isLoading",void 0);_.t([_.u({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.B("design:type",String)],ed.prototype,"surface",void 0);
_.t([_.u({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.B("design:type",Boolean)],ed.prototype,"usesCompactLockup",void 0);_.t([_.u({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],ed.prototype,"showWithoutToolbar",void 0);_.t([_.u({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.B("design:type",String)],ed.prototype,"attachment",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ed.prototype,"isRichGrid",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ed.prototype,"isRichGridRepost",void 0);_.t([_.u({reflectToAttribute:!0,value:_.G("use_better_post_dismissals")}),_.B("design:type",Boolean)],ed.prototype,"useBetterPostDismissals",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ed.prototype,"reduceSidePaddings",void 0);
_.t([_.u({computed:"computeHasText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],ed.prototype,"hasText",void 0);_.t([_.Cs("#expander"),_.B("design:type",Object)],ed.prototype,"expander",void 0);_.t([_.Cs("#action-buttons"),_.B("design:type",Object)],ed.prototype,"actionButtons",void 0);_.t([_.Cs("#edit-dialog"),_.B("design:type",HTMLElement)],ed.prototype,"editDialogEl",void 0);
_.t([_.OY("data.contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ed.prototype,"contentTextChanged",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ed.prototype,"dataChanged",null);_.t([_.OY("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ed.prototype,"isLoadingChanged",null);
_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ed.prototype,"onYtNavigate",null);_.t([_.Ks("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ed.prototype,"onYtCommentboxDismiss",null);_.t([_.Ks("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],ed.prototype,"onYtCommentPollRevert",null);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],ed.prototype,"onYtServiceRequestSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],ed.prototype,"onYtServiceRequestCompleted",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ed.prototype,"voteCount",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ed.prototype,"commentCount",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ed.prototype,"hasPoll",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ed.prototype,"hasUploadedVideo",null);_.t([_.bF({is:"ytd-post-renderer",disableElementRegistration:!0})],ed);
_.U(ed,"ytd-post-renderer",function(){if(cW4!==void 0)return cW4;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return cW4=e},{mode:1});var Vj1;var tju;var gR=function(){return _.z.apply(this,arguments)||this};
_.Y(gR,_.z);gR.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.dO.YtdHorizontalListBehavior),_.B("design:type",Object)],gR.prototype,"ytdHorizontalListBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],gR.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],gR.prototype,"data",void 0);
_.t([_.u({value:"$.items.children"}),_.B("design:type",String)],gR.prototype,"itemsPath",void 0);_.t([_.u({value:1}),_.B("design:type",Number)],gR.prototype,"initialCount",void 0);_.t([_.u({reflectToAttribute:!0,value:_.G("enable_community_page_on_desktop")}),_.B("design:type",Boolean)],gR.prototype,"useSmallerPostImageAttachments",void 0);_.t([_.u(),_.B("design:type",String)],gR.prototype,"surface",void 0);_.t([_.bF({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],gR);
_.U(gR,"ytd-post-multi-image-renderer",function(){if(tju!==void 0)return tju;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return tju=e},{mode:2});var Bo1={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
c1=function(){var e=_.z.apply(this,arguments)||this;e.hasInlineCommentSection=!1;e.editDialog=null;e.isLoading=!1;e.shouldHideAuthor=!1;e.shouldShowVideoTime=!1;e.isInEngagementPanel=!1;e.hideBorder=!1;e.usesFullLockup=!1;e.shouldShowMenuInCompactView=!1;e.JSC$15652_spinnerEl=null;e.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return e};
_.Y(c1,_.z);_.v=c1.prototype;_.v.configureRendererStamper=function(){return Bo1};
_.v.computeIsPollHeaderEnabled=function(e){return(e==null?void 0:e.pollMetadataIcon)!=null};
_.v.getPublishTimeStampString=function(e,g){g=new Date((Number(g)-60*((new Date).getTimezoneOffset()-(new Date(Number(g)*1E3)).getTimezoneOffset()))*1E3);g=(new im(10)).format(g);if(e&&e.runs&&e.runs.length)for(var c=0;c<e.runs.length;c++)e.runs[c].text&&(e.runs[c].text=e.runs[c].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",g));return e};
_.v.created=function(){this.JSC$15652_spinnerEl=null};
_.v.contentTextChanged=function(){this.expander.reset()};
_.v.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var e;if((e=this.data)==null?0:e.actions){e=_.w(this.data.actions);for(var g=e.next();!g.done;g=e.next())this.openEditDialog(_.x(g.value,KyZ))}};
_.v.handleSignalActionOpenPostCommentDialogAction=function(){_.o1(this.hostElement).querySelector("#action-buttons").reply()};
_.v.updatePoll=function(e,g){g&&this.set("data.pollMetadataVoteCountText",g);this.hasInlineCommentSection&&(e=e>=0,g=_.o1(this.hostElement).querySelector("#action-buttons"),e?g.reply():g.hideReplyDialog())};
_.v.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15652_spinnerEl||(this.JSC$15652_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.o1(this.hostElement).appendChild(this.JSC$15652_spinnerEl));this.JSC$15652_spinnerEl&&(this.JSC$15652_spinnerEl.active=this.isLoading)};
_.v.onYtNavigate=function(e){var g=this.get("updateCommentDialogEndpoint",e.detail.endpoint);g&&(this.openEditDialog(g),e.stopPropagation())};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null};
_.v.onYtCommentPollRevert=function(e,g){g&&this.updatePoll(g.selectedChoiceIndex,g.totalVotes)};
_.v.onYtServiceRequestSent=function(e,g){e.stopPropagation();e=_.x(g.endpoint,qcu);if(_.x(g.endpoint,L5B)||e&&!e.clientActions)this.isLoading=!0;if(g.actions)for(e=0;e<g.actions.length;e++){var c=g.actions[e],k=_.x(c,cU);k&&(c=this.get("updateBackstagePollAction.selectedChoiceIndex",c),c===void 0&&(c=-1),this.updatePoll(c,k.totalVotes))}};
_.v.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.v.openEditDialog=function(e){e&&e.dialog&&(this.editDialog=e.dialog,e=this.editDialogElement.firstElementChild)&&(e.focus(),e.openDialog&&e.openDialog())};
_.v.computeIsBodyHidden=function(e,g){return!!e||g};
_.Bd.Object.defineProperties(c1.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var e=this.data,g=e.showPostAuthorBackgroundHighlight,c=e.postAuthorBadgeType,k=e.authorEndpoint;if(!g&&c!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&c!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var I,J,q;e=_.PL(((I=e.authorText)==null?void 0:(J=I.runs)==null?void 0:(q=J[0])==null?void 0:q.text)||"");I=void 0;switch(c){case "POST_AUTHOR_BADGE_TYPE_ARTIST":I={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":I={iconType:g?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:e,authorEndpoint:k,authorCreator:g,icon:I}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var e,g;if((e=this.data)==null?0:(g=e.pollMetadataIcon)==null?0:g.iconType)return _.NY(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.voteCount)||_.PL("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.x(this.data.backstageAttachment,Uwq))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.x(this.data.backstageAttachment,frn))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.x(this.data.backstageAttachment,j5q))}}});
c1.prototype.onYtServiceRequestCompleted=c1.prototype.onYtServiceRequestCompleted;c1.prototype.onYtServiceRequestSent=c1.prototype.onYtServiceRequestSent;c1.prototype.onYtCommentPollRevert=c1.prototype.onYtCommentPollRevert;c1.prototype.onYtCommentboxDismiss=c1.prototype.onYtCommentboxDismiss;c1.prototype.onYtNavigate=c1.prototype.onYtNavigate;c1.prototype.isLoadingChanged=c1.prototype.isLoadingChanged;c1.prototype.dataChanged=c1.prototype.dataChanged;c1.prototype.contentTextChanged=c1.prototype.contentTextChanged;
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],c1.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],c1.prototype,"rendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],c1.prototype,"rendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],c1.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.Cs("#contentTextExpander"),_.B("design:type",Object)],c1.prototype,"expander",void 0);_.t([_.Cs("#edit-dialog"),_.B("design:type",Element)],c1.prototype,"editDialogElement",void 0);_.t([_.u(),_.B("design:type",Object)],c1.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],c1.prototype,"hasInlineCommentSection",void 0);_.t([_.u(),_.B("design:type",Object)],c1.prototype,"editDialog",void 0);_.t([_.u(),_.B("design:type",Object)],c1.prototype,"isLoading",void 0);
_.t([_.u({computed:"computeIsPollHeaderEnabled(data)"}),_.B("design:type",Boolean)],c1.prototype,"isPollHeaderEnabled",void 0);_.t([_.u(),_.B("design:type",Object)],c1.prototype,"shouldHideAuthor",void 0);_.t([_.u(),_.B("design:type",Object)],c1.prototype,"shouldShowVideoTime",void 0);_.t([_.u(),_.B("design:type",Object)],c1.prototype,"isInEngagementPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],c1.prototype,"hideBorder",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],c1.prototype,"usesFullLockup",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],c1.prototype,"shouldShowMenuInCompactView",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],c1.prototype,"authorCommentBadge",null);_.t([_.p("isInEngagementPanel"),_.B("design:type",Number),_.B("design:paramtypes",[])],c1.prototype,"postTextMaxLines",null);
_.t([_.p("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],c1.prototype,"pollIcon",null);_.t([_.OY("data.contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c1.prototype,"contentTextChanged",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c1.prototype,"dataChanged",null);
_.t([_.OY("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c1.prototype,"isLoadingChanged",null);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],c1.prototype,"onYtNavigate",null);_.t([_.Ks("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c1.prototype,"onYtCommentboxDismiss",null);
_.t([_.Ks("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],c1.prototype,"onYtCommentPollRevert",null);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],c1.prototype,"onYtServiceRequestSent",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],c1.prototype,"onYtServiceRequestCompleted",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],c1.prototype,"voteCount",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],c1.prototype,"commentCount",null);
_.t([_.p("data.backstageAttachment"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],c1.prototype,"hasPoll",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],c1.prototype,"hasQuiz",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],c1.prototype,"hasUploadedVideo",null);_.t([_.bF({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],c1);
_.U(c1,"ytd-backstage-post-renderer",function(){if(Vj1!==void 0)return Vj1;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Vj1=e},{mode:1});var Non;var kY=function(){var e=_.z.apply(this,arguments)||this;e.editDialog=null;e.showExpandButton=!1;e.isRichGrid=!1;e.usesFullLockup=!1;return e};
_.Y(kY,_.z);_.v=kY.prototype;_.v.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.v.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.v.computeShowExpandButton=function(e){return this.usesCompactLockup||e&&e.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.v.computeUsesCompactLockup=function(e){return!!e.condensedContent};
_.v.computeShowFullContentText=function(e){return!e};
_.v.onYtNavigate=function(e){e=this.get("updateCommentDialogEndpoint",e.detail.endpoint);this.openEditDialog(e)};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null};
_.v.openEditDialog=function(e){e&&e.dialog&&(this.editDialog=e.dialog,e=this.repostEditDialogEl.firstElementChild)&&(e.focus(),e.openDialog&&e.openDialog())};
_.v.onTap=function(e){if(this.data){var g=null;this.usesCompactLockup&&!_.TJ(_.lg(e)||[],this.hostElement,["YT-IMG-SHADOW"])?g=this.get("navigationEndpoint",this.data):e.target===this.moreButtonEl&&(g=this.get("navigationEndpoint",e.target.data));g&&_.oC(this.hostElement,"yt-navigate",{endpoint:g})}};
kY.prototype.onYtCommentboxDismiss=kY.prototype.onYtCommentboxDismiss;kY.prototype.onYtNavigate=kY.prototype.onYtNavigate;kY.prototype.dataChanged=kY.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],kY.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],kY.prototype,"editDialog",void 0);_.t([_.u({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],kY.prototype,"usesCompactLockup",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],kY.prototype,"showExpandButton",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],kY.prototype,"isRichGrid",void 0);
_.t([_.u({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.B("design:type",Boolean)],kY.prototype,"showFullContentText",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],kY.prototype,"usesFullLockup",void 0);_.t([_.Cs("#more"),_.B("design:type",Object)],kY.prototype,"moreButtonEl",void 0);_.t([_.Cs("#repost-content-text"),_.B("design:type",HTMLElement)],kY.prototype,"repostContentTextEl",void 0);
_.t([_.Cs("#repost-edit-dialog"),_.B("design:type",HTMLElement)],kY.prototype,"repostEditDialogEl",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kY.prototype,"dataChanged",null);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kY.prototype,"onYtNavigate",null);
_.t([_.Ks("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kY.prototype,"onYtCommentboxDismiss",null);_.t([_.bF({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],kY);
_.U(kY,"ytd-shared-post-renderer",function(){if(Non!==void 0)return Non;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Non=e},{mode:1});var Sp4;var yys;var If=function(){return _.z.apply(this,arguments)||this};
_.Y(If,_.z);If.prototype.attached=function(){var e=this;this.networkStatusManager||(this.networkStatusManager=new _.zI,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){e.onlineHandler()}))};
If.prototype.detached=function(){var e=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){e.onlineHandler()}),delete this.networkStatusManager)};
If.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],If.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],If.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],If);
_.U(If,"ytd-reload-page-button-renderer",function(){if(yys!==void 0)return yys;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
return yys=e},{mode:1});var KLw={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"},Ji=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(Ji,_.z);_.v=Ji.prototype;_.v.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.v.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.v.computeHasBodyText=function(e){return!!e.bodyText};
_.v.computeButtons=function(e){var g=[];e.ctaButton&&g.push(e.ctaButton);e.secondaryButton&&g.push(e.secondaryButton);return g};
_.v.computeRendererStyle=function(e){return e.style?e.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():e.icon?"":"no-icon"};
_.v.getIconName=function(e,g){g=g===void 0?!1:g;if(e===void 0)return"";e=this.get("icon.iconType",e);var c;_.G("enable_hlp_client_icon_pick")?c=this.getThemedIcon(e,g):c=e;(g=KLw[c])||(g="yt-icons");return[g,c].join(":")};
_.v.getThemedIcon=function(e,g){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(e)?g?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(e)?g?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":e};
_.v.isThumbnail=function(e){return!!e.thumbnail};
_.v.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.v.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Ji.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ji.prototype,"data",void 0);
_.t([_.u({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],Ji.prototype,"rendererStyle",void 0);_.t([_.u({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.B("design:type",String)],Ji.prototype,"iconName",void 0);_.t([_.u({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Ji.prototype,"thumbnail",void 0);_.t([_.u({computed:"computeButtons(data)"}),_.B("design:type",Array)],Ji.prototype,"buttons",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ji.prototype,"isDarkTheme",void 0);_.t([_.u({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Ji.prototype,"hasBodyText",void 0);_.t([_.bF({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Ji);
_.oI()(Ji,"ytd-background-promo-renderer",function(){if(Sp4===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);Sp4=e}e=Sp4;return e},{allowedProps:["data"],
mode:1});var Oeq;var v1=function(){return _.z.apply(this,arguments)||this};
_.Y(v1,_.z);_.Bd.Object.defineProperties(v1.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k,I,J;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(e=this.data)==null?void 0:(g=e.thumbnail)==null?void 0:g.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(k=c.thumbnail)==null?void 0:k.vibrantColorPalette,darkColorPalette:(I=this.data)==null?void 0:(J=I.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:!0}}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],v1.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],v1.prototype,"collectionStack",null);_.t([_.bF({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],v1);
_.U(v1,"ytd-compact-station-renderer",function(){if(Oeq!==void 0)return Oeq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Oeq=e},{mode:1});var Mjw;var wR=function(){var e=_.z.apply(this,arguments)||this;e.isRichGrid=!1;return e};
_.Y(wR,_.z);wR.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wR.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],wR.prototype,"isRichGrid",void 0);_.t([_.bF({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],wR);
_.U(wR,"ytd-grid-channel-renderer",function(){if(Mjw!==void 0)return Mjw;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Mjw=e},{mode:1});var C$v;var qF=function(){return _.z.apply(this,arguments)||this};
_.Y(qF,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qF.prototype,"data",void 0);_.t([_.bF({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],qF);
_.U(qF,"ytd-grid-movie-playlist-renderer",function(){if(C$v!==void 0)return C$v;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return C$v=e},{mode:1});var enk;var L$=function(){var e=_.z.apply(this,arguments)||this;e.downloadProgress=0;e.transferState="TRANSFER_STATE_UNKNOWN";e.modernButtons=_.G("web_modern_buttons");return e};
_.Y(L$,_.z);L$.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
L$.prototype.configureRendererStamper=function(){return{"data.menu":eZ}};
L$.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
L$.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.G("woffle_playlist_renderer_killswitch")){var e,g=kAV(this.entityInfo,this.transferState,this.downloadProgress,(e=this.data)==null?void 0:e.playlistId,this.isOnline);e=g.viewPlaylistText;var c=g.badges;g=g.thumbnailOverlays;this.isDownloads=!!e||!!c;this.set("data.viewPlaylistText",e);c&&c.length>0&&this.set("data.badges",c);g&&g.length>0&&this.set("data.thumbnailOverlays",
g)}};
_.Bd.Object.defineProperties(L$.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 e;return!((e=this.data)==null?0:e.menu)}}});
L$.prototype.transferStateChanged=L$.prototype.transferStateChanged;L$.prototype.dataChanged=L$.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],L$.prototype,"ytdLockupBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],L$.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],L$.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u({selector:_.QGz,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],L$.prototype,"downloadProgress",void 0);_.t([_.u({selector:_.Xi,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],L$.prototype,"transferState",void 0);_.t([_.u({selector:H3A,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],L$.prototype,"entityInfo",void 0);_.t([_.u({selector:_.bm}),_.B("design:type",Boolean)],L$.prototype,"isOnline",void 0);
_.t([_.u(),_.B("design:type",Object)],L$.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],L$.prototype,"downloadRenderData",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],L$.prototype,"modernButtons",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],L$.prototype,"isDownloads",void 0);_.t([_.p("transferState"),_.u({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],L$.prototype,"downloadState",null);
_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],L$.prototype,"menuHidden",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L$.prototype,"dataChanged",null);_.t([_.k_("transferState","downloadProgress","isOnline"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L$.prototype,"transferStateChanged",null);
_.t([_.bF({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],L$);
_.U(L$,"ytd-grid-playlist-renderer",function(){if(enk!==void 0)return enk;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return enk=e},{mode:1});var gi1;var rR=function(){return _.z.apply(this,arguments)||this};
_.Y(rR,_.z);rR.prototype.configureRendererStamper=function(){return{"data.menu":eZ,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Bd.Object.defineProperties(rR.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k,I,J;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(e=this.data)==null?void 0:(g=e.thumbnail)==null?void 0:g.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(k=c.thumbnail)==null?void 0:k.vibrantColorPalette,darkColorPalette:(I=this.data)==null?void 0:(J=I.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:!0}}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],rR.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],rR.prototype,"ytdLockupBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],rR.prototype,"data",void 0);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],rR.prototype,"collectionStack",null);_.t([_.bF({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],rR);
_.U(rR,"ytd-grid-radio-renderer",function(){if(gi1!==void 0)return gi1;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return gi1=e},{mode:1});var cYq;var af=function(){return _.z.apply(this,arguments)||this};
_.Y(af,_.z);af.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
af.prototype.computeNavigationEndpoint=function(e){return AFz(e==null?void 0:e.navigationEndpoint)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],af.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],af.prototype,"ytdLockupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],af.prototype,"data",void 0);_.t([_.u({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],af.prototype,"computedNavigationEndpoint",void 0);
_.t([_.bF({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],af);
_.U(af,"ytd-grid-show-renderer",function(){if(cYq!==void 0)return cYq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return cYq=e},{mode:1});var kN4;_.n$=function(e){this.playerClient=e};
_.Iq4=function(e,g,c){c=c===void 0?{}:c;return e.playerClient.setOption("ad",g,c)};
_.n$.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.n$.prototype.executeCommand=function(e,g){this.getOptions().includes("executeCommand")?_.Iq4(this,"executeCommand",{command:e,layoutId:g}):_.jS("Calling executeCommand when adModule is not loaded")};var Rf=function(){return _.z.apply(this,arguments)||this};
_.Y(Rf,_.z);Rf.prototype.getLayoutId=function(){var e=_.Q0("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.layoutId:null};
Rf.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var e=_.FE(),g=this.getLayoutId(),c=this.data.clickthroughEndpoint;e&&g&&_.G("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?e.getPlayerPromise().then(function(k){(new _.n$(k)).executeCommand(c,g)}):_.oC(this.hostElement,"yt-navigate",{endpoint:c})}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Rf.prototype,"data",void 0);_.t([_.bF({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Rf);
_.U(Rf,"ytd-shopping-companion-item-renderer",function(){if(kN4!==void 0)return kN4;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return kN4=e},{mode:1});var JYq;var EN=function(){var e=_.z.apply(this,arguments)||this;e.isExpandableContent=!1;return e};
_.Y(EN,_.z);_.Bd.Object.defineProperties(EN.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((e=this.data)==null?void 0:e.price)||((g=this.data)==null?void 0:(c=g.dealsData)==null?void 0:c.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var e,g;if((e=this.data)!=null&&e.dealsData&&((g=this.data)==null||!g.priceReplacementText)){e=this.data.dealsData;var c,k,I;return((c=e.salesData)==null?void 0:c.originalPrice)||((k=e.priceDropData)==null?void 0:k.referencePrice)||((I=e.promotionData)==null?void 0:I.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var e,g;return(e=this.data)==null?void 0:(g=e.dealsData)==null?void 0:g.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],EN.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],EN.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],EN.prototype,"isExpandableContent",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"showCta",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"ctaText",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"hasPriceTopPosition",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"hasPriceBottomPosition",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"useNewStyle",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"showPriceReplacementText",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"priceValue",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"showDeal",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"showAffiliateDisclaimer",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"useSaleStyle",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"useFromBrandCtaStyle",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"useFromVendorCtaStyle",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EN.prototype,"useShoppingCollectionCtaStyle",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],EN);
_.U(EN,"ytd-vertical-product-card-renderer",function(){if(JYq!==void 0)return JYq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return JYq=e},{mode:1});var viZ;var W1=function(){return _.z.apply(this,arguments)||this};
_.Y(W1,_.z);W1.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],W1.prototype,"ytdLockupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],W1.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],W1);
_.U(W1,"ytd-grid-movie-renderer",function(){if(viZ!==void 0)return viZ;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return viZ=e},{mode:1});var w3q;var bX=function(){var e=_.z.apply(this,arguments)||this;e.roundedFix=_.G("web_enable_merch_item_rounding_fix");e.itemStyle="small-item";return e};
_.Y(bX,_.z);bX.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var e,g,c,k,I=(g=_.x((e=this.data)==null?void 0:e.buttonCommand,_.etI))==null?void 0:(c=g.item)==null?void 0:(k=c.notificationTextRenderer)==null?void 0:k.successResponseText;I&&_.F4v(this.hostElement,I)}};
_.Bd.Object.defineProperties(bX.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:e.isProductPlaceholder)!==void 0&&((g=this.data)==null?void 0:g.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],bX.prototype,"roundedFix",void 0);_.t([_.u(),_.B("design:type",Object)],bX.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],bX.prototype,"itemStyle",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],bX.prototype,"hasPrice",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],bX.prototype,"hasPriceReplacementText",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],bX.prototype,"hasAdditionalFeesText",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],bX.prototype,"hasAffiliateDisclaimer",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],bX.prototype,"isProductPlaceholder",null);
_.t([_.u(),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],bX.prototype,"hideOpenInNewIcon",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],bX.prototype,"ariaLabel",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],bX);
_.U(bX,"ytd-merch-shelf-item-renderer",function(){if(w3q!==void 0)return w3q;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return w3q=e},{mode:1});_.sL(_.H(function(e){return _.a("button-card-view-model",{el:_.mb(_.EQ(function(){return e.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return e.data().title},
role:"button"},_.a(_.zG,{model:{}}),_.a("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.a("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.a(_.E,{cond:function(){return e.data().image},
then:function(g){return _.a(_.pv,{data:g,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.a("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return e.data().title})))},"kc"),"button-card-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){e=_.FA(e,{className:void 0});var g=e.data;e=e.className;var c=_.xF(function(){return g().onTapCommand},void 0,"SXkP9e");
return _.a("ytd-shopping-item-card",{class:_.o6("ytdShoppingItemCardHost",e)},_.a(_.d4,{command:c,className:"ytdShoppingItemCardHostLink"},_.a("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.a(_.eS,{data:function(){return g().thumbnailViewModel}},{thumbnailViewModel:function(k){return _.a(zA,{data:k.data,
aspectRatio:3})}})),_.a("div",null,_.a("p",{class:"ytdShoppingItemCardHostItemTitle"},_.a(_.fa,{text:function(){return g().itemTitle}})),_.a("p",{class:"ytdShoppingItemCardHostPrice"},_.a(_.fa,{text:function(){return g().priceOrStatus}})))))},"lc"),"ytd-shopping-item-card",{props:{data:_.jx,
className:_.jx}});var qtq={isAdsVideo:!0},L$I={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},rYZ={showPlayerControls:!1,videoPreviewDurationMs:15E3},aqI={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},ni1={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var PY=null,uKq={};var Hpq="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(" "),hi={},QSW=(hi.FEwhat_to_watch="home",hi.FEhashtag="hashtag",hi.FEtrending="trending",hi.FEhistory="history",hi.SPunlimited="premium",hi.FEmemberships_and_purchases="paid_memberships",hi.SPredeem_code="redeem",hi.SPverify_location="locate",hi.SPminor_moment="minor_moment",
hi.FEmini_app_container="mini_app",hi.FEnews_destination="news",hi.SPopen_in_app="open_in_app",hi.FEexplore="explore",hi.FEsubscriptions="subscriptions",hi.FEsfv_audio_pivot="sfv_audio_pivot",hi.FEplaylist_aggregation="playlist_aggregation",hi);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");_.No("init");var Rnk,Eiw,bDn,hnu,W$4;Rnk=function(){};
_.eIC=_.H(function(e){var g=e.data;var c=e.inlineMetadata;var k=e.aspectRatio;var I=e.scrimStyle;var J=e.className;var q=e.useDefaultStyle;var L=e.titleStyle;var n=new Rnk,R=_.G("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",W=_.xF(function(){return(q==null?0:q())?R==="SHORTS_LOCKUP_STYLE_SLIM":g().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),b=_.xF(function(){return _.ds(c)||W()||!1},void 0,"GaU7Ef"),h=function(){return(I==null?void 0:
I())!==void 0?I==null?void 0:I():1},X=_.xF(function(){return g().belowThumbnailMetadata||!b()},void 0,"vsyhaf");
e=_.By({visibilityCallback:function(Jq){var LC=g().onFirstVisible;Jq&&LC&&_.GF(LC)},
showOption:{calledOnce:!0,state:"visible"}});var D=_.mb(),f={},l=_.o6(function(){return W(),"shortsLockupViewModelHostThumbnailContainer"},(f.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.ds(k)===1},f.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.ds(k)===2},f.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.G("web_shorts_2_by_3_lockups_study")&&!_.G("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
f)),A=_.xF(function(){if(_.ds(k)===1)return 1;
_.ds(k);return 2},void 0,"bBJLCd"),d,S=function(){if(n){var Jq;
(Jq=d)==null||dS(Jq);var LC;if(n.hostElement&&((LC=n.data)==null?0:LC.inlinePlayerData)){var bW,RA;Jq=((bW=n.data)==null?0:(RA=bW.inlinePlayerData)==null?0:RA.enableAudioControl)?Object.assign({},ni1):Object.assign({},aqI);var Xg,Fg;((Xg=n.data)==null?void 0:(Fg=Xg.inlinePlayerData)==null?void 0:Fg.maxPlaybackLengthSec)!==void 0&&(Jq.videoPreviewDurationMs=n.data.inlinePlayerData.maxPlaybackLengthSec*1E3);d=hC({mediaRenderer:n,lockupElement:n.hostElement,thumbnailElement:D.value,videoPreviewOpts:Jq})}}};
_.AV(function(){n&&(n.data=g(),S())},"r1zbOc");
var V=_.xF(function(){return g().thumbnail},void 0,"wZj8b");
f=_.xF(function(){return g().badge},void 0,"qOKyU");
var Q=_.xF(function(){return g().onTap},void 0,"p3kB9e"),y={},O={};
return _.a("ytm-shorts-lockup-view-model",{el:_.mb(function(Jq){n&&(n.hostElement=Jq)},S,e),
class:_.o6("shortsLockupViewModelHost",J)},_.a(_.es,null,_.a(_.d4,{command:Q,className:_.o6("shortsLockupViewModelHostEndpoint",(y.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!X()},y),"reel-item-endpoint",""),
ariaHidden:function(){return!b()},
tabIndex:function(){return b()?0:-1}},_.a("div",{el:D,
class:_.o6("shortsLockupViewModelHostThumbnailParentContainer",(O.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!W()},O))},_.a(_.E,{cond:V,
then:function(){return _.a("div",{class:l},_.a(_.pv,{data:function(){var Jq;return(Jq=V==null?void 0:V())!=null?Jq:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.a(_.eS,{data:function(){return g().thumbnailViewModel}},{thumbnailViewModel:function(Jq){return _.a(zA,{data:Jq.data,
aspectRatio:function(){return A()},
disableRounding:function(){return W()}})}}),null),_.a(_.E,{cond:b,
then:function(){return _.a(Eiw,{data:g,scrimStyle:h,useDefaultStyle:q,titleStyle:L})}}),_.a(_.eS,{data:f},{badgeViewModel:function(Jq){return _.a(_.A8,{data:Jq.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.a(_.E,{cond:function(){return b()&&g().menuOnTap},
then:function(){return _.a(W$4,{data:g,inlineMetadata:!0})}}),_.a(_.E,{cond:X,
then:function(){return _.a(bDn,{data:g,useDefaultStyle:q,inlineMetadata:b})}})))},"nc");
Eiw=_.H(function(e){var g=e.data;var c=e.scrimStyle;var k=e.useDefaultStyle;var I=e.titleStyle;var J=_.G("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",q=k&&_.G("web_hide_primary_text_for_pivot_panel"),L=_.xF(function(){return(k==null?0:k())?J==="SHORTS_LOCKUP_STYLE_SLIM":g().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ou5zO");
e={};e=_.o6("shortsLockupViewModelHostInlineMetadata",(e.shortsLockupViewModelHostMetadataRounded=function(){return!L()},e.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(c==null?void 0:c())===3&&!_.G("enable_shorts_lockup_new_scrim")},e.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(c==null?void 0:c())===3&&_.G("enable_shorts_lockup_new_scrim")},e.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(c==null?void 0:c())===2||(c==null?void 0:
c())===4},e.shortsLockupViewModelHostShowOverPlayer=function(){return!0},e),"image-overlay-text");
var n={};return _.a("div",{class:e},_.a("h3",{class:_.o6("shortsLockupViewModelHostMetadataTitle",(n.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(c==null?void 0:c())===4},n.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return g().belowThumbnailMetadata},n.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(I==null?void 0:I())===1},n.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(I==null?void 0:I())===2},n)),
"aria-label":function(){return g().accessibilityText}},_.a(_.E,{cond:function(){var R;
return!((R=g().overlayMetadata)==null||!R.primaryText)&&!q},
then:function(){return _.a(_.fa,{text:function(){var R;return(R=g().overlayMetadata)==null?void 0:R.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.a(_.E,{cond:function(){var R;
return(R=g().overlayMetadata)==null?void 0:R.secondaryText},
then:function(){return _.a(hnu,{data:g,scrimStyle:c,className:void 0})}}))},"oc");
bDn=_.H(function(e){var g=e.data;var c=e.useDefaultStyle;var k=e.inlineMetadata;var I=_.G("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",J=_.xF(function(){return(c==null?0:c())?I==="SHORTS_LOCKUP_STYLE_SLIM":g().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"WbzRH"),q=_.mb(),L;
e=_.Ve(function(X){if(_.aB(_.rb(X),q.value,["AVATAR-VIEW-MODEL"]))return!1;var D;(D=L)==null||D.click();return!1});
var n=_.xF(function(){return g().belowThumbnailMetadata||g().overlayMetadata},void 0,"nDfetf"),R=function(){return g().menuOnTap&&!k()},W=function(){var X;
return(X=n())==null?void 0:X.avatar},b={},h={};
return _.a("div",{class:_.o6(function(){return J()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(b.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!W()},b.shortsLockupViewModelHostOutsideMetadataHasMenu=R,b)),
"on:click":e,el:q,role:"presentation"},_.a(_.eS,{data:W},{avatarViewModel:function(X){return _.a(_.E8,{data:X.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.a("div",null,_.a("h3",{class:_.o6("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(h.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var X,D;
return!((X=n())==null?0:(D=X.primaryText)==null?0:D.content)},h.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=k,h)),
role:"presentation"},_.a(_.d4,{ref:function(X){return void(L=X)},
command:function(){return g().onTap},
className:_.o6("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var X,D;return(X=n())==null?void 0:(D=X.primaryText)==null?void 0:D.content},
"aria-label":function(){return g().accessibilityText}},_.a(_.E,{cond:function(){var X;
return(X=n())==null?void 0:X.primaryText},
then:function(X){return _.a(_.fa,{text:X,noEndpoints:!0,noStyleRuns:!0})}}))),_.a(_.E,{cond:function(){var X;
return(X=n())==null?void 0:X.secondaryText},
then:function(X){return _.a("div",{class:_.o6("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.a(_.fa,{text:X,noStyleRuns:!0}))}})),_.a(_.E,{cond:R,
then:function(){return _.a(W$4,{data:g,inlineMetadata:!1})}}))},"pc");
hnu=_.H(function(e){var g=e.data;var c=e.scrimStyle;e=e.className;var k={};return _.a("div",{class:_.o6((k.shortsLockupViewModelHostMetadataSubhead=function(){return(c==null?void 0:c())!==4},k.shortsLockupViewModelHostMetadataSubheadNew=_.G("enable_shorts_lockup_new_scrim"),k.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(c==null?void 0:c())===4},k),e),
"aria-hidden":"true"},_.a(_.fa,{text:function(){var I;return(I=g().overlayMetadata)==null?void 0:I.secondaryText},
noStyleRuns:!0}))},"qc");
W$4=_.H(function(e){var g=e.data;var c=e.inlineMetadata;e={};e=_.o6((e.shortsLockupViewModelHostInlineMetadataMenu=function(){return c()},e.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!c()},e.shortsLockupViewModelHostShowOverPlayer=function(){return!0},e),"image-overlay-text");
return _.a("div",{class:e},_.a(_.UO,{data:function(){return{style:c()?"overlay":"mono",accessibilityLabel:g().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(k){k.preventDefault();k.stopPropagation();var I=_.hb({elementsCommand:g().menuOnTap,forceNewState:!0});if(I==null?0:I.onclick)I.onclick(k)}}},
iconName:"MORE_VERT"}))},"rc");var cl6=_.H(function(e){var g=e.data;var c=e.inlineMetadata;var k=e.aspectRatio;var I=e.scrimStyle;var J=e.className;var q=e.useDefaultStyle;e=_.xF(function(){var L=g().entityId;return L?L.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.a("ytm-shorts-lockup-view-model-v2",{class:_.o6("shortsLockupViewModelHost",J)},_.a(_.BG,{contentId:e,aspectRatio:function(){return(k==null?void 0:k())===1?1:(k==null?void 0:k())===2?2:4}},function(){return _.a(_.eIC,{data:g,
inlineMetadata:c,aspectRatio:k,scrimStyle:I,className:J,useDefaultStyle:q})}))},"sc");_.sL(cl6,"ytm-shorts-lockup-view-model-v2",{props:{data:_.TF,inlineMetadata:_.TF,aspectRatio:_.TF,scrimStyle:_.TF,className:_.TF,useDefaultStyle:_.TF,titleStyle:_.TF}});var X3B=16/9*210,Xr=function(){var e=_.z.apply(this,arguments)||this;e.isExpandableContent=!1;e.hideShelfHeader=!1;e.engagementPanel=!1;e.buttonClasses=["arrow"];e.isSearch=!1;e.disableScrollEventListener=!1;e.containsLockup=!1;e.overrideArrowPositionForProductCard=!1;e.overrideArrowPositionForShoppingItemCard=!1;e.overrideArrowPositionForReelItems=!1;e.overrideArrowPositionForGridMovie=!1;e.overrideArrowPositionToCenter=!1;e.isSearchPostShelf=!1;e.overrideArrowPositionForMixedShelf=!1;e.overrideArrowPositionForMixedShelfShortsOnly=
!1;e.hasBigThumbsReelItems=!1;e.shouldUseMixedListHeight=!1;e.shouldUseShortsListHeight=!1;e.gridVideoWidth=0;e.isSearchVodShelf=!1;e.disableWheelScroll=!1;e.sizing="COMPACT";e.shortsLockupAspectRatio=0;return e};
_.Y(Xr,_.z);_.v=Xr.prototype;
_.v.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.v.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.G("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.v.computeInitialCountNumber=function(e){if(!e)return 6;var g=e.items.some(function(J){return!!J.topicRecommendationsChipRenderer}),c=e.items.some(function(J){return!!J.displayAdRenderer}),k=this.computeShouldListItemsHaveEqualHeight(e),I=e.items.some(function(J){return!!J.gridPlaylistRenderer});
e=e.items.some(function(J){return!!J.shoppingItemCardViewModel});
return g?9:c?8:I||k?10:e?7:6};
_.v.computeContainsPost=function(e){return!!e&&!!e.items&&e.items.some(function(g){return!!g.postRenderer})};
_.v.computeContainsLockup=function(){if(_.G("web_horizontal_list_lockup_arrow_killswitch"))return!1;var e,g;return(e=this.data)==null?void 0:(g=e.items)==null?void 0:g.some(function(c){return!!c.lockupViewModel})};
_.v.maybeUpdateLockupAspectRatio=function(){var e,g;if(this.computeContainsLockup()&&((e=this.data)==null?0:(g=e.items)==null?0:g.length)){var c;e=L4z((c=this.data.items[0].lockupViewModel)==null?void 0:c.contentType,this.data.force16By9ThumbnailAspectRatio);c=w8A(e);c=this.computeLockupWidth()/c;_.Nk(this.hostElement,{"--yt-horizontal-list-content-height":c+"px"})}};
_.v.computeOverrideArrowPositionForProductCard=function(e){if(this.isExpandableContent)return!1;var g;return!!(e==null?0:(g=e.items)==null?0:g.some(function(c){return!!c.verticalProductCardRenderer}))};
_.v.computeOverrideArrowPositionForShoppingItemCard=function(e){var g;return!!(e==null?0:(g=e.items)==null?0:g.some(function(c){return!!c.shoppingItemCardViewModel}))};
_.v.computeOverrideArrowPositionForReelItemRenderer=function(e){return this.containsReelItemRenderer(e)};
_.v.computeHasBigThumbsReelItems=function(e,g){return e&&this.containsReelItemRenderer(g)};
_.v.computeShouldListItemsHaveEqualHeight=function(e){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(e==null?void 0:e.itemSizeConstraint)};
_.v.computeShouldListItemsHaveShortsHeight=function(e){return this.computeShouldListItemsHaveEqualHeight(e)&&!this.containsGridVideoRenderer(e)};
_.v.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.v.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.v.containsReelItemRenderer=function(e){var g;return!!(e==null?0:(g=e.items)==null?0:g.some(function(c){return!(!c.reelItemRenderer&&!c.shortsLockupViewModel)}))};
_.v.containsGridVideoRenderer=function(e){var g;return!!(e==null?0:(g=e.items)==null?0:g.some(function(c){return!!c.gridVideoRenderer||!!c.lockupViewModel}))};
_.v.computeContainsGridMovieRenderer=function(e){var g;return!!(e==null?0:(g=e.items)==null?0:g.some(function(c){return!!c.gridMovieRenderer}))};
_.v.computeOverrideArrowPositionToCenter=function(e){return this.computeIsSearchPostShelf(e)};
_.v.computeIsSearchPostShelf=function(e){var g;return!!(e==null?0:(g=e.items)==null?0:g.some(function(c){var k,I;return((I=(k=c.postRenderer)==null?void 0:k.surface)!=null?I:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.v.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(e){var g;return!!(e==null?0:(g=e.items)==null?0:g.some(function(c){var k,I,J;return((J=(k=c.backgroundPromoRenderer)==null?void 0:(I=k.style)==null?void 0:I.value)!=null?J:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.v.computeIsSearchVodShelf=function(e,g){return e&&this.containsGridVideoRenderer(g)};
_.v.computeDisableWheelScroll=function(e,g){return this.computeIsSearchVodShelf(e,g)};
_.v.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.v.computeShortsLockupAspectRatio=function(){return 1};
_.v.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Nk(this.hostElement,{"--ytd-reel-item-thumbnail-height":X3B+"px"})};
Xr.prototype.dataChanged=Xr.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.dO.YtdHorizontalListBehavior),_.B("design:type",Object)],Xr.prototype,"ytdHorizontalListBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Xr.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],Xr.prototype,"isExpandableContent",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"hideShelfHeader",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"engagementPanel",void 0);_.t([_.u(),_.B("design:type",Array)],Xr.prototype,"buttonClasses",void 0);_.t([_.u(),_.B("design:type",Object)],Xr.prototype,"isSearch",void 0);
_.t([_.u(),_.B("design:type",Object)],Xr.prototype,"disableScrollEventListener",void 0);_.t([_.u({computed:"computeInitialCountNumber(data)"}),_.B("design:type",Number)],Xr.prototype,"initialCount",void 0);_.t([_.u({computed:"computeContainsPost(data)"}),_.B("design:type",Boolean)],Xr.prototype,"supportComponentResize",void 0);_.t([_.u({computed:"computeContainsPost(data)"}),_.B("design:type",Boolean)],Xr.prototype,"containsPost",void 0);
_.t([_.u({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"containsLockup",void 0);_.t([_.u({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Xr.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.t([_.u({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"overrideArrowPositionForProductCard",void 0);_.t([_.u({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.t([_.u({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"overrideArrowPositionForReelItems",void 0);_.t([_.u({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"overrideArrowPositionForGridMovie",void 0);
_.t([_.u({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"overrideArrowPositionToCenter",void 0);_.t([_.u({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"isSearchPostShelf",void 0);_.t([_.u({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.t([_.u({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.t([_.u({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"hasBigThumbsReelItems",void 0);
_.t([_.u({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"shouldUseMixedListHeight",void 0);_.t([_.u({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"shouldUseShortsListHeight",void 0);_.t([_.u({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"gridVideoWidth",void 0);
_.t([_.u({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"isSearchVodShelf",void 0);_.t([_.u({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"disableWheelScroll",void 0);_.t([_.u({computed:"computeSizing(isSearch)"}),_.B("design:type",Object)],Xr.prototype,"sizing",void 0);
_.t([_.u({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.B("design:type",Object)],Xr.prototype,"shortsLockupAspectRatio",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xr.prototype,"dataChanged",null);
_.U(Xr,"yt-horizontal-list-renderer",function(){if(Wl1===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);Wl1=e}e=Wl1;return e},{mode:1});var GNM=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
GNM.prototype.subscribe=function(e,g){var c=this.subscriptions.get(e);if(!c)return function(){};
c.add(g);return function(){c.delete(g)}};
GNM.prototype.unsubscribe=function(e,g){(e=this.subscriptions.get(e))&&e.delete(g)};
GNM.prototype.publish=function(e,g){g=g===void 0?{}:g;(e=this.subscriptions.get(e))&&e.forEach(function(c){c(g)})};var xIw;var DIw=[10,12,14,16,18,20,24,28,32,36],$IY=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Gk=function(){var e=_.z.apply(this,arguments)||this;e.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";e.hideOverflow=!1;e.useRoboto=!1;e.fontClass="";e.overflown=!1;e.actionMap={"yt-window-resized":"resize"};return e};
_.Y(Gk,_.z);_.v=Gk.prototype;
_.v.attached=function(){var e=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();_.Va(this,function(){e.resize()});
if(!_.B2){var g,c,k;(g=document)==null||(c=g.fonts)==null||(k=c.ready)==null||k.then(function(){e.resize()})}};
_.v.dataChanged=function(){this.resize()};
_.v.guideIsExpandedChanged=function(){this.resize()};
_.v.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var e=this.getMaxNumLines(),g=this.getMinFont(),c=this.getMaxFont(),k=this.useRoboto?DIw:$IY;for(k=k.filter(function(J){return J<=c&&J>=g});k.length>1;){var I=Math.floor(k.length/2);
this.updateFontSize(k[I]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=e)k=k.slice(I,k.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>e)k=k.slice(0,I);else break}this.updateFontSize(k[k.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(e)}};
_.v.handleOverflow=function(e){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>e&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",e.toString()))};
_.v.updateFontSize=function(e){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+e;this.textNode.classList.add(this.fontClass)};
_.v.getMaxFont=function(){var e=this.useRoboto?DIw:$IY;e=e[e.length-1];return this.maxFontSize&&this.maxFontSize<=e?this.maxFontSize:e};
_.v.getMinFont=function(){var e=(this.useRoboto?DIw:$IY)[0];return this.minFontSize&&this.minFontSize>=e?this.minFontSize:e};
_.v.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.v.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.v.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.mp(this.text).split("\n").length-1:Infinity};
_.v.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Kh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Gk.prototype.guideIsExpandedChanged=Gk.prototype.guideIsExpandedChanged;Gk.prototype.dataChanged=Gk.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Gk.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Gk.prototype,"actionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Gk.prototype,"text",void 0);
_.t([_.u(),_.B("design:type",String)],Gk.prototype,"fontFamily",void 0);_.t([_.u(),_.B("design:type",Number)],Gk.prototype,"maxWidth",void 0);_.t([_.u(),_.B("design:type",Number)],Gk.prototype,"maxHeight",void 0);_.t([_.u(),_.B("design:type",Number)],Gk.prototype,"maxFontSize",void 0);_.t([_.u(),_.B("design:type",Number)],Gk.prototype,"minFontSize",void 0);_.t([_.u(),_.B("design:type",Number)],Gk.prototype,"maxLines",void 0);_.t([_.u(),_.B("design:type",Object)],Gk.prototype,"hideOverflow",void 0);
_.t([_.u({selector:_.i3z}),_.B("design:type",Boolean)],Gk.prototype,"guideIsExpanded",void 0);_.t([_.Cs("#container"),_.B("design:type",HTMLElement)],Gk.prototype,"containerNode",void 0);_.t([_.Cs("#text"),_.B("design:type",HTMLElement)],Gk.prototype,"textNode",void 0);_.t([_.k_("text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gk.prototype,"dataChanged",null);
_.t([_.k_("guideIsExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gk.prototype,"guideIsExpandedChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Gk);
_.U(Gk,"yt-dynamic-sizing-formatted-string",function(){if(xIw!==void 0)return xIw;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return xIw=e},{mode:1});var YtZ;_.fqv=function(e){_.eK.call(this,e)};
_.Y(_.fqv,_.eK);var jKw=function(e){_.eK.call(this,e)};
_.Y(jKw,_.fqv);var xY=function(){return _.z.apply(this,arguments)||this};
_.Y(xY,_.z);xY.prototype.onTapSuspendedChannel=function(){var e;if((e=this.data)!=null&&e.serviceEndpoint){var g,c;(e=(c=_.x((g=this.data)==null?void 0:g.serviceEndpoint,_.uf))==null?void 0:c.url)?_.Gb(e,void 0,void 0,window.top):(g=new jKw("Did not handle suspended account tap. No appealUrl."),_.jW(g))}else g=new jKw("Did not handle suspended account tap. No serviceEndpoint."),_.jW(g)};
xY.prototype.onTap=function(){var e=this,g=_.gL(),c,k=(c=_.eU(g,{veType:7116}))!=null?c:void 0;_.$y(g,{visualElement:k});_.h3();this.saveRoleText();var I;if((I=this.data)==null?0:I.youtubeSuspended)this.onTapSuspendedChannel();else{var J=!1,q,L;(g=(L=_.x((q=this.data)==null?void 0:q.serviceEndpoint,_.W5w))==null?void 0:L.supportedTokens)&&g.forEach(function(n){if(n.accountSigninToken)if(J=!0,e.onAccountItemTap)e.onAccountItemTap(n.accountSigninToken.signinUrl);else _.Gb(n.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!J){if(q=this.get("serviceEndpoint",this.data))J=!0,this.ytComponentBehavior.resolveCommand(q);J||_.Py(new jKw("Did not handle account switch tap. No token."))}}};
xY.prototype.saveRoleText=function(){if(this.data){var e=this.data,g=e.channelDelegationRole;if(g){var c,k=(c=_.x(e==null?void 0:e.serviceEndpoint,_.W5w))==null?void 0:c.supportedTokens;if(!k){var I,J,q,L;k=(I=_.x(e==null?void 0:e.serviceEndpoint,_.k8))==null?void 0:(J=I.popup)==null?void 0:(q=J.confirmDialogRenderer)==null?void 0:(L=q.confirmButton)==null?void 0:L.buttonRenderer;var n;k=(n=_.x(k==null?void 0:k.command,_.SV))==null?void 0:n.commands;if(!k)return;var R;k=(R=_.x(k[1],_.W5w))==null?
void 0:R.supportedTokens}if(k){n=void 0;R=_.w(k);for(k=R.next();!k.done;k=R.next())if(k=k.value,k.datasyncIdToken){n=k.datasyncIdToken.datasyncIdToken;break}if(n){var W;a:{if(_.uoz()&&(R=_.x1(n+"::pom"))){R=new ex(R);break a}R=void 0}(W=R)==null||W.set("role_text",g);if((ypv?ypv:window.location).href.indexOf("studio")!==-1&&(W=duW())){R=W.src?(new URL(W.src)).origin:"*";var b;(b=W.contentWindow)==null||b.postMessage({action:"save_pom_role",datasyncId:n,roleText:g},R)}}}}}};
_.Bd.Object.defineProperties(xY.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(e=this.data)==null?void 0:(g=e.accountPhoto)==null?void 0:g.thumbnails;return c&&c.length>0&&(c[0].height===36||c[0].height===48)?c[0].height:40}}});
xY.prototype.onTap=xY.prototype.onTap;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],xY.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],xY.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!1}),_.B("design:type",Function)],xY.prototype,"onAccountItemTap",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xY.prototype,"enableRingForActiveAccount",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],xY.prototype,"thumbnailSize",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xY.prototype,"onTap",null);_.t([_.bF({is:"ytd-account-item-renderer",disableElementRegistration:!0})],xY);
_.U(xY,"ytd-account-item-renderer",function(){if(YtZ!==void 0)return YtZ;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return YtZ=e},{mode:1});var iDB;var Ds=function(){return _.z.apply(this,arguments)||this};
_.Y(Ds,_.z);Ds.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.Ss().resolve(_.xk).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ds.prototype,"data",void 0);_.t([_.bF({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Ds);
_.U(Ds,"ytd-identity-chip-renderer",function(){if(iDB!==void 0)return iDB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return iDB=e},{mode:1});var PLZ;var mIq;var p3Y;var Twq;var $Y=function(){var e=_.z.apply(this,arguments)||this;e.richItemMinWidth=_.MN("wn_grid_min_item_width",310);e.isShorts=!1;e.isWatchNext=!1;e.isExploreHub=!1;return e};
_.Y($Y,_.z);_.Bd.Object.defineProperties($Y.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var e=[],g=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Nk(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var c;if(((c=this.data)==null?0:c.rows)&&g)for(g*=this.data.rows,c=0;c<g;c++)e.push({});return e}}});
_.t([_.m(_.Wv),_.B("design:type",Object)],$Y.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$Y.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.Rq,value:3}),_.B("design:type",Number)],$Y.prototype,"itemsPerRow",void 0);_.t([_.u({selector:_.jGz,value:6}),_.B("design:type",Number)],$Y.prototype,"slimItemsPerRow",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Number)],$Y.prototype,"richItemMinWidth",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],$Y.prototype,"miniMode",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$Y.prototype,"isShorts",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$Y.prototype,"isWatchNext",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$Y.prototype,"isExploreHub",void 0);
_.t([_.p("isExploreHub"),_.u({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],$Y.prototype,"shimmerAnimation",null);_.t([_.p("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.B("design:type",Array),_.B("design:paramtypes",[])],$Y.prototype,"cardItems",null);_.t([_.bF({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],$Y);
_.lq1=_.oI()($Y,"ytd-ghost-grid-renderer",function(){if(Twq===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);Twq=e}e=Twq;return e},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.sL(_.H(function(e){var g=_.FA(e,{numberOfComments:3}).numberOfComments,c=_.FA(e,{isInitialLoad:!1}).isInitialLoad,k=_.FA(e,{engagementPanel:!1}).engagementPanel,I=function(){return Math.min(Number(g==null?void 0:g())||20,20)};
return _.a("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.a(_.E,{cond:function(){return!(k==null?0:k())&&(c==null?void 0:c())},
then:function(){return _.a("div",{class:"ytGhostCommentsComments"},_.a("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.a("div",{class:_.o6("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.a("div",{class:_.o6("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.a("div",{class:"ytGhostCommentsGhostCard"},_.a("div",{class:"ytGhostCommentsAvatar"},_.a("div",{class:"ytGhostCommentsCircle"})),_.a("div",{class:"ytGhostCommentsComments"},_.a("div",{class:"ytGhostCommentsMeta"},
_.a("div",{class:_.o6("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.a("div",{class:_.o6("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.a("div",{class:"ytGhostCommentsComments"},_.a(_.Yz,{each:function(){return Array((I==null?void 0:I())||3)}},function(){return _.a("div",{class:"ytGhostCommentsGhostCard"},_.a("div",{class:"ytGhostCommentsAvatar"},_.a("div",{class:"ytGhostCommentsCircle"})),_.a("div",{class:"ytGhostCommentsHost"},_.a("div",{class:"ytGhostCommentsMeta"},
_.a("div",{class:_.o6("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.a("div",{class:_.o6("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.a("div",{class:_.o6("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.a("div",{class:"ytGhostCommentsGhostLikeDislike"},_.a("div",{class:_.o6("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.a("div",{class:_.o6("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"tc"),"yt-ghost-comments",{props:{numberOfComments:_.jx,
isInitialLoad:_.jx,engagementPanel:_.jx},unsafeExternallySettableAttributes:new Set(["hidden"])});_.qH("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var YY=function(){var e=_.z.apply(this,arguments)||this;e.isOverridable=!1;e.spinnerActive=!1;e.showButton=!1;e.isCommentsSection=!1;e.engagementPanel=!0;e.isShortsGrid=!1;e.isShortsPage=!1;e.isWatchPage=!1;e.originalShowButton=!1;e.endOfList=!1;return e};
_.Y(YY,_.z);_.v=YY.prototype;_.v.resetIntersectionObserver=function(){var e;(e=this.observer)==null||e.disconnect();this.observer=void 0};
_.v.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var e,g;((e=this.data)==null?void 0:e.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((g=this.data)==null?0:g.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.v.initializeIntersectionObserver=function(){var e=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(g){g=_.w(g);for(var c=g.next();!c.done;c=g.next())c.value.isIntersecting&&(e.triggerContinuation(),e.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.v.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.v.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var e;((e=this.data)==null?0:e.continuationEndpoint)&&(e=_.x(this.data.continuationEndpoint,_.b6))&&this.ytdReduxBehavior.dispatch(_.Hh({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:e}}))};
_.v.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.v.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.v.onServiceRequestCompleted=function(e,g){if(!_.G("kevlar_hide_spinner_on_empty_continuation_killswitch")){var c;(c=g.actions)!=null&&c.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.v.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.v.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.v.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.v.numberOfGhostCommentsChanged=function(){var e=3;if(this.engagementPanel){var g,c,k;e=Math.floor(((((g=this.hostElement)==null?void 0:(c=g.parentElement)==null?void 0:(k=c.parentElement)==null?void 0:k.scrollHeight)||108)-108)/108);e=this.isInitialLoad?Math.max(e,3):3}g=[].concat(_.KY(this.hostElement.querySelectorAll("yt-ghost-comments")));g=_.w(g);for(c=g.next();!c.done;c=g.next())c=c.value,c.numberOfComments=e,c.isInitialLoad=this.isInitialLoad,c.engagementPanel=this.engagementPanel};
_.v.detached=function(){this.resetIntersectionObserver()};
_.Bd.Object.defineProperties(YY.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
YY.prototype.numberOfGhostCommentsChanged=YY.prototype.numberOfGhostCommentsChanged;YY.prototype.continuationTriggerOffsetChanged=YY.prototype.continuationTriggerOffsetChanged;YY.prototype.showButtonChanged=YY.prototype.showButtonChanged;YY.prototype.onYtServiceRequestCompletedForButtonRenderer=YY.prototype.onYtServiceRequestCompletedForButtonRenderer;YY.prototype.onServiceRequestCompleted=YY.prototype.onServiceRequestCompleted;YY.prototype.onYtServiceRequestSentForButtonRenderer=YY.prototype.onYtServiceRequestSentForButtonRenderer;
YY.prototype.observeData=YY.prototype.observeData;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],YY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.xC.YtVisibilityBehavior),_.B("design:type",Object)],YY.prototype,"ytVisibilityBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],YY.prototype,"ytComponentBehavior",void 0);
_.t([_.m(_.Wv),_.B("design:type",Object)],YY.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],YY.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],YY.prototype,"isOverridable",void 0);_.t([_.u(),_.B("design:type",Object)],YY.prototype,"spinnerActive",void 0);_.t([_.u(),_.B("design:type",Object)],YY.prototype,"showButton",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],YY.prototype,"isCommentsSection",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],YY.prototype,"engagementPanel",void 0);_.t([_.u(),_.B("design:type",Object)],YY.prototype,"isShortsGrid",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.pvU}),_.B("design:type",Object)],YY.prototype,"isShortsPage",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.mTA}),_.B("design:type",Object)],YY.prototype,"isWatchPage",void 0);_.t([_.u(),_.B("design:type",Number)],YY.prototype,"continuationTriggerOffset",void 0);
_.t([_.u(),_.B("design:type",Object)],YY.prototype,"endOfList",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],YY.prototype,"isInitialLoad",void 0);_.t([_.Cs("ytd-button-renderer"),_.B("design:type",_.uZ)],YY.prototype,"buttonRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],YY.prototype,"buttonOverrides",void 0);
_.t([_.u(),_.p("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.B("design:type",Object),_.B("design:paramtypes",[])],YY.prototype,"showGhostCardComments",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YY.prototype,"observeData",null);
_.t([_.Ks("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YY.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],YY.prototype,"onServiceRequestCompleted",null);
_.t([_.Ks("yt-service-request-completed-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YY.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.t([_.k_("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YY.prototype,"showButtonChanged",null);
_.t([_.k_("continuationTriggerOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YY.prototype,"continuationTriggerOffsetChanged",null);_.t([_.OY("isInitialLoad","engagementPanel"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YY.prototype,"numberOfGhostCommentsChanged",null);_.t([_.bF({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],YY);
_.U(YY,"ytd-continuation-item-renderer",function(){if(p3Y!==void 0)return p3Y;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return p3Y=e},{mode:1});var AYs;var f$=function(){var e=_.z.apply(this,arguments)||this;e.downloadProgress=0;e.transferState="TRANSFER_STATE_UNKNOWN";e.downloadState="DOWNLOAD_STATE_UNKNOWN";e.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";e.offlineVideoPolicyExpirationTimestamp=0;e.downloadedVideoPlaybackPosition=0;return e};
_.Y(f$,_.z);f$.prototype.dataChanged=function(){var e;this.videoData=_.x((e=this.data)==null?void 0:e.renderer,Bm4);this.transferStateChanged()};
f$.prototype.downloadProgressChanged=function(){if(this.entityInfo){var e=Object.assign({},this.videoData),g=IfK(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),c=g.publishedTimeText,k=g.badges;e.shortViewCountText=g.shortViewCountText;e.publishedTimeText=c;e.badges=k;this.set("videoData",e)}};
f$.prototype.transferStateChanged=function(){if(this.entityInfo){var e=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",g=_.cL(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!gq(this.entityInfo.policyEntity),c=Object.assign({},this.videoData),k=IfK(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),I=k.publishedTimeText,J=k.badges;c.shortViewCountText=
k.shortViewCountText;c.publishedTimeText=I;c.badges=J;c.isDisabled=g;c.isWatched=this.downloadedVideoPlaybackPosition>0;c.navigationEndpoint=g?void 0:T4p(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var q;e&&((q=this.videoData)==null?0:q.videoId)&&!_.G("dl_resume_click_killswitch")&&(c.isDisabled=!1,c.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});c.thumbnailOverlays=c8e(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",c)}};
f$.prototype.transferStateChanged=f$.prototype.transferStateChanged;f$.prototype.downloadProgressChanged=f$.prototype.downloadProgressChanged;f$.prototype.dataChanged=f$.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],f$.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],f$.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],f$.prototype,"videoData",void 0);_.t([_.u({selector:Gt,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],f$.prototype,"downloadProgress",void 0);_.t([_.u(),_.B("design:type",Number)],f$.prototype,"relativeDateReference",void 0);_.t([_.u({selector:_.hw,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],f$.prototype,"transferState",void 0);
_.t([_.u({selector:K5K,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],f$.prototype,"downloadState",void 0);_.t([_.u({selector:F5q,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],f$.prototype,"offlinePolicyAction",void 0);_.t([_.u({selector:ukg,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],f$.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.t([_.u({selector:xd,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],f$.prototype,"downloadedVideoPlaybackPosition",void 0);_.t([_.u({selector:zbV,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],f$.prototype,"entityInfo",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],f$.prototype,"isDownloading",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],f$.prototype,"dataChanged",null);
_.t([_.k_("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],f$.prototype,"downloadProgressChanged",null);_.t([_.k_("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],f$.prototype,"transferStateChanged",null);
_.t([_.bF({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],f$);
_.U(f$,"ytd-downloaded-video-grid-video-renderer",function(){if(AYs!==void 0)return AYs;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return AYs=e},{mode:2});var sKk;var jd=function(){};
jd.prototype.resolve=function(e,g){var c=this;return _.r(function(k){return k.yield(c.resolveCommand(e,g),0)})};var F$s,iX;F$s=QOW(function(e){return e.targetId},{shouldPersist:!1});
iX=F$s.updateData;_.P1=F$s.useUpdatableData;var uPZ,dIs;uPZ=QOW(function(e){return e.targetId});
dIs=uPZ.updateData;_.zn1=uPZ.useUpdatableData;var HDM=ZpC.bind(null,iX),QKs=ZpC.bind(null,dIs);(function(e,g,c){var k=_.x(c==null?void 0:c.updatedRenderer,_.Dwu);return k?e({targetId:g},function(){return k}):!1}).bind(null,iX);var mH=function(){};
_.Y(mH,jd);mH.prototype.resolveCommand=function(e){var g;return _.r(function(c){g=_.x(e,M3W);if(!g)return c.return();HDM(g.targetId,g);_.Uh(c)})};var p$=function(){var e=_.gk.apply(this,arguments)||this;e.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-restore-cached-continuable-data-command":"handleRestoreCachedContinuableDataCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return e};
_.Y(p$,_.gk);_.v=p$.prototype;_.v.configureContinuationPathMap=function(){return{}};
_.v.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.v.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.v.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.v.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.v.handleAppendContinuationItemsAction=function(e){var g=_.x(e,_.ajY);if(this.data&&this.data.targetId&&g&&this.continuationPathMap&&g.targetId===this.data.targetId){var c=uJV(e),k=c&&this.continuationPathMap[c];if(k&&c)if(e=this.get(k,this.data)){a:{for(c=0;c<e.length;c++){var I=e[c],J=void 0,q=!!_.x((J=_.x(I,Cb1))==null?void 0:J.content,_.o3q);if(_.x(I,_.zM)||q)break a}c=e.length}k="data."+k;g.continuationItems?c===e.length-1?(this.pop(k),this.push.apply(this,[k].concat(_.KY(g.continuationItems)))):
c===e.length?this.push.apply(this,[k].concat(_.KY(g.continuationItems))):this.splice.apply(this,[k,c,1].concat(_.KY(g.continuationItems))):this.splice(k,c,1);(_.G("web_enable_voting_animation")||_.G("enable_music_web_cairo_voting_animation"))&&_.oC(this.hostElement,"yt-append-continuation-items-action-finished");_.oC(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.mN(new _.E2("append continuation items does not exist",c));else _.mN(new _.E2("append continuation path does not exist",
c))}};
_.v.handleReloadContinuationItemsCommand=function(e){var g=_.x(e,M3W);if(this.data&&g){if(!_.G("web_reload_continuation_items_command_resolver_killswitch")){var c=_.Ss().resolve(_.NN(mH));c&&c.resolveCommand(e)}if(this.data.targetId&&this.continuationPathMap&&g.targetId===this.data.targetId&&(!_.G("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||g.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var k;c=(k=g.slot)==null?void 0:k.replace("RELOAD_CONTINUATION_SLOT_",
"");k=(e=uJV(e)+"-"+(c==null?void 0:c.toLowerCase()))&&this.continuationPathMap[e];if(!k||!e||!c)_.mN(new _.E2("reload continuation path does not exist",e));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(g)){if(g.replaceWithFirstItem){var I;this.set("data."+k,((I=g.continuationItems)==null?0:I.length)?g.continuationItems[0]:{})}else this.set("data."+k,g.continuationItems?g.continuationItems:[]);UIw(this)}}}};
_.v.handleRestoreCachedContinuableDataCommand=function(e){e=_.x(e,fjM);var g;(g=this.data)!=null&&g.targetId&&(e==null?void 0:e.targetId)===this.data.targetId&&UIw(this)};
var UIw=function(e){e.continuationIsReloading=!1;e.reloadUiContent=void 0;_.oC(e.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})};
p$.prototype.handleShowReloadUiCommand=function(e){e=_.x(e,Pbu);var g;((g=this.data)==null?0:g.targetId)&&(e==null?0:e.targetId)&&e.targetId===this.data.targetId&&(this.continuationIsReloading=!0,e.content&&(this.reloadUiContent=e.content))};
p$.prototype.observeData=p$.prototype.observeData;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],p$.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],p$.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],p$.prototype,"data",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],p$.prototype,"continuationIsReloading",void 0);
_.t([_.u(),_.B("design:type",Object)],p$.prototype,"reloadUiContent",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p$.prototype,"observeData",null);_.t([_.co()],p$);_.Tk=[_.hF.YtComponentBehavior,_.Nr.YtActionHandlerBehavior,p$.prototype];_.lX={};_.lX.YtNextContinuationBehavior=[_.TG.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",_.yg(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.yg(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(e,g){e.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,g,{}):(e={locationRetrieved:function(c){this.makeNextContinuationRequest_(c,g,{})}.bind(this)},_.oC(this.hostElement,"yt-retrieve-location",e))},
makeNextContinuationRequest_:function(e,g,c){_.bB("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();e=g(e);var k;this.canUseContextualNetworkManager_()&&(k=this.getNetworkManager());k||(k=_.Ss().resolve(_.cg));g=_.Yy.instance;if(_.uo("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&g){k=_.lm([e.startsWith("/")?e.substr(1):e]);var I,J;c=_.Yq(g,{},k,c==null?void 0:(I=c.context)==null?void 0:(J=I.clickTracking)==null?void 0:J.clickTrackingParams).then(function(q){return{response:q}})}else c=
this.nextContinuation.usePost?k.postData(e,c):k.fetchData(e);
c.then(this.updateNextContinuationData_.bind(this,e));this.pendingContinuationRequest_=c;this.startListeningForNavigate_()},
updateNextContinuationData_:function(e,g){var c=this;_.bB("ncl");this.pendingContinuationRequest_=void 0;if(g){var k={};this.nextContinuation&&(k=this.nextContinuation);if(g.response&&g.response.continuationContents&&g.response.continuationContents[k.continuationType]){e=g.response.continuationContents[k.continuationType];var I=k.header||"data.header",J=e[k.responseHeaderKey||"header"];J&&this.set(I,J);I=k.contentsArray||"data.contents";J=this.getContents_(e,k.responseContentsKey||"contents")||[];
this.pathExists_(I)?(J.unshift(I),this.push.apply(this,J)):this.set(I,J);J&&(VTA(_.gL(),g.response,this.hostElement,function(q){_.Z5(c.hostElement,"yt-store-grafted-ve-action",[q])}),_.oC(this.hostElement,"yt-next-continuation-data-updated",{continuationData:g,
page:this,contentsArray:I}));this.set(k.continuationsArray||"data.continuations",e[k.responseContinuationsKey||"continuations"]||[])}else g.reload?_.mN(new _.E2("Reloading from continuation is unsupported")):g.responseContext&&g.responseContext.errors||(delete g.xsrf_token,delete g.timing,delete g.endpoint,delete g.csn,g.responseContext&&delete g.responseContext.serviceTrackingParams,I={request:_.t_(e,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(g).sort()},g.response&&(I.responseContentKeys=
Object.keys(g.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(I.continuationType=this.nextContinuation.continuationType.substr(0,256)),g=new _.E2("Malformed continuation",I),e.indexOf("/comment_service_ajax")==0?_.mN(g):_.jW(g)),this.set(k.continuationsArray||"data.continuations",[])}else _.Py(new _.E2("Missing continuation response",e))},
getContents_:function(e,g){g=g.split(".");return _.n0.getValueByKeys(e,g)},
pathExists_:function(e){var g=this;e=e.toString().split(".");for(var c=0;c<e.length;c++)if(g=g[e[c]],g===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var ois;var ZDY;var Ai=function(){var e=_.z.apply(this,arguments)||this;e.triggered_=!1;return e};
_.Y(Ai,_.z);_.v=Ai.prototype;_.v.attached=function(){this.maybeTriggerAutoload()};
_.v.detached=function(){this.hasBeenTriggered_=!1};
_.v.onPrescanVisible=function(){this.onShow()};
_.v.onShow=function(){this.showButton||this.trigger()};
_.v.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.oC(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.v.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.v.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.v.computeLabel_=function(e,g){return e===void 0?null:e.label||!g?e.label:this.showMoreText_};
_.v.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.v.getContinuationUrl=function(e){var g={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(g.itct=this.data.clickTrackingParams);return _.MO(e,g)};
_.v.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Ai.prototype.showButtonChanged_=Ai.prototype.showButtonChanged_;Ai.prototype.observeData_=Ai.prototype.observeData_;_.t([_.m(_.xC.YtVisibilityBehavior),_.B("design:type",Object)],Ai.prototype,"ytVisibilityBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ai.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],Ai.prototype,"showButton",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],Ai.prototype,"showIcon",void 0);_.t([_.u({computed:"computeLabel_(data, showButton)"}),_.B("design:type",Object)],Ai.prototype,"label",void 0);_.t([_.u({value:_.PL(_.C_("SHOW_MORE",void 0,"Show More"))}),_.B("design:type",Object)],Ai.prototype,"showMoreText_",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],Ai.prototype,"spinnerActive_",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],Ai.prototype,"hasBeenTriggered_",void 0);
_.t([_.u({value:void 0}),_.B("design:type",String)],Ai.prototype,"observeVisibleOption",void 0);_.t([_.u({value:void 0}),_.B("design:type",String)],Ai.prototype,"observeHiddenOption",void 0);_.t([_.u({value:"observe_once"}),_.B("design:type",Object)],Ai.prototype,"observePrescanOption",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ai.prototype,"observeData_",null);
_.t([_.OY("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ai.prototype,"showButtonChanged_",null);_.t([_.Wo({is:"yt-next-continuation",disableElementRegistration:!0})],Ai);
_.U(Ai,"yt-next-continuation",function(){if(ZDY===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;ois===void 0&&(ois=document.createElement("template"));var k=ois;c.call(g,k.content.cloneNode(!0),e.content.firstChild);ZDY=e}e=ZDY;return e},{mode:2});var VHs;var tHM;var sN=function(){return _.z.apply(this,arguments)||this};
_.Y(sN,_.z);sN.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],sN.prototype,"data",void 0);_.t([_.Wo({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],sN);
_.U(sN,"yt-music-pass-small-feature-info-renderer",function(){if(tHM===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;VHs===void 0&&(VHs=document.createElement("template"));var k=VHs;c.call(g,k.content.cloneNode(!0),e.content.firstChild);tHM=e}e=tHM;return e},{mode:2});_.qH("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Fr=function(){var e=_.z.apply(this,arguments)||this;e.isCollapsible=!1;e.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return e};
_.Y(Fr,_.z);_.v=Fr.prototype;_.v.computeIsCollapsible=function(e){return!!(((e==null?0:e.showMoreText)||(e==null?0:e.visibleRowCount))&&(e==null?0:e.isCollapsible))};
_.v.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.v.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.v.onIronResize=function(){var e=this;_.fO(this,"updateGridInitItems",function(){e.maybeUpdateInitialItemsDisplayed()})};
_.v.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var e=this.getVisibleWidth();e!==0&&(e=Math.floor(e/214)*(this.data.visibleRowCount||2),e!==this.initialCount&&(this.initialCount=e,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.v.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.v.computeExpandVisible=function(e,g,c,k){return e&&g&&c&&!!k&&!!k.showMoreText};
_.v.computeShowMoreButton=function(e){return{text:e,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.v.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.v.initCollapsed=function(){var e=this;this.ytLazyListBehavior.canShowMore=!1;var g;(this.collapsed=!((g=this.data)==null||!g.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Va(this,function(){_.V1(e.hostElement,"yt-refit-popups-action")})};
_.v.fillRestIfNotCollapsible=function(){var e=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!e||this.ytLazyListBehavior.fillRemainingListItems()};
_.v.computeViewAllHidden=function(e,g){return e||!g.viewAllEndpoint};
Fr.prototype.fillRestIfNotCollapsible=Fr.prototype.fillRestIfNotCollapsible;Fr.prototype.initCollapsed=Fr.prototype.initCollapsed;Fr.prototype.onIronResize=Fr.prototype.onIronResize;Fr.prototype.persistentGuideChanged=Fr.prototype.persistentGuideChanged;_.t([_.m(_.Jc),_.B("design:type",Object)],Fr.prototype,"ironResizableBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.uU.YtLazyListBehavior),_.B("design:type",Object)],Fr.prototype,"ytLazyListBehavior",void 0);_.t([_.m(_.lX.YtNextContinuationBehavior),_.B("design:type",Object)],Fr.prototype,"ytNextContinuationBehavior",void 0);_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Fr.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.m(_.Tk),_.B("design:type",Object)],Fr.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Fr.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],Fr.prototype,"collapsed",void 0);_.t([_.u(),_.B("design:type",Number)],Fr.prototype,"initialCount",void 0);_.t([_.u({computed:"computeShowMoreButton(data.showMoreText)"}),_.B("design:type",Object)],Fr.prototype,"showMoreButton",void 0);
_.t([_.u({computed:"computeIsCollapsible(data)"}),_.B("design:type",Object)],Fr.prototype,"isCollapsible",void 0);_.t([_.Cs("#items"),_.B("design:type",HTMLElement)],Fr.prototype,"items",void 0);_.t([_.k_("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fr.prototype,"persistentGuideChanged",null);_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fr.prototype,"onIronResize",null);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fr.prototype,"initCollapsed",null);_.t([_.k_("canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fr.prototype,"fillRestIfNotCollapsible",null);_.t([_.bF({is:"ytd-grid-renderer",disableElementRegistration:!0})],Fr);
_.U(Fr,"ytd-grid-renderer",function(){if(sKk!==void 0)return sKk;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return sKk=e},{mode:2});var uX=function(){return _.z.apply(this,arguments)||this};
_.Y(uX,_.z);
uX.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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],uX.prototype,"data",void 0);_.t([_.bF({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],uX);
_.U(uX,"ytd-carousel-ad-renderer",function(){if(mIq!==void 0)return mIq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return mIq=e},{mode:1});var Bwn;var dR=function(){return _.z.apply(this,arguments)||this};
_.Y(dR,_.z);_.v=dR.prototype;_.v.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,dR.JSC$15837_CLICK_LOCATION_ID_MAP))};
_.v.onSitelinkTap=function(e){e.stopPropagation();var g,c,k=e==null?void 0:(g=e.model)==null?void 0:(c=g.item)==null?void 0:c.onTap;k&&this.ytSparklesClickLocationBehavior.handleClick(k,e,!1)};
_.v.onTap=function(e){var g=this.data&&this.data.content&&this.data.content.navigationEndpoint;g&&this.ytSparklesClickLocationBehavior.handleClick(g,e,!1)};
_.v.sendImpression=function(){if(this.data&&this.data.content)for(var e=_.w(this.data.content.impressionEndpoints||[]),g=e.next();!g.done;g=e.next()){g=_.w(g.value.loggingUrls||[]);for(var c=g.next();!c.done;c=g.next())c=c.value,c.baseUrl&&dK(c.baseUrl,c.attributionSrcMode)}};
dR.prototype.onTap=dR.prototype.onTap;dR.prototype.dataChanged=dR.prototype.dataChanged;dR.JSC$15837_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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fk.YtSparklesClickLocationBehavior),_.B("design:type",Object)],dR.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],dR.prototype,"data",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dR.prototype,"dataChanged",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],dR.prototype,"onTap",null);_.t([_.bF({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],dR);
_.U(dR,"ytd-promoted-sparkles-text-search-renderer",function(){if(Bwn!==void 0)return Bwn;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Bwn=e},{mode:1});var Nw4;var zk=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-mute-ad-action":"handleMuteAd"};return e};
_.Y(zk,_.z);_.v=zk.prototype;_.v.created=function(){this.activeView=new Uc(this.hostElement)};
_.v.configureRendererStamper=function(){return{"data.menu":{id:_.G("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.v.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.v.computeHasAdBadge=function(e){return!(e==null||!e.adBadge)};
_.v.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",zk.JSC$15846_DEFAULT_AD_BADGE_RENDERER),_.Vg(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&oG(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,zk.JSC$15846_CLICK_LOCATION_ID_MAP))};
_.v.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var e;(((e=this.data)==null?void 0:e.impressionCommands)||[]).forEach(function(g){g=_.w(g.loggingUrls||[]);for(var c=g.next();!c.done;c=g.next())c=c.value,c.baseUrl&&dK(c.baseUrl,c.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.v.onTap=function(e){var g,c=(g=this.data)==null?void 0:g.navigationEndpoint,k;(g=(k=this.data)==null?void 0:k.thumbnailNavigationEndpoint)&&_.l6(_.lg(e),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(g,e,!1):c&&this.ytSparklesClickLocationBehavior.handleClick(c,e,!1)};
_.v.handleMuteAd=function(){this.collapsed=!0};
_.v.attached=function(){var e=this;_.G("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZG(e.activeView)})};
_.v.detached=function(){_.G("stop_av_measurement_on_detach")&&ZG(this.activeView)};
_.Bd.Object.defineProperties(zk.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var e;return!(((e=this.data)==null?void 0:e.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var e;return!(((e=this.data)==null?void 0:e.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.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}}});
zk.prototype.dataChanged=zk.prototype.dataChanged;
zk.JSC$15846_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"]]);
zk.JSC$15846_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.C_("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],zk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],zk.prototype,"actionHandlerBehavior",void 0);
_.t([_.m(_.Fk.YtSparklesClickLocationBehavior),_.B("design:type",Object)],zk.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],zk.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],zk.prototype,"collapsed",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],zk.prototype,"useBiggerThumbs",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.C4("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],zk.prototype,"biggerThumbsStyle",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.B("design:type",Boolean)],zk.prototype,"fixAlignmentSmallScreens",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_desktop_search_bigger_thumbs_square")}}),
_.B("design:type",Boolean)],zk.prototype,"useBiggerThumbsSquare",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.mediaHoverOverlay"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zk.prototype,"hideHoverOverlay",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zk.prototype,"webSearchLayout",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zk.prototype,"webSearchLayoutLandscape",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zk.prototype,"webSearchLayoutSquare",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zk.prototype,"sparklesCtaNoBackground",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.actionButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zk.prototype,"hideActionButton",null);_.t([_.u({computed:"computeButtonOverride(uiUpdate)"}),_.B("design:type",Object)],zk.prototype,"buttonOverride",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.B("design:type",Boolean)],zk.prototype,"hasNewAdBadge",void 0);_.t([_.p("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zk.prototype,"useRoundedBadge",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zk.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],zk);
_.U(zk,"ytd-promoted-sparkles-web-renderer",function(){if(Nw4!==void 0)return Nw4;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Nw4=e},{mode:1});var StY;var H1=function(){var e=_.z.apply(this,arguments)||this;e.isInlinePreviewTriggered=!1;e.enableMonoStyle=_.G("enable_default_mono_cta_migration_web_client");return e};
_.Y(H1,_.z);_.v=H1.prototype;_.v.created=function(){this.activeView=new Uc(this.hostElement)};
_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.v.computeShowCta=function(e){return!(e==null||!e.ctaRenderer)};
_.v.onCtaClick=function(){var e,g,c,k=(e=this.data)==null?void 0:(g=e.ctaRenderer)==null?void 0:(c=g.buttonRenderer)==null?void 0:c.command;k&&this.ytComponentBehavior.resolveCommand(k)};
_.v.onWatchButtonClick=function(){var e,g,c,k=(e=this.data)==null?void 0:(g=e.watchButtonRenderer)==null?void 0:(c=g.buttonRenderer)==null?void 0:c.command;k&&this.ytComponentBehavior.resolveCommand(k)};
_.v.onTap=function(){};
_.v.dataChanged=function(){if(this.data){var e;_.G("enable_inline_muted_playback_on_web_search")&&((e=this.data)==null?0:e.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",H1.JSC$15850_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&oG(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",H1.JSC$15850_DEFAULT_CLICK_LOCATION_BEHAVIOR,H1.JSC$15850_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(e=this.thumbnail.getElementsByTagName("a"),e.length>0&&(e=e.namedItem("thumbnail"))&&e.removeAttribute("href"));var g;if(((g=this.data)==null?0:g.forceImpAutoplay)&&_.G("enable_force_imp_autoplay_on_desktop_search")){var c;(c=this.JSC$15851_inlinePreviewHoverListener)==null||z0U(c)}}};
_.v.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var e=_.w(this.data.impressionUrls),g=e.next();!g.done;g=e.next())g=g.value,x2C(g,$2q(g));this.data.impressionsFired=!0}};
_.v.maybeComputeHref=function(){return null};
_.v.computeIsShortDR=function(e){return!(e==null||!e.watchButtonRenderer)&&!(e==null||!e.ctaRenderer)&&!!this.enableShortDR};
_.v.computeIsNewUiOrShortDr=function(e){return!!this.enableUiUpdate||this.computeIsShortDR(e)};
_.v.computeIsNewUiAndNotShortDr=function(e){return!!this.enableUiUpdate&&!this.computeIsShortDR(e)};
_.v.computeHideAvatar=function(e){return!((e==null?0:e.channelThumbnail)&&this.computeIsNewUiOrShortDr(e))};
_.v.onClick=function(e){var g,c=(g=this.data)==null?void 0:g.navigationEndpoint;if(this.enableShortDR&&c&&(_.x(c,_.Pm)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(c,e,!!_.x(c,_.Pm)),e.stopPropagation();else if(c&&_.x(c,_.Pm))this.ytSparklesClickLocationBehavior.handleClick(c,e,!0),e.stopPropagation();else if(c){var k,I;((k=this.data)==null?0:k.navigationEndpoint)&&((I=this.data)==null?0:I.adPlaybackContextParams)&&(g=this.data.navigationEndpoint,e=this.data.adPlaybackContextParams,
g.commandMetadata&&_.x(g.commandMetadata,_.OM)&&_.x(g.commandMetadata,_.OM).url&&(g=_.V0(_.x(g.commandMetadata,_.OM).url).adurl)&&_.jtU(g)&&_.Ar(_.Bc(g),{encoded_ad_playback_context:e}));this.ytComponentBehavior.resolveCommand(c)}};
_.v.computeButtonOverride=function(e){if(this.computeIsNewUiOrShortDr(e))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.v.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.v.onThumbnailContainerClick=function(e){this.onClick(e)};
_.v.computeThumbnailWidth=function(e,g){return e?g==="MASSIVE"?600:g==="BIG"?500:g==="MEDIUM"?450:420:360};
_.v.attached=function(){var e=this,g;_.G("enable_inline_muted_playback_on_web_search")&&((g=this.data)==null?0:g.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.G("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZG(e.activeView)})};
_.v.detached=function(){var e;_.G("enable_inline_muted_playback_on_web_search")&&((e=this.data)==null?0:e.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.G("stop_av_measurement_on_detach")&&ZG(this.activeView)};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15851_inlinePreviewHoverListener=hC({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:qtq})};
_.v.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$15851_inlinePreviewHoverListener)==null||dS(e)};
H1.prototype.dataChanged=H1.prototype.dataChanged;H1.prototype.onTap=H1.prototype.onTap;H1.JSC$15850_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.C_("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};H1.JSC$15850_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
H1.JSC$15850_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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],H1.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fk.YtSparklesClickLocationBehavior),_.B("design:type",Object)],H1.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.Cs("#main-container"),_.B("design:type",HTMLElement)],H1.prototype,"mainContainer",void 0);
_.t([_.u(),_.B("design:type",Object)],H1.prototype,"isInlinePreviewTriggered",void 0);_.t([_.u(),_.B("design:type",Object)],H1.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],H1.prototype,"useBiggerThumbs",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_video_display_compact_button_group_for_desktop_search")}}),
_.B("design:type",Boolean)],H1.prototype,"enableShortDR",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_vac_ui_update_for_desktop_search")}}),
_.B("design:type",Boolean)],H1.prototype,"enableUiUpdate",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.C4("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],H1.prototype,"biggerThumbsStyle",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.B("design:type",Boolean)],H1.prototype,"showCta",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.B("design:type",Boolean)],H1.prototype,"isShortDr",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.B("design:type",Boolean)],H1.prototype,"isShortDrOrNewUi",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.B("design:type",Boolean)],H1.prototype,"isNewUiAndNotShortDr",void 0);_.t([_.u({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],H1.prototype,"buttonOverride",void 0);_.t([_.u({computed:"computeSecondaryButtonOverride(data)"}),_.B("design:type",Object)],H1.prototype,"secondaryButtonOverride",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],H1.prototype,"enableMonoStyle",void 0);
_.t([_.Cs("ytd-thumbnail"),_.B("design:type",HTMLElement)],H1.prototype,"thumbnail",void 0);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],H1.prototype,"onTap",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],H1.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],H1);
_.U(H1,"ytd-promoted-video-renderer",function(){if(StY!==void 0)return StY;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return StY=e},{mode:1});var yYw;var QI=function(){var e=_.z.apply(this,arguments)||this;e.useRoundedBadge=!0;e.sitelinkIds=[];return e};
_.Y(QI,_.z);_.v=QI.prototype;
_.v.configureRendererStamper=function(){return{"data.menu":{id:_.G("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.v.dataChanged=function(){var e;(e=this.data)!=null&&e.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,QI.JSC$15856_CLICK_LOCATION_ID_MAP)};
_.v.onTap=function(e){var g,c=(g=this.data)==null?void 0:g.navigationCommand;c&&!_.l6(_.lg(e),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(c,e,!1)};
_.v.onSitelinkTap=function(e){var g,c,k=e==null?void 0:(g=e.model)==null?void 0:(c=g.item)==null?void 0:c.onTap;k&&this.ytSparklesClickLocationBehavior.handleClick(k,e,!1)};
_.v.configureSitelinkClickTargets=function(){var e=this,g,c,k=(g=this.data)==null?void 0:(c=g.clickLocationTargets)==null?void 0:c.find(function(I){return I.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
k&&_.o1(this.hostElement).querySelectorAll(".sitelink").forEach(function(I){_.Vg(I,"yt-simple-endpoint",!0);e.sitelinkIds.push(I.id);var J,q;(J=e.ytSparklesClickLocationBehavior)==null||(q=J.clickTargetMap)==null||q.set(I.id,k)})};
_.v.sendImpression=function(){var e,g,c=((e=this.data)==null?void 0:(g=e.impressionCommand)==null?void 0:g.loggingUrls)||[];e=_.w(c);for(g=e.next();!g.done;g=e.next())g=g.value,g.baseUrl&&dK(g.baseUrl,g.attributionSrcMode)};
_.v.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Bd.Object.defineProperties(QI.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
QI.prototype.onTap=QI.prototype.onTap;QI.prototype.dataChanged=QI.prototype.dataChanged;QI.JSC$15856_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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],QI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fk.YtSparklesClickLocationBehavior),_.B("design:type",Object)],QI.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],QI.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QI.prototype,"showFavicon",null);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],QI.prototype,"useBiggerThumbs",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.C4("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],QI.prototype,"biggerThumbsStyle",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.B("design:type",Boolean)],QI.prototype,"enableThumbnailScalingFix",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QI.prototype,"dataChanged",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],QI.prototype,"onTap",null);_.t([_.bF({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],QI);
_.U(QI,"ytd-text-image-no-button-layout-renderer",function(){if(yYw!==void 0)return yYw;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return yYw=e},{mode:2});var K$4;var UN=function(){var e=_.z.apply(this,arguments)||this;e.isInlinePlaybackState=!1;e.uiUpdate=_.G("web_modern_buttons");e.hideCta=_.G("hide_cta_for_home_web_video_ads");e.noBottomMargin=!1;e.animateInTimeStamp=_.MN("hide_cta_for_home_web_video_ads_animate_in_time");e.animateInCta=!1;e.isHovered=!1;e.enableMonoStyle=_.G("enable_default_mono_cta_migration_web_client");e.player=null;e.JSC$15863_playerEvents=new Map;e.JSC$15863_preventProgressSaveTimer=null;e.delayedCtaJobId=null;return e};
_.Y(UN,_.z);_.v=UN.prototype;_.v.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.v.attached=function(){this.JSC$15863_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15863_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.G("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.v.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15863_playerEvents)};
_.v.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",UN.JSC$15862_DEFAULT_CLICK_LOCATION_BEHAVIOR,UN.JSC$15862_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.v.hoverChanged=function(){var e=this;this.delayedCtaJobId&&(_.ft.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.G("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.JC(_.ft,function(){e.buttonContainer.classList.add("show-delayed-buttons")},_.MN("delayed_cta_on_web_delay_milliseconds")))};
_.v.setPlayer=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return(g=_.V1(e.hostElement,"yt-get-inline-preview-player-action"))&&g[0]?c.yield(g[0].getPlayerPromise(),3):c.jumpTo(0);e.player=c.yieldResult;e.ytPlayerListenerBehavior.listenToPlayerEvents(e.player,e.JSC$15863_playerEvents);_.Uh(c)})};
_.v.onPlaybackStart=function(){var e=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15863_preventProgressSaveTimer=_.HT(_.ft,function(){e.JSC$15863_preventProgressSaveTimer=null},1E4))};
_.v.onVideoProgress=function(e){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&e>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.v.resetPreventProgressSaveTimer=function(){_.ft.cancelJob(this.JSC$15863_preventProgressSaveTimer);this.JSC$15863_preventProgressSaveTimer=null};
_.v.getSimpleString=function(e){return _.mp(e)};
_.v.onClick=function(e){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var g,c=(g=this.data)==null?void 0:g.navigationEndpoint,k;g=(k=this.data)==null?void 0:k.channelEndpoint;var I,J;((J=_.x((I=this.data)==null?void 0:I.adCtaButton,_.G_))==null?0:J.command)&&_.l6(_.lg(e),this.hostElement,["call-to-action"])||(g&&_.l6(_.lg(e),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(g,e,!1):!_.l6(_.lg(e),this.hostElement,
["secondary-button"])&&c&&(_.G("enable_short_dr_for_desktop_launchable")?(k=!!_.x(c,_.Pm),this.isInlinePlaybackState&&k&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(c,e,k)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(c,e,!0))))}};
_.v.updateWatchEndpointStartTime=function(){var e,g;this.player&&((e=this.data)==null?0:e.inlinePlaybackEndpoint)&&((g=this.data)==null?0:g.navigationEndpoint)&&!this.JSC$15863_preventProgressSaveTimer&&(e=Math.floor(this.player.getCurrentTime()),_.x(this.data.navigationEndpoint,_.Pm).startTimeSeconds=e,_.x(this.data.inlinePlaybackEndpoint,_.Pm).startTimeSeconds=e)};
_.v.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.v.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.Bd.Object.defineProperties(UN.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.G("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var e,g;return!((e=this.data)==null||!e.watchButton)&&!((g=this.data)==null||!g.adCtaButton)}}});
UN.prototype.hoverChanged=UN.prototype.hoverChanged;UN.prototype.dataChanged=UN.prototype.dataChanged;
UN.JSC$15862_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"]]);
UN.JSC$15862_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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],UN.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Fk.YtSparklesClickLocationBehavior),_.B("design:type",Object)],UN.prototype,"ytSparklesClickLocationBehavior",void 0);
_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],UN.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],UN.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],UN.prototype,"isInlinePlaybackState",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],UN.prototype,"miniMode",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],UN.prototype,"uiUpdate",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],UN.prototype,"hideCta",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],UN.prototype,"noBottomMargin",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],UN.prototype,"animateInCta",void 0);_.t([_.u({computed:"computeButtonOverride(uiUpdate)"}),_.B("design:type",Object)],UN.prototype,"buttonOverride",void 0);
_.t([_.u({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.B("design:type",Object)],UN.prototype,"secondaryButtonOverride",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],UN.prototype,"isHovered",void 0);_.t([_.Cs("#button-container"),_.B("design:type",HTMLElement)],UN.prototype,"buttonContainer",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],UN.prototype,"typographyBump",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("typographyBump"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],UN.prototype,"typographyBumpV2",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],UN.prototype,"enableMonoStyle",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UN.prototype,"dataChanged",null);
_.t([_.OY("isHovered"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UN.prototype,"hoverChanged",null);_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],UN.prototype,"isButtonGroup",null);_.t([_.bF({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],UN);
_.U(UN,"ytd-ad-inline-playback-meta-block",function(){if(K$4!==void 0)return K$4;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return K$4=e},{mode:2});var ODs;var of=function(){var e=_.z.apply(this,arguments)||this;e.noBottomMargin=!1;e.isInlinePreviewTriggered=!1;e.JSC$15868_activeViewMeasurementDataResolver=_.i6();return e};
_.Y(of,_.z);_.v=of.prototype;_.v.created=function(){this.activeView=new Uc(this.hostElement)};
_.v.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.attached=function(){var e=this;this.updateInlinePreviewHoverListeners();this.JSC$15868_activeViewMeasurementDataResolver.promise.then(function(g){oG(e.activeView,g)});
_.G("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZG(e.activeView)})};
_.v.detached=function(){this.clearInlinePreviewHoverListeners();_.G("stop_av_measurement_on_detach")&&ZG(this.activeView)};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15868_inlinePreviewHoverListener=hC({mediaRenderer:this,lockupElement:this.JSC$15868_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:qtq})};
_.v.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$15868_inlinePreviewHoverListener)==null||dS(e)};
_.v.onDataChanged=function(){var e;((e=this.data)==null?0:e.activeView)&&this.JSC$15868_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",of.JSC$15867_DEFAULT_CLICK_LOCATION_BEHAVIOR,of.JSC$15867_CLICK_LOCATION_ID_MAP);this.thumbnail&&(e=this.thumbnail.getElementsByTagName("a"),e.length>0&&(e=e.namedItem("thumbnail"))&&e.removeAttribute("href"));var g;if((g=this.data)==
null?0:g.forceImpAutoplay){var c;(c=this.JSC$15868_inlinePreviewHoverListener)==null||z0U(c)}};
_.v.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.v.onThumbnailContainerClick=function(e){if(this.data&&this.data.navigationEndpoint){var g,c=(g=this.data)==null?void 0:g.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(c,e,!!_.x(c,_.Pm));e.stopPropagation()}};
_.v.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.v.impressionLog=function(){var e=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var g,c,k=(c=_.x((g=this.data)==null?void 0:g.onImpression,_.SV))==null?void 0:c.commands;k&&(k.forEach(function(I){I.clickTrackingParams&&delete I.clickTrackingParams;e.ytComponentBehavior.resolveCommand(I)}),this.data.impressionsFired=!0)}};
_.Bd.Object.defineProperties(of.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$15868_inlinePreviewHoverListener)==null?0:x9(e))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
of.prototype.onTypographyBumpChanged=of.prototype.onTypographyBumpChanged;of.prototype.onDataChanged=of.prototype.onDataChanged;of.JSC$15867_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);of.JSC$15867_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([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],of.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],of.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],of.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],of.prototype,"ytdLockupBehavior",void 0);
_.t([_.m(_.Wv),_.B("design:type",Object)],of.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Fk.YtSparklesClickLocationBehavior),_.B("design:type",Object)],of.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],of.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],of.prototype,"noBottomMargin",void 0);_.t([_.u(),_.B("design:type",Object)],of.prototype,"isInlinePreviewTriggered",void 0);
_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],of.prototype,"miniMode",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],of.prototype,"typographyBump",void 0);_.t([_.Cs("ytd-thumbnail"),_.B("design:type",HTMLElement)],of.prototype,"thumbnail",void 0);_.t([_.Cs("#dismissible"),_.B("design:type",HTMLElement)],of.prototype,"JSC$15868_dismissibleMedia",void 0);
_.t([_.Cs("ytd-ad-inline-playback-meta-block"),_.B("design:type",HTMLElement)],of.prototype,"adInlinePlaybackMetaBlock",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],of.prototype,"onDataChanged",null);_.t([_.k_("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],of.prototype,"onTypographyBumpChanged",null);
_.t([_.p("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],of.prototype,"isHovered",null);_.t([_.bF({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],of);
_.U(of,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(ODs!==void 0)return ODs;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ODs=e},{mode:1});var MHw;var Zs=function(){var e=_.z.apply(this,arguments)||this;e.isInlinePreviewTriggered=!1;e.JSC$15871_activeViewMeasurementDataResolver=_.i6();return e};
_.Y(Zs,_.z);_.v=Zs.prototype;_.v.created=function(){this.activeView=new Uc(this.hostElement)};
_.v.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.attached=function(){var e=this;this.updateInlinePreviewHoverListeners();this.JSC$15871_activeViewMeasurementDataResolver.promise.then(function(g){oG(e.activeView,g)})};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15871_inlinePreviewHoverListener=hC({mediaRenderer:this,lockupElement:this.JSC$15871_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:qtq})};
_.v.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$15871_inlinePreviewHoverListener)==null||dS(e)};
_.v.onDataChanged=function(){var e;((e=this.data)==null?0:e.activeView)&&this.JSC$15871_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Zs.JSC$15870_DEFAULT_CLICK_LOCATION_BEHAVIOR,Zs.JSC$15870_CLICK_LOCATION_ID_MAP);this.thumbnail&&(e=this.thumbnail.getElementsByTagName("a"),e.length>0&&(e=e.namedItem("thumbnail"))&&e.removeAttribute("href"))};
_.v.onThumbnailContainerClick=function(e){if(this.data&&this.data.navigationEndpoint){var g,c=(g=this.data)==null?void 0:g.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(c,e,!0);e.stopPropagation()}};
_.v.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.v.impressionLog=function(){var e=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var g,c,k=(c=_.x((g=this.data)==null?void 0:g.onImpression,_.SV))==null?void 0:c.commands;k&&(k.forEach(function(I){I.clickTrackingParams&&delete I.clickTrackingParams;_.Ss().resolve(_.xk).resolveCommand(I,{form:{element:e.hostElement}})}),this.data.impressionsFired=!0)}};
_.Bd.Object.defineProperties(Zs.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$15871_inlinePreviewHoverListener)==null?0:x9(e))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Zs.prototype.onDataChanged=Zs.prototype.onDataChanged;Zs.JSC$15870_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Zs.JSC$15870_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Zs.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],Zs.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],Zs.prototype,"ytdLockupBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Zs.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Fk.YtSparklesClickLocationBehavior),_.B("design:type",Object)],Zs.prototype,"ytSparklesClickLocationBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],Zs.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Zs.prototype,"isInlinePreviewTriggered",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],Zs.prototype,"miniMode",void 0);_.t([_.Cs("ytd-thumbnail"),_.B("design:type",HTMLElement)],Zs.prototype,"thumbnail",void 0);_.t([_.Cs("#dismissible"),_.B("design:type",HTMLElement)],Zs.prototype,"JSC$15871_dismissibleMedia",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zs.prototype,"onDataChanged",null);_.t([_.p("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Zs.prototype,"isHovered",null);_.t([_.bF({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Zs);
_.U(Zs,"ytd-video-display-full-buttoned-renderer",function(){if(MHw!==void 0)return MHw;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return MHw=e},{mode:1});var uD=function(e,g,c,k){k=k===void 0?!1:k;_.eK.call(this,e);this.adsClientErrorMessage=c;this.aggressivelySample=k;this.args=[];g&&this.args.push(g)};
_.Y(uD,_.eK);var sQ=function(e,g,c,k){k=k===void 0?!1:k;_.eK.call(this,e);this.adsClientErrorMessage=c;this.aggressivelySample=k;this.args=[];g&&this.args.push(g)};
_.Y(sQ,_.eK);var CLq=function(e){_.Iy.call(this);var g=this;this.initializationFunction=e;this.instance=null;this.addOnDisposeCallback(function(){_.Fm(g.instance);g.instance=null})};
_.Y(CLq,_.Iy);CLq.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.jS("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var MTW=function(){var e=new Map;[].forEach(function(g){e.set(g.JSC$31558_getType(),g)});
this.getters=e};new Promise(function(){});var N8z=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"]]),tTC=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"}]]),eI1=function(e){this.experimentApiProvider=e;e=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=e<.1};var VI=function(e,g,c,k){_.Iy.call(this);this.adsControlFlowEventListeners=g;this.adEventLogger=c;this.experimentApiProvider=k;this.adsControlFlowManagerHelper=e(this,this,this,this,this);_.yh(this,this.adsControlFlowManagerHelper);e=_.w(g);for(g=e.next();!g.done;g=e.next())_.yh(this,g.value)};
_.Y(VI,_.Iy);var gx1=function(e,g,c,k){ti(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",g,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,k);e=_.w(e.adsControlFlowEventListeners);for(k=e.next();!k.done;k=e.next())gx1(k.value,g,c)};
_.v=VI.prototype;_.v.onOpportunityProcessedExternallyManaged=function(e,g,c,k){ti(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",e,c,g,void 0,void 0,void 0,void 0,void 0,void 0,void 0,k)};
_.v.onSlotReceivedExternallyManaged=function(e,g){B1(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",e,g)};
_.v.onSlotEntered=function(e){if(NF(this.adsControlFlowManagerHelper,e)!=null){B1(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",e);this.adsControlFlowManagerHelper.onSlotEntered(e);for(var g=_.w(this.adsControlFlowEventListeners),c=g.next();!c.done;c=g.next())c.value.onSlotEntered(e);if(NF(this.adsControlFlowManagerHelper,e)!=null&&NF(this.adsControlFlowManagerHelper,e).isOccupyingSlotType()&&Sd(this.adsControlFlowManagerHelper,e)&&!cl4(this.adsControlFlowManagerHelper,e)){var k;yI(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",e,(k=Sd(this.adsControlFlowManagerHelper,e))!=null?k:void 0);e=NF(this.adsControlFlowManagerHelper,e);e.slotLifecycleStage!=="entered"&&K$(e.slot,e.slotLifecycleStage,"enterLayoutForSlot");e.slotLifecycleStage="rendering";e.registeredLayoutRenderingAdapter.startRendering(e.layout)}}};
_.v.onSlotExited=function(e){if(NF(this.adsControlFlowManagerHelper,e)!=null){B1(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",e);this.adsControlFlowManagerHelper.onSlotExited(e);for(var g=_.w(this.adsControlFlowEventListeners),c=g.next();!c.done;c=g.next())c.value.onSlotExited(e);NF(this.adsControlFlowManagerHelper,e)!=null&&NF(this.adsControlFlowManagerHelper,e).markedForUnscheduleAfterOutboundAdapterRequests&&kKs(this,e)}};
_.v.onLayoutReceivedExternallyManaged=function(e,g,c){e.managerLayer!=="core"&&yI(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",e,g,c)};
var Izq=function(e,g,c){if(NF(e.adsControlFlowManagerHelper,g)!=null){yI(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",g,c);e=_.w(e.adsControlFlowEventListeners);for(var k=e.next();!k.done;k=e.next())Izq(k.value,g,c)}};
VI.prototype.onLayoutExited=function(e,g,c){if(NF(this.adsControlFlowManagerHelper,e)!=null){yI(this.adEventLogger,B8U(c),e,g);this.adsControlFlowManagerHelper.onLayoutExited(e,g);for(var k=_.w(this.adsControlFlowEventListeners),I=k.next();!I.done;I=k.next())I.value.onLayoutExited(e,g,c);(c=Sd(this.adsControlFlowManagerHelper,e))&&g.layoutId===c.layoutId&&Jln(this,e)}};
VI.prototype.disposeInternal=function(){var e=vxs(this.adsControlFlowManagerHelper);e=_.w(e);for(var g=e.next();!g.done;g=e.next())kKs(this,g.value);_.Iy.prototype.disposeInternal.call(this)};
var kKs=function(e,g){if(NF(e.adsControlFlowManagerHelper,g)!=null)if(NF(e.adsControlFlowManagerHelper,g).JSC$31588_isSlotExitRequested()||NF(e.adsControlFlowManagerHelper,g).JSC$31588_isLayoutExitRequested())NF(e.adsControlFlowManagerHelper,g).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(NF(e.adsControlFlowManagerHelper,g).isOccupyingSlotType())NF(e.adsControlFlowManagerHelper,g).markedForUnscheduleAfterOutboundAdapterRequests=!0,Jln(e,g);else if(NF(e.adsControlFlowManagerHelper,g).JSC$31588_isSlotFillRequested())NF(e.adsControlFlowManagerHelper,
g).markedForUnscheduleAfterOutboundAdapterRequests=!0,NF(e.adsControlFlowManagerHelper,g)!=null&&(B1(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",g),g=NF(e.adsControlFlowManagerHelper,g),g.fulfillmentLifecycleStage="fill_cancel_requested",g.registeredFulfillmentAdapter.cancelSlotFilling());else{var c=Sd(e.adsControlFlowManagerHelper,g),k;e.experimentApiProvider.get();(k=_.G("h5_enable_layout_unscheduling_events"))&&(c?wsk(e,g,c):_.jS(Error("Mh"),g,c,void 0,!1));B1(e.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",g);var I=NF(e.adsControlFlowManagerHelper,g),J=g.slotEntryTrigger,q=I.registeredSlotEntryTriggerAdapters.get(J.triggerId);q&&(q.unregisterTrigger(J),I.registeredSlotEntryTriggerAdapters.delete(J.triggerId));J=_.w(g.slotFulfillmentTriggers);for(q=J.next();!q.done;q=J.next()){q=q.value;var L=I.registeredFulfillmentTriggerAdapters.get(q.triggerId);L&&(L.unregisterTrigger(q),I.registeredFulfillmentTriggerAdapters.delete(q.triggerId))}J=_.w(g.slotExpirationTriggers);
for(q=J.next();!q.done;q=J.next())if(q=q.value,L=I.registeredExpirationTriggerAdapters.get(q.triggerId))L.unregisterTrigger(q),I.registeredExpirationTriggerAdapters.delete(q.triggerId);I.hasLayout()&&(J=I.layout,ON(I,J.layoutExitNormalTriggers),ON(I,J.layoutExitSkipTriggers),ON(I,J.layoutExitMuteTriggers),ON(I,J.layoutExitUserInputSubmittedTriggers),ON(I,J.layoutExitUserCancelledTriggers));I.registeredFulfillmentAdapter=void 0;I.registeredSlotAdapter!=null&&(I.registeredSlotAdapter.release(),I.registeredSlotAdapter=
void 0);I.registeredLayoutRenderingAdapter!=null&&(I.registeredLayoutRenderingAdapter.release(),I.registeredLayoutRenderingAdapter=void 0);I=e.adsControlFlowManagerHelper;NF(I,g)&&(I=q3w(I,g.slotType+"_"+g.slotPhysicalPosition))&&I.delete(g.slotId);B1(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",g);e=_.w(e.adsControlFlowEventListeners);for(I=e.next();!I.done;I=e.next())I=I.value,I.onSlotUnscheduled(g),c&&!k&&wsk(I,g,c)}},wsk=function(e,g,c){yI(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
g,c);
yI(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",g,c);e=_.w(e.adsControlFlowEventListeners);for(var k=e.next();!k.done;k=e.next())k=k.value,c&&wsk(k,g,c)},Jln=function(e,g){if(NF(e.adsControlFlowManagerHelper,g)!=null&&NF(e.adsControlFlowManagerHelper,g).isOccupyingSlotType()){var c=Sd(e.adsControlFlowManagerHelper,g);
if(c&&cl4(e.adsControlFlowManagerHelper,g)){if(NF(e.adsControlFlowManagerHelper,g)!=null){var k=e.adEventLogger,I;var J=((I=tTC.get("abandoned"))==null?void 0:I.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";yI(k,J,g,c);e=NF(e.adsControlFlowManagerHelper,g);e.slotLifecycleStage!=="rendering"&&K$(e.slot,e.slotLifecycleStage,"exitLayout");e.slotLifecycleStage="rendering_stop_requested";e.registeredLayoutRenderingAdapter.stopRendering(c,"abandoned")}}else{B1(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
g);try{k=NF(e.adsControlFlowManagerHelper,g);if(!k)throw new sQ("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");k.slotLifecycleStage!=="enter_requested"&&k.slotLifecycleStage!=="entered"&&k.slotLifecycleStage!=="rendering"&&K$(k.slot,k.slotLifecycleStage,"exitSlot");k.slotLifecycleStage="exit_requested";if(k.registeredSlotAdapter===void 0)throw k.slotLifecycleStage="scheduled",new sQ("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
k.registeredSlotAdapter.exit()}catch(q){q instanceof sQ&&q.adsClientErrorMessage?(LIn(e.adEventLogger,q.adsClientErrorMessage,g),_.jS(q,g,void 0,void 0,q.aggressivelySample)):(LIn(e.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",g),_.jS(q,g))}}}};var MF=function(e,g,c,k,I,J){_.Iy.call(this);this.registry=e;this.experimentApiProvider=J;this.slotMap=new Map};
_.Y(MF,_.Iy);var q3w=function(e,g){return(e=e.slotMap.get(g))?e:new Map},NF=function(e,g){return q3w(e,g.slotType+"_"+g.slotPhysicalPosition).get(g.slotId)},vxs=function(e){var g=[];
e.slotMap.forEach(function(c){c=_.w(c.values());for(var k=c.next();!k.done;k=c.next())g.push(k.value.slot)});
return g};
MF.prototype.onSlotEntered=function(e){e=NF(this,e);e.slotLifecycleStage!=="enter_requested"&&K$(e.slot,e.slotLifecycleStage,"onSlotEntered");e.slotLifecycleStage="entered"};
var cl4=function(e,g){e=NF(e,g);return e.hasLayout()&&e.isRendering()},Sd=function(e,g){(e=NF(e,g))?e.hasLayout()&&!e.layout&&_.jS("Unexpected empty layout",g):_.jS("Unexpected undefined slotState",g);
return(e==null?void 0:e.layout)||null};
MF.prototype.onSlotExited=function(e){e=NF(this,e);e.slotLifecycleStage!=="exit_requested"&&K$(e.slot,e.slotLifecycleStage,"onSlotExited");e.slotLifecycleStage="scheduled"};
MF.prototype.onLayoutExited=function(e,g){e=NF(this,e);e.isPrimaryLayout(g)&&(e.slotLifecycleStage!=="rendering_stop_requested"&&K$(e.slot,e.slotLifecycleStage,"onLayoutExited"),e.slotLifecycleStage="entered")};
var ON=function(e,g){g=_.w(g);for(var c=g.next();!c.done;c=g.next()){c=c.value;var k=e.registeredLayoutExitTriggerAdapters.get(c.triggerId);k&&(k.unregisterTrigger(c),e.registeredLayoutExitTriggerAdapters.delete(c.triggerId))}},K$=function(e,g,c){_.jS("Slot stage was "+g+" when calling method "+c,e)};var azn=function(e){_.Iy.call(this);this.deps=e;this.JSC$15921_adsControlFlowManager=rlI(this)};
_.Y(azn,_.Iy);var rlI=function(e){var g=new VI(function(c,k,I,J){return new MF(e.deps.registry,c,k,I,J,e.deps.experimentApiProvider)},new Set(OpU(e.deps.registry).concat(e.deps.listeners)),e.deps.adEventLogger,e.deps.experimentApiProvider);
_.yh(e,g);return g};var T$v=function(){};var nxq=function(e,g){_.Iy.call(this);this.experimentApiProvider=e;this.eventLoggingSettingsProvider=g;this.eventCount=0;this.premiumAdSeenEventLogger=lO8()()};
_.Y(nxq,_.Iy);nxq.prototype.logEvent=function(e){ti(this,e)};
var B1=function(e,g,c,k){ti(e,g,void 0,void 0,void 0,c,void 0,void 0,void 0,c.adSlotLoggingData,void 0,void 0,k)},yI=function(e,g,c,k,I){ti(e,g,void 0,void 0,void 0,c,k?k:void 0,void 0,void 0,c.adSlotLoggingData,k?k.adLayoutLoggingData:void 0,void 0,I);
c=_.Ss().resolve(_.NN(XC))==null?void 0:Gm();g=c==null?void 0:c.adsSeenHotConfig;c=c==null?void 0:c.adsHotConfig;(g==null?0:g.logOnAdsSeen)&&(c==null?0:c.webEnablePremiumAdsSeenLogging)&&RIY(e,k?k:void 0,I)},LIn=function(e,g,c){ti(e,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,void 0,void 0,void 0,c.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:g})},ti=function(e,g,c,k,I,J,q,L,n,R,W,b,h){h=h===void 0?0:h;
Exk(e.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+g,"slot:",J,"layout:",q,"ping:",L,"Opportunity:",{opportunityType:c,associatedSlotId:k,slotsFromOpportunity:I,triggerBundle:n,adSlotLoggingData:R,adLayoutLoggingData:W});try{var X=function(){e.experimentApiProvider.get();if(g!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){g||_.jS("Empty PACF event type",J,q);var D=e.eventLoggingSettingsProvider.get();var f;(f=D.alwaysIncludeDebugData)||(D.experimentApiProvider.get(),f=
!1);D=f;f={eventType:g,eventOrder:++e.eventCount};var l={};J&&(l.slotData=yeq(D,J));if(q){var A={type:q.layoutType,controlFlowManagerLayer:N8z.get(q.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};D&&(A.debugData={layoutId:q.layoutId});l.layoutData=A}L&&(l.pingData={pingDispatchStatus:L.dispatchStatus,serializedAdPingMetadata:L.ping.serializedAdPingMetadata,pingIndex:L.index});n&&(l.triggerData=SZC(n.trigger,n.category));c&&(l.opportunityData=K4q(D,c,k,I));f.adClientData=l;R&&(f.serializedSlotAdServingData=
R.serializedSlotAdServingDataEntry);W&&(f.serializedAdServingData=W.serializedAdServingDataEntry);b&&(f.errorInfo=b);_.Y2("adsClientStateChange",{adsClientEvent:f})}};
h&&h>0?_.h2(_.nu(),function(){return X()},h):X()}catch(D){Exk(e.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.h2(_.nu(),function(){_.jS(D instanceof Error?D:String(D),J,q,{pacf_message:"exception during pacf logging"})})}},RIY=function(e,g,c){if(g){var k=g.adLayoutLoggingData;
_.h2(_.nu(),function(){e.premiumAdSeenEventLogger!=null&&k&&_.Y2("adsSeenClientLogging",{serializedAdServingDataEntry:k.serializedAdServingDataEntry})},c!=null?c:0)}};var WIY=function(e,g){nxq.call(this,e,g)};
_.Y(WIY,nxq);var bkk=function(){},Exk=function(e,g){return _.G(g)};var Xsq=function(){var e=new hIs;this.JSC$15946_adsControlFlowManager=(new azn(e)).JSC$15921_adsControlFlowManager},hIs=function(){_.Iy.call(this);
var e=this;this.experimentApiProvider=new CLq(function(){return new bkk});
var g=new CLq(function(){return new eI1(e.experimentApiProvider)});
this.adEventLogger=new WIY(this.experimentApiProvider,g);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.Y(hIs,_.Iy);var GK1=function(){},xAk,C$=function(){xAk||(xAk=new GK1);
return xAk},eb=function(e){if(!e.JSC$15957_externallyManagedSlotAdapterCallback){var g=(new Xsq).JSC$15946_adsControlFlowManager;
e.JSC$15957_externallyManagedSlotAdapterCallback=g}return e.JSC$15957_externallyManagedSlotAdapterCallback},DAw=function(e,g,c){var k=g.opportunityType,I=Error("Nh");
if(k!==void 0){var J=eb(e);gx1(J,k,void 0,c)}else _.jS(I,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});J=[];if(g.adSlotAndLayoutMetadata!==void 0){g=_.w(g.adSlotAndLayoutMetadata);for(var q=g.next();!q.done;q=g.next()){var L=q.value;if(q=L.adSlotMetadata)if(J.push(q),e.onSlotReceivedExternallyManaged(q,c),L.adLayoutMetadata){L=_.w(L.adLayoutMetadata);for(var n=L.next();!n.done;n=L.next())e.onLayoutReceivedExternallyManaged(q,n.value,c)}else c>0&&_.jS("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
k,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else c>0&&_.jS("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+k,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else c>0&&_.jS("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+k,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(k!==void 0)e.onOpportunityProcessedExternallyManaged(k,J,void 0,c);else _.jS(I,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
GK1.prototype.onSlotReceivedExternallyManaged=function(e,g){e=FJ(e);if(e instanceof sQ)_.jS(e,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else eb(this).onSlotReceivedExternallyManaged(e,g)};
GK1.prototype.onLayoutReceivedExternallyManaged=function(e,g,c){e=FJ(e);g=CaK(g);if(e instanceof sQ)_.jS(e,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(g instanceof uD)_.jS(g,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else eb(this).onLayoutReceivedExternallyManaged(e,g,c)};
GK1.prototype.onOpportunityProcessedExternallyManaged=function(e,g,c,k){var I=[];g=_.w(g);for(var J=g.next();!J.done;J=g.next())J=FJ(J.value),J instanceof sQ?_.jS(J,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):I.push(J);eb(this).onOpportunityProcessedExternallyManaged(e,I,c,k)};
var $A1=function(e,g){g=FJ(g);if(g instanceof sQ)_.jS(g,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var c=eb(e);B1(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",g);c=_.w(c.adsControlFlowEventListeners);for(var k=c.next();!k.done;k=c.next())k=NF(k.value,g),k.slotLifecycleStage!=="not_scheduled"&&K$(k.slot,k.slotLifecycleStage,"onSlotScheduled"),k.slotLifecycleStage="scheduled";e=eb(e);B1(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",g);e=_.w(e.adsControlFlowEventListeners);
for(c=e.next();!c.done;c=e.next())c.value.onSlotEntered(g)}},Y3n=function(e,g){g=FJ(g);
if(g instanceof sQ)_.jS(g,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var c=eb(e);B1(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",g);c=_.w(c.adsControlFlowEventListeners);for(var k=c.next();!k.done;k=c.next())k.value.onSlotExited(g);e=eb(e);B1(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",g);e=_.w(e.adsControlFlowEventListeners);for(c=e.next();!c.done;c=e.next())c.value.onSlotUnscheduled(g)}},fzn=function(e,g,c){g=FJ(g);
c=CaK(c);if(g instanceof sQ)_.jS(g,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(c instanceof uD)_.jS(c,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var k=eb(e);yI(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",g,c);k=_.w(k.adsControlFlowEventListeners);for(var I=k.next();!I.done;I=k.next())I.value.onLayoutScheduled(g,c);e=eb(e);yI(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",g,c);e=_.w(e.adsControlFlowEventListeners);
for(k=e.next();!k.done;k=e.next())Izq(k.value,g,c)}},gz=function(e,g,c){g=FJ(g);
c=CaK(c);if(g instanceof sQ)_.jS(g,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(c instanceof uD)_.jS(c,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var k=eb(e);yI(k.adEventLogger,B8U("normal"),g,c);k=_.w(k.adsControlFlowEventListeners);for(var I=k.next();!I.done;I=k.next())I.value.onLayoutExited(g,c,"normal");e=eb(e);e=_.w(e.adsControlFlowEventListeners);for(k=e.next();!k.done;k=e.next())wsk(k.value,g,c)}};var jrI=_.H(function(e){var g=e.data,c=e.listenToTapEvent,k=function(){};
return _.a("ad-button-hover-overlay-view-model",{"on:click":_.Ve(function(I){if(_.G("enable_web_home_top_landscape_image_layout_legacy_click_command")){var J,q=(J=g().interaction)==null?void 0:J.onTap;q&&_.oC(I.currentTarget,"yt-navigate",{endpoint:_.WT(q)})}}),
class:function(){var I;return((I=g().interaction)==null?0:I.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.mb(_.By({visibilityCallback:function(I){var J,q=(J=g().interaction)==null?void 0:J.onFirstVisible;I&&q&&_.GF(q)},
showOption:_.HG}),_.GP(function(){return g().interaction},void 0,function(){return!_.G("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(c==null?void 0:c())}))},function(){return _.G("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.a(_.eS,{data:function(){return g().button}},{adButtonViewModel:function(I){return _.a(_.o8,{data:I.data,
customCommandResolver:k})}}):_.a(_.eS,{data:function(){return g().button}},{adButtonViewModel:_.o8})}())},"uc");var db;_.sL(_.H(function(e){var g=e.data;e=_.By({visibilityCallback:function(L,n){if(L){var R;(L=(R=g().interaction)==null?void 0:R.onFirstVisible)&&_.GF(L);var W;if(R=(W=g().adLayoutData)==null?void 0:W.activeViewData)zP(n,R),_.G("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&HY(n)})}else _.G("stop_av_measurement_on_detach")&&HY(n)},
showOption:_.HG,hideOption:QN});var c=_.GP(function(){return g().interaction},void 0,function(){return!0}),k=_.w(_.Wa(!1,void 0,"VNDDT")),I=k.next().value,J=k.next().value;
k=_.Ve(function(){J(!0)});
var q=_.Ve(function(){J(!1)});
return _.a("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.mb(e,vZ8,c),"on:mouseenter":k,"on:mouseleave":q},_.a("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.N2({"max-width":function(){return _.G("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.a("div",{class:function(){var L;
a:{var n;switch((L=_.x(g().thumbnailImage,RtM))==null?void 0:(n=L.imageProperties)==null?void 0:n.renderingAspect){case "RENDERING_ASPECT_SQUARE":L="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":L="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}L=void 0}return L}},_.a(_.eS,{data:function(){return g().thumbnailImage}},{adImageViewModel:function(L){return _.a(_.U8,
{data:L.data,
listenToTapEvent:!0,setTouchEndHandler:_.G("enable_top_landscape_image_experiment_dom_id_web")})}})),_.a("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.a(_.E,{cond:function(){var L,n,R;
return(L=_.x(g().thumbnailImage,RtM))==null?void 0:(n=L.imageProperties)==null?void 0:(R=n.overlayIcon)==null?void 0:R.iconImage},
then:function(L){return _.a(_.pv,{data:L,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.a("div",{class:function(){return I()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.a(_.eS,{data:function(){return g().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(L){return _.a(jrI,
{data:L.data,
listenToTapEvent:!0})}}))),_.a("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.a(_.eS,{data:function(){return g().feedAdMetadata}},{feedAdMetadataViewModel:function(L){return _.a(yN,{data:L.data,
listenToTapEvent:!0,setTouchEndHandler:_.G("enable_top_landscape_image_experiment_dom_id_web")})}})))},"vc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;e=_.By({visibilityCallback:function(L,n){if(L){var R;(L=(R=g().interaction)==null?void 0:R.onFirstVisible)&&_.GF(L);var W;if(R=(W=g().adLayoutData)==null?void 0:W.activeViewData)zP(n,R),_.G("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&HY(n)})}else _.G("stop_av_measurement_on_detach")&&HY(n)},
showOption:_.HG,hideOption:QN});var c=_.M2(_.E1),k=_.GP(function(){return g().interaction}),I={},J={},q={};
return _.a("square-image-layout-view-model",{class:_.o6("ytwSquareImageLayoutViewModelHost",(I.ytwSquareImageLayoutViewModelHostColumn=c,I)),el:_.mb(e,wMe,k)},_.a("div",{class:_.o6("ytwSquareImageLayoutViewModelHostImage",(J.ytwSquareImageLayoutViewModelHostColumnImage=c,J))},function(){return _.a(_.eS,{data:function(){return g().adImage}},{adImageViewModel:function(L){return _.a(_.U8,{data:L.data,
isGridViewEnabled:c,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.a("div",{class:_.o6("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(q.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=c,q))},_.a(_.eS,{data:function(){return g().feedAdMetadata}},{feedAdMetadataViewModel:yN}),function(){return _.a(_.eS,{data:function(){return g().adButton}},{adButtonViewModel:function(L){var n={};
return _.a(_.o8,{data:L.data,className:_.o6((n.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,n.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=c,n))})}})}()))},"wc"),"square-image-layout-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;var c=e.noBottomMargin;var k=e.typographyBump;e=_.By({visibilityCallback:function(b,h){if(b){var X;(b=(X=g().interaction)==null?void 0:X.onFirstVisible)&&_.GF(b);var D;if(X=(D=g().adLayoutData)==null?void 0:D.activeViewData)zP(h,X),_.G("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&HY(h)})}else _.G("stop_av_measurement_on_detach")&&HY(h)},
showOption:_.HG,hideOption:QN});var I=_.GP(function(){return g().interaction},void 0,function(){return _.G("enable_web_home_top_landscape_image_layout_level_click")}),J=function(){return g().interaction};
J!==void 0&&J!==null||_.UI(Error("Oh"));var q=function(){var b,h,X;return(b=_.x(g().thumbnailImage,RtM))==null?void 0:(h=b.background)==null?void 0:(X=h.backgroundImageSource)==null?void 0:X.imageSources};
J=_.w(_.Wa(!1,void 0,"NFjwje"));var L=J.next().value,n=J.next().value;J=_.Ve(function(){n(!0)});
var R=_.Ve(function(){n(!1)}),W=function(){return L()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.a("top-landscape-image-layout-view-model",{class:function(){var b;return((b=g().interaction)==null?0:b.onTap)&&_.G("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.mb(e,qpA,I),"on:mouseenter":J,"on:mouseleave":R},_.a("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.a(_.E,{cond:function(){return q()&&q().length>0},
then:function(){return _.a("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.N2({top:"0","background-image":function(){return"url("+String(q()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.a(_.E,{cond:function(){return!!g().adButtonHoverOverlay},
then:function(){return _.a("div",{class:W},_.a(_.eS,{data:function(){return g().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:jrI}))}}),_.a("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.a(_.eS,{data:function(){return g().thumbnailImage}},{adImageViewModel:function(b){return _.a(_.U8,{data:b.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.G("enable_web_home_top_landscape_image_layout_level_click")})}})),_.a("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.a(_.pv,{data:{sources:[{clientResource:{imageName:_.G("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.a("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.a(_.eS,{data:function(){return g().feedAdMetadata}},{feedAdMetadataViewModel:function(b){return _.a(yN,{data:b.data,
noBottomMargin:function(){return c==null?void 0:c()},
listenToTapEvent:function(){return _.G("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return k==null?void 0:k()}})}})))},"xc"),"top-landscape-image-layout-view-model",{props:{data:_.jx,
noBottomMargin:_.jx,typographyBump:_.jx}});var ikw=_.H(function(e){var g=e.data,c=_.By({visibilityCallback:function(I){var J,q=(J=g().interaction)==null?void 0:J.onFirstVisible;I&&q&&_.GF(q)},
showOption:_.HG});e=_.GP(function(){return g().interaction},e.customCommandResolver);
var k={};return _.a("ad-text-image-view-model",{class:_.o6("ytwAdTextImageViewModelHost",(k.ytwAdTextImageViewModelHostDarkBackground=function(){return g().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},k)),
el:_.mb(c,e),"aria-label":function(){var I,J;return(I=g().interaction)==null?void 0:(J=I.accessibility)==null?void 0:J.label}},_.a("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.a(_.fa,{text:function(){return g().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.a(_.E,{cond:function(){return g().overlayIcon},
then:function(I){return _.a("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.a(_.pv,{data:I,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"yc");var PO1=_.H(function(e){var g=e.data;return _.a("feed-ad-sitelink-view-model",{class:function(){var c;return((c=g().interaction)==null?0:c.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.mb(_.GP(function(){return g().interaction},e.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var c,k;return(c=g().interaction)==null?void 0:(k=c.accessibility)==null?void 0:k.label},
role:"link",tabindex:0},_.a(_.fa,{text:function(){return g().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"zc");var mAB=_.H(function(e){var g=e.data;e={};return _.a("feed-ad-sitelinks-carousel-view-model",{el:_.mb(_.By({visibilityCallback:function(c){var k,I=(k=g().interaction)==null?void 0:k.onFirstVisible;c&&I&&_.GF(I)},
showOption:_.HG})),class:_.o6("ytwFeedAdSitelinksCarouselViewModelHost",(e.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return g().style==="FEED_AD_SITELINKS_STYLE_NONE"},e))},_.a(_.eS,{data:function(){return g().sitelinks}},{feedAdSitelinkViewModel:PO1}))},"Ac");_.sL(_.H(function(e){var g=e.data;e=_.By({visibilityCallback:function(q,L){if(q){var n;(q=(n=g().interaction)==null?void 0:n.onFirstVisible)&&_.GF(q);var R;(n=(R=g().adLayoutData)==null?void 0:R.activeViewData)&&zP(L,n)}},
showOption:_.HG});var c=_.w(_.Wa(!1,void 0,"BzPhl")),k=c.next().value,I=c.next().value;c=_.Ve(function(){I(!0)});
var J=_.Ve(function(){I(!1)});
return _.a("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.mb(e),"on:mouseenter":c,"on:mouseleave":J},_.a("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.a("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.a(_.eS,{data:function(){return g().textImage}},{adTextImageViewModel:ikw})),_.a("div",{class:function(){return k()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.a(_.eS,{data:function(){return g().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(q){return _.a(jrI,{data:q.data,
listenToTapEvent:!0})}}))),_.a("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.a(_.eS,{data:function(){return g().feedAdMetadata}},{feedAdMetadataViewModel:function(q){return _.a(yN,{data:q.data,
listenToTapEvent:!0})}}),_.a(_.eS,{data:function(){return g().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:mAB})))},"Bc"),"text-image-no-button-layout-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;var c=e.typographyBump;return _.a("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.mb(_.By({visibilityCallback:function(k,I){if(k){var J;(k=(J=g().interaction)==null?void 0:J.onFirstVisible)&&_.GF(k);var q;(J=(q=g().adLayoutData)==null?void 0:q.activeViewData)&&zP(I,J)}},
showOption:_.HG,hideOption:QN}))},_.a("div",null,_.a(_.eS,{data:function(){return g().videoLockup}},{lockupViewModel:function(k){return _.a(_.KS,{data:k.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:c})}})))},"Cc"),"video-display-button-group-layout-view-model",{props:{data:_.jx,
noBottomMargin:_.jx,typographyBump:_.jx}});_.sL(_.H(function(e){var g=e.data;var c=e.className;var k=e.typographyBump;return _.a("video-display-compact-button-group-layout-view-model",{el:_.mb(_.By({visibilityCallback:function(I,J){if(I){var q;(I=(q=g().interaction)==null?void 0:q.onFirstVisible)&&_.GF(I);var L;(q=(L=g().adLayoutData)==null?void 0:L.activeViewData)&&zP(J,q)}},
showOption:_.HG})),class:_.o6("videoDisplayCompactButtonGroupLayoutViewModelHost",c)},_.a(_.eS,{data:function(){return g().videoLockup}},{lockupViewModel:function(I){return _.a(_.KS,{data:I.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:k})}}))},"Dc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.jx,
className:_.jx,typographyBump:_.jx}});_.sL(_.H(function(e){var g=e.data;var c=e.className;var k=e.typographyBump;return _.a("video-display-compact-buttoned-layout-view-model",{el:_.mb(_.By({visibilityCallback:function(I,J){if(I){var q;(I=(q=g().interaction)==null?void 0:q.onFirstVisible)&&_.GF(I);var L;(q=(L=g().adLayoutData)==null?void 0:L.activeViewData)&&zP(J,q)}},
showOption:_.HG})),class:_.o6("videoDisplayCompactButtonedLayoutViewModelHost",c)},_.a(_.eS,{data:function(){return g().videoLockup}},{lockupViewModel:function(I){return _.a(_.KS,{data:I.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:k})}}))},"Ec"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.jx,
className:_.jx,typographyBump:_.jx}});_.sL(_.H(function(e){var g=e.data;var c=e.className;var k=e.typographyBump;return _.a("video-display-compact-carousel-button-group-layout-view-model",{el:_.mb(_.By({visibilityCallback:function(I,J){if(I){var q;(I=(q=g().interaction)==null?void 0:q.onFirstVisible)&&_.GF(I);var L;(q=(L=g().adLayoutData)==null?void 0:L.activeViewData)&&zP(J,q)}},
showOption:_.HG})),class:_.o6("videoDisplayCompactCarouselButtonGroupLayoutViewModelHost",c)},_.a(_.eS,{data:function(){return g().videoLockup}},{lockupViewModel:function(I){return _.a(_.KS,{data:I.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:k})}}))},"Fc"),"video-display-compact-carousel-button-group-layout-view-model",{props:{data:_.jx,
className:_.jx,typographyBump:_.jx}});_.sL(_.H(function(e){var g=e.data;var c=e.className;var k=e.typographyBump;var I=function(){return g().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},J=_.M2(_.E1);
e=_.By({visibilityCallback:function(R,W){if(R){var b=g();R=b.adLayoutData;var h;(b=(h=b.interaction)==null?void 0:h.onFirstVisible)&&_.GF(b);(h=R==null?void 0:R.activeViewData)&&zP(W,h)}},
showOption:_.HG});var q=_.xF(function(){return{containerType:I()&&J()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:I()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),L=_.xF(function(){return I()&&J()?"":I()?"168px":"50%"},void 0,"Om6kNe"),n=_.xF(function(){return I()&&J()?9999:void 0},void 0,"S71lKd");
return _.a("video-display-compact-layout-view-model",{el:_.mb(e),class:_.o6("videoDisplayCompactLayoutViewModelHost",c)},_.a(_.eS,{data:function(){return g().videoLockup}},{lockupViewModel:function(R){return _.a(_.KS,{data:R.data,
containerLayoutConfig:q,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:L,thumbnailTargetWidth:n,typographyBump:k})}}))},"Gc"),"video-display-compact-layout-view-model",{props:{data:_.jx,
className:_.jx,typographyBump:_.jx}});_.sL(_.H(function(e){var g=e.data;var c=e.typographyBump;return _.a("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.mb(_.By({visibilityCallback:function(k,I){if(k){var J;(k=(J=g().interaction)==null?void 0:J.onFirstVisible)&&_.GF(k);var q;(J=(q=g().adLayoutData)==null?void 0:q.activeViewData)&&zP(I,J)}},
showOption:_.HG,hideOption:QN}))},_.a("div",null,_.a(_.eS,{data:function(){return g().videoLockup}},{lockupViewModel:function(k){return _.a(_.KS,{data:k.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:c})}})))},"Hc"),"video-display-full-layout-view-model",{props:{data:_.jx,
noBottomMargin:_.jx,typographyBump:_.jx}});var psZ=_.H(function(e){var g=e.data;var c=e.customCommandResolver;var k=e.className;var I=e.buttonClassName;var J=e.animationEntityKey;var q=e.expansive;return _.a("carousel-button-view-model",{class:_.o6("ytwCarouselButtonViewModelHost",k)},_.a(_.eS,{data:function(){return g().carousel}},{carouselAdCardCollectionViewModel:function(L){return _.a(WLZ,{data:L.data,
customCommandResolver:c,expansive:q})}}),_.a(_.eS,{data:function(){return g().button}},{adButtonViewModel:function(L){var n=L.data;
return _.a(_.o8,{data:function(){return(q==null?0:q())?Object.assign({},n(),{style:"AD_BUTTON_STYLE_TONAL"}):n()},
className:I,customCommandResolver:c,animationEntityKey:J})}}))},"Ic");_.TUu=_.H(function(e){var g=e.data;e=e.className;var c=_.io("pivot-button-view-model");_.lo(function(){var k;((k=g())==null?0:k.backgroundColor)&&c.value.setAttribute("data-background-color",String(g().backgroundColor))});
return _.a("pivot-button-view-model",{el:c,class:_.o6("ytwPivotButtonViewModelHost",e)},_.a(_.d4,{command:function(){var k=g();k=k.onClickCommand?_.WT(k.onClickCommand):k.contentDescription?_.so(k.contentDescription):void 0;return k},
ariaLabel:function(){return g().contentDescription}},_.a(_.E,{cond:function(){return g().thumbnail},
then:function(k){return _.a(_.pv,{data:k,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.a(_.E,{cond:function(){return g().icon},
then:function(k){return _.a(_.SU,{icon:function(){return k().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Jc");_.lzq=_.H(function(e){var g=e.data;var c=e.buttonShapeOverrideables;e={};return _.a("reel-action-bar-view-model",{class:_.o6("ytwReelActionBarViewModelHost",(e.ytwReelActionBarViewModelHostDecluttered=function(){return _.G("enable_shorts_declutter_ui")},e))},_.a(_.eS,{data:function(){return g().buttonViewModels}},{buttonViewModel:function(k){return _.a(_.oD,{data:k.data,
buttonOverrides:c})},
likeButtonViewModel:function(k){return _.a(_.Xh,{data:k.data,buttonShapeOverrideables:c})},
dislikeButtonViewModel:function(k){return _.a(_.hT,{data:k.data,buttonShapeOverrideables:c})},
toggleButtonViewModel:function(k){return _.a(_.vF,{data:k.data,buttonShapeOverrides:c})}}))},"Kc");var Alw=_.H(function(e){var g=e.avatar;var c=e.headline;var k=e.badge;var I=e.description;var J=e.expansive;e={};return _.a("yt-ad-metadata-shape",{class:_.o6("ytAdMetadataShapeHost",(e.ytAdMetadataShapeHostLarge=J,e.ytAdMetadataShapeHostDecluttered=function(){return _.G("enable_desktop_small_title_on_immersive_shorts")},e))},_.a("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.a(_.E,{cond:g,
then:function(q){return _.a(_.Tok,{data:function(){return(J==null?0:J())?Object.assign({},q(),{size:"AD_AVATAR_SIZE_M"}):q()}})}}),_.a("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.a(_.fa,{text:c,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.a(_.E,{cond:k,then:function(q){return _.a(_.N6,{data:function(){return(J==null?0:J())?Object.assign({},q(),{style:"AD_BADGE_STYLE_STARK"}):q()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.a("h2",{class:"ytAdMetadataShapeHostDescription"},_.a(_.fa,{text:I,
linkInheritColor:!0,isHeadline:function(){return J==null?void 0:J()}})))},"Lc");var srI=_.H(function(e){var g=e.data;var c=e.onShow;var k=e.expansive;e=_.GP(function(){return g().interaction});
_.lo(function(){var J,q=(J=g().animatedRenderingConfig)==null?void 0:J.delayedSecondsToVisible;if(q){var L=setTimeout(c,q*1E3);_.sX(function(){clearTimeout(L)})}});
var I={};return _.a("reels-ad-card-buttoned-view-model",{class:_.o6(function(){var J;return((J=g().interaction)==null?0:J.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(I.ytwReelsAdCardButtonedViewModelHostExpansive=k,I)),
el:_.mb(e)},_.a(Alw,{avatar:function(){return _.x(g().avatar,rSM)},
headline:function(){return g().headline},
badge:function(){return _.x(g().adBadge,ax4)},
description:function(){return g().description},
expansive:k}),_.a(_.eS,{data:function(){return g().ctaButton}},{adButtonViewModel:function(J){var q=J.data;
return _.a(_.o8,{data:function(){return(k==null?0:k())?Object.assign({},q(),{style:"AD_BUTTON_STYLE_FILLED"}):q()}})}}))},"Mc");var FIw=_.H(function(e){var g=e.data;e=e.expansive;var c=_.G("web_ad_metadata_clickable")?_.GP(function(){return g().interaction},void 0,function(){return _.G("web_ad_metadata_clickable")}):void 0,k={};
k=_.qy("ytwReelsAdMetadataViewModelHost",(k.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.G("web_ad_metadata_clickable"),k));return _.a("reels-ad-metadata-view-model",{class:k,el:_.mb(c)},_.a(Alw,{avatar:function(){return _.x(g().avatar,rSM)},
headline:function(){return g().headline},
badge:function(){return _.x(g().adBadge,ax4)},
description:function(){return g().description},
expansive:e}))},"Nc");var u3s=_.H(function(){return _.a("div",{class:"ytwVideoFilteringOverlayHost",style:_.N2({"background-color":function(){return _.EY(_.MN("exp_shorts_ads_mvp_filtering_hex_value_web"))}})})},"Oc");var dAM={iconPosition:"icon-with-label",size:"L"},zIq=_.H(function(e){var g=e.data;var c=e.overlayDensity;var k=e.extractOverlay;var I=e.extractActionBar;e=_.io("reels-player-overlay-layout-view-model");var J=_.sz(c,0),q=function(){var X;return(X=g().reelsAdCardButtonedEntityKey)!=null?X:""},L=function(){return q()+"/ad_button"},n=_.O1(o4e,q),R=function(){var X,D;
return(D=(X=n())==null?void 0:X.value)!=null?D:!1},W=_.M2(LLp),b=function(){var X,D=Object.assign({},dAM,(W()||!((X=I==null?void 0:I())!=null&&X))&&{style:"overlay-dark"});
return _.G("mweb_shorts_rhs_no_background_protection")?Object.assign({},D,{type:"text",style:"overlay"}):D};
c={};var h={};return _.a("reels-player-overlay-layout-view-model",{class:_.o6("ytwReelsPlayerOverlayLayoutViewModelHost",(c.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!g().extension},c.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},c.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return J()===1&&!(k==null?0:k())},c.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var X;
return(X=k==null?void 0:k())!=null?X:!1},c.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var X;
return(X=I==null?void 0:I())!=null?X:!1},c)),
"overlay-density":function(){return String(J())},
el:e},_.a("div",{class:_.o6("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(h.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},h))},_.a("div",{"aria-hidden":function(){return R()},
class:_.o6("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return R()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.N2({"transition-duration":function(){return R3v(g())}})},_.a(_.eS,{data:function(){return g().adMetadata}},{reelsAdMetadataViewModel:function(X){return _.a(FIw,{data:X.data,
expansive:function(){return J()===1}})}}),_.a(_.E,{cond:function(){return g().extension},
then:function(X){return _.a("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.a(_.eS,{data:X},{adButtonViewModel:function(D){return _.a(_.o8,{data:D.data,animationEntityKey:L,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(D){return _.a(psZ,{data:D.data,animationEntityKey:L,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return J()===1}})}}))}})),_.a("div",{"aria-hidden":function(){return!R()},
class:_.o6("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return R()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.N2({"transition-duration":function(){return R3v(g())}})},_.a(_.eS,{data:function(){return g().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(X){return _.a(srI,{data:X.data,
onShow:function(){_.As(_.cY("booleanEntity",q(),{key:q(),value:!0}))},
expansive:function(){var D;return(D=k==null?void 0:k())!=null?D:!1}})}}))),_.a("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.a(_.eS,{data:function(){return g().actions}},{reelActionBarViewModel:function(X){return _.a(_.lzq,{data:X.data,
buttonShapeOverrideables:b})}}),_.a(_.eS,{data:function(){return g().menu}},{buttonViewModel:function(X){return _.a(_.oD,{data:X.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},b())}})}}),_.a(_.eS,{data:function(){return g().pivotButton}},{pivotButtonViewModel:function(X){return _.a(_.TUu,{data:X.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})),_.a(_.E,{cond:function(){return _.G("exp_shorts_ads_mvp_filtering_web")},
then:function(){return _.a(_.whK,{root:"ytd-reel-video-renderer[is-active] #video-filtering-overlay-container"},function(){return _.a(u3s,null)})}}))},"Pc");_.sL(zIq,"reels-player-overlay-layout-view-model",{props:{data:_.jx,overlayDensity:_.jx,extractOverlay:_.jx,extractActionBar:_.jx}});var cu=function(){var e=_.z.apply(this,arguments)||this;e.noBottomMargin=!1;e.overlayDensity=0;e.extractOverlay=!1;e.extractActionBar=!1;return e};
_.Y(cu,_.z);_.v=cu.prototype;
_.v.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactCarouselButtonGroupLayoutViewModel:{component:"video-display-compact-carousel-button-group-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},
compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.G("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.v.ready=function(){var e=this;jJz(function(){e.isAttached&&lD(e.JSC$15996_storedAdSlotMetadata,e.JSC$15996_storedAdLayoutMetadata,e.adSlotMetadata,e.adLayoutMetadata)&&gz(C$(),e.JSC$15996_storedAdSlotMetadata,e.JSC$15996_storedAdLayoutMetadata)})};
_.v.attached=function(){lD(this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&fzn(C$(),this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata)};
_.v.detached=function(){lD(this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gz(C$(),this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata)};
_.v.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.v.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15996_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15996_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15996_storedAdLayoutMetadata!==void 0&&this.JSC$15996_storedAdSlotMetadata!==void 0&&gz(C$(),this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata),fzn(C$(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15996_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15996_storedAdSlotMetadata=this.adSlotMetadata)};
_.Bd.Object.defineProperties(cu.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.adLayoutMetadata}}});
cu.prototype.onAdMetadataChanged=cu.prototype.onAdMetadataChanged;cu.prototype.onTypographyBumpChanged=cu.prototype.onTypographyBumpChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],cu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cu.prototype,"rendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],cu.prototype,"ytComponentBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],cu.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],cu.prototype,"noBottomMargin",void 0);_.t([_.u(),_.B("design:type",Object)],cu.prototype,"overlayDensity",void 0);_.t([_.u(),_.B("design:type",Object)],cu.prototype,"extractOverlay",void 0);_.t([_.u(),_.B("design:type",Object)],cu.prototype,"extractActionBar",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],cu.prototype,"typographyBump",void 0);
_.t([_.p("data.adLayoutMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],cu.prototype,"adLayoutMetadata",null);_.t([_.u(),_.B("design:type",Object)],cu.prototype,"adSlotMetadata",void 0);_.t([_.Cs("ytd-video-display-full-buttoned-and-button-group-renderer"),_.B("design:type",HTMLElement)],cu.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.t([_.OY("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cu.prototype,"onTypographyBumpChanged",null);_.t([_.OY("adLayoutMetadata","adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cu.prototype,"onAdMetadataChanged",null);_.t([_.bF({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],cu);
_.U(cu,"ytd-in-feed-ad-layout-renderer",function(){if(PLZ!==void 0)return PLZ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return PLZ=e},
{mode:2});var Hkn;var QrM;_.sL(_.N6,"ad-badge-view-model",{props:{data:_.jx,hasDot:_.jx,customCommandResolver:_.TF,adRenderingContextType:_.TF,usedInMasthead:_.TF}});_.sL(_.o8,"ad-button-view-model",{props:{data:_.jx,customCommandResolver:_.TF,className:_.TF,delayedClassName:_.TF,animationEntityKey:_.TF,isCompactWidth:_.TF,isContentWidth:_.TF}});var ke=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return e};
_.Y(ke,_.z);_.v=ke.prototype;_.v.computeHasLiveDescription=function(e){return!(e==null||!e.liveDescription)};
_.v.computeHasByline=function(e){return!(e==null||!e.byline)};
_.v.computeUsesAdButtonViewModel=function(e){return!!_.x(e==null?void 0:e.cta,nHs)};
_.v.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.v.onYtToggleButton=function(e){var g,c=(g=this.data)==null?void 0:g.videoReminderEntityKey;c&&this.ytdReduxBehavior.dispatch(_.cY("upcomingEventReminderStateEntity",c,{key:c,state:e.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.v.attached=function(){this.updateChannelBanner()};
_.v.dataChanged=function(){this.updateChannelBanner()};
_.v.videoReminderStateChanged=function(){var e;this.videoReminderState&&_.x((e=this.data)==null?void 0:e.cta,_.x8)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.v.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var e=_.F6(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);e&&(e.startsWith("//")&&(e="https:"+e),this.hostElement.classList.add("channel-banner"),_.Nk(this.hostElement,{"--ytvmh-channel-banner":"url("+e+")"}))}else _.G("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.v.onPlayerReady=function(){this.onIronResize()};
_.v.maybeFlushDebouncer=function(){_.G("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(e){var g;e=(g=e.getElementsByTagName("yt-attributed-string"))==null?void 0:g[0];Rrq(e==null?void 0:e.polymerController)})};
_.v.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var e=_.o1(this.hostElement).querySelector("#live-description"),g;e&&((g=this.data)==null?0:g.shortLiveDescription)&&e.clientWidth<e.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
ke.prototype.onIronResize=ke.prototype.onIronResize;ke.prototype.videoReminderStateChanged=ke.prototype.videoReminderStateChanged;ke.prototype.dataChanged=ke.prototype.dataChanged;ke.prototype.onYtToggleButton=ke.prototype.onYtToggleButton;_.t([_.m(_.Jc),_.B("design:type",Object)],ke.prototype,"ironResizableBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],ke.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],ke.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ke.prototype,"data",void 0);_.t([_.u({selectorArgs:["data.videoReminderEntityKey"],selector:i5g}),_.B("design:type",Object)],ke.prototype,"videoReminderState",void 0);
_.t([_.u({reflectToAttribute:!0,value:_.G("web_modern_buttons")}),_.B("design:type",Boolean)],ke.prototype,"rounded",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.B("design:type",Boolean)],ke.prototype,"hasLiveDescription",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.B("design:type",Boolean)],ke.prototype,"hasByline",void 0);
_.t([_.u({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.B("design:type",String)],ke.prototype,"adRenderingContextType",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],ke.prototype,"isMasthead",void 0);_.t([_.u({computed:"computeUsesAdButtonViewModel(data)"}),_.B("design:type",Boolean)],ke.prototype,"usesAdButtonViewModel",void 0);
_.t([_.u({reflectToAttribute:!0,value:_.G("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.B("design:type",Boolean)],ke.prototype,"resizableAdBannerSafariFix",void 0);_.t([_.eY("yt-formatted-string"),_.B("design:type",Array)],ke.prototype,"formattedStrings",void 0);_.t([_.Cs("#cta-button"),_.B("design:type",HTMLElement)],ke.prototype,"ctaButton",void 0);
_.t([_.Ks("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ke.prototype,"onYtToggleButton",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ke.prototype,"dataChanged",null);_.t([_.OY("videoReminderState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ke.prototype,"videoReminderStateChanged",null);
_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ke.prototype,"onIronResize",null);_.t([_.bF({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],ke);
_.U(ke,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(QrM!==void 0)return QrM;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return QrM=e},{mode:1});var UAM;var Ij=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};e.isLocked=!1;return e};
_.Y(Ij,_.z);_.v=Ij.prototype;_.v.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.v.onExpandedChanged=function(){this.expanded&&_.V1(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.v.onMouseOver=function(){this.maybeExpand()};
_.v.onTap=function(){this.maybeExpand()};
_.v.onExpandableTileExpanding=function(e){e!==this&&(this.expanded=!1)};
_.v.onExpandableTileLockAndCollapse=function(e){this.isLocked=!0;e!==this&&(this.expanded=!1)};
_.v.onExpandableTileUnlock=function(){this.isLocked=!1};
Ij.prototype.onTap=Ij.prototype.onTap;Ij.prototype.onMouseOver=Ij.prototype.onMouseOver;Ij.prototype.onExpandedChanged=Ij.prototype.onExpandedChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Ij.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ij.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ij.prototype,"expanded",void 0);_.t([_.k_("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ij.prototype,"onExpandedChanged",null);_.t([_.Ks("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ij.prototype,"onMouseOver",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ij.prototype,"onTap",null);
_.t([_.bF({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Ij);
_.U(Ij,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(UAM!==void 0)return UAM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return UAM=e},{mode:1});var oxM;var Jp=function(){var e=_.z.apply(this,arguments)||this;e.buttonOverrides={style:"overlay"};e.useYtdPlayer=_.G("use_ytd_player_for_desktop_masthead");e.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};e.playbackFinished=!1;e.JSC$16010_playerManager=null;e.JSC$16010_mastheadCounter=new XbM;return e};
_.Y(Jp,_.z);_.v=Jp.prototype;_.v.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.v.created=function(){this.JSC$16010_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$16010_playerManager=new g4)};
_.v.ready=function(){var e=this;this.JSC$16010_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var g=_.o1(this.hostElement).querySelector("#player");this.useYtdPlayer?g.style.display="none":(this.ytdPlayer.style.display="none",mVB(this.JSC$16010_playerManager,g,function(){e.onPlaybackEnded()}),_.o1(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var c;
((c=e.data)==null?0:c.navigationEndpoint)&&_.oC(e.hostElement,"yt-navigate",{endpoint:e.data.navigationEndpoint})}))};
_.v.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$16010_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.v.attached=function(){var e=this;_.Y_(function(){e.maybePlayVideo()})};
_.v.maybePlayVideo=function(){var e=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$16010_playerManager.playVideo(),this.getPlayerPromise().then(function(){e.JSC$16010_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.v.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16010_playerManager.stopVideo()};
_.v.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var e,g={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((e=this.data.playbackStartMs)!=null?e:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(g);this.setupYtdPlayer()}else T2Z(this.JSC$16010_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(pxq(this.JSC$16010_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.v.getPlayerPromise=function(){return this.JSC$16010_playerManager.getPlayerPromise()};
_.v.onYtToggleButton=function(e){this.useYtdPlayer?this.toggleMute(e.detail.toggled):e.detail.toggled?this.JSC$16010_playerManager.mute():this.JSC$16010_playerManager.unMute()};
_.v.onYtNavigate=function(e){var g=O7t(e.detail.endpoint),c=MbK(this.data.clickthroughReportingData);g&&c&&(e.detail.endpoint.watchEndpoint?e.detail.tempData=c:_.Ar(g,c,30))};
_.v.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.v.onExpandedChanged=function(){this.expanded?(_.V1(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.v.onMouseOver=function(){this.maybeExpand()};
_.v.onTap=function(){this.maybeExpand()};
_.v.onExpandableTileExpanding=function(e){e!==this&&(this.stopVideo(),this.expanded=!1)};
_.v.onExpandableTileLockAndCollapse=function(e){e!==this&&(this.isLocked=!0,this.expanded=!1)};
_.v.onExpandableTileUnlock=function(){this.isLocked=!1};
_.v.lockAndCollapseExpandableTiles=function(){_.Z5(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.v.unlockExpandableTiles=function(){_.Z5(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.v.setupYtdPlayer=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return c.yield(e.ytdPlayer.getPlayerPromise(),2);g=c.yieldResult;g.addEventListener("onStateChange",function(k){e.onPlayerStateChange(k)});
g.addEventListener("onCueRangeExit",function(k){e.onCueRangeExit(k)});
_.Uh(c)})};
_.v.onPlayerStateChange=function(e){if(e===1&&(e=this.ytdPlayer.getPlayer())){var g=e.getCurrentTime(),c,k,I=g+((k=(c=this.data)==null?void 0:c.playbackDurationMs)!=null?k:0)/1E3;e.addCueRange("playback",g,I);this.JSC$16010_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.v.onCueRangeExit=function(e){e==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.v.toggleMute=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(g.ytdPlayer.getPlayerPromise(),2);c=k.yieldResult;e?c.mute():c.unMute();_.Uh(k)})};
Jp.prototype.onTap=Jp.prototype.onTap;Jp.prototype.onMouseOver=Jp.prototype.onMouseOver;Jp.prototype.onExpandedChanged=Jp.prototype.onExpandedChanged;Jp.prototype.onYtNavigate=Jp.prototype.onYtNavigate;Jp.prototype.onYtToggleButton=Jp.prototype.onYtToggleButton;Jp.prototype.dataChanged=Jp.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Jp.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Jp.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Jp.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Jp.prototype,"expanded",void 0);_.t([_.u(),_.B("design:type",Object)],Jp.prototype,"buttonOverrides",void 0);
_.t([_.u(),_.B("design:type",Object)],Jp.prototype,"useYtdPlayer",void 0);_.t([_.Cs("#ytd-player"),_.B("design:type",Object)],Jp.prototype,"ytdPlayer",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jp.prototype,"dataChanged",null);_.t([_.Ks("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Jp.prototype,"onYtToggleButton",null);
_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Jp.prototype,"onYtNavigate",null);_.t([_.k_("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jp.prototype,"onExpandedChanged",null);_.t([_.Ks("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jp.prototype,"onMouseOver",null);
_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jp.prototype,"onTap",null);_.t([_.bF({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Jp);
_.U(Jp,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(oxM!==void 0)return oxM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return oxM=e},{mode:1});var Zkq;var vu=function(){return _.z.apply(this,arguments)||this};
_.Y(vu,_.z);vu.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
vu.prototype.onShow=function(){var e=_.o1(this.hostElement).querySelector("#live-description"),g;e&&((g=this.data)==null?0:g.shortLiveDescription)&&e.clientWidth<e.scrollWidth&&this.hostElement.classList.add("short-live-description")};
vu.prototype.onYtToggleButton=function(e){var g,c=(g=this.data)==null?void 0:g.videoReminderEntityKey;c&&this.ytdReduxBehavior.dispatch(_.cY("upcomingEventReminderStateEntity",c,{key:c,state:e.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
vu.prototype.videoReminderStateChanged=function(){var e;this.videoReminderState&&_.x((e=this.data)==null?void 0:e.cta,_.x8)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
vu.prototype.videoReminderStateChanged=vu.prototype.videoReminderStateChanged;vu.prototype.onYtToggleButton=vu.prototype.onYtToggleButton;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vu.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],vu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],vu.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vu.prototype,"data",void 0);
_.t([_.u({selectorArgs:["data.videoReminderEntityKey"],selector:i5g}),_.B("design:type",Object)],vu.prototype,"videoReminderState",void 0);_.t([_.Ks("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vu.prototype,"onYtToggleButton",null);_.t([_.OY("videoReminderState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vu.prototype,"videoReminderStateChanged",null);
_.t([_.bF({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],vu);
_.U(vu,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Zkq!==void 0)return Zkq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Zkq=e},{mode:2});var V2s;var wz=function(){var e=_.z.apply(this,arguments)||this;e.useYtdPlayer=_.G("use_ytd_player_for_desktop_masthead");e.buttonOverrides={style:"overlay"};e.JSC$16018_playerManager=null;e.JSC$16018_mastheadCounter=new XbM;e.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return e};
_.Y(wz,_.z);_.v=wz.prototype;_.v.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.v.created=function(){this.JSC$16018_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$16018_playerManager=new g4)};
_.v.ready=function(){var e=this;this.JSC$16018_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var g;(g=this.embeddedPlayer)==null||g.remove()}else{var c;(c=this.ytdPlayer)==null||c.remove();mVB(this.JSC$16018_playerManager,this.embeddedPlayer,function(){e.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){e.data&&e.data.navigationEndpoint&&_.oC(e.hostElement,"yt-navigate",{endpoint:e.data.navigationEndpoint})})}};
_.v.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$16018_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.v.dataChanged=function(){var e=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var g=!this.data.disableAutoPlayback,c,k={autoplay:g,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((c=this.data.playbackStartMs)!=null?c:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(g?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(k);this.setupYtdPlayer()}else T2Z(this.JSC$16018_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(pxq(this.JSC$16018_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$16018_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Z5(e.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");e.JSC$16018_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.v.getPlayerPromise=function(){return this.JSC$16018_playerManager.getPlayerPromise()};
_.v.onYtToggleButton=function(e){this.useYtdPlayer?this.toggleMute(e.detail.toggled):e.detail.toggled?this.JSC$16018_playerManager.mute():this.JSC$16018_playerManager.unMute()};
_.v.onYtNavigate=function(e){var g=O7t(e.detail.endpoint),c=MbK(this.data.clickthroughReportingData);g&&c&&(e.detail.endpoint.watchEndpoint?e.detail.tempData=c:_.Ar(g,c,30))};
_.v.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16018_playerManager.stopVideo()};
_.v.setupYtdPlayer=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return c.yield(e.ytdPlayer.getPlayerPromise(),2);g=c.yieldResult;g.addEventListener("onStateChange",function(k){e.onPlayerStateChange(k)});
g.addEventListener("onCueRangeExit",function(k){e.onCueRangeExit(k)});
_.Uh(c)})};
_.v.onPlayerStateChange=function(e){if(e===1&&(e=this.ytdPlayer.getPlayer())){var g=e.getCurrentTime(),c,k,I=g+((k=(c=this.data)==null?void 0:c.playbackDurationMs)!=null?k:0)/1E3;e.addCueRange("playback",g,I);_.Z5(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$16018_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.v.onCueRangeExit=function(e){e==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.v.toggleMute=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(g.ytdPlayer.getPlayerPromise(),2);c=k.yieldResult;e?c.mute():c.unMute();_.Uh(k)})};
_.Bd.Object.defineProperties(wz.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var e,g;if(!((e=this.data)==null?0:(g=e.accessibilityData)==null?0:g.label))return"Ad primary link";var c,k;return _.C_("AD_TITLE",{title:(c=this.data)==null?void 0:(k=c.accessibilityData)==null?void 0:k.label})}}});
wz.prototype.onYtMastheadHidden=wz.prototype.onYtMastheadHidden;wz.prototype.onYtNavigate=wz.prototype.onYtNavigate;wz.prototype.onYtToggleButton=wz.prototype.onYtToggleButton;wz.prototype.dataChanged=wz.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],wz.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wz.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],wz.prototype,"useYtdPlayer",void 0);_.t([_.Cs("ytd-toggle-button-renderer"),_.B("design:type",Object)],wz.prototype,"muteButton",void 0);_.t([_.u(),_.B("design:type",Object)],wz.prototype,"buttonOverrides",void 0);
_.t([_.p("data.accessibilityData.label"),_.B("design:type",String),_.B("design:paramtypes",[])],wz.prototype,"titleAriaLabel",null);_.t([_.Cs("#replay-button"),_.B("design:type",Object)],wz.prototype,"replayButton",void 0);_.t([_.Cs("#player-container"),_.B("design:type",Object)],wz.prototype,"playerContainer",void 0);_.t([_.Cs("#player"),_.B("design:type",Object)],wz.prototype,"embeddedPlayer",void 0);_.t([_.Cs("#ytd-player"),_.B("design:type",Object)],wz.prototype,"ytdPlayer",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wz.prototype,"dataChanged",null);_.t([_.Ks("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],wz.prototype,"onYtToggleButton",null);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],wz.prototype,"onYtNavigate",null);
_.t([_.Ks("yt-masthead-hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wz.prototype,"onYtMastheadHidden",null);_.t([_.bF({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],wz);
_.U(wz,"ytd-video-masthead-ad-primary-video-renderer",function(){if(V2s!==void 0)return V2s;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return V2s=e},{mode:2});var t2M;var qu=function(){var e=_.z.apply(this,arguments)||this;e.collapsed=!1;e.impressionResolver=_.i6();e.JSC$16022_activeViewMeasurementDataResolver=_.i6();e.actionMap={"yt-mute-ad-action":"handleMuteAd"};return e};
_.Y(qu,_.z);_.v=qu.prototype;_.v.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.created=function(){this.activeView=new Uc(this.hostElement)};
_.v.ready=function(){var e=this;_.o1(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){e.expandAd()});
this.hostElement.addEventListener("yt-action",function(g){if(g.detail.actionName==="yt-service-request"){var c=g.detail.args[1];c.videoMastheadAdMuteCommand&&(e.collapseAd(c.videoMastheadAdMuteCommand.encryptedMastheadId),g.stopPropagation())}})};
_.v.attached=function(){var e=this;_.Y_(function(){e.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(g){if(!e.collapsed){g=_.w(g);for(var c=g.next();!c.done;c=g.next())c=c.value,dK(c.baseUrl,c.attributionSrcMode);e.data.impressionCommand=void 0}});
this.JSC$16022_activeViewMeasurementDataResolver.promise.then(function(g){oG(e.activeView,g)});
_.G("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZG(e.activeView)})};
_.v.dataChanged=function(){var e;((e=this.data.impressionCommand)==null?0:e.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var g;((g=this.data)==null?0:g.activeView)&&this.JSC$16022_activeViewMeasurementDataResolver.resolve(this.data.activeView);(e=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(e.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.v.computeWidescreen=function(e){var g;return!!(e&&((g=_.x(e,JSZ))==null?0:g.isWidescreen))};
_.v.computeExpandable=function(e){return!!(e&&e.length>0)};
_.v.onIronResize=function(){if(this.expandable){var e=_.o1(this.hostElement).querySelector("#expandable-tile-container :first-child");e&&!e.expanded&&(e.expanded=!0)}};
_.v.handleMuteAd=function(){this.collapseAd(null)};
_.v.restoreCollapsedState=function(e){this.collapsed=_.ch().get("HIDDEN_MASTHEAD_ID")===e};
_.v.collapseAd=function(e){if(e){var g=_.ch();g.set("HIDDEN_MASTHEAD_ID",e);g.save()}(e=_.o1(this.hostElement).querySelector("#video"))&&_.oC(e,"yt-masthead-hidden");this.collapsed=!0};
_.v.expandAd=function(){var e=_.ch();e.set("HIDDEN_MASTHEAD_ID",!1);e.save();location.reload()};
_.v.detached=function(){_.G("stop_av_measurement_on_detach")&&ZG(this.activeView)};
qu.prototype.onIronResize=qu.prototype.onIronResize;qu.prototype.dataChanged=qu.prototype.dataChanged;_.t([_.m(_.Jc),_.B("design:type",Object)],qu.prototype,"ironResizableBehavior",void 0);_.t([_.m(_.Gd),_.B("design:type",Object)],qu.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],qu.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qu.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.B("design:type",Boolean)],qu.prototype,"widescreen",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.B("design:type",Boolean)],qu.prototype,"expandable",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],qu.prototype,"collapsed",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qu.prototype,"dataChanged",null);_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qu.prototype,"onIronResize",null);_.t([_.bF({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],qu);
_.U(qu,"ytd-video-masthead-ad-v3-renderer",function(){if(t2M!==void 0)return t2M;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return t2M=e},{mode:2});var L7=function(){return _.z.apply(this,arguments)||this};
_.Y(L7,_.z);_.v=L7.prototype;_.v.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.v.ready=function(){var e=this;jJz(function(){e.isAttached&&lD(e.JSC$16027_storedAdSlotMetadata,e.JSC$16027_storedAdLayoutMetadata,e.adSlotMetadata,e.adLayoutMetadata)&&gz(C$(),e.JSC$16027_storedAdSlotMetadata,e.JSC$16027_storedAdLayoutMetadata)})};
_.v.attached=function(){lD(this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&fzn(C$(),this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata)};
_.v.detached=function(){lD(this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gz(C$(),this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata)};
_.v.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$16027_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$16027_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$16027_storedAdLayoutMetadata!==void 0&&this.JSC$16027_storedAdSlotMetadata!==void 0&&gz(C$(),this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata),fzn(C$(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$16027_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$16027_storedAdSlotMetadata=this.adSlotMetadata)};
_.Bd.Object.defineProperties(L7.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.adLayoutMetadata}}});
L7.prototype.onAdMetadataChanged=L7.prototype.onAdMetadataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],L7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],L7.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],L7.prototype,"data",void 0);_.t([_.p("data.adLayoutMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],L7.prototype,"adLayoutMetadata",null);
_.t([_.u(),_.B("design:type",Object)],L7.prototype,"adSlotMetadata",void 0);_.t([_.OY("adLayoutMetadata","adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L7.prototype,"onAdMetadataChanged",null);_.t([_.bF({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],L7);
_.U(L7,"ytd-page-top-ad-layout-renderer",function(){if(Hkn!==void 0)return Hkn;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Hkn=
e},{mode:2});var BUZ;var rz=function(){var e=_.z.apply(this,arguments)||this;e.noBottomMargin=!1;e.overlayDensity=0;e.typographyBump=!1;e.extractOverlay=!1;e.extractActionBar=!1;return e};
_.Y(rz,_.z);_.v=rz.prototype;
_.v.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.v.ready=function(){var e=this;jJz(function(){e.isAttached&&e.adSlotMetadata&&Y3n(C$(),e.adSlotMetadata)})};
_.v.attached=function(){if(this.adSlotMetadata){var e;if(this.adSlotMetadata===((e=this.data)==null?void 0:e.adSlotMetadata))$A1(C$(),this.adSlotMetadata);else{var g;_.mN(Error("Ph`"+this.adSlotMetadata+"`"+((g=this.data)==null?void 0:g.adSlotMetadata)))}}};
_.v.detached=function(){this.adSlotMetadata&&Y3n(C$(),this.adSlotMetadata)};
_.v.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.v.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Y3n(C$(),this.adSlotMetadata),$A1(C$(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Bd.Object.defineProperties(rz.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var e,g,c=_.x((e=this.data)==null?void 0:(g=e.fulfillmentContent)==null?void 0:g.fulfilledLayout,_.wk1),k;return(e=(k=_.x(c==null?void 0:c.renderingContent,vHq))==null?void 0:k.layout)?e.toLowerCase().replace(/_/g,"-"):""}}});
rz.prototype.onAdSlotMetadataChanged=rz.prototype.onAdSlotMetadataChanged;rz.prototype.onTypographyBumpChanged=rz.prototype.onTypographyBumpChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],rz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],rz.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],rz.prototype,"rendererBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],rz.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],rz.prototype,"noBottomMargin",void 0);_.t([_.u(),_.B("design:type",Object)],rz.prototype,"overlayDensity",void 0);_.t([_.u(),_.B("design:type",Object)],rz.prototype,"typographyBump",void 0);_.t([_.u(),_.B("design:type",Object)],rz.prototype,"extractOverlay",void 0);_.t([_.u(),_.B("design:type",Object)],rz.prototype,"extractActionBar",void 0);
_.t([_.Cs("ytd-in-feed-ad-layout-renderer"),_.B("design:type",HTMLElement)],rz.prototype,"inFeedAdLayoutRenderer",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",String),_.B("design:paramtypes",[])],rz.prototype,"layout",null);_.t([_.OY("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rz.prototype,"onTypographyBumpChanged",null);
_.t([_.OY("data.adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rz.prototype,"onAdSlotMetadataChanged",null);_.t([_.bF({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],rz);
_.U(rz,"ytd-ad-slot-renderer",function(){if(BUZ!==void 0)return BUZ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return BUZ=e},{mode:2});var NUu;var aj=function(){return _.z.apply(this,arguments)||this};
_.Y(aj,_.z);_.v=aj.prototype;_.v.created=function(){this.activeView=new Uc(this.hostElement)};
_.v.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.v.maybeComputeHref=function(){return null};
_.v.onTap=function(){};
_.v.onThumbnailContainerClick=function(e){this.onClick(e)};
_.v.onClick=function(e){var g,c=(g=this.data)==null?void 0:g.navigationEndpoint;c&&_.x(c,_.Pm)&&(this.ytSparklesClickLocationBehavior.handleClick(c,e,!1),e.stopPropagation())};
_.v.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var e=_.w(this.data.impressionUrls),g=e.next();!g.done;g=e.next())g=g.value,x2C(g,$2q(g));this.data.activeView&&oG(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",aj.JSC$16035_DEFAULT_CLICK_LOCATION_BEHAVIOR,aj.JSC$16035_CLICK_LOCATION_ID_MAP);this.thumbnail&&(e=this.thumbnail.getElementsByTagName("a"),e.length>0&&(e=e.namedItem("thumbnail"))&&e.removeAttribute("href"))}};
_.v.attached=function(){var e=this;_.G("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZG(e.activeView)})};
_.v.detached=function(){_.G("stop_av_measurement_on_detach")&&ZG(this.activeView)};
_.Bd.Object.defineProperties(aj.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.G("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.G("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
aj.prototype.dataChanged=aj.prototype.dataChanged;aj.prototype.onTap=aj.prototype.onTap;aj.JSC$16035_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
aj.JSC$16035_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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],aj.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],aj.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Fk.YtSparklesClickLocationBehavior),_.B("design:type",Object)],aj.prototype,"ytSparklesClickLocationBehavior",void 0);
_.t([_.u({selector:_.E1}),_.B("design:type",Object)],aj.prototype,"isGridViewEnabled",void 0);_.t([_.p("isGridViewEnabled"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],aj.prototype,"watchFeedBigThumbs",null);_.t([_.p("isGridViewEnabled"),_.u({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],aj.prototype,"thumbnailWidth",null);_.t([_.u(),_.B("design:type",Object)],aj.prototype,"data",void 0);
_.t([_.Cs("ytd-thumbnail"),_.B("design:type",HTMLElement)],aj.prototype,"thumbnail",void 0);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aj.prototype,"onTap",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aj.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],aj);
_.U(aj,"ytd-compact-promoted-video-renderer",function(){if(NUu!==void 0)return NUu;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return NUu=e},{mode:1});var S3w;_.qH("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var n7=function(){return _.z.apply(this,arguments)||this};
_.Y(n7,_.z);n7.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],n7.prototype,"data",void 0);_.t([_.bF({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],n7);
_.U(n7,"ytd-search-pyv-renderer",function(){if(S3w!==void 0)return S3w;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return S3w=e},{mode:1});var ylk;_.qH("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Rj=function(){var e=_.z.apply(this,arguments)||this;e.roundedContainer=!0;e.JSC$16043_handleOpenPostCommentDialogActionAfterStamp=!1;e.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return e};
_.Y(Rj,_.z);_.v=Rj.prototype;
_.v.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.v.onStampFinished=function(){this.JSC$16043_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.v.handleSignalActionOpenPostCommentDialogAction=function(){var e=_.o1(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");e?e.openDialog():this.JSC$16043_handleOpenPostCommentDialogActionAfterStamp=!0};
_.v.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.v.computeHideBorder=function(){return this.isInEngagementPanel};
_.v.computeIsCompact=function(){return this.isInEngagementPanel};
_.v.computeUsesCompactLockup=function(e){return e==="BACKSTAGE_SURFACE_TYPE_HOME"||e==="BACKSTAGE_SURFACE_TYPE_SEARCH"||e==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||e==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||e==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||e==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.v.computeUsesFullLockup=function(){var e,g=(e=this.data)==null?void 0:e.post,c;e=(c=_.x(g,x94))==null?void 0:c.surface;var k;c=(k=_.x(g,YSq))==null?void 0:k.originalPost;var I;if(k=e||((I=_.x(c,x94))==null?void 0:I.surface))return!this.computeUsesCompactLockup(k)&&this.useUpdatedRepostUi;var J;return((J=_.x(g,YSq))==null?void 0:J.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Bd.Object.defineProperties(Rj.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var e,g;return((g=_.x((e=this.data)==null?void 0:e.post,x94))==null?void 0:g.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.useUpdatedRepostUi}}});
Rj.prototype.onYtCommentModerationPanelEmpty=Rj.prototype.onYtCommentModerationPanelEmpty;Rj.prototype.onStampFinished=Rj.prototype.onStampFinished;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Rj.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],Rj.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Rj.prototype,"roundedContainer",void 0);_.t([_.u({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Rj.prototype,"hideBorder",void 0);_.t([_.u({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Rj.prototype,"isCompact",void 0);
_.t([_.u({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Rj.prototype,"usesFullLockup",void 0);_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rj.prototype,"onStampFinished",null);
_.t([_.Ks("ytd-comment-moderation-panel-empty"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Rj.prototype,"onYtCommentModerationPanelEmpty",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rj.prototype,"isInEngagementPanel",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rj.prototype,"useUpdatedRepostUi",null);
_.t([_.bF({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Rj);
_.U(Rj,"ytd-backstage-post-thread-renderer",function(){if(ylk!==void 0)return ylk;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ylk=e},{mode:1});var KIw;var EP=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(EP,_.z);EP.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
EP.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var e=this.data.thumbnail.thumbnails;this.isDarkTheme&&(e=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(e=_.F6(e,24,void 0,"height"))?e:void 0}};
EP.prototype.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
EP.prototype.computeHasText=function(){var e;return!((e=this.data)==null||!e.text)};
_.Bd.Object.defineProperties(EP.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Km(this.bannerImageUrl))+'");'}}});
EP.prototype.computeHasText=EP.prototype.computeHasText;EP.prototype.computeBannerImageUrl=EP.prototype.computeBannerImageUrl;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],EP.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],EP.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],EP.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],EP.prototype,"isDarkTheme",void 0);_.t([_.u(),_.B("design:type",String)],EP.prototype,"bannerImageUrl",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.B("design:type",Boolean)],EP.prototype,"hasText",void 0);_.t([_.OY("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EP.prototype,"computeBannerImageUrl",null);
_.t([_.OY("data.text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EP.prototype,"computeHasText",null);_.t([_.p("bannerImageUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],EP.prototype,"bannerStyle",null);_.t([_.bF({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],EP);
_.U(EP,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(KIw!==void 0)return KIw;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return KIw=e},{mode:1});var Oku;var Wu=function(){return _.z.apply(this,arguments)||this};
_.Y(Wu,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Wu.prototype,"data",void 0);_.t([_.bF({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Wu);
_.U(Wu,"ytd-backstage-zero-state-renderer",function(){if(Oku!==void 0)return Oku;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Oku=e},{mode:1});var M2B;var bP=function(){return _.z.apply(this,arguments)||this};
_.Y(bP,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],bP.prototype,"data",void 0);_.t([_.u({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],bP.prototype,"icon",void 0);_.t([_.bF({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],bP);
_.U(bP,"ytd-post-filter-zero-state-renderer",function(){if(M2B!==void 0)return M2B;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return M2B=e},{mode:1});var CO4;var eMZ={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},hp=function(){return _.z.apply(this,arguments)||this};
_.Y(hp,_.z);hp.prototype.configureRendererStamper=function(){return eMZ};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],hp.prototype,"rendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],hp.prototype,"data",void 0);_.t([_.u({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],hp.prototype,"icon",void 0);_.t([_.bF({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],hp);
_.U(hp,"ytd-post-scheduling-zero-state-renderer",function(){if(CO4!==void 0)return CO4;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return CO4=e},{mode:1});var g7s;var Xo=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return e};
_.Y(Xo,_.z);Xo.prototype.onTabsActivate=function(e){this.data&&this.data.tabs&&_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[e.detail.selected].navigationEndpoint})};
Xo.prototype.shouldShowTotalCount=function(e){return e&&e.totalCount!==void 0};
Xo.prototype.handleUpdatePostsTotalCountAction=function(e){var g=this.get(["data.tabs",1,"totalCount"]),c=this.get("updatePostsTotalCountAction.updateType",e);e=this.get("updatePostsTotalCountAction.number",e);g!==void 0&&c!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&e&&(c==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(g)+e):c==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(g)-e))};
_.Bd.Object.defineProperties(Xo.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var e=0,g=this.data.tabs.length;e<g;e++)if(this.data.tabs[e].selected)return e;return 0}}});
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Xo.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Xo.prototype,"rendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Xo.prototype,"data",void 0);_.t([_.p("data.tabs"),_.B("design:type",Number),_.B("design:paramtypes",[])],Xo.prototype,"selected",null);_.t([_.bF({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Xo);
_.U(Xo,"ytd-post-stream-filter-renderer",function(){if(g7s!==void 0)return g7s;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return g7s=e},{mode:1});var cBq;var f7=function(){return _.z.apply(this,arguments)||this};
_.Y(f7,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],f7.prototype,"kevlarBehaviors",void 0);_.t([_.u(),_.B("design:type",Object)],f7.prototype,"data",void 0);_.t([_.bF({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],f7);
_.U(f7,"ytd-channel-age-gate-renderer",function(){if(cBq!==void 0)return cBq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return cBq=e},{mode:1});var kfv;_.qH("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var jb=function(){var e=_.z.apply(this,arguments)||this;e.data=null;return e};
_.Y(jb,_.z);jb.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Bd.Object.defineProperties(jb.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((e=this.data)==null?0:(g=e.title)==null?0:(c=g.runs)==null?0:c.length)?147:160}}});
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],jb.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],jb.prototype,"imageSizePx",null);_.t([_.bF({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],jb);
_.U(jb,"ytd-channel-owner-empty-state-renderer",function(){if(kfv!==void 0)return kfv;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return kfv=e},{mode:1});var Ipn;var JB1;var iP=function(){var e=_.z.apply(this,arguments)||this;e.boundSubmitSearch=function(){e.submitSearch()};
e.boundClearSearch=function(){e.clearSearch()};
return e};
_.Y(iP,_.z);_.v=iP.prototype;_.v.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.v.toggleClearButton=function(){this.hideClearButton=GDq||!this.input.value};
_.v.submitOnEnterKeyUp=function(e){e.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.v.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.v.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.v.submit=function(){_.oC(this.hostElement,"search-query-changed",this.input.value)};
iP.prototype.toggleClearButton=iP.prototype.toggleClearButton;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],iP.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],iP.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],iP.prototype,"hideClearButton",void 0);_.t([_.u(),_.B("design:type",Object)],iP.prototype,"boundSubmitSearch",void 0);_.t([_.u(),_.B("design:type",Object)],iP.prototype,"boundClearSearch",void 0);_.t([_.Cs("#input"),_.B("design:type",Object)],iP.prototype,"input",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iP.prototype,"toggleClearButton",null);
_.t([_.bF({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],iP);
_.U(iP,"ytd-channel-switcher-search-box-renderer",function(){if(JB1!==void 0)return JB1;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return JB1=e},{mode:1});var v7u;var Pu=function(){var e=_.z.apply(this,arguments)||this;e.boundSubmit=function(){e.submit()};
return e};
_.Y(Pu,_.z);_.v=Pu.prototype;_.v.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.v.ready=function(){var e=this;this.form.addEventListener("submit",function(g){return e.onSubmit(g)})};
_.v.onSubmit=function(e){e.preventDefault();return!1};
_.v.toggleClearButton=function(){this.hideClearButton=GDq||!this.input.value};
_.v.submitOnEnterKeyUp=function(e){e.keyCode===13&&this.submit()};
_.v.submit=function(){var e=this.data.endpoint,g=(0,_.n0.unsafeClone)(e);_.x(g,_.KU)?_.x(g,_.KU).query=this.input.value:_.x(g,_.Oo)&&(_.x(g,_.Oo).query=this.input.value);var c=_.x(g.commandMetadata,_.OM);(c==null?0:c.url)?(c.url=_.cH(c.url,"query",this.input.value),_.oC(this.hostElement,"yt-navigate",{endpoint:g})):_.x(g,CNs)?(_.x(g,CNs).channelSwitcherQuery=this.input.value,_.Ss().resolve(_.xk).resolveCommand(g,{form:{element:this.hostElement}})):(e=Error("Qh`"+JSON.stringify(e)),_.jW(e))};
_.v.getUrl=function(e){return this.get("commandMetadata.webCommandMetadata.url",e)};
Pu.prototype.toggleClearButton=Pu.prototype.toggleClearButton;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Pu.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Pu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Pu.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Pu.prototype,"hideClearButton",void 0);
_.t([_.u(),_.B("design:type",Object)],Pu.prototype,"boundSubmit",void 0);_.t([_.Cs("#form"),_.B("design:type",HTMLFormElement)],Pu.prototype,"form",void 0);_.t([_.Cs("#input"),_.B("design:type",Object)],Pu.prototype,"input",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pu.prototype,"toggleClearButton",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Pu);
_.U(Pu,"ytd-search-box-renderer",function(){if(v7u!==void 0)return v7u;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n  </tp-yt-paper-input>\n  <div id="search-button" class="style-scope ytd-search-box-renderer"></div>\n  <div id="clear-button" class="style-scope ytd-search-box-renderer"></div>\n</form>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return v7u=e},{mode:2});var md=function(){var e=_.z.apply(this,arguments)||this;e.showSearchBox=!0;return e};
_.Y(md,_.z);md.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],md.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],md.prototype,"showSearchBox",void 0);_.t([_.bF({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],md);
_.U(md,"ytd-channel-switcher-header-renderer",function(){if(Ipn!==void 0)return Ipn;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Ipn=e},{mode:1});var wDq;var qDB;var p7=function(){var e=_.z.apply(this,arguments)||this;e.isDisplayed=!0;return e};
_.Y(p7,_.z);_.v=p7.prototype;_.v.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.dataChanged=function(){this.isDisplayed=!0};
_.v.computeType=function(e){return e||"UNKNOWN"};
_.v.onYtServiceRequestCompleted=function(e){e.stopPropagation();this.isDisplayed=!1};
_.v.onClose=function(){this.isDisplayed=!1};
p7.prototype.onYtServiceRequestCompleted=p7.prototype.onYtServiceRequestCompleted;p7.prototype.dataChanged=p7.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],p7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],p7.prototype,"data",void 0);
_.t([_.u({computed:"computeType(data.type)",reflectToAttribute:!0}),_.B("design:type",String)],p7.prototype,"type",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],p7.prototype,"isDisplayed",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p7.prototype,"dataChanged",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],p7.prototype,"onYtServiceRequestCompleted",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],p7);
_.U(p7,"ytd-alert-with-button-renderer",function(){if(qDB!==void 0)return qDB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return qDB=e},{mode:1});var T2=function(){var e=_.z.apply(this,arguments)||this;e.noResult=!1;e.enableAlertBanner=!1;e.dismissedAlertBanner=!1;e.hideCreateChannelButton=!1;e.boundDismissAlertBanner=function(){e.dismissAlertBanner()};
e.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return e};
_.Y(T2,_.z);_.v=T2.prototype;_.v.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.v.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.v.updateChannelSwitcherAction=function(e){var g;e=(g=_.x(e,MR1))==null?void 0:g.page;_.x(e,Ozk)!==void 0&&(this.data=_.x(e,Ozk))};
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.v.searchQueryChanged=function(e,g){if(this.data&&this.data.contents&&this.data.contents.length){e=[];var c=[];this.hideCreateChannelButton=this.noResult=!1;for(var k=document.querySelectorAll("ytd-account-item-renderer"),I=_.w(k),J=I.next();!J.done;J=I.next())J=J.value,c.push(J),J.style.display="block";this.resetRightBorder(c);if(g){this.hideCreateChannelButton=!0;for(c=1;c<this.data.contents.length;c++)if(J=this.data.contents[c],_.x(J,KEM)){var q=void 0,L=void 0;I=(q=_.x(J,KEM))==null?void 0:(L=
q.accountName)==null?void 0:L.simpleText;L=q=void 0;J=(q=_.x(J,KEM))==null?void 0:(L=q.channelHandle)==null?void 0:L.simpleText;(q=k[c-1])&&I&&_.EC(I,g)?e.push(q):_.G("enable_handle_search_on_channel_switcher")&&q&&J&&_.EC(J.toString(),g.toString())?e.push(q):q.style.display="none"}e.length===0&&(this.noResult=!0);this.resetRightBorder(e)}}};
_.v.resetRightBorder=function(e){for(var g=0;g<e.length;g++)e[g].style.borderRight=!this.hideCreateChannelButton&&(g+2)%3===0||this.hideCreateChannelButton&&(g+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.v.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.v.setShowSearchBox=function(e){if(e&&e.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var g=0;g<e.contents.length;g++)_.x(e.contents[g],_.zM)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.v.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Bd.Object.defineProperties(T2.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null?0:e.contents)}}});
T2.prototype.onContinuationItemsUpdated=T2.prototype.onContinuationItemsUpdated;T2.prototype.searchQueryChanged=T2.prototype.searchQueryChanged;T2.prototype.onDataChanged=T2.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],T2.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.Tk),_.B("design:type",Object)],T2.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],T2.prototype,"data",void 0);_.t([_.Cs("ytd-channel-switcher-header-renderer"),_.B("design:type",Object)],T2.prototype,"channelSwitcherHeaderRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],T2.prototype,"noResult",void 0);
_.t([_.u(),_.B("design:type",Object)],T2.prototype,"enableAlertBanner",void 0);_.t([_.u(),_.B("design:type",Object)],T2.prototype,"dismissedAlertBanner",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],T2.prototype,"hideCreateChannelButton",void 0);_.t([_.p("data.contents"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],T2.prototype,"isLoading",null);_.t([_.u(),_.B("design:type",Object)],T2.prototype,"boundDismissAlertBanner",void 0);
_.t([_.u({computed:"computeButtonOverride()"}),_.B("design:type",Object)],T2.prototype,"buttonOverride",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T2.prototype,"onDataChanged",null);_.t([_.Ks("search-query-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],T2.prototype,"searchQueryChanged",null);
_.t([_.Ks("yt-next-continuation-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],T2.prototype,"onContinuationItemsUpdated",null);_.t([_.bF({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],T2);
_.U(T2,"ytd-channel-switcher-page-renderer",function(){if(wDq!==void 0)return wDq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return wDq=e},{mode:1});var Lrw;var rBZ;var lP=function(){var e=_.z.apply(this,arguments)||this;e.images=[];e.selectedImageIndex=0;return e};
_.Y(lP,_.z);_.v=lP.prototype;
_.v.ready=function(){_.iK(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.iK(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.iK(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.iK(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,!1,this)};
_.v.onThumbnailClick=function(e){if(e=e.event_.detail)this.selectedImageIndex=this.images.indexOf(e)};
_.v.updateImageThumbnails=function(e){e=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:e.event_.detail});this.images.splice(this.selectedImageIndex,1,e);this.images=[].concat(_.KY(this.images))};
_.v.cancelImageRepositions=function(){this.selectedImageIndex=0;_.oC(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.v.saveImageRepositions=function(){this.selectedImageIndex=0;_.oC(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Bd.Object.defineProperties(lP.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var e=this;return(this.images||[]).map(function(g,c){return{image:g,selected:c===e.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Cs("ytd-backstage-image-preview-renderer"),_.B("design:type",Object)],lP.prototype,"imagePreviewContainer",void 0);_.t([_.Cs(".thumbnail-images-container"),_.B("design:type",HTMLElement)],lP.prototype,"thumbnailImagesContainer",void 0);_.t([_.u(),_.B("design:type",Array)],lP.prototype,"images",void 0);
_.t([_.u(),_.B("design:type",Object)],lP.prototype,"repositionInstructions",void 0);_.t([_.u(),_.B("design:type",Object)],lP.prototype,"selectedImageIndex",void 0);_.t([_.p("images","selectedImageIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],lP.prototype,"thumbnailRendererDatas",null);_.t([_.p("images","selectedImageIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],lP.prototype,"selectedImageData",null);
_.t([_.bF({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],lP);
_.oI()(lP,"ytd-backstage-multi-image-reposition-renderer",function(){if(rBZ===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);rBZ=e}e=rBZ;return e},{allowedProps:["images",
"repositionInstructions"],mode:1});var Ap=function(e,g){_.jv.call(this);this.uploadUrl=e;this.channelId=g;this.imagesUploadData=[]};
_.Y(Ap,_.jv);Ap.prototype.getAllUploadStatuses=function(){var e=this,g,c,k;return _.r(function(I){if(I.nextAddress==1)return I.yield(aps(e),2);g=I.yieldResult;c=g.get("succeed");k=g.get("failed");return I.return(c.concat(k))})};
var RMq=function(e){var g,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(aps(e),2);g=k.yieldResult;c=g.get("failed");c.length>0&&n7B(e,c);return k.return(e.getAllUploadStatuses())})},aps=function(e){var g,c,k,I,J,q,L;
return _.r(function(n){if(n.nextAddress==1)return g=new Map,n.yield(Promise.allSettled(e.imagesUploadData.map(function(R){return R.uploadPromise})),2);
c=n.yieldResult;k=[];I=_.w(c);for(J=I.next();!J.done;J=I.next())q=J.value,q.status==="fulfilled"&&k.push(q.value);L=e.imagesUploadData.map(function(R){return R.image}).filter(function(R){return k.every(function(W){return W.id!==R.id})});
g.set("succeed",k);g.set("failed",L);return n.return(g)})},n7B=function(e,g){g=_.w(g);
for(var c=g.next();!c.done;c=g.next()){var k=e;c=c.value;E7n(k,c.id)>=0&&k.cancel(c.id);var I=new WrM(c),J=_.Hwq(k.uploadUrl,{"X-YouTube-ChannelId":k.channelId},c.imageBlob);I.transfer=J;I.uploadPromise=bIu(J,c);k.imagesUploadData.push(I);J.run()}};
Ap.prototype.cancel=function(e){var g=E7n(this,e);g!==-1&&((g=this.imagesUploadData[g].transfer)&&g.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(c){return c.image.id!==e}))};
var E7n=function(e,g){return e.imagesUploadData.findIndex(function(c){return c.image.id===g})},bIu=function(e,g){return new Promise(function(c,k){e.listen("l",function(){var I=e.getResponseText();
I?(I=JSON.parse(I).encryptedBlobId,g.encryptedBlobId=I,c(g)):k("upload failed")});
e.listen("n",function(){k("upload failed")})})},WrM=function(e){this.image=e};var EZ6=function(e,g,c,k,I){this.id=e;this.imageBlob=g;this.localImageSrc=c;this.naturalWidth=k;this.naturalHeight=I;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 hMq=[".jpeg",".jpg",".png"],sP=function(){var e=_.z.apply(this,arguments)||this;e.showImagesPreview=!1;e.pollOptions=[];e.errorMessage="";e.optionPlaceholderText="";e.optionDefaultText="";e.JSC$16099_imageId=0;e.maxFileSizeMb=0;e.maxAspectRatio=0;e.invalidFileSizeError="";e.invalidAspectRatioError="";e.invalidFileTypeError="";e.imageSelector=new VZ(null,"single_file",hMq);return e};
_.Y(sP,_.z);_.v=sP.prototype;_.v.ready=function(){_.iK(this.imageSelector,"j",this.onImageSelect,!1,this);_.iK(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.iK(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.v.dataChanged=function(){var e,g,c=_.x((e=this.data)==null?void 0:(g=e.cellTemplate)==null?void 0:g.onEmptyCellTap,sDk);if(c&&c.uploadUrl&&c.channelId){var k;this.maxFileSizeMb=((k=c.imageValidationInfo)==null?void 0:k.maxFileSizeMb)||0;var I;this.maxAspectRatio=((I=c.imageValidationInfo)==null?void 0:I.allowedMaxAspectRatio)||0;var J;this.invalidFileSizeError=this.getSimpleString((J=this.data)==null?void 0:J.invalidFileSizeError);var q;this.invalidAspectRatioError=this.getSimpleString((q=this.data)==
null?void 0:q.invalidAspectRatioError);var L;this.invalidFileTypeError=this.getSimpleString((L=this.data)==null?void 0:L.invalidFileTypeError);this.uploadManager=new Ap(c.uploadUrl,c.channelId)}};
_.v.onEditorInfoChange=function(){this.optionPlaceholderText=_.mp(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.mp(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.v.observeAddImageError=function(){this.errorMessage!==""&&_.oC(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.v.onPollOptionsChange=function(){for(var e=!1,g=[],c=0;c<this.pollOptions.length;c++){var k=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(c+1);this.pollOptions[c].placeholderText!==k?(e=!0,g.push(Object.assign({},this.pollOptions[c],{placeholderText:k}))):g.push(this.pollOptions[c])}e&&(this.pollOptions=g);this.isValid()?_.oC(this.hostElement,"yt-commentbox-post-enable"):_.oC(this.hostElement,"yt-commentbox-post-disable")};
_.v.createPollOptions=function(e){var g=[],c;e=(c=e==null?void 0:e.minPollOptions)!=null?c:0;for(c=0;c<e;c++)g.push(this.createPollOption());return g};
_.v.onImageSelect=function(e){var g=this,c,k,I,J,q,L;return _.r(function(n){if(n.nextAddress==1){if(g.selectedImageIndex===void 0)return n.jumpTo(0);c=e.files[0];g.errorMessage="";k=g.validateImage(c);if(k!=="")return g.errorMessage=k,n.return();I=new T_(g.maxAspectRatio,!1,!0);return n.yield(I.transform(c),3)}if(n.nextAddress!=4)return J=n.yieldResult,J.transformedData?J.invalidAspectRatio?(g.errorMessage=g.invalidAspectRatioError,n.return()):n.yield(WLV(g.JSC$16099_imageId,e.files[0],J.transformedData),
4):(g.errorMessage=g.invalidFileTypeError,n.return());q=n.yieldResult;g.JSC$16099_imageId++;n7B(g.uploadManager,[q]);L=Object.assign({},g.pollOptions[g.selectedImageIndex],{image:q});g.pollOptions.splice(g.selectedImageIndex,1,L);g.refreshPollOptions();_.oC(g.hostElement,"yt-backstage-poll-image-select");_.Uh(n)})};
_.v.validateImage=function(e){return e.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.v.refreshPollOptions=function(){this.pollOptions=[].concat(_.KY(this.pollOptions))};
_.v.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.KY(this.pollOptions),[this.createPollOption()]))};
_.v.onRemovePollOption=function(e){var g=this.pollOptions[e.model.index];g&&g.image&&this.uploadManager.cancel(g.image.id);this.pollOptions.splice(e.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.oC(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.v.onTextInput=function(){this.refreshPollOptions()};
_.v.onImageButtonClick=function(e){this.selectedImageIndex=e.model.index;this.imageSelector.click()};
_.v.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.v.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.v.saveImageRepositions=function(e){e=e.event_.detail;for(var g=0,c=[],k=_.w(this.pollOptions),I=k.next();!I.done;I=k.next())I=I.value,I.image!==void 0?(I=Object.assign({},I,{image:e[g]}),c.push(I),g++):c.push(I);this.showImagesPreview=!1;this.pollOptions=[].concat(_.KY(c))};
_.v.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var e=0,g=_.w(this.pollOptions),c=g.next();!c.done;c=g.next())if(c=c.value,c.optionText.trim()!==""||c.image!==void 0){if(!c.image||this.hasCustomOptionText&&c.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;e++}return e>=Number(this.editorInfo.minPollOptions)};
_.v.getAllUploadStatuses=function(){var e=this,g,c,k,I;return _.r(function(J){if(J.nextAddress==1)return J.yield(e.uploadManager.getAllUploadStatuses(),2);g=J.yieldResult;c=_.w(g);for(k=c.next();!k.done;k=c.next())if(I=k.value,I.encryptedBlobId===void 0)return J.return(RMq(e.uploadManager));return J.return(g)})};
_.v.getPostCreateOptions=function(){for(var e=[],g=_.w(this.pollOptions),c=g.next();!c.done;c=g.next())c=c.value,c.image!==void 0&&e.push({text:this.hasCustomOptionText?c.optionText:c.placeholderText,image:c.image});return e};
_.v.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.v.createButtonRenderer=function(e,g){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:e,accessibilityData:{accessibilityData:{label:this.getSimpleString(e)}},isDisabled:g}};
_.v.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.v.computeThumbnailRendererData=function(e){return e?{image:e,selected:!1}:void 0};
_.v.getSimpleString=function(e){return _.mp(e)};
_.v.updateOptionTextFromBinding=function(e){if(e.target){var g=Array.from(_.o1(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(e.target);if(g>=0){var c;this.pollOptions[g].optionText=(c=e.detail.value)!=null?c:""}}};
_.Bd.Object.defineProperties(sP.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var e,g;return this.pollOptions.length<((g=(e=this.editorInfo)==null?void 0:e.maxPollOptions)!=null?g:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(e){return e.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(e){return e.image}).map(function(e){return e.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(e){return e.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var e,g=(e=this.data)==null?void 0:e.addOptionButtonText;return g?this.createButtonRenderer(g,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var e,g=(e=this.data)==null?void 0:e.repositionImagesButtonLabel;return g?this.createButtonRenderer(g,!this.hasImages):void 0}}});
sP.prototype.onPollOptionsChange=sP.prototype.onPollOptionsChange;sP.prototype.observeAddImageError=sP.prototype.observeAddImageError;sP.prototype.onEditorInfoChange=sP.prototype.onEditorInfoChange;sP.prototype.dataChanged=sP.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Cs("ytd-backstage-multi-image-reposition-renderer"),_.B("design:type",Object)],sP.prototype,"imageRepositionContainer",void 0);
_.t([_.u(),_.B("design:type",Object)],sP.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],sP.prototype,"editorInfo",void 0);_.t([_.u(),_.B("design:type",Ap)],sP.prototype,"uploadManager",void 0);_.t([_.u(),_.B("design:type",Object)],sP.prototype,"showImagesPreview",void 0);_.t([_.u(),_.B("design:type",Array)],sP.prototype,"pollOptions",void 0);_.t([_.u(),_.B("design:type",Object)],sP.prototype,"errorMessage",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sP.prototype,"dataChanged",null);_.t([_.k_("editorInfo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sP.prototype,"onEditorInfoChange",null);_.t([_.OY("errorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sP.prototype,"observeAddImageError",null);
_.t([_.k_("pollOptions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sP.prototype,"onPollOptionsChange",null);_.t([_.p("pollOptions","editorInfo"),_.B("design:type",Object),_.B("design:paramtypes",[])],sP.prototype,"isAllowedToAddOption",null);_.t([_.p("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],sP.prototype,"hasImages",null);
_.t([_.p("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],sP.prototype,"imagesToReposition",null);_.t([_.p("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],sP.prototype,"hasCustomOptionText",null);_.t([_.p("data","isAllowedToAddOption"),_.B("design:type",Object),_.B("design:paramtypes",[])],sP.prototype,"addOptionButton",null);_.t([_.p("data","hasImages"),_.B("design:type",Object),_.B("design:paramtypes",[])],sP.prototype,"repositionImagesButton",null);
_.t([_.bF({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],sP);
_.U(sP,"ytd-backstage-image-poll-editor-renderer",function(){if(Lrw!==void 0)return Lrw;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Lrw=e},{mode:2});var XDq={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 Gfu;var Fo=function(){var e=_.z.apply(this,arguments)||this;e.a11yConfig=XDq;e.imageDisplayOffsetTop=0;e.imageDisplayOffsetLeft=0;e.pickerDisplayOffsetTop=0;e.pickerDisplayOffsetLeft=0;e.showPreviewContainer=!0;e.startPicker=!1;e.repositionOptional=!1;e.editOnlyMode=!1;e.savedImageDisplayOffsetTop=0;e.savedImageDisplayOffsetLeft=0;return e};
_.Y(Fo,_.z);_.v=Fo.prototype;_.v.created=function(){_.hc.requestAvailability()};
_.v.ready=function(){};
_.v.onArrowKeysDown=function(e){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){e.detail.keyboardEvent.preventDefault();var g=0,c=0,k="";switch(e.detail.keyboardEvent.key){case "ArrowUp":beV(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?k=this.a11yConfig.reachBottomOfImage:g=this.imageHeight*.05*-1;break;case "ArrowDown":beV(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?k=this.a11yConfig.reachTopOfImage:
g=this.imageHeight*.05;break;case "ArrowLeft":beV(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?k=this.a11yConfig.reachRightOfImage:c=this.imageWidth*.05*-1;break;case "ArrowRight":beV(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?k=this.a11yConfig.reachLeftOfImage:c=this.imageWidth*.05}k&&_.C_(k)&&_.oC(this.hostElement,"iron-announce",{text:_.C_(k)});if(c||g)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+g)),e=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),e=_.C_(this.a11yConfig.imageVerticalPosition,{x_percent:""+e,y_percent:""+(100-e)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+c)),e=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),e=_.C_(this.a11yConfig.imageHorizontalPosition,{x_percent:""+e,y_percent:""+(100-e)})),e&&_.oC(this.hostElement,"iron-announce",{text:e})}};
_.v.getPreviewPosition=function(e,g,c,k){return Math.round(100*(e+g*.5-c)/k)};
_.v.calculateDisplayPosition=function(){var e=this.imageData.naturalWidth,g=this.imageData.naturalHeight;this.displayScale=Math.max(200/e,200/g);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var c=e*this.displayScale*this.imageData.previewCoordinates.left,k=g*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=g>e?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-c;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=e>g?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-k;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=e*this.displayScale;this.imageHeight=g*this.displayScale};
_.v.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.v.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.v.getSignedPosition=function(e,g,c){return g==="X"&&_.uo("HTML_DIR")==="rtl"?c==="-"?e+"px":e*-1+"px":c==="-"?e*-1+"px":e+"px"};
_.v.pickerMove=function(e){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var g=this.pickerOffsetX-e.clientX,c=this.pickerOffsetY-e.clientY;this.pickerOffsetX=e.clientX;this.pickerOffsetY=e.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
c)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-g))}};
_.v.pickerMoveStart=function(e){this.startPicker=!0;this.pickerOffsetX=e.clientX;this.pickerOffsetY=e.clientY};
_.v.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var e=this.generateCropPreview();e&&_.oC(this.hostElement,"ytd-backstage-image-preview-coordinates-update",e)};
_.v.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.oC(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.v.deleteImage=function(){_.oC(this.hostElement,"ytd-backstage-image-preview-delete")};
_.v.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.v.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var e=this.generateCropPreview();e&&_.oC(this.hostElement,"ytd-backstage-image-preview-coordinates-save",e)};
_.v.getPreviewOffset=function(e,g,c){return g&&e?(c==="X"&&_.uo("HTML_DIR")==="rtl"?300/g*e:300/g*e*-1)+"px":"0px"};
_.v.getSimpleText=function(e){return e?_.mp(e):""};
_.v.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.Bd.Object.defineProperties(Fo.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var e=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.C_(this.a11yConfig.imageVerticalPosition,{x_percent:""+e,y_percent:""+(100-e)})+"\n"+_.C_(this.a11yConfig.verticalRepositionInstruction)}e=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.C_(this.a11yConfig.imageHorizontalPosition,{x_percent:""+e,y_percent:""+(100-e)})+"\n"+_.C_(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 e,g,c=(e=this.instruction)==null?void 0:(g=e.previewInstruction)==null?void 0:g.editButtonLabel;return c?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k,I=this.editOnlyMode?(e=this.instruction)==null?void 0:(g=e.editInstruction)==null?void 0:g.saveImagesButtonLabel:(c=this.instruction)==null?void 0:(k=c.editInstruction)==null?void 0:k.saveButtonLabel;return I?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(e=this.instruction)==null?void 0:(g=e.previewInstruction)==null?void 0:g.deleteButtonLabel;return c?{size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(e=this.instruction)==null?void 0:(g=e.editInstruction)==null?void 0:g.cancelButtonLabel;e=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return c?{style:e,size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}: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"}}});
Fo.prototype.onEditOnlyModeUpdate=Fo.prototype.onEditOnlyModeUpdate;Fo.prototype.onImageChange=Fo.prototype.onImageChange;_.t([_.u(),_.B("design:type",EZ6)],Fo.prototype,"imageData",void 0);_.t([_.u(),_.B("design:type",Object)],Fo.prototype,"instruction",void 0);_.t([_.u(),_.B("design:type",Object)],Fo.prototype,"a11yConfig",void 0);_.t([_.u(),_.B("design:type",Number)],Fo.prototype,"imageWidth",void 0);_.t([_.u(),_.B("design:type",Number)],Fo.prototype,"imageHeight",void 0);
_.t([_.u(),_.B("design:type",Number)],Fo.prototype,"displayScale",void 0);_.t([_.u(),_.B("design:type",Object)],Fo.prototype,"imageDisplayOffsetTop",void 0);_.t([_.u(),_.B("design:type",Object)],Fo.prototype,"imageDisplayOffsetLeft",void 0);_.t([_.u(),_.B("design:type",Object)],Fo.prototype,"pickerDisplayOffsetTop",void 0);_.t([_.u(),_.B("design:type",Object)],Fo.prototype,"pickerDisplayOffsetLeft",void 0);_.t([_.u(),_.B("design:type",Object)],Fo.prototype,"showPreviewContainer",void 0);
_.t([_.u(),_.B("design:type",Object)],Fo.prototype,"startPicker",void 0);_.t([_.u(),_.B("design:type",Number)],Fo.prototype,"pickerOffsetX",void 0);_.t([_.u(),_.B("design:type",Number)],Fo.prototype,"pickerOffsetY",void 0);_.t([_.u(),_.B("design:type",Object)],Fo.prototype,"repositionOptional",void 0);_.t([_.u(),_.B("design:type",Object)],Fo.prototype,"editOnlyMode",void 0);_.t([_.Cs("#picker-container"),_.B("design:type",HTMLElement)],Fo.prototype,"JSC$16112_pickerContainer",void 0);
_.t([_.Cs("#picker"),_.B("design:type",HTMLElement)],Fo.prototype,"picker",void 0);_.t([_.Cs("#preview-clipper"),_.B("design:type",HTMLElement)],Fo.prototype,"previewClipper",void 0);_.t([_.Cs("#image-in-picker-background"),_.B("design:type",HTMLImageElement)],Fo.prototype,"JSC$16112_imageInBackground",void 0);_.t([_.Cs("#image-in-picker"),_.B("design:type",HTMLImageElement)],Fo.prototype,"JSC$16112_imageInPicker",void 0);
_.t([_.Cs("#image-in-preview-clipper"),_.B("design:type",HTMLImageElement)],Fo.prototype,"JSC$16112_imageInPreviewClipper",void 0);_.t([_.p("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],Fo.prototype,"altLabelForImage",null);_.t([_.p("imageHeight","imageWidth"),_.B("design:type",Number),_.B("design:paramtypes",[])],Fo.prototype,"pickerSize",null);
_.t([_.p("imageHeight","imageWidth"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fo.prototype,"imageOrientationStyle",null);_.t([_.p("instruction"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fo.prototype,"editButton",null);_.t([_.p("instruction","editOnlyMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fo.prototype,"saveButton",null);_.t([_.p("instruction"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fo.prototype,"deleteButton",null);
_.t([_.p("instruction","editOnlyMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fo.prototype,"cancelButton",null);_.t([_.p("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.B("design:type",Number),_.B("design:paramtypes",[])],Fo.prototype,"cropOffsetTop",null);_.t([_.p("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.B("design:type",Number),_.B("design:paramtypes",[])],Fo.prototype,"cropOffsetLeft",null);
_.t([_.p("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],Fo.prototype,"pickerBackgroundStyle",null);_.t([_.p("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],Fo.prototype,"pickerDisplayStyle",null);_.t([_.p("cropOffsetLeft","cropOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],Fo.prototype,"imageInPickerStyle",null);
_.t([_.p("cropOffsetLeft","cropOffsetTop","pickerSize"),_.B("design:type",String),_.B("design:paramtypes",[])],Fo.prototype,"previewClipperStyle",null);_.t([_.k_("imageData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fo.prototype,"onImageChange",null);_.t([_.k_("editOnlyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fo.prototype,"onEditOnlyModeUpdate",null);
_.t([_.p("showPreviewContainer"),_.B("design:type",String),_.B("design:paramtypes",[])],Fo.prototype,"pickerModeStyle",null);_.t([_.bF({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Fo);
_.U(Fo,"ytd-backstage-image-preview-renderer",function(){if(Gfu!==void 0)return Gfu;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Gfu=e},{mode:1});var xJq;var DJv={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 $Jk;var YDw;var uP=function(){var e=_.z.apply(this,arguments)||this;e.a11yConfig=DJv;e.imageDisplayOffsetTop=0;e.imageDisplayOffsetLeft=0;e.pickerDisplayOffsetTop=0;e.pickerDisplayOffsetLeft=0;e.cropCoordinatesSaved=!1;e.previewSize=0;e.startPicker=!1;e.repositionOptional=!1;return e};
_.Y(uP,_.z);_.v=uP.prototype;_.v.created=function(){_.hc.requestAvailability()};
_.v.ready=function(){};
_.v.onArrowKeysDown=function(e){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){e.detail.keyboardEvent.preventDefault();var g=0,c=0,k="";switch(e.detail.keyboardEvent.key){case "ArrowUp":h36(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?k=this.a11yConfig.reachBottomOfImage:g=this.imageHeight*.05*-1;break;case "ArrowDown":h36(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?k=this.a11yConfig.reachTopOfImage:
g=this.imageHeight*.05;break;case "ArrowLeft":h36(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?k=this.a11yConfig.reachRightOfImage:c=this.imageWidth*.05*-1;break;case "ArrowRight":h36(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?k=this.a11yConfig.reachLeftOfImage:c=this.imageWidth*.05}k&&_.C_(k)&&_.oC(this.hostElement,"iron-announce",{text:_.C_(k)});if(c||g)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+g)),e=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),e=_.C_(this.a11yConfig.imageVerticalPosition,{x_percent:""+e,y_percent:""+(100-e)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+c)),e=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),e=_.C_(this.a11yConfig.imageHorizontalPosition,{x_percent:""+e,y_percent:""+(100-e)})),e&&_.oC(this.hostElement,"iron-announce",{text:e})}};
_.v.getPreviewPosition=function(e,g,c,k){return Math.round(100*(e+g*.5-c)/k)};
_.v.displayImage=function(){var e=this.JSC$16123_pickerContainer.getBoundingClientRect().width,g=this.JSC$16123_pickerContainer.getBoundingClientRect().height,c=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),k=this.JSC$16123_imageInBackground.naturalWidth,I=this.JSC$16123_imageInBackground.naturalHeight;this.displayScale=Math.max(c/k,c/I);this.imageWidth=k*this.displayScale;this.imageHeight=I*this.displayScale;this.pickerDisplayOffsetLeft=(e-c)/2;this.pickerDisplayOffsetTop=
(g-c)/2;this.imageDisplayOffsetLeft=I>k?this.pickerDisplayOffsetLeft:(e-this.imageWidth)/2;this.imageDisplayOffsetTop=k>I?this.pickerDisplayOffsetTop:(g-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.v.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$16123_imageInBackground.src=this.imageData.toString(),this.JSC$16123_imageInPicker.src=this.imageData.toString(),this.JSC$16123_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.v.getSignedPosition=function(e,g,c){return g==="X"&&_.uo("HTML_DIR")==="rtl"?c==="-"?e+"px":e*-1+"px":c==="-"?e*-1+"px":e+"px"};
_.v.pickerMove=function(e){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var g=this.pickerOffsetX-e.clientX,c=this.pickerOffsetY-e.clientY;this.pickerOffsetX=e.clientX;this.pickerOffsetY=e.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
c)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-g))}};
_.v.pickerMoveStart=function(e){this.startPicker=!0;this.pickerOffsetX=e.clientX;this.pickerOffsetY=e.clientY};
_.v.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.v.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.oC(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.v.getPreviewOffset=function(e,g,c,k){return g&&e&&c?(k==="X"&&_.uo("HTML_DIR")==="rtl"?c/g*e:c/g*e*-1)+"px":"0px"};
_.v.getSimpleText=function(e){return e?_.mp(e):""};
_.v.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var e=this.cropOffsetTop/this.imageHeight,g=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,c=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,k=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.o1(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.oC(this.hostElement,"yt-img-crop-coordinates-update",{top:e,right:g,bottom:c,left:k})}};
_.Bd.Object.defineProperties(uP.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var e=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.C_(this.a11yConfig.imageVerticalPosition,{x_percent:""+e,y_percent:""+(100-e)})+"\n"+_.C_(this.a11yConfig.verticalRepositionInstruction)}e=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.C_(this.a11yConfig.imageHorizontalPosition,{x_percent:""+e,y_percent:""+(100-e)})+"\n"+_.C_(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 e,g=(e=this.learnMore.runs[0])==null?void 0:e.navigationEndpoint,c;return((c=_.x(g,_.uf))==null?void 0:c.url)||void 0}}}});
uP.prototype.onImageDataChange=uP.prototype.onImageDataChange;_.t([_.u(),_.B("design:type",Object)],uP.prototype,"imageData",void 0);_.t([_.u(),_.B("design:type",Object)],uP.prototype,"instruction",void 0);_.t([_.u(),_.B("design:type",Object)],uP.prototype,"a11yConfig",void 0);_.t([_.u(),_.B("design:type",Number)],uP.prototype,"imageWidth",void 0);_.t([_.u(),_.B("design:type",Number)],uP.prototype,"imageHeight",void 0);_.t([_.u(),_.B("design:type",Number)],uP.prototype,"displayScale",void 0);
_.t([_.u(),_.B("design:type",Object)],uP.prototype,"imageDisplayOffsetTop",void 0);_.t([_.u(),_.B("design:type",Object)],uP.prototype,"imageDisplayOffsetLeft",void 0);_.t([_.u(),_.B("design:type",Object)],uP.prototype,"pickerDisplayOffsetTop",void 0);_.t([_.u(),_.B("design:type",Object)],uP.prototype,"pickerDisplayOffsetLeft",void 0);_.t([_.u(),_.B("design:type",Object)],uP.prototype,"cropCoordinatesSaved",void 0);_.t([_.u(),_.B("design:type",Object)],uP.prototype,"previewSize",void 0);
_.t([_.u(),_.B("design:type",Object)],uP.prototype,"startPicker",void 0);_.t([_.u(),_.B("design:type",Number)],uP.prototype,"pickerOffsetX",void 0);_.t([_.u(),_.B("design:type",Number)],uP.prototype,"pickerOffsetY",void 0);_.t([_.u(),_.B("design:type",Object)],uP.prototype,"repositionOptional",void 0);_.t([_.Cs("#picker-container"),_.B("design:type",HTMLElement)],uP.prototype,"JSC$16123_pickerContainer",void 0);_.t([_.Cs("#picker"),_.B("design:type",HTMLElement)],uP.prototype,"picker",void 0);
_.t([_.Cs("#image-in-picker-background"),_.B("design:type",HTMLImageElement)],uP.prototype,"JSC$16123_imageInBackground",void 0);_.t([_.Cs("#image-in-picker"),_.B("design:type",HTMLImageElement)],uP.prototype,"JSC$16123_imageInPicker",void 0);_.t([_.Cs("#image-in-preview-clipper"),_.B("design:type",HTMLImageElement)],uP.prototype,"JSC$16123_imageInPreviewClipper",void 0);_.t([_.Cs("#full-image-as-preview"),_.B("design:type",HTMLImageElement)],uP.prototype,"imageAsPreview",void 0);
_.t([_.p("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],uP.prototype,"altLabelForImage",null);_.t([_.p("imageHeight","imageWidth"),_.B("design:type",Number),_.B("design:paramtypes",[])],uP.prototype,"pickerSize",null);_.t([_.p("imageHeight","imageWidth"),_.B("design:type",Object),_.B("design:paramtypes",[])],uP.prototype,"imageOrientationStyle",null);
_.t([_.p("instruction.previewInstruction.editButtonLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],uP.prototype,"editButton",null);_.t([_.p("instruction.editInstruction.saveButtonLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],uP.prototype,"saveButton",null);_.t([_.p("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.B("design:type",Number),_.B("design:paramtypes",[])],uP.prototype,"cropOffsetTop",null);
_.t([_.p("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.B("design:type",Number),_.B("design:paramtypes",[])],uP.prototype,"cropOffsetLeft",null);_.t([_.p("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],uP.prototype,"pickerBackgroundStyle",null);_.t([_.p("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],uP.prototype,"pickerDisplayStyle",null);
_.t([_.p("cropOffsetLeft","cropOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],uP.prototype,"imageInPickerStyle",null);_.t([_.p("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.B("design:type",String),_.B("design:paramtypes",[])],uP.prototype,"previewClipperStyle",null);_.t([_.OY("imageData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uP.prototype,"onImageDataChange",null);
_.t([_.p("cropCoordinatesSaved"),_.B("design:type",String),_.B("design:paramtypes",[])],uP.prototype,"pickerModeStyle",null);_.t([_.p("instruction.editInstruction.learnMore"),_.B("design:type",Object),_.B("design:paramtypes",[])],uP.prototype,"learnMore",null);_.t([_.p("learnMore"),_.B("design:type",Object),_.B("design:paramtypes",[])],uP.prototype,"learnMoreUrl",null);_.t([_.Wo({is:"yt-img-crop-picker",disableElementRegistration:!0})],uP);
_.U(uP,"yt-img-crop-picker",function(){if(YDw===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;$Jk===void 0&&($Jk=document.createElement("template"));var k=$Jk;c.call(g,k.content.cloneNode(!0),e.content.firstChild);YDw=e}e=YDw;return e},{mode:2});var dz=function(){var e=_.z.apply(this,arguments)||this;e.errorMessage="";e.hasPreview=!1;e.isBackstagePost=!1;e.dismissButtonOverrides={size:"XS"};return e};
_.Y(dz,_.z);_.v=dz.prototype;_.v.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.detached=function(){this.removeOverlay()};
_.v.setPreview=function(e){_.o1(this.hostElement).querySelector("#preview-picker").imageData=e;this.hasPreview=!0;_.oC(this.hostElement,"yt-backstage-image-select-preview")};
_.v.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var e=_.o1(this.hostElement).querySelector("#dropzone");e.classList.remove("dragover");e.classList.remove("error");_.oC(this.hostElement,"yt-backstage-image-select-cancel")};
_.v.setupOverlay=function(){var e=this.imageUploadEndpoint;this.removeOverlay();if(e&&e.imageValidationInfo){var g=_.o1(this.hostElement).querySelector("#dropzone"),c=_.o1(this.hostElement).querySelector("#select");this.overlay=new AR(e.uploadUrl,e.channelId,e.imageValidationInfo.maxFileSizeMb,e.imageValidationInfo.allowedMaxAspectRatio,g,c,!0);_.iK(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.iK(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.iK(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.iK(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.iK(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.v.removeOverlay=function(){this.overlay&&(_.a0(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.a0(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.a0(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.a0(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.a0(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.v.onDragOver=function(e){var g=_.o1(this.hostElement).querySelector("#dropzone");_.Vg(g,"dragover",e.value)};
_.v.onPreview=function(e){this.setPreview(e.value)};
_.v.onImageError=function(e){if(e.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var g;e=(g=this.data)==null?void 0:g.fileSizeError}else if(e.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var c;e=(c=this.data)==null?void 0:c.invalidError}else if(e.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var k;e=(k=this.data)==null?void 0:k.invalidAspectRatioError}else return;this.errorMessage=_.mp(e);_.o1(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.v.onImageAlert=function(e){this.onImageError(e)};
_.v.uploadPromise=function(){var e=this,g=this.overlay&&this.overlay.uploadPromise();if(g)return g.catch(function(){throw Error(e.data?_.mp(e.data.uploadFailureError):"");})};
_.Bd.Object.defineProperties(dz.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var e,g;if((e=this.data)==null?0:(g=e.icon)==null?0:g.iconType)return _.NY(this.data.icon.iconType)}}});
dz.prototype.setupOverlay=dz.prototype.setupOverlay;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],dz.prototype,"rendererStamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],dz.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],dz.prototype,"imageUploadEndpoint",void 0);_.t([_.u(),_.B("design:type",Object)],dz.prototype,"errorMessage",void 0);
_.t([_.u(),_.B("design:type",AR)],dz.prototype,"overlay",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],dz.prototype,"hasPreview",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],dz.prototype,"isBackstagePost",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],dz.prototype,"selectionCancel",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],dz.prototype,"previewCancel",null);
_.t([_.p("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],dz.prototype,"icon",null);_.t([_.u(),_.B("design:type",Object)],dz.prototype,"dismissButtonOverrides",void 0);_.t([_.OY("imageUploadEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dz.prototype,"setupOverlay",null);_.t([_.bF({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],dz);
_.U(dz,"ytd-backstage-image-select-renderer",function(){if(xJq!==void 0)return xJq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return xJq=e},{mode:1});var fpk;var jpk;var z2=function(){var e=_.z.apply(this,arguments)||this;e.selected=!1;return e};
_.Y(z2,_.z);_.v=z2.prototype;_.v.computeSelected=function(e){return e==null?void 0:e.selected};
_.v.computeTransform=function(e,g,c){var k,I,J=(I=(k=this.imageContainer)==null?void 0:k.getBoundingClientRect())!=null?I:{width:0,height:0};k=Math.max(J.width/g,J.height/c);c=c*k*e.top;return"translateX("+this.getSignedPosition(g*k*e.left,"X","-")+") translateY("+this.getSignedPosition(c,"Y","-")+")"};
_.v.getSignedPosition=function(e,g,c){return g==="X"&&_.uo("HTML_DIR")==="rtl"?c==="-"?e+"px":e*-1+"px":c==="-"?e*-1+"px":e+"px"};
_.v.onClick=function(){var e;_.oC(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(e=this.data)==null?void 0:e.image)};
_.v.onKeyPress=function(e){if(e.keyCode===13)this.onClick()};
_.Bd.Object.defineProperties(z2.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:(g=e.image)==null?void 0:g.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)!=null&&e.image){var g;e=(g=this.data)==null?void 0:g.image;return e.previewCoordinates.top!==0||e.previewCoordinates.left!==0?(g=this.computeTransform(e.previewCoordinates,e.naturalWidth,e.naturalHeight),e.naturalHeight>=e.naturalWidth?"width:inherit;transform:"+g+";":"height:inherit;transform:"+g+";"):e.naturalHeight>=e.naturalWidth?"width:inherit;":"height:inherit;"}}}});
z2.prototype.onKeyPress=z2.prototype.onKeyPress;_.t([_.Cs(".image-container"),_.B("design:type",HTMLElement)],z2.prototype,"imageContainer",void 0);_.t([_.u(),_.B("design:type",Object)],z2.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.B("design:type",Object)],z2.prototype,"selected",void 0);_.t([_.p("data.image"),_.B("design:type",Object),_.B("design:paramtypes",[])],z2.prototype,"thumbnailUrl",null);
_.t([_.p("data.image","data.image.previewCoordinates"),_.B("design:type",Object),_.B("design:paramtypes",[])],z2.prototype,"thumbnailStyle",null);_.t([_.Ks("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],z2.prototype,"onKeyPress",null);_.t([_.bF({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],z2);
_.oI()(z2,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(jpk===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);jpk=e}e=jpk;return e},{allowedProps:["data"],
mode:2});var Hu=function(e,g,c){c=c===void 0?!1:c;_.jv.call(this);var k=this;this.dropZoneOverlay=new ZP(e);this.selectOverlay=c?new VZ(g,"multiple_file",["image/*"]):new VZ(g,"single_file",["image/*"]);this.handler=new _.wD(this);_.yh(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(g,"click",function(){k.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.Y(Hu,_.jv);Hu.prototype.onChange=function(e){var g;(g=e.files)!=null&&g.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:e.files}))};var Qw=function(){var e=_.z.apply(this,arguments)||this;e.addImageErrorMessage="";e.errorMessage="";e.images=[];e.selectedImageIndex=0;e.modern=_.G("web_modern_buttons");e.maxNumImagesPerPost=_.MN("max_num_images_per_post_web_ui");e.JSC$16138_imageId=0;return e};
_.Y(Qw,_.z);_.v=Qw.prototype;_.v.created=function(){var e=this;this.JSC$16138_ytReorderableController=new _.ZNu(100,function(g){e.handleDrop(g)})};
_.v.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.oC(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.v.observeDragToReorder=function(){var e=this;if(this.showImagesPreview){var g,c=S9q(_.t$.getInstance(),(g=this.data)==null?void 0:g.dragToReorderTooltip);_.ft.addLowPriorityJob(function(){_.Bm(e.hostElement,c,e.thumbnailDragDropArea)})}};
_.v.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.v.computeThumbnail=function(e){return(e==null?void 0:e.localImageSrc)||void 0};
_.v.onRendererstamperFinished=function(){_.V8B(this.JSC$16138_ytReorderableController,_.o1(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.o1(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.v.handleDrop=function(e){var g=e.currDragItem;if(g!=null&&g.data){e=this.images[this.selectedImageIndex];var c=g.data.image,k=this.images.indexOf(c)||0;g=_.dV(g.parentNode.children,g);this.images.splice(k,1);this.images.splice(g,0,c);this.images=[].concat(_.KY(this.images));this.selectedImageIndex=this.images.indexOf(e)}};
_.v.setUpImagePicker=function(){var e=this.imageUploadEndpoint;e&&e.imageValidationInfo&&(this.uploadManager=new Ap(e.uploadUrl,e.channelId),this.initialPicker||(this.initialPicker=new Hu(this.dropzone,this.selectLink,!0),_.iK(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Hu(this.addImageButtonContainer,this.addImageSelectButton),_.iK(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.iK(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.iK(this.imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.iK(_.o1(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.v.detached=function(){this.initialPicker&&(_.a0(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.a0(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.C3(this.JSC$16138_ytReorderableController)};
_.v.onInitialSelectImages=function(e){var g=this;return _.r(function(c){return c.yield(g.onSelectImages(e,!1),0)})};
_.v.onAddImage=function(e){var g=this;return _.r(function(c){return c.yield(g.onSelectImages(e,!0),0)})};
_.v.onSelectImages=function(e,g){var c=this,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y;return _.r(function(O){switch(O.nextAddress){case 1:g?c.addImageErrorMessage="":(c.images=[],c.errorMessage="");k=e.detail;I=c.validateImages([].concat(_.KY(k)));if(I!=="")return g?c.addImageErrorMessage=I:c.errorMessage=I,O.return();J=[].concat(_.KY(k)).map(function(Jq){return(new T_(c.maxAspectRatio,!1,!0)).transform(Jq)});
return O.yield(Promise.allSettled(J),2);case 2:q=O.yieldResult,L=_.w(q.entries()),n=L.next();case 3:if(n.done){O.jumpTo(5);break}R=n.value;W=_.w(R);b=W.next().value;h=W.next().value;X=b;D=h;if(D.status!=="fulfilled"){A=l=f=void 0;g?c.addImageErrorMessage=_.mp((f=c.data)==null?void 0:f.invalidError):c.errorMessage=c.errorMessage===""?_.mp((l=c.data)==null?void 0:l.invalidError):_.mp((A=c.data)==null?void 0:A.multiFileError);O.jumpTo(4);break}d=D.value;d.cropped&&_.oC(c.hostElement,"yt-backstage-multi-image-cropped");
if(d.invalidAspectRatio){Q=V=S=void 0;g?c.addImageErrorMessage=_.mp((S=c.data)==null?void 0:S.invalidAspectRatioError):c.errorMessage=c.errorMessage===""?_.mp((V=c.data)==null?void 0:V.invalidAspectRatioError):_.mp((Q=c.data)==null?void 0:Q.multiFileError);O.jumpTo(4);break}return O.yield(WLV(c.JSC$16138_imageId,e.detail[X],d.transformedData),8);case 8:y=O.yieldResult,c.images.push(y),c.JSC$16138_imageId++;case 4:n=L.next();O.jumpTo(3);break;case 5:if(c.errorMessage!==""||c.addImageErrorMessage!==
"")return O.return();g?n7B(c.uploadManager,[c.images[c.images.length-1]]):n7B(c.uploadManager,c.images);c.images=[].concat(_.KY(c.images));c.selectedImageIndex=g?Math.max(c.images.length-1,0):0;_.oC(c.hostElement,"yt-backstage-multi-image-select");_.Uh(O)}})};
_.v.onThumbnailClick=function(e){if(e=e.event_.detail)this.selectedImageIndex=this.images.indexOf(e)};
_.v.validateImages=function(e){if(e.length>this.maxNumImagesPerPost){var g;return _.mp((g=this.data)==null?void 0:g.multiImageExceedMaxImageCountError)}var c=1048576*this.maxFileSizeMb;e=e.filter(function(J){return J.size>c}).length;
if(e===0)return"";var k,I;e=e>1?(k=this.data)==null?void 0:k.multiFileError:(I=this.data)==null?void 0:I.fileSizeError;return _.mp(e)};
_.v.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.KY(this.images));this.selectedImageIndex=0};
_.v.repositionImage=function(e){this.images[this.selectedImageIndex].previewCoordinates=e.event_.detail;this.images=[].concat(_.KY(this.images))};
_.v.getAllUploadStatuses=function(){var e=this,g,c,k,I;return _.r(function(J){if(J.nextAddress==1)return J.yield(e.uploadManager.getAllUploadStatuses(),2);g=J.yieldResult;c=_.w(g);for(k=c.next();!k.done;k=c.next())if(I=k.value,I.encryptedBlobId===void 0)return J.return(RMq(e.uploadManager));return J.return(g)})};
_.v.hasImages=function(){return this.images.length>0};
_.v.cancel=function(){for(var e=this.uploadManager,g=_.w(e.imagesUploadData),c=g.next();!c.done;c=g.next())e.cancel(c.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.oC(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Bd.Object.defineProperties(Qw.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.imageUploadEndpoint)==null?void 0:(g=e.imageValidationInfo)==null?void 0:g.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.imageUploadEndpoint)==null?void 0:(g=e.imageValidationInfo)==null?void 0:g.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var e,g;if((e=this.data)==null?0:(g=e.icon)==null?0:g.iconType)return _.NY(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.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 e=this;return(this.images||[]).map(function(g,c){return{renderer:{image:g,selected:c===e.selectedImageIndex}}})}}});
Qw.prototype.setUpImagePicker=Qw.prototype.setUpImagePicker;Qw.prototype.onRendererstamperFinished=Qw.prototype.onRendererstamperFinished;Qw.prototype.observeDragToReorder=Qw.prototype.observeDragToReorder;Qw.prototype.observeAddImageError=Qw.prototype.observeAddImageError;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Qw.prototype,"rendererStamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);
_.t([_.Cs("#dropzone"),_.B("design:type",HTMLElement)],Qw.prototype,"dropzone",void 0);_.t([_.Cs("#select-link"),_.B("design:type",HTMLElement)],Qw.prototype,"selectLink",void 0);_.t([_.Cs("#thumbnail-drag-drop-area"),_.B("design:type",HTMLElement)],Qw.prototype,"thumbnailDragDropArea",void 0);_.t([_.Cs("#add-image-button-container"),_.B("design:type",HTMLElement)],Qw.prototype,"addImageButtonContainer",void 0);
_.t([_.Cs("#add-image-button"),_.B("design:type",HTMLElement)],Qw.prototype,"addImageSelectButton",void 0);_.t([_.Cs("#image-preview-container"),_.B("design:type",Object)],Qw.prototype,"imagePreviewContainer",void 0);_.t([_.u(),_.B("design:type",Object)],Qw.prototype,"addImageErrorMessage",void 0);_.t([_.u(),_.B("design:type",Object)],Qw.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Qw.prototype,"errorMessage",void 0);
_.t([_.u(),_.B("design:type",Object)],Qw.prototype,"imageUploadEndpoint",void 0);_.t([_.u(),_.B("design:type",Array)],Qw.prototype,"images",void 0);_.t([_.u(),_.B("design:type",Hu)],Qw.prototype,"initialPicker",void 0);_.t([_.u(),_.B("design:type",Hu)],Qw.prototype,"addImagePicker",void 0);_.t([_.u(),_.B("design:type",Ap)],Qw.prototype,"uploadManager",void 0);_.t([_.u(),_.B("design:type",Object)],Qw.prototype,"selectedImageIndex",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Qw.prototype,"modern",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Qw.prototype,"maxNumImagesPerPost",void 0);_.t([_.p("imageUploadEndpoint"),_.B("design:type",Number),_.B("design:paramtypes",[])],Qw.prototype,"maxAspectRatio",null);_.t([_.p("imageUploadEndpoint"),_.B("design:type",Number),_.B("design:paramtypes",[])],Qw.prototype,"maxFileSizeMb",null);
_.t([_.p("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qw.prototype,"dropIcon",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qw.prototype,"selectionCancel",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qw.prototype,"previewCancel",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qw.prototype,"dataForAddImageButton",null);
_.t([_.p("errorMessage"),_.B("design:type",String),_.B("design:paramtypes",[])],Qw.prototype,"dropzoneClass",null);_.t([_.p("images"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Qw.prototype,"showImagesPreview",null);_.t([_.p("images"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Qw.prototype,"containMaxImages",null);_.t([_.OY("addImageErrorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qw.prototype,"observeAddImageError",null);
_.t([_.OY("showImagesPreview"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qw.prototype,"observeDragToReorder",null);_.t([_.p("images","selectedImageIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qw.prototype,"selectedImageData",null);_.t([_.p("images","selectedImageIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],Qw.prototype,"thumbnailRenderers",null);
_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qw.prototype,"onRendererstamperFinished",null);_.t([_.OY("imageUploadEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qw.prototype,"setUpImagePicker",null);_.t([_.bF({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Qw);
_.U(Qw,"ytd-backstage-multi-image-select-renderer",function(){if(fpk!==void 0)return fpk;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return fpk=e},{mode:1});var iI1;var P5s;var mJq;var UP=function(){var e=_.z.apply(this,arguments)||this;e.boundCaptureFocus=function(g){e.onCaptureFocus(g)};
return e};
_.Y(UP,_.z);_.v=UP.prototype;_.v.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.v.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.v.onCaptureFocus=function(e){_.lg(e).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.v.getIconType=function(e){return e?"yt-icons:"+e.toLowerCase():null};
_.v.onSelect=function(){var e;if((e=this.data)==null?0:e.onSelectCommand)if(_.G("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var g;((g=_.x(this.data.onSelectCommand.commandMetadata,_.OM))==null?0:g.url)?_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.Ss().resolve(_.xk).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Bd.Object.defineProperties(UP.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.mp(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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],UP.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],UP.prototype,"data",void 0);_.t([_.Cs("#item"),_.B("design:type",HTMLElement)],UP.prototype,"item",void 0);_.t([_.p("data.label"),_.B("design:type",String),_.B("design:paramtypes",[])],UP.prototype,"label",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],UP.prototype,"value",null);_.t([_.bF({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],UP);
_.U(UP,"ytd-privacy-dropdown-item-renderer",function(){if(mJq!==void 0)return mJq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return mJq=e},{mode:1});var oj=function(){var e=_.z.apply(this,arguments)||this;e.value="";e.label="";e.disabled=!1;return e};
_.Y(oj,_.z);_.v=oj.prototype;_.v.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.v.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.v.dataChanged=function(){this.reset()};
_.v.valueChanged=function(){var e;if(this.value&&(e=this.data)!=null&&e.entries){e=_.w(this.data.entries);for(var g=e.next();!g.done;g=e.next())if((g=this.getRendererForEntry(g.value))&&this.getItemRendererValue(g)===this.value){this.label=this.ytComponentBehavior.getSimpleString(g.label);break}}};
_.v.setInitialLabel=function(){if(this.data&&this.data.entries)for(var e=_.w(this.data.entries),g=e.next();!g.done;g=e.next())if(g=this.getRendererForEntry(g.value)){if(g.isSelected){this.label=this.ytComponentBehavior.getSimpleString(g.label);break}this.data.label&&(this.label=this.data.label)}};
_.v.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var e=_.w(this.data.entries),g=e.next();!g.done;g=e.next()){g=this.getRendererForEntry(g.value);var c=void 0;if((c=g)==null?0:c.isSelected)return this.getItemRendererValue(g)||-1}return-1};
_.v.getItemRendererValue=function(e){return"stringValue"in e||"int32Value"in e?e.stringValue||e.int32Value||null:null};
_.v.getRendererForEntry=function(e){return e.dropdownItemRenderer||e.privacyDropdownItemRenderer||e.navigationDropdownItemRenderer||null};
_.v.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("value-changed",this.value))};
_.v.updateValueFromBinding=function(e){this.value=e.detail.value};
oj.prototype.valueChangedForBinding=oj.prototype.valueChangedForBinding;oj.prototype.valueChanged=oj.prototype.valueChanged;oj.prototype.dataChanged=oj.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],oj.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],oj.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],oj.prototype,"value",void 0);_.t([_.u(),_.B("design:type",Object)],oj.prototype,"label",void 0);_.t([_.Cs("#entries"),_.B("design:type",Object)],oj.prototype,"entries",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],oj.prototype,"disabled",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oj.prototype,"dataChanged",null);
_.t([_.k_("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oj.prototype,"valueChanged",null);_.t([_.OY("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oj.prototype,"valueChangedForBinding",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],oj);
_.U(oj,"ytd-flat-dropdown-renderer",function(){if(P5s!==void 0)return P5s;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return P5s=e},{mode:1});var pD4;var ZI=function(){var e=_.z.apply(this,arguments)||this;e.quizOptions=[];e.explanationPlaceholderText="";e.optionPlaceholderText="";e.correctAnswerIndex=-1;e.isMarkAnswerTooltipShown=!1;e.timer=0;return e};
_.Y(ZI,_.z);_.v=ZI.prototype;_.v.dataChanged=function(){this.optionPlaceholderText=_.mp(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.mp(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.v.onMarkCorrectAnswer=function(e){var g,c=((g=this.quizOptions[this.correctAnswerIndex])==null?void 0:g.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[e.model.index]=Object.assign({},this.quizOptions[e.model.index],{explanationText:c,isCorrect:!0});this.correctAnswerIndex=e.model.index;this.quizOptions=[].concat(_.KY(this.quizOptions))};
_.v.updatePlaceholderTexts=function(){for(var e=!1,g=[],c=0;c<this.quizOptions.length;c++){var k=this.optionPlaceholderText+" "+(c+1),I=void 0;((I=this.quizOptions[c])==null?void 0:I.placeholderText)!==k?(e=!0,g.push(Object.assign({},this.quizOptions[c],{placeholderText:k}))):g.push(this.quizOptions[c])}e&&(this.quizOptions=g);this.isValid()?_.oC(this.hostElement,"yt-commentbox-post-enable"):_.oC(this.hostElement,"yt-commentbox-post-disable")};
_.v.getSimpleString=function(e){return _.mp(e)};
_.v.createQuizOptions=function(e){var g=[],c;e=(c=e==null?void 0:e.minQuizOptions)!=null?c:0;for(c=0;c<e;c++)g.push(this.createQuizOption());return g};
_.v.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.KY(this.quizOptions),[this.createQuizOption()]))};
_.v.onInput=function(){this.quizOptions=[].concat(_.KY(this.quizOptions))};
_.v.onExplanationInput=function(){_.oC(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.v.onRemoveQuizOption=function(e){this.quizOptions.splice(e.model.index,1);e.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:e.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.KY(this.quizOptions));this.quizOptions.length===0&&_.oC(this.hostElement,"yt-quiz-attachment-dismiss")};
_.v.updateHintRenderer=function(){var e=this;clearTimeout(this.timer);this.timer=setTimeout(function(){e.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.v.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var e=0,g=0,c=_.w(this.quizOptions),k=c.next();!k.done;k=c.next()){k=k.value;var I=void 0;if(((I=k.optionText)==null?void 0:I.trim())!==""||k.isCorrect){k.isCorrect&&g++;I=void 0;if(this.hasCustomOptionText&&((I=k.optionText)==null?void 0:I.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;e++}}return e>=
Number(this.editorInfo.minQuizOptions)&&g===1};
_.v.getPostCreateOptions=function(){for(var e=[],g=_.w(this.quizOptions),c=g.next();!c.done;c=g.next()){c=c.value;var k=void 0;((k=c.optionText)==null?void 0:k.trim())!==""&&e.push({pollOption:{text:c.optionText,explanation:c.explanationText},isCorrect:c.isCorrect})}return e};
_.v.getExplanationText=function(){var e;return((e=this.quizOptions[this.correctAnswerIndex])==null?void 0:e.explanationText)||""};
_.v.maybeDisplayMarkAnswerEduToolTip=function(){var e,g,c,k,I,J,q;this.shouldShowMarkAnswerTooltip()&&((e=this.editorInfo)==null?0:(g=e.markAnswerButton)==null?0:(c=g.buttonRenderer)==null?0:(k=c.hint)==null?0:(I=k.hintRenderer)==null?0:(J=I.content)==null?0:(q=J.bubbleHintRenderer)==null?0:q.text)&&(_.t$.getInstance(),e=Bl(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,(e==null?void 0:e.length)>0&&this.optionSelectors&&_.KO(e[0],this.optionSelectors[0]))};
_.v.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var e=0,g=_.w(this.quizOptions),c=g.next();!c.done;c=g.next()){c=c.value;var k=void 0;((k=c.optionText)==null?void 0:k.trim())!==""&&e++;if(c.isCorrect)return!1}return e<2?!1:!0};
_.v.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.v.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.v.updateOptionTextFromBinding=function(e){if(e.target){var g=Array.from(_.o1(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(e.target);if(g>=0){var c;this.quizOptions[g].optionText=(c=e.detail.value)!=null?c:""}}};
_.Bd.Object.defineProperties(ZI.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(e=this.editorInfo)==null?void 0:(g=e.addOptionButton)==null?void 0:g.buttonRenderer;c&&(c.style="STYLE_SUGGESTIVE",c.size="SIZE_SMALL",c.isDisabled=!this.isAllowedToAddOption);return(c==null?0:c.text)?c:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var e,g;return this.quizOptions.length<((g=(e=this.editorInfo)==null?void 0:e.maxQuizOptions)!=null?g:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(e){var g;return(g=e.optionText)==null?void 0:g.trim()})}}});
ZI.prototype.updatePlaceholderTexts=ZI.prototype.updatePlaceholderTexts;ZI.prototype.dataChanged=ZI.prototype.dataChanged;_.t([_.u(),_.B("design:type",Object)],ZI.prototype,"editorInfo",void 0);_.t([_.u(),_.B("design:type",Array)],ZI.prototype,"quizOptions",void 0);_.t([_.u(),_.B("design:type",Object)],ZI.prototype,"explanationPlaceholderText",void 0);_.t([_.eY(".option-selector-button"),_.B("design:type",Array)],ZI.prototype,"optionSelectors",void 0);
_.t([_.k_("editorInfo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZI.prototype,"dataChanged",null);_.t([_.p("editorInfo","isAllowedToAddOption","quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZI.prototype,"addAnswerButton",null);_.t([_.p("editorInfo","quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZI.prototype,"isAllowedToAddOption",null);
_.t([_.k_("quizOptions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZI.prototype,"updatePlaceholderTexts",null);_.t([_.p("quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZI.prototype,"hasCustomOptionText",null);_.t([_.bF({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],ZI);
_.U(ZI,"ytd-backstage-quiz-editor-renderer",function(){if(pD4!==void 0)return pD4;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return pD4=e},{mode:2});var TTZ;var lpI=(yD.FIRSTDAYOFWEEK+1)%7;var ABq;var spu=[],FrY=0,uLI=0;FrY=0;uLI=24;if(.25*(uLI-FrY)<0)ABq=[];else{for(var dJu=FrY;dJu<uLI;dJu+=.25)spu.push(dJu);ABq=spu}var zMI=ABq.map(function(e){e=e*60*60;return{secondsSinceMidnight:e,text:(new im(7)).format(new Date(0,0,0,0,0,e))}});var HIB;var Vw=function(){var e=_.z.apply(this,arguments)||this;e.skipNextOpenDialog=!1;e.errorMessage="";e.previousMonthLabel=_.C_("PREVIOUS_MONTH_LABEL");e.nextMonthLabel=_.C_("NEXT_MONTH_LABEL");return e};
_.Y(Vw,_.z);_.v=Vw.prototype;_.v.attached=function(){var e=this,g=new MutationObserver(function(){e.JSC$16180_calendarMain.scrollHeight>0&&(g.disconnect(),e.calendarConfig&&e.calendarConfig.selectedDate&&e.scrollToDate())});
g.observe(this.JSC$16180_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){g.disconnect()},1E3)};
_.v.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.v.onDateTextChange=function(){if(this.calendarConfig){var e=this.validateDateText();e.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(e.details)):this.textbox.setAttribute("invalid","")}};
_.v.handleDayClick=function(e){e.model.day.date&&(this.commitDate(e.model.day.date),this.dialog.close())};
_.v.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var e=ieU(this.calendarConfig.selectedDate,this.renderData);e!==void 0&&this.JSC$16180_calendarMain.scrollToIndex(e)}};
_.v.scrollToNextMonth=function(){this.JSC$16180_calendarMain.scrollToIndex(this.JSC$16180_calendarMain.firstVisibleIndex+1)};
_.v.scrollToPrevMonth=function(){this.JSC$16180_calendarMain.firstVisibleIndex===0&&this.JSC$16180_calendarMain.scrollTo(0,0);this.JSC$16180_calendarMain.scrollToIndex(this.JSC$16180_calendarMain.firstVisibleIndex-1)};
_.v.onFormSubmit=function(e){e.preventDefault();this.calendarConfig&&(e=this.validateDateText(),e.isValid&&(this.commitDate(e.details),this.dialog.close()))};
_.v.onEscOrClickingOutside=function(e){e=e.detail.path&&!!e.detail.path.length&&e.detail.path[0];if(e.classList.contains("ytd-calendar-date-picker")){e===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var g=0;g<this.dropdownButton.children.length;g++)this.dropdownButton.children[g]===e&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}e=this.textbox.value!==this.dateText;g=this.validateDateText();e&&g.isValid&&this.commitDate(g.details);this.dialog.close();this.textbox.value=
this.dateText};
_.v.commitDate=function(e){this.calendarConfig&&(this.set("calendarConfig.selectedDate",e),_.oC(this.hostElement,"ytd-calendar-date-selected",e))};
_.v.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var e=this.textbox.value;var g=new Date;e=(new BoC(2)).parse(e,g,{validate:!0})===e.length?fTC(g):void 0;if(!e)return this.errorMessage=_.C_("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};g=this.calendarConfig.start;var c=this.calendarConfig.end;if(Gzg(e,g))return this.errorMessage=_.C_("ENTER_DATE_OR_LATER",{allowed_date:YpC(g)}),{isValid:!1,details:void 0};if(Gzg(c,e))return this.errorMessage=
_.C_("ENTER_DATE_OR_EARLIER",{allowed_date:YpC(c)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:e}};
_.Bd.Object.defineProperties(Vw.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?YpC(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var e=this.calendarConfig,g=[],c=0;c<7;c++)g.push(yD.NARROWWEEKDAYS[(c+lpI)%7]);c=[];for(var k=new Date(e.start.year,e.start.month);k.getFullYear()<e.end.year||k.getFullYear()===e.end.year&&k.getMonth()<=e.end.month;){var I=c,J=I.push,q=k.getFullYear(),L=k.getMonth(),n=e,R=void 0,W=[],b=Object.freeze({extraCssClass:"invisible",debugClass:""}),h=new Date(q,L),X=fTC(h);h=h.getDay();for(var D=fTC(new Date);X.month===
L;){h!==lpI&&R||(R=Array.from({length:7}).fill(b),W.push(R));var f={date:{year:q,month:L,day:X.day},extraCssClass:"",debugClass:""};n.selectedDate&&f.date&&XMq(f.date,n.selectedDate)&&(f.extraCssClass+=" selected");if(Gzg(X,n.start)||Gzg(n.end,X))f.extraCssClass+=" disabled";XMq(X,D)&&(f.extraCssClass+=" today");f.extraCssClass=f.extraCssClass.trim();R[(h-lpI+7)%7]=f;X=DK6(X);h=(h+1)%7}J.call(I,{weeks:W,monthLabel:yD.SHORTMONTHS[L]+" "+q,year:q,month:L,monthLabelExtraCssClass:W[0][2]===b?"shift-down-label":
""});k.setMonth(k.getMonth()+1)}return{months:c,daysOfWeekLabel:g}}}}});
Vw.prototype.onEscOrClickingOutside=Vw.prototype.onEscOrClickingOutside;Vw.prototype.scrollToDate=Vw.prototype.scrollToDate;_.t([_.u(),_.B("design:type",Object)],Vw.prototype,"calendarConfig",void 0);_.t([_.u(),_.B("design:type",Object)],Vw.prototype,"skipNextOpenDialog",void 0);_.t([_.u(),_.B("design:type",Object)],Vw.prototype,"errorMessage",void 0);_.t([_.u(),_.B("design:type",Object)],Vw.prototype,"previousMonthLabel",void 0);
_.t([_.u(),_.B("design:type",Object)],Vw.prototype,"nextMonthLabel",void 0);_.t([_.Cs("#textbox"),_.B("design:type",HTMLInputElement)],Vw.prototype,"textbox",void 0);_.t([_.Cs("#calendar-dialog"),_.B("design:type",Object)],Vw.prototype,"dialog",void 0);_.t([_.Cs("#calendar-main"),_.B("design:type",Object)],Vw.prototype,"JSC$16180_calendarMain",void 0);_.t([_.Cs("#date-picker"),_.B("design:type",HTMLElement)],Vw.prototype,"dropdownButton",void 0);
_.t([_.p("calendarConfig.selectedDate"),_.B("design:type",String),_.B("design:paramtypes",[])],Vw.prototype,"dateText",null);_.t([_.p("calendarConfig","calendarConfig.selectedDate"),_.B("design:type",Object),_.B("design:paramtypes",[])],Vw.prototype,"renderData",null);_.t([_.OY("renderData","calendarConfig.selectedDate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vw.prototype,"scrollToDate",null);
_.t([_.Ks("iron-overlay-canceled"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Vw.prototype,"onEscOrClickingOutside",null);_.t([_.Wo({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Vw);
_.U(Vw,"ytd-calendar-date-picker",function(){if(HIB!==void 0)return HIB;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return HIB=e},{mode:2});var Qpu=_.C_("UTC_OFFSET_FORMAT",{utc_offset:(new im("Z")).format(new Date)}),UJq=(new Date).getTimezoneOffset()*-60,o7M=new Date,ZIw,Vev=jo(o7M.getTimezoneOffset());ZIw=Y1u(jHk(Vev,o7M));var tew=_.C_("LOCAL_TIME_GMT_LABEL",{gmt_text:ZIw.replace("+0","+").replace("-0","-").replace(":00","")}),tp=function(){var e=_.z.apply(this,arguments)||this;e.selectedTimeIndex=0;e.selectedTimezoneIndex=0;e.timeOfDayOptions=zMI;return e};
_.Y(tp,_.z);_.v=tp.prototype;_.v.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var e=$Kp();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=e,this.selectedTimeIndex=0;else{var g=jh8(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},e,{selectedDate:g.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(c){return c.secondsSinceMidnight===g.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.v.onDatePicked=function(e){this.selectedDate=e.detail};
_.v.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.oC(this.hostElement,"ytd-date-time-selection-cancelled")};
_.v.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var e=this.selectedDate;e=new Date(e.year,e.month,e.day);_.oC(this.hostElement,"ytd-date-time-selection-update",Math.floor(e.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+e.getTimezoneOffset()*60))}};
_.v.getTimezoneFormat=function(e){return e.localizedDisplayText?e.localizedDisplayText:_.C_("TIMEZONE_FORMAT",{utc_offset_text:""+e.localizedUtcOffset,city_name:""+e.localizedName})};
_.v.updateSelectedTimeIndexFromBinding=function(e){this.selectedTimeIndex=e.detail.value};
_.v.updateSelectedTimezoneIndexFromBinding=function(e){this.selectedTimezoneIndex=e.detail.value};
_.Bd.Object.defineProperties(tp.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var e=this.data.timezoneOptions;var g={name:"Etc/Unknown",localizedName:_.C_("LOCAL_TIME_LABEL"),localizedUtcOffset:Qpu,utcOffsetSec:""+UJq,localizedDisplayText:tew};e?e.length&&e[0].name!==g.name&&(e[0].localizedDisplayText||(g.localizedDisplayText=""),e.unshift(g)):e=[g];return e}}},
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]}}});
tp.prototype.onDateTimeTimezoneChange=tp.prototype.onDateTimeTimezoneChange;tp.prototype.onDatePicked=tp.prototype.onDatePicked;tp.prototype.updateDefaultSelectedValue=tp.prototype.updateDefaultSelectedValue;_.t([_.u(),_.B("design:type",Object)],tp.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],tp.prototype,"calendarConfig",void 0);_.t([_.u(),_.B("design:type",Object)],tp.prototype,"selectedDate",void 0);_.t([_.u(),_.B("design:type",Object)],tp.prototype,"selectedTimeIndex",void 0);
_.t([_.u(),_.B("design:type",Object)],tp.prototype,"selectedTimezoneIndex",void 0);_.t([_.Cs("#time-listbox"),_.B("design:type",Object)],tp.prototype,"timeListBox",void 0);_.t([_.Cs("#timezone-listbox"),_.B("design:type",Object)],tp.prototype,"timezoneListBox",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],tp.prototype,"rendererStamperBehavior",void 0);_.t([_.p("data.timezoneOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],tp.prototype,"timeZones",null);
_.t([_.k_("data","timeZones"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tp.prototype,"updateDefaultSelectedValue",null);_.t([_.p("selectedTimezoneIndex","timeZones"),_.B("design:type",Object),_.B("design:paramtypes",[])],tp.prototype,"selectedTimezone",null);_.t([_.p("selectedTimeIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],tp.prototype,"selectedTime",null);
_.t([_.Ks("ytd-calendar-date-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],tp.prototype,"onDatePicked",null);_.t([_.OY("selectedTimezone","selectedTime","selectedDate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tp.prototype,"onDateTimeTimezoneChange",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],tp);
_.U(tp,"ytd-date-time-picker-renderer",function(){if(TTZ!==void 0)return TTZ;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return TTZ=e},{mode:1});var BT1;var Bu=function(){var e=_.z.apply(this,arguments)||this;e.boundOnTapDismissButton=function(){e.dismissTapHandler()};
e.dismissButtonOverrides={size:"XS"};return e};
_.Y(Bu,_.z);Bu.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}}}}}};
Bu.prototype.dismissTapHandler=function(){_.oC(this.hostElement,"yt-backstage-attachment-dismissed")};
Bu.prototype.computeAttachmentType=function(e){return e?e.backstageImageRenderer?"image":e.videoRenderer?"video":"none":"none"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Bu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Bu.prototype,"attachmentPreview",void 0);_.t([_.u(),_.B("design:type",Object)],Bu.prototype,"dismissButton",void 0);_.t([_.u(),_.B("design:type",Object)],Bu.prototype,"boundOnTapDismissButton",void 0);
_.t([_.u(),_.B("design:type",Object)],Bu.prototype,"dismissButtonOverrides",void 0);_.t([_.u({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.B("design:type",String)],Bu.prototype,"attachmentType",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Bu);
_.U(Bu,"ytd-backstage-dismissable-attachment",function(){if(BT1!==void 0)return BT1;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return BT1=e},{mode:1});var NT1;var Nu=function(){var e=_.z.apply(this,arguments)||this;e.selectedVideoId=void 0;e.picker=void 0;e.dismissButtonOverrides={size:"XS"};e.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return e};
_.Y(Nu,_.z);_.v=Nu.prototype;_.v.onServiceRequestCompleted=function(e){e.stopPropagation()};
_.v.handleAddVideoPreviewAction=function(e){e=this.get("addVideoPreviewAction",e);this.onGetVideoPreviewSuccess(e)};
_.v.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.v.onLaunchVideoPicker=function(e){var g=this,c=_.mp(this.get("addVideoLinkAction.title",e)),k=this.get("addVideoLinkAction.onePickHostId",e);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",e);k&&(this.picker||(c=_.VXI(_.JpK(k).setTitle(c).addView(Q2k()).addView(HbB()),function(I){g.onPickVideo(I)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",e)||c.addView("youtube"),this.picker=c.build()),this.picker.setVisible(!0))};
_.v.onPickVideo=function(e){if(e)if(e.action==="cancel")_.oC(this.hostElement,"yt-video-link-button-cancel");else if(e.action==="picked"){e=e.docs;if(!e||e.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(e=(e==null?0:e.length)?e[0]:void 0)?e.id:void 0;this.setVideoPreview()}};
_.v.setVideoPreview=function(){var e=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){e.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.v.onGetVideoPreviewSuccess=function(e){if(e&&e.videoPreview&&e.cancelButton)this.videoPreview=e.videoPreview,this.cancelButton=e.cancelButton,_.oC(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.v.onGetVideoPreviewError=function(){this.cancel()};
_.v.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.oC(this.hostElement,"yt-video-link-cancel")};
_.v.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Nu.prototype.onServiceRequestCompleted=Nu.prototype.onServiceRequestCompleted;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Nu.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Nu.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Nu.prototype,"videoPreview",void 0);_.t([_.u(),_.B("design:type",Object)],Nu.prototype,"cancelButton",void 0);_.t([_.u(),_.B("design:type",Object)],Nu.prototype,"getVideoPreviewCommand",void 0);_.t([_.u(),_.B("design:type",Object)],Nu.prototype,"dismissButtonOverrides",void 0);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Nu.prototype,"onServiceRequestCompleted",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Nu);
_.U(Nu,"ytd-backstage-video-link-attachment",function(){if(NT1!==void 0)return NT1;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return NT1=e},{mode:1});var SDB;var yB4;var Krq;var Sb=function(){return _.z.apply(this,arguments)||this};
_.Y(Sb,_.z);Sb.prototype.dataChanged=function(){this.active=!1};
Sb.prototype.onTap=function(){_.oC(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Sb.prototype.identity=function(e){return e};
_.Bd.Object.defineProperties(Sb.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k;if((e=this.data)==null?0:(g=e.image)==null?0:(c=g.thumbnails)==null?0:(k=c[0])==null?0:k.url)return e=this.data.image.thumbnails[0].url,e.startsWith("data:image/svg+xml")?VP(e):_.Km(e)}}});
Sb.prototype.dataChanged=Sb.prototype.dataChanged;_.t([_.u(),_.B("design:type",Object)],Sb.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Sb.prototype,"active",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sb.prototype,"dataChanged",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Sb.prototype,"imageSrc",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Sb);
_.U(Sb,"ytd-emoji-suggestion",function(){if(Krq!==void 0)return Krq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Krq=e},{mode:1});var OI4=/.*([:@#].*?)$/,yw=function(){var e=_.z.apply(this,arguments)||this;e.suggestions=[];e.suggestionIndex=-1;e.JSC$16208_lastSuggestionRange=null;return e};
_.Y(yw,_.z);_.v=yw.prototype;_.v.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.v.getSuggestions=function(e){var g=[],c=D0Z(this.emojiManager,e.substr(0,3));if(c)for(var k in c)if(k.toLocaleLowerCase().indexOf(e)===0){var I=c[k];if(I&&I.emojiId){I=$3(this.emojiManager,I.emojiId);var J=void 0,q=void 0,L=void 0,n=void 0,R=((J=I)==null?0:J.isCustomEmoji)?(q=I)==null?void 0:(L=q.shortcuts)==null?void 0:L[0]:(n=I)==null?void 0:n.emojiId;J=void 0;g.push({suggestion:{image:(J=I)==null?void 0:J.image,alt:R,text:k}});if(g.length>=64)break}}return g?g.sort(function(W,b){return b.suggestion.text<
W.suggestion.text?-1:b.suggestion.text===W.suggestion.text?0:1}):null};
_.v.insertSuggestion=function(e){_.oC(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16208_lastSuggestionRange,text:e.alt});this.dropdown.opened=!1};
_.v.updateSuggestionsAtCaret=function(e){this.updateSuggestions(e,this.retrieveTextBeforeRange(e))};
_.v.offsetStartOfRangeBy=function(e,g){e.startOffset>=g&&e.setStart(e.startContainer,e.startOffset-g)};
_.v.updateSuggestions=function(e,g){var c=this;this.JSC$16208_lastSuggestionRange&&(this.JSC$16208_lastSuggestionRange.detach(),this.JSC$16208_lastSuggestionRange=null);if((g=OI4.exec(g))&&g.length&&(g=g[g.length-1].toLocaleLowerCase(),g.length>2||g===":_")&&(this.offsetStartOfRangeBy(e,g.length),this.JSC$16208_lastSuggestionRange=e,(e=this.getSuggestions(g))&&e.length)){this.suggestions=e;_.Va(this,function(){c.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(e.length-1);return}this.dropdown.opened=!1};
_.v.onKeyDown=function(e){if(this.dropdown.opened)switch(e.key){case "Escape":this.dropdown.opened=!1;e.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);e.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);e.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),e.preventDefault()}};
_.v.onKeyUp=function(e,g){switch(e.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(g);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(g)}};
_.v.onKeyPress=function(e){e.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),e.preventDefault())};
_.v.changeSuggestionIndex=function(e){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(e+this.suggestions.length)%this.suggestions.length,e=this.dropdownContent.children[this.suggestionIndex],e.active=!0,this.dropdownContent.scrollTop=e.offsetTop)};
_.v.retrieveTextBeforeRange=function(e){var g=e.startContainer;return g&&g.nodeType===Node.TEXT_NODE?g.textContent.substr(0,e.startOffset):""};
yw.prototype.onKeyPress=yw.prototype.onKeyPress;yw.prototype.onKeyUp=yw.prototype.onKeyUp;yw.prototype.onKeyDown=yw.prototype.onKeyDown;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Array)],yw.prototype,"suggestions",void 0);_.t([_.u(),_.B("design:type",_.x3)],yw.prototype,"emojiManager",void 0);_.t([_.u(),_.B("design:type",Number)],yw.prototype,"verticalSuggestionsOffset",void 0);
_.t([_.Cs("#dropdown"),_.B("design:type",Object)],yw.prototype,"dropdown",void 0);_.t([_.Cs("#dropdown-content"),_.B("design:type",HTMLDivElement)],yw.prototype,"dropdownContent",void 0);_.t([_.Ks("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],yw.prototype,"onKeyDown",null);_.t([_.Ks("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent,Range]),_.B("design:returntype")],yw.prototype,"onKeyUp",null);
_.t([_.Ks("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],yw.prototype,"onKeyPress",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-emoji-input"})],yw);
_.U(yw,"ytd-emoji-input",function(){if(yB4!==void 0)return yB4;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return yB4=e},{mode:2});var Meu;var K7=function(){var e=_.z.apply(this,arguments)||this;e.hasMaxOptions=!1;return e};
_.Y(K7,_.z);_.v=K7.prototype;_.v.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.v.setPrefilledChoices=function(e){var g=this;this.set("pollOptions",[]);var c;for(c=0;c<Math.min(e.length,this.data.maxPollOptions);c++)this.push("pollOptions",e[c].substring(0,this.data.maxPollOptionChars));for(;c<this.data.minPollOptions;c++)this.push("pollOptions","");this.hasMaxOptions=c>=this.data.maxPollOptions;_.Va(this,function(){for(var k=g.pollOptions,I=_.o1(g.hostElement).querySelectorAll(".poll-option-input"),J=0;J<I.length;J++)I[J].value=k[J]})};
_.v.focusChanged=function(){_.Nk(this.hostElement)};
_.v.onInput=function(){var e=this;_.fO(this,"onInput",function(){e.isValid()?_.oC(e.hostElement,"yt-commentbox-post-enable"):_.oC(e.hostElement,"yt-commentbox-post-disable")},300)};
_.v.setPollOptions=function(){var e=[],g,c=((g=this.data)==null?0:g.minPollOptions)?this.data.minPollOptions:0;for(g=0;g<c;g++)e.push("");return e};
_.v.addPollOption=function(){var e=this;_.oC(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.ft.addLowPriorityJob(function(){var g;(g=_.o1(e.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||g.focus()})};
_.v.onRemovePollOption=function(e){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.oC(this.hostElement,"yt-poll-attachment-dismiss")):(e=this.repeat.indexForElement(e.target.parentNode),e!==null&&(this.splice("pollOptions",e,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.oC(this.hostElement,"yt-commentbox-post-enable"))))};
_.v.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.v.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var e=0,g=this.pollOptions.length;e<g;e++)if(this.pollOptions[e].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.v.getPollOptions=function(){return this.pollOptions};
_.v.setPollOptionsFromInputs=function(){for(var e=_.o1(this.hostElement).querySelectorAll(".poll-option-input"),g=0;g<e.length;g++)this.pollOptions[g]=e[g].value.trim()};
_.v.clearPollOptions=function(){var e=_.o1(this.hostElement).querySelectorAll(".poll-option-input");e=_.w(e);for(var g=e.next();!g.done;g=e.next())g.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.v.getSimpleString=function(e){return _.mp(e)};
_.v.updateValueFromBinding=function(e){if(e.target&&this.pollOptions){var g=Array.from(_.o1(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(e.target);if(g>=0){var c;this.pollOptions[g]=(c=e.detail.value)!=null?c:"";this.notifyPath("pollOptions."+g)}}};
K7.prototype.dataChanged=K7.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],K7.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Array)],K7.prototype,"pollOptions",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],K7.prototype,"hasMaxOptions",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],K7.prototype,"enableCreationBox",void 0);
_.t([_.Cs("#repeat"),_.B("design:type",aI)],K7.prototype,"repeat",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],K7.prototype,"dataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-poll-attachment"})],K7);
_.U(K7,"ytd-poll-attachment",function(){if(Meu!==void 0)return Meu;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Meu=e},{mode:2});var C5Z;var e0n;var gTn;var cnI;var OP=function(){return _.z.apply(this,arguments)||this};
_.Y(OP,_.z);_.Bd.Object.defineProperties(OP.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],OP.prototype,"rendererBehaviors",void 0);_.t([_.u(),_.B("design:type",Object)],OP.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],OP.prototype,"focused",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("focused"),_.B("design:type",Object),_.B("design:paramtypes",[])],OP.prototype,"ariaSelected",null);_.t([_.Wo({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],OP);
_.U(OP,"yt-user-mention-suggestion-renderer",function(){if(cnI===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;gTn===void 0&&(gTn=document.createElement("template"));var k=gTn;c.call(g,k.content.cloneNode(!0),e.content.firstChild);cnI=e}e=cnI;return e},{mode:2});var kak;var IWw;var Mu=function(){var e=_.z.apply(this,arguments)||this;e.focusedSuggestionIndex=-1;return e};
_.Y(Mu,_.z);_.v=Mu.prototype;_.v.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.v.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.v.setFocusedSuggestionIndex=function(e){!this.data||!this.data.suggestions||e<0||e>=this.data.suggestions.length||(this.focusedSuggestionIndex=e,e=this.getSuggestionId(e),this._setFocusedSuggestionId(e))};
_.v.advanceSuggestion=function(e){this.focusedSuggestionIndex===-1||e!==-1&&e!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+e),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.v.ensureSuggestionVisible=function(e){e=this.getSuggestionId(e);e=_.o1(this.hostElement).querySelector("[id="+e+"]");e!=null&&(e.offsetTop<this.hostElement.scrollTop?e.scrollIntoView(!0):e.offsetTop+e.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&e.scrollIntoView(!1))};
_.v.getSuggestionId=function(e){return"user-mention-suggestion-"+e};
_.v.onSuggestionTap=function(e){var g=_.x(e.model.item,PUk);this.ytRendererBehavior.logExplicitClick(g);_.oC(this.hostElement,"yt-user-mention-suggestion-selected",{data:g,index:e.model.index})};
_.v.onSuggestionMouseMove=function(e){e.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(e.model.index)};
_.v.isSuggestionFocused=function(e,g){return e===g};
_.v.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.v.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("focused-suggestion-id-changed",this.focusedSuggestionId))};
Mu.prototype.focusedSuggestionIdChangedForBinding=Mu.prototype.focusedSuggestionIdChangedForBinding;Mu.prototype.onDomChange=Mu.prototype.onDomChange;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Mu.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Mu.prototype,"focusedSuggestionIndex",void 0);_.t([_.u({readOnly:!0}),_.B("design:type",String)],Mu.prototype,"focusedSuggestionId",void 0);
_.t([_.Ks("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Mu.prototype,"onDomChange",null);_.t([_.OY("focusedSuggestionId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mu.prototype,"focusedSuggestionIdChangedForBinding",null);_.t([_.Wo({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Mu);
_.U(Mu,"yt-user-mention-suggestions-dropdown",function(){if(IWw===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;kak===void 0&&(kak=document.createElement("template"));var k=kak;c.call(g,k.content.cloneNode(!0),e.content.firstChild);IWw=e}e=IWw;return e},{mode:2});var C7=function(){var e=_.z.apply(this,arguments)||this;e.suggestionsResponse=null;e.activeMention=null;e.selectionChangeListener=e.onSelectionChange.bind(e);e.handlesEnabled=_.G("enable_handles_in_mention_suggest_posts");e.handlesInMentionSuggestionsEnabled=_.G("handles_in_mention_suggest_posts");e.zeroPrefixMentionSuggestionEnabled=_.G("enable_zero_prefix_mention_suggestion_web");e.pendingQuery=null;e.flowNonce=null;return e};
_.Y(C7,_.z);_.v=C7.prototype;_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.v.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.v.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.v.hasSuggestions=function(e){return!!(e&&e.suggestions&&e.suggestions.length>0)};
_.v.onInput=function(){var e=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var g=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),c=this.activeMention.JSC$11664_getText().slice(-1)===" ",k=this.activeMention.JSC$11664_getText().slice(-2,-1)===" ",I="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11664_getText().slice(-2,
-1))>=0;I=this.zeroPrefixMentionSuggestionEnabled&&I;if(this.activeMention.isCollapsed()||(g||k||I)&&c)this.cancelActiveMention();else{var J=this.activeMention.JSC$11664_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.fO(this,"requestSuggestions",function(){e.requestSuggestions(J)},100)}}}};
_.v.onServiceRequestSent=function(e){e.stopPropagation()};
_.v.onServiceRequestCompleted=function(e){e.stopPropagation();e=e.detail.data;e.query&&(!this.pendingQuery||this.pendingQuery!==e.query)||!this.zeroPrefixMentionSuggestionEnabled&&e.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=e,this.hasSuggestions(e)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.v.onServiceRequestError=function(e){e.stopPropagation()};
_.v.onUserMentionSuggestionSelected=function(e){this.selectSuggestion(e.detail.data,e.detail.index)};
_.v.onSelectionChange=function(){if(this.activeMention){var e=_.gY(),g=this.activeMention.JSC$11664_containsRange(e);e=e&&this.containsHelper(this.dropdown,e.getContainer());g||e||this.cancelActiveMention()}};
_.v.containsHelper=function(e,g){var c;if(((c=window.ShadyDOM)==null?void 0:c.noPatch)===!0)return e.contains(g);for(;g;){if(g===e)return!0;g=g instanceof ShadowRoot?g.host:g.parentNode}return!1};
_.v.maybeStartSuggest=function(){var e=_.gY();if(e&&e.isCollapsed()){var g=e.JSC$11664_getStartNode(),c=e.JSC$11664_getStartOffset();if(g instanceof Text&&!(c<1)){var k=g.textContent;!(k=k&&k.charAt(c-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(k)<0||(this.activeMention=_.JZ(g,c-1,e.JSC$11664_getEndNode(),e.JSC$11664_getEndOffset()),this.flowNonce=aC(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.v.updateActiveMention=function(){if(this.activeMention){var e=_.gY();e&&e.isCollapsed()&&(this.activeMention=_.JZ(this.activeMention.JSC$11664_getStartNode(),this.activeMention.JSC$11664_getStartOffset(),e.JSC$11664_getEndNode(),e.JSC$11664_getEndOffset()))}};
_.v.requestSuggestions=function(e){if(this.activeMention){var g={suggestions_query:e};this.pendingQuery=e;_.tr(this.hostElement,[this.suggestionsEndpoint,g])}};
_.v.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.v.focusPreviousSuggestion=function(e){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),e.preventDefault())};
_.v.focusNextSuggestion=function(e){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),e.preventDefault())};
_.v.selectFocusedSuggestion=function(e){if(this.hasSuggestions(this.suggestionsResponse)){var g=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.x(g,PUk)&&(this.selectSuggestion(_.x(g,PUk),this.dropdown.focusedSuggestionIndex),e.preventDefault())}};
_.v.selectSuggestion=function(e,g){if(e){var c=this.activeMention;if(c){var k=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&e.handle?_.j9(k,"\u00a0\u2068@"+e.handle+"\u2069\u00a0"):this.handlesEnabled?_.j9(k,"\u00a0"+e.displayName+"\u00a0"):_.j9(k,"\u00a0@"+e.displayName+"\u00a0");e0(k,"/channel/"+e.channelId);k.classList.add("yt-formatted-string","yt-simple-endpoint");k.setAttribute("spellcheck","false");c.isCollapsed()||c.JSC$11664_removeContents();c.insertNode(k,!0);e=document.createTextNode(" ");
k.parentNode.insertBefore(e,k.nextSibling);window.getSelection().collapse(e,1);g={suggestionSelected:{suggestionIndex:g}};if(this.zeroPrefixMentionSuggestionEnabled){var I;g.suggestionSelected.isZeroPrefix=((I=this.suggestionsResponse)==null?void 0:I.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",g);this.cancelActiveMention();_.oC(this.hostElement,"yt-mention-inserted")}}};
_.v.getPositionTarget=function(e){return e&&e.getBrowserRangeObject()};
_.v.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.v.onFocusedSuggestionIdChanged=function(e){var g=_.RKC(this.hostElement)[0];g&&(e.detail.value?g.setAttribute("aria-activedescendant",e.detail.value):g.removeAttribute("aria-activedescendant"))};
_.v.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.v.logGELEvent=function(e,g){e={eventType:e,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};g&&(e=Object.assign(e,g));_.Y2("userMentionAutoCompleteBoxEvent",e)};
C7.prototype.onDomChange=C7.prototype.onDomChange;C7.prototype.onUserMentionSuggestionSelected=C7.prototype.onUserMentionSuggestionSelected;C7.prototype.onServiceRequestError=C7.prototype.onServiceRequestError;C7.prototype.onServiceRequestCompleted=C7.prototype.onServiceRequestCompleted;C7.prototype.onServiceRequestSent=C7.prototype.onServiceRequestSent;C7.prototype.onInput=C7.prototype.onInput;_.t([_.m(_.yB),_.B("design:type",Object)],C7.prototype,"ironA11yKeysBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],C7.prototype,"suggestionsEndpoint",void 0);_.t([_.u(),_.B("design:type",Object)],C7.prototype,"suggestionsResponse",void 0);_.t([_.u(),_.B("design:type",Object)],C7.prototype,"activeMention",void 0);_.t([_.Cs("#dropdown"),_.B("design:type",Object)],C7.prototype,"dropdown",void 0);_.t([_.Cs("#iron-dropdown"),_.B("design:type",Object)],C7.prototype,"ironDropdown",void 0);
_.t([_.Ks("input"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],C7.prototype,"onInput",null);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],C7.prototype,"onServiceRequestSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],C7.prototype,"onServiceRequestCompleted",null);
_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],C7.prototype,"onServiceRequestError",null);_.t([_.Ks("yt-user-mention-suggestion-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],C7.prototype,"onUserMentionSuggestionSelected",null);
_.t([_.Ks("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],C7.prototype,"onDomChange",null);_.t([_.Wo({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],C7);
_.U(C7,"yt-user-mention-autosuggest-input",function(){if(e0n===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;C5Z===void 0&&(C5Z=document.createElement("template"));var k=C5Z;c.call(g,k.content.cloneNode(!0),e.content.firstChild);e0n=e}e=e0n;return e},{mode:2});var eF=null;
_.rk({is:"ytd-commentbox",_template:function(){if(SDB!==void 0)return SDB;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return SDB=e},
behaviors:[_.tfU.YtHostElementBehavior,_.yB,_.Nr.YtActionHandlerBehavior,_.hF.YtComponentBehavior,_.Fa.YtRendererstamperBehavior,_.QJv.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(e,g){return _.Nc(e.entities,"aadcGuidelinesStateEntityPayload",g)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(e,g){return _.Nc(e.entities,"commentboxStateEntity",g)},
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 _.Y3}},
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:_.G("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.G("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",_.yg(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(e){this.fire(e?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(e){this.set("submitButtonDisabled",void 0);this.clear();e&&this.computeIsEmojiButtonDisplayed_(e)&&(e=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&e.updateEmojiCategories()},
observePrefilledImage_:function(e,g,c){this.isValidPrefilledImage_(e,g,c)&&(this.prefilledAttachment_="image",this.prefilledImageData_=g,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(e,g){this.isValidPrefilledVideo_(e,g)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(e){e&&e.pollData&&e.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(e.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Bk();this.focus()},
detached:function(){document.removeEventListener("tap",_.yg(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(e){e=e.detail;e=e.isCustomEmoji?e.shortcuts[0]:e.emojiId;var g=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(g,e);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var e=_.gY();if(e){e=e.getBrowserRangeObject();for(var g=e.commonAncestorContainer;g;){if(g===this.getEditableTextArea_())return e;g=g.parentNode}}e=this.getEditableTextArea_();e=_.IY(e,e.childNodes.length);e.select();return e.getBrowserRangeObject()},
insertTextWithEmojis_:function(e,g,c){(g=this.emojiManager.createDocumentFragment(g,!0,!1,c===void 0?!0:c))&&g.childNodes.length!==0&&(e.collapsed||e.deleteContents(),c=g.lastChild,e.insertNode(g),_.ybv(c).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var e=_.gY();if(e){var g=e.JSC$11664_getStartNode(),c=e.JSC$11664_getEndNode();if(P$A(g)&&P$A(c)){var k=e.JSC$11664_getStartOffset(),I;if(_.S$&&g.nodeType===Node.ELEMENT_NODE&&(I=_.Q4Z(g)))_.IY(I,0).select();else{I=oB(g)?g:_.Xm(g,oB);var J=oB(c)?c:_.Xm(c,oB);if(I||J)if(e.isCollapsed()){if(g.nodeType===Node.TEXT_NODE){e=!0;k===g.length&&(e=!1);if(eF==="end"||eF==="right")e=!1;g=g.parentNode;e=[].concat(_.KY(g.parentNode.childNodes)).indexOf(g)+(e?0:1);_.IY(g.parentNode,
e).select()}}else I?I.previousSibling&&I.previousSibling.length>0?_.JZ(c,e.JSC$11664_getEndOffset(),I.previousSibling,I.previousSibling.length-1).select():(g=document.createTextNode("\u200b"),I.parentNode.insertBefore(g,I),_.JZ(c,e.JSC$11664_getEndOffset(),g,0).select()):J&&(J.nextSibling&&J.nextSibling.length>0?_.JZ(g,e.JSC$11664_getStartOffset(),J.nextSibling,1).select():(c=document.createTextNode("\u200b"),J.parentNode.insertBefore(c,J.nextSibling),_.JZ(g,e.JSC$11664_getStartOffset(),c,c.length).select()));
eF=null}}else eF=null}else eF=null},
leftKeyPressed_:function(){eF="left"},
rightKeyPressed_:function(){eF="right"},
endKeyPressed_:function(){eF="end"},
maybeDeleteChip_:function(){var e=shz(!0);if(e){var g=_.gY(),c=g.JSC$11664_getStartNode();g=g.JSC$11664_getStartOffset();_.kQ(c,g,e,e.childNodes.length).select()}},
maybeBackspaceChip_:function(){var e=shz(!1);if(e){var g=_.gY(),c=g.JSC$11664_getStartNode();g=g.JSC$11664_getStartOffset();_.kQ(c,g,e,0).select()}},
maybeBackspaceChipWordMode_:function(e){var g=_.gY();if(g.isCollapsed()){var c=g.JSC$11664_getStartNode();g=g.JSC$11664_getStartOffset();var k=FLK(c,g,!0);k&&(_.kQ(c,g,k,0).select(),document.execCommand("delete"),e.preventDefault(),e.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(e){var g=_.gY();if(g.isCollapsed()){var c=g.JSC$11664_getStartNode();g=g.JSC$11664_getStartOffset();var k=FLK(c,g,!1);k&&(_.kQ(c,g,k,k.childNodes.length).select(),document.execCommand("delete"),e.preventDefault(),e.stopImmediatePropagation())}},
onTap_:function(e){if(!e.defaultPrevented&&(e.currentTarget.tagName==="YTD-COMMENTBOX"&&oB(e.target)&&e.preventDefault(),this.isEmojiPickerDisplayed)){var g=this.$$("#emojis"),c=this.$$("#emoji-button"),k=this.getEditableTextArea_();if((e=e.path?e.path:e.composedPath&&e.composedPath())&&!e.includes(g)&&!e.includes(k)&&!e.includes(c))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(e,g,c){return e==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&g!==void 0&&g.encryptedBlobId!==null&&g.sourceExternalVideoId!==null&&c!==void 0&&c.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(e,g){return e==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!g&&!!g.videoRenderer&&!!g.videoRenderer.videoId},
isValidPrefilledAttachment_:function(e,g,c){return this.isValidPrefilledImage_(e,g,c)||this.isValidPrefilledVideo_(e,c)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.G("enable_multi_image_post_creation")){var e=this.$$("ytd-backstage-multi-image-select-renderer");e&&e.hasImages()&&e.cancel()}else(e=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&e.cancel();(e=this.$["poll-attachment"])&&this.hasPoll_&&e.clearPollOptions();(e=this.$["image-poll-attachment"])&&this.hasImagePoll_&&e.resetPollOptions();(e=this.$["quiz-attachment"])&&this.hasQuiz_&&e.resetQuizOptions();
(e=this.$["video-link-attachment"])&&this.hasVideo_&&e.cancel();(e=this.$["access-restrictions-selector"].firstElementChild)&&e.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 _.o1(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.o1(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(e,g){e=pMW(e,this.emojiManager,g).cloneNode(!0);for(g=e.firstChild;g;)if(g.nodeType!==1)g=g.nextSibling;else switch(g.tagName){case "BR":var c=_.Gl();_.S5I(c,g);g=c.nextSibling;break;case "DIV":(c=g.lastChild)&&g.nextSibling&&_.YE(_.Gl(),c);g.previousSibling&&(g.previousSibling.nodeType===1||g.previousSibling.nodeType===3&&!g.previousSibling.textContent.endsWith("\n"))&&_.$E(_.Gl(),g);c&&c.nodeName==="BR"&&_.ev(c);c=g;g.hasChildNodes()?(g=g.firstChild,
_.ydq(c)):(g=g.nextSibling,_.ev(c));break;default:g=g.nextSibling}return uIg(e)},
onAddImageError_:function(e){e.stopPropagation();this.errorMessage_=_.PL(e.detail)},
setTextAreaValue_:function(e){e||(e="");var g=this.getEditableFormattedString_();g.text="";this.getEditableTextArea_().innerText="";typeof e==="string"&&(e={runs:[{text:e}]});g.text=e},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();eF=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var e=this.getEditableTextArea_();e&&(_.IY(e,e.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.uo("HTML_DIR")==="rtl"){var e=this.getEditableTextArea_(),g=this.getTextAreaValue()!==""?"auto":"rtl";e.setAttribute("dir",g)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var e;return CkW((e=this.$["quiz-attachment"])==null?void 0:e.getExplanationText())||CkW(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var e=null;if(this.isEmojiButtonDisplayed){var g=this.getInputRange_();g&&(e=this.emojiInput.retrieveTextBeforeRange(g))}this.insertText_(e,!0);this.updateCharCount_();this.setSubmitButton_();e=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=e.scrollHeight>e.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var e=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:e})},
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(e){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(e)},
onPasteEmoji_:function(e){e.preventDefault();e.stopImmediatePropagation();e=e.clipboardData.getData("text/plain");this.insertText_(e,!1,!1)},
insertText_:function(e,g,c){g=g===void 0?!1:g;c=c===void 0?!0:c;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&e){var k=this.getInputRange_().cloneRange();this.emojiManager&&k&&(g&&this.emojiInput.offsetStartOfRangeBy(k,e.length),this.insertTextWithEmojis_(k,e,c),mK8(this.getEditableTextArea_().lastChild)||(k=this.getInputRange_().cloneRange()),k&&(this.emojiInput.updateSuggestions(k,e),this.updateSuggestionOffset_(k)))}},
setSubmitButton_:function(){if(this.data){var e=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",g=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(e||g){var c=this.getTextAreaValue().trim();g=c===this.previousText_;c=!c||this.aboveCharLimit_;e&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(c=this.aboveCharLimit_);this.submitButtonDisabled=
g||c||!this.getTextLength();e&&_.G("enable_post_scheduling")&&(this.submitButtonDisabled=g&&!this.scheduledPublishTimeSec_||c)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.mp,computeCreationBoxClass_:function(e){return e?"focused":"not-focused"},
computeFooterMessageClass_:function(e,g){return g?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(e,g){return g?g:e},
computeFooterMessageHidden_:function(e,g){return!g&&!e},
computePlaceholderText_:function(e,g,c){return(c==="video"||c==="image")&&(e==null?0:e.prefilledPlaceholderText)?e==null?void 0:e.prefilledPlaceholderText:g==="poll"||g==="image-poll"?e==null?void 0:e.pollPostPlaceholderText:g==="quiz"?e==null?void 0:e.quizPostPlaceholderText:g==="image"?e==null?void 0:e.imagePostPlaceholderText:e==null?void 0:e.placeholderText},
computeHideAttachmentButtons_:function(e,g,c,k){return e===void 0?!1:k&&this.getSimpleString(k)===this.getSimpleString(e.rateLimitErrorMessage)?!0:g!=="none"||c!=="none"||!e.videoLinkButton&&!e.pollButton&&!e.imagePollButton&&!e.quizButton&&!e.imageButton},
computeHideDismissableAttachment_:function(e){return e!=="image"&&e!=="video"},
computeHasVideo_:function(e){return e==="video"},
computeHasImage_:function(e){return e==="image"},
computeHasPoll_:function(e){return e==="poll"},
computeHasImagePoll_:function(e){return e==="image-poll"},
computeHasQuiz_:function(e){return e==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(e){return e&&e.backstageAttachment?e.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!e.backstageAttachment.quizRenderer&&!e.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(e){if(this.isValidPrefilledAttachment_(e.purpose,e.prefilledImageData,e.backstageAttachment))return e.backstageAttachment},
computeEditAttachment_:function(e){if(this.computePrefilledContent_(e)===void 0)return e.backstageAttachment},
computeAuthorThumbnailDimension_:function(e,g){return e&&!g?24:40},
computeImageUploadEndpoint_:function(e){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",e)},
computeRateLimitErrorCommands_:function(e){var g,c;return e==null?void 0:(g=e.advancedTierFeatures)==null?void 0:(c=g.rateLimit)==null?void 0:c.rateLimitCommands},
computeIsBackstageComment_:function(e){return!(!e||e!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(e){return this.get("submitButton.buttonRenderer.serviceEndpoint",e)||this.get("replyButton.buttonRenderer.serviceEndpoint",e)||this.get("postButton.buttonRenderer.serviceEndpoint",e)},
computeSubmitButtonOverride:function(){if(_.G("web_modern_buttons")){var e,g;return{segmentedPosition:this.dropdownSchedulePanel_||!((e=this.data)==null?0:(g=e.postOptionsMenu)==null?0:g.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.G("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(e,g){e=this.get("submitButton.buttonRenderer",e)||this.get("replyButton.buttonRenderer",e)||this.get("postButton.buttonRenderer",e);g&&(e=g);e&&(e=Object.assign({},e),e.serviceEndpoint=void 0,e.isDisabled=this.submitButtonDisabled);return e},
computeHasExternalLinksAccess_:function(e){if(_.G("enable_rfa_external_links")){var g,c,k;return(k=e==null?void 0:(g=e.advancedTierFeatures)==null?void 0:(c=g.externalLinks)==null?void 0:c.allowExternalLinks)!=null?k:!0}return!0},
computeIsEmojiButtonDisplayed_:function(e){return e.emojiButton&&e.emojiPicker&&e.emojiPicker.emojiPickerRenderer&&e.emojiPicker.emojiPickerRenderer.categories?e.emojiPicker.emojiPickerRenderer.categories.find(function(g){return g.emojiPickerCategoryRenderer?g.emojiPickerCategoryRenderer.emojiIds&&g.emojiPickerCategoryRenderer.emojiIds.length>0:g.emojiPickerUpsellCategoryRenderer?g.emojiPickerUpsellCategoryRenderer.emojis&&g.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(e){return e.charLimit?e.charLimit:null},
computeDropdownSchedulingPanel_:function(e,g){if(e==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&g)return g},
computeInlineSchedulingPanel_:function(e,g){if(e==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&g)return g},
computeHideAuthorThumbnail_:function(e,g){return e||this.computeUseIdentityChip_(g)},
computeHideIdentityChipRenderer_:function(e,g){return e||!this.computeUseIdentityChip_(g)},
computeUseIdentityChip_:function(e){return!!e&&!!e.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(e){var g,c,k,I;(e==null?0:(g=e.detail)==null?0:(c=g.endpoint)==null?0:c.ypcGetOffersEndpoint)||(e==null?0:(k=e.detail)==null?0:(I=k.endpoint)==null?0:I.ypcOffersEndpoint)?(e.stopPropagation(),_.tr(this,[e.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",e)&&(e.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(e){this.addedAttachment="video";this.selectedVideoId_=e.detail.videoId},
commentboxStateEntityChanged_:function(e){var g=this;(e==null?void 0:e.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(e==null?void 0:e.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){g.focus()})},
onYtServiceRequestSent_:function(e,g){if(g.actions)for(e=_.w(g.actions),g=e.next();!g.done;g=e.next())g.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(e){this.isLoading=!1;var g=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",e),c,k,I,J=e==null?void 0:(c=e.detail)==null?void 0:(k=c.data)==null?void 0:(I=k.actionResult)==null?void 0:I.commentboxStateEntityKey;if(g)this.errorMessage_=g;else if(J){var q;this.dismissData_=e==null?void 0:(q=e.detail)==null?void 0:q.data;this.commentboxStateKey_=J}else{this.clear();var L;this.fire("yt-commentbox-dismiss",e==null?void 0:(L=e.detail)==
null?void 0:L.data)}},
onYtServiceRequestError_:function(e){e.stopPropagation();this.isLoading=!1;var g,c;if(((g=this.data)==null?void 0:g.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((c=this.data)==null?void 0:c.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(g=this.get("detail.error.args",e)||[],g.length>1&&g[1].message){this.handlePostsServiceRequestError_(g[1].message);return}(e=this.get("detail.error.message",e))?this.errorMessage_=this.data.errorMessage||_.PL(e):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(e){if(_.G("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var g=_.w(this.rateLimitErrorCommands),c=g.next();!c.done;c=g.next())if(c=c.value,c.errorLabel===e){_.KO(c.command,this.hostElement);return}this.errorMessage_=_.PL(e)},
submitIfNotBackstagePost_:function(e){if(!this.isBackstagePost)this.onSubmit_(e)},
onSubmit_:function(e){var g=this,c,k,I,J,q,L,n,R,W,b,h,X,D,f,l;return _.r(function(A){switch(A.nextAddress){case 1:e.stopPropagation();if(!g.serviceEndpoint||!g.isValidInput_())return A.return();if(g.shouldShowPostAadcNotice_())return g.showPostAadcNotice_(),A.return();if(g.shouldShowCommentAadcNotice_())return g.showCommentAadcNotice_(),A.return();if(!(g.$$("ytd-backstage-multi-image-select-renderer")&&g.hasImage_&&_.G("enable_multi_image_post_creation"))){A.jumpTo(2);break}c=g.$$("ytd-backstage-multi-image-select-renderer");
return A.yield(c.getAllUploadStatuses(),3);case 3:k=A.yieldResult;if(!k)return A.return();I=_.w(k);for(J=I.next();!J.done;J=I.next())if(q=J.value,q.encryptedBlobId===void 0)return g.isLoading=!1,n=L=void 0,g.errorMessage_=(n=(L=g.imageUploadEndpoint_)==null?void 0:L.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?n:null,A.return();return A.return(g.submitForm_(void 0,void 0,void 0,void 0,c.images,g.taggedVideoId_));case 2:if(!g.hasImagePoll_||!g.$["image-poll-attachment"]){A.jumpTo(4);
break}return A.yield(g.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:R=A.yieldResult;if(!R)return A.return();W=_.w(R);for(b=W.next();!b.done;b=W.next())if(h=b.value,!h.encryptedBlobId)return g.isLoading=!1,X=void 0,g.errorMessage_=(X=g.data.errorMessage)!=null?X:null,A.return();case 4:f=(D=g.$$("ytd-backstage-image-select-renderer"))&&D.uploadPromise(),l=g.getSharedPostId_(),f?f.then(function(){g.submitForm_.apply(g,_.KY(_.Mb.apply(0,arguments)))}).catch(function(d){g.isLoading=!1;
g.errorMessage_=_.PL(d.message)}):g.selectedVideoId_?g.submitForm_(void 0,g.selectedVideoId_):g.prefilledAttachment_==="image"?g.submitForm_(g.prefilledImageData_.encryptedBlobId,void 0,void 0,g.prefilledImageData_.sourceExternalVideoId,void 0,g.taggedVideoId_):g.prefilledAttachment_==="video"?g.submitForm_(void 0,g.data.backstageAttachment.videoRenderer.videoId):l?g.submitForm_(void 0,void 0,l):g.taggedVideoId_!==void 0?g.submitForm_(void 0,void 0,void 0,void 0,void 0,g.taggedVideoId_):g.submitForm_(),
_.Uh(A)}})},
openSchedulingPanel:function(e){e&&e.scheduleButton&&e.scheduleButton.buttonRenderer&&(this.scheduleButton_=e.scheduleButton.buttonRenderer);e&&e.dateTimePicker&&this.set("data.schedulingDateTimePicker",e.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(e){e.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(e){e.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(e){e.stopPropagation();e.detail.alertMessage&&(this.alertMessage_=e.detail.alertMessage)},
onImageSelected_:function(e){e.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(e){e.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(e){e.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(e.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(e){e.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(e){var g=this.$["video-link-attachment"];g&&g.onLaunchVideoPicker(e)},
onAttachmentDismiss_:function(e){e.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"&&_.G("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.G("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 e;if(this.addedAttachment==="image-poll"&&((e=this.$["image-poll-attachment"])==null||!e.isValid()))return!1;var g;if(this.addedAttachment==="quiz"&&((g=this.$["quiz-attachment"])==null||!g.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;e=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(e=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")e=!0;return e||!!this.getTextAreaValue().trim()},
submitForm_:function(e,g,c,k,I,J){var q=this.getTextAreaValue().trim(),L={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&q===this.previousText_&&(q=void 0);q!==void 0&&(L.comment_text=q);this.isLoading=!0;J!=void 0&&(L.tagged_video_id=J);e?(L.image_blob_id=e,this.imagePreviewCoordinates_&&(L.image_preview_coordinates=this.imagePreviewCoordinates_)):g?L.attached_video_id=g:c?L.shared_post_id=c:I&&I.length>0&&(L.images_data=I.map(function(n){return{encryptedBlobId:n.encryptedBlobId,
previewCoordinates:n.previewCoordinates}}));
k&&(L.source_video_id=k);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(L.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(L.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(L.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(L.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.G("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(L.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.tr(this,[this.serviceEndpoint,L])},
onIsInputFocusChanged_:function(e,g){e?this.fire("yt-autonav-pause-focus"):g!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(e){var g=this.getEditableTextArea_();[].concat(_.KY(e.dataTransfer.items)).forEach(function(c){c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(k){g.appendChild(document.createTextNode(k))})});
e.preventDefault()},
preventDefault_:function(e){e.preventDefault()},
onSuggestionInsert_:function(e){this.insertTextWithEmojis_(e.detail.range,e.detail.text)},
onEmojiSuggestionClick_:function(e){this.emojiInput.insertSuggestion(e.detail)},
computeSubmitButtonClass_:function(e,g){return!g||e?"":"with-options"},
updateSuggestionOffset_:function(e){if(this.emojiInput&&_.o1(this.emojiInput).querySelector("#dropdown")){var g=this.getEditableTextArea_().getBoundingClientRect().bottom,c=e.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(g-c)+5;g=this.getEditableTextArea_().getBoundingClientRect().left;e=e.getBoundingClientRect().left-g;_.o1(this.emojiInput).querySelector("#dropdown").style.marginLeft=e+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(e){if(_.G("enable_post_scheduling")&&this.data&&this.data.purpose){e=e.detail;if(Math.floor(Date.now()/1E3)>=e)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var g=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(g)||g!==e?this.scheduledPublishTimeSec_=e:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=e;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var e=["image-button","image-poll-button","poll-button","quiz-button"];_.G("auto_convert_posts_video_tag")||e.push("video-link-button");return e},
getButtonRenderer:function(e,g){if(e)switch(g){case "video-link-button":var c;return((c=e.videoLinkButton)==null?void 0:c.buttonRenderer)||void 0;case "image-button":var k;return((k=e.imageButton)==null?void 0:k.buttonRenderer)||void 0;case "poll-button":var I;return((I=e.pollButton)==null?void 0:I.buttonRenderer)||void 0;case "image-poll-button":var J;return((J=e.imagePollButton)==null?void 0:J.buttonRenderer)||void 0;case "quiz-button":var q;return((q=e.quizButton)==null?void 0:q.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var e;return(e=this.data)==null||!e.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var e,g;return!((e=this.data)==null||!e.openAadcDialog)&&!((g=this.aadcGuidelinesState_)==null||!g.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.uo("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var e;((e=this.data)==null?0:e.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.pt("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(e){e.clickTrackingParams&&_.gL().clickCommand(e);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Z5(this,"yt-close-popup-action")},
onHideIdentityChip:function(e){var g;this.set("data.placeholderText",(g=e.hideIdentityChipAction)==null?void 0:g.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var gv=function(){var e=_.z.apply(this,arguments)||this;e.isOpen=!1;e.modern=_.G("web_modern_buttons");e.roundedContainer=!0;e.dropdownButtonOverride=_.G("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;e.inPopupContainer=!1;e.isCommentboxLoading=!1;var g=["image-button","image-poll-button","poll-button"];_.G("enable_quiz_creation")&&g.push("quiz-button");_.G("auto_convert_posts_video_tag")||g.push("video-link-button");e.attachmentButtonIds=g;e.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 e};
_.Y(gv,_.z);_.v=gv.prototype;_.v.computeButtonOverride=function(){var e;return((e=this.data)==null?0:e.postOptionsMenu)&&_.G("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.v.configureRendererStamper=function(){var e={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.G("auto_convert_posts_video_tag")||(e["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return e};
_.v.ready=function(){var e=this,g=_.o1(this.hostElement).querySelector("#placeholder-area"),c=function(k){e.onOpen(k)};
g.addEventListener("tap",c);g.addEventListener("keypress",c)};
_.v.showButtonEduTooltip=function(){var e,g,c,k,I,J,q;if(_.G("enable_quiz_creation")&&((e=this.data)==null?0:(g=e.quizButton)==null?0:(c=g.buttonRenderer)==null?0:(k=c.hint)==null?0:(I=k.hintRenderer)==null?0:(J=I.content)==null?0:(q=J.bubbleHintRenderer)==null?0:q.text)&&(_.t$.getInstance(),e=Bl(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(e==null?void 0:
e.length)>0)){this.ytComponentBehavior.resolveCommand(e[0],{form:{element:this.quizButton}});return}var L;if((L=this.data)==null?0:L.imagePollButtonTooltip)if(_.t$.getInstance(),L=Bl(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(L==null?void 0:L.length)>0){this.ytComponentBehavior.resolveCommand(L[0],{form:{element:this.imagePollButton}});return}var n;_.G("enable_multi_image_post_creation")&&
((n=this.data)==null?0:n.multiImageButtonTooltip)&&(_.t$.getInstance(),n=Bl(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(n==null?void 0:n.length)>0&&this.ytComponentBehavior.resolveCommand(n[0],{form:{element:this.imageButton}}))};
_.v.onCreatePollAction=function(e){_.x(e,SSM)&&(this.JSC$16263_commentbox.addedAttachment="poll",this.openDialog())};
_.v.onAddVideoLinkAction=function(e){if(_.x(e,VLY))this.JSC$16263_commentbox.onAddVideoLink(e)};
_.v.onShowSchedulingPanelCommand=function(e){(e=_.x(e,htk))&&this.openSchedulingPanel(e)};
_.v.onCreateImagePollCommand=function(e){_.x(e,$w4)&&(this.JSC$16263_commentbox.openImagePollComponent(),this.openDialog())};
_.v.onCreateQuizCommand=function(e){_.x(e,YJq)&&(this.JSC$16263_commentbox.openQuizComponent(),this.openDialog())};
_.v.openSchedulingPanel=function(e){_.G("enable_post_scheduling")&&(this.openDialog(),this.JSC$16263_commentbox.openSchedulingPanel(e))};
_.v.onCreateCommentAction=function(e){this.get("createCommentAction.contents",e)&&(this.JSC$16263_commentbox.clear(),this.closeDialog())};
_.v.onOpen=function(e){e instanceof KeyboardEvent&&e.type==="keypress"&&e.keyCode!==13&&e.keyCode!==32||(this.data.prepareAccountEndpoint?_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.v.onYtCommentboxDismiss=function(){this.closeDialog()};
_.v.onYtCommentboxLoadingStart=function(e){e.stopPropagation();this.isCommentboxLoading=!0};
_.v.onYtCommentboxLoadingEnd=function(e){e.stopPropagation();this.isCommentboxLoading=!1};
_.v.onYtVideoLinkButtonCancel=function(e){e.stopPropagation();this.onOpen(e)};
_.v.onYtVideoLinkSelected=function(e){e.stopPropagation();this.onOpen(e)};
_.v.onIronSelect=function(e){e.stopPropagation();e.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=e.detail.item.value&&(this.accessRestriction?(this.accessRestriction=e.detail.item.value,this.onOpen(e)):this.accessRestriction=e.detail.item.value)};
_.v.onYtNavigate=function(e){this.get("detail.endpoint.backstageImageUploadEndpoint",e)&&(this.JSC$16263_commentbox.addedAttachment="image",this.JSC$16263_commentbox.submitButtonDisabled=!0,this.onOpen(e))};
_.v.onRequestSent=function(e){for(var g=_.w(e.detail),c=g.next();!c.done;c=g.next())_.x(c.value,sDk)&&(this.JSC$16263_commentbox.addedAttachment="image",this.JSC$16263_commentbox.submitButtonDisabled=!0,this.onOpen(e))};
_.v.openDialog=function(){var e;(e=this.data)!=null&&e.isIneligibleForCommunityPagePostCreation||(this.JSC$16263_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16263_commentbox.focus())};
_.v.onPopupClosed=function(){_.t$.getInstance()};
_.v.computeCreationDisabled=function(e){return!!e};
_.v.computeIsCreationDialog=function(e){return!!e&&e==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.v.computeDisabledPostButton=function(e){if(!e)return null;e.isDisabled=!0;return e};
_.v.computeIsCreationDialogWithHeader=function(e){return!this.inPopupContainer&&!!e&&!!e.authorText&&e.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.v.computeIsHeaderHidden=function(e,g){return!e||g};
_.v.computeDropdownRendererClasses=function(e){return e?["text-secondary-style"]:[]};
_.v.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var e=_.o1(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;e&&e.reset()};
gv.prototype.onPopupClosed=gv.prototype.onPopupClosed;gv.prototype.onRequestSent=gv.prototype.onRequestSent;gv.prototype.onYtNavigate=gv.prototype.onYtNavigate;gv.prototype.onIronSelect=gv.prototype.onIronSelect;gv.prototype.onYtVideoLinkSelected=gv.prototype.onYtVideoLinkSelected;gv.prototype.onYtVideoLinkButtonCancel=gv.prototype.onYtVideoLinkButtonCancel;gv.prototype.onYtCommentboxLoadingEnd=gv.prototype.onYtCommentboxLoadingEnd;gv.prototype.onYtCommentboxLoadingStart=gv.prototype.onYtCommentboxLoadingStart;
gv.prototype.onYtCommentboxDismiss=gv.prototype.onYtCommentboxDismiss;gv.prototype.showButtonEduTooltip=gv.prototype.showButtonEduTooltip;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],gv.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],gv.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],gv.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gv.prototype,"isOpen",void 0);_.t([_.u({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],gv.prototype,"buttonOverride",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gv.prototype,"modern",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gv.prototype,"roundedContainer",void 0);_.t([_.u(),_.B("design:type",Object)],gv.prototype,"dropdownButtonOverride",void 0);_.t([_.u({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.B("design:type",Boolean)],gv.prototype,"creationDisabled",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],gv.prototype,"enableCreationBox",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.B("design:type",Boolean)],gv.prototype,"isCreationDialog",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gv.prototype,"inPopupContainer",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.B("design:type",Boolean)],gv.prototype,"isCreationDialogWithHeader",void 0);_.t([_.u(),_.B("design:type",Object)],gv.prototype,"accessRestriction",void 0);
_.t([_.u({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.B("design:type",Array)],gv.prototype,"dropdownRendererClasses",void 0);_.t([_.u(),_.B("design:type",Object)],gv.prototype,"isCommentboxLoading",void 0);_.t([_.u(),_.B("design:type",Array)],gv.prototype,"attachmentButtonIds",void 0);_.t([_.Cs("#image-button"),_.B("design:type",HTMLElement)],gv.prototype,"imageButton",void 0);
_.t([_.Cs("#image-poll-button"),_.B("design:type",HTMLElement)],gv.prototype,"imagePollButton",void 0);_.t([_.Cs("#quiz-button"),_.B("design:type",HTMLElement)],gv.prototype,"quizButton",void 0);_.t([_.Cs("#commentbox"),_.B("design:type",Object)],gv.prototype,"JSC$16263_commentbox",void 0);_.t([_.OY("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gv.prototype,"showButtonEduTooltip",null);
_.t([_.Ks("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gv.prototype,"onYtCommentboxDismiss",null);_.t([_.Ks("yt-commentbox-loading-start"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gv.prototype,"onYtCommentboxLoadingStart",null);
_.t([_.Ks("yt-commentbox-loading-end"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gv.prototype,"onYtCommentboxLoadingEnd",null);_.t([_.Ks("yt-video-link-button-cancel"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gv.prototype,"onYtVideoLinkButtonCancel",null);
_.t([_.Ks("yt-video-link-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gv.prototype,"onYtVideoLinkSelected",null);_.t([_.Ks("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gv.prototype,"onIronSelect",null);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gv.prototype,"onYtNavigate",null);
_.t([_.Ks("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gv.prototype,"onRequestSent",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gv.prototype,"onPopupClosed",null);_.t([_.bF({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],gv);
_.U(gv,"ytd-backstage-post-dialog-renderer",function(){if(iI1!==void 0)return iI1;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return iI1=e},{mode:1});var JnB;var vTw;var cZ=function(){return _.z.apply(this,arguments)||this};
_.Y(cZ,_.z);_.v=cZ.prototype;_.v.computeHeartButtonStyle=function(e){return(e==null?0:e.styleType)?e.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.v.onYtButtonTap=function(){if(this.data.isEnabled){var e=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(e=this.getEndpoint(e))&&_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}})}else(e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(e)};
_.v.toggle=function(e){this.set("data.isHearted",e!==void 0?e:!this.data.isHearted)};
_.v.getEndpoint=function(e){var g,c=(g=this.data)==null?void 0:g.heartEndpoint,k;g=(k=this.data)==null?void 0:k.unheartEndpoint;if(c&&g)return e?g:c};
_.v.computeButtonAccessibility=function(e,g){var c,k,I=e==null?void 0:(c=e.heartedAccessibility)==null?void 0:(k=c.accessibilityData)==null?void 0:k.label,J,q;e=e==null?void 0:(J=e.unheartedAccessibility)==null?void 0:(q=J.accessibilityData)==null?void 0:q.label;return g?I:e};
_.Bd.Object.defineProperties(cZ.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 e;return _.G("kevlar_system_icons")&&!((e=this.data)==null||!e.isHearted)}}});
cZ.prototype.onYtButtonTap=cZ.prototype.onYtButtonTap;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],cZ.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],cZ.prototype,"data",void 0);_.t([_.p("data.isHearted"),_.B("design:type",Object),_.B("design:paramtypes",[])],cZ.prototype,"heartTooltip",null);
_.t([_.p("data.isHearted"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],cZ.prototype,"iconFilled",null);_.t([_.u({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.B("design:type",String)],cZ.prototype,"buttonAccessibility",void 0);_.t([_.u({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],cZ.prototype,"heartButtonStyle",void 0);
_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cZ.prototype,"onYtButtonTap",null);_.t([_.bF({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],cZ);
_.U(cZ,"ytd-creator-heart-renderer",function(){if(vTw!==void 0)return vTw;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return vTw=e},{mode:1});var kK=function(){var e=_.z.apply(this,arguments)||this;e.hasCreatorReply=!1;e.buttonOverrides={size:"S",iconPosition:"icon-only"};e.replyButtonOverrides={size:"S",type:"text"};e.forceIconButton=!_.G("web_modern_buttons");e.modern=_.G("web_modern_buttons");e.buttonTooltipPosition="bottom";e.systemIcons=_.G("kevlar_system_icons");e.replyDialog=null;return e};
_.Y(kK,_.z);_.v=kK.prototype;
_.v.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.v.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.v.dataChange=function(){this.replyDialog&&_.o1(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var e,g,c;this.isLiked=this.systemIcons&&!!((e=this.data)==null?0:(g=e.likeButton)==null?0:(c=g.toggleButtonRenderer)==null?0:c.isToggled)};
_.v.computeShowVoteCountBeginning=function(e,g){return e===void 0||g===void 0?!0:e.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!g&&this.ytRendererBehavior.getSimpleString(g)!=="0"};
_.v.computeShowVoteCountEnd=function(e,g){return e===void 0||g===void 0?!0:e.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!g&&this.ytRendererBehavior.getSimpleString(g)!=="0"};
_.v.computeShowCommentCount=function(e,g){return e===void 0||g===void 0?!0:e.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!g&&this.ytRendererBehavior.getSimpleString(g)!=="0"};
_.v.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.v.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.v.showReplyDialog=function(e){e&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.o1(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=e,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.v.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.v.onRequestSent=function(e){e=_.w(e.detail);for(var g=e.next();!g.done;g=e.next())(g=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",g.value))&&this.showReplyDialog(g)};
_.v.onYtNavigate=function(e){var g,c;(e=(g=_.x(e.detail.endpoint,_.uau))==null?void 0:(c=g.dialog)==null?void 0:c.commentReplyDialogRenderer)&&this.showReplyDialog(e)};
_.v.onYtServiceRequestSent=function(e,g){e.stopPropagation();if(g.actions)for(e=0;e<g.actions.length;e++){var c=_.x(g.actions[e],eDq);c&&this.handleUpdateCommentVoteAction(c)}};
_.v.handleUpdateCommentVoteAction=function(e){this.voteCount=e.voteCount||_.PL("0");e.voteStatus==="LIKE"?this.JSC$16275_ytdDislikeToggleButtonRenderer.toggle(!1):e.voteStatus==="DISLIKE"?this.JSC$16275_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16275_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16275_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.v.computeReplyButtonHidden=function(e){return e};
_.v.computeReplyButtonBeginning=function(e){return(e==null?0:e.replyButton)&&e.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?e.replyButton:void 0};
_.v.computeReplyButtonEnd=function(e){return(e==null?0:e.replyButton)&&e.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?e.replyButton:void 0};
_.v.computeActionButtonStyle=function(e){return(e==null?0:e.style)?e.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.v.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.v.onYtToggleButton=function(e){var g,c;this.isLiked=this.systemIcons&&!!((g=e.detail)==null?0:(c=g.actions)==null?0:c.like)};
kK.prototype.onYtToggleButton=kK.prototype.onYtToggleButton;kK.prototype.onButtonTooltipPositionChanged=kK.prototype.onButtonTooltipPositionChanged;kK.prototype.onYtServiceRequestSent=kK.prototype.onYtServiceRequestSent;kK.prototype.onYtNavigate=kK.prototype.onYtNavigate;kK.prototype.onRequestSent=kK.prototype.onRequestSent;kK.prototype.onYtCommentboxDismiss=kK.prototype.onYtCommentboxDismiss;kK.prototype.dataChange=kK.prototype.dataChange;
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],kK.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],kK.prototype,"voteCount",void 0);_.t([_.u(),_.B("design:type",Object)],kK.prototype,"commentCount",void 0);_.t([_.u(),_.B("design:type",Object)],kK.prototype,"replyThumbnail",void 0);
_.t([_.u(),_.B("design:type",Object)],kK.prototype,"hasCreatorReply",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],kK.prototype,"enableCreationBox",void 0);_.t([_.u({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],kK.prototype,"actionButtonsStyle",void 0);_.t([_.u({computed:"computeReplyButtonBeginning(data)"}),_.B("design:type",Object)],kK.prototype,"replyButtonBeginning",void 0);
_.t([_.u({computed:"computeReplyButtonEnd(data)"}),_.B("design:type",Object)],kK.prototype,"replyButtonEnd",void 0);_.t([_.u(),_.B("design:type",Object)],kK.prototype,"buttonOverrides",void 0);_.t([_.u(),_.B("design:type",Object)],kK.prototype,"replyButtonOverrides",void 0);_.t([_.u(),_.B("design:type",Object)],kK.prototype,"forceIconButton",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],kK.prototype,"useCommentIcon",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],kK.prototype,"modern",void 0);_.t([_.u(),_.B("design:type",Object)],kK.prototype,"buttonTooltipPosition",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],kK.prototype,"systemIcons",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],kK.prototype,"isLiked",void 0);_.t([_.Cs("ytd-button-renderer"),_.B("design:type",Object)],kK.prototype,"ytdReplyButtonRenderer",void 0);
_.t([_.Cs("#like-button"),_.B("design:type",Object)],kK.prototype,"JSC$16275_ytdLikeToggleButtonRenderer",void 0);_.t([_.Cs("#dislike-button"),_.B("design:type",Object)],kK.prototype,"JSC$16275_ytdDislikeToggleButtonRenderer",void 0);_.t([_.Cs("#reply-dialog"),_.B("design:type",HTMLElement)],kK.prototype,"replyDialogElement",void 0);_.t([_.Cs("#reply-button"),_.B("design:type",HTMLElement)],kK.prototype,"replyButtonElement",void 0);
_.t([_.Cs("#reply-button-end"),_.B("design:type",HTMLElement)],kK.prototype,"replyButtonEndElement",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kK.prototype,"dataChange",null);_.t([_.Ks("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kK.prototype,"onYtCommentboxDismiss",null);
_.t([_.Ks("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kK.prototype,"onRequestSent",null);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kK.prototype,"onYtNavigate",null);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],kK.prototype,"onYtServiceRequestSent",null);_.t([_.OY("buttonTooltipPosition"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kK.prototype,"onButtonTooltipPositionChanged",null);
_.t([_.Ks("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kK.prototype,"onYtToggleButton",null);_.t([_.bF({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],kK);
_.U(kK,"ytd-comment-action-buttons-renderer",function(){if(JnB!==void 0)return JnB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return JnB=e},{mode:1});var w0q;var Io=function(){return _.z.apply(this,arguments)||this};
_.Y(Io,_.z);Io.prototype.focus=function(){_.o1(this.hostElement).querySelector("#commentbox").focus()};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Io.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Io.prototype,"zeroStepChannelCreationRenderer",void 0);_.t([_.bF({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Io);
_.U(Io,"ytd-comment-dialog-renderer",function(){if(w0q!==void 0)return w0q;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return w0q=e},{mode:1});var qis;var JX=function(){var e=_.z.apply(this,arguments)||this;e.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.G("enable_web_delhi_icons")};e.replyButtonOverrides={size:"S",type:"text"};return e};
_.Y(JX,_.z);_.v=JX.prototype;_.v.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.v.detached=function(){this.replyBox&&this.replyBox.remove()};
_.v.showReplyDialog=function(e){if(e){var g=this.replyBox;g||(g=document.createElement("ytd-comment-reply-dialog-renderer"),g.id="replybox",_.o1(this.replyDialogDiv).appendChild(g));g.data=e;this.replyDialogDiv.hidden=!1;g.openDialog()}};
_.v.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.v.handleReplyButtonClick=function(){if(this.isSuperfanOnlyCommentsEligibleUser){var e,g=_.x((e=this.toolbarSurface)==null?void 0:e.superfanOnlySnackbarCommand,_.EL);g&&_.oC(this.hostElement,"yt-show-superfan-only-snackbar",{command:g})}else this.isSubsOnlyCommentsEligibleUser&&(e=_.x((g=this.toolbarSurface)==null?void 0:g.subscribersOnlyDisclaimerSnackbarCommand,_.EL))&&_.oC(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:e})};
_.v.onYtServiceRequestSent=function(e,g){e.stopPropagation();if(g.actions)for(var c=0;c<g.actions.length;c++){var k=_.x(g.actions[c],eDq);k?this.handleUpdateCommentVoteAction(k):e.target===this.heartButton&&this.toggleHeartState()}};
_.v.handleUpdateCommentVoteAction=function(e){var g;(g=this.toolbarState)!=null&&g.key&&this.ytdReduxBehavior.dispatch(_.ET("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:e.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":e.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.v.toggleHeartState=function(){var e;(e=this.toolbarState)!=null&&e.key&&this.ytdReduxBehavior.dispatch(_.ET("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Bd.Object.defineProperties(JX.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return(((e=this.toolbarState)==null?void 0:e.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(g=this.toolbarData)==null?void 0:g.likeCountLiked:(c=this.toolbarData)==null?void 0:c.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.toolbarSurface)==null?void 0:e.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.toolbarSurface)==null?void 0:e.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.toolbarSurface)==null?void 0:e.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
isSuperfanOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.toolbarSurface)==null?void 0:e.superfanOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.toolbarSurface)==null?void 0:e.prepareAccountCommand)!==void 0&&!_.G("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var e,g=_.x((e=this.toolbarSurface)==null?void 0:e.prepareAccountCommand,_.EL),c,k,I,J,q,L,n,R,W;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((c=this.toolbarSharedData)==null||!c.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((k=this.toolbarState)==null?void 0:k.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:g!=null?g:_.x((I=this.toolbarSurface)==null?void 0:I.likeCommand,_.EL),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:g!=null?g:_.x((J=this.toolbarSurface)==null?void 0:J.unlikeCommand,_.EL),defaultCommand:this.isVisiblyDisabled?_.x((q=this.toolbarSurface)==null?void 0:q.commentDisabledActionCommand,_.EL):void 0,defaultTooltip:(L=this.toolbarData)==null?void 0:L.likeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:n.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(R=this.toolbarData)==null?void 0:R.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(W=this.toolbarSharedData)==null?void 0:W.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var e,g=_.x((e=this.toolbarSurface)==null?void 0:e.prepareAccountCommand,_.EL),c,k,I,J,q,L,n,R,W,b;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((c=this.toolbarSharedData)==null||!c.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((k=this.toolbarState)==null?void 0:k.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:g!=null?g:_.x((I=this.toolbarSurface)==null?void 0:I.dislikeCommand,_.EL),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:g!=null?g:_.x((J=this.toolbarSurface)==null?void 0:J.undislikeCommand,_.EL),defaultCommand:this.isVisiblyDisabled?_.x((q=this.toolbarSurface)==null?void 0:q.commentDisabledActionCommand,_.EL):void 0,defaultTooltip:(L=this.toolbarData)==null?void 0:L.dislikeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:
n.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(R=this.toolbarSharedData)==null?void 0:R.dislikeReplyButtonA11y:(W=this.toolbarSharedData)==null?void 0:W.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(b=this.toolbarSharedData)==null?void 0:b.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var e,g,c;if(((e=this.toolbarState)==null?void 0:e.heartState)!==void 0&&((g=this.toolbarState)==null?void 0:g.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((c=this.toolbarState)==null?void 0:c.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var k,I,J,q,L,n,R,W,b,h,X,D,f,l;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(k=this.toolbarData)==null?void 0:k.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((I=this.toolbarState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((q=this.toolbarState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((L=this.toolbarState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.x((n=this.toolbarSurface)==null?void 0:n.heartCommand,
_.EL),unheartEndpoint:this.isVisiblyDisabled?void 0:_.x((R=this.toolbarSurface)==null?void 0:R.unheartCommand,_.EL),disabledEndpoint:this.isVisiblyDisabled?_.x((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand,_.EL):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(b=this.toolbarData)==null?void 0:b.heartActiveTooltip,unheartedTooltip:(h=this.toolbarData)==null?void 0:h.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((X=
this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(D=this.toolbarSharedData)==null?void 0:D.unheartButtonA11y:(f=this.toolbarSharedData)==null?void 0:f.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(l=this.toolbarSharedData)==null?void 0:l.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.toolbarSurface)==null||!e.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.commentStrings)!=null&&e.replyButtonText){var g,c,k,I;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(g=this.commentStrings)==null?void 0:g.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.x((c=this.toolbarSurface)==null?void 0:c.replyCommand,_.EL),command:this.isVisiblyDisabled?
_.x((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.EL):this.isSubsOnlyCommentsIneligibleUser?_.x((I=this.toolbarSurface)==null?void 0:I.subscribersOnlySnackbarCommand,_.EL):void 0}}}}});
JX.prototype.onYtServiceRequestSent=JX.prototype.onYtServiceRequestSent;JX.prototype.hideReplyDialogDiv=JX.prototype.hideReplyDialogDiv;_.t([_.u(),_.B("design:type",Object)],JX.prototype,"commentStrings",void 0);_.t([_.u(),_.B("design:type",Boolean)],JX.prototype,"isReply",void 0);_.t([_.u(),_.B("design:type",Object)],JX.prototype,"toolbarData",void 0);_.t([_.u(),_.B("design:type",Object)],JX.prototype,"toolbarSharedData",void 0);
_.t([_.u(),_.B("design:type",String)],JX.prototype,"toolbarStateKey",void 0);_.t([_.u(),_.B("design:type",String)],JX.prototype,"toolbarSurfaceKey",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],JX.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],JX.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.sJ),_.B("design:type",Object)],JX.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.Cs("#reply-dialog"),_.B("design:type",HTMLElement)],JX.prototype,"replyDialogDiv",void 0);_.t([_.Cs("#replybox"),_.B("design:type",Object)],JX.prototype,"replyBox",void 0);_.t([_.Cs("ytd-creator-heart-renderer"),_.B("design:type",Object)],JX.prototype,"heartButton",void 0);_.t([_.u({selector:function(e,g){return _.Nc(e.entities,"engagementToolbarStateEntityPayload",g)},
selectorArgs:["toolbarStateKey"]}),_.B("design:type",Object)],JX.prototype,"toolbarState",void 0);_.t([_.u({selector:mQe,selectorArgs:["toolbarSurfaceKey"]}),_.B("design:type",Object)],JX.prototype,"toolbarSurface",void 0);_.t([_.u(),_.B("design:type",Object)],JX.prototype,"buttonOverrides",void 0);_.t([_.Ks("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JX.prototype,"hideReplyDialogDiv",null);
_.t([_.p("toolbarData","toolbarState"),_.B("design:type",String),_.B("design:paramtypes",[])],JX.prototype,"likeCount",null);_.t([_.p("likeCount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],JX.prototype,"showLikeCount",null);_.t([_.p("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],JX.prototype,"isVisiblyDisabled",null);_.t([_.p("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],JX.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.t([_.p("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],JX.prototype,"isSubsOnlyCommentsEligibleUser",null);_.t([_.p("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],JX.prototype,"isSuperfanOnlyCommentsEligibleUser",null);_.t([_.p("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],JX.prototype,"hasPrepareAccountCommand",null);
_.t([_.p("toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],JX.prototype,"likeToggleButtonRenderer",null);_.t([_.p("isReply","toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],JX.prototype,"dislikeToggleButtonRenderer",null);_.t([_.p("toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],JX.prototype,"creatorHeartSupportedRenderer",null);
_.t([_.p("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],JX.prototype,"hasReplyCommand",null);_.t([_.p("toolbarSurface","commentStrings","isVisiblyDisabled"),_.B("design:type",Object),_.B("design:paramtypes",[])],JX.prototype,"replyButtonRenderer",null);_.t([_.u(),_.B("design:type",Object)],JX.prototype,"replyButtonOverrides",void 0);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],JX.prototype,"onYtServiceRequestSent",null);_.t([_.bF({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],JX);
_.U(JX,"ytd-comment-engagement-bar",function(){if(qis!==void 0)return qis;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return qis=e},{mode:1});var Lju;var vZ=function(){return _.z.apply(this,arguments)||this};
_.Y(vZ,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vZ.prototype,"data",void 0);_.t([_.bF({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],vZ);
_.U(vZ,"ytd-comment-inline-thumbnail-renderer",function(){if(Lju!==void 0)return Lju;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Lju=e},{mode:1});var rnv;var wv=function(){return _.z.apply(this,arguments)||this};
_.Y(wv,_.z);wv.prototype.onMessageTap=function(){if(this.onTapCommand){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);e&&this.ytdOpenPopupBehavior.openPopup(e)}};
_.Bd.Object.defineProperties(wv.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return(e=this.data)==null?void 0:(g=e.button)==null?void 0:(c=g.buttonRenderer)==null?void 0:c.command}}});
_.t([_.m(_.sJ),_.B("design:type",Object)],wv.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wv.prototype,"data",void 0);_.t([_.p("data.button.buttonRenderer.command"),_.B("design:type",Object),_.B("design:paramtypes",[])],wv.prototype,"onTapCommand",null);_.t([_.bF({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],wv);
_.U(wv,"ytd-comment-pause-composer-renderer",function(){if(rnv!==void 0)return rnv;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return rnv=e},{mode:1});var aWZ;var nTv;var q$=function(){var e=_.z.apply(this,arguments)||this;e.isOpen=!1;return e};
_.Y(q$,_.z);_.v=q$.prototype;_.v.dataChanged=function(){this.isOpen=!1};
_.v.onTap=function(){this.data&&(this.data.navigationEndpoint?_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.v.focus=function(){this.JSC$16304_commentbox.focus()};
_.v.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.v.openDialog=function(){this.isOpen=!0;this.JSC$16304_commentbox.focus();this.JSC$16304_commentbox.maybeHeightChanged()};
q$.prototype.onYtCommentboxDismiss=q$.prototype.onYtCommentboxDismiss;q$.prototype.dataChanged=q$.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],q$.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],q$.prototype,"isOpen",void 0);_.t([_.Cs("#commentbox"),_.B("design:type",Object)],q$.prototype,"JSC$16304_commentbox",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q$.prototype,"dataChanged",null);_.t([_.Ks("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],q$.prototype,"onYtCommentboxDismiss",null);_.t([_.bF({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],q$);
_.U(q$,"ytd-comment-reply-dialog-renderer",function(){if(nTv!==void 0)return nTv;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return nTv=e},{mode:1});var R0q;var L6=function(){return _.z.apply(this,arguments)||this};
_.Y(L6,_.z);_.Bd.Object.defineProperties(L6.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(e=this.data)==null?void 0:(g=e.icon)==null?void 0:g.iconType;return c?"yt-icons:"+c.toLowerCase():null}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],L6.prototype,"data",void 0);_.t([_.u(),_.p("data.icon"),_.B("design:type",Object),_.B("design:paramtypes",[])],L6.prototype,"icon",null);_.t([_.bF({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],L6);
_.U(L6,"ytd-pinned-comment-badge-renderer",function(){if(R0q!==void 0)return R0q;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return R0q=e},{mode:1});var ET4;var Wjw={},byw={input:!0,meta:!0,br:!0,link:!0,img:!0},rv=null;Wjw.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(){rv==null&&(rv=document.createElement("tp-yt-paper-tooltip"),rv.offset=8,rv.fitToVisibleBounds=!0)},
onMouseOver_:function(e){if(e=_.Xm(e.target,function(I){return I==this||I.getAttribute&&I.getAttribute("shared-tooltip-text")}.bind(this),!0)){var g=e.getAttribute("shared-tooltip-text");
if(g){var c=this,k=null;e!=this&&(e.tagName.toLowerCase()in byw?c=e.parentElement:c=e,e.id&&(k=e.id));this.polymerController.createTooltipIfRequired_();if(rv.parentElement!=c||rv.for!=k)(0,_.Bg)(rv).textContent=g,_.o1(c).appendChild(rv),rv.for=k,rv.animationDelay=this.polymerController.sharedTooltipAnimationDelay,rv.position=this.polymerController.sharedTooltipPosition}}}};var ao=function(){return _.z.apply(this,arguments)||this};
_.Y(ao,_.z);ao.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]]"}}}}}};
ao.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var e;((e=this.data)==null?0:e.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var g;((g=this.data)==null?0:g.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
ao.prototype.colorChanged=function(){var e,g,c,k=(e=this.data)==null?void 0:(g=e.color)==null?void 0:(c=g.basicColorPaletteData)==null?void 0:c.foregroundBodyColor;k&&(this.rgbBadgeColor=_.R1(k));_.o1(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
ao.prototype.tooltipChanged=function(){var e;((e=this.data)==null?0:e.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
ao.prototype.tooltipChanged=ao.prototype.tooltipChanged;ao.prototype.colorChanged=ao.prototype.colorChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(Wjw.YtSharedTooltipBehavior),_.B("design:type",Object)],ao.prototype,"ytSharedTooltipBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ao.prototype,"data",void 0);
_.t([_.u({value:"#4285F4"}),_.B("design:type",String)],ao.prototype,"rgbBadgeColor",void 0);_.t([_.OY("data.color"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ao.prototype,"colorChanged",null);_.t([_.OY("data.tooltip"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ao.prototype,"tooltipChanged",null);_.t([_.bF({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],ao);
_.U(ao,"ytd-sponsor-comment-badge-renderer",function(){if(ET4!==void 0)return ET4;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ET4=e},{mode:1});var h0w;var X01;var n6=function(){return _.z.apply(this,arguments)||this};
_.Y(n6,_.z);n6.prototype.computeState=function(e){switch(e==null?void 0:e.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"}};
n6.prototype.updateStateIdentifier=function(e){if(this.viewModel.triStateKey){var g=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.ET("triStateButtonStateEntityPayload",g,{key:g,stateIdentifier:e}))}};
n6.prototype.onClick=function(){var e=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(){e.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){e.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Bd.Object.defineProperties(n6.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 e;return((e=this.data)==null?void 0:e.buttonText)||""}}});
_.t([_.u(),_.B("design:type",Object)],n6.prototype,"viewModel",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],n6.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],n6.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.t([_.u({selector:p_V,selectorArgs:["viewModel.triStateKey"]}),_.B("design:type",Object)],n6.prototype,"triStateButtonStateEntity",void 0);
_.t([_.u({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.B("design:type",String)],n6.prototype,"state",void 0);_.t([_.p("viewModel","state"),_.B("design:type",Object),_.B("design:paramtypes",[])],n6.prototype,"data",null);_.t([_.p("data"),_.B("design:type",String),_.B("design:paramtypes",[])],n6.prototype,"buttonText",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],n6);
_.U(n6,"ytd-tri-state-button-view-model",function(){if(X01!==void 0)return X01;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return X01=e},{mode:1});var Gau;var x71;var Ro=function(){var e=_.z.apply(this,arguments)||this;e.defaultIconToFilled=!_.G("kevlar_fill_comment_chip_icon_killswitch");return e};
_.Y(Ro,_.z);Ro.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Ro.prototype.dataChanged=function(){if(this.data){var e,g;((e=this.data.chipColorPalette)==null?0:e.backgroundColor)&&((g=this.data.chipColorPalette)==null?0:g.foregroundTitleColor)&&_.Nk(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.EY(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.EY(this.data.chipColorPalette.foregroundTitleColor)});var c;((c=this.data)==null?0:c.command)?(_.Nk(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Nk(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}};
Ro.prototype.onTap=function(){var e;if(this.data&&(e=this.data)!=null&&e.command){var g;this.ytComponentBehavior.resolveCommand((g=this.data)==null?void 0:g.command)}};
Ro.prototype.getIconSize=function(){return _.G("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Ro.prototype.onTap=Ro.prototype.onTap;Ro.prototype.dataChanged=Ro.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Ro.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.yB),_.B("design:type",Object)],Ro.prototype,"ironA11yKeysBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ro.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],Ro.prototype,"basePriceText",void 0);_.t([_.u(),_.B("design:type",Object)],Ro.prototype,"chipIcon",void 0);_.t([_.u(),_.B("design:type",Object)],Ro.prototype,"defaultIconToFilled",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ro.prototype,"dataChanged",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ro.prototype,"onTap",null);
_.t([_.Wo({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Ro);
_.U(Ro,"yt-pdg-comment-chip-renderer",function(){if(x71===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Gau===void 0&&(Gau=document.createElement("template"));var k=Gau;c.call(g,k.content.cloneNode(!0),e.content.firstChild);x71=e}e=x71;return e},{mode:2});var Ej=function(){var e=_.z.apply(this,arguments)||this;e.useSmallAvatars=_.G("small_avatars_for_comments");e.commentThreadingEnabled=_.G("web_delhi_comment_threads");e.webWatchCompactComments=_.G("web_watch_compact_comments");e.editDialog=null;return e};
_.Y(Ej,_.z);_.v=Ej.prototype;_.v.onShow=function(){_.bB("cmv",void 0,"wn_comments")};
_.v.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.v.detached=function(){this.editDialog=null;this.expander.reset()};
_.v.updateBackgroundColor=function(){if(this.backgroundColor){var e={"--ytd-comment-paid-background-color":_.EY(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Nk(this.hostElement,e)}else _.Nk(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.v.resetExpander=function(){var e;(e=this.expander)==null||e.reset()};
_.v.openEditDialog=function(e){e.dialog&&(this.editDialog=e.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.v.onYtNavigate=function(e){var g=e.detail.endpoint;if(g=_.x(g,_.drY)||_.x(g,_.zqv))e.stopPropagation(),this.openEditDialog(g)};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null;_.Nk(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.v.onAuthorThumbnailClicked=function(){_.G("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.v.onYtCommentboxResize=function(e){var g;(e==null?0:(g=e.detail)==null?0:g.height)&&_.Nk(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":e.detail.height+"px"})};
_.Bd.Object.defineProperties(Ej.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 e,g=(e=this.commentEntity)==null?void 0:e.author;return g&&(g.isCreator||g.isVerified||g.isArtist)?{renderer:{authorEndpoint:g.channelPageEndpoint?_.x(g.channelPageEndpoint,_.EL):_.x(g.channelCommand,_.EL),authorText:{runs:[{text:g.displayName}]},color:g.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:g.isArtist?{iconType:"AUDIO_BADGE"}:
g.isVerified?{iconType:g.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:g.isArtist||g.isVerified?g.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var e,g=(e=this.commentEntity)==null?void 0:e.author;return g!=null&&g.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:g.sponsorBadgeUrl}]},tooltip:g.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var e;return _.x((e=this.commentSurfaceEntity)==null?void 0:e.pdgCommentChip,_.n3I)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var e;return this.voiceReplyContainerViewModel&&((e=this.voiceReplyContainerViewModel)==null?void 0:e.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var e;return _.x((e=this.commentSurfaceEntity)==null?void 0:e.voiceReplyContainerViewModel,LGw)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var e;return this.voiceReplyContainerViewModel&&(e=this.voiceReplyContainerViewModel)!=null&&e.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var e,g;return(g=(e=this.commentSurfaceEntity)==null?void 0:e.commentBackgroundColor)!=null?g:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.G("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var e,g;return(((e=this.commentEntity)==null?void 0:(g=e.properties)==null?void 0:g.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var e,g;if(_.G("enable_profile_cards_on_comments")&&((e=this.commentEntity)==null?0:(g=e.author)==null?0:g.profileCardEndpoint)&&this.viewModel.allowProfileCard){var c,k;return _.x((c=this.commentEntity)==null?void 0:(k=c.author)==null?void 0:k.profileCardEndpoint,_.EL)}var I,J;return _.x((I=this.commentEntity)==null?void 0:(J=I.avatar)==null?void 0:J.endpoint,_.EL)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var e,g;if(_.G("enable_profile_cards_on_comments")&&((e=this.commentEntity)==null?0:(g=e.author)==null?0:g.channelPageEndpoint)){var c,k;return _.x((c=this.commentEntity)==null?void 0:(k=c.author)==null?void 0:k.channelPageEndpoint,_.EL)}var I,J;return _.x((I=this.commentEntity)==null?void 0:(J=I.avatar)==null?void 0:J.endpoint,_.EL)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k,I=(e=this.commentEntity)==null?void 0:(g=e.avatar)==null?void 0:(c=g.image)==null?void 0:(k=c.sources)==null?void 0:k[0];return I?{thumbnails:[{url:I.url,width:I.width,height:I.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.commentEntity)==null?0:(g=e.author)==null?0:g.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.commentEntity)==null?void 0:(g=e.author)==null?void 0:g.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.commentEntity)==null?void 0:(g=e.properties)==null?void 0:g.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var e;return _.x((e=this.commentSurfaceEntity)==null?void 0:e.publishedTimeCommand,_.EL)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var e,g;if(((e=this.commentEntity)==null?0:e.translatedContent)&&((g=this.translateButtonState)==null?void 0:g.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var c;if((c=this.voiceReplyContainerViewModel)==null?0:c.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var k,I;return((k=this.commentEntity)==null?void 0:(I=k.properties)==null?void 0:I.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.commentSharedEntity)==null?void 0:(g=e.strings)==null?void 0:g.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.commentSharedEntity)==null?void 0:(g=e.strings)==null?void 0:g.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.commentEntity)==null||!e.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var e,g,c=(g=_.x((e=this.viewModel)==null?void 0:e.translateButton,qeq))!=null?g:{},k,I,J,q,L,n,R,W,b,h,X;return Object.assign({},c,{untoggledStateData:Object.assign({},c.untoggledStateData,{buttonText:(k=this.commentEntity)==null?void 0:(I=k.translateData)==null?void 0:I.text}),togglingStateData:Object.assign({},c.togglingStateData,{buttonText:(J=this.commentSharedEntity)==null?
void 0:(q=J.strings)==null?void 0:q.translatingText}),toggledStateData:Object.assign({},c.toggledStateData,{buttonText:(L=this.commentSharedEntity)==null?void 0:(n=L.strings)==null?void 0:n.seeOriginalText}),transitionCommand:((R=this.commentEntity)==null?0:R.translatedContent)?void 0:_.x((W=this.commentEntity)==null?void 0:(b=W.translateData)==null?void 0:b.translateComment,_.EL),triStateKey:(h=this.commentEntity)==null?void 0:(X=h.properties)==null?void 0:X.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((g=_.x(_.x((e=this.toolbarSurface)==null?void 0:e.menuCommand,_.EL),Has))==null?void 0:(c=g.menu)==null?void 0:c.menuRenderer)||null}}});
Ej.prototype.onYtCommentboxResize=Ej.prototype.onYtCommentboxResize;Ej.prototype.onYtCommentboxDismiss=Ej.prototype.onYtCommentboxDismiss;Ej.prototype.onYtNavigate=Ej.prototype.onYtNavigate;Ej.prototype.resetExpander=Ej.prototype.resetExpander;Ej.prototype.updateBackgroundColor=Ej.prototype.updateBackgroundColor;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Ej.prototype,"ytdReduxBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Ej.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Cs("#author-thumbnail > button"),_.B("design:type",HTMLElement)],Ej.prototype,"authorThumbnailAnchor",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ej.prototype,"linked",null);
_.t([_.p("viewModel","linked"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"linkedCommentBadge",null);_.t([_.u({reflectToAttribute:!0}),_.p("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ej.prototype,"pinned",null);_.t([_.p("viewModel","pinned"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"pinnedCommentBadge",null);
_.t([_.p("commentEntity","commentSharedEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"authorCommentBadge",null);_.t([_.u({reflectToAttribute:!0}),_.p("authorCommentBadge"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"hasAuthorBadge",null);_.t([_.p("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"sponsorCommentBadge",null);
_.t([_.u({reflectToAttribute:!0}),_.p("sponsorCommentBadge"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"hasSponsorBadge",null);_.t([_.p("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"pdgCommentChipRenderer",null);_.t([_.u({reflectToAttribute:!0}),_.p("voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"hasVoiceReply",null);
_.t([_.p("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"voiceReplyContainerViewModel",null);_.t([_.p("voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"voiceReplyUnavailableText",null);_.t([_.u(),_.B("design:type",Object)],Ej.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"viewModel",null);
_.t([_.u({selector:function(e,g){return _.Nc(e.entities,"commentSharedEntityPayload",g)},
selectorArgs:["viewModel.sharedKey"]}),_.B("design:type",Object)],Ej.prototype,"commentSharedEntity",void 0);_.t([_.u({selector:PRv,selectorArgs:["viewModel.commentKey"]}),_.B("design:type",Object)],Ej.prototype,"commentEntity",void 0);_.t([_.u({selector:function(e,g){return _.Nc(e.entities,"commentSurfaceEntityPayload",g)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.B("design:type",Object)],Ej.prototype,"commentSurfaceEntity",void 0);_.t([_.u({selector:mQe,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.B("design:type",Object)],Ej.prototype,"toolbarSurface",void 0);_.t([_.u({selector:p_V,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.B("design:type",Object)],Ej.prototype,"translateButtonState",void 0);
_.t([_.p("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"backgroundColor",null);_.t([_.u({reflectToAttribute:!0}),_.p("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ej.prototype,"optimalReadingWidthComments",null);_.t([_.Cs("ytd-expander"),_.B("design:type",Object)],Ej.prototype,"expander",void 0);
_.t([_.OY("backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ej.prototype,"updateBackgroundColor",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ej.prototype,"useSmallAvatars",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ej.prototype,"engagementPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ej.prototype,"commentThreadingEnabled",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ej.prototype,"webWatchCompactComments",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"isReply",null);_.t([_.p("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"authorThumbnailEndpoint",null);_.t([_.p("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"authorNameEndpoint",null);
_.t([_.p("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"authorThumbnail",null);_.t([_.p("commentEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],Ej.prototype,"authorTextClass",null);_.t([_.p("commentEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],Ej.prototype,"authorChannelName",null);_.t([_.p("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"publishedTime",null);
_.t([_.p("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"publishedTimeCommand",null);_.t([_.p("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"contentText",null);_.t([_.OY("contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ej.prototype,"resetExpander",null);
_.t([_.p("commentEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ej.prototype,"shouldShowReadMoreInitially",null);_.t([_.p("commentSharedEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],Ej.prototype,"expandText",null);_.t([_.p("commentSharedEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],Ej.prototype,"collapseText",null);_.t([_.p("commentEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ej.prototype,"shouldShowTranslateButton",null);
_.t([_.p("commentEntity","commentSharedEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"translateButton",null);_.t([_.p("toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ej.prototype,"overflowMenuRenderer",null);_.t([_.u(),_.B("design:type",Object)],Ej.prototype,"editDialog",void 0);_.t([_.Cs("ytd-comment-dialog-renderer"),_.B("design:type",Object)],Ej.prototype,"editCommentDialogContainer",void 0);
_.t([_.Cs("ytd-comment-reply-dialog-renderer"),_.B("design:type",Object)],Ej.prototype,"editReplyDialogContainer",void 0);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ej.prototype,"onYtNavigate",null);_.t([_.Ks("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ej.prototype,"onYtCommentboxDismiss",null);
_.t([_.Ks("yt-commentbox-resize"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ej.prototype,"onYtCommentboxResize",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Ej);
_.U(Ej,"ytd-comment-view-model",function(){if(h0w!==void 0)return h0w;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return h0w=e},{mode:_.ZF("kevlar_poly_si_batch_j025")?1:2});_.sL(_.H(function(e){var g={},c={};return _.a("yt-sub-thread",{class:_.o6("ytSubThreadHost",(g.ytSubThreadHasButton=e.isButton,g.ytSubThreadHovered=e.hovered,g.ytSubThreadTopLevelThread=function(){var k,I;return((k=e.topLevelThread)==null?void 0:k.call(e))&&!(_.G("small_avatars_for_comments")&&((I=e.engagementPanel)==null?0:I.call(e)))},g))},_.a("div",{class:"ytSubThreadThreadline"},_.a(_.E,{cond:function(){var k;
return!((k=e.isTeaser)==null?0:k.call(e))},
then:function(){return _.a("div",{class:"ytSubThreadConnection"})}}),_.a("div",{class:"ytSubThreadContinuation"}),_.a("div",{class:"ytSubThreadShadow"})),_.a("div",{class:_.o6("ytSubThreadSubThreadContent",(c.ytSubThreadSubThreadContentEngagementPanel=e.engagementPanel,c))},e.children))},"Qc"),"yt-sub-thread",{props:{isButton:_.jx,
isTeaser:_.jx,hovered:_.jx,topLevelThread:_.jx,engagementPanel:_.jx}});var WZ=function(){var e=_.z.apply(this,arguments)||this;e.modern=_.G("web_modern_buttons");e.commentThreadingEnabled=_.G("web_delhi_comment_threads");e.isWatchGrid=_.G("kevlar_watch_grid");e.buttonOverrides=e.commentThreadingEnabled?_.G("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};e.JSC$16350_spinnerEl=null;return e};
_.Y(WZ,_.z);_.v=WZ.prototype;_.v.configureContinuationPathMap=function(){return _.G("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.v.shouldShowLegacyTeasers=function(e,g){return e&&!g};
_.v.shouldShowExpandedThreads=function(e,g){return this.commentThreadingEnabled&&g&&(e==null?void 0:e.length)>0};
_.v.shouldShowCollapsedThreads=function(e,g){return this.commentThreadingEnabled&&!g&&e};
_.v.computeCommentViewModel=function(e){return _.x(e,w61)};
_.v.computeThreadRenderer=function(e){return _.x(e,gAq)};
_.v.computeIsContinuationItem=function(e){return!!this.computeContinuationItemRenderer(e)};
_.v.computeButtonRenderer=function(e){return _.x(e,_.G_)};
_.v.computeContinuationItemRenderer=function(e){return _.x(e,_.zM)};
_.v.computeShowButton=function(e){var g;return!((g=this.computeContinuationItemRenderer(e))==null||!g.button)};
_.v.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.v.attached=function(){this.isShowRepliesVisible=!0};
_.v.dataChanged=function(){var e=this.expanderContents;e&&(e.hidden=!0);this.isLoading=!1};
_.v.endsInContinuation=function(e){return!!e&&e.length>0&&!!this.computeContinuationItemRenderer(e[e.length-1])};
_.v.computeShouldShowHideRepliesButton=function(e,g){return!e&&g};
_.v.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.v.isLoadingChanged=function(){this.isLoading&&!this.JSC$16350_spinnerEl&&(this.JSC$16350_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.o1(this.expanderContents).appendChild(this.JSC$16350_spinnerEl));this.JSC$16350_spinnerEl&&(this.JSC$16350_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var e;(e=this.contents)==null||e.classList.remove("reloading")}};
_.v.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var e=_.x(this.data.viewReplies,_.G_);e&&this.ytRendererBehavior.logExplicitClick(e);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.v.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var e=_.x(this.data.hideReplies,_.G_);e&&this.ytRendererBehavior.logExplicitClick(e);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.v.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var e=_.o1(this.hostElement).querySelector("#expander-contents");e&&(e.hidden=this.isShowRepliesVisible)}};
_.v.computeAlign=function(){if(this.modern){var e;return!((e=this.data)==null?0:e.viewRepliesCreatorThumbnail)}};
_.Bd.Object.defineProperties(WZ.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var e,g;return this.endsInContinuation((e=this.data)==null?void 0:e.contents)||this.commentThreadingEnabled&&this.endsInContinuation((g=this.data)==null?void 0:g.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var e;return(e=this.data)==null?void 0:e.teaserContents}}});
WZ.prototype.isShowMoreChanged=WZ.prototype.isShowMoreChanged;WZ.prototype.isLoadingChanged=WZ.prototype.isLoadingChanged;WZ.prototype.triggerFirstContinuation=WZ.prototype.triggerFirstContinuation;WZ.prototype.dataChanged=WZ.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Tk),_.B("design:type",Object)],WZ.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],WZ.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],WZ.prototype,"modern",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],WZ.prototype,"commentThreadingEnabled",void 0);_.t([_.u(),_.B("design:type",Boolean)],WZ.prototype,"expanded",void 0);
_.t([_.u(),_.B("design:type",Function)],WZ.prototype,"toggleExpanded",void 0);_.t([_.u(),_.B("design:type",Array)],WZ.prototype,"addedReplies",void 0);_.t([_.u(),_.B("design:type",Boolean)],WZ.prototype,"hovered",void 0);_.t([_.u(),_.B("design:type",Boolean)],WZ.prototype,"topLevelThread",void 0);_.t([_.u(),_.B("design:type",Boolean)],WZ.prototype,"isLoading",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],WZ.prototype,"isShowRepliesVisible",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],WZ.prototype,"useNewFormatting",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],WZ.prototype,"engagementPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],WZ.prototype,"isWatchGrid",void 0);_.t([_.u(),_.B("design:type",Object)],WZ.prototype,"buttonOverrides",void 0);_.t([_.Cs("#expander-contents"),_.B("design:type",HTMLElement)],WZ.prototype,"expanderContents",void 0);
_.t([_.Cs("ytd-continuation-item-renderer"),_.B("design:type",Object)],WZ.prototype,"continuationItemRenderer",void 0);_.t([_.Cs("#contents"),_.B("design:type",HTMLElement)],WZ.prototype,"contents",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WZ.prototype,"dataChanged",null);_.t([_.p("data.contents","data.subThreads.*"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],WZ.prototype,"hasContinuation",null);
_.t([_.p("data.teaserContents"),_.B("design:type",Object),_.B("design:paramtypes",[])],WZ.prototype,"subThreadTeasers",null);_.t([_.Ks("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WZ.prototype,"triggerFirstContinuation",null);_.t([_.OY("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WZ.prototype,"isLoadingChanged",null);
_.t([_.OY("isShowRepliesVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WZ.prototype,"isShowMoreChanged",null);_.t([_.bF({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],WZ);
_.U(WZ,"ytd-comment-replies-renderer",function(){if(aWZ!==void 0)return aWZ;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" engagement-panel="[[engagementPanel]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" engagement-panel="[[engagementPanel]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer class="replies-continuation style-scope ytd-comment-replies-renderer" button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" restamp="" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return aWZ=e},{mode:1});var D7q;var bl=function(){var e=_.z.apply(this,arguments)||this;e.isOpen=!1;e.commentDialog=null;e.useSmallAvatars=_.G("small_avatars_for_comments");e.useSmallAvatarsEngagementPanelOnly=_.G("small_avatars_for_comments_ep");e.placeholderFocusListener=null;e.hasOpenedDialog=!1;e.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return e};
_.Y(bl,_.z);_.v=bl.prototype;_.v.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.v.ready=function(){var e=this,g=_.o1(this.hostElement).querySelector("#placeholder-area"),c=_.o1(this.hostElement).querySelector("#simplebox-placeholder"),k=function(I){I.stopPropagation();I instanceof KeyboardEvent&&I.type==="keypress"&&I.keyCode!==13&&I.keyCode!==32||e.openDialog()};
this.placeholderFocusListener=k;c.addEventListener("focus",this.placeholderFocusListener);g.addEventListener("tap",k);g.addEventListener("keypress",k)};
_.v.maybeRemoveFocusEventListener=function(){var e;(e=this.data)!=null&&e.prepareAccountEndpoint&&!_.G("web_comments_simplebox_modal_focus_on_tap_ks")&&(e=_.o1(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(e.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.v.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.v.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.G("web_comment_simplebox_resolve_polymer_command_ks")?_.yJ.instance.resolveCommand(this.data.prepareAccountEndpoint):_.KO(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);e&&this.ytdOpenPopupBehavior.openPopup(e);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(e),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.o1(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.v.onYtCommentboxDismiss=function(e){e.stopPropagation();this.isOpen=!1};
_.v.onCreateCommentAction=function(e){this.get("createCommentAction.contents",e)&&(this.isOpen=!1)};
_.v.computeCommentDialog=function(e){return{placeholderText:e.placeholderText,authorThumbnail:e.authorThumbnail,submitButton:e.submitButton,imageButton:e.imageButton,cancelButton:e.cancelButton,emojiButton:e.emojiButton,emojis:e.emojis,emojiPicker:e.emojiPicker,aadcGuidelinesStateEntityKey:e.aadcGuidelinesStateEntityKey,openAadcDialog:e.openAadcDialog,unicodeEmojisUrl:e.unicodeEmojisUrl}};
_.v.onHideIdentityChip=function(e){_.x(e,ySM)&&this.set("data.placeholderText",_.x(e,ySM).placeholderText)};
bl.prototype.onYtCommentboxDismiss=bl.prototype.onYtCommentboxDismiss;bl.prototype.dataChanged=bl.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],bl.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],bl.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],bl.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],bl.prototype,"isOpen",void 0);_.t([_.u(),_.B("design:type",Object)],bl.prototype,"commentDialog",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],bl.prototype,"engagementPanel",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],bl.prototype,"useSmallAvatars",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],bl.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],bl.prototype,"enableCreationBox",void 0);_.t([_.u(),_.B("design:type",Boolean)],bl.prototype,"showCreateDialog",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bl.prototype,"dataChanged",null);_.t([_.Ks("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],bl.prototype,"onYtCommentboxDismiss",null);_.t([_.bF({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],bl);
_.U(bl,"ytd-comment-simplebox-renderer",function(){if(D7q!==void 0)return D7q;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return D7q=e},{mode:1});var $7q;_.qH("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var hX=function(){var e=_.z.apply(this,arguments)||this;e.addHoverEffect=_.G("swatcheroo_comments_hover_effect");e.useSmallAvatars=_.G("small_avatars_for_comments");e.scrollingEnabled=_.G("web_comment_threading_scroll_on_collapse");e.isSubThread=!1;e.threadHovered=!1;e.expanded=!1;e.removed=!1;e.addedReplies=[];e.actionMap=e.configureActionMap();e.toggleExpanded=function(){e.expanded=!e.expanded;!e.expanded&&e.scrollingEnabled&&_.Z5(e.hostElement,"yt-scroll-to-comment-element",[e.commentElement])};
return e};
_.Y(hX,_.z);_.v=hX.prototype;_.v.configureActionMap=function(){return _.G("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.v.createCommentReplyAction=function(e){e=_.x(e,Nxs);if(e!=null&&e.contents){var g=e.replyToCommentId,c=e.parentCommentId,k,I=(k=this.commentViewModel)==null?void 0:k.commentId;(I===g||I===c&&!g)&&this.maybeAttachReply(e.contents)}};
_.v.maybeAttachReply=function(e){var g,c;(((g=this.commentEntity)==null?void 0:(c=g.properties)==null?void 0:c.replyLevel)||0)>=3?_.oC(this.hostElement,"yt-pushed-create-comment-reply",e):this.attachReply(e)};
_.v.onPushedCreateCommentReply=function(e){var g,c;(((g=this.commentEntity)==null?void 0:(c=g.properties)==null?void 0:c.replyLevel)||0)>=3||(this.attachReply(e.detail),e.stopPropagation())};
_.v.attachReply=function(e){var g;((g=this.data)==null?0:g.replies)?(g=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+g+".continuationItemRenderer")?g===0?this.push("addedReplies",e):this.splice("data.replies.commentRepliesRenderer.subThreads",g,0,e):this.push("data.replies.commentRepliesRenderer.subThreads",e)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[e],viewReplies:{buttonRenderer:{text:_.uB(_.C_("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.v.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.KY(this.addedReplies))),this.set("addedReplies",[]))};
_.v.removeCommentAction=function(e){e=_.x(e,MLq);var g=e==null?void 0:e.commentId,c;g&&((c=this.commentViewModel)==null?void 0:c.commentId)===g&&this.maybeRemoveComment(e.actionResult)};
_.v.banAuthorAction=function(e){e=_.x(e,tLs);var g=e==null?void 0:e.commentId,c;g&&((c=this.commentViewModel)==null?void 0:c.commentId)===g&&this.maybeRemoveComment(e.actionResult)};
_.v.hideReportedCommentAction=function(e){e=_.x(e,RD4);var g=e==null?void 0:e.commentId,c;g&&((c=this.commentViewModel)==null?void 0:c.commentId)===g&&this.maybeRemoveComment(e.actionResult)};
_.v.maybeRemoveComment=function(e){e&&e.status==="STATUS_SUCCEEDED"&&(this.feedbackText=e.feedbackText||_.uB("Reply removed"),this.removed=!0)};
_.v.onTap=function(e){if(this.addHoverEffect&&!this.engagementPanel&&!_.TJ(_.lg(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var g;((g=window.getSelection())==null?0:g.toString().length)||_.KO({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.v.attached=function(){var e=this;this.isSubThread&&(this.expanded=!0);var g;(g=this.commentThreadHitbox)==null||g.addEventListener("mouseover",function(){e.threadHovered=!0});
var c;(c=this.commentThreadHitbox)==null||c.addEventListener("mouseout",function(){e.threadHovered=!1});
var k;(k=this.commentThreadHitbox)==null||k.addEventListener("click",function(){e.maybeToggleExpanded()})};
_.v.onDataChanged=function(){var e=_.G("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(e)&&this.set(e,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.v.maybeToggleExpanded=function(){var e,g,c,k=(e=this.data)==null?void 0:(g=e.replies)==null?void 0:(c=g.commentRepliesRenderer)==null?void 0:c.subThreads,I;(k==null?void 0:k.length)===1&&((I=_.x(k[0],_.zM))==null?0:I.button)&&this.expanded||this.toggleExpanded()};
_.Bd.Object.defineProperties(hX.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var e;return _.x((e=this.data)==null?void 0:e.commentViewModel,w61)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return _.G("web_delhi_comment_threads")&&!!((e=this.data)==null?0:(g=e.replies)==null?0:(c=g.commentRepliesRenderer)==null?0:c.subThreads)}}});
hX.prototype.onDataChanged=hX.prototype.onDataChanged;hX.prototype.onTap=hX.prototype.onTap;hX.prototype.onAppendContinuationItemsActionFinished=hX.prototype.onAppendContinuationItemsActionFinished;hX.prototype.onPushedCreateCommentReply=hX.prototype.onPushedCreateCommentReply;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],hX.prototype,"ytdReduxBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],hX.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],hX.prototype,"addHoverEffect",void 0);_.t([_.u(),_.B("design:type",Object)],hX.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],hX.prototype,"useSmallAvatars",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],hX.prototype,"scrollingEnabled",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],hX.prototype,"isSubThread",void 0);_.t([_.Cs(".thread-hitbox"),_.B("design:type",HTMLElement)],hX.prototype,"commentThreadHitbox",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],hX.prototype,"threadHovered",void 0);_.t([_.Cs("#comment"),_.B("design:type",HTMLElement)],hX.prototype,"commentElement",void 0);
_.t([_.u(),_.B("design:type",Object)],hX.prototype,"expanded",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],hX.prototype,"removed",void 0);_.t([_.u(),_.B("design:type",Object)],hX.prototype,"feedbackText",void 0);_.t([_.u(),_.B("design:type",Array)],hX.prototype,"addedReplies",void 0);_.t([_.u({selector:PRv,selectorArgs:["commentViewModel.commentKey"]}),_.B("design:type",Object)],hX.prototype,"commentEntity",void 0);
_.t([_.Ks("yt-pushed-create-comment-reply"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],hX.prototype,"onPushedCreateCommentReply",null);_.t([_.Ks("yt-append-continuation-items-action-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hX.prototype,"onAppendContinuationItemsActionFinished",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],hX.prototype,"commentViewModel",null);
_.t([_.p("data.replies.commentRepliesRenderer.subThreads"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],hX.prototype,"hasSubThreading",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],hX.prototype,"engagementPanel",void 0);_.t([_.Ks("tap"),_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],hX.prototype,"onTap",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hX.prototype,"onDataChanged",null);_.t([_.bF({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],hX);
_.U(hX,"ytd-comment-thread-renderer",function(){if($7q!==void 0)return $7q;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return $7q=e},{mode:2});var Yi4;var Xz=function(){var e=_.z.apply(this,arguments)||this;e.compactHeader=_.G("web_watch_compact_comments_header");e.hidePanelButton=!1;e.isPostSchedulingEnabled=_.G("enable_post_scheduling");e.hasFinishedStamping=!1;e.JSC$16373_handleOpenPostCommentDialogActionAfterStamp=!1;e.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return e};
_.Y(Xz,_.z);_.v=Xz.prototype;
_.v.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.v.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.v.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16373_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.v.onYtServiceRequestSent=function(e,g){if(!_.G("kevlar_command_handler")&&g.actions)for(e=0;e<g.actions.length;e++){var c=g.actions[e];_.x(c,htk)&&_.o1(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.x(c,htk))}};
_.v.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var e;if(this.getPrefilledBackstagePostDialog((e=this.data)==null?void 0:e.actions)){_.o1(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var g=_.o1(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;g&&_.Va(this,function(){g.focus();g.openDialog&&g.openDialog()})}}else this.hasActionsChange=!0};
_.v.computeIsBackstage=function(e){return e};
_.v.onYtCommentboxDismiss=function(){_.o1(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.v.removePrefilledDialog=function(e){if(e==null?0:e.actions){for(var g=e.actions.length-1;g>=0;g--){var c=void 0;((c=_.x(e.actions[g],FXI))==null?0:c.dialog)&&delete e.actions[g]}this.set("data",void 0);this.set("data",e)}};
_.v.getPrefilledBackstagePostDialog=function(e){if(e)for(var g=0;g<e.length;g++){var c=e[g],k=void 0;if((k=_.x(c,FXI))==null?0:k.dialog)return _.x(c,FXI).dialog}return null};
_.v.computeBackstagePostDialog=function(e){return e&&(this.getPrefilledBackstagePostDialog(e.actions)||e.createRenderer)};
_.v.dataChanged=function(){if(this.data){var e=this.data.customEmojis,g=this.data.unicodeEmojisUrl;_.Y3.clear();g&&_.bRv(_.Y3,g);e&&_.Y3.load(e)}};
_.v.handleSignalActionOpenPostCommentDialogAction=function(){var e=_.o1(this.hostElement).querySelector("ytd-comment-simplebox-renderer");e?e.openDialog():this.JSC$16373_handleOpenPostCommentDialogActionAfterStamp=!0};
_.v.onPostHeaderTap=function(){var e;((e=this.data)==null?0:e.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.Bd.Object.defineProperties(Xz.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.G("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k,I,J,q;return!this.hidePanelButton&&_.G("kevlar_watch_comments_panel_button")&&((q=_.x((e=this.data)==null?void 0:(g=e.sortMenu)==null?void 0:(c=g.sortFilterSubMenuRenderer)==null?void 0:(k=c.subMenuItems)==null?void 0:(I=k[0])==null?void 0:(J=I.serviceEndpoint)==null?void 0:J.commandMetadata,_.OM))==null?void 0:q.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.C_("MINIPLAYER_EXPAND_LABEL"),text:_.PL(_.C_("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Xz.prototype.dataChanged=Xz.prototype.dataChanged;Xz.prototype.onYtCommentboxDismiss=Xz.prototype.onYtCommentboxDismiss;Xz.prototype.observePrefilledBackstagePostDialog=Xz.prototype.observePrefilledBackstagePostDialog;Xz.prototype.onYtServiceRequestSent=Xz.prototype.onYtServiceRequestSent;Xz.prototype.onStampFinished=Xz.prototype.onStampFinished;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Xz.prototype,"ytComponentBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Xz.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Xz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Xz.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Xz.prototype,"compactHeader",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Xz.prototype,"engagementPanel",void 0);_.t([_.u(),_.B("design:type",Object)],Xz.prototype,"hidePanelButton",void 0);_.t([_.u({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Xz.prototype,"isBackstage",void 0);_.t([_.u({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.B("design:type",Object)],Xz.prototype,"backstagePostDialog",void 0);
_.t([_.u(),_.B("design:type",Object)],Xz.prototype,"isPostSchedulingEnabled",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data","showCommentsPanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],Xz.prototype,"useSpaceBetween",null);_.t([_.u({reflectToAttribute:!0}),_.p("data","hidePanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],Xz.prototype,"showCommentsPanelButton",null);
_.t([_.p("data","showCommentsPanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],Xz.prototype,"commentsPanelButtonData",null);_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xz.prototype,"onStampFinished",null);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],Xz.prototype,"onYtServiceRequestSent",null);
_.t([_.OY("data.actions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xz.prototype,"observePrefilledBackstagePostDialog",null);_.t([_.Ks("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Xz.prototype,"onYtCommentboxDismiss",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xz.prototype,"dataChanged",null);
_.t([_.bF({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Xz);
_.U(Xz,"ytd-comments-header-renderer",function(){if(Yi4!==void 0)return Yi4;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Yi4=e},{mode:1});var fWY;var GL=function(){return _.z.apply(this,arguments)||this};
_.Y(GL,_.z);_.t([_.u(),_.B("design:type",Object)],GL.prototype,"data",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.t([_.bF({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],GL);
_.U(GL,"ytd-destination-button-renderer",function(){if(fWY!==void 0)return fWY;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return fWY=e},{mode:1});var jaw;var xK=function(){var e=_.z.apply(this,arguments)||this;e.isRichGrid=!1;e.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return e};
_.Y(xK,_.z);_.v=xK.prototype;_.v.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.v.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.v.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.v.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var e;if((e=this.data)==null||!e.isExpanded){e=this.hostElement.clientWidth;var g;if(e&&(g=this.data)!=null&&g.destinationButtons){g=Math.floor((e+4)/214);e=this.data.destinationButtons.length;var c=Math.ceil(e/g);this.fullyVisibleRows=e%g===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}}}};
_.v.updateRichGridDestinationButtonsVisibility=function(){var e,g;if(this.isRichGrid&&((e=this.data)==null||!e.isExpanded)&&(g=this.data)!=null&&g.destinationButtons){e=this.richGridItemsPerRow+1;g=this.data.destinationButtons.length;var c=Math.ceil(g/e);this.fullyVisibleRows=g%e===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}};
_.v.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
xK.prototype.updateRichGridDestinationButtonsVisibility=xK.prototype.updateRichGridDestinationButtonsVisibility;_.t([_.u(),_.B("design:type",Object)],xK.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Number)],xK.prototype,"fullyVisibleRows",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],xK.prototype,"isShowMoreVisible",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],xK.prototype,"isRichGrid",void 0);
_.t([_.u({selector:_.Rq,value:0}),_.B("design:type",Number)],xK.prototype,"richGridItemsPerRow",void 0);_.t([_.u(),_.B("design:type",Object)],xK.prototype,"gridStateActionMap",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],xK.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],xK.prototype,"ytdReduxBehavior",void 0);_.t([_.OY("data","richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xK.prototype,"updateRichGridDestinationButtonsVisibility",null);_.t([_.bF({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],xK);
_.U(xK,"ytd-destination-shelf-renderer",function(){if(jaw!==void 0)return jaw;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return jaw=e},{mode:1});var iyq;var DK=function(){return _.z.apply(this,arguments)||this};
_.Y(DK,_.z);DK.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],DK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],DK.prototype,"data",void 0);_.t([_.bF({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],DK);
_.U(DK,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(iyq!==void 0)return iyq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return iyq=e},{mode:1});var P4Y;var $K=function(){var e=_.z.apply(this,arguments)||this;e.disableAnimation=!1;e.isSlimlineSurvey=!1;e.isSlimlineSurveyFollowUp=!1;e.isShortsStyle=!1;return e};
_.Y($K,_.z);$K.prototype.onTap=function(e){e.preventDefault();this.data&&_.oC(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Bd.Object.defineProperties($K.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 e,g,c,k,I;return((e=this.data)==null?0:e.checked)?(g=this.data)==null?void 0:(c=g.onStateIcon)==null?void 0:c.iconType:(k=this.data)==null?void 0:(I=k.defaultStateIcon)==null?void 0:I.iconType}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],$K.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$K.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],$K.prototype,"disableAnimation",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$K.prototype,"isSlimlineSurvey",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$K.prototype,"isSlimlineSurveyFollowUp",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$K.prototype,"isShortsStyle",void 0);_.t([_.p("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$K.prototype,"isAnimatedIcon",null);
_.t([_.p("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Number),_.B("design:paramtypes",[])],$K.prototype,"iconSize",null);_.t([_.p("isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$K.prototype,"isDarkTheme",null);_.t([_.p("data.checked"),_.B("design:type",Object),_.B("design:paramtypes",[])],$K.prototype,"icon",null);_.t([_.bF({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],$K);
_.U($K,"ytd-rating-survey-option-renderer",function(){if(P4Y!==void 0)return P4Y;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return P4Y=e},{mode:2});var m7n;var YK=function(){var e=_.z.apply(this,arguments)||this;e.firstResponseText=null;e.lastResponseText=null;e.selectedNonStarOption=null;e.hideOptions=!1;e.hideUndoButton=!0;e.disableAnimation=!1;e.showResponseRangeText=!1;e.selectedRatingIndex=-1;e.isSlimlineSurvey=!1;e.isSlimlineSurveyFollowUp=!1;e.isShortsStyle=!1;e.slimlineSurveyRatingSelectedIndex=-1;return e};
_.Y(YK,_.z);_.v=YK.prototype;_.v.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.v.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.v.onOptionChange=function(e,g){var c=this;e=g.onStateIcon&&g.defaultStateIcon&&g.onStateIcon.iconType===g.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(q,L){q.responseText===g.responseText?c.isSlimlineSurvey?(c.selectedRatingIndex=L,c.ytdReduxBehavior.dispatch(u8q(L))):(c.setSurveyOptionValue(L,!0,"checked"),c.setSurveyOptionValue(L,!0,"selected")):(c.setSurveyOptionValue(L,!1,"checked"),c.setSurveyOptionValue(L,
!1,"selected"))});
else if(e)this.selectedNonStarOption=g,this.hideOptions=!0;else{var k=this.ytRendererBehavior.getSimpleString(g.responseText),I=!0;this.getOptionRenderers().forEach(function(q,L){c.setSurveyOptionValue(L,I,"checked");c.setSurveyOptionValue(L,!1,"selected");c.ytRendererBehavior.getSimpleString(q.responseText)===k&&(I=!1,c.setSurveyOptionValue(L,!0,"selected"))})}e=g.responseEndpoint;
var J;g.followUpCommand&&(J=_.x(g.followUpCommand,fPY));this.isSlimlineSurvey?(this.resetComponent(),_.Z5(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Z5(this.hostElement,"ytd-inline-survey-rating-select-action",[e,J])};
_.v.showSelectedOption=function(){var e=this;_.ft.addJob(function(){var g=e.getOptionRenderers()[e.slimlineSurveyRatingSelectedIndex];e.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),g)},8,100)};
_.v.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(e){var g;return(g=_.x(e,iXB))!=null?g:{}}):[]};
_.v.onUndoClick=function(){this.resetComponent();_.Z5(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.v.setSurveyOptionValue=function(e,g,c){this.notifyPath("data.ratings."+e+".ratingSurveyOptionRenderer."+c);this.set("data.ratings."+e+".ratingSurveyOptionRenderer."+c,g)};
_.v.resetComponent=function(){var e=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var g=this.getOptionRenderers(),c,k;this.firstResponseText=(k=(c=g[0])==null?void 0:c.responseText)!=null?k:null;var I,J;this.lastResponseText=(J=(I=g[g.length-1])==null?void 0:I.responseText)!=null?J:null;g.forEach(function(q,L){e.setSurveyOptionValue(L,!1,"checked");e.setSurveyOptionValue(L,!1,"selected")})};
_.Bd.Object.defineProperties(YK.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
YK.prototype.onOptionChange=YK.prototype.onOptionChange;YK.prototype.dataChanged=YK.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],YK.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],YK.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],YK.prototype,"firstResponseText",void 0);_.t([_.u(),_.B("design:type",Object)],YK.prototype,"lastResponseText",void 0);_.t([_.u(),_.B("design:type",Object)],YK.prototype,"selectedNonStarOption",void 0);_.t([_.u(),_.B("design:type",Object)],YK.prototype,"hideOptions",void 0);_.t([_.u(),_.B("design:type",Object)],YK.prototype,"hideUndoButton",void 0);_.t([_.u(),_.B("design:type",Object)],YK.prototype,"disableAnimation",void 0);
_.t([_.u(),_.B("design:type",Object)],YK.prototype,"showResponseRangeText",void 0);_.t([_.u(),_.B("design:type",Object)],YK.prototype,"selectedRatingIndex",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],YK.prototype,"isSlimlineSurvey",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],YK.prototype,"isSlimlineSurveyFollowUp",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],YK.prototype,"isShortsStyle",void 0);_.t([_.u({selector:function(e){return e.ui.slimlineSurveyRatingSelectedIndex}}),
_.B("design:type",Object)],YK.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.t([_.p("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],YK.prototype,"isSingleSelect",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YK.prototype,"dataChanged",null);
_.t([_.Ks("ytd-rating-survey-option-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],YK.prototype,"onOptionChange",null);_.t([_.bF({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],YK);
_.U(YK,"ytd-rating-survey-renderer",function(){if(m7n!==void 0)return m7n;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return m7n=e},{mode:1});var p0q;var T6w;var lW1;var ZeC=(yD.FIRSTDAYOFWEEK+1)%7,An4=function(e,g,c,k){var I="";if(k.selection&&HeK(k.selection))BY(e,k.selection)&&(I+=" selected");else if(k.selection&&QhC(k.selection)){var J=k.selection.selectionState||"START_DATE";BY(e,k.selection.start)&&(I+=" period-start ",J==="START_DATE"&&(I+="selected"));BY(e,k.selection.end)&&(I+=" period-end ",J==="END_DATE"&&(I+="selected"));Ny(e,k.selection.start)||Ny(k.selection.end,e)||(I+=" highlighted")}if(Ny(g,k.start)||Ny(k.end,g))I+=" disabled";k.circleToday&&
BY(g,c)&&(I+=" today");return I};var f6=function(){return _.z.apply(this,arguments)||this};
_.Y(f6,_.z);_.v=f6.prototype;_.v.attached=function(){var e=this;_.Va(this,function(){e.JSC$16407_calendarMain.scrollHeight>0&&(e.calendarConfig.selection?e.scrollToDate(UKW(e.calendarConfig.selection)):e.scrollToDate(e.calendarConfig.end))})};
_.v.updateSelection=function(e){e=VjC(Object.assign({},this.calendarConfig,{selection:e}),An4);this.splice.apply(this,["renderData.months",0,e.length].concat(_.KY(e)))};
_.v.scrollToDate=function(e){this.renderData&&(e=tjK(e,this.renderData),e!==void 0&&this.JSC$16407_calendarMain.scrollToIndex(e))};
_.v.scrollToNextMonth=function(){this.JSC$16407_calendarMain.scrollToIndex(this.JSC$16407_calendarMain.firstVisibleIndex+1)};
_.v.scrollToPrevMonth=function(){this.JSC$16407_calendarMain.firstVisibleIndex===0&&this.JSC$16407_calendarMain.scrollTo(0,0);this.JSC$16407_calendarMain.scrollToIndex(this.JSC$16407_calendarMain.firstVisibleIndex-1)};
_.v.handleDayClick=function(e){_.Z5(this.hostElement,"ytd-calendar-date-clicked",[e.model.day.date])};
_.v.handleDayMouseDown=function(e){e.preventDefault();_.Z5(this.hostElement,"ytd-calendar-date-mousedown",[e.model.day.date])};
_.v.handleDayMouseUp=function(e){_.Z5(this.hostElement,"ytd-calendar-date-mouseup",[e.model.day.date])};
_.v.handleDayMouseEnter=function(e){e.preventDefault();_.Z5(this.hostElement,"ytd-calendar-date-mouseenter",[e.model.day.date])};
_.v.handleDayMouseLeave=function(e){_.Z5(this.hostElement,"ytd-calendar-date-mouseleave",[e.model.day.date])};
_.Bd.Object.defineProperties(f6.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var e=this.calendarConfig,g=An4;g=g===void 0?An4:g;for(var c=[],k=0;k<7;k++)c.push(yD.NARROWWEEKDAYS[(k+ZeC)%7]);return{months:VjC(e,g),daysOfWeekLabel:c}}}});
_.t([_.u(),_.B("design:type",Object)],f6.prototype,"calendarConfig",void 0);_.t([_.Cs("#calendar-main"),_.B("design:type",Object)],f6.prototype,"JSC$16407_calendarMain",void 0);_.t([_.p("calendarConfig"),_.B("design:type",Object),_.B("design:paramtypes",[])],f6.prototype,"renderData",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],f6);
_.U(f6,"ytd-scrollable-calendar",function(){if(lW1!==void 0)return lW1;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return lW1=e},{mode:2});var sak;var Fj4;var jF=function(){var e=_.z.apply(this,arguments)||this;e.hideCharCounter=!1;e.hideLabel=!1;e.noLabelFloat=!1;e.autoValidate=!0;e.invalid=!1;e.disabled=!1;e.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return e};
_.Y(jF,_.z);_.v=jF.prototype;_.v.reset=function(e){this.value=e&&this.data?this.data.value=e:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.v.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.v.focusTextInput=function(){this.input.focus()};
_.v.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.v.valueChanged=function(){var e,g;if(((e=this.data)==null?0:e.value)||((g=this.data)==null?void 0:g.value)==="")this.value=this.data.value;else{var c;((c=this.data)==null?void 0:c.value)!==void 0||this.value||(this.value="")}};
_.v.computeLabel=function(e,g){return g?"":_.mp(e)};
_.v.computeAriaLabel=function(e,g){return g?_.mp(e):""};
_.v.computeErrorMessage=function(e,g,c,k){return!e&&g?c||this.strings.REQUIRED_LABEL:_.uDs(_.mp(k))};
_.v.computeType=function(e){return e==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.v.onTextValueChanged=function(e){this.value=e.detail.value;var g;(g=this.onValueChanged)==null||g.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.v.handleUpdateTextInputFormFieldRendererCommand=function(e){(e=_.x(e,Nhw))&&this.data&&this.data.id===e.id&&(e.invalid!==void 0&&(this.invalid=e.invalid),e.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",e.invalidValueErrorMessage))};
_.v.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("value-changed",this.value))};
_.v.updateInvalidFromBinding=function(e){this.invalid=e.detail.value};
_.Bd.Object.defineProperties(jF.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var e;return!((e=this.data)==null||!e.isMultiline)}}});
jF.prototype.valueChangedForBinding=jF.prototype.valueChangedForBinding;jF.prototype.valueChanged=jF.prototype.valueChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],jF.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],jF.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],jF.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],jF.prototype,"value",void 0);_.t([_.u(),_.B("design:type",String)],jF.prototype,"pattern",void 0);_.t([_.u(),_.B("design:type",String)],jF.prototype,"errorMessage",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],jF.prototype,"componentStyle",void 0);_.t([_.u(),_.B("design:type",Object)],jF.prototype,"hideCharCounter",void 0);
_.t([_.u(),_.B("design:type",Object)],jF.prototype,"hideLabel",void 0);_.t([_.u(),_.B("design:type",Object)],jF.prototype,"noLabelFloat",void 0);_.t([_.u(),_.B("design:type",Function)],jF.prototype,"onValueChanged",void 0);_.t([_.u(),_.B("design:type",Boolean)],jF.prototype,"isMultilineOverride",void 0);_.t([_.u(),_.B("design:type",Object)],jF.prototype,"autoValidate",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],jF.prototype,"invalid",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],jF.prototype,"disabled",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],jF.prototype,"enableOverlayTheme",void 0);_.t([_.u({value:{REQUIRED_LABEL:_.C_("REQUIRED_LABEL",void 0,"Required")}}),_.B("design:type",Object)],jF.prototype,"strings",void 0);_.t([_.Cs("#input"),_.B("design:type",Object)],jF.prototype,"input",void 0);
_.t([_.p("data","isMultilineOverride"),_.B("design:type",Object),_.B("design:paramtypes",[])],jF.prototype,"isMultiline",null);_.t([_.k_("data.value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jF.prototype,"valueChanged",null);_.t([_.OY("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jF.prototype,"valueChangedForBinding",null);_.t([_.Wo({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],jF);
_.U(jF,"yt-text-input-form-field-renderer",function(){if(Fj4===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;sak===void 0&&(sak=document.createElement("template"));var k=sak;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Fj4=e}e=Fj4;return e},{mode:2});var il=function(){var e=_.z.apply(this,arguments)||this;e.data=void 0;e.selectionState="START_DATE";e.isStartDateInvalid=!1;e.isEndDateInvalid=!1;e.autoapply=!1;e.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 e};
_.Y(il,_.z);_.v=il.prototype;_.v.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.v.focus=function(){this.startDateInput.focus()};
_.v.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:SS(this.data.selection.start),end:SS(this.data.selection.end)})};
_.v.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.v.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.gj(this.selectionState)}};
_.v.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.v.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.v.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.v.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var e=this.calendar.calendarConfig,g=e.end;e=NoA({start:e.start,end:this.endDate||g},this.startDateInput.value||"");this.isStartDateInvalid=!e.isValid;e.isValid&&(e=e.value,this.selection=this.endDate?{start:e,end:this.endDate}:e,this.calendar.scrollToDate(e));this.updateInvalidState()}};
_.v.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var e=this.calendar.calendarConfig,g=e.start;e=NoA({start:this.startDate||g,end:e.end},this.endDateInput.value||"");this.isEndDateInvalid=!e.isValid;e.isValid&&(e=e.value,this.selection={start:this.startDate,end:e},this.calendar.scrollToDate(e));this.updateInvalidState()}};
_.v.handleCalendarDateClicked=function(e){var g=this.selection&&UKW(this.selection),c=this.selection&&oZg(this.selection);g&&!Ny(e,g)&&this.selectionState==="END_DATE"?(this.selection={start:g,end:e},this.selectionState="START_DATE"):(c&&!Ny(c,e)?this.selection={start:e,end:c}:this.selection=e,this.selectionState="END_DATE")};
_.v.handleCalendarDateMouseDown=function(e){this.selection&&!HeK(this.selection)&&(this.dragPivot=BY(e,this.selection.start)?this.selection.end:BY(e,this.selection.end)?this.selection.start:e)};
_.v.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.v.handleCalendarDateMouseEnter=function(e){this.dragPivot&&(this.selection={start:function(g,c){return Ny(g,c)?g:c}(this.dragPivot,e),
end:function(g,c){return Ny(g,c)?c:g}(this.dragPivot,e)},this.dragPivot||(this.selectionState="START_DATE"))};
_.v.handleCalendarDateMouseLeave=function(){};
_.v.handleCalendarSubmitDateRange=function(){this.selection&&!HeK(this.selection)&&_.Z5(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.v.updateInvalidState=function(){var e=function(g,c){c?g.setAttribute("invalid",""):g.removeAttribute("invalid")};
e(this.startDateInput,this.isStartDateInvalid);e(this.endDateInput,this.isEndDateInvalid)};
_.v.updateDateStrings=function(){this.selection&&(HeK(this.selection)?z3C(this.selection):(z3C(this.selection.start),z3C(this.selection.end)))};
_.v.updateCalendarSelection=function(e){this.calendar.updateSelection(Object.assign({},e,{selectionState:this.selectionState}))};
_.v.updateIsStartDateInvalidFromBinding=function(e){this.isStartDateInvalid=e.detail.value};
_.v.updateIsEndDateInvalidFromBinding=function(e){this.isEndDateInvalid=e.detail.value};
_.v.updateStartDateStringFromBinding=function(){};
_.v.updateEndDateStringFromBinding=function(){};
_.Bd.Object.defineProperties(il.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:SS(this.data.dateRangeStart),end:SS(this.data.dateRangeEnd),selection:{start:SS(this.data.selection.start),end:SS(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&UKW(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&oZg(this.selection)}}});
il.prototype.resetTextboxes=il.prototype.resetTextboxes;il.prototype.observeSelection=il.prototype.observeSelection;il.prototype.dataChanged=il.prototype.dataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],il.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],il.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Cs("#calendar"),_.B("design:type",Object)],il.prototype,"calendar",void 0);
_.t([_.Cs("#start-date"),_.B("design:type",Object)],il.prototype,"startDateInput",void 0);_.t([_.Cs("#end-date"),_.B("design:type",Object)],il.prototype,"endDateInput",void 0);_.t([_.u(),_.B("design:type",Object)],il.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],il.prototype,"selection",void 0);_.t([_.u(),_.B("design:type",String)],il.prototype,"selectionState",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],il.prototype,"calendarConfig",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],il.prototype,"errorMessage",null);_.t([_.p("selection"),_.B("design:type",Object),_.B("design:paramtypes",[])],il.prototype,"startDate",null);_.t([_.p("selection"),_.B("design:type",Object),_.B("design:paramtypes",[])],il.prototype,"endDate",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],il.prototype,"dataChanged",null);
_.t([_.OY("selection","selectionState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],il.prototype,"observeSelection",null);_.t([_.OY("selectionState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],il.prototype,"resetTextboxes",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],il);
_.U(il,"ytd-date-period-picker-renderer",function(){if(T6w!==void 0)return T6w;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return T6w=e},{mode:1});var PZ=function(){var e=_.z.apply(this,arguments)||this;var g={};e.actionMap=(g["ytd-date-period-picker-apply"]="handleDateRangeUpdated",g);return e};
_.Y(PZ,_.z);PZ.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
PZ.prototype.handleDateRangeUpdated=function(){};
_.t([_.u(),_.B("design:type",Object)],PZ.prototype,"data",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],PZ.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],PZ.prototype,"rendererstamperBehavior",void 0);_.t([_.bF({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],PZ);
_.U(PZ,"ytd-report-history-section-header-renderer",function(){if(p0q!==void 0)return p0q;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return p0q=e},{mode:1});var u2w;var d7s;var z0q;var mM=function(){return _.z.apply(this,arguments)||this};
_.Y(mM,_.z);_.Bd.Object.defineProperties(mM.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?0:(g=e.icon)==null?0:g.iconType)?_.NY(this.data.icon.iconType):""}}});
_.t([_.u(),_.B("design:type",Object)],mM.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",String),_.B("design:paramtypes",[])],mM.prototype,"icon",null);_.t([_.bF({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],mM);
_.U(mM,"ytd-report-history-table-text-cell-renderer",function(){if(z0q!==void 0)return z0q;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return z0q=e},{mode:1});var p6=function(){return _.z.apply(this,arguments)||this};
_.Y(p6,_.z);p6.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],p6.prototype,"data",void 0);_.t([_.bF({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],p6);
_.U(p6,"ytd-report-history-table-reason-cell-renderer",function(){if(d7s!==void 0)return d7s;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return d7s=e},{mode:1});var TL=function(){return _.z.apply(this,arguments)||this};
_.Y(TL,_.z);TL.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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],TL.prototype,"rendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],TL.prototype,"data",void 0);_.t([_.bF({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],TL);
_.U(TL,"ytd-report-history-table-cell-renderer",function(){if(u2w!==void 0)return u2w;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
return u2w=e},{mode:1});var Hyu;var ll=function(){var e=_.z.apply(this,arguments)||this;e.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 e};
_.Y(ll,_.z);ll.prototype.onDataChanged=function(){var e;if((e=this.data)==null?0:e.style)this.componentStyle=this.getStyleName(this.data.style)};
ll.prototype.getCellForColumn=function(e){return this.cells.find(function(g){var c;return((c=_.x(g==null?void 0:g.cell,pns)||_.x(g==null?void 0:g.cell,mx4))==null?void 0:c.columnId)===e.type})};
ll.prototype.getClassForColumn=function(e){switch(e){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
ll.prototype.getStyleName=function(e){switch(e){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Bd.Object.defineProperties(ll.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.cells)||[]).map(function(g){return _.x(g,Pkn)})}}});
ll.prototype.onDataChanged=ll.prototype.onDataChanged;_.t([_.u(),_.B("design:type",Object)],ll.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Array)],ll.prototype,"columnRenderData",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],ll.prototype,"componentStyle",void 0);_.t([_.p("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],ll.prototype,"cells",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ll.prototype,"onDataChanged",null);_.t([_.bF({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],ll);
_.U(ll,"ytd-report-history-table-row-renderer",function(){if(Hyu!==void 0)return Hyu;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Hyu=e},{mode:1});var Qas;var U7B;var Sp6={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},yyW={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var AX=function(){return _.z.apply(this,arguments)||this};
_.Y(AX,_.z);AX.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"}}}}}};
AX.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Bd.Object.defineProperties(AX.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.columns)?enq(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Mjz(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var e=this.tableSpec,g=Sp6;g=g===void 0?yyW:g;g=C$C(e.columnDimensions,e.columnsToShow||[],g);e=0;g=_.w(g);for(var c=g.next();!c.done;c=g.next())c=c.value,e+=c.minWidth+c.paddingLeft+c.paddingRight;return e}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.t([_.m(_.Tk),_.B("design:type",Object)],AX.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],AX.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],AX.prototype,"tableSpec",null);_.t([_.p("tableSpec"),_.B("design:type",Array),_.B("design:paramtypes",[])],AX.prototype,"columnRenderData",null);
_.t([_.p("tableSpec"),_.B("design:type",Number),_.B("design:paramtypes",[])],AX.prototype,"totalMinWidth",null);_.t([_.p("totalMinWidth"),_.B("design:type",String),_.B("design:paramtypes",[])],AX.prototype,"tableWidthStyle",null);_.t([_.bF({is:"ytd-table-renderer",disableElementRegistration:!0})],AX);
_.U(AX,"ytd-table-renderer",function(){if(U7B!==void 0)return U7B;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return U7B=e},{mode:1});var sj=function(){return _.z.apply(this,arguments)||this};
_.Y(sj,_.z);sj.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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],sj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],sj.prototype,"data",void 0);_.t([_.bF({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],sj);
_.U(sj,"ytd-report-reason-history-modal-renderer",function(){if(Qas!==void 0)return Qas;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Qas=e},{mode:1});var oT4;var ZyB;var Viq;var Fz=function(){return _.z.apply(this,arguments)||this};
_.Y(Fz,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Fz.prototype,"data",void 0);_.t([_.bF({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Fz);
_.U(Fz,"ytd-profile-column-stats-entry-renderer",function(){if(Viq!==void 0)return Viq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Viq=e},{mode:1});var tiB;var ul=function(){return _.z.apply(this,arguments)||this};
_.Y(ul,_.z);ul.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ul.prototype,"data",void 0);_.t([_.bF({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],ul);
_.U(ul,"ytd-profile-column-stats-renderer",function(){if(tiB!==void 0)return tiB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return tiB=e},{mode:1});var B6M;var dv=function(){return _.z.apply(this,arguments)||this};
_.Y(dv,_.z);_.Bd.Object.defineProperties(dv.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.useThumbnailSize)return 80;var g,c;e=(g=this.data)==null?void 0:(c=g.thumbnail)==null?void 0:c.thumbnails;var k;return e&&((k=e[0])==null?void 0:k.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.useThumbnailSize)return 80;var g,c;e=(g=this.data)==null?void 0:(c=g.thumbnail)==null?void 0:c.thumbnails;var k;return e&&((k=e[0])==null?void 0:k.height)||80}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],dv.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],dv.prototype,"componentStyle",void 0);_.t([_.p("data.useThumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],dv.prototype,"thumbnailWidth",null);
_.t([_.p("data.useThumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],dv.prototype,"thumbnailHeight",null);_.t([_.bF({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],dv);
_.U(dv,"ytd-profile-column-user-info-renderer",function(){if(B6M!==void 0)return B6M;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return B6M=e},{mode:1});var zL=function(){return _.z.apply(this,arguments)||this};
_.Y(zL,_.z);zL.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],zL.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],zL.prototype,"componentStyle",void 0);_.t([_.bF({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],zL);
_.U(zL,"ytd-profile-column-renderer",function(){if(ZyB!==void 0)return ZyB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ZyB=e},{mode:1});var HZ=function(){var e=_.z.apply(this,arguments)||this;e.componentStyle="NON_CENTERED_PROFILE";return e};
_.Y(HZ,_.z);HZ.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
HZ.prototype.getIcon=function(e){return e?"settings:"+e.toLowerCase():null};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],HZ.prototype,"data",void 0);_.t([_.bF({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],HZ);
_.U(HZ,"ytd-page-introduction-renderer",function(){if(oT4!==void 0)return oT4;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return oT4=e},{mode:1});var N6v;var Qj=function(){return _.z.apply(this,arguments)||this};
_.Y(Qj,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Qj.prototype,"data",void 0);_.t([_.bF({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Qj);
_.U(Qj,"ytd-report-description-renderer",function(){if(N6v!==void 0)return N6v;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return N6v=e},{mode:1});var SiM;var ynZ;var Uj=function(){return _.z.apply(this,arguments)||this};
_.Y(Uj,_.z);Uj.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Uj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Uj.prototype,"data",void 0);_.t([_.bF({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Uj);
_.U(Uj,"ytd-video-report-renderer",function(){if(ynZ!==void 0)return ynZ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ynZ=e},{mode:1});var Kjq;_.qH("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.qH("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var oo=function(){return _.z.apply(this,arguments)||this};
_.Y(oo,_.z);oo.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
oo.prototype.computeMessageStyle=function(e){return e};
oo.prototype.computeButtonOverride=function(e){var g;if((e==null?0:(g=e.style)==null?0:g.value)&&e.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],oo.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],oo.prototype,"shelf",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],oo.prototype,"panel",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.B("design:type",Boolean)],oo.prototype,"componentStyle",void 0);_.t([_.u({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],oo.prototype,"buttonOverride",void 0);_.t([_.bF({is:"ytd-message-renderer",disableElementRegistration:!0})],oo);
_.U(oo,"ytd-message-renderer",function(){if(Kjq!==void 0)return Kjq;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Kjq=e},{mode:1});var ZK=function(){return _.z.apply(this,arguments)||this};
_.Y(ZK,_.z);ZK.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"}}}};
ZK.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
ZK.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Bd.Object.defineProperties(ZK.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var e,g;return!!(((e=this.data)==null?0:e.header)&&((g=this.data)==null?0:g.table))}}});
ZK.prototype.onRequestError=ZK.prototype.onRequestError;_.t([_.m(_.Tk),_.B("design:type",Object)],ZK.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ZK.prototype,"data",void 0);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZK.prototype,"isUnifiedReportHistory",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZK.prototype,"onRequestError",null);_.t([_.bF({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],ZK);
_.U(ZK,"ytd-report-history-section-renderer",function(){if(SiM!==void 0)return SiM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return SiM=e},{mode:1});var Oyw;var Vj=function(){var e=_.z.apply(this,arguments)||this;e.answerExpanded=!1;return e};
_.Y(Vj,_.z);Vj.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Vj.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Vj.prototype,"answerExpanded",void 0);_.t([_.bF({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Vj);
_.U(Vj,"ytd-handles-claiming-faq-renderer",function(){if(Oyw!==void 0)return Oyw;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Oyw=e},{mode:1});var Miq;var C4v=function(){return _.z.apply(this,arguments)||this};
_.Y(C4v,_.z);_.t([_.u(),_.B("design:type",Object)],C4v.prototype,"data",void 0);_.t([_.bF({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],C4v);
_.U(C4v,"ytd-handles-claiming-faq-section-renderer",function(){if(Miq!==void 0)return Miq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Miq=e},{mode:1});var e1n;var tX=function(){var e=_.z.apply(this,arguments)||this;e.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";e.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";e.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";e.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";e.leftSquiggly=e.leftSquigglyLight;e.rightSquiggly=e.rightSquigglyLight;
e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};e.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return e};
_.Y(tX,_.z);_.v=tX.prototype;_.v.updateLeftSquigglyStyle=function(){_.Nk(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.v.updateRightSquigglyStyle=function(){_.Nk(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.v.ready=function(){var e=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(e)};
_.v.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.set("isDarkTheme",e),e?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
tX.prototype.updateRightSquigglyStyle=tX.prototype.updateRightSquigglyStyle;tX.prototype.updateLeftSquigglyStyle=tX.prototype.updateLeftSquigglyStyle;_.t([_.u(),_.B("design:type",Object)],tX.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],tX.prototype,"isDarkTheme",void 0);_.t([_.u(),_.B("design:type",String)],tX.prototype,"leftSquiggly",void 0);_.t([_.u(),_.B("design:type",String)],tX.prototype,"rightSquiggly",void 0);
_.t([_.OY("leftSquiggly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tX.prototype,"updateLeftSquigglyStyle",null);_.t([_.OY("rightSquiggly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tX.prototype,"updateRightSquigglyStyle",null);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],tX.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],tX.prototype,"actionButtonOverride",void 0);_.t([_.bF({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],tX);
_.U(tX,"ytd-handles-claiming-header-renderer",function(){if(e1n!==void 0)return e1n;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return e1n=e},{mode:1});var g5M;var BZ=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};e.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";e.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";e.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";e.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
e.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";e.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";e.image0SquigglyBackground=e.image0LightSquigglyBackground;e.image1SquigglyBackground=e.image1LightSquigglyBackground;e.image3SquigglyBackground=e.image3LightSquigglyBackground;return e};
_.Y(BZ,_.z);_.v=BZ.prototype;_.v.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.v.onDataChanged=function(){this.updateTitleAndImages()};
_.v.onThemeChanged=function(){this.updateTitleAndImages()};
_.v.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.isDarkTheme=e)};
_.v.updateImage0SquigglyBackground=function(){_.Nk(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.v.updateImage1SquigglyBackground=function(){_.Nk(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.v.updateImage3SquigglyBackground=function(){_.Nk(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.v.updateTitleAndImages=function(){var e,g;((e=this.data)==null?void 0:(g=e.titleImages)==null?void 0:g.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))};
BZ.prototype.updateImage3SquigglyBackground=BZ.prototype.updateImage3SquigglyBackground;BZ.prototype.updateImage1SquigglyBackground=BZ.prototype.updateImage1SquigglyBackground;BZ.prototype.updateImage0SquigglyBackground=BZ.prototype.updateImage0SquigglyBackground;BZ.prototype.onThemeChanged=BZ.prototype.onThemeChanged;BZ.prototype.onDataChanged=BZ.prototype.onDataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],BZ.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],BZ.prototype,"isDarkTheme",void 0);_.t([_.u(),_.B("design:type",Object)],BZ.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],BZ.prototype,"title0",void 0);_.t([_.u(),_.B("design:type",Object)],BZ.prototype,"title1",void 0);_.t([_.u(),_.B("design:type",Object)],BZ.prototype,"title2",void 0);_.t([_.u(),_.B("design:type",Object)],BZ.prototype,"title3",void 0);
_.t([_.u(),_.B("design:type",Object)],BZ.prototype,"title4",void 0);_.t([_.u(),_.B("design:type",Object)],BZ.prototype,"image0",void 0);_.t([_.u(),_.B("design:type",Object)],BZ.prototype,"image1",void 0);_.t([_.u(),_.B("design:type",Object)],BZ.prototype,"image2",void 0);_.t([_.u(),_.B("design:type",Object)],BZ.prototype,"image3",void 0);_.t([_.u(),_.B("design:type",Object)],BZ.prototype,"image4",void 0);_.t([_.u(),_.B("design:type",String)],BZ.prototype,"image0SquigglyBackground",void 0);
_.t([_.u(),_.B("design:type",String)],BZ.prototype,"image1SquigglyBackground",void 0);_.t([_.u(),_.B("design:type",String)],BZ.prototype,"image3SquigglyBackground",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BZ.prototype,"onDataChanged",null);_.t([_.OY("isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BZ.prototype,"onThemeChanged",null);
_.t([_.OY("image0SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BZ.prototype,"updateImage0SquigglyBackground",null);_.t([_.OY("image1SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BZ.prototype,"updateImage1SquigglyBackground",null);
_.t([_.OY("image3SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BZ.prototype,"updateImage3SquigglyBackground",null);_.t([_.bF({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],BZ);
_.U(BZ,"ytd-handles-claiming-title-images-section-renderer",function(){if(g5M!==void 0)return g5M;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return g5M=e},{mode:1});var cI4;var N$=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(N$,_.z);N$.prototype.ready=function(){var e=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(e)};
N$.prototype.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&this.set("isDarkTheme",e)};
N$.prototype.onCopyButtonClick=function(){var e=this,g,c,k;return _.r(function(I){return(g=e.data)!=null&&g.primaryChannelUrl?I.yield(navigator.clipboard.writeText(((c=e.data)==null?0:c.encodedChannelUrl)?e.data.encodedChannelUrl:"https://"+_.mp((k=e.data)==null?void 0:k.primaryChannelUrl)),0):I.jumpTo(0)})};
_.t([_.u(),_.B("design:type",Object)],N$.prototype,"data",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],N$.prototype,"ytComponentBehavior",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],N$.prototype,"isDarkTheme",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],N$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.bF({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],N$);
_.U(N$,"ytd-handles-claiming-update-social-renderer",function(){if(cI4!==void 0)return cI4;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return cI4=e},{mode:1});var kcM;var SF=function(){var e=_.z.apply(this,arguments)||this;e.JSC$16501_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";e.JSC$16501_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};e.squigglyBackground=e.JSC$16501_squigglyBackgroundLight;return e};
_.Y(SF,_.z);SF.prototype.updateSquigglyBackgroundStyle=function(){_.Nk(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
SF.prototype.ready=function(){var e=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",e);this.squigglyBackground=e?this.JSC$16501_squigglyBackgroundDark:this.JSC$16501_squigglyBackgroundLight};
SF.prototype.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.set("isDarkTheme",e),this.squigglyBackground=e?this.JSC$16501_squigglyBackgroundDark:this.JSC$16501_squigglyBackgroundLight)};
SF.prototype.updateSquigglyBackgroundStyle=SF.prototype.updateSquigglyBackgroundStyle;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],SF.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],SF.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],SF.prototype,"isDarkTheme",void 0);_.t([_.u(),_.B("design:type",String)],SF.prototype,"squigglyBackground",void 0);_.t([_.OY("squigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SF.prototype,"updateSquigglyBackgroundStyle",null);_.t([_.bF({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],SF);
_.U(SF,"ytd-handles-claiming-vanity-info-renderer",function(){if(kcM!==void 0)return kcM;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return kcM=e},{mode:1});var Ioq;var yj=function(){var e=_.z.apply(this,arguments)||this;e.JSC$16504_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";e.JSC$16504_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";e.squigglyBackground=e.JSC$16504_squigglyBackgroundLight;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(yj,_.z);_.v=yj.prototype;_.v.ready=function(){var e=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(e)};
_.v.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.set("isDarkTheme",e),this.squigglyBackground=e?this.JSC$16504_squigglyBackgroundDark:this.JSC$16504_squigglyBackgroundLight)};
_.v.updateSquigglyBackgroundStyle=function(){_.Nk(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.v.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.v.detached=function(){this.stop()};
_.v.stop=function(){this.playerElement.stop()};
_.v.setupVideoPlayer=function(){var e=this,g,c;return _.r(function(k){g=e.data.videoId;c="http://i1.ytimg.com/vi/"+g+"/maxresdefault.jpg";e.playerElement.loadVideoWithPlayerVars({video_id:g,iurlhq:c});_.Uh(k)})};
yj.prototype.onDataChanged=yj.prototype.onDataChanged;yj.prototype.updateSquigglyBackgroundStyle=yj.prototype.updateSquigglyBackgroundStyle;_.t([_.u({value:!1}),_.B("design:type",Boolean)],yj.prototype,"isDarkTheme",void 0);_.t([_.u(),_.B("design:type",String)],yj.prototype,"squigglyBackground",void 0);_.t([_.Cs("#player"),_.B("design:type",Object)],yj.prototype,"playerElement",void 0);_.t([_.u(),_.B("design:type",Object)],yj.prototype,"data",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],yj.prototype,"ytActionHandlerBehavior",void 0);_.t([_.OY("squigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yj.prototype,"updateSquigglyBackgroundStyle",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yj.prototype,"onDataChanged",null);
_.t([_.bF({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],yj);
_.U(yj,"ytd-handles-claiming-video-item-renderer",function(){if(Ioq!==void 0)return Ioq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Ioq=e},{mode:1});var JIq;var Oj=function(){var e=_.gk.apply(this,arguments)||this;e.dragging=!1;e.dragMouseStart=0;e.dragOffsetStart=0;e.containerWidthDiff=0;e.boundPrevClick=function(){e.set("offset",K6(e,e.offset-(e.scrollDistance||320)))};
e.boundNextClick=function(){e.set("offset",K6(e,e.offset+(e.scrollDistance||320)))};
e.boundScrollContainerMouseDown=function(g){e.dragMouseStart=g.clientX;e.dragOffsetStart=e.offset;e.dragging=!0};
e.boundScrollContainerDrag=function(g){e.dragging&&e.set("offset",K6(e,e.dragOffsetStart-(g.clientX-e.dragMouseStart)))};
e.boundMouseUp=function(){e.onMouseUp()};
e.boundWheelScroll=function(g){var c=0;Math.abs(g.deltaX)>=Math.abs(g.deltaY)?c=g.deltaX:g.shiftKey&&(c=g.deltaY);c!==0&&(e.offset+=c,g.stopPropagation(),g.preventDefault())};
e.boundChipCloudChipScrollIntoView=function(g){(g=g.detail)&&e.scrollChipIntoView(g)};
return e};
_.Y(Oj,_.gk);Oj.prototype.attached=function(){var e=_.o1(this.hostElement).querySelector("#scroll-container");e.addEventListener("wheel",this.boundWheelScroll);e.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);e.style.touchAction="pan-y";e.addEventListener("pointerdown",this.boundScrollContainerMouseDown);e.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Oj.prototype.detached=function(){var e=_.o1(this.hostElement).querySelector("#scroll-container");e.removeEventListener("wheel",this.boundWheelScroll);e.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);e.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);e.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Oj.prototype.reset=function(){this.set("offset",0);_.Va(this,this.setContainerWidthDiff);_.Va(this,this.setButtonsState)};
var K6=function(e,g){return Math.min(Math.max(g,0),e.containerWidthDiff)};
_.v=Oj.prototype;_.v.onMouseUp=function(){this.dragging=!1};
_.v.transformContainer=function(){this.offset=K6(this,this.offset);var e=_.uo("HTML_DIR")==="rtl"?"":"-";_.o1(this.hostElement).querySelector("#chips").style.transform="translateX("+e+this.offset+"px)";_.Va(this,this.setButtonsState)};
_.v.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=K6(this,this.offset));this.atStart=this.offset<=0};
_.v.setContainerWidthDiff=function(){var e=_.o1(this.hostElement).querySelector("#scroll-container"),g=_.o1(this.hostElement).querySelector("#chips");e&&g&&(this.containerWidthDiff=g.clientWidth-e.clientWidth)};
_.v.scrollChipIntoView=function(e){var g=_.o1(this.hostElement).querySelector("#scroll-container");if(g){var c=this.atStart?0:106,k=this.atEnd?0:106;e.offsetLeft<this.offset+c?this.offset=K6(this,e.offsetLeft-c):e.offsetLeft+e.clientWidth>this.offset+g.clientWidth-k&&(this.offset=K6(this,e.offsetLeft+e.clientWidth+k-g.clientWidth))}};
Oj.prototype.transformContainer=Oj.prototype.transformContainer;_.t([_.u({value:0}),_.B("design:type",Number)],Oj.prototype,"offset",void 0);_.t([_.u({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],Oj.prototype,"atStart",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Oj.prototype,"atEnd",void 0);_.t([_.u(),_.B("design:type",Number)],Oj.prototype,"scrollDistance",void 0);
_.t([_.OY("offset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Oj.prototype,"transformContainer",null);_.t([_.co()],Oj);var v5q;var wCk;_.M$=_.H(function(e){var g=e.data;e=_.w(_.Wa(!1,void 0,"bob3J"));var c=e.next().value,k=e.next().value;e=function(J){if((g==null?void 0:g().state)!==1){var q,L;(L=(q=g()).onTap)==null||L.call(q,J)}};
var I={};return _.a("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Ve(function(){var J=_.Ss().resolve(_.NN(_.u7));if(J){k(J.isKeyBoardInUse());var q,L;(L=(q=g()).onFocusIn)==null||L.call(q)}return!1}),
"on:focusout":_.Ve(function(){k(!1);return!1})},_.a(q$I,{shouldWrapInButton:function(){return g().type!==2},
selected:function(){return g().state===0},
onClick:e,isDropdown:function(){return g().type===1},
accessibilityLabel:function(){return g().type===1?void 0:g().accessibilityLabel}},_.a("div",{class:_.o6("ytChipShapeChip",function(){a:switch(g==null?void 0:g().state){case 0:var J="ytChipShapeActive";
break a;case 1:J="ytChipShapeDisabled";break a;default:J="ytChipShapeInactive"}return J},function(){var J=g().type===1||g().type===2,q=g();
return J||q!=null&&q.startIcon?q==null||!q.startIcon||q!=null&&q.text?J?"ytChipShapeEndIconPadding":(q==null?0:q.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var J=g();
if((J==null?void 0:J.style)===0&&(J==null?void 0:J.state)===0){var q;J=((q=_.Ss().resolve(_.NN(_.gb)))==null?0:q())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else J="";return J},(I.ytChipShapeFocused=function(){var J;
return c()&&((J=g())==null?void 0:J.state)!==1},I))},_.a(_.E,{cond:function(){return g().startIcon},
then:function(){return _.a(_.SU,{icon:function(){var J;return(J=g())==null?void 0:J.startIcon},
className:_.o6(function(){return g().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var J=g(),q,L=(q=_.Ss().resolve(_.NN(_.gb)))==null?void 0:q();
return(J==null?void 0:J.style)===0&&(J==null?void 0:J.state)===0&&L?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return g().text},_.a(LJY,{shape:g,
onClick:e}),_.a(_.zG,{model:{borderRadius:"8px"}}))))},"Rc");
_.M$.idomCompat=!0;var q$I=_.H(function(e){var g=_.Ve(function(c){e.onClick(c);return!1});
return _.a(_.E,{cond:e.shouldWrapInButton,then:function(){return _.a("button",{class:"ytChipShapeButtonReset","on:click":g,role:function(){return e.isDropdown()?"combobox":"tab"},
"aria-label":e.accessibilityLabel,"aria-selected":e.selected},e.children)},
else:function(){return e.children}})},"Sc"),LJY=_.H(function(e){var g=e.shape;
var c=e.onClick;var k=_.Ve(function(I){c(I);return!1});
return _.a(_.f4,null,_.a(_.DC,{when:function(){return g().type===1}},function(){return _.a(_.SU,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.a(_.DC,{when:function(){return g().type===2}},function(){return _.a("button",{class:"ytChipShapeButtonReset",
"on:click":k},_.a(_.SU,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.a(_.DC,{when:function(){return g().type===0}},function(){return _.a(_.es,null)}))},"Tc");_.sL(_.M$,"chip-shape",{props:{data:_.jx}});var C6=function(){var e=_.z.apply(this,arguments)||this;e.disableDeselectEvent=!1;e.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return e};
_.Y(C6,_.z);_.v=C6.prototype;_.v.onSelectChipCommand=function(e){if(!this.selected&&this.data&&(e=_.x(e,dEI),e.targetId&&e.targetId===this.data.targetId))this.onTap()};
_.v.onFilterChipTransformCommand=function(e){if(!this.selected&&this.data){var g;(e=(g=_.x(e,PvY))==null?void 0:g.chipUniqueId)&&e===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.v.dataChanged=function(){var e=this;_.Va(this,function(){e.data&&e.data.isSelected&&!e.selected&&(e.scrollChipIntoView(),e.onTap())})};
_.v.computeChipStyle=function(e){return e!=null?e:"STYLE_DEFAULT"};
_.v.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.Z5(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Z5(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.v.onFocus=function(){var e=_.Ss().resolve(_.NN(_.u7));e&&e.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.v.scrollChipIntoView=function(){_.oC(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Bd.Object.defineProperties(C6.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return w3U({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
C6.prototype.onFocus=C6.prototype.onFocus;C6.prototype.onTap=C6.prototype.onTap;C6.prototype.dataChanged=C6.prototype.dataChanged;_.t([_.m(_.ME),_.B("design:type",Object)],C6.prototype,"ironButtonState",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],C6.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],C6.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.yB),_.B("design:type",Object)],C6.prototype,"ironA11yKeysBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],C6.prototype,"disableDeselectEvent",void 0);_.t([_.u(),_.B("design:type",Object)],C6.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.icon"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],C6.prototype,"hasIcon",null);
_.t([_.u({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.B("design:type",String)],C6.prototype,"chipStyle",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],C6.prototype,"selected",void 0);_.t([_.p("data","selected"),_.B("design:type",Object),_.B("design:paramtypes",[])],C6.prototype,"chipShapeData",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],C6.prototype,"dataChanged",null);
_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],C6.prototype,"onTap",null);_.t([_.Ks("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],C6.prototype,"onFocus",null);_.t([_.Wo({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],C6);
_.U(C6,"yt-chip-cloud-chip-renderer",function(){if(wCk===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;v5q===void 0&&(v5q=document.createElement("template"));var k=v5q;c.call(g,k.content.cloneNode(!0),e.content.firstChild);wCk=e}e=wCk;return e},{mode:2});var rYV=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.rIw=_.H(function(e){function g(){if(rYV.has(e.data().displayType)){var R=!k(),W;if((W=e.disableDeselection)==null||!W.call(e)||R){e.data().selected=R;W=Object.assign({},q(),{selected:R});L(W);var b;(b=e.callback)==null||b.call(e,W,R)}}}
var c=_.io("chip-view-model",function(R){var W=e.data().tooltipTargetId,b=_.MG();W&&_.OH(b,W,R);return function(){Ko(b,R)}}),k=function(){var R,W;
return!!(((R=e.selected)==null?void 0:R.call(e))!==void 0?(W=e.selected)==null?0:W.call(e):q().selected)},I=_.w(_.uF(e.data)),J=I.next().value;
I=I.next().value;var q=J,L=I,n=_.O1(L$p,function(){return e.data().chipEntityKey||""});
return _.a("chip-view-model",{class:"ytChipViewModelHost",el:c},_.a(_.M$,{data:function(){var R,W=Object.assign({},q(),{selected:k()}),b=n(),h=(R=e.disableDeselection)==null?void 0:R.call(e);a:switch(W.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":R=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":R=3;break a;default:R=0}return{text:(b==null?void 0:b.text)||W.text,state:W.disabled?1:W.selected?0:2,type:R,onTap:aqp(W,c,g,
h),accessibilityLabel:W.accessibilityLabel||W.text}}}))},"Uc");
_.rIw.idomCompat={callbacks:{callback:!0}};_.ef=_.H(function(e){e=_.FA(e,{nextButtonStyle:0});var g=e.data,c=e.callback,k=e.selectionBehavior,I=e.disableChipsScrollAnimation,J=e.nextButtonStyle,q=_.PV("div");e=_.w(_.Wa(!0,void 0,"VwW6Jc"));var L=e.next().value,n=e.next().value;e=_.w(_.Wa(!1,void 0,"OIoagd"));var R=e.next().value,W=e.next().value,b=!1,h=0,X=function(){switch(J()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.Tr(function(){n(l());W(A())});
e=_.w(_.uF(function(){var LC={};return g().autoselectedChipIndex!=null?(LC[g().autoselectedChipIndex]=!0,LC):{}}));
var D=e.next().value,f=e.next().value,l=function(){var LC=q.value;return LC==null||LC.scrollLeft-1<=0},A=function(){var LC=q.value;
return LC==null?!1:LC.scrollLeft+1>=(LC==null?NaN:LC.scrollWidth)-(LC==null?NaN:LC.clientWidth)},d=function(){return g().isHorizontallyScrollable},S=function(LC){q.value!=null&&(_.uo("HTML_DIR")==="rtl"&&(LC=-LC),q.value.scrollBy({left:LC,
behavior:(I==null?0:I())?"instant":"smooth"}))},V=function(){S(-320)},Q=function(){S(320)},y=_.Ve(function(LC){b=!0;
h=LC.clientX}),O=_.Ve(function(LC){if(b){LC=LC.clientX;
var bW=LC-h;h=LC;var RA;(RA=q.value)==null||RA.scrollBy({left:-bW})}}),Jq=_.Ve(function(){var LC=l(),bW=A();
LC!==L()&&n(LC);bW!==R()&&W(bW)});
_.VV("pointerup",function(){b&&(b=!1)});
return _.a("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.a(_.BG,{contentId:function(){return g().contentId},
useModernStyle:!0},function(){var LC={},bW={};return _.a("div",null,_.a(_.E,{cond:function(){return g().title},
then:function(){return _.a("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.a("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return g().title}),_.a(_.eS,{data:function(){return g().overflowButton}},{buttonViewModel:_.oD}))}}),_.a("div",{class:_.o6("ytChipsShelfViewModelChipsShelfContent",X)},_.a(_.E,{cond:function(){return g().previousButton},
then:function(){var RA={};return _.a("div",{class:_.o6("ytChipsShelfViewModelLeftArrowContainer",(RA.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return L()},RA))},_.a(_.eS,{data:function(){return g().previousButton}},{buttonViewModel:function(Xg){return _.a(_.oD,{data:Xg.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:V})}}))}}),_.a("div",{el:q,
"on:pointerdown":y,"on:pointermove":O,"on:scroll":Jq,class:_.o6("ytChipsShelfViewModelChipsScrollContainer",(LC.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=d,LC))},_.a("div",{class:_.o6("ytChipsShelfViewModelChipsContainer",(bW.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=d,bW.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,bW)),role:"tablist"},_.a(_.eS,{data:function(){return g().contents}},{chipViewModel:function(RA,Xg){return _.a("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.a(_.rIw,{data:RA.data,
callback:function(Fg,oA){var Zt=Xg(),Ev,an=(Ev=k==null?void 0:k())!=null?Ev:0;an===1||an===2?(Ev={},f((Ev[Zt]=oA,Ev))):an===0&&(Ev={},f(Object.assign({},D(),(Ev[Zt]=oA,Ev))));c==null||c(Fg,oA,Zt)},
disableDeselection:function(){return(k==null?void 0:k())===1},
selected:function(){return!!D()[Xg()]}}))}}))),_.a(_.E,{cond:function(){return g().nextButton},
then:function(){var RA={};return _.a("div",{class:_.o6("ytChipsShelfViewModelRightArrowContainer",(RA.ytChipsShelfViewModelRightArrowContainerIsHidden=R,RA))},_.a(_.eS,{data:function(){return g().nextButton}},{buttonViewModel:function(Xg){return _.a(_.oD,{data:Xg.data,
className:"ytChipsShelfViewModelRightArrow",onClick:Q})}}))}})))}))},"Wc");
_.ef.idomCompat={callbacks:{callback:!0}};var aou=_.H(function(e){var g=e.data;var c=e.showChips;var k=e.isUpdateInProgress;var I=e.chipClickCallback;e=_.w(_.Wa(!1,void 0,"uth3se"));var J=e.next().value,q=e.next().value;e=_.w(_.Wa(!1,void 0,"qED0bb"));var L=e.next().value,n=e.next().value,R=function(){var b,h;return!((b=g())==null?0:b.responseMessage)&&!((h=g())==null||!h.chipsShelf)},W=void 0;
_.AV(function(){n(!0);var b=(c()||R())&&!k();requestAnimationFrame(function(){q(b)});
W&&clearTimeout(W);W=setTimeout(function(){n(!1)},300)},"OBQBmf");
_.sX(function(){W&&clearTimeout(W)});
e={};return _.a("ytd-ai-response-box-view-model",{class:_.o6("ytdAiResponseBoxViewModelHost")},_.a("div",{class:_.o6("ytdAiResponseBoxViewModelResponseMessageContainer",(e.ytdAiResponseBoxViewModelResponseMessageContainerHidden=J,e.ytdAiResponseBoxViewModelNotShown=function(){return J()&&!L()},e))},_.a(_.E,{cond:k,
then:function(){return _.a("div",null,_.a(_.fa,{text:function(){return g().responsePendingMessage}}))},
else:function(){return _.a(_.es,null,_.a(_.E,{cond:function(){var b;return(b=g().responseMessageIcon)==null?void 0:b.iconType},
then:function(b){return _.a("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.a(_.SU,{icon:b}))}}),_.a("div",null,_.a(_.fa,{text:function(){return g().responseMessage}})))}})),_.a(_.eS,{data:function(){return g().chipsShelf}},{chipsShelfViewModel:function(b){b=b.data;
var h={};return _.a("div",{class:_.o6("ytdAiResponseBoxViewModelChipsShelfContainer",(h.ytdAiResponseBoxViewModelChipsShelfContainerShown=J,h.ytdAiResponseBoxViewModelNotShown=function(){return!J()&&!L()},h))},_.a(_.ef,{data:b,
selectionBehavior:3,nextButtonStyle:1,callback:I}))}}))},"Yc");var n54;n54=Object.assign({},{continuation:fA1,download:hKZ,canvas:LDz,reportChannelAbuse:TXY,ui:afC,share:lA1,talkToRecs:F2w,watch:Xe,ypc:QEv,radioButtonGroup:wGt,collabInviteLink:J86},YK4,{voiceSearch:E9v,shorts:bE});_.R1w=ri(n54);_.E5u=aH(_.R1w);_.WJB=(0,_.E5u)(_.R1w.talkToRecs,{talkToRecsStateSelector:function(e){return e}});var h1s=_.H(function(e){var g=_.w((0,_.P1)(e.data)).next().value,c=_.xF(function(){var zv;a:{if(zv=g().onUpdateText)if(zv=_.x(zv,_.EL)){var XM;zv=(XM=_.x(zv,Tx1))==null?void 0:XM.stepId;break a}zv=void 0}return zv},void 0,"olO2Rd");
e=_.w(_.Wa(!1,void 0,"QCzl5d"));var k=e.next().value,I=e.next().value;e=_.w(_.Wa(!1,void 0,"cQ7jrd"));var J=e.next().value,q=e.next().value;e=_.w(qtv());var L=e.next().value;e=e.next().value;var n=_.M2(_.WJB.talkToRecsStateSelector),R=_.w(_.Wa("",void 0,"ry2Eac")),W=R.next().value,b=R.next().value;R=_.w(_.Wa(!1,void 0,"EwWXmb"));var h=R.next().value,X=R.next().value,D=_.w(_.Wa(!1,void 0,"hORmtb"));R=D.next().value;var f=D.next().value;D=_.w(_.Wa(!1,void 0,"fBzwv"));var l=D.next().value,A=D.next().value;
D=_.w(_.Wa(!1,void 0,"BCC4Zc"));var d=D.next().value,S=D.next().value,V=_.io("div");D=_.w(_.Wa(void 0,void 0,"Xvb7gd"));var Q=D.next().value,y=D.next().value,O=void 0,Jq=function(zv){zv!==k()&&(q(!0),I(zv),O&&clearTimeout(O),O=setTimeout(function(){q(!1)},300))},LC=function(){if(Q()!==void 0){var zv=Q();
Jq(window.scrollY>zv)}},bW=function(){var zv;
y((zv=V.value)==null?void 0:zv.offsetHeight);L("yt-feed-filter-chip-bar-resize")},RA="";
_.AV(function(){RA=W()},"UJeAbb");
_.lo(function(){var zv,XM,Su,p1=(Su=(XM=niC(c(),n()))!=null?XM:(zv=g().textInputValue)==null?void 0:zv.content)!=null?Su:"";b(p1);Fg(p1);X(!!g().welcomeBannerTitle&&!p1);bW();document.addEventListener("scroll",LC);_.sX(function(){document.removeEventListener("scroll",LC);O&&clearTimeout(O)})});
_.AV(function(){h();bW()},"AySmPb");
D=_.Ve(function(){A(!0);f(!0)});
var Xg=_.Ve(function(){f(!1)});
_.AV(function(){var zv=g();A(!1);S(!1);X(!!zv.welcomeBannerTitle&&!RA);var XM,Su;((Su=_.x((XM=zv.contents)==null?void 0:XM[0],eqw))==null?0:Su.responseMessageIcon)?(zv=bGn.cachedUserQuery,b(zv),Fg(zv)):bGn.cachedUserQuery=RA},"XKdHMd");
var Fg=function(zv){var XM=g().onUpdateText;XM&&_.GF(XM,{form:{userQuery:zv}})},oA=_.RX(function(zv){Fg(zv)},150),Zt=_.Ve(function(zv){zv=zv.target.value;
b(zv);oA(zv);return!1});
_.AV(function(){var zv=niC(c(),n());zv!==void 0&&zv!==RA&&b(zv)},"S2rE2d");
var Ev=function(){S(!0);X(!1)},an=function(){var zv=_.x(g().submitButton,_.$8);
if(zv==null?0:zv.trackingParams){var XM=_.Jb(zv.trackingParams),Su=_.EM();Su&&XM&&_.pA(Su,XM,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(zv=zv==null?void 0:zv.onTap)_.GF(zv),Ev()},V6=_.Ve(function(zv){zv.key==="Enter"&&(Fg(zv.target.value.trim()),an());
return!1}),bs=function(){an()},f1=_.Ve(function(){L("yt-feed-customization-scroll-up")}),hk={},Pq={},vq={},hq={};
return _.a("ytd-feed-customization-form-view-model",{class:_.o6("ytdFeedCustomizationFormViewModelHost",(hk.ytdFeedCustomizationFormViewModelHostCollapsed=k,hk)),el:_.mb(e)},_.a("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:V},_.a("div",{class:_.o6("ytdFeedCustomizationFormViewModelExpandedContent",(Pq.ytdFeedCustomizationFormViewModelNotShown=function(){return k()&&!J()},Pq))},_.a(_.E,{cond:function(){return g().disclaimer},
then:function(){return _.a("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.a(_.fa,{text:function(){return g().disclaimer}}))}}),_.a(_.E,{cond:h,
then:function(){return _.a("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.a("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.a(_.fa,{text:function(){return g().welcomeBannerTitle}})),_.a("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.a(_.fa,{text:function(){return g().welcomeBannerSubtitle}})))}}),_.a("div",{class:_.o6("ytdFeedCustomizationFormViewModelInputContainer",(vq.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
R,vq))},_.a("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var zv;return(zv=g().textInputPlaceholder)==null?void 0:zv.content},
"prop:value":W,"on:focus":D,"on:blur":Xg,"on:input":Zt,"on:keyup":V6,maxlength:300,disabled:d}),_.a(_.E,{cond:function(){return!!W()&&!d()},
then:function(){return _.a(_.eS,{data:function(){return g().clearButton}},{buttonViewModel:function(zv){return _.a("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.a(_.oD,{data:zv.data}))}})}}),_.a(_.E,{cond:function(){return d()},
then:function(){return _.a(_.eS,{data:function(){return g().inProgressButton}},{buttonViewModel:function(zv){return _.a("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.a(_.oD,{data:zv.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.a(_.eS,{data:function(){return g().submitButton}},{buttonViewModel:function(zv){return _.a("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.a(_.oD,{data:zv.data,
onClick:Ev}))}})}}),_.a(_.eS,{data:function(){return g().menuButton}},{buttonViewModel:function(zv){return _.a("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.a(_.oD,{data:zv.data,
buttonOverrides:function(){return{disabled:d()}}}))}})),_.a(_.eS,{data:function(){return g().contents}},{aiResponseBoxViewModel:function(zv){return _.a("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.a(aou,{data:zv.data,
showChips:l,isUpdateInProgress:d,chipClickCallback:bs}))}})),_.a("div",{class:_.o6("ytdFeedCustomizationFormViewModelCollapsedContent",(hq.ytdFeedCustomizationFormViewModelNotShown=function(){return!k()&&!J()},hq)),
"on:click":f1},_.a("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var zv;return W()||((zv=g().textInputPlaceholder)==null?void 0:zv.content)}))))},"cd"),XCB=function(){this.cachedUserQuery=""};
XCB.prototype.reset=function(){this.cachedUserQuery=""};
var bGn=new XCB;_.sL(h1s,"ytd-feed-customization-form-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=_.w((0,_.P1)(e.data)).next().value;return _.a("yt-chip-content-loader-view-model",{class:"ytChipContentLoaderViewModelHost"},_.a(_.eS,{data:function(){return g().contents}},{feedCustomizationFormViewModel:function(c){return _.a(h1s,{data:c.data})}}))},"dd"),"yt-chip-content-loader-view-model",{props:{data:_.jx}});var Gcn=_.Yu.persistentPanelVisibleSelector,gX=function(){var e=_.z.apply(this,arguments)||this;e.isDarkTheme=!1;e.notSticky=!1;e.transparentBackground=!1;e.shouldHide=!1;e.disableSticky=!1;e.fluidWidth=!1;e.isClipList=!1;e.defaultChipIndex=0;e.hasSelectedChipContent=!1;e.isPlaylist=!1;e.playlistVotingAnimationEnabled=_.G("web_enable_voting_animation");e.toolbarHeight=0;e.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(gX,_.z);_.v=gX.prototype;
_.v.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"},chipContentLoaderViewModel:{component:"yt-chip-content-loader-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.v.attached=function(){var e=this;document.addEventListener("scroll",_.yg(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.yg(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var g;this.toolbarHeight=((g=document.querySelector("ytd-masthead"))==null?void 0:g.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(c){e.handleIntersect(c)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){e.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.v.detached=function(){var e;(e=this.intersectionObserver)==null||e.disconnect();var g;(g=this.resizeObserver)==null||g.disconnect();document.removeEventListener("scroll",_.yg(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.yg(this,this.onFeedFilterChipBarResize))};
_.v.dataChanged=function(){var e=this,g,c,k=(g=this.data)==null?void 0:(c=g.contents)==null?void 0:c.findIndex(function(J){var q;return!((q=_.x(J,VqY))==null?0:q.navigationEndpoint)});
k&&(this.defaultChipIndex=k);this.updating=!0;var I=this.findSelectedChipIndex();this.selectedIndex!==I&&(this.selectedIndex=-1);_.Va(this,function(){e.selectedIndex=I;e.updateSelectedChipContent(e.selectedIndex);e.updating=!1;e.ytScrollableChipCloudBehavior.reset()})};
_.v.findSelectedChipIndex=function(){var e;if((e=this.data)==null||!e.contents)return 0;e=this.data.contents;for(var g=0;g<e.length;g++){var c=void 0;if((c=_.x(e[g],VqY))==null?0:c.isSelected)return g}return 0};
_.v.computeStyle=function(e){return e};
_.v.handleChipCloudChipSelectAction=function(e){e=this.JSC$16551_chipsSelector.indexOf(e);e>-1&&(this.JSC$16551_chipsSelector.selectIndex(e),this.updateSelectedChipContent(e))};
_.v.updateSelectedChipContent=function(e){var g;if((g=this.data)==null||!g.contents||e<0||e>=this.data.contents.length)this.selectedChipContent=void 0;else{var c;this.selectedChipContent=(c=_.x(this.data.contents[e],VqY))==null?void 0:c.content}};
_.v.handleChipCloudChipDeselectAction=function(){if(_.G("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var e,g,c,k=(c=_.x((e=this.data)==null?void 0:(g=e.contents)==null?void 0:g[this.defaultChipIndex],VqY))==null?void 0:c.navigationEndpoint;k&&_.Z5(this.hostElement,"yt-browse-section-list-reload-endpoint",[k]);this.JSC$16551_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.v.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.v.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.v.updateDynamicHeight=function(){var e=this;this.hasSelectedChipContent&&!this.notSticky?_.Va(this,function(){var g=_.o1(e.hostElement).querySelector("#chips-wrapper");g&&_.Nk(e.hostElement,{"--ytd-chips-bar-dynamic-height":g.clientHeight+"px"})}):_.Nk(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.v.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.v.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.v.onResize=function(){this.updateLayout()};
_.v.updateLayout=function(){var e=this.ytScrollableChipCloudBehavior;_.Va(e,e.setContainerWidthDiff);e=this.ytScrollableChipCloudBehavior;_.Va(e,e.setButtonsState)};
_.v.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.v.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.v.handleIntersect=function(e){this.notSticky=this.isChannelPageGrid||this.disableSticky||e[0].intersectionRatio===1};
_.v.updateDimensions=function(){var e=this.ytRendererBehavior.parentComponent;if(e){var g,c=(g=e.headerElement)!=null?g:e;_.Nk(this.hostElement,{"--ytd-rich-grid-chips-bar-width":c.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.v.updateSelectedIndexFromBinding=function(e){this.selectedIndex=e.detail.value};
_.v.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var e;(e=this.sortFilterHeaderRendererElement)==null||e.setAttribute("is-playlist-page-with-filters","")}};
_.v.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(HW1(!this.notSticky))};
_.Bd.Object.defineProperties(gX.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 e,g,c=(e=this.data)==null?void 0:(g=e.contents)==null?void 0:g.find(function(k){return _.x(k,ygv)});
return{sortFilterHeaderRenderer:_.x(c,ygv)}}}});
gX.prototype.dispatchChipBarIsSticky=gX.prototype.dispatchChipBarIsSticky;gX.prototype.isPlaylistPageChanged=gX.prototype.isPlaylistPageChanged;gX.prototype.updateChipBarWidthAndTop=gX.prototype.updateChipBarWidthAndTop;gX.prototype.onResize=gX.prototype.onResize;gX.prototype.onPersistentPanelVisibleChanged=gX.prototype.onPersistentPanelVisibleChanged;gX.prototype.onGuideIsExpandedChanged=gX.prototype.onGuideIsExpandedChanged;gX.prototype.updateDynamicHeight=gX.prototype.updateDynamicHeight;
gX.prototype.onSelectedChipContentChanged=gX.prototype.onSelectedChipContentChanged;gX.prototype.dataChanged=gX.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],gX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],gX.prototype,"actionHandlerBehavior",void 0);
_.t([_.m(_.Jc),_.B("design:type",Object)],gX.prototype,"ironResizableBehavior",void 0);_.t([_.m(),_.B("design:type",Oj)],gX.prototype,"ytScrollableChipCloudBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],gX.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],gX.prototype,"data",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],gX.prototype,"selectedIndex",void 0);_.t([_.u({value:320}),_.B("design:type",Number)],gX.prototype,"scrollDistance",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gX.prototype,"isDarkTheme",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gX.prototype,"notSticky",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gX.prototype,"transparentBackground",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.B("design:type",String)],gX.prototype,"componentStyle",void 0);
_.t([_.u({selector:_.i3z}),_.B("design:type",Boolean)],gX.prototype,"guideIsExpanded",void 0);_.t([_.u({selector:Gcn}),_.B("design:type",Boolean)],gX.prototype,"persistentPanelVisible",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gX.prototype,"shouldHide",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gX.prototype,"disableSticky",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gX.prototype,"fluidWidth",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gX.prototype,"isClipList",void 0);_.t([_.u(),_.B("design:type",Object)],gX.prototype,"defaultChipIndex",void 0);_.t([_.u(),_.B("design:type",Object)],gX.prototype,"selectedChipContent",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gX.prototype,"hasSelectedChipContent",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gX.prototype,"isPlaylist",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],gX.prototype,"playlistVotingAnimationEnabled",void 0);_.t([_.Cs("#chips"),_.B("design:type",Object)],gX.prototype,"JSC$16551_chipsSelector",void 0);_.t([_.Cs("ytd-sort-filter-header-renderer"),_.B("design:type",HTMLElement)],gX.prototype,"sortFilterHeaderRendererElement",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],gX.prototype,"updating",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gX.prototype,"dataChanged",null);_.t([_.OY("selectedChipContent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gX.prototype,"onSelectedChipContentChanged",null);_.t([_.OY("hasSelectedChipContent","notSticky"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gX.prototype,"updateDynamicHeight",null);
_.t([_.OY("guideIsExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gX.prototype,"onGuideIsExpandedChanged",null);_.t([_.OY("persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gX.prototype,"onPersistentPanelVisibleChanged",null);_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gX.prototype,"onResize",null);
_.t([_.k_("isChannelPageGrid","disableSticky","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gX.prototype,"updateChipBarWidthAndTop",null);_.t([_.p("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gX.prototype,"isChannelPageGrid",null);_.t([_.p("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gX.prototype,"isHashtagLandingPage",null);
_.t([_.OY("isPlaylistPage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gX.prototype,"isPlaylistPageChanged",null);_.t([_.p("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gX.prototype,"isPlaylistPage",null);_.t([_.p("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gX.prototype,"isDisableDeselectEvent",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gX.prototype,"sortFilterHeaderRendererData",null);_.t([_.u({reflectToAttribute:!0,selector:_.sGq}),_.B("design:type",String)],gX.prototype,"frostedGlassMode",void 0);_.t([_.OY("notSticky"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gX.prototype,"dispatchChipBarIsSticky",null);_.t([_.bF({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],gX);
_.U(gX,"ytd-feed-filter-chip-bar-renderer",function(){if(JIq!==void 0)return JIq;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return JIq=e},{mode:1});var xiY;var Dis=_.H(function(e){var g=e.data;var c=e.buttonIndex;var k=e.selectedIndex;var I=e.onSelect;var J=function(){return c()===k()},q=function(){var L,n;
return(n=(L=g().text)==null?void 0:L.content)!=null?n:""};
e=_.LV();return _.a("yt-toggleable-image-button-view-model",{class:function(){var L={};L=(L.toggleableImageButtonViewModelHost=!0,L[""]=!0,L.toggleableImageButtonViewModelSemiTransparent=k()!==-1&&!J(),L);return _.qy(L)},
tabindex:0,"aria-label":q,"aria-pressed":J,role:"button","on:keydown":e,"on:click":_.Ve(function(){I(g().onSubmitCommand);return!1})},_.a(_.E,{cond:function(){return g().logo},
then:function(L){return _.a(_.pv,{data:L,className:function(){var n={};n=(n.toggleableImageButtonViewModelImage=!0,n.toggleableImageButtonViewModelCircularRadius=!(!g().backgroundColor||!g().backgroundColorDarkMode),n.toggleableImageButtonViewModelGradientRing=!!(J()&&g().backgroundColor&&g().backgroundColorDarkMode),n);return _.qy(n)},
alt:q,useWidth:!1,style:function(){if(J()&&g().backgroundColor&&g().backgroundColorDarkMode){var n=Wg(Number(g().backgroundColorDarkMode),"1");var R=Wg(Number(g().backgroundColor),"1");n="background: linear-gradient(180deg,"+n+","+R+") border-box;"}else n="";return n}})}}),_.a(_.zG,{model:{borderRadius:"16px"}}),_.a("p",{class:function(){var L={};
L=(L.toggleableImageButtonViewModelLabel=!0,L.toggleableImageButtonViewModelBoldText=J(),L);return _.qy(L)}},_.a(_.fa,{text:function(){return g().text}})))},"ed");
Dis.idomCompat=!0;var Y$n=_.H(function(e){var g=e.data;e=_.w(_.Wa({index:-1,command:{}},void 0,"GM3umb"));var c=e.next().value,k=e.next().value;return _.a("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.a("div",{class:"nudgeFormViewModelFormOptions"},_.a(_.eS,{data:function(){return g().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(I,J){return _.a(Dis,{data:I.data,buttonIndex:J,selectedIndex:function(){return c().index},
onSelect:function(q){k({index:J(),command:q})}})}})),_.a(_.fa,{text:function(){return g().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.a("div",{class:"nudgeFormViewModelSubmit"},_.a(_.eS,{data:function(){return g().submitButton}},{buttonViewModel:function(I){return _.a($is,{data:I.data,
isDisabled:function(){return c().index===-1},
onClick:function(){_.GF(c().command)}})}})))},"fd");
Y$n.idomCompat=!0;var $is=_.H(function(e){var g=_.xF(function(){return Object.assign({},e.data(),{state:e.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.a(_.oD,{data:g,onClick:e.onClick})},"gd");_.sL(Y$n,"yt-nudge-form-view-model",{props:{data:_.jx}});var cX=function(){var e=_.z.apply(this,arguments)||this;e.roundedContainer=!0;e.buttonUpdate=_.G("web_modern_buttons");e.isDarkMode=!1;e.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return e};
_.Y(cX,_.z);_.v=cX.prototype;_.v.computeNudgeStyle=function(e){return e?"modernized-nudge":""};
_.v.handleDarkModeToggledAction=function(e){this.isDarkMode=e};
_.v.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.v.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.v.computeIsHorizontalButtons=function(e){return e?!!e.applyModernizedStyle&&!!e.enableHorizontalButtons&&!!e.secondaryButton:!1};
_.Bd.Object.defineProperties(cX.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var e,g;return(g=(e=this.data)==null?void 0:e.backgroundStyle)!=null?g:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var e,g;return(g=(e=this.data)==null?void 0:e.contentsLocation)!=null?g:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null?0:e.lightIconImage)}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],cX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],cX.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],cX.prototype,"actionHandlerBehavior",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("isHideEnclosingAction"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],cX.prototype,"isHidden",null);_.t([_.u(),_.B("design:type",Object)],cX.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],cX.prototype,"roundedContainer",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],cX.prototype,"buttonUpdate",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.B("design:type",String)],cX.prototype,"nudgeStyle",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.trimStyle"),_.B("design:type",String),_.B("design:paramtypes",[])],cX.prototype,"trimStyle",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.backgroundStyle"),_.B("design:type",String),_.B("design:paramtypes",[])],cX.prototype,"backgroundStyle",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data.contentsLocation"),_.B("design:type",String),_.B("design:paramtypes",[])],cX.prototype,"contentsLocation",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.disableDropShadow"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],cX.prototype,"noShadow",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.lightIconImage"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],cX.prototype,"noIcon",null);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.B("design:type",Boolean)],cX.prototype,"isHorizontalButtons",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],cX.prototype,"isDarkMode",void 0);_.t([_.bF({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],cX);
_.U(cX,"ytd-feed-nudge-renderer",function(){if(xiY!==void 0)return xiY;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return xiY=e},{mode:2});var fok;var jiu;var kJ=function(){var e=_.z.apply(this,arguments)||this;e.collapsed=!1;e.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return e};
_.Y(kJ,_.z);kJ.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"}}}};
kJ.prototype.handleRatingSelect=function(){var e;((e=this.data)==null?0:e.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
kJ.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],kJ.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],kJ.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.hz),_.B("design:type",Object)],kJ.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],kJ.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],kJ.prototype,"collapsed",void 0);_.t([_.bF({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],kJ);
_.U(kJ,"ytd-slimline-survey-renderer",function(){if(jiu!==void 0)return jiu;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return jiu=e},{mode:1});var iG4;var IE=function(){return _.z.apply(this,arguments)||this};
_.Y(IE,_.z);IE.prototype.maybeGetBackgroundColor=function(e){return this.isDarkMode?e.section2Color:e.section3Color};
IE.prototype.colorPaletteChanged=function(){var e=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;e&&(e==null?0:e.secondaryTitleColor)&&this.maybeGetBackgroundColor(e)?(this.hostElement.style.backgroundColor=_.R1(this.maybeGetBackgroundColor(e)),this.hostElement.style.color=_.R1(e.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
IE.prototype.colorPaletteChanged=IE.prototype.colorPaletteChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],IE.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],IE.prototype,"data",void 0);_.t([_.u({selector:function(e){return e.ui.darkModeIsEnabled}}),
_.B("design:type",Boolean)],IE.prototype,"isDarkMode",void 0);_.t([_.u(),_.B("design:type",Object)],IE.prototype,"lightColorPalette",void 0);_.t([_.u(),_.B("design:type",Object)],IE.prototype,"darkColorPalette",void 0);_.t([_.OY("darkColorPalette","lightColorPalette","data","isDarkMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IE.prototype,"colorPaletteChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],IE);
_.U(IE,"ytd-endorsement-header-renderer",function(){if(iG4!==void 0)return iG4;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return iG4=e},{mode:1});_.sL(_.WG,"yt-decorated-avatar-view-model",{props:{data:_.jx,className:_.jx}});_.JG=new _.AU("VIEW_TRANSITION_MANAGER_TOKEN");var vX=function(){var e=_.z.apply(this,arguments)||this;e.fullHeight=_.G("web_rich_grid_media_full_height");e.showChannelAvatar=!0;e.hasPlaylistThumbnail=!1;e.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};e.registerThumbnailForPageTransition=function(){_.G("web_thumbnail_to_watch_transition")&&_.PM4(_.Ss().resolve(_.JG),e.thumbnail)};
return e};
_.Y(vX,_.z);_.v=vX.prototype;
_.v.configureRendererStamper=function(){return{lazyLoadMenu:eZ,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.shouldLazyLoadMenu=function(){var e=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.G("kevlar_modern_downloads_page")||!e};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16575_inlinePreviewHoverListener=hC({mediaRenderer:this,lockupElement:this.JSC$16575_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.v.getVideoPreviewOpts=function(){var e={},g;if((g=this.data)==null?0:g.multipleInlinePlaybackEndpoint)e=rYZ;this.isRadio&&(e=L$I);return e};
_.v.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$16575_inlinePreviewHoverListener)==null||dS(e)};
_.v.getOwner=function(){var e,g,c;return((e=this.data)==null?void 0:(g=e.channelThumbnailSupportedRenderers)==null?void 0:g.channelThumbnailWithLinkRenderer)||_.x((c=this.data)==null?void 0:c.showProviderChannelThumbnail,HQv)};
_.v.updateLockupSize=function(){var e;((e=this.getOwner())==null?0:e.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.v.getFeedbackEndpoint=function(e){if(_.x(e,_.bn))return e;var g,c;e=(c=(g=_.x(e,_.SV))==null?void 0:g.commands)!=null?c:[];g=_.w(e);for(c=g.next();!c.done;c=g.next())if(c=this.getFeedbackEndpoint(c.value))return c;return null};
_.v.computeNavigationEndpoint=function(e){return AFz(e==null?void 0:e.navigationEndpoint)};
_.v.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var e=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(e)!==JSON.stringify(this.data)&&this.set("data",e)}};
_.v.onDataChanged=function(){var e=this,g=this.getOwner();if(g){this.set("data.owner",g);var c,k,I,J,q,L=((c=this.data)==null?void 0:(k=c.shortBylineText)==null?void 0:(I=k.runs)==null?void 0:(J=I[0])==null?void 0:J.text)||((q=g.name)==null?void 0:q.simpleText);this.set("data.owner.title",L)}var n,R,W,b,h,X;g=((n=this.data)==null?void 0:(R=n.thumbnailRenderer)==null?void 0:R.playlistVideoThumbnailRenderer)||((W=this.data)==null?void 0:(b=W.thumbnailRenderer)==null?void 0:b.playlistCustomThumbnailRenderer)||
((h=this.data)==null?void 0:(X=h.thumbnailRenderer)==null?void 0:X.showCustomThumbnailRenderer);var D;((D=this.data)==null?0:D.thumbnail)||!g||this.set("data.thumbnail",g.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){e.updateLockupSize()});
var f;if(n=((f=this.data)==null?void 0:f.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(n);var l;((l=this.dismissActionToReplayEntity)==null?0:l.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.v.onHiddenChanged=function(){this.updateLockupSize()};
_.v.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Z5(this.hostElement,"yt-terminate-video-preview-action");else{var e;(e=this.videoTitleLink)==null||e.focus()}};
_.v.metadataColorChanged=function(){var e;if(this.metadataColor&&((e=this.videoTitle)==null?0:e.style))this.videoTitle.style.color=_.R1(this.metadataColor);else{var g,c;!this.metadataColor&&((g=this.videoTitle)==null?0:(c=g.style)==null?0:c.color)&&(this.videoTitle.style.color="")}};
_.v.onDetailsClick=function(e){var g=this.computedNavigationEndpoint;g&&(_.TJ(_.lg(e),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.oC(this.hostElement,"yt-navigate",{endpoint:g}))};
_.v.onRendererTap=function(){this.registerThumbnailForPageTransition();var e,g,c=((e=this.data)==null?void 0:e.serviceEndpoint)||this.getFeedbackEndpoint((g=this.data)==null?void 0:g.navigationEndpoint);c&&_.x(c,_.bn)&&this.ytComponentBehavior.resolveCommand(c)};
_.v.onMouseDown=function(e){var g=e.target,c=this.computedNavigationEndpoint,k;e=g.href||((k=_.x(c==null?void 0:c.commandMetadata,_.OM))==null?void 0:k.url);k=g.data||c;e&&k&&yEp(e,k)};
_.v.computeVideoTitleText=function(){var e;if((e=this.data)==null?0:e.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.v.computeHasPlaylistThumbnail=function(e){var g,c,k,I,J;if((((g=e.thumbnailRenderer)==null?0:g.playlistVideoThumbnailRenderer)||((c=e.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer)||((k=e.thumbnailRenderer)==null?0:k.showCustomThumbnailRenderer)||((I=e.thumbnailRenderer)==null?0:I.playlistVideoThumbnailRenderer)||((J=e.thumbnailRenderer)==null?0:J.playlistCustomThumbnailRenderer))&&e.thumbnailOverlays)for(g=0;g<e.thumbnailOverlays.length;g++)if(c=void 0,(c=e.thumbnailOverlays[g])==
null?0:c.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Bd.Object.defineProperties(vX.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.G("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var e;return(e=this.data)==null?void 0:e.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var e;return(e=this.data)==null?void 0:e.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$16575_inlinePreviewHoverListener)==null?0:x9(e))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.CXg(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:e.videoId)||((g=this.data)==null?void 0:g.playlistId)||""}}});
vX.prototype.onMouseDown=vX.prototype.onMouseDown;vX.prototype.metadataColorChanged=vX.prototype.metadataColorChanged;vX.prototype.onIsDismissedChanged=vX.prototype.onIsDismissedChanged;vX.prototype.onHiddenChanged=vX.prototype.onHiddenChanged;vX.prototype.onDataChanged=vX.prototype.onDataChanged;vX.prototype.handleReloadDownloadsInfo=vX.prototype.handleReloadDownloadsInfo;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],vX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],vX.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],vX.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],vX.prototype,"ytdLockupBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],vX.prototype,"ytdReduxBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],vX.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],vX.prototype,"entitySelectorType",void 0);_.t([_.u(),_.B("design:type",Boolean)],vX.prototype,"noEndpoints",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],vX.prototype,"isRadio",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],vX.prototype,"miniMode",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],vX.prototype,"fullHeight",void 0);
_.t([_.u(),_.B("design:type",Boolean)],vX.prototype,"showDarkVideoMetadata",void 0);_.t([_.u(),_.B("design:type",Boolean)],vX.prototype,"showLightVideoMetadata",void 0);_.t([_.u(),_.B("design:type",Number)],vX.prototype,"metadataColor",void 0);_.t([_.u(),_.B("design:type",Object)],vX.prototype,"showChannelAvatar",void 0);_.t([_.u(),_.B("design:type",Boolean)],vX.prototype,"hidden",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],vX.prototype,"showYtInteraction",void 0);
_.t([_.u(),_.B("design:type",String)],vX.prototype,"dismissedContentId",void 0);_.t([_.u({selectorArgs:["dismissedContentId"],selector:l$K}),_.B("design:type",Object)],vX.prototype,"dismissActionToReplayEntity",void 0);
_.t([_.u({selectorArgs:["entitySelectorType","mediaId"],selector:function(e,g,c){if(_.G("kevlar_modern_downloads_page")&&c&&g&&g!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(g){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var k=zbV(e,c);if(k){g=_.hw(e,c);var I=Gt(e,c),J=K5K(e,c);e=xd(e,c);var q=IfK(k,g,I,J);I=q.shortViewCountText;var L=q.publishedTimeText;q=q.badges;var n=e>0;J=c8e(k,g,J,e);k=_.cL(g)||g==="TRANSFER_STATE_FAILED"||g==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!gq(k.policyEntity)?
void 0:T4p(c,e,k.videoEntity.lengthSeconds);g==="TRANSFER_STATE_PAUSED_BY_USER"&&c&&!_.G("dl_resume_click_killswitch")&&(k={offlineVideoEndpoint:{videoId:c,action:"ACTION_RESUME"}});c={shortViewCountText:I,publishedTimeText:L,badges:q,isWatched:n,navigationEndpoint:k,thumbnailOverlays:J}}else c=void 0;return c;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(g=H3A(e,c))if(k=_.Xi(e,c),J=_.QGz(e,c),k!=="TRANSFER_STATE_UNKNOWN"){c=kAV(g,k,J,c,_.bm(e));break a}c=void 0}return c;default:_.mN(new _.E2("Error: entitySelectorType defined but not matched in selector.",
e,g))}}}),
_.B("design:type",Object)],vX.prototype,"entityDrivenState",void 0);_.t([_.u({computed:"computeVideoTitleText(data)"}),_.B("design:type",Object)],vX.prototype,"videoTitleText",void 0);_.t([_.u({computed:"computeHasPlaylistThumbnail(data)"}),_.B("design:type",Object)],vX.prototype,"hasPlaylistThumbnail",void 0);_.t([_.u({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],vX.prototype,"computedNavigationEndpoint",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],vX.prototype,"typographyBump",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("typographyBump"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vX.prototype,"typographyBumpV2",null);_.t([_.Cs("#video-title"),_.B("design:type",HTMLElement)],vX.prototype,"videoTitle",void 0);_.t([_.Cs("#video-title-link"),_.B("design:type",HTMLElement)],vX.prototype,"videoTitleLink",void 0);
_.t([_.Cs("#thumbnail"),_.B("design:type",HTMLElement)],vX.prototype,"thumbnail",void 0);_.t([_.Cs("#dismissible"),_.B("design:type",HTMLElement)],vX.prototype,"JSC$16575_dismissibleMedia",void 0);_.t([_.p("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],vX.prototype,"lazyLoadMenu",null);_.t([_.p("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],vX.prototype,"immediateLoadMenu",null);
_.t([_.k_("entityDrivenState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vX.prototype,"handleReloadDownloadsInfo",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vX.prototype,"onDataChanged",null);_.t([_.k_("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vX.prototype,"onHiddenChanged",null);
_.t([_.OY("isDismissed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vX.prototype,"onIsDismissedChanged",null);_.t([_.OY("metadataColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vX.prototype,"metadataColorChanged",null);_.t([_.Ks("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vX.prototype,"onMouseDown",null);
_.t([_.p("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vX.prototype,"isHovered",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vX.prototype,"useAvatar",null);_.t([_.p("data","entitySelectorType"),_.B("design:type",String),_.B("design:paramtypes",[])],vX.prototype,"mediaId",null);_.t([_.bF({is:"ytd-rich-grid-media",disableElementRegistration:!0})],vX);
var miw=_.oI()(vX,"ytd-rich-grid-media",function(){if(fok!==void 0)return fok;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return fok=e},{mode:2});var pCq;var wX=function(){var e=_.z.apply(this,arguments)||this;e.removeMaxWidth=!0;e.insetMetadata=!1;return e};
_.Y(wX,_.z);_.v=wX.prototype;_.v.configureRendererStamper=function(){return{innerMenu:eZ,outerMenu:Object.assign({},eZ,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.onDataChanged=function(){var e,g=((e=this.data)==null?void 0:e.trackingParams)||"";g&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(g));var c;((c=this.dismissActionToReplayEntity)==null?0:c.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16580_inlinePreviewHoverListener=hC({mediaRenderer:this,lockupElement:this.JSC$16580_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:aqI})};
_.v.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$16580_inlinePreviewHoverListener)==null||dS(e)};
_.v.onRendererTap=function(){var e,g,c=(e=this.data)==null?void 0:(g=e.serviceEndpoints)==null?void 0:g[0];_.x(c,_.bn)&&this.componentBehavior.resolveCommand(c)};
_.v.onDetailsClick=function(e){var g,c=(g=this.data)==null?void 0:g.navigationEndpoint;c&&(_.TJ(_.lg(e),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(c))};
_.v.onShow=function(){var e=this.data;e.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(e.onFirstVisibleCommand),delete e.onFirstVisibleCommand)};
_.Bd.Object.defineProperties(wX.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var e;return this.insetMetadata?void 0:(e=this.data)==null?void 0:e.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var e;return this.insetMetadata?(e=this.data)==null?void 0:e.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var e=this.data;if(e!=null&&e.badge&&(e=_.x(e.badge,dw1))){var g,c,k;return[{metadataBadgeRenderer:{label:((g=e.label)==null?void 0:(c=g.runs)==null?void 0:c[0].text)||((k=e.label)==null?void 0:k.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var e=this.data;return Object.assign({},e.headline,{accessibility:e.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return this.isSlimShort?(e=this.computedTitle)==null?void 0:(g=e.accessibility)==null?void 0:(c=g.accessibilityData)==null?void 0:c.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.G("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$16580_inlinePreviewHoverListener)==null?0:x9(e))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
wX.prototype.onDataChanged=wX.prototype.onDataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],wX.prototype,"componentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],wX.prototype,"ytdLockupBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],wX.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.hz),_.B("design:type",Object)],wX.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],wX.prototype,"ytdReduxBehavior",void 0);_.t([_.Cs("ytd-thumbnail"),_.B("design:type",HTMLElement)],wX.prototype,"thumbnail",void 0);_.t([_.Cs("#dismissible"),_.B("design:type",HTMLElement)],wX.prototype,"JSC$16580_dismissibleMedia",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],wX.prototype,"removeMaxWidth",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],wX.prototype,"insetMetadata",void 0);_.t([_.u(),_.B("design:type",String)],wX.prototype,"dismissedContentId",void 0);_.t([_.u({selectorArgs:["dismissedContentId"],selector:l$K}),_.B("design:type",Object)],wX.prototype,"dismissActionToReplayEntity",void 0);_.t([_.p("insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],wX.prototype,"thumbnailObjectFit",null);
_.t([_.p("data","insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],wX.prototype,"innerMenu",null);_.t([_.p("data","insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],wX.prototype,"outerMenu",null);_.t([_.u(),_.B("design:type",Object)],wX.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],wX.prototype,"miniMode",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wX.prototype,"onDataChanged",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wX.prototype,"shortsBadges",null);_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wX.prototype,"isShort",null);
_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wX.prototype,"isSlimShort",null);_.t([_.p("data","isShort"),_.B("design:type",Object),_.B("design:paramtypes",[])],wX.prototype,"computedTitle",null);_.t([_.p("isSlimShort","computedTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],wX.prototype,"computedAccessibilityLabel",null);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wX.prototype,"shouldForce2By3",null);_.t([_.p("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wX.prototype,"isHovered",null);_.t([_.bF({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],wX);
_.U(wX,"ytd-rich-grid-slim-media",function(){if(pCq!==void 0)return pCq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return pCq=e},{mode:2});var Tfn;var lo4;var qm=function(){return _.z.apply(this,arguments)||this};
_.Y(qm,_.z);qm.prototype.computeIcon=function(e){return e&&e.iconType?"yt-sys-icons:"+e.iconType.toLowerCase():""};
qm.prototype.onMouseEnter=function(){this.isHovered=!0};
qm.prototype.onMouseLeave=function(){this.isHovered=!1};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],qm.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qm.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],qm.prototype,"isHovered",void 0);
_.t([_.bF({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],qm);
_.U(qm,"ytd-expand-on-hover-card-renderer",function(){if(lo4!==void 0)return lo4;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return lo4=e},{mode:1});var AIY,siZ=function(){if(AIY!==void 0)return AIY;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return AIY=e};_.qH("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var LW=function(){var e=_.z.apply(this,arguments)||this;e.compactStyle=!1;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(LW,_.z);_.v=LW.prototype;_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.computeHideDot=function(e){return!(e&&e.subscriberCountText&&e.videoCountText)||this.compactStyle};
_.v.hasDualButtons=function(e){return e&&e.purchaseButton&&e.subscribeButton};
_.v.backgroundColorChanged=function(){if(this.data!==void 0){var e=this.data.backgroundColor;this.isDarkTheme&&(e=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=e!=null?_.R1(e):"transparent"}};
_.v.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.v.onTap=function(e){var g,c,k=((g=this.data)==null?void 0:g.navigationEndpoint)||((c=this.data)==null?void 0:c.serviceEndpoint);_.x(k,_.pV)&&(k&&_.Ss().resolve(_.xk).resolveCommand(k,{form:{element:this.hostElement}}),e.preventDefault())};
_.v.computeChannelEndpoint=function(e){return _.x(e,_.pV)?null:e};
_.v.computeHrefEndpoint=function(e){return _.x(e,_.pV)?null:this.componentBehavior.computeHref_(e)};
_.v.computeChannelRendererStyle=function(e){return e};
_.v.computeIconSize=function(e){return e?108:136};
_.Bd.Object.defineProperties(LW,{template:{configurable:!0,enumerable:!0,get:function(){return siZ()}}});
LW.prototype.backgroundColorChanged=LW.prototype.backgroundColorChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],LW.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],LW.prototype,"componentBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],LW.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],LW.prototype,"isDarkTheme",void 0);_.t([_.u({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.B("design:type",String)],LW.prototype,"channelRendererStyle",void 0);_.t([_.u({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],LW.prototype,"dualButtons",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],LW.prototype,"useBiggerThumbs",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.C4("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],LW.prototype,"biggerThumbStyle",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],LW.prototype,"compactStyle",void 0);_.t([_.OY("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LW.prototype,"backgroundColorChanged",null);_.t([_.bF({is:"ytd-channel-renderer",disableElementRegistration:!0})],LW);_.U(LW,"ytd-channel-renderer",function(){return siZ()},{mode:1});var FJv;var uUq;_.qH("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var rX=function(){var e=_.z.apply(this,arguments)||this;e.displayItemCount=2;e.hasPlaylistThumbnail=!1;e.stackThumbnailSize="large";return e};
_.Y(rX,_.z);_.v=rX.prototype;_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.v.computeFirstVideos=function(e,g){return e&&g?e.slice(0,g):[]};
_.v.computeThumbnailWidth=function(e,g){return e?g==="BIG"?500:g==="MASSIVE"?600:g==="MEDIUM"?450:420:360};
_.v.computeThumbnailHeight=function(e,g){return e?g==="BIG"?280:g==="MASSIVE"?337:234:202};
_.v.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$16593_inlinePreviewHoverListener)==null||dS(e)};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16593_inlinePreviewHoverListener=hC({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:rYZ,thumbnailElement:this.thumbnail})};
_.v.computeHasPlaylistThumbnail=function(e){var g,c;if((((g=e.thumbnailRenderer)==null?0:g.playlistVideoThumbnailRenderer)||((c=e.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer))&&e.thumbnailOverlays)for(g=0;g<e.thumbnailOverlays.length;g++)if(c=void 0,(c=e.thumbnailOverlays[g])==null?0:c.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Bd.Object.defineProperties(rX.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$16593_inlinePreviewHoverListener)==null?0:x9(e))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
rX.prototype.dataChanged=rX.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],rX.prototype,"ytdLockupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],rX.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],rX.prototype,"displayItemCount",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],rX.prototype,"useBiggerThumbs",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.C4("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],rX.prototype,"biggerThumbsStyle",void 0);_.t([_.u({computed:"computeHasPlaylistThumbnail(data)"}),_.B("design:type",Object)],rX.prototype,"hasPlaylistThumbnail",void 0);_.t([_.u(),_.B("design:type",String)],rX.prototype,"stackThumbnailSize",void 0);_.t([_.Cs("ytd-thumbnail"),_.B("design:type",HTMLElement)],rX.prototype,"thumbnail",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rX.prototype,"dataChanged",null);
_.t([_.p("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rX.prototype,"isHovered",null);_.t([_.bF({is:"ytd-radio-renderer",disableElementRegistration:!0})],rX);
_.U(rX,"ytd-radio-renderer",function(){if(uUq!==void 0)return uUq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return uUq=e},{mode:2});var diu;_.qH("itemSectionRenderer","showRenderer","ytd-show-renderer");var aE=function(){return _.z.apply(this,arguments)||this};
_.Y(aE,_.z);aE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
aE.prototype.computeThumbnailWidth=function(e){return e?360:246};
aE.prototype.computeUseProminentThumbs=function(e){return e};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],aE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],aE.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],aE.prototype,"isSearch",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.B("design:type",Boolean)],aE.prototype,"useProminentThumbs",void 0);_.t([_.bF({is:"ytd-show-renderer",disableElementRegistration:!0})],aE);
_.U(aE,"ytd-show-renderer",function(){if(diu!==void 0)return diu;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return diu=e},{mode:1});_.qH("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var nW=function(){var e=_.z.apply(this,arguments)||this;e.isRichGrid=!1;return e};
_.Y(nW,_.z);nW.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],nW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],nW.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],nW.prototype,"isRichGrid",void 0);_.t([_.bF({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],nW);
_.U(nW,"ytd-feed-entry-renderer",function(){if(FJv!==void 0)return FJv;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return FJv=e},{mode:1});var z11;var RE=function(){return _.z.apply(this,arguments)||this};
_.Y(RE,_.z);RE.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.t([_.m(_.Wv),_.B("design:type",Object)],RE.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],RE.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],RE.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.Rq,value:3}),_.B("design:type",Number)],RE.prototype,"itemsPerRow",void 0);
_.t([_.bF({is:"ytd-link-card-renderer",disableElementRegistration:!0})],RE);
_.U(RE,"ytd-link-card-renderer",function(){if(z11!==void 0)return z11;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return z11=e},{mode:1});var HG1;var EK=function(){return _.z.apply(this,arguments)||this};
_.Y(EK,_.z);_.v=EK.prototype;_.v.configureRendererStamper=function(){return{"data.menu":eZ,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.onRendererTap=function(e){if(!this.ytdDismissibleItemBehavior.isDismissed){var g,c=(g=this.data)==null?void 0:g.navigationEndpoint;c&&!_.TJ(_.lg(e),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(c)?_.TJ(_.lg(e),this.hostElement,["A"])||_.oC(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c,{}))}};
_.v.maybeComputeHref=function(e){return this.ytComponentBehavior.computeHref_(e,!0)};
_.v.getNavigationCommand=function(e){return this.isNavigationCommand(e)?e:null};
_.v.isNavigationCommand=function(e){return e?_.x(e,_.KU)||_.x(e,_.Pm)||_.x(e,_.uf)?!0:!1:!1};
EK.prototype.onRendererTap=EK.prototype.onRendererTap;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],EK.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],EK.prototype,"ytComponentBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],EK.prototype,"data",void 0);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],EK.prototype,"onRendererTap",null);_.t([_.bF({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],EK);
_.U(EK,"ytd-lumiere-promo-item-image-renderer",function(){if(HG1!==void 0)return HG1;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return HG1=e},{mode:1});var QiI;var WX=function(){return _.z.apply(this,arguments)||this};
_.Y(WX,_.z);WX.prototype.computeLandscapeThumbnail=function(){var e;return((e=this.data)==null?void 0:e.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],WX.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],WX.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],WX.prototype,"miniMode",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.Rq}),_.B("design:type",Number)],WX.prototype,"itemsPerRow",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.B("design:type",Boolean)],WX.prototype,"landscapeThumbnail",void 0);_.t([_.bF({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],WX);
_.U(WX,"ytd-lumiere-shelf-details-renderer",function(){if(QiI!==void 0)return QiI;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return QiI=e},{mode:2});var Uiv;var bC=function(){return _.z.apply(this,arguments)||this};
_.Y(bC,_.z);bC.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],bC.prototype,"data",void 0);_.t([_.bF({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],bC);
_.U(bC,"ytd-primetime-promo-details-renderer",function(){if(Uiv!==void 0)return Uiv;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Uiv=e},{mode:1});var o5v;var hG=function(){return _.z.apply(this,arguments)||this};
_.Y(hG,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],hG.prototype,"data",void 0);_.t([_.bF({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],hG);
_.U(hG,"ytd-panel-show-style-metadata-renderer",function(){if(o5v!==void 0)return o5v;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return o5v=e},{mode:1});var ZGw;var X8=function(){return _.z.apply(this,arguments)||this};
_.Y(X8,_.z);_.v=X8.prototype;_.v.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.v.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.v.computeThumbnail=function(e){if(e)return e.smallFormFactorBackgroundThumbnail||e.largeFormFactorBackgroundThumbnail};
_.v.maybeComputeHref=function(e){return this.ytComponentBehavior.computeHref_(e,!0)};
_.v.isNavigationCommand=function(e){return e?_.x(e,_.KU)||_.x(e,_.Pm)||_.x(e,_.uf)?!0:!1:!1};
_.v.getNavigationCommand=function(e){return this.isNavigationCommand(e)?e:null};
X8.prototype.onPanelTap=X8.prototype.onPanelTap;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],X8.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],X8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],X8.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],X8.prototype,"roundedContainer",void 0);_.t([_.u({reflectToAttribute:!0,value:_.G("web_modern_buttons")}),_.B("design:type",Boolean)],X8.prototype,"modernButtons",void 0);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],X8.prototype,"onPanelTap",null);_.t([_.bF({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],X8);
_.U(X8,"ytd-primetime-promo-panel-renderer",function(){if(ZGw!==void 0)return ZGw;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ZGw=e},{mode:1});_.sL(_.H(function(e){e=_.FA(e,{data:{},useFullWidth:!1});var g=e.data,c=e.useFullWidth;e={};return _.a("teaser-card-view-model",{class:_.o6("ytTeaserCardViewModelHost",(e.ytTeaserCardViewModelUseFullWidth=function(){return c()},e))},_.a(_.E,{cond:function(){return g().onTap},
then:function(k){return _.a(_.d4,{className:"ytTeaserCardViewModelLink",command:k},_.a("div",{class:"ytTeaserCardViewModelImageContainer"},_.a(_.E,{cond:function(){return g().image},
then:function(I){return _.a(_.pv,{data:I,className:"ytTeaserCardViewModelImage",alt:""})}})),_.a("p",{class:"ytTeaserCardViewModelCaption"},function(){return g().caption}))}}))},"hd"),"teaser-card-view-model",{props:{data:_.jx,
useFullWidth:_.jx}});_.sL(_.H(function(e){var g=e.data;var c=function(){var k;return _.$u((k=g())==null?void 0:k.iconThemedImage)};
return _.a("yt-edu-card-view-model",null,_.a(_.BG,{contentId:function(){return g().nudgeId}},function(){return _.a("div",{class:_.o6("ytEduCardViewModelHost",function(){return g().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.a("div",{class:"ytEduCardViewModelTopCornerButton"},_.a(_.eS,{data:function(){return g().dismissButton}},{buttonViewModel:_.oD})),_.a("div",{class:"ytEduCardViewModelContentWrapper"},_.a("div",{class:"ytEduCardViewModelHeaderImage"},_.a(_.E,
{cond:c,
then:function(k){return _.a(_.pv,{data:k,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.a("div",{class:"ytEduCardViewModelTextContainer"},_.a("div",{class:"ytEduCardViewModelTitle"},_.a(_.fa,{text:function(){return g().title}})),_.a("div",{class:"ytEduCardViewModelSubtitle"},_.a(_.fa,{text:function(){return g().subtitle}}))),_.a("div",{class:"ytEduCardViewModelContent"},_.a(_.eS,{data:function(){return g().form}},{nudgeFormViewModel:Y$n}))),_.a("div",{class:_.o6("ytEduCardViewModelButtonWrapper",
function(){return g().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.a(_.eS,{data:function(){return g().primaryButton}},{buttonViewModel:function(k){return _.a("div",{class:"ytEduCardViewModelPrimaryButton"},_.a(_.oD,{data:k.data}))}}),_.a(_.eS,{data:function(){return g().secondaryButton}},{buttonViewModel:function(k){return _.a("div",{class:"ytEduCardViewModelSecondaryButton"},_.a(_.oD,{data:k.data}))}})))}))},"id"),"yt-edu-card-view-model",{props:{data:_.jx}});var V1u=new _.AU("RICH_GRID_VIDEO_RENDERER_TOKEN");_.sL(_.H(function(e){var g=e.data;var c=e.showYtInteractionInContent;var k=function(){return!!g().selectableFeedback};
e=_.w(_.Wa(!1,void 0,"qxtgaf"));var I=e.next().value,J=e.next().value;_.lo(function(){var h=_.x(g().primaryButton,_.fP);(h==null?0:h.isToggled)&&J(h.isToggled)});
e=_.Ve(function(h){if(!k())return!1;if(I()){var X;var D=(X=g().selectableFeedback)==null?void 0:X.onDeselect}else{var f;D=(f=g().selectableFeedback)==null?void 0:f.onSelect}D&&_.GF(D,{form:{element:h.target}});J(!I());if(h=_.x(g().primaryButton,_.fP))h.isToggled=I();return!1});
var q=function(){if(!k()){var h,X=(h=g().loggingDirectives)==null?void 0:h.trackingParams;X&&_.KP(_.Ss().resolve(_.I5),X)}},L=_.LfW(),n=function(){var h;
return k()?(h=g().selectableFeedback)==null?void 0:h.a11yLabel:void 0},R=function(){return k()?{toggled:I()}:{}},W=_.Ss().resolve(_.NN(V1u)),b={};
return _.a("yt-feedback-item-renderer",{class:_.o6("ytFeedbackItemRendererHost",(b.ytFeedbackItemRendererSelectableFeedback=k,b)),"on:click":e,"on:keydown":L,title:n,"aria-label":n,"aria-pressed":function(){return k()?I():void 0},
tabindex:function(){return k()?0:void 0},
role:function(){return k()?"button":void 0}},_.a("div",{class:"ytFeedbackItemRendererContentContainer"},_.a(_.eS,{data:function(){return g().content}},{videoRenderer:function(h){return _.a(W,{data:h.data,
showYtInteraction:c})},
lockupViewModel:function(h){return _.a(_.KS,{data:h.data,containerType:2})}})),_.a("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.a(_.eS,{data:function(){return g().primaryButton}},{toggleButtonViewModel:function(h){return _.a(_.vF,{data:h.data,
buttonShapeOverrides:R,disableExplicitClickLogging:!0,onToggle:q})}})))},"jd"),"yt-feedback-item-renderer",{props:{data:_.jx,
showYtInteractionInContent:_.jx}});var G8=function(){var e=_.z.apply(this,arguments)||this;e.isShortsGrid=!1;e.isCompactGrid=!1;e.isShortsPanelGrid=!1;e.renderedFromRichGrid=!1;e.isInFirstColumn=!1;e.noGutterMargins=!1;e.noBottomMargin=!1;e.halfBottomMargin=!1;e.isInlineGroupItem=!1;e.insetMetadata=!1;e.noBottomMarginInAds=!0;e.force16By9ThumbnailAspectRatio=!1;e.useCompactList=!1;e.containerType=2;e.thumbnailTargetWidth=9999;e.isResponsiveGrid=!1;e.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};e.hoverListener=
e.hover.bind(e);e.leaveListener=e.leave.bind(e);e.highlighted=!1;e.JSC$16629_unsubscribeFromInlinePreviewIsActive=function(){};
return e};
_.Y(G8,_.z);_.v=G8.prototype;_.v.computeContainerType=function(){return this.useCompactList?3:2};
_.v.itemWidthChanged=function(){var e;this.thumbnailTargetWidth=(e=this.itemWidth)!=null?e:9999};
_.v.updateIsInFirstColumn=function(){var e;this.isInFirstColumn=((e=this.data)==null?void 0:e.colIndex)===0};
_.v.observerContainerType=function(){if(this.lockup){var e=this.lockup;e.containerType=this.containerType;e.sizing=this.sizing;e.typographyBump=this.typographyBump;e.itemWidth=this.itemWidth}this.richGridMedia&&_.G("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.G("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.v.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.v.leave=function(e){e=e.relatedTarget;var g=document.querySelector("ytd-video-preview");e&&g&&_.Zu(g).contains(e)||this.removeAndCleanupHighlight()};
_.v.hover=function(){var e;!this.highlighted&&(e=this.data)!=null&&e.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(e=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:e,boxShadow:"0 0 0 10px "+e})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.v.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.v.registerHoverHighlightListeners=function(){var e=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16629_unsubscribeFromInlinePreviewIsActive=_.kq(_.Tt(),_.TOC,function(g){e.highlighted&&!g&&e.removeAndCleanupHighlight()})};
_.v.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16629_unsubscribeFromInlinePreviewIsActive()};
_.v.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.v.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.v.getBackgroundColor=function(){var e,g,c=(e=this.data)==null?void 0:(g=e.onFocusEffect)==null?void 0:g.onFocusColor;if(c){if(document.documentElement.hasAttribute("dark")&&(c==null?0:c.darkTheme))return bg(c==null?void 0:c.darkTheme);if(c==null?0:c.lightTheme)return bg(c==null?void 0:c.lightTheme)}};
_.v.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var e=_.EM(),g,c,k;e&&((g=this.data)==null?0:g.trackingParams)&&((c=this.data)==null?void 0:c.colIndex)!=null&&((k=this.data)==null?void 0:k.rowIndex)!=null&&_.Tu(e,_.Jb(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.v.isSlimMediaRenderer=function(e){return!!_.x(e==null?void 0:e.content,_.rF1)||!!_.x(e==null?void 0:e.content,LXZ)||!!_.x(e==null?void 0:e.content,_.XN)||!!_.x(e==null?void 0:e.content,s5u)};
_.v.isPostRenderer=function(){var e,g;return!!_.x((e=this.data)==null?void 0:e.content,$94)||!!_.x((g=this.data)==null?void 0:g.content,YSq)};
_.v.computeIsGameCardShelf=function(){var e;return!!_.x((e=this.data)==null?void 0:e.content,QMu)};
_.v.computeIsMiniGameCardShelf=function(){var e,g;return!!_.x((e=this.data)==null?void 0:e.content,eFu)||!!_.x((g=this.data)==null?void 0:g.content,g8u)};
_.v.computeIsTeaserCard=function(){var e;return!!_.x((e=this.data)==null?void 0:e.content,g8u)};
_.v.computeIsSelectableFeedbackItem=function(){var e,g;return!((g=_.x((e=this.data)==null?void 0:e.content,k_k))==null||!g.selectableFeedback)};
_.v.computeContainsLumierePosters=function(){var e,g;return((g=_.x((e=this.data)==null?void 0:e.content,sgv))==null?void 0:g.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.v.computeIsExpandOnHoverCardShelf=function(){var e;return!!_.x((e=this.data)==null?void 0:e.content,ASs)};
_.v.computeIsLinkCardShelf=function(){var e;return!!_.x((e=this.data)==null?void 0:e.content,BCw)};
_.v.computeIsReelItemStyleAvatarCircle=function(e){var g;return((g=_.x(e==null?void 0:e.content,_.XN))==null?void 0:g.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.v.computeIsLinkCardFullWidth=function(e,g){var c;return((c=_.x(e==null?void 0:e.content,BCw))==null?void 0:c.useFullWidth)||g<=2};
_.Bd.Object.defineProperties(G8.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var e;return _.G("web_hover_effect_refactor")&&_.x((e=this.data)==null?void 0:e.content,Sc1)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.G("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var e;if(_.G("web_hover_effect_refactor")&&_.x((e=this.data)==null?void 0:e.content,Sc1))return!1;var g;return!((g=this.data)==null||!g.onFocusEffect)||_.G("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var e;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.G("web_hover_effect_refactor")?(e=this.data)==null?void 0:e.onFocusEffect:void 0}}}});
G8.prototype.richGridHoverHighlightChanged=G8.prototype.richGridHoverHighlightChanged;G8.prototype.observerContainerType=G8.prototype.observerContainerType;G8.prototype.updateIsInFirstColumn=G8.prototype.updateIsInFirstColumn;G8.prototype.itemWidthChanged=G8.prototype.itemWidthChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],G8.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],G8.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],G8.prototype,"ytdLockupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],G8.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.B("design:type",Boolean)],G8.prototype,"isPost",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.B("design:type",Boolean)],G8.prototype,"containsLumierePosters",void 0);_.t([_.u({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.B("design:type",Boolean)],G8.prototype,"isSlimMedia",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.B("design:type",Boolean)],G8.prototype,"isGameCardShelf",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.B("design:type",Boolean)],G8.prototype,"isMiniGameCardShelf",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.B("design:type",Boolean)],G8.prototype,"isTeaserCard",void 0);_.t([_.u({computed:"computeIsSelectableFeedbackItem(data)"}),_.B("design:type",Boolean)],G8.prototype,"isSelectableFeedbackItem",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G8.prototype,"isShortsGrid",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],G8.prototype,"isSlimGrid",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G8.prototype,"isCompactGrid",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G8.prototype,"isShortsPanelGrid",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.B("design:type",Boolean)],G8.prototype,"isExpandOnHoverCardShelf",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.B("design:type",Boolean)],G8.prototype,"isLinkCardShelf",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.Rq,value:3}),_.B("design:type",Number)],G8.prototype,"itemsPerRow",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G8.prototype,"renderedFromRichGrid",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G8.prototype,"isInFirstColumn",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G8.prototype,"noGutterMargins",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G8.prototype,"noBottomMargin",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G8.prototype,"halfBottomMargin",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G8.prototype,"isInlineGroupItem",void 0);_.t([_.u(),_.B("design:type",Object)],G8.prototype,"insetMetadata",void 0);_.t([_.u(),_.B("design:type",Object)],G8.prototype,"noBottomMarginInAds",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],G8.prototype,"isShelfItem",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.B("design:type",Boolean)],G8.prototype,"isReelItemStyleAvatarCircle",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.B("design:type",Boolean)],G8.prototype,"isLinkCardFullWidth",void 0);_.t([_.u(),_.B("design:type",Object)],G8.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G8.prototype,"useCompactList",void 0);_.t([_.u(),_.B("design:type",String)],G8.prototype,"sizing",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],G8.prototype,"typographyBump",void 0);_.t([_.u(),_.B("design:type",Number)],G8.prototype,"itemWidth",void 0);_.t([_.u(),_.B("design:type",Boolean)],G8.prototype,"isHomeShelf",void 0);_.t([_.u(),_.B("design:type",Boolean)],G8.prototype,"isHomeGrid",void 0);
_.t([_.Cs("yt-lockup-view-model"),_.B("design:type",HTMLElement)],G8.prototype,"lockup",void 0);_.t([_.Cs("ytd-rich-grid-media"),_.B("design:type",HTMLElement)],G8.prototype,"richGridMedia",void 0);_.t([_.Cs("ytd-ad-slot-renderer"),_.B("design:type",HTMLElement)],G8.prototype,"adSlotRenderer",void 0);_.t([_.u({computed:"computeContainerType(useCompactList)"}),_.B("design:type",Object)],G8.prototype,"containerType",void 0);_.t([_.u(),_.B("design:type",Object)],G8.prototype,"thumbnailTargetWidth",void 0);
_.t([_.p("showYtInteractionOnRichItem"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],G8.prototype,"showYtInteractionOnRichGridMedia",null);_.t([_.p("isSelectableFeedbackItem","richGridHoverHighlight"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],G8.prototype,"showYtInteractionOnRichItem",null);_.t([_.p("typographyBump","isHomeGrid"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],G8.prototype,"richTypographyBump",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data","isShortsGrid","isCompactGrid"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],G8.prototype,"richGridHoverHighlight",null);_.t([_.p("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.B("design:type",Number),_.B("design:paramtypes",[])],G8.prototype,"shortsLockupViewModelAspectRatio",null);_.t([_.p("isInlineGroupItem"),_.B("design:type",Number),_.B("design:paramtypes",[])],G8.prototype,"shortsLockupViewModelScrimStyle",null);
_.t([_.OY("itemWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G8.prototype,"itemWidthChanged",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G8.prototype,"updateIsInFirstColumn",null);_.t([_.OY("containerType","sizing","typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G8.prototype,"observerContainerType",null);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G8.prototype,"isResponsiveGrid",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],G8.prototype,"lockupExperiments",null);_.t([_.OY("richGridHoverHighlight"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G8.prototype,"richGridHoverHighlightChanged",null);_.t([_.bF({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],G8);
_.t1u=_.oI()(G8,"ytd-rich-item-renderer",function(){if(Tfn===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);Tfn=e}e=Tfn;return e},{mode:2});var xIz={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var sKq=_.PL(_.C_("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var $I8={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},fqC={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},jKt={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var BfI;var xJ=function(){var e=_.z.apply(this,arguments)||this;e.useResponsiveGrid=!1;e.hidden=!1;e.isShowMoreHidden=!1;e.isShowLessHidden=!0;e.hasExpansionButton=!1;e.isInnerShelf=!1;e.allVideosCount=0;e.allPlaylistCount=0;e.haveSmartDownloadsCompleted=!1;e.restrictContentsOverflow=!1;e.firstShownIndex=0;e.horizontalOffset=0;e.atEnd=!0;e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
e.disableServiceRequestPropagation=function(g){g.stopPropagation()};
e.nextClick=function(){var g;(g=e.data)!=null&&g.contents&&(e.firstShownIndex+=e.currentElementsPerRow,e.updateHorizontalOffset(),e.updateHorizontalItemVisibility())};
e.previousClick=function(){var g;(g=e.data)!=null&&g.contents&&(e.firstShownIndex-=e.currentElementsPerRow,e.updateHorizontalOffset(),e.updateHorizontalItemVisibility())};
return e};
_.Y(xJ,_.z);_.v=xJ.prototype;
_.v.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.uo("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.v.attached=function(){this.requestElementsPerRow();_.G("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.v.detached=function(){_.G("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.v.refreshGridLayoutNew=function(){var e;if((e=this.data)!=null&&e.contents&&this.containerWidth){var g;((g=this.data.responsiveContainerConfiguration)==null?0:g.responsiveSize)?(e=_.uPV(this.data.responsiveContainerConfiguration,this.containerWidth,2),e=_.xu(Object.assign({},e,{standardUnitMinWidth:this.standardUnitMinWidth}))):e=_.xu({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=e.typographyBump;if(this.elementsPerRow!==
e.numItems||this.gutter!==e.gutter)this.elementsPerRow=e.numItems,this.gutter=e.gutter,this.itemWidth=e.itemWidth,_.Nk(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":e.gutter+"px"})}};
_.v.computeSizing=function(){if(!this.isLumiere){var e=_.IDg(this.data);return e?e:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.v.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.v.computeButton=function(e){var g=_.x(e,_.G_);e=Object.assign({},_.x(e,_.G_));return g?(e.text||(e.text={simpleText:e.tooltip}),e.style="STYLE_MONO_OUTLINE",e.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",e):g};
_.v.onRowIndexChange=function(){var e=_.EM(),g,c;((g=this.data)==null?0:g.trackingParams)&&((c=this.data)==null?void 0:c.rowIndex)!=null&&e&&_.Tu(e,_.Jb(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.v.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var e,g=((e=this.getRichItemRenderers()[0])==null?void 0:e.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*g;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.v.requestElementsPerRow=function(){_.oC(this.hostElement,"yt-request-elements-per-row")};
_.v.onUpdateElementsPerRowAction=function(e,g,c,k,I,J){if(this.containerWidth!==J&&(this.containerWidth=J,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&e&&g&&c&&k&&I&&(this.elementsPerRow!==e||this.postsPerRow!==g||this.slimItemsPerRow!==c||this.gameCardsPerRow!==k||this.miniGameCardsPerRow!==I)&&(this.elementsPerRow=e,this.postsPerRow=g,this.slimItemsPerRow=c,this.gameCardsPerRow=k,this.miniGameCardsPerRow=I,this.updateItemVisibility())};
_.v.isExpandedChanged=function(){var e=this.getRichItemRenderers(),g=this.isExpanded;e.forEach(function(c){c.halfBottomMargin=g})};
_.v.isCollapsedChanged=function(){var e=this.getRichItemRenderers(),g=this.isCollapsed;e.forEach(function(c){c.noBottomMargin=g})};
_.v.getRichItemRenderers=function(){return _.o1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.v.updateItemVisibility=function(){var e=this;if(this.data&&this.data.contents){var g=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(k,I){var J;((J=e.data)==null?0:J.isExpanded)?(k.hidden=I>g-1,k.ytRendererBehavior.markDirty()):k.hidden=I>e.currentElementsPerRow-1||I>g-1});
var c=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||c||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||c||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.v.setHeightToSingleRow=function(){var e=this.getRichItemRenderers(),g=Number.parseInt(getComputedStyle(e[0]).marginBottom,10)||0;e=e.slice(0,this.currentElementsPerRow).reduce(function(c,k){return Math.max(c,k.getBoundingClientRect().height+g)},0);
this.contents.style.height=e+"px"};
_.v.focusNextExpandedItem=function(){var e;((e=this.data)==null?0:e.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.v.focusItem=function(e,g){var c=this.getRichItemRenderers();if(c[e]&&(e=c[e].querySelector(".focus-on-expand"))){if(g){var k;(k=c[this.currentElementsPerRow])==null||k.scrollIntoView({behavior:"smooth",block:"center"})}e.focus({preventScroll:!0})}};
_.v.onDataChange=function(){var e=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var g;if((g=this.data)==null?0:g.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.Va(this,function(){e.updateItemVisibility()});
var c;if((c=this.data)==null?0:c.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Nk(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),g=0;g<this.data.contents.length;g++)c=_.x(this.data.contents[g],_.JR)||{},c.colIndex=g,c.rowIndex=this.data.rowIndex};
_.v.handleRerenderDownloadsData=function(){_.G("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.v.blockInlinePreview=function(e){var g=this,c;return _.r(function(k){(c=g.inlinePreviewIsEnabled)&&g.ytdReduxBehavior.dispatch(_.zKq(!1));return k.return(new Promise(function(I){e(function(){c&&g.ytdReduxBehavior.dispatch(_.zKq(!0));I()})}))})};
_.v.expandShelf=function(){var e=this;if(this.data){var g,c=(g=_.x(this.data.showMoreButton,_.G_))==null?void 0:g.trackingParams;c&&_.KP(_.gL(),c);this.set("data.isExpanded",!0);this.blockInlinePreview(function(k){e.setHeightToSingleRow();e.updateItemVisibility();e.contents.style.height=e.contents.scrollHeight+"px";_.ft.addJob(function(){e.contents.style.height="auto";e.focusNextExpandedItem();k()},2,200)})}};
_.v.collapseShelf=function(){var e=this;return _.r(function(g){if(g.nextAddress==1){if(!e.data)return g.return();e.set("data.isExpanded",!1);return g.yield(e.blockInlinePreview(function(c){e.contents.style.height=e.contents.scrollHeight+"px";e.setHeightToSingleRow();_.ft.addJob(function(){e.updateItemVisibility();e.contents.style.height="auto";c()},2,200)}),2)}_.oC(e.hostElement,"yt-rich-shelf-renderer-collapse",e.data.trackingParams);
e.focusItem(0,!1);_.Uh(g)})};
_.v.updateArrowButtonStatus=function(){this.getRichItemRenderers();var e,g;var c=((e=this.data)==null?void 0:(g=e.contents)==null?void 0:g.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=c};
_.v.onChildElementFocus=function(e){this.hasChevronButtons&&(e=e.target.closest("#contents > *"),this.contents.contains(e)&&(e.offsetLeft<this.horizontalOffset?this.previousClick():e.offsetLeft+e.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.v.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.uo("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.v.updateHorizontalOffset=function(){var e=this.getRichItemRenderers(),g,c;var k=((g=this.data)==null?void 0:(c=g.contents)==null?void 0:c.length)||0;var I;e=((I=e[0])==null?void 0:I.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>k?this.firstShownIndex=k-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*e};
_.v.isSlimMediaShelfRenderer=function(){var e,g,c,k=(c=_.x((e=this.data)==null?void 0:(g=e.contents)==null?void 0:g[0],_.JR))==null?void 0:c.content;return!!(_.x(k,_.rF1)||_.x(k,LXZ)||_.x(k,_.XN)||_.x(k,s5u))};
_.v.isGameCardShelf=function(){var e,g,c,k=(c=_.x((e=this.data)==null?void 0:(g=e.contents)==null?void 0:g[0],_.JR))==null?void 0:c.content;return!!_.x(k,QMu)};
_.v.isMiniGameCardShelf=function(){var e,g,c,k=(c=_.x((e=this.data)==null?void 0:(g=e.contents)==null?void 0:g[0],_.JR))==null?void 0:c.content;return!!_.x(k,eFu)||!!_.x(k,g8u)};
_.v.hasGameBoxArtAvatarStyle=function(){var e;return((e=this.data)==null?void 0:e.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.v.hasRoundedGameBoxArtAvatarStyle=function(){var e;return((e=this.data)==null?void 0:e.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.v.isShortsShelf=function(){var e,g,c,k=(c=_.x((e=this.data)==null?void 0:(g=e.contents)==null?void 0:g[0],_.JR))==null?void 0:c.content;return!!_.x(k,_.XN)||!!_.x(k,s5u)};
_.v.isPostShelfRenderer=function(){var e,g,c,k=(c=_.x((e=this.data)==null?void 0:(g=e.contents)==null?void 0:g[0],_.JR))==null?void 0:c.content;return!(!_.x(k,$94)&&!_.x(k,YSq))};
_.v.isLumiereShelf=function(){var e,g,c=_.x((e=this.data)==null?void 0:(g=e.contents)==null?void 0:g[0],_.JR);return!!_.x(c==null?void 0:c.content,sgv)};
_.v.isLumiereShelfWithPosters=function(){var e,g,c=_.x((e=this.data)==null?void 0:(g=e.contents)==null?void 0:g[0],_.JR),k;return((k=_.x(c==null?void 0:c.content,sgv))==null?void 0:k.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.v.isExpandOnHoverCardShelf=function(){var e,g,c,k=(c=_.x((e=this.data)==null?void 0:(g=e.contents)==null?void 0:g[0],_.JR))==null?void 0:c.content;return!!_.x(k,ASs)};
_.v.computeHasFeaturedBadge=function(){var e,g,c=_.x((e=this.data)==null?void 0:(g=e.badges)==null?void 0:g[0],_.gLw);return c?c.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.v.computeHasPaygatedFeaturedBadge=function(){var e,g,c=_.x((e=this.data)==null?void 0:(g=e.badges)==null?void 0:g[0],_.gLw);return c?(c==null?void 0:c.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.v.computeHeaderHidden=function(){var e,g,c,k,I,J;return!((e=this.data)==null?0:e.icon)&&!((g=this.data)==null?0:g.title)&&!((c=this.data)==null?0:c.subtitle)&&!((k=this.data)==null?0:k.thumbnail)&&!((I=this.data)==null?0:I.badges)&&!((J=this.data)==null?0:J.menu)};
_.v.showCtaButton=function(){var e;return!((e=this.data)==null||!e.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.v.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.v.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.v.computeForce16By9ThumbnailAspectRatio=function(){var e,g;return((e=this.data)==null?void 0:(g=e.responsiveContainerConfiguration)==null?void 0:g.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.v.onSectionReactiveDismissal=function(e,g,c){var k,I;var J=(k=this.data)==null?void 0:(I=k.targetingContext)==null?void 0:I.targetGroupId;this&&J&&g.targetGroupId&&J.includes(g.targetGroupId)?(k=this.rowIndex,e=k===void 0?!1:!(g.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&k<=e)):e=!1;e&&(this.hidden=c)};
_.Bd.Object.defineProperties(xJ.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null?0:e.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var e=this.elementsPerRow;this.isPostShelfRenderer()?e=this.postsPerRow:this.isSlimMediaShelfRenderer()?e=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?e=this.slimItemsPerRow-1:this.isGameCardShelf()?e=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(e=this.miniGameCardsPerRow);return e}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null?0:e.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var e,g;return!((e=this.data)==null||!e.previousButton)&&!((g=this.data)==null||!g.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 e;return((e=_.Ss().resolve(_.A4).getCurrentPage())==null?void 0:e.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k;return!((e=this.data)==null?0:(g=e.thumbnail)==null?0:(c=g.accessibility)==null?0:(k=c.accessibilityData)==null?0:k.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
xJ.prototype.onChildElementFocus=xJ.prototype.onChildElementFocus;xJ.prototype.handleRerenderDownloadsData=xJ.prototype.handleRerenderDownloadsData;xJ.prototype.onDataChange=xJ.prototype.onDataChange;xJ.prototype.isCollapsedChanged=xJ.prototype.isCollapsedChanged;xJ.prototype.isExpandedChanged=xJ.prototype.isExpandedChanged;xJ.prototype.onRowIndexChange=xJ.prototype.onRowIndexChange;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],xJ.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],xJ.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],xJ.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],xJ.prototype,"ytdReduxBehavior",void 0);
_.t([_.u({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.B("design:type",Object)],xJ.prototype,"useResponsiveGrid",void 0);_.t([_.u(),_.B("design:type",Object)],xJ.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Number)],xJ.prototype,"standardUnitMinWidth",void 0);_.t([_.u({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],xJ.prototype,"elementsPerRow",void 0);_.t([_.u({value:3}),_.B("design:type",Number)],xJ.prototype,"postsPerRow",void 0);
_.t([_.u({value:6}),_.B("design:type",Number)],xJ.prototype,"slimItemsPerRow",void 0);_.t([_.u({value:6}),_.B("design:type",Number)],xJ.prototype,"gameCardsPerRow",void 0);_.t([_.u({value:6}),_.B("design:type",Number)],xJ.prototype,"miniGameCardsPerRow",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],xJ.prototype,"hidden",void 0);_.t([_.u(),_.B("design:type",Object)],xJ.prototype,"isShowMoreHidden",void 0);
_.t([_.u(),_.B("design:type",Object)],xJ.prototype,"isShowLessHidden",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],xJ.prototype,"hasExpansionButton",void 0);_.t([_.p("data.isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xJ.prototype,"isExpanded",null);_.t([_.p("data.isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xJ.prototype,"isCollapsed",null);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],xJ.prototype,"isInnerShelf",void 0);_.t([_.u({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.B("design:type",Boolean)],xJ.prototype,"isShorts",void 0);_.t([_.u({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.B("design:type",Boolean)],xJ.prototype,"isLumiere",void 0);_.t([_.u({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.B("design:type",Boolean)],xJ.prototype,"hasBoxArtThumbnailStyle",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.B("design:type",Boolean)],xJ.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.B("design:type",Boolean)],xJ.prototype,"hasFeaturedBadge",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.B("design:type",Boolean)],xJ.prototype,"hasPaygatedFeaturedBadge",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.B("design:type",Boolean)],xJ.prototype,"isHeaderHidden",void 0);_.t([_.u({selector:_.dTW}),_.B("design:type",Object)],xJ.prototype,"allVideosCount",void 0);_.t([_.u({selector:F$W}),_.B("design:type",Object)],xJ.prototype,"allPlaylistCount",void 0);_.t([_.u({selector:NOp}),_.B("design:type",Object)],xJ.prototype,"haveSmartDownloadsCompleted",void 0);
_.t([_.u({selectorArgs:["entitySelectorType"],selector:function(e,g){if(_.G("kevlar_modern_downloads_page")&&g&&g!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var c=e.entities;switch(g){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":g=_.LU(c);e=OQ(g);var k=_.kd(g);c=_.aq(c);c=_.uB(PLV(k,c,g.length));return{contents:e,subtitle:c};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return c=_.LU(c),{contents:OQ(c)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return c=
_.rq(c),{contents:OQ(c)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return c=_.RbW(c),{contents:OQ(c)};default:_.mN(new _.E2("Error: entitySelectorType defined but not matched in selector.",e,g))}}}}),
_.B("design:type",Object)],xJ.prototype,"entityDrivenRichShelfData",void 0);_.t([_.u({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.B("design:type",Boolean)],xJ.prototype,"hasTopCtaButton",void 0);_.t([_.u({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.B("design:type",Boolean)],xJ.prototype,"hasBottomCtaButton",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.B("design:type",Boolean)],xJ.prototype,"force16By9ThumbnailAspectRatio",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],xJ.prototype,"restrictContentsOverflow",void 0);_.t([_.u({selector:_.lGC}),_.B("design:type",Boolean)],xJ.prototype,"inlinePreviewIsEnabled",void 0);_.t([_.u({computed:"computeSizing(data)"}),_.B("design:type",String)],xJ.prototype,"sizing",void 0);
_.t([_.u(),_.B("design:type",Boolean)],xJ.prototype,"typographyBump",void 0);_.t([_.u(),_.B("design:type",Number)],xJ.prototype,"itemWidth",void 0);_.t([_.u(),_.B("design:type",Object)],xJ.prototype,"firstShownIndex",void 0);_.t([_.u(),_.B("design:type",Object)],xJ.prototype,"horizontalOffset",void 0);_.t([_.u(),_.B("design:type",Object)],xJ.prototype,"atEnd",void 0);_.t([_.Cs("#contents"),_.B("design:type",HTMLElement)],xJ.prototype,"contents",void 0);
_.t([_.OY("data.rowIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xJ.prototype,"onRowIndexChange",null);_.t([_.OY("isExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xJ.prototype,"isExpandedChanged",null);_.t([_.OY("isCollapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xJ.prototype,"isCollapsedChanged",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xJ.prototype,"onDataChange",null);_.t([_.OY("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xJ.prototype,"handleRerenderDownloadsData",null);_.t([_.Ks("focusin"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],xJ.prototype,"onChildElementFocus",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data","isHomePage"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xJ.prototype,"isTruncated",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xJ.prototype,"showBottomDivider",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],xJ.prototype,"hasChevronButtons",null);
_.t([_.p("firstShownIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],xJ.prototype,"previousButtonOverride",null);_.t([_.p("atEnd"),_.B("design:type",Object),_.B("design:paramtypes",[])],xJ.prototype,"nextButtonOverride",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xJ.prototype,"isHomePage",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xJ.prototype,"thumbnailAriaHidden",null);
_.t([_.p("data"),_.B("design:type",String),_.B("design:paramtypes",[])],xJ.prototype,"entitySelectorType",null);_.t([_.bF({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],xJ);
_.Nfk=_.oI()(xJ,"ytd-rich-shelf-renderer",function(){if(BfI===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);BfI=e}e=BfI;return e},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:2});var S$M;_.sL(zA,"yt-thumbnail-view-model",{props:{data:_.jx,aspectRatio:_.jx,width:_.jx,height:_.jx,disableRounding:_.jx,isClip:_.jx,className:_.jx,hovered:_.jx,playbackRef:_.jx,lockupExperiments:_.jx}});_.sL(_.A8,"yt-badge-view-model",{props:{data:_.jx,class:_.jx,workaroundShortsIsThumbnailBadge:_.jx,modern:_.jx,numBadgesInRow:_.jx,clipTextOverflow:_.jx,inheritTypography:_.jx}});_.sL(XMk,"yt-slimline-survey-view-model",{props:{data:_.jx}});var DA=function(){var e=_.z.apply(this,arguments)||this;e.tileLottieAnimationRef={};e.backgroundLottieAnimationRef={};e.isOnHoverBehaviorForLottieEnabled=!0;e.useBiggerShowcaseImage=_.G("enable_desktop_search_bigger_thumbs");e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return e};
_.Y(DA,_.z);_.v=DA.prototype;_.v.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.v.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},tileImageViewModel:{id:"tile-image-view-model",mapping:{thumbnailViewModel:{component:"yt-thumbnail-view-model"}}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.v.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var e=this.hasStaticTile(this.data)||this.hasTileLottie(this.data)||this.hasThumbnailViewModel(this.data);e!==this.hasTile&&this.set("hasTile",e);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.set("tileImageViewModel",this.getCurrentTileImageViewModel(this.data,this.isDarkTheme));this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.v.hoveredChanged=function(){var e=this.thumbnail;e&&(e.hovered=this.hovered)};
_.v.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.v.currentColorChanged=function(){this.updateButtonPalette()};
_.v.computeBackgroundStyle=function(e){if(e&&this.data){var g=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=_.u3((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&g.push('background-image: url("'+c+'");')}var k;((k=e.basicColorData)==null?void 0:k.backgroundColor)!==void 0&&g.push("background-color: "+_.EY(e.basicColorData.backgroundColor)+";");return g.join("")}};
_.v.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&this.set("isDarkTheme",e)};
_.v.getCurrentLogo=function(e,g){if(e)return g?e.darkLogoImage:e.lightLogoImage};
_.v.getCurrentTileImageViewModel=function(e,g){if(e)return e.darkTileImageViewModel?g?e.darkTileImageViewModel:e.tileImageViewModel:e.tileImageViewModel};
_.v.getCurrentStaticTileImage=function(e,g){if(this.hasStaticTile(e))return e.darkTileImage?g?e.darkTileImage:e.tileImage:e.tileImage};
_.v.computeTitleStyle=function(e){if(this.data&&this.data.title&&e&&e.basicColorData&&e.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.R1(e.basicColorData.foregroundTitleColor)+";"};
_.v.computeSubtitleStyle=function(e){if(this.data&&this.data.subtitle&&e&&e.basicColorData&&e.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.R1(e.basicColorData.foregroundBodyColor)+";"};
_.v.computeSupplementalStyle=function(e){if(this.data&&this.data.supplementalText&&e&&e.supplementalTextColor!==void 0)return e=_.R1(e.supplementalTextColor),"color:"+e+";--yt-endpoint-color:"+e+";--yt-endpoint-hover-color:"+e+";--yt-endpoint-visited-color:"+e+";--yt-formatted-string-bold-font-weight:700;"};
_.v.computeDismissIconStyle=function(e){var g,c;if((e==null?0:(g=e.dismissButtonColorData)==null?0:g.foregroundTitleColor)&&(e==null?0:(c=e.dismissButtonColorData)==null?0:c.backgroundColor))return"--yt-button-color:"+_.EY(e.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.EY(e.dismissButtonColorData.backgroundColor)+";"};
_.v.computeOverflowIconStyle=function(e){var g,c;if((e==null?0:(g=e.dismissButtonColorData)==null?0:g.foregroundTitleColor)&&(e==null?0:(c=e.dismissButtonColorData)==null?0:c.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.EY(e.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.EY(e.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.EY(e.dismissButtonColorData.foregroundTitleColor)+";"};
_.v.computeBannerStyle=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.v.computeLocation=function(e){switch(e==null?void 0:e.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.v.shouldShowTileSection=function(e,g,c){return!this.shouldExpandLogo(e,g,c)&&g};
_.v.shouldShowExpandedLogoSection=function(e,g,c){return this.shouldExpandLogo(e,g,c)&&e!==void 0&&this.hasLogo(e)};
_.v.shouldExpandLogo=function(e,g,c){return e&&g?!1:c>=2};
_.v.hasStaticTile=function(e){return!(e==null||!e.tileImage)};
_.v.hasThumbnailViewModel=function(e){return!(e==null||!e.tileImageViewModel)};
_.v.hasTileLottie=function(e){var g;return!!(e==null?0:(g=e.tileLottie)==null?0:g.url)};
_.v.hasLogo=function(e){return this.getCurrentLogo(e,this.isDarkTheme)!==void 0};
_.v.getLogoHeight=function(e){return this.logoWithPadding(e)?"26":"20"};
_.v.getExpandedLogoHeight=function(e){return this.logoWithPadding(e)?"31":"24"};
_.v.getLogoImageId=function(e){return this.logoWithPadding(e)?"logo-image-with-padding":"logo-image"};
_.v.getMaxTitleFontSize=function(e){return e.overrideTitleMaxFontSize?String(e.overrideTitleMaxFontSize):"36"};
_.v.hasBackgroundLottie=function(e){var g;return!!(e==null?0:(g=e.backgroundLottie)==null?0:g.url)};
_.v.onMouseOver=function(){if(this.isOnHoverBehaviorForLottieEnabled){var e,g;(e=this.tileLottieAnimationRef)==null||(g=e.lottieEl)==null||g.play();var c,k;(c=this.backgroundLottieAnimationRef)==null||(k=c.lottieEl)==null||k.play()}this.hovered=!0};
_.v.onMouseLeave=function(){if(this.isOnHoverBehaviorForLottieEnabled){var e,g;(e=this.tileLottieAnimationRef)==null||(g=e.lottieEl)==null||g.pause();var c,k;(c=this.backgroundLottieAnimationRef)==null||(k=c.lottieEl)==null||k.pause()}this.hovered=!1};
_.v.pauseLottie=function(){var e,g;(e=this.tileLottieAnimationRef)==null||(g=e.lottieEl)==null||g.pause();var c,k;(c=this.backgroundLottieAnimationRef)==null||(k=c.lottieEl)==null||k.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.v.performPrimaryButtonAction=function(){var e,g,c;((e=this.data)==null?0:(g=e.primaryButton)==null?0:(c=g.buttonRenderer)==null?0:c.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.v.requestElementsPerRow=function(){_.oC(this.hostElement,"yt-request-elements-per-row")};
_.v.updateButtonPalette=function(){if(this.data&&this.currentColorData){var e;((e=this.data.dismissButton)==null?0:e.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 g;if((g=this.data.primaryButton)==null?0:g.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 c;if((c=this.data.secondaryButton)==
null?0:c.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 k;((k=this.data.primaryButton)==null?0:k.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var I;((I=this.data.primaryButton)==null?0:I.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var J;((J=this.data.secondaryButton)==null?0:J.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var q;((q=this.data.primaryButton)==null?0:q.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.v.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var e=this.getTileLottieDataBasedOnTheme(),g,c;if(e.url!==((g=this.tileLottiePlayerProps)==null?void 0:(c=g.animationConfig)==null?void 0:c.path)){var k,I;(k=this.tileLottieAnimationRef)==null||(I=k.lottieEl)==null||I.destroy();var J;this.isOnHoverBehaviorForLottieEnabled=!((J=e.settings)==null?0:J.autoplay);var q,L;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(L=(q=e.settings)==null?void 0:q.autoplay)!=null?L:!1,loop:this.getLottieLoopValue(e.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof e.url==="string"?this.tileLottiePlayerProps.animationConfig.path=e.url:this.tileLottiePlayerProps.animationConfig.animationData=e.url}}};
_.v.getOverflowButton=function(e){return _.x(e.overflowButton,H8Z)};
_.v.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var e=this.getBackgroundLottieDataBasedOnTheme(),g,c;if(e.url!==((g=this.backgroundLottiePlayerProps)==null?void 0:(c=g.animationConfig)==null?void 0:c.path)){var k,I;(k=this.backgroundLottieAnimationRef)==null||(I=k.lottieEl)==null||I.destroy();var J;this.isOnHoverBehaviorForLottieEnabled=!((J=e.settings)==null?0:J.autoplay);var q,L;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(L=(q=e.settings)==null?void 0:q.autoplay)!=null?L:!1,loop:this.getLottieLoopValue(e.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof e.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=e.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
e.url}}};
_.v.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var e;((e=this.tileLottieAnimationRef)==null?void 0:e.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var g;((g=this.backgroundLottieAnimationRef)==null?void 0:g.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.v.getTileLottieDataBasedOnTheme=function(){var e;if(this.isDarkTheme&&((e=this.data)==null?0:e.darkThemeTileLottie))return this.data.darkThemeTileLottie;var g;return((g=this.data)==null?0:g.tileLottie)?this.data.tileLottie:{}};
_.v.getBackgroundLottieDataBasedOnTheme=function(){var e;if(this.isDarkTheme&&((e=this.data)==null?0:e.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var g;return((g=this.data)==null?0:g.backgroundLottie)?this.data.backgroundLottie:{}};
_.v.onUpdateElementsPerRowAction=function(e){e&&this.elementsPerRow!==e&&(this.elementsPerRow=e)};
_.v.getLottieLoopValue=function(e){return e?e.loop!==void 0?e.loop:e.loopCount?e.loopCount-1:!0:!0};
_.v.logoWithPadding=function(e){var g,c,k;return(e=(g=this.getCurrentLogo(e,this.isDarkTheme))==null?void 0:(c=g.thumbnails)==null?void 0:(k=c[0])==null?void 0:k.height)&&e%31===0?!0:!1};
DA.prototype.currentColorChanged=DA.prototype.currentColorChanged;DA.prototype.themeChanged=DA.prototype.themeChanged;DA.prototype.hoveredChanged=DA.prototype.hoveredChanged;DA.prototype.dataChanged=DA.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],DA.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.hz),_.B("design:type",Object)],DA.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],DA.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],DA.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],DA.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],DA.prototype,"primaryButton",void 0);
_.t([_.u(),_.B("design:type",Object)],DA.prototype,"tileImageViewModel",void 0);_.t([_.u(),_.B("design:type",Object)],DA.prototype,"secondaryButton",void 0);_.t([_.u({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],DA.prototype,"elementsPerRow",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],DA.prototype,"isDarkTheme",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],DA.prototype,"hasTile",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],DA.prototype,"hasMetadata",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],DA.prototype,"showLogoImage",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],DA.prototype,"hovered",void 0);_.t([_.u(),_.B("design:type",Object)],DA.prototype,"currentColorData",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.B("design:type",String)],DA.prototype,"bannerStyle",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.B("design:type",String)],DA.prototype,"location",void 0);_.t([_.u(),_.B("design:type",Object)],DA.prototype,"tileLottiePlayerProps",void 0);_.t([_.u(),_.B("design:type",Object)],DA.prototype,"tileLottieAnimationRef",void 0);
_.t([_.u(),_.B("design:type",Object)],DA.prototype,"backgroundLottiePlayerProps",void 0);_.t([_.u(),_.B("design:type",Object)],DA.prototype,"backgroundLottieAnimationRef",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],DA.prototype,"useBiggerShowcaseImage",void 0);_.t([_.Cs("yt-thumbnail-view-model"),_.B("design:type",HTMLElement)],DA.prototype,"thumbnail",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],DA.prototype,"isHideEnclosingAction",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DA.prototype,"dataChanged",null);_.t([_.OY("hovered"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DA.prototype,"hoveredChanged",null);_.t([_.k_("isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DA.prototype,"themeChanged",null);
_.t([_.k_("currentColorData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DA.prototype,"currentColorChanged",null);_.t([_.bF({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],DA);
_.U(DA,"ytd-statement-banner-renderer",function(){if(S$M!==void 0)return S$M;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="onMouseLeave" on-mouseover="onMouseOver" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <div id="tile-image-view-model" hidden="[[!hasThumbnailViewModel(data)]]" class="style-scope ytd-statement-banner-renderer"></div>\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return S$M=e},{mode:1});var yIZ;var $J=function(){var e=_.z.apply(this,arguments)||this;e.isSearch=!1;e.hideShelfHeader=!1;e.engagementPanel=!1;e.disableMouseScroll=!0;e.useFloorScrolling=!0;return e};
_.Y($J,_.z);$J.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.C_("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.C_("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
$J.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$J.prototype.onDataChanged=$J.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$J.prototype,"isSearch",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$J.prototype,"hideShelfHeader",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$J.prototype,"engagementPanel",void 0);_.t([_.u(),_.B("design:type",Object)],$J.prototype,"disableMouseScroll",void 0);_.t([_.u(),_.B("design:type",Object)],$J.prototype,"useFloorScrolling",void 0);_.t([_.u(),_.B("design:type",Object)],$J.prototype,"data",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$J.prototype,"onDataChanged",null);
_.t([_.bF({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],$J);
_.U($J,"ytd-reel-shelf-renderer",function(){if(yIZ!==void 0)return yIZ;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return yIZ=e},{mode:_.ZF("kevlar_poly_si_batch_j028")?1:2});var KJs;var OGs;OGs=_.Ti(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.M1q=_.jw(OGs);var CMs=_.H(function(e){var g=e.data;e=e.useSmallFont;var c={},k={};return _.a("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.a(_.E,{cond:function(){return g().favicon},
then:function(I){return _.a(_.pv,{data:I,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.a("div",{class:"ytChannelExternalLinkViewModelContainer"},_.a(_.fa,{text:function(){return g().title},
className:_.o6("ytChannelExternalLinkViewModelTitle",(c.ytChannelExternalLinkViewModelTitleSmallFont=e,c)),ellipsisTruncate:!0,userInput:!0}),_.a(_.fa,{text:function(){return g().link},
className:_.o6("ytChannelExternalLinkViewModelLink",(k.ytChannelExternalLinkViewModelLinkSmallFont=e,k)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"kd");
CMs.idomCompat=!0;_.sL(CMs,"yt-channel-external-link-view-model",{props:{data:_.jx,useSmallFont:_.jx}});_.qH("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var YJ=function(){var e=_.z.apply(this,arguments)||this;e.revealButtonClass="button";e.businessEmailDisplayState="HIDE_SECTION";return e};
_.Y(YJ,_.z);_.v=YJ.prototype;_.v.refit=function(){var e=this;_.Y_(function(){_.V1(e.hostElement,"yt-refit-popups-action")});
_.Va(this,function(){_.V1(e.hostElement,"yt-refit-popups-action")})};
_.v.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.D5(_.M1q),this.businessEmailDisplayState="CAPTCHA")};
_.v.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.v.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.v.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.v.computeEmailHref=function(e){return"mailto:"+e};
_.v.computeSafeUrl=function(e){if(e)return _.Km(e)};
_.v.linkEndpoint=function(e){return _.x(e.onTap,_.EL)};
_.v.linkEndpointToHref=function(e){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(e))};
_.v.onYtServiceRequestCompleted=function(e){var g;if((g=e.detail.data)==null?0:g.businessEmail)this.businessEmail=e.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var c;if((c=e.detail.data)==null?0:c.errorMessage)this.businessEmailErrorMessage=e.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.v.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var e=this.JSC$16744_captchaTextarea.value;if(e){e={recaptcha_response_token:e,channel_id:this.metadata.channelId};var g=_.x(this.metadata.onBusinessEmailRevealClickCommand,_.EL);g&&this.ytComponentBehavior.resolveCommand(g,{form:e})}}};
_.v.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Bd.Object.defineProperties(YJ.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var e;return _.x((e=this.data)==null?void 0:e.metadata,zts)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.x(this.metadata.businessEmailRevealButton,_.$8)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var e=new URL(this.metadata.canonicalChannelUrl);return e.host+e.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 _.x(this.metadata.learnMoreOnTap,_.EL)}}});
YJ.prototype.onYtServiceRequestCompleted=YJ.prototype.onYtServiceRequestCompleted;YJ.prototype.businessEmailMetadataChanged=YJ.prototype.businessEmailMetadataChanged;YJ.prototype.refit=YJ.prototype.refit;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],YJ.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Cs("#g-recaptcha-response"),_.B("design:type",HTMLTextAreaElement)],YJ.prototype,"JSC$16744_captchaTextarea",void 0);_.t([_.u(),_.B("design:type",Object)],YJ.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],YJ.prototype,"revealButtonClass",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],YJ.prototype,"metadata",null);
_.t([_.p("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],YJ.prototype,"revealButton",null);_.t([_.p("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],YJ.prototype,"channelDisplayUrl",null);_.t([_.k_("metadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YJ.prototype,"refit",null);_.t([_.p("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],YJ.prototype,"formattedDescription",null);
_.t([_.p("metadata","learnMoreCommand"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],YJ.prototype,"shouldRendereVerifiedPhoneStatus",null);_.t([_.p("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],YJ.prototype,"learnMoreCommand",null);_.t([_.u(),_.B("design:type",String)],YJ.prototype,"businessEmailDisplayState",void 0);_.t([_.u(),_.B("design:type",String)],YJ.prototype,"businessEmail",void 0);
_.t([_.u(),_.B("design:type",String)],YJ.prototype,"businessEmailErrorMessage",void 0);_.t([_.k_("metadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YJ.prototype,"businessEmailMetadataChanged",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],YJ.prototype,"onYtServiceRequestCompleted",null);
_.t([_.bF({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],YJ);
_.U(YJ,"ytd-about-channel-renderer",function(){if(KJs!==void 0)return KJs;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank" aria-label$="[[metadata.learnMoreA11yLabel]]">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return KJs=e},{mode:1});var ei1;var fW=function(){return _.z.apply(this,arguments)||this};
_.Y(fW,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fW.prototype,"data",void 0);_.t([_.bF({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],fW);
_.U(fW,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(ei1!==void 0)return ei1;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ei1=e},{mode:1});var g6u;var jf=function(){return _.z.apply(this,arguments)||this};
_.Y(jf,_.z);jf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],jf.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],jf.prototype,"aligment",void 0);_.t([_.bF({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],jf);
_.U(jf,"ytd-channel-list-sub-menu-renderer",function(){if(g6u!==void 0)return g6u;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return g6u=
e},{mode:1});var cNq;var iC=function(){return _.z.apply(this,arguments)||this};
_.Y(iC,_.z);iC.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],iC.prototype,"data",void 0);_.t([_.bF({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],iC);
_.U(iC,"ytd-channel-sub-menu-renderer",function(){if(cNq!==void 0)return cNq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return cNq=e},{mode:1});var kwv;var Inn;var PX=function(){var e=_.z.apply(this,arguments)||this;e.isCompact=!1;return e};
_.Y(PX,_.z);_.Bd.Object.defineProperties(PX.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var e,g;return((g=_.x((e=this.data)==null?void 0:e.endpoint,_.uf))==null?void 0:g.target)==="TARGET_NEW_WINDOW"}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],PX.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],PX.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],PX.prototype,"isCompact",void 0);_.t([_.p("isCompact"),_.B("design:type",Number),_.B("design:paramtypes",[])],PX.prototype,"thumbnailWidth",null);
_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PX.prototype,"openNewWindow",null);_.t([_.bF({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],PX);
_.U(PX,"ytd-media-lockup-renderer",function(){if(Inn!==void 0)return Inn;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Inn=e},{mode:1});var JNs;var m2=function(){return _.z.apply(this,arguments)||this};
_.Y(m2,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],m2.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],m2.prototype,"data",void 0);_.t([_.bF({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],m2);
_.U(m2,"ytd-structured-description-channel-lockup-renderer",function(){if(JNs!==void 0)return JNs;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return JNs=e},{mode:1});var v6B;var pW=function(){var e=_.z.apply(this,arguments)||this;e.isCompact=!1;e.collectionsStackColor=_.G("modernize_structured_description_playlist_lockups_v2");return e};
_.Y(pW,_.z);pW.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:_.G("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Bd.Object.defineProperties(pW.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k,I,J;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(e=this.data)==null?void 0:(g=e.thumbnail)==null?void 0:g.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(c=this.data)==null?void 0:(k=c.thumbnail)==null?void 0:k.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(I=this.data)==null?void 0:(J=I.thumbnail)==null?
void 0:J.vibrantColorPalette:void 0}}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],pW.prototype,"componentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],pW.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],pW.prototype,"showSidePanelThumbnailOverlay",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],pW.prototype,"isCompact",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],pW.prototype,"collectionsStackColor",void 0);_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pW.prototype,"twoLineTitle",null);_.t([_.p("data","collectionsStackColor"),_.B("design:type",Object),_.B("design:paramtypes",[])],pW.prototype,"collectionStack",null);
_.t([_.bF({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],pW);
_.U(pW,"ytd-structured-description-playlist-lockup-renderer",function(){if(v6B!==void 0)return v6B;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return v6B=e},{mode:1});var wBs;var T8=function(){return _.z.apply(this,arguments)||this};
_.Y(T8,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],T8.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],T8.prototype,"data",void 0);_.t([_.bF({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],T8);
_.U(T8,"ytd-structured-description-video-lockup-renderer",function(){if(wBs!==void 0)return wBs;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return wBs=e},{mode:2});var lC=function(){return _.z.apply(this,arguments)||this};
_.Y(lC,_.z);
lC.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],lC.prototype,"data",void 0);_.t([_.bF({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],lC);
_.U(lC,"ytd-compact-infocard-renderer",function(){if(kwv!==void 0)return kwv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return kwv=e},{mode:1});var q6s;var AG=function(){return _.z.apply(this,arguments)||this};
_.Y(AG,_.z);AG.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Bd.Object.defineProperties(AG.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.G("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.G("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.G("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],AG.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],AG.prototype,"ytdReduxBehavior",void 0);_.t([_.u({selector:_.E1}),_.B("design:type",Object)],AG.prototype,"isGridViewEnabled",void 0);
_.t([_.p("isGridViewEnabled"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],AG.prototype,"watchFeedBigThumbs",null);_.t([_.p("isGridViewEnabled","data"),_.u({reflectToAttribute:!0,value:"168"}),_.B("design:type",String),_.B("design:paramtypes",[])],AG.prototype,"thumbnailWidth",null);_.t([_.p("isGridViewEnabled","data"),_.u({reflectToAttribute:!0,value:"94"}),_.B("design:type",String),_.B("design:paramtypes",[])],AG.prototype,"customThumbnailSize",null);
_.t([_.u(),_.B("design:type",Object)],AG.prototype,"data",void 0);_.t([_.bF({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],AG);
_.U(AG,"ytd-compact-playlist-renderer",function(){if(q6s!==void 0)return q6s;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return q6s=e},{mode:1});var LSw;var sK=function(){var e=_.z.apply(this,arguments)||this;e.roundedContainer=!0;e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return e};
_.Y(sK,_.z);_.v=sK.prototype;_.v.attached=function(){this.requestElementsPerRow()};
_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.v.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.v.computeViewStyle=function(e){return e.style?e.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.v.onUpdateElementsPerRowAction=function(e){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&e===1};
_.v.requestElementsPerRow=function(){_.oC(this.hostElement,"yt-request-elements-per-row")};
sK.prototype.dataChanged=sK.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],sK.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],sK.prototype,"actionHandlerBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],sK.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],sK.prototype,"hideThumbnail",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.B("design:type",String)],sK.prototype,"viewStyle",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],sK.prototype,"roundedContainer",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sK.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],sK);
_.U(sK,"ytd-compact-promoted-item-renderer",function(){if(LSw!==void 0)return LSw;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return LSw=e},{mode:1});var rNs;var F8=function(){return _.z.apply(this,arguments)||this};
_.Y(F8,_.z);F8.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
F8.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
F8.prototype.onYtNavigate=function(e,g){var c=this;if(g.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",g)){var k=this.get("watchEndpoint.videoId",g.endpoint),I=_.V1(this.hostElement,"yt-get-current-video-id-action")[0];_.G("kevlar_mix_handle_first_endpoint_different")&&k&&I&&k!==I||(e.stopPropagation(),_.u6().getPlayerPromise().then(function(J){if(J.getPlayerState()===0&&c.data.secondaryNavigationEndpoint)var q=c.data.secondaryNavigationEndpoint;else{q=
Object.assign({},g.endpoint);var L=_.x(q.commandMetadata,_.OM);L&&(J=Math.floor(J.getCurrentTime()),L.url=_.MO(L.url,{t:J}),!_.G("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(L=_.x(q,_.Pm)))&&(L.startTimeSeconds=J)}_.oC(c.hostElement,"yt-navigate",{endpoint:q})}))}};
_.Bd.Object.defineProperties(F8.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.G("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.G("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k,I,J;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(e=this.data)==null?void 0:(g=e.thumbnail)==null?void 0:g.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(k=c.thumbnail)==null?void 0:k.vibrantColorPalette,darkColorPalette:(I=this.data)==null?void 0:(J=I.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:!0}}}});
F8.prototype.onYtNavigate=F8.prototype.onYtNavigate;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.B$.YtEndpointBehavior),_.B("design:type",Object)],F8.prototype,"ytEndpointBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],F8.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.m(_.f3),_.B("design:type",Object)],F8.prototype,"ytdLockupBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],F8.prototype,"ytdReduxBehavior",void 0);_.t([_.u({selector:_.E1}),_.B("design:type",Object)],F8.prototype,"isGridViewEnabled",void 0);_.t([_.p("isGridViewEnabled"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],F8.prototype,"watchFeedBigThumbs",null);
_.t([_.p("isGridViewEnabled"),_.u({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],F8.prototype,"thumbnailWidth",null);_.t([_.u(),_.B("design:type",Object)],F8.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],F8.prototype,"collectionStack",null);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],F8.prototype,"onYtNavigate",null);
_.t([_.bF({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],F8);
_.U(F8,"ytd-compact-radio-renderer",function(){if(rNs!==void 0)return rNs;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return rNs=e},{mode:1});var anq;var uC=function(){return _.z.apply(this,arguments)||this};
_.Y(uC,_.z);uC.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
uC.prototype.computeRendererStyle=function(e){return e.style?e.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.t([_.u(),_.B("design:type",Object)],uC.prototype,"data",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],uC.prototype,"rendererBehavior",void 0);_.t([_.u({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],uC.prototype,"rendererStyle",void 0);_.t([_.bF({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],uC);
_.U(uC,"ytd-compact-text-promo-renderer",function(){if(anq!==void 0)return anq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return anq=e},{mode:1});var n6M;var dX=function(){var e=_.z.apply(this,arguments)||this;e.isShortsStyle=!1;return e};
_.Y(dX,_.z);_.v=dX.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.v.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.oC(this.hostElement,"yt-disable-lockup-interaction"):_.oC(this.hostElement,"yt-enable-lockup-interaction"))};
_.v.isMetaBlockEmpty=function(e){return!e||!e.longBylineText&&!e.shortBylineText&&!e.shortViewCountText&&!e.viewCountText};
_.v.computeHasOneLineTitle=function(e){return this.forceOneLineTitle||!(e==null||!e.buttons)};
_.v.computeDisableInteraction=function(){var e;return!((e=this.data)==null?0:e.navigationEndpoint)};
_.v.hasSingularTopStandaloneBadge=function(){var e;return!((e=this.data)==null||!e.topStandaloneBadge)};
_.Bd.Object.defineProperties(dX.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.G("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.G("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 e;return this.hasSingularTopStandaloneBadge()?[(e=this.data)==null?void 0:e.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var e;return this.shouldShowTopBadges?((e=this.data)==null?void 0:e.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
dX.prototype.disableInteractionChanged=dX.prototype.disableInteractionChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],dX.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],dX.prototype,"ytdLockupBehavior",void 0);
_.t([_.m(_.Wv),_.B("design:type",Object)],dX.prototype,"ytdReduxBehavior",void 0);_.t([_.u({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.B("design:type",Boolean)],dX.prototype,"metaBlockEmpty",void 0);_.t([_.u({selector:_.E1}),_.B("design:type",Object)],dX.prototype,"isGridViewEnabled",void 0);_.t([_.p("isGridViewEnabled"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dX.prototype,"watchFeedBigThumbs",null);
_.t([_.p("isGridViewEnabled"),_.u({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],dX.prototype,"thumbnailWidth",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],dX.prototype,"isShortsStyle",void 0);_.t([_.u(),_.B("design:type",Object)],dX.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.B("design:type",Boolean)],dX.prototype,"hasOneLineTitle",void 0);
_.t([_.u(),_.B("design:type",Boolean)],dX.prototype,"hideThumbnail",void 0);_.t([_.u(),_.B("design:type",Boolean)],dX.prototype,"forceOneLineTitle",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.B("design:type",Boolean)],dX.prototype,"disableInteraction",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],dX.prototype,"musicMetadataVideoLockup",void 0);
_.t([_.OY("disableInteraction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dX.prototype,"disableInteractionChanged",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dX.prototype,"shouldShowTopBadges",null);_.t([_.p("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],dX.prototype,"topBadges",null);
_.t([_.p("shouldShowTopBadges","data"),_.B("design:type",Array),_.B("design:paramtypes",[])],dX.prototype,"inlineMetadataBadges",null);_.t([_.p("shouldShowTopBadges"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dX.prototype,"shouldShowBadgesBelowMetadata",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],dX.prototype,"compactTitleClass",null);_.t([_.bF({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],dX);
_.U(dX,"ytd-compact-video-renderer",function(){if(n6M!==void 0)return n6M;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return n6M=e},{mode:2});var Riu;_.qH("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var z8=function(){return _.z.apply(this,arguments)||this};
_.Y(z8,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],z8.prototype,"data",void 0);_.t([_.bF({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],z8);
_.U(z8,"ytd-counterfactual-renderer",function(){if(Riu!==void 0)return Riu;var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Riu=e},{mode:1});var E6k;var HX=function(){var e=_.z.apply(this,arguments)||this;e.hidden=!1;return e};
_.Y(HX,_.z);HX.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.Ss().resolve(_.xk).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
HX.prototype.computeHidden=function(e){return!!e};
_.Bd.Object.defineProperties(HX.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],HX.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.B("design:type",Object)],HX.prototype,"hidden",void 0);_.t([_.p("data.label"),_.B("design:type",String),_.B("design:paramtypes",[])],HX.prototype,"label",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],HX.prototype,"value",null);
_.t([_.bF({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],HX);
_.U(HX,"ytd-dropdown-item-renderer",function(){if(E6k!==void 0)return E6k;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return E6k=e},{mode:1});var WSn;var bF4;var Qn=function(){return _.z.apply(this,arguments)||this};
_.Y(Qn,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Qn.prototype,"data",void 0);_.t([_.u({computed:"getSimpleString(data.label)"}),_.B("design:type",String)],Qn.prototype,"label",void 0);_.t([_.bF({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Qn);
_.U(Qn,"ytd-navigation-dropdown-item-renderer",function(){if(bF4!==void 0)return bF4;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return bF4=e},{mode:1});var UK=function(){var e=_.z.apply(this,arguments)||this;e.disabled=!1;e.value="";e.noLabelFloat=!1;e.noUnderline=!1;e.usePrimaryColor=!1;e.hasBackground=!1;e.verticalAlign="top";e.autosize=!1;e.minAutosizeWidth=100;e.autosizeFont="14px Roboto";return e};
_.Y(UK,_.z);_.v=UK.prototype;_.v.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.v.open=function(){this.inputEl.open()};
_.v.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.v.dataChanged=function(){this.reset()};
_.v.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("value-changed",this.value))};
_.v.stopPropagation=function(e){e.stopPropagation()};
_.v.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var e=this.canvas.getContext("2d");e&&(e.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(e.measureText(this.inputEl.value).width)+24)+"px")}};
_.v.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var e=0,g=this.data.entries.length;e<g;e++){var c=this.data.entries[e],k;for(k in c)if(c.hasOwnProperty(k)){var I=c[k];if("isSelected"in I&&I.isSelected)return"stringValue"in I?I.stringValue||"":"int32Value"in I?I.int32Value||0:0}}return null};
_.v.updateValueFromBinding=function(e){this.value=e.detail.value};
_.Bd.Object.defineProperties(UK.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 e=0,g=this.data.entries.length;e<g;e++){var c=this.data.entries[e],k;for(k in c)if(c.hasOwnProperty(k)){var I=c[k];if("isSelected"in I&&I.isSelected&&"label"in I)return this.ytRendererBehavior.getSimpleString(I.label)}}return null}}});
UK.prototype.autoSizeLabel=UK.prototype.autoSizeLabel;UK.prototype.stopPropagation=UK.prototype.stopPropagation;UK.prototype.valueChangedForBinding=UK.prototype.valueChangedForBinding;UK.prototype.dataChanged=UK.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],UK.prototype,"ytRendererStamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],UK.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],UK.prototype,"disabled",void 0);_.t([_.u(),_.B("design:type",Object)],UK.prototype,"value",void 0);_.t([_.u(),_.B("design:type",Object)],UK.prototype,"noLabelFloat",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],UK.prototype,"noUnderline",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],UK.prototype,"theme",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],UK.prototype,"usePrimaryColor",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],UK.prototype,"hasBackground",void 0);_.t([_.u(),_.B("design:type",Object)],UK.prototype,"verticalAlign",void 0);_.t([_.u(),_.B("design:type",Object)],UK.prototype,"autosize",void 0);_.t([_.u(),_.B("design:type",Object)],UK.prototype,"minAutosizeWidth",void 0);_.t([_.u(),_.B("design:type",Object)],UK.prototype,"autosizeFont",void 0);
_.t([_.Cs("#entries"),_.B("design:type",Object)],UK.prototype,"entries",void 0);_.t([_.Cs("#input"),_.B("design:type",Object)],UK.prototype,"inputEl",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UK.prototype,"dataChanged",null);_.t([_.k_("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UK.prototype,"valueChangedForBinding",null);
_.t([_.Ks("iron-overlay-opened"),_.Ks("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],UK.prototype,"stopPropagation",null);_.t([_.Ks("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UK.prototype,"autoSizeLabel",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],UK.prototype,"label",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],UK);
_.U(UK,"ytd-dropdown-renderer",function(){if(WSn!==void 0)return WSn;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return WSn=e},{mode:1});var hiZ;var oE=function(){var e=_.z.apply(this,arguments)||this;e.isConstrainedList=!1;return e};
_.Y(oE,_.z);oE.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"}}}};
oE.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
oE.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
oE.prototype.computeViewAllHidden=function(e,g){return e||!g.viewAllEndpoint};
oE.prototype.fillRestIfNoShowMore=oE.prototype.fillRestIfNoShowMore;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],oE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.uU.YtLazyListBehavior),_.B("design:type",Object)],oE.prototype,"ytLazyListBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],oE.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],oE.prototype,"isConstrainedList",void 0);_.t([_.k_("data","canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oE.prototype,"fillRestIfNoShowMore",null);_.t([_.bF({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],oE);
_.U(oE,"ytd-expanded-shelf-contents-renderer",function(){if(hiZ!==void 0)return hiZ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return hiZ=e},{mode:2});var XBv;var ZA=function(){return _.z.apply(this,arguments)||this};
_.Y(ZA,_.z);ZA.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ZA.prototype,"data",void 0);_.t([_.bF({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],ZA);
_.U(ZA,"ytd-feed-channel-filter-header-renderer",function(){if(XBv!==void 0)return XBv;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return XBv=e},{mode:1});var Gwu;var xSu;var DSq;var Vn=function(){return _.z.apply(this,arguments)||this};
_.Y(Vn,_.z);_.v=Vn.prototype;_.v.onClick=function(e){var g,c=(g=this.data)==null?void 0:g.sectionEndpoint;!_.TJ(_.lg(e),this.hostElement,["A".toString()])&&c&&_.oC(this.hostElement,"yt-navigate",{endpoint:c})};
_.v.computeHasSectionEndpoint=function(e){return(e==null?void 0:e.sectionEndpoint)!==void 0};
_.v.computeShowHeaderAsLink=function(e){return(e==null?void 0:e.header)!==void 0&&(e==null?void 0:e.sectionEndpoint)!==void 0};
_.v.computeShowSubheaderAsLink=function(e){return(e==null?void 0:e.subheader)!==void 0&&(e==null?void 0:e.sectionEndpoint)!==void 0&&(e==null?void 0:e.header)===void 0};
_.v.getHeaderAsLinkClass=function(e){var g=[],c;(e==null?0:(c=e.headerIcon)==null?0:c.iconType)&&g.push("header-link-active");return g.join(" ")};
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Vn.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Vn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Vn.prototype,"data",void 0);
_.t([_.u({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Vn.prototype,"hasSectionEndpoint",void 0);_.t([_.u({computed:"computeShowHeaderAsLink(data)"}),_.B("design:type",Boolean)],Vn.prototype,"showHeaderAsLink",void 0);_.t([_.u({computed:"computeShowSubheaderAsLink(data)"}),_.B("design:type",Boolean)],Vn.prototype,"showSubheaderAsLink",void 0);_.t([_.bF({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Vn);
_.U(Vn,"ytd-medical-panel-section-renderer",function(){if(DSq!==void 0)return DSq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return DSq=e},{mode:1});var tG=function(){var e=_.z.apply(this,arguments)||this;e.isExpanded=!1;e.roundedContainer=!0;e.skipRoundingTop=!1;e.toggleExpandableSection=function(){e.isExpanded=!e.isExpanded};
return e};
_.Y(tG,_.z);
tG.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]]"}}}}}};
tG.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
tG.prototype.dataChanged=tG.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],tG.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],tG.prototype,"isExpanded",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],tG.prototype,"roundedContainer",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],tG.prototype,"skipRoundingTop",void 0);_.t([_.u(),_.B("design:type",Object)],tG.prototype,"toggleExpandableSection",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tG.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],tG);
_.U(tG,"ytd-medical-panel-content-renderer",function(){if(xSu!==void 0)return xSu;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return xSu=e},{mode:1});_.qH("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var BX=function(){var e=_.z.apply(this,arguments)||this;e.roundedContainer=!0;e.extractOverlay=!1;e.amsterdamEnabled=_.G("enable_desktop_amsterdam_info_panels");e.hasTitle=!1;e.linkIcon="OPEN_IN_NEW";e.isDismissed=!1;return e};
_.Y(BX,_.z);BX.prototype.onOverlayConditionsChange=function(){var e=_.o1(this.hostElement).querySelector("ytd-info-panel-content-renderer");e&&(e.set("extractOverlay",this.extractOverlay),e.set("roundedContainer",this.roundedContainer))};
BX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
BX.prototype.computeHasTitle=function(e){return!(e==null||!e.title)};
BX.prototype.onClick=function(e){var g,c=(g=this.data)==null?void 0:g.headerEndpoint;!_.TJ(_.lg(e),this.hostElement,["BUTTON".toString()])&&c&&this.ytComponentBehavior.resolveCommand(c)};
_.Bd.Object.defineProperties(BX.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 e;return((e=this.data)==null?void 0:e.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:e.disableBottomDivider)||!((g=this.data)==null?0:g.title)}}});
BX.prototype.onOverlayConditionsChange=BX.prototype.onOverlayConditionsChange;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],BX.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],BX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],BX.prototype,"ytdReduxBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],BX.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],BX.prototype,"roundedContainer",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],BX.prototype,"extractOverlay",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],BX.prototype,"amsterdamEnabled",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.B("design:type",Object)],BX.prototype,"hasTitle",void 0);
_.t([_.u({type:_.G("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.p("data.background"),_.B("design:type",Object),_.B("design:paramtypes",[])],BX.prototype,"background",null);_.t([_.u({type:_.G("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.p("data.titleStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],BX.prototype,"titleStyle",null);
_.t([_.u({type:_.G("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.p("data.titleStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],BX.prototype,"showLinkIcon",null);_.t([_.u(),_.B("design:type",String)],BX.prototype,"linkIcon",void 0);_.t([_.u({type:_.G("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],BX.prototype,"hideDivider",null);
_.t([_.u({selectorArgs:["data.dismissStateEntityKey"],selector:function(e,g){e=_.Nc(e.entities,"dismissState",g);return(e==null?void 0:e.isDismissed)||(e==null?void 0:e.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(e==null?void 0:e.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.B("design:type",Object)],BX.prototype,"isDismissed",void 0);_.t([_.OY("roundedContainer","extractOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BX.prototype,"onOverlayConditionsChange",null);_.t([_.bF({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],BX);
_.U(BX,"ytd-info-panel-container-renderer",function(){if(Gwu!==void 0)return Gwu;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Gwu=e},{mode:1});var $Sn;_.qH("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var Nm=function(){return _.z.apply(this,arguments)||this};
_.Y(Nm,_.z);Nm.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Nm.prototype.computeStyle=function(e){return e?e:""};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Nm.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Nm.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.B("design:type",String)],Nm.prototype,"titleStyle",void 0);
_.t([_.bF({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Nm);
_.oI()(Nm,"ytd-item-section-header-renderer",function(){if($Sn===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);$Sn=e}e=$Sn;return e},{allowedProps:["data"],
mode:1});var Y6I;var fn4,jN4=function(){return fn4!==void 0?fn4:fn4=document.createElement("template")};
document.head.appendChild(jN4().content);var iFu;_.Sf=new _.AU("VOTING_ANIMATION_CONTROLLER_TOKEN");var mSq=_.H(function(e){var g=e.data;var c=_.io("div"),k=_.io("div");e=_.w(_.Wa("VOTE_STATUS_NONE",void 0,"YPH5mf"));var I=e.next().value,J=e.next().value,q=_.O1(dIW,function(){var h;return(h=g())==null?void 0:h.entityKey}),L=_.G("web_enable_voting_animation")||_.G("enable_music_web_cairo_voting_animation");
_.lo(function(){var h;((h=g().initialState)==null?0:h.status)&&J(g().initialState.status)});
var n=function(){var h,X,D=(X=(h=g().initialState)==null?void 0:h.votes)!=null?X:0,f;h=(f=g().initialState)==null?void 0:f.status;return h==="VOTE_STATUS_UPVOTED"?D-1:h==="VOTE_STATUS_DOWNVOTED"?D+1:D},R=function(){return I()==="VOTE_STATUS_UPVOTED"?n()+1:I()==="VOTE_STATUS_DOWNVOTED"?n()-1:n()},W=function(h){var X=h?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
J(X);var D=R(),f=_.Ss().resolve(_.NN(_.Sf)),l=q();l&&(h&&(l==null?0:l.upvoteDefaultButtonOnTap)?_.GF(l.upvoteDefaultButtonOnTap,{form:{element:c.value},disableClickTracking:!0}):(l==null?0:l.upvoteToggledButtonOnTap)&&_.GF(l.upvoteToggledButtonOnTap,{form:{element:c.value},disableClickTracking:!0}));var A;h=(A=l==null?void 0:l.enableOptimisticReordering)!=null?A:g().enableOptimisticReordering;L&&f&&g().itemId&&h&&Piw(f,g().itemId,D,X)},b=function(h){var X=h?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
J(X);var D=R(),f=_.Ss().resolve(_.NN(_.Sf)),l=q();l&&(h&&(l==null?0:l.downvoteDefaultButtonOnTap)?_.GF(l.downvoteDefaultButtonOnTap,{form:{element:k.value},disableClickTracking:!0}):(l==null?0:l.downvoteToggledButtonOnTap)&&_.GF(l.downvoteToggledButtonOnTap,{form:{element:k.value},disableClickTracking:!0}));var A;h=(A=l==null?void 0:l.enableOptimisticReordering)!=null?A:g().enableOptimisticReordering;L&&f&&g().itemId&&h&&Piw(f,g().itemId,D,X)};
e={};e=_.o6("ytVotingViewModelVoteCount",(e.ytVotingViewModelVoteCountDisabled=function(){return g().isDisabled},e));
return _.a("voting-view-model",{class:"ytVotingViewModelHost"},_.a("div",{el:c},_.a(_.eS,{data:function(){var h=_.x(g().upvoteButton,_.fP);return{toggleButtonViewModel:Object.assign({},h,{isToggled:I()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(h){return _.a(_.vF,{data:h.data,
onToggle:W})}})),_.a("div",{class:e},function(){var h,X,D;
return I()==="VOTE_STATUS_UPVOTED"?(h=g().initialState)==null?void 0:h.compactVotesUpvoted:I()==="VOTE_STATUS_DOWNVOTED"?(X=g().initialState)==null?void 0:X.compactVotesDownvoted:(D=g().initialState)==null?void 0:D.compactVotes}),_.a("div",{el:k},_.a(_.eS,{data:function(){var h=_.x(g().downvoteButton,_.fP);
return{toggleButtonViewModel:Object.assign({},h,{isToggled:I()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(h){return _.a(_.vF,{data:h.data,
onToggle:b})}})))},"ld");_.sL(_.H(function(e){var g=e.data;return _.a("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.a("div",{class:_.o6("ytEngagementBarViewModelEngagementBarWrapper",e.className)},_.a(_.eS,{data:function(){return g().actions}},{votingViewModel:mSq})))},"md"),"engagement-bar-view-model",{props:{data:_.jx,
className:_.jx}});var yn=function(){var e=_.z.apply(this,arguments)||this;e.playlistVotingAnimationEnabled=_.G("web_enable_voting_animation");e.downloadProgress=0;e.transferState="TRANSFER_STATE_UNKNOWN";e.downloadState="DOWNLOAD_STATE_UNKNOWN";e.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";e.offlineVideoPolicyExpirationTimestamp=0;return e};
_.Y(yn,_.z);_.v=yn.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.v.canReorderChanged=function(){this.persistentDragHandle=_.G("kevlar_playlist_drag_handles")&&this.canReorder};
_.v.onDrag=function(){if(this.thumbnail){var e=_.o1(this.thumbnail).querySelector("yt-image");e&&(e.shouldRenderLazy=!1)}};
_.v.onMenuOverlayChanged=function(e,g){this.menuOpened=g};
_.v.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.v.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.v.onContentsTap=function(e){var g,c=(g=this.data)==null?void 0:g.serviceEndpoints;if(c&&c.length===1&&_.x(c[0],U3C)&&!_.TJ(_.lg(e),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(c[0]);else{var k;(g=(k=this.data)==null?void 0:k.navigationEndpoint)&&_.G("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?pBs(_.Ss().resolve(_.xt),g):(_.eM().playlistSuggestionsShelfActivation=
!0,_.TIM(_.Ss().resolve(_.xt),g)):g&&!_.TJ(_.lg(e),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.G("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.oC(this.hostElement,"yt-navigate",{endpoint:g}):this.ytComponentBehavior.resolveCommand(g))}};
_.v.computeStyle=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.v.computeThumbnailWidth=function(e){return e==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.v.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=IfK(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.v.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.v.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.v.dataChanged=function(){if(this.data){var e,g,c,k=((e=this.downloadRenderData)==null?void 0:e.badges)&&((g=this.downloadRenderData)==null?void 0:g.badges)!==((c=this.data)==null?void 0:c.badges),I,J,q;e=((I=this.downloadRenderData)==null?void 0:I.thumbnailOverlays)&&((J=this.downloadRenderData)==null?void 0:J.thumbnailOverlays)!==((q=this.data)==null?void 0:q.thumbnailOverlays);(!this.downloadRenderData||k||e)&&this.downloadStateChanged()}};
_.v.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var e,g,c=(e=this.data.menu)==null?void 0:(g=e.menuRenderer)==null?void 0:g.items;if(c)for(e=_.w(c),g=e.next();!g.done;g=e.next())if(g=g.value,c=void 0,_.x((c=g.menuServiceItemRenderer)==null?void 0:c.serviceEndpoint,_.bp)){var k=c=void 0,I=void 0;g=(c=g)==null?void 0:(k=c.menuServiceItemRenderer)==null?void 0:(I=k.serviceEndpoint)==null?void 0:I.playlistEditEndpoint;I=k=void 0;if(c=(k=g)==null?void 0:(I=k.actions)==null?void 0:
I[0])k=void 0,c.setVideoId=(k=this.data)==null?void 0:k.setVideoId;I=k=c=void 0;if(g=(c=g)==null?void 0:(k=c.clientActions)==null?void 0:(I=k[0])==null?void 0:I.playlistRemoveVideosAction)c=void 0,g.setVideoIds=[(c=this.data)==null?void 0:c.setVideoId]}}};
_.Bd.Object.defineProperties(yn.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
yn.prototype.setVideoIdChanged=yn.prototype.setVideoIdChanged;yn.prototype.dataChanged=yn.prototype.dataChanged;yn.prototype.downloadStateChanged=yn.prototype.downloadStateChanged;yn.prototype.onMenuOverlayChanged=yn.prototype.onMenuOverlayChanged;yn.prototype.canReorderChanged=yn.prototype.canReorderChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],yn.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],yn.prototype,"ytdReduxBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],yn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],yn.prototype,"ytdLockupBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],yn.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],yn.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],yn.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],yn.prototype,"canReorder",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],yn.prototype,"menuOpened",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],yn.prototype,"handleIsHovered",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],yn.prototype,"persistentDragHandle",void 0);_.t([_.u(),_.B("design:type",Object)],yn.prototype,"downloadRenderData",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],yn.prototype,"styleType",void 0);_.t([_.u({computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],yn.prototype,"thumbnailWidth",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],yn.prototype,"isDownloads",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],yn.prototype,"playlistVotingAnimationEnabled",void 0);
_.t([_.u({selector:Gt,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],yn.prototype,"downloadProgress",void 0);_.t([_.u(),_.B("design:type",Number)],yn.prototype,"relativeDateReference",void 0);_.t([_.u({selector:_.hw,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],yn.prototype,"transferState",void 0);_.t([_.u({selector:K5K,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],yn.prototype,"downloadState",void 0);
_.t([_.u({selector:F5q,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],yn.prototype,"offlinePolicyAction",void 0);_.t([_.u({selector:ukg,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],yn.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.t([_.u({selector:zbV,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],yn.prototype,"entityInfo",void 0);_.t([_.u({selector:_.Eo}),_.B("design:type",Boolean)],yn.prototype,"miniplayerIsActive",void 0);
_.t([_.p("data"),_.B("design:type",String),_.B("design:paramtypes",[])],yn.prototype,"playlistVideoId",null);_.t([_.Cs("#thumbnail"),_.B("design:type",Object)],yn.prototype,"thumbnail",void 0);_.t([_.k_("canReorder"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yn.prototype,"canReorderChanged",null);
_.t([_.Ks("yt-menu-overlay-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Boolean]),_.B("design:returntype")],yn.prototype,"onMenuOverlayChanged",null);_.t([_.k_("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yn.prototype,"downloadStateChanged",null);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yn.prototype,"dataChanged",null);_.t([_.k_("data.setVideoId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yn.prototype,"setVideoIdChanged",null);_.t([_.bF({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],yn);
_.U(yn,"ytd-playlist-video-renderer",function(){if(iFu!==void 0)return iFu;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);e.content.insertBefore(jN4().content.cloneNode(!0),e.content.firstChild);return iFu=e},{mode:1});var ln1;var KW=function(){return _.z.apply(this,arguments)||this};
_.Y(KW,_.z);_.t([_.u(),_.B("design:type",Object)],KW.prototype,"data",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],KW.prototype,"rendererBehavior",void 0);_.t([_.bF({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],KW);
_.U(KW,"ytd-premium-browse-footer-renderer",function(){if(ln1!==void 0)return ln1;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ln1=e},{mode:1});var ANn;var OK=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return e};
_.Y(OK,_.z);_.v=OK.prototype;_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.handleDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.v.computeHeaderLogoThumbnail=function(e,g){if(e)return g?e.darkLogo:e.lightLogo};
_.v.computeHeaderLogoHeight=function(e,g){var c,k,I;return(e=(c=this.computeHeaderLogoThumbnail(e,g))==null?void 0:(k=c.thumbnails)==null?void 0:(I=k[0])==null?void 0:I.height)&&e%31===0?"31":"24"};
_.v.computeHeaderLogoMarginBottom=function(e,g){return this.computeHeaderLogoHeight(e,g)==="24"?"0":"-7"};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],OK.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],OK.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],OK.prototype,"isDarkTheme",void 0);_.t([_.u({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.B("design:type",Object)],OK.prototype,"themeLogo",void 0);
_.t([_.u({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.B("design:type",String)],OK.prototype,"logoHeight",void 0);_.t([_.u({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.B("design:type",String)],OK.prototype,"logoMarginBottom",void 0);_.t([_.bF({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],OK);
_.U(OK,"ytd-primetime-promo-header-renderer",function(){if(ANn!==void 0)return ANn;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ANn=e},{mode:1});var sNw;_.Mm=_.H(function(e){var g=e.className;var c=e.data;var k=e.isOverlay;var I=e.maxLinesOverride;var J=e.useMediumText;var q=function(){return c().alwaysShowTruncationText},L=function(){return c().truncationText},n=function(){return J!==void 0&&J()?"medium":"small"},R=function(){return k!==void 0&&k()?"overlay":"default"},W=function(){var D,f;
return(f=(D=_.x(c().rendererContext,_.Jh))==null?void 0:D.label)!=null?f:""};
e=_.w(_.Wa(!1,void 0,"llBUm"));var b=e.next().value,h=e.next().value;e=_.Ve(function(){c().expandOnTap&&h(!b());return!1});
var X={};return _.a("yt-description-preview-view-model",{el:_.mb(_.EQ(function(){return c().rendererContext})),
class:_.o6("ytDescriptionPreviewViewModelHost",g,(X.ytDescriptionPreviewViewModelClickable=function(){var D;return!((D=_.x(c().rendererContext,_.WY))==null||!D.onTap)},X.ytDescriptionPreviewViewModelIsOverlay=k,X)),
"on:click":e},_.a(_.E,{cond:function(){return c().description},
then:function(D){return _.a(_.E,{cond:b,then:function(){var f={};return _.a("div",{class:_.o6("ytDescriptionPreviewViewModelDescription",(f.ytDescriptionPreviewViewModelDescriptionMediumText=J,f))},_.a(_.fa,{text:D}))},
else:function(){return _.a(dKq,{text:D,alwaysShowTruncationText:q,truncationText:L,maxLines:function(){var f;return(f=I==null?void 0:I())!=null?f:c().maxLines},
textStyle:R,accessibilityLabel:W,textSize:n})}})}}))},"nd");
_.Mm.idomCompat=!0;var u01=_.H(function(e){var g=_.Ve(function(I){var J;(J=e.onClick)==null||J.call(e,I)}),c={},k={};
return _.a("yt-shelf-header-layout",{class:_.o6("yt-shelf-header-layout",(c["yt-shelf-header-layout--disable-horizontal-padding"]=e.disableHorizontalPadding,c["yt-shelf-header-layout--disable-vertical-padding"]=e.disableVerticalPadding,c["yt-shelf-header-layout--responsive"]=e.useResponsiveLayout,c["yt-shelf-header-layout--narrow"]=function(){var I,J;return((I=e.useResponsiveLayout)==null?void 0:I.call(e))&&((J=e.forceSmallLayout)==null?void 0:J.call(e))},c["yt-shelf-header-layout--is-overlay"]=e.isOverlay,
c["yt-shelf-header-layout--tappable"]=e.isInteractive,c["yt-shelf-header-layout--optional-medium-layout-padding"]=e.useUpdatedPadding,c)),
"on:click":g,tabindex:function(){var I;return((I=e.isInteractive)==null?0:I.call(e))?0:void 0}},_.a("div",{class:"yt-shelf-header-layout__header-row"},_.a(_.E,{cond:e.leadingIcon,
then:function(I){return _.a("div",{class:"yt-shelf-header-layout__leading-icon"},_.a(_.SU,{icon:I}))},
else:function(){return _.a(_.E,{cond:e.hasLeadingImage,then:function(){var I,J={};return _.a("div",{class:_.o6("yt-shelf-header-layout__leading-image",(J["yt-shelf-header-layout__leading-image--circular-image"]=e.circularImage,J))},(I=e.leadingImage)==null?void 0:I.call(e))}})}}),_.a("div",{class:"yt-shelf-header-layout__label-container"},_.a(_.E,{cond:e.hasSuperlabel,
then:function(){var I;return _.a("div",{class:"yt-shelf-header-layout__superlabel"},(I=e.superlabel)==null?void 0:I.call(e))}}),_.a("div",{class:"yt-shelf-header-layout__title-row"},_.a(FSI,{text:e.title,
className:_.o6("yt-shelf-header-layout__title",(k["yt-shelf-header-layout__title--small-title"]=e.forceSmallLayout,k)),tagLevel:e.tagLevel}),_.a(_.E,{cond:e.hasDetail,then:function(){var I;return _.a("div",{class:"yt-shelf-header-layout__detail"},(I=e.detail)==null?void 0:I.call(e))}})),_.a(_.E,{cond:e.hasSublabel,
then:function(){var I;return _.a("div",{class:"yt-shelf-header-layout__sublabel"},(I=e.sublabel)==null?void 0:I.call(e))}})),_.a(_.E,{cond:e.hasTrailingActions,
then:function(){var I;return _.a("div",{class:"yt-shelf-header-layout__trailing-actions"},(I=e.trailingActions)==null?void 0:I.call(e))}})),_.a(_.E,{cond:e.hasBottomAccessory,
then:function(){var I;return _.a("div",{class:"yt-shelf-header-layout__bottom-accessory"},(I=e.bottomAccessory)==null?void 0:I.call(e))}}))},"od");
u01.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var FSI=_.H(function(e){var g=e.text;var c=e.className;var k=e.tagLevel;return _.a(_.f4,null,_.a(_.DC,{when:function(){return(k==null?void 0:k())===0}},function(){return _.a("h2",{class:c},g())}),_.a(_.DC,{when:function(){return(k==null?void 0:k())===1}},function(){return _.a("h3",{class:c},g())}),_.a(_.DC,{when:function(){return(k==null?void 0:k())===2}},function(){return _.a("h4",{class:c},g())}),_.a(_.$z,null,function(){return _.a("h2",{class:c},g())}))},"pd");var HFw,dS1,zin;_.CW=_.H(function(e){var g=e.className;var c=e.data;var k=e.disableHorizontalPadding;var I=e.disableVerticalPadding;var J=e.forceSmallLayout;var q=e.useResponsiveLayout;var L=e.isOverlay;e=e.useUpdatedPadding;return _.a("yt-section-header-view-model",{class:_.o6("ytSectionHeaderViewModelHost",g),style:_.N2({"background-color":function(){return My(c().backgroundColor)?_.EY(My(c().backgroundColor)):void 0}})},_.a(u01,{hasDetail:!1,
title:function(){return _.a(_.fa,{text:function(){return c().headline}})},
hasTitle:!0,sublabel:function(){return _.a(dS1,{data:c})},
hasSublabel:function(){return!!c().sublabel||!!c().bottomBadge},
superlabel:function(){return _.a(zin,{data:c})},
hasSuperlabel:function(){return!!c().superlabel||!!c().topBadge},
leadingImage:function(){return _.a(HFw,{leadingAccessory:function(){return c().leadingAccessory}})},
hasLeadingImage:function(){return!!c().leadingAccessory},
trailingActions:function(){return _.a(_.eS,{data:function(){return c().trailingActions}},{flexibleActionsViewModel:_.bA})},
hasTrailingActions:function(){return!!c().trailingActions},
disableHorizontalPadding:function(){return(k==null?void 0:k())||c().disableHorizontalPadding},
disableVerticalPadding:I,forceSmallLayout:J,useResponsiveLayout:q,isOverlay:L,isInteractive:function(){return!!_.nV(c().rendererContext)},
onClick:function(n){if(_.RB(c().rendererContext)){var R=_.nV(c().rendererContext);R&&_.b3(R,{form:{element:n.target,event:n}})}},
bottomAccessory:function(){return _.a(_.eS,{data:function(){return c().bottomAccessory}},{descriptionPreviewViewModel:function(n){return _.a(_.Mm,{data:n.data,
useMediumText:!0})},
commonMarkViewModel:function(n){n=n.data;var R;return _.a(_.es,null,(R=_.Ss().resolve(_.NN(Cau)))==null?void 0:R({data:n}))}})},
hasBottomAccessory:function(){return!!c().bottomAccessory},
useUpdatedPadding:e}))},"qd");
HFw=_.H(function(e){var g=e.leadingAccessory;return _.a(_.es,null,_.a(_.E,{cond:function(){var c;return(c=g().image)!=null?c:_.$u(g().themedImage)},
then:function(c){return _.a(_.pv,{data:c,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.a(_.E,{cond:function(){return _.x(g().avatar,_.bD)},
then:function(c){return _.a(_.E8,{data:c})}}))},"rd");
dS1=_.H(function(e){var g=e.data;return _.a(_.es,null,_.a(_.E,{cond:function(){return _.x(g().bottomBadge,osk)},
then:function(c){var k={};return _.a(_.A8,{data:c,class:_.o6((k.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!c()&&!!g().sublabel},k))})}}),_.a(_.E,{cond:function(){return g().sublabel},
then:function(c){return _.a(_.fa,{text:c})}}))},"sd");
zin=_.H(function(e){var g=e.data;return _.a(_.es,null,_.a(_.E,{cond:function(){return _.x(g().topBadge,osk)},
then:function(c){var k={};return _.a(_.A8,{data:c,class:_.o6((k.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!c()&&!!g().superlabel},k))})}}),_.a(_.E,{cond:function(){return g().superlabel},
then:function(c){return _.a(_.fa,{text:c})}}))},"td");_.sL(_.CW,"yt-section-header-view-model",{props:{data:_.jx,className:_.jx,disableHorizontalPadding:_.jx,disableVerticalPadding:_.jx,forceSmallLayout:_.jx,useResponsiveLayout:_.jx,isOverlay:_.jx,useUpdatedPadding:_.jx}});_.qH("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var e5=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return e};
_.Y(e5,_.z);_.v=e5.prototype;_.v.attached=function(){this.requestElementsPerRow()};
_.v.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.v.onDataChange=function(){var e=this;_.Va(this,function(){e.updateItemVisibility()})};
_.v.onUpdateElementsPerRowAction=function(e){e&&this.elementsPerRow!==e&&(this.elementsPerRow=e,this.updateItemVisibility())};
_.v.updateItemVisibility=function(){var e=this;this.data&&this.data.panels&&_.o1(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(g,c){g.hidden=c>e.elementsPerRow-1})};
_.v.requestElementsPerRow=function(){_.oC(this.hostElement,"yt-request-elements-per-row")};
e5.prototype.onDataChange=e5.prototype.onDataChange;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],e5.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],e5.prototype,"actionHandlerBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],e5.prototype,"data",void 0);_.t([_.u({value:3}),_.B("design:type",Number)],e5.prototype,"elementsPerRow",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e5.prototype,"onDataChange",null);_.t([_.bF({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],e5);
_.U(e5,"ytd-primetime-promo-renderer",function(){if(sNw!==void 0)return sNw;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return sNw=e},{mode:1});var QNn;var g7=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return e};
_.Y(g7,_.z);g7.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
g7.prototype.handleButtonRefreshAction=function(e){if(e=_.x(e,cSI))this.set("data.button",e.membershipButton),this.notifyPath("data.button")};
_.Bd.Object.defineProperties(g7.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:(g=e.avatars)==null?void 0:g.slice(0,8))||[]}}});
_.t([_.u(),_.B("design:type",Object)],g7.prototype,"data",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],g7.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],g7.prototype,"rendererBehavior",void 0);_.t([_.p("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],g7.prototype,"avatars",null);
_.t([_.bF({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],g7);
_.U(g7,"ytd-recognition-shelf-renderer",function(){if(QNn!==void 0)return QNn;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return QNn=e},{mode:1});var USM;var o6v;var cE=function(){var e=_.z.apply(this,arguments)||this;e.modernButtons=_.G("web_modern_buttons");return e};
_.Y(cE,_.z);_.v=cE.prototype;
_.v.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.v.dataChanged=function(){this.collapsed=!0};
_.v.computeVisibleItems=function(e,g){return e!==void 0&&e.items?g?e.items.slice(0,this.data.collapsedItemCount):e.items:[]};
_.v.computeHideShowMore=function(e,g,c){return e>=g||!c};
_.v.computeHideShowAll=function(e,g,c){return!(e&&g)||c};
_.v.onMoreClick=function(){this.collapsed=!1};
_.Bd.Object.defineProperties(cE.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.G("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.C4("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.G("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
cE.prototype.dataChanged=cE.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],cE.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],cE.prototype,"isSearch",void 0);
_.t([_.u({computed:"computeVisibleItems(data,collapsed)"}),_.B("design:type",Array)],cE.prototype,"visibleItems",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],cE.prototype,"collapsed",void 0);_.t([_.u({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.B("design:type",Boolean)],cE.prototype,"hideShowMore",void 0);
_.t([_.u({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.B("design:type",Boolean)],cE.prototype,"hideShowAll",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],cE.prototype,"modernButtons",void 0);_.t([_.p("isSearch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],cE.prototype,"typographyBump",null);
_.t([_.p("isSearch"),_.B("design:type",Object),_.B("design:paramtypes",[])],cE.prototype,"lockupExperiments",null);_.t([_.p("isSearch"),_.B("design:type",String),_.B("design:paramtypes",[])],cE.prototype,"thumbnailWidth",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cE.prototype,"dataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],cE);
_.U(cE,"ytd-vertical-list-renderer",function(){if(o6v!==void 0)return o6v;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return o6v=e},{mode:1});var ZF1=_.Ti(["#"]);_.qH("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var kP=function(){var e=_.z.apply(this,arguments)||this;e.isConstrainedList=!1;return e};
_.Y(kP,_.z);_.v=kP.prototype;
_.v.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.v.computeThumbnailStyle=function(e){return e||""};
_.v.computePlaceAnnotationUnderTitle=function(){var e;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((e=this.data)==null?void 0:e.thumbnailStyle)||"")};
_.v.computeHrefWithDefault=function(e){return this.ytComponentBehavior.computeHref_(e)||_.fEe(ZF1)};
_.v.computeIsPromoShelf=function(e){var g;return(e=e==null?void 0:(g=e[0])==null?void 0:g.metadataBadgeRenderer)?e.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.v.computePlaceBadgeBesideTitle=function(e){var g;return(e==null?0:(g=e[0])==null?0:g.metadataBadgeRenderer)?!this.computeIsPromoShelf(e):!1};
_.v.computeMenuIcon=function(e){return this.computeIsPromoShelf(e)?"yt-icons:more_vert":"yt-icons:more"};
_.v.onDataChange=function(){var e,g;((e=this.data)==null?0:(g=e.content)==null?0:g.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.v.onLockupRequested=function(e){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&e.detail&&e.detail.videoIds){for(var g=this.data.content.gridRenderer.items,c=new Set,k=_.w(e.detail.videoIds),I=k.next();!I.done;I=k.next())c.add(I.value);e.detail.returnValue=g.filter(function(J){return J.gridVideoRenderer&&J.gridVideoRenderer.videoId&&c.has(J.gridVideoRenderer.videoId)}).map(function(J){return J.gridVideoRenderer})}};
_.v.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
kP.prototype.onLockupRequested=kP.prototype.onLockupRequested;kP.prototype.onDataChange=kP.prototype.onDataChange;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],kP.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],kP.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Jc),_.B("design:type",Object)],kP.prototype,"ironResizableBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],kP.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],kP.prototype,"isSearch",void 0);_.t([_.u(),_.B("design:type",Object)],kP.prototype,"isConstrainedList",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("kevlar_fluid_dismiss")}}),
_.B("design:type",Boolean)],kP.prototype,"enableFluidDismiss",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.B("design:type",String)],kP.prototype,"thumbnailStyle",void 0);_.t([_.u({computed:"computeMenuIcon(data.badges)"}),_.B("design:type",String)],kP.prototype,"menuIcon",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.B("design:type",Boolean)],kP.prototype,"featuredPromo",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kP.prototype,"onDataChange",null);_.t([_.Ks("yt-lockup-requested"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kP.prototype,"onLockupRequested",null);_.t([_.bF({is:"ytd-shelf-renderer",disableElementRegistration:!0})],kP);
_.U(kP,"ytd-shelf-renderer",function(){if(USM!==void 0)return USM;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return USM=e},{mode:1});var Vm1;var IU=function(){return _.z.apply(this,arguments)||this};
_.Y(IU,_.z);IU.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Bd.Object.defineProperties(IU.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],IU.prototype,"data",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],IU.prototype,"isPlaylist",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],IU.prototype,"isClipList",void 0);
_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],IU.prototype,"isPlaylistPageWithFilters",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],IU.prototype,"hasTitle",null);_.t([_.u(),_.p("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.B("design:type",Object),_.B("design:paramtypes",[])],IU.prototype,"isRightAligned",null);
_.t([_.bF({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],IU);
_.U(IU,"ytd-sort-filter-header-renderer",function(){if(Vm1!==void 0)return Vm1;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Vm1=e},{mode:1});var tmY;var Jx=function(){var e=_.z.apply(this,arguments)||this;e.enableRightArrowHidden=_.G("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return e};
_.Y(Jx,_.z);Jx.prototype.attached=function(){var e=this;this.enableRightArrowHidden&&(this.JSC$16873_throttledOnResize=new _.BT(function(){var g;(g=e.ytdHorizontalListBehavior)==null||g.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var g;
(g=e.JSC$16873_throttledOnResize)==null||g.fire()}),this.resizeObserver.observe(this.hostElement))};
Jx.prototype.detached=function(){if(this.enableRightArrowHidden){var e;(e=this.resizeObserver)==null||e.disconnect();var g;(g=this.JSC$16873_throttledOnResize)==null||g.dispose()}};
Jx.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]]"}}}}}};
Jx.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Bd.Object.defineProperties(Jx.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.G("enable_creator_details_shelf_m2")){var e=[],g;((g=this.data)==null?0:g.creatorVideosButton)&&e.push(this.data.creatorVideosButton);var c;((c=this.data)==null?0:c.creatorAboutButton)&&e.push(this.data.creatorAboutButton);g=_.w(this.data.creatorCustomUrlButtons||[]);for(c=g.next();!c.done;c=g.next())e.push(c.value);return e}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.G("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.dO.YtdHorizontalListBehavior),_.B("design:type",Object)],Jx.prototype,"ytdHorizontalListBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Jx.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Jx.prototype,"engagementPanel",void 0);
_.t([_.u(),_.B("design:type",Object)],Jx.prototype,"enableRightArrowHidden",void 0);_.t([_.p("enableRightArrowHidden","atEnd"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Jx.prototype,"hideRightArrow",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Jx.prototype,"creatorCustomUrlButtons",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data","creatorCustomUrlButtons"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Jx.prototype,"showCreatorCustomUrlButtons",null);_.t([_.p("showCreatorCustomUrlButtons"),_.B("design:type",Number),_.B("design:paramtypes",[])],Jx.prototype,"channelAvatarSize",null);_.t([_.bF({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Jx);
_.U(Jx,"ytd-video-description-infocards-section-renderer",function(){if(tmY!==void 0)return tmY;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return tmY=e},{mode:2});var BI4;var vE=function(){return _.z.apply(this,arguments)||this};
_.Y(vE,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vE.prototype,"data",void 0);_.t([_.u({computed:"computeIcon_(data.infoIcon)"}),_.B("design:type",Object)],vE.prototype,"infoIcon",void 0);_.t([_.bF({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],vE);
_.U(vE,"ytd-eom-settings-disclaimer-renderer",function(){if(BI4!==void 0)return BI4;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return BI4=e},{mode:1});var NI4;var w7=function(){return _.z.apply(this,arguments)||this};
_.Y(w7,_.z);_.Bd.Object.defineProperties(w7.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.suppressPaddingDisclaimer)}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],w7.prototype,"componentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],w7.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],w7.prototype,"suppressPaddingDisclaimer",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],w7);
_.U(w7,"ytd-product-list-header-renderer",function(){if(NI4!==void 0)return NI4;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return NI4=e},{mode:1});var S6u;var qg=function(){return _.z.apply(this,arguments)||this};
_.Y(qg,_.z);qg.prototype.computeThumbnailStyle=function(e){if(e&&(e=_.R1(e)))return"background-color:"+e+";"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qg.prototype,"rendererBehaviors",void 0);_.t([_.u(),_.B("design:type",Object)],qg.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],qg);
_.U(qg,"ytd-hashtag-tile-renderer",function(){if(S6u!==void 0)return S6u;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return S6u=e},{mode:1});var yNu;var LE=function(){return _.z.apply(this,arguments)||this};
_.Y(LE,_.z);LE.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],LE.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],LE);
_.U(LE,"ytd-sponsorships-alert-renderer",function(){if(yNu!==void 0)return yNu;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return yNu=e},{mode:1});var KSw;var r7=function(){return _.z.apply(this,arguments)||this};
_.Y(r7,_.z);r7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Bd.Object.defineProperties(r7.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.G("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.G("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.t([_.m(_.hz),_.B("design:type",Object)],r7.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],r7.prototype,"ytdLockupBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.t([_.u({selector:_.E1}),_.B("design:type",Object)],r7.prototype,"isGridViewEnabled",void 0);
_.t([_.p("isGridViewEnabled"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],r7.prototype,"watchFeedBigThumbs",null);_.t([_.p("isGridViewEnabled"),_.u({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],r7.prototype,"thumbnailWidth",null);_.t([_.u(),_.B("design:type",Object)],r7.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],r7);
_.U(r7,"ytd-compact-movie-renderer",function(){if(KSw!==void 0)return KSw;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return KSw=e},{mode:1});var OFn;var Mmn;var Ciq=_.uo("HTML_DIR")==="rtl",aU=function(){var e=_.z.apply(this,arguments)||this;e.engagementPanel=!1;e.maxLines=2;e.expandButtonOffset=0;e.showExpandButton=!1;e.isTruncated=!1;e.isExpanded=!1;e.currentSnippetType=2;e.alwaysShowExpandButton=!1;e.JSC$16890_lastWidth=NaN;e.observer=null;e.left=0;e.right=0;e.mid=0;e.longestSnippetLength=0;e.isFinalSnippet=!1;e.isFirstMutation=!1;e.isResetMutation=!1;e.OVERFLOW_THRESHOLD=5;return e};
_.Y(aU,_.z);_.v=aU.prototype;_.v.onClick=function(e){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.TJ(_.lg(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var g;if((g=window.getSelection())==null||!g.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.v.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.v.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.v.updateTextOnSnippetTypeChange=function(){_.G("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.v.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.v.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.mN(new _.E2("AttributedSnippet is empty when the description is not empty",this.text))};
_.v.mutationCallback=function(){if(this.observer!=null){var e=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var g=Math.floor(e*this.maxLines/8);this.setSnippetText(this.text,g);g!==0||this.attributedTextIsEmpty()||_.mN(new _.E2("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;e=e*this.maxLines/8;this.left=0;var c;this.right=Math.min(e*2,(c=(g=this.simpleText)==null?void 0:g.length)!=null?c:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.v.mutationObserve=function(e){var g=this;this.observer||(this.observer=new MutationObserver(function(){g.mutationCallback()}));
this.observer.observe(e,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.v.attached=function(){var e=this;_.Va(this,function(){e.resize()})};
_.v.isExpandedChanged=function(){_.oC(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.v.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.v.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var e="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((Ciq?"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",e);this.snippetContainer.style.setProperty("mask-image",
e)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(Ciq?"right":"left",this.expandButtonOffset+"px")};
_.v.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.v.setSnippetText=function(e,g){e||(e={});if(_.jU(e)){var c=fv(e,g);c.attachmentRuns||c.commandRuns||c.decorationRuns||c.styleRuns||c.alignment||c.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:fv(e,g),headerRuns:hQW(g,this.headerRuns)},this.currentSnippetType=0):_.mN(new _.E2("Tried to set snippet text when HTML element was null",e)):(this.plainSnippetText.textContent=$k(e.content||"",g),this.currentSnippetType=2)}else{a:{c=znC(e,g);if(c.runs){c=_.w(c.runs);for(var k=
c.next();!k.done;k=c.next())if(k=k.value,k.bold||k.deemphasize||k.italics||k.strikethrough||k.textColor||k.navigationEndpoint||_.x(k,nv)){c=!0;break a}}c=!1}c?this.formattedSnippetText?(this.formattedSnippetText.text=znC(e,g),this.currentSnippetType=1):_.mN(new _.E2("Tried to set snippet text when HTML element was null",e)):(this.plainSnippetText.textContent=$k(_.mp(e),g),this.currentSnippetType=2)}};
_.v.attributedSnippetIsEmpty=function(){var e=this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl:this.plainSnippetText;return _.G("web_wiz_attributed_string")?e.innerText.length===0:e.childNodes.length===0};
_.v.attributedTextIsEmpty=function(){var e=this.text;if(!_.jU(e))return!0;var g;return((g=e.content)==null?void 0:g.length)===0?!0:!1};
_.v.resize=function(e){if(this.snippetText){if(e===void 0?0:e)this.JSC$16890_lastWidth=NaN;var g=this.hostElement.offsetWidth;if(g!==this.JSC$16890_lastWidth&&!this.isExpanded)if(this.JSC$16890_lastWidth=g,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;e=0;var c,k;g=Math.min(g*this.maxLines/8*2,(k=(c=this.simpleText)==null?void 0:c.length)!=null?k:0)-1;for(c=0;e<=g;)k=Math.floor(e+(g-e)/2),this.setSnippetText(this.text,k),this.isOverflowing()?g=k-1:(e=k+1,c=k);this.setSnippetText(this.text,c);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.v.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.v.onExpandClick=function(){var e=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.G("inline_expander_reset_focus_killswitch")||_.Va(this,function(){var g;((g=_.Ss().resolve(_.NN(_.u7)))==null?0:g.isKeyBoardInUse())&&_.Un(e.hostElement)});
_.oC(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.v.onCollapseClick=function(){this.collapse();_.oC(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.v.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.v.computeExpandButtonOffset=function(){var e=this.expandSizer;return e?Ciq?e.offsetParent?e.offsetParent.offsetWidth-e.offsetWidth-e.offsetLeft:0:e.offsetLeft:0};
_.Bd.Object.defineProperties(aU.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.jU(this.text)?this.text.content||"":_.mp(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 _.jU(this.text)?!0:this.text&&_.G("web_replace_formatted_with_attributed_string")&&VyK(this.text)?(this.text=_.a6(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}}});
aU.prototype.onTextChanged=aU.prototype.onTextChanged;aU.prototype.updateMaskAndExpandButtonOffset=aU.prototype.updateMaskAndExpandButtonOffset;aU.prototype.updateSnippetContainerMaxHeight=aU.prototype.updateSnippetContainerMaxHeight;aU.prototype.isExpandedChanged=aU.prototype.isExpandedChanged;aU.prototype.updateTextOnSnippetTypeChange=aU.prototype.updateTextOnSnippetTypeChange;aU.prototype.updateIsFormattedExpanded=aU.prototype.updateIsFormattedExpanded;aU.prototype.updateIsAttributedExpanded=aU.prototype.updateIsAttributedExpanded;
aU.prototype.onClick=aU.prototype.onClick;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],aU.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],aU.prototype,"text",void 0);_.t([_.u(),_.B("design:type",Array)],aU.prototype,"headerRuns",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],aU.prototype,"engagementPanel",void 0);_.t([_.u(),_.B("design:type",Object)],aU.prototype,"maxLines",void 0);
_.t([_.u(),_.B("design:type",String)],aU.prototype,"expandLabel",void 0);_.t([_.u(),_.B("design:type",String)],aU.prototype,"collapseLabel",void 0);_.t([_.u(),_.B("design:type",Object)],aU.prototype,"expandCommand",void 0);_.t([_.u(),_.B("design:type",Object)],aU.prototype,"expandButtonOffset",void 0);_.t([_.p("text"),_.B("design:type",String),_.B("design:paramtypes",[])],aU.prototype,"simpleText",null);
_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],aU.prototype,"onClick",null);_.t([_.p("text","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],aU.prototype,"expandedText",null);_.t([_.p("headerRuns","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],aU.prototype,"expandedHeaderRuns",null);
_.t([_.p("text"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],aU.prototype,"hasAttributedStringText",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],aU.prototype,"showExpandButton",void 0);_.t([_.p("collapseLabel","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],aU.prototype,"showCollapseButton",null);_.t([_.u(),_.B("design:type",Object)],aU.prototype,"isTruncated",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],aU.prototype,"isExpanded",void 0);_.t([_.u(),_.B("design:type",Boolean)],aU.prototype,"isAttributedExpanded",void 0);_.t([_.OY("isExpanded","hasAttributedStringText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aU.prototype,"updateIsAttributedExpanded",null);_.t([_.u(),_.B("design:type",Boolean)],aU.prototype,"isFormattedExpanded",void 0);
_.t([_.OY("isExpanded","hasAttributedStringText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aU.prototype,"updateIsFormattedExpanded",null);_.t([_.u(),_.B("design:type",Number)],aU.prototype,"currentSnippetType",void 0);_.t([_.p("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],aU.prototype,"useAttributedSnippet",null);
_.t([_.p("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],aU.prototype,"useFormattedSnippet",null);_.t([_.p("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],aU.prototype,"usePlainSnippet",null);_.t([_.u(),_.B("design:type",Object)],aU.prototype,"alwaysShowExpandButton",void 0);_.t([_.OY("currentSnippetType"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aU.prototype,"updateTextOnSnippetTypeChange",null);
_.t([_.u(),_.B("design:type",Object)],aU.prototype,"attributedSnippetText",void 0);_.t([_.Cs("#snippet"),_.B("design:type",HTMLElement)],aU.prototype,"snippetContainer",void 0);_.t([_.Cs("#snippet-text"),_.B("design:type",HTMLElement)],aU.prototype,"snippetText",void 0);_.t([_.Cs("#plain-snippet-text"),_.B("design:type",HTMLElement)],aU.prototype,"plainSnippetText",void 0);_.t([_.Cs("#formatted-snippet-text"),_.B("design:type",Object)],aU.prototype,"formattedSnippetText",void 0);
_.t([_.Cs("#attributed-snippet-text"),_.B("design:type",HTMLElement)],aU.prototype,"attributedSnippetTextEl",void 0);_.t([_.Cs("#expand"),_.B("design:type",HTMLElement)],aU.prototype,"expandButton",void 0);_.t([_.Cs("#expand-sizer"),_.B("design:type",HTMLElement)],aU.prototype,"expandSizer",void 0);_.t([_.k_("isExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aU.prototype,"isExpandedChanged",null);
_.t([_.OY("isExpanded","maxLines"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aU.prototype,"updateSnippetContainerMaxHeight",null);_.t([_.OY("isTruncated","showExpandButton","expandButtonOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aU.prototype,"updateMaskAndExpandButtonOffset",null);
_.t([_.k_("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aU.prototype,"onTextChanged",null);_.t([_.bF({is:"ytd-text-inline-expander",disableElementRegistration:!0})],aU);
_.U(aU,"ytd-text-inline-expander",function(){if(Mmn===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);Mmn=e}e=Mmn;return e},{mode:2});var nE=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return e};
_.Y(nE,_.z);nE.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
nE.prototype.handleUpdateDescriptionAction=function(e){if(e=_.x(e,_.Www))if(e.attributedDescription)this.set("data.attributedDescriptionBodyText",e.attributedDescription);else if(e.description){var g;((g=this.data)==null?0:g.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.a6(e.description)):this.set("data.descriptionBodyText",e.description)}};
_.Bd.Object.defineProperties(nE.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var e,g;return!((e=this.data)==null||!e.attributedDescriptionBodyText)||!((g=this.data)==null||!g.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null?0:e.collapsedLineCount){var g;return(g=this.data)==null?void 0:g.collapsedLineCount}e=_.MN("web_watch_description_collapsed_default_lines",12);if(_.G("ww_desc_line_page_size_ks"))return e;g=Math.round(_.CU().height*_.MN("web_watch_description_screen_height_percentage",.5)/20);return Math.max(g,e)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return(c=(e=this.data)==null?void 0:e.descriptionBodyText)!=null?c:(g=this.data)==null?void 0:g.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.sourceAttributions}}});
nE.prototype.panelContentVisibleChanged=nE.prototype.panelContentVisibleChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],nE.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],nE.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],nE.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Boolean)],nE.prototype,"panelContentVisible",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],nE.prototype,"engagementPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],nE.prototype,"shortsPanel",void 0);_.t([_.Cs("#inline-expander"),_.B("design:type",Object)],nE.prototype,"inlineExpander",void 0);
_.t([_.OY("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nE.prototype,"panelContentVisibleChanged",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],nE.prototype,"hasDescriptionText",null);_.t([_.p("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],nE.prototype,"collapsedLines",null);
_.t([_.p("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.B("design:type",Object),_.B("design:paramtypes",[])],nE.prototype,"descriptionText",null);_.t([_.p("data","data.headerRuns"),_.B("design:type",Object),_.B("design:paramtypes",[])],nE.prototype,"headerRuns",null);_.t([_.p("data","data.sourceAttributions"),_.B("design:type",Object),_.B("design:paramtypes",[])],nE.prototype,"sourceAttributions",null);
_.t([_.bF({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],nE);
_.U(nE,"ytd-expandable-video-description-body-renderer",function(){if(OFn!==void 0)return OFn;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return OFn=e},{mode:2});var eS4;var gSv=_.H(function(e){var g=e.data;return _.a("factoid-renderer",{class:"ytwFactoidRendererHost"},_.a("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return g().accessibilityText}},_.a("span",{class:"ytwFactoidRendererValue"},_.a(_.fa,{text:function(){return g().value}})),_.a("span",{class:"ytwFactoidRendererLabel"},_.a(_.fa,{text:function(){return g().label}}))))},"ud");_.sL(gSv,"factoid-renderer",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;return _.a("upload-time-factoid-renderer",null,_.a(_.eS,{data:function(){return g().factoid}},{factoidRenderer:gSv}))},"vd"),"upload-time-factoid-renderer",{props:{data:_.TF}});_.sL(_.H(function(e){var g=e.data;return _.a("view-count-factoid-renderer",null,_.a(_.eS,{data:function(){return g().factoid}},{factoidRenderer:gSv}))},"wd"),"view-count-factoid-renderer",{props:{data:_.TF}});var RU=function(){var e=_.z.apply(this,arguments)||this;e.shortsPanel=!1;e.engagementPanel=!1;e.watchWhileSdp=_.G("shorts_desktop_watch_while_sdp");return e};
_.Y(RU,_.z);RU.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"}}}}};
_.Bd.Object.defineProperties(RU.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var e;return(e=this.data)==null?void 0:e.channel}}});
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],RU.prototype,"componentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],RU.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],RU.prototype,"shortsPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],RU.prototype,"engagementPanel",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],RU.prototype,"watchWhileSdp",void 0);_.t([_.p("shortsPanel","engagementPanel","data.channel"),_.B("design:type",Object),_.B("design:paramtypes",[])],RU.prototype,"showChannelInfo",null);_.t([_.bF({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],RU);
_.U(RU,"ytd-video-description-header-renderer",function(){if(eS4!==void 0)return eS4;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return eS4=e},{mode:1});var cH4;var E9=function(){return _.z.apply(this,arguments)||this};
_.Y(E9,_.z);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],E9.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],E9.prototype,"noPadding",void 0);_.t([_.u(),_.B("design:type",Object)],E9.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],E9);
_.U(E9,"ytd-list-item-view-model",function(){if(cH4!==void 0)return cH4;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return cH4=e},{mode:1});var kVM;var IaI;var JHZ;var vS1;var WE=function(){var e=_.z.apply(this,arguments)||this;e.adaptiveFullWidth=!1;e.modernButtons=_.G("web_modern_buttons");e.buttonOverrides={style:"call-to-action",type:"filled"};e.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return e};
_.Y(WE,_.z);WE.prototype.handleSetTimestamp_=function(e){this.data&&this.data.shortUrl&&(_.o1(this.hostElement).querySelector("#share-url").value=e.isSet?_.Cr(this.data.shortUrl,"t",e.timestamp):this.data.shortUrl)};
WE.prototype.handleSignalActionCopyShareUrl_=function(e,g){(_.G("killswitch_copy_link_target_check")||_.o1(this.hostElement).querySelector("#copy-button")===g)&&this.copyUrlToClipboard()};
WE.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.o1(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
WE.prototype.computeStyle_=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],WE.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],WE.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.B("design:type",String)],WE.prototype,"rendererStyle",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],WE.prototype,"adaptiveFullWidth",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],WE.prototype,"modernButtons",void 0);_.t([_.u(),_.B("design:type",Object)],WE.prototype,"buttonOverrides",void 0);_.t([_.Wo({is:"yt-copy-link-renderer",disableElementRegistration:!0})],WE);
_.U(WE,"yt-copy-link-renderer",function(){if(vS1===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;JHZ===void 0&&(JHZ=document.createElement("template"));var k=JHZ;c.call(g,k.content.cloneNode(!0),e.content.firstChild);vS1=e}e=vS1;return e},{mode:2});_.qH("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var bY=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return e};
_.Y(bY,_.z);_.v=bY.prototype;_.v.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.v.attached=function(){this.keyboardFocused=!1};
_.v.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var e=_.Ss().resolve(_.NN(_.u7));e&&(this.keyboardFocused=e.isKeyBoardInUse())}};
_.v.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.v.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.v.onChange_=function(){if(this.data){var e=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;e&&this.ytComponentBehavior.resolveCommand(e);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.v.handleUpdateToggleAction_=function(e){(e=_.x(e,ljM))&&this.data&&e.targetId==this.data.targetId&&this.set("data.toggled",e.toggled)};
_.v.toBoolean_=function(e){return!!e};
_.v.reset=function(){};
_.v.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("data-changed",this.data))};
_.v.updateDataToggledFromBinding=function(e){this.set("data.toggled",e.detail.value)};
bY.prototype.dataChangedForBinding=bY.prototype.dataChangedForBinding;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],bY.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],bY.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],bY.prototype,"data",void 0);_.t([_.u({computed:"computeDescription_(data.*)"}),_.B("design:type",Object)],bY.prototype,"description_",void 0);_.t([_.u({value:function(){return!!_.Ss().resolve(_.NN(_.u7))&&_.G("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.B("design:type",Boolean)],bY.prototype,"useKeyboardFocused",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],bY.prototype,"keyboardFocused",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bY.prototype,"dataChangedForBinding",null);_.t([_.Wo({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],bY);
_.U(bY,"yt-toggle-form-field-renderer",function(){if(IaI===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;kVM===void 0&&(kVM=document.createElement("template"));var k=kVM;c.call(g,k.content.cloneNode(!0),e.content.firstChild);IaI=e}e=IaI;return e},{mode:2});var weu;var qlM;var hx=function(){var e=_.z.apply(this,arguments)||this;e.isDarkTheme=!1;e.isSearch=!1;e.noTopMargin=_.G("kevlar_watch_no_top_margin");e.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 e};
_.Y(hx,_.z);_.v=hx.prototype;_.v.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.v.dataChanged=function(){var e=this.getSelectedIndex();if(e>0)this.selected=e;else{this.selected=0;var g,c;(g=this.ytScrollableChipCloudBehavior)==null||(c=g.reset)==null||c.call(g)}};
_.v.getSelectedIndex=function(){var e;if((e=this.data)==null||!e.chips)return-1;e=-1;for(var g,c=0;c<((g=this.data)==null?void 0:g.chips.length);c++){var k=void 0,I=void 0;if((k=this.data)==null?0:(I=k.chips[c].chipCloudChipRenderer)==null?0:I.isSelected){e=c;break}}return e};
_.v.onResize=function(){var e=this.ytScrollableChipCloudBehavior;_.Va(e,e.setContainerWidthDiff);e=this.ytScrollableChipCloudBehavior;_.Va(e,e.setButtonsState)};
_.v.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.v.handleRelatedChipCommand=function(e,g){e=this.JSC$16916_chipsSelector.indexOf(g);e!==-1&&this.JSC$16916_chipsSelector.selectIndex(e)};
_.v.handleChipCloudChipSelectAction=function(e){e=this.JSC$16916_chipsSelector.indexOf(e);e>-1&&this.JSC$16916_chipsSelector.selectIndex(e)};
_.v.handleChipCloudChipDeselectAction=function(){var e=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16916_chipsSelector&&((e==null?0:e.continuationCommand)?_.tr(this.hostElement,[e]):(e==null?0:e.searchEndpoint)?this.ytComponentBehavior.resolveCommand(e):e&&_.Bm(this.hostElement,[e],this.hostElement),this.JSC$16916_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.v.updateSelectedFromBinding=function(e){this.selected=e.detail.value};
hx.prototype.onResize=hx.prototype.onResize;hx.prototype.dataChanged=hx.prototype.dataChanged;hx.prototype.isSearchChanged=hx.prototype.isSearchChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],hx.prototype,"actionHandlerBehavior",void 0);
_.t([_.m(_.Jc),_.B("design:type",Object)],hx.prototype,"ironResizableBehavior",void 0);_.t([_.m(),_.B("design:type",Oj)],hx.prototype,"ytScrollableChipCloudBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],hx.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],hx.prototype,"data",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],hx.prototype,"selected",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],hx.prototype,"isDarkTheme",void 0);_.t([_.u({value:160}),_.B("design:type",Number)],hx.prototype,"scrollDistance",void 0);_.t([_.u(),_.B("design:type",Object)],hx.prototype,"isSearch",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],hx.prototype,"noTopMargin",void 0);_.t([_.Cs("#chips"),_.B("design:type",Object)],hx.prototype,"JSC$16916_chipsSelector",void 0);
_.t([_.OY("isSearch"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hx.prototype,"isSearchChanged",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hx.prototype,"dataChanged",null);_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hx.prototype,"onResize",null);_.t([_.Wo({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],hx);
_.U(hx,"yt-chip-cloud-renderer",function(){if(qlM===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;weu===void 0&&(weu=document.createElement("template"));var k=weu;c.call(g,k.content.cloneNode(!0),e.content.firstChild);qlM=e}e=qlM;return e},{mode:2});var LUZ,rHk=function(){return LUZ!==void 0?LUZ:LUZ=document.createElement("template")};
document.head.appendChild(rHk().content);var aas;var nSZ=document.head,RSn=nSZ.appendChild,ES4;if(aas===void 0){var WUw=document.createElement("template");_.P(WUw,"");WUw.content.insertBefore(rHk().content.cloneNode(!0),WUw.content.firstChild);aas=WUw}ES4=aas;RSn.call(nSZ,ES4.content);var bKw=_.H(function(e){var g=e.data;return _.a("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.a("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.a("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.a(_.E,{cond:function(){return _.$u(g().image)},
then:function(c){return _.a("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.a(_.pv,{data:c,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.a("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.a(_.fa,{text:function(){return g().title}})),_.a("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.a(_.fa,{text:function(){return g().subtitle}})))),_.a(_.E,{cond:function(){var c;
return(c=g())==null?void 0:c.hasBottomDivider},
then:function(){return _.a("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"xd");var hSw=_.H(function(e){var g=e.data;return _.a("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.a("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.a(_.eS,{data:function(){var c;return(c=g().offerPlanDetailsItem)!=null?c:[]}},{offerPlanDetailsItemViewModel:function(c){return _.a("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.a(bKw,{data:c.data}))}})),_.a("div",null,_.a(_.E,{cond:function(){return g().hasBottomDivider},
then:function(){return _.a("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.a("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.a("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.a("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.a("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"yd");var Xe4=_.H(function(e){var g=e.data;e=_.w(_.Wa(!1,void 0,"MrXxy"));var c=e.next().value,k=e.next().value,I=_.Ve(function(){k(!c());return!1}),J=function(){var q;
return(q=g().offerPlanDetailsContainer)!=null?q:[]};
return _.a("lp-complex-offer-card-details-view-model",null,_.a("div",null,_.a(_.E,{cond:function(){return c()},
then:function(){return _.a("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.a("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":I,"aria-expanded":c},_.a(_.fa,{text:function(){return g().expandedTitle}})),_.a("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.a(_.eS,{data:J},{offerPlanDetailsContainerViewModel:function(q){return _.a("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.a(hSw,{data:q.data}))}})),_.a("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.a(_.fa,{text:function(){return g().legalText}})))},
else:function(){return _.a("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":I,"aria-expanded":c},_.a(_.fa,{text:function(){return g().collapsedTitle}}),_.a("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.a(_.SU,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"zd");var GVq=_.H(function(e){var g=e.data;return _.a("lp-complex-offer-card-option-view-model",null,_.a("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.a(_.E,{cond:function(){return g().topDividerText},
then:function(){return _.a("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.a("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.a("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.a("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.a(_.fa,{text:function(){return g().topDividerText}}))))}}),_.a(_.E,{cond:function(){return g().description},
then:function(){return _.a("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.a(_.fa,{text:function(){return g().description}}))}}),_.a(_.E,{cond:function(){return g().planPricingPrimary},
then:function(){return _.a("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.a(_.fa,{text:function(){return g().planPricingPrimary}}))}}),_.a(_.E,{cond:function(){return g().planPricingSecondary},
then:function(){return _.a("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.a(_.fa,{text:function(){return g().planPricingSecondary}}))}}),_.a(_.E,{cond:function(){return g().primaryButton},
then:function(){return _.a("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.a(_.eS,{data:function(){return g().primaryButton}},{buttonViewModel:function(c){return _.a(_.oD,{data:c.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Ad");var xj4=_.H(function(e){var g=e.data;var c=function(){var J;return((J=g())==null?void 0:J.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
e={};var k={},I={};return _.a("ytm-lp-complex-offer-card-view-model",null,_.a("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.a("div",{class:_.o6((e.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=c,e),"ytmLpComplexOfferCardViewModelCardContainer")},_.a(_.E,{cond:function(){var J;return(J=g())==null?void 0:J.bannerText},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.a("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.a(_.fa,{text:function(){return g().bannerText}})))}}),_.a(_.E,{cond:function(){return _.$u(g().logo)},
then:function(J){var q={};return _.a("div",{class:_.o6((q.ytmLpComplexOfferCardViewModelLogoAlignLeft=c,q),"ytmLpComplexOfferCardViewModelLogo")},_.a(_.pv,{data:J,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.a("div",{class:_.o6((k.ytmLpComplexOfferCardViewModelTitleAlignLeft=c,k),"ytmLpComplexOfferCardViewModelTitle")},_.a(_.fa,{text:function(){return g().title}})),_.a(_.E,{cond:function(){var J;
return(J=g())==null?void 0:J.subtitle},
then:function(){var J={};return _.a("div",{class:_.o6((J.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=c,J),"ytmLpComplexOfferCardViewModelSubtitle")},_.a(_.fa,{text:function(){return g().subtitle}}))}}),_.a(_.E,{cond:function(){return g().planPricingPrimary},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.a(_.fa,{text:function(){return g().planPricingPrimary}}))}}),_.a(_.E,{cond:function(){return g().planPricingSecondary},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.a(_.fa,{text:function(){return g().planPricingSecondary}}))}}),_.a(_.E,{cond:function(){return g().purchaseButton},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.a(_.eS,{data:function(){return g().purchaseButton}},{buttonViewModel:function(J){return _.a(_.oD,{data:J.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.a(_.E,{cond:function(){var J;
return(J=g())==null?void 0:J.offerOptions},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.a(_.eS,{data:function(){return g().offerOptions}},{lpComplexOfferCardOptionViewModel:GVq}))}}),_.a("div",{class:_.o6((I.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=c,I),"ytmLpComplexOfferCardViewModelLegalText")},_.a(_.fa,{text:function(){return g().legalText}})),_.a(_.E,{cond:function(){var J;
return(J=g())==null?void 0:J.offerCardDetails},
then:function(){return _.a("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.a(_.eS,{data:function(){return g().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:Xe4}))}}))))},"Bd");var DjI=_.H(function(e){var g=e.data;var c=function(){var q;return((q=g())==null?void 0:q.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
e={};var k={},I={},J={};return _.a("ytm-lp-complex-offer-card-section-view-model",null,_.a("div",{class:_.o6("ytmLpComplexOfferCardSectionViewModelHost")},_.a("div",{class:_.o6((e.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=c,e),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.a("div",{class:_.o6((k.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=c,k),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.a("h2",{class:_.o6((I.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
c,I),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.a(_.fa,{text:function(){return g().title}}))),_.a(_.E,{cond:function(){var q;
return(q=g())==null?void 0:q.subtitle},
then:function(){var q={},L={};return _.a("div",{class:_.o6((q.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=c,q),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.a("div",{class:_.o6((L.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=c,L),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.a(_.fa,{text:function(){return g().subtitle}})))}}),_.a("div",{class:_.o6((J.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=c,J),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.a(_.eS,{data:function(){var q;
return(q=g().offerPlans)!=null?q:[]}},{lpComplexOfferCardViewModel:function(q){return _.a("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.a(xj4,{data:q.data}))}})))))},"Cd");var $jw=_.H(function(e){return _.a("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.a("div",{class:"ytLpCouponBannerViewModelIcon"},_.a(_.SU,{icon:function(){return"price_tag"}})),_.a("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.a("div",{class:"ytLpCouponBannerViewModelContent"},_.a("div",{class:"ytLpCouponBannerViewModelHeading"},_.a(_.fa,{text:function(){var g;
return(g=e.data())==null?void 0:g.title}})),_.a("div",{class:"ytLpCouponBannerViewModelBody"},_.a(_.fa,{text:function(){var g;
return(g=e.data())==null?void 0:g.subtitle}})))))},"Dd");
$jw.idomCompat=!0;_.X_=Q$p.getInstance();var Ylv;Ylv=_.H(function(e){return _.a("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":e.shouldAriaHideContent},_.a("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:e.questionId},_.a(_.fa,{text:e.question})))},"Ed");
_.fak=_.H(function(e){var g=e.data;var c=e.themeOverride;e=_.w(_.Wa(!1,void 0,"pNli2b"));var k=e.next().value,I=e.next().value;e=_.Ve(function(){I(!k());return!1});
var J=function(){return k()?"EXPAND_LESS":"EXPAND_MORE"},q=("faq-container"+_.bN(_.X_)).toString(),L="faq-question-and-answers-section-question"+_.bN(_.X_),n={},R={};
return _.a("faq-entry-view-model",null,_.a("div",{class:_.o6("ytLpFaqEntryViewModelHost",(n.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return c==null?void 0:c().useDarkTheme},n))},_.a("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":e,role:"button","aria-expanded":k,"aria-labelledby":L.toString(),"tab-index":"0"},_.a(Ylv,{question:function(){return g().question},
questionId:L,shouldAriaHideContent:!0}),_.a(_.E,{cond:function(){return k()!==void 0},
then:function(){return _.a("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.a(_.SU,{icon:J,ariaHidden:!0}),_.a("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.a("div",{class:_.o6("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(R.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!k()},R))},_.a("div",{id:q},_.a(_.Yz,{each:function(){return g().answers||[]}},function(W){return _.a("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.a(_.fa,
{text:W}))})))))},"Fd");
_.fak.idomCompat=!0;var jVw=_.H(function(e){var g=e.data;var c=e.themeOverride;e={};return _.a("lp-faq-section-view-model",null,_.a("div",{class:_.o6("yt-lp-faq-section-view-model",(e["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return g().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},e["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(c==null||!c().useDarkTheme)},e))},_.a("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.a(_.E,{cond:function(){return g().header},
then:function(k){return _.a("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.a(_.fa,{text:k}))}}),_.a("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.a(_.eS,{data:function(){return g().faqs}},{faqEntryViewModel:function(k){return _.a(_.fak,{data:k.data,
themeOverride:c})}})),_.a("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.a(_.Yz,{each:function(){return g().footers||[]}},function(k){return _.a(_.fa,{text:k})})),_.a(_.E,{cond:function(){return g().legal},
then:function(k){return _.a("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.a(_.fa,{text:k}))}}))))},"Gd");
jVw.idomCompat=!0;var iKu=_.H(function(e){var g=e.data;var c=e.themeOverride;_.lo(function(){var q=g().gtmId;q&&_.ID(q,_.uo("GL",""))});
var k={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var q,L,n;return(n=(q=g().logo)==null?void 0:(L=q.accessibilityData)==null?void 0:L.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},I=_.Ss().resolve(_.NN(_.gb)),J=function(){return I&&I()||(c==null?void 0:c().useDarkTheme)};
return _.a("lp-header-section-view-model",null,_.a("div",{class:function(){var q=g().layoutType,L=g().marginType==="LP_SECTION_MARGIN_TYPE_TOP",n=c==null?void 0:c().useDarkTheme,R=["lp-header-section-view-model"];switch(q){case "LP_MODULE_LAYOUT_TYPE_PTC":R.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":R.push("lp-header-section-view-model--narrow-header-layout-type")}L&&R.push("lp-header-section-view-model__lp-header-section-margin");n&&R.push("lp-header-section-view-model--premium-force-dark-mode");
return R.join(" ")}},_.a(_.E,{cond:function(){return g().logo},
then:function(){return _.a("div",null,_.a(_.E,{cond:J,then:function(){return _.a(_.E,{cond:function(){var q;return(q=g().logo)==null?void 0:q.imageDark},
then:function(q){return _.a(_.pv,Object.assign({},{data:q},k))}})},
else:function(){return _.a(_.E,{cond:function(){var q;return(q=g().logo)==null?void 0:q.imageLight},
then:function(q){return _.a(_.pv,Object.assign({},{data:q},k))}})}}))}}),_.a(_.E,{cond:function(){return g().title},
then:function(q){return _.a("div",{class:"lp-header-section-view-model__lp-header-title"},_.a(_.fa,{text:q}))}}),_.a("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.a(_.E,{cond:function(){return g().subtitles},
then:function(q){return _.a(_.Yz,{each:q},function(L){return _.a("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.a(_.fa,{text:L}))})}})),_.a(_.E,{cond:function(){return g().additionalInfo},
then:function(q){return _.a("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.a(_.fa,{text:q}))}}),_.a("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.a(_.E,{cond:function(){return g().primaryButton},
then:function(q){return _.a("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.a(_.eS,{data:q},{buttonViewModel:_.oD}))}}),_.a(_.E,{cond:function(){return g().secondaryButton},
then:function(q){return _.a("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.a(_.eS,{data:q},{buttonViewModel:_.oD}))}})),_.a(_.E,{cond:function(){return g().otherOffersInfo},
then:function(q){return _.a("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.a(_.fa,{text:q}))}}),_.a("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.a(_.E,{cond:function(){return g().billingInfo},
then:function(q){return _.a(_.Yz,{each:q},function(L){return _.a("div",null,_.a(_.fa,{text:L}))})}}))))},"Hd");
iKu.idomCompat=!0;var PIn=_.H(function(e){return _.a("lp-header-upsell-banner-view-model",{class:_.o6("lpHeaderUpsellBannerViewModelHost",e.className,{})},_.a("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.a(_.SU,{icon:function(){return"CAMPAIGN"}})),_.a("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.a("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.a("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.a("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.a(_.fa,{text:function(){var g;
return(g=e.data())==null?void 0:g.description}})))),_.a(_.eS,{data:function(){var g;
return(g=e.data())==null?void 0:g.purchaseButton}},{buttonViewModel:function(g){return _.a(_.oD,{data:g.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Id");var mj1=_.H(function(e){var g=e.data;var c=_.sz(e.themeOverride,{useDarkTheme:!1});e={};e=_.o6("ytmLpHeadlineSectionViewModelHost",(e.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return c().useDarkTheme},e));
return _.a("lp-headline-section-view-model",null,_.a("div",{class:e},_.a(_.E,{cond:function(){return g().title},
then:function(k){return _.a("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.a(_.fa,{text:k}))}}),_.a(_.E,{cond:function(){return g().subtitle},
then:function(k){return _.a("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.a(_.fa,{text:k}))}})))},"Jd");var peu=_.H(function(e){var g=e.data;var c=e.themeOverride;var k=_.Ss().resolve(_.NN(_.gb)),I=function(){return k&&k()||(c==null?void 0:c().useDarkTheme)},J=function(){var R,W;
var b=I()?(R=g().textBackgroundImage)==null?void 0:R.imageDark:(W=g().textBackgroundImage)==null?void 0:W.imageLight;return ihA((b==null?void 0:b.sources)||[])},q=function(){var R,W;
return I()?(R=g().featureImage)==null?void 0:R.imageDark:(W=g().featureImage)==null?void 0:W.imageLight},L=function(){return g().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},n=function(){var R,W;
return I()?(R=g().logo)==null?void 0:R.imageDark:(W=g().logo)==null?void 0:W.imageLight};
return _.a("ytm-lp-large-feature-section-view-model",null,_.a("div",{class:function(){var R=g().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",W=g().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",b=(g().index||0)%2===1,h=c==null?void 0:c().useDarkTheme,X=["yt-lp-large-feature-section-view-model"];R?X.push("yt-lp-large-feature-section-view-model--music-feature-type"):W?X.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):b||X.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
h&&X.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return X.join(" ")}},_.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.a(_.E,{cond:q,
then:function(){return _.a(_.pv,{data:function(){return q()},
alt:function(){var R,W,b;return(b=(R=g().featureImage)==null?void 0:(W=R.accessibilityData)==null?void 0:W.label)!=null?b:""},
contentMode:L})}})),_.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var R;return((R=J())==null?0:R.url)?"background-image: url("+_.Km(J().url)+");":""}},_.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.a(_.E,{cond:n,
then:function(){return _.a(_.pv,{data:function(){return n()},
alt:function(){var R,W,b;return(b=(R=g().logo)==null?void 0:(W=R.accessibilityData)==null?void 0:W.label)!=null?b:""},
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"})}}),_.a(_.E,{cond:function(){return g().eyebrowText},
then:function(){return _.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.a(_.fa,{text:function(){return g().eyebrowText}}))}}),_.a(_.E,{cond:function(){return g().title},
then:function(){return _.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.a(_.fa,{text:function(){return g().title}}))}}),_.a(_.E,{cond:function(){return g().subtitles},
then:function(){return _.a("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.a(_.Yz,{each:function(){return g().subtitles||[]}},function(R){return _.a(_.fa,{text:R})}))}})))))},"Kd");
peu.idomCompat=!0;var Td4=_.H(function(e){return _.a("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.a("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.a(_.SU,{icon:function(){var g;return(g=e.data())==null?void 0:g.iconType},
className:function(){var g;switch((g=e.data())==null?void 0:g.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var g;return((g=e.data())==null?void 0:g.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.a("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.a(_.fa,{text:function(){var g;
return(g=e.data())==null?void 0:g.text},
className:function(){var g;return((g=e.data())==null?void 0:g.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Ld");var laB=_.H(function(e){e=_.FA(e,{config:void 0,themeOverride:void 0});var g=e.data,c=e.config,k=e.themeOverride;e={};e=_.o6("ytmLpOfferCardOptionViewModelHost",(e.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var L;return(L=k())==null?void 0:L.useDarkTheme},e));
var I=_.Ve(function(){var L,n;(L=c())==null||(n=L.handleRadioButtonClick)==null||n.call(L,g());return!1}),J=function(){var L;
return(L=c())==null?void 0:L.shouldDisplayRadioButton},q=function(){var L;
return(L=g().featureListItems)!=null?L:[]};
return _.a("ytm-lp-offer-card-option-view-model",null,_.a("div",{class:e,"on:click":_.Ve(function(){if(J()){var L,n;(L=c())==null||(n=L.handleRadioButtonClick)==null||n.call(L,g())}return!1})},_.a(_.E,{cond:J,
then:function(){return _.a("div",null,_.a("input",{type:"radio","on:click":I,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var L;return!((L=c())==null||!L.isOptionSelected)}}))}}),_.a("div",null,_.a("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.a(_.fa,{text:function(){return g().eyebrowText}})),_.a("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.a(_.fa,{text:function(){return g().title}})),_.a("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.a(_.fa,
{text:function(){return g().subtitle}})),_.a(_.E,{cond:function(){return q().length>0},
then:function(){return _.a("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.a(_.eS,{data:q},{lpFeatureListItemViewModel:Td4}))}}),_.a("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.a(_.fa,{text:function(){return g().description}})))))},"Md");
laB.idomCompat=!0;var AHB=_.H(function(e){var g=e.data;var c=e.themeOverride;e=_.w(_.uF(function(){var J,q=(J=g().offerOptions)==null?void 0:J[0];return _.x(q,PZM)||{}}));
var k=e.next().value,I=e.next().value;e={};return _.a("ytm-lp-offer-card-view-model",null,_.a("div",{class:_.o6("ytmLpOfferCardViewModelHost",(e.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(c==null||!c().useDarkTheme)},e))},_.a("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.a(_.E,{cond:function(){return g().titleIconType},
then:function(){return _.a("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.a(_.SU,{icon:function(){var J;return((J=g().titleIconType)==null?void 0:J.toString())||""}}))}}),_.a("div",{class:"ytmLpOfferCardViewModelTitleText"},_.a(_.fa,{text:function(){return g().title}})),_.a(_.eS,{data:function(){return g().titleBadge}},{badgeViewModel:function(J){return _.a("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.a(_.A8,{data:J.data}))}})),_.a("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.a(_.eS,{data:function(){return g().offerOptions}},{lpOfferCardOptionViewModel:function(J){var q=J.data;
return _.a(_.es,null,_.a("div",{class:"ytmLpOfferCardViewModelDivider"}),_.a(laB,{data:q,config:function(){var L;return{shouldDisplayRadioButton:(g().offerOptions||[]).length>1,isOptionSelected:q().id===((L=k())==null?void 0:L.id),handleRadioButtonClick:function(n){return void I(n)}}},
themeOverride:c}))}})),_.a("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.a(_.eS,{data:function(){var J;
return(J=k())==null?void 0:J.purchaseButtonOverride}},{buttonViewModel:_.oD}))))},"Nd");
AHB.idomCompat=!0;var sVw=_.H(function(e){var g=e.data;var c=e.themeOverride;e={};e=_.o6("ytmLpOfferCardSectionViewModelHost",(e.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var k;return c==null?void 0:(k=c())==null?void 0:k.useDarkTheme},e));
return _.a("ytm-lp-offer-card-section-view-model",null,_.a("div",{class:e},_.a(_.E,{cond:function(){return g().title!==void 0},
then:function(){return _.a("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.a("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.a(_.fa,{text:function(){return g().title}})),_.a(_.E,{cond:function(){return g().subtitle},
then:function(){return _.a("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.a(_.fa,{text:function(){return g().subtitle}}))}}))}}),_.a("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.a(_.eS,{data:function(){return g().offerCards}},{lpOfferCardViewModel:function(k){return _.a("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.a(AHB,{data:k.data,
themeOverride:c}))}})),_.a(_.E,{cond:function(){return g().footer},
then:function(){return _.a("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.a(_.fa,{text:function(){return g().footer}}))}})))},"Od");var FU4=_.H(function(e){var g=e.data;var c={badgeText:"New",badgeStyle:"BADGE_STATUS_NEW"};return _.a("lp-offer-table-cell-content-view-model",null,_.a("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.a(_.f4,null,_.a(_.DC,{when:function(){return g().title}},function(){return _.a(_.fa,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return g().title}})}),_.a(_.DC,{when:function(){return g().subTitle}},function(){return _.a(_.fa,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return g().subTitle}})}),_.a(_.DC,{when:function(){return g().featureDescription}},function(){return _.a(_.fa,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return g().featureDescription}})}),_.a(_.DC,{when:function(){return g().description}},function(){return _.a(_.fa,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return g().description}})}),_.a(_.DC,{when:function(){return g().iconType}},function(){return _.a("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.a(_.SU,{icon:function(){return g().iconType.toString()}}))}),_.a(_.DC,{when:function(){return g().purchaseButton}},function(){return _.a(_.eS,{data:function(){return g().purchaseButton}},{buttonViewModel:function(k){return _.a("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.a(_.oD,
{data:k.data}))}})}),_.a(_.DC,{when:function(){return g().note}},function(){return _.a(_.fa,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return g().note}})}),_.a(_.DC,{when:function(){return g().featureDetail}},function(){return _.a(_.fa,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return g().featureDetail}})}),_.a(_.DC,{when:function(){return g().badge}},function(){return _.a(_.eS,{data:function(){return g().badge}},{badgeViewModel:_.A8})}),_.a(_.DC,{when:function(){return g().includeBadgeSpacer}},function(){return _.a("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellBadgeSpacer",
"aria-hidden":"true"},_.a(_.A8,{data:c}))}))))},"Pd");
FU4.idomCompat=!0;var uyq=_.H(function(e){var g=e.data;return _.a("lp-offer-table-cell-view-model",null,_.a("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(g().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;"}}},_.a(_.eS,{data:function(){return g().contents}},{lpOfferTableCellContentViewModel:FU4})))},
"Qd");
uyq.idomCompat=!0;var djZ=_.H(function(e){var g=e.data;var c=e.lpTableIsFirstRow;var k=e.lpTableIsLastRow;var I=function(){return(c==null?0:c())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},J=function(){return(c==null?0:c())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(k==null?0:k())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.a("ytm-lp-offer-table-row-view-model",null,_.a("div",{class:"ytLpOfferTableRowViewModelHost"},_.a(_.eS,{data:function(){return g().rowHeaderCell}},{lpOfferTableCellViewModel:function(q){return _.a("div",{class:I},_.a(uyq,{data:q.data}))}}),_.a(_.eS,{data:function(){return g().contentCells}},{lpOfferTableCellViewModel:function(q){return _.a("div",{class:J},_.a(uyq,{data:q.data}))}})))},"Rd");
djZ.idomCompat=!0;var zSI=_.H(function(e){var g=e.data;var c=e.themeOverride;var k=_.Ss().resolve(_.NN(_.gb)),I=function(){return _.x(g().logo,SwM)||{}};
e={};return _.a("ytm-lp-offer-table-section-view-model",null,_.a("div",{class:"ytLpOfferTableViewModelHost"},_.a(_.E,{cond:function(){var J,q;return k&&k()||(c==null?0:c().useDarkTheme)?(J=I())==null?void 0:J.imageDark:(q=I())==null?void 0:q.imageLight},
then:function(J){return _.a(_.pv,{data:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var q,L,n;return(n=(q=I())==null?void 0:(L=q.accessibilityData)==null?void 0:L.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.a("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.a(_.fa,{text:function(){return g().title}})),_.a("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.a(_.fa,{text:function(){return g().subtitle}})),_.a(_.E,{cond:function(){return g().disclaimers},
then:function(J){return _.a("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.a(_.Yz,{each:J},function(q){return _.a("div",null,_.a(_.fa,{text:q}))}))}}),_.a("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.a(_.eS,{data:function(){return g().rows}},{lpOfferTableRowViewModel:function(J,q){return _.a(djZ,{data:J.data,
lpTableIsFirstRow:function(){return q()===0},
lpTableIsLastRow:function(){return q()===g().rows.length-1}})}})),_.a("div",{class:_.o6((e.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return g().hasFooterBackground},e))},_.a(_.E,{cond:function(){return g().footer},
then:function(){return _.a("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.a(_.fa,{text:function(){return g().footer}}))}}),_.a(_.E,{cond:function(){return g().footerTitle},
then:function(){return _.a("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.a(_.fa,{text:function(){return g().footerTitle}}))}}),_.a(_.E,{cond:function(){return g().footerDescription},
then:function(){return _.a("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.a(_.fa,{text:function(){return g().footerDescription}}))}}),_.a(_.E,{cond:function(){return g().footerDescriptions},
then:function(J){return _.a("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.a(_.Yz,{each:J},function(q){return _.a("div",null,_.a(_.fa,{text:q}))}))}}))))},"Sd");
zSI.idomCompat=!0;var HKk=_.H(function(e){var g=e.data;var c=e.themeOverride;var k=_.Ss().resolve(_.NN(_.gb)),I=function(){var L;return c==null?void 0:(L=c())==null?void 0:L.useDarkTheme},J=function(){var L,n;
return k&&k()||I()?(L=g().image)==null?void 0:L.imageDark:(n=g().image)==null?void 0:n.imageLight};
e={};e=_.o6("ytmLpSmallFeatureSectionViewModelHost",(e.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=I,e));var q=function(){var L,n,R;return(R=(L=g().image)==null?void 0:(n=L.accessibilityData)==null?void 0:n.label)!=null?R:""};
return _.a("ytm-lp-small-feature-section-view-model",{class:e},_.a(_.E,{cond:function(){return J()&&!ipV},
then:function(){return _.a("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.a(_.pv,{data:function(){return J()},
alt:q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.a("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.a("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.a(_.E,{cond:function(){return g().title},
then:function(L){return _.a(_.fa,{text:L})}})),_.a("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.a(_.fa,{text:function(){return g().description}}))))},"Td");
HKk.idomCompat=!0;var QVM=_.H(function(e){var g=e.data;var c=e.themeOverride;e={};return _.a("ytm-lp-small-feature-section-group-view-model",null,_.a("div",{class:_.o6("ytmLpSmallFeatureSectionGroupViewModelHost",(e.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(c==null||!c().useDarkTheme)},e))},_.a("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.a(_.eS,{data:function(){return g().smallFeatures}},{lpSmallFeatureSectionViewModel:function(k){return _.a("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.a(HKk,{data:k.data,
themeOverride:c}))}}))))},"Ud");
QVM.idomCompat=!0;_.sL(_.H(function(e){var g=e.data;var c=function(){return g().forcedTheme==="USER_INTERFACE_THEME_DARK"},k=function(){return g().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},I=function(){var q="",L,n;
var R=_.Ss().resolve(_.NN(_.gb));R=c()||(R==null?0:R())?(L=g().themedImageViewModel)==null?void 0:L.imageDark:(n=g().themedImageViewModel)==null?void 0:n.imageLight;(L=ihA((R==null?void 0:R.sources)||[]))&&L.url&&(q=k()?"background-image: linear-gradient(to bottom, transparent, "+(g().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.Km(L.url)+");":"background-image: url("+_.Km(L.url)+");");return q},J=function(){return{useDarkTheme:c()}};
e={};return _.a("yt-section-group-view-model",null,_.a("div",{class:_.o6("yt-lp-section-group-view-model",(e["yt-lp-section-group-view-model--premium-force-dark-mode"]=c,e["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return g().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},e))},_.a(_.E,{cond:function(){return I().length},
then:function(){var q={};return _.a("div",{class:_.o6("yt-lp-section-group-view-model__bg-image",(q["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=k,q)),style:I})}}),_.a("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.a(_.eS,{data:function(){return g().sections}},{lpHeaderUpsellBannerViewModel:function(q){return _.a(PIn,{data:q.data})},
lpFaqSectionViewModel:function(q){return _.a(jVw,{data:q.data,themeOverride:J})},
lpHeaderSectionViewModel:function(q){return _.a(iKu,{data:q.data,themeOverride:J})},
lpHeadlineSectionViewModel:function(q){return _.a(mj1,{data:q.data,themeOverride:J})},
lpLargeFeatureSectionViewModel:function(q){return _.a(peu,{data:q.data,themeOverride:J})},
lpOfferCardSectionViewModel:function(q){return _.a(sVw,{data:q.data,themeOverride:J})},
lpComplexOfferCardSectionViewModel:function(q){return _.a(DjI,{data:q.data})},
lpOfferTableSectionViewModel:function(q){return _.a(zSI,{data:q.data,themeOverride:J})},
lpSmallFeatureSectionGroupViewModel:function(q){return _.a(QVM,{data:q.data,themeOverride:J})},
lpCouponBannerViewModel:function(q){return _.a($jw,{data:q.data})}}))))},"Vd"),"yt-section-group-view-model",{props:{data:_.jx}});_.Ujv=_.H(function(e){var g=_.O1(HDg,function(){var q;return(q=e.data())==null?void 0:q.chipBarStateEntityKey}),c=function(){return e.data().disableDeselection},k=_.w(_.uF(function(){var q;
if(((q=g())==null?void 0:q.selectedIndex)!=void 0)return g().selectedIndex;var L,n;q=_.w(((L=e.data())==null?void 0:(n=L.chips)==null?void 0:n.entries())||[]);for(L=q.next();!L.done;L=q.next()){L=_.w(L.value);n=L.next().value;L=L.next().value;var R=void 0;if((R=_.x(L,_.Y8))==null?0:R.selected)return n}return-1})),I=k.next().value,J=k.next().value;
return _.a("chip-bar-view-model",{class:_.o6("ytChipBarViewModelHost",e.className),role:"tablist"},_.a(_.eS,{data:function(){return e.data().chips}},{chipViewModel:function(q,L){return _.a("div",{class:"ytChipBarViewModelChipWrapper"},_.a(_.rIw,{data:q.data,
selected:function(){return L()===I()},
callback:function(n,R){n=!!R;R=L();J(n?R:-1);var W,b=(W=e.data())==null?void 0:W.chipBarStateEntityKey;b&&n&&_.As(_.cY("chipBarStateEntity",b,{key:b,selectedIndex:R}))},
disableDeselection:e.disableDeselection||c}))}}))},"Wd");_.sL(_.Ujv,"chip-bar-view-model",{props:{data:_.TF,className:_.TF,disableDeselection:_.TF}});_.oSM=_.H(function(e){var g=e.data;e={};return _.a("divider-view-model",{class:_.o6("dividerViewModelHost",(e.dividerViewModelInsetThinPadding=function(){return g().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},e))},_.a("div",{class:_.o6("dividerViewModelBaseDivider",function(){return QKW(g().dividerStyle)})}))},"Xd");
_.oSM.idomCompat=!0;_.sL(_.oSM,"divider-view-model",{props:{data:_.jx}});var CV=new Map,el=new Map,ZD8=0,gS;var yYt=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],MHz={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var ZKw,VNw;ZKw=function(e){return function(g){return function(){return(g==null?void 0:g())!==void 0?String(g())+e:void 0}}};
_.GZ=ZKw("px");VNw=ZKw("s");_.xP=new _.AU("CHUNK_REGISTRY_TOKEN");_.kD(gxC,{debugName:"shortsLockupViewModel"});_.K4(_.xP,function(e){_.DS(e,"shortsLockupViewModel","dpUCFd",gxC)});var tN4=_.kD(kKW,{debugName:"shortsLockupViewModelWithDismissible"});_.K4(_.xP,function(e){_.DS(e,"shortsLockupViewModelWithDismissible","U9vrqd",kKW)});var Bd1=QOW(function(e){return e.targetGroupId}).useUpdatableData;_.$P=_.H(function(e){function g(Jq){return function(){var LC=l().numItemsPerGridRow,bW=Jq()*LC;LC=bW+LC;var RA,Xg;return(Xg=(RA=k().contents)==null?void 0:RA.slice(bW,LC))!=null?Xg:[]}}
var c=_.FA(e,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),k=c.data,I=c.layoutContainerWidth,J=c.shouldUseOwnContainerSize,q=c.marginSettings,L=c.useUpdatedMargin,n=YWA(),R=_.w(Bd1(function(){var Jq,LC;return{targetGroupId:(Jq=k().targetingContext)==null?void 0:(LC=Jq.targetGroupId)==null?void 0:LC[0]}})).next().value;
c=_.w(_.Wa(!0,void 0,"CC9Rdb"));var W=c.next().value,b=c.next().value,h=function(){var Jq,LC=(Jq=_.x(k().showMoreButton,_.$8))==null?void 0:Jq.trackingParams;LC&&_.KP(_.gL(),LC);b(!1)},X=function(){var Jq,LC=(Jq=_.x(k().showLessButton,_.$8))==null?void 0:Jq.trackingParams;
LC&&_.KP(_.gL(),LC);b(!0)};
c=_.w(_.cj({canHaveZeroSize:!1}));var D=c.next().value;c=c.next().value;var f=function(){var Jq;return(Jq=k().contentAspectRatio)!=null?Jq:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},l=_.xF(function(){var Jq=J()&&D.width()>0?D.width()||I():I(),LC,bW=(LC=e.data())==null?void 0:LC.responsiveContainerConfiguration;
Jq=_.xu({containerWidth:Jq,sizing:bW?D9(bW==null?void 0:bW.responsiveSize):"EXTRA_COMPACT",marginSettings:q(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:Jq.maxContainerWidth,numItemsPerGridRow:Jq.numItems,contentPadding:J()?Jq.margin:Jq.contentMargin,itemWidth:Jq.itemWidth,itemMargin:Jq.gutter/2}},void 0,"YIvnde"),A=function(){if(k().enableVerticalExpansion){if(W())return d();
var Jq,LC,bW=(LC=(Jq=k().contents)==null?void 0:Jq.length)!=null?LC:0;return Math.ceil(bW/l().numItemsPerGridRow)}return l().numItemsPerGridRow<=2?2:1},d=function(){var Jq;
return Math.ceil(((Jq=k().minCollapsedItemCount)!=null?Jq:1)/l().numItemsPerGridRow)},S=function(){return k().enableVerticalExpansion&&k().showLessButton&&!W()&&A()>d()},V=function(){var Jq,LC;
return k().enableVerticalExpansion&&k().showMoreButton&&W()&&((LC=(Jq=k().contents)==null?void 0:Jq.length)!=null?LC:0)>l().numItemsPerGridRow*d()},Q=function(){return!S()},y=function(){return!V()},O={};
return _.a("grid-shelf-view-model",{class:_.o6("ytGridShelfViewModelHost",e.className,(O.ytGridShelfViewModelHostHasBottomButton=function(){return S()||V()},O.ytGridShelfViewModelHostIsDismissed=function(){var Jq,LC=(Jq=R())!=null?Jq:{};
Jq=LC.behavior;var bW=LC.isDismissed,RA=LC.stamperContextTargetId;LC=LC.stamperIndex;if(!(_.G("mweb_see_fewer_shorts_group_dismissal")&&bW&&Jq&&RA))return!1;var Xg;bW=n;for(var Fg,oA,Zt=((Fg=bW)==null?0:Fg.targetId)?_.ds((oA=bW)==null?void 0:oA.targetId):void 0;((Xg=bW)==null?0:Xg.parent)&&Zt!==RA;)bW=bW.parent,oA=Fg=void 0,Zt=((Fg=bW)==null?0:Fg.targetId)?_.ds((oA=bW)==null?void 0:oA.targetId):void 0;Xg=Zt===RA?bW:void 0;if(!Xg)return!1;var Ev;RA=Xg==null?void 0:(Ev=Xg.stamperIndex)==null?void 0:
Ev.call(Xg);return Jq==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||Jq==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&RA!=null&&LC!=null&&RA>LC},O.ytGridShelfViewModelHostOptionalMediumLayoutMargin=L,O)),
el:_.mb(c),style:_.N2({"margin-left":(0,_.GZ)(function(){return l().contentPadding}),
"margin-right":(0,_.GZ)(function(){return l().contentPadding})})},_.a(_.E,{cond:function(){return _.x(k().header,cTI)},
then:function(Jq){return _.a(_.CW,{data:Jq,useUpdatedPadding:L,disableHorizontalPadding:!0})}}),_.a("div",null,_.a(_.Yz,{each:function(){return Array(A())}},function(Jq,LC){return _.a(NdB,{className:e.className,
items:g(LC),responsiveGridShelfLayout:l,contentAspectRatio:f})})),_.a("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.a(_.eS,{data:function(){return k().showMoreButton}},{buttonViewModel:function(Jq){return _.a("div",{hidden:y},_.a(_.oD,{data:Jq.data,
onClick:h}))}}),_.a(_.eS,{data:function(){return k().showLessButton}},{buttonViewModel:function(Jq){return _.a("div",{hidden:Q},_.a(_.oD,{data:Jq.data,
onClick:X}))}})))},"Zd");
_.$P.idomCompat=!0;var NdB=_.H(function(e){var g=e.items;var c=e.responsiveGridShelfLayout;var k=e.contentAspectRatio;e=e.className;var I=(0,_.GZ)(function(){return-c().itemMargin});
return _.a("div",{el:_.mb(oiW(function(J){a:{for(var q=g(),L=[],n=0;n<q.length;n++){var R=_.x(q[n],s5u);if(!R||R==null||!R.inlinePlayerData){J=null;break a}var W=J.children.item(n);if(!W){J=null;break a}L.push({thumbnailElement:W,videoData:R})}J={gridVideoPreviewData:{gridItems:L}}}return J})),
class:_.o6("ytGridShelfViewModelGridShelfRow",e),style:_.N2({"margin-left":I,"margin-right":I})},_.a(_.eS,{data:g,replacementWrapper:function(J){return _.a(SlY,{responsiveGridShelfLayout:c},J)}},{shortsLockupViewModel:function(J){return _.a(SlY,{responsiveGridShelfLayout:c},_.a(tN4,{data:J.data,
aspectRatio:function(){return k()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.G("mweb_enable_one_line_title_on_shorts")?1:_.G("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(J){return _.a(SlY,{responsiveGridShelfLayout:c},_.a(_.KS,{data:J.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"$d"),SlY=_.H(function(e){return _.a("div",{style:_.N2({width:(0,_.GZ)(function(){return e.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+e.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},e.children)},"ae");
_.$P.idomCompat=!0;_.sL(_.$P,"grid-shelf-view-model",{props:{data:_.jx,layoutContainerWidth:_.jx,shouldUseOwnContainerSize:_.jx,marginSettings:_.jx,useUpdatedMargin:_.jx,className:_.jx}});_.yHZ=_.H(function(e){var g=_.w(_.Wa(!1,void 0,"FVl30c")),c=g.next().value,k=g.next().value;g={};return _.a("yt-alert-banner-view-model",{class:_.o6("ytAlertBannerViewModelHost",e.className,function(){var I;a:switch((I=e.data())==null?void 0:I.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":I="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":I="ytAlertBannerViewModelWarning";break a;default:I="ytAlertBannerViewModelInformational"}return I},(g.ytAlertBannerViewModelDismissed=
c,g.ytAlertBannerViewModelFullbleed=e.fullbleed,g.ytAlertBannerViewModelNarrow=e.narrow,g.ytAlertBannerViewModelIsInRichGrid=e.isInRichGrid,g))},_.a(_.E,{cond:function(){var I;
return!((I=e.data())==null?0:I.hideIcon)},
then:function(){return _.a("div",{class:"ytAlertBannerViewModelIcon"},_.a(_.SU,{icon:function(){return"info_circle"}}))}}),_.a("div",{class:"ytAlertBannerViewModelOuterContainer"},_.a("div",{class:"ytAlertBannerViewModelContainer"},_.a("div",{class:"ytAlertBannerViewModelContent"},_.a("div",{class:"ytAlertBannerViewModelHeading"},_.a(_.fa,{text:function(){var I;
return(I=e.data())==null?void 0:I.heading}})),_.a("div",{class:"ytAlertBannerViewModelBody"},_.a(_.fa,{text:function(){var I;
return(I=e.data())==null?void 0:I.body}})))),_.a(_.eS,{data:function(){var I;
return(I=e.data())==null?void 0:I.actionButton}},{buttonViewModel:function(I){return _.a(_.oD,{data:I.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.a(_.eS,{data:function(){var I;
return(I=e.data())==null?void 0:I.dismissButton}},{buttonViewModel:function(I){return _.a(_.oD,{data:I.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var J;((J=e.data())==null?0:J.disableLocalDismissBehavior)||k(!0)}})}}))},"be");_.sL(_.yHZ,"yt-alert-banner-view-model",{props:{data:_.jx,fullbleed:_.jx,narrow:_.jx,isInRichGrid:_.jx,className:_.jx}});var KUn;_.YP=_.H(function(e){return _.a("basic-content-view-model",{class:_.o6("ytBasicContentViewModelHost",_.sz(e.className))},_.a(_.E,{cond:function(){return e.data().headline},
then:function(g){return _.a("div",{class:"ytBasicContentViewModelHeadline"},_.a(_.fa,{text:g}))}}),_.a(_.Yz,{each:function(){return e.data().paragraphs||[]},
keyBy:"INDEX"},function(g){return _.a("div",{class:"ytBasicContentViewModelParagraph"},_.a(_.E,{cond:function(){var c=g();return!!(c.header||c.customHeader||c.headline)},
then:function(){return _.a(KUn,{paragraph:g})}}),_.a(_.E,{cond:function(){return g().asset||g().text},
then:function(){return _.a("div",{class:"ytBasicContentViewModelParagraphContent"},_.a(_.E,{cond:function(){return g().asset},
then:function(c){return _.a("div",{class:"ytBasicContentViewModelParagraphAsset"},_.a(_.eS,{data:c},{contentPreviewImageViewModel:_.Zf}))}}),_.a(_.E,{cond:function(){return g().text},
then:function(c){return _.a("div",{class:"ytBasicContentViewModelParagraphText"},_.a(_.fa,{text:c}))}}))}}))}))},"ce");
KUn=_.H(function(e){var g=e.paragraph;return _.a(_.es,null,_.a(_.E,{cond:function(){return g().headline},
then:function(c){return _.a(_.fa,{text:c,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.a(_.eS,{data:function(){return g().header||g().customHeader}},{sectionHeaderViewModel:function(c){return _.a(_.CW,{data:c.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"de");_.OK1=_.H(function(e){function g(){var X,D;n((D=(X=I)==null?void 0:X.isKeyBoardInUse())!=null?D:!1)}
function c(){n(!1)}
function k(){var X;return L()?(X=e.focusedClassName)==null?void 0:X.call(e):""}
var I=_.Ss().resolve(_.NN(_.u7)),J=_.w(_.Wa(!1,void 0,"SgkTXc")),q=J.next().value;J=J.next().value;var L=q,n=J,R=function(){var X,D;return((X=e.toggleable)==null?0:X.call(e))?(D=e.toggled)==null?void 0:D.call(e):void 0},W=_.Ve(function(X){var D,f=(D=e.command)==null?void 0:D.call(e);
f&&_.Ss().resolve(_.xk).resolveCommand(f);var l;(l=e.onClick)==null||l.call(e,X)}),b=_.Ve(g),h=_.Ve(c);
return _.a(_.E,{cond:function(){var X;if(X=e.command){X=e.command();X=MyW(X);var D=X.href;X=!(!X.navigatingCommand||!D)}return X},
then:function(){return _.a(_.d4,Object.assign({},{command:e.command,style:e.style,ariaDescribedby:e.ariaDescribedby,ariaHidden:e.ariaHidden,ariaLabel:e.ariaLabel,ariaLabelledby:e.ariaLabelledby,ariaSelected:e.ariaSelected,disabled:e.disabled,dir:e.dir,tabIndex:e.tabIndex,target:e.target,title:e.title,onClick:e.onClick},{className:_.o6("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",e.className,function(){return k()}),
onFocusin:g,onFocusout:c,ariaCurrent:function(){var X,D;return(D=(X=e.ariaCurrent)==null?void 0:X.call(e))!=null?D:R()}}),e.children)},
else:function(){return _.a("button",{"on:click":W,"on:focusin":b,"on:focusout":h,class:_.o6("ytButtonOrAnchorHost","ytButtonOrAnchorButton",e.className,function(){return k()}),
style:e.style,"aria-describedby":e.ariaDescribedby,"aria-hidden":e.ariaHidden,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-pressed":R,dir:e.dir,disabled:e.disabled,tabindex:e.tabIndex,title:e.title},e.children)}})},"ee");var MNq=_.H(function(e){e=_.FA(e,{disabled:!1});var g=e.active,c=e.disabled;e={};e=_.o6("ytSwitchShapeTrack",(e.ytSwitchShapeTrackActive=function(){return g()},e.ytSwitchShapeTrackDisabled=function(){return c()},e));
var k={};k=_.o6("ytSwitchShapeKnob",(k.ytSwitchShapeKnobActive=function(){return g()},k));
return _.a("switch-shape",{class:"ytSwitchShapeHost"},_.a("div",{class:e}),_.a("div",{class:k}))},"fe");var CIw=_.H(function(e){var g=_.FA(e,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),c=g.data;e=g.className;var k=g.handleOnTapEventInParent,I=g.parentActive,J=g.onTap;g=_.w(_.uF(function(){var h;return(h=I())!=null?h:c().switchedOnByDefault||!1}));
var q=g.next().value,L=g.next().value,n=function(){return c().isDisabled},R=_.io("button");
g=_.Ve(function(h){return h.key==="Enter"?(h.preventDefault(),R.value.click(),!1):!0});
var W=_.Ve(function(h){if(c().handleOnTapEventInParent||k())return!0;if(n())return!1;if(J)return J(h),!0;JlA(c(),q(),h);L(!q());return!1}),b={};
b=_.o6("ytSwitchButtonViewModelButton",(b.ytSwitchButtonViewModelTappable=function(){return!n()},b));
return _.a("switch-button-view-model",{class:_.o6("ytSwitchButtonViewModelHost",e)},_.a("button",{el:R,class:b,"on:click":W,"on:keydown":g,"aria-label":function(){return q()?c().a11yLabelSwitchedOn:c().a11yLabelSwitchedOff},
"aria-checked":q,"aria-disabled":n,role:"switch"},_.a(MNq,{active:q,disabled:n})))},"ge");var e87=_.H(function(e){var g=e.data;var c=e.isLeading;var k=e.hideSelectionTextChevron;var I=e.isToggled;var J=e.shouldNotFillIcon;var q=function(){if(c())var b=g().leadingImage;else{var h;b=(h=g().trailingImage)!=null?h:_.$u(g().themedTrailingImage)}return b},L=function(){a:switch(g().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var b="expand_more";
break a;default:b="chevron_right"}return b};
e={};var n=_.o6("yt-list-item-view-model__image-container",(e["yt-list-item-view-model__leading"]=c,e["yt-list-item-view-model__trailing"]=function(){return!c()},e)),R=_.o6("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
e={};var W=_.o6("yt-list-item-view-model__accessory",(e["yt-list-item-view-model__leading"]=c,e["yt-list-item-view-model__trailing"]=function(){return!c()},e));
return _.a(_.E,{cond:function(){var b=g(),h=c();return!!(h&&(b.leadingImage||b.leadingAccessory)||!h&&(b.trailingImage||b.trailingButton||b.trailingButtons||b.selectionText||b.themedTrailingImage||b.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.a(_.es,null,_.a(_.E,{cond:q,then:function(b){return _.a("div",{class:n,"aria-hidden":"true"},_.a(_.pv,{data:b,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var h=(c()?g().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":g().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?c()?q3z(g().leadingIconAccessorySize):q3z(g().trailingIconAccessorySize):void 0;return h},
className:R,isToggled:function(){return!(J==null?0:J())&&(I==null?void 0:I())}}))}}),_.a(_.E,{cond:function(){return c()&&g().leadingAccessory},
then:function(){return _.a("div",{class:n},_.a(_.eS,{data:function(){return g().leadingAccessory}},{avatarViewModel:function(b){return _.a(_.E8,{data:b.data,
avatarButtonCustomClassName:R})},
collectionThumbnailViewModel:function(b){return _.a(qpn,{data:b.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.a(_.E,{cond:function(){return!c()&&g().trailingButton},
then:function(){return _.a("div",{class:"yt-list-item-view-model__button-container"},_.a(_.eS,{data:function(){return g().trailingButton}},{buttonViewModel:function(b){return _.a(_.oD,{data:b.data,
className:W})}}))}}),_.a(_.E,{cond:function(){var b;
return!c()&&((b=g().trailingButtons)==null?void 0:b.buttons)},
then:function(){return _.a("div",{class:"yt-list-item-view-model__button-container"},_.a(_.eS,{data:function(){var b;return(b=g().trailingButtons)==null?void 0:b.buttons}},{buttonViewModel:function(b){return _.a(_.oD,{data:b.data,
className:W})},
accountLinkButtonViewModel:function(b){return _.a(Klk,{data:b.data,className:W})},
switchButtonViewModel:function(b){return _.a(CIw,{data:b.data,className:W})},
subscribeButtonViewModel:function(b){return _.a(_.Ew,{data:b.data,isOverlay:!1,animateWidth:!1,className:W})},
toggleButtonViewModel:function(b){return _.a(_.vF,{data:b.data,className:W})}}))}}),_.a(_.E,{cond:function(){return!c()&&!!g().selectionText},
then:function(){return _.a(_.es,null,_.a(_.fa,{text:function(){return g().selectionText},
className:_.o6("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.a(_.E,{cond:function(){return!(k==null?0:k())},
then:function(){return _.a(_.SU,{icon:L,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.a(_.E,{cond:function(){return!c()&&g().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.a("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"he");var gp7=_.H(function(e){var g=e.data;return _.a(_.E,{cond:function(){return g().title||g().subtitle},
then:function(){return _.a("div",{class:"yt-list-item-view-model__text-wrapper"},_.a(_.E,{cond:function(){return g().title},
then:function(c){return _.a("div",{class:"yt-list-item-view-model__title-wrapper"},_.a(_.fa,{text:c,className:"yt-list-item-view-model__title"}))}}),_.a(_.E,{cond:function(){return g().subtitle},
then:function(c){return _.a(_.fa,{text:c,className:"yt-list-item-view-model__subtitle"})}}))}})},"ie");var cqS=_.H(function(e){var g=e.data;var c=e.hideSelectionTextChevron;var k=e.TrailingAccessory;var I=e.isToggled;var J=e.disabled;var q=e.isSelectItem;var L=e.isCompact;var n=e.inPopup;var R=e.disableHorizontalPadding;var W=e.isTappableWithoutSelect;var b=e.useButtonOrAnchor;var h=e.onTap;var X=e.shouldNotFillIcon;var D=function(){return _.a(gp7,{data:g,onTap:h,useButtonOrAnchor:b,isTappableWithoutSelect:W,isToggled:I})};
e={};return _.a("div",{class:_.o6("yt-list-item-view-model__label",(e["yt-list-item-view-model__container"]=function(){return!(q==null?0:q())},e["yt-list-item-view-model__container--disabled"]=function(){return!!g().isDisabled||!(J==null||!J())},e["yt-list-item-view-model__container--has-subtitle"]=function(){return!!g().subtitle},e["yt-list-item-view-model__container--compact"]=L,e["yt-list-item-view-model__container--tappable"]=W,e["yt-list-item-view-model__container--in-popup"]=n,e["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(R==null?void 0:R())&&!(q==null?0:q())},e))},_.a(e87,{data:g,
isLeading:!0,hideSelectionTextChevron:c,isToggled:I,shouldNotFillIcon:X}),_.a(_.E,{cond:function(){return(b==null?void 0:b())&&(W==null?void 0:W())},
then:function(){return _.a(_.OK1,{command:function(){return _.nV(g().rendererContext)},
onClick:h,className:"yt-list-item-view-model__button-or-anchor",toggleable:I!==void 0,toggled:I},_.a(D,null))},
else:function(){return _.a(D,null)}}),_.a(_.E,{cond:function(){return!!k},
then:function(){return _.a("div",{class:"yt-list-item-view-model__trailing"},k&&_.a(k,null))},
else:function(){return _.a(e87,{data:g,isLeading:!1,hideSelectionTextChevron:c,isToggled:I,shouldNotFillIcon:X})}}))},"je");var ItM=_.H(function(e){var g=_.FA(e,{checked:!1,disabled:!1});e=g.name;var c=g.onChange,k=g.onClick,I=g.checked,J=g.labelRenderable,q=g.hasLeadingLabel,L=g.labelClass,n=g.isCompact,R=g.selectElementClass,W=g.disableHorizontalPadding;g=g.disabled;var b="checkbox"+_.bN(_.X_),h=_.Ve(function(f){k==null||k(f);return!1}),X=_.Ve(function(f){c==null||c(f);
return!1}),D={};
return _.a("checkbox-shape",null,_.a("label",{class:_.o6("ytCheckboxShapeHost",L,(D.ytCheckboxShapeHostCompact=n,D.ytCheckboxShapeDisableHorizontalPadding=W,D))},_.a("input",{class:"ytCheckboxShapeInput",id:b,checked:I,name:e,type:"checkbox",disabled:g,"prop:checked":I,"on:change":X,"on:click":h}),_.a(_.E,{cond:function(){return!(q==null?0:q())},
then:function(){return _.a(kvl,{isLeading:!0,selectElementClass:R})}}),_.a(_.E,{cond:function(){return!!J},
then:function(){return _.a("div",{class:"ytCheckboxShapeLabel"},J==null?void 0:J())}}),_.a(_.E,{cond:q,
then:function(){return _.a(kvl,{isLeading:!1,selectElementClass:R})}})))},"ke");
ItM.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var kvl=_.H(function(e){var g=e.selectElementClass;e={};return _.a("div",{class:_.o6("ytCheckboxShapeCheckbox",g,(e.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(g==null?0:g())},e)),
"aria-hidden":"true"},_.a(_.SU,{icon:_.G("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.a(_.SU,{icon:_.G("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"le");_.fE=_.H(function(e){var g=e.name;var c=e.onChange;var k=e.onClick;var I=e.checked;var J=e.labelRenderable;var q=e.useCheckIcon;var L=e.hasLeadingLabel;var n=e.labelClass;var R=e.isCompact;var W=e.selectElementClass;var b=e.ariaLabel;var h=e.className;e=e.disabled;var X="radio"+_.bN(_.X_),D=_.io("input"),f=_.G("enable_ios_webview_radio_button_responsiveness"),l=_.Ve(function(O){D.value.checked=!(I==null||!I());c==null||c(O);return!1}),A=_.Ve(function(O){k==null||k(O);
return!1}),d=_.w(_.Wa(!1,void 0,"Ucg5gd")),S=d.next().value,V=d.next().value;
d=_.Ve(function(){var O;((O=_.Ss().resolve(_.NN(_.u7)))==null?0:O.isKeyBoardInUse())&&V(!0)});
var Q=_.Ve(function(){V(!1)}),y={};
return _.a("radio-shape",{class:_.o6("yt-radio-shape",h)},_.a("input",{el:D,class:"yt-radio-shape__input",id:X,"prop:checked":I,name:g,type:"radio",disabled:e,"on:change":l,"on:click":A,"aria-label":b,"on:focusin":d,"on:focusout":Q}),_.a("label",{class:_.o6("yt-radio-shape__label-container",n,(y["yt-radio-shape--compact"]=R,y["yt-radio-shape__label-container--keyboard-focused"]=S,y)),for:X},_.a(_.E,{cond:function(){return!(L==null?0:L())},
then:function(){return _.a(Jqq,{checked:I,useCheckIcon:q,isLeading:!0,selectElementClass:W,usePassthrough:f})}}),_.a(_.E,{cond:function(){return!!J},
then:function(){var O={};return _.a("div",{class:_.o6("yt-radio-shape__label",(O["yt-radio-shape--event-passthrough"]=f,O)),"aria-hidden":function(){return(b==null?0:b())?"true":"false"}},J==null?void 0:J())}}),_.a(_.E,{cond:L,
then:function(){return _.a(Jqq,{checked:I,useCheckIcon:q,isLeading:!1,selectElementClass:W,usePassthrough:f})}})))},"me");
_.fE.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};
var Jqq=_.H(function(e){var g=e.useCheckIcon;var c=e.selectElementClass;e=e.usePassthrough;var k=_.G("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE",I=_.G("enable_web_delhi_icons")?"CIRCLE_FULL":k,J={};return _.a("div",{class:_.o6("yt-radio-shape__radio",c,(J["yt-radio-shape__radio--check-icon"]=g,J["yt-radio-shape__radio--radio-default-style"]=function(){return!(c==null?0:c())},J["yt-radio-shape--event-passthrough"]=e,J)),
"aria-hidden":"true"},_.a(_.SU,{icon:function(){return(g==null?0:g())?"CHECK":k}}),_.a(_.SU,{icon:function(){return(g==null?0:g())?"CHECK":I},
active:function(){return!(g==null?0:g())}}))},"ne");_.j5=_.H(function(e){var g=e.data;var c=e.isMenuItem;var k=e.isCompact;var I=e.onTap;var J=e.trailingAccessory;var q=e.hideSelectionTextChevron;var L=e.disabled;var n=e.inPopup;var R=e.disableHorizontalPadding;var W=e.isOverlay;var b=e.isToggled;var h=e.ariaLabel;var X=e.ariaPressed;var D=e.shouldNotFillIcon;var f=!_.G("web_enable_killswitch_for_selectable_list_item_on_tap_fix");e=!_.G("web_enable_killswitch_for_skip_child_tags");var l=_.M2(function(an){return LIA(g(),an)}),A=function(){return(R==
null?void 0:R())||g().disableHorizontalPadding},d=function(){var an;
return!((an=g())==null||!an.entitySelectorType)},S=function(){return d()?Object.assign({},g(),l().data):g()},V=function(){return!!S().isDisabled||!(L==null||!L())},Q=_.azA(function(){return S().rendererContext}),y=function(){return!(S().isSelected===void 0||!S().selectionStyle||S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},O=function(){return(_.RB(S().rendererContext)||I)&&!y()},Jq={},LC=_.o6("yt-list-item-view-model__container",(Jq["yt-list-item-view-model__container--tappable"]=
function(){return _.RB(S().rendererContext)||y()},Jq["yt-list-item-view-model__container--compact"]=k,Jq["yt-list-item-view-model__container--in-popup"]=n,Jq["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(A==null?void 0:A())&&y()},Jq)),bW=function(){return S().leadingImage||S().leadingAccessory},RA=_.o6("yt-list-item-view-model__image-container",function(){return bW()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
Jq=_.LV();var Xg=_.w(_.Wa(!1,void 0,"ef0FO")),Fg=Xg.next().value,oA=Xg.next().value,Zt=function(){return _.a(cqS,{data:S,hideSelectionTextChevron:q,TrailingAccessory:J,isToggled:b,disabled:L,isSelectItem:y,isCompact:k,inPopup:n,disableHorizontalPadding:A,isTappableWithoutSelect:O,useButtonOrAnchor:Ev,onTap:I,shouldNotFillIcon:D})},Ev=_.G("web_button_or_anchor_list_item");
Xg={};return _.a("yt-list-item-view-model",{el:_.mb(_.EQ(function(){return V()?void 0:S().rendererContext},void 0,void 0,Ev?["A".toString(),
"BUTTON".toString()]:[]),rlp(function(an){if(!V()){var V6;if(V6=f)V6=S().selectionStyle,V6=V6==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||V6==="LIST_ITEM_SELECTION_STYLE_RADIO"||V6==="LIST_ITEM_SELECTION_STYLE_DEFAULT";V6||I==null||I(an)}},e?["A".toString(),
"BUTTON".toString()]:[]),GEp(function(){return O==null?void 0:O()},{focusin:function(){var an;
((an=_.Ss().resolve(_.NN(_.u7)))==null?0:an.isKeyBoardInUse())&&oA(!0)},
focusout:function(){oA(!1)}})),
class:_.o6("yt-list-item-view-model",(Xg["yt-list-item-view-model--is-overlay"]=W,Xg["yt-list-item-view-model--keyboard-focused"]=Fg,Xg["yt-list-item-view-model--hidden"]=function(){return d()?l().isHidden:!1},Xg)),
role:function(){return(c==null?0:c())?"menuitem":"listitem"},
tabindex:function(){var an=O();var V6=Ev;y();an=V6?void 0:_.G("web_enable_killswitch_tabindex_fix")?I||an?0:void 0:an?0:void 0;return an},
"on:keydown":Jq,"aria-label":function(){var an;return(h==null?void 0:h())||((an=Q())==null?void 0:an.label)},
"aria-pressed":X},_.a(_.E,{cond:y,then:function(){return _.a(_.f4,null,_.a(_.DC,{when:function(){return S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.a(ItM,{labelRenderable:Zt,
isCompact:k,checked:function(){return S().isSelected},
hasLeadingLabel:function(){return!!bW()},
labelClass:LC,selectElementClass:RA,disableHorizontalPadding:A,onClick:f?I:void 0,disabled:V})}),_.a(_.DC,{when:function(){return S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.a(_.fE,{labelRenderable:Zt,
isCompact:k,checked:function(){return S().isSelected},
hasLeadingLabel:function(){return!!bW()},
labelClass:LC,selectElementClass:RA,onClick:f?I:void 0,disabled:V})}),_.a(_.DC,{when:function(){return S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.a(_.fE,{labelRenderable:Zt,
isCompact:k,checked:function(){return S().isSelected},
hasLeadingLabel:function(){return!!bW()},
labelClass:LC,selectElementClass:RA,useCheckIcon:!0,onClick:f?I:void 0,disabled:V})}),_.a(_.$z,null,Zt))},
else:Zt}))},"oe");
_.j5.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.iY=_.H(function(e){var g=_.w(_.cj({canHaveZeroSize:!1})),c=g.next().value;g=g.next().value;var k=function(){return Y3A(c.width(),e.data().responsiveContainerConfiguration)||XsU(c.width(),e.data().linearLayoutContainerConfiguration)};
return _.a("yt-linear-layout-view-model",{el:_.mb(g),class:"ytLinearLayoutViewModelHost"},_.a("div",{class:_.o6("ytLinearLayoutViewModelContainer",function(){a:switch(e.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var I="ytLinearLayoutViewModelHorizontal";break a;default:I="ytLinearLayoutViewModelVertical"}return I},function(){var I=e.data().linearLayoutContainerConfiguration;
return I?[WI8(I.flexDirection),bkq(I.justifyContent),hIW(I.alignItems)].join(" "):""}),
style:function(){var I;var J=((I=k())==null?void 0:I.containerStyles)||{};return _.N2(J)()}},_.a(_.eS,{data:function(){return e.data().items},
wrapper:function(I,J,q){return _.a("div",{style:function(){var L=q(),n;if((n=k())==null)L=void 0;else{var R=n.itemStyles,W,b;var h=(b=(W=e.data().items)==null?void 0:W.length)!=null?b:0;L=R.call(n,L===0,L===h-1)}return _.N2(L||{})()}},I())}},{lockupViewModel:function(I){return _.a(_.KS,{data:I.data,
containerLayoutConfig:function(){var J;return(J=k())==null?void 0:J.containerLayoutConfig}})},
basicContentViewModel:_.YP,buttonViewModel:_.oD,linearLayoutViewModel:_.iY,thumbnailViewModel:zA,descriptionPreviewViewModel:_.Mm,listItemViewModel:_.j5,sectionHeaderViewModel:_.CW})))},"pe");_.sL(_.iY,"yt-linear-layout-view-model",{props:{data:_.jx}});_.sL(_.ef,"chips-shelf-view-model",{props:{data:_.jx,callback:_.TF,selectionBehavior:_.jx,disableChipsScrollAnimation:_.jx,nextButtonStyle:_.jx}});_.sL(_.H(function(e){return _.a("yt-comment-filter-context-view-model",{class:_.o6("ytCommentFilterContextHost",e.className)},_.a(_.fa,{text:function(){return e.data().text}}))},"qe"),"yt-comment-filter-context-view-model",{props:{data:_.jx,
className:_.TF}});_.vpv=_.H(function(e){var g=e.data;var c=e.onTap;var k=e.onSwitch;var I=e.overrideDisabled;e=e.disableHorizontalPadding;var J=_.w(_.uF(function(){var h;return((h=wsq(W()))==null?void 0:h.switchedOnByDefault)||!1})),q=J.next().value,L=J.next().value;
J=_.w(_.Wa(!1,void 0,"V0hCrd"));var n=J.next().value,R=J.next().value,W=function(){var h;if(!(h=g().switchButton)){var X=g();h=I==null?void 0:I();X={switchOnCommand:X.switchOnCommand,switchOffCommand:X.switchOffCommand,switchedOnByDefault:X.switchedOnByDefault,isDisabled:X.isDisabled,a11yLabelSwitchedOn:X.a11yLabelSwitchedOn,a11yLabelSwitchedOff:X.a11yLabelSwitchedOff};h!==void 0&&(X.isDisabled=h);h={switchButtonViewModel:X}}return h},b=function(h){var X=wsq(W());
!X||X.isDisabled||g().ignoreTapUntilCommandCompletes&&n()||(c==null||c(h),JlA(X,q(),h,g().ignoreTapUntilCommandCompletes,R),L(!q()),k==null||k(q()))};
return _.a("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.a(_.j5,{data:function(){return{title:g().title,subtitle:g().attributedSubtitle,leadingImage:g().leadingImage,leadingAccessory:g().leadingAccessory,isDisabled:g().isDisabled}},
onTap:b,isToggled:q,shouldNotFillIcon:!0,trailingAccessory:function(){return _.a(_.eS,{data:W},{switchButtonViewModel:function(h){return _.a(CIw,{data:h.data,parentActive:q,onTap:b})}})},
disableHorizontalPadding:e}))},"re");var wzj=_.H(function(e){var g=e.data;e=e.className;var c=function(){var L;return((L=k())==null?void 0:L.isToggled)!==void 0},k=_.M2(function(L){a:{var n=g().entityKey,R=g().entitySelectorType;
if(R)switch(R){case "TOGGLEABLE_LIST_ITEM_ENTITY_SELECTOR_TYPE_TOGGLE_MENU_SERVICE_ITEM_ENTITY":if(!n)break;var W,b;L={isToggled:(b=(W=_.Jg.toggleMenuServiceItemEntitySelector(L,n))==null?void 0:W.isToggled)!=null?b:!1};break a;default:_.mN(new _.E2("Error: entitySelectorType defined but not matched in selector.",L,R))}L=void 0}return L}),I=_.w(_.uF(function(){var L,n,R;
return c()?(L=k())==null?void 0:L.isToggled:(n=g())==null?void 0:(R=n.initialState)==null?void 0:R.isToggled})),J=I.next().value,q=I.next().value;
return _.a("toggleable-list-item-view-model",{el:_.mb(_.EQ(function(){return g().rendererContext},{onTap:function(L,n){n();
c()||q(!J())}})),
class:_.o6("toggleableListItemViewModelHost",e)},_.a(_.E,{cond:function(){if(J()){var L=g().toggledListItem;L=_.x(L,_.IB)}else L=g().defaultListItem,L=_.x(L,_.IB);return L},
then:function(L){return _.a(_.j5,{data:L,isToggled:J,ariaLabel:function(){var n=J()?g().toggledListItem:g().defaultListItem,R;n=(R=_.x(n,_.IB))==null?void 0:R.rendererContext;var W;return(W=_.x(n,_.Jh))==null?void 0:W.label},
ariaPressed:function(){return J()}})}}))},"se");var qCj=_.C_("DOWNLOAD",{},"Download"),Lez=_.C_("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),rqq=_.C_("RETRY",{},"Retry"),atg=_.C_("PAUSE_DOWNLOADING",{},"Pause downloading"),npX=_.C_("RESUME_DOWNLOAD",{},"Resume download"),fzA={text:qCj,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},vj={text:Lez,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},POC={text:rqq,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
jrp={text:atg,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},ikz={text:npX,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var R8x=_.H(function(e){var g=function(){var L=e.data();L=_.nV(L.rendererContext);var n;return(n=_.x(L,_.yF))==null?void 0:n.videoId},c=_.M2(function(L){var n=g(),R=TUK(e.data());
return n?_.hw(L,n):R?_.Xi(L,R):"TRANSFER_STATE_UNKNOWN"}),k=_.O1(_.yzv,g),I=_.M2(function(L){return _.osq(L,g(),TUK(e.data()))}),J=function(){return psV(c(),k(),_.nV(e.data().rendererContext),!!TUK(e.data()))},q=function(){return I()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.a("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:q},_.a(_.E,{cond:function(){return!q()},
then:function(){return _.a(_.E,{cond:J,then:function(L){return _.a(_.Yz,{each:L},function(n){return _.a(_.j5,{data:n,isCompact:e.isCompact,isMenuItem:e.isMenuItem,inPopup:e.inPopup,disableHorizontalPadding:e.disableHorizontalPadding})})}})}}))},"te");
R8x.idomCompat=!0;_.Epl=_.H(function(e){var g=e.data;var c=e.isCompact;var k=e.hideSelectionTextChevron;var I=e.inPopup;var J=e.isOverlay;var q=e.disableHorizontalPadding;var L=function(){return lzv(g())&&(I==null?void 0:I())},n=_.G("web_list_view_model_listbox_killswitch")?"menu":"listbox";
e=_.Ve(function(W){if(I!=null&&I()&&_.G("web_enable_arrow_key_navigation_in_dropdown")){var b=_.wzV(W.currentTarget);if(b.length!==0){var h=Array.prototype.indexOf.call(b,document.activeElement);switch(W.key){case "ArrowDown":W.preventDefault();Alz(b,h);break;case "ArrowUp":W.preventDefault();srp(b,h);break;case "Tab":W.preventDefault(),W.shiftKey?srp(b,h):Alz(b,h)}}}});
var R={};return _.a("yt-list-view-model",{class:_.o6("ytListViewModelHost",(R.ytListViewModelHostKaiosSpatNav=ipV&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",R)),role:function(){return L()?n:"list"},
style:_.N2({"max-height":function(){var W,b=(W=g())==null?void 0:W.visibleElementCount;if(b)return(b+.5)*40+"px"}}),
"on:keydown":e},_.a(_.eS,{data:function(){return g().listItems}},{listItemViewModel:function(W){return _.a(_.j5,{data:W.data,
isMenuItem:L,isCompact:c,hideSelectionTextChevron:k,inPopup:I,isOverlay:J,disableHorizontalPadding:q})},
toggleableListItemViewModel:function(W){return _.a(wzj,{data:W.data})},
downloadListItemViewModel:function(W){return _.a(R8x,{data:W.data,isMenuItem:L,isCompact:c,inPopup:I,disableHorizontalPadding:q})},
switchListItemViewModel:function(W){return _.a(_.vpv,{data:W.data,disableHorizontalPadding:q})}}))},"ue");
_.Epl.idomCompat=!0;var We0=_.H(function(e){var g=e.data;var c=e.isOverlay;e={};return _.a("yt-course-perks-view-model",{class:_.o6("ytwCoursePerksViewModelHost",(e.ytwCoursePerksViewModelHostOverlay=c,e))},_.a("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.a(_.fa,{text:function(){return g().title}})),_.a("div",null,_.a(_.E,{cond:function(){return g().perks},
then:function(k){return _.a(_.Epl,{data:function(){return{listItems:k()}},
isCompact:!0,isOverlay:c})}})))},"ve");_.sL(We0,"yt-course-perks-view-model",{props:{data:_.TF,isOverlay:_.TF}});_.sL(_.H(function(e){var g=e.data;return _.a("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.a("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.a(_.fa,{text:function(){return g().title}})),_.a("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.a(_.fa,{text:function(){return g().progressSummary}})),_.a("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.a("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.N2({width:function(){return g().progressPercentage*100+"%"}})})))},"we"),"yt-course-progress-view-model",{props:{data:_.jx}});var bCM=_.H(function(e){var g={};return _.a("yt-progress-view-model",{class:_.o6("ytwProgressViewModelHost",(g.ytwProgressViewModelHostOverlay=_.sz(e.isOverlay,!1),g))},_.a(_.E,{cond:function(){return e.data().progressSummary},
then:function(c){return _.a("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.a(_.fa,{text:c}))}}),_.a("div",{class:"ytwProgressViewModelHostProgressContainer"},_.a(_.E,{cond:function(){return e.data().leadingLabel},
then:function(c){return _.a("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.a(_.fa,{text:c}))}}),_.a("div",{class:"ytwProgressViewModelHostProgressBar"},_.a("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(e.data().progressPercentage||0)*100+"%"}}))))},"xe");var PE=_.H(function(e){var g=e.starNumber;var c=e.data;var k=function(){var I;return((I=c())==null?void 0:I.rating)||0};
return _.a(_.E,{cond:function(){return g()},
then:function(I){return _.a(_.f4,null,_.a(_.DC,{when:function(){return k()>=I()-.25}},function(){return _.a("div",{class:"ytStarRatingViewModelHostStar"},_.a(_.SU,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.a(_.DC,{when:function(){return k()>=I()-.75}},function(){return _.a("div",{class:"ytStarRatingViewModelHostStar"},_.a(_.SU,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.a(_.$z,null,function(){return _.a("div",{class:"ytStarRatingViewModelHostStar"},_.a(_.SU,{icon:"STAR",
size:function(){return 24}}))}))}})},"ye"),h8l=_.H(function(e){e=e.data;
return _.a("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.a(PE,{starNumber:1,data:e}),_.a(PE,{starNumber:2,data:e}),_.a(PE,{starNumber:3,data:e}),_.a(PE,{starNumber:4,data:e}),_.a(PE,{starNumber:5,data:e}))},"ze");_.sL(_.H(function(e){var g=_.FA(e,{}).data;return _.a("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.a("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.a(_.fa,{text:function(){var c;return(c=g())==null?void 0:c.title}})),_.a("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.a(_.E,{cond:function(){return g().starProgressViewModels},
then:function(c){return _.a("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.a(_.eS,{data:c},{progressViewModel:bCM}))}}),_.a("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.a("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.a(_.fa,{text:function(){var c;
return(c=g())==null?void 0:c.averageRatingLabel}})),_.a(_.E,{cond:function(){return g().zeroStateText},
then:function(c){return _.a("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.a(_.fa,{text:c}))}}),_.a(_.E,{cond:function(){return g().starRatingViewModel},
then:function(c){return _.a("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.a(_.eS,{data:c},{starRatingViewModel:h8l}))}}),_.a("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.a(_.fa,{text:function(){var c;
return(c=g())==null?void 0:c.totalRatingsCountLabel}})))))},"Ae"),"yt-course-ratings-view-model",{props:{data:_.TF}});var XzQ;XzQ={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.Gvz=_.H(function(e){var g=_.io("yt-learning-journey-loader-view-model"),c=_.NH();_.Tr(function(){requestAnimationFrame(function(){var I;(I=c.lottieEl)==null||I.addEventListener("DOMLoaded",function(){var J;(J=e.onLottieLoaded)==null||J.call(e)})});
var k=e.data().browseEndpoint;k&&_.GF(k)});
return _.a("yt-learning-journey-loader-view-model",{class:_.o6("learningJourneyLoaderViewModelHost",e.className),"data-target-id":function(){return e.data().targetId||""},
el:g},_.a(_.Sx,{className:_.o6("learningJourneyLoaderViewModelLoader",e.className),animationName:function(){return XzQ.animationConfig.name},
data:XzQ,animationRef:c}))},"Ce");_.sL(_.Gvz,"yt-learning-journey-loader-view-model",{props:{data:_.jx,className:_.TF,onLottieLoaded:_.TF}});var xUv=_.H(function(e){var g=function(){return e.data()},c=function(){return!!_.LL(_.wS(g())).optionColor},k=_.w(_.Wa(-1,void 0,"gXOYR")),I=k.next().value,J=k.next().value,q=function(b){return I()===b},L=function(b){return g().correctAnswerIndex===b},n=function(){return I()!==-1};
k=_.w(_.Wa("",void 0,"BFwDQb"));var R=k.next().value,W=k.next().value;return _.a("learning-journey-quiz-view-model",{class:_.o6("learningQuizComponentHost","learningJourneyQuizYoututorHost",e.className),style:_.N2({background:function(){return _.LL(_.wS(g())).backgroundColor}})},_.a("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},R),_.a("div",{class:"learningQuizComponentQuizContainer"},_.a("div",{class:"learningQuizComponentQuiz"},_.a("div",{class:"learningQuizComponentQuizContent"},_.a(_.E,{cond:function(){return!!g().aiGeneratedQuizLabel},
then:function(){return _.a("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.a(_.fa,{text:function(){return g().aiGeneratedQuizLabel}}))}}),_.a("div",{class:"learningQuizComponentQuizHeader",
style:_.N2({"align-items":function(){return g().overflowMenu?"start":"center"}})},_.a("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.N2({"min-height":function(){return g().overflowMenu?"48px":"26px"}})},_.a("div",{class:"learningJourneyQuizYoututorText",
style:_.N2({color:function(){return _.LL(_.wS(g())).primaryTextColor}})},_.a(_.fa,{text:function(){return g().questionHeaderText}})))),_.a("div",{class:"learningQuizComponentQuizSubheader",
style:_.N2({color:function(){return _.LL(_.wS(g())).secondaryTextColor}})},_.a(_.fa,{text:function(){var b=g();
return n()?b.explanationText:b.questionSubheaderText}}))),_.a("div",{role:"group",
class:_.o6("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.a(_.Yz,{each:function(){return g().optionsData||[]}},function(b,h){var X={};
return _.a("button",{class:_.o6("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(X.learningQuizComponentQuizHover=function(){return!n()},X.learningQuizComponentQuizOptionWithCustomColor=c,X.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return n()&&L(h())},X.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return I()!==g().correctAnswerIndex&&q(h())},X.learningQuizComponentQuizIncorrectShake=
function(){return I()!==g().correctAnswerIndex&&q(h())},X)),
"on:click":_.Ve(function(){_.$y(_.gL(),{data:b});if(n())return!1;J(h());var D,f;W(L(h())?((D=g().successTitle)==null?void 0:D.content)||"":((f=g().failureTitle)==null?void 0:f.content)||"");return!1}),
style:_.N2({background:"transparent"}),"aria-description":function(){var D,f;return n()?L(h())?(D=g().successTitle)==null?void 0:D.content:(f=g().failureTitle)==null?void 0:f.content:""},
"aria-disabled":n},_.a("div",{class:"learningQuizComponentQuizOptionContainer"},_.a(_.fa,{text:b.optionText}),_.a(_.E,{cond:function(){var D=h();return n()&&(q(D)||L(D))},
then:function(){var D={};return _.a(_.SU,{className:_.o6("learningJourneyQuizYoututorOptionIcon",(D.learningQuizComponentQuizPulse=function(){return I()===g().correctAnswerIndex&&L(h())},D)),
size:24,icon:function(){return L(h())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.a(_.E,{cond:n,
then:function(){return _.a("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.a("div",{class:"learningJourneyQuizYoututorExplanationText"},_.a(_.fa,{text:function(){return g().explanationHeaderText}})),_.a(_.fa,{text:function(){return g().optionsData[I()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"De");
xUv.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var zIU=function(){},DUo;
(DUo=window.requestIdleCallback)==null||DUo.bind(window);var u3W=new Set,FIt=null;var $Ul;_.YC7=_.H(function(e){var g=null,c=null,k=null,I=function(){return e.data()},J=function(){return _.LL(_.wS(I()))},q=function(){return!!J().optionColor},L=_.w(_.Wa(-1,void 0,"H2gnQb")),n=L.next().value,R=L.next().value,W=function(V){return n()===V},b=function(V){return I().correctAnswerIndex===V},h=function(){return n()!==-1},X=function(){return n()===I().correctAnswerIndex},D=function(){var V=I(),Q=h(),y=X();
return Q?y?V.successTitle:V.failureTitle:V.questionHeaderText},f=function(){var V=h(),Q=X();
return V?Q?264685:264684:264683},l=function(){var V=I();
return h()?V.explanationText:V.questionSubheaderText},A=function(){return!!I().video},d=function(V){return X()&&b(V)},S=_.Ve(function(){R(-1);
return!1});
return _.a(_.E,{cond:function(){return I().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.a(xUv,{data:function(){return I()}})},
else:function(){return _.a("learning-journey-quiz-view-model",{class:_.o6("learningQuizComponentHost",e.className),style:_.N2({background:function(){return J().backgroundColor}})},_.a(_.E,{cond:A,
then:function(){return _.a("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.N2({background:function(){return J().videoBackgroundColor}})},_.a(_.eS,{data:function(){return I().video}},{lockupViewModel:function(V){return _.a(_.KS,{data:V.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.a("div",{class:"learningQuizComponentQuizContainer"},_.a("div",{class:"learningQuizComponentQuiz"},_.a("div",{class:"learningQuizComponentQuizContent"},_.a(_.E,{cond:function(){return!!I().aiGeneratedQuizLabel},
then:function(){return _.a("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.a(_.fa,{text:function(){return I().aiGeneratedQuizLabel}}))}}),_.a("div",{class:"learningQuizComponentQuizHeader",
style:_.N2({"align-items":function(){return I().overflowMenu?"start":"center"}})},_.a("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.N2({"min-height":function(){return I().overflowMenu?"48px":"26px"}})},_.a("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.mb(function(V){_.rS(f(),V,g,function(Q){g=Q})}),
style:_.N2({color:function(){return J().primaryTextColor}}),
"client-ve-type":f},_.a(_.fa,{text:D}))),_.a("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.a(_.E,{cond:h,then:function(){return _.a("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.mb(function(V){_.rS(264687,V,c,function(Q){c=Q})}),
"on:click":S,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.a("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.N2({fill:function(){return J().primaryTextColor}})},_.a("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"})))}}),
_.a(_.eS,{data:function(){return I().overflowMenu}},{buttonViewModel:function(V){return _.a(_.oD,{data:V.data})}}))),_.a("div",{class:"learningQuizComponentQuizSubheader",
el:_.mb(function(V){_.rS(264688,V,k,function(Q){k=Q})}),
style:_.N2({color:function(){return J().secondaryTextColor}}),
"client-ve-type":264688},_.a(_.fa,{text:l}))),_.a("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.a(_.Yz,{each:function(){return I().optionsData||[]}},function(V,Q){var y={};
return _.a("button",{class:_.o6("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(y.learningQuizComponentQuizHover=function(){return!h()},y.learningQuizComponentQuizOptionWithCustomColor=q,y.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return d(Q())},y.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!X()&&W(Q())},y.learningQuizComponentQuizIncorrectShake=function(){return!X()&&
W(Q())},y.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return h()&&!W(Q())},y)),
"on:click":_.Ve(function(){_.$y(_.gL(),{data:V});if(h())return!1;R(Q());return!1}),
style:_.N2({background:function(){var O=Q();return h()&&W(O)?"":q()?J().optionColor:"transparent"}}),
"aria-disabled":h},_.a("div",{class:"learningQuizComponentQuizOptionContainer"},_.a(_.E,{cond:h,then:function(){return _.a($Ul,{isOptionCorrect:b,optionIndex:Q,isOptionSelectedAndCorrect:d,colors:J})}}),_.a(_.fa,{text:V.optionText})))})))))}})},"Ee");
$Ul=_.H(function(e){var g={};return _.a("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var c=e.optionIndex();return e.isOptionCorrect(c)?"0 0 24 24":"0 -960 960 960"},
class:_.o6("learningJourneyQuizViewModelQuizOptionIconLeading",(g.learningQuizComponentQuizPulse=function(){return e.isOptionSelectedAndCorrect(e.optionIndex())},g)),
style:_.N2({fill:function(){return e.colors().primaryTextColor}})},_.a("path",{d:function(){var c=e.optionIndex();
return e.isOptionCorrect(c)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))},"Fe");
_.YC7.idomCompat=!0;_.sL(_.YC7,"learning-journey-quiz-view-model",{props:{data:_.jx,className:_.jx}});var ftq=_.H(function(e){var g=_.w((0,_.P1)(function(){var q;return{targetId:(q=e.data().config)==null?void 0:q.suspenseKey,contents:[e.data()]}})).next().value,c=_.Ss().resolve(_.xk),k=function(){var q=g().contents.length>0?g().contents[0]:void 0;
return q==null?void 0:q.config},I=function(){var q;
return(q=k())==null?void 0:q.entityTriggerConfig},J=_.O1(mhC,function(){var q,L;
return(L=(q=I())==null?void 0:q.entityKey)!=null?L:""});
_.AV(function(){var q,L,n,R=(n=Number((q=I())==null?void 0:(L=q.invalidationTimestamp)==null?void 0:L.seconds))!=null?n:0,W,b,h;if(((h=Number((W=J())==null?void 0:(b=W.lastUpdated)==null?void 0:b.seconds))!=null?h:0)>R){var X;(q=(X=k())==null?void 0:X.continuationCommand)&&c.resolveCommand(q)}},"tC8nKe");
return _.a("yt-suspense-view-model",{class:_.o6("ytSuspenseViewModelHost")},_.a(_.eS,{data:function(){var q;return(q=k())==null?void 0:q.contents}},{lockupViewModel:_.KS}))},"He");var jAO=_.H(function(e){var g=_.FA(e,{palette:void 0,isLastItem:!1}),c=g.palette,k=g.isLastItem,I=function(){return e.data().isHighlighted},J=function(){var n;
return HkA((n=c())==null?void 0:n.iconDisabledColor)},q=function(){var n;
return HkA((n=c())==null?void 0:n.primaryTitleColor)},L=function(){var n;
return HkA((n=c())==null?void 0:n.secondaryTitleColor)};
g={};return _.a("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.mb(_.EQ(function(){return e.data().rendererContext}))},_.a(_.eS,{data:function(){return e.data().thumbnail}},{thumbnailViewModel:zA}),_.a("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.a("div",{class:_.o6("ytMacroMarkerListItemViewModelTimeDescription",(g.ytMacroMarkerListItemViewModelHighlighted=I,g)),
style:_.N2({"background-color":function(){return I()?q():J()},
color:function(){return I()?"":L()}})},_.a(_.fa,{text:function(){return e.data().timestamp}})),_.a("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.N2({"background-color":function(){return k()?"transparent":J()}})}),_.a("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(I()?q():L())}},_.a(_.fa,{text:function(){return e.data().title}}))))},"Ie");_.mo=_.H(function(e){function g(zv){d("transform:translateX("+(_.uo("HTML_DIR")==="rtl"?"":"-")+zv+"px)")}
function c(zv){return Math.min(Math.max(zv,0),A()-O())}
function k(zv){var XM=Q()+RA();if(!I())return 0;zv===void 0&&(zv=Math.round(O()/XM)||1);return zv*XM}
var I=function(){return e.data().items||[]},J=function(){return e.data().previousButton},q=function(){return e.data().nextButton},L=function(){var zv,XM;
return(XM=(zv=e.disableArrows)==null?void 0:zv.call(e))!=null?XM:!1},n=function(){var zv;
return!((zv=e.forceNarrowLayout)==null||!zv.call(e))},R=_.xF(function(){var zv;
return!((zv=e.centerAlignItems)==null||!zv.call(e))&&A()<=O()},void 0,"iGOqxd"),W=_.io("horizontal-shelf-view-model"),b=_.io("div"),h=_.w(_.Wa(0,void 0,"tieKmf")),X=h.next().value,D=h.next().value;
h=_.w(_.Wa(0,void 0,"W2lvv"));var f=h.next().value,l=h.next().value,A=f;f=_.w(_.Wa("",void 0,"PEePkc"));h=f.next().value;var d=f.next().value;f=_.w(_.Wa(0,void 0,"c7a4W"));var S=f.next().value,V=f.next().value,Q=S;f=_.w(_.Wa(0,void 0,"KGhRJf"));S=f.next().value;var y=f.next().value,O=S;f=_.w(_.Wa(!1,void 0,"fgWgyc"));var Jq=f.next().value,LC=f.next().value;f=_.w(_.Wa(0,void 0,"pe79rc"));S=f.next().value;var bW=f.next().value,RA=S;f=_.w(_.Wa(0,void 0,"CTqisc"));var Xg=f.next().value,Fg=f.next().value;
f=_.w(_.Wa(0,void 0,"S2Yf1b"));var oA=f.next().value,Zt=f.next().value;f=_.w(_.Wa("50%",void 0,"kjP5ke"));var Ev=f.next().value,an=f.next().value,V6=function(){var zv,XM=(zv=e.data())==null?void 0:zv.responsiveContainerConfiguration,Su,p1;return XM?D9(XM==null?void 0:XM.responsiveSize):(p1=(Su=e.sizing)==null?void 0:Su.call(e))!=null?p1:"STANDARD"},bs=function(){var zv,XM=(zv=e.data())==null?void 0:zv.responsiveContainerConfiguration;
return XM?XM.enableContentSpecificAspectRatio===!1:!1};
f=_.xF(function(){return!L()&&X()>0},void 0,"jT8Bud");
S=_.xF(function(){return!L()&&X()<A()-O()},void 0,"mt4gsb");
var f1=function(){W.value!==null&&Pq()},hk;
_.lo(function(){Pq();window.ResizeObserver?(hk=new ResizeObserver(_.RX(f1,0)),hk.observe(W.value)):window.addEventListener("resize",f1)});
_.sX(function(){if(window.ResizeObserver){var zv;(zv=hk)==null||zv.disconnect()}else window.removeEventListener("resize",f1)});
var Pq=function(){var zv=W.value.clientWidth,XM=e.includeMargin!==void 0?e.includeMargin():!1,Su;var p1=e.hasPeek!==void 0?e.hasPeek():!((Su=e.data())==null||!Su.hasPeek);zv=_.xu({containerWidth:zv,hasPeek:p1,sizing:V6(),marginSettings:XM?n()?4:1:0});bW(zv.gutter);Fg(zv.margin);V(zv.itemWidth);LC(zv.maxContainerWidth<528||n());y(zv.maxContainerWidth);I()&&l((zv.itemWidth+zv.gutter)*I().length-zv.gutter);if(I()){var C1;if(((C1=e.thumbnailAspectRatio)==null?void 0:C1.call(e))!==void 0){var mz;an(Q()/
JEv((mz=e.thumbnailAspectRatio)==null?void 0:mz.call(e))/2+"px")}else an("50%")}},vq={},hq={};
return _.a("horizontal-shelf-view-model",{class:_.o6("ytwHorizontalShelfViewModelHost",e.className),el:W},_.a(_.E,{cond:function(){var zv;return e.data().header&&!((zv=e.horizontalShelfExperiments)==null?0:zv.call(e).hideHeader)},
then:function(){return _.a("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.N2({width:function(){return O()+"px"},
padding:function(){return"0 "+Xg()+"px"}})},_.a(_.eS,{data:function(){return e.data().header}},{sectionHeaderViewModel:function(zv){return _.a(_.CW,{data:zv.data,
disableHorizontalPadding:!0,forceSmallLayout:Jq,useResponsiveLayout:!0})}}))}}),_.a("div",{class:_.o6("ytwHorizontalShelfViewModelOuterContainer",(vq.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return R()},vq)),
style:_.N2({"margin-top":function(){var zv,XM=e.data().header&&!((zv=e.horizontalShelfExperiments)==null?0:zv.call(e).hideHeader),Su;return(((Su=e.ensureMarginTop)==null?0:Su.call(e))&&!XM?12:0)+"px"}})},_.a("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.N2({width:function(){return O()+"px"},
padding:function(){return"0 "+Xg()+"px"},
overflow:function(){return L()?"auto":"hidden"}})},_.a("div",{class:_.o6("ytwHorizontalShelfViewModelItems",(hq.ytwHorizontalShelfViewModelCenterAlignItems=function(){return R()},hq)),
el:b,style:h},_.a(_.eS,{data:I},{macroMarkerListItemViewModel:function(zv,XM){return _.a("div",{style:_.N2({width:function(){return Q()+"px"},
"margin-right":function(){return(XM()===I().length-1?0:RA())+"px"}})},_.a(jAO,{data:zv.data,
palette:_.sz(e.palette),isLastItem:function(){return XM()===I().length-1}}))},
lockupViewModel:function(zv,XM){var Su=zv.data;return _.a("div",{"on:focusin":_.Ve(function(){var p1=XM();p1!==oA()&&(p1<oA()?D(c(X()-k(1))):D(c(X()+k(1))),g(X()),Zt(p1));return!0}),
style:_.N2({width:function(){return Q()+"px"},
"margin-right":function(){return(XM()===I().length-1?0:RA())+"px"}})},_.a(_.KS,{data:Su,
containerType:4,sizing:V6,protectBackground:e.protectBackground,thumbnailFixedWidth:function(){return Qrg(Su())+"px"},
thumbnailTargetWidth:function(){return Qrg(Su())},
force16By9ThumbnailAspectRatio:bs}))},
suspenseViewModel:function(zv,XM){return _.a("div",{style:_.N2({width:function(){return Q()+"px"},
"margin-right":function(){return(XM()===I().length-1?0:RA())+"px"}})},_.a(ftq,{data:zv.data}))}}))),_.a(_.E,{cond:f,
then:function(){return _.a("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.N2({top:function(){return Ev()}})},_.a(_.eS,{data:J},{buttonViewModel:function(zv){return _.a(_.oD,{data:zv.data,
onClick:function(){D(c(X()-k(void 0)));g(X())}})}}))}}),_.a(_.E,{cond:S,
then:function(){return _.a("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.N2({top:function(){return Ev()}})},_.a(_.eS,{data:q},{buttonViewModel:function(zv){return _.a(_.oD,{data:zv.data,
onClick:function(){D(c(X()+k(void 0)));g(X())}})}}))}})))},"Je");
_.mo.idomCompat=!0;var iCj=_.H(function(e){var g=function(){return e.data().targetId||""},c=function(){var f;
return((f=e.data())==null?void 0:f.expansionEntityKey)||""},k=_.O1(_.PGW,c),I=!0,J=function(){var f;
return((f=k())==null?void 0:f.value)===g()},q=function(f){_.As(_.cY("stringEntity",c(),{key:c(),
value:f?g():""}))};
_.Tr(function(){I=!1;e.data().isExpanded&&q(!0)});
var L=function(){if(J()){var f=!0;e.onCollapse!==void 0&&(f=e.onCollapse());f&&q(!1)}else q(!0)},n=_.Ve(L),R=function(){var f;
return(((f=e.accordionStyle)==null?void 0:f.call(e))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},W=_.io("div"),b=function(){var f,l;
return(l=(f=_.x(e.data().rendererContext,_.Jh))==null?void 0:f.label)!=null?l:""},h=function(){var f,l;
return{disabled:(f=e.hideIfNotExpanded)==null?void 0:f.call(e),ariaHidden:(l=e.hideIfNotExpanded)==null?void 0:l.call(e)}},X={},D={};
return _.a("yt-accordion-item-view-model",{class:_.o6("ytAccordionItemViewModelHost",e.className,(X.ytAccordionItemViewModelExpanded=function(){return J()},X.ytAccordionItemViewModelHidden=function(){var f;
return(f=e.hideIfNotExpanded)==null?void 0:f.call(e)},X.ytAccordionItemViewModelMini=R,X)),
"data-target-id":g},_.a("div",{class:"ytAccordionItemViewModelContainer"},_.a("div",{class:"ytAccordionItemViewModelLeftSection","on:click":n,title:b,"aria-hidden":function(){var f;return(f=e.hideIfNotExpanded)==null?void 0:f.call(e)}},_.a(_.fa,{text:function(){return e.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:b})),_.a("div",{class:"ytAccordionItemViewModelRightSection"},_.a(_.eS,{data:function(){return J()?e.data().expandButton:e.data().collapseButton}},{buttonViewModel:function(f){return _.a(_.oD,{data:f.data,
className:"ytAccordionItemViewModelToggleButton",onClick:L,buttonOverrides:h})}}))),_.a("div",{class:"ytAccordionItemViewModelContainer"},_.a("div",{class:_.o6("ytAccordionItemViewModelContent",(D.ytAccordionItemViewModelExpandedSubtitle=function(){return J()},D)),
el:W,style:_.N2({"max-height":function(){return I?"auto":J()?W.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!J()}},_.a(_.E,{cond:function(){return!R()},
then:function(){return _.a(_.fa,{text:function(){return e.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.a(_.eS,{data:function(){return e.data().content}},{horizontalShelfViewModel:function(f){return _.a(_.mo,{data:f.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Le");_.PW0=_.H(function(e){var g=_.w((0,_.P1)(e.data)).next().value,c=function(){return e.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},k=function(){return c()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},I=_.w(_.Wa(!0,void 0,"VFpYAb")),J=I.next().value,q=I.next().value,L=function(){return k()&&J()},n=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){q(!J())}}},R=_.Ve(function(){g().onTitleTap&&_.GF(g().onTitleTap||{})});
I={};return _.a("yt-accordion-view-model",{class:_.o6("ytAccordionViewModelHost",(I.ytAccordionViewModelMinimized=function(){return L()},I)),
"data-target-id":function(){return e.data().targetId||""}},_.a(_.E,{cond:function(){return k()||!!g().title},
then:function(){return _.a("div",{class:"ytAccordionViewModelHeader"},_.a("div",{class:"ytAccordionViewModelTitleSection"},_.a("div",{class:"ytAccordionViewModelTitleWrapper"},_.a(_.E,{cond:function(){return!!e.data().headerIcon},
then:function(){return _.a(_.SU,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var W;return(W=e.data().headerIcon)==null?void 0:W.iconType}})}}),_.a("div",{class:"ytAccordionViewModelTitle",
"on:click":R},_.a(_.fa,{className:"ytAccordionViewModelTitleText",text:function(){return g().title}})))),_.a("div",{class:"ytAccordionViewModelButtonSection"},_.a(_.E,{cond:k,
then:function(){return _.a(_.UO,{data:n,iconName:function(){return L()?"chevron_down":"chevron_collapse"}})}})))}}),_.a("div",{class:"ytAccordionViewModelContent"},_.a(_.eS,{data:function(){return g().contents}},{accordionItemViewModel:function(W){return _.a(iCj,{data:W.data,
className:"ytAccordionViewModelRow",accordionStyle:c,hideIfNotExpanded:L,onCollapse:function(){return k()?(q(!0),!1):!0}})}})),_.a("div",null,_.a(_.E,{cond:function(){return!k()&&(!!g().disclaimerFooter||!!g().footer)},
then:function(){return _.a("div",{class:"ytAccordionViewModelFooter"},_.a(_.fa,{text:function(){return g().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.a(_.eS,{data:function(){return e.data().footer}},{flexibleActionsViewModel:function(W){return _.a(_.bA,{data:W.data,
layout:0})}}))}})))},"Me");_.sL(_.PW0,"yt-accordion-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=null,c=null,k,I=(k=_.Ss().resolve(_.NN(_.gb)))==null?void 0:k(),J=_.w(_.Wa(!1,void 0,"CmEVtc"));k=J.next().value;var q=J.next().value;J=_.w(_.Wa(!0,void 0,"yo9dR"));var L=J.next().value,n=J.next().value,R=_.io("textarea",function(l){_.rS(264503,l,g,function(A){g=A})}),W=function(l){q(!0);
l={learningJourneyFormData:{query:l}};_.GF(e.data().searchEndpoint||{},{form:{formData:l}});return!1},b=_.Ve(function(l){l.target.closest("button-view-model")&&q(!0)});
J=_.Ve(function(){n(R.value.value.length===0)});
var h=_.Ve(function(l){if(l.key==="Enter"&&!l.shiftKey&&!L()){var A=l.target;l.preventDefault();W(A.value)}}),X={},D={},f={};
return _.a("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.a("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.a(_.pv,{data:function(){return e.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.a("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.a("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.a("div",{class:_.o6("ytLearningJourneyZeroStateSearchBar",(X.ytLearningJourneyZeroStateSearchBarDark=I,X))},_.a("textarea",{class:_.o6("ytLearningJourneyZeroStateTextInput",(D.ytLearningJourneyZeroStateTextInputDark=I,D)),el:R,"on:keyup":J,"on:keydown":h,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.a("div",{class:_.o6("ytLearningJourneyZeroStateSearchButtonContainer",(f.ytLearningJourneyZeroStateSearchButtonContainerDark=I,f))},_.a(_.oD,{data:function(){return _.x(e.data().searchButton,_.$8)},
className:"search-button",onClick:function(){return W(R.value.value)},
buttonOverrides:function(){return{disabled:L(),style:I?"mono-inverse":"mono",size:"XL"}}}))),_.a(_.E,{cond:function(){return!!e.data().errorBanner},
then:function(){return _.a("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.mb(function(l){_.rS(264617,l,c,function(A){c=A})})},_.a(_.eS,{data:function(){return e.data().errorBanner}},{alertBannerViewModel:function(l){return _.a(_.yHZ,{data:l.data,
"client-ve-type":264617})}}))}})),_.a(_.E,{cond:k,
then:function(){return _.a("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.a(_.eS,{data:function(){return e.data().loader}},{learningJourneyLoaderViewModel:function(l){return _.a(_.Gvz,{data:l.data})}}))},
else:function(){return _.a("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.a(_.E,{cond:function(){return!!e.data().learningJourneyShelf},
then:function(){return _.a("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.a("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return e.data().learningJourneySectionTitle}),_.a(_.eS,{data:function(){return e.data().learningJourneyShelf}},{horizontalShelfViewModel:function(l){return _.a(_.mo,{data:l.data,
centerAlignItems:!0})}}))}}),_.a("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.a("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return e.data().suggestedJourneySectionTitle}),_.a("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":b},_.a(_.eS,{data:function(){return e.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(l){return _.a(_.bA,{data:l.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Ne"),"yt-learning-journey-zero-state",{props:{data:_.jx}});var mU7=_.H(function(e){var g=e.data;return _.a("ytvl-live-leaderboard-item-action-content-view-model",{class:_.o6("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.a(_.fa,{text:function(){var c;return(c=g())==null?void 0:c.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.a(_.eS,{data:function(){return g().actionButton}},{buttonViewModel:function(c){return _.a(_.oD,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:c.data})}}))},"Oe");var pzQ=_.H(function(e){var g=e.data;return _.a("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.o6("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.a(_.fa,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var c;return(c=g())==null?void 0:c.displayName},
ellipsisTruncate:!0}),_.a(_.eS,{data:function(){return g().badge}},{buttonViewModel:function(c){return _.a(_.oD,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:c.data})}}))},"Pe");_.sL(_.H(function(e){var g=e.data;return _.a("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.a("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.a(_.fa,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var c;return(c=g())==null?void 0:c.rank}})),_.a("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.a(_.eS,{data:function(){return g().avatar}},{avatarViewModel:_.E8})),_.a("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.a(_.eS,{data:function(){return g().content}},{liveLeaderboardItemChannelContentViewModel:pzQ,
liveLeaderboardItemActionContentViewModel:mU7})),_.a(_.fa,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var c;return(c=g())==null?void 0:c.points}}))},"Qe"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;return _.a("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.a(_.fa,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var c,k;return(c=g())==null?void 0:(k=c.ranking)==null?void 0:k.rank}}),_.a("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.a(_.eS,{data:function(){return g().avatar}},{avatarViewModel:_.E8})),_.a(_.fa,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var c,k;return(c=g())==null?void 0:(k=c.channelContent)==null?void 0:k.channelName}}),_.a(_.fa,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var c;return(c=g())==null?void 0:c.points}}))},"Re"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.jx}});var TVQ=_.H(function(e){e=_.FA(e,{wrapper:!1}).wrapper;return _.a(_.E,{cond:e,then:function(){return _.a("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.a("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.a("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Se");
TVQ.idomCompat=!0;var ltD=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],Aq0=_.H(function(e){var g=e.data;var c=_.mb(),k=_.xF(function(){return g().command},void 0,"fyYsT");
_.AV(function(){k()&&_.b3(k(),{form:{element:c.value}})},"B0nxdb");
return _.a("div",{el:c,class:"YtQrCodeRendererHostContainer"},_.a(_.E,{cond:function(){return g().qrCodeImage},
then:function(I){return _.a(_.pv,{data:I,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.a(_.E,{cond:function(){return g().spinner},
then:function(){return _.a(TVQ,null)}})}}),_.a(_.E,{cond:function(){return g().label},
then:function(I){return _.a(_.fa,{text:I,className:"YtQrCodeRendererHostLabel"})}}),_.a(_.E,{cond:function(){return g().labels},
then:function(I){return _.a("div",{class:"YtQrCodeRendererHostLabels"},_.a(_.Yz,{each:I},function(J){return _.a(_.fa,{text:J})}))}}))},"Ve");_.sL(_.H(function(e){var g=e.data;var c=_.xF(function(){return g().qrEntityKey},void 0,"LmZ2xf"),k=_.xF(function(){return g().deleteEntityOnDismiss},void 0,"my0Tzb"),I=_.xF(function(){return g().command},void 0,"hzECIb"),J=_.O1(ZdV,c);
e=_.xF(function(){return g().qrCodeImage},void 0,"AnD9rc");
var q=_.xF(function(){return g().style&&ltD.includes(g().style)},void 0,"f5fZv"),L=_.By({visibilityCallback:function(n){n&&I()&&_.b3(I())},
showOption:{calledOnce:!0,state:"visible"}});_.lo(function(){_.sX(function(){k()&&c()&&_.lF().dispatch(_.cY("qrCodeEntity",c()))})});
return _.a("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.mb(L)},_.a(_.E,{cond:q,then:function(){return _.a(_.E,{cond:J,then:function(n){return _.a(Aq0,{data:n})}})}}),_.a(_.E,{cond:e,
then:function(n){return _.a(_.pv,{data:n,alt:""})}}))},"Te"),"yt-qr-code-renderer",{props:{data:_.jx}});var FeS=_.H(function(e){var g=function(){return _.EY(1728053247&(e.barColor!==void 0?My(e.barColor()):4278190080))};
return _.a("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.a("div",{class:"ytVideoOverviewGhostCardDetails"},_.a(sA0,{animationDelay:0,percentWidth:100,barColor:function(){return g()}}),_.a(sA0,{animationDelay:600,
percentWidth:60,barColor:function(){return g()}})))},"We"),sA0=_.H(function(e){return _.a("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+e.percentWidth()+"%"}},_.a("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var g=e.animationDelay(),c=e.barColor();return"animation-delay:"+g+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+c+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Xe");var ugl,dUj;ugl=_.Yu.inlinePreviewEnabledSelector;_.z8X=_.H(function(e){function g(A){q(A)}
var c=e.data;var k=_.PV("yt-video-overview-view-model"),I=_.mb();e=_.w(_.Wa(-1,void 0,"kc60qe"));var J=e.next().value,q=e.next().value;e=_.w(_.Wa(0,void 0,"YSTbVe"));var L=e.next().value,n=e.next().value,R={},W=_.O1(UAg,function(){return c().asyncDataEntityKey}),b=_.M2(ugl);
e=_.Ss().resolve(_.NN(tTv));var h=function(){var A;if((A=W())==null?0:A.videoOverviewViewModel){var d;return _.x((d=W())==null?void 0:d.videoOverviewViewModel,gsB)}return c()};
e&&k&&e({enabled:function(){return b()},
itemPlaybackModel:function(){var A;return(A=h())==null?void 0:A.itemPlayback},
thumbnailElRef:function(){return R.thumbnailElRef},
containerElRef:k,options:function(){return{thumbnail:R.thumbnail,thumbnailOverlays:R.thumbnailOverlays||[],thumbnailSize:R.thumbnailSize,mouseleaveCallback:function(){}}}});
_.lo(function(){var A,d=k==null?void 0:(A=k.value)==null?void 0:A.clientWidth;d&&n(Math.min((d-24)/4-8,72))});
var X=function(){var A;return((A=h())==null?void 0:A.headerSubtext)!==void 0?!0:!1},D=function(){var A,d=My((A=h())==null?void 0:A.titleColor);
return d?"color: "+_.EY(d)+";":void 0},f=function(){var A,d=My((A=h())==null?void 0:A.subtextColor);
return d?"color: "+_.EY(d)+";":void 0},l=function(){return _.a("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.a("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return D()}},_.a(_.fa,{text:function(){var A;
return(A=h())==null?void 0:A.headerText}})),_.a(_.E,{cond:X,
then:function(){return _.a("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.a("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return f()}},_.a(_.SU,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.a("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return f()}},_.a(_.fa,{text:function(){var A;
return(A=h())==null?void 0:A.headerSubtext}})))}}))};
e={};return _.a("yt-video-overview-view-model",{class:_.o6("ytGenAiVideoOverviewViewModelHost",(e.ytGenAiVideoOverviewViewModelMweb=!1,e.ytGenAiVideoOverviewViewModelDesktop=!0,e)),el:k,style:function(){var A,d=My((A=h())==null?void 0:A.backgroundColor);return d?"background-color: "+_.EY(d)+";":void 0}},_.a(_.E,{cond:function(){var A;
return(A=h())==null?void 0:A.isLoading},
then:function(){return _.a(FeS,{barColor:function(){var A;return(A=h())==null?void 0:A.titleColor}})},
else:function(){return _.a(_.es,null,null,_.a("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.a(_.eS,{data:function(){var A;return(A=h())==null?void 0:A.thumbnail}},{thumbnailViewModel:function(A){return _.a(zA,{data:A.data,
aspectRatio:0,playbackRef:oRC(R),width:9999})}})),_.a("div",{class:"ytGenAiVideoOverviewViewModelDetails"},l(),_.a(_.E,{cond:function(){var A,d,S,V;
return((A=h())==null?void 0:(d=A.listItems)==null?void 0:d.length)!==void 0&&((S=h())==null?void 0:(V=S.listItems)==null?void 0:V.length)>0?!0:!1},
then:function(){return _.a("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:I},_.a(_.Yz,{each:function(){var A;return(A=h())==null?void 0:A.listItems}},function(A,d){return _.a(dUj,{image:A.image,
index:d,isSelected:function(){return d()===J()},
onClick:g,itemWidth:L})}))}}),_.a("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.a("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return D()}},_.a(_.fa,{text:function(){var A,d,S,V,Q,y,O;
return(O=(A=h())==null?void 0:(d=A.listItems)==null?void 0:(S=d[J()])==null?void 0:S.headline)!=null?O:(V=h())==null?void 0:(Q=V.listItems)==null?void 0:(y=Q[0])==null?void 0:y.headline}})),_.a("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return f()}},_.a(_.fa,{text:function(){var A,d,S,V,Q,y,O;
return(O=(A=h())==null?void 0:(d=A.listItems)==null?void 0:(S=d[J()])==null?void 0:S.subtext)!=null?O:(V=h())==null?void 0:(Q=V.listItems)==null?void 0:(y=Q[0])==null?void 0:y.subtext}})))))}}))},"Ye");
dUj=_.H(function(e){var g=e.image;var c=e.itemWidth;var k=e.index;var I=e.isSelected;var J=e.onClick;e=_.Ve(function(){k!==void 0&&J!==void 0&&J(k());return!1});
var q={};return _.a("div",{class:_.o6("ytGenAiVideoOverviewViewModelCarouselItem",(q.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return I==null?void 0:I()},q)),
style:function(){return"width: "+c()+"px;"},
"on:click":e},_.a(_.pv,{data:g,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.a(_.E,{cond:function(){return I==null?void 0:I()},
then:function(){return _.a("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.a("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ze");
_.z8X.idomCompat=!0;_.sL(_.z8X,"yt-video-overview-view-model",{props:{data:_.jx}});_.HCX=_.H(function(e){var g=e.data;var c=e.topbarOffset;var k,I=((k=_.Ss().resolve(_.NN(_.gb)))==null?void 0:k())||!1;return _.a("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var J=g();var q,L,n=I?(q=J.config)==null?void 0:q.darkThemeBackgroundColor:(L=J.config)==null?void 0:L.lightThemeBackgroundColor;J=n?_.R1(n):void 0;J="background-color: "+J+";";c!==void 0&&(J+="top: -"+c()+"px;");return J},
"aria-hidden":!0},_.a(_.E,{cond:function(){var J,q,L;return!!((J=g().backgroundImageConfig)==null?0:(q=J.image)==null?0:(L=q.sources)==null?0:L.length)},
then:function(){return _.a(_.pv,{data:function(){var J;return(J=g().backgroundImageConfig)==null?void 0:J.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.a("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+oxg(I,g().gradientColorConfig)+";"}}))},"$e");
_.HCX.idomCompat=!0;var QAz=_.H(function(e){var g=e.data;var c=e.isOverlay;return _.a("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.a("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.a(_.eS,{data:function(){return g().header}},{sectionHeaderViewModel:function(k){return _.a(_.CW,{data:k.data,
isOverlay:c})}})),_.a("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.a(_.eS,{data:function(){return g().channelInfoButtons}},{flexibleActionsViewModel:_.bA})),_.a("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.a(_.eS,{data:function(){return g().description}},{descriptionPreviewViewModel:function(k){return _.a(_.Mm,{data:k.data,
isOverlay:c})}})))},"af");
QAz.idomCompat=!0;var UUD=_.H(function(e){var g=e.data;var c={};return _.a("factoid-view-model",{class:_.o6("ytwFactoidViewModelHost",(c.ytwFactoidViewModelHostOverlay=e.isOverlay,c))},_.a(_.fa,{text:function(){return g().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.a(_.fa,{text:function(){return g().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bf");
UUD.idomCompat=!0;var opz=_.H(function(e){var g=e.data;var c=e.isOverlay;return _.a("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.a(_.eS,{data:function(){return g().factoids}},{factoidViewModel:function(k){return _.a(UUD,{data:k.data,
isOverlay:c})}}))},"cf");
opz.idomCompat=!0;_.ZC7=_.H(function(e){var g=e.data;var c=e.isOverlay;return _.a("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.a(_.eS,{data:function(){return g().items}},{channelInfoViewModel:function(k){return _.a("div",{class:"ytwCourseMetadataViewModelHostItem"},_.a(QAz,{data:k.data,
isOverlay:c}))},
coursePerksViewModel:function(k){return _.a("div",{class:"ytwCourseMetadataViewModelHostItem"},_.a(We0,{data:k.data,isOverlay:c}))},
descriptionPreviewViewModel:function(k){return _.a("div",{class:"ytwCourseMetadataViewModelHostItem"},_.a(_.Mm,{data:k.data,isOverlay:c}))},
factoidsRowViewModel:function(k){return _.a("div",{class:"ytwCourseMetadataViewModelHostItem"},_.a(opz,{data:k.data,isOverlay:c}))},
progressViewModel:function(k){return _.a("div",{class:"ytwCourseMetadataViewModelHostItem"},_.a(bCM,{data:k.data,isOverlay:c}))}}))},"df");var VKj=_.H(function(e){return _.a("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.a(_.eS,{data:function(){return e.data().content}},{courseMetadataViewModel:function(g){return _.a(_.ZC7,{data:g.data,
isOverlay:e.isOverlay})},
progressViewModel:function(g){return _.a(bCM,{data:g.data})}}))},"ef");var tKl=_.H(function(e){var g=e.data;e=e.className;var c=function(){var I;return _.RB((I=g())==null?void 0:I.rendererContext)},k={};
k=(k.dynamicTextViewModelHost=!0,k.dynamicTextViewModelHostTappable=function(){return c()},k);
return _.a("yt-dynamic-text-view-model",{el:_.mb(_.EQ(function(){var I;return(I=g())==null?void 0:I.rendererContext})),
role:function(){return c()?"link":void 0},
tabindex:function(){return c()?0:void 0},
class:_.o6(e,k)},_.a("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var I,J,q;return(q=(J=_.x((I=g())==null?void 0:I.rendererContext,_.Jh))==null?void 0:J.label)!=null?q:""}},_.a(_.fa,{text:function(){return g().text},
userInput:!0})))},"ff");
tKl.idomCompat=!0;_.pE=_.H(function(e){var g=e.data;var c=e.isPositionRelative;var k=_.V2W("(max-width: 527.9px)"),I=function(){var J,q;return(q=(J=g())==null?void 0:J.style)!=null?q:"IMAGE_BANNER_STYLE_FULL_BLEED"};
e={};return _.a("yt-image-banner-view-model",{el:_.mb(_.EQ(function(){var J;return(J=g())==null?void 0:J.rendererContext})),
class:_.o6((e.ytImageBannerViewModelHost=!0,e.ytImageBannerViewModelInset=function(){return t2g(I())},e.ytImageBannerViewModelPositionAbsolute=function(){return _.ds(!0)&&!(c==null?0:c())},e.ytImageBannerViewModelSmallInset=function(){return t2g(I())&&k()},e.ytImageBannerViewModelTappable=function(){var J;
return _.RB((J=g())==null?void 0:J.rendererContext)},e))},_.a(_.E,{cond:function(){var J;
return(J=g())==null?void 0:J.image},
then:function(){return _.a(_.pv,{data:function(){return g().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.a(_.eS,{data:function(){var J;
return(J=g())==null?void 0:J.overlays}},{thumbnailHoverOverlayViewModel:R8}))},"gf");
_.pE.idomCompat=!0;var BVz;BVz=_.H(function(e){var g=e.condition;var c=e.content;return _.a(_.E,{cond:g,then:function(){return _.a("div",{class:"yt-page-header-view-model__scroll-container"},c())},
else:function(){return c()}})},"hf");
_.NV0=_.H(function(e){var g=e.data;var c=e.noPadding;var k=e.enableBanner;var I=e.cinematicContainerTopbarOffset;var J=e.allowCinematicContainerOverflow;var q=e.displayAsSidebar;var L=e.displayAsPanel;var n=e.alwaysUseMediumTextDescription;var R=BUV(),W=function(){return!!g().image||!!g().animatedImage},b=function(){return!!g().background},h=function(){return(q==null?0:q())||(L==null?0:L())?1:R()},X=function(){return h()===1},D=function(){return X()||h()===2},f=function(){return h()===4},l=function(){var Xg=
g();
var Fg=!!g().heroImage;var oA=h(),Zt=NUK(g()),Ev=q==null?void 0:q(),an=!Xg.metadata,V6;if(V6=Fg?_.x(Xg.heroImage,Z3k):_.x(Xg.animatedImage||Xg.image,Z3k)){Xg=V6.style;var bs=V6.layoutMode;if(bs!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(V6=W4K(Egv(V6)),Fg)Fg=Zkv(oA,Xg,bs,V6,Ev);else b:if(an)Fg=oA===1?{size:48}:{size:72};else switch(oA){case 1:Fg={size:72};break b;case 2:Fg={size:120};break b;default:Fg=Zt<4?{size:120}:{size:160}}else Fg=void 0}else Fg={size:0};return Fg};
e={};e=_.o6((e["yt-page-header-view-model"]=!0,e["yt-page-header-view-model--no-padding"]=function(){return!(c==null||!c())},e["yt-page-header-view-model--small-top-padding"]=function(){return X()&&!g().actions&&!(L==null?0:L())||h()===2&&!(W()||g().heroImage)},e["yt-page-header-view-model--small-bottom-padding"]=function(){return D()&&!g().actions&&!(L==null?0:L())},e["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(J==null?0:J())},e["yt-page-header-view-model--display-as-sidebar"]=
q,e));
var A={},d=_.o6((A["yt-page-header-view-model__page-header-headline"]=!0,A["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var Xg;return(Xg=l())==null?void 0:Xg.allowFullWidth},A)),S=function(){var Xg;
return D()&&!((Xg=l())==null?0:Xg.allowFullWidth)},V=function(){return X()&&(!!g().heroImage||W())&&NUK(g())>0},Q=function(){return V()&&(L==null?void 0:L())};
A={};var y=_.o6((A["yt-page-header-view-model__page-header-title"]=!0,A["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!V()},A["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return V()&&!Q()},A["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=Q,A["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=b,A));
A={};var O=_.o6((A["yt-page-header-view-model__page-header-headline-image"]=!0,A["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!g().heroImage&&D()},A));
A={};var Jq=_.o6((A["yt-page-header-view-model__page-header-banner-container"]=k,A["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var Xg;return(k==null?void 0:k())&&((Xg=_.x(g().banner,_.t_M))==null?void 0:Xg.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},A));
A={};var LC=_.o6((A["yt-page-header-view-model__page-header-content-metadata"]=!0,A["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=b,A));A={};var bW=_.o6((A["yt-page-header-view-model__page-header-flexible-actions"]=!0,A["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!g().metadata||D()},A["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!D()},A));
A={};var RA=_.o6((A["yt-page-header-view-model__page-header-attribution"]=!0,A["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=b,A));return _.a("yt-page-header-view-model",{class:e},_.a(_.E,{cond:b,then:function(){return _.a("div",{class:"yt-page-header-view-model__page-header-background"},_.a(_.eS,{data:function(){return g().background}},{cinematicContainerViewModel:function(Xg){return _.a(_.HCX,{data:Xg.data,
topbarOffset:I})}}))}}),_.a(BVz,{condition:function(){return!(q==null||!q())},
content:function(){return _.a("div",{class:"yt-page-header-view-model__page-header-content"},_.a(_.E,{cond:function(){return(k==null?void 0:k())&&g().banner},
then:function(){return _.a("div",{class:Jq},_.a(_.eS,{data:function(){return g().banner}},{imageBannerViewModel:_.pE}))}}),_.a("div",{class:d},_.a(_.E,{cond:W,
then:function(){return _.a(_.eS,{data:function(){var Xg;if(!(Xg=g().animatedImage)){Xg=g();if(W()){var Fg=Xg=Object.assign({},Xg),oA=h(),Zt=NUK(g()),Ev=Fg.image,an=_.x(Ev,V_I),V6=an==null?void 0:an.avatar,bs=_.x(V6,_.bD);if(Ev&&V6&&bs){switch(oA){case 1:bs.avatarImageSize="AVATAR_SIZE_XL";break;case 2:bs.avatarImageSize="AVATAR_SIZE_XXL";break;default:Zt<4?bs.avatarImageSize="AVATAR_SIZE_XXL":bs.avatarImageSize="AVATAR_SIZE_XXXL"}_.rL(V6,_.bD,Object.assign({},bs));an.avatar=Object.assign({},V6);_.rL(Ev,
V_I,Object.assign({},an));Fg.image=Object.assign({},Ev)}}Xg=Xg.image}return Xg}},{contentPreviewImageViewModel:function(Xg){return _.a(_.Zf,{data:Xg.data,
className:O,imageSizeConfig:l})},
decoratedAvatarViewModel:function(Xg){return _.a(_.WG,{data:Xg.data,className:O})}})}}),_.a(_.E,{cond:function(){return!!g().heroImage&&!S()},
then:function(){return _.a(_.eS,{data:function(){return g().heroImage}},{contentPreviewImageViewModel:function(Xg){return _.a(_.Zf,{data:Xg.data,
className:O,imageSizeConfig:l})}})}}),_.a("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.a(_.E,{cond:function(){return!!g().heroImage&&S()},
then:function(){return _.a("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.a(_.eS,{data:function(){return g().heroImage}},{contentPreviewImageViewModel:function(Xg){return _.a(_.Zf,{data:Xg.data,
className:O,imageSizeConfig:l})}}))}}),_.a(_.eS,{data:function(){return g().title}},{dynamicTextViewModel:function(Xg){return _.a(tKl,{data:Xg.data,
className:y})}}),_.a(_.eS,{data:function(){return g().metadata}},{contentMetadataViewModel:function(Xg){return _.a(_.t8,{data:Xg.data,
layout:function(){return X()?1:0},
className:LC,isOverlay:b,useMediumText:f})}}),_.a(_.E,{cond:function(){return g().description&&!X()},
then:function(){return _.a(_.eS,{data:function(){return g().description}},{descriptionPreviewViewModel:function(Xg){return _.a(_.Mm,{data:Xg.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:b,maxLinesOverride:function(){return X()?void 0:1},
useMediumText:function(){return(n==null?void 0:n())||f()}})}})}}),_.a(_.E,{cond:function(){return g().attribution&&!D()},
then:function(){return _.a(_.eS,{data:function(){return g().attribution}},{attributionViewModel:function(Xg){return _.a(VN,{data:Xg.data,
className:RA,useMediumText:f})}})}}),_.a(_.E,{cond:function(){return g().actions&&!D()},
then:function(){return _.a(_.eS,{data:function(){return g().actions}},{flexibleActionsViewModel:function(Xg){return _.a(_.bA,{data:Xg.data,
layout:function(){return S3t(h())},
className:bW})}})}}))),_.a("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.a(_.E,{cond:function(){return g().description&&X()},
then:function(){return _.a(_.eS,{data:function(){return g().description}},{descriptionPreviewViewModel:function(Xg){return _.a(_.Mm,{data:Xg.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:b,maxLinesOverride:function(){return X()?void 0:1},
useMediumText:function(){return(n==null?void 0:n())||f()}})}})}}),_.a(_.E,{cond:function(){return g().attribution&&D()},
then:function(){return _.a(_.eS,{data:function(){return g().attribution}},{attributionViewModel:function(Xg){return _.a(VN,{data:Xg.data,
className:RA,useMediumText:f})}})}}),_.a(_.E,{cond:function(){return g().actions&&D()},
then:function(){return _.a(_.eS,{data:function(){return g().actions}},{flexibleActionsViewModel:function(Xg){return _.a(_.bA,{data:Xg.data,
layout:function(){return S3t(h())},
className:bW})}})}})),_.a("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.a(_.eS,{data:function(){return g().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Xg){return _.a(VKj,{data:Xg.data,
isOverlay:b})}})))}}))},"jf");
_.NV0.idomCompat=!0;_.sL(_.H(function(e){var g=_.w(_.Wa(!1,void 0,"qvRy4d")),c=g.next().value,k=g.next().value;return _.a("yt-official-card-view-model",{class:_.o6("ytOfficialCardViewModelHost",e.className),style:_.N2({"background-color":function(){var I,J=My((I=e.data())==null?void 0:I.backgroundColor);return J?_.EY(J):void 0}})},_.a(_.eS,{data:function(){return e.data().header}},{pageHeaderViewModel:function(I){return _.a(_.NV0,{data:I.data,
noPadding:!0})}}),_.a(_.eS,{data:function(){return e.data().contents}},{horizontalShelfViewModel:function(I){return _.a(_.mo,{data:I.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.a(_.E,{cond:c,
then:function(){return _.a("div",{class:"ytOfficialCardViewModelExpandedContent"},_.a(_.eS,{data:function(){return e.data().expandedContents}},{horizontalShelfViewModel:function(I){return _.a(_.mo,{data:I.data,
sizing:"MINI"})}}),_.a("div",{class:"ytOfficialCardViewModelCollapseButton"},_.a(_.eS,{data:function(){return e.data().collapseButton}},{buttonViewModel:function(I){return _.a(_.oD,{data:I.data,
onClick:function(){k(!c())}})}})))},
else:function(){return _.a("div",{class:"ytOfficialCardViewModelExpandButton"},_.a(_.eS,{data:function(){return e.data().expandButton}},{buttonViewModel:function(I){return _.a(_.oD,{data:I.data,
onClick:function(){k(!c())}})}}))}}))},"kf"),"yt-official-card-view-model",{props:{data:_.jx,
className:_.jx}});var SCz=_.H(function(e){var g,c=(g=_.Ss().resolve(_.NN(_.gb)))==null?void 0:g();return _.a("ytw-search-friction-view-model",{class:_.o6("ytwSearchFrictionViewModelHost",e.className)},_.a("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.a("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.a(_.E,{cond:function(){return c&&e.data().darkThemeImage?e.data().darkThemeImage:e.data().image},
then:function(k){return _.a(_.pv,{data:k,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.a(_.eS,{data:function(){return e.data().overflowMenuButton}},{buttonViewModel:function(k){return _.a(_.oD,{data:k.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.a(_.fa,{text:function(){return e.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.a(_.Yz,{each:function(){return e.data().bodyText||[]}},function(k){return _.a(_.fa,{text:k,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.a(_.eS,{data:function(){return e.data().actions}},{buttonViewModel:function(k){return _.a(_.oD,{data:k.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.a(_.fa,{text:function(){return e.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.a(_.fa,{text:function(){return e.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"lf");
SCz.idomCompat=!0;_.sL(SCz,"ytw-search-friction-view-model",{props:{data:_.jx,className:_.jx}});_.TZ=_.H(function(e){var g=_.io("markdown-div"),c,k=(c=_.Ss().resolve(_.NN(_.gb)))==null?void 0:c();_.AV(function(){var I=g.value;var J=new TNn,q=new Map(J.JSC$9608_sanitizerTable.globalAttributePolicies);q.set("style",{policyAction:4});J.JSC$9608_sanitizerTable=new Es(J.JSC$9608_sanitizerTable.allowedElements,J.JSC$9608_sanitizerTable.elementPolicies,J.JSC$9608_sanitizerTable.allowedGlobalAttributes,q,J.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes);var L=["data-time"];if(L===void 0)q=
new Set(J.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes),q.add("data-"),J.JSC$9608_sanitizerTable=new Es(J.JSC$9608_sanitizerTable.allowedElements,J.JSC$9608_sanitizerTable.elementPolicies,J.JSC$9608_sanitizerTable.allowedGlobalAttributes,J.JSC$9608_sanitizerTable.globalAttributePolicies,q);else{q=new Set(J.JSC$9608_sanitizerTable.allowedGlobalAttributes);L=_.w(L);for(var n=L.next();!n.done;n=L.next()){n=n.value;if(n.indexOf("data-")!==0)throw Error("la`"+n);q.add(n)}J.JSC$9608_sanitizerTable=
new Es(J.JSC$9608_sanitizerTable.allowedElements,J.JSC$9608_sanitizerTable.elementPolicies,q,J.JSC$9608_sanitizerTable.globalAttributePolicies,J.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes)}q=new Set(J.JSC$9608_sanitizerTable.allowedGlobalAttributes);q.add("class");J.JSC$9608_sanitizerTable=new Es(J.JSC$9608_sanitizerTable.allowedElements,J.JSC$9608_sanitizerTable.elementPolicies,q,J.JSC$9608_sanitizerTable.globalAttributePolicies,J.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes);
_.WA(I,_.j4w(J.build(),KIt(e.text())));OkK(g.value)},"CUInJc");
c={};return _.a("div",null,_.a("markdown-div",{class:_.o6("ytwMarkdownDivHost",e.className,(c.ytwMarkdownDivDark=k,c.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var I;return((I=e.isSmallText)==null?void 0:I.call(e))||!1},c.ytwMarkdownDivHostWrapCodeBlocks=function(){var I;
return((I=e.wrapCodeBlocks)==null?void 0:I.call(e))||!1},c.ytwMarkdownDivHostEnableDefaultStyling=function(){var I;
return!((I=e.disableDefaultStyling)==null?0:I.call(e))},c)),
el:g}))},"nf");
_.TZ.idomCompat=!0;var yq0=_.H(function(e){var g=e.imageData;var c=_.sz(e.isInList,!1),k=function(){return c()?{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 _.a("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.a(_.E,{cond:function(){return g().image},
then:function(I){return _.a(_.pv,{data:I,alt:function(){return k().alt},
contentMode:function(){return k().contentMode},
targetWidth:function(){return k().targetWidth},
targetHeight:function(){return k().targetHeight},
className:function(){return k().className}})}}),_.a("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.a("div",{class:_.o6("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.a(_.fa,{text:function(){return g().title}})),_.a(_.Yz,{each:function(){var I;
return(I=g().description)!=null?I:[]}},function(I){return _.a("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.a(lY,{content:I}))})))},"of"),Kex=_.H(function(e){var g=e.list;
var c=function(){var k;return(k=g().items)!=null?k:[]};
return _.a("div",{class:"ytwGenAiRichTextViewModelListContent"},_.a(_.E,{cond:function(){return g().title},
then:function(k){return _.a("div",{class:_.o6("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.a(_.fa,{text:k}))}}),_.a(_.E,{cond:function(){return g().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.a("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.a(_.Yz,{each:c},function(k){return _.a("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.a(lY,{content:k,isInList:!0}))}))}}),_.a(_.E,{cond:function(){return g().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.a("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.a(_.Yz,{each:c},function(k){return _.a("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.a(lY,{content:k,isInList:!0}))}))}}),_.a(_.E,{cond:function(){return g().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.a("div",{class:"ytwGenAiRichTextViewModelImageList"},_.a(_.Yz,{each:c},function(k){return _.a("div",{class:"ytwGenAiRichTextViewModelListItem"},_.a(lY,{content:k,isInList:!0}))}))}}))},"pf"),OCl=_.H(function(e){var g=e.table;
return _.a("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.a("thead",null,_.a("tr",null,_.a(_.Yz,{each:function(){var c,k;return(k=(c=g().header)==null?void 0:c.cells)!=null?k:[]}},function(c){return _.a("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.a(_.Yz,{each:function(){return c.contents}},function(k){return _.a(lY,{content:k})}))}))),_.a("tbody",null,_.a(_.Yz,{each:function(){var c;
return(c=g().rows)!=null?c:[]}},function(c){return _.a("tr",null,_.a(_.Yz,{each:function(){return c.cells}},function(k){return _.a("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.a(_.Yz,{each:function(){return k.contents}},function(I){return _.a(lY,{content:I})}))}))})))},"qf"),lY=_.H(function(e){var g=e.content;
var c=_.sz(e.isInList,!1),k=function(){var I,J;return(J=(I=g().contentBlock)==null?void 0:I.contents)!=null?J:[]};
return _.a("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.a(_.E,{cond:function(){return g().text},
then:function(I){return _.a(_.fa,{className:"ytwGenAiRichTextViewModelText",text:I})}}),_.a(_.E,{cond:function(){return g().image},
then:function(I){return _.a(yq0,{imageData:I,isInList:c})}}),_.a(_.E,{cond:function(){return g().list},
then:function(I){return _.a(Kex,{list:I})}}),_.a(_.E,{cond:function(){return g().contentBlock},
then:function(){return _.a("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.a(_.Yz,{each:k},function(I){return _.a(lY,{content:I,isInList:!1})}))}}),_.a(_.E,{cond:function(){return g().table},
then:function(I){return _.a(OCl,{table:I})}}))},"rf"),MKv=_.H(function(e){var g={};
g=_.qy("ytwGenAiRichTextViewModelHost",(g.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.C4("search_overview_link_style")),g));return _.a("gen-ai-rich-text-view-model",{class:g},_.a(lY,{content:function(){return e.data().content}}))},"sf");_.CWo=_.H(function(e){var g=e.data;var c=function(){var f;return((f=g().loadingUi)!=null?f:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},k=function(){return g().isLoading&&(c()==="UNSPECIFIED"||c()==="GHOST_CARD")},I=function(){return!g().isLoading},J=function(){return!!g().content&&!g().contents},q=function(){return!!g().contents},L=function(){return!!g().nextQueryButtons},n=function(){return g().isLoading&&c()==="INVISIBLE"},R=function(){var f,l;
return(l=(f=g().headerIcon)==null?void 0:f.iconType)!=null?l:""},W=function(){var f;
return(f=g().content)!=null?f:""},b=function(){return!!g().sourcesSection},h,X=!((h=_.Ss().resolve(_.NN(_.gb)))==null||!h()),D=_.xF(function(){var f=[],l=g().contents;
if(l)for(var A=0;A<l.length;A++){var d=_.x(l&&l[A],ebZ);d&&f.push(d)}return f},void 0,"gcCsZb");
_.lo(function(){g().isLoading||_.Wh("so_re",void 0,"search_overview_answer")});
return _.a("ytd-overview-answer-view-model",{class:function(){var f={};f=(f.ytdOverviewAnswerViewModelHost=!0,f.ytdOverviewAnswerViewModelDarkBackground=X&&!n(),f.ytdOverviewAnswerViewModelLightBackground=!X&&!n(),f);return _.qy(f)}},_.a(_.E,{cond:function(){return!n()},
then:function(){return _.a(_.es,null,_.a("h2",null,_.a("div",{class:"ytdOverviewAnswerViewModelHeader"},_.a(_.E,{cond:R,then:function(f){return _.a("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.a(_.SU,{icon:f}))}}),_.a("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.a("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return g().headerText}),_.a("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.a(_.fa,{text:function(){return g().headerSubtext}}))))),_.a(_.E,{cond:k,
then:function(){return _.a(M2e,null)}}),_.a(_.E,{cond:I,
then:function(){return _.a(_.es,null,_.a(_.E,{cond:J,then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelText"},_.a(_.TZ,{text:W,isSmallText:!0}))}}),_.a(_.E,{cond:q,
then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelRichText"},_.a(_.Yz,{each:D},function(f){return _.a(MKv,{data:f})}))}}),_.a(_.E,{cond:L,
then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.a(_.eS,{data:function(){return g().nextQueryButtons}},{buttonViewModel:function(f){return _.a(_.oD,{data:f.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.mo}))}}),_.a("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.a("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.a(_.E,{cond:function(){return!!_.x(g().likeButtonViewModel,_.DQ)&&!!_.x(g().dislikeButtonViewModel,_.$t)},
then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.a(_.Xh,{data:function(){return _.x(g().likeButtonViewModel,_.DQ)},
disableIconAnimation:!0}),_.a(_.hT,{data:function(){return _.x(g().dislikeButtonViewModel,_.$t)}}))}})),_.a(_.E,{cond:function(){var f;
return(f=g().sourcesSection)==null?void 0:f.headerText},
then:function(f){return _.a("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.a(_.fa,{text:f}))}})),_.a(_.E,{cond:b,
then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelSources"},_.a(_.eS,{data:function(){var f;return(f=g().sourcesSection)==null?void 0:f.sourcesShelf}},{buttonViewModel:_.oD,
horizontalShelfViewModel:function(f){return _.a(_.mo,{data:f.data,includeMargin:!0,hasPeek:!0})}}))}}),_.a(_.E,{cond:function(){return g().disclaimerText},
then:function(){return _.a("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.a(_.fa,{text:function(){return g().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"tf");var eYM=_.H(function(e){var g=_.FA(e,{}).data;return _.a("yt-shopping-content-line-item-view-model",{class:_.o6("ytShoppingContentLineItemViewModelHost")},_.a(_.fa,{text:function(){var c;return(c=g().text)==null?void 0:c.attributedString}}))},"uf");_.Ax=_.H(function(e){e=_.FA(e,{});var g=e.data,c={};return _.a("yt-shopping-content-line-view-model",{class:_.o6("ytShoppingContentLineViewModelHost",e.className,(c.ytShoppingContentLineViewModelTruncateText=function(){return!g().wrapContent},c)),
style:_.N2({"--shopping-content-line-gap":function(){return g().itemGap?g().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return g().lineHeight?g().lineHeight+"px":void 0}})},_.a(_.Yz,{each:function(){return(g().items||[]).map(function(k){return _.x(k,w$q)}).filter(function(k){return!!k})}},function(k){return _.a(eYM,{data:k})}))},"vf");var gIX=_.H(function(e){var g=e.data;var c=function(){var J;return((J=g().image)==null?void 0:J.height)||48},k=function(){var J;
return((J=g().image)==null?void 0:J.width)||48},I=function(){return"width: "+k()+"px; height: "+c()+"px;"};
return _.a("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var J,q,L,n=((J=_.Ss().resolve(_.NN(_.gb)))==null?0:J())?(q=g())==null?void 0:q.darkThemeBackgroundColor:(L=g())==null?void 0:L.lightThemeBackgroundColor;return"background-color: "+(n?_.EY(n):"")+";"},
el:_.mb(_.EQ(function(){var J;return(J=g())==null?void 0:J.rendererContext})),
role:"link",tabindex:0},_.a(_.E,{cond:function(){var J,q;return(q=(J=g().image)==null?void 0:J.image)!=null?q:g().thumbnail},
then:function(J){return _.a("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var q;return"background-color: "+(((q=g().image)==null?0:q.backgroundColor)?_.EY(g().image.backgroundColor):"")+";"+I()}},_.a(_.pv,{data:J,
height:c,width:k,style:I,alt:""}))}}),_.a("div",{class:"ytShoppingDescriptionItemViewModelText"},_.a(_.eS,{data:function(){return g().line1}},{shoppingContentLineViewModel:function(J){return _.a(_.Ax,{data:J.data})}}),_.a(_.eS,{data:function(){return g().line2}},{shoppingContentLineViewModel:function(J){return _.a(_.Ax,{data:J.data})}}),_.a(_.eS,{data:function(){return g().line3}},{shoppingContentLineViewModel:function(J){return _.a(_.Ax,{data:J.data})}})))},"wf");var ckv=_.H(function(e){var g=e.data;var c=e.active;var k=_.io("transcript-segment-view-model");_.AV(function(){var I,J,q,L=((I=_.Ss().resolve(_.NN(_.gb)))==null?0:I())?(J=g())==null?void 0:J.darkThemeColorPalette:(q=g())==null?void 0:q.lightThemeColorPalette;L&&(L.additiveBackground&&k.value.style.setProperty("--timestamp-active-background-color",_.EY(L.additiveBackground)),L.textSecondary&&k.value.style.setProperty("--timestamp-active-color",_.R1(L.textSecondary)))},"TnVCnb");
e={};return _.a("transcript-segment-view-model",{class:_.o6("ytwTranscriptSegmentViewModelHost",(e.ytwTranscriptSegmentViewModelHostActive=c,e.ytwTranscriptSegmentViewModelHostModern=_.G("enable_timeline_view_modern_transcript")||_.G("enable_timeline_view_modern_transcript_fe"),e)),el:k},_.a(_.E,{cond:function(){var I;return(I=g())==null?void 0:I.timestamp},
then:function(I){var J={};return _.a(_.es,null,_.a("div",{class:_.o6("ytwTranscriptSegmentViewModelTimestamp",(J.ytwTranscriptSegmentViewModelTimestampActive=c,J)),"aria-hidden":!0},I),_.a("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var q=I().split(":").map(Number),L=_.w(q.reverse());q=L.next().value;var n=L.next().value;L=L.next().value;return _.pIp({hours:L,minutes:n,seconds:q})}))}}),_.a(_.fa,{text:function(){var I,J,q;
return(q=(I=g())==null?void 0:I.attributedText)!=null?q:{content:(J=g())==null?void 0:J.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"yf");var kql=_.H(function(e){var g=e.data;return _.a("div",{class:"videoAttributesSectionViewModelHeader"},_.a("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.a("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return g().headerTitle}),_.a(_.E,{cond:function(){return g().headerInfoButton},
then:function(){return _.a(_.eS,{data:function(){return g().headerInfoButton}},{buttonViewModel:function(c){return _.a(_.oD,{data:c.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.a(_.E,{cond:function(){return g().headerSubtitle},
then:function(){return _.a("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return g().headerSubtitle})}}))},"zf"),IwS=_.H(function(e){function g(f){return Math.max(Math.min(f,0),R()-L())}
var c=e.data;var k;e=_.io("div",function(f){var l=function(){W(f.clientWidth)};
l();window.ResizeObserver&&(k=new ResizeObserver(l),k.observe(f))});
var I=_.io("div",function(f){n(f.scrollWidth)}),J=_.w(_.Wa(0,void 0,"C3XQAe")),q=J.next().value;
J=J.next().value;var L=q,n=J;J=_.w(_.Wa(0,void 0,"db7y3"));q=J.next().value;J=J.next().value;var R=q,W=J;q=_.w(_.Wa(0,void 0,"RchC7"));var b=q.next().value,h=q.next().value;_.sX(function(){var f;(f=k)==null||f.disconnect()});
var X=function(){h(g(b()+R()))},D=function(){h(g(b()-R()))};
return _.a("yt-video-attributes-section-view-model",null,_.a("div",{class:"videoAttributesSectionViewModelHost"},_.a(_.E,{cond:function(){return c().headerTitle},
then:function(){return _.a(kql,{data:c})}}),_.a("div",{class:_.o6("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:e},_.a("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.N2({transform:function(){var f=b();_.uo("HTML_DIR")==="rtl"&&(f*=-1);return"translateX("+f+"px)"}}),
el:I},_.a(_.eS,{data:function(){return c().videoAttributeViewModels}},{videoAttributeViewModel:Qhv}))),_.a(_.eS,{data:function(){return c().footerButton}},{buttonViewModel:function(f){return _.a(_.oD,{data:f.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.a(_.E,{cond:function(){return b()<0&&c().previousButton},
then:function(){return _.a("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.a(_.eS,{data:function(){return c().previousButton}},{buttonViewModel:function(f){return _.a(_.oD,{data:f.data,
onClick:X})}}))}}),_.a(_.E,{cond:function(){return b()>R()-L()&&c().nextButton},
then:function(){return _.a("div",{class:"videoAttributesSectionViewModelRightArrow"},_.a(_.eS,{data:function(){return c().nextButton}},{buttonViewModel:function(f){return _.a(_.oD,{data:f.data,
onClick:D})}}))}})))},"Af");
IwS.idomCompat=!0;var Jkx=_.H(function(e){var g=e.data;var c=e.active;var k={},I={};return _.a("timeline-item-view-model",{class:_.o6("ytwTimelineItemViewModelHost",(k.ytwTimelineItemViewModelHostChapterChild=e.chapterChild,k.ytwTimelineItemViewModelModern=_.G("enable_timeline_view_modern_transcript")||_.G("enable_timeline_view_modern_transcript_fe"),k))},_.a("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.a("div",{class:_.o6("ytwTimelineItemViewModelTimestamp",(I.ytwTimelineItemViewModelTimestampActive=
c,I))},function(){return g().timestamp})),_.a("div",{class:"ytwTimelineItemViewModelContentItems"},_.a(_.eS,{data:function(){return g().contentItems}},{transcriptSegmentViewModel:function(J){return _.a(ckv,{data:J.data,
active:c})},
videoAttributesSectionViewModel:IwS})))},"Bf");var vID=_.H(function(e){var g=e.data;e={};return _.a("timeline-chapter-view-model",{class:_.o6("ytwTimelineChapterViewModelHost")},_.a("div",{class:_.o6("ytwTimelineChapterViewModelTitle",(e.ytwTimelineChapterViewModelModern=_.G("enable_timeline_view_modern_transcript")||_.G("enable_timeline_view_modern_transcript_fe"),e))},function(){return g().title}),_.a(_.eS,{data:function(){return g().contents}},{timelineItemViewModel:function(c){return _.a(Jkx,{data:c.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(c){return _.a(IwS,{data:c.data})}}))},"Cf");var wwO=_.H(function(e){var g=e.data;var c=_.io("macro-markers-panel-item-view-model"),k=_.O1(_.zw8,function(){var J;return(J=g().markersEngagementPanelSyncEntityKey)!=null?J:""}),I=function(){var J;
return((J=k())==null?void 0:J.activeItemIndex)===g().index};
e=_.Ve(function(J){var q,L,n,R,W;return _.r(function(b){if(b.nextAddress==1)return J.stopPropagation(),_.aB(_.rb(J),c.value,["A".toString(),"BUTTON".toString()])?b.return():(q=_.WT(g().onTap))?b.yield(_.t4(),2):b.return();L=b.yieldResult;R=(n=_.x(q,_.Pm))==null?void 0:n.startTimeSeconds;R===void 0||(W=L)!=null&&W.seekTo(R,!0);_.Uh(b)})});
return _.a("macro-markers-panel-item-view-model",{class:_.o6("ytwMacroMarkersPanelItemViewModelHost",{"is-active":I}),el:c,"on:click":e,tabindex:function(){return _.x(g().item,qOq)?void 0:0},
role:function(){return _.x(g().item,qOq)?void 0:"button"}},_.a(_.eS,{data:function(){var J;
return(J=g())==null?void 0:J.item}},{timelineChapterViewModel:function(J){return _.a(vID,{data:J.data,
active:I})},
timelineItemViewModel:function(J){return _.a(Jkx,{data:J.data,active:I})},
videoAttributeViewModel:Qhv,shoppingDescriptionItemViewModel:gIX}))},"Df");
wwO.idomCompat=!0;_.sL(wwO,"macro-markers-panel-item-view-model",{props:{data:_.jx}});_.sL(IwS,"yt-video-attributes-section-view-model",{props:{data:_.jx}});var qvx=_.H(function(e){var g=function(){var c,k,I;return(I=(c=e.data().leadingLogoAccessibility)==null?void 0:(k=c.accessibilityData)==null?void 0:k.label)!=null?I:""};
return _.a("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.a(_.E,{cond:function(){return e.data().leadingLogo},
then:function(c){return _.a(_.pv,{className:"ytwFantasySectionHeaderViewModelLogo",data:c,alt:g})}}),_.a("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.a(_.fa,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return e.data().title}}),_.a(_.fa,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return e.data().subtitle}})),_.a(_.eS,{data:function(){return e.data().trailingButton}},{buttonViewModel:function(c){return _.a(_.oD,{data:c.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ef");var LBz=_.H(function(e){var g={};g=_.o6("ytwFantasyTeamViewModelHost",(g.ytwFantasyTeamViewModelCompact=function(){var I;return!((I=e.compact)==null||!I.call(e))},g.ytwFantasyTeamViewModelUser=function(){return e.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},g.ytwFantasyTeamViewModelOpponent=function(){return e.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},g));
var c=function(){var I,J,q;return(q=(I=e.data().teamLogoAccessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label)!=null?q:""},k=_.O1(QwU,function(){return e.data().teamEntityKey});
return _.a("ytw-fantasy-team-view-model",{class:g},_.a(_.E,{cond:function(){return e.data().teamLogo},
then:function(I){return _.a(_.pv,{className:"ytwFantasyTeamViewModelLogo",data:I,alt:c})}}),_.a("div",{class:"ytwFantasyTeamViewModelMetadata"},_.a("div",{class:"ytwFantasyTeamViewModelHeader"},_.a(_.fa,{className:"ytwFantasyTeamViewModelScore",
text:function(){var I;return(I=k())==null?void 0:I.score}}),_.a(_.SU,{icon:function(){var I;
return(I=k())==null?void 0:I.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.a(_.fa,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var I;return(I=k())==null?void 0:I.projectedScore}})),_.a(_.fa,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return e.data().primaryText}}),_.a(_.fa,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return e.data().secondaryText}}),_.a(_.fa,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return e.data().tertiaryText}})),_.a(_.fa,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var I;return(I=k())==null?void 0:I.score}}))},"Ff");_.sL(_.H(function(e){return _.a("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.a("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.a(_.eS,{data:function(){return e.data().summaryHeader}},{fantasySectionHeaderViewModel:qvx})),_.a(_.eS,{data:function(){return e.data().userTeam}},{fantasyTeamViewModel:LBz}),_.a(_.eS,{data:function(){return e.data().opponentTeam}},{fantasyTeamViewModel:LBz}))},"Gf"),"fantasy-league-summary-view-model",{props:{data:_.jx}});var rkv=_.H(function(e){var g=_.FA(e,{shape:{},useCustomTabRenderable:!1}),c=g.shape;g=g.useCustomTabRenderable;var k=e.customTabRenderable,I=function(){return c().disabled},J=function(){return c().selected},q=function(){return c().title},L=function(){return c().icon},n=_.io("yt-tab-shape");
e=_.Ve(function(b){var h;if(!I()&&((h=c().aTagConfig)==null?0:h.onclick))c().aTagConfig.onclick(b);return!1});
var R=_.Ve(function(b){if(b.key==="Enter"||b.key==="ArrowUp"||b.key==="ArrowDown")b.preventDefault(),n.value.click();return!1}),W={};
return _.a("yt-tab-shape",{class:_.o6("yt-tab-shape",function(){return c().className},(W["yt-tab-shape__tab--last-tab"]=function(){return c().isLastTab},W["yt-tab-shape--host-disabled"]=I,W["yt-tab-shape--host-clickable"]=!k,W)),
role:k?void 0:"tab","aria-selected":J!=null?J:!1,"aria-disabled":I,tabindex:k?void 0:0,"on:click":e,"on:keydown":R,el:n,"tab-identifier":function(){return c().identifier},
"tab-title":q},_.a(_.E,{cond:g,then:function(){return k()},
else:function(){var b={},h={};return _.a(_.es,null,_.a("div",{class:_.o6("yt-tab-shape__tab",(b["yt-tab-shape__tab--tab-selected"]=J,b))},_.a(_.E,{cond:L,then:function(X){return _.a(_.SU,{className:"yt-tab-shape__tab-icon",icon:function(){return X().iconType}})}}),q),_.a("div",{class:_.o6("yt-tab-shape__tab-bar",(h["yt-tab-shape__tab-bar--tab-bar-selected"]=J,h))}))}}))},"Hf");
rkv.idomCompat={callbacks:{customTabRenderable:!0}};_.nIz=_.H(function(e){var g=e.shape;e=_.w(_.Wa(48,void 0,"nDAx4"));var c=e.next().value,k=e.next().value;e=_.w(_.Wa(0,void 0,"GCgjqb"));var I=e.next().value,J=e.next().value,q=function(){return g().tabs},L=_.io("yt-tab-group-shape"),n=function(){var h,X;
return(X=(h=q())==null?void 0:h.findIndex(function(D){return D.selected}))!=null?X:-1};
e=_.w(_.Wa(!1,void 0,"SU01tf"));var R=e.next().value,W=e.next().value,b=function(){R()||_.ft.addJob(function(){W(!0)},0)};
_.AV(function(){var h=n(),X=_.ft.addJob(function(){var D,f=((D=L.value)==null?void 0:D.querySelectorAll("yt-tab-shape"))||[],l;k(((l=h>-1?f[h]:void 0)==null?void 0:l.getBoundingClientRect().width)||0);for(l=D=0;l<h;l++)D+=f[l].offsetWidth+24;_.uo("HTML_DIR")==="rtl"&&(D=-D);J(D);b()},8,0);
_.sX(function(){_.ft.cancelJob(X)})},"PMwgb");
e={};return _.a("yt-tab-group-shape",{class:_.o6("tabGroupShapeHost",(e.tabGroupShapeOverflowHidden=function(){return g().isOverflowHidden},e)),
el:L},_.a(_.E,{cond:q,then:function(h){return _.a(_.es,null,_.a("div",{class:"tabGroupShapeTabs",role:"tablist"},_.a(_.Yz,{each:h},function(X,D){return _.a(rkv,{shape:function(){return Object.assign({},X,{isLastTab:D()===h().length-1})},
customTabRenderable:X.customTabRenderable,useCustomTabRenderable:!!X.customTabRenderable})})),_.a(awO,{width:c,
sliderOffset:I,enableTransition:R}))}}))},"Jf");
_.nIz.idomCompat=!0;var awO=_.H(function(e){var g=_.sz(e.sliderOffset,0),c=e.width,k=e.enableTransition;e={};return _.a("div",{class:_.o6("tabGroupShapeSlider",(e.tabGroupShapeSliderTransition=function(){return k()},e)),
style:_.N2({width:function(){return c()+"px"},
transform:function(){return"translateX("+g()+"px)"}})})},"Kf");var RY7=_.H(function(e){var g=function(){var J,q,L;return(L=(J=e.data().playerLogoAccessibility)==null?void 0:(q=J.accessibilityData)==null?void 0:q.label)!=null?L:""},c=_.O1(U8z,function(){return e.data().playerEntityKey}),k={};
k=_.o6("ytwFantasyPlayerViewModelHost",(k.ytwFantasyPlayerViewModelPlaying=function(){var J;return!((J=c())==null||!J.isPlayerPlaying)},k.ytwFantasyPlayerViewModelOnField=function(){var J;
return((J=c())==null?void 0:J.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},k.ytwFantasyPlayerViewModelRedZone=function(){var J;
return((J=c())==null?void 0:J.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},k));
var I=function(){var J,q,L,n=((J=_.Ss().resolve(_.NN(_.gb)))==null?0:J())?(q=e.data().playerLogoBackgroundColor)==null?void 0:q.darkTheme:(L=e.data().playerLogoBackgroundColor)==null?void 0:L.lightTheme;return n===void 0?"":_.EY(n)};
return _.a("ytw-fantasy-player-view-model",{class:k},_.a(_.E,{cond:function(){return e.data().playerLogo},
then:function(J){return _.a("div",{class:"ytwFantasyPlayerViewModelLogo"},_.a("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.a(_.pv,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.N2({"background-color":I}),data:J,alt:g})),_.a("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.a(_.SU,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.a("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.a("div",{class:"ytwFantasyPlayerViewModelHeader"},_.a(_.fa,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var J;return(J=e.data())==null?void 0:J.playerNameText}}),_.a(_.fa,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var J;return(J=e.data())==null?void 0:J.playerDescriptionText}})),_.a("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.a(_.fa,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=c())==null?void 0:J.gamePeriodText}}),_.a(_.fa,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=e.data())==null?void 0:J.opponentTeamText}}),_.a(_.fa,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=c())==null?void 0:J.gameStatusText}}),_.a(_.fa,{className:_.o6("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var J;return(J=c())==null?void 0:J.playerStatusText}})),_.a("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.a(_.fa,{text:function(){var J;
return(J=c())==null?void 0:J.playerStatsText}}))),_.a(_.fa,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var J;return(J=c())==null?void 0:J.fantasyScore}}))},"Lf");var EI7=_.H(function(e){return _.a("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.a(_.E,{cond:function(){return e.data().players},
then:function(g){return _.a(_.eS,{data:g},{fantasyPlayerViewModel:RY7})}}))},"Mf");var WBv=_.H(function(e){var g=_.w(_.uF(function(){var I;return(I=e.data().selectedTabIdentifierKey)!=null?I:""})),c=g.next().value,k=g.next().value;
_.Tr(function(){var I;(I=e.setSelectedTabSignal)==null||I.call(e,c)});
return _.a("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.a("div",{class:"ytTabbedViewModelTabGroup"},_.a(_.nIz,{shape:function(){var I=e.data(),J=[],q={tabs:J};if(!I.tabs)return q;I=_.w(I.tabs);for(var L=I.next(),n={};!L.done;n={tabViewModel:void 0},L=I.next())if(n.tabViewModel=_.x(L.value,nGB),n.tabViewModel){var R=L=void 0;J.push({aTagConfig:{onclick:function(W){return function(){var b;k((b=W.tabViewModel.tabIdentifier)!=null?b:"")}}(n)},
identifier:n.tabViewModel.tabIdentifier,selected:c()===n.tabViewModel.tabIdentifier,title:(R=(L=n.tabViewModel.title)==null?void 0:L.content)!=null?R:""})}return q}})),_.a(_.eS,{data:function(){var I,J=_.w((I=e.data().tabs)!=null?I:[]);
for(I=J.next();!I.done;I=J.next())if((I=_.x(I.value,nGB))&&I.tabIdentifier===c())return I.content}},{fantasyRosterViewModel:EI7}))},"Of");_.sL(_.H(function(e){var g=_.w(CO6()),c=g.next().value,k=g.next().value;return _.a("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.a(_.fa,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return e.data().title}}),_.a(_.E,{cond:function(){return e.data().tabbedViewModel},
then:function(I){return _.a(_.eS,{data:I},{tabbedViewModel:function(J){return _.a(WBv,{data:J.data,setSelectedTabSignal:k})}})}}),_.a(_.E,{cond:function(){var I,J=(I=_.x(e.data().tabbedViewModel,R54))==null?void 0:I.tabs;
I=_.x(J==null?void 0:J[0],nGB);J=_.x(J==null?void 0:J[1],nGB);var q=I==null?void 0:I.tabIdentifier;if(c()===q){var L,n;if(!((L=_.x(I==null?void 0:I.content,Y_Z))==null?0:(n=L.players)==null?0:n.length))return e.data().noUserTeamPlayersText}else{var R,W;if(!((R=_.x(J==null?void 0:J.content,Y_Z))==null?0:(W=R.players)==null?0:W.length))return e.data().noOpponentTeamPlayersText}},
then:function(I){return _.a(_.fa,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:I})}}))},"Pf"),"ytw-fantasy-matchup-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){return _.a("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.a(_.fa,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return e.data().title}}),_.a(_.E,{cond:function(){return e.data().matchupTeamPairs},
then:function(g){return _.a(_.Yz,{each:g,keyBy:"INDEX"},function(c){return _.a("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.a(_.eS,{data:function(){return[c().firstTeam,c().secondTeam]}},{fantasyTeamViewModel:function(k){return _.a(LBz,{data:k.data,
compact:!0})}}))})}}))},"Qf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=function(){var I,J,q;return(q=(I=e.data().userLogoAccessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label)!=null?q:""},c=function(){var I,J,q;
return(q=(I=e.data().opponentLogoAccessibility)==null?void 0:(J=I.accessibilityData)==null?void 0:J.label)!=null?q:""},k=_.O1(HdW,function(){return e.data().entityKey});
return _.a("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.a("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.a(_.E,{cond:function(){return e.data().userLogo},
then:function(I){return _.a(_.pv,{className:"ytwFantasyWinProbabilityViewModelLogo",data:I,alt:g})}}),_.a("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.a(_.fa,{text:function(){return e.data().title}})),_.a(_.E,{cond:function(){return e.data().opponentLogo},
then:function(I){return _.a(_.pv,{className:"ytwFantasyWinProbabilityViewModelLogo",data:I,alt:c})}})),_.a("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.a("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.a(_.fa,{text:function(){var I;
return(I=k())==null?void 0:I.userWinNumberLabel}})),_.a("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.a("div",{class:_.o6("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.N2({flex:function(){var I,J;return(J=(I=k())==null?void 0:I.userWinNumber)!=null?J:50}})}),_.a("div",{class:_.o6("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.N2({flex:function(){var I,J;return(J=(I=k())==null?void 0:I.opponentWinNumber)!=null?J:50}})})),_.a("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.a(_.fa,{text:function(){var I;
return(I=k())==null?void 0:I.opponentWinNumberLabel}}))))},"Rf"),"fantasy-win-probability-view-model",{props:{data:_.jx}});var b1D={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},hYq=_.H(function(e){return _.a(_.eS,{data:e.button},{buttonViewModel:function(g){return _.a(_.oD,{data:g.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Sf"),Xwz=_.H(function(e){return _.a("ytd-backstage-locked-post-view-model",{class:_.o6("ytdBackstageLockedPostViewModelHost",e.className)},_.a("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.a("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.a(_.eS,
{data:function(){return e.data().authorAvatar}},{decoratedAvatarViewModel:_.WG})),_.a("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.a("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.a(_.fa,{text:function(){return e.data().authorText}})),_.a("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.a(_.fa,{text:function(){return e.data().publishedTimeText}}),_.a(_.eS,{data:function(){return e.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(g){return _.a(RHk,
{data:g.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.a("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.a(_.fa,{text:function(){return e.data().contentText}})),_.a(_.f4,null,_.a(_.DC,{when:function(){return e.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.a("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.a(_.pv,{data:b1D,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.a(_.fa,{text:function(){return e.data().lockedText}}))}),_.a(_.DC,{when:function(){return e.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.a("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.a("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.a(_.pv,{data:b1D,
alt:""})),_.a(_.fa,{text:function(){return e.data().lockedText}}))})),_.a("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.a(hYq,{button:function(){return e.data().likeButton}}),_.a("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return e.data().voteCountA11y}},_.a(_.fa,{text:function(){return e.data().voteCount}})),_.a(hYq,{button:function(){return e.data().dislikeButton}}),_.a(hYq,{button:function(){return e.data().commentButton}}),_.a("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return e.data().commentCountA11y}},_.a(_.fa,{text:function(){return e.data().commentCount}}))))},"Tf");
Xwz.idomCompat=!0;_.sL(Xwz,"ytd-backstage-locked-post-view-model",{props:{data:_.jx,className:_.jx}});_.qH("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var s9=function(){var e=_.z.apply(this,arguments)||this;e.darkerPanels=_.G("web_watch_darker_panels");e.commentsHidePanelButton=!1;e.isWatchGrid=!1;e.continuationShowButton=!1;e.isSearch=!1;e.isConstrainedList=!1;e.isWatch=!1;e.eligibleToSwitchToGrid=!1;e.useBigThumbs=!1;e.epRestyle=!1;e.isCarouselInFeed=!0;e.topSpacingZero=!1;e.continuationIsInitialLoad=!0;e.enableSqueezebackPanels=_.G("web_shorts_enable_squeezeback_panels");e.enableAnchoredPanel=_.G("desktop_shorts_v2_anchored_panel");e.notSticky=
!0;e.mastheadHeight=0;e.isStickyChipBarSetup=!1;e.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};e.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return e};
_.Y(s9,_.z);_.v=s9.prototype;_.v.updateLockupContainerTypes=function(e){if(this.eligibleToSwitchToGrid){var g;(g=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||g.forEach(function(c){c.containerType=e})}};
_.v.getItemsPath=function(){return"data.contents"};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.G("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.G("kevlar_low_priority_continuation")}}};
_.v.created=function(){};
_.v.updateStickySetup=function(){_.G("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.v.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(HW1(!this.notSticky))};
_.v.setupStickyChipBar=function(){var e=this;if(!this.isStickyChipBarSetup&&_.G("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.yg(this,this.updateHeaderState));var g;this.mastheadHeight=((g=document.querySelector("ytd-masthead"))==null?void 0:g.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(c){e.handleIntersect(c)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){e.updateHeaderState();e.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.v.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.yg(this,this.updateHeaderState));var e;(e=this.intersectionObserver)==null||e.disconnect();var g;(g=this.resizeObserver)==null||g.disconnect()}};
_.v.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.v.handleIntersect=function(e){this.notSticky=e[0].intersectionRatio===1};
_.v.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.v.detached=function(){this.teardownStickyChipBar()};
_.v.updated=function(e){e.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.v.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var e=_.o1(this.hostElement).querySelector("ytd-comments-header-renderer");e&&(e.hidePanelButton=this.commentsHidePanelButton)}};
_.v.onRetrieveLocation=function(e,g){this.containsComments()&&(this.firstCommentsLoaded=g.hasComments=!0)};
_.v.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.v.onLoadReloadContinuation=function(e,g){var c=this;e.stopPropagation();this.isReloading=!0;_.oC(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(k){var I=_.Ss().resolve(_.cg);k=g(k);I.postData(k).then(function(J){c.onReloadContinuationData(J)})}})};
_.v.onReloadContinuationData=function(e){if(e=this.get("response.continuationContents.itemSectionContinuation",e)||this.get("response.contents.itemSectionRenderer",e)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",e)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",e))this.set("data.contents",e.contents||e.results),e.header&&this.set("data.header",e.header),this.set("data.continuations",
e.continuations||[]);this.isReloading=!1};
_.v.computeContentsClass=function(e){return e?"reloading":""};
_.v.computeSectionIdentifier=function(e){return e==null?void 0:e.sectionIdentifier};
_.v.computeFitContainer=function(e){return(e==null?void 0:e.sectionIdentifier)==="youchat-item-section"};
_.v.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.G("kevlar_disable_comments_auto_load")};
_.v.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.v.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.v.computeHasDestinationShelfRenderer=function(e){var g,c;return!!(e==null?0:(g=e.contents)==null?0:(c=g[0])==null?0:c.destinationShelfRenderer)};
_.v.computeHasSectionGroupViewModel=function(e){var g,c;return!!(e==null?0:(g=e.contents)==null?0:(c=g[0])==null?0:c.sectionGroupViewModel)};
_.v.computeHasQrCodeRenderer=function(e){var g,c;return!!(e==null?0:(g=e.contents)==null?0:(c=g[0])==null?0:c.qrCodeRenderer)};
_.v.computeStaticCommentsHeader=function(e){return e&&this.containsComments()};
_.v.computeEpRestyle=function(e){return _.G("web_ep_restyling")&&e&&this.containsComments()};
_.v.computeIsContinuationCommentSection=function(e){return(e==null?void 0:e.targetId)==="shorts-engagement-panel-comments-section"||(e==null?void 0:e.targetId)==="comments-section"||(e==null?void 0:e.targetId)==="engagement-panel-comments-section"};
_.v.computeSuppressPaddingDisclaimer=function(){var e,g,c,k;return!!((e=this.data)==null?0:(g=e.contents)==null?0:(c=g[0])==null?0:(k=c.productListHeaderRenderer)==null?0:k.suppressPaddingDisclaimer)};
_.v.computeHeaderStyle=function(e){switch(e==null?void 0:e.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.v.dataChanged=function(){this.firstCommentsLoaded=!1};
_.v.observeDataContentsLength=function(){var e,g;((e=this.data)==null?0:(g=e.contents)==null?0:g.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.v.onYtDismissibleItemDismissedChange=function(e){this._setItemDismissed(e.type==="yt-dismissible-item-dismissed")};
_.v.triggerContinuations=function(){for(var e=_.o1(this.hostElement).querySelector("#continuations").children,g=0;g<e.length;g++)e[g].trigger()};
_.v.triggerInitialContinuations=function(){for(var e=_.o1(this.hostElement).querySelector("#continuations").children,g=0;g<e.length;g++)e[g].triggerIfNotPreviouslyTriggered()};
_.v.handleYtItemSectionContinuation=function(e,g){var c;g&&((c=this.data)==null?void 0:c.sectionIdentifier)!==g||(this.set("data.continuations",[e]),this.triggerContinuations())};
_.v.handleYtItemSectionReplace=function(e,g){var c;g&&((c=this.data)==null?void 0:c.sectionIdentifier)!==g||(this.set("data.contents",e),this.set("data.continuations",[]))};
_.v.computeUseHeightHack=function(e){return e&&!_.G("kevlar_disable_height_hack")};
_.v.computeTopSpacingZero=function(e){return e};
_.v.continuationShowButtonChanged=function(){var e=_.o1(this.hostElement).querySelector("ytd-continuation-item-renderer");e&&(e.showButton=this.continuationShowButton)};
_.v.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("data-changed",this.data))};
_.Bd.Object.defineProperties(s9.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.G("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return!!((e=this.data)==null?0:(g=e.contents)==null?0:(c=g[0])==null?0:c.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k,I,J,q;return!!((e=this.data)==null?0:(g=e.contents)==null?0:(c=g[0])==null?0:(k=c.shelfRenderer)==null?0:(I=k.content)==null?0:(J=I.gridRenderer)==null?0:(q=J.targetId)==null?0:q.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return!!((e=this.data)==null?0:(g=e.contents)==null?0:(c=g[0])==null?0:c.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return!!((e=this.data)==null?0:(g=e.contents)==null?0:(c=g[0])==null?0:c.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.C4("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.G("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.G("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.G("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var e,g;return!!((e=this.data)==null?0:(g=e.header)==null?0:g.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.G("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.G("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
s9.prototype.dataChangedForBinding=s9.prototype.dataChangedForBinding;s9.prototype.continuationShowButtonChanged=s9.prototype.continuationShowButtonChanged;s9.prototype.onYtDismissibleItemDismissedChange=s9.prototype.onYtDismissibleItemDismissedChange;s9.prototype.observeDataContentsLength=s9.prototype.observeDataContentsLength;s9.prototype.dataChanged=s9.prototype.dataChanged;s9.prototype.onServiceRequestCompleted=s9.prototype.onServiceRequestCompleted;s9.prototype.onLoadReloadContinuation=s9.prototype.onLoadReloadContinuation;
s9.prototype.onRetrieveLocation=s9.prototype.onRetrieveLocation;s9.prototype.commentsHidePanelButtonChanged=s9.prototype.commentsHidePanelButtonChanged;s9.prototype.dispatchChipBarIsSticky=s9.prototype.dispatchChipBarIsSticky;s9.prototype.updateStickySetup=s9.prototype.updateStickySetup;s9.prototype.updateLockupContainerTypes=s9.prototype.updateLockupContainerTypes;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],s9.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],s9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.uU.YtLazyListBehavior),_.B("design:type",Object)],s9.prototype,"ytLazyListBehavior",void 0);_.t([_.m(_.lX.YtNextContinuationBehavior),_.B("design:type",Object)],s9.prototype,"ytNextContinuationBehavior",void 0);
_.t([_.m(_.Tk),_.B("design:type",Object)],s9.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],s9.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],s9.prototype,"ytdReduxBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s9.prototype,"darkerPanels",void 0);_.t([_.u(),_.B("design:type",Object)],s9.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Boolean)],s9.prototype,"engagementPanel",void 0);_.t([_.u(),_.B("design:type",Object)],s9.prototype,"commentsHidePanelButton",void 0);_.t([_.u(),_.B("design:type",Object)],s9.prototype,"isWatchGrid",void 0);_.t([_.u(),_.B("design:type",Object)],s9.prototype,"continuationShowButton",void 0);_.t([_.u({computed:"computeIsContinuationCommentSection(data)"}),_.B("design:type",Boolean)],s9.prototype,"continuationIsCommentsSection",void 0);
_.t([_.u({value:!0}),_.B("design:type",Boolean)],s9.prototype,"autoFill",void 0);_.t([_.u(),_.B("design:type",Boolean)],s9.prototype,"continuationDisablePrescanVisibility",void 0);_.t([_.u(),_.B("design:type",Boolean)],s9.prototype,"isReloading",void 0);_.t([_.u(),_.B("design:type",Object)],s9.prototype,"isSearch",void 0);_.t([_.u(),_.B("design:type",Object)],s9.prototype,"isConstrainedList",void 0);_.t([_.u(),_.B("design:type",Object)],s9.prototype,"isWatch",void 0);
_.t([_.u(),_.B("design:type",Object)],s9.prototype,"eligibleToSwitchToGrid",void 0);_.t([_.u(),_.B("design:type",Object)],s9.prototype,"useBigThumbs",void 0);_.t([_.u({selector:_.E1,reflectToAttribute:!0}),_.B("design:type",Object)],s9.prototype,"isGridViewEnabled",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.B("design:type",Object)],s9.prototype,"epRestyle",void 0);
_.t([_.p("isWatch"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],s9.prototype,"hideShortsShelfHeader",null);_.t([_.p("isSearch","isWatch"),_.B("design:type",String),_.B("design:paramtypes",[])],s9.prototype,"thumbnailWidth",null);_.t([_.p("isSearch","containerWidth"),_.B("design:type",Object),_.B("design:paramtypes",[])],s9.prototype,"thumbnailTargetWidth",null);
_.t([_.p("isSearch","isWatch","useBigThumbs"),_.B("design:type",String),_.B("design:paramtypes",[])],s9.prototype,"sizing",null);_.t([_.p("isWatch","isGridViewEnabled","useBigThumbs","data"),_.u({reflectToAttribute:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],s9.prototype,"lockupContainerType",null);_.t([_.OY("lockupContainerType","data"),_.B("design:type",Function),_.B("design:paramtypes",[Number]),_.B("design:returntype")],s9.prototype,"updateLockupContainerTypes",null);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],s9.prototype,"pageSubtype",void 0);_.t([_.u(),_.B("design:type",Number)],s9.prototype,"containerWidth",void 0);_.t([_.u(),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],s9.prototype,"isPlaylist",null);_.t([_.u(),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],s9.prototype,"isClipList",null);_.t([_.u(),_.B("design:type",Object)],s9.prototype,"isCarouselInFeed",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],s9.prototype,"isPlaylistVideoContainer",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],s9.prototype,"isSearchFrictionPage",null);_.t([_.u({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.B("design:type",Boolean)],s9.prototype,"useHeightHack",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.B("design:type",Object)],s9.prototype,"topSpacingZero",void 0);_.t([_.u({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.B("design:type",Boolean)],s9.prototype,"showButton",void 0);_.t([_.u(),_.B("design:type",Boolean)],s9.prototype,"firstCommentsLoaded",void 0);_.t([_.u(),_.B("design:type",Object)],s9.prototype,"continuationIsInitialLoad",void 0);
_.t([_.u({reflectToAttribute:!0,readOnly:!0}),_.B("design:type",Boolean)],s9.prototype,"itemDismissed",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.B("design:type",String)],s9.prototype,"sectionIdentifier",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.B("design:type",String)],s9.prototype,"fitContainer",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.B("design:type",Boolean)],s9.prototype,"hasDestinationShelfRenderer",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.B("design:type",Boolean)],s9.prototype,"staticCommentsHeader",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s9.prototype,"enableSqueezebackPanels",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s9.prototype,"enableAnchoredPanel",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.B("design:type",Boolean)],s9.prototype,"hasSectionGroupViewModel",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.B("design:type",Boolean)],s9.prototype,"hasQrCodeRenderer",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.B("design:type",Boolean)],s9.prototype,"suppressDisclaimerSeparator",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.B("design:type",String)],s9.prototype,"headerStyle",void 0);_.t([_.p("isSearch","isWatch","useBigThumbs"),_.B("design:type",Object),_.B("design:paramtypes",[])],s9.prototype,"lockupExperiments",null);
_.t([_.p("isSearch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],s9.prototype,"typographyBump",null);_.t([_.Cs("#header"),_.B("design:type",HTMLElement)],s9.prototype,"header",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s9.prototype,"notSticky",void 0);_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],s9.prototype,"useChipBarViewModelHeader",null);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],s9.prototype,"expFixPlaylistHeader",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],s9.prototype,"expFixPlaylistHeaderV2",null);_.t([_.OY("pageSubtype"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s9.prototype,"updateStickySetup",null);
_.t([_.OY("notSticky"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s9.prototype,"dispatchChipBarIsSticky",null);_.t([_.OY("commentsHidePanelButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s9.prototype,"commentsHidePanelButtonChanged",null);_.t([_.Ks("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],s9.prototype,"onRetrieveLocation",null);
_.t([_.Ks("yt-load-reload-continuation"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Function]),_.B("design:returntype")],s9.prototype,"onLoadReloadContinuation",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s9.prototype,"onServiceRequestCompleted",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s9.prototype,"dataChanged",null);
_.t([_.k_("data.contents.length"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s9.prototype,"observeDataContentsLength",null);_.t([_.Ks("yt-dismissible-item-dismissed"),_.Ks("yt-dismissible-item-undismissed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],s9.prototype,"onYtDismissibleItemDismissedChange",null);
_.t([_.OY("continuationShowButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s9.prototype,"continuationShowButtonChanged",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s9.prototype,"dataChangedForBinding",null);_.t([_.bF({is:"ytd-item-section-renderer",disableElementRegistration:!0})],s9);
_.U(s9,"ytd-item-section-renderer",function(){if(Y6I!==void 0)return Y6I;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Y6I=e},{mode:1});var Gql;var cBU=_.PL(_.C_("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var xqo={},g7W=(xqo[0]={title:_.uB(_.C_("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.uB(_.C_("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.sV("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},xqo[1]={title:_.uB(_.C_("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.sV("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},xqo);_.qH("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var F_=function(){var e=_.z.apply(this,arguments)||this;e.allVideosCount=0;e.allPlaylistCount=0;e.isOnline=!1;e.shouldRenderDownloadsBanner=!1;e.shouldRenderDownloadsBannerUpsell=!1;e.hasOptedIntoSmartDownloads=!1;e.areAllSmartDownloadsDeleted=!1;e.smartDownloadsCompleted=!1;return e};
_.Y(F_,_.z);F_.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
F_.prototype.attached=function(){this.downloadsToRenderChanged()};
F_.prototype.detached=function(){this.set("renderableData",{})};
F_.prototype.downloadsToRenderChanged=function(){var e=_.Tt().getState().entities,g=_.LU(e),c=_.G("kevlar_playlist_dl_page_killswitch")?Yct(e):_.rq(e),k=_.b38(e),I=_.xTV(e),J=_.kd(g);e=_.aq(e);this.set("renderableData",IpA(c,g,k,I,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,J,e))};
F_.prototype.downloadsToRenderChanged=F_.prototype.downloadsToRenderChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],F_.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],F_.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],F_.prototype,"renderableData",void 0);_.t([_.u({selector:_.dTW}),_.B("design:type",Object)],F_.prototype,"allVideosCount",void 0);_.t([_.u({selector:F$W}),_.B("design:type",Object)],F_.prototype,"allPlaylistCount",void 0);_.t([_.u({selector:_.bm}),_.B("design:type",Object)],F_.prototype,"isOnline",void 0);_.t([_.u({selector:_.V_p}),_.B("design:type",Object)],F_.prototype,"shouldRenderDownloadsBanner",void 0);
_.t([_.u({selector:_.ScC}),_.B("design:type",Object)],F_.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.t([_.u({selector:_.t_g}),_.B("design:type",Object)],F_.prototype,"hasOptedIntoSmartDownloads",void 0);_.t([_.u({selector:_.BOV}),_.B("design:type",Object)],F_.prototype,"areAllSmartDownloadsDeleted",void 0);_.t([_.u({selector:NOp}),_.B("design:type",Object)],F_.prototype,"smartDownloadsCompleted",void 0);
_.t([_.k_("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F_.prototype,"downloadsToRenderChanged",null);_.t([_.bF({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],F_);
_.U(F_,"ytd-offline-item-section-renderer",function(){if(Gql!==void 0)return Gql;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Gql=e},
{mode:1});var Dqx;var $qz;var uY=function(){return _.z.apply(this,arguments)||this};
_.Y(uY,_.z);
uY.prototype.onDataChanged=function(){if(this.JSC$17186_lastData){var e=this.getFilterClass(this.JSC$17186_lastData.status);e&&this.hostElement.classList.remove(e)}var g;(e=this.getFilterClass((g=this.data)==null?void 0:g.status))&&this.hostElement.classList.add(e);e==="selected"?_.o1(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.o1(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");e==="disabled"?_.o1(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.o1(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17186_lastData=this.data};
uY.prototype.getFilterClass=function(e){switch(e){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
uY.prototype.onDataChanged=uY.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],uY.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uY.prototype,"onDataChanged",null);_.t([_.bF({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],uY);
_.U(uY,"ytd-search-filter-renderer",function(){if($qz!==void 0)return $qz;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return $qz=e},{mode:2});var d7=function(){return _.z.apply(this,arguments)||this};
_.Y(d7,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],d7.prototype,"data",void 0);_.t([_.bF({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],d7);
_.U(d7,"ytd-search-filter-group-renderer",function(){if(Dqx!==void 0)return Dqx;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Dqx=e},{mode:2});var Yvg;var zZ=function(){return _.z.apply(this,arguments)||this};
_.Y(zZ,_.z);zZ.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Bk());this.isCollapsed=!this.isCollapsed};
zZ.prototype.navigateToAboutTheseResultsPage=function(){var e=_.Sa("https://www.youtube.com/howyoutubeworks/product-features/search/");e?_.q5(window,e,"_blank"):_.zr(Error("Vh"))};
zZ.prototype.dataChanged=function(){this.isCollapsed=!0};
zZ.prototype.computeShowBottomBorder=function(){var e,g,c;return!!((e=this.data)==null?0:(g=e.button)==null?0:g.toggleButtonRenderer)||!((c=this.data)==null||!c.aboutTheseResultsButton)};
zZ.prototype.dataChanged=zZ.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],zZ.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.B("design:type",Boolean)],zZ.prototype,"showBottomBorder",void 0);_.t([_.u(),_.B("design:type",Boolean)],zZ.prototype,"renderCollapsibleMenu",void 0);
_.t([_.u(),_.B("design:type",Boolean)],zZ.prototype,"isCollapsed",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zZ.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],zZ);
_.U(zZ,"ytd-search-sub-menu-renderer",function(){if(Yvg!==void 0)return Yvg;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Yvg=e},{mode:1});var fwv;var jnj=new _.AU("SECTION_LIST_RENDERER_TOKEN");var i1o;var HE=function(){return _.z.apply(this,arguments)||this};
_.Y(HE,_.z);HE.prototype.computeStyle=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],HE.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],HE.prototype,"headerStyle",void 0);_.t([_.bF({is:"ytd-text-header-renderer",disableElementRegistration:!0})],HE);
_.U(HE,"ytd-text-header-renderer",function(){if(i1o!==void 0)return i1o;var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return i1o=e},{mode:1});var Psl;var Qc=function(){return _.z.apply(this,arguments)||this};
_.Y(Qc,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Qc.prototype,"data",void 0);_.t([_.bF({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Qc);
_.U(Qc,"ytd-minor-moment-header-renderer",function(){if(Psl!==void 0)return Psl;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Psl=e},{mode:1});var mqX;var U9=function(){return _.z.apply(this,arguments)||this};
_.Y(U9,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],U9.prototype,"data",void 0);_.t([_.bF({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],U9);
_.U(U9,"ytd-minor-moment-setting-alert-renderer",function(){if(mqX!==void 0)return mqX;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return mqX=e},{mode:1});var pwx;var TZv;var oU=function(){var e=_.z.apply(this,arguments)||this;e.booleanSettingById=!1;e.smartDownloadsEnabledVE=_.VF(128287);e.smartDownloadsDisabledVE=_.VF(128286);e.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return e};
_.Y(oU,_.z);_.v=oU.prototype;_.v.attachSmartDownloadsSettingVes=function(){var e;this.activeVeForLogging||((e=this.data)==null?void 0:e.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Nd(_.gL(),this.smartDownloadsEnabledVE),_.Nd(_.gL(),this.smartDownloadsDisabledVE))};
_.v.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.oC(this.hostElement,"yt-settings-switch-ready")};
_.v.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.v.onSwitchChange=function(e){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(e=_.A3(e).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.G("kevlar_settings_switch_resolve_command_killswitch")?_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(e)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.v.handleUpdateSettingsSwitch=function(e){(e=_.x(e,VR4))&&this.data&&this.data.id===e.id&&this.set("data.enabled",!!e.enabled)};
_.v.onToggleSettingsSwitch=function(e,g){this.data&&this.data.id===e&&this.set("data.enabled",g!=null?g:!this.data.enabled)};
_.v.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.up.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.v.maybeLogSmartDownloadsSettingVisibility=function(){var e=_.EM(),g;e&&((g=this.data)==null?void 0:g.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.iB(e,[this.smartDownloadsEnabledVE]),_.Ph(e,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.iB(e,[this.smartDownloadsDisabledVE]),_.Ph(e,[this.smartDownloadsEnabledVE])))};
_.v.maybeLogSmartDownloadsSettingClick=function(){var e;((e=this.data)==null?void 0:e.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.yW(_.gL(),this.activeVeForLogging)};
_.v.updateDataEnabledFromBinding=function(e){this.set("data.enabled",e.detail.value)};
_.Bd.Object.defineProperties(oU.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var e=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!e&&(e=this.ytRendererBehavior.getSimpleString(this.data.title));return e}}});
oU.prototype.dataChanged=oU.prototype.dataChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],oU.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],oU.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],oU.prototype,"ytComponentBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],oU.prototype,"data",void 0);_.t([_.u({selector:function(e,g){if(Object.keys(e==null?void 0:e.entities).length)switch(g){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return fGe(e.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.B("design:type",Object)],oU.prototype,"booleanSettingById",void 0);_.t([_.u(),_.B("design:type",_.n_)],oU.prototype,"activeVeForLogging",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],oU.prototype,"toggleAriaLabel",null);_.t([_.k_("data"),_.k_("booleanSettingById"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oU.prototype,"dataChanged",null);
_.t([_.bF({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],oU);
_.U(oU,"ytd-settings-switch-renderer",function(){if(TZv!==void 0)return TZv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return TZv=e},{mode:1});var ZS=function(){return _.z.apply(this,arguments)||this};
_.Y(ZS,_.z);ZS.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}}}}};
_.Bd.Object.defineProperties(ZS.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var e=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(e+=" remove-left-margin");this.data.extraBottomSpace&&(e+=" extra-bottom-space");return e}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ZS.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZS.prototype,"contentsClassName",null);_.t([_.bF({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],ZS);
_.U(ZS,"ytd-minor-moment-setting-section-renderer",function(){if(pwx!==void 0)return pwx;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return pwx=e},{mode:1});var lwq;var Vc=function(){return _.z.apply(this,arguments)||this};
_.Y(Vc,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Vc.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Vc.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],Vc);
_.U(Vc,"ytd-empty-product-details-renderer",function(){if(lwq!==void 0)return lwq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return lwq=e},{mode:1});var Akl;var snx;var tx=function(){var e=_.z.apply(this,arguments)||this;e.expanded=!0;return e};
_.Y(tx,_.z);tx.prototype.getBadgeRowClass=function(e,g,c){for(var k=_.w(this.hostElement.querySelectorAll("yt-img-shadow")),I=k.next();!I.done;I=k.next())I.value.onShow();e=e.selected;return c?e!==-1?e===g?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(e!==void 0?e:0)===g?"badge-line":"badge-hidden"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],tx.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],tx.prototype,"expanded",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],tx);
_.U(tx,"ytd-sponsorships-loyalty-badges-renderer",function(){if(snx!==void 0)return snx;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return snx=e},{mode:1});var FBz;var BE=function(){var e=_.z.apply(this,arguments)||this;e.expanded=!0;return e};
_.Y(BE,_.z);BE.prototype.getContainerClasses=function(e,g){e=e?"expanded":"collapsed";g&&(e+=" item");return e};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],BE.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],BE.prototype,"expanded",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],BE);
_.U(BE,"ytd-sponsorships-perk-renderer",function(){if(FBz!==void 0)return FBz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return FBz=e},{mode:1});var uMq;var Ng=function(){var e=_.z.apply(this,arguments)||this;e.expanded=!0;return e};
_.Y(Ng,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ng.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Ng.prototype,"expanded",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Ng);
_.U(Ng,"ytd-sponsorships-perks-renderer",function(){if(uMq!==void 0)return uMq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return uMq=e},{mode:1});var S5=function(){var e=_.z.apply(this,arguments)||this;e.isCollapsed=!1;return e};
_.Y(S5,_.z);S5.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
S5.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
S5.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var e;this.expandCollapseButton=_.x((e=this.data)==null?void 0:e.expandButton,_.G_)}else{var g;this.expandCollapseButton=_.x((g=this.data)==null?void 0:g.collapseButton,_.G_)}};
S5.prototype.updateExpandCollapseButton=S5.prototype.updateExpandCollapseButton;S5.prototype.onDataChanged=S5.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],S5.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],S5.prototype,"isCollapsed",void 0);_.t([_.u(),_.B("design:type",Object)],S5.prototype,"expandCollapseButton",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],S5.prototype,"onDataChanged",null);_.t([_.k_("data","isCollapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],S5.prototype,"updateExpandCollapseButton",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],S5);
_.U(S5,"ytd-sponsorships-expandable-perks-renderer",function(){if(Akl!==void 0)return Akl;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Akl=e},{mode:1});var dqg;var yc=function(){return _.z.apply(this,arguments)||this};
_.Y(yc,_.z);yc.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],yc.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],yc.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],yc);
_.U(yc,"ytd-sponsorships-actionable-message-renderer",function(){if(dqg!==void 0)return dqg;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return dqg=e},{mode:1});var zYo;var KE=function(){return _.z.apply(this,arguments)||this};
_.Y(KE,_.z);_.v=KE.prototype;_.v.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.v.getExpansionIcon=function(e){return e?"COLLAPSE":"EXPAND"};
_.v.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.v.computeMessageContainerStyle=function(e){var g=e.expandableItems?" style-clickable":"";return e.messageContainerStyle?e.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+g:"style-unspecified"+g};
_.v.isSinglePerk=function(e){return!!e.messageContainerStyle&&(e.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||e.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.v.onExpandedChanged=function(){var e=this;if(this.expanded)for(var g=_.w(this.hostElement.querySelectorAll("yt-img-shadow")),c=g.next();!c.done;c=g.next())c.value.onShow();_.Va(this,function(){_.oC(e.hostElement,"yt-refit")})};
_.v.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
KE.prototype.onDataChanged=KE.prototype.onDataChanged;KE.prototype.onExpandedChanged=KE.prototype.onExpandedChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],KE.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],KE.prototype,"expanded",void 0);
_.t([_.OY("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KE.prototype,"onExpandedChanged",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KE.prototype,"onDataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],KE);
_.U(KE,"ytd-sponsorships-expandable-message-renderer",function(){if(zYo!==void 0)return zYo;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return zYo=e},{mode:2});var H1x;var O9=function(){return _.z.apply(this,arguments)||this};
_.Y(O9,_.z);O9.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"}}}}};
O9.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.x(this.data.endButton,_.G_).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
O9.prototype.onDataChanged=O9.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],O9.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],O9.prototype,"onDataChanged",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],O9);
_.U(O9,"ytd-sponsorships-heading-renderer",function(){if(H1x!==void 0)return H1x;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return H1x=e},{mode:1});var QnQ;var Mg=function(){return _.z.apply(this,arguments)||this};
_.Y(Mg,_.z);_.t([_.u(),_.B("design:type",Object)],Mg.prototype,"data",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Mg);
_.U(Mg,"ytd-sponsorships-links-renderer",function(){if(QnQ!==void 0)return QnQ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return QnQ=e},{mode:1});var Uqo;var CE=function(){return _.z.apply(this,arguments)||this};
_.Y(CE,_.z);_.v=CE.prototype;_.v.onDataChanged=function(){if(this.data&&this.data.expandableItems){var e;(e=_.o1(this.hostElement).querySelector("tp-yt-paper-button"))==null||e.setAttribute("role","button")}else{var g;(g=_.o1(this.hostElement).querySelector("tp-yt-paper-button"))==null||g.removeAttribute("role")}};
_.v.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.v.getExpansionIcon=function(e){return e?"COLLAPSE":"EXPAND"};
_.v.getTileClasses=function(e){return e?"tile expandable-tile":"tile"};
_.v.getButtonDisabled=function(e){return e?void 0:""};
CE.prototype.onDataChanged=CE.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],CE.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],CE.prototype,"expanded",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CE.prototype,"onDataChanged",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],CE);
_.U(CE,"ytd-sponsorships-list-tile-renderer",function(){if(Uqo!==void 0)return Uqo;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Uqo=e},{mode:1});var oIS;var Z1v;var e7=function(){return _.z.apply(this,arguments)||this};
_.Y(e7,_.z);e7.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],e7.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],e7);
_.U(e7,"ytd-sponsorships-promotion-renderer",function(){if(Z1v!==void 0)return Z1v;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Z1v=e},{mode:1});var VuD;var g2=function(){return _.z.apply(this,arguments)||this};
_.Y(g2,_.z);g2.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],g2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],g2.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],g2);
_.U(g2,"ytd-sponsorships-purchase-option-renderer",function(){if(VuD!==void 0)return VuD;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return VuD=e},{mode:1});var tu0;var BZQ;var NZo=function(){return _.z.apply(this,arguments)||this};
_.Y(NZo,_.z);_.t([_.u(),_.B("design:type",Object)],NZo.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],NZo);
_.U(NZo,"ytd-ypc-offer-promo-renderer",function(){if(BZQ!==void 0)return BZQ;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return BZQ=e},{mode:1});var cx=function(){return _.z.apply(this,arguments)||this};
_.Y(cx,_.z);_.v=cx.prototype;
_.v.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.v.expansionCTA=function(e,g){return e&&(g?e.collapseCallToAction:e.expansionCallToAction)};
_.v.getExpansionIcon=function(e){return e?"COLLAPSE":"EXPAND"};
_.v.expansionCallToActionTap=function(){var e=this;this.expanded=!this.expanded;_.Va(this,function(){_.oC(e.hostElement,"yt-refit")})};
_.v.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var e,g=(e=this.data)==null?void 0:e.onVisible;g&&this.ytComponentBehavior.resolveCommand(g)};
_.v.computeDisplayTitle=function(e){return!(!e||this.titledisplaystatus!=="show")};
_.v.computeDisplaySeparator=function(){return!1};
_.v.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
cx.prototype.onDataChanged=cx.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],cx.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],cx.prototype,"data",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],cx.prototype,"expanded",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],cx.prototype,"purchaseButtonClicked",void 0);_.t([_.u({reflectToAttribute:!0,value:"show"}),_.B("design:type",String)],cx.prototype,"titledisplaystatus",void 0);_.t([_.u({computed:"computeDisplayTitle(data.title)"}),_.B("design:type",Boolean)],cx.prototype,"displayTitle",void 0);
_.t([_.u({computed:"computeDisplaySeparator(data)"}),_.B("design:type",Boolean)],cx.prototype,"displaySeparator",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cx.prototype,"onDataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],cx);
_.U(cx,"ytd-sponsorships-tier-renderer",function(){if(tu0!==void 0)return tu0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return tu0=e},{mode:2});var kj=function(){return _.z.apply(this,arguments)||this};
_.Y(kj,_.z);
kj.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],kj.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],kj);
_.U(kj,"ytd-sponsorships-management-renderer",function(){if(oIS!==void 0)return oIS;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return oIS=e},{mode:1});var Svq;var IW=function(){return _.z.apply(this,arguments)||this};
_.Y(IW,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],IW.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],IW);
_.U(IW,"ytd-open-in-native-app-view-model",function(){if(Svq!==void 0)return Svq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Svq=e},{mode:2});var ykj;var KBl;var O1o=_.Ti(["top-"]),Mux=_.Ti(["bottom-"]),Csx=_.Ti(["left-"]),elv=_.Ti(["right-"]),gXz={},coq=function(e,g,c){e.removeAttribute("top-"+c);e.removeAttribute("bottom-"+c);e.removeAttribute("left-"+c);e.removeAttribute("right-"+c);g&&(g.top&&_.bj([_.Ya(O1o)],e,"top-"+c,g.top),g.bottom&&_.bj([_.Ya(Mux)],e,"bottom-"+c,g.bottom),g.left&&_.bj([_.Ya(Csx)],e,"left-"+c,g.left),g.right&&_.bj([_.Ya(elv)],e,"right-"+c,g.right))};
gXz.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(e){var g,c=_.o1((g=this.hostElement)!=null?g:this),k;g=this.cardItemBoxBehaviorMarginTargetId&&c?c.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(k=this.hostElement)!=null?k:this;coq(g,e,"margin")},
cardItemContainerPaddingChanged_:function(e){var g,c=_.o1((g=this.hostElement)!=null?g:this),k;g=this.cardItemBoxBehaviorPaddingTargetId&&c?c.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(k=this.hostElement)!=null?k:this;coq(g,e,"padding")}}];var Jf={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var kDM;var I0z;var vx=function(){return _.z.apply(this,arguments)||this};
_.Y(vx,_.z);vx.prototype.textColorChanged_=function(){this.hostElement.style.color=Jf[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
vx.prototype.textColorChanged_=vx.prototype.textColorChanged_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.t([_.m(gXz.YtCardItemBoxBehavior),_.B("design:type",Object)],vx.prototype,"ytCardItemBoxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vx.prototype,"data",void 0);_.t([_.OY("data.textColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vx.prototype,"textColorChanged_",null);
_.t([_.Wo({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],vx);
_.U(vx,"yt-card-item-text-renderer",function(){if(I0z===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;kDM===void 0&&(kDM=document.createElement("template"));var k=kDM;c.call(g,k.content.cloneNode(!0),e.content.firstChild);I0z=e}e=I0z;return e},{mode:2});var Jo0;var vXv;var w2=function(){return _.z.apply(this,arguments)||this};
_.Y(w2,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],w2.prototype,"data",void 0);_.t([_.Wo({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],w2);
_.U(w2,"yt-card-item-badge-renderer",function(){if(vXv===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Jo0===void 0&&(Jo0=document.createElement("template"));var k=Jo0;c.call(g,k.content.cloneNode(!0),e.content.firstChild);vXv=e}e=vXv;return e},{mode:2});var wqS;var q7D;var qV=function(){return _.z.apply(this,arguments)||this};
_.Y(qV,_.z);qV.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qV.prototype,"data",void 0);_.t([_.Wo({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],qV);
_.U(qV,"yt-card-item-text-collection-renderer",function(){if(q7D===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;wqS===void 0&&(wqS=document.createElement("template"));var k=wqS;c.call(g,k.content.cloneNode(!0),e.content.firstChild);q7D=e}e=q7D;return e},{mode:2});var LOz;var roj;var Lc=function(){return _.z.apply(this,arguments)||this};
_.Y(Lc,_.z);Lc.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Lc.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Number)],Lc.prototype,"iconSize",void 0);_.t([_.Wo({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Lc);
_.U(Lc,"yt-card-item-text-with-button-renderer",function(){if(roj===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;LOz===void 0&&(LOz=document.createElement("template"));var k=LOz;c.call(g,k.content.cloneNode(!0),e.content.firstChild);roj=e}e=roj;return e},{mode:2});var r2=function(){return _.z.apply(this,arguments)||this};
_.Y(r2,_.z);r2.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],r2.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],r2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],r2.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],r2);
_.U(r2,"ytd-commerce-cart-summary-line-item-renderer",function(){if(KBl!==void 0)return KBl;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return KBl=e},{mode:1});_.qH("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var aW=function(){var e=_.z.apply(this,arguments)||this;e.hidden=!1;return e};
_.Y(aW,_.z);_.v=aW.prototype;_.v.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.v.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.v.updateSummary=function(){var e=this.commerceCartCheckoutButtonEntity,g;if(((g=this.data)==null?0:g.cartButton)&&e.checkoutSummaryText){var c,k=nL((c=this.data)==null?void 0:c.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+k+".cardItemTextRenderer.text",Rm(e.checkoutSummaryText));if(e.checkoutDetailText){var I;c=nL((I=this.data)==null?void 0:I.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+c+".cardItemTextRenderer.text",Rm(e.checkoutDetailText))}if(e.checkoutAdditionalMetadataText){var J;
I=nL((J=this.data)==null?void 0:J.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+I+".cardItemTextRenderer.text",Rm(e.checkoutAdditionalMetadataText))}}else e.estimatedTotalPrice&&(J=nL((k=this.data)==null?void 0:k.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+J+".cardItemTextRenderer.text",Rm(e.estimatedTotalPrice)))};
_.v.updateIsHidden=function(){var e,g=(e=this.commerceCartCheckoutButtonEntity)==null?void 0:e.isHidden;g!==void 0&&(this.hidden=g)};
_.v.updateCheckoutButton=function(){var e,g=(e=this.commerceCartCheckoutButtonEntity)==null?void 0:e.isDisabled;g!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",g);var c;e=(c=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:c.innertubeCommand;e!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",e);var k;c=(k=this.commerceCartCheckoutButtonEntity)==null?void 0:k.checkoutButtonText;c!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:c})};
aW.prototype.entityChanged=aW.prototype.entityChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],aW.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],aW.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],aW.prototype,"fullWidth",void 0);_.t([_.u(),_.B("design:type",Object)],aW.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],aW.prototype,"compact",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],aW.prototype,"hidden",void 0);
_.t([_.u({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:TnU}),_.B("design:type",Object)],aW.prototype,"commerceCartCheckoutButtonEntity",void 0);_.t([_.OY("commerceCartCheckoutButtonEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aW.prototype,"entityChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],aW);
_.U(aW,"ytd-commerce-cart-checkout-button-renderer",function(){if(ykj!==void 0)return ykj;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ykj=e},{mode:2});var a07;_.nXx={};
_.nXx.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",_.yg(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.yg(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(e){!this.tappableItemBehaviorTapEnabled||e.keyCode!==13&&e.keyCode!==32||e.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var e=this.data.onTap;e.ypcGetCartEndpoint?(_.tr(this.hostElement,[e]),this.tappableItemBehaviorTapEnabled=!1):e.ypcOffersEndpoint?_.tr(this.hostElement,[e]):_.Bm(this.hostElement,[e],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(e){this.tappableItemBehaviorTapEnabled=!!e},
tappableItemBehaviorOnTapEnabledChanged_:function(){var e=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(e.setAttribute("tabIndex",0),e.setAttribute("role","button")):(e.removeAttribute("tabIndex"),e.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(e){e.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var Rlo;var EXQ;var nc=function(){return _.z.apply(this,arguments)||this};
_.Y(nc,_.z);nc.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Lx("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Lx("sharingToggleButtonAndDefaultButton")}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],nc.prototype,"data",void 0);_.t([_.Wo({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],nc);
_.U(nc,"yt-card-item-actions-renderer",function(){if(EXQ===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Rlo===void 0&&(Rlo=document.createElement("template"));var k=Rlo;c.call(g,k.content.cloneNode(!0),e.content.firstChild);EXQ=e}e=EXQ;return e},{mode:2});var WOl;var bgM;var hlo;var XqX;var GDD;var xMz;var RW=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return e};
_.Y(RW,_.z);RW.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
RW.prototype.handleDarkModeToggledAction_=function(e){this.isDarkTheme_=e};
RW.prototype.computeThemeImage_=function(e,g){if(!e||!e.imageLight)return!1;this.isCircular_=e.isCircular;e.imageWidth&&(this.hostElement.style.width=e.imageWidth+"px");e.imageHeight&&(this.hostElement.style.height=e.imageHeight+"px");e.borderWidth&&(this.image.style.borderWidth=e.borderWidth+"px",this.image.style.borderStyle="solid");e.borderColor&&(this.image.style.borderColor=_.EY(e.borderColor));return g&&e.imageDark?e.imageDark:e.imageLight};
RW.prototype.computeThemeIcon_=function(e){var g,c;if(!(e==null?0:(g=e.themedIcon)==null?0:(c=g.icon)==null?0:c.iconType))return!1;this.icon.style.color=Jf[e.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(e.imageWidth||18)+"px";this.icon.style.height=(e.imageHeight||18)+"px";return _.NY(e.themedIcon.icon.iconType)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(gXz.YtCardItemBoxBehavior),_.B("design:type",Object)],RW.prototype,"ytCardItemBoxBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],RW.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],RW.prototype,"data",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],RW.prototype,"fit",void 0);_.t([_.u(),_.B("design:type",Boolean)],RW.prototype,"isDarkTheme_",void 0);_.t([_.u({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.B("design:type",Object)],RW.prototype,"themeImage_",void 0);_.t([_.u({computed:"computeThemeIcon_(data)"}),_.B("design:type",Object)],RW.prototype,"themeIcon_",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],RW.prototype,"isCircular_",void 0);
_.t([_.Cs("#image"),_.B("design:type",Object)],RW.prototype,"image",void 0);_.t([_.Cs("#icon"),_.B("design:type",Object)],RW.prototype,"icon",void 0);_.t([_.Wo({is:"yt-themed-image-renderer",disableElementRegistration:!0})],RW);
_.U(RW,"yt-themed-image-renderer",function(){if(xMz===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;GDD===void 0&&(GDD=document.createElement("template"));var k=GDD;c.call(g,k.content.cloneNode(!0),e.content.firstChild);xMz=e}e=xMz;return e},{mode:2});var Eq=function(){return _.z.apply(this,arguments)||this};
_.Y(Eq,_.z);Eq.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"}}}}};
Eq.prototype.computeImagePlacement_=function(e){return e||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Eq.prototype,"data",void 0);_.t([_.u({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.B("design:type",String)],Eq.prototype,"imagePlacement",void 0);
_.t([_.Wo({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Eq);
_.U(Eq,"yt-card-item-text-with-image-renderer",function(){if(XqX===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;hlo===void 0&&(hlo=document.createElement("template"));var k=hlo;c.call(g,k.content.cloneNode(!0),e.content.firstChild);XqX=e}e=XqX;return e},{mode:2});var Wx=function(){return _.z.apply(this,arguments)||this};
_.Y(Wx,_.z);Wx.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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Wx.prototype,"data",void 0);_.t([_.Wo({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Wx);
_.U(Wx,"yt-card-item-error-renderer",function(){if(bgM===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;WOl===void 0&&(WOl=document.createElement("template"));var k=WOl;c.call(g,k.content.cloneNode(!0),e.content.firstChild);bgM=e}e=bgM;return e},{mode:2});var DMj;var $MD;_.qH("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var bJ=function(){return _.z.apply(this,arguments)||this};
_.Y(bJ,_.z);_.v=bJ.prototype;
_.v.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.v.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.v.backgroundColorChanged_=function(){var e,g=(e=this.data)==null?void 0:e.backgroundColor;e=Jf[g||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.o1(this.hostElement).querySelector("#main-content").style.backgroundColor=e};
_.v.headerPromoBackgroundColorChanged_=function(){var e,g=(e=this.data)==null?void 0:e.headerPromoBackgroundColor;e=Jf[g||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.o1(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=e};
_.v.errorRendererVisibilityChanged_=function(){var e=this.isExpanded_,g;this.isErrorRendererVisible_=!((g=this.data)==null||!g.errorRenderer)&&!e};
_.v.onYtToggleButton_=function(e,g){this.isExpanded_=g.toggled};
bJ.prototype.onYtToggleButton_=bJ.prototype.onYtToggleButton_;bJ.prototype.errorRendererVisibilityChanged_=bJ.prototype.errorRendererVisibilityChanged_;bJ.prototype.headerPromoBackgroundColorChanged_=bJ.prototype.headerPromoBackgroundColorChanged_;bJ.prototype.backgroundColorChanged_=bJ.prototype.backgroundColorChanged_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],bJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(gXz.YtCardItemBoxBehavior),_.B("design:type",Object)],bJ.prototype,"ytCardItemBoxBehavior",void 0);_.t([_.m(_.nXx.YtTappableItemBehavior),_.B("design:type",Object)],bJ.prototype,"ytTappableItemBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],bJ.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],bJ.prototype,"isExpanded_",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],bJ.prototype,"isErrorRendererVisible_",void 0);_.t([_.OY("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bJ.prototype,"backgroundColorChanged_",null);_.t([_.OY("data.headerPromoBackgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bJ.prototype,"headerPromoBackgroundColorChanged_",null);
_.t([_.OY("data.errorRenderer","isExpanded_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bJ.prototype,"errorRendererVisibilityChanged_",null);_.t([_.Ks("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],bJ.prototype,"onYtToggleButton_",null);_.t([_.Wo({is:"yt-card-item-renderer",disableElementRegistration:!0})],bJ);
_.U(bJ,"yt-card-item-renderer",function(){if($MD===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;DMj===void 0&&(DMj=document.createElement("template"));var k=DMj;c.call(g,k.content.cloneNode(!0),e.content.firstChild);$MD=e}e=$MD;return e},{mode:2});_.qH("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var hf=function(){var e=_.z.apply(this,arguments)||this;e.hidden=!1;return e};
_.Y(hf,_.z);_.v=hf.prototype;_.v.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.v.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.v.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var e,g=(e=this.commerceCartHeaderEntity)==null?void 0:e.isHidden;g!==void 0&&(this.hidden=g)}};
_.v.updateTitle=function(){var e=this.commerceCartHeaderEntity.isDisabled,g,c,k=(c=_.x((g=this.data)==null?void 0:g.item,ZjM))==null?void 0:c.headingRenderer;k&&(g=nL(k,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+g+".0.cardItemTextRenderer.textColor",e?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.v.updateSummaryText=function(){var e=this.commerceCartHeaderEntity;if(this.compact){var g,c,k=(c=_.x((g=this.data)==null?void 0:g.item,ZjM))==null?void 0:c.headingRenderer;k&&(g=nL(k,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+g+".1.cardItemTextRenderer.text",e.shortHeaderSummaryText?Rm(e.shortHeaderSummaryText):e.headerSummaryText?Rm(e.headerSummaryText):""))}else{var I;if(g=(I=_.x((k=this.data)==null?void 0:k.item,ZjM))==null?void 0:I.additionalInfoRenderer)g=nL(g,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+g+".text",e.headerSummaryText?Rm(e.headerSummaryText):"")}};
_.v.updateCheckoutButton=function(){var e=this.commerceCartHeaderEntity,g,c,k=(c=_.x((g=this.data)==null?void 0:g.item,ZjM))==null?void 0:c.additionalInfoRenderer;g=nL(k,"buttonRenderer");var I;c=(I=this.commerceCartHeaderEntity)==null?void 0:I.isButtonDisabled;var J;I=(J=this.commerceCartHeaderEntity)==null?void 0:J.isButtonHidden;c!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+g+".buttonRenderer.isDisabled",c);I!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
I);var q;e=(q=e.checkoutButtonCommand)==null?void 0:q.innertubeCommand;e!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+g+".buttonRenderer.command",e)};
hf.prototype.entityChanged=hf.prototype.entityChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],hf.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],hf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],hf.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],hf.prototype,"compact",void 0);_.t([_.u({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(e,g){return _.Nc(e.entities,"commerceCartHeaderEntity",g)}}),
_.B("design:type",Object)],hf.prototype,"commerceCartHeaderEntity",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],hf.prototype,"hidden",void 0);_.t([_.OY("commerceCartHeaderEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hf.prototype,"entityChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],hf);
_.U(hf,"ytd-commerce-cart-header-renderer",function(){if(a07!==void 0)return a07;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return a07=e},{mode:1});var Y7M;var f0l=_.RX(function(e,g){var c;return(c=e.onChangeCallback)==null?void 0:c.call(e,g)},1E3),jxO=_.H(function(e){var g=e.data;
var c=e.iconMinus;e=e.iconPlus;var k=function(){return!!g().disabled},I=_.w(_.Wa(0,void 0,"mKh0af")),J=I.next().value,q=I.next().value;
I=_.Ve(function(){if(J()===1){var b,h;(h=(b=g()).onRemoveCommand)==null||h.call(b)}b=J()>g().maxValue?g().maxValue:J()-1;q(b);f0l(g(),b);return!1});
var L=_.Ve(function(){if(J()===g().maxValue)return!1;var b=J()+1;q(b);f0l(g(),b);return!1});
_.Tr(function(){q(g().value)});
var n={},R={},W={};return _.a("quantity-incrementer-shape",null,_.a("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.a("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return J()===(g().onRemoveCommand?0:1)||k()},
"aria-label":function(){return J()!==1?g().minusLabel:g().minimumReachedLabel},
"on:click":I},_.a(_.zG,{model:{circular:!0}}),_.a("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.a("div",{class:_.o6("ytSpecQuantityIncrementerShapeIcon",(n.ytSpecQuantityIncrementerShapeIconDisabled=function(){return k()||J()===(g().onRemoveCommand?0:1)},n))},c()))),_.a("div",{class:_.o6("ytSpecQuantityIncrementerShapeText",(R.ytSpecQuantityIncrementerShapeTextInvalid=function(){return J()>g().maxValue},R.ytSpecQuantityIncrementerShapeTextDisabled=k,R))},J),_.a("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return J()>=g().maxValue||k()},
"aria-label":function(){return J()!==g().maxValue?g().plusLabel:g().maximumReachedLabel},
"on:click":L},_.a(_.zG,{model:{circular:!0}}),_.a("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.a("div",{class:_.o6("ytSpecQuantityIncrementerShapeIcon",(W.ytSpecQuantityIncrementerShapeIconDisabled=function(){return J()>=g().maxValue||k()},W))},e())))))},"Vf");_.sL(_.H(function(e){function g(){c().onRemoveCommand&&_.GF(c().onRemoveCommand)}
var c=e.data;var k=_.O1(tBV,function(){return c().quantityIncrementerEntityKey});
return _.a("yt-quantity-incrementer-view-model",null,_.a(jxO,{data:function(){var I=c(),J;var q=k()?!((J=k())==null||!J.disabled):!1;var L;J=k()?(L=k())==null?void 0:L.quantity:c().quantity;return wDU(I,q,g,J)},
iconMinus:function(){return _.a(_.SU,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.a(_.SU,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Wf"),"yt-quantity-incrementer-view-model",{props:{data:_.jx}});var X4=function(){var e=_.z.apply(this,arguments)||this;e.compact=!1;e.hasQuantityIncrementer=!1;return e};
_.Y(X4,_.z);X4.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"}}}};
X4.prototype.computeHasQuantityIncrementer=function(){var e;return!!_.x((e=this.data)==null?void 0:e.picker,NC1)};
X4.prototype.onLabelClick=function(){var e;(e=this.dropdownEl)==null||e.open()};
_.t([_.Cs("ytd-dropdown-renderer"),_.B("design:type",Object)],X4.prototype,"dropdownEl",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],X4.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],X4.prototype,"quantityColor",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],X4.prototype,"compact",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.B("design:type",Object)],X4.prototype,"hasQuantityIncrementer",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],X4);
_.U(X4,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(Y7M!==void 0)return Y7M;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Y7M=e},{mode:1});var igg;var PSX;var G0=function(){return _.z.apply(this,arguments)||this};
_.Y(G0,_.z);G0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
G0.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
G0.prototype.updateTitle=function(){var e=this.disabledCartItemEntity;e.disableActionName&&this.set("data.title",Rm(e.disableActionName))};
G0.prototype.updateButton=function(){var e,g=(e=this.disabledCartItemEntity.undoCommand)==null?void 0:e.innertubeCommand;g!==void 0&&(this.set("data.actionButton.buttonRenderer.command",g),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
G0.prototype.entityChanged=G0.prototype.entityChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],G0.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(e,g){return _.Nc(e.entities,"disabledCartItemEntity",g)}}),
_.B("design:type",Object)],G0.prototype,"disabledCartItemEntity",void 0);_.t([_.u(),_.B("design:type",Object)],G0.prototype,"data",void 0);_.t([_.OY("disabledCartItemEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G0.prototype,"entityChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],G0);
_.U(G0,"ytd-disabled-cart-item-renderer",function(){if(PSX!==void 0)return PSX;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return PSX=e},{mode:1});_.qH("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var xj=function(){var e=_.z.apply(this,arguments)||this;e.compact=!1;e.hidden=!1;e.errorHidden=!1;e.noOnTap=!1;return e};
_.Y(xj,_.z);_.v=xj.prototype;
_.v.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.v.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.v.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var e=this.firstButtonElement;e.alignByText=!0;e.iconAlignByText=!0}};
_.v.computeNoOnTap=function(e){return!e};
_.v.updateQuantityColor=function(){if(this.pickerElement){var e,g=(e=this.commerceCartItemEntity)==null?void 0:e.quantityColor;this.pickerElement.quantityColor=g}};
_.v.updateTotalPriceColor=function(){var e,g=(e=this.commerceCartItemEntity)==null?void 0:e.totalPriceColor;if(g){var c;e=_.x((c=this.data)==null?void 0:c.quantityPicker,tI1);if(c=_.x(e==null?void 0:e.price,VI4))c.textColor=g}};
_.v.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var e,g=(e=this.commerceCartItemEntity)==null?void 0:e.isHidden;g!==void 0&&(this.hidden=g)}};
_.v.updateHideErrorMessage=function(){var e,g=(e=this.commerceCartItemEntity)==null?void 0:e.hideErrorMessage;g!==void 0&&(this.errorHidden=g)};
_.v.updateQuantity=function(){var e=this,g,c=(g=this.commerceCartItemEntity)==null?void 0:g.quantity,k;g=(k=this.commerceCartItemEntity)==null?void 0:k.totalPrice;if(c){this.updateTotalPriceColor();this.updateQuantityColor();var I;k=_.x((I=this.data)==null?void 0:I.quantityPicker,tI1);if(I=_.x(k==null?void 0:k.price,VI4))I.text=g?{simpleText:g.content}:void 0;if(g=_.x(k==null?void 0:k.picker,NC1))g.quantity=c;var J;if(I=(J=_.x(k==null?void 0:k.picker,tq1))==null?void 0:J.entries){J=!1;g=void 0;I=
_.w(I);for(k=I.next();!k.done;k=I.next())k=k.value,k.dropdownItemRenderer&&(g||(g=k.dropdownItemRenderer),k.dropdownItemRenderer.isSelected=!1,c===k.dropdownItemRenderer.int32Value&&(J=!0,k.dropdownItemRenderer.isSelected=!0));!J&&g&&(g.isSelected=!0)}_.Va(this,function(){var q;e.set("data.quantityPicker",_.n0.unsafeClone((q=e.data)==null?void 0:q.quantityPicker))})}};
xj.prototype.onYtRendererstamperFinished=xj.prototype.onYtRendererstamperFinished;xj.prototype.entityChanged=xj.prototype.entityChanged;_.t([_.u(),_.B("design:type",Object)],xj.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],xj.prototype,"compact",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],xj.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],xj.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(e,g){return _.Nc(e.entities,"commerceCartItemEntity",g)}}),
_.B("design:type",Object)],xj.prototype,"commerceCartItemEntity",void 0);_.t([_.u(),_.B("design:type",Object)],xj.prototype,"quantityPicker",void 0);_.t([_.u(),_.B("design:type",Object)],xj.prototype,"compactQuantityPicker",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],xj.prototype,"hidden",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],xj.prototype,"errorHidden",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.B("design:type",Object)],xj.prototype,"noOnTap",void 0);_.t([_.Cs("ytd-commerce-cart-item-quantity-picker-renderer"),_.B("design:type",Object)],xj.prototype,"pickerElement",void 0);_.t([_.Cs("yt-button-renderer"),_.B("design:type",Element)],xj.prototype,"firstButtonElement",void 0);
_.t([_.OY("commerceCartItemEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xj.prototype,"entityChanged",null);_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xj.prototype,"onYtRendererstamperFinished",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],xj);
_.U(xj,"ytd-commerce-cart-item-renderer",function(){if(igg!==void 0)return igg;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return igg=e},{mode:2});var mMo;var pqg;var DJ=function(){return _.z.apply(this,arguments)||this};
_.Y(DJ,_.z);DJ.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}}}}}};
DJ.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
DJ.prototype.updateCheckoutLineItems=function(){var e,g=(e=this.commerceCartCheckoutButtonEntity)==null?void 0:e.checkoutLineItems;g&&(e=g.map(function(c){a:{var k=c.price,I=c.description;switch(c.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":c={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Rm(I),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:Rm(k),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:c={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Rm(I),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:Rm(k),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 c}),this.set("data.summaryLineItems",e))};
DJ.prototype.updateIsHidden=function(){var e,g=(e=this.commerceCartCheckoutButtonEntity)==null?void 0:e.isHidden;g!==void 0&&(this.hostElement.hidden=g)};
DJ.prototype.entityChanged=DJ.prototype.entityChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],DJ.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],DJ.prototype,"data",void 0);_.t([_.u({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:TnU}),_.B("design:type",Object)],DJ.prototype,"commerceCartCheckoutButtonEntity",void 0);_.t([_.OY("commerceCartCheckoutButtonEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DJ.prototype,"entityChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],DJ);
_.U(DJ,"ytd-commerce-cart-summary-renderer",function(){if(pqg!==void 0)return pqg;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return pqg=e},{mode:1});var Tjx={};Tjx.InjectBehavior=[oJK.InjectBehavior];var l0Q;var Aog;var Yj=function(){return _.z.apply(this,arguments)||this};
_.Y(Yj,_.z);
Yj.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:_.Lx("menuRenderer")}}};
Yj.prototype.onMenuTap=function(e){e.stopPropagation()};
_.Bd.Object.defineProperties(Yj.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 e,g;return!(((e=this.data)==null||!e.sectionHeading)&&((g=this.data)==null?void 0:g.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var e,g;return!(((e=this.data)==null||!e.image)&&((g=this.data)==null?void 0:g.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var e,g;return!(((e=this.data)==null||!e.menu)&&((g=this.data)==null?void 0:g.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Yj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.nXx.YtTappableItemBehavior),_.B("design:type",Object)],Yj.prototype,"ytTappableItemBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Yj.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("data.accessibilityData"),_.B("design:type",String),_.B("design:paramtypes",[])],Yj.prototype,"ariaLabel",null);_.t([_.p("data.sectionHeading","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Yj.prototype,"sectionHeadingVisible",null);_.t([_.p("data.image","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Yj.prototype,"imageVisible",null);
_.t([_.p("data.menu","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Yj.prototype,"menuVisible",null);_.t([_.Wo({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Yj);
_.U(Yj,"yt-activity-item-renderer",function(){if(Aog===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;l0Q===void 0&&(l0Q=document.createElement("template"));var k=l0Q;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Aog=e}e=Aog;return e},{mode:2});var sxj;var FOg;var uQQ;var dMg;var fc=function(){return _.z.apply(this,arguments)||this};
_.Y(fc,_.z);
fc.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"}}}}};
fc.prototype.backgroundColorChanged_=function(){var e,g=(e=this.data)==null?void 0:e.backgroundColor;this.hostElement.style.backgroundColor=Jf[g||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
fc.prototype.backgroundColorChanged_=fc.prototype.backgroundColorChanged_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],fc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fc.prototype,"data",void 0);
_.t([_.OY("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fc.prototype,"backgroundColorChanged_",null);_.t([_.Wo({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],fc);
_.U(fc,"yt-offer-item-upsell-renderer",function(){if(dMg===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;uQQ===void 0&&(uQQ=document.createElement("template"));var k=uQQ;c.call(g,k.content.cloneNode(!0),e.content.firstChild);dMg=e}e=dMg;return e},{mode:2});_.qH("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var j7=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};e.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return e};
_.Y(j7,_.z);_.v=j7.prototype;
_.v.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.Lx("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.v.computeContainerStyle_=function(e){return e};
_.v.computeContainerIsHidden_=function(e){return e&&!!e.isHidden};
_.v.computeShowSpinner_=function(e,g){return e&&g==="in-progress"};
_.v.computeShowMoreContentsButton_=function(e,g,c,k,I){return!(!(k&&k.length||I&&I.length&&c)||!e||g)};
_.v.onToggleButton_=function(e){var g=this;e.stopPropagation();this.isExpanded_=e.detail&&e.detail.toggled;var c,k;this.isExpanded_&&!this.data.continuationSection.length&&((c=this.data)==null?0:(k=c.continuation)==null?0:k.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.oC(this.hostElement,"yt-load-next-continuation",function(I){return g.getContinuationUrl_(g.data.continuation.onClickContinuationData,I)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.tr(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.v.onShowMoreContentsButtonClicked_=function(e){var g=this;e.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.oC(this.hostElement,"yt-load-next-continuation",function(c){return g.getContinuationUrl_(g.data.continuations[0].nextContinuationData,c)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.tr(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.v.getContinuationUrl_=function(e,g){var c=e.continuation;e=e.clickTrackingParams;var k=_.EM();e&&k&&_.m7(k,_.Jb(e));return _.MO(g,{continuation:c})};
_.v.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var e=_.o1(this.hostElement).querySelector("#continuation-section");e&&(e=e.querySelectorAll("ytmusic-item-section-renderer"))&&e.forEach(function(g){return g.classList.add("memberships-and-purchases")})};
_.v.dataChanged_=function(){var e;this.isExpanded_=!((e=this.data)==null||!e.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.v.updateCardOnClickCommand_=function(e){e=_.x(e,Fwu);var g,c;this.data&&((g=this.data)==null?0:g.targetId)&&e&&e.targetId===((c=this.data)==null?void 0:c.targetId)&&e.onClickCommand&&(this.data.onClickCommand=e.onClickCommand,this.isOnClickCommand_=!0)};
_.v.backgroundColorChanged_=function(){var e,g=(e=this.data)==null?void 0:e.backgroundColor;this.hostElement.style.backgroundColor=Jf[g||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
j7.prototype.backgroundColorChanged_=j7.prototype.backgroundColorChanged_;j7.prototype.dataChanged_=j7.prototype.dataChanged_;j7.prototype.nextContinuationDataUpdated_=j7.prototype.nextContinuationDataUpdated_;j7.prototype.onToggleButton_=j7.prototype.onToggleButton_;_.t([_.m(_.Tk),_.B("design:type",Object)],j7.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],j7.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.lX.YtNextContinuationBehavior),_.B("design:type",Object)],j7.prototype,"ytNextContinuationBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.t([_.m(Tjx.InjectBehavior),_.B("design:type",Object)],j7.prototype,"injectBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],j7.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],j7.prototype,"compact",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],j7.prototype,"isExpanded_",void 0);_.t([_.u({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.B("design:type",String)],j7.prototype,"containerStyle_",void 0);_.t([_.u({value:"not-started"}),_.B("design:type",String)],j7.prototype,"continuationStatus_",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.B("design:type",Boolean)],j7.prototype,"showSpinner_",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],j7.prototype,"isOnClickCommand_",void 0);_.t([_.u({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.B("design:type",Boolean)],j7.prototype,"showMoreContentsButton_",void 0);
_.t([_.u({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(e,g){return!g||e.entities?null:_.Nc(e.entities,"cardItemContainerEntity",g)}}),
_.B("design:type",Object)],j7.prototype,"cardItemContainerEntity_",void 0);_.t([_.Ks("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],j7.prototype,"onToggleButton_",null);_.t([_.Ks("yt-next-continuation-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j7.prototype,"nextContinuationDataUpdated_",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j7.prototype,"dataChanged_",null);_.t([_.OY("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j7.prototype,"backgroundColorChanged_",null);_.t([_.Wo({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],j7);
_.U(j7,"yt-card-item-container-renderer",function(){if(FOg===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;sxj===void 0&&(sxj=document.createElement("template"));var k=sxj;c.call(g,k.content.cloneNode(!0),e.content.firstChild);FOg=e}e=FOg;return e},{mode:2});var iJ=function(){return _.z.apply(this,arguments)||this};
_.Y(iJ,_.z);iJ.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"}}}};
iJ.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
iJ.prototype.computeLoadingHidden=function(){var e;return!((e=this.commerceCartPageStateEntity)==null?0:e.cartActionInProgress)};
iJ.prototype.updateNotification=function(){var e,g=(e=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:e.summaryText;g&&this.set("data.cartNotification",Rm(g))};
iJ.prototype.notificationEntityChanged=iJ.prototype.notificationEntityChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],iJ.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],iJ.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],iJ.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],iJ.prototype,"data",void 0);_.t([_.u({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(e,g){return _.Nc(e.entities,"commerceCartExpandableNotificationEntity",g)}}),
_.B("design:type",Object)],iJ.prototype,"commerceCartExpandableNotificationEntity",void 0);_.t([_.u({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(e,g){return _.Nc(e.entities,"commerceCartPageStateEntity",g)}}),
_.B("design:type",Object)],iJ.prototype,"commerceCartPageStateEntity",void 0);_.t([_.Cs("#spinner"),_.B("design:type",HTMLElement)],iJ.prototype,"spinner",void 0);_.t([_.OY("commerceCartExpandableNotificationEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iJ.prototype,"notificationEntityChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],iJ);
_.U(iJ,"ytd-commerce-cart-renderer",function(){if(mMo!==void 0)return mMo;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return mMo=e},{mode:1});var zlj;var Px=function(){var e=_.z.apply(this,arguments)||this;e.bigImage=!1;return e};
_.Y(Px,_.z);_.Bd.Object.defineProperties(Px.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.placeholderImageUrl}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Px.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Px.prototype,"bigImage",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Px.prototype,"placeholderImageUrl",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Px);
_.U(Px,"ytd-empty-product-shelf-renderer",function(){if(zlj!==void 0)return zlj;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return zlj=e},{mode:1});var Hgq;var m8=function(){var e=_.z.apply(this,arguments)||this;e.itemStyle="link-item";e.watchMetadataRefresh=!1;e.skinnyMode=!1;e.metaPanel=!1;e.inStructuredDescription=!1;e.detailedDescriptionOverride=!1;e.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};e.updateOnResizeDebouncer=null;return e};
_.Y(m8,_.z);_.v=m8.prototype;_.v.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.v.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.v.attachVEs=function(e){e.trackingParams&&_.gL().graftServerVe(e.trackingParams)};
_.v.handleUpdateMerchShelfAction=function(e){var g=this,c=_.x(e.updateMerchandiseShelfAction.merchandiseShelf,_.vCB);c&&(c.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){g.attachVEs(c);g.data=c},Number(c.renderDelayMs))):(this.attachVEs(c),this.data=c))};
_.v.updateOnResize=function(){if(this.JSC$17354_scrollContainer!==void 0&&this.JSC$17354_scrollContainer.clientWidth!==0&&this.items!==void 0){var e=this.JSC$17354_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-e));this.ytdHorizontalListBehavior.reposition_();var g;switch((g=this.data)==null?void 0:g.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var c,
k;((c=this.data)==null?void 0:(k=c.items)==null?void 0:k.length)===1?this.itemStyle="cta-item":this.itemStyle=e>=740?"large-item":"small-item"}}};
_.v.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.US(this.updateOnResizeDebouncer,_.my.after(100),this.updateOnResize)};
m8.prototype.debouncedUpdateOnResize=m8.prototype.debouncedUpdateOnResize;m8.prototype.dataChanged=m8.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.dO.YtdHorizontalListBehavior),_.B("design:type",Object)],m8.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],m8.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],m8.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],m8.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],m8.prototype,"itemStyle",void 0);_.t([_.u({value:6}),_.B("design:type",Number)],m8.prototype,"initialCount",void 0);
_.t([_.u({value:"data.items"}),_.B("design:type",String)],m8.prototype,"itemsPath",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],m8.prototype,"watchMetadataRefresh",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],m8.prototype,"skinnyMode",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],m8.prototype,"metaPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],m8.prototype,"inStructuredDescription",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],m8.prototype,"detailedDescriptionOverride",void 0);_.t([_.Cs("#items"),_.B("design:type",HTMLDivElement)],m8.prototype,"items",void 0);_.t([_.Cs("#scroll-container"),_.B("design:type",HTMLDivElement)],m8.prototype,"JSC$17354_scrollContainer",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],m8.prototype,"dataChanged",null);
_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],m8.prototype,"debouncedUpdateOnResize",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],m8);
_.U(m8,"ytd-merch-shelf-renderer",function(){if(Hgq!==void 0)return Hgq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Hgq=e},{mode:2});var Qxl;var pc=function(){var e=_.z.apply(this,arguments)||this;e.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 e};
_.Y(pc,_.z);_.v=pc.prototype;
_.v.addBackstagePostAction=function(e){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(e=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",e))&&(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:e}):this.set("data.contents",[{backstagePostThreadRenderer:e}]))};
_.v.addBackstageCommentAction=function(e){var g=this.get("addBackstageCommentAction.parentId",e);e=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",e);if(g&&e){g=this.postIdToIndices(g);for(var c=0;c<g.length;c++){var k=g[c];if(k<0)break;k="data.contents."+k+".backstagePostThreadRenderer.comments";this.get(k)&&(this.get(k+".backstageCommentsRenderer.contents")&&this.push(k+".backstageCommentsRenderer.contents",{commentThreadRenderer:e}),this.get(k+".backstageCommentsRenderer.teaserContents")?
this.push(k+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:e}):this.set(k+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:e}]))}}};
_.v.addBackstageReplyAction=function(e){var g=this.get("addBackstageReplyAction.parentId",e);e=this.get("addBackstageReplyAction.renderer.commentRenderer",e);g&&e&&this.setCreatorReply(g,e)};
_.v.banAuthorAction=function(e){var g=this.get("banAuthorAction.commentId",e);g&&(e=this.get("banAuthorAction.parentCommentId",e)||this.getParentPostId(g),this.removeFromStream(g,e))};
_.v.hideReportedCommentAction=function(e){var g=this.get("hideReportedCommentAction.commentId",e);g&&((e=this.get("hideReportedCommentAction.parentCommentId",e))||(e=this.getParentPostId(g)),this.removeFromStream(g,e))};
_.v.replaceBackstageCommentAction=function(e){var g=this.get("replaceBackstageCommentAction.commentId",e),c=this.get("replaceBackstageCommentAction.parentId",e);e=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",e);if(g&&c&&e){c=this.postIdToIndices(c);for(var k=0;k<c.length;k++){var I=c[k];if(I<0)break;var J=this.commentIdToIndex(g,I,!1);if(J>=0){var q=this.get("data.contents."+I+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+J+".commentThreadRenderer.replies.commentRepliesRenderer");
q&&(e.replies={commentRepliesRenderer:q});this.splice("data.contents."+I+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",J,1,{commentThreadRenderer:e})}J=this.commentIdToIndex(g,I,!0);if(J>=0){if(q=this.get("data.contents."+I+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(J+".commentThreadRenderer.replies.commentRepliesRenderer")))e.replies={commentRepliesRenderer:q};this.splice("data.contents."+I+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
J,1,{commentThreadRenderer:e})}}}};
_.v.replaceBackstagePostAction=function(e){var g=this.get("replaceBackstagePostAction.itemId",e);if(g){g=this.postIdToIndices(g);for(var c=0;c<g.length;c++){var k=g[c];if(k<0)break;var I=this.getPostRendererType(k),J=this.get("replaceBackstagePostAction.renderer."+I,e);if(!J&&I!=="sharedPostRenderer")break;var q=!1;J||(q=!0,J=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",e));if(!J)break;var L={};q?(_.rL(L,x94,J),this.set("data.contents."+k+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
L)):(_.rL(L,new _.lN(I),J),this.set("data.contents."+k+".backstagePostThreadRenderer.post",L))}}};
_.v.replaceBackstageReplyAction=function(e){var g=this.get("replaceBackstageReplyAction.replyId",e),c=this.get("replaceBackstageReplyAction.parentId",e);e=this.get("replaceBackstageReplyAction.renderer.commentRenderer",e);g&&e&&c&&this.setCreatorReply(c,e)};
_.v.removeCommentAction=function(e){var g=this.get("removeCommentAction.commentId",e);if(g){var c=this.get("removeCommentAction.parentCommentId",e);c&&this.get("removeCommentAction.isCreatorReply",e)?this.setCreatorReply(c,void 0):(c||(c=this.getParentPostId(g)),this.removeFromStream(g,c))}};
_.v.setCreatorReply=function(e,g){var c=this.getParentPostId(e);if(c){c=this.postIdToIndices(c);for(var k=0;k<c.length;k++){var I=c[k];if(I<0)break;var J=this.commentIdToIndex(e,I,!1);if(J>=0){var q="data.contents."+I+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+J;J=q+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";q+=".commentThreadRenderer.replies";g==void 0?(this.set(q,{}),this.set(J,!1)):(this.set(q,{commentRepliesRenderer:{teaserContents:[{commentRenderer:g}]}}),
this.set(q+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(J,!0))}J=this.commentIdToIndex(e,I,!0);J>=0&&(J="data.contents."+I+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+J,I=J+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",J+=".commentThreadRenderer.replies",g==void 0?(this.set(J,{}),this.set(I,!1)):(this.set(J,{commentRepliesRenderer:{teaserContents:[{commentRenderer:g}]}}),this.set(I,!0)))}}};
_.v.removeFromStream=function(e,g){if(g){g=this.postIdToIndices(g);for(var c=0;c<g.length;c++){var k=g[c];if(k<0)break;var I=this.commentIdToIndex(e,k,!1);I>=0&&this.splice("data.contents."+k+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",I,1);I=this.commentIdToIndex(e,k,!0);I>=0&&this.splice("data.contents."+k+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",I,1);k="data.contents."+k+".backstagePostThreadRenderer.post.backstagePostRenderer";
I=k+".backstageAttachment.pollRenderer.votedCommentId";this.get(I)===e&&(this.set(I,null),this.set(k+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(g=this.postIdToIndices(e).reverse(),c=0;c<g.length;c++){k=g[c];if(k<0)break;I=this.getPostRendererType(k);var J=this.get("backstagePostThreadRenderer.post."+I,this.data.contents[k]);J.postId===e?this.splice("data.contents",k,1):I==="sharedPostRenderer"&&this.set("data.contents."+k+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);J.scheduledPublishTimeSec&&_.Z5(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.v.postIdToIndices=function(e){for(var g=[],c=0;c<this.data.contents.length;c++){var k=this.getPostRendererType(c);this.get("backstagePostThreadRenderer.post."+k+".postId",this.data.contents[c])===e&&g.push(c);if(k==="sharedPostRenderer"){var I=this.get("backstagePostThreadRenderer.post."+k+".originalPost.backstagePostRenderer.postId",this.data.contents[c]);k=this.get("backstagePostThreadRenderer.post."+k+".originalPost.postRenderer.postId",this.data.contents[c]);I!==e&&k!==e||g.push(c)}}return g};
_.v.commentIdToIndex=function(e,g,c){if(g<0)return-1;var k,I,J,q,L=_.x((k=this.data)==null?void 0:(I=k.contents)==null?void 0:(J=I[g])==null?void 0:(q=J.backstagePostThreadRenderer)==null?void 0:q.comments,Xkq);return(g=c?L==null?void 0:L.teaserContents:L==null?void 0:L.contents)&&g.length?g.findIndex(function(n){return _.x(n,gAq).comment.commentRenderer.commentId===e}):-1};
_.v.getParentPostId=function(e){e=e.split(".");if(e[1])return e[0]};
_.v.getPostRendererType=function(e){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[e])?"sharedPostRenderer":"backstagePostRenderer"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],pc.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],pc.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:_.G("enable_community_page_on_desktop")}),_.B("design:type",Boolean)],pc.prototype,"useSmallerPostContainer",void 0);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-backstage-items"})],pc);
_.U(pc,"ytd-backstage-items",function(){if(Qxl!==void 0)return Qxl;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Qxl=
e},{mode:1});var UM7;var oXQ={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},T0=function(){var e=_.z.apply(this,arguments)||this;e.disablePrescanVisibility=!0;e.canScheduleJobs=!0;e.engagementPanel=!1;e.hidePanelButton=!1;e.isWatchGrid=
!1;e.hasShownSubscribersOnlyDisclaimer=!1;e.hasShownSuperfanOnlyDisclaimer=!1;e.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};e.TEST_ONLY=void 0;return e};
_.Y(T0,_.z);_.v=T0.prototype;_.v.created=function(){this.initCommentsCsi_();_.G("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.G("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.v.contentsChanged_=function(){var e;(e=this.data)!=null&&e.contents&&this.tickForCommentsTimer_("cml")};
_.v.headerChanged_=function(){var e;(e=this.data)!=null&&e.header&&this.tickForCommentsTimer_("cmhl")};
_.v.initCommentsCsi_=function(){_.EV("wn_comments");var e=_.EM();e&&_.nA({clientScreenNonce:e},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.v.createCommentAction_=function(e){e=_.n0.unsafeClone(e);var g,c;if(e=(g=_.x(e,Bxu))==null?void 0:(c=g.contents)==null?void 0:c.commentThreadRenderer){var k,I,J,q,L,n;!this.isBackstage&&((k=this.data)==null?0:(I=k.header)==null?0:(J=I.commentsHeaderRenderer)==null?0:(q=J.createRenderer)==null?0:(L=q.commentSimpleboxRenderer)==null?0:(n=L.zeroStep)==null?0:n.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var R,
W,b;this.isBackstage&&_.x((R=this.data)==null?void 0:(W=R.header)==null?void 0:(b=W.commentsHeaderRenderer)==null?void 0:b.zeroStateMessage,D9v)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(e)}};
_.v.doReplyInsert_=function(e,g,c,k){k?this.splice(e,k,0,g):this.push(e,g)};
_.v.getRepliesPath_=function(e){return"data.contents."+e+".commentThreadRenderer.replies"};
_.v.getRepliesContentsPath_=function(e,g){e=this.getRepliesPath_(e);return g?e+".commentRepliesRenderer.teaserContents":e+".commentRepliesRenderer.contents"};
_.v.showSubscribersOnlyDisclaimer_=function(e){(e=e.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(e))&&(_.Z5(this.hostElement,"yt-open-popup-action",[e,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.v.showSuperfanOnlyDisclaimer_=function(e){(e=e.detail.command)&&!this.hasShownSuperfanOnlyDisclaimer&&(e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(e))&&(_.Z5(this.hostElement,"yt-open-popup-action",[e,this]),this.hasShownSuperfanOnlyDisclaimer=!0)};
_.v.createCommentReplyAction_=function(e){e=_.n0.unsafeClone(e);var g=_.x(e,Nxs);if(e=g==null?void 0:g.contents){var c=this.commentIdToIndex_(g==null?void 0:g.parentCommentId);if(!(c<0)){var k=this.getRepliesPath_(c);if(this.get(k)){g=g.replyToCommentId;k=this.getRepliesContentsPath_(c,!1);if(this.get(k)){var I=this.get(k).length,J=k+"."+(I-1)+".continuationItemRenderer";this.get(J+".button")?(J=this.replyIdToIndex_(g,c,!1),this.doReplyInsert_(k,e,J,I-1)):this.get(J)||(I=this.replyIdToIndex_(g,c,
!1),this.doReplyInsert_(k,e,I,null))}k=this.getRepliesContentsPath_(c,!0);this.get(k)?(c=this.replyIdToIndex_(g,c,!0),(!g||c>=0)&&this.doReplyInsert_(k,e,c,null)):this.set(k,[e])}else this.set(k,{commentRepliesRenderer:{teaserContents:[e]}})}}};
_.v.hideReportedCommentAction_=function(e){var g=_.x(e,RD4);if(e=g==null?void 0:g.commentId)(g=this.get("parentCommentId",g))||(g=this.getParentCommentId_(e)),this.remove_(e,g)};
_.v.getParentCommentId_=function(e){e=e.split(".");if(e[1])return e[0]};
_.v.removeCommentAction_=function(e){var g=_.x(e,MLq);if(e=g==null?void 0:g.commentId)g=(g==null?void 0:g.parentCommentId)||this.getParentCommentId_(e),this.remove_(e,g)};
_.v.pinCommentAction_=function(e){e=_.n0.unsafeClone(e);var g=_.x(e,OQn);g!=null&&g.commentId&&(e=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",e))&&(this.remove_(g.commentId),this.insert_(e,!0))};
_.v.unpinCommentAction_=function(e){e=_.n0.unsafeClone(e);e=_.x(e,Cvs);if(e!=null&&e.commentId){var g,c,k=(g=e.actionResult)==null?void 0:(c=g.update)==null?void 0:c.commentThreadRenderer;k&&(this.remove_(e.commentId),this.insert_(k))}};
_.v.banAuthorAction_=function(e){var g=_.x(e,tLs);g!=null&&g.commentId&&(e=g.commentId,g=g.parentCommentId||this.getParentCommentId_(e),this.remove_(e,g))};
_.v.handleScrollToCommentElement_=function(e){this.hostElement.contains(e)&&(this.nearestScrollParent||(this.nearestScrollParent=qDe(e)),this.isCommentVisibleInScrollParent(e)||e.scrollIntoView({behavior:"smooth",block:"nearest"}))};
_.v.isCommentVisibleInScrollParent=function(e){if(!this.nearestScrollParent)return!1;e=e.getBoundingClientRect();var g=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return e.top>=g.top&&e.bottom<=g.bottom};
_.v.commentIdToIndex_=function(e){var g;return e&&(g=this.data)!=null&&g.contents?this.data.contents.findIndex(function(c){c=c.commentThreadRenderer;var k;return e===((c==null?void 0:c.commentViewModel)&&((k=_.x(c.commentViewModel,w61))==null?void 0:k.commentId))}):-1};
_.v.insert_=function(e,g){g=g===void 0?!1:g;var c,k;if((c=this.data)==null?0:(k=c.contents)==null?0:k.some(function(J){return!!J.commentThreadRenderer}))for(c=0,k=this.data.contents.length;c<k;c++){var I=this.data.contents[c].commentThreadRenderer;
if(oXQ[e.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=oXQ[I.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){g&&oXQ[e.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===oXQ[I.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",c,1,{commentThreadRenderer:e}):this.splice("data.contents",c,0,{commentThreadRenderer:e});break}}else this.set("data.contents",[{commentThreadRenderer:e}])};
_.v.doReplyRemove_=function(e,g,c){e=this.replyIdToIndex_(e,g,c);e<0||(g=this.getRepliesContentsPath_(g,c),this.splice(g,e,1))};
_.v.remove_=function(e,g){g=this.commentIdToIndex_(g);g<0?(g=this.commentIdToIndex_(e),g<0||this.splice("data.contents",g,1)):_.G("web_delhi_comment_threads")||(this.doReplyRemove_(e,g,!1),this.doReplyRemove_(e,g,!0))};
_.v.replyIdToIndex_=function(e,g,c){if(g<0)return-1;g=this.getRepliesContentsPath_(g,c);g=this.get(g);if(!g||!g.length)return-1;c=0;for(var k=g.length;c<k;c++){var I=void 0,J=void 0;if(((I=g[c])==null?void 0:(J=I.commentViewModel)==null?void 0:J.commentId)===e)return c}return-1};
_.v.tickForCommentsTimer_=function(e){_.bB(e,void 0,"wn_comments")};
_.v.reloadComments_=function(e){e=_.x(e,JDu);_.x(e==null?void 0:e.command,_.b6)&&_.tr(this.hostElement,[e==null?void 0:e.command])};
_.Bd.Object.defineProperties(T0.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return!!((e=this.data)==null?0:(g=e.header)==null?0:(c=g.commentsHeaderRenderer)==null?0:c.isBackstageContent)}}});
_.Bd.Object.defineProperties(T0,{template:{configurable:!0,enumerable:!0,get:function(){if(UM7===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);UM7=e}e=UM7;return e}}});
T0.prototype.showSuperfanOnlyDisclaimer_=T0.prototype.showSuperfanOnlyDisclaimer_;T0.prototype.showSubscribersOnlyDisclaimer_=T0.prototype.showSubscribersOnlyDisclaimer_;T0.prototype.headerChanged_=T0.prototype.headerChanged_;T0.prototype.contentsChanged_=T0.prototype.contentsChanged_;_.t([_.m(_.sJ),_.B("design:type",Object)],T0.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",Function)],T0.prototype,"ytPlayerListenerBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],T0.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],T0.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.header.commentsHeaderRenderer.isBackstageContent"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],T0.prototype,"isBackstage",null);
_.t([_.u(),_.B("design:type",Object)],T0.prototype,"disablePrescanVisibility",void 0);_.t([_.u(),_.B("design:type",Object)],T0.prototype,"canScheduleJobs",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],T0.prototype,"engagementPanel",void 0);_.t([_.u(),_.B("design:type",Object)],T0.prototype,"hidePanelButton",void 0);_.t([_.u(),_.B("design:type",Object)],T0.prototype,"isWatchGrid",void 0);_.t([_.u(),_.B("design:type",Object)],T0.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.t([_.u(),_.B("design:type",Object)],T0.prototype,"hasShownSuperfanOnlyDisclaimer",void 0);_.t([_.OY("data.contents"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T0.prototype,"contentsChanged_",null);_.t([_.OY("data.header"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T0.prototype,"headerChanged_",null);
_.t([_.Ks("yt-show-subscribers-only-disclaimer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],T0.prototype,"showSubscribersOnlyDisclaimer_",null);_.t([_.Ks("yt-show-superfan-only-snackbar"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],T0.prototype,"showSuperfanOnlyDisclaimer_",null);_.t([_.bF({is:"ytd-comments"})],T0);var lJ=function(){return _.gk.apply(this,arguments)||this};
_.Y(lJ,_.gk);_.v=lJ.prototype;_.v.bindIf=function(e,g,c){return e?g:c};
_.v.bindIfDefined=function(e,g){return e!==void 0?e:g};
_.v.booleanString=function(e){return(!!e).toString()};
_.v.equals=function(){for(var e=_.Mb.apply(0,arguments),g=e[0],c=1;c<e.length;c++)if(g!=e[c])return!1;return!0};
_.v.isGreaterThan=function(e,g){return e>g};
_.v.isLessThan=function(e,g){return e<g};
_.v.logicalAND=function(){for(var e=_.Mb.apply(0,arguments),g=!!e[0],c=1;c<e.length;c++)g=g&&!!e[c];return g};
_.v.logicalOR=function(){for(var e=_.Mb.apply(0,arguments),g=!!e[0],c=1;c<e.length;c++)g=g||!!e[c];return g};
_.v.toBool=function(e){return!!e};
lJ.prototype.toBool=lJ.prototype.toBool;lJ.prototype.logicalOR=lJ.prototype.logicalOR;lJ.prototype.logicalAND=lJ.prototype.logicalAND;lJ.prototype.isLessThan=lJ.prototype.isLessThan;lJ.prototype.isGreaterThan=lJ.prototype.isGreaterThan;lJ.prototype.equals=lJ.prototype.equals;lJ.prototype.booleanString=lJ.prototype.booleanString;lJ.prototype.bindIfDefined=lJ.prototype.bindIfDefined;lJ.prototype.bindIf=lJ.prototype.bindIf;_.t([_.co()],lJ);_.Zgl=[lJ.prototype];var VzO;var tzg;var Af=function(){return _.z.apply(this,arguments)||this};
_.Y(Af,_.z);Af.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Af.prototype.onBackIconTap_=function(){window.history.back()};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Af.prototype,"data",void 0);_.t([_.Wo({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Af);
_.U(Af,"yt-header-with-back-renderer",function(){if(tzg===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;VzO===void 0&&(VzO=document.createElement("template"));var k=VzO;c.call(g,k.content.cloneNode(!0),e.content.firstChild);tzg=e}e=tzg;return e},{mode:2});var Bjz;var Njg;var sq=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(sq,_.z);_.v=sq.prototype;_.v.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.v.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.isDarkTheme=e,this.setUrl())};
_.v.dataChanged=function(){var e=this;if(this.data){var g=this.setUrl();g&&_.NB({destination:window,iframe:this.iframe,origin:_.KqV(g.toString()),channelName:"yt-iframe",onMessage:function(c){(c=e.getCommunicationCommand(c.data))&&e.ytComponentBehavior.resolveCommand(c)},
onEstablished:function(){}})}};
_.v.setUrl=function(){if(this.data&&this.data.iframeUrl){var e=_.j6(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(e)return _.vA(this.iframe,e),e}};
_.v.getCommunicationCommand=function(e){var g;if((g=this.data)!=null&&g.onCommunicationCommandsMap){g=this.data.onCommunicationCommandsMap.find(function(I){return I.key===e});
if(g==null?0:g.value)return g==null?void 0:g.value;try{var c=jL4(_.CC(e)),k=this.data.onCommunicationCommandsMap.find(function(I){return I.key===(c==null?void 0:c.getMethodName())});
if(k==null?0:k.value)return k==null?void 0:k.value}catch(I){}}};
sq.prototype.dataChanged=sq.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],sq.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],sq.prototype,"actionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],sq.prototype,"data",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],sq.prototype,"isDarkTheme",void 0);_.t([_.Cs("#iframe"),_.B("design:type",HTMLIFrameElement)],sq.prototype,"iframe",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sq.prototype,"dataChanged",null);_.t([_.Wo({is:"yt-iframe-renderer",disableElementRegistration:!0})],sq);
_.U(sq,"yt-iframe-renderer",function(){if(Njg===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Bjz===void 0&&(Bjz=document.createElement("template"));var k=Bjz;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Njg=e}e=Njg;return e},{mode:2});_.F4=function(e){_.Iy.call(this);this.callback=e;this.bezier=new raK(0,0,.4,0,.2,1,1,1);this.delay=new _.ya(this.next,window,this);this.JSC$17394_animating=!1;_.yh(this,this.delay)};
_.Y(_.F4,_.Iy);_.F4.prototype.isAnimating=function(){return this.JSC$17394_animating};
_.F4.prototype.start=function(e,g,c){this.config={from:e,to:g,duration:c,startTime:(0,_.yr)()};this.JSC$17394_animating=!0;this.next()};
_.F4.prototype.stop=function(){this.delay.stop();this.JSC$17394_animating=!1;this.config=void 0};
_.F4.prototype.next=function(){if(this.config){var e=this.config,g=e.from,c=e.to,k=e.duration;e=e.startTime;var I=(0,_.yr)()-e;e=this.bezier;k=uJZ(e,I/k);if(k==0)e=e.y0;else if(k==1)e=e.y3;else{I=m6(e.y0,e.y1,k);var J=m6(e.y1,e.y2,k);e=m6(e.y2,e.y3,k);I=m6(I,J,k);J=m6(J,e,k);e=m6(I,J,k)}e=_.Pc(e,0,1);this.callback(g+(c-g)*e);e<1?this.delay.start():this.JSC$17394_animating=!1}};_.uJ=new _.AU("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var S7v={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},KOq=function(e,g,c,k){_.Iy.call(this);this.JSC$17406_miniAppId=e;this.localReleaseId=g;this.derivedDeviceInterface=c;this.isForeground=k;this.JSC$17406_playNonceResolver=new _.V8;this.playPingTimerId=NaN;this.playPingIntervalMs=_.MN("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.MN("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.G("enable_displaying_ppn");this.JSC$17406_miniAppClientDataProvider=_.Ss().resolve(_.uJ);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;yog(this);var I=setTimeout(function(){_.mN(new _.E2("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17406_playNonceResolver.promise.then(function(){clearTimeout(I)})};
_.Y(KOq,_.Iy);var Mzo=function(e,g){e.JSC$17406_playNonceResolver.resolve(g!=null?g:aC(8));e.enableDisplayingPpn&&OgX(e).then(function(c){e.JSC$17406_miniAppClientDataProvider.clientData.set("post_play_nonce",c)})},OgX=function(e){return _.r(function(g){return g.nextAddress==1?g.yield(e.JSC$17406_playNonceResolver.promise,2):g.return(g.yieldResult)})},yog=function(e){var g,c;
_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$17406_playNonceResolver.promise,2);g=k.yieldResult;c={miniAppInfo:{externalPostId:e.JSC$17406_miniAppId,localReleaseId:e.localReleaseId,postPlayNonce:g,derivedDeviceInterface:e.derivedDeviceInterface}};_.nA(c);_.Uh(k)})},eAq=function(e){e.state!==0?_.mN(new _.E2("[MiniAppPlayLogger] recordPlayStart failed with state "+S7v[e.state])):(e.state=1,d2(e,"ma_cl"),z0(e,"PLAY_EVENT_TYPE_PLAY_START"),CSv(e))},gBj=function(e){e.isForeground=!1;
z0(e,"PLAY_EVENT_TYPE_PLAY_PAUSE")},cjS=function(e){e.state!==1&&e.state!==2?_.mN(new _.E2("[MiniAppPlayLogger] recordPlayEnd failed with state "+S7v[e.state])):(e.state=3,window.clearInterval(e.playPingTimerId),e.playPingTimerId=NaN,CE8(),z0(e,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},kTD=function(e,g){e.state===2&&e.gameReady&&(e.firstClickRecorded?Date.now()-e.clickRecordedMs<e.playClickIntervalMs||(e.clickRecordedMs=Date.now(),z0(e,"PLAY_EVENT_TYPE_PLAY_CLICK")):g&&(d2(e,"ma_fua"),z0(e,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),e.firstClickRecorded=!0,e.clickRecordedMs=Date.now()))};
KOq.prototype.logError=function(e){var g=this,c;_.r(function(k){if(k.nextAddress==1)return e.metadata.externalPostId=g.JSC$17406_miniAppId,c=e.metadata,k.yield(Promise.race([g.JSC$17406_playNonceResolver.promise,new Promise(function(I){setTimeout(function(){I("")},3E4)})]),2);
c.postPlayNonce=k.yieldResult;e.metadata.localReleaseId=g.localReleaseId;e.loggingError.level="WARNING";_.jW(e.loggingError,e.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:e.metadata});_.Uh(k)})};
var IBM=function(e,g,c,k){var I,J,q,L,n,R;_.r(function(W){if(W.nextAddress==1)return W.yield(e.JSC$17406_playNonceResolver.promise,2);I=W.yieldResult;J={externalPostId:e.JSC$17406_miniAppId,localReleaseId:e.localReleaseId,postPlayNonce:I,sdkVersion:c,api:g};k!==void 0&&(J.networkRequestsMeasurement={networkRequests:_.Qh(k,1),cachedRequests:_.Qh(k,2),transferredBytes:_.Qh(k,3)},(q=k)==null?0:_.cW(q,mW,6))&&(J.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((L=_.Ml(k,
mW,6))==null?void 0:WW(L,1))||"0",cacheHits:((n=_.Ml(k,mW,6))==null?void 0:WW(n,2))||"0",cachedBytes:((R=_.Ml(k,mW,6))==null?void 0:WW(R,3))||"0"});_.Y2("miniAppSdkUsage",J);_.Uh(W)})},vBX=function(e,g,c){var k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d;
_.r(function(S){if(S.nextAddress==1)return S.yield(e.JSC$17406_playNonceResolver.promise,2);k=S.yieldResult;I={externalPostId:e.JSC$17406_miniAppId,localReleaseId:e.localReleaseId,postPlayNonce:k,sdkVersion:c,measurementWindow:{startTimestampMs:String(as(g,1)),endTimestampMs:String(as(g,2))},frameRate:{averageFrameTimeDeltaMs:nq(g,3),averageFrameIdleTimeMs:nq(g,4)}};_.cW(g,pX,5)&&(I.networkRequests={networkRequests:(J=da(g))==null?void 0:_.Qh(J,1),cachedRequests:(q=da(g))==null?void 0:_.Qh(q,2),transferredBytes:(L=
da(g))==null?void 0:_.Qh(L,3),sameOriginStatusCodeToCounts:JjX((n=da(g))==null?void 0:_.BjK(n,4,void 0,el6,el6)),crossOriginStatusCodeToCounts:JjX((R=da(g))==null?void 0:_.BjK(R,5,void 0,el6,el6))},(W=da(g))==null?0:_.cW(W,mW,6))&&(I.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((b=da(g))==null?void 0:(h=_.Ml(b,mW,6))==null?void 0:WW(h,1))||"0",cacheHits:((X=da(g))==null?void 0:(D=_.Ml(X,mW,6))==null?void 0:WW(D,2))||"0",cachedBytes:((f=da(g))==null?void 0:(l=_.Ml(f,mW,6))==
null?void 0:WW(l,3))||"0"});_.cW(g,a2I,7)&&(I.gameCapture={averageFrameTimeDeltaMs:(A=_.Ml(g,a2I,7))==null?void 0:nq(A,1),averageFrameIdleTimeMs:(d=_.Ml(g,a2I,7))==null?void 0:nq(d,2)});_.Y2("miniAppPerformanceMetrics",I);_.Uh(S)})},wJS=function(e,g){var c,k;
return _.r(function(I){if(I.nextAddress==1)return I.yield(e.JSC$17406_playNonceResolver.promise,2);c=I.yieldResult;k={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:e.JSC$17406_miniAppId,postPlayNonce:c,miniAppReleaseId:e.localReleaseId},derivedDeviceInterface:e.derivedDeviceInterface,adTriggerType:g,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Y2("miniAppAdEvent",k);_.Uh(I)})};
KOq.prototype.disposeInternal=function(){_.Iy.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var z0=function(e,g,c,k){c=c===void 0?{}:c;k=k===void 0?!1:k;var I,J,q,L;_.r(function(n){if(n.nextAddress==1)return I=e.isForeground,J=e.beforeReady,n.yield(e.JSC$17406_playNonceResolver.promise,2);q=n.yieldResult;L={externalPostId:e.JSC$17406_miniAppId,localReleaseId:e.localReleaseId,derivedDeviceInterface:e.derivedDeviceInterface,postPlayNonce:q,type:g};c.sequenceGroup=q;L.playState=J?"PLAY_STATE_NOT_READY":I?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Y2("miniAppPlayEvent",L,
c);k&&_.fB();_.Uh(n)})},d2=function(e,g){var c;
_.r(function(k){if(k.nextAddress==1)return c=(0,_.yr)(),k.yield(e.JSC$17406_playNonceResolver.promise,2);_.Wh(g,c);_.Uh(k)})},CSv=function(e){isNaN(e.playPingTimerId)&&(e.playPingTimerId=_.I$(function(){e.state!==1&&e.state!==2?_.mN(new _.E2("[MiniAppPlayLogger] reportPlayPing failed with state "+S7v[e.state])):z0(e,"PLAY_EVENT_TYPE_PLAY_PING")},e.playPingIntervalMs))},JjX=function(e){return Array.from(e.entries()).map(function(g){var c=_.w(g);
g=c.next().value;c=c.next().value;return{key:g,value:c}})};var qxQ=function(){},LaS=function(e,g){e.showMiniAppAdCommand=g.showMiniAppAdCommand;
e.isEmbeddedInWebview=g.isEmbeddedInWebview;e.playLogger=g.playLogger},aBO=function(e){return _.r(function(g){return g.return(rjv(e,1))})},nBx=function(e){return _.r(function(g){return g.return(rjv(e,2))})},EBx=function(e,g){return _.r(function(c){return g?c.return(rjv(e,3,g)):c.return(RAO(e,3))})},rjv=function(e,g,c){var k;
return _.r(function(I){if(I.nextAddress==1){if(!e.showMiniAppAdCommand||!e.isEmbeddedInWebview)return I.return(RAO(e,g));e.adResolver=new _.V8;var J=new qd;J=_.Cf(J,3,g);k=_.vH(J,5,c);hh(e.showMiniAppAdCommand,MJq(k));return I.yield(e.adResolver.promise,2)}return I.return(I.yieldResult)})};
qxQ.prototype.onAdFinished=function(e){e=oos(e);var g;(g=this.adResolver)==null||g.resolve(e)};
var RAO=function(e,g){var c;return _.r(function(k){if(k.nextAddress==1)k=k.yield((c=e.playLogger)==null?void 0:wJS(c,bIK(g)),2);else{var I=k.return;var J=new UnM;J=_.Cf(J,1,2);k=I.call(k,J)}return k})};var Wa7=new _.AU("INNERTUBE_MANAGER_TOKEN");var bmQ=function(){this.callbacks={}};
bmQ.prototype.initialize=function(e){var g=this;this.callbacks=e;window.youtubewebview?window.youtubewebview.onmessage=function(c){hAM(g,c)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(c){hAM(g,c)})};
var hAM=function(e,g){if(g.data)try{var c=jL4(g.data);if(_.TD(_.g0(c,1))!=null){var k=Baq(_.Rs(c,2));switch(c.getMethodName()){case "yt-mini-app-load-audio-state":var I,J;(J=(I=e.callbacks).onAudioStateLoaded)==null||J.call(I,_.r0(k,al(k,wM,1)));break;case "yt-mute-mini-app":var q,L;(L=(q=e.callbacks).onMuteMiniApp)==null||L.call(q);break;case "yt-unmute-mini-app":var n,R;(R=(n=e.callbacks).onUnmuteMiniApp)==null||R.call(n);break;case "yt-playable-exit":var W,b;(b=(W=e.callbacks).onExit)==null||b.call(W);
break;case "yt-post-play-nonce":var h,X;(X=(h=e.callbacks).onPostPlayNonceReceived)==null||X.call(h,by(k,2,wM));break;case "yt-confirm-exit-mini-app":var D,f;(f=(D=e.callbacks).confirmExitMiniApp)==null||f.call(D);break;case "yt-confirm-exit-mini-app-edu":var l,A;(A=(l=e.callbacks).confirmExitMiniAppEdu)==null||A.call(l);break;case "yt-benchmarking-response":var d,S;(S=(d=e.callbacks).onNativeBenchmarkingMessageReceived)==null||S.call(d,by(k,2,wM));break;case "yt-mini-app-load-3p-consent-state":var V,
Q;(Q=(V=e.callbacks).multiplayer3pAckStateLoaded)==null||Q.call(V,_.r0(k,al(k,wM,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var y,O;(O=(y=e.callbacks).exitMiniAppSeenStateLoaded)==null||O.call(y,_.r0(k,al(k,wM,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Jq,LC;(LC=(Jq=e.callbacks).onNavigateToNewMiniApp)==null||LC.call(Jq);break;case "yt-game-data-available":var bW,RA;(RA=(bW=e.callbacks).onGameDataAvailable)==null||RA.call(bW,by(k,2,wM));break;case "yt-pause-mini-app":var Xg,
Fg;(Fg=(Xg=e.callbacks).onPauseMiniApp)==null||Fg.call(Xg);break;case "yt-resume-mini-app":var oA,Zt;(Zt=(oA=e.callbacks).onResumeMiniApp)==null||Zt.call(oA);break;case "yt-pause-playable-dialog":var Ev,an;(an=(Ev=e.callbacks).onPausePlayableDialog)==null||an.call(Ev);break;case "yt-resume-playable-dialog":var V6,bs;(bs=(V6=e.callbacks).onResumePlayableDialog)==null||bs.call(V6);break;case "yt-playable-ad-finished":var f1,hk;(hk=(f1=e.callbacks).onAdFinished)==null||hk.call(f1,by(k,2,wM))}}else _.mN(Error("Wh"))}catch(Pq){_.jW(Error("Xh"))}else _.mN(Error("Yh"))};var XDU=function(e){this.rpcErrorCode=e};var Hx=function(e,g,c){this.intervalMs=e;this.apiFunc=g;this.type=c;this.schedulerReady=!0};
Hx.prototype.call=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1){if(g.type!==1&&e===g.cachedValue)return k.return();g.pendingApiRequestResolver||(g.pendingApiRequestResolver=new _.V8);c=g.pendingApiRequestResolver.promise;g.cachedValue=e;return k.yield(XJo(g),2)}return k.return(c)})};
Hx.prototype.flush=function(e){e=e===void 0?!1:e;var g=this;return _.r(function(c){return g.cachedValue===void 0?c.return():c.yield(g.apiFunc(g.cachedValue,e),0)})};
var XJo=function(e){var g,c,k;return _.r(function(I){switch(I.nextAddress){case 1:if(!e.schedulerReady||!e.pendingApiRequestResolver)return I.return();e.schedulerReady=!1;g=e.pendingApiRequestResolver;e.pendingApiRequestResolver=void 0;_.lj(I,2);if(e.cachedValue===void 0){I.jumpTo(4);break}return I.yield(e.apiFunc(e.cachedValue),5);case 5:c=I.yieldResult,g.resolve(c);case 4:_.zn(I,3);break;case 2:k=_.Qb(I),g.reject(k);case 3:setTimeout(function(){return _.r(function(J){e.schedulerReady=!0;return J.yield(XJo(e),
0)})},e.intervalMs),_.Uh(I)}})};var DJC=window.location.origin+"/miniapp_cloudsaves",GfK=[400,401],GTO=_.MN("cloud_save_game_data_rate_limit_ms",3E3),Dbv=function(e){var g=this;this.JSC$17452_miniAppId=e;this.loadAttempts=0;this.cloudSaveIntervalMs=GTO;this.initialDownloadDataSucceeded=!1;this.JSC$17452_playNonceResolver=new _.V8;this.scottyUploadRateLimiter=new Hx(this.cloudSaveIntervalMs,function(c,k){return g.uploadData(c,k)},2);
this.downloadDataPromise=xbv(this);this.downloadDataPromise.then(function(){g.initialDownloadDataSucceeded=!0}).catch(function(){})},$bq=function(e,g){g.then(function(c){return e.JSC$17452_playNonceResolver.resolve(c)})},Yxj=function(e){return _.r(function(g){return e.cachedData===void 0?g.return(e.downloadDataPromise):g.return(e.cachedData)})},fBz=function(e,g){return _.r(function(c){e.cachedData=g;
if(!e.initialDownloadDataSucceeded)throw Error("Zh");return c.yield(e.scottyUploadRateLimiter.call(g),0)})},j3j=function(){return new Promise(function(e){setTimeout(e,1E3,"")})},imj=function(e,g){var c,k;
return _.r(function(I){if(I.nextAddress==1)return c=e.JSC$17452_miniAppId,I.yield(Promise.race([e.JSC$17452_playNonceResolver.promise,j3j()]),2);k={"X-YouTube-MiniAppId":c,"X-YouTube-PostPlayNonce":I.yieldResult};"DELEGATED_SESSION_ID"in _.sI&&ZAg(g,k);return I.return(k)})};
Dbv.prototype.uploadData=function(e,g){g=g===void 0?!1:g;var c=this;return _.r(function(k){return hMU()?_.G("enable_cloud_save_error_popup_after_retry")?k.return(new Promise(function(I,J){var q,L,n,R,W;return _.r(function(b){switch(b.nextAddress){case 1:q=0,L=!0,R=n=null;case 2:if(!(L&&q++<2)){b.jumpTo(4);break}_.lj(b,5);return b.yield(Pdq(c,e,g),7);case 7:n=b.yieldResult;L=n.ok?!1:!GfK.includes(n.status);_.zn(b,2);break;case 5:R=W=_.Qb(b);L=xJv(R);b.jumpTo(2);break;case 4:n?n.ok?(Qo(c,GTO),I()):
(Qo(c,c.cloudSaveIntervalMs*2),J(Error("$h`"+String(n.status),{cause:{rpcErrorCode:n.status}}))):(Qo(c,c.cloudSaveIntervalMs*2),J(R||Error("ai"))),_.Uh(b)}})})):k.return(new Promise(function(I,J){var q,L;
return _.r(function(n){if(n.nextAddress==1){if(c.JSC$17452_miniAppId==="")return J(Error("bi")),n.return();_.lj(n,2);return n.yield(Pdq(c,e,g),4)}if(n.nextAddress!=2)return q=n.yieldResult,q.ok?(Qo(c,GTO),I()):(Qo(c,c.cloudSaveIntervalMs*2),J(Error("$h`"+String(q.status),{cause:{rpcErrorCode:q.status}}))),_.zn(n,0);L=_.Qb(n);Qo(c,c.cloudSaveIntervalMs*2);J(L);_.Uh(n)})})):k.return()})};
var Pdq=function(e,g,c){c=c===void 0?!1:c;var k,I,J;return _.r(function(q){if(q.nextAddress==1)return k=_.MU((new TextEncoder).encode(g)),I=$Jq(),q.yield(imj(e,I),2);J=q.yieldResult;return q.return(fetch(I,{method:"POST",body:new Blob([k]),headers:J,keepalive:c}))})},xbv=function(e){var g,c;
return _.r(function(k){if(k.nextAddress==1){if(!hMU())return k.return("");if(e.JSC$17452_miniAppId==="")throw Error("bi");if(e.loadAttempts>2)return k.return(e.downloadDataPromise);_.lj(k,2);return k.yield(mbl(e),4)}if(k.nextAddress!=2)return g=k.yieldResult,k.return(g);c=_.Qb(k);if(xJv(c)&&++e.loadAttempts<2)return k.return(xbv(e));throw c;})},mbl=function(e){var g,c,k,I,J;
return _.r(function(q){switch(q.nextAddress){case 1:return _.lj(q,2),g=$Jq(),q.yield(imj(e,g),4);case 4:return c=q.yieldResult,q.yield(fetch(g,{method:"GET",headers:c}),5);case 5:return k=q.yieldResult,k.ok?q.yield(k.text(),6):q.return(Promise.reject(Error("ci`"+String(k.status),{cause:new XDU(k.status)})));case 6:return I=q.yieldResult,q.return((new TextDecoder).decode(_.CC(I)));case 2:return J=_.Qb(q),q.return(Promise.reject(J))}})},Qo=function(e,g){e.cloudSaveIntervalMs=g;
e.scottyUploadRateLimiter.intervalMs=e.cloudSaveIntervalMs};
Dbv.prototype.flush=function(){var e=this;return _.r(function(g){return e.initialDownloadDataSucceeded?g.yield(e.scottyUploadRateLimiter.flush(!0),0):g.return()})};var pJD=FH(s_(1),lk(1)),Uq=FH(s_(1),lk(3)),oW=function(e){this.callbacks=e};
_.v=oW.prototype;_.v.onAudioToggled=function(e,g){(g===void 0||g)&&_.wp("yt-mini-app-is-audio-enabled",e,2592E3)};
_.v.onPause=function(){this.onAudioToggled(!1,!1)};
_.v.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.v.returnNativeBenchmarkingMessage=function(){};
_.v.sendGameData=function(){};
_.v.sendStartGameFrameCapture=function(){};
var YDz=function(e,g,c){this.callbacks=e;var k=this;this.sdkVersion=new _.V8;this.channel=new oWI(_.NB({destination:window,iframe:g,origin:(new URL(c.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var I=ZJ;var J=s_(5);var q=new OZ4;q=_.Xv(q,1,1E4);J=_.Fp(J,4,JUY,q);I(k,J);k.onAudioToggled(k.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){k.sdkVersion.resolve("")},1E4)};
_.Y(YDz,oW);_.v=YDz.prototype;_.v.onAudioToggled=function(e,g){oW.prototype.onAudioToggled.call(this,e,g===void 0?!0:g);g=ZJ;var c=s_(2),k=new ya4;e=_.td(k,1,e);e=_.Fp(c,3,JUY,e);g(this,e)};
_.v.onPause=function(){oW.prototype.onPause.call(this);ZJ(this,s_(3))};
_.v.onResume=function(){oW.prototype.onResume.call(this);ZJ(this,s_(4))};
_.v.returnNativeBenchmarkingMessage=function(e){var g=ZJ,c=s_(6);var k=lk(_.cW(e,u2,1)?1:2);e=_.cW(e,u2,1)?e:null;k=_.Fp(k,5,Ac,e);g(this,FH(c,k))};
_.v.sendGameData=function(e){var g=ZJ,c=s_(7);e=_.Fp(c,5,JUY,e);g(this,e)};
_.v.sendStartGameFrameCapture=function(){ZJ(this,s_(9))};
var Vo=function(e,g,c){var k,I,J;return _.r(function(q){if(q.nextAddress==1)return k=e.callbacks,I=k.onSdkCalled,J=g,q.yield(e.sdkVersion.promise,2);I.call(k,J,q.yieldResult,c);_.Uh(q)})};
YDz.prototype.onMessage=function(){var e=this;return t0B(z4,function(g){var c,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y,O,Jq,LC,bW,RA,Xg,Fg,oA,Zt,Ev,an,V6,bs,f1,hk,Pq,vq,hq,zv,XM,Su,p1,C1,mz,Ov,Rx,V4,to,L1,Wq;return _.r(function(Ww){switch(Ww.nextAddress){case 1:if(!WEq(g.data))return _.mN(Error("di")),Ww.return();c=_.EU(g.data,1);_.G("enable_iframe_message_get_type_via_fields")&&(k=g.data,c=I=_.EU(k,1));switch(c){case 8:if(g.data.hasMetadata()){var Bw=e.sdkVersion,Uv=Bw.resolve;var jz=g.data.getMetadata();
jz=_.Rs(jz,1);Uv.call(Bw,jz);clearTimeout(e.sdkVersionTimeoutId)}break;case 6:return Ww.jumpTo(2);case 16:if(!_.kV(g.data,qGu,14,Hn))return Ww.return();J=_.hP(g.data,qGu,14,Hn);(L=(q=e.callbacks).onGameFrameReceived)==null||L.call(q,J);return Ww.return();case 17:if(!_.kV(g.data,wRY,15,Hn))return Ww.return();(R=(n=e.callbacks).onGameAudioReceived)==null||R.call(n,_.hP(g.data,wRY,15,Hn));return Ww.return();case 1:if(Bw=_.hP(g.data,e6q,2,Hn))switch(_.EU(Bw,1)){case 1:e.callbacks.onFirstFrameReady();
if(_.G("enable_network_request_logging_on_game_events")&&_.cW(Bw,pX,4)){Vo(e,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Ml(Bw,pX,4));break}Vo(e,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(jz=(Uv=e.callbacks).onGameReady)==null||jz.call(Uv);if(_.G("enable_network_request_logging_on_game_events")&&_.cW(Bw,pX,4)){Vo(e,"MINI_APP_SDK_API_GAME_READY",_.Ml(Bw,pX,4));break}Vo(e,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.kV(Bw,T4,3,gbu))e.callbacks.onResourceLoaded(_.hP(Bw,T4,3,gbu))}return Ww.return();
case 3:return Ww.jumpTo(3);case 4:return Ww.jumpTo(4);case 2:return Ww.jumpTo(5);case 9:return Ww.jumpTo(6);case 10:return e.callbacks.onClick(),Ww.return();case 5:return Ww.jumpTo(7);case 11:if(!_.kV(g.data,ik,9,Hn))return Ww.return();W=_.hP(g.data,ik,9,Hn);(h=(b=e.callbacks).onBenchmarkingMessageReceived)==null||h.call(b,W);Bw=g.reply;Uv=s_(1);jz=lk(1);var J0=new ik;var on=new Uint8Array(IBq(W,al(W,Vcw,6))|0);J0=J2(J0,5,Vcw,_.sv(on,!1));jz=_.Fp(jz,5,Ac,J0);Bw.call(g,FH(Uv,jz));return Ww.return();
case 12:return Ww.jumpTo(8);case 13:return Ww.jumpTo(9);case 15:return Ww.jumpTo(10);case 14:return Ww.jumpTo(11);case 18:return Ww.jumpTo(12);default:return Ww.return()}Ww.jumpTo(0);break;case 2:if(!_.kV(g.data,uk,5,Hn))return Ww.return();Uv=g.data;Bw=al(Uv,Hn,5);Uv=Uv.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;X=KOz(Uv,Uv[_.wZ]|0,uk,Bw)||uk[O1q]||(uk[O1q]=MuA(uk));Bw=_.z1(X,Pn,1,_.HH());D=_.w(Bw);f=D.next();case 14:if(f.done){Ww.jumpTo(16);break}l=f.value;A=new _.E2;A.level=_.EU(l,2)===
1?"WARNING":"ERROR";d=jpq(l.getSource());return Ww.yield(e.sdkVersion.promise,17);case 17:S={source:d,sdkVersion:Ww.yieldResult};_.Lg(_.g0(l,6))!=null?(A.message=l.getMessage(),A.stack=_.Rs(l,5),S.sdkErrorType=iIC(_.EU(l,6)),_.Lg(_.g0(l,7))!=null&&(S.sdkApi=P5W(_.EU(l,7)))):A.stack=void 0;Q=V=void 0;(Q=(V=e.callbacks).onError)==null||Q.call(V,{loggingError:A,metadata:S});f=D.next();Ww.jumpTo(14);break;case 16:return Ww.return();case 3:return _.lj(Ww,18),Bw=Ww.yield,Uv=e.callbacks,jz=Uv.onSave,J0=
_.hP(g.data,KFZ,4,Hn),J0=_.Rs(J0,1),Bw.call(Ww,jz.call(Uv,J0),20);case 20:g.reply(pJD);_.zn(Ww,19);break;case 18:return y=_.Qb(Ww),O=XX,Jq=y,LC=e.callbacks,bW="MINI_APP_SDK_API_SAVE_DATA",Ww.yield(e.sdkVersion.promise,21);case 21:O(Jq,LC,bW,Ww.yieldResult),g.reply(Uq);case 19:return Ww.yield(Vo(e,"MINI_APP_SDK_API_SAVE_DATA"),22);case 22:return Ww.return();case 4:return _.lj(Ww,23),Ww.yield(e.callbacks.onLoad(),25);case 25:RA=Ww.yieldResult;Bw=g.reply;Uv=s_(1);jz=lk(1);J0=new KFZ;J0=_.vH(J0,1,RA);
jz=_.Fp(jz,3,Ac,J0);Bw.call(g,FH(Uv,jz));_.zn(Ww,24);break;case 23:return Xg=_.Qb(Ww),Fg=XX,oA=Xg,Zt=e.callbacks,Ev="MINI_APP_SDK_API_LOAD_DATA",Ww.yield(e.sdkVersion.promise,26);case 26:Fg(oA,Zt,Ev,Ww.yieldResult),g.reply(Uq);case 24:return Ww.yield(Vo(e,"MINI_APP_SDK_API_LOAD_DATA"),27);case 27:return Ww.return();case 5:_.lj(Ww,28);e.callbacks.onSendHighScore(Yr(_.hP(g.data,R6s,3,Hn).getValue()));g.reply(FH(s_(1),lk(1)));_.zn(Ww,29);break;case 28:return an=_.Qb(Ww),V6=XX,bs=an,f1=e.callbacks,hk=
"MINI_APP_SDK_API_SEND_SCORE",Ww.yield(e.sdkVersion.promise,30);case 30:V6(bs,f1,hk,Ww.yieldResult),g.reply(Uq);case 29:return Ww.yield(Vo(e,"MINI_APP_SDK_API_SEND_SCORE"),31);case 31:return Ww.return();case 6:if(!_.kV(g.data,EbI,8,Hn)){Ww.jumpTo(32);break}Bw=Ww.yield;Uv=_.hP(g.data,EbI,8,Hn);Uv=_.EU(Uv,1);return Bw.call(Ww,Vo(e,P5W(Uv)),32);case 32:return Ww.return();case 7:return Bw=g.reply,Uv=s_(1),jz=lk(1),J0=e.callbacks.getLanguage(),jz=J2(jz,4,Ac,pg(J0)),Bw.call(g,FH(Uv,jz)),Ww.yield(Vo(e,"MINI_APP_SDK_API_GET_LANGUAGE"),
34);case 34:return Ww.return();case 8:if(!_.kV(g.data,nbs,10,Hn))return Ww.return();Pq=_.hP(g.data,nbs,10,Hn);vq=e.callbacks;hq=vq.onSdkPerformanceUpdate;return Ww.yield(e.sdkVersion.promise,35);case 35:return hq.call(vq,Pq,Ww.yieldResult),Ww.return();case 9:Bw=g.data;Uv=al(Bw,Hn,11);if(_.TD(_.g0(Bw,Uv))==null)return g.reply(FH(s_(1),lk(2))),Ww.return();zv=by(g.data,11,Hn);e.callbacks.onShareInviteCode(zv);g.reply(pJD);return Ww.yield(Vo(e,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),36);case 36:return Ww.return();
case 10:if(!_.G("enable_open_yt_content"))return g.reply(Uq),Ww.return();if(!_.kV(g.data,vbk,12,Hn))return g.reply(FH(s_(1),lk(2))),Ww.return();Bw=_.hP(g.data,vbk,12,Hn);XM=_.Rs(Bw,1);e.callbacks.onOpenYTContent(XM);g.reply(pJD);return Ww.yield(Vo(e,"MINI_APP_SDK_API_OPEN_CONTENT"),37);case 37:return Ww.return();case 11:if(_.kV(g.data,SR1,13,Hn)){Ww.jumpTo(38);break}return Ww.yield(e.callbacks.onShowMiniAppAd(2),39);case 39:return Su=Ww.yieldResult,g.reply(FH(s_(1),k3Z(Su))),Ww.yield(Vo(e,"MINI_APP_SDK_API_REQUEST_AD"),
40);case 40:return Ww.return();case 38:Bw=_.hP(g.data,SR1,13,Hn);a:switch(_.EU(Bw,1)){case 1:Bw={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:Bw={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Bw={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}p1=Bw;C1=p1.adType;mz=p1.sdkApi;Bw=Ww.yield;Uv=e.callbacks;jz=Uv.onShowMiniAppAd;J0=_.hP(g.data,SR1,13,Hn);J0=_.Rs(J0,2);return Bw.call(Ww,jz.call(Uv,C1,J0||void 0),41);case 41:return Ov=Ww.yieldResult,
g.reply(FH(s_(1),k3Z(Ov))),Ww.yield(Vo(e,mz),42);case 42:return Ww.return();case 12:_.lj(Ww,43);Bw=e.callbacks;Uv=Bw.onMakeIapPurchase;jz=_.hP(g.data,LEZ,16,Hn);jz=_.Rs(jz,1);Uv.call(Bw,jz);g.reply(FH(s_(1),lk(1)));_.zn(Ww,44);break;case 43:return Rx=_.Qb(Ww),V4=XX,to=Rx,L1=e.callbacks,Wq="MINI_APP_SDK_API_MAKE_IAP_PURCHASE",Ww.yield(e.sdkVersion.promise,45);case 45:V4(to,L1,Wq,Ww.yieldResult),g.reply(Uq);case 44:return Ww.yield(Vo(e,"MINI_APP_SDK_API_MAKE_IAP_PURCHASE"),46);case 46:return Ww.return()}})})};
var ZJ=function(e,g){_.r(function(c){e.channel.send(g);_.Uh(c)})},YD=function(e,g,c){this.callbacks=e;
var k=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;e=Wzv(g,(new URL(c.toString())).origin);this.gameSnacks=new Ib1(e);this.gameSnacks.page.onReady(function(){k.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){k.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var I,J;(J=(I=k.callbacks).onGameReady)==null||J.call(I)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(I,J){try{k.callbacks.onSendHighScore(J)}catch(q){XX(q,k.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(I,J){var q;return _.r(function(L){if(L.nextAddress==1)return _.lj(L,2),L.yield(k.callbacks.onSave(k.decoder.decode(J)),4);if(L.nextAddress!=2)return _.zn(L,0);q=_.Qb(L);XX(q,k.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return L.return()})});
this.gameSnacks.storage.onLoad(function(){var I,J;return _.r(function(q){if(q.nextAddress==1)return _.lj(q,2),q.yield(k.callbacks.onLoad(),4);if(q.nextAddress!=2)return I=q.yieldResult,q.return(k.encoder.encode(I));J=_.Qb(q);XX(J,k.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return q.return(k.encoder.encode(""))})});
this.gameSnacks.init()};
_.Y(YD,oW);YD.prototype.onAudioToggled=function(e,g){oW.prototype.onAudioToggled.call(this,e,g===void 0?!0:g);var c;(c=this.gameSnacks)==null||c.audio.update(e)};
YD.prototype.onPause=function(){oW.prototype.onPause.call(this);var e;(e=this.gameSnacks)==null||e.game.pause()};
YD.prototype.onResume=function(){oW.prototype.onResume.call(this);var e;(e=this.gameSnacks)==null||e.game.resume()};var Tr7=mJv,lBj=_.H(function(e){var g=e.data;var c=e.loadingProgress;var k=e.forPaused;e=_.w(_.Wa("",void 0,"LYYTdd"));var I=e.next().value,J=e.next().value;e=_.w(_.Wa(!1,void 0,"K0waae"));var q=e.next().value,L=e.next().value,n=[],R=function(){return"transform: scaleX("+(_.ds(c)||0)+")"},W=null,b=function(){return g()&&W!==null&&W!==void 0?W:W=g().showAnniversaryAnimation?6:Tr7()};
_.AV(function(){var f;if(g().timeOutMessages&&((f=g().timeOutMessages)==null?0:f.length)){W=null;f=_.w(n);for(var l=f.next();!l.done;l=f.next())clearTimeout(l.value);n.length=0;pD6(g().timeOutMessages,n,J,L)}},"BNu9j");
var h=function(){return!!g().persistentErrorMessageTitle},X=function(){return c!==void 0},D=function(){return g().title};
return _.a("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.a("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.a("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.a("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var f,l=(f=g().backgroundImage)==null?void 0:f.sources,A;return(l==null?0:l.length)?"background-image: url("+((A=l[0])==null?void 0:A.url)+")":""}}),_.a("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.a(_.E,{cond:function(){return!h()&&!(k==null?0:k())},
then:function(){var f={};return _.a("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.a("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.a(_.Sx,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+b()},
data:function(){var l="loading_animation_"+b();return{animationConfig:{name:l,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+l+".json",loop:!0,autoplay:!0}}}})),_.a("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.a(_.E,{cond:D,
then:function(){return _.a("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},D)}}),_.a("p",{class:_.o6("miniAppSplashScreenViewModelTimeoutMessage",(f.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return q()},f)),
"aria-live":"polite"},I),_.a(_.E,{cond:X,then:function(){return _.a("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.a("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:R}))}})))}}),_.a(_.E,{cond:h,
then:function(){return _.a("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.a("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return g().persistentErrorMessageTitle}),_.a(_.E,{cond:function(){return!!g().persistentErrorMessageDescription},
then:function(){return _.a("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return g().persistentErrorMessageDescription})}}))}}),_.a(_.E,{cond:k,
then:function(){return _.a("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.a("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.a("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},D))}})))},"Yf");var Ajl=new _.AU("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var s3g=yU;yU=function(e){function g(c){if(c){var k,I;(k=c.__spec)==null||(I=k.didUnmount)==null||I.call(k);for(k=0;k<c.childNodes.length;k++)g(c.childNodes[k])}}
s3g==null||s3g(e);Lv(function(){for(var c=0;c<e.length;c++)g(e[c])})};var Fal=_.H(function(e){var g=e.data;var c=e.score;var k=e.formattedScore;var I=e.onScoreChanged;var J=e.isEmbeddedInWebview;var q=_.PV("yt-mini-app-score-button-view-model"),L=function(){var X;return _.x(g==null?void 0:(X=g())==null?void 0:X.buttonViewModel,_.$8)},n=function(){var X;
return(c==null?void 0:c())||Number(g==null?void 0:(X=g())==null?void 0:X.lastScore)||0},R=function(){var X;
return(k==null?void 0:k())||((X=L())==null?void 0:X.title)||""},W,b=1;
if(e=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))e=Number(e),b=isNaN(e)?1:e/100;_.AV(function(){I==null||I(n());var X;var D=_.WT((X=L())==null?void 0:X.onTap);if(D){X=_.x(D,zbZ);var f,l,A;X=_.x(X==null?void 0:(f=X.panelLoadingStrategy)==null?void 0:(l=f.inlineContent)==null?void 0:(A=l.dialogViewModel)==null?void 0:A.customContent,Cks)}else X=void 0;if(f=X)f.score=R()},"Aekez");
e=_.Ve(function(){var X,D,f=g==null?void 0:(X=g())==null?void 0:(D=X.loggingDirectives)==null?void 0:D.trackingParams;f&&_.KP(_.Ss().resolve(_.I5),f);return!1});
_.lo(function(){if(q.value){var X=q.value.querySelector("button"),D=L();X&&D&&lpp(X,D);_.VV("yt-share-playable-with-high-score",function(){var f=n().toString(),l=g==null?void 0:g().onShareHighScoreCommand,A=g==null?void 0:g().highScoreShareClientParamIdentifier,d=J==null?void 0:J();l&&(d?(A=new fGB,f=_.vH(A,2,f),hh(l,f.JSC$12844_serializeBinary())):A&&(_.Ss().resolve(Ajl).clientParams.set(A,{miniAppClientParams:{highScore:f}}),apW(l,!1)))})}});
var h=function(){var X=L();X&&(c==null?0:c())&&X.accessibilityText&&(X.accessibilityText=X.accessibilityText.replace(W,R()));W=R();return{numberValue:n(),numberText:R(),heightPx:36,fontSizeMultiplier:b,shouldAnimate:!(c==null||!c())&&!0}};
return _.a("yt-mini-app-score-button-view-model",{class:function(){var X={};return _.qy("miniAppScoreButtonViewModelHost",(X.miniAppScoreButtonViewModelIsVisible=n()!==0,X))},
el:q,"on:click":e},itW(!1,function(){return _.a("span",{style:"display:none;"},n)}),_.a(_.eS,{data:function(){var X;
return g==null?void 0:(X=g())==null?void 0:X.buttonViewModel}},{buttonViewModel:function(X){return _.a(_.oD,{data:X.data,
animatedTextProps:h})}}))},"$f");var Q30=_.H(function(e){var g,c=(g=_.qk("yt-mini-app-is-theater-mode-enabled"))!=null?g:!1,k=_.G("enable_playable_container_save_button"),I=_.G("enable_play_next_destination_page_in_toolbar");g={};return _.a("ytm-mini-app-top-bar-view-model",null,_.a("div",{class:_.o6("yt-mini-app-top-bar-view-model",(g["yt-mini-app-top-bar-view-model--mobile"]=!1,g["yt-mini-app-top-bar-view-model--desktop"]=!0,g))},_.a("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.a(_.E,{cond:function(){var J;return!!e.data().backButtonEdu&&
!((J=e.isExitMiniAppSeen)==null?0:J.call(e))},
then:function(){return _.a(_.eS,{data:function(){return e.data().backButtonEdu}},{buttonViewModel:_.oD})},
else:function(){return _.a(_.eS,{data:function(){return e.data().backButton}},{buttonViewModel:_.oD})}}),_.a(_.E,{cond:function(){return e.data().viewAllButton&&!0},
then:function(){return _.a(_.eS,{data:function(){return e.data().viewAllButton}},{buttonViewModel:_.oD})}}),_.a(_.E,{cond:function(){return e.data().title&&!0},
then:function(){return _.a("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return e.data().title})}})),_.a("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.a(_.E,{cond:function(){var J;
return(J=e.isDesktopPlayPage)==null?void 0:J.call(e)},
then:function(){return _.a(_.es,null,_.a(upX,{highScoreButton:function(){return e.data().highScoreButton},
score:e.score,formattedScore:e.formattedScore,onScoreChanged:e.onScoreChanged,isEmbeddedInWebview:e.isEmbeddedInWebview}),_.a(dbO,{enableSaveButton:function(){return _.ds(k)},
saveButton:function(){return e.data().saveButton},
isSaved:e.isSaved,onSaveToggled:function(){return e.onSaveToggled}}),_.a(zAX,{menuButton:function(){return e.data().menuButton}}))},
else:function(){return _.a(_.E,{cond:function(){return!1},
then:function(){return _.a(_.eS,{data:function(){return e.data().playPageButton}},{buttonViewModel:function(J){return _.a(_.oD,{data:J.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.a(upX,{highScoreButton:function(){return e.data().highScoreButton},
score:e.score,formattedScore:e.formattedScore,onScoreChanged:e.onScoreChanged,isEmbeddedInWebview:e.isEmbeddedInWebview})}})}})),_.a("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.a(_.eS,{data:function(){return e.data().muteButton}},{toggleButtonViewModel:function(J){var q=J.data;
return _.a(_.vF,{data:function(){var L,n;return Object.assign({},q(),{isToggled:(n=(L=e.isAudioEnabled)==null?void 0:L.call(e))!=null?n:!0})},
onToggle:e.onAudioToggled,useOutlinedIcon:!0})}}),_.a(_.eS,{data:function(){return e.data().theatreModeButton}},{toggleButtonViewModel:function(J){var q=J.data;
return _.a("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.a(_.vF,{data:function(){return Object.assign({},q(),{isToggled:c})},
useOutlinedIcon:!0}))}}),_.a(HmO,{fullscreenButton:function(){return e.data().fullscreenButton}}),_.a(_.E,{cond:function(){return _.ds(I)&&e.data().viewAllButton&&!1},
then:function(){return _.a(_.eS,{data:function(){return e.data().viewAllButton}},{buttonViewModel:_.oD})}}),_.a(_.E,{cond:function(){var J;
return!((J=e.isDesktopPlayPage)==null?0:J.call(e))},
then:function(){return _.a(_.es,null,_.a(dbO,{enableSaveButton:function(){return _.ds(k)},
saveButton:function(){return e.data().saveButton},
isSaved:e.isSaved,onSaveToggled:function(){return e.onSaveToggled}}),_.a(zAX,{menuButton:function(){return e.data().menuButton}}))}}))))},"ag");
Q30.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var zAX=_.H(function(e){return _.a(_.eS,{data:e.menuButton},{buttonViewModel:_.oD})},"bg"),dbO=_.H(function(e){var g=e.enableSaveButton;
var c=e.saveButton;var k=e.isSaved;var I=e.onSaveToggled;return _.a(_.E,{cond:function(){return g()&&!(c==null||!c())},
then:function(){return _.a(_.eS,{data:function(){var J=_.x(c==null?void 0:c(),_.fP),q;return{toggleButtonViewModel:Object.assign({},J,{isToggled:(q=k==null?void 0:k())!=null?q:!(J==null||!J.isToggled)})}}},{toggleButtonViewModel:function(J){return _.a(_.vF,{data:J.data,
onToggle:I})}})}})},"cg"),upX=_.H(function(e){var g=e.highScoreButton;
var c=e.score;var k=e.formattedScore;var I=e.onScoreChanged;var J=e.isEmbeddedInWebview;return _.a(_.eS,{data:g},{miniAppScoreButtonViewModel:function(q){return _.a(Fal,{data:q.data,score:c,formattedScore:k,onScoreChanged:I,isEmbeddedInWebview:J})}})},"dg"),HmO=_.H(function(e){e=e.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.a(_.es,null):_.a(_.eS,{data:e},{buttonViewModel:_.oD})},"eg");_.UbO=_.H(function(e){var g=e.data;var c=e.extractOverlay;e={};return _.a("player-disclosure-view-model",{class:_.o6("ytwPlayerDisclosureViewModelHost",(e.ytwPlayerDisclosureViewModelExtractOverlay=function(){return c==null?void 0:c()},e))},_.a(_.d4,{command:function(){return g().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.a(_.E,{cond:function(){return g().iconName},
then:function(k){return _.a(_.SU,{icon:k})}}),_.a(_.E,{cond:function(){return g().iconName?void 0:g().image},
then:function(k){return _.a(_.pv,{data:k,alt:function(){return g().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.a(_.E,{cond:function(){return g().title||g().secondaryText},
then:function(){return _.a("div",null,_.a("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return g().title}),_.a("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return g().text}),_.a(_.E,{cond:function(){return g().secondaryText},
then:function(k){return _.a(_.es,null,_.a("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.a("div",{class:"ytwPlayerDisclosureViewModelText"},k))}}))},
else:function(){return _.a("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return g().text})}}),_.a(_.E,{cond:function(){return g().showEndChevron},
then:function(){return _.a(_.SU,{icon:"CHEVRON_RIGHT"})}})))},"fg");_.oBj=new _.AU("DESKTOP_CURRENT_PAGE");var SxM=_.H(function(e){var g=e.data;var c=_.G("force_active_time_logging_webview"),k=!1,I=new bmQ,J=void 0,q=void 0,L=_.Ss().resolve(Wa7),n=new qxQ,R=void 0,W=void 0,b=[],h=void 0,X=void 0,D=!1,f=!1,l=!1,A=!1,d=new _.V8,S=_.Ss().resolve(Ajl),V=_.Ss().resolve(_.uJ),Q=_.Ss().resolve(_.NN(gC)),y,O=(y=_.Ss().resolve(_.NN(_.oBj)))==null?void 0:y.getCurrentPage(),Jq=!1,LC=0,bW=function(eu){eu.preventDefault();return eu.returnValue=""},RA,Xg=_.w(_.Wa(!((RA=_.qk("yt-mini-app-is-audio-enabled"))!=null&&!RA),
void 0,"y7Nkqd")),Fg=Xg.next().value,oA=Xg.next().value,Zt,Ev=_.w(_.Wa(!((Zt=_.qk("exit-mini-app-seen-state"))==null||!Zt),void 0,"ZP6Oxc")),an=Ev.next().value,V6=Ev.next().value,bs=_.w(_.Wa(!1,void 0,"BCKP1c")),f1=bs.next().value,hk=bs.next().value,Pq=_.w(_.Wa(void 0,void 0,"bswUUd")),vq=Pq.next().value,hq=Pq.next().value,zv=_.w(_.Wa(void 0,void 0,"sXcJfc")),XM=zv.next().value,Su=zv.next().value,p1=_.w(_.Wa(!0,void 0,"DDj4gb")),C1=p1.next().value,mz=p1.next().value,Ov=_.w(_.Wa(!1,void 0,"qXUljf")),
Rx=Ov.next().value,V4=Ov.next().value,to=_.w(_.Wa(!1,void 0,"XqvjOc")),L1=to.next().value,Wq=to.next().value,Ww=_.w(_.Wa(void 0,void 0,"S1uX2")),Bw=Ww.next().value,Uv=Ww.next().value,jz=_.w(_.Wa(0,void 0,"CGS0ze")),J0=jz.next().value,on=jz.next().value,ng=_.io("mini-app-container-view-model"),MM=_.w(_.Wa(!1,void 0,"AVpgJ")),I3=MM.next().value,kF=MM.next().value,F1=function(){return g().isEmbeddedInWebview},Uu=function(){return g().hasPlayNextShelf};
_.Tr(function(){var eu,bS=(eu=_.x(g().contentDisclosure,hTB))==null?void 0:eu.animationParams;if((bS==null?0:bS.shouldHide)&&(bS==null?0:bS.hideDelaySecs)){var lS=setTimeout(function(){kF(!0)},bS.hideDelaySecs*1E3);
_.sX(function(){clearTimeout(lS)})}});
_.VV("yt-page-type-changed",function(eu){if(_.G("enable_is_mini_app_page_active_bugfix"))eu.detail.newPageSubtype==="mini_app"&&eu.detail.newPageType==="ytd-browse"||!C1()||b0();else if(eu=_.TP()==="mini_app",eu!==C1())if(mz(eu),eu){var bS;eu=(bS=g().playableId)==null?void 0:bS.toString();eu!==void 0&&window.location.href.includes(eu)&&!f&&(A=!0,bK(),xW.value&&jY(xW.value))}else eu||b0()});
_.VV("yt-action",function(eu){eu.detail.actionName==="yt-engagement-panel-visible-changed"&&eu.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&eu.detail.args[2]==="PAmini_app_panel"&&b0();_.G("enable_is_mini_app_page_active_bugfix")?eu.detail.actionName==="yt-history-load"&&!C1()&&(O==null?0:O.active)?(mz(!0),bK(),xW.value&&jY(xW.value)):eu.detail.actionName==="yt-history-load"&&C1()&&!g().isEmbeddedInWebview&&Gq():C1()&&eu.detail.actionName==="yt-history-load"&&(A?A=!1:g().isEmbeddedInWebview||
Gq())});
_.sX(function(){ZE()});
_.AV(function(){bK()},"Jr1tnc");
var bK=function(){var eu=g().playableId,bS=g().localReleaseId,lS=g().derivedDeviceInterface;if(f)_.mN(new _.E2("[MiniAppContainerViewModel] onEnter was called more than once"));else{f=!0;J=new KOq(eu,bS,lS,document.visibilityState==="visible");eAq(J);q=new Dbv(eu);ZmQ(L,eu);LaS(n,{showMiniAppAdCommand:g().showMiniAppAdCommand,isEmbeddedInWebview:g().isEmbeddedInWebview,playLogger:J});PmK()&&(X=document.body.style.backgroundColor,_.i2(document.body,"background-color","black"));I0();hZ();d=new _.V8;
if(g().isEmbeddedInWebview){if(eu=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Mzo(J,eu),Jq=!0;I.initialize({onAudioStateLoaded:function(Sz){y6(Sz)},
onMuteMiniApp:function(){y6(!1)},
onUnmuteMiniApp:function(){y6(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Sz){Jq||(Mzo(J,Sz),Jq=!0)},
confirmExitMiniApp:function(){var Sz,dy,Uy;return _.r(function(Vd){if(Vd.nextAddress==1)return g().confirmExitMiniAppCommand?Vd.yield(Promise.race([d.promise,Promise.resolve(!1)]),2):Vd.return();(Sz=Vd.yieldResult)?!g().confirmExitMiniAppCommandEdu||(Uy=(dy=an)==null?void 0:dy())!=null&&Uy?yV(g().confirmExitMiniAppCommand):(yV(g().confirmExitMiniAppCommandEdu),_.wp("exit-mini-app-seen-state","true",2592E6)):yV(g().closeMiniAppCommand);_.Uh(Vd)})},
onNativeBenchmarkingMessageReceived:function(Sz){Sz=BGY(_.VKV(Sz));if(_.kV(Sz,_.Wj,3,ZZZ)){var dy=_.hP(Sz,_.Wj,3,ZZZ),Uy=n7e();var Vd=Yr(Uy.getSeconds())-Yr(dy.getSeconds());dy=_.Qh(Uy,2)-_.Qh(dy,2);Vd<0&&dy>0?(Vd+=1,dy-=1E9):Vd>0&&dy<0&&(--Vd,dy+=1E9);Vd=(new u2).setSeconds(Vd);Vd=_.wr(Vd,2,_.rj(dy),0);_.sx(Sz,1,Vd)}var UV;(UV=W)==null||UV.returnNativeBenchmarkingMessage(Sz)},
multiplayer3pAckStateLoaded:function(Sz){Gq(Sz)},
exitMiniAppSeenStateLoaded:function(Sz){g().confirmExitMiniAppCommandEdu&&V6(Sz)},
onNavigateToNewMiniApp:function(){yV(g().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Sz){Sz=new URLSearchParams(Sz);var dy=void 0;Sz.has("invite_code")&&(dy=new CVw,Sz=Sz.get("invite_code"),dy=_.vH(dy,1,Sz));if(Sz=dy){var Uy;(Uy=W)==null||Uy.sendGameData(Sz)}},
onPauseMiniApp:function(){k=!0;me()},
onResumeMiniApp:function(){k=!0;Q6()},
onPausePlayableDialog:function(){l=!0;me()},
onResumePlayableDialog:function(){l=!1;Q6()},
onAdFinished:function(Sz){n.onAdFinished(Sz)}});
g().showMultiplayer3pConsentDialogCommand||d.resolve(!0);yV(g().onContainerReadyCommand)}else Mzo(J),d.resolve(!0),g().runAttestationCommand&&OgX(J).then(function(Sz){var dy=_.x(Lrt(g().runAttestationCommand),_.tpq);dy&&dy.ids&&(dy.ids.push({postPlayNonce:Sz}),yV(g().runAttestationCommand))});
$bq(q,OgX(J));OgX(J).then(function(Sz){Sz={miniAppPlayData:{postPlayNonce:Sz}};var dy,Uy=(dy=g().loggingDirectives)==null?void 0:dy.trackingParams;Uy&&_.gL().stateChanged(Uy,Sz)});
eu=g().showSignInDialogCommand;!hMU()&&eu&&(_.wp("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),yV(eu));g().confirmExitMiniAppCommand&&Q&&(eu=Lrt(g().confirmExitMiniAppCommand))&&(Q.customConfirmationCommand=eu)}},ZE=function(){X&&_.i2(document.body,"background-color",X);
D=!1;h&&h.release();q.flush().catch(function(eu){_.mN(eu)});
L.flush().catch(function(eu){_.mN(eu)});
cjS(J);hD();W=void 0;VaS(S)},b0=function(){mz(!1);
ZE();hk(!1);Uv(void 0);hq(void 0);Su(void 0);LC=0;on(0);f=!1},me=function(){var eu;
(eu=W)==null||eu.onPause();h&&h.release();q.flush().catch(function(bS){_.mN(bS)});
L.flush().catch(function(bS){_.mN(bS)});
gBj(J);V4(!0)},Q6=function(){var eu;
(eu=W)==null||eu.onResume();hZ();eu=J;eu.isForeground=!0;z0(eu,"PLAY_EVENT_TYPE_PLAY_RESUME");V4(!1)},y6=function(eu){var bS;
(bS=W)==null||bS.onAudioToggled(eu);oA(eu)},Gq=function(eu){g().showMultiplayer3pConsentDialogCommand&&(g().isEmbeddedInWebview&&eu!==void 0&&d.resolve(eu),!eu&&_.TP()==="mini_app"&&yV(g().showMultiplayer3pConsentDialogCommand))},$X=function(){var eu,bS,lS,Sz;
return _.r(function(dy){if(dy.nextAddress==1){!g().isLivestream||g().disableVideoCapture||(eu=W)!=null&&eu.sendStartGameFrameCapture();bS=(new URL(window.location.href)).searchParams;if(bS.has("invite_code")){var Uy=new CVw,Vd=bS.get("invite_code");lS=_.vH(Uy,1,Vd);(Sz=W)==null||Sz.sendGameData(lS)}f1()||(hk(!0),Uy=J,Uy.state!==1?_.mN(new _.E2("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+S7v[Uy.state])):(_.g1("mini_app_ids_without_game_ready").includes(Uy.JSC$17406_miniAppId)&&(Uy.gameReady=
!0),Uy.state=2,Uy.beforeReady=!1,d2(Uy,"ma_ffr"),z0(Uy,"PLAY_EVENT_TYPE_PLAY_READY")));return dy.yield(d.promise,2)}yV(g().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();g().isEmbeddedInWebview||Gq();_.Uh(dy)})},PJ=function(){var eu=J;
eu.gameReady=!0;d2(eu,"ma_gr")},mO=function(eu){var bS;
return _.r(function(lS){if(lS.nextAddress==1)return _.lj(lS,2),lS.yield(fBz(q,eu),4);if(lS.nextAddress!=2)return _.zn(lS,0);bS=_.Qb(lS);yV(g().showSavingErrorPopupCommand);throw bS;})},is=function(){var eu,bS;
return _.r(function(lS){if(lS.nextAddress==1)return _.lj(lS,2),lS.yield(Yxj(q),4);if(lS.nextAddress!=2)return eu=lS.yieldResult,lS.return(eu);bS=_.Qb(lS);yV(g().showLoadingErrorDialogCommand);throw bS;})},ju=function(eu){J.logError(eu)},ox=function(eu,bS,lS){IBM(J,eu,bS,lS)},vJ=function(eu,bS){vBX(J,eu,bS)},xI=function(){!c&&g().isEmbeddedInWebview||_.Nz();
kTD(J,!0);D||(window.addEventListener("beforeunload",bW,{capture:!0}),D=!0)},Av=function(eu){var bS,lS,Sz,dy,Uy,Vd,UV;
return _.r(function(xD){if(xD.nextAddress==1)return L&&(!R||R<eu)&&eu>0?xD.yield(tax(L,eu),3):xD.jumpTo(0);bS=xD.yieldResult;lS=_.w(bS);Sz=lS.next().value;dy=lS.next().value;Uy=Sz;Vd=dy;((UV=Uy)==null?0:UV.displayString)&&Vd&&(hq(Vd),Su(Uy.displayString));_.Uh(xD)})},oy=function(eu){var bS=g().onBenchmarkingMessageReceivedCommand;
if(bS){var lS=n7e();_.Fp(eu,3,ZZZ,lS);hh(bS,NGv(eu))}},o3=function(){var eu=g().iapPurchaseCommand;
eu&&hh(eu)},E5=function(eu){var bS=g().onGameFrameReceivedCommand;
if(bS){var lS=new qd;var Sz=new S_w;var dy=as(eu,1);Sz=_.Rl(Sz,1,dy);eu=_.Rs(eu,2);eu=_.vH(Sz,2,eu);lS=_.sx(lS,2,eu);hh(bS,MJq(lS))}},en=function(eu){var bS=g().onGameAudioDataReceivedCommand;
if(bS){var lS=new qd;var Sz=new KWu;eu=_.Rs(eu,1);Sz=_.vH(Sz,1,eu);lS=_.sx(lS,4,Sz);hh(bS,MJq(lS))}},cV=function(){var eu=new URLSearchParams(window.location.search);
if(g().isEmbeddedInWebview&&eu&&eu.get("override_hl")==="true"&&eu.get("hl"))return eu.get("hl");eu=document.documentElement.lang;return eu!==""?eu:DY},ie=function(eu){var bS=g().onShareInviteCodeCommand;
if(bS)if(g().isEmbeddedInWebview){var lS=new fGB;eu=_.vH(lS,1,eu);hh(bS,i3w(eu))}else lS=g().inviteCodeShareClientParamIdentifier,S.clientParams.set(lS,{miniAppClientParams:{inviteCode:eu}}),yV(bS)},NW=function(eu){var bS,lS,Sz;
return _.r(function(dy){if(dy.nextAddress==1)return bS=g().onMiniAppOpenYtContentRequested,L&&_.G("enable_open_yt_content")&&bS?dy.yield(BrQ(L,eu),3):dy.jumpTo(0);lS=dy.yieldResult;if(lS==="OK")if(g().isEmbeddedInWebview){var Uy=new VJq;Sz=J2(Uy,2,wM,pg(eu));hh(bS,Naq(Sz))}else V.clientData.set("video_id",eu),yV(bS);_.Uh(dy)})},w4=function(eu){LC+=_.Qh(eu,3);
eu=Math.min(Math.log(1+LC/15E6*9)/Math.log(10),.99);on(eu);pf(eu)},pf=_.RX(function(eu){var bS=g().updateLoadingProgressCommand;
if(bS){var lS=new VJq;eu=J2(lS,3,wM,_.cq(eu));hh(bS,Naq(eu))}},100),bb=function(eu,bS){switch(eu){case 1:return aBO(n);
case 2:return nBx(n);case 3:return EBx(n,bS);default:return Promise.reject(Error("ei"))}},hZ=function(){var eu,bS;
((eu=_.S$g())==null?void 0:(bS=eu.wakeLock)==null?void 0:bS.request)!=null&&_.S$g().wakeLock.request("screen").then(function(lS){h=lS}).catch(function(){})},xW=_.PV("iframe");
_.AV(function(){g().isSupportedCountry&&(hMU()||_.G("enable_sign_in_promo")||!g().showSignInDialogCommand?xW.value&&jY(xW.value):yV(g().onMiniAppReadyCommand))},"I8Fvz");
var ko=function(){return _.a("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return f1()?0:-1},
title:function(){return g().title},
el:xW})},jY=function(eu,bS){bS=bS===void 0?!1:bS;
var lS=iF();if(lS&&(bS||lS.toString()!==eu.getAttribute("src"))){W=fpq(g().source,{isAudioEnabled:Fg,onFirstFrameReady:$X,onGameReady:PJ,onSave:mO,onLoad:is,onError:ju,onSdkCalled:ox,onSdkPerformanceUpdate:vJ,onClick:xI,onSendHighScore:Av,onBenchmarkingMessageReceived:oy,getLanguage:cV,onShareInviteCode:ie,onResourceLoaded:w4,onOpenYTContent:NW,onShowMiniAppAd:bb,onGameFrameReceived:E5,onGameAudioReceived:en,onMakeIapPurchase:o3},eu,lS);Wt(eu,"load",function(){d2(J,"ma_il");Wt(eu,"load",function(){jY(eu,
!0)})});
var Sz=_.MN("mini_app_container_iframe_src_update_delay_ms");g().isEmbeddedInWebview&&!bS&&Sz>0?Wrg(eu,lS,Sz):_.vA(eu,lS)}},iF=function(){var eu=g().url;
if(eu&&(eu=_.j6(eu),eu!==null)){if(g().source&&g().source==="MINI_APP_SOURCE_GAMESNACKS")eu=_.i1(eu,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.G("enable_origin_query_parameter_bugfix")){var bS=_.Zb(_.S5p(eu.toString()));bS=new URLSearchParams(bS||"");bS.set("origin",window.location.origin);bS=bS.toString();eu=_.QP(eu).toString();eu=_.HJ(lMu.exec(eu)[0]+(bS.trim()?"#"+bS:""))}return eu}},cO=function(){var eu={};
eu=_.o6("yt-mini-app-container-view-model__loading-screen",(eu["yt-mini-app-container-view-model__loading-screen--fade-out"]=f1,eu));var bS=function(){return f1()?1:J0()};
return _.a("div",{class:eu},_.a(_.eS,{data:function(){return g().splashScreen}},{miniAppSplashScreenViewModel:function(lS){return _.a(lBj,{data:lS.data,
loadingProgress:bS})}}))},Cu=function(){var eu={};
return _.a("div",{class:_.o6("yt-mini-app-container-view-model__pause-interstitial",(eu["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!Rx()},eu["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=Rx,eu))},_.a(_.eS,{data:function(){return g().splashScreen}},{miniAppSplashScreenViewModel:function(bS){return _.a(lBj,{data:bS.data,
forPaused:!0})}}))},I0=function(){b=[];
b.push(_.iK(window,"visibilitychange",function(){l||k&&F1()||(document.visibilityState==="visible"?Q6():me())}));
b.push(_.iK(window,"pagehide",function(){ZE()}));
b.push(_.iK(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&ng.value.dispatchEvent(new Event("tap"))},0)}));
b.push(_.iK(ng.value,"pointerdown",function(){kTD(J,!1)},!0));
b.push(_.iK(ng.value,"pause",function(){l=!0;me()}));
b.push(_.iK(ng.value,"play",function(){l=!1;Q6()}));
b.push(_.iK(ng.value,"exit",function(){ZE()}));
var eu=navigator.keyboard,bS=eu&&eu.lock;b.push(_.iK(window,Ov4,function(){Wq(gog());gog()?(g().hasPlayNextShelf&&qw("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),eA("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),bS&&eu.lock(["Escape"])):(g().hasPlayNextShelf&&eA("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),qw("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),bS&&eu.unlock())}));
g().showMultiplayer3pConsentDialogCommand&&b.push(_.iK(window,"yt-playables-ack-3p-data-usage",function(){NrQ(L)}));
g().confirmExitMiniAppCommandEdu&&b.push(_.iK(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.wp("exit-mini-app-seen-state","true",2592E6)}));
g().onGameAudioDataReceivedCommand&&b.push(_.iK(window,"message",function(lS){lS=lS.event_;var Sz,dy=(Sz=xW.value)==null?void 0:Sz.src;if(dy&&lS.origin===(new URL(dy)).origin&&lS.data&&lS.data.type==="GAME_AUDIO"&&lS.data.audio&&lS.data.audio.length>0)if(_.G("enable_sending_unwrapped_game_audio_as_serialized_metadata"))E7A(g().onGameAudioDataReceivedCommand,lS.data.audio);else{var Uy=new FileReader;Uy.onload=function(){var Vd=new qd;var UV=new KWu;UV=_.vH(UV,1,Uy.result);Vd=_.sx(Vd,4,UV);hh(g().onGameAudioDataReceivedCommand,
MJq(Vd))};
Uy.readAsDataURL(new Blob([lS.data.audio]))}}))},hD=function(){b.forEach(function(eu){I6(eu)});
window.removeEventListener("beforeunload",bW,{capture:!0})},yV=function(eu){eu&&apW(eu,g().isEmbeddedInWebview||!1)},eA=function(eu,bS){eu=_.w(ng.value.getElementsByClassName(eu));
for(var lS=eu.next();!lS.done;lS=eu.next())lS.value.classList.add(bS)},qw=function(eu,bS){eu=_.w(ng.value.getElementsByClassName(eu));
for(var lS=eu.next();!lS.done;lS=eu.next())lS.value.classList.remove(bS)};
return function(){var eu={};eu=_.o6("yt-mini-app-container-view-model",(eu["yt-mini-app-container-view-model--desktop"]=!0,eu["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return g().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},eu["yt-mini-app-container-view-model--ios-web-view"]=PmK(),eu["yt-mini-app-container-view-model--no-top-bar"]=function(){return!g().topBar},eu["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return g().hasPlayNextShelf},eu["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return g().hasPlayNextShelf},eu["yt-mini-app-container-view-model--show-peek-below"]=function(){return!L1()&&g().hasPlayNextShelf},eu));
var bS={};bS=_.o6("yt-mini-app-container-view-model__content",(bS["yt-mini-app-container-view-model__content--desktop-content"]=!0,bS["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return g().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},bS["yt-mini-app-container-view-model--desktop-play-page"]=function(){return g().hasPlayNextShelf},bS));
return _.a("mini-app-container-view-model",{el:ng},_.a("div",{class:eu},_.a(_.E,{cond:function(){return g().topBar&&!L1()},
then:function(){return _.a(_.eS,{data:function(){return g().topBar}},{miniAppTopBarViewModel:function(lS){return _.a(Q30,{data:lS.data,
isAudioEnabled:Fg,onAudioToggled:function(Sz){y6(Sz)},
score:vq,formattedScore:XM,onScoreChanged:function(Sz){R=Sz},
isEmbeddedInWebview:F1,isSaved:Bw,onSaveToggled:function(Sz){Uv(Sz)},
isExitMiniAppSeen:an,isDesktopPlayPage:Uu})}})}}),_.a("div",{class:bS},_.a(_.E,{cond:C1,
then:function(){return ko()}}),_.a(_.E,{cond:function(){return g().isLivestream},
then:function(){return Cu()}}),_.a(_.E,{cond:function(){return!g().isEmbeddedInWebview},
then:function(){return cO()}}),_.a(_.eS,{data:function(){return g().contentDisclosure}},{playerDisclosureViewModel:function(lS){lS=lS.data;
var Sz={};return _.a("div",{class:_.o6("yt-mini-app-container-view-model__content-disclosure-overlay",(Sz["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=I3,Sz))},_.a(_.UbO,{data:lS}))}}))))}()},"jg");
SxM.idomCompat=!0;_.sL(SxM,"mini-app-container-view-model",{props:{data:_.jx}});var yjv=_.H(function(e){var g=e.data;return _.a("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.a("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Ve(function(){var c=g().onTap;c&&_.GF(c)})},_.a(_.E,{cond:function(){return g().icon},
then:function(c){return _.a(_.SU,{icon:function(){return c().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.a("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return g().title})))},"kg");
yjv.idomCompat=!0;var KaX=_.H(function(e){var g=_.io("div"),c=_.w(_.Wa(void 0,void 0,"dg3xff")),k=c.next().value,I=c.next().value;c=_.w(_.Wa(void 0,void 0,"AgHNfc"));var J=c.next().value,q=c.next().value;c=_.w(_.Wa(void 0,void 0,"fuTKCc"));var L=c.next().value,n=c.next().value,R=function(){var A=k();return A!==void 0?Math.abs(A):void 0},W=function(){var A=R();
return A===void 0||A<=3},b=function(){var A=R();
var d=J(),S=L();A=A!==void 0&&d!==void 0&&S!==void 0?d-S-A:void 0;return A===void 0||A<=3},h=function(A){g.value&&g.value.scrollBy({top:0,
left:(_.uo("HTML_DIR")==="rtl"?-1:1)*A*g.value.clientWidth,behavior:"smooth"})},X=function(){var A;
I((A=g.value)==null?void 0:A.scrollLeft);var d;q((d=g.value)==null?void 0:d.scrollWidth);var S;n((S=g.value)==null?void 0:S.clientWidth)},D=function(){h(-.5)},f=function(){h(.5)};
c=_.Ve(function(){X()});
_.Tr(function(){X();if(g.value&&window.ResizeObserver){var A=new ResizeObserver(X);A.observe(g.value);_.sX(function(){A.disconnect()})}});
var l={};return _.a("yt-sponsorships-scrollable-shelf",{class:_.o6("ytdSponsorshipsScrollableShelfHost",e.className)},_.a("div",{class:_.o6("ytdSponsorshipsScrollableShelfContent",(l.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return e.data().previousButton&&e.data().nextButton&&!W()&&!b()},l.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return e.data().previousButton&&!W()&&b()},l.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return e.data().nextButton&&
W()&&!b()},l)),
el:g,"on:scroll":c},e.children),_.a(_.E,{cond:function(){return!W()},
then:function(){return _.a(_.eS,{data:function(){return e.data().previousButton}},{buttonViewModel:function(A){return _.a(_.oD,{data:A.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:D})}})}}),_.a(_.E,{cond:function(){return!b()},
then:function(){return _.a(_.eS,{data:function(){return e.data().nextButton}},{buttonViewModel:function(A){return _.a(_.oD,{data:A.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:f})}})}}))},"mg");
KaX.idomCompat=!0;var Ma7=_.H(function(e){var g=e.data;e={};return _.a("yt-sponsorships-hub",{class:_.o6("ytdSponsorshipsHubHost",(e.ytdSponsorshipsHubHostIndented=function(){return g().indented},e))},_.a("div",{class:"ytdSponsorshipsHubHeader"},_.a("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.a("div",{class:"ytdSponsorshipsHubAvatar"},_.a(_.eS,{data:function(){return g().avatar}},{avatarViewModel:_.E8})),_.a(_.E,{cond:function(){return g().badgeImage},
then:function(c){return _.a("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.a("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.a("div",{class:"ytdSponsorshipsHubBadge"},_.a(_.pv,{data:c,targetWidth:24,targetHeight:24,alt:""}))))}})),_.a("div",{class:"ytdSponsorshipsHubDetails"},_.a("div",{class:"ytdSponsorshipsHubTierName"},function(){return g().tierName}),_.a("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return g().membershipType}),_.a("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return g().membershipDurationOrExpiry})),_.a("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.a(_.eS,{data:function(){return g().manageButton}},{buttonViewModel:function(c){return _.a(_.oD,{data:c.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.a(_.eS,{data:function(){return g().actionMenuButton}},{buttonViewModel:function(c){return _.a(_.oD,{data:c.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.a("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return g().perksTitle}),_.a(KaX,{data:function(){return{previousButton:g().previousPerkButton,
nextButton:g().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.a("div",{class:"ytdSponsorshipsHubPerkCards"},_.a(_.eS,{data:function(){return g().perkCards}},{sponsorshipsHubPerkCardViewModel:yjv}),_.a(_.E,{cond:function(){return g().viewAllPerksButton},
then:function(c){return _.a(OmX,{data:c})}}))))},"ng");
Ma7.idomCompat=!0;var OmX=_.H(function(e){var g=e.data;return _.a("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.a(_.eS,{data:function(){return g().button}},{buttonViewModel:_.oD}),_.a("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.a("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return g().title}),_.a("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return g().subtitle})))},"og");
OmX.idomCompat=!0;_.sL(Ma7,"yt-sponsorships-hub",{props:{data:_.jx}});_.Cdv=_.H(function(e){var g=e.data;return _.a("yt-dual-avatar-view-model",{class:_.o6("ytDualAvatarViewModelHost",e.className),style:_.N2({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var c;return((c=g().badgeCutoutRadius)!=null?c:14)+"px"}})},_.a("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.a(_.eS,{data:function(){return g().startAvatar}},{avatarViewModel:_.E8}),_.a(_.eS,{data:function(){return g().endAvatar}},{avatarViewModel:_.E8})),_.a(_.eS,{data:function(){return g().badge}},
{contentPreviewImageViewModel:function(c){return _.a("div",{class:"ytDualAvatarViewModelBadge"},_.a(_.Zf,{data:c.data}))}}))},"pg");
_.Cdv.idomCompat=!0;var gWg=_.H(function(e){var g=e.data;var c,k=!((c=_.Ss().resolve(_.NN(_.gb)))==null||!c());e=_.xF(function(){var W,b,h=k?(W=g().header)==null?void 0:W.backgroundColorDarkMode:(b=g().header)==null?void 0:b.backgroundColorLightMode;if(h!==void 0)return _.EY(h)},void 0,"TDdh7d");
c=_.xF(function(){var W,b;return k?(W=g().header)==null?void 0:W.backgroundImagePart1Dark:(b=g().header)==null?void 0:b.backgroundImagePart1Light},void 0,"X0peMe");
var I=_.xF(function(){var W,b;return k?(W=g().header)==null?void 0:W.backgroundImagePart2Dark:(b=g().header)==null?void 0:b.backgroundImagePart2Light},void 0,"an0Hzd"),J=_.xF(function(){return _.uo("HTML_DIR")==="rtl"},void 0,"BltEgb"),q=_.io("yt-sponsorships-perks-list"),L=!1,n=function(){var W=q.value;
if(W&&!L){var b,h=(b=W.parentElement)==null?void 0:b.parentElement;if(h)for(W=W.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),b=0;b<W.length;++b){var X=W[b];if(X instanceof HTMLElement){h.scrollTo({top:X.offsetTop+X.clientHeight/2-h.clientHeight/2,behavior:"smooth"});L=!0;break}}}};
_.lo(function(){var W=q.value;if(W&&window.ResizeObserver){var b=new ResizeObserver(n);b.observe(W);_.sX(function(){b.disconnect()})}});
var R={};return _.a("yt-sponsorships-perks-list",{el:q,class:_.o6("ytdSponsorshipsPerksListHost",(R.ytdSponsorshipsPerksListHorizontalPadding=function(){return g().horizontalPaddingEnabled},R))},_.a("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.a("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.N2({"background-color":e})},_.a("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.a(_.E,{cond:c,then:function(W){var b={};return _.a("div",{class:_.o6((b.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=k,b.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!k,b.ytdSponsorshipsPerksListFlipped=J,b))},_.a(_.pv,{data:W,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.a("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.a(_.E,{cond:I,
then:function(W){var b={};return _.a("div",{class:_.o6((b.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=k,b.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!k,b.ytdSponsorshipsPerksListFlipped=J,b))},_.a(_.pv,{data:W,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.a("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.a(_.eS,{data:function(){var W;
return(W=g().header)==null?void 0:W.dualAvatar}},{dualAvatarViewModel:_.Cdv})))),_.a("div",{class:"ytdSponsorshipsPerksListBody"},_.a("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return g().title}),_.a(_.E,{cond:function(){return g().perks},
then:function(W){return _.a(_.Yz,{each:W},function(b,h){var X={};return _.a("div",{class:_.o6("ytdSponsorshipsPerksListPerkContainer",(X.ytdSponsorshipsPerksListSelectedPerk=function(){var D=h(),f=g().selectedPerkIndex;return D===f},X))},_.a(_.E,{cond:function(){return h()>0},
then:function(){return _.a("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.a("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.a(_.E,{cond:function(){return b.icon},
then:function(D){return _.a(_.SU,{icon:function(){return D().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.a("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.a("div",{class:"ytdSponsorshipsPerksListPerkTitle"},b.title),_.a("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.a(_.fa,{text:b.description})),_.a(_.E,{cond:function(){return b.instructions},
then:function(){var D,f;return _.a("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.a("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(D=b.instructions)==null?void 0:D.title),_.a("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.a(_.fa,{text:(f=b.instructions)==null?void 0:f.text})))}}))),_.a(_.E,{cond:function(){return b.emoji},
then:function(D){return _.a("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.a(_.Yz,{each:function(){return D()}},function(f){return _.a(_.pv,{data:f,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.a(eLQ,{data:b}))})}})))},"qg");
gWg.idomCompat=!0;var eLQ=_.H(function(e){var g=e.data;var c=function(q,L){return q===L},k=function(){var q=g();
q=_.x(q==null?void 0:q.badgesShelf,TOv);return q!==void 0&&q!==null?q:{previousButton:{},nextButton:{}}},I=_.PV("div"),J=function(){var q=I.value;
if(q){var L=q.parentElement;if(L){q=q.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var n=0;n<q.length;++n){var R=q[n];if(R instanceof HTMLElement){L.scrollTo({left:R.offsetLeft+R.clientWidth/2-L.clientWidth/2,behavior:"instant"});break}}}}};
_.lo(function(){var q=I.value;if(q){var L=new ResizeObserver(J);L.observe(q);_.sX(function(){L.disconnect()})}});
return _.a("div",null,_.a(_.E,{cond:function(){return g().badges},
then:function(q){return _.a(KaX,{data:k},_.a("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:I},_.a(_.Yz,{each:function(){return q()}},function(L,n){var R={},W={},b={};
return _.a("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.a(_.E,{cond:function(){return n()>0},
then:function(){return _.a("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.a("div",{class:_.o6("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(R.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return c(n(),g().currentBadgeIndex)},R.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!c(n(),g().currentBadgeIndex)},R))},_.a("div",{class:_.o6("ytdSponsorshipsPerksListLoyaltyBadge",(W.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return c(n(),
g().currentBadgeIndex)},W.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!c(n(),g().currentBadgeIndex)},W))},_.a(_.E,{cond:function(){return L.image},
then:function(h){var X={};return _.a("div",{class:_.o6((X.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return c(n(),g().currentBadgeIndex)},X.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!c(n(),g().currentBadgeIndex)},X))},_.a(_.pv,{data:h,
alt:""}))}})),_.a("div",{class:_.o6("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(b.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return c(n(),g().currentBadgeIndex)},b))},L.title)))})))}}))},"rg");
eLQ.idomCompat=!0;_.sL(gWg,"yt-sponsorships-perks-list",{props:{data:_.jx}});_.sL(_.H(function(e){return _.a("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.a(_.E,{cond:function(){return e.data().image},
then:function(g){return _.a(_.pv,{className:"ytwFantasyEmptyStateViewModelImage",data:g,ariaHidden:!0,alt:""})}}),_.a(_.fa,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return e.data().title}}),_.a(_.fa,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return e.data().subtitle}}),_.a(_.eS,{data:function(){return e.data().primaryButton}},{buttonViewModel:function(g){return _.a(_.oD,{data:g.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"sg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.jx}});var c0D;var keS=_.H(function(e){var g=e.data;var c=e.uniqueId;var k=e.overrides;e=_.xF(function(){var I,J=((I=g().timedAnimationData)==null?void 0:I.animationTiming)||[];return{uniqueId:c(),timings:J,experimentEnabled:J.length>0,enabled:J.length>0}},void 0,"hiuXI");
return _.a("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.a(Tnq,{settings:e},_.a(_.eS,{data:function(){return g().buttonRenderer}},{buttonRenderer:function(I){return _.a(_.lh,{data:I.data,
buttonOverrides:k})}})))},"tg");
keS.idomCompat=!0;_.sL(keS,"timed-animation-button-renderer",{props:{data:_.jx,uniqueId:_.jx,overrides:_.jx}});var tf=function(){var e=_.z.apply(this,arguments)||this;e.hideJoinButtonBeforeSubscribed=_.G("hide_join_button_before_subscribed");e.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return e};
_.Y(tf,_.z);_.v=tf.prototype;_.v.hasShowDialogCommand=function(e){return!!_.x(e,zbZ)};
_.v.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.updateJoinButtonOverrides=function(){var e,g;(e=_.o1(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(g=e.polymerController)==null||g.set("overrides",this.joinButtonOverrides);if(e=_.o1(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))e.overrides=this.joinButtonOverrides};
_.v.handleButtonRefreshAction=function(e){if(e=_.x(e,cSI))this.set("data.membershipButton",e.membershipButton),this.notifyPath("data.membershipButton")};
_.v.onYtServiceRequestError=function(e){_.iD(this.hostElement,e.detail.error.message)};
_.v.onKeydown=function(e){if(e.key==="Enter"){var g;(g=this.data)!=null&&g.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.v.handleUnsubscribeAction=function(){var e,g,c;((e=this.data)==null?void 0:(g=e.membershipButton)==null?void 0:(c=g.buttonRenderer)==null?void 0:c.style)==="STYLE_PRIMARY"&&_.o1(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Bd.Object.defineProperties(tf.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.subscriptionStateEntity)==null||!e.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var e,g=(e=this.data)==null?void 0:e.membershipButton,c;e=(g==null?void 0:g.buttonRenderer)||_.x(g==null?void 0:(c=g.timedAnimationButtonRenderer)==null?void 0:c.buttonRenderer,_.G_);return(e==null?void 0:e.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(e==null?void 0:e.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(e==null?void 0:e.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var e;if(this.hasShowDialogCommand((e=this.data)==null?void 0:e.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var e;if(this.hasShowDialogCommand((e=this.data)==null?void 0:e.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.attributedTitle)}}});
tf.prototype.onYtServiceRequestError=tf.prototype.onYtServiceRequestError;tf.prototype.updateJoinButtonOverrides=tf.prototype.updateJoinButtonOverrides;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],tf.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Wv),_.B("design:type",Object)],tf.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],tf.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.qx),_.B("design:type",Object)],tf.prototype,"ironButtonState",void 0);_.t([_.u(),_.B("design:type",Object)],tf.prototype,"data",void 0);_.t([_.p("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],tf.prototype,"hideJoin",null);
_.t([_.u(),_.B("design:type",String)],tf.prototype,"subscribeKey",void 0);_.t([_.u({selectorArgs:["subscribeKey"],selector:f$V}),_.B("design:type",Object)],tf.prototype,"subscriptionStateEntity",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],tf.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.t([_.p("subscriptionStateEntity"),_.u({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],tf.prototype,"subscribed",null);
_.t([_.p("subscribed","data.membershipButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],tf.prototype,"joinButtonOverrides",null);_.t([_.p("data.navigationEndpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],tf.prototype,"channelNameTabIndex",null);_.t([_.p("data.navigationEndpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],tf.prototype,"channelNameRole",null);
_.t([_.p("data.attributedTitle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tf.prototype,"hasAttributedTitle",null);_.t([_.OY("joinButtonOverrides"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tf.prototype,"updateJoinButtonOverrides",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],tf.prototype,"onYtServiceRequestError",null);
_.t([_.bF({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],tf);
var IEl=_.oI()(tf,"ytd-video-owner-renderer",function(){if(c0D===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);c0D=e}e=c0D;return e},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.sL(_.H(function(e){var g=e.data;var c;e=_.w(_.Wa(!((c=_.qk("yt-mini-app-is-theater-mode-enabled"))==null||!c),void 0,"i2pjVd"));var k=e.next().value,I=e.next().value;c=_.w(_.Wa(!1,void 0,"ga7V5c"));var J=c.next().value,q=c.next().value;_.lo(function(){var R=_.iK(window,Ov4,function(){q(gog())});
_.sX(function(){I6(R)})});
var L;c=(L=_.Ss().resolve(_.NN(jnj)))!=null?L:function(){return _.a("div",null)};
_.QV("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){I(!0);_.wp("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.QV("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){I(!1);_.wp("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
L={};e={};var n={};return _.a("mini-app-play-page-renderer",{class:_.o6("miniAppPlayPageRendererHost",(L.miniAppPlayPageRendererHostDetailsView=function(){return!k()},L))},_.a("div",{class:_.o6("miniAppPlayPageRendererGameContainer",(e.miniAppPlayPageRendererGameContainerDetailsView=function(){return!k()},e))},_.a(_.eS,{data:function(){return g().containerViewModel}},{miniAppContainerViewModel:SxM}),_.a(_.E,{cond:function(){return g().channel&&g().subscribeButton},
then:function(){var R={};return _.a("div",{class:_.o6("miniAppPlayPageRendererChannelContainer",(R.miniAppPlayPageRendererHideVisibility=function(){return J()},R))},_.a(_.eS,{data:function(){return g().channel}},{videoOwnerRenderer:function(W){return _.a(IEl,{data:W.data})}}),_.a(_.eS,{data:function(){return g().subscribeButton}},{subscribeButtonViewModel:function(W){return _.a(_.Ew,{data:W.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.a(_.E,{cond:function(){return!k()&&g().description},
then:function(){var R={};return _.a("div",{class:_.o6("miniAppPlayPageRendererMiniAppDescriptionWrapper",(R.miniAppPlayPageRendererHideVisibility=function(){return J()},R))},_.a("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return g().description}))}})),_.a("div",{class:_.o6("miniAppPlayPageRendererPlayNextContainer",(n.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!k()},n.miniAppPlayPageRendererHideVisibility=function(){return J()},n))},_.a(_.eS,{data:function(){return g().sectionList}},
{sectionListRenderer:c})))},"ug"),"mini-app-play-page-renderer",{props:{data:_.jx}});var Bx=function(){var e=_.z.apply(this,arguments)||this;e.isSearch=!1;e.isConstrainedList=!1;e.hasChipsBar=!1;e.inReplyPanel=!1;e.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"}};e.monitorScroll=!0;e.SCROLL_ANIMATION_DURATION_MS=300;e.nextContinuation={continuationType:"sectionListContinuation"};return e};
_.Y(Bx,_.z);_.v=Bx.prototype;
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0},alertBannerViewModel:{component:"yt-alert-banner-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},
channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(e){switch(e.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.G("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.G("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.v.created=function(){var e=this;this.JSC$17552_scrollAnimation=new _.F4(function(g){e.hostElement.scrollTop=g})};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.v.getItemsPath=function(){return"data.contents"};
_.v.replacePrimaryContent=function(e){this.set("data.contents",e)};
_.v.computeHasSortFilter=function(e){return!!e&&!!e.sortFilterSubMenuRenderer};
_.v.computeShouldScrollInPanel=function(e){var g;return!!(e==null?0:(g=e.scrollPaneStyle)==null?0:g.scrollable)};
_.v.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Vg(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.v.scrollToTop=function(){this.hostElement.scrollTop=0};
_.v.scrollToItemSection=function(e){if(e=this.getItemByIdentifier(e))e=this.getScrollPositionForItem(e),this.hostElement.scrollTop!==e&&this.JSC$17552_scrollAnimation.start(this.hostElement.scrollTop,e,this.SCROLL_ANIMATION_DURATION_MS)};
_.v.getItemByIdentifier=function(e){var g=this.contents.querySelectorAll("ytd-item-section-renderer");if(g&&g.length!==0){var c=Array.from(g).findIndex(function(k){return k.sectionIdentifier===e});
return g[c===-1?0:c]}};
_.v.getScrollPositionForItem=function(e){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===e)return 0;e=_.hd(e).y+this.hostElement.scrollTop-_.hd(this.hostElement).y;return Math.min(e,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Bd.Object.defineProperties(Bx.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.targetId)==="browse-feedFEclips"}}});
Bx.prototype.onScroll=Bx.prototype.onScroll;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.uU.YtLazyListBehavior),_.B("design:type",Object)],Bx.prototype,"ytLazyListBehavior",void 0);_.t([_.m(_.lX.YtNextContinuationBehavior),_.B("design:type",Object)],Bx.prototype,"ytNextContinuationBehavior",void 0);
_.t([_.m(_.Zgl),_.B("design:type",Object)],Bx.prototype,"ytBooleanLogicBehavior",void 0);_.t([_.m(_.Tk),_.B("design:type",Object)],Bx.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Bx.prototype,"data",void 0);_.t([_.u({value:2}),_.B("design:type",Number)],Bx.prototype,"initialCount",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],Bx.prototype,"autoFill",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.B("design:type",Boolean)],Bx.prototype,"hasSortFilter",void 0);_.t([_.u({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.B("design:type",Boolean)],Bx.prototype,"hideBottomSeparator",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.B("design:type",Boolean)],Bx.prototype,"shouldScrollInPanel",void 0);
_.t([_.u(),_.B("design:type",Object)],Bx.prototype,"isSearch",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Bx.prototype,"isConstrainedList",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],Bx.prototype,"responsiveSizing",void 0);_.t([_.u(),_.B("design:type",Object)],Bx.prototype,"hasChipsBar",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],Bx.prototype,"pageSubtype",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Bx.prototype,"engagementPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Bx.prototype,"liveChatEngagementPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Bx.prototype,"inReplyPanel",void 0);_.t([_.Cs("#action-button"),_.B("design:type",HTMLElement)],Bx.prototype,"actionButton",void 0);_.t([_.u(),_.B("design:type",Object)],Bx.prototype,"scrollUpButtonData",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Bx.prototype,"engagementPanelDropdown",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Bx.prototype,"engagementPanelDialog",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Bx.prototype,"isClipList",null);_.t([_.Cs("#contents"),_.B("design:type",HTMLElement)],Bx.prototype,"monitorScrollElement",void 0);_.t([_.Cs("#contents"),_.B("design:type",HTMLElement)],Bx.prototype,"contents",void 0);
_.t([_.Ks("scroll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bx.prototype,"onScroll",null);_.t([_.bF({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Bx);
var J0x=_.oI()(Bx,"ytd-section-list-renderer",function(){if(fwv===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);fwv=e}e=fwv;return e},{mode:1});var vW0;var wAM;var qhO;var LzM;var NV=function(){return _.z.apply(this,arguments)||this};
_.Y(NV,_.z);NV.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
NV.prototype.onLikeButtonClick=function(e){e.stopPropagation();e.preventDefault()};
_.Bd.Object.defineProperties(NV.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)!=null&&e.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],NV.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],NV.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],NV.prototype,"ytRendererStamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],NV.prototype,"data",void 0);
_.t([_.u({selectorArgs:["data.likeStatusEntityKey"],selector:_.WO}),_.B("design:type",Object)],NV.prototype,"likeStatusEntity",void 0);_.t([_.p("data","likeStatusEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],NV.prototype,"likeButtonRenderer",null);_.t([_.bF({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],NV);
_.U(NV,"ytd-slim-metadata-toggle-button-renderer",function(){if(LzM!==void 0)return LzM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
return LzM=e},{mode:1});var S7=function(){var e=_.z.apply(this,arguments)||this;e.showEqualizer=_.G("web_enable_playlist_video_lockup_equalizer");e.watchColorUpdate=_.G("kevlar_watch_color_update");e.actionMap={};return e};
_.Y(S7,_.z);_.v=S7.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.v.computeEditableClass=function(e){return e&&e.menu?"editable":""};
_.v.computeSelected=function(e){return!(e==null||!e.selected)};
_.v.computeUseColorPalette=function(e){return!!((e==null?0:e.lightColorPalette)&&(e==null?0:e.darkColorPalette))};
_.v.computeLargerPlaylistThumbs=function(e,g){return _.G("web_enable_playlist_bigger_thumbnails")&&!g};
_.v.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.v.onYtServiceRequestSent=function(e,g){g.endpoint&&this.isHideEnclosingAction(g.endpoint)&&!this.selected&&EPn(_.po(),this.data.videoId)};
_.v.isHideEnclosingAction=function(e){var g=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",e);e=this.get("likeEndpoint.status",e)==="INDIFFERENT";return g||e};
_.v.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.v.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Bd.Object.defineProperties(S7.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.G("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.G("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.G("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var e;return!!(this.withinMiniplayer&&((e=this.data)==null?0:e.actionButtons))}}});
S7.prototype.onYtServiceRequestSent=S7.prototype.onYtServiceRequestSent;S7.prototype.canReorderChanged=S7.prototype.canReorderChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],S7.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.f3),_.B("design:type",Object)],S7.prototype,"ytdLockupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],S7.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],S7.prototype,"withinMiniplayer",void 0);_.t([_.u({computed:"computeSelected(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],S7.prototype,"selected",void 0);
_.t([_.u({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],S7.prototype,"useColorPalette",void 0);_.t([_.u({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.B("design:type",Boolean)],S7.prototype,"largerPlaylistThumbs",void 0);_.t([_.u(),_.B("design:type",Object)],S7.prototype,"showEqualizer",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],S7.prototype,"canReorder",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],S7.prototype,"touchPersistentDragHandle",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],S7.prototype,"handleIsHovered",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],S7.prototype,"watchColorUpdate",void 0);_.t([_.u(),_.B("design:type",String),_.B("design:paramtypes",[])],S7.prototype,"reorderIcon",null);
_.t([_.u(),_.B("design:type",String),_.B("design:paramtypes",[])],S7.prototype,"playIcon",null);_.t([_.u({reflectToAttribute:!0}),_.p("withinMiniplayer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],S7.prototype,"minimizePipBreakages",null);_.t([_.p("largerPlaylistThumbs"),_.B("design:type",Number),_.B("design:paramtypes",[])],S7.prototype,"thumbnailWidth",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],S7.prototype,"showActionButtons",null);_.t([_.k_("canReorder"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],S7.prototype,"canReorderChanged",null);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],S7.prototype,"onYtServiceRequestSent",null);
_.t([_.bF({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],S7);
_.U(S7,"ytd-playlist-panel-video-renderer",function(){if(qhO!==void 0)return qhO;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[minimizePipBreakages]]" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return qhO=e},{mode:2});var yo=function(){return _.z.apply(this,arguments)||this};
_.Y(yo,_.z);yo.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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],yo.prototype,"data",void 0);_.t([_.bF({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],yo);
_.U(yo,"ytd-playlist-panel-supported-items",function(){if(wAM!==void 0)return wAM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return wAM=
e},{mode:1});Mtw=!0;T0u("\\P{N}");var spK;var r0X=_.C_("END_OF_PLAYLIST",void 0,"End of playlist"),aE7=_.C_("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Kc=function(){var e=_.z.apply(this,arguments)||this;e.minimizePipBreakages=_.G("web_pip_minimize_breakages");e.hideHeaderText=!1;e.useColorPalette=!1;e.collapsed=!1;e.collapsedPreServerOverride="not_tracked";e.isHovered=!1;e.expandLabel=_.C_("MINIPLAYER_EXPAND_LABEL");e.collapseLabel=_.C_("MINIPLAYER_COLLAPSE_LABEL");e.isFloating=!1;e.metaPanel=
!1;e.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};e.currentIndex=void 0;return e};
_.Y(Kc,_.z);_.v=Kc.prototype;
_.v.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.created=function(){var e=this;this.scrollThrottle=new _.BT(this.onThrottledScroll,1E3,this);this.JSC$17574_ytReorderableController=new _.ZNu(56,function(g){e.handleDrop(g)})};
_.v.onMouseEnter=function(){this.isHovered=!0};
_.v.onMouseLeave=function(){this.isHovered=!1};
_.v.computeOverflowMenuData=function(e){return e&&e.menu?e.menu:null};
_.v.computeCollapsible=function(e){return!e};
_.v.computeHasPlaylistButtons=function(e){return!(!e||!e.playlistButtons)};
_.v.computeHasSeparateSaveButton=function(e){return!(!e||!e.saveButton)};
_.v.computeHasToolbarButton=function(e,g){return!(!e||!(g||e.saveButton||e.menu))};
_.v.computePlaylistType=function(e){if(e&&e.playlistId)return e.playlistId.substring(0,4)};
_.v.computeCanReorder=function(e){return e?e.playlistId&&e.playlistId.startsWith("TLPQ")?!0:!!e.isEditable&&!e.isInfinite:!1};
_.v.attached=function(){var e=this;try{_.Ss().resolve(_.fo).setPlaylistComponent(this.hostElement)}catch(g){if(_.G("kevlar_park_on_playlist_token_killswitch"))throw g;_.iE().parkOrScheduleJob(function(){_.Ss().resolve(_.fo).setPlaylistComponent(e.hostElement)},2,"ci")}_.uc(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.v.detached=function(){_.dE(this.hostElement);_.C3(this.JSC$17574_ytReorderableController)};
_.v.computeTrailingIcon=function(e,g,c){return c?g?"yt-icons:collapse":"yt-icons:close":g?"yt-icons:expand":_.G("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.v.computeIndexMessage=function(e,g){return dJK(e+1)+" / "+dJK(g)};
_.v.onRenderStamperFinished=function(){if(this.scrollForStampDom){var e=!0;this.isHovered&&(e=!1);if(this.collapsed||this.hidden)e=!1;e&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.v.collapseChanged=function(){var e=this;this.collapsed||(_.e$(this.ytTaskEmitterBehavior.getTaskManager(),function(){e.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.v.hiddenChanged=function(){var e=this;this.hidden||_.e$(this.ytTaskEmitterBehavior.getTaskManager(),function(){e.scrollToCurrentVideo()})};
_.v.setupReordering=function(){var e=_.o1(this.hostElement).querySelector("#items");W8Z?_.V8B(this.JSC$17574_ytReorderableController,e,e,"playlist-drag-handle"):_.V8B(this.JSC$17574_ytReorderableController,e,e)};
_.v.scrollToCurrentVideo=function(){var e=this;_.ft.addJob(function(){var g=_.o1(e.hostElement).querySelector("#items");if(g){g.style.setProperty("padding-bottom","");var c=_.o1(e.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(c){g=c.parentElement||_.hL(document);var k=g||_.hL(document);var I=_.hd(c),J=_.hd(k),q=_.Gsu(k);if(k==_.hL(document)){var L=I.x-k.scrollLeft;I=I.y-k.scrollTop}else L=I.x-J.x-q.left,I=I.y-J.y-q.top;c=Wuw(c);J=k.clientHeight-
c.height;q=k.scrollLeft;var n=k.scrollTop;q+=L-(k.clientWidth-c.width)/2;k=new _.pr(q,n+(I-J/2));g.scrollLeft=k.x;g.scrollTop=k.y}}},8)};
_.v.dataChanged=function(){var e=this;_.C3(this.JSC$17574_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Va(this,function(){_.h2(e.ytTaskEmitterBehavior.getTaskManager(),function(){e.ytRendererBehavior.markDirty();e.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.v.onFullBleedPlayerChanged=function(){_.G("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.v.onFullscreenChanged=function(){_.G("web_watch_imax_theater_mode")||_.G("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.v.updateNowPlayingOverlay=function(){_.G("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.v.onPlaylistLockupNowPlaying=function(e,g){g&&(this.activeNowPlayingRenderer=g);this.updateNowPlayingOverlay()};
_.v.onScroll=function(){this.scrollThrottle.fire()};
_.v.onThrottledScroll=function(){var e=this;_.h2(this.ytTaskEmitterBehavior.getTaskManager(),function(){e.ytRendererBehavior.markDirty()})};
_.v.onToggleExpanded=function(e){!this.collapsible||e&&(_.A3(e).tagName==="A"||_.TJ(_.lg(e),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.v.setCollapsed=function(e){this.collapsible&&(this.collapsed=e,_.V1(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.v.handleCollapsedFromData=function(e){if(e){var g=e.playlistPanelCollapseState;g==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||g==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),g=g==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==g&&this.setCollapsed(g)):this.currentPlaylistId!==e.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(g=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==g&&this.setCollapsed(g),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=e.playlistId}};
_.v.handleDrop=function(e){var g=e.currDragItem;e=g.data.playlistSetVideoId;var c=_.dV(g.parentNode.childNodes,g),k=void 0;c>0&&(k=g.parentNode.childNodes[c-1].data.playlistSetVideoId);g=_.po();if(g.responsePlaylistData&&g.responsePlaylistData.contents){var I=Nep(e,g.responsePlaylistData);g.responsePlaylistData=(0,_.n0.unsafeClone)(g.responsePlaylistData);HCp(g.responsePlaylistData.contents,I,c);g.queueProxy?Vfk(g.queueProxy,I,c,e,k):g.playlistProxy&&Vfk(g.playlistProxy,I,c,e,k);_.Tx(g,_.lE(g,g.response?
g.response.autoplayRenderer:void 0))}};
_.v.handleDarkModeChange=function(e){e!==this.isDarkTheme&&(this.isDarkTheme=e)};
_.v.colorPaletteChanged=function(){var e,g=((e=this.data)==null?void 0:e.contents)||[],c;e=_.w(g);for(g=e.next();!g.done;g=e.next()){g=g.value;var k=void 0;if((k=g.playlistPanelVideoRenderer)==null?0:k.selected){e=g.playlistPanelVideoRenderer;k=g=void 0;(c=this.isDarkTheme?(g=e)==null?void 0:g.darkColorPalette:(k=e)==null?void 0:k.lightColorPalette)&&_.vO(this.hostElement,c);break}}this.useColorPalette=!!c};
_.Bd.Object.defineProperties(Kc.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.moveThreeDotsMenuToMainHeader)&&_.G("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var e=_.Ss().resolve(_.NN(_.fo)),g;if(((g=this.data)==null?0:g.contents)&&(e==null?0:e.hasAutoplayData())){var c;if(((c=this.playlistLoopStateEntity)==null?void 0:c.state)==="PLAYLIST_LOOP_STATE_ONE"){if(e=this.data.currentIndex,e!==void 0){var k,I;var J=(k=this.data.contents[e])==null?void 0:(I=k.playlistPanelVideoRenderer)==null?void 0:I.title}}else{var q,L=(q=_.x(e.getAutoplayEndpoint(),_.Pm))==null?void 0:q.videoId,n,R;J=(n=this.data.contents.find(function(W){var b;
return((b=W.playlistPanelVideoRenderer)==null?void 0:b.videoId)===L}))==null?void 0:(R=n.playlistPanelVideoRenderer)==null?void 0:R.title}return J}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)!=null&&e.nextVideoLabel?this.nextVideoTitle?_.mp(this.data.nextVideoLabel)+":":r0X:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var e;if(((e=this.data)==null?0:e.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.G("web_mix_long_byline_from_data"))return _.PL(aE7);var g;return(g=this.data)==null?void 0:g.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k=(e=this.data)==null?void 0:(g=e.playlistButtons)==null?void 0:(c=g.menuRenderer)==null?void 0:c.topLevelButtons;if(k)for(e=_.w(k),g=e.next();!g.done;g=e.next())if(g=g.value,g.playlistLoopButtonRenderer)return g.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var e;return!!(this.collapsed&&((e=this.data)==null?0:e.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.G("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Kc.prototype.colorPaletteChanged=Kc.prototype.colorPaletteChanged;Kc.prototype.onPlaylistLockupNowPlaying=Kc.prototype.onPlaylistLockupNowPlaying;Kc.prototype.updateNowPlayingOverlay=Kc.prototype.updateNowPlayingOverlay;Kc.prototype.onFullscreenChanged=Kc.prototype.onFullscreenChanged;Kc.prototype.onFullBleedPlayerChanged=Kc.prototype.onFullBleedPlayerChanged;Kc.prototype.dataChanged=Kc.prototype.dataChanged;Kc.prototype.hiddenChanged=Kc.prototype.hiddenChanged;Kc.prototype.collapseChanged=Kc.prototype.collapseChanged;
Kc.prototype.onRenderStamperFinished=Kc.prototype.onRenderStamperFinished;Kc.prototype.onMouseLeave=Kc.prototype.onMouseLeave;Kc.prototype.onMouseEnter=Kc.prototype.onMouseEnter;_.t([_.m(_.Jc),_.B("design:type",Object)],Kc.prototype,"ironResizableBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Kc.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(WTM.YtPlaylistPanelBehavior),_.B("design:type",Object)],Kc.prototype,"ytPlaylistPanelBehavior",void 0);_.t([_.m(_.TG.YtTaskEmitterBehavior),_.B("design:type",Object)],Kc.prototype,"ytTaskEmitterBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Kc.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Kc.prototype,"ytdReduxBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Kc.prototype,"actionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Kc.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Kc.prototype,"autoplayData",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Kc.prototype,"withinMiniplayer",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Kc.prototype,"minimizePipBreakages",void 0);
_.t([_.u({computed:"setMenuData_(data)"}),_.B("design:type",Object)],Kc.prototype,"menuRendererData",void 0);_.t([_.u({computed:"computeOverflowMenuData(data)"}),_.B("design:type",Object)],Kc.prototype,"overflowMenuDataTopRow",void 0);_.t([_.u({computed:"computeOverflowMenuData(data)"}),_.B("design:type",Object)],Kc.prototype,"overflowMenuData",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Kc.prototype,"hideHeaderText",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Kc.prototype,"useColorPalette",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.B("design:type",Boolean)],Kc.prototype,"collapsible",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Kc.prototype,"collapsed",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Kc.prototype,"hidden",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.B("design:type",Boolean)],Kc.prototype,"hasPlaylistButtons",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.B("design:type",Boolean)],Kc.prototype,"hasSeparateSaveButton",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.B("design:type",Boolean)],Kc.prototype,"hasToolbar",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.B("design:type",String)],Kc.prototype,"playlistType",void 0);_.t([_.u(),_.B("design:type",Object)],Kc.prototype,"isHovered",void 0);_.t([_.u({selectorArgs:["playlistLoopStateEntityKey"],selector:_.Jg.playlistLoopStateEntitySelector}),_.B("design:type",Object)],Kc.prototype,"playlistLoopStateEntity",void 0);_.t([_.u({computed:"computeCanReorder(data)"}),_.B("design:type",Boolean)],Kc.prototype,"canReorder",void 0);
_.t([_.u(),_.B("design:type",Object)],Kc.prototype,"expandLabel",void 0);_.t([_.u(),_.B("design:type",Object)],Kc.prototype,"collapseLabel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Kc.prototype,"isFloating",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Kc.prototype,"metaPanel",void 0);_.t([_.u({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.B("design:type",String)],Kc.prototype,"trailingIcon",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Kc.prototype,"isDarkTheme",void 0);_.t([_.u({selector:_.Eo}),_.B("design:type",Boolean)],Kc.prototype,"miniplayerIsActive",void 0);_.t([_.u({selector:function(e){return e.watch.playerState}}),
_.B("design:type",Number)],Kc.prototype,"playerState",void 0);_.t([_.u({selector:_.RH}),_.B("design:type",Boolean)],Kc.prototype,"isFullscreen",void 0);_.t([_.u({selector:_.nx}),_.B("design:type",Boolean)],Kc.prototype,"isTheaterMode",void 0);_.t([_.u(),_.B("design:type",Object)],Kc.prototype,"activeNowPlayingRenderer",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Kc.prototype,"moveThreeDotMenuToTopRow",null);
_.t([_.p("data","autoplayData","playlistLoopStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kc.prototype,"nextVideoTitle",null);_.t([_.p("data","nextVideoTitle"),_.B("design:type",String),_.B("design:paramtypes",[])],Kc.prototype,"nextVideoLabel",null);_.t([_.p("collapsed"),_.B("design:type",String),_.B("design:paramtypes",[])],Kc.prototype,"buttonAriaLabel",null);
_.t([_.p("data","playlistId","longBylineText"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kc.prototype,"mixLongByLine",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kc.prototype,"playlistLoopStateEntityKey",null);_.t([_.Ks("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kc.prototype,"onMouseEnter",null);
_.t([_.Ks("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kc.prototype,"onMouseLeave",null);_.t([_.u({reflectToAttribute:!0}),_.p("data","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Kc.prototype,"showNextVideoHeader",null);_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kc.prototype,"onRenderStamperFinished",null);
_.t([_.OY("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kc.prototype,"collapseChanged",null);_.t([_.OY("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kc.prototype,"hiddenChanged",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kc.prototype,"dataChanged",null);
_.t([_.p("isTheaterMode","isFullscreen"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Kc.prototype,"isFullBleedPlayer",null);_.t([_.OY("isTheaterMode","isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kc.prototype,"onFullBleedPlayerChanged",null);_.t([_.OY("isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kc.prototype,"onFullscreenChanged",null);
_.t([_.OY("playerState","miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kc.prototype,"updateNowPlayingOverlay",null);_.t([_.Ks("yt-playlist-lockup-now-playing-active"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Kc.prototype,"onPlaylistLockupNowPlaying",null);
_.t([_.OY("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kc.prototype,"colorPaletteChanged",null);_.t([_.bF({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Kc);
_.nWX=_.oI()(Kc,"ytd-playlist-panel-renderer",function(){if(vW0===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);vW0=e}e=vW0;return e},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.RLg={};
_.RLg.YtConditionalRendererBehavior=[_.K.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(e,g){var c=this,k,I;return _.r(function(J){switch(J.nextAddress){case 1:if(!g)return c.hidden=!0,c.showSpinner=!1,J.return();if((k=e)==null?0:(I=k.visibilityCondition)==null?0:I.mode)switch(e.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return J.jumpTo(5);default:return J.jumpTo(6)}c.showSpinner=
!1;c.hidden=!0;return J.yield(c.shouldShow_(e),4);case 4:c.hidden=!J.yieldResult;J.jumpTo(0);break;case 5:return J.yield(c.shouldShow_(e),8);case 8:c.showSpinner=J.yieldResult;c.hidden=!1;J.jumpTo(0);break;case 6:return c.showSpinner=!1,J.yield(c.shouldShow_(e),9);case 9:c.hidden=!J.yieldResult,_.Uh(J)}})},
shouldShow_:function(e){return e&&e.supportedDatas&&e.supportedDatas.rendererVisibilityConditionData&&e.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(e.supportedDatas.rendererVisibilityConditionData.showIf):e&&e.visibilityCondition&&e.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(e.visibilityCondition.showIf):e&&e.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(e.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(e){switch(e){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(e){switch(e){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var e=_.Z5(this.hostElement,"yt-get-mdx-status");return e.length==1&&e[0].connected},
isLocationPermissionGranted_:function(){var e;return _.r(function(g){return g.nextAddress==1?navigator.permissions?g.yield(navigator.permissions.query({name:"geolocation"}),3):g.jumpTo(2):g.nextAddress!=2?(e=g.yieldResult,g.return(Promise.resolve(e.state==="granted"))):g.return(Promise.resolve(!1))})}}];var EWq=A9e("yt-icon",{callbackProps:["onKeydown"]}),WzD=_.G("kevlar_use_wil_icons")?_.H(function(e){var g=e.icon;var c=e.active;var k=e.className;var I=e.style;var J=e.title;var q=e.size;var L=e.dataSelected;var n=e.dataDisabled;var R=e.role;var W=e.themeOverride;var b=e.animateIcon;var h=e.ariaHidden;var X=e.ariaExpanded;var D=e.ariaLabel;var f=e.tabindex;var l=e.id;var A=e.iconFilter;var d=e.gradientColor;var S=e.onKeydown;var V=function(){var O=g==null?void 0:g(),Jq=null,LC=void 0;O&&(O=tEs(O),
O=J6V(O),O.length&&(Jq=O[1],LC=O[0]));return{iconName:Jq,iconSetName:LC}},Q=function(){return BPB(V().iconName,c==null?void 0:c(),void 0,q==null?void 0:q(),V().iconSetName,_.Ss().resolve(_.SY))},y=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:A==null?void 0:A(),iconColor:d==null?void 0:d()}};
return _.a(_.E,{cond:b,then:function(){return _.a(EWq,{icon:g,active:c,className:k,style:I,title:J,dataSelected:L,dataDisabled:n,role:R,themeOverride:W,ariaHidden:h,ariaExpanded:X,ariaLabel:D,tabindex:f,id:l,iconFilter:A,gradientColor:d,onKeydown:S})},
else:function(){return _.a(_.E,{cond:Q,then:function(O){return _.a("span",{class:_.o6("ytIconWrapperHost",k),role:R,"aria-label":D,"aria-hidden":h,tabindex:function(){return isNaN(Number(f==null?void 0:f()))?void 0:Number(f==null?void 0:f())},
id:l,style:I,title:J,"on:keydown":_.Ve(function(Jq){return void(S==null?void 0:S(Jq))})},_.a(_.J4,{data:O,
options:y}))}})}})},"vg"):EWq;var bYj=function(e){var g=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];ybC();_.BQ("ytglobal.ytUtilActivityCallback_",function(){_.V1(e,"yt-user-activity")});
new Bb(function(){return g.JSC$17591_onMouseMove});
document.addEventListener("scroll",function(){return g.onScroll});
window.addEventListener("resize",function(){return g.onResize})},hLq=function(e,g,c){g in e.eventJobIds||(c=_.nu().addLowPriorityJob(function(){_.Nz();
delete e.eventJobIds[g]},c),e.eventJobIds[g]=c)};
bYj.prototype.onScroll=function(e){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):e.target===document&&hLq(this,"scroll",200)};
bYj.prototype.onResize=function(){hLq(this,"resize",200)};
bYj.prototype.JSC$17591_onMouseMove=function(){hLq(this,"mousemove",100)};
_.sc=function(e){e.scrollEventsToIgnore+=1;e.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){e.scrollEventsToIgnore--},500))};var XAl=function(e){this.element=e;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
XAl.prototype.showFeedbackDialog=function(e,g,c,k){var I=GeX();if(!I)return!1;var J=SDe();J.productId=I;g&&(J.flow="submit",J.report={description:g});c&&(GeX()==="59"?J.callback=_.HV(function(){_.Y2("userFeedbackEvent",{});c()}):J.callback=_.HV(c));
J.bucket=k||_.uo("GOOGLE_FEEDBACK_BUCKET","Other");x5j(J);e=D5z(this,"GFEEDBACK",e);try{_.Vpn(J,e)}catch(q){return _.zr(q),!1}return!0};
XAl.prototype.showHelpDialog=function(e,g,c){var k=this,I=GeX();if(!I)return!1;var J={helpCenterPath:"/youtube",productData:D5z(this,"GUIDED_HELP",c)};x5j(J);var q=SDe();q.context=e||J.productData.context||"default";q.defaultHelpArticleId=g;q.enableSendFeedback=!0;(_.Q0("gapi.load")||function(L,n){return n()})("client",function(){try{var L=FCq(I,J);
if(_.G("web_always_load_chat_support")&&!k.chatSupportLoaded)try{L.JSC$10285_loadChatSupport(q),k.chatSupportLoaded=!0}catch(n){}L.startHelp(q)}catch(n){_.zr(n)}})};
var GeX=function(){var e=_.uo("GOOGLE_FEEDBACK_PRODUCT_ID");e||_.zr(Error("ii"));return e},x5j=function(e){e&&(e.locale=_.G("kevlar_help_use_locale")?_.uo("INNERTUBE_CONTEXT_HL","en"):_.uo("HTML_LANG","en"))},D5z=function(e,g,c){var k=e.productData;
delete k.origin;k.device=_.xp();var I;a:{if(I=document.createElement("canvas")){var J=I.getContext("experimental-webgl",{stencil:!0});if(J){var q=J.getExtension("WEBGL_debug_renderer_info");if(q){I=J.getParameter(q.UNMASKED_RENDERER_WEBGL);break a}}if(J=I.getContext("webgl")){I=J.getParameter(J.RENDERER);break a}}I=null}k.gpu=I;k.isSDC=!!_.uo("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(I=_.uo("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.n0.extend(k,I);_.BTC(g,k);_.NTC(k);(e=_.V1(e.element,"yt-get-autonav-pause-debug-state"))&&
e.length&&(k.autonav_pause_state=e[0]);e=_.kU();k.browser_resolution=e.width+"\u00d7"+e.height+"@"+(window.devicePixelRatio||1)+"x";c&&_.n0.extend(k,c);return k};
XAl.prototype.resetProductData=function(){this.productData={}};var $5j=function(e){this.feedbackManager=new XAl(e)};
$5j.prototype.showFeedbackDialog=function(e,g,c,k){return this.feedbackManager.showFeedbackDialog(e,g,c,k)};
$5j.prototype.showHelpDialog=function(e,g,c){return this.feedbackManager.showHelpDialog(e,g,c)};var YhM=function(){this.baseUrl="";this.aTag=document.createElement("a")},YWn=function(e,g,c){c=c===void 0?{}:c;
c.pbj||(c.pbj=1);c=_.l9U(g,c);e.baseUrl&&c&&!_.oR(c)[1]&&!_.V9(c)&&(g=e.baseUrl,qU(g,"/")&&(g=g.slice(0,-1)),_.wV(c,"/")&&(c=c.slice(1)),c=g+"/"+c);e0(e.aTag,_.Sa(c||""));return e.aTag.href};
YhM.prototype.fetchData=function(e){return _.QpK(e)};
YhM.prototype.postData=function(e,g){var c={method:"POST"};if(g){for(var k=_.w(Object.keys(g)),I=k.next();!I.done;I=k.next()){I=I.value;var J=g[I];_.SK(J)&&(g[I]=JSON.stringify(J))}c.postParams=g}return _.QpK(e,c)};
_.fNI=function(e,g,c,k,I){e=YWn(e,g,c);if(!e)throw k=Error("ji"),Object.assign(k,{params:g}),k;return _.QpK(e,I,k)};
YhM.prototype.requestDataForServiceEndpoint=function(e,g){if(_.x(e,_.t3A))return this.fetchData("/getAccountSwitcherEndpoint");g=g||{};var c=_.x(e,Jzn);c?g.se=c.base64EncodedServiceEndpoint:g.sej=JSON.stringify(e);(c=_.EM())&&_.G("enable_service_ajax_csn")&&(g.csn=c);g.theme=_.Du();_.x(e,ZJU)&&_.uo("DELEGATION_CONTEXT")&&(g.delegation_context=JSON.stringify(_.uo("DELEGATION_CONTEXT")));c=null;for(var k in e)if(qU(k,"Endpoint")||qU(k,"Command")){c=k;break}if(!c){var I=Error("ki");Object.assign(I,{params:e});
_.my8(I,"WARNING");return new _.Il(function(q,L){L(I)})}k={name:c};
var J;(c=(J=_.x(e,_.K_))==null?void 0:J.signal)&&(k.signal=c);(J=_.V0(window.location.href))&&J.internalcountrycode&&(k.internalcountrycode=J.internalcountrycode);J="/service_ajax";_.G("debug_forward_web_query_parameters")&&(J=_.N$C(J,window.location.search));J=_.MO(J,k);e.clickTrackingParams&&_.Ar(J,{itct:e.clickTrackingParams});return this.postData(J,g)};_.fEO=new _.AU("GFEEDBACK_TOKEN");var jPx;var iYq;var Pjz;var m5v;var Oq=function(){var e=_.z.apply(this,arguments)||this;e.compact=!1;e.dismissButtonDisabled=!1;e.shouldRenderReasonAsFormattedString=!_.G("web_player_error_message_reason_as_formatted_string_killswitch");return e};
_.Y(Oq,_.z);Oq.prototype.computeHasIcon_=function(e){return!!e};
Oq.prototype.isSignInIcon_=function(e){return e=="yt-icons:prompted_sign_in"};
Oq.prototype.onDismissButtonClick=function(){var e=this,g=this.data.disableOnClick,c,k=(c=this.data.dismissButton)==null?void 0:c.buttonRenderer;g&&!this.dismissButtonDisabled&&k&&setTimeout(function(){e.dismissButtonDisabled=!0},0)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.RLg.YtConditionalRendererBehavior),_.B("design:type",Object)],Oq.prototype,"ytConditionalRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Oq.prototype,"data",void 0);_.t([_.u({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],Oq.prototype,"icon_",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.B("design:type",Boolean)],Oq.prototype,"hasIcon_",void 0);_.t([_.u({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.B("design:type",Boolean)],Oq.prototype,"signInIcon_",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Oq.prototype,"compact",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Oq.prototype,"dismissButtonDisabled",void 0);
_.t([_.u({type:Boolean}),_.B("design:type",Object)],Oq.prototype,"shouldRenderReasonAsFormattedString",void 0);_.t([_.Wo({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Oq);
_.U(Oq,"yt-player-error-message-renderer",function(){if(m5v===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Pjz===void 0&&(Pjz=document.createElement("template"));var k=Pjz;c.call(g,k.content.cloneNode(!0),e.content.firstChild);m5v=e}e=m5v;return e},{mode:2});var pAg;var Ty7;var MV=function(){return _.z.apply(this,arguments)||this};
_.Y(MV,_.z);MV.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
MV.prototype.computeIcon_=function(e){return e?"yt-icons:"+e.iconType.toLowerCase():"error_outline"};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],MV.prototype,"data",void 0);_.t([_.u({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],MV.prototype,"icon_",void 0);_.t([_.Wo({is:"yt-player-kav-renderer",disableElementRegistration:!0})],MV);
_.U(MV,"yt-player-kav-renderer",function(){if(Ty7===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;pAg===void 0&&(pAg=document.createElement("template"));var k=pAg;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Ty7=e}e=Ty7;return e},{mode:2});var OI6=_.Ti(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.sL(_.H(function(e){var g=_.io("div"),c=_.w(_.Wa(0,void 0,"jxh75d")),k=c.next().value,I=c.next().value;c=_.w(_.Wa(null,void 0,"F5Zm8"));var J=c.next().value,q=c.next().value;_.lo(function(){MeK(g.value,I,q);g.value.scrollIntoView()});
c=C5V.bind(null,e.data,k);_.VV("resize",function(){var L=J();if(k()===1&&L!==null){var n;(n=window.grecaptcha)==null||n.reset(L)}});
return _.a("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.a("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.a("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var L,n;return(L=e.data().accessibility)==null?void 0:(n=L.accessibilityData)==null?void 0:n.label}),_.a(_.fa,{text:c,
className:_.o6("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.a("div",{el:g,class:"ytwPlayerCaptchaViewModelGridItem"})))},"wg"),"yt-player-captcha-view-model",{props:{data:_.TF}});var e0A=!1;_.lED=_.H(function(e){var g=e.data;return _.a("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.a(_.E,{cond:function(){return g().icon},
then:function(c){return _.a("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.a(_.pv,{data:c,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.a(_.E,{cond:function(){return g().title},
then:function(c){return _.a("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.a(_.fa,{text:c}))}}),_.a(_.E,{cond:function(){return g().description},
then:function(c){return _.a("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.a(_.fa,{text:c}))}}),_.a(_.eS,{data:function(){return g().primaryButton}},{buttonViewModel:function(c){return _.a(_.oD,{data:c.data,
className:"interstitialViewModelFlexItem"})}}),_.a(_.eS,{data:function(){return g().secondaryButton}},{buttonViewModel:function(c){return _.a(_.oD,{data:c.data,
className:"interstitialViewModelFlexItem"})}}))},"xg");
_.lED.idomCompat=!0;var A0v=_.H(function(e){var g=e.data;_.Pj();return _.a("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.a("div",{class:"playerInterstitialRendererScrim"},_.a(_.eS,{data:function(){return g().content}},{interstitialViewModel:_.lED})))},"yg");
A0v.idomCompat=!0;_.sL(A0v,"yt-player-interstitial-renderer",{props:{data:_.jx}});var Cc=function(){var e=_.z.apply(this,arguments)||this;e.noBackground=!1;e.compact=!1;e.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return e};
_.Y(Cc,_.z);Cc.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"}}}};
Cc.prototype.onUpdatePlayerErrorMessageCommand_=function(e){if(_.x(e,b8q)){var g;if(e=(g=_.x(e,b8q))==null?void 0:g.newPlayerErrorMessageRenderer)this.data=e}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Cc.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Cc.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Cc.prototype,"status",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Cc.prototype,"noBackground",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Cc.prototype,"compact",void 0);_.t([_.Wo({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Cc);
var sPX=_.oI()(Cc,"yt-playability-error-supported-renderers",function(){if(iYq===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;jPx===void 0&&(jPx=document.createElement("template"));var k=jPx;c.call(g,k.content.cloneNode(!0),e.content.firstChild);iYq=e}e=iYq;return e},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Fzj=A9e("ytd-button-renderer");var gTA=void 0,kaq=void 0;var vTz=new GIn;var V5=new _.AU("ENTITY_STATE_TOKEN"),eO=new _.AU("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var u1j=function(e){this.store=e;this.kce=new _.$zI},yqw=function(e,g,c){var k,I;
if(!(I=((k=g.playabilityStatus)==null?void 0:k.status)!=="OK")){e=e.store;var J;I=g.offlineState&&((J=g.videoDetails)==null?0:J.videoId)?_.G("enable_pl_r_c_cd")?Uwv(e.getState().entities,g.videoDetails.videoId):!!Esz(e.getState().entities,g.videoDetails.videoId):!1}if(I)return!0;I=rnC(g);if(I===1){if(_.G("ab_v_vid_sig")){var q,L=(q=g.videoDetails)==null?void 0:q.videoId;if(!L||!c||L!==c){var n;g=new _.E2("282054944_vid",{yQ1:c,uXj:(n=g.videoDetails)==null?void 0:n.videoId});_.jW(g)}}return!0}mFV=
0;var R,W;n=(L=g.auxiliaryUi)==null?void 0:(R=L.messageRenderers)==null?void 0:(W=R.bkaEnforcementMessageViewModel)==null?void 0:W.displayType;if(I!==3&&(n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;n={reason:_.uB(_.C_("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.G("ks_something_wrong_learn_more")?bDA("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.uB(_.C_("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:_.uB("282054944")};d57(g,{playerErrorMessageRenderer:n});return!1},Ken=function(e,g){if(BRU(g)){_.So(1,!0);
var c=(c=BRU(g))&&_.cnp()?c:void 0;c?(d57(g,{enforcementMessageViewModel:c}),e.kce.increment("IN_PLAYER"),_.So(5)):(e.kce.increment("SKIP_DISPLAY"),_.So(2))}},d57=function(e,g){e.playabilityStatus=Object.assign({},e.playabilityStatus,{status:"ERROR",
errorScreen:g});e.videoDetails=void 0};
u1j.prototype.handleResponse=function(e,g){if(e.playabilityStatus){var c,k,I,J=(g==null?void 0:(c=g.innerTubeRequest)==null?void 0:c.videoId)||(g==null?void 0:(k=g.innerTubeRequest)==null?void 0:(I=k.playerRequest)==null?void 0:I.videoId);yqw(this,e,J)&&Ken(this,e)}};
u1j[y0]=[V5];var NVw=new _.AU("ADBLOCK_DETECTION_SERVICE_TOKEN");var Ah=function(e){this.zEl=e};
Ah.prototype.bindInnertubeChallengeFetcher=function(e){this.zEl.bicf(e)};
Ah.prototype.registerChallengeFetchedCallback=function(e){this.zEl.bcr(e)};
Ah.prototype.getLatestChallengeResponse=function(){return this.zEl.blc()};var zLq;zLq=_.Ti(["https://static.doubleclick.net/instream/ad_status.js"]);_.HYS=_.jw(zLq);var ZYx;_.cr=function(e,g,c){var k=this;this.network=e;this.options=g;this.networkStatusManager=c;this.vV=null;if(g.useBotguardEverywhere){var I=new _.V8;this.vV=I.promise;_.kp.ytAtRC&&_.JC(_.ft,function(){var J,q;return _.r(function(L){if(L.nextAddress==1){if(!_.kp.ytAtRC)return L.return();J=QPO(null);return L.yield(k.gGW(J),2)}q=L.yieldResult;_.kp.ytAtRC&&_.kp.ytAtRC(JSON.stringify(q));_.Uh(L)})});
byz().then(function(J){var q,L,n,R;return _.r(function(W){if(W.nextAddress==1)return J.bindInnertubeChallengeFetcher(function(b){return k.gGW(QPO(b))}),W.yield(YIt(),2);
q=W.yieldResult;L=J.getLatestChallengeResponse();n=L.challenge;if(!n)throw Error("mi");R={challenge:n,dT:TM(n),vm:q,bgChallenge:new mg};I.resolve(R);J.registerChallengeFetchedCallback(function(b){b=b.challenge;if(!b)throw Error("ni");b={challenge:b,dT:TM(b),vm:q,bgChallenge:new mg};k.vV=Promise.resolve(b)});
_.Uh(W)})})}else g.preload&&U5q(this,new Promise(function(J){_.h2(_.ft,function(){J(oWX(k))},0)}))};
ZYx=function(e){var g={preload:!0,useBotguardEverywhere:!0},c=!1;if(typeof g==="boolean")var k={preload:g};else typeof g==="undefined"?k={preload:!0}:(k=g,c=!!g.j9l);g=c?void 0:new _.zI;_.cr.instance=new _.cr(e,k,g);return _.cr.instance};
_.cr.prototype.r8s=function(){var e=this;return _.r(function(g){return g.nextAddress==1?g.yield(Promise.race([e.vV,null]),2):g.return(!!g.yieldResult)})};
_.cr.prototype.sLl=function(e,g,c){var k=this,I,J,q;return _.r(function(L){k.vV===null&&U5q(k,oWX(k));I=!1;J={};q=function(){var n,R,W,b,h;return _.r(function(X){switch(X.nextAddress){case 1:if(!k.options.msG||!k.options.useBotguardEverywhere){X.jumpTo(2);break}return X.yield(Wjz(),3);case 3:return n=X.yieldResult,X.yield((R=n)==null?void 0:R.checkForRefresh(),2);case 2:return X.yield(k.vV,5);case 5:W=X.yieldResult;J.challenge=W.challenge;if(!W.vm){"c1a"in W.dT&&(J.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
X.jumpTo(6);break}b=Object.assign({},{c:W.challenge,e:e},g);_.lj(X,7);I=!0;return X.yield(W.vm.snapshot({zA:b}),9);case 9:(h=X.yieldResult)?J.webResponse=h:J.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.zn(X,6);break;case 7:_.Qb(X),J.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(e==="ENGAGEMENT_TYPE_PLAYBACK"){var D=W.dT,f={};if(D.c6a){var l=Number(_.uo("DCLKSTAT",0));f.reportingStatus=String(Number(D.c)^(isNaN(l)?0:l))}D.c6b&&(f.broadSpectrumDetectionResult=String(Number(D.c)^Number(_.uo("CATSTAT",
0))));J.adblockReporting=f}return X.return(J)}})};
return L.return(Promise.race([q(),V0z(c,function(){var n=Object.assign({},J);I&&(n.error="ATTESTATION_ERROR_VM_TIMEOUT");return n})]))})};
var QPO=function(e){var g={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};e&&(g.interpreterHash=e);return g},oWX=function(e,g){g=g===void 0?0:g;
var c,k,I,J,q,L,n,R,W,b,h,X;return _.r(function(D){switch(D.nextAddress){case 1:c=QPO(Dlu().lOj);if(_.G("att_fet_ks"))return _.lj(D,7),D.yield(e.gGW(c),9);_.lj(D,4);return D.yield(t0O(e,c),6);case 6:q=D.yieldResult;I=q.sul;J=q.pz3;k=q;_.zn(D,3);break;case 4:return _.Qb(D),_.mN(Error("oi`"+g)),Byo(e,864E5),D.return({challenge:"",dT:{},vm:void 0,bgChallenge:void 0});case 9:k=D.yieldResult;if(!k)throw Error("pi");if(!k.challenge)throw Error("qi");I=k.challenge;J=TM(I);if("c1a"in J&&(!k.bgChallenge||
!k.bgChallenge.program))throw Error("ri");_.zn(D,3);break;case 7:L=_.Qb(D);_.mN(L);g++;if(g>=5)return _.mN(Error("oi`"+g)),Byo(e,864E5),D.return({challenge:"",dT:{},vm:void 0,bgChallenge:void 0});n=1E3*Math.pow(2,g-1)+Math.random()*1E3;return D.return(new Promise(function(f){_.h2(_.ft,function(){f(oWX(e,g))},n)}));
case 3:R=ET6(J);Byo(e,R*1E3);W=void 0;if(!("c1a"in J&&k.bgChallenge)){D.jumpTo(10);break}b=R0U(k.bgChallenge);_.lj(D,11);return D.yield(Y2B(Dlu(),b),13);case 13:_.zn(D,12);break;case 11:return h=_.Qb(D),_.mN(h),D.return({challenge:I,dT:J,vm:W,bgChallenge:b});case 12:return _.lj(D,14),W=new _.Yo({challenge:b,noW:{eD:"aGIf"}}),D.yield(W.cQm,16);case 16:_.zn(D,10);break;case 14:X=_.Qb(D),_.mN(X),W=void 0;case 10:return D.return({challenge:I,dT:J,vm:W,bgChallenge:b})}})},Ny0=function(e,g){var c;
return _.r(function(k){if(k.nextAddress==1)return lQ(2),_.lj(k,2),k.yield(e.network.gGW(g),4);if(k.nextAddress!=2)return(c=k.yieldResult)?c.challenge&&!c.bgChallenge?lQ(1):lQ(4):lQ(3),k.return(c);_.Qb(k);lQ(3);return k.return(void 0)})};
_.cr.prototype.gGW=function(e){var g=this,c;return _.r(function(k){c=g.networkStatusManager;if(!c||c.isNetworkAvailable())return k.return(Ny0(g,e));_.h5("att_pna",void 0,"attestation_challenge_fetch");return k.return(new Promise(function(I){c.listenOnce("publicytnetworkstatus-online",function(){Ny0(g,e).then(I)})}))})};
var Shz=function(e){if(!e)throw Error("pi");if(!e.challenge)throw Error("qi");var g=e.challenge,c=TM(g);if("c1a"in c&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("ri");return Object.assign({},e,{sul:g,pz3:c})},t0O=function(e,g){var c,k,I,J,q;
return _.r(function(L){switch(L.nextAddress){case 1:c=void 0,k=0,I={};case 2:if(!(k<5)){L.jumpTo(4);break}if(!(k>0)){L.jumpTo(5);break}I.p24=1E3*Math.pow(2,k-1)+Math.random()*1E3;return L.yield(new Promise(function(n){return function(R){_.h2(_.ft,function(){R(void 0)},n.p24)}}(I)),5);
case 5:return _.lj(L,7),L.yield(e.gGW(g),9);case 9:return J=L.yieldResult,L.return(Shz(J));case 7:c=q=_.Qb(L),q instanceof Error&&_.mN(q);case 8:k++;I={p24:void 0};L.jumpTo(2);break;case 4:throw c;}})},U5q=function(e,g){e.vV=g},y0Q=function(e){var g,c,k;
return _.r(function(I){if(I.nextAddress==1)return I.yield(Promise.race([e.vV,null]),2);g=I.yieldResult;var J=oWX(e);e.vV=J;(c=g)==null||(k=c.vm)==null||k.dispose();_.Uh(I)})},Byo=function(e,g){var c=Date.now()+g,k=function(){var I;
return _.r(function(J){I=c-Date.now();return I<1E3?J.yield(y0Q(e),0):(_.h2(_.ft,k,Math.min(I,6E4)),J.jumpTo(0))})};
k()},V0z=function(e,g){return new Promise(function(c){_.h2(_.ft,function(){c(g())},e)})};var Kzx=function(){};
Kzx.prototype.processContext=function(e){var g=_.cr.instance;if(!g)return _.pP();var c=$7U(e);return c?new mK(g.sLl(c,GaK(e),500).then(function(k){var I;(e==null?0:(I=e.innerTubeRequest)==null?0:I.context)||(e.innerTubeRequest.context={});I=e.innerTubeRequest.context;I.request||(I.request={});I.request.attestationResponseData=k})):_.pP()};var OYv=function(e){this.innertubeTransportService=e};
OYv.prototype.gGW=function(e){_.h5("att_fsr",void 0,"attestation_challenge_fetch");return _.Yq(this.innertubeTransportService,e,_.lm(_.jfv)).then(function(g){_.h5("att_frr",void 0,"attestation_challenge_fetch");return g})};_.M00=function(e){this.innertubeTransportService=e};var CjX=new _.AU("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var evg=function(){},cvQ=function(e,g,c,k,I){var J=_.uo("YPC_MB_URL");
_.q$p(J).then(function(){gaX(J,e,g,c,k,I)})},gaX=function(e,g,c,k,I,J){try{var q=_.Hj.payments.business.integration,L=_.Hj.payments.business.integration.Style.create().withMaterialDesignStyle(),n=q.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.G("enable_window_constrained_buy_flow_dialog")&&(n=n.usingPopupStyle("windowConstrained"));J&&(n=n.usingCloseCallback(J));var R=c?c:_.uo("YPC_GB_LANGUAGE"),W=_.uo("SESSION_INDEX");q.bootstrap.fromPaymentsUrl(e);q.bootstrap.asMashupMode(n).usingGaiaIndex(W).usingLocale(R).usingStyle(L).usingDefaultActivityStatusChangeHandler().inStandaloneContext(q.standaloneContextAuthId.forGaia()).purchaseManager(g,function(b){k&&k(b)}).load(void 0,I)}catch(b){throw I&&I(b),_.jW(b),b;
}};var k67=new _.AU("PURCHASE_MANAGER_TOKEN");var Ibg=function(){var e=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return e.videos},
getContinuationsPresent:function(){return e.continuationsPresent},
setVideos:function(g){e.videos=g},
getRecommendedVideos:function(){return e.recommendedVideos},
setRecommendedVideos:function(g){e.recommendedVideos=g}}};
Ibg.prototype.addVideos=function(e){e&&(this.videos=e.filter(function(g){return!!_.fW8(g)}).map(function(g){var c=_.fW8(g);
a:{var k;if(g.playlistVideoRenderer&&((k=g.playlistVideoRenderer)==null?0:k.voteSortTiebreaker))var I=g.playlistVideoRenderer.voteSortTiebreaker;else{if(_.x(g,FX)){var J;if(k=(I=_.x(g,FX))==null?void 0:(J=I.playlistItemData)==null?void 0:J.voteSortTiebreaker){I=k;break a}}I=""}}return{itemId:c,videoId:_.P48(g),voteCount:_.m7A(g),voteSortTiebreaker:I}}),this.continuationsPresent=!!_.x(e[e.length-1],_.zM))};
var Jvq=function(e,g){return e.videos.findIndex(function(c){return c.itemId===g})},vaX=function(e,g){return e.recommendedVideos.findIndex(function(c){return c.itemId===g})},wcx=function(e){e={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:e}}}}};_.Ss().resolve(_.xk).resolveCommand(e)};var qyv=function(){Ibg.apply(this,arguments)};
_.Y(qyv,Ibg);
var Piw=function(e,g,c,k){if(!e.parentElem)throw Error("wi");var I=Jvq(e,g);I===-1&&(I=vaX(e,g),I=I!==-1?I+e.videos.length:-1);if(I===-1)throw Error("xi");var J=I>=e.videos.length?e.recommendedVideos[I-e.videos.length]:e.videos[I];J.voteCount=c;J.voteSortTiebreaker=Date.now().toString();I>=e.videos.length?e.recommendedVideos.splice(I-e.videos.length,1):e.videos.splice(I,1);var q=e.videos;for(var L=0,n=q.length-1;L<=n;){var R=Math.floor((L+n)/2);if(q[R].voteCount<J.voteCount)n=R-1;else if(q[R].voteCount>J.voteCount)L=
R+1;else{a:{var W=J.voteSortTiebreaker;var b=q[R].voteSortTiebreaker;if(W.length!==b.length)W=W.length>b.length;else{for(var h=0;h<W.length;h++){var X=W.charCodeAt(h),D=b.charCodeAt(h);if(X>D){W=!0;break a}if(X<D)break}W=!1}}W?n=R-1:L=R+1}}q=L;if(q===-1)throw Error("yi");e.videos.splice(q,0,J);I!==q&&L6l(e,I,q,g,c,k)},L6l=function(e,g,c,k,I,J){var q,L=(q=e.parentElem)==null?void 0:q.children,n=Math.min(g,c),R=Math.max(g,c);
if(L)for(q=n;q<=R;q++)L[q].style.viewTransitionName="item-"+String(q);document.startViewTransition(function(){if(e.parentElem){var W=e.parentElem.children;if(!(!W||g<0||g>=W.length||c<0||c>=W.length)){var b=W[g];if(b){b.remove();e.showRefreshPill=c>=e.videos.length-1&&e.continuationsPresent;if(!e.showRefreshPill){W=W[c]||null;var h;(h=e.parentElem)==null||h.insertBefore(b,W)}_.oC(e.parentElem,"yt-update-video-data-voting-animation",{toIdx:c,itemId:k,newVoteCount:I,voteStatus:J,hideItem:e.showRefreshPill})}}}}).finished.then(function(){if(L)for(var W=
n;W<=R;W++)L[W].style.viewTransitionName="";
if(e.showRefreshPill)wcx(_.C_("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var b;if(b=W=(b=e.parentElem)==null?void 0:b.children[c])b=W.getBoundingClientRect(),W=b.bottom,b=!(b.top>=0&&W<=e.clientHeight);b&&(b=_.e4(g>c?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(g-c)),wcx(b))}})};var nav=function(e,g){var c=this;e?this.innertubeTransportServicePromise=Promise.resolve(e):g&&(this.innertubeTransportServicePromise=g(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Hx(3E3,function(k){return rvQ(c,k)},0);
this.validateMiniAppVideoIdRateLimiter=new Hx(3E3,function(k){return abO(c,k)},1)},ZmQ=function(e,g){e.JSC$17708_miniAppId=g;
e.reportMiniAppValueRateLimiter=new Hx(3E3,function(c){return rvQ(e,c)},0);
e.validateMiniAppVideoIdRateLimiter=new Hx(3E3,function(c){return abO(e,c)},1)},tax=function(e,g){var c;
return _.r(function(k){if(k.nextAddress==1)return k.yield(e.reportMiniAppValueRateLimiter.call(g),2);c=k.yieldResult;return k.return([c,g])})},rvQ=function(e,g){var c,k,I,J,q,L,n;
return _.r(function(R){switch(R.nextAddress){case 1:return R.yield(e.innertubeTransportServicePromise,2);case 2:return c=R.yieldResult,k=_.lm(lIq),I=Date.now(),J={externalPostId:e.JSC$17708_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(I/1E3),nanos:Math.round(I%1E3*1E6)},intValue:""+g}},_.lj(R,3),R.yield(_.Yq(c,J,k),5);case 5:q=R.yieldResult;_.zn(R,4);break;case 3:throw L=_.Qb(R),L;case 4:if(q){if("error"in q&&q.error)throw q.error;if(q.errorMetadata)throw Error("zi`"+
q.errorMetadata.status);if(n=q.userStatResult)return R.return(n);throw Error("Ai");}throw Error("Bi");}})},NrQ=function(e){var g,c,k,I,J;
_.r(function(q){switch(q.nextAddress){case 1:return q.yield(e.innertubeTransportServicePromise,2);case 2:return g=q.yieldResult,c=_.lm(lIq),k={externalPostId:e.JSC$17708_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.lj(q,3),q.yield(_.Yq(g,k,c),5);case 5:I=q.yieldResult;_.zn(q,4);break;case 3:throw J=_.Qb(q),J;case 4:if(I==null)throw Error("Bi");if("error"in I&&I.error)throw I.error;if(I.errorMetadata)throw Error("zi`"+I.errorMetadata.status);_.Uh(q)}})};
nav.prototype.flush=function(){var e=this;return _.r(function(g){return g.nextAddress==1?g.yield(e.reportMiniAppValueRateLimiter.flush(),2):g.yield(e.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var BrQ=function(e,g){return _.r(function(c){return c.nextAddress==1?c.yield(e.validateMiniAppVideoIdRateLimiter.call(g),2):c.return(c.yieldResult)})},abO=function(e,g){var c,k,I,J,q,L;
return _.r(function(n){switch(n.nextAddress){case 1:return n.yield(e.innertubeTransportServicePromise,2);case 2:return c=n.yieldResult,k=_.lm(YPY),I={videoId:g},_.lj(n,3),n.yield(_.Yq(c,I,k),5);case 5:J=n.yieldResult;_.zn(n,4);break;case 3:throw q=_.Qb(n),q;case 4:if(J){if("error"in J&&J.error)throw J.error;if(J.errorMetadata)throw Error("zi`"+J.errorMetadata.status);if(L=J.playabilityStatus)return n.return(L.status);throw Error("Ci");}throw Error("Bi");}})};
nav[y0]=[_.NN(_.kv),_.NN(Jxq)];var Rvq=function(){this.clientData=new Map};
Rvq.prototype.getData=function(e){return this.clientData.get(e)};var Eag=function(e){this.store=e};
Eag.prototype.handleResponse=function(e){(e=_.x(e.frameworkUpdates,PO))&&_.Mc(e,this.store)};
Eag[y0]=[_.EO];var W6g=new _.AU("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var brl,hvj,Xcl;_.kh=new _.AU("FLOW_STATE_MANAGER_TOKEN");brl=function(){this.flowStates=new Map};
hvj=function(e,g){e=_.w(e.flowStates.values());for(var c=e.next();!c.done;c=e.next())if(c=c.value,c.flowRenderer.targetId===g)return c};
Xcl=function(e,g){var c,k=((c=e.flowRenderer.steps)!=null?c:[]).filter(function(I){return!g.includes(_.x(I,_.vU).stepId)});
e.flowRenderer.steps=k};var G6X=function(e){this.JSC$17732_flowStateManager=e};
_.Y(G6X,jd);G6X.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L;return _.r(function(n){c=_.x(e,lPn);I=(k=c)==null?void 0:k.stepIds;q=(J=c)==null?void 0:J.targetId;if(!I||!q)return n.return();L=hvj(g.JSC$17732_flowStateManager,q);if(!L)return n.return();Xcl(L,I);_.Uh(n)})};
var Ic=function(){G6X.apply(this,arguments)};
_.Y(Ic,G6X);Ic[y0]=[_.kh];var xOo=function(e,g){this.JSC$17738_reduxStore=e;this.JSC$17738_flowStateManager=g};
_.Y(xOo,jd);
xOo.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n,R,W,b,h,X,D;return _.r(function(f){c=_.x(e,_.Acw);k=c.stepId;I=c.targetId;J=hvj(g.JSC$17738_flowStateManager,I);L=(q=J)==null?void 0:q.flowRenderer;n=L.flowStateEntityKey;R=_.uQ(g.JSC$17738_reduxStore.getState(),n);if(!R)return f.return();W=R.currentStepId;X=(h=(b=R)==null?void 0:b.stepIdStack)!=null?h:[];D=W===X[X.length-1]?k:W;g.JSC$17738_reduxStore.dispatch(_.ET("flowStateEntity",n,{currentStepId:k,stepIdStack:[D]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.Uh(f)})};
var J9=function(){xOo.apply(this,arguments)};
_.Y(J9,xOo);J9[y0]=[_.EO,_.kh];var DOM=function(e,g,c){this.JSC$17745_reduxStore=e;this.JSC$17745_flowStateManager=g;this.JSC$17745_commandHandler=c};
_.Y(DOM,jd);
DOM.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R,W,b,h,X,D,f;return _.r(function(l){k=_.x(e,_.sMI);I=k.targetId;J=hvj(c.JSC$17745_flowStateManager,I);L=(q=J)==null?void 0:q.flowRenderer;n=L.flowStateEntityKey;R=_.uQ(c.JSC$17745_reduxStore.getState(),n);h=[].concat(_.KY((b=(W=R)==null?void 0:W.stepIdStack)!=null?b:[]));X=h.pop();((D=R)==null?void 0:D.currentStepId)===X&&(X=h[h.length-1]);if(!X)return(f=k.onFirstStepCommand)&&c.JSC$17745_commandHandler.resolveCommand(f,g),l.return();
c.JSC$17745_reduxStore.dispatch(_.ET("flowStateEntity",n,{currentStepId:X,stepIdStack:h}));_.Uh(l)})};
var vr=function(){DOM.apply(this,arguments)};
_.Y(vr,DOM);vr[y0]=[_.EO,_.kh,_.xk];var $Oq=function(e,g){this.innertubeTransportService=e;this.JSC$17750_commandHandler=g};
_.Y($Oq,jd);$Oq.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L;return _.r(function(n){if(n.nextAddress==1){k=_.x(e,FWw);if(!k)return n.return();_.lj(n,2);return n.yield(_.jt(c.innertubeTransportService,e),4)}if(n.nextAddress!=2){I=n.yieldResult;if(!I)return n.return();(J=I.updateFlowCommand)&&c.JSC$17750_commandHandler.resolveCommand(J,g);return _.zn(n,0)}_.Qb(n);(L=(q=k)==null?void 0:q.onFailureCommand)&&c.JSC$17750_commandHandler.resolveCommand(L,g);_.Uh(n)})};
var wc=function(){$Oq.apply(this,arguments)};
_.Y(wc,$Oq);wc[y0]=[_.kv,_.xk];var YyM=function(e,g){this.JSC$17756_flowStateManager=e;this.JSC$17756_commandHandler=g};
_.Y(YyM,jd);
YyM.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q;return _.r(function(L){k=_.x(e,_.dxq);I=k.targetId;J=hvj(c.JSC$17756_flowStateManager,I);if(!J)return L.return(Promise.resolve());var n=J,R=(q=k.steps)!=null?q:[],W,b=(W=n.flowRenderer.steps)!=null?W:[];R=[].concat(_.KY(b),_.KY(R));n.flowRenderer.steps=R;k.flowContinuationCommand&&(J.flowRenderer.flowContinuationCommand=k.flowContinuationCommand);k.entityUpdateCommand&&c.JSC$17756_commandHandler.resolveCommand(k.entityUpdateCommand,g);
return L.return(Promise.resolve())})};
var qP=function(){YyM.apply(this,arguments)};
_.Y(qP,YyM);qP[y0]=[_.kh,_.xk];var fb7={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],android_messenger:[[0,1,192]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,
1,24]],countdown_to_close:[[0,1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,
1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var jRq=new _.AU("ICON_SET_TOKEN"),irz=new _.AU("ICON_URL_PROVIDER_TOKEN"),P1S=new _.AU("PREFETCH_ICONS_TOKEN"),mOg=new _.AU("ICON_MAP_FN_TOKEN");var LH={},pcj=(LH.ACCESS_TIME="clock",LH.ACCOUNT_BOX=_.uo("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",LH.ACCOUNT_BOX_CAIRO="person_account_cairo",LH.ACCOUNT_CIRCLE="person_circle",LH.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",LH.ACCOUNT_LINKED="account_link_success",LH.ACCOUNT_UNLINKED="account_link",LH.ADD_FRIEND="people",LH.ADD_MODERATOR="shield_add",LH.ADD_TO_LIBRARY="bookmark",LH.ADD_TO_PLAYLIST="add",LH.ADD_TO_QUEUE_TAIL="list_queue",LH.ADD_TO_REMOTE_QUEUE="list_music",
LH.ADD_TO_WATCH_LATER="clock",LH.ADD_VIDEO_LINK="film_strip_add",LH.ALERT_WARN_RED="alert_triangle",LH.ARROW_BACK="arrow_left",LH.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",LH.ARROW_DROP_DOWN="chevron_down",LH.ARROW_DROP_UP="chevron_up",LH.ARROW_FORWARD="arrow_right",LH.ARTIST="person_music",LH.AUDIOTRACK="audio",LH.AUTO_AWESOME="sparkle",LH.AVATAR_ANONYMOUS="person_circle",LH.AVATAR_LOGGED_OUT="person_circle",LH.BACK="arrow_left",LH.BAR_CHART="bar_graph",LH.BLOCK="slash_circle_left",
LH.BLOCK_USER="slash_circle_left",LH.BOOKMARK_BORDER="bookmark",LH.BREAKING_NEWS_ALT_1="article_alert",LH.BROADCAST_CAIRO="podcast_cairo",LH.BUG_REPORT="bug",LH.CAMERA_ALT="camera",LH.CAMPAIGN="megaphone",LH.CANCEL="x_circle",LH.CAPTIONS="closed_caption",LH.CAST_OUTLINE="chromecast",LH.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",LH.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",LH.CHAT="message_bubble_left",LH.CHAT_BUBBLE="message_bubble_empty",LH.CHAT_SPARK="spark_message_bubble_left",LH.CHECK_BOX_OUTLINE_BLANK=
"box_empty",LH.CHECK_CIRCLE_OUTLINE="check_circle",LH.CHECK_CIRCLE_THICK="check_circle",LH.CLARIFY="article_clarify",LH.CLOSED_CAPTION_SELECTED="closed_caption",LH.CLOSE="x_mark",LH.CLOUD_UPLOAD="cloud_arrow_up",LH.COLLAPSE="chevron_up",LH.COLLAPSE_CAIRO="chevron_up_cairo",LH.COLLECTION="layers",LH.COLOR_LENS="palette",LH.COMMENT="message_bubble_right",LH.CONSENT_SHIELD="person_shield",LH.CONTENT_CUT="scissors",LH.CONTENT_CUT_CAIRO="scissors_cairo",LH.COURSE=_.G("web_enable_course_icon_update")?"creator_academy":
"lightbulb",LH.COURSE_CAIRO=_.G("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",LH.CREATION_LIVE="radar_live",LH.CREATION_POST="box_pencil",LH.CREATION_UPLOAD="my_videos",LH.CREATION_UPLOAD_RED="upload",LH.CREATOR_METADATA_MONETIZATION="dollar_sign",LH.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",LH.CREATOR_STUDIO="youtube_studio",LH.DASHBOARD="grid_asymmetrical",LH.DELETE="trash_can",LH.DELETE_SWEEP="trash_can",LH.DESKTOP="laptop",LH.DISLIKE="thumb_down",LH.DISLIKE_SELECTED=
"thumb_down",LH.DISMISSAL="x_mark",LH.DISMISS_QUEUE="list_remove",LH.DONE_ALL="check_double",LH.DOWN_ARROW="arrow_down",LH.DO_NOT_DISTURB="slash_circle_left",LH.DRAFT="paper_corner_folded",LH.DRAG_HANDLE="bars_2",LH.EDIT="pencil",LH.EMOJI="face_very_happy",LH.EMOJI_FLAGS="flag",LH.EMOJI_OBJECTS="lightbulb",LH.EMOJI_PEOPLE="face_very_happy",LH.EMOJI_RECENT="clock",LH.EMPTY_HEART="heart",LH.EMPTY_LIKE="thumb_up",LH.ERROR_BLACK="alert_circle",LH.ERROR_OUTLINE="alert_circle",LH.EXIT_APP="arrow_in",LH.EXIT_TO_APP=
"arrow_in",LH.EXPAND="chevron_down",LH.EXPAND_ALL="chevron_expand",LH.EXPAND_CAIRO="chevron_down_cairo",LH.EXPAND_LESS="chevron_up",LH.EXPAND_MORE="chevron_down",LH.EXPLORE="compass",LH.EXPLORE_DESTINATION="compass",LH.EXTERNAL_LINK="open_new",LH.FAB_UPLOAD="upload",LH.FACE_HAPPY_OUTLINE="face_happy",LH.FACT_CHECK="article_check",LH.FASHION_LOGO="fashion",LH.FASHION_LOGO_CAIRO="fashion_cairo",LH.FAVORITE="heart",LH.FEEDBACK="message_bubble_alert",LH.FEEDBACK_CAIRO="message_bubble_alert_cairo",LH.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",LH.FILL_ARROW_SOLID_UP_16="arrow_solid_up",LH.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",LH.FILTER="menu_filter",LH.FIRST_PAGE="chevron_first",LH.FLAG="flag",LH.FULL_HEART="heart",LH.GAME_CONSOLE_DPAD="game_console_dpad",LH.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",LH.GAMING_LOGO="gaming",LH.GAMING_LOGO_CAIRO="gaming_cairo",LH.GO_TO_PAGE="arrow_right",LH.GROUPS="people_group",LH.HAPPY="face_happy",LH.HEALTH_AND_SAFETY="shield_plus",LH.HELP="question_circle",LH.HELP_CAIRO=
"question_circle_cairo",LH.HELP_OUTLINE="question_circle",LH.HIDE="slash_circle_left",LH.IMAGE="image",LH.INFINITY_ICON="infinity",LH.INFO="info_circle",LH.INFO_OUTLINE="info_circle",LH.INSERT_CHART="bar_graph_box_vertical",LH.INSERT_CHART_OUTLINED="bar_graph_box_vertical",LH.INSERT_PHOTO="image",LH.KEEP="pin",LH.KEEP_OFF="pin_off",LH.KEYBOARD="keyboard",LH.KEYBOARD_ARROW_DOWN="chevron_down",LH.KEYBOARD_ARROW_UP="chevron_up",LH.KIDS_BLOCK="slash_circle_left",LH.LANGUAGE="globe",LH.LAST_PAGE="chevron_last",
LH.LAUNCH="open_new",LH.LEARNING="lightbulb",LH.LEARNING_CAIRO="lightbulb_cairo",LH.LIBRARY_ADD=An6("library_add"),LH.LIBRARY_OUTLINE="library",LH.LIBRARY_REMOVE=An6(),LH.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",LH.LIKES_PLAYLIST="thumb_up",LH.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",LH.LIKE="thumb_up",LH.LIKE_SELECTED="thumb_up",LH.LIVE="radar_live",LH.LIVE_CAIRO="radar_live_cairo",LH.LIVE_UNLISTED="link",LH.LOCATION_ON="location_point",LH.LOCATION_PIN="location_point",LH.LOOP="arrow_repeat",LH.LOOP_ACTIVE=
"arrow_repeat",LH.LOOP_ONE="arrow_repeat_1",LH.LOOP_ONE_ACTIVE="arrow_repeat_1",LH.MEH="face_meh",LH.MEMBERS_ONLY_MODE_OFF="message_bubble_left",LH.MESSAGE="message_bubble_left",LH.MICROPHONE_ON="mic",LH.MIX="youtube_mix",LH.MONETIZATION_ON="dollar_sign_circle",LH.MONEY_FILL="dollar_sign_container",LH.MONEY_FILL_JPY="yen_sign_container",LH.MONEY_HEART="dollar_sign_heart",LH.MORE_HORIZ="overflow_horizontal",LH.MORE_VERT="overflow_vertical",LH.MUSIC="audio",LH.MUSIC_CAIRO="audio_cairo",LH.MUSIC_NOTE_SYMBOL=
"music",LH.MUSIC_SHUFFLE="arrow_shuffle",LH.MY_CHANNEL="person_circle",LH.MY_LOCATION="location_point",LH.NEWS_STORY="news",LH.NEXT="chevron_right",LH.NOTIFICATIONS="bell",LH.NOTIFICATIONS_ACTIVE="bell_on",LH.NOTIFICATIONS_CAIRO="bell_cairo",LH.NOTIFICATIONS_DONE_CHECKMARK="check",LH.NOTIFICATIONS_INBOX="bell",LH.NOTIFICATIONS_NONE="bell",LH.NOTIFICATIONS_OFF="bell_off",LH.NOT_INTERESTED="slash_circle_left",LH.OFFICIAL_ARTIST_BADGE="audio",LH.OFFLINE_CLOUD="cloud_off",LH.OFFLINE_DOWNLOAD="download",
LH.OFFLINE_DOWNLOAD_CAIRO="download_cairo",LH.OFFLINE_PAUSE="pause",LH.OPEN_IN_NEW="open_new",LH.OUTLINE_ADJUST="adjust",LH.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",LH.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",LH.OUTLINE_BAG="bag",LH.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",LH.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",LH.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",LH.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",LH.PAID="dollar_sign",LH.PAUSE_OUTLINED="pause",LH.PAYMENT=
"credit_card",LH.PERSON_RADAR_FILLED="person_radar",LH.PHONE_DOWNLOAD="mobile_download",LH.PLAYABLES_LOGO="tic_tac_toe",LH.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",LH.PLAYLISTS="list_play_arrow",LH.PLAYLISTS_CAIRO="list_play_arrow_cairo",LH.PLAYLIST_ADD=An6("list_add"),LH.PLAYLIST_ADD_CHECK=An6("list_check"),LH.PLAYLIST_PLAY="list_play_arrow",LH.PLAY_ALL="play_arrow",LH.PLAY_CIRCLE="play_arrow_circle",LH.PLAY_OUTLINED="play_arrow_circle",LH.PRIVACY_INFO="shield",LH.PRIVACY_PRIVATE="lock",LH.PRIVACY_PUBLIC=
"earth",LH.PRIVACY_UNLISTED="link",LH.PROMOTE="megaphone",LH.PURCHASES="price_tag",LH.PURCHASE_SUPER_CHAT="super_chat",LH.PURCHASE_SUPER_STICKER="super_sticker",LH.QUESTION_ANSWER="message_bubble_question",LH.QUEUE_PLAY_LAST="list_queue_last",LH.QUEUE_PLAY_NEXT="list_play_arrow",LH.REMIX_FILLED="youtube_shorts_remix",LH.REMOVE="bar_circle",LH.REMOVE_CIRCLE="bar_circle",LH.REMOVE_CIRCLE_OUTLINE="bar_circle",LH.REMOVE_DONE="check_double_off",LH.REMOVE_FROM_HISTORY="bar_circle",LH.REMOVE_FROM_PLAYLIST=
"bar_circle",LH.REMOVE_MODERATOR="shield_off",LH.REPLAY="arrow_circle",LH.REPLAY_10="skip_back_10",LH.REPORT_PROBLEM="alert_triangle",LH.SAD="face_sad",LH.SAVE_PLAYLIST="bookmark",LH.SCHEDULE="clock",LH.SCHOOL="creator_academy",LH.SCREEN_FULLSCREEN="screen_full",LH.SEARCH_HISTORY="arrow_time",LH.SELL="price_tag",LH.SETTINGS="gear",LH.SETTINGS_CAIRO="gear_cairo",LH.SETTINGS_LIGHT="gear",LH.SETTINGS_MATERIAL="gear",LH.SHARE_ARROW="share",LH.SHIELD_WITH_AVATAR="person_shield",LH.SHOPPING_BAG="bag",LH.SHOPPING_BAG_CAIRO=
"bag_cairo",LH.SHOPPING_CART="cart",LH.SHORTS_COMMENT="youtube_shorts_message_bubble_right",LH.SHORTS_DISLIKE="youtube_shorts_thumb_down",LH.SHORTS_LIKE="youtube_shorts_thumb_up",LH.SHORTS_SHARE="youtube_shorts_share",LH.SHUFFLE="arrow_shuffle",LH.SLOW_MODE_OFF="message_bubble_left",LH.SOCIAL="people",LH.SORT="menu_sort",LH.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",LH.SPEED_1X="1x",LH.SPEED_1_POINT_2X="1_point_2x",LH.SPEED_1_POINT_5X="1_point_5x",LH.SPEED_1_POINT_8X="1_point_8x",LH.SPEED_2X="2x",
LH.SPEED_POINT_2X="point_2x",LH.SPEED_POINT_8X="point_8x",LH.SPONSORSHIP_STAR="star_circle",LH.STAFF_PICK="spotlight",LH.START_DVR="add",LH.STAR_BORDER="star",LH.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",LH.STICKER_EMOTICON="face_happy",LH.STOP_DVR="stop",LH.SUBSCRIBE="youtube_logo_icon",LH.SUBSCRIBE_PLUS="add_cairo",LH.SUBSCRIPTION_MANAGER="gear",LH.SUPERVISOR_ACCOUNT="people",LH.SUPER_CHAT_FOR_GOOD="hands_heart",LH.SWAP_HORIZ="arrow_swap_horizontal",LH.SWITCH_ACCOUNTS="person_account",LH.TAB_ACCOUNT=
"person",LH.TAB_ACTIVITY="bell",LH.TAB_BOOKMARK="bookmark",LH.TAB_EXPLORE="compass",LH.TAB_HOME="home",LH.TAB_HOME_CAIRO="home_cairo",LH.TAB_INBOX="mail",LH.TAB_LIKED="thumb_up",LH.TAB_MUSIC_PREMIUM="youtube_music",LH.TAB_SHORTS="youtube_shorts",LH.TAB_SHORTS_CAIRO="youtube_shorts_cairo",LH.TAB_SUBSCRIPTIONS="subscriptions",LH.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",LH.TAB_TRENDING="fire",LH.TIMER="stopwatch",LH.TRAILER="youtube_originals",LH.TRENDING="fire",LH.TRENDING_CAIRO="fire_cairo",LH.TRENDING_DOWN=
"rating_down",LH.TRENDING_UP="rating_up",LH.TROPHY="trophy",LH.TROPHY_CELEBRATIONS="fireworks",LH.TUNE="adjust",LH.UNBLOCK_USER="bar_circle",LH.UNLIMITED="youtube_logo_icon",LH.UNPLUGGED_LIVE_GUIDE="radar_live",LH.UNPLUGGED_SPORTS="eye_off",LH.UPLOADS="library",LH.UP_ARROW="arrow_up",LH.VERTICAL_ALIGN_BOTTOM="download",LH.VERY_HAPPY="face_very_happy",LH.VERY_SAD="face_very_sad",LH.VIDEOGAME_ASSET="gaming",LH.VIDEOS="play_arrow_circle",LH.VIDEO_CALL="video_camera_add",LH.VIDEO_LIBRARY_WHITE="library",
LH.VIDEO_YOUTUBE="youtube_logo_icon",LH.VIEW_LIST="list_view",LH.VIEW_LIST_CAIRO="list_view_cairo",LH.VISIBILITY="eye",LH.VISIBILITY_OFF="eye_off",LH.VOLUME_MUTE="volume_off",LH.VOLUME_UP="volume_on",LH.WALLPAPER="image",LH.WARNING="alert_triangle",LH.WATCH_HISTORY="arrow_time",LH.WATCH_HISTORY_CAIRO="arrow_time_cairo",LH.WATCH_LATER="clock",LH.WATCH_LATER_CAIRO="clock_cairo",LH.WATCH_RELATED_MIX="youtube_mix",LH.WHAT_TO_WATCH="home",LH.YOUTUBE_MUSIC_MONOCHROME="youtube_music",LH.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",LH.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",LH.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",LH.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",LH.YT_OUTLINE_MUSIC_24="music",LH);var rc={},TJD=(rc.ACCESS_TIME="clock",rc.ACCOUNT_BOX="person_square",rc.ACCOUNT_BOX_CAIRO="person_square",rc.ACCOUNT_CIRCLE="person_circle",rc.ACCOUNT_CIRCLE_CAIRO="person_circle",rc.ACCOUNT_LINKED="account_link",rc.ACCOUNT_UNLINKED="account_link",rc.ADD_CIRCLE="add_circle",rc.ADD_CIRCLE_OUTLINE="add_circle",rc.ADD_FRIEND="person_child",rc.ADD_MODERATOR="shield_add",rc.ADD_TO_LIBRARY="bookmark",rc.ADD_TO_PLAYLIST="add",rc.ADD_TO_QUEUE_TAIL="queue",rc.ADD_TO_REMOTE_QUEUE="playlist_audio",rc.ADD_TO_WATCH_LATER=
"clock",rc.ADD_VIDEO_LINK="film_strip_add",rc.ADMIN_PANEL_SETTINGS="person_gear",rc.ALERT_WARN_RED="alert_triangle",rc.ALIGN_LEFT="text_align_left",rc.ARROWS_ALERT="arrow_split_alert",rc.ARROW_BACK="arrow_left",rc.ARROW_CIRCLE="arrow_counterclockwise",rc.ARROW_CIRCLE_PLAY="replay",rc.ARROW_CIRCLE_RIGHT="arrow_clockwise",rc.ARROW_DIAGONAL="arrow_up_left",rc.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",rc.ARROW_DROP_DOWN="triangle_down",rc.ARROW_DROP_UP="triangle_up",rc.ARROW_FORWARD="arrow_right",rc.ARROW_PAUSE=
"pause_history",rc.ARROW_UNDO="undo",rc.ARTICLE="text_page",rc.ARTICLE_ALERT="text_page_alert",rc.ARTICLE_CHECK="text_page_check",rc.ARTICLE_CLARIFY="text_page_info",rc.ARTIST="person_audio",rc.AUDIOTRACK="audio",rc.AUDIO_BADGE="audio_badge",rc.AUDIO_SURROUND="surround_sound",rc.AUTO_AWESOME="sparkles",rc.AVATAR_ANONYMOUS="person_circle",rc.AVATAR_LOGGED_OUT="person_circle",rc.BACK="arrow_left",rc.BAR_CHART="chart_bar",rc.BAR_CIRCLE="minus_circle",rc.BAR_HORIZONTAL="minus",rc.BLOCK="circle_slash",
rc.BLOCK_USER="circle_slash",rc.BOOKMARK_BORDER="bookmark",rc.BOX_OPEN_CHECK="quiz",rc.BOX_PENCIL="square_pencil",rc.BOX_STACK_3="square3_stack",rc.BREAKING_NEWS_ALT_1="text_page_alert",rc.BROADCAST="podcast",rc.BROADCAST_CAIRO="podcast",rc.BUG_REPORT="bug",rc.CAMERA_ALT="camera",rc.CAMPAIGN="megaphone",rc.CANCEL="x_circle",rc.CAPTIONS="closed_captions",rc.CAST_ICON="chromecast",rc.CAST_OUTLINE="chromecast",rc.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",rc.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
rc.CHAT="text_bubble",rc.CHAT_BUBBLE="bubble",rc.CHECK_BOX="check_square",rc.CHECK_BOX_OUTLINE_BLANK="square",rc.CHECK_CIRCLE_FILLED="check_circle",rc.CHECK_CIRCLE_OUTLINE="check_circle",rc.CHECK_CIRCLE_THICK="check_circle",rc.CHECK_DOUBLE="check_done",rc.CHECK_DOUBLE_OFF="check_done_slash",rc.CHEVRON_LEFT="chevron_left",rc.CHEVRON_RIGHT="chevron_right",rc.CHEVRON_RIGHT_CAIRO="chevron_right",rc.CIRCLES_OVERLAP="account_link",rc.CLAPPERBOARD_CAIRO="clapperboard",rc.CLARIFY="text_page_info",rc.CLOCK_ARROWS=
"clock_split",rc.CLOCK_ARROWS_ALERT="clock_split_alert",rc.CLOSED_CAPTION="closed_captions",rc.CLOSED_CAPTION_SELECTED="closed_captions",rc.CLOSE="x",rc.CLOUD_UPLOAD="cloud_arrow_up",rc.COLLAPSE="chevron_up",rc.COLLAPSE_CAIRO="chevron_up",rc.COLLECTION="square3d_stack",rc.COLOR_LENS="paint_palette",rc.COMMENT="text_bubble",rc.CONSENT_SHIELD="person_shield",rc.CONTENT_CUT="scissors",rc.CONTENT_CUT_CAIRO="scissors",rc.COURSE="graduation_cap",rc.COURSE_CAIRO="graduation_cap",rc.CREATION_LIVE="live",
rc.CREATION_POST="square_pencil",rc.CREATION_UPLOAD="video",rc.CREATION_UPLOAD_RED="upload",rc.CREATOR_ACADEMY="graduation_cap",rc.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",rc.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",rc.CREATOR_STUDIO="youtube_studio",rc.DARK_THEME="theme",rc.DELETE="trash_can",rc.DELETE_SWEEP="trash_can",rc.DESKTOP="laptop",rc.DISLIKE="thumb_down",rc.DISLIKE_SELECTED="thumb_down",rc.DISMISSAL="x",rc.DISMISS_QUEUE="playlist_x",rc.DOGFOOD="pawprint",rc.DOLLAR_SIGN=
"dollar_sign_circle",rc.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",rc.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",rc.DOWN_ARROW="arrow_down",rc.DO_NOT_DISTURB="circle_slash",rc.DRAFT="document",rc.DRAG_HANDLE="equal",rc.EARTH="globe",rc.EDIT="pencil",rc.EMOJI="face_very_happy",rc.EMOJI_FLAGS="flag",rc.EMOJI_OBJECTS="lightbulb",rc.EMOJI_PEOPLE="face_very_happy",rc.EMOJI_RECENT="clock",rc.EMPTY_HEART="heart",rc.EMPTY_LIKE="thumb_up",rc.ERROR_BLACK="alert_circle",rc.ERROR_OUTLINE="alert_circle",rc.ERROR_WHITE=
"alert_circle",rc.EXIT_APP="arrow_in",rc.EXIT_TO_APP="arrow_in",rc.EXPAND="chevron_down",rc.EXPAND_ALL="chevron_expand",rc.EXPAND_CAIRO="chevron_down",rc.EXPAND_LESS="chevron_up",rc.EXPAND_MORE="chevron_down",rc.EXPLORE="compass",rc.EXPLORE_DESTINATION="compass",rc.EXTERNAL_LINK="arrow_up_right",rc.EYE_OFF="eye_slash",rc.FAB_UPLOAD="upload",rc.FACE_HAPPY_OUTLINE="face_happy",rc.FACE_MEH="face_neutral",rc.FACT_CHECK="text_page_check",rc.FASHION_LOGO="fashion",rc.FASHION_LOGO_CAIRO="fashion",rc.FAVORITE=
"thumb_up",rc.FEEDBACK="alert_bubble",rc.FEEDBACK_CAIRO="alert_bubble",rc.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",rc.FILL_ARROW_SOLID_UP_16="arrow_solid_up",rc.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",rc.FIRST_PAGE="chevron_left_end",rc.FLAG_CAIRO="flag",rc.FLASH_OFF="flash_slash",rc.FLASH_ON="flash",rc.FULL_HEART="heart",rc.GAMING_LOGO="gaming",rc.GAMING_LOGO_CAIRO="gaming",rc.GO_TO_PAGE="arrow_right",rc.GRID_ASYMMETRICAL="dashboard",rc.GROUPS="person3",rc.HAND_SWIPE_LEFT="gesture_swipe_left",
rc.HAND_SWIPE_RIGHT="gesture_swipe_right",rc.HAPPY="face_happy",rc.HEALTH_AND_SAFETY="shield_health",rc.HEART_BOX="heart_cube",rc.HELP="help_circle",rc.HELP_CAIRO="help_circle",rc.HELP_OUTLINE="help_circle",rc.HIDE="circle_slash",rc.INCOGNITO_CAIRO="incognito",rc.INFINITY_ICON="infinity",rc.INFO="info_circle",rc.INFO_OUTLINE="info_circle",rc.INSERT_CHART="chart_bar_square",rc.INSERT_CHART_OUTLINED="chart_bar_square",rc.INSERT_PHOTO="image",rc.KEEP="pin",rc.KEEP_OFF="pin_slash",rc.KEYBOARD="keyboard",
rc.KEYBOARD_ARROW_DOWN="chevron_down",rc.KEYBOARD_ARROW_UP="chevron_up",rc.KIDS_BLOCK="circle_slash",rc.LANGUAGE="globe",rc.LAST_PAGE="chevron_right_end",rc.LAUNCH="arrow_up_right",rc.LEARNING="lightbulb",rc.LEARNING_CAIRO="lightbulb",rc.LIBRARY_ADD="bookmark",rc.LIBRARY_IMAGE="image_stack",rc.LIBRARY_MUSIC="audio_square_stack",rc.LIBRARY_OUTLINE="play_square_stack",rc.LIBRARY_REMOVE="bookmark",rc.LIBRARY_SAVED="check_square_stack",rc.LIKES_PLAYLIST="thumb_up",rc.LIKES_PLAYLIST_CAIRO="thumb_up",rc.LIKE=
"thumb_up",rc.LIKE_SELECTED="thumb_up",rc.LIST_QUEUE="queue",rc.LIVE_CAIRO="live",rc.LIVE_UNLISTED="link",rc.LOCATION_ON="location_pin",rc.LOCATION_PIN="location_pin",rc.LOCATION_POINT="location_pin",rc.LOOP="repeat",rc.LOOP_ACTIVE="repeat",rc.LOOP_ONE="repeat1",rc.LOOP_ONE_ACTIVE="repeat1",rc.MEET="google_meet",rc.MEH="face_neutral",rc.MEMBERSHIPS="memberships",rc.MEMBERS_ONLY_MODE_OFF="text_bubble",rc.MENU_FILTER="filter",rc.MESSAGE="text_bubble",rc.MESSAGE_BUBBLE_GEAR="bubble_gear",rc.MESSAGE_BUBBLE_LEFT=
"text_bubble",rc.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",rc.MESSAGE_BUBBLE_OVERLAP="bubble_stack",rc.MESSAGE_BUBBLE_QUESTION="help_bubble",rc.MICROPHONE_ON="mic",rc.MONETIZATION_ON="dollar_sign_circle",rc.MONEY_FILL="dollar_sign_rectangle",rc.MONEY_FILL_JPY="yen_sign_rectangle",rc.MONEY_HAND="dollar_sign_circle_hand",rc.MONEY_HEART="dollar_sign_heart",rc.MOON_Z="sleep_timer",rc.MORE_HORIZ="overflow_horizontal",rc.MORE_VERT="overflow_vertical",rc.MUSIC="audio",rc.MUSIC_CAIRO="audio",rc.MUSIC_EXPLICIT_BADGE=
"explicit",rc.MUSIC_NEW_RELEASE="audio_badge",rc.MUSIC_NOTE_SYMBOL="audio",rc.MUSIC_SCISSORS="audio_scissors",rc.MUSIC_SHUFFLE="shuffle",rc.MY_CHANNEL="person_circle",rc.MY_LOCATION="location_pin",rc.MY_VIDEOS="video",rc.MY_VIDEOS_CAIRO="video",rc.NEWS_CAIRO="news",rc.NEWS_STORY="news",rc.NEXT="chevron_right",rc.NOTE_ADD="bubble_pencil",rc.NOTIFICATIONS="bell",rc.NOTIFICATIONS_ACTIVE="bell_waves",rc.NOTIFICATIONS_CAIRO="bell",rc.NOTIFICATIONS_DONE_CHECKMARK="check",rc.NOTIFICATIONS_INBOX="bell",rc.NOTIFICATIONS_NONE=
"bell",rc.NOTIFICATIONS_OFF="bell_slash",rc.NOT_INTERESTED="circle_slash",rc.OFFICIAL_ARTIST_BADGE="audio",rc.OFFLINE_CLOUD="cloud_slash",rc.OFFLINE_DOWNLOAD="download",rc.OFFLINE_DOWNLOAD_CAIRO="download",rc.OFFLINE_PAUSE="pause",rc.OPEN_IN_NEW="arrow_up_right",rc.OUTLINE_ADJUST="adjust",rc.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",rc.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",rc.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",rc.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",rc.OUTLINE_BAG="bag",rc.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",rc.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",rc.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",rc.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",rc.PAID="dollar_sign_circle",rc.PAUSE_OUTLINED="pause",rc.PAYMENT="credit_card",rc.PEOPLE="person_child",rc.PEOPLE_2="person2_rectangle",rc.PEOPLE_GROUP="person3",rc.PEOPLE_NOTE="bubble_asterisk",rc.PERSON_2="person2",rc.PERSON_ACCOUNT="person_square_stack",rc.PERSON_MINUS="person_x",rc.PERSON_MUSIC="person_audio",rc.PERSON_RADAR="person_waves",
rc.PERSON_RADAR_FILLED="person_waves",rc.PERSON_SETTING="person_gear",rc.PHONE="phone",rc.PHONE_DOWNLOAD="mobile_arrow_down",rc.PICTURE_IN_PICTURE="picture_in_picture",rc.PLAYABLES_LOGO="playables",rc.PLAYABLES_LOGO_CAIRO="playables",rc.PLAYLISTS="playlist",rc.PLAYLISTS_CAIRO="playlist",rc.PLAYLIST_ADD_CHECK="bookmark",rc.PLAY_ALL="play",rc.PLAY_ARROW="play",rc.PLAY_ARROW_CIRCLE="play_circle",rc.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",rc.PLAY_CIRCLE="play_circle",rc.PLAY_OUTLINED="play_circle",
rc.PODCAST_ADD="podcast_add",rc.PODCAST_CHECK="podcast_check",rc.PRIVACY_INFO="shield_x",rc.PRIVACY_PRIVATE="lock",rc.PRIVACY_PUBLIC="globe",rc.PRIVACY_UNLISTED="link",rc.PROMOTE="megaphone",rc.PURCHASES="price_tag",rc.PURCHASE_SUPER_CHAT="super_chat",rc.PURCHASE_SUPER_STICKER="super_sticker",rc.QUESTION_ANSWER="help_bubble",rc.QUESTION_CIRCLE="help_circle",rc.QUEUE_PLAY_LAST="queue_last",rc.QUEUE_PLAY_NEXT="queue_next",rc.QUOTATION_MARK="quote",rc.RADAR_LIVE="live",rc.REMOVE="minus_circle",rc.REMOVE_CIRCLE=
"minus_circle",rc.REMOVE_CIRCLE_OUTLINE="minus_circle",rc.REMOVE_FROM_HISTORY="minus_circle",rc.REMOVE_FROM_PLAYLIST="minus_circle",rc.REMOVE_MODERATOR="shield_slash",rc.REPLAY="arrow_counterclockwise",rc.REPLAY_10="skip10_back",rc.REPLAY_ARROW="replay",rc.REPORT_PROBLEM="alert_triangle",rc.RSS_OFF="rss_slash",rc.SAD="face_sad",rc.SAVE_PLAYLIST="bookmark",rc.SCHEDULE="clock",rc.SCHOOL="graduation_cap",rc.SCREEN_DEFAULT="player_default",rc.SCREEN_FULLSCREEN="player_full_enter",rc.SCREEN_LIGHT="ambient_mode",
rc.SCREEN_ROTATION="rotate_portrait",rc.SCREEN_SWITCH="player_switch",rc.SCREEN_THEATRE="player_theater",rc.SEARCH_CAIRO="search",rc.SEARCH_HISTORY="history",rc.SELL="price_tag",rc.SETTINGS="gear",rc.SETTINGS_CAIRO="gear",rc.SETTINGS_LIGHT="gear",rc.SETTINGS_MATERIAL="gear",rc.SETTINGS_REMOTE="remote_waves",rc.SHARE="share",rc.SHARE_ARROW="share",rc.SHARE_CAIRO="share",rc.SHIELD="shield_x",rc.SHIELD_EMPTY="shield",rc.SHIELD_OFF="shield_slash",rc.SHIELD_WITH_AVATAR="person_shield",rc.SHOPPING_BAG=
"bag",rc.SHOPPING_BAG_CAIRO="bag",rc.SHOPPING_CART="cart",rc.SHORTS_COMMENT="text_bubble",rc.SHORTS_DISLIKE="thumb_down",rc.SHORTS_LIKE="thumb_up",rc.SHORTS_SHARE="share",rc.SKIP_FORWARD_30="skip30_forward",rc.SLASH_CIRCLE_LEFT="circle_slash",rc.SLASH_CIRCLE_RIGHT="circle_slash",rc.SLOW_MODE="bubble_slow",rc.SLOW_MODE_OFF="text_bubble",rc.SOCIAL="person_child",rc.SPARKLE="sparkles",rc.SPARK_IMAGE="image_spark",rc.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",rc.SPARK_PENCIL="pencil_spark",rc.SPARK_RADAR=
"spark_waves",rc.SPARK_VIDEO="video_spark",rc.SPEAKER_GROUP="speaker_stack",rc.SPEAKER_OFF="speaker_slash",rc.SPEED_1X="n1x",rc.SPEED_1_POINT_2X="n1point2x",rc.SPEED_1_POINT_5X="n1point5x",rc.SPEED_1_POINT_8X="n1point8x",rc.SPEED_2X="n2x",rc.SPONSORSHIP_STAR="star_circle",rc.SPORTS="basketball",rc.SPOTLIGHT="spotlight",rc.STAFF_PICK="spotlight",rc.START_DVR="add",rc.STAR_BORDER="star",rc.STAR_CIRCLE_RIBBON="memberships_gift",rc.STAR_HALF="star_full_half",rc.STAR_SHOOTING="hype",rc.STICKER="sticker",
rc.STICKER_EMOTICON="face_happy",rc.STOP_DVR="stop",rc.SUBSCRIBE="youtube",rc.SUBSCRIBE_PLUS="add",rc.SUBSCRIPTION_MANAGER="gear",rc.SUPERSTAR="super_star",rc.SUPERVISOR_ACCOUNT="person_child",rc.SUPER_CHAT_FOR_GOOD="hands_heart",rc.SWAP_HORIZ="arrow_swap_horizontal",rc.SWITCH_ACCOUNTS="person_square_stack",rc.TAB_ACCOUNT="person",rc.TAB_ACTIVITY="bell",rc.TAB_BOOKMARK="bookmark",rc.TAB_EXPLORE="compass",rc.TAB_HOME="home",rc.TAB_HOME_CAIRO="home",rc.TAB_INBOX="mail",rc.TAB_LIKED="thumb_up",rc.TAB_MUSIC_PREMIUM=
"youtube_music",rc.TAB_SHORTS="shorts",rc.TAB_SHORTS_CAIRO="shorts",rc.TAB_SUBSCRIPTIONS="subscriptions",rc.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",rc.TAB_TRENDING="trending",rc.TARGET="target",rc.TARGET_ADD="target_add",rc.TEMPLATE_ADD="template_add",rc.TEXT="font",rc.TICKET_STAR="star_ticket",rc.TIMER="stopwatch",rc.TRENDING_CAIRO="trending",rc.TRENDING_DOWN="arrow_trend_down",rc.TRENDING_UP="arrow_trend_up",rc.TROPHY_CAIRO="trophy",rc.TROPHY_CELEBRATIONS="fireworks",rc.TROPHY_STAR="star_trophy",
rc.TUNE="adjust",rc.TV_OFF="tv_slash",rc.UNBLOCK_USER="minus_circle",rc.UNFAVORITE="thumb_down",rc.UNLIMITED="youtube",rc.UNPLUGGED_LIVE_GUIDE="live",rc.UNPLUGGED_SPORTS="eye_slash",rc.UPLOADS="play_square_stack",rc.UP_ARROW="arrow_up",rc.VERTICAL_ALIGN_BOTTOM="chevron_down_end",rc.VERTICAL_ALIGN_TOP="chevron_up_end",rc.VERY_HAPPY="face_very_happy",rc.VERY_SAD="face_very_sad",rc.VIDEOS="play_circle",rc.VIDEO_CALL="video_camera_add",rc.VIDEO_LIBRARY_WHITE="play_square_stack",rc.VIDEO_QUALITY_4K="n4k",
rc.VIDEO_QUALITY_8K="n8k",rc.VIDEO_YOUTUBE="youtube",rc.VIEW_LIST_CAIRO="view_list",rc.VIEW_MODULE="view_column3_row2",rc.VISIBILITY="eye",rc.VISIBILITY_OFF="eye_slash",rc.VOLUME_DOWN="volume_min",rc.VOLUME_MUTE="volume_mute",rc.VOLUME_OFF="volume_mute",rc.VOLUME_STABLE="stable_volume",rc.VOLUME_UP="volume_max",rc.WALLPAPER="image",rc.WARNING="alert_triangle",rc.WATCH_HISTORY="history",rc.WATCH_HISTORY_CAIRO="history",rc.WATCH_LATER="clock",rc.WATCH_LATER_CAIRO="clock",rc.WATCH_RELATED_MIX="mix",
rc.WHAT_TO_WATCH="home",rc.YOUTUBE_LINKED_TV="tv_mobile",rc.YOUTUBE_MUSIC_MONOCHROME="youtube_music",rc.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",rc.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",rc.YOUTUBE_SHORTS_ARROW_UP="arrow_up",rc.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",rc.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",rc.YOUTUBE_SHORTS_OUTLINE_24="shorts",rc.YT_OUTLINE_MUSIC_24="audio",rc);var lbO={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var Avv={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cart_spark:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,
24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,
3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,
1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,
2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cube_spark:[[1,1,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],
document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,
24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,
10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],
flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_spark:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],
font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],globe_image:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],
google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,
2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,
9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,
1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],
magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],
mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,3,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,
1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,
2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,
2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],
[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_pause:[[0,1,24],[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,
24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,
2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,
1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],
sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,7,18,!0],[0,7,24,!0],[1,7,18,!0],[1,7,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,
1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_add:[[1,1,18],[1,1,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],
skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],slip:[[1,1,18],[1,1,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,11,12],[0,11,24],[1,11,24]],spark_bubble_chat:[[1,1,24]],spark_lightbulb:[[0,3,24],[1,3,24]],spark_waves:[[0,
2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,
2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,
4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],
[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,
1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,
4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],
volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,
24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var sRz={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},ac=function(e){this.iconUrlProvider=e};
ac.prototype.resolveIcon=function(e,g){var c=sRz[e.iconName.toUpperCase()];c&&(e.iconName=c);var k=e.iconName;k=k.replace(/-/g,"_");e=Object.assign({},e,{iconName:this.mapIconTypeToStandardName(k,!!c)||k.toLowerCase()});if(_.G("enable_web_delhi_icons")||c){var I;return T6t(Avv,e,((I=this.iconUrlProvider)==null?void 0:I.getYtStandardUrl)||Fj6,g)}var J;return T6t(lbO,e,((J=this.iconUrlProvider)==null?void 0:J.getYtStandardUrl)||saq,g)};
ac.prototype.mapIconTypeToStandardName=function(e,g){return _.G("enable_web_delhi_icons")||g?TJD[e.toUpperCase()]:pcj[e.toUpperCase()]};
ac[y0]=[_.NN(irz)];var F6Q=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),uDS=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),dOv=function(e){this.urlProvider=this.iconUrlProvider=e};
_.Y(dOv,ac);
dOv.prototype.resolveIcon=function(e,g){e.iconName==="youtube_logo"&&(e.iconName="yt-logo-updated");if(e.iconName==="youtube_premium_logo"||e.iconName==="youtube_red_logo")e.iconName="yt-logo-red-updated";var c=Object.assign({},e);e.iconName==="menu"&&(_.G("enable_web_delhi_icons")||(c.iconName="bars_3"),c.iconStyle="youtube_outline");e.iconSetName==="socialNetworksRound"&&(e.iconName==="mail"&&(c.iconName="email"),e.iconName==="embed"&&(c.iconSize=60));e.iconName==="more"&&(c.iconName="overflow_horizontal");
e.iconName==="fullscreen"&&(c.iconName="screen_full");e.iconName==="premium_standalone"&&(c.iconName="premium_standalone_cairo");_.G("enable_connect_icon_update_web")&&e.iconName==="account_linked"&&(c.iconName="circles_overlap_check",c.iconStyle="youtube_fill");_.G("enable_connect_icon_update_web")&&e.iconName==="account_unlinked"&&(c.iconName="circles_overlap",c.iconStyle="youtube_outline");F6Q.has(e.iconName)&&(c.iconStyle="youtube_fill");if(_.G("enable_web_delhi_icons")){e.iconName==="playlist_add"&&
(c.iconName="bookmark");e.iconName==="offline_pin"&&(c.iconName="arrow_down_circle",c.iconStyle="youtube_fill");if(e.iconName==="circles_overlap_check"||c.iconName==="circles_overlap_check")c.iconName="account_link",c.iconStyle="youtube_fill";uDS.has(e.iconName)&&(c.iconName+="_updated")}e=Object.assign({},c,{iconName:(ac.prototype.mapIconTypeToStandardName.call(this,c.iconName)||c.iconName).toLowerCase()});var k;return(e=T6t(fb7,e,((k=this.urlProvider)==null?void 0:k.getUrl)||u2z,g))?e:ac.prototype.resolveIcon.call(this,
c,g)};
dOv[y0]=[_.NN(irz)];_.zvX=1;var nH=function(e,g){this.JSC$17778_commandHandler=e;this.innertubeTransportService=g};
_.Y(nH,jd);nH.prototype.resolveCommand=function(e,g){var c=this,k,I,J;return _.r(function(q){return(k=_.x(e,SGw))?q.return(Hrv(c,k,(I=g)==null?void 0:(J=I.form)==null?void 0:J.element)):q.return()})};
var Hrv=function(e,g,c){g={profileCardContext:g.profileCardContext,profileOwnerExternalChannelId:g.profileOwnerExternalChannelId};var k=_.lm(wus);return _.Yq(e.innertubeTransportService,g,k).then(function(I){if(!I)throw new _.E2("GetProfileCard failed");if(I=I.popupCommand){e.JSC$17778_commandHandler.resolveCommand(I,{form:{element:c}});_.BU(_.gL(),66557);I=I==null?void 0:I.clickTrackingParams;var J=_.RC();I&&J&&_.gL().graftServerVe(I,J)}})};
nH[y0]=[_.xk,_.kv];var Rc=function(){};
_.Y(Rc,jd);Rc.prototype.resolveCommand=function(e){var g,c;return _.r(function(k){g=_.x(e,kBM);if(!g)return k.return();c=Number(g.enableDelayedPacfLoggingTvMs);if(isNaN(c)){var I=C$();DAw(I,g,0)}else DAw(C$(),g,c);_.Uh(k)})};_.Eb=function(){};
_.Y(_.Eb,jd);
_.Eb.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R;return _.r(function(W){k=_.x(e,IxI);J=(I=g.form)==null?void 0:I.element;L=(q=J)==null?void 0:q.closest("ytd-enforcement-message-view-model");if(!k||!L)return W.return();c.allowAdsAction||(n=k.fundingChoiceInstructionPageUrl,c.allowAdsAction=new ldq(window,_.j6(n)));var b=c.allowAdsAction;b.wallElement=L;b.allowAdsPopup.style.setProperty("display","flex","important");var h=b.scrollManager;h.isScrollingEnabled&&(h.originalBodyOverflow=h.JSC$10310_domHelper.JSC$9636_document_.body.style.overflow,
h.JSC$10310_domHelper.JSC$9636_document_.body.style.overflow="hidden",h.isScrollingEnabled=!1);b.wallElement.style.setProperty("display","none","important");KCw(b.accessibilityManager,b.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((R=c.allowAdsAction.allowAdsPopup)&&R instanceof HTMLElement)for(b=_.w(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),h=b.next();!h.done;h=b.next()){var X=_.w(h.value);h=X.next().value;X=X.next().value;
R.style.setProperty(h,X)}_.Uh(W)})};
_.Eb.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Wr=function(){};
_.Y(Wr,jd);Wr.prototype.resolveCommand=function(e){var g;return _.r(function(c){g=_.x(e,Esw);if(!g)return c.return();wpt(e);_.Uh(c)})};_.b_=new _.AU("AI_CHAT_CONTROLLER_TOKEN");var h9=function(e,g,c,k){this.JSC$17793_commandHandler=e;this.store=g;this.getPlayerCb=c;this.aiChatController=k};
_.Y(h9,jd);h9.prototype.pageContext=function(){var e=_.Yu.currentPageSubTypeSelector(this.store.getState()),g;return(g=this.aiChatController)==null?void 0:_.QRl(g,e)};
h9.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q;return _.r(function(L){c=_.x(e,Wy4);I=(k=c)==null?void 0:k.command;if(!I)return L.return();switch((q=c)==null?void 0:q.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var n="youchat-"+Date.now(),R;var W=String(Math.floor(((R=g.getPlayerCb())==null?void 0:R.getCurrentTime())||0)*1E3);J={inputComposerFormData:{clientMessageId:n,playerOffsetMs:W,pageContext:g.pageContext()}}}if(!J)return L.return();g.JSC$17793_commandHandler.resolveCommand(I,
{form:{formData:J}});_.Uh(L)})};
h9[y0]=[_.xk,_.EO,cJz,_.NN(_.b_)];var UOo=new _.AU("SESSION_STORAGE");var XO=function(e){this.sessionStorage=e("conversations")};
_.Y(XO,jd);XO.prototype.resolveCommand=function(e){var g=this,c;return _.r(function(k){c=_.x(e,bQq);if(!c)return k.return();c.conversationId?g.sessionStorage.set("conversation_id",c.conversationId):g.sessionStorage.remove("conversation_id");_.Uh(k)})};
XO[y0]=[UOo];var Go=function(e){this.JSC$17805_commandHandler=e};
_.Y(Go,jd);
Go.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n,R;return _.r(function(W){if(W.nextAddress==1){c=_.x(e,Urv);if((k=c)==null||!k.text||!navigator.clipboard)return W.return();_.lj(W,2);return W.yield(navigator.clipboard.writeText(c.text),4)}if(W.nextAddress!=2){if(!c.successActions||c.successActions.length===0)return W.return();I=_.w(c.successActions);for(J=I.next();!J.done;J=I.next())q=J.value,g.JSC$17805_commandHandler.resolveCommand(q);return _.zn(W,0)}_.Qb(W);if(!c.failureActions||c.failureActions.length===
0)return W.return();L=_.w(c.failureActions);for(n=L.next();!n.done;n=L.next())R=n.value,g.JSC$17805_commandHandler.resolveCommand(R);_.Uh(W)})};
Go[y0]=[_.xk];var xh=function(e){this.JSC$17809_commandHandler=e};
_.Y(xh,jd);
xh.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R,W,b,h;return _.r(function(X){switch(X.nextAddress){case 1:k=_.x(e,DTI);if(!k)return X.return();_.lj(X,2);if(!k.imageBytes&&!k.imageUrl)throw Error("Di");if(!k.imageUrl){if(k.imageBytes){J=k.imageBytes;q=J.replace(/-/g,"+").replace(/_/g,"/");var D=QaW(q);I=_.Ox(D)}X.jumpTo(4);break}return X.yield(fetch(k.imageUrl),5);case 5:return L=X.yieldResult,X.yield(L.blob(),6);case 6:n=X.yieldResult,I=_.Ox(n);case 4:b=(R=g)==null?void 0:(W=R.form)==
null?void 0:W.element;h=document.createElement("a");e0(h,I);b.appendChild(h);h.download="";h.click();b.removeChild(h);URL.revokeObjectURL(_.BJ(I));k.successCommand&&c.JSC$17809_commandHandler.resolveCommand(k.successCommand);_.zn(X,0);break;case 2:_.Qb(X),k.errorCommand&&c.JSC$17809_commandHandler.resolveCommand(k.errorCommand),_.Uh(X)}})};
xh[y0]=[_.xk];var De=function(e){this.store=e};
_.Y(De,jd);De.prototype.resolveCommand=function(e){var g=this,c,k,I;return _.r(function(J){k=(c=_.x(e,_.bX1))==null?void 0:c.entityBatchUpdate;if(!k)return J.jumpTo(0);I=Object.assign({},k,{mutations:[].concat(_.KY(k.mutations||[]))});return J.yield(_.Mc(I,g.store),0)})};
De[y0]=[V5];var oag=function(e){this.JSC$17816_commandHandler=e;this.feedbackDialogMap=new Map};
oag.prototype.openDialog=function(e,g){(e=this.feedbackDialogMap.get(e))&&this.JSC$17816_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:e}},g)};
oag[y0]=[_.xk];var ZrO=new _.AU("FEEDBACK_CONTROLLER_TOKEN");var $h=function(e,g,c,k){this.dispatch=e;this.controller=g;this.JSC$17819_commandHandler=c;this.innertubeTransportService=k};
_.Y($h,jd);
$h.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y,O,Jq,LC,bW,RA;return _.r(function(Xg){switch(Xg.nextAddress){case 1:k=_.x(e,_.bn);if(J=(I=k)==null?void 0:I.contentId)for(L=_.w(((q=k)==null?void 0:q.actions)||[]),n=L.next();!n.done;n=L.next())R=n.value,Vwl(c,R,J);h=(W=g)==null?void 0:(b=W.form)==null?void 0:b.element;return _.G("wug_feedback_endpoint_use_its")?(f=new _.xy,f.endpoint=e,A=_.jt(c.innertubeTransportService,e,(l=g)==null?void 0:l.form),f.ajaxPromise=
A,_.oC(h,"yt-service-request-sent",f),Xg.yield(A,5)):Xg.yield(_.tr(h,[e,{impression:(D=g)==null?void 0:D.disableClickTracking}]).catch(function(){}),4);
case 4:X=Xg.yieldResult;Xg.jumpTo(3);break;case 5:X=Xg.yieldResult,_.oC(h,"yt-service-request-completed",{data:X});case 3:Q=((d=X)==null?void 0:(S=d.data)==null?void 0:S.feedbackResponses)||((V=X)==null?void 0:V.feedbackResponses);if((y=Q)==null?0:y.length)(Jq=(O=Q[0])==null?void 0:O.followUpDialog)&&J&&(LC=c.controller)!=null&&LC.feedbackDialogMap.set(J,Jq),(RA=(bW=Q[0])==null?void 0:bW.isThumbnailReporting)&&c.JSC$17819_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.Uh(Xg)}})};
var Vwl=function(e,g,c){var k=_.x(g,_.SV);if(k){k=_.w(k.commands||[]);for(var I=k.next();!I.done;I=k.next())Vwl(e,I.value,c)}_.x(g,_.CX)&&e.dispatch(_.cY("commandEntity",GRA(c),{key:c,command:g}));_.x(g,gH1)&&e.dispatch(_.cY("commandEntity",GRA(c),{key:c,command:g}))};
$h[y0]=[HHq,ZrO,_.xk,_.kv];var Yh=function(e){this.controller=e};
_.Y(Yh,jd);Yh.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q;return _.r(function(L){k=_.x(e,_.sf);J=(I=k)==null?void 0:I.targetId;if(((q=k)==null?void 0:q.signal)!=="TELL_US_WHY"||!J)return L.return();c.controller.openDialog(J,g);_.Uh(L)})};
Yh[y0]=[ZrO];var fH=new _.AU("APP_STORE_TOKEN");var jO=function(e){this.store=e};
_.Y(jO,jd);jO.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R;return _.r(function(W){k=_.x(e,QVg);J=(I=k)==null?void 0:I.contentId;n=(q=g)==null?void 0:(L=q.form)==null?void 0:L.element;R=_.tr(n,[e]);J&&c.undo(J);return W.yield(R,0)})};
jO.prototype.undo=function(e){this.store.dispatch(_.cY("commandEntity",GRA(e),{key:e,command:void 0}))};
jO[y0]=[fH];var i_=function(e){this.JSC$17831_commandHandler=e};
_.Y(i_,jd);i_.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n,R;return _.r(function(W){c=_.x(e,uHY);k=c.flowStateKey;I=c.validationFailureCommand;J=c.submitValidFormCommand;q=t7e(_.uQ,[k||""]);L=_.x(q,HXI);((n=L)==null?0:n.isValid)&&J&&g.JSC$17831_commandHandler.resolveCommand(J);((R=L)==null?0:R.isValid)||!I||g.JSC$17831_commandHandler.resolveCommand(I);_.Uh(W)})};
i_[y0]=[_.xk];var Pr=function(e){this.innertubeTransportService=e};
_.Y(Pr,jd);Pr.prototype.resolveCommand=function(e,g){var c=this,k;return _.r(function(I){return I.yield(_.jt(c.innertubeTransportService,e,(k=g)==null?void 0:k.form).then(function(J){var q,L;g==null||(q=g.commandController)==null||(L=q.onSuccess)==null||L.call(q,e,J)},function(J){var q,L;
g==null||(q=g.commandController)==null||(L=q.onServerError)==null||L.call(q,e,J)}),0)})};
Pr[y0]=[_.kv];var m0=function(){};
_.Y(m0,jd);m0.prototype.resolveCommand=function(e){var g,c,k,I;return _.r(function(J){if(g=_.x(e,_.sLq)){if(c=g.gtmId)k=_.uo("GL",""),_.ID(c,k);(I=g.gtmData)&&_.JF(I)}_.Uh(J)})};var pH=function(e,g,c){this.innertubeTransportService=e;this.JSC$17842_actionRouter=g;this.JSC$17842_screenManager=c};
_.Y(pH,jd);pH.prototype.resolveCommand=function(e){var g=this,c,k;return _.r(function(I){c=_.x(e,m9s);if(!c)return I.return();k=c.command;if(!k)return I.return();g.JSC$17842_actionRouter.triggerAction("yt-insert-rich-section-action",c);return I.yield(_.jt(g.innertubeTransportService,k,{disableCache:!0}).then(function(J){e.clickTrackingParams&&(J==null?0:J.trackingParams)&&g.JSC$17842_screenManager.graftServerVe(J.trackingParams,_.Jb(e.clickTrackingParams))}),0)})};
pH[y0]=[_.kv,FN,_.I5];oT6.bind(null,iX);var twl=oT6.bind(null,dIs);Viv.bind(null,iX);var BJg=Viv.bind(null,dIs);B6g.bind(null,iX);var NJo=B6g.bind(null,dIs);var To=function(){};
_.Y(To,jd);
To.prototype.resolveCommand=function(e){var g,c,k,I,J,q,L,n,R,W;return _.r(function(b){g=_.x(e,EAn);if(!g)return b.return();k=((c=g.operations)==null?void 0:c.operations)||[];I=_.w(k);for(J=I.next();!J.done;J=I.next())if(q=J.value,q.insertItemSectionContent){var h=q.insertItemSectionContent,X=h.contents||[];h.insertByPositionInSection?twl(h.insertByPositionInSection.sectionTargetId,X,h.insertByPositionInSection.position):h.insertByRelativePositionInSection&&h.insertByRelativePositionInSection.sectionTargetId&&h.insertByRelativePositionInSection.itemTargetId&&
BJg(h.insertByRelativePositionInSection.sectionTargetId,h.insertByRelativePositionInSection.itemTargetId,X,h.insertByRelativePositionInSection.relativePosition)}else q.replaceSection?(h=q.replaceSection,X={},h.replaceByTargetId?X=h.replaceByTargetId:h.replaceByGroupId&&(X={targetId:h.replaceByGroupId.groupId,newContent:h.replaceByGroupId.newContent,undoKey:""}),X.newContent&&QKs(X.targetId,{continuationItems:[X.newContent]})):q.removeItem?(h=q.removeItem,h.removeByTargetId&&h.sectionTargetId&&NJo(h.sectionTargetId,
h.removeByTargetId.targetIds||[])):q.removeSection&&(q.removeSection.removeByTargetId?(L=void 0,Syj(((L=q.removeSection)==null?void 0:L.removeByTargetId.targetIds)||[])):q.removeSection.removeByGroupId&&(n=void 0,Syj(((n=q.removeSection)==null?void 0:n.removeByGroupId.groupIds)||[])));W=((R=g.operations)==null?void 0:R.scrollConfig)||{};yvO(W);_.Uh(b)})};
var Syj=function(e){e=_.w(e);for(var g=e.next();!g.done;g=e.next())QKs(g.value,{continuationItems:[]})},yvO=function(e){if(e.scrollToItem){var g=e.scrollToItem.item||{},c=g.itemTargetId;
g=g.sectionTargetId;if(c&&g){var k=document.querySelector("[data-target-id="+g+"]"),I=k==null?void 0:k.querySelector("[data-target-id="+c+"]");k&&I&&setTimeout(function(){var J=I.offsetTop-k.offsetTop,q;if(((q=e.scrollToItem)==null?void 0:q.scrollPosition)==="SCROLL_POSITION_CENTER")J-=k.offsetHeight/2,J+=I.offsetHeight/2;else{var L;((L=e.scrollToItem)==null?void 0:L.scrollPosition)==="SCROLL_POSITION_END"&&(J-=k.offsetHeight,J+=I.offsetHeight)}var n;k.scroll({top:J,behavior:(e==null?void 0:(n=e.animationConfig)==
null?void 0:n.enableAnimation)===!1?"instant":"smooth"})},100)}}};var l_=new _.AU("CLIENT_NAME_TOKEN");var K6Q=new _.AU("DEFAULT_STORE_EXPIRATION_TOKEN");var SCu=new _.AU("CLIENT_LOCATION_SERVICE_TOKEN");var A9=function(e,g,c){this.clientName=e||_.uo("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=g||_.jh.getInstance();this.JSC$17871_commandHandler=c||_.yJ.instance};
_.Y(A9,jd);A9.prototype.resolveCommand=function(e){var g=this,c,k;return _.r(function(I){k=(c=_.x(e,OPI))==null?void 0:c.onComplete;g.clientLocationService.clearLocationPlayabilityToken(g.clientName);k&&g.JSC$17871_commandHandler.resolveCommand(k);_.Uh(I)})};
A9[y0]=[l_,SCu,_.xk];var sb=function(e){this.innertubeTransportService=e};
_.Y(sb,jd);sb.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q;return _.r(function(L){J=(k=g)==null?void 0:(I=k.form)==null?void 0:I.element;return L.yield(_.jt(c.innertubeTransportService,e,(q=g)==null?void 0:q.form).then(function(n){Qzt(J,new CustomEvent("yt-service-request-completed"),{data:n},_.uo("openPopupConfig"))}),0)})};
sb[y0]=[_.kv];var FO=function(){};
_.Y(FO,jd);FO.prototype.resolveCommand=function(e){var g,c;return _.r(function(k){g=_.x(e,ZXM);c=document.querySelector("mini-app-container-view-model");if(!g||!c)return k.return();g.isPlaying?c.dispatchEvent(new Event("play")):c.dispatchEvent(new Event("pause"));_.Uh(k)})};var u_=function(){};
_.Y(u_,jd);u_.prototype.resolveCommand=function(e){var g,c,k,I,J,q,L;return _.r(function(n){g=_.x(e,PAY);if((c=g)==null||!c.paramKeys)return n.return();k=g.paramKeys;I=_.zs(window.location.href);J=_.w(k);for(q=J.next();!q.done;q=J.next())L=q.value,I.JSC$10342_queryData_.remove(L);window.history.replaceState(window.history.state,document.title,I.toString());_.Uh(n)})};var OrS=function(){this.dropdownMap=new Map};_.MwQ=new _.AU("DROPDOWN_CONTROLLER_TOKEN");var dc=function(e){this.controller=e};
_.Y(dc,jd);dc.prototype.resolveCommand=function(e){var g=this,c,k,I,J;return _.r(function(q){c=_.x(e,kOq);if(!c)return q.return();k=c;I=k.dropdownId;J=k.selectedOptionIndex;if(I===void 0||J===void 0)return q.return();var L=g.controller.dropdownMap.get(I);L&&L(J);_.Uh(q)})};
dc[y0]=[_.MwQ];var zo=function(e){this.controller=e};
_.Y(zo,jd);zo.prototype.resolveCommand=function(e){var g=this,c;return _.r(function(k){return(c=_.x(e,ayw))?k.yield(g.controller.closeDialog(),0):k.return()})};
zo[y0]=[_.aL];var Hr=function(e){this.controller=e};
_.Y(Hr,jd);Hr.prototype.resolveCommand=function(e){var g=this,c,k;return _.r(function(I){c=_.x(e,SHq);if(!c)return I.return();var J,q=c.panelIdentifier||((J=c.identifier)==null?void 0:J.tag);if(!q)throw Error("Ei");return(k=q)?I.yield(g.controller.hidePanel({identifier:k}),0):I.jumpTo(0)})};
Hr[y0]=[_.Lj];var Qt=function(e){this.controller=e};
_.Y(Qt,jd);Qt.prototype.resolveCommand=function(e){var g=this,c;return _.r(function(k){return(c=_.x(e,ukM))?k.yield(g.controller.closeSheet(),0):k.return()})};
Qt[y0]=[_.rC];var Ub=function(e,g){this.innertubeTransportService=e;this.controller=g};
_.Y(Ub,jd);Ub.prototype.resolveCommand=function(e){var g=this,c,k,I,J;return _.r(function(q){if(q.nextAddress==1)return c=_.x(e,y$4),(k=c)!=null&&k.panelId?q.yield(g.controller.getReloadContinuation(c.panelId),2):q.return();if(q.nextAddress!=3)return(I=q.yieldResult)?q.yield(_.jt(g.innertubeTransportService,e,{continuation:I}),3):q.return();J=q.yieldResult;return q.yield(g.controller.updatePanel({identifier:c.panelId,panelContents:J.content,shouldFocus:!1}),0)})};
Ub[y0]=[_.kv,_.Lj];var oc=function(e,g,c){this.innertubeTransportService=e;this.JSC$17912_screenManager=g;this.JSC$17912_commandHandler=c};
_.Y(oc,jd);
oc.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L;return _.r(function(n){if(n.nextAddress==1){c=_.x(e,_.Vxq);if(!c)return n.return();if(c.commands)for(k=_.w(c.commands),I=k.next();!I.done;I=k.next())J=I.value,g.JSC$17912_commandHandler.resolveCommand(J,{disableClickTracking:!0});q=_.Jb(e.clickTrackingParams);_.BU(g.JSC$17912_screenManager,21760,q,{layer:7,parentLayer:0});return n.yield(_.jt(g.innertubeTransportService,e),2)}L=n.yieldResult;if(!L)return n.return();g.JSC$17912_screenManager.graftServerVe(L.trackingParams,q,
7);_.Uh(n)})};
oc[y0]=[_.kv,_.I5,_.xk];var Ze=new _.AU("PANEL_LOADING_STRATEGY_TOKEN");var Vt=function(e,g){this.controller=e;this.panelLoadingStrategy=g};
_.Y(Vt,jd);
Vt.prototype.resolveCommand=function(e,g){var c=this,k,I,J;return _.r(function(q){k=_.x(e,zbZ);if((I=k)==null||!I.panelLoadingStrategy)return q.return();J=function(L){var n,R,W,b,h,X,D,f,l,A;return _.r(function(d){R=_.x((n=L.dialogViewModel)==null?void 0:n.header,IRw);W={viewModel:L.dialogViewModel};b={};if(D=_.G("web_enable_dialog_header_label")?(h=R)==null?void 0:(X=h.headline)==null?void 0:X.content:void 0)b.ariaLabel=D;k.dismissOnBackgroundTap===!1&&(b.isModal=!0);return L.dialogViewModel?d.yield(c.controller.openDialog(W,
(A=(f=g)==null?void 0:(l=f.form)==null?void 0:l.element)!=null?A:document.body,b),0):d.return()})};
return q.yield(c.panelLoadingStrategy.execute({command:e,data:k.panelLoadingStrategy,renderFn:J,createScreenConfig:{layer:4}}),0)})};
Vt[y0]=[_.aL,Ze];var t9=function(e,g,c){this.innertubeTransportService=e;this.controller=g;this.JSC$17932_screenManager=c};
_.Y(t9,jd);
t9.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A;return _.r(function(d){switch(d.nextAddress){case 1:k=_.x(e,_.W2);if(!k)return d.return();var S,V=k.panelIdentifier||((S=k.identifier)==null?void 0:S.tag);if(!V)throw Error("Ei");I=V;return d.yield(c.controller.isVisible(I,!0),2);case 2:if((J=d.yieldResult)&&k.blockIfPanelOpen)return d.return();n=(L=(q=c.controller).getPanelContent)==null?void 0:L.call(q,I);if(!(S=n))if(k){var Q;S=((Q=k.globalConfiguration)==null?void 0:
Q.initialState)||k.engagementPanel;if(Q=!S)Q=!!(k==null?0:(V=k.engagementPanelPresentationConfigs)==null?0:V.engagementPanelPopupPresentationConfig);Q&&(S=_.N6C(k.panelIdentifier,k.identifier))}else S=void 0;R=S;W=k.engagementPanelPresentationConfigs;b=k.engagementPanelExtras;return d.yield(c.controller.showPanel({identifier:I,panelContents:R,config:W,extras:b,target:(h=g)==null?void 0:(X=h.form)==null?void 0:X.element}),3);case 3:if(!k.globalConfiguration){d.jumpTo(0);break}if(k.globalConfiguration.reuseModelAndState&&
_.G("enable_ai_companion")&&(l=(f=(D=c.controller).getPanelContent)==null?void 0:f.call(D,I)))return d.return();_.BU(c.JSC$17932_screenManager,32633);return d.yield(_.jt(c.innertubeTransportService,e),5);case 5:return A=d.yieldResult,c.JSC$17932_screenManager.graftServerVe(A.trackingParams),d.yield(c.controller.updatePanel({identifier:I,panelContents:A.content,shouldFocus:!0,extras:b,updatePanelContinuationData:A.updatePanelContinuationData}),0)}})};
t9[y0]=[_.kv,_.Lj,_.I5];var Br=function(e,g){this.controller=e;this.panelLoadingStrategy=g};
_.Y(Br,jd);
Br.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R,W,b,h,X,D;return _.r(function(f){k=_.x(e,_.ku);if((I=k)==null||!I.panelLoadingStrategy)return f.return();L=C1q(c.controller,(J=g)==null?void 0:(q=J.form)==null?void 0:q.element);R=(n=k.contextualSheetPresentationConfig)==null?void 0:n.position;b=(W=k.contextualSheetPresentationConfig)==null?void 0:W.hoverConfig;X=(h=k.contextualSheetPresentationConfig)==null?void 0:h.expandToFullWidth;D=function(l){var A,d;return _.r(function(S){if(!l.sheetViewModel)return S.return();if(b){var V=
c.controller;V.shouldPreventClosingWhileHovered=!!b.preventCloseWhileHovered;var Q;V.hideDelayMs=(Q=b.hideDelayMs)!=null?Q:0}return S.yield(c.controller.openSheet({viewModel:l.sheetViewModel,sheetPosition:R,expandToFullWidth:X},L,(A=g)==null?void 0:(d=A.form)==null?void 0:d.element),0)})};
return f.yield(c.panelLoadingStrategy.execute({command:e,data:k.panelLoadingStrategy,renderFn:D,createScreenConfig:{layer:0}}),0)})};
Br[y0]=[_.rC,Ze];var NP=function(e,g){this.controller=e;this.JSC$17943_commandHandler=g};
_.Y(NP,jd);NP.prototype.resolveCommand=function(e,g){var c=this,k,I,J;return _.r(function(q){if(q.nextAddress==1){k=_.x(e,CEY);var L=_.x(k.showCommand,_.W2),n,R,W=(R=L==null?void 0:L.panelIdentifier)!=null?R:L==null?void 0:(n=L.identifier)==null?void 0:n.tag;if(!W)throw Error("Fi");I=W;return q.yield(c.controller.isVisible(I),2)}return(J=q.yieldResult)?q.yield(c.controller.hidePanel({identifier:I}),0):q.yield(c.JSC$17943_commandHandler.resolveCommand(k.showCommand,g),0)})};
NP[y0]=[_.Lj,_.xk];var SO=function(e,g,c){this.innertubeTransportService=e;this.controller=g;this.JSC$17946_screenManager=c};
_.Y(SO,jd);
SO.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y,O;return _.r(function(Jq){switch(Jq.nextAddress){case 1:return k=c=_.x(e,Jgv),I=k.targetPanelIdentifier,J=k.contentSourcePanelIdentifier,q=k.globalConfiguration,((L=I)==null?0:L.tag)&&((n=J)==null?0:n.tag)?q?Jq.yield(g.controller.showPanel({identifier:I.tag,panelContents:_.N6C(I.tag,I)}),5):Jq.yield((h=(b=g.controller).getPanel)==null?void 0:h.call(b,J.tag),4):Jq.return();case 4:X=Jq.yieldResult;R=(D=X)==
null?void 0:(l=(f=D).getPanelContent)==null?void 0:l.call(f);Jq.jumpTo(3);break;case 5:return Jq.yield(_.jt(g.innertubeTransportService,e),6);case 6:A=Jq.yieldResult,((d=A)==null?0:d.trackingParams)&&g.JSC$17946_screenManager.graftServerVe(A.trackingParams),R=(S=A)==null?void 0:S.content,W=(V=A)==null?void 0:V.updatePanelContinuationData;case 3:if(y=(Q=R)==null?void 0:Q.engagementPanelSectionListRenderer)return Jq.yield(g.controller.showPanel({identifier:I.tag,panelUpdatableFields:{content:y.content,
secondaryHeaderContent:(O=y.header)!=null?O:{},targetId:y.targetId,loggingDirectives:y.loggingDirectives},updatePanelContinuationData:W}),0);Jq.jumpTo(0)}})};
SO[y0]=[_.kv,_.Lj,_.I5];var KH=function(){};
_.Y(KH,jd);KH.prototype.resolveCommand=function(e){var g,c,k;return _.r(function(I){if(I.nextAddress==1)return(g=_.x(e,wlY))?I.yield(_.t4(),2):I.return();c=I.yieldResult;if(!c)return I.return();var J=c,q=(k=g)==null?void 0:k.languageCode,L;(J==null?0:(L=J.isReady)==null?0:L.call(J))&&(q=Sig(J,q))&&J.setAudioTrack(q);_.Uh(I)})};var Ob=function(){};
_.Y(Ob,hg);_.v=Ob.prototype;_.v.getApiPaths=function(){return gK1};
_.v.getExtension=function(e){return _.x(e,_.Pm)};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$14495_getStoreKey=function(e){if((e=this.getExtension(e))&&e.videoId){var g={videoId:e.videoId};e.playlistId&&(g.playlistId=e.playlistId);e.index&&(g.index=e.index);e.params&&(g.params=e.params);return _.ic("next",g)}};
_.v.JSC$14488_getClientScreen=function(e){var g;return((g=e.contentPlaybackContext)==null?void 0:g.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.v.JSC$14488_buildRequest=function(e,g,c){g.videoId&&(e.videoId=g.videoId);g.playlistId&&(e.playlistId=g.playlistId);g.params&&(e.params=g.params);g.index!==void 0&&(e.playlistIndex=g.index);e.racyCheckOk=!(!c.racyCheckOk&&!g.racyCheckOk);e.contentCheckOk=!!g.contentCheckOk;c.contentPlaybackContext&&(e.autonavState=c.contentPlaybackContext.autonavState,e.playbackContext={vis:c.contentPlaybackContext.vis,lactMilliseconds:c.contentPlaybackContext.lactMilliseconds});c.prefetchPlaybackContext&&(e.context.request||
(e.context.request={}),e.context.request.isPrefetch=!0);_.G("captions_hats_killswitch")||(g=_.ch().getFlag(65),g=g!=null?!g:!1,c=!!_.qk("yt-player-sticky-caption"),e.captionsRequested=g&&c)};
_.v.getRequestConfig=function(e){e=this.JSC$14495_getStoreKey(e);var g;e&&(g={storeStrategy:{storeKey:e}});_.G("web_log_player_watch_next_ticks")&&(g=g||{},g.requestTick="wn_s",g.responseTick="wn_r");return g};
var MP=function(){};
_.Y(MP,hg);MP.prototype.getApiPaths=function(){return gK1};
MP.prototype.getExtension=function(e){return _.x(e,_.b6)};
MP.prototype.JSC$14488_buildRequest=function(e,g){g.token&&(e.continuation=g.token)};var CH=function(){this.innerTubeTransport=_.Ss().resolve(_.kv);this.miniplayerService=_.Ss().resolve(_.xt)};
_.Y(CH,jd);var ehM=function(e){var g;return _.r(function(c){g=_.uo("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;e.JSC$17971_mainAppPlayer=new m5(g);document.addEventListener("yt-navigate-start",e.JSC$17971_pauseOnNavigation.bind(e));_.Uh(c)})},gUj=function(e,g){var c,k,I,J;
return _.r(function(q){if(q.nextAddress==1){c=new Ob;k=c.JSC$14488_getRequest(g);if(!k)return q.return(void 0);I=k.innerTubeRequest;return q.yield(_.Yq(e.innerTubeTransport,I,"/youtubei/v1/next"),2)}J=q.yieldResult;var L;var n,R,W=(L=J.contents)==null?void 0:(n=L.twoColumnWatchNextResults)==null?void 0:(R=n.playlist)==null?void 0:R.playlist,b;L=(W==null?0:(b=W.contents)==null?0:b.length)?W:void 0;return q.return(L)})},cdS=function(e,g){var c,k,I,J,q;
return _.r(function(L){if(L.nextAddress==1)return c=e.JSC$17971_mainAppPlayer,L.yield(c.api,2);if(L.nextAddress!=3)return k=L.yieldResult,g.watchCommand?L.yield(gUj(e,g.watchCommand),3):L.return();I=L.yieldResult;if((J=I)==null||!J.contents)return L.return();q=I.contents.map(function(n){var R;return(R=n.playlistPanelVideoRenderer)==null?void 0:R.videoId}).filter(function(n){return!!n}).map(function(n){return{encrypted_id:n}});
k.updatePlaylist({video:q});_.Uh(L)})},k1o=function(e,g){var c,k,I;
return _.r(function(J){return J.nextAddress==1?(c=e.JSC$17971_mainAppPlayer,I=(k=g.playerParams)!=null?k:"",g.externalVideoId?J.yield(c.loadVideoWithPlayerVars({videoId:g.externalVideoId,audio_only:"1",player_params:I}),2):J.jumpTo(2)):g.watchCommand?J.yield(cdS(e,g),0):J.jumpTo(0)})};
CH.prototype.JSC$17971_pauseOnNavigation=function(){var e=this,g,c;return _.r(function(k){if(k.nextAddress==1)return g=e.JSC$17971_mainAppPlayer,k.yield(g.api,2);c=k.yieldResult;c.pauseVideo();_.Uh(k)})};
CH.prototype.pauseVideo=function(){var e=this,g,c;return _.r(function(k){if(k.nextAddress==1)return g=e.JSC$17971_mainAppPlayer,k.yield(g.api,2);c=k.yieldResult;c.pauseVideo();_.Uh(k)})};
CH.prototype.playVideo=function(){var e=this,g,c;return _.r(function(k){if(k.nextAddress==1)return g=e.JSC$17971_mainAppPlayer,k.yield(g.api,2);c=k.yieldResult;c.playVideo();_.Uh(k)})};
var IMX=function(e){var g,c;return _.r(function(k){if(k.nextAddress==1)return g=e.JSC$17971_mainAppPlayer,k.yield(g.api,2);c=k.yieldResult;c.mute();_.Uh(k)})},JdD=function(e){var g,c;
return _.r(function(k){if(k.nextAddress==1)return g=e.JSC$17971_mainAppPlayer,k.yield(g.api,2);c=k.yieldResult;c.unMute();_.Uh(k)})};
CH.prototype.stopVideo=function(){var e=this,g,c;return _.r(function(k){if(k.nextAddress==1)return g=e.JSC$17971_mainAppPlayer,k.yield(g.api,2);c=k.yieldResult;c.stopVideo();_.Uh(k)})};
var vU0=function(e,g){return _.r(function(c){switch(c.nextAddress){case 1:switch(g){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return c.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return c.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return c.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return c.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return c.jumpTo(6)}c.jumpTo(0);break;case 2:return c.yield(e.playVideo(),8);case 8:c.jumpTo(0);break;case 3:return c.yield(e.pauseVideo(),
9);case 9:c.jumpTo(0);break;case 4:return c.yield(e.stopVideo(),10);case 10:c.jumpTo(0);break;case 5:return c.yield(IMX(e),11);case 11:c.jumpTo(0);break;case 6:return c.yield(JdD(e),12);case 12:c.jumpTo(0)}})};
CH.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L;return _.r(function(n){return n.nextAddress==1?(c=_.x(e,sTq),((k=c)==null?0:k.newPlaybackParams)||((I=c)==null?0:I.controlAction)?g.JSC$17971_mainAppPlayer?n.jumpTo(2):n.yield(ehM(g),2):n.return()):((J=c)==null?0:J.newPlaybackParams)?(g.miniplayerService.isMiniplayerActive()&&((q=g.miniplayerService.getPlayerElement())==null||q.pause()),L=c.newPlaybackParams,L.externalVideoId||L.externalPlaylistId?n.yield(k1o(g,L),0):n.return()):n.yield(vU0(g,
c.controlAction),0)})};var ey=function(e){this.JSC$17977_commandHandler=e};
_.Y(ey,jd);
ey.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L;return _.r(function(n){if(n.nextAddress==1)return(c=_.x(e,qHw))?n.yield(_.t4(),2):n.return();k=n.yieldResult;if(!k)return n.return();var R=k,W=(I=c)==null?void 0:I.languageCode,b=(J=c)==null?void 0:J.isAutoTranslated;R.getVideoData&&_.KjU(R).length&&((W=MiU(R,W,b))?R.setOption("captions","track",W):(R.setOption("captions","stickyLoading",{}),R.setOption("captions","track",{})));q=k.isSubtitlesOn()?_.C_("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.C_("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");L=_.so(q,5E3);g.JSC$17977_commandHandler.resolveCommand(L);_.Uh(n)})};
ey[y0]=[_.xk];var g9=function(e,g){this.shortsPlayerPromise=e;this.JSC$17981_commandHandler=g};
_.Y(g9,jd);
g9.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n,R;return _.r(function(W){if(W.nextAddress==1)return(c=_.x(e,l6n))?W.yield(g.shortsPlayerPromise,2):W.return();k=W.yieldResult;var b=C4C(k);b!=null&&b.length||(k.loadModule("captions"),b=C4C(k));I=b;if((J=I)==null||!J.length)return q=_.C_("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),L=_.so(q),g.JSC$17981_commandHandler.resolveCommand(L),W.return();k.toggleSubtitles();n=k.isSubtitlesOn()?_.C_("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.C_("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");R=_.so(n);g.JSC$17981_commandHandler.resolveCommand(R);_.Uh(W)})};
g9[y0]=[_.pXZ,_.xk];var c5=function(e){this.JSC$17984_actionRouter=e;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(g,c){g.triggerAction("yt-dismiss-shopping-timely-shelf-action",c);(g=_.Ss().resolve(_.NN(_.oOs)))&&g.dismissFeaturedProductOverlay()}]])};
_.Y(c5,jd);c5.prototype.resolveCommand=function(e){var g=this,c,k,I;return _.r(function(J){c=_.x(e,nqY);if((k=c)==null||!k.overlayId)return J.return();I=g.dismissPlayerOverlayActions.get(c.overlayId);if(!I)throw Error("Gi`"+c.overlayId);I(g.JSC$17984_actionRouter,c);_.Uh(J)})};
c5[y0]=[FN];var k0=function(e){this.JSC$17988_playerPromise=e};
_.Y(k0,jd);k0.prototype.resolveCommand=function(e){var g=this,c,k,I,J;return _.r(function(q){if(q.nextAddress==1)return(c=_.x(e,Oon))?q.yield(g.JSC$17988_playerPromise,2):q.return();k=q.yieldResult;I=k.getVideoData().video_id;c.videoId===I&&(J=Number(c.offsetFromVideoStartMilliseconds),J>=0&&k.seekTo(J/1E3));_.Uh(q)})};
k0[y0]=[_.QF];var wHx=_.Bh("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Ib=function(e){this.store=e};
_.Y(Ib,jd);
var q50=function(e){var g,c,k,I;return _.r(function(J){if(J.nextAddress==1)return g=_.uo("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,c=_.uo("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,k=g||c,e.JSC$17992_mainAppPlayer=new m5(k),J.yield(e.JSC$17992_mainAppPlayer.api,2);I=J.yieldResult;I.addEventListener("onStateChange",e.JSC$17992_playerStateChangeListener.bind(e));document.addEventListener("yt-page-data-updated",e.JSC$17992_pauseOnNavigation.bind(e));window.addEventListener("state-navigatestart",
e.JSC$17992_pauseOnNavigation.bind(e));_.Uh(J)})};
Ib.prototype.JSC$17992_playerStateChangeListener=function(e){switch(e){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"}Lqx(this)};
var Lqx=function(e){e.store.dispatch(_.cY("sfvAudioItemCurrentlyPlayingEntity",wHx,{key:wHx,externalVideoId:e.externalVideoId,sfvAudioItemPlaybackState:e.playbackState,nowPlayingEntityValue:e.nowPlayingEntityValue}))};
Ib.prototype.JSC$17992_pauseOnNavigation=function(){var e=this,g,c,k,I;return _.r(function(J){if(J.nextAddress==1){if(!e.JSC$17992_mainAppPlayer){var q=new _.E2("Error: mainAppPlayer is unavailable",e.JSC$17992_mainAppPlayer);_.jW(q);return J.return()}return J.yield(e.JSC$17992_mainAppPlayer.api,2)}g=J.yieldResult;k=(c=g)==null?void 0:c.getPlayerState();k!==1||(I=g)!=null&&I.pauseVideo();_.Uh(J)})};
Ib.prototype.playVideo=function(e,g,c){var k=this,I,J;return _.r(function(q){if(q.nextAddress==1)return q.yield((I=k.JSC$17992_mainAppPlayer)==null?void 0:I.api,2);J=q.yieldResult;if(!k.JSC$17992_mainAppPlayer||!J){var L=new _.E2("Error: mainAppPlayer is unavailable",k.JSC$17992_mainAppPlayer);_.jW(L);return q.return()}return q.yield(k.JSC$17992_mainAppPlayer.loadVideoWithPlayerVars({videoId:k.externalVideoId,audio_only:"1",start:e/1E3,end:e/1E3+g,player_params:c}),0)})};
Ib.prototype.pauseVideo=function(){var e=this,g,c;return _.r(function(k){if(k.nextAddress==1){if(!e.JSC$17992_mainAppPlayer){var I=new _.E2("Error: mainAppPlayer is unavailable",e.JSC$17992_mainAppPlayer);_.jW(I);return k.return()}return k.yield(e.JSC$17992_mainAppPlayer.api,2)}g=k.yieldResult;(c=g)==null||c.pauseVideo();_.Uh(k)})};
Ib.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V;return _.r(function(Q){if(Q.nextAddress==1)return c=_.x(e,mwZ),I=(k=c)==null?void 0:k.nowPlayingEntityValue,q=(J=c)==null?void 0:J.externalVideoId,b=Number((W=(L=c)==null?void 0:(n=L.defaultStartPoints)==null?void 0:(R=n[0])==null?void 0:R.offsetMs)!=null?W:"0"),A=Number((l=(h=c)==null?void 0:(X=h.defaultStartPoints)==null?void 0:(D=X[0])==null?void 0:(f=D.duration)==null?void 0:f.seconds)!=null?l:"15"),V=(S=
(d=c)==null?void 0:d.playerParams)!=null?S:"",I&&q?g.JSC$17992_mainAppPlayer?Q.jumpTo(2):Q.yield(q50(g),2):Q.return();if(Q.nextAddress!=6){if(g.nowPlayingEntityValue&&I===g.nowPlayingEntityValue)return g.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?Q.yield(g.pauseVideo(),0):Q.yield(g.playVideo(b,A,V),0);g.externalVideoId=q;g.nowPlayingEntityValue=I;g.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return Q.yield(g.playVideo(b,A,V),6)}Lqx(g);return Q.jumpTo(0)})};
Ib[y0]=[V5];var J6=function(e){this.JSC$18010_commandHandler=e};
_.Y(J6,jd);J6.prototype.resolveCommand=function(e,g){var c=this,k,I,J;return _.r(function(q){if(q.nextAddress==1)return(k=_.x(e,LAw))?q.yield(_.t4(),2):q.return();I=q.yieldResult;if(!I)return q.return();(J=e1A(I))&&c.JSC$18010_commandHandler.resolveCommand(J,g);_.Uh(q)})};
J6[y0]=[_.xk];var v5=function(e){this.JSC$18016_commandHandler=e};
_.Y(v5,jd);v5.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L;return _.r(function(n){if(n.nextAddress==1)return(k=_.x(e,r$s))?n.yield(_.t4(),2):n.return();I=n.yieldResult;if(!I)return n.return();(J=JIv(I))?c.JSC$18016_commandHandler.resolveCommand(J,g):(q=_.C_("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),L=_.so(q),c.JSC$18016_commandHandler.resolveCommand(L));_.Uh(n)})};
v5[y0]=[_.xk];var w9=function(e){this.JSC$18019_playerPromise=e};
_.Y(w9,jd);w9.prototype.resolveCommand=function(e){var g=this,c,k;return _.r(function(I){if(I.nextAddress==1)return(c=_.x(e,h54))?I.yield(g.JSC$18019_playerPromise,2):I.return();k=I.yieldResult;k.isFullscreen()&&k.wakeUpControls();_.Uh(I)})};
w9[y0]=[_.QF];var qv=function(e){this.JSC$18022_playerPromise=e};
_.Y(qv,jd);qv.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q;return _.r(function(L){if(L.nextAddress==1){c=_.x(e,MMZ);if(!c)return L.return();k=c.overlayRenderer;return k?(I=_.x(k,$ps))?L.yield(g.JSC$18022_playerPromise,3):L.jumpTo(0):L.return()}J=L.yieldResult;J.renderChapterSeekingAnimation(1,_.mp(I.text),(q=I.icon)==null?void 0:q.iconType);_.Uh(L)})};
qv[y0]=[_.QF];var Li=function(e){this.store=e};
_.Y(Li,jd);
Li.prototype.resolveCommand=function(e){var g=this,c,k,I;return _.r(function(J){if(J.nextAddress==1){c=_.x(e,FGs);if(!c)return J.return();k="";(I=g.store.getState().collabInviteLink)&&c.id===I.playlistId?k=I.inviteLinkURL:c.shortUrl&&(k=c.shortUrl);return k?J.yield(navigator.clipboard.writeText(k),3):J.jumpTo(0)}var q={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.C_("COPY_LINK_SUCCESS_TOAST")}}}}};_.Ss().resolve(_.xk).resolveCommand(q);_.Uh(J)})};
Li[y0]=[fH];var r9=function(e,g){this.innertubeTransportService=e;this.JSC$18032_commandHandler=g};
_.Y(r9,jd);r9.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R,W,b,h;return _.r(function(X){if(X.nextAddress==1)return(k=_.x(e,_.DU))?X.yield(_.jt(c.innertubeTransportService,e,(I=g)==null?void 0:I.form),2):X.return();(J=X.yieldResult)&&J.errorMetadata&&(q=J,L=_.so(q.error.message),c.JSC$18032_commandHandler.resolveCommand(L));n=J;if((R=n)==null?0:R.actions)for(W=_.w(n.actions),b=W.next();!b.done;b=W.next())h=b.value,c.JSC$18032_commandHandler.resolveCommand(h);_.Uh(X)})};
r9[y0]=[_.kv,_.xk];var ab=function(){};
_.Y(ab,jd);ab.prototype.resolveCommand=function(e){var g;return _.r(function(c){g=_.x(e,Yek);if(!g)return c.return();(new gjw(g)).show();_.Uh(c)})};_.ni=new _.AU("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Rb=function(e,g,c,k){this.store=e;this.innertubeTransportService=g;this.controller=c;this.JSC$18040_commandHandler=k};
_.Y(Rb,jd);
Rb.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y,O,Jq,LC,bW,RA,Xg;return _.r(function(Fg){if(Fg.nextAddress==1){k=_.x(e,_.bp);if(!k)return Fg.return();if(k.clientActions){I=_.w(k.clientActions);for(J=I.next();!J.done;J=I.next())q=J.value,c.JSC$18040_commandHandler.resolveCommand(q,g);var oA,Zt=g==null?void 0:(oA=g.form)==null?void 0:oA.element;Zt&&_.oC(Zt,"yt-dismissible-item-action",k.clientActions)}return Fg.yield(_.jt(c.innertubeTransportService,e,(L=
g)==null?void 0:L.form),2)}if(n=Fg.yieldResult)n.errorMetadata?(R=n,W=_.so(R.error.message),c.JSC$18040_commandHandler.resolveCommand(W),"error"in n&&((b=g)==null?0:(h=b.commandController)==null?0:h.onServerError)&&((X=g)==null||(D=X.commandController)==null||D.onServerError(e,n))):(f=g)==null||(l=f.commandController)==null||(d=(A=l).onSuccess)==null||d.call(A,e,n);S=n;((V=S)==null?0:V.collaborationInviteLink)&&k.playlistId&&(_.G("web_enable_invite_collaborators_link")||_.G("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
c.store.dispatch(_.Hh({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:k.playlistId,inviteLinkUrl:S.collaborationInviteLink}}));((Q=S)==null?0:Q.redirectEndpoint)&&c.JSC$18040_commandHandler.resolveCommand(S.redirectEndpoint);((y=S)==null?0:(O=y.newHeader)==null?0:O.playlistHeaderRenderer)?rdj(c.controller,S.newHeader.playlistHeaderRenderer):((Jq=S)==null?0:(LC=Jq.newHeader)==null?0:LC.musicEditablePlaylistDetailHeaderRenderer)&&rdj(c.controller,S.newHeader.musicEditablePlaylistDetailHeaderRenderer);
c.controller.playlistVideoListElement&&((bW=S)==null?0:(RA=bW.playlistEditResults)==null?0:(Xg=RA[0])==null?0:Xg.playlistEditVideoAddedResultData)&&((Zt=c.controller.playlistVideoListElement)==null||Zt.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:S.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Uh(Fg)})};
Rb[y0]=[_.EO,_.kv,_.ni,_.xk];var Ek=function(e,g){this.controller=e;this.JSC$18050_commandHandler=g};
_.Y(Ek,jd);Ek.prototype.resolveCommand=function(e,g){var c=this,k,I,J;return _.r(function(q){k=_.x(e,usB);c.controller.showRefreshPill&&((I=k)==null?0:I.command)&&(c.JSC$18050_commandHandler.resolveCommand((J=k)==null?void 0:J.command,g),c.controller.showRefreshPill=!1);_.Uh(q)})};
Ek[y0]=[_.Sf,_.xk];var W5=function(e,g){this.store=e;this.JSC$18054_commandHandler=g||_.yJ.instance};
_.Y(W5,jd);W5.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R,W,b,h;return _.r(function(X){k=_.x(e,KG1);I=c.store.getState().radioButtonGroup;if((J=k)==null?0:J.command)c.JSC$18054_commandHandler.resolveCommand((q=k)==null?void 0:q.command,g);else if(I&&((L=k)==null?void 0:L.formId)===I.currentFormId)for(n=Object.values(I.commandsMap),R=_.w(n),W=R.next();!W.done;W=R.next())b=W.value,(h=_.WT(b))&&c.JSC$18054_commandHandler.resolveCommand(h,g);_.Uh(X)})};
W5[y0]=[_.EO];var b8=new _.AU("USER_PREFS");var h6=function(e){this.JSC$18059_prefCookie=e};
_.Y(h6,jd);h6.prototype.resolveCommand=function(e){var g=this,c;return _.r(function(k){(c=_.x(e,WGk))&&typeof c.useListView==="boolean"&&(_.kn(0,155,c.useListView),g.JSC$18059_prefCookie.save());_.Uh(k)})};
h6[y0]=[b8];var XT=function(e){this.JSC$18063_prefCookie=e};
_.Y(XT,jd);XT.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q;return _.r(function(L){c=_.x(e,izB);if((k=c)==null||!k.gl)return L.return();I=c.gl;J={persist_gl:"1",gl:I};g.JSC$18063_prefCookie.set("gl",I);g.JSC$18063_prefCookie.save();q=JuW(J);_.Gb(q);_.Uh(L)})};
XT[y0]=[b8];var GY=function(e){this.JSC$18067_prefCookie=e};
_.Y(GY,jd);GY.prototype.resolveCommand=function(e){var g=this,c,k;return _.r(function(I){c=_.x(e,zDw);if(!c)return I.return();k=!1;c.flagNum&&typeof c.value==="boolean"?(_.kn(0,c.flagNum,c.value),k=!0):c.key&&typeof c.stringValue==="string"&&(g.JSC$18067_prefCookie.set(c.key,c.stringValue),k=!0);k&&g.JSC$18067_prefCookie.save();_.Uh(I)})};
GY[y0]=[b8];var x0=new _.AU("PREF_STORAGE_PROMISE_TOKEN");var Dl=function(e){this.JSC$18071_prefStoragePromise=e};
_.Y(Dl,jd);Dl.prototype.resolveCommand=function(e){var g=this,c,k;return _.r(function(I){if(I.nextAddress==1)return(c=_.x(e,QTM))?I.yield(g.JSC$18071_prefStoragePromise,2):I.return();k=I.yieldResult;return k===void 0||c.key===void 0||c.value===void 0?I.return():I.yield(k.set(c.key,c.value),0)})};
Dl[y0]=[x0];var $0=function(e){this.innertubeTransportService=e};
_.Y($0,jd);$0.prototype.resolveCommand=function(e,g){var c=this,k,I;return _.r(function(J){(k=_.x(e,_.CZM))&&k&&k.isFirstRequest&&(_.EV("search_overview_answer"),_.Wh("so_rq",void 0,"search_overview_answer"));return J.yield(_.jt(c.innertubeTransportService,e,(I=g)==null?void 0:I.form),0)})};
$0[y0]=[_.kv];var aMz=function(){};
_.Y(aMz,jd);
aMz.prototype.resolveCommand=function(e){var g,c,k,I,J,q,L,n,R;return _.r(function(W){g=_.x(e,KAq);if((c=g)==null?0:c.sectionIdentifier){if(g.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(I=(k=document.getElementsByTagName(g.sectionIdentifier))==null?void 0:k.item(0))I.scrollIntoView({behavior:"smooth"}),(J=Q6e(I))&&J.focus({preventScroll:!0});return W.return()}q=document.querySelector("[section-identifier="+g.sectionIdentifier+"]");L=document.querySelector("[section-identifier="+g.referenceSectionIdentifier+
"]");if(!q)return W.return();n=g.verticalScrollOffsetDp?g.verticalScrollOffsetDp:0;L&&(n-=L.offsetTop);window.scrollTo({top:q.offsetTop+n,behavior:"smooth"});(R=Q6e(q))&&R.focus({preventScroll:!0})}_.Uh(W)})};var Y0=function(e){this.JSC$18083_commandHandler=e};
_.Y(Y0,jd);
Y0.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n;return _.r(function(R){if(R.nextAddress==1){c=_.x(e,$Tq);if(!c||!c.imageBytes||!navigator.clipboard)return R.return();if(c.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.jW(Error("Ii")),R.return();_.lj(R,2);I=(k=c)==null?void 0:k.imageBytes;J=I.replace(/-/g,"+").replace(/_/g,"/");q=QaW(J);L={};n=[new ClipboardItem((L[q.type]=q,L))];return R.yield(navigator.clipboard.write(n),4)}if(R.nextAddress!=2)return c.successCommand&&
g.JSC$18083_commandHandler.resolveCommand(c.successCommand),_.zn(R,0);_.Qb(R);c.errorCommand&&g.JSC$18083_commandHandler.resolveCommand(c.errorCommand);_.Uh(R)})};
Y0[y0]=[_.xk];var fi=function(e,g){this.innertubeTransportService=e;this.JSC$18087_commandHandler=g};
_.Y(fi,jd);fi.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L;return _.r(function(n){if(n.nextAddress==1)return(k=_.x(e,Ycw))?n.yield(_.jt(c.innertubeTransportService,e,(I=g)==null?void 0:I.form),2):n.return();(J=n.yieldResult)&&J.errorMetadata&&k.onFailureCommand&&c.JSC$18087_commandHandler.resolveCommand(k.onFailureCommand);q=J;((L=q)==null?0:L.shareCommand)&&c.JSC$18087_commandHandler.resolveCommand(q.shareCommand,g);_.Uh(n)})};
fi[y0]=[_.kv,_.xk];var jy=function(){};
_.Y(jy,jd);jy.prototype.resolveCommand=function(e){var g,c;return _.r(function(k){g=_.x(e,ADn);if(!g||!navigator.share)return k.return();c={url:g.url};try{return k.return(navigator.share(c))}catch(I){}_.Uh(k)})};var i8=function(){};
_.Y(i8,jd);i8.prototype.resolveCommand=function(){return _.r(function(e){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Uh(e)})};var P5=function(e){this.JSC$18097_navigationConfirmationService=e};
_.Y(P5,jd);P5.prototype.resolveCommand=function(){var e=this;return _.r(function(g){e.JSC$18097_navigationConfirmationService.cancelPendingNavigation();_.Uh(g)})};
P5[y0]=[gC];var mc=function(e){this.JSC$18100_screenManager=e};
_.Y(mc,jd);mc.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R;return _.r(function(W){I=(k=g.form)==null?void 0:k.event;q=(J=g.form)==null?void 0:J.element;if(!I)throw new _.E2("Event not passed in when resolving command");L=_.w(I.composedPath());for(n=L.next();!n.done;n=L.next())if(R=n.value,R.tagName==="YT-COPY-LINK-RENDERER")return R.copyUrlToClipboard(),q&&_.$y(c.JSC$18100_screenManager,q),W.return();_.Uh(W)})};
mc[y0]=[_.I5];var pi=function(){this.JSC$18104_miniAppClientDataProvider=_.Ss().resolve(_.uJ)};
_.Y(pi,jd);pi.prototype.resolveCommand=function(){var e=this,g,c;return _.r(function(k){if(e.JSC$18104_miniAppClientDataProvider.clientData.has("video_id")){var I=e.JSC$18104_miniAppClientDataProvider,J=I.clientData.get("video_id");J&&I.clientData.delete("video_id");g="https://youtube.com/watch?v="+J;c=_.Sa(g);if(c===void 0)throw Error("Ji`"+g);_.q5(window,c)}_.Uh(k)})};var TY=function(){};
_.Y(TY,jd);TY.prototype.resolveCommand=function(){return _.r(function(e){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Uh(e)})};var l8=function(){};
_.Y(l8,jd);l8.prototype.resolveCommand=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield(_.MD6(window.document.documentElement),2);(e=document.querySelector("mini-app-container-view-model iframe"))&&e.focus();_.Uh(g)})};var A6=function(e){this.JSC$18111_navigationConfirmationService=e};
_.Y(A6,jd);
A6.prototype.resolveCommand=function(){var e=this;return _.r(function(g){var c=e.JSC$18111_navigationConfirmationService,k=_.Ss().resolve(_.yq),I;if(((I=c.navigateParams)==null?void 0:I.data)!==void 0){var J;_.n$Y(k,c.navigateParams.endpoint,c.navigateParams.data,(J=c.navigateParams.navigationType)!=null?J:1,c.navigateParams.tempData,c.navigateParams.isMiniplayer,void 0,!0);c.navigateParams=void 0;c.customConfirmationCommand=void 0}else c.navigateParams&&(k.navigate(c.navigateParams.endpoint,c.navigateParams.reload,
c.navigateParams.params,c.navigateParams.tempData,c.navigateParams.requestType,c.navigateParams.createScreenConfig,!0),c.navigateParams=void 0,c.customConfirmationCommand=void 0);_.Uh(g)})};
A6[y0]=[gC];var sk=function(){};
_.Y(sk,jd);sk.prototype.resolveCommand=function(){return _.r(function(e){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Uh(e)})};var FT=function(e){this.JSC$18116_prefStorage=e};
_.Y(FT,jd);FT.prototype.resolveCommand=function(){var e=this,g,c;return _.r(function(k){switch(k.nextAddress){case 1:return k.yield(e.JSC$18116_prefStorage,2);case 2:return(g=k.yieldResult)?k.yield(g.set("sfvle",!1),3):k.return();case 3:return k.yield(g.set("sfvles",!0),4);case 4:c=_.ch(),_.kn(0,203,!1),_.kn(0,204,!0),c.save(),_.Uh(k)}})};
FT[y0]=[x0];var u8=function(e){this.JSC$18119_prefStorage=e};
_.Y(u8,jd);u8.prototype.resolveCommand=function(){var e=this,g,c;return _.r(function(k){switch(k.nextAddress){case 1:return k.yield(e.JSC$18119_prefStorage,2);case 2:return(g=k.yieldResult)?k.yield(g.set("sfvle",!0),3):k.return();case 3:return k.yield(g.set("sfvles",!0),4);case 4:c=_.ch(),_.kn(0,203,!0),_.kn(0,204,!0),c.save(),_.Uh(k)}})};
u8[y0]=[x0];_.nU7=new _.AU("SNACKBAR_CONTROLLER_TOKEN");_.Rhl=new _.AU("SHOULD_SHOW_PIVOT_BAR_TOKEN");var d9=function(e){this.controller=e};
_.Y(d9,jd);d9.prototype.resolveCommand=function(e){var g=this,c;return _.r(function(k){c=_.x(e,dTs);if(!c)return k.return();var I=g.controller;I.closeSnackbarFn&&I.closeSnackbarFn();_.Uh(k)})};
d9[y0]=[_.nU7];var zY=function(e,g){this.controller=e;this.JSC$18126_sheetController=g};
_.Y(zY,jd);zY.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n;return _.r(function(R){k=_.x(e,H3n);if(!k)return R.return();q=C1q(c.JSC$18126_sheetController,(I=g)==null?void 0:(J=I.form)==null?void 0:J.element);L=_.x(k.content,CUI);if(!L)return R.return();var W=c.controller,b=L,h=(n=k.animationStyle)!=null?n:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(W.showSnackbarFn)W.showSnackbarFn({snackbarViewModel:b,animationStyle:h,durationMs:k.durationSeconds*1E3,target:q});else throw Error("Dj");_.Uh(R)})};
zY[y0]=[_.nU7,_.rC];var H5=function(){};
_.Y(H5,jd);H5.prototype.resolveCommand=function(e){var g;return _.r(function(c){g=_.x(e,Hzk);if(!g||typeof g.key!=="string"||typeof g.value!=="string")return c.return();window.localStorage.setItem(g.key,g.value);_.Uh(c)})};var Q_=function(e){this.store=e};
_.Y(Q_,jd);Q_.prototype.resolveCommand=function(e){var g=this,c;return _.r(function(k){c=_.x(e,HKq);if(!c||!c.stepId||!c.token)return k.return();g.store.dispatch(AGM({stepId:c.stepId,token:c.token,isSelected:!1}));_.Uh(k)})};
Q_[y0]=[fH];var Uk=function(e,g,c){this.innertubeTransportService=e;this.store=g;this.JSC$18138_screenManager=c};
_.Y(Uk,jd);
Uk.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y,O,Jq,LC,bW,RA,Xg,Fg;return _.r(function(oA){c=_.x(e,pkM);if(!c||(k=c.stepIds)==null||!k.length)return oA.return();I=g.store.getState().talkToRecs;J=[];q=[];L=_.w(c.stepIds);for(n=L.next();!n.done;n=L.next())for(R=n.value,W=void 0,(b=(W=I.stepStates[R])==null?void 0:W.userQuery)&&q.push({userQuery:c.submitEmptyUserQuery?"":b.userQuery,userQueryToken:b.token}),X=h=void 0,D=(X=(h=I.stepStates[R])==null?void 0:
h.selectionStates)!=null?X:{},f=_.w(Object.entries(D)),l=f.next();!l.done;l=f.next())A=l.value,d=_.w(A),S=d.next().value,V=d.next().value,Q=S,y=V,y.isSelected&&J.push(Q);O={selectedChipTokens:J,userQueries:q,submittedStepIds:c.stepIds};Jq={browseTalk2recsFormData:O};c.browseEndpoint?(LC=e,_.rL(LC,_.KU,c.browseEndpoint)):c.command&&(LC=c.command);if(!LC)return oA.return();bW=_.x(LC,_.b6);if((RA=bW)==null?0:RA.command)if(Xg=_.x(bW.command,Pbu))Fg=_.yJ.instance,Fg.resolveCommand(bW.command);return oA.yield(_.jt(g.innertubeTransportService,
LC,{formData:Jq,disableCache:!0}).then(function(Zt){(Zt==null?0:Zt.trackingParams)&&g.JSC$18138_screenManager.graftServerVe(Zt==null?void 0:Zt.trackingParams)}),0)})};
Uk[y0]=[_.kv,fH,_.I5];var ob=function(e){this.store=e};
_.Y(ob,jd);
ob.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n,R;return _.r(function(W){c=_.x(e,zSp);if(!c||!c.stepId)return W.return();if(c.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")q=(J=(k=g.store.getState().talkToRecs.stepStates[c.stepId])==null?void 0:(I=k.userQuery)==null?void 0:I.userQuery)!=null?J:"",L=q.length>0?". ":"",n=q+L+c.selectedText,g.store.dispatch(sEw({stepId:c.stepId,userQueryToken:"",userQuery:n}));else if(c.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")g.store.dispatch(sEw({stepId:c.stepId,userQueryToken:"",
userQuery:(R=c.selectedText)!=null?R:""}));else{if(!c.token)return W.return();g.store.dispatch(AGM({stepId:c.stepId,token:c.token,isSelected:!0}))}_.Uh(W)})};
ob[y0]=[fH];var Zl=function(e){this.store=e};
_.Y(Zl,jd);Zl.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n;return _.r(function(R){k=_.x(e,Tx1);if(!k||!k.stepId)return R.return();L=(q=(I=g)==null?void 0:(J=I.form)==null?void 0:J.userQuery)!=null?q:"";c.store.dispatch(sEw({stepId:k.stepId,userQuery:L,userQueryToken:(n=k.userQueryToken)!=null?n:""}));_.Uh(R)})};
Zl[y0]=[fH];_.EUO=new _.AU("TIMELY_ACTIONS_CONTROLLER_TOKEN");var V_=function(e){this.controller=e};
_.Y(V_,jd);V_.prototype.resolveCommand=function(e){var g=this,c,k,I,J;return _.r(function(q){c=_.x(e,NBM);if(!c)return q.return();k=c;I=k.id;J=k.isVisible;if(I===void 0||J===void 0)return q.return();var L;(L=g.controller.timelyActionsMap.get(I))==null||L(I,J);_.Uh(q)})};
V_[y0]=[_.EUO];var WqS=function(){this.timelyActionsMap=new Map};var t6=function(e){this.JSC$18164_commandHandler=e};
_.Y(t6,jd);t6.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q;return _.r(function(L){c=_.x(e,_.etI);if(!c)return L.return();J=(k=c.item)==null?void 0:(I=k.notificationTextRenderer)==null?void 0:I.successResponseText;if(!J)return L.return();q=_.Aw(J);g.JSC$18164_commandHandler.resolveCommand(q);_.Uh(L)})};
t6[y0]=[_.xk];var B5=function(e,g){this.innertubeTransportService=e;this.JSC$18169_playerApiPromise=g};
_.Y(B5,jd);
B5.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n,R,W;return _.r(function(b){if(b.nextAddress==1)return b.yield(g.JSC$18169_playerApiPromise,2);c=b.yieldResult;k=c.getOption("captions","track");I=Object.assign({},_.x(e,_.wnI));(q=(J=c.getVideoData())==null?void 0:J.video_id)?I.externalVideoId=q:_.UI(Error("Ki"));if((L=k)==null?0:L.languageCode)I.languageCode=k.languageCode;if((n=k)==null?0:n.kind)I.kind=k.kind;if((R=k)==null?0:R.name)I.name=k.name;W=Object.assign({},e,{getTranscriptEndpoint:I});return b.yield(_.jt(g.innertubeTransportService,
W),0)})};
B5[y0]=[_.kv,_.QF];var Nv=function(){};
_.Y(Nv,jd);Nv.prototype.resolveCommand=function(e){var g,c,k,I,J,q,L,n;return _.r(function(R){g=_.x(e,yD1);if((c=g)==null||!c.paramKeyValuePairs)return R.return();k=window.location.href;I=_.w(g.paramKeyValuePairs);for(J=I.next();!J.done;J=I.next())q=J.value,q.key&&q.value&&(L={},k=_.t_(k,(L[q.key]=q.value,L)));n=_.Ss().resolve(_.Oc);_.K3(n,k);_.Uh(R)})};_.Sy=new _.AU("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var y_=function(e,g,c,k){this.controller=e;this.JSC$18176_playerApiPromise=g;this.innertubeTransportService=c;this.JSC$18176_commandHandler=k};
_.Y(y_,jd);
y_.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S;return _.r(function(V){if(V.nextAddress==1){c=_.x(e,XIw);if((k=c)==null||!k.watchEndpoint)return V.return();I=new Ob;J=I.JSC$14488_getRequest(c.watchEndpoint);if(!J)return V.return();q=c.watchEndpoint.clickTrackingParams;return V.yield(_.Yq(g.innertubeTransportService,J.innerTubeRequest,J.input,q,J.config),2)}if(V.nextAddress!=3)return L=V.yieldResult,V.yield(g.JSC$18176_playerApiPromise,3);n=V.yieldResult;n.updateVideoData({raw_watch_next_response:L});
if(D=(R=L)==null?void 0:(W=R.contents)==null?void 0:(b=W.twoColumnWatchNextResults)==null?void 0:(h=b.results)==null?void 0:(X=h.results)==null?void 0:X.contents)l=(f=D.find(function(Q){return Q.videoPrimaryInfoRenderer}))==null?void 0:f.videoPrimaryInfoRenderer,((A=l)==null?0:A.subtitle)&&b0S(g.controller,l.subtitle);
(S=(d=L)==null?void 0:d.onUiReady)&&g.JSC$18176_commandHandler.resolveCommand(S);_.Uh(V)})};
y_[y0]=[_.Sy,_.QF,_.kv,_.xk];var hhD=function(){this.subtitleChangeCallbackMap=new Map},b0S=function(e,g){e=_.w(e.subtitleChangeCallbackMap.values());
for(var c=e.next();!c.done;c=e.next())c=c.value,c(g)};var Ki=function(e,g){this.JSC$18186_commandHandler=e;this.innertubeTransportService=g};
_.Y(Ki,jd);
Ki.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S;return _.r(function(V){switch(V.nextAddress){case 1:return(J=(k=g)==null?void 0:(I=k.form)==null?void 0:I.element)&&_.jl(J),q=_.ch().get("hl"),L="",_.lj(V,2),V.yield(LJ8(q),4);case 4:L=V.yieldResult;_.zn(V,3);break;case 2:return _.Qb(V),J&&_.iQ(J),_.jW(Error("Mi"),"ERROR"),V.return();case 3:n=_.x(e,TCZ);if(!n)return J&&_.iQ(J),V.return();(b=(R=n.commerceActionConfig)==null?void 0:(W=R.commandLifeCycleConfig)==null?
void 0:W.onStartCommand)&&c.JSC$18186_commandHandler.resolveCommand(b);return V.yield(_.jt(c.innertubeTransportService,e,{client_data:{paymentsClientToken:{token:L}}}),5);case 5:(h=V.yieldResult)?(J&&_.iQ(J),((l=h)==null?0:l.command)&&c.JSC$18186_commandHandler.resolveCommand(h.command),(S=(A=n.commerceActionConfig)==null?void 0:(d=A.commandLifeCycleConfig)==null?void 0:d.onSuccessCommand)&&c.JSC$18186_commandHandler.resolveCommand(S)):(J&&_.iQ(J),_.jW(Error("Ni")),(f=(X=n.commerceActionConfig)==
null?void 0:(D=X.commandLifeCycleConfig)==null?void 0:D.onFailureCommand)&&c.JSC$18186_commandHandler.resolveCommand(f)),_.Uh(V)}})};
Ki[y0]=[_.xk,_.kv];var Ok=function(e,g,c){this.store=e;this.JSC$18202_commandHandler=g;this.innertubeTransportService=c};
_.Y(Ok,jd);
Ok.prototype.resolveCommand=function(e,g){var c=this,k,I,J,q,L,n,R,W,b;return _.r(function(h){k=_.x(e,lRn);I=k.googlePaymentPayload;k.onStartCommand&&c.JSC$18202_commandHandler.resolveCommand(k.onStartCommand);J=I.encryptedPurchaseParams;q=I.ypcLogWalletAnalyticDataEndpoint;L=k.serializedTransactionFlowLoggingParams;n=I.serializedPaymentsClientParams;R=k.ypcCujContext;b=n56(c.innertubeTransportService,(W=g)==null?void 0:W.form,J,q,L,n,R);return h.return(b.then(function(X){rIt(g==null?void 0:g.form,
!1);var D=c.store,f=c.JSC$18202_commandHandler,l=X.integratorData;l==null||l===""||X.error!=null?(String(X.error)==="-1"&&k.onDismissCommand?f.resolveCommand(k.onDismissCommand):String(X.error)!=="-1"&&k.onFailureCommand&&f.resolveCommand(k.onFailureCommand),String(X.error)!=="-1"&&String(X.error)!=="132"&&_.jW(Error("Oi"),"ERROR")):(k.googlePaymentEntityKey&&D.dispatch(_.cY("commerceAcquisitionClientPayloadEntity",k.googlePaymentEntityKey,{key:k.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:l,
fundsGuaranteeCallbackClientData:X.integratorClientCallbackData}}})),k.onSuccessCommand&&f.resolveCommand(k.onSuccessCommand));_.No()},function(X){rIt(g==null?void 0:g.form,!1);
_.jW(X,"ERROR");k.onFailureCommand&&c.JSC$18202_commandHandler.resolveCommand(k.onFailureCommand)}))})};
Ok[y0]=[V5,_.xk,_.kv];var Mv=function(e,g){this.JSC$18206_commandHandler=e;this.purchaseManager=g};
_.Y(Mv,jd);
Mv.prototype.resolveCommand=function(e){var g=this,c,k,I,J,q,L,n,R,W;return _.r(function(b){c=_.x(e,ATw);((k=c)==null?0:(I=k.commandLifeCycleConfig)==null?0:I.onStartCommand)&&g.JSC$18206_commandHandler.resolveCommand(c.commandLifeCycleConfig.onStartCommand);if(!((J=c)==null?0:(q=J.googlePaymentPurchaseManagerPayload)==null?0:q.securePayloadBytes))return _.jW(Error("Pi"),"ERROR"),b.return();L=AbB(_.CC(c.googlePaymentPurchaseManagerPayload.securePayloadBytes));n=_.ch().get("hl");R=_.i6();cvQ(L.serialize(),
n,function(h){R.resolve(h)},function(h){R.reject(h)},R.resolve);
W=R.promise;return b.return(W.then(function(h){if(h)if(h==null?0:h.errorCode){_.jW(Error("Qi`"+h.errorCode),"ERROR");var X,D;((X=c)==null?0:(D=X.commandLifeCycleConfig)==null?0:D.onFailureCommand)&&g.JSC$18206_commandHandler.resolveCommand(c.commandLifeCycleConfig.onFailureCommand)}else if(h==null?0:h.isCancelled){var f,l;((f=c)==null?0:(l=f.commandLifeCycleConfig)==null?0:l.onCancelCommand)&&g.JSC$18206_commandHandler.resolveCommand(c.commandLifeCycleConfig.onCancelCommand)}else{var A,d;((A=c)==
null?0:(d=A.commandLifeCycleConfig)==null?0:d.onSuccessCommand)&&g.JSC$18206_commandHandler.resolveCommand(c.commandLifeCycleConfig.onSuccessCommand)}},function(h){_.jW(h,"ERROR");
var X,D;((X=c)==null?0:(D=X.commandLifeCycleConfig)==null?0:D.onFailureCommand)&&g.JSC$18206_commandHandler.resolveCommand(c.commandLifeCycleConfig.onFailureCommand)}))})};
Mv[y0]=[_.xk,k67];var XH7=function(e,g){this.JSC$18214_commandHandler=e;this.commandAllowlistOverride=g;var c;this.commandAllowlist=(c=this.commandAllowlistOverride)!=null?c:K9V};
XH7.prototype.handleResponse=function(e,g,c){var k,I=g==null?void 0:(k=g.config)==null?void 0:k.command;if(!I||this.commandAllowlist.some(function(J){return!!_.x(I,J)})){g=void 0;
c!==void 0&&(g={form:{element:c}});e.onResponseReceivedCommand&&this.JSC$18214_commandHandler.resolveCommand(e.onResponseReceivedCommand,g);e.onResponseReceivedAction&&this.JSC$18214_commandHandler.resolveCommand(e.onResponseReceivedAction,g);e.onResponseReceivedEndpoint&&this.JSC$18214_commandHandler.resolveCommand(e.onResponseReceivedEndpoint,g);e.command&&this.JSC$18214_commandHandler.resolveCommand(e.command,g);if(e.onResponseReceivedCommands)for(c=_.w(e.onResponseReceivedCommands),k=c.next();!k.done;k=
c.next())this.JSC$18214_commandHandler.resolveCommand(k.value,g);if(e.onResponseReceivedActions)for(c=_.w(e.onResponseReceivedActions),k=c.next();!k.done;k=c.next())this.JSC$18214_commandHandler.resolveCommand(k.value,g);if(e.onResponseReceivedEndpoints)for(c=_.w(e.onResponseReceivedEndpoints),k=c.next();!k.done;k=c.next())this.JSC$18214_commandHandler.resolveCommand(k.value,g);if(e.actions)for(e=_.w(e.actions),c=e.next();!c.done;c=e.next())this.JSC$18214_commandHandler.resolveCommand(c.value,g)}};
XH7[y0]=[_.xk,_.NN(yQt)];var G1O=new _.AU("INNERTUBE_TOKEN_SERVICE");var xao=new _.AU("SCHEDULER_TOKEN");var Daj=function(e){this.scheduler=e;e={};this.tokenMap=(e.app={},e.user={},e)};
Daj.prototype.handleResponse=function(e,g){if(!g)throw Error("Ri");var c;if(e=(c=e.responseContext)==null?void 0:c.innertubeTokenJar){if(e.appTokens){var k,I,J;c=(k=g.innerTubeRequest.context)==null?void 0:(I=k.request)==null?void 0:(J=I.innertubeTokenJar)==null?void 0:J.appTokens;$aj(this,e.appTokens,this.tokenMap.app,c)}if(e.userTokens){var q,L,n;g=(q=g.innerTubeRequest.context)==null?void 0:(L=q.request)==null?void 0:(n=L.innertubeTokenJar)==null?void 0:n.userTokens;$aj(this,e.userTokens,this.tokenMap.user,
g)}}};
Daj.prototype.processContext=function(e){e.request||(e.request={});var g=Object.keys(this.tokenMap.app).length,c=Object.keys(this.tokenMap.user).length;if(g||c)e.request.innertubeTokenJar={},g&&(e.request.innertubeTokenJar.appTokens=[].concat(_.KY(Object.values(this.tokenMap.app).flat()))),c&&(e.request.innertubeTokenJar.userTokens=[].concat(_.KY(Object.values(this.tokenMap.user).flat())))};
var $aj=function(e,g,c,k){g=_.w(g);for(var I=g.next(),J={};!I.done;J={token$jscomp$139:void 0},I=g.next()){J.token$jscomp$139=I.value;if(J.token$jscomp$139.type===void 0)throw new _.E2("InnerTube token has no type",J.token$jscomp$139);if(J.token$jscomp$139.clearTokens)c[J.token$jscomp$139.type]=[];else if(J.token$jscomp$139.value!==void 0){c[J.token$jscomp$139.type]||(c[J.token$jscomp$139.type]=[]);if(k!==void 0&&k.length){I=_.w(k);for(var q=I.next(),L={};!q.done;L={requestToken:void 0},q=I.next())L.requestToken=
q.value,q=c[J.token$jscomp$139.type].findIndex(function(n){return function(R){return R===n.requestToken||(0,_.n0.equals)(R,n.requestToken)}}(L)),q>-1&&c[J.token$jscomp$139.type].splice(q,1)}c[J.token$jscomp$139.type].push(J.token$jscomp$139);
J.token$jscomp$139.maxAgeSeconds&&Number(J.token$jscomp$139.maxAgeSeconds)>0&&e.scheduler.addLowPriorityJob(function(n){return function(){var R=c[n.token$jscomp$139.type].indexOf(n.token$jscomp$139);R>-1&&c[n.token$jscomp$139.type].splice(R,1)}}(J),Number(J.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.E2("InnerTube token has no value",J.token$jscomp$139);
}};
Daj[y0]=[xao];var Y5q=new _.AU("LOCAL_INNERTUBE_ROUTER_TOKEN"),fM0=new _.AU("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Ci=function(e){this.serviceMap=e};
Ci.prototype.shouldPreferLocalResponse=function(e,g){return(e=j4q(this,e))?e.shouldPreferLocalResponse(g):!1};
Ci.prototype.localInnertubeResponse=function(e,g){var c=this,k;return _.r(function(I){return(k=j4q(c,e))?I.return(k.localInnertubeResponse(g)):I.return(Promise.reject(Error("Si")))})};
Ci.prototype.canProvideFallbackResponse=function(e,g){return(e=j4q(this,e))?e.canProvideFallbackResponse(g):!1};
Ci.prototype.localFallbackInnertubeResponse=function(e,g){var c=this,k;return _.r(function(I){return(k=j4q(c,e))?I.return(k.localFallbackInnertubeResponse(g)):I.return(Promise.reject(Error("Si")))})};
var j4q=function(e,g){g=_.tv(g);return g?(e=e.serviceMap[g])?e:null:null};
Ci[y0]=[fM0];var qe=function(){};
qe.prototype.shouldPreferLocalResponse=function(){return!1};
qe.prototype.localInnertubeResponse=function(){return _.r(function(e){return e.return(Promise.reject(Error("Ti")))})};
qe.prototype.canProvideFallbackResponse=function(){return!0};
qe.prototype.localFallbackInnertubeResponse=function(){var e,g,c;return _.r(function(k){e=KV("CLOSE_POPUP");g={openPopupAction:E5K()};c={actions:[e,g]};return k.return(c)})};var mjC=function(e,g){this.JSC$18263_upliftPromise=e;this.store=g};
_.v=mjC.prototype;_.v.shouldPreferLocalResponse=function(e){var g=e.videoId,c;if(c=g)c=Uwv(this.store.getState().entities,e.videoId);return c&&o3v(this.store.getState().entities,g)?bGA(this.store.getState().entities,e.playlistId):!1};
_.v.localInnertubeResponse=function(e){var g=this,c;return _.r(function(k){return(c=g.getPlayerResponse(e))?k.return(Promise.resolve(c)):k.return(Promise.reject(Error("Ui")))})};
_.v.canProvideFallbackResponse=function(e){return!!e.videoId};
_.v.localFallbackInnertubeResponse=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(g.JSC$18263_upliftPromise,2);c=g.getPlayerResponse(e);var I;c?I=k.return(Promise.resolve(c)):I=Jw(g.store.getState().entities,e.videoId)?k.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.uB(_.C_("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:hnK()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
k.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.uB(_.C_("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:bDA()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return I})};
_.v.getPlayerResponse=function(e){return Esz(this.store.getState().entities,e.videoId)};var wl=function(e,g){this.localPlayerService=e;this.localWatchNextService=g};
wl.prototype.shouldPreferLocalResponse=function(e){var g=e.playerRequest;e=e.watchNextRequest;return!!(g&&this.localPlayerService.shouldPreferLocalResponse(g)&&e&&this.localWatchNextService.shouldPreferLocalResponse(e))};
wl.prototype.localInnertubeResponse=function(e){var g=this,c,k,I,J;return _.r(function(q){if(q.nextAddress==1){c=e.playerRequest;k=e.watchNextRequest;if(!c||!k)throw new _.E2("Missing streaming request",e);return q.yield(g.localPlayerService.localInnertubeResponse(c),2)}if(q.nextAddress!=3)return I=q.yieldResult,q.yield(g.localWatchNextService.localInnertubeResponse(k),3);J=q.yieldResult;return q.return({playerResponse:I,watchNextResponse:J})})};
wl.prototype.canProvideFallbackResponse=function(e){var g=e.playerRequest;e=e.watchNextRequest;return!!(g&&this.localPlayerService.canProvideFallbackResponse(g)&&e&&this.localWatchNextService.canProvideFallbackResponse(e))};
wl.prototype.localFallbackInnertubeResponse=function(e){var g=this,c,k,I,J;return _.r(function(q){if(q.nextAddress==1)return c=e.playerRequest,k=e.watchNextRequest,c&&k?q.yield(g.localPlayerService.localFallbackInnertubeResponse(c),2):q.return(Promise.reject(new _.E2("Missing streaming request",e)));if(q.nextAddress!=3)return I=q.yieldResult,q.yield(g.localWatchNextService.localFallbackInnertubeResponse(k),3);J=q.yieldResult;return q.return({playerResponse:I,watchNextResponse:J})})};var Id=function(e){this.JSC$18273_persistentStorePromiseAccessor=e};
Id.prototype.shouldPreferLocalResponse=function(){return!1};
Id.prototype.localInnertubeResponse=function(){return _.r(function(e){return e.return(Promise.reject(Error("Vi")))})};
Id.prototype.canProvideFallbackResponse=function(){return!0};
Id.prototype.localFallbackInnertubeResponse=function(){var e=this,g,c;return _.r(function(k){return k.nextAddress==1?k.yield(e.JSC$18273_persistentStorePromiseAccessor(),2):k.nextAddress!=3?(g=k.yieldResult)?k.yield(g.get("service:guide:fallback"),3):k.return(Promise.reject(Error("Wi"))):(c=k.yieldResult)&&_.om(c)?k.return(h1W(_.om(c))):k.return(Promise.reject(Error("Xi")))})};var Lu=function(){};
Lu.prototype.shouldPreferLocalResponse=function(){return!1};
Lu.prototype.localInnertubeResponse=function(){return _.r(function(e){return e.return(Promise.reject(Error("Yi")))})};
Lu.prototype.canProvideFallbackResponse=function(){return!0};
Lu.prototype.localFallbackInnertubeResponse=function(){var e,g,c;return _.r(function(k){e=KV("CLOSE_POPUP");g={openPopupAction:E5K()};c={actions:[e,g]};return k.return(c)})};var kt=function(){this.urlMap=i0D;this.fallbackCommand=_.cl};
kt.prototype.shouldPreferLocalResponse=function(e){return(e=e.url)?!!Pel(this,e):!1};
kt.prototype.localInnertubeResponse=function(e){var g=this,c;return _.r(function(k){return(c=e.url)?k.return(maz(e,Pel(g,c))):k.return(Promise.reject(Error("Zi")))})};
kt.prototype.canProvideFallbackResponse=function(){return!0};
kt.prototype.localFallbackInnertubeResponse=function(e){var g=this,c,k,I,J,q,L,n;return _.r(function(R){c=e.url;if(!c)return R.return(maz(e,g.fallbackCommand));if(k=Pel(g,c))return R.return(maz(e,k));I=void 0;J=_.tv(c);J==="/watch"&&(q=_.eQ(c,"v"))&&(n=(L=_.eQ(c,"list"))!=null?L:void 0,I=_.Fb(q,n));I||(I=g.fallbackCommand);return R.return(maz(e,I))})};
var Pel=function(e,g){if(g)return e.urlMap[_.Bc(g)]},maz=function(e,g){g&&e.parentTrackingParams&&(g.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:e.parentTrackingParams}},g.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:g})};var JA=function(e,g,c){this.JSC$18284_upliftPromise=e;this.store=g;this.JSC$18284_persistentStorePromiseAccessor=c};
JA.prototype.shouldPreferLocalResponse=function(){return!1};
JA.prototype.localInnertubeResponse=function(){return _.r(function(e){return e.return(Promise.reject(Error("$i")))})};
JA.prototype.canProvideFallbackResponse=function(){return!0};
JA.prototype.localFallbackInnertubeResponse=function(){var e=this;return _.r(function(g){return g.return(pHj(e))})};
var pHj=function(e){var g,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(UT(e.JSC$18284_upliftPromise,e.store),2);g=k.yieldResult;c={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[WJe(g)]}}}};return k.return(TNx(e,c))})},TNx=function(e,g){var c,k;
return _.r(function(I){if(I.nextAddress==1)return I.yield(e.JSC$18284_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3)return c=I.yieldResult,I.yield(ZZ(c),3);k=I.yieldResult;return I.return({responseContext:{},contents:g,topbar:k})})};var gl=function(e,g,c){this.JSC$18291_upliftPromise=e;this.store=g;this.JSC$18291_persistentStorePromiseAccessor=c};
gl.prototype.shouldPreferLocalResponse=function(e){var g=e.videoId;return g&&Uwv(this.store.getState().entities,g)&&o3v(this.store.getState().entities,g)?bGA(this.store.getState().entities,e.playlistId):!1};
gl.prototype.localInnertubeResponse=function(e){var g=this,c,k;return _.r(function(I){if(I.nextAddress==1)return(c=e.videoId)?I.yield(g.JSC$18291_upliftPromise,2):I.return(Promise.reject(Error("aj")));if(I.nextAddress!=3)return I.yield(lMz(g,e,c),3);k=I.yieldResult;return I.return(Adz(g,k,c))})};
gl.prototype.canProvideFallbackResponse=function(e){return e.videoId?!0:!1};
gl.prototype.localFallbackInnertubeResponse=function(e){var g=this,c,k,I,J;return _.r(function(q){switch(q.nextAddress){case 1:return(c=e.videoId)?q.yield(g.JSC$18291_upliftPromise,2):q.return(Promise.reject(Error("aj")));case 2:return q.yield(lMz(g,e,c),3);case 3:k=q.yieldResult;if(Jw(g.store.getState().entities,c)){q.jumpTo(4);break}return q.yield(UT(g.JSC$18291_upliftPromise,g.store),5);case 5:return I=q.yieldResult,q.return(s4g(k,I));case 4:return Uwv(g.store.getState().entities,c)&&o3v(g.store.getState().entities,
c)?q.return(Adz(g,k,c)):(J={title:_.uB(_.C_("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:hnK()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},q.return(s4g(k,J)))}})};
var lMz=function(e,g,c){var k,I,J,q,L;return _.r(function(n){if(n.nextAddress==1)return k=g.playlistId,I=_.Fb(c,k),n.yield(e.JSC$18291_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return J=n.yieldResult,n.yield(ZZ(J),3);q=n.yieldResult;L={responseContext:{},currentVideoEndpoint:I,topbar:q};return n.return(L)})},Adz=function(e,g,c){if(e=Jw(e.store.getState().entities,c)){var k;
c=e.videoEntity;var I,J={title:d$(c.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.zu((k=c.localizedStrings)==null?void 0:k.viewCount),viewCount:_.zu((I=c.localizedStrings)==null?void 0:I.viewCount)}}};c.publishedTimestampMillis&&(J.dateText=_.zu(dp6(new Date(Number(c.publishedTimestampMillis)))));k={videoPrimaryInfoRenderer:J};I=e.videoEntity;e=e.channelEntity;e={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:d$(_.C_("SHOW_MORE",void 0,"Show more")),
showLessText:d$(_.C_("SHOW_LESS",void 0,"Show less")),description:I.formattedDescription,owner:{videoOwnerRenderer:{title:d$(e.title),thumbnail:e.avatar}}}};g.contents={twoColumnWatchNextResults:{results:{results:{contents:[k,e]}}}}}return g},s4g=function(e,g){e.contents={singleColumnWatchNextResults:{results:{results:{contents:[WJe(g)]}}}};
return e};var v2=function(e,g,c){this.JSC$18296_upliftPromise=e;this.store=g;this.JSC$18296_persistentStorePromiseAccessor=c};
v2.prototype.shouldPreferLocalResponse=function(){return!1};
v2.prototype.localInnertubeResponse=function(){return _.r(function(e){return e.return(Promise.reject(Error("bj")))})};
v2.prototype.canProvideFallbackResponse=function(){return!0};
v2.prototype.localFallbackInnertubeResponse=function(){var e=this,g,c,k,I;return _.r(function(J){switch(J.nextAddress){case 1:return J.yield(e.JSC$18296_persistentStorePromiseAccessor(),2);case 2:return g=J.yieldResult,J.yield(ZZ(g),3);case 3:return c=J.yieldResult,k={responseContext:{},topbar:c},J.yield(e.JSC$18296_upliftPromise,4);case 4:return J.yield(UT(e.JSC$18296_upliftPromise,e.store),5);case 5:return I=J.yieldResult,k.watchStatus={backgroundPromoRenderer:I},J.return(k)}})};var Fql=new _.AU("ENDPOINT_MAP"),umg=new _.AU("WATCH_ENDPOINT_MAP"),dag=new _.AU("REEL_ENDPOINT_MAP");var Y$A=/^[a-zA-Z0-9_\-]{11}$/;var foq=_.n2(function(){var e,g;return(g=(e=window).matchMedia)==null?void 0:g.call(e,"(prefers-reduced-motion: reduce)").matches});var zho=_.n2(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 e=_.Q0("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");e||(e=_.C0("VIDEO"),_.BQ("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
e));return!!(e&&e.canPlayType&&e.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var H0o=XMLHttpRequest.prototype.fetch,Q4j=H0o&&H0o.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Vr?!0:!1;var eE=function(e){this.JSC$18307_storeWithEntities=e};
_.Y(eE,hg);_.v=eE.prototype;_.v.getApiPaths=function(){return YPY};
_.v.getExtension=function(e){return _.x(e,_.Pm)||_.x(e,_.eh)||_.x(e,WQw)};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$14495_getStoreKey=function(e){if((_.G("kevlar_cache_on_ttl_player")||_.G("mweb_enable_shorts_innertube_player_prefetch")||_.G("mweb_use_new_history_manager")||_.G("web_shorts_prefetch_service_enabled"))&&(e=this.getExtension(e))&&e.videoId){var g={videoId:e.videoId};e.playlistId&&(g.playlistId=e.playlistId);e.playerParams&&(g.params=e.playerParams);return _.ic("player",g)}};
_.v.JSC$14488_getClientScreen=function(e){var g;return((g=e.contentPlaybackContext)==null?void 0:g.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.v.JSC$14488_buildRequest=function(e,g,c){if(_.G("enable_interstitial_entity_check")){var k=this.JSC$18307_storeWithEntities;if(g.videoId)for(var I=_.w(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),J=I.next();!J.done;J=I.next()){J=J.value;var q;var L=void 0,n=void 0,R=g.videoId,W=J;(q=k)?(R=_.Bh(R+W,"interstitialInteractionStateEntity"),q=(L=(n=_.Nc(q.getState().entities,"interstitialInteractionStateEntity",R))==null?void 0:n.primaryButtonClicked)!=null?L:!1):q=!1;if(q)switch(J){case "CONTENT_CHECK_REQUIRED":g.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":g.racyCheckOk=!0}}}g.videoId&&(e.videoId=g.videoId);g.playlistId&&(e.playlistId=g.playlistId);g.index!==void 0&&(e.playlistIndex=g.index+1);g.playerParams&&(e.params=g.playerParams);"startTimeSeconds"in g&&g.startTimeSeconds&&(_.G("enable_player_request_builder_start_time_floor")?e.startTimeSecs=Math.floor(g.startTimeSeconds):e.startTimeSecs=g.startTimeSeconds);c.contentPlaybackContext&&(e.playbackContext={contentPlaybackContext:c.contentPlaybackContext});c.prefetchPlaybackContext&&
(e.playbackContext=Object.assign({},e.playbackContext,{prefetchPlaybackContext:c.prefetchPlaybackContext}),e.context.request||(e.context.request={}),e.context.request.isPrefetch=!0);e.playbackContext||(e.playbackContext={});k=zho();e.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!k,supportXhr:Q4j};c.overrideMutedAtStart&&(e.overrideMutedAtStart=c.overrideMutedAtStart);e.racyCheckOk=!!g.racyCheckOk;e.contentCheckOk=!!g.contentCheckOk;!_.G("captions_prefs_killswitch")&&(c=(c=_.qk("yt-player-caption-language-preferences"))?
c:[],c==null?0:c.length)&&(e.captionParams={viewerSelectedCaptionLangs:c})};
_.v.getRequestConfig=function(e){e=this.JSC$14495_getStoreKey(e);var g;e&&(g={storeStrategy:{storeKey:e}});_.G("web_log_player_watch_next_ticks")&&(g=g||{},g.requestTick="ps_s",g.responseTick="ps_r");return g};
eE[y0]=[V5];var gP=function(e,g){this.playerRequestBuilder=e;this.watchNextRequestBuilder=g};
_.Y(gP,hg);gP.prototype.getApiPaths=function(){return neB};
gP.prototype.getExtension=function(e){return _.x(e,_.Pm)};
gP.prototype.isNavigationCommand=function(){return!0};
gP.prototype.JSC$14488_buildRequest=function(e,g,c){e.playerRequest={};this.playerRequestBuilder.JSC$14488_buildRequest(e.playerRequest,g,c);if(_.G("web_streaming_watch")||_.G("mweb_streaming_watch"))e.watchNextRequest={},this.watchNextRequestBuilder.JSC$14488_buildRequest(e.watchNextRequest,g,c)};
gP[y0]=[eE,Ob];var UaQ;_.cp=new _.AU("SHORTS_CONTROLLER_TOKEN");UaQ=new _.AU("SHORTS_STATE_STORE_TOKEN");var kM=function(e,g){var c=_.Mb.apply(2,arguments);e=e===void 0?0:e;_.E2.call(this,g,c);this.errorType=e;Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(kM,_.E2);var oUv,Z07,VQq,Td6,Yt,VKZ,NN7,BND,MQ7,Kqj,ydD;oUv=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(e){return e+"="}).join("|"));
Z07=RegExp(".*\\?.*playnext=1.*");VQq=function(e,g,c,k,I,J){this.watchEndpointMap=e;this.reelWatchEndpointMap=g;this.innerTubeTransportService=c;this.fetchPbj=k;this.ephemeralStore=I;this.reloadOnPlayerFailure=J===void 0?!0:J};
_.tQo=function(e,g){var c=_.MN("web_pbj_log_warning_rate",0);c=c>0&&Math.random()<c;var k;if((k=_.x(g.commandMetadata,_.OM))==null||!k.rootVe)return c&&_.mN(Error("gj")),!1;var I;k=(I=_.x(g.commandMetadata,_.OM))==null?void 0:I.url;if(!k)return c&&_.mN(Error("hj")),!1;if(Z07.test(k))return!0;if(oUv.test(k))return c&&_.mN(Error("ij`"+k)),!1;if(_.x(g,_.Pm)){if(!(e.watchEndpointMap.watchNext&&e.watchEndpointMap.player||_.G("kevlar_fetch_initial_data_op_watch_client")))return c&&_.mN(Error("cj")),!1;
e=_.MN("web_pbj_log_warning_rate",0);e=e>0&&Math.random()<e;_.x(g,_.Pm)?DiW(g)?g=!0:(e&&_.mN(Error("dj")),g=!1):(e&&_.mN(Error("cj")),g=!1);return g}if(_.x(g,_.eh))return $iW(g);if(_.x(g,_.hR))return!0;e=_.fx(e.innerTubeTransportService,g);!e&&c&&_.jW(Error("jj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(g)});return e};
Td6=function(e,g,c,k,I,J){g={url:g};if(c==null?0:c.itct)g.parentTrackingParams=c.itct;var q=_.lm(Ap4);return _.Yq(e.innerTubeTransportService,g,q).then(function(L){(L=L.endpoint)||(L=_.cl);(c==null?0:c.itct)&&L&&!L.trackingParams&&(L.trackingParams=c.itct);var n=MW(L);return Yt(e,L,c,k,n,I,J)})};
Yt=function(e,g,c,k,I,J,q,L){L=L===void 0?{}:L;if(e.fetchPbj&&!_.tQo(e,g)&&!_.G("force_one_platform")){var n=e.fetchPbj(g),R=_.No(n.then(function(y){if(!y)throw Error("kj");q(R)||J(g,y);return y}));
return R}var W,b,h={rootVe:(W=_.x(g.commandMetadata,_.OM))==null?void 0:W.rootVe,url:(b=_.x(g.commandMetadata,_.OM))==null?void 0:b.url,endpoint:g,page:I};if(_.x(g,_.Pm)){var X,D={contentPlaybackContext:_.th(c,(X=_.x(g.commandMetadata,_.OM))==null?void 0:X.url,k)},f=_.i6(),l,A=(l=e.watchEndpointMap.player)==null?void 0:l().JSC$14495_getStoreKey(g);l=A!==void 0&&((n=e.ephemeralStore)==null?void 0:n.has(A));(_.G("web_streaming_watch")||_.G("mweb_streaming_watch"))&&window.TextDecoderStream&&!l?(n=qWu(e.innerTubeTransportService,
g,D,function(y){!h.response&&y.content&&(h.response=y.content);!h.playerResponse&&y.player&&(h.playerResponse=y.player);J(g,h)}),A=o8W(g),A.length&&(h.preconnect=A,J(g,h)),BND(n,f,h).catch(function(y){y instanceof kM&&y.errorType===2&&_.G("web_streaming_watch_fallback")&&NN7(e,g,D,h,J,q,f)})):NN7(e,g,D,h,J,q,f);
return f.promise}if(_.x(g,_.eh)){var d;if(((d=_.x(g,_.eh))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var S=_.i6();_.S5X(_.Ss().resolve(_.cp),g).then(function(y){ydD(e,c,k,I,J,S,y)});
return S.promise}n=_.No();l={contentPlaybackContext:_.th(c,(A=_.x(g.commandMetadata,_.OM))==null?void 0:A.url,k)};(A=e.reelWatchEndpointMap.player)&&(A=A().JSC$14488_getRequest(g,l))&&(n=_.Yq(e.innerTubeTransportService,A.innerTubeRequest,A.input,g.clickTrackingParams,A.config));A=_.No();(L=e.reelWatchEndpointMap.reelItemWatch)&&(L=L().JSC$14488_getRequest(g))&&(A=_.Yq(e.innerTubeTransportService,L.innerTubeRequest,L.input,g.clickTrackingParams,L.config));L=_.No();(W=e.reelWatchEndpointMap.reelWatchSequence)&&
_.x(g,_.eh).sequenceParams&&(l=W().JSC$14488_getRequest(g,l))&&(L=_.Yq(e.innerTubeTransportService,l.innerTubeRequest,l.input,g.clickTrackingParams,l.config));l=_.No(h);W=_.i6();Kqj(g,l,n,A,L,J,q,W);return W.promise}var V;if(_.x(g,geg)&&((V=_.x(g.commandMetadata,_.OM))==null?0:V.url))return n=kLA(_.zs(WH().location.href),_.zs(_.x(g.commandMetadata,_.OM).url)).toString(),Td6(e,n,c,k,J,function(){return!1});
if(_.x(g,_.hR))return J(g,h),_.No(h);if(_.fx(e.innerTubeTransportService,g)){n=Object.assign({},{tempData:c,disableCache:c.disableCache},L);var Q=_.jt(e.innerTubeTransportService,g,n).then(function(y){h.response=y;q(Q)||J(g,h);return h});
return Q}return _.No(h)};
_.O0o=function(e,g,c,k){if(_.x(g,_.Pm)||_.x(g,_.eh)&&(_.G("mweb_enable_shorts_innertube_player_prefetch")||_.G("kevlar_enable_shorts_prefetch_in_sequence"))||_.x(g,WQw)&&_.G("web_enable_prefetching_videos_on_home")){var I,J={contentPlaybackContext:_.th(c,(I=_.x(g.commandMetadata,_.OM))==null?void 0:I.url,k),prefetchPlaybackContext:iG6(c)},q,L,n;if(((q=_.x(g,_.Pm))==null?void 0:(L=q.watchEndpointSupportedPrefetchConfig)==null?void 0:(n=L.prefetchHintConfig)==null?void 0:n.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(c=
e.watchEndpointMap.watchNext)if(J=c().JSC$14488_getRequest(g,J))return Promise.resolve(_.Yq(e.innerTubeTransportService,J.innerTubeRequest,J.input,void 0,J.config).then(function(b){return b}))}else if(c=e.watchEndpointMap.player)if(J=c().JSC$14488_getRequest(g,J))return Promise.resolve(_.Yq(e.innerTubeTransportService,J.innerTubeRequest,J.input,void 0,J.config).then(function(b){return b}))}else if(_.fx(e.innerTubeTransportService,g)){var R={tempData:c},W=cEZ(e.innerTubeTransportService,g);
return W?new Promise(function(b,h){var X,D;return _.r(function(f){if(f.nextAddress==1)return f.yield(W,2);if(f.nextAddress!=4)return X=f.yieldResult,X.JSC$14495_getStoreKey(g,R)?f.yield(_.jt(e.innerTubeTransportService,g,R),4):(h(new _.E2("Prefetching request builder with no store key.",g)),f.jumpTo(0));D=f.yieldResult;b(D);_.Uh(f)})}):Promise.reject(new _.E2("Prefetching unregistered request builder.",g))}return Promise.reject(new _.E2("No request builder available to prefetch endpoint.",g))};
VKZ=function(e,g){var c,k,I;if(_.x(g,_.Pm)){var J=e.watchEndpointMap.watchNext;J&&(c=J());(e=e.watchEndpointMap.player)&&(k=e())}else if(_.x(g,_.eh))(J=e.reelWatchEndpointMap.reelItemWatch)&&(c=J()),(J=e.reelWatchEndpointMap.player)&&(k=J()),(e=e.reelWatchEndpointMap.reelWatchSequence)&&(I=e());else{a:{e=l_z(g,e.innerTubeTransportService.endpointMap);if(e!==void 0)if(typeof e.then==="function")_.jW(new _.E2("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",g));else break a;
e=void 0}e&&(c=e)}var q,L,n;return{content:(q=c)==null?void 0:q.JSC$14495_getStoreKey(g),player:(L=k)==null?void 0:L.JSC$14495_getStoreKey(g),reelSequence:(n=I)==null?void 0:n.JSC$14495_getStoreKey(g)}};
NN7=function(e,g,c,k,I,J,q){var L=_.No(),n=e.watchEndpointMap.player;_.G("web_streaming_player")&&(n=XE(gP));n&&(n=n().JSC$14488_getRequest(g,c))&&(L=_.Yq(e.innerTubeTransportService,n.innerTubeRequest,n.input,g.clickTrackingParams,n.config));n=_.No();var R=e.watchEndpointMap.watchNext;R&&(c=R().JSC$14488_getRequest(g,c))&&(n=_.Yq(e.innerTubeTransportService,c.innerTubeRequest,c.input,g.clickTrackingParams,c.config));k=_.No(k);MQ7(e,g,k,L,n,I,J,q)};
BND=function(e,g,c){var k;return _.r(function(I){if(I.nextAddress==1)return I.yield(e,2);_.G("web_streaming_watch_delay_200")||_.G("web_streaming_watch_delay_400")?(k=_.G("web_streaming_watch_delay_200")?200:400,setTimeout(function(){g.resolve(c)},k)):g.resolve(c);
_.Uh(I)})};
MQ7=function(e,g,c,k,I,J,q,L){var n,R,W,b,h;_.r(function(X){switch(X.nextAddress){case 1:return X.yield(c,2);case 2:n=X.yieldResult;if(q(L.promise))return L.resolve(n),X.return();J(g,n);R=o8W(g);if(!R.length){X.jumpTo(3);break}return X.yield(c,4);case 4:n.preconnect=R,J(g,n);case 3:return _.lj(X,5),X.yield(k,7);case 7:W=X.yieldResult;_.zn(X,6);break;case 5:return b=_.Qb(X),L.reject(b),X.return();case 6:if(W===void 0&&e.reloadOnPlayerFailure)return n.reload=!0,J(g,n),L.resolve(n),X.return();if(q(L.promise))return L.resolve(n),
X.return();n.playerResponse=W;J(g,n);(_.G("web_watch_stop_scheduler_on_player_response")||_.G("mweb_watch_stop_scheduler_on_player_response"))&&hmB();_.lj(X,8);return X.yield(I,10);case 10:h=X.yieldResult;_.zn(X,9);break;case 8:_.Qb(X);case 9:if(h===void 0)return n.response={responseContext:{}},L.resolve(n),X.return();if(q(L.promise))return L.resolve(n),X.return();n.response=h;J(g,n);L.resolve(n);_.Uh(X)}})};
Kqj=function(e,g,c,k,I,J,q,L){var n,R,W,b,h,X;_.r(function(D){switch(D.nextAddress){case 1:return D.yield(g,2);case 2:n=D.yieldResult;if(q(L.promise))return L.resolve(n),D.return();J(e,n);R=o8W(e);if(!R.length){D.jumpTo(3);break}return D.yield(g,4);case 4:n.preconnect=R,J(e,n);case 3:return _.lj(D,5),D.yield(c,7);case 7:W=D.yieldResult;_.zn(D,6);break;case 5:return b=_.Qb(D),L.reject(b),D.return();case 6:if(W===void 0)return n.reload=!0,J(e,n),L.resolve(n),D.return();if(q(L.promise))return L.resolve(n),
D.return();n.playerResponse=W;J(e,n);(_.G("web_shorts_stop_scheduler_on_player_response")||_.G("mweb_shorts_stop_scheduler_on_player_response"))&&hmB();_.lj(D,8);return D.yield(k,10);case 10:h=D.yieldResult;_.zn(D,9);break;case 8:_.Qb(D);case 9:if(h===void 0)return n.response={responseContext:{}},L.resolve(n),D.return();if(q(L.promise))return L.resolve(n),D.return();n.response=h;J(e,n);_.lj(D,11);return D.yield(I,13);case 13:X=D.yieldResult;_.zn(D,12);break;case 11:_.Qb(D);case 12:if(q(L.promise))return L.resolve(n),
D.return();X&&(n.reelWatchSequenceResponse=X);J(e,n);L.resolve(n);_.Uh(D)}})};
ydD=function(e,g,c,k,I,J,q){var L,n,R,W,b,h;_.r(function(X){if((L=q)==null||!L.replacementEndpoint)return J.reject(),X.return();n=q.replacementEndpoint;(R=_.x(n,_.eh))?(q.sequenceContinuation&&(R.sequenceParams=q.sequenceContinuation),W=_.Ss().resolve(_.cp),b=R.sequenceParams,Cez(W,n)&&delete R.sequenceParams,h=Yt(e,n,g,c,k,I,function(){return!1}),h.then(function(D){return _.r(function(f){if(f.nextAddress==1)return eEM(W,{reelWatchEndpoint:{sequenceParams:b}},D),f.yield(0,2);
J.resolve(D);_.Uh(f)})})):J.reject();
_.Uh(X)})};
VQq[y0]=[umg,dag,_.kv,_.NN(M5q),_.NN(_.Bv)];var grx=function(){var e=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return e.sequenceMap}}},Lxq=function(e,g,c){var k,I=(k=g.config)==null?void 0:k.sequenceStrategy;
if(!I)return c();e.sequenceMap.has(I.sequenceKey)||e.sequenceMap.set(I.sequenceKey,[]);e=e.sequenceMap.get(I.sequenceKey);switch(I.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return cuS(e,g,c);case "REQUEST_SEQUENCE_TYPE_REPLACE":return ksM(e,g,c);default:throw new _.E2("Request could not be sequenced",g);}},cuS=function(e,g,c){var k,I,J;
return _.r(function(q){e.length>0?(I=e[e.length-1],k=I.responsePromise.then(function(){return c()})):k=c();
J={request:g,responsePromise:k};e.push(J);ILM(e,J);return q.return(J.responsePromise)})},ksM=function(e,g,c){c=c();
if(e.length>0)for(var k=_.w(e),I=k.next();!I.done;I=k.next())I.value.responsePromise=c;var J={request:g,responsePromise:c};e.push(J);ILM(e,J);return Promise.resolve().then(function(){return e.indexOf(J)>0?J.responsePromise.then(function(q){return Object.assign({},q,{sequenceMetaData:{skipProcessing:!0}})}):J.responsePromise})},ILM=function(e,g){g.responsePromise.then(function(){var c=e.indexOf(g);
c>-1&&e.splice(c,1)})};var JuS=new _.AU("REQUEST_SEQUENCING");var Ie=function(){};
_.Y(Ie,hg);Ie.prototype.getApiPaths=function(){return[]};
Ie.prototype.getExtension=function(e){return _.x(e,BQv)};
Ie.prototype.JSC$14488_buildRequest=function(e,g){e.recaptchaToken=g.recaptchaToken};
Ie.prototype.getApiUrl=function(){return"/das_captcha"};var Jm=function(){};
_.Y(Jm,hg);Jm.prototype.getApiPaths=function(){return AiZ};
Jm.prototype.getExtension=function(e){return _.x(e,fxM)};
Jm.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.createBackstagePostParams&&(e.createBackstagePostParams=g.createBackstagePostParams);c.comment_text&&(e.commentText=c.comment_text);if(c.attached_video_id)e.videoAttachment={videoId:c.attached_video_id};else if(c.image_poll_options)e.pollAttachmentData={options:c.image_poll_options};else if(c.poll_options)e.pollAttachment={choices:c.poll_options};else if(c.quiz_options)e.quizAttachmentData={options:c.quiz_options};else if(c.image_blob_id)e.imageAttachment=
{encryptedBlobId:c.image_blob_id},c.source_video_id&&(e.imageAttachment.sourceExternalVideoId=c.source_video_id),c.image_preview_coordinates&&(e.imageAttachment.previewCoordinates=JSON.parse(c.image_preview_coordinates));else if(c.images_data)e.imagesAttachment={imagesData:c.images_data};else if(c.clip_external_video_id!==void 0||c.clip_offset_ms!==void 0||c.clip_duration_ms!==void 0){var k,I,J,q,L;e.clipAttachment={externalVideoId:(J=c.clip_external_video_id)!=null?J:"",offsetMs:(q=(k=c.clip_offset_ms)==
null?void 0:k.toString())!=null?q:"",durationMs:(L=(I=c.clip_duration_ms)==null?void 0:I.toString())!=null?L:""}}else c.shared_post_id&&(e.sharedPostAttachment={postId:c.shared_post_id});c.tagged_video_id&&(e.postCreationData={taggedVideoId:c.tagged_video_id});c.access_restrictions&&(typeof c.access_restrictions==="number"&&(g=c.access_restrictions,e.accessRestrictions={restriction:g!==1&&g===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof c.access_restrictions==="string"&&
(e.accessRestrictionsParams=c.access_restrictions));c.scheduled_publish_time_sec&&(e.scheduledPublishTimeSec=c.scheduled_publish_time_sec.toString())};var vp=function(){};
_.Y(vp,hg);vp.prototype.getApiPaths=function(){return Qfw};
vp.prototype.getExtension=function(e){return _.x(e,i8u)};
vp.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.decorateMessageParams&&(e.params=g.decorateMessageParams);c.text&&(e.text=c.text)};var wP=function(){};
_.Y(wP,hg);wP.prototype.getApiPaths=function(){return veq};
wP.prototype.getExtension=function(e){return _.x(e,jgM)};
wP.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;c.video_id&&(e.videoId=c.video_id)};var qL=function(){};
_.Y(qL,hg);qL.prototype.getApiPaths=function(){return aIw};
qL.prototype.getExtension=function(e){return _.x(e,_.K_)};
qL.prototype.JSC$14488_buildRequest=function(e,g,c){c.suggestions_query&&(e.input=c.suggestions_query)};var Lh=function(){};
_.Y(Lh,hg);Lh.prototype.getApiPaths=function(){return tbw};
Lh.prototype.getExtension=function(e){return _.x(e,iQI)};
Lh.prototype.JSC$14488_buildRequest=function(e,g,c){c.comment_text!==void 0&&(e.commentText=c.comment_text);c.scheduled_publish_time_sec&&(e.scheduledPublishTimeSec=c.scheduled_publish_time_sec.toString());e.updateBackstagePostParams=g.updateBackstagePostParams};var rP=function(){};
_.Y(rP,hg);rP.prototype.getApiPaths=function(){return sT};
rP.prototype.getExtension=function(e){return _.x(e,_.b6)};
rP.prototype.JSC$14488_buildRequest=function(e,g,c){c.formData&&(e.formData=c.formData);g.token?e.continuation=g.token:g.continuationTokenKey&&(c=_.Tt().getState(),g=_.Nc(c.entities,"continuationTokenEntity",g.continuationTokenKey))&&(e.continuation=String(g.continuationToken))};
var vrO=function(){};
_.Y(vrO,hg);_.v=vrO.prototype;_.v.getApiPaths=function(){return sT};
_.v.getExtension=function(e){return _.x(e,_.KU)};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$14495_getStoreKey=function(e){if((e=this.getExtension(e))&&e.browseId){var g={browseId:e.browseId};e.browseEndpointContextSupportedConfigs&&(g.browseEndpointContextSupportedConfigs=JSON.stringify(e.browseEndpointContextSupportedConfigs));e.params&&(g.params=e.params);e.query&&(g.query=e.query);return _.ic("browse",g)}};
_.v.JSC$14488_buildRequest=function(e,g,c){g.browseId&&(e.browseId=g.browseId);g.params&&(e.params=g.params);g.query&&(e.query=g.query);c.formData?e.formData=c.formData:g.formData&&(e.formData=g.formData);g.browseId==="FEsubscriptions"&&_.ch().getFlag(155)&&(e.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");g.browseId==="SPaccount_playback"&&(c=_.ch(),e.formData||(e.formData={}),e.formData.accountSettingsFormData={flagCaptionsDefaultOff:c.getFlag(65),flagAutoCaptionsDefaultOn:c.getFlag(66),
flagDisableInlinePreview:c.getFlag(186),flagAudioDescriptionDefaultOn:c.getFlag(198)});if(g.browseId==="FEwhat_to_watch"){c=_.ch();var k=c.getFlag(196);c.getFlag(197)&&(e.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:k}}})}g.browseId==="FEwhat_to_watch"&&(g=_.ch().getFlag(186),e.inlineSettingStatus=g?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.v.getRequestConfig=function(e,g){g=g===void 0?{}:g;var c={};if(e=this.JSC$14495_getStoreKey(e,g))c.storeStrategy={storeKey:e,disableCache:g.disableCache};_.G("web_log_browse_ticks_ks")||(c.requestTick="br_s",c.responseTick="br_r");return c};var ae=function(){};
_.Y(ae,hg);ae.prototype.getApiPaths=function(){return i$B};
ae.prototype.getExtension=function(e){return _.x(e,IPI)};
ae.prototype.JSC$14488_buildRequest=function(e,g,c){e.legacyYoutubeChannelUsername=c.legacyYouTubeChannelUsername||"";e.legacyYoutubeChannelPassword=c.legacyYouTubeChannelPassword||""};var nh=function(){};
_.Y(nh,hg);nh.prototype.getApiPaths=function(){return sjB};
nh.prototype.getExtension=function(e){return _.x(e,FyM)};
nh.prototype.JSC$14488_buildRequest=function(e,g,c){c.recaptcha_response_token&&(e.recaptchaResponseToken=c.recaptcha_response_token);c.channel_id&&(e.channelId=c.channel_id)};var Re=function(){};
_.Y(Re,hg);Re.prototype.getApiPaths=function(){return Bzk};
Re.prototype.getExtension=function(e){return _.x(e,U9B)};
Re.prototype.JSC$14488_buildRequest=function(e,g,c){g.externalChannelId&&(e.externalChannelId=g.externalChannelId);c.handle&&(e.handleUpdate={handle:c.handle},g.handleEditSource&&(e.handleUpdate.handleEditSource=g.handleEditSource))};var EB=function(){};
_.Y(EB,hg);EB.prototype.getApiPaths=function(){return KdI};
EB.prototype.getExtension=function(e){return _.x(e,rDw)};
EB.prototype.JSC$14488_buildRequest=function(e,g,c){g.request&&(e.channelId=g.request.channelId);var k;if(c==null?0:(k=c.uploadDefaults)==null?0:k.emojiReactionSet)e.uploadDefaultsRequest||(e.uploadDefaultsRequest={}),e.uploadDefaultsRequest.emojiReactionSet=c.uploadDefaults.emojiReactionSet};var Wp=function(){};
_.Y(Wp,hg);Wp.prototype.getApiPaths=function(){return CPv};
Wp.prototype.getExtension=function(e){return _.x(e,uln)};
Wp.prototype.JSC$14488_buildRequest=function(e,g,c){g.externalChannelId&&(e.externalChannelId=g.externalChannelId);g.channelHandleEntityKey&&(e.channelHandleEntityKey=g.channelHandleEntityKey);g.handleEditSource&&(e.handleEditSource=g.handleEditSource);c.handle?e.handle=c.handle:c.name&&(e.name=c.name)};var bT=function(){};
_.Y(bT,hg);bT.prototype.getApiPaths=function(){return p1q};
bT.prototype.getExtension=function(e){return _.x(e,qcu)};
bT.prototype.JSC$14488_buildRequest=function(e,g){g.actions?e.actions=g.actions:g.action&&(e.actions=[g.action])};var hm=function(){};
_.Y(hm,hg);hm.prototype.getApiPaths=function(){return TR1};
hm.prototype.getExtension=function(e){return _.x(e,_.b6)};
hm.prototype.JSC$14488_buildRequest=function(e,g){g.token&&(e.continuation=g.token)};var X$=function(){};
_.Y(X$,hg);X$.prototype.getApiPaths=function(){return IIq};
X$.prototype.getExtension=function(e){return _.x(e,_.b6)};
X$.prototype.JSC$14488_buildRequest=function(e,g){e.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";g.token&&(e.fetchCommentsParams={continuation:g.token})};var GW=function(){};
_.Y(GW,hg);GW.prototype.getApiPaths=function(){return ur4};
GW.prototype.getExtension=function(e){return _.x(e,wvM)};
GW.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.createReplyParams&&(e.createReplyParams=g.createReplyParams);g.commentText&&(e.commentText=_.mp(g.commentText));c.comment_text&&(e.commentText=c.comment_text);c.image_blob_id&&(e.imageAttachment={encryptedBlobId:c.image_blob_id});c.botguard_response&&(e.botguardResponse=c.botguard_response)};
_.Bd.Object.defineProperties(GW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xM=function(){};
_.Y(xM,hg);xM.prototype.getApiPaths=function(){return dF4};
xM.prototype.getExtension=function(e){return _.x(e,_.vs4)};
xM.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.createCommentParams&&(e.createCommentParams=g.createCommentParams);g.commentText&&(e.commentText=_.mp(g.commentText));g.videoPositionMention&&(e.videoPositionMention=g.videoPositionMention);g.sources&&(e.sources=g.sources);c.comment_text&&(e.commentText=c.comment_text);c.attached_video_id?e.videoAttachment={videoId:c.attached_video_id}:c.poll_options?e.pollAttachment={choices:c.poll_options}:c.image_blob_id?e.imageAttachment=
{encryptedBlobId:c.image_blob_id}:c.shared_post_id&&(e.sharedPostAttachment={postId:c.shared_post_id});c.access_restrictions&&typeof c.access_restrictions==="number"&&(g=c.access_restrictions,e.accessRestrictions={restriction:g!==1&&g===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});c.botguard_response&&(e.botguardResponse=c.botguard_response)};
_.Bd.Object.defineProperties(xM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var D1=function(){};
_.Y(D1,hg);D1.prototype.getApiPaths=function(){return NzZ};
D1.prototype.getExtension=function(e){return _.x(e,rzv)};
D1.prototype.JSC$14488_buildRequest=function(e,g,c){g.commentText&&(e.replyText=_.mp(g.commentText));c.comment_text&&(e.replyText=c.comment_text);e.updateReplyParams=g.updateReplyParams};
_.Bd.Object.defineProperties(D1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $M=function(){};
_.Y($M,hg);$M.prototype.getApiPaths=function(){return SPY};
$M.prototype.getExtension=function(e){return _.x(e,L5B)};
$M.prototype.JSC$14488_buildRequest=function(e,g,c){g.commentText&&(e.commentText=_.mp(g.commentText));c.comment_text&&(e.commentText=c.comment_text);e.updateCommentParams=g.updateCommentParams};
_.Bd.Object.defineProperties($M.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var YM=function(){};
_.Y(YM,hg);YM.prototype.getApiPaths=function(){return ypq};
YM.prototype.getExtension=function(e){return _.x(e,vA4)};
YM.prototype.JSC$14488_buildRequest=function(e,g){g.settings&&(e.settings=g.settings)};var fh=function(){};
_.Y(fh,hg);fh.prototype.getApiPaths=function(){return O$q};
fh.prototype.getExtension=function(e){return _.x(e,d91)};
fh.prototype.JSC$14488_buildRequest=function(e,g){g.channelCreationToken&&(e.channelCreationToken=g.channelCreationToken);g.source&&(e.source=g.source)};var jE=function(){};
_.Y(jE,hg);jE.prototype.getApiPaths=function(){return FHv};
jE.prototype.getExtension=function(e){return _.x(e,Qgq)};
jE.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;if(c.name&&(c.given_name||c.family_name))e=new _.E2("channel creation cannot set both GAIA and YouTube names",g),_.jW(e);else{if(g.zeroStepChannelCreationParams){if(!c.comment_text){e=new _.E2("zero_step_create_comment_params but no zero_step_texts",g);_.jW(e);return}e.zeroStepChannelCreationParams=g.zeroStepChannelCreationParams;e.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(e.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
c.comment_text,c.botguard_response&&(e.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=c.botguard_response))}e.channelCreationToken=g.channelCreationToken;c.given_name&&(e.givenName=c.given_name);c.family_name&&(e.familyName=c.family_name);g.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(e.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(c.name||c.handle||c.avatar_url||c.encryptedBlobId||c.isNameChanged!==void 0||c.isHandleChanged!==void 0||c.isDefaultProfilePhoto!==
void 0||c.obakeImageSource)e.overrideChannelCreationParams={},c.name&&(e.overrideChannelCreationParams.name=c.name),c.handle&&(e.overrideChannelCreationParams.handle=c.handle),c.avatar_url&&(e.overrideChannelCreationParams.avatarUrl=c.avatar_url),c.encryptedBlobId&&(e.overrideChannelCreationParams.blobEncryptionId=c.encryptedBlobId),c.enableIdentityForAllChannelCreationDialog&&(c.encryptedBlobId?e.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
c.isDefaultProfilePhoto!==void 0&&(e.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=c.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),c.isNameChanged!==void 0&&(e.overrideChannelCreationParams.identityForAllChannelCreationNameTag=c.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),c.isHandleChanged!==
void 0&&(e.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=c.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),c.obakeImageSource&&(e.overrideChannelCreationParams.obakeImageSourceType=c.obakeImageSource))}};var iT=function(){};
_.Y(iT,hg);iT.prototype.getApiPaths=function(e){return(e=this.getExtension(e))&&e.status==="DISLIKE"?Vd1:e&&e.status==="INDIFFERENT"?mun:b7q};
iT.prototype.getExtension=function(e){return _.x(e,_.LP)};
iT.prototype.JSC$14488_buildRequest=function(e,g){g.target&&(e.target=g.target);if(g=this.getParams(g))e.params=g};
iT.prototype.getParams=function(e){switch(e==null?void 0:e.status){case "DISLIKE":return e.dislikeParams;case "INDIFFERENT":return e.removeLikeParams;default:return e==null?void 0:e.likeParams}};var Pp=function(){};
_.Y(Pp,hg);Pp.prototype.getApiPaths=function(){return H74};
Pp.prototype.getExtension=function(e){return _.x(e,b3Y)};
Pp.prototype.JSC$14488_buildRequest=function(e,g){g.settingItemId&&(e.settingItemId=g.settingItemId);g.stringValue!=null&&g.stringValue!==void 0?e.newValue={stringValue:g.stringValue}:g.intValue?e.newValue={intValue:g.intValue}:g.boolValue!==null&&g.boolValue!==void 0?e.newValue={boolValue:g.boolValue}:(e=new _.E2("Unknown value type for SetSettingEndpoint.",g),_.jW(e))};var mh=function(){};
_.Y(mh,hg);mh.prototype.getApiPaths=function(){return oe1};
mh.prototype.getExtension=function(e){return _.x(e,sGk)||void 0};
mh.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.channelIds&&(e.channelIds=g.channelIds);g.siloName&&(e.siloName=g.siloName);g.params&&(e.params=g.params);c.botguardResponse&&(e.botguardResponse=c.botguardResponse);c.feature&&(e.clientFeature=c.feature)};
_.Bd.Object.defineProperties(mh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ph=function(){};
_.Y(ph,hg);ph.prototype.getApiPaths=function(){return VbM};
ph.prototype.getExtension=function(e){return _.x(e,hb4)||void 0};
ph.prototype.JSC$14488_buildRequest=function(e,g){g.channelIds&&(e.channelIds=g.channelIds);g.siloName&&(e.siloName=g.siloName);g.params&&(e.params=g.params)};
_.Bd.Object.defineProperties(ph.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TW=function(e){this.shareClientParamsProvider=e};
_.Y(TW,hg);TW.prototype.getApiPaths=function(){return x7C};
TW.prototype.getExtension=function(e){return _.x(e,ZaZ)||_.x(e,_.Vxq)||_.x(e,oCI)};
TW.prototype.JSC$14488_buildRequest=function(e,g){g.serializedShareEntity&&(e.serializedSharedEntity=g.serializedShareEntity);if(g.clientParamIdentifier){var c;if((c=this.shareClientParamsProvider)==null?0:c.clientParams.has(g.clientParamIdentifier)){c=this.shareClientParamsProvider;g=g.clientParamIdentifier;var k=c.clientParams.get(g);k&&c.clientParams.delete(g);e.clientParams=k}}};
TW[y0]=[Ajl];var lT=function(){};
_.Y(lT,hg);lT.prototype.getApiPaths=function(){return YNw};
lT.prototype.getExtension=function(e){return _.x(e,Rju)};
lT.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var Am=function(){};
_.Y(Am,hg);Am.prototype.getApiPaths=function(){return td4};
Am.prototype.getExtension=function(e){return _.x(e,aPk)};
Am.prototype.JSC$14488_buildRequest=function(e,g){g.dismissal&&(e.items=[g.dismissal])};
_.Bd.Object.defineProperties(Am.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sB=function(){};
_.Y(sB,hg);sB.prototype.getApiPaths=function(){return Eek};
sB.prototype.getExtension=function(e){return _.x(e,_.bn)||void 0};
sB.prototype.JSC$14488_buildRequest=function(e,g,c){e.feedbackTokens=[];g.feedbackToken&&e.feedbackTokens.push(g.feedbackToken);if(g=g.cpn||c.cpn)e.feedbackContext={cpn:g};e.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;e.shouldMerge=!1;c.extra_feedback_tokens&&(e.shouldMerge=!0,e.feedbackTokens=e.feedbackTokens.concat(c.extra_feedback_tokens))};
_.Bd.Object.defineProperties(sB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var F$=function(){};
_.Y(F$,hg);F$.prototype.getApiPaths=function(){return Eek};
F$.prototype.getExtension=function(e){return _.x(e,_.K_)};
F$.prototype.JSC$14488_buildRequest=function(e,g,c){c.feedback_tokens&&(e.feedbackTokens=c.feedback_tokens,e.shouldMerge=!0)};
_.Bd.Object.defineProperties(F$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var uT=function(){};
_.Y(uT,hg);uT.prototype.getApiPaths=function(){return Eek};
uT.prototype.getExtension=function(e){return _.x(e,QVg)};
uT.prototype.JSC$14488_buildRequest=function(e,g){g.undoToken&&(e.feedbackTokens=[g.undoToken]);g.isUndoTokenUnencrypted&&(e.isFeedbackTokenUnencrypted=g.isUndoTokenUnencrypted)};
_.Bd.Object.defineProperties(uT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dP=function(){};
_.Y(dP,hg);dP.prototype.getApiPaths=function(){return eVu};
dP.prototype.getExtension=function(e){return _.x(e,q_I)};
dP.prototype.JSC$14488_buildRequest=function(e,g){g.nextEndpoint&&_.x(g.nextEndpoint,_.uf)?e.nextEndpoint={urlEndpoint:_.x(g.nextEndpoint,_.uf)}:g.nextEndpoint&&_.x(g.nextEndpoint,_.Pm)&&(e.nextEndpoint={watchEndpoint:_.x(g.nextEndpoint,_.Pm)});g.setRacy&&(e.setRacy=g.setRacy);g.setControvercy&&(e.setControvercy=g.setControvercy)};var zW=function(e){this.JSC$18509_storeWithEntities=e};
_.Y(zW,hg);zW.prototype.getApiPaths=function(){return NRw};
zW.prototype.getExtension=function(e){return _.x(e,FWw)};
zW.prototype.JSC$14488_buildRequest=function(e,g){g.flowId&&(e.flowId=g.flowId);g.targetId&&(e.targetId=g.targetId);g.continuation&&(e.continuation=g.continuation);var c=g.flowStateEntityKey;if(g.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&c&&this.JSC$18509_storeWithEntities){var k;if(g=(k=this.JSC$18509_storeWithEntities.getState())==null?void 0:k.entities)if(k=_.ZO(c).entityType,k=_.Nc(g,k,c))e.flowState=k,e.flowStateEntityKey=c}};
_.Bd.Object.defineProperties(zW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
zW[y0]=[V5];var wtD=function(){};
_.Y(wtD,hg);_.v=wtD.prototype;_.v.getApiPaths=function(){return RXZ};
_.v.JSC$14495_getStoreKey=function(){return _.ic("guide")};
_.v.getRequestConfig=function(){var e=this.JSC$14495_getStoreKey(),g;e&&(g={storeStrategy:{storeKey:e}});return g};
_.v.isNavigationCommand=function(){return!0};
_.v.getExtension=function(e){return _.x(e,_.K_)};
_.v.JSC$14488_buildRequest=function(e){e.fetchLiveState=!0};var Hp=function(){};
_.Y(Hp,hg);Hp.prototype.getApiPaths=function(){return PXv};
Hp.prototype.getExtension=function(e){return _.x(e,kdu)};
Hp.prototype.JSC$14488_buildRequest=function(){};var Qp=function(){};
_.Y(Qp,hg);Qp.prototype.getApiPaths=function(){return mFZ};
Qp.prototype.getExtension=function(e){return _.x(e,IGv)};
Qp.prototype.JSC$14488_buildRequest=function(){};var UB=function(){};
_.Y(UB,hg);UB.prototype.getApiPaths=function(){return $FI};
UB.prototype.getExtension=function(e){return _.x(e,_.b6)};
UB.prototype.JSC$14488_buildRequest=function(e,g){g.token&&(e.continuation=g.token);var c,k;e==null||(c=e.context)==null||(k=c.user)==null||delete k.onBehalfOfUser};
UB.prototype.getRequestConfig=function(e){var g={},c;if(((c=this.getExtension(e))==null?void 0:c.sessionIndex)!==void 0){var k;g={authStrategy:{sessionIndex:(k=this.getExtension(e))==null?void 0:k.sessionIndex}}}return g};var oe=function(){};
_.Y(oe,hg);oe.prototype.JSC$14488_getRequest=function(e){var g=this.getExtension(e),c=e="";if(g==null?0:g.popup)e="true";if(g==null?0:g.disableSignout)c="true";g={};return{input:"/getAccountSwitcherEndpoint",requestShell:jV("/getAccountSwitcherEndpoint","GET",(g["X-YouTube-Delegation-Context"]=_.uo("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),g["X-YouTube-Account-Switcher-Popup"]=e,g["X-YouTube-Account-Switcher-Disable-Signout"]=c,g)),innerTubeRequest:{}}};
oe.prototype.getApiPaths=function(){return[]};
oe.prototype.getExtension=function(e){return _.x(e,_.t3A)};
oe.prototype.JSC$14488_buildRequest=function(){};var Z1=function(){};
_.Y(Z1,hg);Z1.prototype.JSC$14488_getRequest=function(e){var g="/cross_account_channel_transfer";(e=this.getExtension(e))&&(g=YVe(g,{target_session:e.targetSessionIndex,source_rapt:e.sourceRapt,rapt:e.targetRapt}));return{input:g,requestShell:jV(g,"GET"),innerTubeRequest:{}}};
Z1.prototype.getApiPaths=function(){return[]};
Z1.prototype.getExtension=function(e){return _.x(e,Mpn)};
Z1.prototype.JSC$14488_buildRequest=function(){};var Vp=function(){};
_.Y(Vp,hg);Vp.prototype.getApiPaths=function(){return SNs};
Vp.prototype.isNavigationCommand=function(){return!0};
Vp.prototype.getExtension=function(e){return _.x(e,_.K_)};
Vp.prototype.JSC$14488_buildRequest=function(e){var g=_.ch().get("gsml","");g&&(e.safetyModeLockerObfuscatedGaiaId=g);e.userInterfaceTheme=_.Du(!0);_.$v()?e.deviceTheme="DEVICE_THEME_SELECTED":_.eVK()?e.deviceTheme="DEVICE_THEME_SUPPORTED":e.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var ML=function(){};
_.Y(ML,hg);ML.prototype.getApiPaths=function(){return $FI};
ML.prototype.getExtension=function(e){return _.x(e,CNs)};
ML.prototype.JSC$14488_buildRequest=function(e,g){if(g&&g.requestType&&(e.requestType=g.requestType,g.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||g.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var c=g.nextUrl;c&&(_.jtU(c)||BV(c))&&(e.nextNavendpoint={urlEndpoint:{url:c}})}g&&g.channelSwitcherQuery&&(e.channelSwitcherQuery=g.channelSwitcherQuery);g&&g.triggerChannelCreation&&(e.triggerChannelCreation=g.triggerChannelCreation);var k;if(g==null?0:(k=g.contentOwnerConfig)==
null?0:k.externalContentOwnerId)e.contentOwnerConfig=g.contentOwnerConfig;e.callCircumstance=g&&g.requestType&&g.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var I,J;g=e==null?void 0:(I=e.context)==null?void 0:(J=I.user)==null?void 0:J.onBehalfOfUser;if(g!==void 0){e.obfuscatedSelectedGaiaId=g;var q,L;e==null||(q=e.context)==null||(L=q.user)==null||delete L.onBehalfOfUser}var n,R;if(I=e==null?void 0:(n=e.context)==null?void 0:(R=n.user)==null?
void 0:R.serializedDelegationContext)e.selectedSerializedDelegationContext=I};var Ch=function(){};
_.Y(Ch,hg);Ch.prototype.getApiPaths=function(){return fsv};
Ch.prototype.getExtension=function(e){return _.x(e,tx4)};
Ch.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var ek=function(){};
_.Y(ek,hg);ek.prototype.getApiPaths=function(){return sfI};
ek.prototype.getExtension=function(e){return _.x(e,_.gCk)};
ek.prototype.JSC$14488_buildRequest=function(e,g){if(g=g.createBroadcastRequest)e.useMasks=g.useMasks,e.broadcastType=g.broadcastType,e.broadcastSource=g.broadcastSource,e.broadcastMetadata=g.broadcastMetadata,e.broadcastMetadataMask=g.broadcastMetadataMask,e.videoMetadata=g.videoMetadata,e.videoMetadataMask=g.videoMetadataMask,e.liveChatSettingsUpdate=g.liveChatSettingsUpdate,e.liveChatSettingsUpdateMask=g.liveChatSettingsUpdateMask,e.cloneVideoId=g.cloneVideoId,e.cloneWithOverrides=g.cloneWithOverrides,
e.targetEntity=g.targetEntity,e.scheduledRedirectMetadata=g.scheduledRedirectMetadata};var gu=function(){};
_.Y(gu,hg);gu.prototype.getApiPaths=function(){return z$B};
gu.prototype.getExtension=function(e){return _.x(e,BMw)};
gu.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.params&&(e.params=g.params);c.questionText&&(e.questionText=c.questionText);c.optionText&&c.optionText.length>0&&(e.optionText=c.optionText)};var c4=function(){};
_.Y(c4,hg);c4.prototype.getApiPaths=function(){return UFM};
c4.prototype.getExtension=function(e){return _.x(e,VDY)};
c4.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var k4=function(){};
_.Y(k4,hg);k4.prototype.getApiPaths=function(){return CXM};
k4.prototype.getExtension=function(e){return _.x(e,Q_w)};
k4.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var Iw=function(){};
_.Y(Iw,hg);Iw.prototype.getApiPaths=function(){return geM};
Iw.prototype.getExtension=function(e){return _.x(e,Udn)};
Iw.prototype.JSC$14488_buildRequest=function(e,g,c){g.params&&(e.params=g.params);g.continuation&&(e.continuation=g.continuation);c.currentPlayerState&&c.currentPlayerState.playerOffsetMs&&(e.currentPlayerState={playerOffsetMs:c.currentPlayerState.playerOffsetMs.toString()})};var J7=function(){};
_.Y(J7,hg);J7.prototype.getApiPaths=function(){return cp1};
J7.prototype.getExtension=function(e){return _.x(e,HPq)};
J7.prototype.JSC$14488_buildRequest=function(e,g,c){g.params&&(e.params=g.params);c.continuation&&(e.continuation=c.continuation);"hidden"in c&&(e.webClientInfo={isDocumentHidden:c.hidden});c.isInvalidationTimeoutRequest&&(e.isInvalidationTimeoutRequest=c.isInvalidationTimeoutRequest);c.invalidationPayload&&(g=zFk(_.CC(y9(c.invalidationPayload))),e.invalidationPayloadLastPublishAtUsec=WW(g,2));c.reloadActionPanel&&(e.reloadActionPanel=c.reloadActionPanel);c.fullReload&&(e.fullReload=c.fullReload);
c.currentPlayerState&&(e.currentPlayerState=c.currentPlayerState)};var v4=function(){};
_.Y(v4,hg);v4.prototype.getApiPaths=function(){return hXv};
v4.prototype.getExtension=function(e){return _.x(e,tDY)};
v4.prototype.JSC$14488_buildRequest=function(e,g){e.params=g.params};var wu=function(){};
_.Y(wu,hg);wu.prototype.getApiPaths=function(){return eXw};
wu.prototype.getExtension=function(e){return _.x(e,wFw)};
wu.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var q8=function(){};
_.Y(q8,hg);q8.prototype.getApiPaths=function(){return k2v};
q8.prototype.getExtension=function(e){return _.x(e,qJI)};
q8.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var Ld=function(){};
_.Y(Ld,hg);Ld.prototype.getApiPaths=function(){return Xu4};
Ld.prototype.getExtension=function(e){return _.x(e,NMu)};
Ld.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var ru=function(){};
_.Y(ru,hg);ru.prototype.getApiPaths=function(){return xuq};
ru.prototype.getExtension=function(e){return _.x(e,SEv)};
ru.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var aw=function(){};
_.Y(aw,hg);aw.prototype.getApiPaths=function(){return pu4};
aw.prototype.getExtension=function(e){return _.x(e,SOI)};
aw.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var nd=function(){};
_.Y(nd,hg);nd.prototype.getApiPaths=function(){return dus};
nd.prototype.getExtension=function(e){return _.x(e,_.yRw)};
nd.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.params&&(e.params=g.params);c.client_message_id&&(e.clientMessageId=c.client_message_id);c.recaptcha_token&&(e.recaptchaToken=c.recaptcha_token);c.rich_message&&c.rich_message.text_segments?(g=c.rich_message.text_segments.map(function(k){var I={};k.text&&(I.text=k.text);k.emoji_id&&(I.emojiId=k.emoji_id);return I}),e.richMessage={textSegments:g}):c.message&&(e.message=c.message);
c.currentPlayerState&&(e.currentPlayerState=c.currentPlayerState)};var Rw=function(){};
_.Y(Rw,hg);Rw.prototype.getApiPaths=function(){return zXM};
Rw.prototype.getExtension=function(e){return _.x(e,KK1)};
Rw.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var EF=function(){};
_.Y(EF,hg);EF.prototype.getApiPaths=function(){return Z7u};
EF.prototype.getExtension=function(e){return _.x(e,MD4)};
EF.prototype.JSC$14488_buildRequest=function(e,g,c){g.isUserInitiated&&(e.isUserInitiated=g.isUserInitiated);g.initiationSource&&(e.initiationSource=g.initiationSource);c.locationInfo&&(e.context.client.locationInfo=c.locationInfo)};var W4=function(){};
_.Y(W4,hg);W4.prototype.getApiPaths=function(){return G2w};
W4.prototype.getExtension=function(e){return _.x(e,cFw)};
W4.prototype.JSC$14488_buildRequest=function(e,g,c){g.metadataUpdateRequest&&(g=g.metadataUpdateRequest,e.encryptedVideoId=g.encryptedVideoId,g.liveChat&&(g=g.liveChat,e.liveChat||(e.liveChat={}),g.performAsExternalChannelId&&(e.liveChat.performAsExternalChannelId=g.performAsExternalChannelId),g.source&&(e.liveChat.source=g.source)));var k;if(c==null?0:(k=c.liveChat)==null?0:k.liveChatSettings)e.liveChat||(e.liveChat={}),c=c.liveChat.liveChatSettings,e.liveChat.newLiveChatSettings=c,e.liveChat.newLiveChatSettingsMask||
(e.liveChat.newLiveChatSettingsMask={}),c.emojiReactionSet&&(e.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var br=function(){};
_.Y(br,hg);br.prototype.getApiPaths=function(){return Mbu};
br.prototype.getExtension=function(e){return _.x(e,_.XvY)};
br.prototype.JSC$14488_buildRequest=function(e,g,c){c.continuation?e.continuation=c.continuation:g.videoId&&(e.videoId=g.videoId);c.clientParams&&(e.clientParams=c.clientParams)};var h7=function(){};
_.Y(h7,hg);h7.prototype.getApiPaths=function(){return IIq};
h7.prototype.getExtension=function(e){return _.x(e,_.WU)};
h7.prototype.JSC$14488_buildRequest=function(e,g){e.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";e.fetchCommentsParams={};g.videoId&&(e.fetchCommentsParams.encryptedVideoId=g.videoId);g.postId&&(e.fetchCommentsParams.postId=g.postId);g.externalChannelId&&(e.fetchCommentsParams.externalChannelId=g.externalChannelId);g.linkedCommentId&&(e.fetchCommentsParams.linkedCommentId=g.linkedCommentId);(0,_.n0.isEmpty)(e.fetchCommentsParams)&&delete e.fetchCommentsParams};var GC=function(){};
_.Y(GC,hg);GC.prototype.getApiPaths=function(){return sT};
GC.prototype.JSC$14488_buildRequest=function(e){e.browseId="FEnotifications_inbox"};
GC.prototype.getExtension=function(e){return _.x(e,_.K_)};var x4=function(){};
_.Y(x4,hg);x4.prototype.getApiPaths=function(){return IIq};
x4.prototype.JSC$14488_buildRequest=function(e,g){g.signal==="GET_NOTIFICATIONS_MENU"&&(e.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");g.ctoken&&(e.ctoken=g.ctoken)};
var quv=function(){};
_.Y(quv,x4);quv.prototype.getExtension=function(e){return _.x(e,_.K_)};
var Lu0=function(){};
_.Y(Lu0,x4);Lu0.prototype.getExtension=function(e){return _.x(e,Jcq)};var Dh=function(){};
_.Y(Dh,hg);Dh.prototype.getApiPaths=function(){return rp1};
Dh.prototype.getExtension=function(e){return _.x(e,_.K_)};
Dh.prototype.JSC$14488_buildRequest=function(){};var $4=function(){};
_.Y($4,hg);$4.prototype.getApiPaths=function(){return DuM};
$4.prototype.getExtension=function(e){return _.x(e,Rbs)||void 0};
$4.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params);g.secondaryParams&&(e.secondaryParams=g.secondaryParams)};var Y4=function(){};
_.Y(Y4,hg);Y4.prototype.getApiPaths=function(){return $uM};
Y4.prototype.getExtension=function(e){return _.x(e,B4u)};
Y4.prototype.JSC$14488_buildRequest=function(e,g){g.undo&&(e.undo=g.undo);g.serializedOptOut&&(e.serializedOptOut=g.serializedOptOut);g.serializedRecordInteractionsRequest&&(e.serializedRecordInteractionsRequest=g.serializedRecordInteractionsRequest)};var fd=function(){};
_.Y(fd,hg);fd.prototype.getApiPaths=function(){return jjs};
fd.prototype.getExtension=function(e){return _.x(e,N4M)};
fd.prototype.JSC$14488_buildRequest=function(e,g){g.serializedInteractionsRequest&&(e.serializedRecordNotificationInteractionsRequest=g.serializedInteractionsRequest)};var jk=function(){};
_.Y(jk,hg);jk.prototype.getApiPaths=function(){return D7U};
jk.prototype.getExtension=function(e){return _.x(e,_.px)};
jk.prototype.JSC$14488_buildRequest=function(e,g,c){g=g===void 0?{}:g;c=c===void 0?{}:c;g.videoId?e.videoId=g.videoId:g.playlistId&&(e.playlistId=g.playlistId);var k;e.crossDeviceDownloadData={isCrossDeviceDownload:(k=g.isCrossDeviceDownload)!=null?k:!1};!c.downloadToMobileEduShown&&g.isCrossDeviceDownload&&(e.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var I;if(k=(I=g.offlineWebClientEligibility)!=null?I:c.offlineWebClientEligibility)e.offlineWebClientEligibility=k;var J;if(I=(J=g.preferredFormatType)!=
null?J:c.preferredFormatType)e.preferredFormatType=I;var q;if(J=(q=g.lastOfflineQualitySettingsSavedMs)!=null?q:c.lastOfflineQualitySettingsSavedMs)e.lastOfflineQualitySettingsSavedMs=J;g.params&&(e.params=g.params)};var ir=function(){};
_.Y(ir,hg);ir.prototype.getApiPaths=function(){return sE};
ir.prototype.getExtension=function(e){return _.x(e,_.b6)};
ir.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.token&&(e.continuation=g.token);c.formData&&(e.formData=c.formData)};var P4=function(){};
_.Y(P4,hg);P4.prototype.getApiPaths=function(){return sE};
P4.prototype.getExtension=function(e){return _.x(e,y$4)};
P4.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;e.continuation=c.continuation};var m1=function(){};
_.Y(m1,hg);m1.prototype.getApiPaths=function(){return sE};
m1.prototype.getExtension=function(e){return _.x(e,_.W2)};
m1.prototype.JSC$14488_buildRequest=function(e,g){var c,k=g.panelIdentifier||((c=g.identifier)==null?void 0:c.tag);k&&(e.panelId=k);var I;if((I=g.globalConfiguration)==null?0:I.params){var J;e.params=(J=g.globalConfiguration)==null?void 0:J.params}if(_.G("enable_ai_companion")){var q;g=g.engagementPanelExtras;if(g==null?0:(q=g.aiCompanionPanelExtras)==null?0:q.includeClientConversationId){var L,n;q=(n=(L=_.Ss().resolve(_.NN(UOo)))==null?void 0:L("conversations"))==null?void 0:n.get("conversation_id")}else q=
void 0;if(L=q)e.formData=Object.assign({},e.formData,{inputComposerFormData:{conversationId:L}})}};
_.Bd.Object.defineProperties(m1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pd=function(){};
_.Y(pd,hg);pd.prototype.getApiPaths=function(){return sE};
pd.prototype.getExtension=function(e){return _.x(e,zbZ)};
pd.prototype.JSC$14488_buildRequest=function(e,g){g.panelLoadingStrategy&&PM6(e,g.panelLoadingStrategy)};var TC=function(){};
_.Y(TC,hg);TC.prototype.getApiPaths=function(){return sE};
TC.prototype.getExtension=function(e){return _.x(e,Irq)};
TC.prototype.JSC$14488_buildRequest=function(e,g){g.loadingStrategy&&PM6(e,g.loadingStrategy)};var lr=function(){};
_.Y(lr,hg);lr.prototype.getApiPaths=function(){return sE};
lr.prototype.getExtension=function(e){return _.x(e,_.ku)};
lr.prototype.JSC$14488_buildRequest=function(e,g){g.panelLoadingStrategy&&PM6(e,g.panelLoadingStrategy)};var A7=function(){};
_.Y(A7,hg);A7.prototype.getApiPaths=function(){return sE};
A7.prototype.getExtension=function(e){return _.x(e,Jgv)};
A7.prototype.JSC$14488_buildRequest=function(e,g){var c,k=(c=g.contentSourcePanelIdentifier)==null?void 0:c.tag;k&&(e.panelId=k);var I;if((I=g.globalConfiguration)==null?0:I.params){var J;e.params=(J=g.globalConfiguration)==null?void 0:J.params}};var sF=function(){};
_.Y(sF,hg);sF.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
sF.prototype.getExtension=function(e){return _.x(e,v3k)};
sF.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var FR=function(){};
_.Y(FR,hg);FR.prototype.getApiPaths=function(){return O7w};
FR.prototype.getExtension=function(e){return _.x(e,LQI)};
FR.prototype.JSC$14488_buildRequest=function(e,g){g.externalChannelId&&(e.externalChannelId=g.externalChannelId);g.superChatAction&&(e.superChatAction=g.superChatAction);g.superStickersAction&&(e.superStickersAction=g.superStickersAction)};var ur=function(){};
_.Y(ur,hg);ur.prototype.getApiPaths=function(){return yi1};
ur.prototype.getExtension=function(e){return _.x(e,czs)||_.x(e,gOA)};
ur.prototype.JSC$14488_buildRequest=function(e,g){g.videoIds?e.videoIds=g.videoIds:g.videoId&&(e.videoIds=[g.videoId]);g.playlistId&&(e.playlistId=g.playlistId);g.params&&(e.params=g.params);e.excludeWatchLater=!1};var du=function(){};
_.Y(du,hg);du.prototype.getApiPaths=function(){return H$M};
du.prototype.getExtension=function(e){return _.x(e,_.DU)};
du.prototype.JSC$14488_buildRequest=function(e,g,c){c.create_playlist_title?e.title=c.create_playlist_title:g.title&&(e.title=g.title);if(c.create_playlist_privacy_status&&typeof c.create_playlist_privacy_status==="number"){a:{var k=c.create_playlist_privacy_status;if(k!==0){if(k===1){k="PUBLIC";break a}if(k===2){k="UNLISTED";break a}}k="PRIVATE"}e.privacyStatus=k}else g.privacyStatus&&(e.privacyStatus=g.privacyStatus);c.create_playlist_description&&(e.description=c.create_playlist_description);g.videoIds&&
(e.videoIds=g.videoIds);g.params&&(e.params=g.params);g.sourcePlaylistId&&(e.sourcePlaylistId=g.sourcePlaylistId)};var zC=function(){};
_.Y(zC,hg);zC.prototype.getApiPaths=function(){return oYY};
zC.prototype.getExtension=function(e){return _.x(e,aGw)};
zC.prototype.JSC$14488_buildRequest=function(e,g){e.playlistId=g.playlistId};var H4=function(){};
_.Y(H4,hg);H4.prototype.getApiPaths=function(){return Jpu};
H4.prototype.getExtension=function(e){return _.x(e,QDB)};
H4.prototype.JSC$14488_buildRequest=function(e,g){g.playlistId&&(e.playlistId=g.playlistId);g.params&&(e.params=g.params)};var QR=function(){};
_.Y(QR,hg);QR.prototype.getApiPaths=function(){return fI1};
QR.prototype.getExtension=function(e){return _.x(e,_.bp)||void 0};
QR.prototype.JSC$14488_buildRequest=function(e,g){g.actions&&(e.actions=g.actions);g.params&&(e.params=g.params);g.playlistId&&(e.playlistId=g.playlistId)};var UF=function(){};
_.Y(UF,hg);_.v=UF.prototype;_.v.getApiPaths=function(){return i7n};
_.v.getExtension=function(e){return _.x(e,_.eh)};
_.v.JSC$14488_buildRequest=function(e,g){g.videoId&&(e.playerRequest={videoId:g.videoId},g.playerParams&&(e.playerRequest.params=g.playerParams),g.racyCheckOk&&(e.playerRequest.racyCheckOk=!!g.racyCheckOk),g.contentCheckOk&&(e.playerRequest.contentCheckOk=!!g.contentCheckOk));g.params&&(e.params=g.params);g.inputType&&(e.inputType=g.inputType);e.disablePlayerResponse=!0};
_.v.getRequestConfig=function(e){var g;(e=this.JSC$14495_getStoreKey(e))&&(g={storeStrategy:{storeKey:e}});_.G("web_log_reels_ticks")&&(g=g||{},g.requestTick="r_wrs",g.responseTick="r_wrr");return g};
_.v.JSC$14495_getStoreKey=function(e){e=this.getExtension(e);if(e!=null&&e.videoId){var g={videoId:e.videoId};e.params&&(g.params=e.params);return _.ic("reel_item_watch",g)}};var ow=function(){};
_.Y(ow,hg);_.v=ow.prototype;_.v.getApiPaths=function(){return PPw};
_.v.getExtension=function(e){return _.x(e,_.eh)};
_.v.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;e.sequenceParams=g.sequenceParams;var k;((k=c)==null?0:k.contentPlaybackContext)&&_.G("web_shorts_prefetch_service_enabled")&&(e.playbackContext={contentPlaybackContext:c.contentPlaybackContext})};
_.v.JSC$14495_getStoreKey=function(e){if(_.G("shorts_controller_retrieve_seedless_sequence_v2")&&(e=this.getExtension(e),e==null?0:e.sequenceParams))return _.ic("reel_watch_sequence",{sequenceParams:e.sequenceParams})};
_.v.getRequestConfig=function(e){e=this.JSC$14495_getStoreKey(e);var g;e&&(g={storeStrategy:{storeKey:e}});g=g||{};g.requestTick="r_wsrs";g.responseTick="r_wsrr";g.processorTick="r_wsrp";return g};
var Zh=function(){};
_.Y(Zh,hg);Zh.prototype.getApiPaths=function(){return PPw};
Zh.prototype.getExtension=function(e){return _.x(e,_.b6)};
Zh.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.token&&(e.continuation=g.token);var k;((k=c)==null?0:k.contentPlaybackContext)&&_.G("web_shorts_prefetch_service_enabled")&&(e.playbackContext={contentPlaybackContext:c.contentPlaybackContext})};
Zh.prototype.getRequestConfig=function(e){e=this.JSC$14495_getStoreKey(e);var g;e&&(g={storeStrategy:{storeKey:e}});g=g||{};g.requestTick="r_wsrs";g.responseTick="r_wsrr";g.processorTick="r_wsrp";return g};var VR=function(){};
_.Y(VR,hg);VR.prototype.getApiPaths=function(){return BRq};
VR.prototype.getExtension=function(e){return _.x(e,_.Tas)};
VR.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.flagAction&&(e.action=g.flagAction);g.flagRequestType&&(e.flagRequestType=g.flagRequestType);g.additionalDetailCheckboxChecked&&(e.additionalDetailCheckboxChecked=g.additionalDetailCheckboxChecked);g.legalCheckboxChecked&&(e.legalCheckboxChecked=g.legalCheckboxChecked);g={};c.flag_issue_type!==void 0&&(g.issue=c.flag_issue_type);c.flag_affiliation!==void 0&&(g.affiliation=c.flag_affiliation);c.flag_full_name&&(g.fullName=c.flag_full_name);
Object.keys(g).length&&(e.legalReportDetails=g);if(c.flag_description||c.text)e.userComments=c.flag_description||c.text;g={};c.minutes!==void 0&&c.seconds!==void 0&&(g.minutes=c.minutes,g.seconds=c.seconds);c.vss_id&&(g.vssId=c.vss_id);Object.keys(g).length&&(e.videoReportDetails=g);g={};c.video_ids&&(g.videoIds=c.video_ids);c.impersonated_channel_url&&(g.impersonatedChannelUrl=c.impersonated_channel_url);Object.keys(g).length&&(e.channelAbuseReportDetails=g)};
_.Bd.Object.defineProperties(VR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var t7=function(){};
_.Y(t7,hg);t7.prototype.getApiPaths=function(){return Md4};
t7.prototype.getExtension=function(e){return _.x(e,v8w)};
t7.prototype.JSC$14488_buildRequest=function(e,g){g.blockedForKidsContent&&(e.blockedForKidsContent=g.blockedForKidsContent)};var B4=function(){};
_.Y(B4,hg);B4.prototype.getApiPaths=function(){return TzZ};
B4.prototype.getExtension=function(e){return _.x(e,eCK)};
B4.prototype.JSC$14488_buildRequest=function(e,g,c){e.params=g.params;c.impersonated_channel_url&&(e.impersonatedChannelUrl=c.impersonated_channel_url)};var N8=function(){};
_.Y(N8,hg);N8.prototype.getApiPaths=function(){return Wdk};
N8.prototype.getExtension=function(e){return _.x(e,_.wUY)};
N8.prototype.JSC$14488_buildRequest=function(e,g){g.items&&(e.items=g.items);g.kidGaiaId&&(e.kidGaiaId=g.kidGaiaId)};var Sk=function(){};
_.Y(Sk,hg);Sk.prototype.getApiPaths=function(){return KHB};
Sk.prototype.getExtension=function(e){return _.x(e,_.CZM)};
Sk.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params);g.targetId&&(e.targetId=g.targetId)};var yR=function(){};
_.Y(yR,hg);yR.prototype.getApiPaths=function(){return Fdw};
yR.prototype.getExtension=function(e){return _.x(e,vLB)};
yR.prototype.JSC$14488_buildRequest=function(e,g){g.externalVideoId&&(e.externalVideoId=g.externalVideoId);g.query&&(e.query=g.query);g.sourceTimelines&&(e.sourceTimelines=g.sourceTimelines)};var Kd=function(){};
_.Y(Kd,hg);Kd.prototype.getApiPaths=function(){return uow};
Kd.prototype.getExtension=function(e){return _.x(e,_.b6)||void 0};
Kd.prototype.JSC$14488_buildRequest=function(e,g){g.token&&(e.continuation=g.token)};
_.ruM=function(){};
_.Y(_.ruM,hg);_.v=_.ruM.prototype;_.v.getApiPaths=function(){return uow};
_.v.getExtension=function(e){return _.x(e,_.Oo)||void 0};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$14495_getStoreKey=function(e,g){g=g===void 0?{}:g;if(!g.disableCache&&(e=this.getExtension(e))&&e.query)return g={query:e.query},e.params&&(g.params=e.params),_.ic("search",g)};
_.v.JSC$14488_buildRequest=function(e,g,c){g.query&&(e.query=g.query);g.params&&(e.params=g.params);_.G("enable_page_type_in_search_request")&&g.pageType&&(e.searchPageType=g.pageType);if(!_.G("web_forward_suggest_stats_killswitch")){var k=_.x(g,AFw);k&&(e.suggestStats=k)}var I;!_.G("kevlar_searchbox_stats_killswitch")&&((I=c.tempData)==null?0:I.gs_l)&&!_.x(g,AFw)&&(e.webSearchboxStatsUrl="/search?oq="+(c.tempData.oq||"")+"&gs_l="+c.tempData.gs_l);var J;if((J=c.tempData)==null?0:J.entityMid)g=e.suggestionSearchParams||
{},g.entityMid=c.tempData.entityMid,e.suggestionSearchParams=g;g=_.ch().getFlag(186);e.inlineSettingStatus=g?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";c.isFromShorts&&(e.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.v.getRequestConfig=function(e,g){g=g===void 0?{}:g;e=this.JSC$14495_getStoreKey(e,g);var c;e&&(c={storeStrategy:{storeKey:e}});_.G("web_log_search_ticks_ks")||(c=c||{},c.requestTick="sr_s",c.responseTick="sr_r");return c};var OF=function(){};
_.Y(OF,hg);OF.prototype.getApiPaths=function(){return qPq};
OF.prototype.getExtension=function(e){return _.x(e,Ycw)};
OF.prototype.JSC$14488_buildRequest=function(e,g){g.serializedGetSharingProviderDataParams&&(e.serializedGetSharingProviderDataParams=g.serializedGetSharingProviderDataParams)};var M8=function(){};
_.Y(M8,hg);M8.prototype.getApiPaths=function(){return Lds};
M8.prototype.getExtension=function(e){return _.x(e,jMM)};
M8.prototype.JSC$14488_buildRequest=function(e,g){g.endpoint&&(e.endpoint=g.endpoint);g.action&&(e.action=g.action)};var aLO=function(){};
_.Y(aLO,hg);aLO.prototype.getApiPaths=function(){return Z$k};
aLO.prototype.getExtension=function(e){return _.x(e,nsq)};
aLO.prototype.JSC$14488_buildRequest=function(e,g){e.videoId=g.videoId;g.scheduledRedirectMetadataSourceVideoId&&(e.scheduledRedirectMetadata={sourceVideoId:g.scheduledRedirectMetadataSourceVideoId})};var nrx=function(){};
_.Y(nrx,hg);nrx.prototype.getApiPaths=function(){return Qjw};
nrx.prototype.getExtension=function(e){return _.x(e,_.rT4)};
nrx.prototype.JSC$14488_buildRequest=function(e,g){e.params=g.params;e.correctionText=g.correctionText};var REo=function(){};
_.Y(REo,hg);REo.prototype.getApiPaths=function(){return X0C};
REo.prototype.getExtension=function(e){return _.x(e,_.wnI)};
REo.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params);e.searchQuery=g.searchQuery;e.languageCode=g.languageCode;e.kind=g.kind;e.name=g.name;e.externalVideoId=g.externalVideoId};var Ero=function(){};
_.Y(Ero,hg);Ero.prototype.getApiPaths=function(){return cXn};
Ero.prototype.getExtension=function(e){return _.x(e,ijn)};
Ero.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.params=g.params)};var Cd=function(e){this.JSC$18785_storeWithEntities=e};
_.Y(Cd,hg);Cd.prototype.getApiPaths=function(){return ls1};
Cd.prototype.getExtension=function(e){return _.x(e,mp4)||_.x(e,TCZ)};
Cd.prototype.JSC$14488_buildRequest=function(e,g,c){c.client_data&&(e.clientData=c.client_data);if(g.commerceActionConfig){var k=g.commerceActionConfig;g=k.actionId;k=k.commerceActionParams;g&&(e.actionId=g);k&&(e.commerceActionParams=k)}else{var I=g.actionId,J=g.commerceActionParams;c=g.entityKeys;I&&(e.actionId=I);J&&(e.commerceActionParams=J);var q;g=(k=this.JSC$18785_storeWithEntities)==null?void 0:(q=k.getState())==null?void 0:q.entities;if(c&&g){k=[];q=_.w(c);for(c=q.next();!c.done;c=q.next())if(I=
c.value,c=_.ZO(I).entityType,I=_.Nc(g,c,I))J={},k.push((J[c]=I,J));e.entityMutationPayloads=k}}};
Cd.prototype.getRequestConfig=function(e){var g,c=(g=_.x(e,mp4))==null?void 0:g.requestSequenceType;if(c&&e.clickTrackingParams&&c!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:e.clickTrackingParams,sequenceType:c}}};
Cd[y0]=[V5];var eG=function(){};
_.Y(eG,hg);eG.prototype.getApiPaths=function(){return kLn};
eG.prototype.getExtension=function(e){return _.x(e,_.yTI)};
eG.prototype.JSC$14488_buildRequest=function(e,g){g.feedbackData&&(e.feedbackData=g.feedbackData);g.params&&(e.itemParams=g.params)};
_.Bd.Object.defineProperties(eG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wuq=function(){};
_.Y(Wuq,hg);Wuq.prototype.getApiPaths=function(){return IKI};
Wuq.prototype.getExtension=function(e){return _.x(e,Kwv)};
Wuq.prototype.JSC$14488_buildRequest=function(e,g,c){c.payments_payload&&(e.paymentsPayload=c.payments_payload);c.offer_params&&(e.offerParams=c.offer_params);g.transactionParams&&(e.transactionParams=g.transactionParams)};var bT7=function(){};
_.Y(bT7,hg);bT7.prototype.getApiPaths=function(){return JXB};
bT7.prototype.getExtension=function(e){return _.x(e,_.Ojk)};
bT7.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.buybucketParams&&(e.buybucketData={params:g.buybucketParams},g.stickerParams?e.buybucketData.stickerParams=g.stickerParams:(c.rich_chat_message?e.buybucketData.richChatMessage=c.rich_chat_message:c.chat_message_text&&(e.buybucketData.chatMessageText=c.chat_message_text),c.purchase_price_micros&&(e.buybucketData.purchasePriceMicros=c.purchase_price_micros.toString())));g.donationAmountMicros&&(e.tipAmountMicros=g.donationAmountMicros,
g.tipParams&&(e.tipParams=g.tipParams));g.offerParams&&(e.offerParams=g.offerParams);g.productData&&(e.productData=g.productData);g.transactionParams&&(e.transactionParams=g.transactionParams)};var gt=function(){};
_.Y(gt,hg);gt.prototype.getApiPaths=function(){return vKq};
gt.prototype.getExtension=function(e){return _.x(e,euI)};
gt.prototype.JSC$14488_buildRequest=function(e,g){g.updateFopParams&&(e.updateFopParams=g.updateFopParams)};var hEO=function(){};
_.Y(hEO,hg);hEO.prototype.getApiPaths=function(){return wZn};
hEO.prototype.getExtension=function(e){return _.x(e,_.pV)};
hEO.prototype.JSC$14488_buildRequest=function(e,g){g.couponCode&&(e.couponCode=g.couponCode);g.params&&(e.itemParams=g.params)};var Xtz=function(){};
_.Y(Xtz,hg);Xtz.prototype.getApiPaths=function(){return qjM};
Xtz.prototype.getExtension=function(e){return _.x(e,_.pII)};
Xtz.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;g.params&&(e.params=g.params);c.ctk&&(e.clientToken=c.ctk)};var c8=function(e){this.JSC$18820_storeWithEntities=e};
_.Y(c8,hg);c8.prototype.getApiPaths=function(){return LMv};
c8.prototype.getExtension=function(e){return _.x(e,_.jD)};
c8.prototype.JSC$14488_buildRequest=function(e,g,c){c.purchase_price_micros&&(e.productData={pdgData:{purchasePriceMicros:c.purchase_price_micros.toString()}},c.rich_chat_message&&(e.productData.pdgData.richChatMessage=c.rich_chat_message),c.currency_code&&(e.productData.pdgData.currencyCode=c.currency_code));g.transactionParams&&(e.transactionParams=g.transactionParams);g.clientLocationContext&&(e.clientLocationContext=g.clientLocationContext);c.payments_payload&&(e.paymentsPayload=c.payments_payload);
c.funds_guarantee_callback_client_data&&(e.fundsGuaranteeCallbackClientData=c.funds_guarantee_callback_client_data);var k,I;c=(k=this.JSC$18820_storeWithEntities)==null?void 0:(I=k.getState())==null?void 0:I.entities;if(g.entityKeys&&c){k=[];g=_.w(g.entityKeys);for(I=g.next();!I.done;I=g.next()){var J=I.value;I=_.ZO(J).entityType;if(J=_.Nc(c,I,J)){var q={};k.push((q[I]=J,q))}}e.entityMutationPayloads=k}};
c8[y0]=[V5];var Gsz=function(){};
_.Y(Gsz,hg);Gsz.prototype.getApiPaths=function(){return rXn};
Gsz.prototype.getExtension=function(e){return _.x(e,MIs)};
Gsz.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;c.backend_analytics&&(e.serializedBackendAnalyticsEvent=c.backend_analytics);g.offerParams&&(e.offerParams=g.offerParams)};var x_x=function(){};
_.Y(x_x,hg);x_x.prototype.getApiPaths=function(){return wZn};
x_x.prototype.getExtension=function(e){return _.x(e,U3C)};
x_x.prototype.JSC$14488_buildRequest=function(e,g){g.params&&(e.itemParams=g.params)};var D_7=function(){};
_.Y(D_7,hg);D_7.prototype.getApiPaths=function(){return aKu};
D_7.prototype.getExtension=function(e){return _.x(e,_.uhM)};
D_7.prototype.JSC$14488_buildRequest=function(e,g,c){c.resume_time_ms&&(e.resumeTimeMs=c.resume_time_ms);g.pauseParams&&(e.pauseParams=g.pauseParams)};var $_l=function(){};
_.Y($_l,hg);$_l.prototype.getApiPaths=function(){return nKq};
$_l.prototype.getExtension=function(e){return _.x(e,_.CAq)};
$_l.prototype.JSC$14488_buildRequest=function(e,g,c){c=c===void 0?{}:c;c.c&&(e.redeemCode=c.c);c.rd&&(e.riskData=c.rd);c.ctk&&(e.clientToken=c.ctk)};var YuQ=function(){};
_.Y(YuQ,hg);YuQ.prototype.getApiPaths=function(){return RVB};
YuQ.prototype.getExtension=function(e){return _.x(e,_.dp4)};
YuQ.prototype.JSC$14488_buildRequest=function(e,g){g.resumeParams&&(e.resumeParams=g.resumeParams)};var kl=function(e,g){this.clientName=e;this.defaultExpirationDelayMs=g};
kl.prototype.put=function(e,g){var c=this,k;return _.r(function(I){k=Object.assign({},g.data);k.key=e;k.clientName=c.clientName;k.expireTimestampMs===void 0&&(k.expireTimestampMs=(Math.round((0,_.yr)())+c.defaultExpirationDelayMs).toString());return I.return(c.putInternal(e,k))})};
kl[y0]=[l_,K6Q];var fLl=function(){kl.apply(this,arguments);this.JSC$18850_responseStore=new Map};
_.Y(fLl,kl);_.v=fLl.prototype;_.v.get=function(e){var g=this;return _.r(function(c){return c.return(S_(g,e))})};
_.v.putInternal=function(e,g){var c=this,k,I,J;return _.r(function(q){k=c.defaultExpirationDelayMs;g.expireTimestampMs&&(k=Number(g.expireTimestampMs)-Math.round((0,_.yr)()),I=_.MN("mweb_override_response_store_expiration_ms"),I>0&&I<k&&(k=I));J=setTimeout(function(){c.remove(e)},k);
c.JSC$18850_responseStore.set(e,{entryData:g,timer:J});_.Uh(q)})};
_.v.remove=function(e){var g=this;return _.r(function(c){jyD(g,e);_.Uh(c)})};
_.v.removeAll=function(){var e=this;return _.r(function(g){e.JSC$18850_responseStore.forEach(function(c){clearTimeout(c.timer)});
e.JSC$18850_responseStore.clear();_.Uh(g)})};
_.v.has=function(e){return!!this.JSC$18850_responseStore.get(e)};
_.v.getKeys=function(){return this.JSC$18850_responseStore.keys()};
var S_=function(e,g){if(e=e.JSC$18850_responseStore.get(g))return new _.NT(e.entryData)},jyD=function(e,g){var c=e.JSC$18850_responseStore.get(g);
c&&(clearTimeout(c.timer),e.JSC$18850_responseStore.delete(g))};
fLl.prototype.markAsProcessed=function(e){var g=this,c;return _.r(function(k){c=g.JSC$18850_responseStore.get(e);if(!c)return k.jumpTo(0);c.entryData.isProcessed=!0;return k.yield(g.putInternal(e,c.entryData),0)})};var mit;var TfA=function(e,g,c){kl.call(this,e,g);this.token=c};
_.Y(TfA,kl);_.v=TfA.prototype;_.v.get=function(e){var g=this,c,k;return _.r(function(I){return I.nextAddress==1?I.yield(Bj(g.token),2):I.nextAddress!=3?(c=I.yieldResult,I.yield(c.get("ResponseStore",[e,g.clientName]),3)):(k=I.yieldResult)?I.return(new _.NT(k)):I.return(void 0)})};
_.v.putInternal=function(e,g){var c=this,k;return _.r(function(I){if(I.nextAddress==1)return I.yield(Bj(c.token),2);k=I.yieldResult;return I.yield(k.put("ResponseStore",g),0)})};
_.v.remove=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(Bj(g.token),2);c=k.yieldResult;return k.return(c.delete("ResponseStore",[e,g.clientName]))})};
_.v.removeAll=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return c.yield(Bj(e.token),2);g=c.yieldResult;return c.yield(lOY(g,IDBKeyRange.only(e.clientName)),0)})};
_.v.has=function(){throw Error("lj");};
_.v.markAsProcessed=function(e){var g=this,c,k;return _.r(function(I){if(I.nextAddress==1)return I.yield(Bj(g.token),2);if(I.nextAddress!=3)return c=I.yieldResult,I.yield(c.get("ResponseStore",[e,g.clientName]),3);k=I.yieldResult;if(!k)return I.jumpTo(0);k.isProcessed=!0;return I.yield(c.put("ResponseStore",k),0)})};_.Iz=new _.AU("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var iTS=function(e){var g;this.stateTagsData=(g=e.responseContext)==null?void 0:g.stateTags},PKX=function(e){var g;
return((g=e.stateTagsData)==null?void 0:g.stateTagsModified)||[]};var m_o;m_o=function(e){this.JSC$18863_responseStore=e};
_.fu=function(e,g,c){if(!_.G("state_tags_killswitch")){var k=new iTS(g);if(PKX(k).length>0){var I=e.JSC$18863_responseStore.getKeys();I=_.w(I);for(var J=I.next();!J.done;J=I.next()){J=J.value;var q=S_(e.JSC$18863_responseStore,J);if(q){var L=_.om(q);a:{var n=void 0;q=PKX(k);L=((n=(new iTS(L)).stateTagsData)==null?void 0:n.relevantStateTags)||[];n=_.w(L);for(L=n.next();!L.done;L=n.next())if(L=L.value,L.stateTag!=null&&q.includes(L.stateTag)&&L.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){q=
!0;break a}q=!1}q&&jyD(e.JSC$18863_responseStore,J)}}}}var R;k=(R=g.responseContext)==null?void 0:R.maxAgeSeconds;c&&k&&Number(k)>0&&(g=oH(g,k),e.JSC$18863_responseStore.put(c,new _.NT(g)))};
m_o.prototype.handleResponse=function(e,g){if(!g)throw Error("mj");var c,k;g=(c=g.config)==null?void 0:(k=c.storeStrategy)==null?void 0:k.storeKey;_.fu(this,e,g)};
m_o[y0]=[_.Bv];_.ZCv=new _.AU("STORE_RESPONSE_PROCESSOR_TOKEN");var ptX=function(e){this.JSC$18866_responseStore=e};
ptX.prototype.handleResponse=function(e,g){if(g.input.match(_.lm(PPw))){var c;if(e==null?0:(c=e.entries)==null?0:c.length)for(e=_.w(e.entries),g=e.next();!g.done;g=e.next()){c=g.value.command;var k=void 0;g=(k=_.x(c,_.eh))==null?void 0:k.unserializedPrefetchData;if(!c||!g)break;k=(new UF).JSC$14495_getStoreKey(c);var I=_.x(g,uxn),J=void 0,q=void 0,L=void 0,n=void 0,R=void 0,W=void 0,b=((J=I)==null?0:(q=J.responseContext)==null?0:q.maxAgeSeconds)&&Number((L=I)==null?void 0:(n=L.responseContext)==null?
void 0:n.maxAgeSeconds)>0?Number((R=I)==null?void 0:(W=R.responseContext)==null?void 0:W.maxAgeSeconds):600;k&&b>0&&(I=oH(I,b),this.JSC$18866_responseStore.put(k,new _.NT(I)));c=(new eE).JSC$14495_getStoreKey(c);g=_.x(g,G9v);n=L=q=J=I=k=void 0;R=((k=g)==null?0:(I=k.responseContext)==null?0:I.maxAgeSeconds)&&Number((J=g)==null?void 0:(q=J.responseContext)==null?void 0:q.maxAgeSeconds)>0?Number((L=g)==null?void 0:(n=L.responseContext)==null?void 0:n.maxAgeSeconds):600;c&&R>0&&(g=oH(g,R),this.JSC$18866_responseStore.put(c,
new _.NT(g)))}}};
ptX[y0]=[_.Bv];var TD0=function(e,g){this.innertubeTransportService=e;this.JSC$18869_commandHandler=g};
TD0.prototype.submitForm=function(e,g,c,k,I){var J=this,q,L,n,R,W,b;return _.r(function(h){if(h.nextAddress==1)return q={submitId:e,formData:g,submitBehavior:c,params:k},L=_.lm(UuM),h.yield(_.Yq(J.innertubeTransportService,q,L,I),2);n=h.yieldResult;if(!n)return h.return(Promise.reject(new _.E2("Submit API returned an undefined response. Submit ID: "+e)));R=n;(b=(W=R)==null?void 0:W.onResponseReceived)&&J.JSC$18869_commandHandler.resolveCommand(b);return h.return(R)})};
TD0[y0]=[_.kv,_.xk];var lLQ=function(){this.scheduler=_.nu()},AuO;
lLQ.prototype.pause=function(){throw Error("nj");};
lLQ.prototype.resume=function(){throw Error("nj");};
lLQ.prototype.queue=function(e){var g=this,c=_.i6(),k=_.h2(this.scheduler,function(){try{var I;if(_.yJ.instance)var J=_.yJ.instance;else{var q=new _.E2("Error: Unexpected uninitialized CommandHandler.");_.jW(q);J=void 0}(I=J)==null||I.resolveCommand(e.command);c.resolve()}catch(L){c.reject(L)}});
c.promise.thenCatch(function(I){I instanceof _.fL&&g.scheduler.cancelJob(k)});
return c.promise};
lLQ.prototype.queueAll=function(e){var g=new Map;e=_.w(e);for(var c=e.next();!c.done;c=e.next())c=c.value,g.set(c.id,this.queue(c));return g};var Ful=function(e,g){var c=this;this.taskModel=e;this.onTaskCancelledCallback=g;this.resolver=_.i6();e=e.proto.prefetchConfig;if(!e)throw Error("oj");if(!e.prefetchAction)throw Error("pj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(k){k instanceof _.fL&&(syj(c,c.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),c.onTaskCancelledCallback(c.taskModel.id,c.jobId),c.tick("pcc"));
throw k;});
this.timerName=this.taskModel.id;_.EV(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
Ful.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var syj=function(e,g){_.nA({prefetchInfo:{cancellationReason:g}},e.timerName)};
Ful.prototype.tick=function(e){_.Wh(e,void 0,this.timerName)};var wt=function(){var e=this;this.scheduler=_.nu();this.maxInflightTasks=_.MN("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.MN("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new tSI;this.onTaskCancelled=function(g,c){c&&e.scheduler.cancelJob(c);uwl(e,g);JE(e,3)}},d_l=function(){wt.instance||(wt.instance=new wt);
return wt.instance};
wt.prototype.pause=function(){this.prefetchCoordinatorState=0};
wt.prototype.resume=function(){JE(this,0)};
wt.prototype.queue=function(e){e=zED(this,e);JE(this,1);return e};
wt.prototype.queueAll=function(e){var g=new Map;e=_.w(e);for(var c=e.next();!c.done;c=e.next())c=c.value,g.set(c.id,zED(this,c));JE(this,1);return g};
var zED=function(e,g){var c=e.allPrefetchTasks.get(g.id);if(c)return c.cancellablePromise;try{var k=new Ful(g,e.onTaskCancelled)}catch(J){return _.q2(J)}c=k;c.tick("pcq");var I={prefetchInfo:{taskId:c.taskModel.id,isPrefetch:!0,fetchAction:c.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:c.taskModel.command.clickTrackingParams}};c.taskModel.csn&&(I.clientScreenNonce=c.taskModel.csn);_.nA(I,c.timerName);e.allPrefetchTasks.set(g.id,k);e.drainingHeap.insert(-k.getPriority(),k);return k.cancellablePromise},
JE=function(e,g){e.prefetchCoordinatorState===g&&(e.prefetchCoordinatorState=2,HTq(e))},HTq=function(e){for(var g={};e.prefetchCoordinatorState!==0;g={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(e.inflightPrefetchTasks.size>=e.maxInflightTasks){e.prefetchCoordinatorState=3;break}g.prefetchTask$jscomp$1=e.drainingHeap.remove();if(!g.prefetchTask$jscomp$1){e.prefetchCoordinatorState=1;break}g.taskId$jscomp$3=g.prefetchTask$jscomp$1.taskModel.id;if(e.allPrefetchTasks.has(g.taskId$jscomp$3)){var c=-1;e.coordinatorTimeoutMs>0&&(c=_.h2(e.scheduler,function(k){return function(){Qyz(e,k.taskId$jscomp$3,Error("qj"))}}(g),e.coordinatorTimeoutMs));
e.inflightPrefetchTasks.set(g.taskId$jscomp$3,c);if(!e.JSC$18886_commandHandler){if(!_.yJ.instance){Qyz(e,g.taskId$jscomp$3,Error("rj"));continue}e.JSC$18886_commandHandler=_.yJ.instance}a:switch(g.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":c=1;break a;default:c=0}g.prefetchTask$jscomp$1.jobId=e.scheduler.addJob(function(k){return function(){k.prefetchTask$jscomp$1.tick("pcr");try{e.JSC$18886_commandHandler.resolveCommand(k.prefetchTask$jscomp$1.taskModel.command)||
Qyz(e,k.taskId$jscomp$3,Error("sj"))}catch(I){Qyz(e,k.taskId$jscomp$3,I)}}}(g),c,0)}}},U_S=function(e,g){(g=uwl(e,g))!=null&&(g.resolver.resolve(),g.tick("pce"));
JE(e,3)},Qyz=function(e,g,c){(g=uwl(e,g,c))!=null&&(g.resolver.reject(c),g.tick("pcc"),syj(g,"CANCELLATION_REASON_ERROR"),Math.random()<=_.MN("prefetch_coordinator_error_logging_sampling_rate")&&(c=new _.E2("Prefetch Command failed.",g.taskModel.id,c.message),_.jW(c)));
JE(e,3)},uwl=function(e,g,c){var k=e.allPrefetchTasks.get(g);
k?((c=e.inflightPrefetchTasks.get(g))&&c!==-1&&e.scheduler.cancelJob(c),e.inflightPrefetchTasks.delete(g),e.allPrefetchTasks.delete(g)):_.mN(new _.E2("Unexpected missing prefetch task when deleting task.",g,c==null?void 0:c.message));return k};var orj=function(e,g,c,k,I){this.id=e;this.triggerOn=g;this.cancelOn=c;this.command=k;this.proto=I};
_.Bd.Object.defineProperties(orj.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var ZTz=function(){this.JSC$18891_prefetchCoordinator=d_l();AuO||(AuO=new lLQ);this.defaultCoordinator=AuO},Vvg;
ZTz.getInstance=function(){Vvg||(Vvg=new ZTz);return Vvg};
ZTz.prototype.get=function(e){switch(e){case 0:return this.JSC$18891_prefetchCoordinator;default:return this.defaultCoordinator}};var q0=function(){this.coordinatorSupplier=ZTz.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},NDO=function(e){var g=_.EM()||void 0,c=Object.keys(tvo)[0];
if(c){var k=e.taskIdByTriggerId.get(c);if(k!=null){e.taskIdByTriggerId.delete(c);c=[];k=_.w(k);for(var I=k.next();!I.done;I=k.next())if(I=e.tasks.get(I.value))g!=="UNDEFINED_CSN"&&(I.csn=g),c.push(I);c=siV(c);g=[];c=_.w(c);for(k=c.next();!k.done;k=c.next()){I=_.w(k.value);k=I.next().value;I=I.next().value;k=e.coordinatorSupplier.get(k).queueAll(I);k=_.w(k);var J=k.next();for(I={};!J.done;I={taskId$jscomp$9:void 0},J=k.next()){var q=_.w(J.value);J=q.next().value;q=q.next().value;I.taskId$jscomp$9=
J;J=q;g.push(I.taskId$jscomp$9);e.queuedPromisesByTask.set(I.taskId$jscomp$9,_.WN(J,function(L){return function(){BDv(e,L.taskId$jscomp$9)}}(I)))}}}}else _.mN(new _.E2("Unexpected malformed TriggerEvent."))};
q0.prototype.trigger=function(e,g){var c=this,k=this.tasks.get(e);if(!k||this.queuedPromisesByTask.has(e))return!1;SuS(this,e,k.triggerOn);g!=="UNDEFINED_CSN"&&(k.csn=g);g=this.coordinatorSupplier.get(k.taskType).queue(k);this.queuedPromisesByTask.set(e,_.WN(g,function(){BDv(c,e)}));
return!0};
q0.prototype.cancel=function(e){var g=this.queuedPromisesByTask.get(e);if(g)g.cancel();else return BDv(this,e)};
var BDv=function(e,g){e.queuedPromisesByTask.delete(g);var c=e.tasks.get(g);if(!c)return!1;e.tasks.delete(g);SuS(e,g,c.triggerOn);(c=AI8(c.cancelOn))&&(e=e.taskIdByCancelId.get(c))&&e.delete(g);return!0},SuS=function(e,g,c){(c=Object.keys(c)[0])&&(e=e.taskIdByTriggerId.get(c))&&e.delete(g)};var tvo={taskRegistered:{}},yuo=function(){q0.instance||(q0.instance=new q0);this.JSC$18900_taskManager=q0.instance};
_.Y(yuo,jd);
yuo.prototype.resolveCommand=function(e){var g=this,c,k;return _.r(function(I){c=_.x(e,F5k);if((k=c)==null||!k.tasks){var J=new _.E2("RegisterTasksCommand is missing tasks.");_.jW(J);return I.return()}J=g.JSC$18900_taskManager;for(var q=_.w(c.tasks),L=q.next();!L.done;L=q.next())if(L=L.value,L=L.id&&L.triggerOn&&L.cancelOn&&L.command?new orj(L.id,L.triggerOn,L.cancelOn,L.command,L):void 0,L){var n=Object.keys(L.triggerOn)[0];if(n){var R=AI8(L.cancelOn);R?(J.tasks.set(L.id,L),J.taskIdByTriggerId.has(n)||J.taskIdByTriggerId.set(n,
new Set),J.taskIdByTriggerId.get(n).add(L.id),J.taskIdByCancelId.has(R)||J.taskIdByCancelId.set(R,new Set),J.taskIdByCancelId.get(R).add(L.id)):_.mN(new _.E2("Unexpected malformed cancelOn field."))}else _.mN(new _.E2("Unexpected malformed triggerOn field."))}else _.mN(new _.E2("Unexpected malformed Task proto."));NDO(g.JSC$18900_taskManager);_.Uh(I)})};var Kuv={},OTD=(Kuv.rendered={priority:_.G("web_adaptive_early_init")?8:0,callback:function(){var e={};e.numCpu=navigator.hardwareConcurrency;var g={};g.ramGb=_.kp.navigator.deviceMemory;var c={staticContext:{}};g.ramGb&&zCC(g.ramGb)&&(c.staticContext.memoryTotalKbytes=(g.ramGb*1048576).toString());e.numCpu&&zCC(e.numCpu)&&(c.staticContext.cpuCores=e.numCpu);if(_.G("web_enable_adaptive_appl_signal")){e={};g=PEC();g=g.length>0?g[0]:void 0;var k,I=(k=_.Xb("rses_dpj"))!=null?k:g==null?void 0:g.tick.rses_dpj,
J;k=(J=_.Xb("rsef_dpj"))!=null?J:g==null?void 0:g.tick.rsef_dpj;I&&Number(I)>0&&k&&Number(k)>0&&(J=Math.ceil(Number(k)-Number(I)),J>0&&(e.loadLatency=J));e.loadLatency&&zCC(e.loadLatency)&&(c.appL=e.loadLatency.toString())}_.Y2("applicationStarted",c);H9A=c;_.G("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",QJC)}},Kuv);var MvO=new _.AU("WINDOW_ON_ERROR"),CKz=new _.AU("ERROR_WEIGHT_MAPS"),eUz=new _.AU("INIT_ERROR");var gF0={},cVj=(gF0.initialized={priority:10,callback:function(e){e.injector.resolve(eUz)()}},gF0);var k7j=function(){},Ico=function(){var e=_.Q0("meta_logger_impl");
e||(e=new k7j,_.BQ("meta_logger_impl",e));return e},JV7=function(){Ico().csiSubscriptionKey=hpe("meta_logging_csi_event",function(e){var g=e.timerName;
if(e=e.timelineData){_.EV(g,{startTime:e.startTime},g);e.infos&&_.nA(e.infos,g);for(var c=_.w(Object.keys(e.ticks)),k=c.next();!k.done;k=c.next())k=k.value,_.Wh(k,e.ticks[k],g)}})};
k7j.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&xYv(this.csiSubscriptionKey)};var vFl={},waO=(vFl.initialized={priority:10,callback:function(){JV7()}},vFl);var qXO=function(e,g){this.innertubeClientName=e;this.JSC$18911_prefCookie=g};
qXO.prototype.record=function(){if(_.G("web_li_record_binary_eval_tick")){var e=_.Xb("rsef_dpj");var g=_.Xb("rses_dpj");e=e!==void 0&&g!==void 0?Math.round(e-g):void 0;if(e!==void 0&&e>0){g=_.qk(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var c=this.poolSize;if(!(g.valuesSeen>=1E9)){if(g.valuesSample.length<c)g.valuesSample.push(e);else{var k=Math.floor(Math.random()*(g.valuesSeen+1));k<c&&(g.valuesSample[k]=e)}g.valuesSeen+=1}_.wp(this.storagePrefix+"-"+this.innertubeClientName,
g,2592E3);e=g.valuesSample;g=FJC(e);e=e.length<this.poolSize?void 0:g<400?1:g<1700?2:3;e!==void 0&&(this.JSC$18911_prefCookie.set(this.cookiePrefix+this.innertubeClientName,e),this.JSC$18911_prefCookie.save())}}else _.Ls(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18911_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18911_prefCookie.save()};
qXO[y0]=[l_,b8];var LPq=function(){qXO.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.Y(LPq,qXO);var rV7=new _.AU("PAGE_LOAD_TIME_TOKEN");var acx=function(e){this.signal=e;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;e.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.h2(_.ft,this.disableLoggingAndSendPayload,1E4)};
acx.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.ft.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),nFO(this))};
var nFO=function(e){var g=_.RC();if(g){var c={webClientComponentsData:{components:Array.from(e.ids,function(k){return{id:k}})}};
e.ids.clear();_.gL().visualElementStateChanged(g,c)}};var RUo=ri({a11y:G8M});_.EFD=aH(RUo)(RUo.a11y,{ephemeralActionSelector:function(e){return e.ephemeralAction||null}});var WPx=ri({continuation:fA1});var bnX=aH(WPx)(WPx.continuation,{continuationCommandSelector:function(e){return e.continuationCommand}});var hUM,G7z,XaO;hUM=function(){this.loadFns=new Map;this.xidToRendererName=new Map};
_.DS=function(e,g,c,k){e.loadFns.has(g)&&e.loadFns.get(g)!==k?_.jW(Error("tj`"+g)):(e.loadFns.set(g,k),e.xidToRendererName.set(c,g))};
G7z=function(e,g){if(typeof g==="string"){var c=XaO(e,g);return e.loadFns.get(c)}return function(){var k;return _.r(function(I){return I.nextAddress==1?(k={},I.yield(Promise.all(g.map(function(J){var q,L;return _.r(function(n){if(n.nextAddress==1){q=XaO(e,J);L=e.loadFns.get(q);if(!L)return k[q]=void 0,n.jumpTo(0);_.lj(n,3);return n.yield(L(),5)}if(n.nextAddress!=3)return k[q]=n.yieldResult,_.zn(n,0);_.Qb(n);k[q]=void 0;_.Uh(n)})})),2)):I.return(k)})}};
XaO=function(e,g){var c;return(c=e.xidToRendererName.get(g))!=null?c:g};var xtl=new _.AU("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var LR=function(e,g){this.JSC$18943_storeWithEntities=e;this.JSC$18943_commandHandler=g;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
LR.prototype.start=function(){this.JSC$18943_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
LR.prototype.observeDownloadingEntities=function(){var e=_.uxA(this.JSC$18943_storeWithEntities.getState().entities).map(function(k){return dwC(k)});
if(e.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var g={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:X3e()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.uB(_.C_("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18943_commandHandler.resolveCommand(g)}this.downloadingEntities=e}else if(this.downloadingEntities.length){var c=FQv(this.JSC$18943_storeWithEntities.getState().entities).map(function(k){return dwC(k)});
this.downloadingEntities.filter(function(k){return c.includes(k)}).length&&(e={openPopupAction:R1z()},this.JSC$18943_commandHandler.resolveCommand(e));
this.downloadingEntities=[]}};
LR[y0]=[V5,_.xk];var Dtx;_.rt=function(e,g,c,k,I,J,q,L){this.JSC$18946_playerApiPromise=e;this.JSC$18946_commandHandler=g;this.JSC$18946_screenManager=c;this.offlineWebClientEligibility=k;this.JSC$18946_prefStorage=I;this.JSC$18946_actionRouter=J;this.entityTypeMap=q;this.JSC$18946_persistentStorePromiseAccessor=L;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
Dtx=function(){var e=_.Ss().resolve(_.rt),g;_.r(function(c){if(c.nextAddress==1)return e.downloadFailureListenerBound?c.return():c.yield(e.JSC$18946_playerApiPromise,2);g=c.yieldResult;g.addEventListener("onOfflineOperationFailure",function(k){if(k.failureReason&&k.entityKey&&k.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(k.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var I=_.ZO(k.entityKey).entityId;I&&e.JSC$18946_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
I)}else if(_.G("kevlar_woffle")){I=e.JSC$18946_commandHandler;var J=I.resolveCommand;k=k.failureReason;var q=_.C_("TRANSFER_FAILED",void 0,"Download failed");k==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(q=_.C_("STORAGE_FULL",void 0,"Storage full"));J.call(I,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.uB(q),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
e.downloadFailureListenerBound=!0;_.Uh(c)})};
_.rt.prototype.deleteVideo=function(e,g){var c=this,k,I,J;return _.r(function(q){if(q.nextAddress==1)return q.yield(c.JSC$18946_playerApiPromise,2);k=q.yieldResult;J={offlineLoggingData:{offlineDeleteReason:(I=g)!=null?I:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return q.yield(k.queueOfflineAction(e,c.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",J),0)})};
_.rt.prototype.pauseVideoDownload=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(g.JSC$18946_playerApiPromise,2);c=k.yieldResult;c.pauseVideoDownload(e);_.Uh(k)})};
_.rt.prototype.resumeVideoDownload=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(g.JSC$18946_playerApiPromise,2);c=k.yieldResult;return k.yield(c.resumeVideoDownload(e),0)})};
_.rt[y0]=[_.QF,_.xk,_.I5,xtl,x0,FN,bWw,eO];var $tl=new _.AU("DOWNLOAD_STATE_STORE_TOKEN");var YXl=function(e,g){this.JSC$18967_persistentStorePromiseAccessor=e;this.store=g;this.upliftCompletionResolver=new _.V8},in7=function(){var e=_.Ss().resolve(fcg),g;
_.r(function(c){switch(c.nextAddress){case 1:if(e.upliftImplPromise)return c.return(e.upliftImplPromise);_.lj(c,2);e.upliftImplPromise=j9x(e);return c.yield(e.upliftImplPromise,4);case 4:e.upliftCompletionResolver.resolve();_.zn(c,3);break;case 2:throw g=_.Qb(c),e.upliftCompletionResolver.reject(g),g;case 3:return c.return(e.upliftImplPromise)}})},j9x=function(e){var g,c,k;
return _.r(function(I){switch(I.nextAddress){case 1:return _.dH("LOGGED_IN")?I.yield(e.JSC$18967_persistentStorePromiseAccessor(),2):I.return();case 2:g=I.yieldResult;if(!g)return _.Wh("vdeur"),I.return();_.Wh("vdeus");_.lj(I,3);return I.yield(Pux(g),5);case 5:c=I.yieldResult;e.store.dispatch(xwp(c));g.observe(function(J){DwK(e.store,J)});
_.zn(I,4);break;case 3:throw k=_.Qb(I),_.Wh("vdeur"),k;case 4:_.Wh("vdeuc"),_.Uh(I)}})},Pux=function(e){var g;
return _.r(function(c){if(c.nextAddress==1)return c.yield(UiC(e),2);g=c.yieldResult;return c.return(g.reduce(function(k,I){if(!I.data||!I.key||!I.entityType)return k;k[I.entityType]||(k[I.entityType]={});k[I.entityType][I.key]=I.data;return k},{}))})};
YXl[y0]=[eO,_.EO];var fcg;fcg=new _.AU("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.mtS=new _.AU("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var pal=function(e,g){this.JSC$18970_persistentStorePromiseAccessor=e;this.transportService=g};
pal.prototype.refresh=function(){var e=this,g,c,k,I;return _.r(function(J){if(J.nextAddress==1)return _.dH("LOGGED_IN")?J.yield(e.JSC$18970_persistentStorePromiseAccessor(),2):J.return();if(J.nextAddress!=3)return(g=J.yieldResult)?J.yield(GcA(g),3):J.return();if((c=J.yieldResult)&&!(Number(c.data.refreshTimestampMs||0)<(0,_.yr)()))return J.return();k={browseId:"SPaccount_downloads"};I=_.lm(sT);_.Yq(e.transportService,k,I).then(function(q){var L;if(g&&(q==null?void 0:(L=q.responseContext)==null?void 0:
L.maxAgeSeconds)!==0){var n;L=(q==null?void 0:(n=q.responseContext)==null?void 0:n.maxAgeSeconds)||604800;n=String(Math.floor((0,_.yr)())+L*1E3);g.put("service:downloads_settings:fallback",new _.NT({innertubeResponse:q,refreshTimestampMs:n}))}});
_.Uh(J)})};
pal[y0]=[_.Iz,_.kv];var az=function(e,g){this.JSC$18974_playerPromise=e;this.store=g;this.started=!1};
az.prototype.start=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return e.started?c.return():c.yield(e.JSC$18974_playerPromise,2);g=c.yieldResult;g.addEventListener("onOrchestrationBecameLeader",e.updateIsLeader.bind(e,!0));g.addEventListener("onOrchestrationLostLeader",e.updateIsLeader.bind(e,!1));if(g.isOrchestrationLeader)e.updateIsLeader(g.isOrchestrationLeader());else{var k=new _.E2("Function isOrchestrationLeader is undefined",{"player.isReady":g.isReady(),"player.playVideo":g.playVideo?
"defined":"undefined"});_.jW(k);e.updateIsLeader(!1)}e.started=!0;_.Uh(c)})};
az.prototype.updateIsLeader=function(e){this.store.dispatch(_.Hh({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:e}}))};
az[y0]=[_.QF,_.EO];var Tsg=function(e,g){this.networkStatusManager=e;this.JSC$18977_prefStoragePromise=g;this.redirectsToPreload=["https://youtube.com"]},lcj=function(){var e=_.Ss().resolve(Tsg),g,c,k,I,J,q;
_.r(function(L){switch(L.nextAddress){case 1:return L.yield(e.JSC$18977_prefStoragePromise,2);case 2:g=L.yieldResult;if(!(c=g)){L.jumpTo(3);break}return L.yield(g.get("yt-redirect-prefetch-id"),4);case 4:c=L.yieldResult;case 3:if(c||!e.networkStatusManager.isNetworkAvailable())return L.return();k={cache:"reload",redirect:"manual"};I=_.w(e.redirectsToPreload);J=I.next();case 5:if(J.done){if(!g){L.jumpTo(0);break}return L.yield(g.set("yt-redirect-prefetch-id",!0,86400),0)}q=J.value;_.lj(L,8);return L.yield(_.kp.fetch(q,
k),10);case 10:_.zn(L,6);break;case 8:_.Qb(L);case 6:J=I.next(),L.jumpTo(5)}})};var AVD=function(e){this.JSC$18983_pageManager=e},s9x=function(e){var g=[];
t1K(["videoId","contentId"],e.JSC$18983_pageManager.data,new Set,g);return g},FPq=function(e){return s9x(e).filter(function(g){return g.contentType==="video"}).map(function(g){return g.contentId}).filter(function(g){return g!==void 0})};
AVD[y0]=[_.A4];var ucx=new _.AU("PAGE_CONTENT_EXTRACTOR_TOKEN");var dt0=function(e){e?(this.container=e,this.containerWasInjected=!0):this.containerWasInjected=!1};
dt0.prototype.openDialog=function(e,g,c){var k=this,I;return _.r(function(J){(I=k.container)==null||I.openDialog(e,g,c);_.Uh(J)})};
dt0.prototype.closeDialog=function(){var e=this,g;return _.r(function(c){(g=e.container)==null||g.closeDialog();_.Uh(c)})};
dt0.prototype.isDialogOpen=function(){var e=this,g,c;return _.r(function(k){return k.return((c=(g=e.container)==null?void 0:g.isDialogOpen())!=null?c:!1)})};
dt0[y0]=[_.NN(ufY)];_.zUQ=new _.AU("POPUP_CONTROLLER_TOKEN");var Hnj=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Hnj.prototype.registerPanel=function(e,g){if(e){this.panelMap.set(e,g);var c=this.pendingPanelResolvers.get(e);c&&(c.resolve(g),this.pendingPanelResolvers.delete(e))}};
Hnj.prototype.getPanel=function(e){var g=this,c;return _.r(function(k){return(c=g.panelMap.get(e))?k.return(c):k.return(Q9D(g,e))})};
var Q9D=function(e,g){var c,k;return _.r(function(I){if(c=e.pendingPanelResolvers.get(g))return I.return(c.promise);k=new _.V8;e.pendingPanelResolvers.set(g,k);return I.return(k.promise)})},Utl=function(e,g){Hnj.call(this);
var c=this;this.popupController=e;this.persistentPanelController=g;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return c.panelMap.size}}};
_.Y(Utl,Hnj);_.v=Utl.prototype;_.v.getReloadContinuation=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(g.getPanel(e),2);c=k.yieldResult;return k.return(c.getReloadContinuation())})};
_.v.showPanel=function(e){var g=this,c,k,I,J,q,L,n,R,W,b,h,X;return _.r(function(D){if(D.nextAddress==1){c=e;k=c.identifier;I=c.panelContents;J=c.config;q=c.extras;L=c.panelUpdatableFields;n=c.updatePanelContinuationData;R=e.target;n&&g.updatePanelContinuationDatas.set(k,n);if((W=J)==null?0:(b=W.engagementPanelPopupPresentationConfig)==null?0:b.popupType)if(h=J.engagementPanelPopupPresentationConfig.popupType,R===void 0&&(R=document.body),h==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!g.persistentPanelController)return _.mN(new _.E2("Persistent panel controller is not available.")),
D.return();var f=g.persistentPanelController;f.persistentPanelIdentifiers.has(k)||(f.persistentPanelWrapper.appendChild(f.engagementPanelElement({panelIdentifier:k},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),f.persistentPanelIdentifiers.add(k));a:switch(_.Yu.currentPageSubTypeSelector(f.store.getState())){case "watch":var l="WATCH";break a;default:l="APP"}_.oFq(f,l);f.store.dispatch(Dmn(!0))}else{if(h==="PANEL_POPUP_TYPE_DIALOG"||h==="PANEL_POPUP_TYPE_DROPDOWN"){f=D.return;l=g.popupController;
var A=l.openPopup;a:switch(h){case "PANEL_POPUP_TYPE_DIALOG":var d="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":d="DROPDOWN";break a;default:throw Error("vj`"+h);}return f.call(D,A.call(l,k,I,d,R))}_.mN(new _.E2("Popup type "+h+" not supported in PanelController."))}return D.yield(g.getPanel(k),2)}X=D.yieldResult;(I||L)&&X.updatePanel(I,!1,q,L);X.showPanel(q);_.Uh(D)})};
_.v.hidePanel=function(e){var g=this,c,k,I,J;return _.r(function(q){if(q.nextAddress==1)return c=e,k=c.identifier,q.yield(g.getPanel(k),2);I=q.yieldResult;I.hidePanel();g.popupController.closePopup(k);(J=g.persistentPanelController)!=null&&J.persistentPanelIdentifiers.has(k)&&J.store.dispatch(Dmn(!1));_.Uh(q)})};
_.v.isVisible=function(e,g){var c=this,k;return _.r(function(I){if(I.nextAddress==1)return g&&!c.panelMap.has(e)?I.return(!1):I.yield(c.getPanel(e),2);k=I.yieldResult;return I.return(k.isVisible())})};
_.v.updatePanel=function(e){var g=this,c,k,I,J,q,L,n,R;return _.r(function(W){if(W.nextAddress==1){c=e;k=c.identifier;I=c.panelContents;J=c.shouldFocus===void 0?!1:c.shouldFocus;q=c.extras;L=c.panelUpdatableFields;n=c.updatePanelContinuationData;if(!I&&!L)return W.return();n&&g.updatePanelContinuationDatas.set(k,n);_.G("enable_ai_companion")&&k==="PAai_companion"&&_.Cx.remove("youchat_messages_section");return W.yield(g.getPanel(k),2)}R=W.yieldResult;R.updatePanel(I,J,q,L);I&&_.G("enable_ai_companion")&&
g.registerPanelContent(k,I);_.Uh(W)})};
_.v.registerPanelContent=function(e,g){e&&this.panelContentMap.set(e,g)};
_.v.unregisterPanelContent=function(e){this.panelContentMap.delete(e)};
_.v.getPanelContent=function(e){return this.panelContentMap.get(e)};
_.v.getUpdatePanelContinuationData=function(e){return this.updatePanelContinuationDatas.get(e)};
Utl[y0]=[_.zUQ,_.NN(_.nj)];var ZnM=function(e,g){this.innertubeTransportService=e;this.JSC$19002_screenManager=g},VPz=function(e){var g;
return!((g=e.panelLoadingStrategy)==null||!g.requestTemplate)};
ZnM.prototype.makeRequest=function(e){var g=this,c,k;return _.r(function(I){switch(I.nextAddress){case 1:if(!VPz(g)){I.jumpTo(2);break}_.lj(I,3);return I.yield(_.jt(g.innertubeTransportService,e),5);case 5:return c=I.yieldResult,c?I.return(c.content):(_.jW(Error("wj")),I.return(void 0));case 3:k=_.Qb(I),_.jW(k);case 2:return I.return(void 0)}})};
ZnM.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
ZnM.prototype.execute=function(e){var g=this,c,k,I,J,q,L,n,R,W,b;return _.r(function(h){if(h.nextAddress==1){c=e;k=c.data;I=c.fallbackVe;J=c.parentVe;q=c.createScreenConfig;L=c.renderFn;n=c.command;g.panelLoadingStrategy=k;var X,D,f=((X=g.panelLoadingStrategy)==null?0:X.screenVe)?(D=g.panelLoadingStrategy)==null?void 0:D.screenVe:I;f&&_.BU(g.JSC$19002_screenManager,f,J,q);return(R=g.getContent())?h.yield(L(R),2):h.jumpTo(2)}return h.nextAddress!=4?VPz(g)?h.yield(g.makeRequest(n),4):h.return():(b=
W=h.yieldResult)?h.yield(L(b),0):h.return()})};
ZnM[y0]=[_.kv,_.I5];var tPz;tPz=function(e,g){this.engagementPanelElement=e;this.store=g;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.oFq=function(e,g){var c=e.persistentPanelContainerMap.get(g);c?c.contains(e.persistentPanelWrapper)||(e=e.persistentPanelWrapper,_.l3=!0,_.Ab.set(e,!0),c.insertBefore(e,null),_.Ab.delete(e),_.l3=!1):_.mN(new _.E2("Persistent panel container not found for surface "+g+"."))};
tPz[y0]=[dQw,_.EO];var nR=function(){var e=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){e.isHovered=!0};
this.onTargetHoverLeft=function(){e.isHovered=!1};
this.onSheetHoverEntered=function(){e.isHovered=!0;var g;(g=e.hoverEnterCallback)==null||g.call(e)};
this.onSheetHoverLeft=function(){e.isHovered=!1;var g;(g=e.hoverLeaveCallback)==null||g.call(e)}};
nR.prototype.getContainer=function(){return _.sM()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
nR.prototype.openSheet=function(e,g,c){c=c===void 0?g:c;var k=this,I,J,q,L,n,R,W;return _.r(function(b){switch(b.nextAddress){case 1:return I={stack:[],error:void 0,hasError:!1},_.lj(b,2,3),J=KT,b.yield(k.isSheetOpen(),5);case 5:q=b.yieldResult;Vuq(I,At8(J));if(!q){b.jumpTo(6);break}if(!k.shouldPreventClosingWhileHovered){if(!_.G("delay_sheet_open_killswitch")){if(_.G("web_close_sheet_if_same_target_killswitch")&&g&&k.currentTarget===g)return(L=k.getContainer())==null||L.closeSheet(),b.return();k.pendingData=
{data:e,target:C1q(k,g)};return b.return()}b.jumpTo(6);break}if(k.currentTarget===g)return b.return();Bsg(k);NsD(k);return b.yield((n=k.getContainer())==null?void 0:n.closeSheet(),6);case 6:if(e.viewModel&&(e={viewModel:e.viewModel,sheetPosition:e.sheetPosition,expandToFullWidth:e.expandToFullWidth}),(R=k.getContainer())==null||R.openSheet(e,g,c),k.currentTarget=g,k.shouldPreventClosingWhileHovered){k.onTargetHoverEntered();var h;(h=k.currentTarget)==null||h.addEventListener("mouseenter",k.onTargetHoverEntered);
var X;(X=k.currentTarget)==null||X.addEventListener("mouseleave",k.onTargetHoverLeft);SX7(k)}else k.hasRegisteredHoverCallbacks&&SX7(k);case 3:_.sh(b);tuw(I);_.HA(b,0);break;case 2:W=_.Qb(b),I.error=W,I.hasError=!0,b.jumpTo(3)}})};
nR.prototype.closeSheet=function(){var e=this;return _.r(function(g){return e.hideDelayMs?(setTimeout(function(){return _.r(function(c){return c.yield(yVg(e),0)})},e.hideDelayMs),g.return()):g.yield(yVg(e),0)})};
var yVg=function(e){var g;return _.r(function(c){if(c.nextAddress==1){if(e.shouldPreventClosingWhileHovered){if(e.isHovered)return c.return();Bsg(e);NsD(e)}else e.hasRegisteredHoverCallbacks&&(NsD(e),e.onSheetHoverLeft());return c.yield((g=e.getContainer())==null?void 0:g.closeSheet(),2)}if(c.nextAddress!=4)return e.resetState(),!e.pendingData||_.G("delay_sheet_open_killswitch")?c.jumpTo(0):c.yield(e.openSheet(e.pendingData.data,e.pendingData.target),4);e.pendingData=void 0;_.Uh(c)})};
nR.prototype.isSheetOpen=function(){var e=this,g,c;return _.r(function(k){return k.return((c=(g=e.getContainer())==null?void 0:g.isSheetOpen())!=null?c:!1)})};
nR.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var Bsg=function(e){var g;(g=e.currentTarget)==null||g.removeEventListener("mouseenter",e.onTargetHoverEntered);var c;(c=e.currentTarget)==null||c.removeEventListener("mouseleave",e.onTargetHoverLeft)},SX7=function(e){var g,c=(g=e.getContainer())==null?void 0:g.getSheetContainerElement();
c==null||c.addEventListener("mouseenter",e.onSheetHoverEntered);c==null||c.addEventListener("mouseleave",e.onSheetHoverLeft)},NsD=function(e){var g,c=(g=e.getContainer())==null?void 0:g.getSheetContainerElement();
c==null||c.removeEventListener("mouseenter",e.onSheetHoverEntered);c==null||c.removeEventListener("mouseleave",e.onSheetHoverLeft)},C1q=function(e,g){if(!_.G("web_parent_target_for_sheets"))return g;
var c,k;return(k=(c=e.getContainer())==null?void 0:c.getParentTarget(g))!=null?k:g};var N1=window.documentPictureInPicture;var g6K=_.Ti(["dark"]),cNv=_.Ti(["system-icons"]),kwC=_.Ti(["typography"]),InA=_.Ti(["lang"]),JNW=_.Ti(["style"]),OGW=_.Ti(["dir"]),M1v=_.Ti(["rounded-container"]),CMW=_.Ti(["style"]),wBW=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Rz=function(e){this.JSC$19020_clientRoot=e;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Rz.prototype.openWindow=function(e){var g=this,c,k;return _.r(function(I){switch(I.nextAddress){case 1:if(!N1||!N1||!pC()||g.currentPipWindow)return I.return(!1);_.lj(I,2);return I.yield((k=N1?N1:null)==null?void 0:k.requestWindow(e),4);case 4:c=I.yieldResult;_.zn(I,3);break;case 2:return _.Qb(I),I.return(!1);case 3:if(!c)return I.return(!1);c.addEventListener("pagehide",function(){KP7(g)});
c.addEventListener("resize",g.handlePipWindowResize);v6e(c);LSt(c);NLC(c);return I.yield(KJW(c),5);case 5:if(!Bfp())return I.return(!1);g.currentPipWindow=c;g.JSC$19020_eventForwarder=q6W(c,g.JSC$19020_clientRoot);g.pipWindowResizeDelay=new _.ya(function(){g.currentPipWindow&&_.Z5(g.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.T6(g.currentPipWindow.innerWidth,g.currentPipWindow.innerHeight)])},c);
g.pipWindowResizeDelay.start();return I.return(!0)}})};
Rz.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var KP7=function(e){if(e.currentPipWindow){var g,c;(g=N1?N1:null)==null||(c=g.window)==null||c.close();e.currentPipWindow.removeEventListener("resize",e.handlePipWindowResize);var k;(k=e.pipWindowResizeDelay)==null||k.dispose();e.pipWindowResizeDelay=void 0;var I;(I=e.JSC$19020_eventForwarder)==null||I.stop();e.JSC$19020_eventForwarder=void 0;g=_.w(e.onCloseCallbacks);for(c=g.next();!c.done;c=g.next())c=c.value,c();e.onCloseCallbacks=[];e.currentPipWindow=null}};
Rz.prototype.getWindow=function(){return this.currentPipWindow};
var Ong=function(e,g){var c;(c=e.onCloseCallbacks)==null||c.push(g)};
Rz.prototype.pictureInPictureSupported=function(){return!(!N1||!N1)&&pC()};
_.Bd.Object.defineProperties(Rz.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Rz[y0]=[Czw];var MP7=new _.AU("PICTURE_IN_PICTURE_CONTROLLER");var rNW=function(e,g){this.lengthY=this.lengthX=0;this.lengthX=g.x-e.x;this.lengthY=g.y-e.y};var Cu7=function(){},rdj=function(e,g){var c;
(c=e.headerElement)==null||c.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:g}))};var esv=function(){};
esv.prototype.openPopup=function(e,g,c,k){var I=this,J;return _.r(function(q){if(!I.container)return q.return();J={openPopupAction:{popup:g,popupType:c,uniqueId:e}};return q.return(I.container.handleOpenPopupAction(J,k))})};
esv.prototype.closePopup=function(e){this.container&&this.container.closePopup(e)};var gzl=function(){this.openTunnels=new Map},VgU=function(e,g,c){if(E6q(c)){var k=_.eQ(c,"gclid");
c={handleEvent:function(L){g&&!g.closed&&typeof g.postMessage==="function"&&L&&L.origin&&L.source===g&&L.data&&L.data.action==="gcl_setup"&&g.postMessage(Object.assign({},{action:"gcl_transfer"},k&&{gclid:k},{gadSource:2}),L.origin)}};
for(var I=_.w(e.openTunnels),J=I.next();!J.done;J=I.next()){var q=_.w(J.value);J=q.next().value;q=q.next().value;if(J.closed)try{window.removeEventListener("message",q),e.openTunnels.delete(J)}catch(L){_.jW(L)}}g&&e.openTunnels.size<15&&(e.openTunnels.set(g,c),window.addEventListener("message",c))}};var c_q=function(){this.clientParams=new Map},VaS=function(e){for(var g=_.w(e.clientParams.keys()),c=g.next();!c.done;c=g.next())c=c.value,c.startsWith("yt-mini-app-share")&&e.clientParams.delete(c)};var krq=function(e,g){_.Iy.call(this);var c=this;this.shortsController=e;this.storeWithShorts=g;e=_.kq(this.storeWithShorts,_.aTp,function(k){if(k){var I,J=(I=c.shortsController.getRoot())==null?void 0:I.getPlayer(),q;(I=(q=c.shortsController.alternativePlayerContainerElement)==null?void 0:q.getPlayerContainer())&&(J==null||J.appendTo(I))}else{var L;q=(L=c.shortsController.alternativePlayerContainerElement)==null?void 0:L.getPlayerContainer().querySelector("#player");I=c.shortsController.activeIndex;
(L=(J=c.shortsController.getRoot())==null?void 0:J.querySelector('ytd-reel-video-renderer[id="'+I+'"] #player-container'))&&(q==null||q.appendTo(L,void 0,!0))}});
this.addOnDisposeCallback(e)};
_.Y(krq,_.Iy);var EW=function(e,g,c,k){var I=this;this.storeWithShorts=e;this.ephemeralResponseStore=g;this.innertubeTransportService=c;this.innertubeTransportLoader=k;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.M2(_.QD);this.isShortsPipActive=_.M2(_.UQ);this.nextReelVe=_.VF(56921);this.prevReelVe=_.VF(56922);this.backButtonVe=_.VF(22156);this.TEST_ONLY={getActiveModules:function(){return I.activeModules}}},ICQ=function(e){e.unsubscribeFromStore=
_.kq(e.storeWithShorts,_.ryA,function(g){e.initOrDisposeActiveModules(g);
!g&&e.storeWithShorts.getState().shorts.isFullscreen&&(_.F7(document.documentElement),e.storeWithShorts.dispatch(_.jE1(!1)))});
e.initOrDisposeActiveModules(_.ryA(e.storeWithShorts.getState()))},Cez,eEM,J_X;
EW.prototype.initOrDisposeActiveModules=function(e){e?this.activeModules.push(new krq(this,this.storeWithShorts)):(_.ue(this.activeModules),this.activeModules.length=0)};
EW.prototype.registerRootElement=function(e){this.rootElement=e;ICQ(this)};
EW.prototype.getRoot=function(){return this.rootElement};
EW.prototype.setActiveIndex=function(e){this.activeIndex=e};
_.S5X=function(e,g){var c,k,I,J,q,L,n;return _.r(function(R){switch(R.nextAddress){case 1:return c=new UF,(k=c.JSC$14495_getStoreKey(g))&&e.ephemeralResponseStore.has(k)?R.yield(e.ephemeralResponseStore.get(k),7):R.yield(J_X(e,g),4);case 4:I=R.yieldResult;if(!k){R.jumpTo(3);break}J=oH(I,3600);return R.yield(e.ephemeralResponseStore.put(k,new _.NT(J)),3);case 7:I=(q=R.yieldResult)==null?void 0:_.om(q);case 3:return((L=I)==null?0:L.replacementEndpoint)&&(n=_.x(I.replacementEndpoint,_.eh))&&I.sequenceContinuation&&
(n.sequenceParams=I.sequenceContinuation),R.return(I)}})};
Cez=function(e,g){g=(new ow).JSC$14495_getStoreKey(g);return!!g&&e.ephemeralResponseStore.has(g)};
eEM=function(e,g,c){var k,I,J,q,L;_.r(function(n){if(n.nextAddress==1){k=new ow;I=k.JSC$14495_getStoreKey(g);if(!I)return n.return();if(c.reelWatchSequenceResponse)return J=oH(c.reelWatchSequenceResponse,3600),e.ephemeralResponseStore.put(I,new _.NT(J)),n.jumpTo(0);if(!e.ephemeralResponseStore.has(I))return n.jumpTo(0);L=c;return n.yield(e.ephemeralResponseStore.get(I),4)}L.reelWatchSequenceResponse=(q=n.yieldResult)==null?void 0:_.om(q);_.Uh(n)})};
J_X=function(e,g){var c=c===void 0?{}:c;var k,I,J;return _.r(function(q){switch(q.nextAddress){case 1:if(e.innertubeTransportService){k=e.innertubeTransportService;q.jumpTo(2);break}if(!e.innertubeTransportLoader){_.zr(Error("yj"));q.jumpTo(2);break}return q.yield(e.innertubeTransportLoader(),4);case 4:k=q.yieldResult;case 2:return q.yield((I=k)==null?void 0:_.jt(I,g,c),5);case 5:return J=q.yieldResult,q.return(J)}})};
_.Bd.Object.defineProperties(EW.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
EW[y0]=[UaQ,_.Bv,_.NN(_.kv),_.NN(Jxq)];_.vzS=new _.AU("STORAGE_MANAGER_TOKEN");var ziA=["touchmove","scroll"];var wVq=!1;var xSK=!1;var dSC={onSpanEnd:function(e){e.parentId==null&&(wVq||(XBC(),setInterval(XBC,6E5),wVq=!0),$SA(e,"web_tracing_action"))}};var Pit=URL.createObjectURL;var FSp,qI7={traceAllComponents:_.G("web_tracing_all_components"),exportToCsi:_.G("web_tracing_export_to_csi"),enabledSpansArray:_.g1("web_tracing_enabled_spans"),exportToDevTools:_.G("web_tracing_export_to_devtools"),maxBreadcrumbs:_.MN("tel_max_breadcrumbs",0)};FSp=new iFK(qI7);var u0C=_.G("web_shorts_enable_tracing");var LRX=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},r_v;
LRX.prototype.enqueue=function(e,g){g===1?this.currentPersistentToast=e:this.queue.push(e);_.aCv(this)};
_.aCv=function(e){var g;(g=e.currentToast)!=null&&g.isOpened()||(e.queue.length?(e.currentToast=e.queue.shift(),e.currentToast.open()):e.currentPersistentToast&&e.currentPersistentToast.open())};_.W8=new _.AU("TOAST_MANAGER_TOKEN");var nzD=new _.AU("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var RsS=new _.AU("VIEW_TRANSITION_COORDINATOR_TOKEN");var Ezo=function(e){this.config=e;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;e=_.w(e.transitionConfigs);for(var g=e.next();!g.done;g=e.next())g=_.w(g.value).next().value,this.transitionTasksMap.set(g,[])};
Ezo.prototype.registerElement=function(e,g,c){c=c===void 0?!1:c;for(var k=_.w(Object.keys(g)),I=k.next(),J={};!I.done;J={viewTransitionName:void 0},I=k.next()){I=I.value;J.viewTransitionName=g[I];var q=this.elementTasksMap.get(e),L=void 0;if((L=q)==null?0:L.has(I)){_.Py(new _.E2("Element already registered for transition",e.tagName,I));break}q=q||new Map;q.set(I,{beforeTransition:function(n){return function(){e.style.viewTransitionName=n.viewTransitionName}}(J),
afterTransition:function(){e.style.viewTransitionName&&(e.style.viewTransitionName="")},
runOnce:c});this.elementTasksMap.set(e,q)}};
_.XJ=function(e,g){var c=e.elementTasksMap.get(g);c&&(c.clear(),c.size===0&&e.elementTasksMap.delete(g))};
Ezo[y0]=[nzD];var b4g=_.H(function(e){var g=_.io("yt-expandable-metadata-header-view-model"),c=_.Ve(function(k){_.$y(_.gL(),{data:e.data()});if(!_.aB(_.rb(k),g.value,["A".toString(),"BUTTON".toString()])){var I;(I=e.expandedCallback)==null||I.call(e,!1)}});
return _.a("yt-expandable-metadata-header-view-model",{el:g,class:"ytExpandableMetadataHeaderViewModelHost"},_.a(_.E,{cond:function(){return e.expanded()},
then:function(){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":c},_.a("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.a(_.E,{cond:function(){return e.data().expandedTitleImage},
then:function(k){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.a(_.pv,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:k}))}}),_.a("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.a("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.a(_.fa,{text:function(){return e.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.a(_.fa,{text:function(){return e.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.a(_.fa,{text:function(){return e.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.a("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.a(_.eS,{data:function(){return e.data().infoButton}},{buttonViewModel:_.oD}),_.a(_.eS,{data:function(){return e.data().collapseButton}},{buttonViewModel:function(k){return _.a(_.oD,{data:k.data,
onClick:function(){var I;(I=e.expandedCallback)==null||I.call(e,!1)}})}})))},
else:function(){return _.a(WRS,Object.assign({},e))}}))},"Ag"),hs7=_.H(function(e){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.a(_.E,{cond:function(){return e.data().collapsedLabelImage},
then:function(g){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.a(_.pv,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:g,alt:""}))}}),_.a(_.fa,{text:function(){return e.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Bg"),WRS=_.H(function(e){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Ve(function(){_.$y(_.gL(),{data:e.data()});var g;(g=e.expandedCallback)==null||g.call(e,!0)})},_.a("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.a(_.E,{cond:function(){return e.data().collapsedImage},
then:function(g){return _.a("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.a(_.pv,{height:20,preserveHeight:!0,preserveWidth:!0,data:g,alt:""}))}}),_.a(_.E,{cond:function(){return e.data().showLeadingCollapsedLabel},
then:function(){return _.a(hs7,Object.assign({},e))}}),_.a("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.a(_.fa,{text:function(){return e.data().collapsedTitle}}))),_.a("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.a(_.E,{cond:function(){return!e.data().showLeadingCollapsedLabel},
then:function(){return _.a(hs7,Object.assign({},e))}}),_.a(_.eS,{data:function(){return e.data().infoButton}},{buttonViewModel:_.oD}),_.a(_.eS,{data:function(){return e.data().expandButton}},{buttonViewModel:function(g){var c=g.data;
return _.a(_.oD,{data:c,onClick:function(){_.$y(_.gL(),{data:c});var k;(k=e.expandedCallback)==null||k.call(e,!0)}})}})))},"Cg");_.XV0=_.H(function(e){var g=_.w(_.uF(function(){return e.data().initiallyExpanded})),c=g.next().value,k=g.next().value,I,J=(I=_.Ss().resolve(_.NN(_.gb)))==null?void 0:I(),q=function(){var L=e.data().colorData;
if(L)return J?L==null?void 0:L.darkColorPalette:L==null?void 0:L.lightColorPalette};
return _.a("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.N2({"background-color":function(){var L=q();return(L==null?0:L.section2Color)?_.EY(L.section2Color):""}})},_.a(_.eS,{data:function(){return e.data().header}},{expandableMetadataHeaderViewModel:function(L){return _.a(b4g,{data:L.data,
expanded:function(){return!!c()},
expandedCallback:function(n){k(n)}})}}),_.a(_.E,{cond:function(){return c()},
then:function(){return _.a("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.a(_.eS,{data:function(){return e.data().expandedContent}},{horizontalShelfViewModel:function(L){return _.a(_.mo,{data:L.data,
includeMargin:!0,forceNarrowLayout:!0,palette:q})},
videoSummaryContentViewModel:function(L){return _.a(UKs,{data:L.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(L){return _.a(_.KS,{data:L.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(L){return _.a(_.YP,{data:L.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.a(_.eS,{data:function(){return e.data().expandedBottomButtons}},{buttonViewModel:function(L){return _.a("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.a(_.oD,{data:L.data}))}}))}}))},"Dg");var Gr0=_.H(function(e){var g=e.text;var c=e.marqueeSpacing;var k=e.scrollDelay;var I=e.scrollDuration;var J=e.enableMarqueeScroll;e=e.large;var q=_.w(_.Wa(!1,void 0,"WyNYFf")),L=q.next().value,n=q.next().value,R=_.w(_.Wa(0,void 0,"OoTdhe"));q=R.next().value;var W=R.next().value,b=_.io("marquee-scroll");R=_.io("div");var h=_.io("span"),X=_.Ss().resolve(_.fV);_.AV(function(){if(J()){var l=h.value.getBoundingClientRect().width,A=b.value.getBoundingClientRect().width;if(l>A){var d=(X==="ltr"?-1:1)*(l+
(c?c():16));Promise.resolve().then(function(){n(!0);W(d)})}}},"dv0Anf");
var D={},f={};return _.a("marquee-scroll",{class:_.o6("ytMarqueeScrollHost",(D.ytMarqueeScrollHostLarge=e,D)),el:b},_.a("div",{id:"marquee-scroll-inner-container",class:_.o6("ytMarqueeScrollInnerContainer",(f.ytMarqueeScrollAnimationEnabled=function(){return L()},f)),
el:R,style:_.N2({gap:c?(0,_.GZ)(c):"16px","animation-duration":I?VNw(I):"16s","animation-delay":k?VNw(k):"3s","--marquee-translate":(0,_.GZ)(q)})},_.a("span",{el:h,dir:"auto"},_.a(_.fa,{text:g,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.a(_.E,{cond:L,then:function(){return _.a("span",{"aria-hidden":"true",dir:"auto"},_.a(_.fa,{text:g,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fg");_.xNg=_.H(function(e){var g=e.data;var c=e.overlayDensity;e=_.Ve(function(){g().onTapCommand&&_.GF(g().onTapCommand);return!1});
var k=_.LV(),I=function(){return(c==null?void 0:c())===1?22:16},J={};
return _.a("reel-sound-metadata-view-model",{class:_.o6("ytReelSoundMetadataViewModelHost",(J.ytReelSoundMetadataViewModelHostLarge=function(){return(c==null?void 0:c())===1},J)),
"on:click":e,tabindex:0,role:"button","on:keydown":k},_.a("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.a(_.E,{cond:function(){return g().musicIcon},
then:function(q){return _.a(_.pv,{data:q,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:I})}}),_.a("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.a(Gr0,{text:function(){return g().soundMetadata},
enableMarqueeScroll:function(){return!!g().enableMarqueeScroll},
large:function(){return(c==null?void 0:c())===1}}))))},"Gg");var DN0,$Nv,j7v,PoQ,pVl,i4z,A_j,lCz;DN0=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];$Nv=_.MN("wil_icon_max_concurrent_fetches",Infinity);
j7v=function(e,g,c){var k=this;this.iconSet=e;this.appDirection=g;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.kp.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.G("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.G("wil_icon_network_first");this.renderWhenIdle=_.G("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.G("wil_icon_load_immediately");this.isPurging=!1;e=function(){k.cacheStorageAvailable&&(k.cacheStorageAsync=_.kp.caches.open("yt-icons").then(function(J){return k.cacheStorageSync=J}).catch(function(){k.cacheStorageAvailable=!1}))};
c=(c==null?void 0:c())||{};c=_.w(Object.entries(c));for(g=c.next();!g.done;g=c.next()){var I=_.w(g.value);g=I.next().value;I=I.next().value;I=WV(I);YI0(I);this.iconCache[g]=I.cloneNode(!0)}this.isPurging=fC7(this);this.isPurging instanceof Promise?this.isPurging.then(e):e()};
_.vce=function(e,g){var c=e.resolveIcon(g);return c?e.renderingMode===1?i4z(e,c,e.renderingMode):(g=e.iconCache[c.url])?(g=g.cloneNode(!0),PoQ(e,g),i4z(e,c,e.renderingMode,g)):_.mNj(e,c).then(function(k){var I=k?0:1;PoQ(e,k);return i4z(e,c,I,k)}):(_.Py(new _.E2("Icon not found",{iconShape:g})),function(){})};
PoQ=function(e,g){if(g){e.counter+=1;e="_yt"+e.counter;g=[g].concat(_.KY(g.getElementsByTagName("*")));g=_.w(g);for(var c=g.next();!c.done;c=g.next())if(c=c.value,c.tagName==="style"&&c.textContent)c.textContent=pVl(c.textContent,e,!0);else for(var k=_.w(c.attributes),I=k.next();!I.done;I=k.next()){I=I.value;I.name==="id"&&(I.value+=e);["mask","fill","clip-path"].includes(I.name)&&(I.value=pVl(I.value,e));if(I.name==="style"){var J=c.style;try{J.cssText=pVl(J.cssText,e,!0)}catch(W){var q=void 0,L=
void 0,n=void 0,R=void 0;bt({error:((q=W)==null?void 0:(n=(L=q).toString)==null?void 0:n.call(L))||"",el:c.outerHTML,style:!!J,cssText:(R=J)==null?void 0:R.cssText})}}I.name==="xlink:href"&&(I.value=I.value.replace(/#(.*)/,"#$1"+e))}}};
pVl=function(e,g,c){var k=/url\(["']?#(.*?)["']?\)/;(c===void 0?0:c)&&(k=/url\(["']?#(.*?)["']?\)/g);return e.replace(k,"url(#$1"+g+")")};
i4z=function(e,g,c,k){return function(I,J){var q;var L=Object.assign({},{iconWidth:g.size+"px",iconHeight:g.size+"px",iconDisplay:"block"},J,{iconColor:(q=J==null?void 0:J.iconColor)!=null?q:"currentcolor"});q=_.C0("DIV");J=L.iconColor;var n=L.iconFilter;L="width: "+L.iconWidth+"; height: "+L.iconHeight+"; display: "+L.iconDisplay+";";n&&(L+=" filter: "+n+";");c===0&&(L+=" fill: "+J+";");c===1&&(n=g.url,L+=" -webkit-mask: url("+n+") no-repeat center / cover; mask: url("+(n+") no-repeat center / cover; background-color: ")+
J);g.allowMirroring&&e.appDirection==="rtl"&&(L+=" transform: scale(-1, 1); transform-origin: center center;");q.setAttribute("style",L);c===0&&k&&q.appendChild(k);I.appendChild(q)}};
_.mNj=function(e,g){var c,k,I;return _.r(function(J){c=function(q){return kW(q)};
k=g.url;if(!TH0(k))throw Error("Bj");I=lCz(e,k);return J.return(I.then(function(q){return q.clone().text()}).then(function(q){var L=c(q);
q=g.size;var n=_.C0("DIV");_.WA(n,L);L=_.ev(n.firstElementChild!==void 0?n.firstElementChild:_.KqZ(n.firstChild,!0));q=YI0(L,q);e.iconCache[k]=q.cloneNode(!0);delete e.responsePromises[k];return q}).catch(function(){}))})};
A_j=function(e){var g,c=(g=e.requestAninmationFrameResolver)==null?void 0:g.promise;c||(e.requestAninmationFrameResolver=new _.V8,c=e.requestAninmationFrameResolver.promise,_.kp.requestAnimationFrame(function(){var k;(k=e.requestAninmationFrameResolver)==null||k.resolve();e.requestAninmationFrameResolver=null}));
return c};
lCz=function(e,g){var c,k;return _.r(function(I){if(I.nextAddress==1)return e.waitForAnimationFrame?I.yield(A_j(e),2):I.jumpTo(2);c=e.responsePromises[g];c||(k=function(){var J,q,L;return _.r(function(n){switch(n.nextAddress){case 1:if(!e.cacheStorageAvailable){J=void 0;n.jumpTo(2);break}if(q=e.cacheStorageSync){n.jumpTo(3);break}return n.yield(e.cacheStorageAsync,4);case 4:q=n.yieldResult;case 3:J=q;case 2:return L=J,e.isNetworkFirstStrategy?n.return(e.fetchAndUpdateCache(g,L).catch(e.getCacheStorageResponse.bind(e,
g,L))):n.return(e.getCacheStorageResponse(g,L).catch(e.fetchAndUpdateCache.bind(e,g,L)))}})},c=e.renderWhenIdle?new Promise(function(J,q){_.h2(_.ft,function(){k().then(J).catch(q)},10)}):k(),e.responsePromises[g]=c);
return I.return(c.catch(function(J){delete e.responsePromises[g];bt({error:(J==null?0:J.toString)?J.toString():"",url:g});throw J;}))})};
j7v.prototype.fetchAndUpdateCache=function(e,g){var c=this;return _.r(function(k){return k.return(s7j(c,e).then(function(I){FRM(c,e,I,g);return I}))})};
var s7j=function(e,g){var c;return _.r(function(k){if(e.numFetches<$Nv)return e.numFetches+=1,k.return(uqg(e,g).finally(function(){--e.numFetches;if(Object.keys(e.queuedResponseResolvers).length){var I=Object.keys(e.queuedResponseResolvers)[0],J=e.queuedResponseResolvers[I];delete e.queuedResponseResolvers[I];J.resolve(s7j(e,I))}}));
c=new _.V8;e.queuedResponseResolvers[g]=c;return k.return(c.promise)})},uqg=function(e,g,c){c=c===void 0?2:c;
var k;return _.r(function(I){k={credentials:"same-origin",priority:"low"};return I.return(_.kp.fetch(g,k).then(function(J){return J.ok?J:Promise.reject(Error("Cj`"+J.status+"`"+J.statusText))}).catch(function(J){if(c>0)return uqg(e,g,c-1);
throw J;}))})},FRM=function(e,g,c,k){_.r(function(I){return k?I.return(new Promise(function(J){_.h2(_.ft,function(){var q,L;
return _.r(function(n){switch(n.nextAddress){case 1:if(!e.isNetworkFirstStrategy){q=void 0;n.jumpTo(2);break}return n.yield(k.match(g).catch(function(){}),3);
case 3:q=n.yieldResult;case 2:if(L=q){n.jumpTo(4);break}return n.yield(k.put(g,c.clone()).catch(function(R){bt({error:(R==null?0:R.toString)?R.toString():"",url:g})}),4);
case 4:J(),_.Uh(n)}})},50)})):I.return()})};
j7v.prototype.getCacheStorageResponse=function(e,g){return _.r(function(c){return g?c.return(g.match(e).then(function(k){return k&&k.ok?k:Promise.reject()})):c.return(Promise.reject())})};
var YI0=function(e,g){g===void 0||e.getAttribute("viewBox")||e.setAttribute("viewBox","0 0 "+g+" "+g);e.setAttribute("focusable","false");e.setAttribute("aria-hidden","true");g=_.G("killswitch_remove_icon_fill_color");e.getAttribute("fill")!=="currentcolor"&&e.getAttribute("fill")!=="currentColor"||g||e.removeAttribute("fill");try{e.style.pointerEvents="none",e.style.display="inherit",e.style.width="100%",e.style.height="100%"}catch(I){var c;bt({error:((c=I)==null?0:c.toString)?I.toString():""});
try{e.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(J){var k;bt({error:((k=J)==null?0:k.toString)?J.toString():""})}}return e},TH0=function(e){for(var g=_.w(DN0),c=g.next();!c.done;c=g.next())if(e.startsWith(c.value)&&e.endsWith(".svg"))return!0;
return!1};
j7v.prototype.resolveIcon=function(e){return this.iconSet.resolveIcon(e)};
var bt=function(e){_.mN(new _.E2("Error in IconManager",e))},fC7=function(e){if(_.G("wil_icons_cache_purge_killswitch"))return!1;
try{var g=_.kp.localStorage}catch(J){return!1}if(!g||!e.cacheStorageAvailable)return!1;var c=function(J){try{var q;(q=g)==null||q.setItem("yt-icons-last-purged",J.toString())}catch(n){var L;bt({error:((L=n)==null?0:L.toString)?n.toString():""})}},k=Number(g.getItem("yt-icons-last-purged"));
if(!k)return k=new Date,k=k.setDate(k.getDate()-Math.floor(Math.random()*90+1)),c(k),!1;if(function(J,q){J=new Date(J);q=new Date(q);return q.getMonth()-J.getMonth()+12*(q.getFullYear()-J.getFullYear())}(k,Date.now())<3)return!1;
try{return _.kp.caches.delete("yt-icons").then(function(J){J&&c(Date.now());return J}).catch(function(){return!1}).finally(function(){e.isPurging=!1})}catch(J){var I;
bt({error:((I=J)==null?0:I.toString)?J.toString():""});return!1}};
j7v[y0]=[jRq,_.fV,_.NN(mOg)];_.dNQ=function(e,g){this.iconManager=e;this.iconsToFetch=g};
_.dNQ[y0]=[_.SY,_.NN(P1S)];var zs0=function(){};var H4g=function(e,g,c){this.requestKey=e;this.wsZ=g;this.l7e=c;this.dHE=function(){return new XMLHttpRequest};
this.qHx=void 0;this.kjM=[]};
H4g.prototype.getLatestChallengeResponse=function(){return this.l7e};
var z_1=function(e,g,c){var k,I,J,q;return _.r(function(L){if(L.nextAddress==1){_.EV("attestation_challenge_fetch");_.Wh("att_fs",void 0,"attestation_challenge_fetch");if(!e.qHx)throw new _.ha(9,"Missing fetcher");return L.yield(e.qHx(g,c),2)}k=L.yieldResult;J=(I=k)==null?void 0:I.bgChallenge;if(!J)throw new _.ha(15,"Missing field");e.l7e=k;e.kjM.forEach(function(n){n(k)});
q=R0U(J);_.Wh("att_fc",void 0,"attestation_challenge_fetch");Rt("attestation_challenge_fetch");return L.return(q)})},wbB=function(e,g){var c,k,I,J,q;
return _.r(function(L){switch(L.nextAddress){case 1:c=new BH(100,3E5,.25,2),k=void 0;case 2:if(!(c.currBackoffCount_<10)){L.jumpTo(4);break}_.lj(L,5);if(!(c.currBackoffCount_>0)){L.jumpTo(7);break}return L.yield(QNA(c.getValue()),7);case 7:return L.yield(Q7X(e,g),9);case 9:return I=L.yieldResult,L.return(I);case 5:J=_.Qb(L);J instanceof _.ha?k=J:(q=J instanceof Error?J.message:"Unknown",k=new _.ha(9,q));KPv(c);L.jumpTo(2);break;case 4:if(k)throw k;throw new _.ha(9,"Unknown error");}})},Q7X=function(e,
g){g=j$s(ifn(new fvk,g),e.requestKey);
var c=new _.V8,k=e.dHE();k.open("POST",e.wsZ);k.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");k.setRequestHeader("Content-Type","application/json+protobuf");k.onload=function(){if(_.HAC(k)){var I=dzk(k.responseText);c.resolve(I)}else c.reject(new _.ha(_.BHg(_.cQ(k)),k.statusText))};
k.onerror=function(){c.reject(new _.ha(_.BHg(_.cQ(k)),k.statusText))};
k.send(g.serialize());return c.promise};var ozl=function(e){this.networkStatusManager=e;this.isDownloaded=xi8===void 0?function(){return!1}:xi8;
this.isReady=!1;this.oZ3=UNQ(this)},UNQ=function(e){var g;
return _.r(function(c){if(c.nextAddress==1)return c.yield(YIt(),2);if(c.nextAddress!=3)return g=c.yieldResult,c.yield(CKu(g),3);e.aA=c.yieldResult;o6C(e.aA).then(function(){e.isReady=!0});
return c.return(e.aA)})},Z4S=function(e,g,c){e.aA?(e=e.aA.ff4({zA:c,
ttY:!0,yUW:!0}),g.serviceIntegrityDimensions={poToken:e}):_.jW(Error("Ej"))};
ozl.prototype.processContext=function(e){var g=this;if(e.input.match(_.lm(YPY)))var c=e.innerTubeRequest;else if(e.input.match(_.lm(neB)))c=e.innerTubeRequest.playerRequest;else return _.pP();var k,I=(k=c)==null?void 0:k.videoId;return!I||this.isDownloaded(c)||this.networkStatusManager&&!this.aA&&!this.networkStatusManager.isNetworkAvailable()||_.G("webpo_exit_on_net_err")&&!this.aA&&(window.bgens===1||window.bgens===3)?_.pP():this.aA?this.isReady?(Z4S(this,c,I),_.pP()):new mK(o6C(this.aA).then(function(){Z4S(g,
c,I)})):new mK(this.oZ3.then(function(J){return _.r(function(q){if(q.nextAddress==1)return q.yield(o6C(J),2);
Z4S(g,c,I);_.Uh(q)})}))};var Vsx=new _.AU("WEB_PO_CONTEXT_PROCESSOR");var tsl=function(e,g){var c=this;this.juV=0;var k;this.hbt=(k=g==null?void 0:g.hbt)!=null?k:window;this.networkStatusManagerPromise=g==null?void 0:g.networkStatusManagerPromise;var I;this.requestKey=(I=g==null?void 0:g.requestKey)!=null?I:_.C4("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var J;this.uuL=(J=g==null?void 0:g.uuL)!=null?J:function(n){return new fZ(n)};
var q;k=(q=g==null?void 0:g.nkc)!=null?q:function(n,R,W){return new H4g(n,R,W)};
this.bgChallenge=R0U(e.bgChallenge);this.ttlSeconds=ET6(TM(e.challenge||""));this.cY=k(this.requestKey,_.G("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.kp.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",e);this.k89=g==null?void 0:g.k89;USg(this.cY);var L;this.ota=(L=g==null?void 0:g.ota)!=null?L:function(n){_.iK(c.hbt.document,"visibilitychange",
function(){c.hbt.document.visibilityState==="visible"&&n()})}},NHx=function(e){if(!e.vm){var g={maxAttempts:5,
b9o:e.ttlSeconds*1E3};ZFC(e.hbt);e.vm=e.uuL({cY:e.cY,noW:{disable:_.G("html5_web_po_disable_remote_logging"),eD:"aGIf",rMf:stW("html5_web_po_experiment_ids"),ymY:_.G("wpo_dis_lfdms")?0:1E3,dPF:function(k){var I=jUu.get(k);I||(I=new fSw(k),I=new K0(I),jUu.set(k,I));return I}},
qc4:g,oCo:e.bgChallenge,iBK:VmC});e.juV=Date.now();s$I(e.vm,function(){e.juV=Date.now()});
e.hbt.bgevmc={p:function(){var k;(k=e.vm)==null||k.pause()},
r:function(){var k;(k=e.vm)==null||k.resume()},
cr:function(){var k,I;return(I=(k=e.vm)==null?void 0:k.checkForRefresh())!=null?I:Promise.resolve()}};
Pog(e.vm,function(){return _.r(function(k){return k.return(BHQ(e))})});
var c=e.pWL.bind(e);e.networkStatusManagerPromise&&e.ttlSeconds>0&&e.networkStatusManagerPromise.then(function(k){k.listen("publicytnetworkstatus-online",c)});
e.ota(c)}};
tsl.prototype.pWL=function(){if(Date.now()>this.juV+this.ttlSeconds*1E3){var e;(e=this.vm)==null||AKZ(e)}};
var BHQ=function(e){if(e.dzl)return e.dzl;if(!e.vm)throw Error("Fj");e.dzl=new pZ({vm:e.vm,cY:e.cY,mRz:!0,onError:VmC,qc4:e.k89});return e.dzl},BI6=function(e,g){e=new tsl(e,g);
NHx(e);(g==null?0:g.m2Y)||BHQ(e)};var SIq=_.EFD.ephemeralActionSelector,y_j=function(e,g){this.store=e;this.queue=[];g==null||g.addEventListener("yt-navigate-start",this.reset.bind(this))};
y_j.prototype.enqueue=function(e){var g=e.command,c=e.durationMs,k=e.elementToFocus;var I=e.label;var J=e.elementToFocus;e.command?I=_.C_("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:I,shortcut:_.C_("SHIFT_PLUS_ENTER")}):J&&(e=I+". "+_.C_("SHIFT_PLUS_ENTER")+" for more information.",I=_.C_("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:I,shortcut:_.C_("SHIFT_PLUS_ENTER")},e));c={announcement:I,durationMs:c!=null?c:8E3};g?c.command=g:k&&(k.classList.add("ephemeral-action-focusable-element"),c.selector=k.tagName+
".ephemeral-action-focusable-element");this.queue.push(c);KRx(this)};
y_j.prototype.activate=function(e){var g=SIq(this.store.getState());if(g){if(g==null?0:g.command)_.b3(g.command),this.store.dispatch(XXM(null));if(g==null?0:g.selector)g=document.querySelector(g.selector),_.FYA(g);e.preventDefault()}};
var KRx=function(e){if(!SIq(e.store.getState())&&e.queue.length){var g=e.queue.shift();g&&(e.previousAnnouncement===g.announcement&&(g.announcement+="\u00a0"),e.store.dispatch(XXM(g)),e.previousAnnouncement=g.announcement,e.JSC$19140_timeoutId=setTimeout(function(){if(g.selector){var c;(c=document.querySelector(g.selector))==null||c.classList.remove("ephemeral-action-focusable-element")}e.store.dispatch(XXM(null));KRx(e)},g.durationMs))}};
y_j.prototype.reset=function(){this.JSC$19140_timeoutId&&clearTimeout(this.JSC$19140_timeoutId);this.store.dispatch(XXM(null));this.queue.length=0;this.JSC$19140_timeoutId=void 0};
y_j[y0]=[_.EO,_.NN(_.yq)];_.hE=new _.AU("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var O4x=new _.AU("AUTH_SERVICE_TOKEN");var yNK=_.Ti(["about:blank"]),S6K;var Msx=new _.AU("API_IFRAME_TOKEN");var QFv;QFv=new _.AU("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Coo=new _.AU("MISC_UI_SHARED_FLAGS_TOKEN");var e_7=function(){};
e_7.prototype.getFlag=function(e){if(e.configType!==2)throw Error("Gj");return g10(e)};
var g10=function(e){switch(e.flagType){case "bool":return _.G(e.flagName);case "int":return _.zq(_.MN(e.flagName));case "double":return _.MN(e.flagName);case "string":return _.C4(e.flagName);case "int32_list":return stW(e.flagName);case "int64_list":return stW(e.flagName).map(function(g){return _.zq(g)});
case "string_list":return _.g1(e.flagName);default:throw Error("Hj");}};var Xn=function(e,g,c){g=g===void 0?{}:g;ag.call(this,c===void 0?"uninitialized":c);this.env=e;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}];g.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=g.shouldWaitOnAsyncImmediate)};
_.Y(Xn,ag);Xn.prototype.init=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return g.processPluginOptions.shouldWaitOnAsyncImmediate?k.yield(e(g.env),2):(e(g.env),k.jumpTo(2));if(k.nextAddress!=4)return g.jobSet?k.yield(g.jobSet.completedResolver.promise,4):k.jumpTo(4);c=_.iE();c.parkOrScheduleJob(function(){g.transition("rendering")},10,"ci");
_.Uh(k)})};
Xn.prototype.initialRender=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return g.processPluginOptions.shouldWaitOnAsyncImmediate?k.yield(e(g.env),2):(e(g.env),k.jumpTo(2));if(k.nextAddress!=4)return g.jobSet?k.yield(g.jobSet.completedResolver.promise,4):k.jumpTo(4);c=_.iE();c.parkOrScheduleJob(function(){g.transition("rendered")},10,"cr");
_.Uh(k)})};
Xn.prototype.afterRenderImmediate=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return g.processPluginOptions.shouldWaitOnAsyncImmediate?k.yield(e(g.env),2):(e(g.env),k.jumpTo(2));if(k.nextAddress!=4)return g.jobSet?k.yield(g.jobSet.completedResolver.promise,4):k.jumpTo(4);c=_.iE();c.parkOrScheduleJob(function(){g.transition("after-render-deferred")},10,"carml");
_.Uh(k)})};
Xn.prototype.afterRenderDeferred=function(e){var g=this;return _.r(function(c){e(g.env);_.Uh(c)})};_.Fq("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var cKl={},knj=(cKl.rendered={priority:0,callback:function(e){M4B(e.injector.resolve(XC))}},cKl);var HCI=new _.AU("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),IvQ=new _.AU("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var JKv=function(e){this.callbackFnMap=e;this.configMap={}};
JKv.prototype.handleResponse=function(e){var g;if(e=(g=e.responseContext)==null?void 0:g.serviceTrackingParams)for(g=_.w(e),e=g.next();!e.done;e=g.next()){e=e.value;var c=e.params,k=e.service;if(c&&k){this.configMap[k]||(this.configMap[k]=new y7k);e=this.configMap[k];var I=void 0,J=(I=this.callbackFnMap)==null?void 0:I[k];c=_.w(c);for(k=c.next();!k.done;k=c.next())I=k.value,k=I.key,I=I.value,k&&I&&(e.set(k,I),J&&J(k,I))}}};
JKv.prototype.getConfig=function(e){return this.configMap[e]||void 0};
JKv[y0]=[_.NN(IvQ)];var v1O=!1,kVg=0,Civ=null,cH6=null;var wQj=new _.AU("NETWORK_SLI_TOKEN");var q2x=function(e){this.networkSli=e};
q2x.prototype.fetch=function(e,g,c){var k=this,I;return _.r(function(J){I=LYX(k,e,g);return J.return(fetch(I).then(function(q){return k.handleResponse(q,c)}).catch(function(q){_.mN(q);
if((c==null?0:c.expectJsonStrict)&&q instanceof kM&&q.errorType===1)return Promise.reject(q)}))})};
var w8n=function(e,g,c,k){var I,J,q,L,n,R,W;return _.r(function(b){switch(b.nextAddress){case 1:return I=LYX(e,g,c),_.lj(b,2),b.yield(fetch(I),4);case 4:J=b.yieldResult;_.zn(b,3);break;case 2:throw _.Qb(b),new kM(2,"Failed to parse streaming response",I.url);case 3:if(!J.redirected&&!J.ok)throw(q=e.networkSli)==null||q.failure(),new _.E2("Streaming fetch request not ok",I.url);if(!J.body)throw new _.E2("No response body in streaming response",I.url);L={};if(_.G("web_streaming_fast"))return n=J.body.getReader(),
b.return(rKj(e,n,L,k));R=J.body.pipeThrough(new TextDecoderStream).getReader();W=new _.qR;return b.return(avq(e,R,W,sQ8,L,k))}})},LYX=function(e,g,c){if(e.networkSli){var k=_.tv(_.gN(g,"key"))||"/UNKNOWN_PATH";
e.networkSli.start(k)}e=c;_.G("wug_networking_gzip_request")&&(e=VYW(c));return new window.Request(g,e)},rKj=function(e,g,c,k){var I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y,O,Jq,LC,bW,RA,Xg,Fg,oA,Zt,Ev,an,V6;
return _.r(function(bs){switch(bs.nextAddress){case 1:I=new TextDecoder("utf-8"),J=[],L=q=0,_.lj(bs,2,3);case 5:return bs.yield(g.read(),8);case 8:n=bs.yieldResult;R=n.value;if(W=n.done){b=0;if(J.length>q)for(b=J[q].length-L,h=q+1;h<J.length;h++)b+=J[h].length;b>0&&(X=Iap(J,b,q,L),D=X.indexOf(123),f=X.lastIndexOf(125),D!==-1&&f!==-1&&f>D&&(l=X.subarray(D,f+1),A=JSON.parse(I.decode(l)),sQ8(c,A),d=void 0,(d=k)==null||d(c,A)));S=void 0;(S=e.networkSli)==null||S.success();return bs.return(c)}J.push(R);
V=q;for(Q=L;V<J.length;)if(y=J[V],O=y.indexOf(10,Q),O===-1){if(V===J.length-1)break;V++;Q=0}else{Jq=V;LC=O+1;bW=0;if(q===Jq)bW=LC-L;else{bW=J[q].length-L;for(RA=q+1;RA<Jq;RA++)bW+=J[RA].length;bW+=LC}Xg=Iap(J,bW,q,L,Jq,LC);Fg=Xg.indexOf(123);oA=Xg.lastIndexOf(125);if(Fg!==-1&&oA!==-1&&oA>Fg){Zt=Xg.subarray(Fg,oA+1);try{Ev=JSON.parse(I.decode(Zt)),sQ8(c,Ev),an=void 0,(an=k)==null||an(c,Ev)}catch(f1){throw new kM(1,"Failed to parse streaming response object",I.decode(Zt));}}q=V;Q=L=O+1;L===y.length&&
(q++,L=0,V=q,Q=0)}bs.jumpTo(5);break;case 3:_.sh(bs);g.releaseLock();_.HA(bs,0);break;case 2:V6=_.Qb(bs);if(V6 instanceof kM)throw V6;throw new kM(1,"Failed to process streaming response");}})},avq=function(e,g,c,k,I,J){var q,L,n,R,W,b,h,X,D;
return _.r(function(f){if(f.nextAddress==1)return f.yield(g.read(),2);q=f.yieldResult;L=q.value;if(n=q.done)return(R=e.networkSli)==null||R.success(),f.return(I);try{W=c.parse(L)}catch(l){throw new kM(1,"Failed to parse streaming response",L);}if(W!=null)for(b=_.w(W),h=b.next();!h.done;h=b.next())X=h.value,k(I,X),D=void 0,(D=J)==null||D(I,X);return f.return(avq(e,g,c,k,I,J))})};
q2x.prototype.handleResponse=function(e,g){var c=e.text().then(function(k){if((g==null?0:g.jspbResponseCtor)&&e.ok)return aEC(g.jspbResponseCtor,k);k=k.replace(")]}'","");if((g==null?0:g.expectJsonStrict)&&k)try{var I=JSON.parse(k)}catch(q){throw new kM(1,"JSON parsing failed after fetch");}var J;return(J=I)!=null?J:JSON.parse(k)});
e.redirected||e.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),c=c.then(function(k){_.mN(new _.E2("Error: API fetch failed",e.status,e.url,k));return Object.assign({},k,{errorMetadata:{status:e.status}})}));
return c};
q2x[y0]=[_.NN(wQj)];var n1q=new _.AU("NETWORK_MANAGER_TOKEN");var R_l=[1,2,4,8,16,30],WYQ=function(e){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=e.maxTimeMs;this.maxFrameCount=e.maxFrameCount===void 0?Math.ceil(60*e.maxTimeMs/1E3):e.maxFrameCount;e=_.w(R_l);for(var g=e.next();!g.done;g=e.next())this.brokenFrameSummarizers.push(new E1v(g.value/60*1E3))},bfS=function(e){var g=e.frameCountInternal>=e.maxFrameCount;
return e.elapsedTimeMs>=e.maxTimeMs||g};
WYQ.prototype.summarize=function(){for(var e=[],g=_.w(this.brokenFrameSummarizers),c=g.next();!c.done;c=g.next())c=c.value,c=c.brokenFrameCount!==0?{severityMs:Math.round(c.targetFrameTimeMs),eventCount:c.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(c.averageDurationBetweenEventsMs)}:void 0,c&&e.push(c);return{summaries:e,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.Bd.Object.defineProperties(WYQ.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 E1v=function(e){this.targetFrameTimeMs=e;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Bd.Object.defineProperties(E1v.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var h_S=function(){};
h_S.prototype.start=function(e,g){var c=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var k=new WYQ({maxTimeMs:e});this.monitor=k;this.lastSummaryInternal=void 0;this.metadataToLog=g;return new Promise(function(I){var J=function(q){if(q===void 0)c.stop(),I(void 0);else if(c.monitor!==k)q=Object.assign({},k.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),I(q);else{var L=c.monitor;if(!bfS(L)){L.frameCountInternal++;if(L.prevTime===
void 0)L.startTime=q;else for(var n=q-L.prevTime,R=_.w(L.brokenFrameSummarizers),W=R.next();!W.done;W=R.next()){W=W.value;var b=W.currTimeMs;W.currTimeMs+=n;n>W.targetFrameTimeMs+2&&(W.brokenFrameCount++,W.timeOfFirstBrokenFrameMs===void 0&&(W.timeOfFirstBrokenFrameMs=b),W.timeOfLastBrokenFrameMs=b)}L.prevTime=q}bfS(c.monitor)?I(c.stop()):_.ft.addJob(J,5,0)}};
_.ft.addJob(J,5,0)})};
h_S.prototype.stop=function(e){if(!this.monitor)return this.lastSummaryInternal;var g=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(g.monitoringDurationMs){e=e!=null?e:this.metadataToLog;var c={droppedFramesSummary:g,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};e&&(c[e.type]=e.data);_.Y2("manualSmoothnessMeasurement",c)}this.monitor=void 0;this.lastSummaryInternal=g;this.metadataToLog=void 0;return g};_.XQS=new _.AU("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var JHV=Promise.resolve();var Gn7;Gn7=function(e){this.JSC$19182_expiringStorage=new hK(e)};
_.xll=function(e){if(_.weK()&&(e=_.DWv(_.nf()+"::"+e)))return new Gn7(e)};
Gn7.prototype.set=function(e,g,c){c=c!==void 0?Date.now()+c:void 0;this.JSC$19182_expiringStorage.set(e,g,c)};
Gn7.prototype.get=function(e){return this.JSC$19182_expiringStorage.get(e)};
Gn7.prototype.remove=function(e){this.JSC$19182_expiringStorage.remove(e)};_.Gg=function(){};
_.Gg.getInstance=function(){var e=_.Q0("ytglobal.storage_");e||(e=new _.Gg,_.BQ("ytglobal.storage_",e));return e};
_.Gg.prototype.estimate=function(){var e,g,c;return _.r(function(k){e=navigator;return((g=e.storage)==null?0:g.estimate)?k.return(e.storage.estimate()):((c=e.webkitTemporaryStorage)==null?0:c.queryUsageAndQuota)?k.return(qlg()):k.return()})};
_.BQ("ytglobal.storageClass_",_.Gg);var WUz=0;var $jz=!1;var Dlz=_.Ti(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),$lv=_.Ti(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var i0D={"/":_.cl,"/?feature=ytca":_.cl,"/feed/downloads":_.Eiz};var Y2O=bnX.continuationCommandSelector,c2=function(e,g,c){this.JSC$19197_upliftPromise=e;this.store=g;this.JSC$19197_persistentStorePromiseAccessor=c};
c2.prototype.shouldPreferLocalResponse=function(e){return e.browseId==="FEdownloads"||e.browseId==="FEsmart_downloads"&&_.G("kevlar_modern_downloads_page")?!0:!1};
c2.prototype.localInnertubeResponse=function(e){var g=this;return _.r(function(c){return e.browseId==="FEdownloads"?_.G("kevlar_modern_downloads_page")?c.return(fvo(g)):c.return(j$S(g)):e.browseId==="FEsmart_downloads"&&_.G("kevlar_modern_downloads_page")?c.return(ifx(g)):c.return(Promise.reject(Error("Jj")))})};
c2.prototype.canProvideFallbackResponse=function(){return!0};
c2.prototype.localFallbackInnertubeResponse=function(e){var g=this,c,k,I;return _.r(function(J){switch(J.nextAddress){case 1:return J.yield(g.JSC$19197_persistentStorePromiseAccessor(),2);case 2:c=J.yieldResult;if(e.browseId!=="SPaccount_downloads"||!c){J.jumpTo(3);break}return J.yield(GcA(c),4);case 4:if(k=J.yieldResult)return J.return(_.om(k));case 3:return e.browseId==="FEwhat_to_watch"?J.return(PHv(g)):(I=_.G("web_offline_continuation_automatic_retry")||_.G("web_offline_continuation_retry_button"))&&
e.continuation?J.return(mlM(g)):J.return(pQv(g))}})};
var PHv=function(e){var g;return _.r(function(c){if(c.nextAddress==1)return c.yield(e.JSC$19197_upliftPromise,2);g=_.RbW(e.store.getState().entities);return g.length?c.return(T1q(e,g)):c.return(pQv(e))})},j$S=function(e){var g,c;
return _.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$19197_upliftPromise,2);if(k.nextAddress!=3)return g=lv7([{offlineItemSectionRenderer:{}}]),k.yield(AKj(e,g),3);c=k.yieldResult;c.onResponseReceivedActions=[KV("REFRESH_DOWNLOADS")];return k.return(c)})},fvo=function(e){var g,c,k,I,J,q,L,n,R,W,b,h,X,D,f,l;
return _.r(function(A){if(A.nextAddress==1)return A.yield(e.JSC$19197_upliftPromise,2);if(A.nextAddress!=3)return g=e.store.getState(),c=g.entities,k=_.LU(c),I=_.rq(c),J=_.t_g(g),q=_.V_p(g),L=_.BOV(g),n=_.b38(c),R=_.kd(k),W=_.aq(c),b=_.xTV(c),h=_.ScC(g),X=_.bm(g),D={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.p38(k,I,n,b,J,q,R,W,L,h,X),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},f="",_.G("kevlar_modern_downloads_skip_downloads_title")||
(f=_.C_("DOWNLOADS",void 0,"Downloads")),A.yield(s$X(e,D,f),3);l=A.yieldResult;l.onResponseReceivedActions=[KV("REFRESH_DOWNLOADS")];return A.return(l)})},ifx=function(e){var g,c,k,I,J,q,L,n,R;
return _.r(function(W){if(W.nextAddress==1)return W.yield(e.JSC$19197_upliftPromise,2);if(W.nextAddress!=3)return g=e.store.getState(),c=g.entities,k=_.LU(c),I=_.kd(k),J=_.aq(c),q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.lqC(k),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},L=_.C_("SMART_DOWNLOADS",void 0,"Smart downloads"),n=PLV(I,J),W.yield(s$X(e,q,L,n),3);R=W.yieldResult;R.onResponseReceivedActions=
[KV("REFRESH_DOWNLOADS")];return W.return(R)})},pQv=function(e){var g,c;
return _.r(function(k){if(k.nextAddress==1)return k.yield(UT(e.JSC$19197_upliftPromise,e.store),2);g=k.yieldResult;c=lv7([WJe(g)]);return k.return(AKj(e,c))})},mlM=function(e){var g,c,k,I;
return _.r(function(J){if(J.nextAddress==1)return g={},c=Y2O(e.store.getState()),_.rL(g,_.b6,c),J.yield(UT(e.JSC$19197_upliftPromise,e.store,g,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);k=J.yieldResult;I={};_.rL(I,_.ajY,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:k}}}],targetId:"browse-feedFEwhat_to_watch"});return J.return({responseContext:{},onResponseReceivedActions:[I]})})},lv7=function(e){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:e}}}}]}}},T1q=function(e,g){var c,k;
return _.r(function(I){var J={contents:OQ(g)};c=J&&J.contents?J:{};_.G("kevlar_modern_downloads_page")&&(c=Object.assign({},_.AYW(g),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));k={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:c}}}]}};return I.return(AKj(e,k))})},AKj=function(e,g){var c,k;
return _.r(function(I){if(I.nextAddress==1)return I.yield(e.JSC$19197_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3)return c=I.yieldResult,I.yield(ZZ(c),3);k=I.yieldResult;return I.return({responseContext:{},contents:g,topbar:k})})},s$X=function(e,g,c,k){var I,J;
return _.r(function(q){if(q.nextAddress==1)return q.yield(e.JSC$19197_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3)return I=q.yieldResult,q.yield(ZZ(I),3);J=q.yieldResult;var L=q.return;var n=c;var R=k;n=n===void 0?"":n;R=R===void 0?"":R;n={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:n}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.C_("SETTINGS",void 0,"Settings"),accessibilityText:_.C_("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:_.sV("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:R}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:n};
return L.call(q,{responseContext:{},contents:g,topbar:J,header:{pageHeaderRenderer:n}})})};var FYx=function(e){this.chunkRegistry=e};
FYx.prototype.handleResponse=function(e){var g=this,c,k,I,J,q;return _.r(function(L){J=(I=(c=_.x(e.responseContext,ZQ1))==null?void 0:(k=c.webResponseContextPreloadData)==null?void 0:k.preloadMessageNames)!=null?I:[];q=G7z(g.chunkRegistry,J);return L.yield(q(),0)})};
FYx[y0]=[_.xP];var CWk=new _.AU("MSS_RESPONSE_PROCESSOR_TOKEN");var uBo={},dlq=(uBo.rendered={priority:0,callback:function(e){a:{var g=void 0;try{var c;b:{if(_.uoz()){var k=_.x1(_.nf()+"::pom");if(k){var I=new ex(k);break b}}I=void 0}var J=(c=I)==null?void 0:c.get("role_text");if(!J)break a;g={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:J}]}}}}}}catch(n){}g&&e.injector.resolve(_.xk).resolveCommand(g)}try{var q=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(q){var L=JSON.parse(q);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
L&&e.injector.resolve(_.xk).resolveCommand(L)}}catch(n){}}},uBo);var z_g,HfS={},Q$X=(HfS.initialized={priority:10,callback:function(){z_g=ad()}},HfS.rendering={callback:function(e){var g;
return _.r(function(c){if(c.nextAddress==1)return c.yield(z_g,2);g=c.yieldResult;if(!g.endpoint)throw Error("Lj`"+_.kp.location.href);Em(e,g);_.Uh(c)})}},HfS);var Ulx={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.KY(_.G("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(e){var g=e.stack;if(g.includes("chrome://")||g.includes("chrome-extension://")||e.message.includes("chrome-extension://")||g.includes("moz-extension://")||
g.includes("local.adguard.org")||g.includes("auctioneer3.50million.club")||g.includes("youtubedownloader")||g.includes("youtube_home_page")||g.includes("is_youtube_video_no_longer_available")||g.includes("switchScreenSizeHack")||g.includes("yt_main_big_banner.js")||g.includes("YouTubeCenter.js")||g.includes("/mytube.js")||g.includes("JSON.parseWrapper")||g.includes("/inj_js/common.js")||g.includes("firebug-lite")||g.includes(".repl.co/")||g.includes("linkfix")||g.includes("playAfterAd")||e.message.includes("Access is denied for this document")&&
g.includes("<anonymous>")||e.fileName==="user-script"||e.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&g.includes("<anonymous>"))return!0;if(g.includes("https://www.youtube.com"))return!1;e=g.split("\n");if(!e.length)return!1;if(e.length<=3&&g.includes("s.onloadeddata"))return!0;g=0;for(var c=_.w(e),k=c.next();!k.done;k=c.next())k=k.value,(k.includes("https://")||k.includes("http://"))&&g++;return g/e.length>.95},
weight:0},{callback:function(e){return e.message==="Unknown Error"&&e.name.indexOf("NS_")===0},
weight:100},{callback:function(e){if(!_.B2)return!1;var g=e.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||e.message.includes("available to complete this operation"),c=e.stack.includes("webcomponents")&&e.message==="Object doesn't support this action";e=e.message.includes("object that does not implement interface Element");return g||c||e},
weight:0},{callback:function(e){return e.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(e){return e.message==="Operation is not supported"&&(e.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(e){return e.stack.includes("eval code (eval (code:1:1)")||e.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(e){return e.message.includes("Permission denied")&&e.stack.includes("this.domHandler")?!0:e.name.includes("TypeError")&&e.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(e){if(!e.stack)return!1;var g=e.stack.trim().split("\n");g.length&&g[0].endsWith("Error: "+e.message)&&g.shift();g.length&&g[g.length-1].includes("at window.onerror (")&&g.pop();if(!g.length)return!0;if(e.message==="Script error.")return g[0].includes("www.youtube.com")||g.length>=2&&g[0].startsWith("at new")&&g[1].startsWith("at window.onerror");if(e.message==="Unexpected token")return!0;e=_.w(g);for(g=e.next();!g.done;g=e.next())if(g=g.value,!(g.includes("<anonymous>")||
g.startsWith("load@")||g.startsWith("global code@")||g.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(e){return e.message==="Cannot read property 'experiments'"&&e.stack.includes("/s/player/")},
weight:500},{callback:function(e){return e.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(e){return e.stack.includes("/embed.js")?(e.params&&e.params&&(e.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.G("use_error_suppression"))var e=_.uo("SUPPRESS_CLIENT_ERRORS",!1);else{if(e=_.yG)e=/Chrome\/(\d+)/.exec(_.xp()),e=(e?parseFloat(e[1]):NaN)>=66;e=!(e||_.S$&&_.Ne(65)||_.Tn&&_.Ne(12.1)||Vr&&_.Ne(79))}return e},
weight:500}]};var o1v={},Zf7=(o1v.initialized={priority:10,callback:function(e){e.injector.addProvider({provide:Czw,useValue:e.root});e.injector.addProvider({provide:MvO,useValue:W3z});e.injector.addProvider({provide:CKz,useValue:Ulx});var g={};e.injector.addProvider((g.provide=eUz,g.useFactory=function(c,k){return function(){z1C(c,k)}},g[y0]=[MvO,
CKz],g));e.injector.addProvider({provide:MT,useClass:MT})}},o1v);var VnM={},tnj=(VnM.initialized={priority:3,callback:function(){var e;if(e=Edq()){e=e.replace("/",".");var g=_.ch();g.set("tz",e);g.save();e=!0}else e=!1;e||(e=_.ch(),e.set("utco",-Math.floor((new Date).getTimezoneOffset())),e.save())}},VnM);var B1X={},N1D=(B1X.initialized={priority:10,callback:function(e){e.injector.resolve(MT).start();e=_.Pg();var g=_.dH("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.dH("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.dH("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.dH("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.OT(_.fUv(),{mainAppWeb:Object.assign({},e,{pageType:g})});_.OT(iPe(),{mainAppWeb:Object.assign({},e,{pageType:g})});
_.OT(Ppt(),{mainAppWeb:e});_.OT(mdC(),{mainAppWeb:e});L7k(function(){_.M1(Ppt(),"FAILURE");_.M1(mdC(),"FAILURE")});
uyU();djV();i7A()}},B1X);var S2D={},yKx=(S2D.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Wh("dl"),_.iE().processSignal("pcl");else{var e=function(){_.Wh("dl");_.iE().processSignal("pcl");window.removeEventListener("load",e)};
window.addEventListener("load",e)}}},S2D);var KYS={},Ofg=(KYS.rendering={priority:0,callback:function(){var e=_.iE();e.parkOrScheduleJob(function(){e.processSignal("eocs")},10,"eor",5E3)}},KYS);var MnQ=function(){};
_.Y(MnQ,jd);
MnQ.prototype.resolveCommand=function(e,g){var c,k,I,J,q,L,n,R;return _.r(function(W){I=(c=_.x(e,_.uau))==null?void 0:(k=c.dialog)==null?void 0:k.commentReplyDialogRenderer;if(!I)throw new _.E2("No dialog in createCommentReplyDialogEndpoint");q=(J=g.form)==null?void 0:J.event;if(!q)throw new _.E2("Event not passed in when resolving command");L=_.w(q.composedPath());for(n=L.next();!n.done;n=L.next())if(R=n.value,R.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||R.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return R.showReplyDialog(I),W.return();
_.Uh(W)})};var CHQ=function(){};
_.Y(CHQ,jd);CHQ.prototype.resolveCommand=function(){var e;return _.r(function(g){if(e=document.getElementById("creator-chatbots-panel"))e.style.display="none";_.Uh(g)})};var eg0=function(){};
_.Y(eg0,jd);eg0.prototype.resolveCommand=function(e){var g,c,k,I,J,q,L;return _.r(function(n){switch(n.nextAddress){case 1:return g=_.x(e,BhM),((c=g)==null?void 0:c.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?n.yield((0,_.Mf)("NSzT5"),6):(k=g)!=null&&k.externalChannelId?n.yield((0,_.Mf)("NSzT5"),4):n.return();case 4:return I=_.vIq,q=(J=g.forceInstall)!=null?J:!1,n.yield(I(g.externalChannelId,q,g.surface),0);case 6:return L=_.vIq,n.yield(L("",!1,g.surface),7);case 7:return n.return()}})};var xl=function(e){this.JSC$19226_pageRequestService=e;this.JSC$19226_prefetchCoordinator=d_l()};
_.Y(xl,jd);xl.prototype.resolveCommand=function(e){var g=this,c,k,I,J;return _.r(function(q){if(q.nextAddress==1){c=_.x(e,WQw);if((k=c)==null||!k.taskId)throw Error("Mj");I=c.taskId;_.lj(q,2);return q.yield(_.O0o(g.JSC$19226_pageRequestService,e,{},"").then(function(L){if(!L)throw Error("Nj");},function(L){throw Error("Oj`"+L);
}),4)}if(q.nextAddress!=2)return U_S(g.JSC$19226_prefetchCoordinator,I),_.zn(q,0);
J=_.Qb(q);Qyz(g.JSC$19226_prefetchCoordinator,I,J);_.Uh(q)})};
xl[y0]=[_.rl];var DN=function(e,g){this.innertubeTransportService=e;this.JSC$19230_commandHandler=g};
_.Y(DN,jd);DN.prototype.resolveCommand=function(e){var g=this,c,k,I;return _.r(function(J){if(J.nextAddress==1){c=_.x(e,b3Y);if(c.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||c.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")k=c.boolValue?2:1,_.up.getInstance().setState(k,!0,!0);return J.yield(_.jt(g.innertubeTransportService,e),2)}I=J.yieldResult;gmX(g,I);_.Uh(J)})};
var gmX=function(e,g){g.actions&&g.actions.forEach(function(c){e.JSC$19230_commandHandler.resolveCommand(c)})};
DN[y0]=[_.kv,_.xk];var $l={},Yl=($l.addToPlaylistEndpoint=A5(sb),$l.addToToastAction=A5(t6),$l.adsControlFlowOpportunityReceivedCommand=A5(Rc),$l.audioTrackSelectActionCommand=A5(KH),$l.backgroundAudioPlaybackCommand=A5(CH),$l.captionLanguageSelectActionCommand=A5(ey),$l.captionPickerEndpoint=A5(g9),$l.changeMiniAppPlayStateCommand=A5(FO),$l.changeTimelyActionVisibilityCommand=A5(V_),$l.channelCreationFormEndpoint=A5(Pr),$l.clearLocationCommand=A5(A9),$l.clearUrlParamCommand=A5(u_),$l.copyLinkCommand=A5(Li),$l.copyTextEndpoint=
A5(Go),$l.createCommentReplyDialogEndpoint=mr6(MnQ),$l.createPlaylistServiceEndpoint=A5(r9),$l.dismissDialogEndpoint=A5(zo),$l.dismissPlayerOverlayCommand=A5(c5),$l.entityUpdateCommand=A5(De),$l.feedbackEndpoint=A5($h),$l.getAnswerCommand=A5($0),$l.getPaymentsClientTokenCommand=A5(Ki),$l.getTranscriptEndpoint=A5(B5),$l.googlePaymentBillingCommand=A5(Ok),$l.googlePaymentPurchaseManagerCommand=A5(Mv),$l.hideCreatorChatbotEngagementPanelCommand=A5(CHQ),$l.hideEngagementPanelEndpoint=A5(Hr),$l.hideSheetCommand=
A5(Qt),$l.hideSnackbarCommand=A5(d9),$l.insertRichSectionCommand=A5(pH),$l.listMutationCommand=A5(To),$l.logGtmCommand=A5(m0),$l.notifyDropdownOptionSelectedCommand=A5(dc),$l.openAdAllowlistInstructionCommand=A5(_.Eb),$l.openOnePickAddVideoModalCommand=A5(ab),$l.persistSubscriptionsDisplayPreferencesCommand=A5(h6),$l.pingingEndpoint=A5(Wr),$l.playlistEditEndpoint=A5(Rb),$l.playlistVotingRefreshPopupCommand=A5(Ek),$l.profileCardCommand=A5(nH),$l.refreshPanelEndpoint=A5(Ub),$l.saveImageToDeviceEndpoint=
A5(xh),$l.scrollToSectionEndpoint=mr6(aMz),$l.seekToVideoTimestampCommand=A5(k0),$l.selectCountryCommand=A5(XT),$l.setCookieCommand=A5(GY),$l.setLocalStorageCommand=A5(H5),$l.setPrefStorageEntryCommand=A5(Dl),$l.setSettingEndpoint=A5(DN),$l.sfvAudioItemPlaybackCommand=A5(Ib),$l.shareImageCommand=A5(Y0),$l.sharingProviderDataCommand=A5(fi),$l.showAudioTrackPickerActionCommand=A5(J6),$l.showCaptionLanguageSelectActionCommand=A5(v5),$l.showCreatorChatbotEngagementPanelCommand=A5(eg0),$l.showDialogCommand=
A5(Vt),$l.showEngagementPanelEndpoint=A5(t9),$l.showFullscreenPlayerControlsCommand=A5(w9),$l.showSheetCommand=A5(Br),$l.showSnackbarCommand=A5(zY),$l.showTransientPlayerScrimOverlayCommand=A5(qv),$l.submitFormWithValidationFlowCommand=A5(i_),$l.talkToRecsDeselectCommand=A5(Q_),$l.talkToRecsNextCommand=A5(Uk),$l.talkToRecsSelectCommand=A5(ob),$l.talkToRecsUpdateTextCommand=A5(Zl),$l.toggleEngagementPanelCommand=A5(NP),$l.undoFeedbackEndpoint=A5(jO),$l.updateEngagementPanelContentCommand=A5(SO),$l.updateUrlParamCommand=
A5(Nv),$l.updateVideoMetadataCommand=A5(y_),$l.verifyCommand=A5(Pr),$l.webNativeShareCommand=A5(jy),$l.webSubmitFormCommand=A5(W5),$l.ACK_PLAYABLES_3P_DATA_CONSENT=A5(i8),$l.CANCEL_NAVIGATION=A5(P5),$l.COPY_SHARE_URL=A5(mc),$l.MINI_APP_EXIT_DIALOG_SEEN=A5(TY),$l.MINI_APP_OPEN_URL=A5(pi),$l.REQUEST_MINI_APP_FULLSCREEN=A5(l8),$l.RESUME_NAVIGATION=A5(A6),$l.SHARE_PLAYABLE_WITH_HIGH_SCORE=A5(sk),$l.TELL_US_WHY=A5(Yh),$l);
_.G("web_enable_prefetching_videos_on_home")&&(Yl.prefetchWatchCommand=A5(xl),Yl.registerTasksCommand=A5(yuo));_.G("enable_share_panel_navigation_logging_fix_on_web")&&(Yl.shareEntityServiceEndpoint=A5(oc));_.G("web_use_flow_state_manager")&&(Yl.deleteFlowStepsCommand=A5(Ic),Yl.flowNextStepCommand=A5(J9),Yl.flowPrevStepCommand=A5(vr),Yl.getFlowCommand=A5(wc),Yl.updateFlowCommand=A5(qP));_.G("enable_ai_companion")&&(Yl.updateConversationIdCommand=A5(XO),Yl.formDataDecoratorCommand=A5(h9));
var pZv=Object.assign({},Yl);var ctq={},kIg=(ctq.initialized={priority:10,callback:oSg},ctq);var IkX={},Jtv=(IkX.initialized={callback:function(e){var g={},c={};fmW().install((g.document_disposed={callback:function(){_.G("finalize_all_timelines")?CE8():at();eS6("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.UCC();var k=e.injector.resolve(MT);k.intervalId!==void 0&&(k.intervalId&&_.ft.cancelJob(k.intervalId),k.intervalId=void 0,--k.currentPartitionIndex,k=HNw(k),k>0&&nYn({mainAppWeb:_.Pg(),survivalSli:{partitionMinute:k,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));IsZ(ip);PU!=null&&
PU.flush();HL&&HL.snapshotAndFlush();k=_.w(jUu.values());for(var I=k.next();!I.done;I=k.next())I.value.snapshotAndFlush()}},g),(c.flush_logs={callback:function(){_.fB()}},c))}},IkX);var vmo={},wbO=(vmo.rendered={priority:0,callback:function(){var e=new hgB;e.increment("STARTED");if(_.uo("LOGGED_IN")&&!_.uo("IS_DBSC",!1)&&_.uo("SERVER_VERSION")!=="test"&&_.uo("SERVER_VERSION")!=="dev"&&!gUV()&&!ehU()){e.increment("EXECUTING");var g=document.createElement("iframe");g.style.display="none";_.wy(g,2,_.Km("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.uo("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(g);e.increment("DONE")}}},
vmo);var qno={},LC7=(qno.rendered={callback:function(){d_l().resume()}},qno);var rtz={acknowledgeChannelTouStrikeCommand:h4(lT),addToPlaylistServiceEndpoint:h4(ur),addToPlaylistEndpoint:h4(ur),addUpcomingEventReminderEndpoint:h4(Ch),browseEndpoint:h4(vrO),channelCreationFormEndpoint:h4(fh),channelCreationServiceEndpoint:h4(jE),claimLegacyYoutubeChannelEndpoint:h4(ae),clearSearchHistoryEndpoint:h4(Hp),clearWatchHistoryEndpoint:h4(Qp),commerceActionCommand:XE(Cd),createBackstagePostEndpoint:h4(Jm),createBroadcastCommand:h4(ek),createCommentEndpoint:h4(xM),createCommentReplyEndpoint:h4(GW),
createLiveChatPollEndpoint:h4(gu),createPlaylistServiceEndpoint:h4(du),crossAccountChannelTransferEndpoint:h4(Z1),deleteLiveChatMessageCommand:h4(c4),deletePlaylistEndpoint:h4(zC),deleteVideoEndpoint:h4(aLO),dismissalEndpoint:h4(Am),feedbackEndpoint:h4(sB),flagEndpoint:h4(VR),getAccountSwitcherEndpoint:h4(oe),verifyCommand:h4(Ie),getAccountsListInnertubeEndpoint:h4(ML),getCommentsFromInboxCommand:h4(h7),getDownloadActionCommand:h4(jk),getFlowCommand:XE(zW),getKidsBlocklistPickerCommand:h4(t7),getNotificationMenuEndpoint:h4(Lu0),
getPaymentInstrumentsParamsCommand:h4(Xtz),getPaymentsClientTokenCommand:XE(Cd),getPdgBuyFlowCommand:h4(sF),getReportFormEndpoint:h4(B4),getSearchInVideoCommand:h4(yR),getAnswerCommand:h4(Sk),getSurveyCommand:h4(M8),getTranscriptEndpoint:h4(REo),getPostVideoPreviewEndpoint:h4(wP),decorateMessageEndpoint:h4(vp),likeEndpoint:h4(iT),liveChatActionEndpoint:h4(v4),liveChatEndpoint:h4(J7),liveChatItemContextMenuEndpoint:h4(k4),liveChatPurchaseMessageEndpoint:h4(wu),liveChatReplayEndpoint:h4(Iw),manageLiveChatUserEndpoint:h4(Ld),
metadataUpdateCommand:h4(W4),moderateLiveChatEndpoint:h4(ru),modifyChannelNotificationPreferenceEndpoint:h4($4),notificationOptOutEndpoint:h4(Y4),openSuperStickerBuyFlowCommand:h4(q8),performCommentActionEndpoint:h4(bT),playlistEditEndpoint:h4(QR),playlistEditorEndpoint:h4(H4),recordNotificationInteractionsEndpoint:h4(fd),reelWatchEndpoint:h4(UF),refreshPanelEndpoint:h4(P4),removeUpcomingEventReminderEndpoint:h4(aw),resolveLocationCommand:h4(EF),revealBusinessEmailCommand:h4(nh),searchEndpoint:h4(_.ruM),
sendLiveChatMessageEndpoint:h4(nd),sendLiveChatVoteEndpoint:h4(Rw),setSettingEndpoint:h4(Pp),shareEntityServiceEndpoint:XE(TW),sharingProviderDataCommand:h4(OF),showEngagementPanelEndpoint:h4(m1),showMoreDrawerCommand:h4(TC),showSheetCommand:h4(lr),showDialogCommand:h4(pd),subscribeEndpoint:h4(mh),transcriptSubmitCaptionCorrectionCommand:h4(nrx),undoFeedbackEndpoint:h4(uT),unsubscribeEndpoint:h4(ph),updateBackstagePostEndpoint:h4(Lh),updateCommentEndpoint:h4($M),updateCommentReplyEndpoint:h4(D1),
updateCommentsSettingsEndpoint:h4(YM),updateCreatorChannelInnertubeCommand:h4(EB),updateKidsBlacklistEndpoint:h4(N8),updateEngagementPanelContentCommand:h4(A7),updatePdgFeatureEnablementCommand:h4(FR),updatedMetadataEndpoint:h4(br),validateChannelHandleCommand:h4(Wp),updateChannelPageSettingsEndpoint:h4(Re),verifyAgeEndpoint:h4(dP),watchEndpoint:XE(eE),whitelistEditEndpoint:h4(Ero),ypcCancelRecurrenceEndpoint:h4(eG),ypcCompleteTransactionEndpoint:h4(Wuq),ypcFixInstrumentEndpoint:h4(gt),ypcGetCartEndpoint:h4(bT7),
ypcGetOffersEndpoint:h4(hEO),ypcHandleTransactionEndpoint:XE(c8),ypcLogWalletAnalyticDataEndpoint:h4(Gsz),ypcOffersEndpoint:h4(x_x),ypcPauseSubscriptionCommand:h4(D_7),ypcRedeemCodeEndpoint:h4($_l),ypcResumeSubscriptionCommand:h4(YuQ),ypcUpdateFopEndpoint:h4(gt)},fR={},akj=(fR.GET_ACCOUNT_MENU=h4(Vp),fR.GET_NOTIFICATIONS_MENU=h4(quv),fR.GET_NOTIFICATIONS_INBOX=h4(GC),fR.GET_UNSEEN_NOTIFICATION_COUNT=h4(Dh),fR.GET_USER_MENTION_SUGGESTIONS=h4(qL),fR.LOAD_GUIDE=h4(wtD),fR.SUBMIT_FEEDBACK=h4(F$),fR),
jG={},nmQ=(jG.CONTINUATION_REQUEST_TYPE_BROWSE=h4(rP),jG.CONTINUATION_REQUEST_TYPE_SEARCH=h4(Kd),jG.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=h4(MP),jG.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=h4(UB),jG.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=h4(X$),jG.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=h4(hm),jG.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=h4(Zh),jG.CONTINUATION_REQUEST_TYPE_GET_PANEL=h4(ir),jG),Rgz={player:XE(eE),watchNext:h4(Ob)},EmS={player:XE(eE),reelItemWatch:h4(UF),reelWatchSequence:h4(ow)},
WC0={watchEndpoint:XE(gP)},btO={commandEndpointMap:rtz,signalEndpointMap:akj,continuationEndpointMap:nmQ,watchEndpointMap:Rgz,reelWatchEndpointMap:EmS,streamingEndpointMap:WC0};var hgO,XbQ,GIx;_.xzj=((XbQ=(hgO=window).matchMedia)==null?void 0:(GIx=XbQ.call(hgO,"(prefers-reduced-motion: reduce)"))==null?void 0:GIx.matches)||!document.startViewTransition;var Dz0={},$zX={disableAllTransitions:_.xzj,ignoredErrors:(Dz0.DOCUMENT_HIDDEN=!0,Dz0.WINDOW_SIZE_CHANGED=!0,Dz0.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,Dz0),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var Ynl=_.Ti("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),jFl=function(e){var g=this;this.viewTransitionCoordinator=
e;this.disableTransitionsForUltraHigh=_.G("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=fk7();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.C4("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.G("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.G("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.G("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.C4("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.G("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.ft.addJob(function(){g.registerRootElement();if(g.isAnyTransitionEnabled){var c=
_.MN("web_page_transition_exit_ms"),k=_.MN("web_page_transition_wait_ms"),I=_.MN("web_page_transition_enter_fast_ms"),J=_.MN("web_page_transition_watch_exit_ms"),q=_.MN("web_page_transition_watch_wait_ms"),L=_.MN("web_page_transition_watch_enter_ms"),n=_.MN("web_page_transition_watch_next_exit_ms"),R=_.MN("web_page_transition_watch_next_wait_ms"),W=_.MN("web_page_transition_watch_next_enter_fast_ms"),b=_.MN("web_page_transition_enter_ms"),h=_.MN("web_page_transition_watch_next_enter_ms");g.enableFasterTransitions&&
g.isUltraHighBucketDevice&&(b=I,h=W);isNaN(c)&&isNaN(k)&&isNaN(b)&&isNaN(J)&&isNaN(q)&&isNaN(L)&&isNaN(n)&&isNaN(R)&&isNaN(h)||!(c=cdW(Ynl,c,k,b,J,q,L,n,R,h))||(k=document.createElement("style"),k.textContent=sPp(c),document.head.appendChild(k))}},8)},fk7=function(){var e=_.kp.navigator.deviceMemory;
return e>=8||e===void 0?!0:!1};
jFl.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var e={};this.viewTransitionCoordinator.registerElement(document.documentElement,(e.slide="root-slide",e["lockup-to-watch"]="root-lockup-to-watch",e["learning-journey"]="root-learning-journey",e))}};
_.PM4=function(e,g){e.isLockupToWatchTransitionEnabled&&e.isLockupThumbnailRegistrationEnabled&&(e.registeredLockupThumbnail?e.lockupThumbnailRegisteredFromWatchEndpoint?_.mN(new _.E2("Lockup thumbnail registration order is incorrect.")):_.mN(new _.E2("Lockup thumbnail already registered.")):(e.registeredLockupThumbnail=g,_.itS(e,g)))};
_.itS=function(e,g){var c={};e.viewTransitionCoordinator.registerElement(g,(c["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",c),!0)};
jFl[y0]=[RsS];var ZKz={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var tN6=["videoPrimaryInfoRenderer","title"],BdC=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var PwS;PwS=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.mzD=_.H(function(e){e=_.FA(e,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var g=e.data,c=e.playlistData,k=e.expanded,I=e.onExpandClick,J=e.isReadyToResume,q=function(){var W;return!((W=c())==null||!W.contents)},L=function(){var W=c();
return W&&W.totalVideos&&W.currentIndex!==void 0?W.currentIndex+1+" / "+W.totalVideos:""};
e=_.Ve(function(){_.P8(_.Ss().resolve(_.xt));return!1});
var n=_.Ve(function(){q()&&I&&I()}),R={};
return _.a("ytd-miniplayer-info-bar",{class:_.o6("ytdMiniplayerInfoBarHost",(R.ytdMiniplayerInfoBarHasPlaylistData=q,R)),"on:click":n},_.a("div",{class:"ytdMiniplayerInfoBarContent"},_.a("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":e},_.a(_.fa,{text:function(){var W=g();var b=c();if(b==null?0:b.contents){var h;W=(h=_.KDt(b))==null?void 0:h.title}else W=W==null?void 0:W.miniplayerTitle;return Sl8(W)},
noEndpoints:!0,ellipsisTruncate:!0})),_.a("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.a(_.E,{cond:J,then:function(){return _.a(gRq,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:PwS})}}),_.a("h1",null,_.a(_.fa,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var W=g();var b=c();W=J()?{simpleText:_.C_("CONTINUE_WATCHING",void 0,"Continue watching")}:(b==null?0:b.contents)?b.titleText:W==null?void 0:W.miniplayerSubtitle;return Sl8(W)},
noEndpoints:!0,ellipsisTruncate:!0})),_.a(_.E,{cond:function(){return!!L()&&!J()},
then:function(){return _.a("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.a("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.a("span",null,L))}}))),_.a(_.E,{cond:q,
then:function(){return _.a("div",{class:"ytdMiniplayerInfoBarExpand"},_.a(_.UO,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(W){I&&(I(),W.stopPropagation())}}},
iconName:function(){return k()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ig");var pbl;pbl=_.H(function(e){return _.a("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.a(_.UO,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:e.onTap}},
iconName:"yt-icons:close"}))},"Jg");
_.TK7=_.H(function(e){e=_.FA(e,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var g=e.size,c=e.playabilityStatus,k=e.isDisabled,I=e.isPictureInPicture,J=_.io("div");e=_.w(_.Wa(void 0,void 0,"w4RAU"));var q=e.next().value,L=e.next().value;e=_.M2(_.UQ);var n=!1,R=function(){return g().height<=0};
_.AV(function(){var X=g(),D=R(),f=q();f&&!D&&f.setInternalSize(X.width,X.height)},"BHFc2b");
_.Tr(function(){var X,D,f;return _.r(function(l){if(l.nextAddress==1){X=_.Ss().resolve(_.xt);D=X.getPlayerElement();if(!X.isMiniplayerActive()||!D||!J.value)return l.return();D.appendTo(J.value);return l.yield(D.getPlayerPromise(),2)}f=l.yieldResult;I()||f.setSizeStyle(!1,!0);L(f);_.Uh(l)})});
_.sX(function(){W()});
_.AV(function(){var X=q();if(X)if(k()){var D=X.getPlayerState();(n=D===-1||D===1||D===3)&&X.pauseVideo()}else W()},"Invykd");
var W=function(){if(n){n=!1;var X;(X=q())==null||X.playVideo()}},b=_.Ve(function(){_.P8(_.Ss().resolve(_.xt))}),h={};
return _.a("ytd-miniplayer-player-container",{class:_.o6("ytdMiniplayerPlayerContainerHost",(h.ytdMiniplayerPlayerContainerHidden=R,h.ytdMiniplayerPlayerContainerHostShortsPip=e,h)),style:_.N2({width:function(){return g().width+"px"},
height:function(){return g().height+"px"}})},_.a("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:J}),_.a(_.E,{cond:function(){return!!c()&&!_.RiK(c())},
then:function(){return _.a(sPX,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var X;return((X=c())==null?void 0:X.errorScreen)||null},
status:function(){var X;return((X=c())==null?void 0:X.status)||null}})}}),_.a(_.E,{cond:k,
then:function(){return _.a("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":b},_.a(pbl,{onTap:function(){_.Ss().resolve(_.xt).close()}}))}}))},"Ng");var Itq;var wzZ=null;var Atl=_.H(function(e){var g=e.progressState;var c=e.multiMarkersPlayerBarRenderer;var k=e.progressBarWidth;var I=function(){return at1(c())},J=function(){return EpY(g())},q=function(){return k()*(g().playedTime/g().videoDuration)};
return _.a("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.a(_.Yz,{each:I},function(L,n){return _.a(lkX,{modifiedProps:J,chapters:I,index:n,playedProgressWidth:q,backgroundGradientPosition:function(){var R=J(),W=I(),b=n(),h=q();return(R.playedTime-X5(_.x(W[b],hA)))/R.playedTime*h}})}))},"Og"),lkX=_.H(function(e){var g=e.modifiedProps;
var c=e.chapters;var k=e.index;var I=e.playedProgressWidth;var J=e.backgroundGradientPosition;e={};e=_.o6("ytChapteredProgressBarChapteredPlayerBarChapter",(e.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return q().isScrubbing},e.ytChapteredProgressBarHoveredMacroMarker=function(){return q().scrubberHovering},e.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return q().videoPosition==="seen"},e));
var q=function(){return Wew(g(),c(),k())},L=function(){var n=g();
var R=c(),W=k();if(Wew(n,R,W).videoPosition!=="active")n=0;else{var b=X5(_.x(R[W],hA));n=(n.playedTime-b)/((X5(_.x(R[W+1],hA))||n.videoDuration)-b)}return n};
return _.a("div",{class:e,style:_.N2({width:function(){var n=g(),R=c(),W=k(),b=_.x(R[W],hA);R=_.x(R[W+1],hA);return(R?X5(R)-X5(b):n.videoDuration-X5(b))/n.videoDuration*100+"%"},
"background-color":function(){a:{var n=q();switch(n.videoPosition){case "pending":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:n=""}}return n},
"background-size":function(){return(bCq(q())?I():"")+"px"},
"background-position-x":function(){return(bCq(q())?J():"")+"px"}})},_.a("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var n=g(),R=c(),W=k();if(Wew(n,R,W).videoPosition==="seen")var b=0;else b=X5(_.x(R[W],hA)),R=X5(_.x(R[W+1],hA))||n.videoDuration,n=n.videoDuration*n.percentLoaded,b=R<=n?1:b>=n?0:(n-b)/(R-b);return"width: "+b*100+"%"}}),_.a("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.N2({width:function(){return L()*100+"%"},
"background-size":function(){return(bCq(q(),L())?I():"")+"px"},
"background-position-x":function(){return(bCq(q(),L())?J():"")+"px"}})}))},"Pg");var sFl=function(e,g){g=g===void 0?LmY:g;var c,k=[],I,J=!1;return function(){var q=_.Mb.apply(0,arguments);if(J&&c===this&&g(q,k))return I;I=e.apply(this,q);J=!0;c=this;k=q;return I}}(function(e){var g=e.heatMarkers,c=e.minHeightDp===void 0?0:e.minHeightDp,k=e.maxHeightDp===void 0?60:e.maxHeightDp;
var I=I===void 0?!1:I;var J=1E3/g.length;e=[];e.push({x:0,y:100});for(var q=0;q<g.length;q++){var L=void 0,n=((L=_.x(g[q],Dpq))==null?void 0:L.heatMarkerIntensityScoreNormalized)||0;L=(q+.5)*J;n=100-_.Pc(n*100,c/321*100,k/321*100);q!==0||I||e.push({x:0,y:n});e.push({x:L,y:n});q===g.length-1&&e.push({x:1E3,y:n})}e.push({x:1E3,y:100});g="";for(c=0;c<e.length;c++)I=e[c],c===0?I="M "+I.x.toFixed(1)+","+I.y.toFixed(1):(k=anU(e[c-1],e[c-2],I),J=anU(I,e[c-1],e[c+1],!0),I=" C "+(k.x.toFixed(1)+","+k.y.toFixed(1)+
" "+J.x.toFixed(1)+","+J.y.toFixed(1)+" "+I.x.toFixed(1)+","+I.y.toFixed(1))),g+=I;return g});var FCM=_.H(function(e){var g=e.progressBarProps;var c=e.config;var k={};e=_.o6("ytHeatSeekerHost",(k.ytHeatSeekerHighContrast=e.highContrast,k));var I=function(){return CIz(c().chapterData)};
return _.a("yt-progress-bar-heatseeker",{class:e,style:function(){var J;return"height: 320px; display: "+(g().isDragging&&((J=I())==null?0:J.heatMarkers)?"block":"none")}},_.a(_.E,{cond:I,
then:function(J){return _.a(_.E,{cond:function(){return J().heatMarkers},
then:function(){return _.a("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.a("path",{d:function(){return sFl(J())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Qg");var uYS=_.H(function(e){var g=e.progressBarProps;var c=e.config;e={};e=_.o6("ytProgressBarLineProgressBarLine",(e.ytProgressBarLineProgressBarLineRounded=function(){return c().rounded},e.ytProgressBarLineProgressBarLineBottomInset=function(){return c().position===2},e));
return _.a("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.a("div",{class:e},_.a("div",{class:"ytProgressBarLineProgressBarBackground"}),_.a("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+g().percentLoaded*100+"%"}}),_.a("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var k=g();return"width: "+(k.videoDuration?_.Pc(k.hoveredTime/k.videoDuration,0,1):0)*100+"%"}}),_.a("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+KUA(g())*100+"%"}})))},"Rg");
uYS.idomCompat=!0;var dzo=_.H(function(e){var g=e.progressBarProps;var c=e.playheadData;var k=e.interpolateDotPosition;var I=e.hidePlayhead;e={};var J=_.o6("ytProgressBarPlayheadProgressBarPlayheadDot",(e.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return g().isDragging},e.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!g().isDragging&&I()},e));
return _.a("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.N2({"margin-left":function(){return OKC(g())*100+"%"},
transform:function(){return"translateX(-"+(k()?OKC(g())*12:6)+"px)"}})},_.a(_.E,{cond:function(){var q;
return(q=_.sz(c)())==null?void 0:q.playheadImage},
then:function(q){var L={};return _.a("div",{class:_.o6("ytProgressBarPlayheadProgressBarPlayheadCustom",(L.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return g().isDragging},L.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!g().isDragging&&I()},L)),
style:_.N2({"transform-origin":function(){return(k()?OKC(g())*20:10)+"px center"}})},_.a(_.pv,{data:q,
alt:"","aria-hidden":"true"}))},
else:function(){return _.a("div",{class:J,style:_.N2({"transform-origin":function(){return(k()?OKC(g())*12:6)+"px center"}})})}}))},"Sg");
dzo.idomCompat=!0;var mx=function(e,g,c,k,I,J){this.getProgressBarRect=e;this.updateProgressBarRect=g;this.getFilmstripYPosition=c;this.setFineScrubbingDraggedTime=k;this.updateFilmStripDraggedYDistance=I;this.resetFilmStripYOffset=J;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.BT(this.onThrottledSeek,100,this)},zgX=function(e,g,c){return function(k){e.handleClick(k,g(),c())}},UzS=function(e,g){return function(c){Htz(e,
c,QF7(c),g())}},oml=function(e,g){return function(c){Htz(e,c,{x:c.clientX,
y:c.clientY},g())}},V6j=function(e,g,c){return function(k){var I=g(),J=c();
Ztq(e,k,QF7(k),I,J,!0);if(J.onTouchMove)J.onTouchMove(I)}},BKx=function(e,g,c){return function(k){t6x(e,k,g(),c())}},NKS=function(e,g){return function(){e.handleMouseLeave(g())}},ytQ=function(e,g,c){return function(){var k=g(),I=c();
Snv(e,k,I);if(I.onTouchEnd)I.onTouchEnd(k)}},KC0=function(e,g,c){return function(){var k=g(),I=c();
Snv(e,k,I);if(I.onTouchEnd)I.onTouchEnd(k)}},OtM=function(e,g,c){return function(){Snv(e,g(),c())}},M6z=function(e){return function(g){if(g.keyCode===39||g.keyCode===38){var c,k;
(c=e())==null||(k=c.playerApi)==null||k.seekBy(5,void 0,void 0,72)}else if(g.keyCode===37||g.keyCode===40){var I,J;(I=e())==null||(J=I.playerApi)==null||J.seekBy(-5,void 0,void 0,71)}}},Cwz=function(e,g,c){return function(k){!c().disableScrubbing&&e.startPosition&&t6x(e,k,g(),c())}},edO=function(e,g,c){return function(){if(!c().disableScrubbing)if(e.startPosition){var k=g(),I=c();
Snv(e,g(),c());if(I.onTouchEnd)I.onTouchEnd(k)}else g().setState({isDragging:!1})}},QF7=function(e){e=e.touches[0];
return{x:e.clientX,y:e.clientY}},t6x=function(e,g,c,k){if(g.buttons!==1){if(g.movementX||g.movementY)g.preventDefault(),g.stopPropagation(),e=g2v(e,c,g.clientX),c.setState({isHovering:!0,
hoveredTime:e*c.videoDuration})}else c2z(c),Ztq(e,g,{x:g.clientX,y:g.clientY},c,k,!1)};
mx.prototype.handleMouseLeave=function(e){c2z(e)};
var c2z=function(e){e.isHovering&&e.setState({isHovering:!1,hoveredTime:0})},Htz=function(e,g,c,k){e.startPosition||(e.startPosition=c,e.updateProgressBarRect(),e.controlsWereVisibleBeforeDragging=k.controlsVisible,g.stopPropagation(),_.G("medium_progress_bar_modification")||g.preventDefault())},Ztq=function(e,g,c,k,I,J){if(e.startPosition)if(J&&I.isInlinePlayback&&e.startPosition&&!e.hasDraggedTheMinimumDistance&&Math.abs(c.y-e.startPosition.y)>Math.abs(c.x-e.startPosition.x))Snv(e,k,I);
else if(g.preventDefault(),g.stopPropagation(),k.videoDuration&&(e.startPosition&&!e.hasDraggedTheMinimumDistance&&(e.hasDraggedTheMinimumDistance=Math.abs(c.x-e.startPosition.x)>=1),I.enableFineScrubbing&&(e.startPosition&&(e.isDraggedForFineScrubbing=-(c.y-e.startPosition.y)>=60),!e.startPosition||c.y>=e.startPosition.y||(k.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:h8Y(k.draggedTime,k,I.chapterData)}),e.setFineScrubbingDraggedTime(k.draggedTime),e.updateFilmStripDraggedYDistance(e.startPosition.y,
c.y,k))),e.hasDraggedTheMinimumDistance)){g=g2v(e,k,c.x);if(e.isDraggedForFineScrubbing){var q;(q=k.playerApi)==null||q.pauseVideo();k.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:k.draggedTime,filmStripXDistance:h8Y(g*k.videoDuration,k,I.chapterData)})}I.enableFineScrubbing&&(!I.enableFineScrubbing||e.getFilmstripYPosition(k)<68)||k.setState({draggedTime:g*k.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:e.controlsWereVisibleBeforeDragging});var L;(L=
I.cancelAutohideControlsFn)==null||L.call(I)}},Snv=function(e,g,c){var k=c.enableFineScrubbing&&g.fineScrubbingActiveState!=="off";
if(g.isDragging||k){k={isDragging:!1,playedTime:g.draggedTime,controlsVisible:e.controlsWereVisibleBeforeDragging};c.enableFineScrubbing&&g.fineScrubbingActiveState!=="on"&&(e.resetFilmStripYOffset(),k.fineScrubbingActiveState="off");var I=I===void 0?wzZ:I;var J=_.EM(0);if(J&&I){var q=Math.round(g.playedTime*1E3),L=Math.round(g.draggedTime*1E3);q>2147483647||L>2147483647||_.pA(J,I,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(q),endMediaTimeMs:String(L),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}g.setState(k);
e.seekThrottle.fire(g.draggedTime,g,7);_.G("mweb_new_progress_bar_play_on_seek")&&e.resumeVideo(g);c.unmuteOnSeek&&(c=g.playerApi,g.volumeMuted&&(c==null||c.unMute()))}else g.setState({controlsVisible:!g.controlsVisible}),(J=c.triggerAutohideControlsAfterDelayFn)==null||J.call(c);e.startPosition=null;e.hasDraggedTheMinimumDistance=!1;e.isDraggedForFineScrubbing=!1;e.controlsWereVisibleBeforeDragging=!1};
mx.prototype.handleClick=function(e,g,c){this.updateProgressBarRect();e.stopPropagation();e=g2v(this,g,e.clientX)*g.videoDuration;g.setState({playedTime:e});if(g.playerState!==2){var k;(k=c.triggerAutohideControlsAfterDelayFn)==null||k.call(c)}this.seekThrottle.fire(e,g,7)};
var g2v=function(e,g,c){e=e.getProgressBarRect(g);return _.Pc(0,(c-e.left)/e.width,1)};
mx.prototype.resumeVideo=function(e){if(e.draggedTime<e.videoDuration){var g;(g=e.playerApi)==null||g.playVideo()}};
mx.prototype.onThrottledSeek=function(e,g,c){if(g=g.playerApi){var k;if((k=g.getVideoData())==null?0:k.isLive)k=this.getProgressState(g),e+=(k==null?void 0:k.seekableStart)||0;g.seekTo(e,void 0,void 0,void 0,c)}};
mx.prototype.getProgressState=function(e){var g=e==null?void 0:e.getPresentingPlayerType();return e==null?void 0:e.getProgressState(g)};var J27,IdX,v2x,qfO,kmv,LNx,r2S,ad0,n27;J27=_.H(function(e){var g=e.progressBarProps;var c=e.config;var k=e.progressBarWidthPx;var I=e.chapterData;var J=$UY(g,function(){return c().isShortsPage}),q=function(){return!g().isHovering&&!c().isShortsPage};
e={};var L=_.o6("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(e.ytPlayerStoryboardHostMwebShorts=function(){return c().isShortsPage&&!1},e));
return _.a("yt-player-storyboard",null,_.a(_.E,{cond:function(){return g().isDragging||g().isHovering},
then:function(){return _.a(_.E,{cond:J,then:function(n){return _.a(_.E,{cond:q,then:function(){return _.a("div",{class:L,"aria-hidden":"true"},_.a(kmv,{props:g,config:c,isBigboard:!0,chapterData:I}))},
else:function(){return _.a(IdX,{props:g,frame:n,config:c,progressBarWidthPx:k,chapterData:I})}})}})}}))},"Tg");
_.wyQ=_.H(function(e){var g=e.progressBarProps;var c=$UY(g,e.isShortsPage);return _.a("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.a(_.E,{cond:function(){return g().isDragging||g().isHovering},
then:function(){return _.a(_.E,{cond:c,then:function(k){return _.a(v2x,{frame:k,props:g,isBigboard:!0})}})}}))},"Ug");
IdX=_.H(function(e){var g=e.props;var c=e.frame;var k=e.config;var I=e.progressBarWidthPx;e=e.chapterData;var J={};J=_.o6("ytPlayerStoryboardHost",(J.ytPlayerStoryboardHostMwebShorts=function(){return k().isShortsPage&&!1},J.ytPlayerStoryboardHostInlinePlayer=function(){return k().isInlinePlayer},J.ytPlayerStoryboardHostFadeIn=function(){return k().useFadeInAnimation},J));
return _.a("div",{class:J,"aria-hidden":"true",style:function(){var q=g(),L=XzM(c()),n=I();q=Gvu(q)/q.videoDuration;var R=n*q,W=L/2+6;L=n-(L/2+6);return"left: "+(R<=W?W/n*100:R>=L?L/n*100:q*100)+"%"}},_.a(_.E,{cond:function(){var q=g();
return!(k().isShortsPage&&q.videoDuration<15)},
then:function(){return _.a(v2x,{frame:c,props:g,isBigboard:!1})}}),_.a(kmv,{props:g,
config:k,isBigboard:!1,chapterData:e}))},"Vg");
v2x=_.H(function(e){var g=e.frame;var c=e.props;var k=e.isBigboard;var I=function(){var L,n;return(n=(L=c().playerApi)==null?void 0:L.getVideoContentRect())!=null?n:{width:0,height:0}},J=function(){return XzM(g())},q=function(){var L=g();
return L?L.height/L.rows:0};
e={};e=_.o6((e.ytPlayerStoryboardBigboardImageWrapper=k,e.ytPlayerStoryboardStoryboardImageWrapper=function(){return!k()},e));
return _.a("div",{class:e,style:function(){return"width: "+(k()?I().width:J())+"px; height: "+(k()?I().height:q())+"px;"}},_.a(qfO,{frame:g,
storyboardWidth:J,storyboardHeight:q,storyboardScale:function(){return(k()?I().width:J())/J()}}))},"Wg");
qfO=_.H(function(e){var g=e.frame;var c=e.storyboardWidth;var k=e.storyboardHeight;var I=e.storyboardScale;var J=function(){var q=g().row,L=g().column,n=c(),R=k(),W=I();return{left:-L*n*W,top:-q*R*W}};
return _.a("img",{src:function(){return g().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+J().left+"px; top: "+J().top+"px; width: "+g().width*I()+"px; height: "+g().height*I()+"px;"}})},"Xg");
kmv=_.H(function(e){var g=e.props;var c=e.config;var k=e.isBigboard;var I=e.chapterData;e={};e=_.o6("ytPlayerStoryboardMetadata",(e.ytPlayerStoryboardMetadataBigboard=k,e));return _.a("div",{class:e},_.a(_.E,{cond:k,then:function(){return _.a(_.es,null,_.a(LNx,{props:g,config:c}),_.a(_.E,{cond:function(){a:{var J=g();var q=c(),L=I(),n;if((q==null?0:q.activeChapter)&&((n=_.x(q==null?void 0:q.activeChapter,hA))==null?0:n.title))J=!0;else{q=_.w(e8v(L));for(q=q.next();!q.done;q=q.next()){J=(q=_.x(q.value,
Ywq))&&xU4(J,q);break a}J=!1}}return J},
then:function(){return _.a(r2S,{props:g,config:c,isBigboard:!0,chapterData:I})}}))},
else:function(){return _.a(_.es,null,_.a(r2S,{props:g,config:c,isBigboard:!0,chapterData:I}),_.a(LNx,{props:g,config:c}))}}))},"Yg");
LNx=_.H(function(e){var g=e.props;var c=e.config;e={};e=_.o6("ytPlayerStoryboardTimestamp",(e.ytPlayerStoryboardTimestampShorts=function(){return c().isShortsPage},e.ytPlayerStoryboardTimestampIsHovering=function(){return g().isHovering||c().isShortsPage&&!0},e));
return _.a("div",{class:e},_.a(_.es,null,function(){return _.DUk(Gvu(g()))}))},"Zg");
r2S=_.H(function(e){var g=e.props;var c=e.config;var k=e.isBigboard;var I=e.chapterData;e={};k=_.o6("ytPlayerStoryboardTitle",(e.ytPlayerStoryboardTitleBigboard=k,e));return _.a("div",{class:k},_.a(_.E,{cond:function(){return!c().isShortsPage},
then:function(){return _.a(ad0,{props:g,activeChapter:function(){return c().activeChapter},
chapterData:I})}}))},"$g");
ad0=_.H(function(e){var g=e.props;var c=e.activeChapter;var k=e.chapterData;return _.a(_.es,null,_.a(_.Yz,{each:function(){return e8v(k())},
keyBy:"INDEX"},function(I){return _.a(_.es,null,_.a(_.E,{cond:function(){return _.x(I(),Ywq)&&xU4(g(),_.x(I(),Ywq))},
then:function(){return _.a(n27,{timedMarker:function(){return _.x(I(),Ywq)}})}}))}),_.a(_.E,{cond:function(){var I;
return c()&&((I=_.x(c(),hA))==null?void 0:I.title)},
then:function(I){return _.a(_.fa,{text:I,noPreWrap:!0})}}))},"ah");
n27=_.H(function(e){var g=e.timedMarker;return _.a(_.es,null,_.a("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.a(_.SU,{icon:function(){return g().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.a(_.fa,{text:function(){return g().label},
noPreWrap:!0}))},"bh");_.RdD=_.H(function(e){var g=e.progressBarProps;var c=e.playheadData;var k=e.config;e=_.io("yt-progress-bar");var I=_.io("div"),J=_.io("div"),q=_.w(_.Wa({width:0,left:0},void 0,"XjZjde")),L=q.next().value,n=q.next().value,R=function(){J.value&&n(J.value.getBoundingClientRect())},W=function(){L().width<=0&&R();
return L()};
_.VV("resize",R);var b=new mx(W,function(){},function(){return 0},function(){},function(){},function(){}),h=function(){return g()};
q=_.w(_.Wa(!1,void 0,"uZlOJc"));var X=q.next().value,D=q.next().value;q=_.Ve(function(){D(!0);k().position===2?setTimeout(function(){R()},100):R()});
var f=_.Ve(function(){D(!1);NKS(b,h)()}),l=_.Ve(function(oA){(k().doSeekOnClick||_.G("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&oA instanceof PointerEvent&&oA.pointerType==="mouse")&&zgX(b,h,k)(oA);
return!1}),A=_.Ve(function(oA){UzS(b,h)(oA);
return!1}),d=_.Ve(function(oA){oml(b,h)(oA);
return!1}),S=_.Ve(function(oA){V6j(b,h,k)(oA);
return!1}),V=_.Ve(function(oA){BKx(b,h,k)(oA);
return!1}),Q=_.Ve(function(){ytQ(b,h,k)();
return!1}),y=_.Ve(function(){KC0(b,h,k)();
return!1}),O=_.Ve(function(){OtM(b,h,k)();
return!1}),Jq=_.Ve(function(oA){M6z(h)(oA);
return!1});
_.VV("mousemove",Cwz(b,h,k));_.VV("mouseup",edO(b,h,k));_.lo(function(){qCZ(I.value);D(!1);R();edO(b,h,k)()});
var LC={};LC=_.o6("ytPlayerProgressBarHost",function(){return k().className},(LC.ytPlayerProgressBarHostReadOnly=function(){return k().disableScrubbing},LC.ytPlayerProgressBarHostHidden=function(){return k().hideProgressBar&&!X()},LC.ytPlayerProgressBarHostLowerPlayer=function(){return k().position===0},LC.ytPlayerProgressBarHostBottomEdge=function(){return k().position===1},LC.ytPlayerProgressBarHostBottomInset=function(){return k().position===2},LC.ytPlayerProgressBarHostCustom=function(){return k().position===
3},LC));
var bW={},RA=_.o6("ytPlayerProgressBarBackground",(bW.ytPlayerProgressBarBackgroundHide=function(){return k().position===2&&!X()&&!g().isDragging},bW));
bW={};bW=_.o6("ytPlayerProgressBarDragContainer",(bW.ytPlayerProgressBarDragContainerBottomEdge=function(){return k().position===1},bW));
var Xg={};Xg=_.o6("ytPlayerProgressBarProgressBar",(Xg.ytPlayerProgressBarProgressBarInset=function(){return k().position===2},Xg.ytPlayerProgressBarProgressBarInsetMinimized=function(){return k().position===2&&!X()&&!g().isDragging},Xg));
var Fg=function(){return Math.floor(KUA(g())*100)};
return _.a("yt-progress-bar",{el:e,class:LC},_.a(_.E,{cond:function(){return k().position===2},
then:function(){return _.a("div",{class:RA})}}),_.a("div",{el:I,
"on:click":l,"on:touchstart":A,"on:touchmove":S,"on:mouseenter":q,"on:mousedown":d,"on:mouseleave":f,"on:mousemove":V,"on:mouseup":y,"on:touchend":Q,"on:touchcancel":O,"on:keydown":Jq,class:bW,role:"slider","aria-valuenow":Fg,"aria-valuetext":function(){return Fg()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return g().videoDuration},
draggable:_.G("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.C_("SEEK_SLIDER")},_.a("div",{el:J,class:Xg},_.a(FCM,{progressBarProps:g,config:k,highContrast:function(){return!!k().isInlinePlayback}}),_.a(_.E,{cond:function(){return k().chapterData&&gpv(k().chapterData)},
then:function(){return _.a(Atl,{progressState:g,multiMarkersPlayerBarRenderer:function(){return k().chapterData},
progressBarWidth:function(){return L().width}})},
else:function(){return _.a(uYS,{progressBarProps:g,config:k})}}),_.a(dzo,{progressBarProps:g,
playheadData:c,interpolateDotPosition:function(){return k().position!==2},
hidePlayhead:function(){return k().playheadDotBehavior===1&&!X()}}))),_.a(J27,{progressBarProps:g,
config:function(){return{activeChapter:R8n(g(),k().chapterData),getProgressBarWidthPx:function(){return W().width},
isShortsPage:!!k().isShortsPage,isInlinePlayer:!!k().isInlinePlayback,useFadeInAnimation:!!k().isInlinePlayback}},
progressBarWidthPx:function(){return L().width},
chapterData:function(){return k().chapterData}}))},"ch");
_.RdD.idomCompat=!0;Object.assign({},_.cqs(),{setState:function(){},
domMeasurements:{},appApi:_.yHV(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var E2z;
_.WNz=_.H(function(){var e,g=(e=_.Gi(YCv().playerApi))!=null?e:void 0;e=_.w(_.Wa(!1,void 0,"Z9NQ1b"));var c=e.next().value,k=e.next().value;e=_.w(_.Wa(!1,void 0,"HoVJXe"));var I=e.next().value,J=e.next().value;e=_.w(_.Wa(!1,void 0,"DWCY3"));var q=e.next().value,L=e.next().value;e=_.w(_.Wa(!1,void 0,"g4C2Zd"));var n=e.next().value,R=e.next().value;e=_.w(_.Wa(0,void 0,"lmVfFb"));var W=e.next().value,b=e.next().value;e=_.w(_.Wa(0,void 0,"mFLbzb"));var h=e.next().value,X=e.next().value;e=_.w(_.Wa(!1,void 0,
"hQN4Wb"));var D=e.next().value,f=e.next().value;e=_.w(_.Wa(0,void 0,"WWU0fb"));var l=e.next().value,A=e.next().value;e=_.w(_.Wa(0,void 0,"MJ7LMd"));var d=e.next().value,S=e.next().value;e=_.w(_.Wa("",void 0,"hnomOe"));var V=e.next().value,Q=e.next().value;e=_.w(_.Wa(-1,void 0,"ARe3pf"));var y=e.next().value,O=e.next().value,Jq=_.xF(function(){var LC={controlsVisible:c(),isOverlayHidden:I(),shouldWaitToHideControls:q(),isDragging:n(),isHovering:D(),videoDuration:l(),playedTime:d(),videoId:V(),draggedTime:h(),
hoveredTime:W(),playerState:y()};return Object.assign({},_.cqs(),LC,{domMeasurements:{},setState:function(bW){bW.controlsVisible!==void 0&&k(bW.controlsVisible);bW.isOverlayHidden!==void 0&&J(bW.isOverlayHidden);bW.shouldWaitToHideControls!==void 0&&L(bW.shouldWaitToHideControls);bW.isDragging!==void 0&&R(bW.isDragging);bW.isHovering!==void 0&&f(bW.isHovering);bW.draggedTime!==void 0&&X(bW.draggedTime);bW.hoveredTime!==void 0&&b(bW.hoveredTime);bW.videoDuration!==void 0&&A(bW.videoDuration);bW.playedTime!==
void 0&&S(bW.playedTime);bW.videoId!==void 0&&Q(bW.videoId);bW.playerState!==void 0&&O(bW.playerState)},
appApi:_.yHV(),playerApi:g})},void 0,"Au4PIf");
_.Tr(function(){g==null||g.addEventListener("onVideoProgress",vp4(Jq));g==null||g.addEventListener("onVideoDataChange",Jqw(Jq));g==null||g.addEventListener("onStateChange",kvY(Jq))});
_.sX(function(){if(g==null?0:g.isReady())g==null||g.removeEventListener("onVideoProgress",vp4(Jq)),g==null||g.removeEventListener("onVideoDataChange",Jqw(Jq)),g==null||g.removeEventListener("onStateChange",kvY(Jq))});
return _.a("desktop-shorts-player-controls",null,_.a(E2z,{playerControlsProps:Jq}))},"eh");
E2z=_.H(function(e){var g=e.playerControlsProps;return _.a("div",{class:"desktopShortsPlayerControlsHost"},_.a(_.RdD,{progressBarProps:g,config:function(){return{isShortsPage:!0,hideProgressBar:g().videoDuration<30&&g().playerState!==2&&!g().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"fh");_.bBS=_.H(function(e){function g(LC){LC!==0||b()?LC>50&&(b()||!X())?(h(!1),D(!0)):LC<=50&&(b()||X())&&(h(!1),D(!1)):h(!0)}
function c(LC,bW){var RA;return _.r(function(Xg){if(Xg.nextAddress==1)return Xg.yield(_.t4(),2);RA=Xg.yieldResult;bW&&RA?(RA.unMute(!0),LC&&(jAB(LC,RA.getVolume()),l(RA.getVolume()))):RA&&(RA.mute(!0),LC&&jAB(LC,0));_.Uh(Xg)})}
function k(LC){var bW,RA;return _.r(function(Xg){if(Xg.nextAddress==1)return Xg.yield(_.t4(),2);bW=Xg.yieldResult;RA=50;bW&&(RA=bW.getVolume(),bW.isMuted()?jAB(LC,0):jAB(LC,RA));l(RA);_.Uh(Xg)})}
var I=e.orientation;e=_.io("volume-controls");var J=_.io("button"),q=_.PV("input"),L=_.w(_.Wa(!1,void 0,"JO5fn")),n=L.next().value,R=L.next().value,W=_.w(_.Wa(!1,void 0,"zcMjvb"));L=W.next().value;W=W.next().value;var b=L,h=W;W=_.w(_.Wa(!0,void 0,"sF9zj"));L=W.next().value;W=W.next().value;var X=L,D=W;L=_.w(_.Wa(50,void 0,"Da2bOd"));var f=L.next().value,l=L.next().value;L=_.xF(function(){var LC=b();return _.G("web_shorts_keyboard_enable_mute_shortcut")?LC?_.C_("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):
_.C_("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):LC?_.C_("UNMUTE_VOLUME",void 0,"Unmute"):_.C_("MUTE_VOLUME",void 0,"Mute")},void 0,"RUjxdf");
W=_.xF(function(){var LC=b(),bW=X();return{sources:[{clientResource:{imageName:LC?"VOLUME_OFF_FILLED":bW?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"EZ2qZd");
var A=_.xF(function(){var LC=f();return b()?LC+"% volume muted":LC+"% volume"},void 0,"ZJcDqc"),d=_.xF(function(){return I()==="vertical_down"},void 0,"OJU9Hf");
_.lo(function(){function LC(){R(!0)}
function bW(){R(!1)}
q&&q.value&&(q.value.addEventListener("focus",LC),q.value.addEventListener("focusout",bW),k(q.value).then(function(){g(Number(iCZ(q.value)))}));
J&&J.value&&(J.value.addEventListener("focus",LC),J.value.addEventListener("focusout",bW));_.sX(function(){var RA;q==null||(RA=q.value)==null||RA.removeEventListener("focus",LC);var Xg;q==null||(Xg=q.value)==null||Xg.removeEventListener("focusout",bW);var Fg;J==null||(Fg=J.value)==null||Fg.removeEventListener("focus",LC);var oA;J==null||(oA=J.value)==null||oA.removeEventListener("focusout",bW)})});
var S=_.Ve(function(){if(q&&q.value){var LC=Number(iCZ(q.value));ftw(LC);l(LC);q.value.style.setProperty("--gradient-percent",LC+"%");g(LC)}return!1}),V=_.Ve(function(){R(!0)}),Q=_.Ve(function(){q&&q.value&&(c(q.value,b()),h(!b()));
return!1}),y={},O={},Jq={};
return _.a("volume-controls",{"on:pointerleave":_.Ve(function(){R(!1)}),
class:_.o6("ytdVolumeControlsHost",(y.ytdVolumeControlsHostVertical=d,y.ytdVolumeControlsHostExpanded=function(){return n()},y)),
el:e},_.a(_.E,{cond:function(){return!d()},
then:function(){var LC={};return _.a("div",{class:_.o6("ytdVolumeControlsBackgroundScrim",(LC.ytdVolumeControlsBackgroundScrimExpanded=n,LC))})}}),_.a("div",{class:_.o6((O.ytdVolumeControlsMuteIconButtonContainer=d,O))},_.a("button",{"aria-label":L,
title:L,el:J,"on:click":Q,"on:pointerenter":V,class:"ytdVolumeControlsMuteIconButton"},W?_.a(_.pv,{data:W,alt:L,className:"ytdVolumeControlsMuteIcon"}):null)),_.a("div",{class:_.o6("ytdVolumeControlsSliderContainer",(Jq.ytdVolumeControlsSliderContainerExpanded=n,Jq.ytdVolumeControlsSliderContainerVertical=d,Jq.ytdVolumeControlsSliderContainerVerticalDown=d,Jq.ytdVolumeControlsSliderContainerVerticalExpanded=function(){return n()&&d()},Jq))},_.a("input",{"aria-label":_.C_("VOLUME"),
title:_.C_("VOLUME"),el:q,"on:input":S,type:"range",class:"ytdVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":f,"aria-valuetext":A,"aria-valuemin":0,"aria-valuemax":100})))},"gh");var hd0=_.H(function(e){var g=e.data;var c=e.overlayDensity;e={};return _.a("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.a(_.eS,{data:function(){return g().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(k){var I=k.data;
return _.a(_.WG,{data:function(){return(c==null?void 0:c())===1?Object.assign({},I(),{avatar:{avatarViewModel:Object.assign({},_.x(I().avatar,_.bD),{avatarImageSize:"AVATAR_SIZE_M"})}}):I()}})}}),_.a(_.eS,{data:function(){return g().avatarStackViewModel}},{avatarStackViewModel:function(k){return _.a(_.bh,{data:k.data})}}),_.a(_.fa,{className:_.o6("ytReelChannelBarViewModelChannelName",(e.ytReelChannelBarViewModelChannelNameLarge=function(){return(c==null?void 0:c())===1},e.ytReelChannelBarViewModelChannelNameDecluttered=
function(){return _.G("enable_shorts_declutter_ui")},e)),
text:function(){return g().channelName},
linkInheritColor:!0,userInput:!0}),_.a("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.a(_.eS,{data:function(){return g().subscribeButtonViewModel}},{subscribeButtonViewModel:function(k){var I=k.data;
return _.a(_.Ew,{data:function(){return(c==null?void 0:c())===1?Object.assign({},I(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},I().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):I()},
isOverlay:!1})},
buttonViewModel:_.oD})),_.a("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.a(_.eS,{data:function(){var k,I;return(I=_.x((k=g())==null?void 0:k.sponsorButtonViewModel,FQq))==null?void 0:I.sponsorButton}},{buttonViewModel:function(k){return _.a(_.oD,{data:k.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"hh");var Xyz=_.H(function(e){var g=function(){var I;return((I=e.overlayDensity)==null?void 0:I.call(e))===1},c=function(){return g()?22:16},k={};
return _.a("yt-reel-multi-format-link-view-model",{class:_.o6("ytReelMultiFormatLinkViewModelHost",(k.ytReelMultiFormatLinkViewModelHostTall=!0,k.ytReelMultiFormatLinkViewModelHostLarge=function(){return g()},k))},_.a(_.d4,{ariaLabel:function(){return e.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return e.data().command}},_.a("h3",{class:function(){return g()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.a(_.E,{cond:function(){return e.data().icon},
then:function(I){return _.a(_.pv,{data:I,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:c})}}),_.a(_.fa,{text:function(){return e.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ih");
Xyz.idomCompat=!0;var Gmv=_.H(function(e){var g=e.data;var c=e.overlayDensity;var k=e.extractOverlay;var I=_.io("yt-shorts-suggested-action-view-model");e=_.w(_.Wa(!1,void 0,"cmyYgf"));var J=e.next().value,q=e.next().value;e=_.w(_.Wa(!1,void 0,"qY6byb"));var L=e.next().value,n=e.next().value,R=function(){return g().isMultiLineSa},W=_.O1(o4e,function(){var bW,RA;
return(RA=(bW=g().toggleableContent)==null?void 0:bW.entityKey)!=null?RA:""}),b=function(){var bW,RA,Xg;
return(Xg=g().toggleableContent)!=null&&Xg.entityKey?(RA=(bW=W())==null?void 0:bW.value)!=null?RA:!1:!1},h=function(){var bW,RA,Xg,Fg,oA,Zt,Ev,an,V6,bs,f1;
return g().toggleableContent?b()?(bW=g().toggleableContent)==null?void 0:bW.toggledData:(RA=g().toggleableContent)==null?void 0:RA.untoggledData:{primaryText:(an=(Xg=g().defaultContent)==null?void 0:Xg.primaryText)!=null?an:g().text,secondaryText:(Fg=g().defaultContent)==null?void 0:Fg.secondaryText,onTapCommand:(V6=(oA=g().defaultContent)==null?void 0:oA.onTapCommand)!=null?V6:g().onTapCommand,icon:(bs=(Zt=g().defaultContent)==null?void 0:Zt.icon)!=null?bs:g().icon,image:(f1=(Ev=g().defaultContent)==
null?void 0:Ev.image)!=null?f1:g().image}},X=function(){return R()?g().trailingTapTarget:void 0},D=function(bW,RA){return function(){return J()?RA:bW}},f=function(bW){return function(){return _.G("enable_shorts_declutter_ui")?bW()+"Decluttered":""}},l=function(){return{leadingSection:D("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(c==null?void 0:c())===1?D("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):D("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:D("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:D("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:D("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:D("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
e={};e=_.o6((e.ytShortsSuggestedActionViewModelStaticHost=function(){return!R()},e.ytShortsSuggestedActionViewModelDynamicHost=R,e.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return R()&&L()},e.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return R()&&!L()},e.ytShortsSuggestedActionViewModelExtractOverlay=function(){return k==null?void 0:k()},e));
_.lo(function(){if(R()){var bW=0,RA;if((RA=g().animationParams)==null?0:RA.shouldExpand){var Xg,Fg;bW=((Fg=(Xg=g().animationParams)==null?void 0:Xg.expansionDelaySecs)!=null?Fg:0)*1E3}var oA,Zt=((oA=g().animationParams)==null?0:oA.shouldExpand)?setTimeout(function(){q(!0)},bW):void 0,Ev,an;
bW=((Ev=g().animationParams)==null?0:Ev.visibilityDelaySecs)?((an=g().animationParams)==null?NaN:an.visibilityDelaySecs)*1E3:0;var V6=setTimeout(function(){n(!0)},bW);
_.sX(function(){Zt&&clearTimeout(Zt);clearTimeout(V6)})}});
var A=function(bW){_.GF(bW,Object.assign({},{form:{element:I.value}}))},d=_.Ve(function(){var bW,RA=(bW=h())==null?void 0:bW.onTapCommand;
RA&&A(RA)}),S=_.Ve(function(){var bW,RA;
if(bW=(RA=X())==null?void 0:RA.onTapCommand)return A(bW),!1}),V=_.G("enable_shorts_declutter_ui")?_.N2({height:function(){return X()?"40px":J()?"44px":"32px"},
padding:"0px","padding-inline-end":function(){return X()?"8px":"16px"}}):_.N2({}),Q=_.N2({"vertical-align":"bottom",
"border-radius":function(){var bW;return R()?((bW=g().defaultContent)==null?0:bW.isCircleImage)?"50%":"4px":"0px"},
width:function(){var bW,RA,Xg;return R()&&((bW=g().defaultContent)==null?0:bW.imageSize)&&!_.G("enable_shorts_declutter_ui")?((Xg=(RA=g().defaultContent)==null?void 0:RA.imageSize)!=null?Xg:24)+"px":null},
height:function(){var bW,RA,Xg;return R()&&((bW=g().defaultContent)==null?0:bW.imageSize)&&!_.G("enable_shorts_declutter_ui")?((Xg=(RA=g().defaultContent)==null?void 0:RA.imageSize)!=null?Xg:24)+"px":null}}),y=function(){return R()?l().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},O=function(){return R()?l().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"},Jq=function(){return R()?l().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
LC={};
return _.a("yt-shorts-suggested-action-view-model",{class:e,el:I},_.a("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.a("button",{class:_.o6(function(){return R()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var bW;
return(bW=g().useFullRoundedBorder)!=null&&bW?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!X()&&R()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":R()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var bW;
return(bW=g().disableFixedHeight)!=null&&bW?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(LC.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(c==null?void 0:c())===1},LC.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return k==null?void 0:k()},LC)),
"on:click":d,style:V},_.a(_.zG,{model:{color:4}}),_.a("div",{class:_.o6(function(){return O()+" "+f(O)()})},_.a(_.E,{cond:function(){var bW;
return(bW=h())==null?void 0:bW.image},
then:function(bW){return _.a(_.pv,{data:bW,alt:"",className:function(){return Jq()+" "+f(Jq)()},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:Q})}}),_.a(_.E,{cond:function(){var bW,RA;
return(bW=h())==null?void 0:(RA=bW.icon)==null?void 0:RA.iconType},
then:function(bW){return _.a(_.SU,{icon:bW,active:b,className:function(){return y()+" "+f(y)()}})}})),_.a("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection "+f(function(){return"ytShortsSuggestedActionViewModelStaticHostTextSection"})()},_.a(_.E,{cond:function(){var bW;
return(bW=h())==null?void 0:bW.primaryText},
then:function(bW){var RA={};return _.a("div",{class:_.o6("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(RA.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(c==null?void 0:c())===1},RA))},_.a(_.fa,{text:bW}))}}),_.a(_.E,{cond:function(){var bW;
return(bW=h())==null?void 0:bW.secondaryText},
then:function(bW){return _.a("div",{class:function(){return l().secondaryText()}},_.a(_.fa,{text:bW}))}}))),_.a(_.E,{cond:X,
then:function(bW){return _.a("div",{class:_.o6(function(){return l().trailingSection()+" "+f(l().trailingSection)()},function(){var RA,Xg;
return(k==null?void 0:k())&&((Xg=(RA=l()).trailingSectionExtractOverlay)==null?void 0:Xg.call(RA))||""}),
"aria-label":function(){var RA;return(RA=bW().a11yLabel)!=null?RA:""},
"on:click":S,role:"button",tabindex:0},_.a(_.zG,{model:{color:4}}),_.a(_.SU,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"jh");var xfO=_.H(function(e){var g=e.data;var c=e.overlayDensity;var k=_.io("yt-shorts-video-title-view-model");e=_.Ve(function(q){if(_.aB(_.rb(q),k.value,["A".toString()]))return!1;(q=g().truncatedTextOnTapCommand)&&_.GF(q);return!1});
var I={},J={};return _.a("yt-shorts-video-title-view-model",{el:k,class:_.o6("ytShortsVideoTitleViewModelHost",(I.ytShortsVideoTitleViewModelHostClickable=function(){return!!g().truncatedTextOnTapCommand},I)),
"on:click":e},_.a("h2",{class:_.o6("ytShortsVideoTitleViewModelShortsVideoTitle",(J.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(c==null?void 0:c())===1},J.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.G("enable_shorts_declutter_ui")},J.ytShortsVideoTitleViewModelShortsVideoTitleDecluttered=function(){return _.G("enable_desktop_small_title_on_immersive_shorts")},J))},_.a(_.fa,{text:function(){return g().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(c==null?void 0:c())===1}})))},"kh");_.DfO=_.H(function(e){var g=e.data;var c=e.overlayDensity;var k=e.extractOverlay;var I=function(){return(c==null?void 0:c())===1},J=function(){return _.G("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelMetapanelItemDecluttered":"ytReelMetapanelViewModelMetapanelItem"},q=function(){return _.G("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelExpansiveDecluttered":"ytReelMetapanelViewModelExpansiveBlock"};
return _.a("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.a(_.eS,{data:function(){return g().metadataItems}},{badgeViewModel:function(L){L=L.data;
return _.a("div",{class:_.o6(function(){return I()?q():J()})},_.a(_.A8,{data:L}))},
playerDisclosureViewModel:function(L){L=L.data;return _.a("div",{class:_.o6(function(){return I()?q():J()})},_.a(_.UbO,{data:L,
extractOverlay:k}))},
shortsSuggestedActionViewModel:function(L){L=L.data;return _.a("div",{class:_.o6(function(){return I()?q():J()})},_.a(Gmv,{data:L,
overlayDensity:c,extractOverlay:k}))},
reelChannelBarViewModel:function(L){L=L.data;var n={};return _.a("div",{class:_.o6(J(),(n.ytReelMetapanelViewModelExpansive=function(){return I()&&!_.G("enable_shorts_declutter_ui")},n.ytReelMetapanelViewModelExpansiveDecluttered=function(){return I()&&_.G("enable_shorts_declutter_ui")},n))},_.a(hd0,{data:L,
overlayDensity:c}))},
reelMultiFormatLinkViewModel:function(L){L=L.data;var n={};return _.a("div",{class:_.o6(J(),(n.ytReelMetapanelViewModelExpansive=function(){return I()&&!_.G("enable_shorts_declutter_ui")},n.ytReelMetapanelViewModelExpansiveDecluttered=function(){return I()&&_.G("enable_shorts_declutter_ui")},n))},_.a(Xyz,{data:L,
overlayDensity:c}))},
shortsVideoTitleViewModel:function(L){L=L.data;var n={};return _.a("div",{class:_.o6(J(),(n.ytReelMetapanelViewModelExpansive=function(){return I()&&!_.G("enable_shorts_declutter_ui")},n.ytReelMetapanelViewModelExpansiveDecluttered=function(){return I()&&_.G("enable_shorts_declutter_ui")},n))},_.a(xfO,{data:L,
overlayDensity:c}))},
reelSoundMetadataViewModel:function(L){L=L.data;var n={};return _.a("div",{class:_.o6(J(),(n.ytReelMetapanelViewModelExpansive=function(){return I()&&!_.G("enable_shorts_declutter_ui")},n.ytReelMetapanelViewModelExpansiveDecluttered=function(){return I()&&_.G("enable_shorts_declutter_ui")},n))},_.a(_.xNg,{data:L,
overlayDensity:c}))},
toggleButtonViewModel:function(L){L=L.data;var n={};return _.a("div",{class:_.o6(J(),(n.ytReelMetapanelViewModelExpansive=function(){return I()&&!_.G("enable_shorts_declutter_ui")},n.ytReelMetapanelViewModelExpansiveDecluttered=function(){return I()&&_.G("enable_shorts_declutter_ui")},n))},_.a(_.vF,{data:L}))}}))},"lh");var $fo=_.H(function(e){var g=_.FA(e,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),c=g.size,k=g.onTap,I=g.disabled,J=g.tooltipText;return _.a("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.a(_.UO,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:c(),disabled:I(),tooltipText:J(),onTap:k}},
iconName:e.iconType}))},"mh"),Yfo=_.H(function(e){function g(W){W.stopPropagation();
W.code==="ArrowUp"?(W.preventDefault(),TVM(L.value)):W.code==="ArrowDown"?(W.preventDefault(),ltq(L.value)):W.code==="KeyM"?PWw():(W.code==="KeyK"||W.code==="Space")&&mUv(n())}
var c=_.FA(e,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});e=c.previousButtonDisabled;var k=c.nextButtonDisabled,I=c.data,J=c.playabilityStatus,q=c.previewThumbnail,L=_.io("ytd-shorts-miniplayer-overlay"),n=_.M2(_.Aze),R;_.Tr(function(){(R=_.be(L.value))&&R.addEventListener("keydown",g)});
_.sX(function(){var W;(W=R)==null||W.removeEventListener("keydown",g)});
c=function(){var W,b;var h=_.x((W=I())==null?void 0:(b=W.reelPlayerOverlayRenderer)==null?void 0:b.buttonBar,TmZ);if(h){var X;W=Object.assign({},h,{buttonViewModels:(X=h.buttonViewModels)==null?void 0:X.filter(pzM)})}else W=void 0;return W};
return _.a("ytd-shorts-miniplayer-overlay",{el:L,class:"ytdShortsMiniplayerOverlayHost"},_.a("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.N2({"background-image":function(){var W=q();return W?'url("'+_.u3(W.thumbnails)+'")':""}})}),_.a("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.a("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.a($fo,{iconType:function(){var W=n();
return W===2||W===-1||W===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){mUv(n())},
tooltipText:function(){var W=n();return W===1||W===3?_.C_("PLAYER_LABEL_PAUSE"):_.C_("PLAYER_LABEL_PLAY")}}),_.a(_.bBS,{orientation:"horizontal_right"})),_.a("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.a($fo,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:e,onTap:function(){TVM(L.value)},
tooltipText:_.C_("PREVIOUS_VIDEO_LABEL")}),_.a($fo,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:k,onTap:function(){ltq(L.value)},
tooltipText:_.C_("NEXT_VIDEO_LABEL")}),_.G("web_shorts_pip_like_button")?_.a(_.E,{cond:c,then:function(W){return _.a("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.a(_.lzq,{data:W,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.a("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.a(_.E,{cond:function(){var W,b;
return _.x((W=I())==null?void 0:(b=W.reelPlayerOverlayRenderer)==null?void 0:b.metapanel,lrI)},
then:function(W){return _.a("div",{class:_.o6("ytdShortsMiniplayerOverlayInteractive")},_.a(_.DfO,{data:W}))}})),_.a("div",{class:_.o6("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var W;return!((W=I())==null||!W.adsOverlay)||J()&&!n6g(J())}},_.a("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.a(_.WNz,null)))),_.a(_.E,{cond:function(){var W=I(),b,h;
W=_.x(W==null?void 0:(b=W.adsOverlay)==null?void 0:(h=b.fulfillmentContent)==null?void 0:h.fulfilledLayout,qSv);return _.x(W==null?void 0:W.renderingContent,EHM)},
then:function(W){return _.a("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.a(zIq,{data:W}))}}))},"oh");var Aqw=_.H(function(){var e=_.w(_.Wa(new _.T6(NaN,NaN),void 0,"ejTaF")),g=e.next().value,c=e.next().value;e=_.w(_.Wa(!1,void 0,"aTA69e"));var k=e.next().value,I=e.next().value,J=_.w(_.Wa(!1,void 0,"OsC2Ib"));e=J.next().value;var q=J.next().value;J=_.Ss().resolve(_.xt).miniplayerPropSignalMap[0];var L=J.data,n=J.shortsData,R=J.nextButtonDisabled,W=J.shortsPreviewThumbnail,b=J.previousButtonDisabled,h=J.externalPlaylistData,X=J.playabilityStatus,D=J.isDisabled,f=J.playerVe,l=J.closeVe;J=_.M2(_.UQ);
_.QV("yt-pip-window-resized",function(V){c(V)});
_.QV("yt-activate-pip-miniplayer",function(){return _.r(function(V){q(!0);_.Uh(V)})});
var A=function(){var V;return!((V=h())==null||!V.contents)&&k()},d=function(){var V=g(),Q=!!L(),y=A();
V=V.clone();Q&&(V.height-=76);y&&(V.height-=285);return V},S=function(){I(!k())};
_.AV(function(){var V=f(),Q=_.EM(11),y=_.RC(11);Q&&y&&V&&(_.Yn(Q,y,V),y=l())&&(_.fA(Q,V,[y]),_.iB(Q,[y]))},"h5qKie");
return _.a("ytd-pip-container",{class:"ytdPipContainerHost"},_.a(_.E,{cond:e,then:function(){return _.a(_.TK7,{isDisabled:D,playabilityStatus:X,size:d,isPictureInPicture:!0})}}),_.a(_.E,{cond:L,
then:function(){return _.a(_.mzD,{data:L,expanded:k,onExpandClick:S,playlistData:h})}}),_.a(_.E,{cond:A,
then:function(){return _.a("div",{class:"ytdPipContainerPlaylistPanel"},_.a(_.nWX,{data:h,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.a(_.E,{cond:J,
then:function(){return _.a(Yfo,{data:n,nextButtonDisabled:R,previousButtonDisabled:b,playabilityStatus:X,previewThumbnail:W})}}))},"qh");var pR=function(e,g,c){var k=this;this.pipController=e;this.JSC$19363_clientRoot=g;this.JSC$19363_pageRequestService=c;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=VNz();this.JSC$19363_watchPipEnabled=_.G("web_watch_pip");this.watchPipManualOnlyEnabled=_.G("web_watch_pip_manual");this.shortsPipEnabled=_.G("web_shorts_pip");this.JSC$19363_watchWhileEnabled=_.G("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;_.kq(_.Tt(),PUq,function(I){k.isSingleOptionSurveyActive=I});
this.JSC$19363_onPlayerPlayVideo=this.JSC$19363_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);_.zm(_.dF.getInstance(),this.miniplayerServiceActionMap,this.JSC$19363_clientRoot);e.pictureInPictureSupported()&&_.Y2("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},I$v,slX,pyg,FNS,pBs,uCO,dfX,zdz,ldD;
pR.prototype.handleMediaSessionPipActivation=function(e){var g=this,c,k;return _.r(function(I){_.eM().mediaSessionPipActivation=!0;c=_.Ss().resolve(_.A4);if(c.isOnWatch()&&g.JSC$19363_watchPipEnabled){if(g.watchPipManualOnlyEnabled&&((k=e)==null?void 0:k.enterPictureInPictureReason)!=="useraction")return gB(),I.return();_.eM().watchPipActivation=!0;_.fdD(g,c.data);return I.jumpTo(0)}return c.isOnShorts()&&g.shortsPipEnabled?(_.eM().shortsPipActivation=!0,_.jlg(g),I.jumpTo(0)):!g.isMiniplayerActive()||
!g.JSC$19363_watchPipEnabled||g.watchWhileMode||g.watchPipManualOnlyEnabled?I.jumpTo(0):I.yield(iBO(g),0)})};
var iBO=function(e){var g,c,k,I;return _.r(function(J){if(J.nextAddress==1)return g=!e.miniplayerToPipMode,c=e.playerElement,k=e.miniplayerData,I=e.watchResponse,J.yield(e.deactivate(),2);if(J.nextAddress!=3)return g?(_.eM().mediaSessionPipActivation=!0,_.eM().watchPipActivation=!0):_.eM().miniplayerButtonActivation=!0,J.yield(e.activate(c,k,I),3);e.miniplayerToPipMode=g;_.Uh(J)})};
pR.prototype.onDownloadedVideoDeleted=function(e){var g,c=_.x((g=this.miniplayerData)==null?void 0:g.watchEndpoint,_.Pm),k,I;c&&((k=this.watchResponse)==null?void 0:(I=k.playerResponse)==null?void 0:I.offlineState)!==void 0&&(g=c.videoId)&&e&&g===e&&this.close()};
pR.prototype.onShowMiniplayerCommand=function(e){var g=this,c,k,I,J,q,L,n,R,W,b,h;return _.r(function(X){switch(X.nextAddress){case 1:return c=_.x(e,EqM),I=(k=c)==null?void 0:k.miniplayerCommand,J=_.x(I,_.Pm),I&&J&&!g.active?X.yield(_.rB.getInstance(),2):X.return();case 2:return q=X.yieldResult,X.yield((L=q)==null?void 0:L.get("yt-miniplayer-shown-video-id"),3);case 3:n=X.yieldResult;R=J.videoId;if(!R||n===R)return X.return();W=_.Ss().resolve(_.A4);if(W.isOnWatch())return _.mN(Error("Xj")),X.return();
b={channelItem:{externalId:btoa(R)}};g.readyToResumeVe=_.VF(121253,void 0,void 0,b);_.eM().showMiniplayerCommandActivation=!0;return X.yield(_.TIM(g,I,!0),4);case 4:return g.active&&(_.Tg(g,{readyToResumeVe:g.readyToResumeVe,isReadyToResume:!0}),g.isReadyToResume=!0),X.yield((h=q)==null?void 0:h.set("yt-miniplayer-shown-video-id",J.videoId),5);case 5:g.readyToResumeVe=void 0,_.Uh(X)}})};
pR.prototype.init=function(e){this.miniplayerEl?_.mN(new _.E2("MiniplayerService already initialized.")):this.miniplayerEl=e};
pR.prototype.isInitialized=function(){var e=!!this.miniplayerEl;e||_.mN(new _.E2("MiniplayerService used before initialized."));return e};
_.fdD=function(e,g){if(e.isInitialized()){var c=_.Nde(g.response,g.playerResponse),k=_.Ss().resolve(_.A4).getPlayerFromWatch();_.eM().currentEndpoint=c.watchEndpoint||null;e.activate(k,c,g)}};
_.jlg=function(e){if(e.isInitialized()){var g=_.Ss().resolve(_.A4).getPlayerFromShorts();e.activate(g)}};
I$v=function(e,g){var c;(c=!e.isInitialized())||(c=_.Ss().resolve(_.A4).isOnWatch()&&e.watchPipMode,c=!(e.isMiniplayerActive()&&(_.eM().userActivation||_.eM().lockupActivation||c)));if(c)return!1;PfX(e,g)?_.P8(e):pBs(e,g);return e.watchPipMode?!_.Ss().resolve(_.A4).isOnWatch():!0};
pR.prototype.isMiniplayerActive=function(){return this.active};
var PfX=function(e,g){var c;g=(c=_.x(g,_.Pm))==null?void 0:c.videoId;var k,I;e=(I=_.x((k=e.miniplayerData)==null?void 0:k.watchEndpoint,_.Pm))==null?void 0:I.videoId;return g!=null&&g===e};
pR.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.oC(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Z5(this.miniplayerEl,"yt-navigate-home-action"))};
_.TIM=function(e,g,c,k){c=c===void 0?!1:c;var I,J,q,L;return _.r(function(n){switch(n.nextAddress){case 1:if(e.active){n.jumpTo(2);break}I=_.Ss().resolve(_.A4);if(q=(J=e.playerElement)!=null?J:I.getPlayerFromWatch()){n.jumpTo(3);break}return n.yield(_.Ss().resolve(_.QF),4);case 4:q=I.getPlayerFromWatch();case 3:if(!q){_.mN(Error("Zj"));n.jumpTo(2);break}return n.yield(e.activate(q,k),2);case 2:return e.active?n.yield(pBs(e,g,c),7):n.return();case 7:(L=e.getPlayerElement())==null||L.focusOnPlayer(),
_.Uh(n)}})};
pR.prototype.activate=function(e,g,c){var k=this,I,J,q,L,n,R,W,b,h;return _.r(function(X){switch(X.nextAddress){case 1:if(!k.isInitialized())return X.return();if(!e)return _.mN(Error("Zj")),X.return();if(_.H61()||k.isMiniplayerActive())var D=!0;else D=_.eM().watchPipActivation||_.eM().watchWhileActivation,_.Ss().resolve(_.A4).isOnWatch()&&!D?(_.mN(new _.E2("miniplayer activated on watch page")),D=!0):D=_.eM().watchWhileActivation?k.userDeactivatedWatchWhile||!!document.pictureInPictureElement||Bfp():
!1;if(D)return gB(),X.return();I=_.eM().mediaSessionPipActivation;J=_.eM().shortsPipActivation;q=_.eM().watchPipActivation;n=(L=_.eM().watchWhileActivation)||q;R=q||J;if(!k.pictureInPictureEnabled()||!R){X.jumpTo(2);break}return X.yield(mfO(k,I),3);case 3:if(!X.yieldResult)return _.mN(Error("Yj")),gB(),X.return();case 2:return k.setActive(!0),k.watchResponse=c,k.playerElement=e,k.updateMiniplayerData(g),X.yield(pyg(k,e),4);case 4:if(!k.active)return _.mN(new _.E2("miniplayer deactivated during activation")),
k.removePlayerListeners(),X.return();D=_.Ss().resolve(_.fo);D.addEventListener("yt-navigate",_.yg(k,k.onPlaylistNavigate));D.addEventListener("yt-playlist-data-updated",_.yg(k,k.JSC$19363_onPlaylistDataUpdated));k.JSC$19363_onPlaylistDataUpdated();gB();k.JSC$19363_watchWhileEnabled&&_.TFj(k,L);k.pictureInPictureEnabled()&&k.shortsPipEnabled&&(k.shortsPipMode=J,_.Tt().dispatch(iWB(k.shortsPipMode)));k.pictureInPictureEnabled()&&k.JSC$19363_watchPipEnabled&&(k.watchPipMode=q,!k.JSC$19363_watchPipEnabled||
k.watchPipManualOnlyEnabled&&!(_.Nfq()&&_.YCC("Chromium")>=142)||k.watchPipManualOnlyEnabled||_.yIV(k.handleMediaSessionPipActivation));k.player&&(W=k.player.getPlayerState(),b=W===1,_.Tt().dispatch(dmM(W)),_.V1(k.miniplayerEl,"yt-miniplayer-play-state-changed",[b]),_.eM().isVideoPlaying=b);_.V1(k.miniplayerEl,"yt-miniplayer-endpoint-changed");ldD(k);_.A2j(k);if(k.shortsPipMode||k.watchPipMode)X=X.yield(_.Z5(k.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{D=X.yield;var f=_.Z5(k.miniplayerEl,
"yt-activate-miniplayer",[n])[0];X=D.call(X,f,6)}return X;case 6:if(k.watchResponse){D=k.getScreenLayer();f=_.EM(0);var l=rRq(0);f&&l&&(_.bc(f,l,D),D===0&&qEW(void 0,0))}slX(k);FNS(k,!0);(h=k.getPlayerElement())==null||h.focusOnPlayer();_.Uh(X)}})};
pR.prototype.updateMiniplayerData=function(e){this.miniplayerData=e;_.Tg(this,{data:e})};
_.A2j=function(e){var g,c,k=((g=e.miniplayerData)==null?void 0:(c=g.miniplayerRenderer)==null?void 0:c.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";g=e.watchWhileMode||e.watchPipMode?k&&!_.Ss().resolve(_.A4).isOnWatch():k;_.Tg(e,{isDisabled:g});var I,J;c=_.x((I=e.miniplayerData)==null?void 0:(J=I.miniplayerRenderer)==null?void 0:J.minimizedEndpoint,_.k8);g&&c&&_.Ss().resolve(_.rC).openSheet({openPopupActionCommand:{openPopupAction:c}},e.miniplayerEl)};
slX=function(e){if(e.watchResponse&&(!e.watchWhileMode||!_.G("kevlar_watch_while_counterfactual"))){var g,c=(g=e.watchResponse.playerResponse)==null?void 0:g.trackingParams;c&&(_.Tg(e,{expandVe:_.VF(35989),closeVe:_.VF(34699),readyToResumeCloseVe:_.VF(131070),repositionVe:_.VF(226204),resizeVe:_.VF(226205)}),_.Tg(e,{playerVe:_.Jb(c)}))}};
pyg=function(e,g){return _.r(function(c){if(c.nextAddress==1)return g.preparePlayer(),c.yield(g.getPlayerPromise(),2);e.player=c.yieldResult;e.player&&(e.player.addEventListener("onPlayVideo",e.JSC$19363_onPlayerPlayVideo),e.player.addEventListener("onCloseMiniplayer",e.onPlayerCloseMiniplayer),e.player.addEventListener("onExpandMiniplayer",e.onPlayerExpandMiniplayer),e.player.addEventListener("onStateChange",e.onPlayerStateChange));_.Uh(c)})};
_.v=pR.prototype;_.v.JSC$19363_onPlayerPlayVideo=function(e){var g=e.sessionData&&"autonav"in e.sessionData,c;e.sessionData&&e.sessionData.itct&&(c=e.sessionData.itct);var k=e.watchEndpoint;g=k&&g?_.qaK(k,c):_.Fb(e.videoId,e.listId||void 0,c);e.sessionData&&_.Ar(_.x(g.commandMetadata,_.OM).url,e.sessionData);pBs(this,g)};
_.v.onPlayerExpandMiniplayer=function(){_.P8(this)};
_.v.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.v.onPlayerStateChange=function(){if(this.player){var e=this.player.getPlayerState(),g=e===1;_.Tt().dispatch(dmM(e));_.Tt().dispatch(_.h$(e));_.V1(this.miniplayerEl,"yt-miniplayer-play-state-changed",[g]);_.eM().isVideoPlaying=g;if(e===0){g=!_.up.getInstance().isAutoplaySetExplicitly();var c,k,I,J,q,L,n=(c=this.watchResponse.response)==null?void 0:(k=c.contents)==null?void 0:(I=k.twoColumnWatchNextResults)==null?void 0:(J=I.autoplay)==null?void 0:(q=J.autoplay)==null?void 0:(L=q.autoplayExplicitChoiceDialogRenderer)==
null?void 0:L.confirmDialogRenderer;g&&n&&this.player.setAutonavState(1)}e===0&&this.watchWhileMode&&this.deactivate()}};
_.v.onPlaylistNavigate=function(e,g){var c=this,k,I,J,q,L,n,R;return _.r(function(W){if(W.nextAddress==1){if(!_.x(g.endpoint,_.Pm))return W.return();_.eM().currentEndpoint=g.endpoint;_.V1(c.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.Ss().resolve(_.A4).isOnWatch()&&(c.watchWhileMode||c.watchPipMode))return W.return();e.stopPropagation();(J=(I=_.x((k=g.endpoint)==null?void 0:k.commandMetadata,_.OM))==null?void 0:I.url)&&g.tempData&&!_.n0.isEmpty(g.tempData)&&_.Ar(J,g.tempData);q={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};L=new HE4(function(){return c.getPlayerElement()},q,{layer:c.getScreenLayer()});
n=function(b){L.processChunk({endpoint:g.endpoint,data:b})};
uCO(c);c.miniplayerFetchRequest=dfX(c,g.endpoint,n);_.lj(W,2);return W.yield(c.miniplayerFetchRequest,4)}if(W.nextAddress!=2)return R=W.yieldResult,zdz(c,R),_.zn(W,0);_.Qb(W);_.Uh(W)})};
_.v.JSC$19363_onPlaylistDataUpdated=function(){var e=_.Ss().resolve(_.fo).getPlaylistData();this.hasPlaylistData=!!e;_.Tg(this,{externalPlaylistData:e||{}})};
_.v.close=function(e){if(this.isInitialized())if(e){if(!((this.watchWhileMode||this.watchPipMode)&&_.Ss().resolve(_.A4).isOnWatch()||this.shortsPipMode)){var g;(g=this.getPlayerElement())==null||g.stop()}this.deactivate()}else _.po().closeMiniplayer(this.miniplayerEl)};
_.v.deactivate=function(e){var g=this,c,k,I,J;return _.r(function(q){if(q.nextAddress==1){if(!g.isInitialized()||!g.active)return q.return();g.setActive(!1);uCO(g);(c=!!e&&PfX(g,e))&&g.isSingleOptionSurveyActive&&_.Z5(g.miniplayerEl,"yt-show-watch-page-survey",[g.isSingleOptionSurveyActive]);return q.yield(HB7(g),2)}if(q.nextAddress!=3){FNS(g,!1);g.isReadyToResume=!1;g.watchResponse=void 0;g.updateMiniplayerData(void 0);g.shortsPipMode&&(g.shortsPipMode=!1,_.Tt().dispatch(iWB(g.shortsPipMode)),KP7(g.pipController),
(k=g.player)==null||k.setInternalSize(NaN,NaN));g.watchPipMode&&(g.watchPipMode=!1,KP7(g.pipController));(I=g.watchWhileMode)&&_.TFj(g,!1);g.removePlayerListeners();var L=_.Ss().resolve(_.fo);L.removeEventListener("yt-navigate",_.yg(g,g.onPlaylistNavigate));L.removeEventListener("yt-playlist-data-updated",_.yg(g,g.JSC$19363_onPlaylistDataUpdated));_.eM().currentEndpoint=null;_.V1(g.miniplayerEl,"yt-miniplayer-endpoint-changed");g.playerElement=null;gB();if(g.shortsPipMode||g.watchPipMode)q=q.jumpTo(3);
else{L=q.yield;var n=_.Z5(g.miniplayerEl,"yt-deactivate-miniplayer",[c,I])[0];q=L.call(q,n,3)}return q}(J=g.player)==null||J.setInternalSize(NaN,NaN);g.player=null;_.Uh(q)})};
var HB7=function(e){var g;return _.r(function(c){g=_.Ss().resolve(_.A4);return e.shortsPipMode?c.yield(g.movePlayerToShorts(e.playerElement),0):c.yield(g.movePlayerToWatch(e.playerElement),0)})};
pR.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19363_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
pR.prototype.setActive=function(e){this.active=e;this.isSingleOptionSurveyActive?_.Z5(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Z5(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Tt().dispatch(_.Hh({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.TFj=function(e,g){e.watchWhileMode=g;_.Tg(e,{watchWhile:g})};
FNS=function(e,g){if(e.shortsPipMode||e.watchPipMode){var c;(c=e.player)==null||c.setDocumentPictureInPicture(g)}else{var k;(k=e.player)==null||k.setMinimized(g)}};
_.P8=function(e){var g;return _.r(function(c){switch(c.nextAddress){case 1:if(!e.isInitialized())return c.return();_.lj(c,2);return c.yield(e.miniplayerFetchRequest,4);case 4:_.zn(c,3);break;case 2:_.Qb(c);case 3:e.watchResponse&&e.miniplayerData&&e.miniplayerData.watchEndpoint?(g={url:e.watchResponse.url,endpoint:e.miniplayerData.watchEndpoint,data:e.watchResponse,miniplayer:!0},_.oC(e.miniplayerEl,"yt-navigate-cache",g)):e.miniplayerData&&e.miniplayerData.watchEndpoint&&_.oC(e.miniplayerEl,"yt-navigate",
{endpoint:e.miniplayerData.watchEndpoint}),_.Uh(c)}})};
pBs=function(e,g,c){var k,I,J,q;return _.r(function(L){if(L.nextAddress==1){if(PfX(e,g))return L.return();_.eM().currentEndpoint=g;_.V1(e.miniplayerEl,"yt-miniplayer-endpoint-changed");_.V1(e.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.eM().isVideoPlaying=!1;k={clientParams:{miniplayer:!0,autoSaveToQueue:!c}};I=new HE4(function(){return e.getPlayerElement()},k,{layer:e.getScreenLayer(),
parentLayer:0},void 0,e.readyToResumeVe);J=function(n){var R,W,b=Object.assign({},(R=n.playerResponse)==null?void 0:(W=R.playerConfig)==null?void 0:W.playbackStartConfig,{startPaused:!0}),h;c&&((h=n.playerResponse)==null?0:h.playerConfig)&&(n.playerResponse.playerConfig.playbackStartConfig=b);I.processChunk({endpoint:g,data:n})};
uCO(e);e.miniplayerFetchRequest=dfX(e,g,J);_.lj(L,2);return L.yield(e.miniplayerFetchRequest,4)}if(L.nextAddress!=2)return q=L.yieldResult,zdz(e,q),_.zn(L,0);_.Qb(L);_.Uh(L)})};
pR.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
uCO=function(e){e.miniplayerFetchRequest&&(e.miniplayerFetchRequest.cancel&&e.miniplayerFetchRequest.cancel("Active request obsolete"),e.miniplayerFetchRequest=null)};
dfX=function(e,g,c){var k,I=(k=_.x(g.commandMetadata,_.OM))==null?void 0:k.url,J;k=!I||_.Im("disable_miniplayer_tempdata")?{}:(J=KKC(I))!=null?J:{};return Yt(e.JSC$19363_pageRequestService,g,k,window.location.href,"watch",function(q,L){c(L)},function(q){return q!==e.miniplayerFetchRequest})};
zdz=function(e,g){var c;_.r(function(k){if(!g)return k.return();e.watchResponse=g;slX(e);ldD(e);c=_.Nde(g.response,g.playerResponse);if(e.isMiniplayerActive()){g.response&&(e.playerElement.watchNextData=g.response);var I=_.n0.getValueByKeys.apply(_.n0,[g].concat(_.KY(yGn)));_.n0.getValueByKeys.apply(_.n0,[g].concat(_.KY(efk)))&&I&&_.Ss().resolve(_.fo).setAutoplayRenderer(I);if(I)if(_.G("kevlar_is_pupi_enabled")){var J,q,L,n,R,W=((J=g.response)==null?0:(q=J.playerOverlays)==null?0:(L=q.playerOverlayRenderer)==
null?0:(n=L.autonavToggle)==null?0:(R=n.autoplaySwitchButtonRenderer)==null?0:R.enabled)?2:1;_.up.getInstance().setState(W,!1,!1)}else J=XlC()?2:1,(W=e.player)==null||W.setAutonavState(J);e.updateMiniplayerData(c);_.A2j(e)}_.Uh(k)})};
ldD=function(e){var g,c,k=(g=e.watchResponse)==null?void 0:(c=g.playerResponse)==null?void 0:c.playabilityStatus,I;g=k==null?void 0:(I=k.miniplayer)==null?void 0:I.miniplayerRenderer;(g==null?void 0:g.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&g.minimizedEndpoint&&_.tr(e.miniplayerEl,[g.minimizedEndpoint]);_.Tg(e,{playabilityStatus:k})};
_.Tg=function(e,g){(0,e.miniplayerPropSignalMap[1])(g)};
pR.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var e;return this.playerElement?this.playerElement:(e=_.o1(this.miniplayerEl).querySelector("#player-container"))==null?void 0:e.firstElementChild};
pR.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var mfO=function(e,g){g=g===void 0?!1:g;var c,k,I,J,q,L;return _.r(function(n){if(n.nextAddress==1){if(!e.pictureInPictureSupported()||!Fes()&&!g)return n.return(!1);c=Ql7(e);k=c.width;I=c.height;return n.yield(e.pipController.openWindow({width:k,height:I}),2)}J=n.yieldResult;q=e.pipController.getWindow();if(!q||!J)return n.return(!1);q.document.body.style.overflow="hidden";L=sAw(q);Ong(e.pipController,function(){Ufq(e);L()});
return n.return(!0)})},Ql7=function(e){var g=_.eM().shortsPipActivation,c,k;
e=g?.5625:(k=(c=e.player)==null?void 0:c.getVideoAspectRatio())!=null?k:16/9;c=Math.min(window.innerWidth,window.innerHeight)/2;g=g?0:76;return e>1?new _.T6(c,g+c/e):new _.T6(c*e,g+c)},Ufq=function(e){var g;
_.r(function(c){g=_.Ss().resolve(_.A4);return g.isOnWatch()&&e.watchPipMode||g.isOnShorts()&&e.shortsPipMode?c.yield(e.deactivate(),0):e.miniplayerToPipMode?c.yield(iBO(e),0):e.watchPipMode?c.yield(_.P8(e),0):c.jumpTo(0)})};
pR.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19363_watchPipEnabled||this.shortsPipEnabled)};
_.Bd.Object.defineProperties(pR.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
pR[y0]=[MP7,Czw,_.rl];var o2v="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(" "),
ZBv="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(" "),VWS="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
tW7="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var BFg=function(e,g,c){_.Iy.call(this);this.store=e;this.panelController=g;this.pageContentExtractor=c;this.isInitialized=!1};
_.Y(BFg,_.Iy);
BFg.prototype.init=function(e){var g=this;this.isInitialized||(this.isInitialized=!0,this.environment=e!=null?e:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.Yu.currentPageSubTypeSelector(this.store.getState()),e=_.kq(this.store,_.Yu.currentPageSubTypeSelector,function(c){a:if(_.NFz(g))switch(c){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var k=!0;break a;default:k=!1}else k=!1;k&&g.panelController.hidePanel({identifier:"PAai_companion"});
g.pageSubtype!==c&&(g.pageSubtype=c)}),this.addOnDisposeCallback(e))};
_.QRl=function(e,g){if(_.NFz(e))switch(g){case "watch":var c,k;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(c=_.BO())==null?void 0:(k=c.getVideoData())==null?void 0:k.video_id};case "search":var I,J,q;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(J=(I=e.pageContentExtractor)==null?void 0:FPq(I))!=null?J:[],entityId:(q=(new URLSearchParams(window.location.search)).get("search_query"))!=null?q:void 0};case "companion-canvas":var L,n;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(n=(L=
e.pageContentExtractor)==null?void 0:FPq(L))!=null?n:[]};default:var R,W;e={videoIds:(W=(R=e.pageContentExtractor)==null?void 0:FPq(R))!=null?W:[]};return _.G("enable_ai_companion_default_page_context")?e:void 0}};
_.NFz=function(e){return e.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
BFg[y0]=[_.EO,_.Lj,_.NN(ucx)];var Sfv=_.H(function(e){return _.a("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.a(_.TZ,{className:e.className,text:function(){return e.data().text||""},
wrapCodeBlocks:e.shouldWrapCodeBlock}))},"sh");_.y2D=_.H(function(e){return _.a("yt-ai-companion-attachment-view-model",{el:_.mb(_.EQ(function(){return e.data().rendererContext})),
class:_.o6("ytAiCompanionAttachmentViewModelHost",e.className)},_.a("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.a(_.E,{cond:function(){return e.data().title},
then:function(g){return _.a("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return g().content}},_.a(_.fa,{text:g}))}}),_.a(_.E,{cond:function(){return _.$u(e.data().trailingTitleIcon)},
then:function(g){return _.a("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.a(_.pv,{data:g,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.a(_.E,{cond:function(){return e.data().description},
then:function(g){return _.a("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.a(_.fa,{text:g}))}}),_.a(_.E,{cond:function(){return e.data().bottomItem},
then:function(g){return _.a("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.a(_.eS,{data:g},{tableViewModel:GzM}))}}))},"th");_.KNg=_.H(function(e){return _.a("yt-channel-attribution-view-model",{class:_.o6("ytChannelAttributionViewModelHost",e.className)},_.a("div",{class:"ytChannelAttributionViewModelUpper"},_.a(_.eS,{data:function(){return e.data().avatar}},{decoratedAvatarViewModel:_.WG}),_.a("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.a(_.fa,{text:function(){return e.data().title}}))),_.a("div",{class:"ytChannelAttributionViewModelBottom"},_.a(_.fa,{text:function(){return e.data().subtitle}})))},"uh");var OBl=_.H(function(e){var g=_.w(_.Wa(!1,void 0,"MFRKRb")),c=g.next().value,k=g.next().value,I=function(){return e.data().activeRenderer},J=function(){return e.data().inactiveRenderer};
return _.a("yt-channel-disclosure-view-model",{"on:mouseleave":_.Ve(function(){k(!1)}),
"on:mouseover":_.Ve(function(){k(!0)}),
class:_.o6("ytChannelDisclosureViewModelHost",e.className)},_.a(_.E,{cond:function(){return c()},
then:function(){return _.a(_.eS,{data:I},{channelAttributionViewModel:_.KNg})},
else:function(){return _.a(_.eS,{data:J},{decoratedAvatarViewModel:_.WG})}}))},"vh");var MW7=null;var Cf0={},eGS=(Cf0.initialized={priority:10,callback:function(e){var g=_.Ss();g.addProvider({provide:QFv,useClass:e_7});g.addProvider({provide:_.Coo,useFactory:function(){return new Uzs}});
g.addProvider({provide:l_,useValue:_.uo("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});g.addProvider({provide:K6Q,useValue:5184E6});g.addProvider({provide:xao,useValue:_.nu()});g.addProvider({provide:rV7,useClass:C8q});g.addProvider({provide:mH,useClass:mH});g.addProvider({provide:_.QF,useFactory:function(){return PCI.promise}});
g.addProvider({provide:_.pXZ,useFactory:function(){return _.mmu.promise}});
g.addProvider({provide:cJz,useValue:function(){var n;return((n=_.FE())==null?void 0:n.getPlayer())||null}});
var c={};g.addProvider((c.provide=_.Iz,c.useFactory=function(n,R){return function(){return lo6(n,R)}},c[y0]=[l_,
K6Q],c));c={};g.addProvider((c.provide=_.Bv,c.useClass=fLl,c[y0]=[l_,K6Q],c));c={};g.addProvider((c.provide=_.ZCv,c.useClass=m_o,c[y0]=[_.Bv],c));g.addProvider({provide:fH,useFactory:_.Tt});g.addProvider({provide:V5,useFactory:_.Tt});g.addProvider({provide:$tl,useFactory:_.Tt});g.addProvider({provide:_.oOs,useFactory:function(){var n;return((n=_.FE())==null?void 0:n.getPlayer())||null}});
g.addProvider({provide:UaQ,useFactory:_.Tt});g.addProvider({provide:_.EO,useFactory:_.Tt});c={};g.addProvider((c.provide=HHq,c.useFactory=function(n){return n.dispatch.bind(n)},c[y0]=[_.EO],c));
g.addProvider({provide:eO,useValue:_.KA});g.addProvider({provide:O4x,useClass:fup});g.addProvider({provide:W6g,useClass:Eag});g.addProvider({provide:Cd,useClass:Cd});g.addProvider({provide:eE,useClass:eE});g.addProvider({provide:Ob,useClass:Ob});g.addProvider({provide:gP,useClass:gP});g.addProvider({provide:c8,useClass:c8});g.addProvider({provide:zW,useClass:zW});g.addProvider({provide:TW,useClass:TW});g.addProvider({provide:Fql,useValue:btO});c={};g.addProvider((c.provide=umg,c.useFactory=function(n){return n.watchEndpointMap||
{}},c[y0]=[Fql],c));
c={};g.addProvider((c.provide=dag,c.useFactory=function(n){return n.reelWatchEndpointMap||{}},c[y0]=[Fql],c));
g.addProvider({provide:_.I5,useFactory:_.gL});g.addProvider({provide:b8,useFactory:_.ch});c={};g.addProvider((c.provide=AHe,c.useFactory=function(n){return function(R){var W={automatedLogEventSource:5};W=W===void 0?{}:W;var b,h,X=(h=_.x((b=R.endpoint)==null?void 0:b.commandMetadata,_.OM))==null?void 0:h.rootVe;if(X){var D,f;if(b=R.previousCsn||((f=_.x((D=R.endpoint)==null?void 0:D.commandMetadata,O8Y))==null?void 0:f.parentCsn)){var l=l===void 0?{}:l;if(b!==_.EM(l.layer)||X!==rRq(l.layer))WKC(b,l.cttAuthInfo,
l.layer||0),qEW(b,l.layer||0),D=l.layer||0,_.Fq(LKK(D===void 0?0:D),X);W.parentCsn=b}R.endpoint&&b?$$I(n,R.endpoint,W):_.BU(n,X,void 0,W);var A;((A=R.response)==null?0:A.trackingParams)&&n.graftServerVe(R.response.trackingParams);var d;((d=R.playerResponse)==null?0:d.trackingParams)&&n.graftServerVe(R.playerResponse.trackingParams);var S;((S=R.reelWatchSequenceResponse)==null?0:S.trackingParams)&&n.graftServerVe(R.reelWatchSequenceResponse.trackingParams)}}},c[y0]=[_.I5],c));
c={};g.addProvider((c.provide=fcg,c.useClass=YXl,c[y0]=[eO,_.EO],c));c={};g.addProvider((c.provide=az,c.useClass=az,c[y0]=[_.QF,_.EO],c));c={};g.addProvider((c.provide=LR,c.useClass=LR,c[y0]=[V5,_.xk],c));g.addProvider({provide:_.zUQ,useClass:esv});c={};g.addProvider((c.provide=_.Lj,c.useClass=Utl,c[y0]=[_.zUQ,_.NN(_.nj)],c));g.addProvider({provide:_.Sy,useClass:hhD});c={};g.addProvider((c.provide=y_,c.useClass=y_,c[y0]=[_.Sy,_.QF,_.kv,_.xk],c));g.addProvider({provide:_.rC,useClass:nR});g.addProvider({provide:_.nU7,
useClass:zs0});g.addProvider({provide:_.aL,useClass:dt0});_.G("enable_ai_companion")&&(g.addProvider({provide:_.nj,useClass:tPz}),g.addProvider({provide:_.ONu,useClass:GNM}),g.addProvider({provide:ucx,useClass:AVD}),g.addProvider({provide:XO,useClass:XO}),g.addProvider({provide:h9,useClass:h9}),g.addProvider({provide:Opq,useValue:OBl}),g.addProvider({provide:_.MTs,useValue:_.y2D}),g.addProvider({provide:Cau,useValue:Sfv}));_.G("enable_ai_chat_controller")&&g.addProvider({provide:_.b_,useClass:BFg});
c={};g.addProvider((c.provide=_.ni,c.useClass=Cu7,c[y0]=[_.ni],c));g.addProvider({provide:_.Sf,useClass:qyv});g.addProvider({provide:Pr,useClass:Pr});g.addProvider({provide:CH,useClass:CH});g.addProvider({provide:sb,useClass:sb});c={};g.addProvider((c.provide=nH,c.useClass=nH,c[y0]=[_.xk,_.kv],c));g.addProvider({provide:Ze,useClass:ZnM});c={};g.addProvider((c.provide=Br,c.useClass=Br,c[y0]=[_.rC,Ze],c));c={};g.addProvider((c.provide=Qt,c.useClass=Qt,c[y0]=[_.rC],c));g.addProvider({provide:$h,useClass:$h});
g.addProvider({provide:ZrO,useClass:oag});_.G("web_enable_feedback_endpoint_resolver_batch_2")&&(c={},g.addProvider((c.provide=jO,c.useClass=jO,c[y0]=[fH],c)),c={},g.addProvider((c.provide=Yh,c.useClass=Yh,c[y0]=[ZrO],c)));c={};g.addProvider((c.provide=Vt,c.useClass=Vt,c[y0]=[_.aL,Ze],c));c={};g.addProvider((c.provide=zo,c.useClass=zo,c[y0]=[_.aL],c));c={};g.addProvider((c.provide=t9,c.useClass=t9,c[y0]=[_.kv,_.Lj],c));c={};g.addProvider((c.provide=oc,c.useClass=oc,c[y0]=[_.kv,_.I5],c));g.addProvider({provide:Y0,
useClass:Y0});c={};g.addProvider((c.provide=W5,c.useClass=W5,c[y0]=[fH],c));g.addProvider({provide:zY,useClass:zY});g.addProvider({provide:d9,useClass:d9});c={};g.addProvider((c.provide=Q_,c.useClass=Q_,c[y0]=[fH],c));c={};g.addProvider((c.provide=Uk,c.useClass=Uk,c[y0]=[_.kv,fH],c));c={};g.addProvider((c.provide=ob,c.useClass=ob,c[y0]=[fH],c));c={};g.addProvider((c.provide=Zl,c.useClass=Zl,c[y0]=[fH],c));c={};g.addProvider((c.provide=Hr,c.useClass=Hr,c[y0]=[_.Lj],c));c={};g.addProvider((c.provide=
mc,c.useClass=mc,c[y0]=[_.I5],c));c={};g.addProvider((c.provide=FT,c.useClass=FT,c[y0]=[x0],c));c={};g.addProvider((c.provide=u8,c.useClass=u8,c[y0]=[x0],c));g.addProvider({provide:l8,useClass:l8});g.addProvider({provide:A6,useClass:A6});g.addProvider({provide:P5,useClass:P5});c={};g.addProvider((c.provide=NP,c.useClass=NP,c[y0]=[_.Lj,_.xk],c));g.addProvider({provide:To,useClass:To});c={};g.addProvider((c.provide=Ub,c.useClass=Ub,c[y0]=[_.kv,_.Lj],c));g.addProvider({provide:FO,useClass:FO});c={};
g.addProvider((c.provide=Rb,c.useClass=Rb,c[y0]=[fH,_.kv,_.ni],c));c={};g.addProvider((c.provide=r9,c.useClass=r9,c[y0]=[_.kv,_.xk],c));g.addProvider({provide:tTv,useValue:HyK});g.addProvider({provide:e3Z,useValue:X4z});g.addProvider({provide:ab,useClass:ab});c={};g.addProvider((c.provide=Li,c.useClass=Li,c[y0]=[fH],c));c={};g.addProvider((c.provide=Ek,c.useClass=Ek,c[y0]=[_.Sf,_.xk],c));c={};g.addProvider((c.provide=i_,c.useClass=i_,c[y0]=[_.xk],c));c={};g.addProvider((c.provide=De,c.useClass=De,
c[y0]=[V5],c));g.addProvider({provide:SCu,useFactory:_.jh.getInstance});c={};g.addProvider((c.provide=A9,c.useClass=A9,c[y0]=[l_,SCu,_.xk],c));g.addProvider({provide:m0,useClass:m0});g.addProvider({provide:Rc,useClass:Rc});g.addProvider({provide:Wr,useClass:Wr});g.addProvider({provide:_.Eb,useClass:_.Eb});g.addProvider({provide:B5,useClass:B5});c={};g.addProvider((c.provide=Ib,c.useClass=Ib,c[y0]=[V5],c));c={};g.addProvider((c.provide=KH,c.useClass=KH,c[y0]=[_.xk],c));c={};g.addProvider((c.provide=
J6,c.useClass=J6,c[y0]=[_.xk],c));c={};g.addProvider((c.provide=v5,c.useClass=v5,c[y0]=[_.xk],c));_.G("web_enable_prefetching_videos_on_home")&&(g.addProvider({provide:yuo,useClass:yuo}),g.addProvider({provide:xl,useClass:xl}));c={};g.addProvider((c.provide=t6,c.useClass=t6,c[y0]=[_.xk],c));g.addProvider({provide:Go,useClass:Go});c={};g.addProvider((c.provide=fi,c.useClass=fi,c[y0]=[_.kv,_.xk],c));c={};g.addProvider((c.provide=xh,c.useClass=xh,c[y0]=[_.xk],c));c={};g.addProvider((c.provide=DN,c.useClass=
DN,c[y0]=[_.kv,_.xk],c));g.addProvider({provide:eg0,useClass:eg0});g.addProvider({provide:CHQ,useClass:CHQ});g.addProvider({provide:g9,useClass:g9});c={};g.addProvider((c.provide=ey,c.useClass=ey,c[y0]=[V5,_.xk],c));g.addProvider({provide:c5,useClass:c5});c={};g.addProvider((c.provide=Ok,c.useClass=Ok,c[y0]=[V5,_.xk,_.kv],c));c={};g.addProvider((c.provide=Mv,c.useClass=Mv,c[y0]=[_.xk],c));c={};g.addProvider((c.provide=Ki,c.useClass=Ki,c[y0]=[_.xk,_.kv],c));c={};g.addProvider((c.provide=$0,c.useClass=
$0,c[y0]=[_.xk,_.kv],c));c={};g.addProvider((c.provide=qv,c.useClass=qv,c[y0]=[_.QF],c));c={};g.addProvider((c.provide=w9,c.useClass=w9,c[y0]=[_.QF],c));c={};g.addProvider((c.provide=k0,c.useClass=k0,c[y0]=[_.QF],c));g.addProvider({provide:GY,useClass:GY});g.addProvider({provide:Dl,useClass:Dl});g.addProvider({provide:H5,useClass:H5});g.addProvider({provide:jy,useClass:jy});g.addProvider({provide:XT,useClass:XT});g.addProvider({provide:u_,useClass:u_});g.addProvider({provide:h6,useClass:h6});g.addProvider({provide:_.cp,
useClass:EW});g.addProvider({provide:FN,useFactory:function(){return _.dF.getInstance()}});
g.addProvider({provide:xtl,useFactory:V1K});g.addProvider({provide:x0,useFactory:function(){return _.rB.getInstance()}});
g.addProvider({provide:bWw,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});c={};g.addProvider((c.provide=_.rt,c.useClass=_.rt,c[y0]=[_.QF,_.xk,_.I5,xtl,x0,FN,bWw,eO],c));g.addProvider({provide:_.Oc,useClass:FT1});g.addProvider({provide:_.MwQ,useClass:OrS});c={};g.addProvider((c.provide=dc,c.useClass=dc,c[y0]=[_.MwQ],c));c={};g.addProvider((c.provide=_.mtS,c.useFactory=function(n){return n.upliftCompletionResolver.promise},c[y0]=[fcg],c));
c=_.dH("IS_SHELL_LOAD")?"aa":"eocs";var k=_.dH("IS_SHELL_LOAD")?3:2;_.iE().parkOrScheduleJob(function(){in7()},k,c);
_.iE().parkOrScheduleJob(function(){_.Ss().resolve(az).start()},2,"eocs");
_.iE().parkOrScheduleJob(function(){Dtx()},2,"eocs");
_.iE().parkOrScheduleJob(function(){_.Ss().resolve(LR).start()},2,"eocs");
_.G("kevlar_debug_data_app_registration_ks")||T56();g.addProvider({provide:_.et,useValue:new bYj(e.root)});g.addProvider({provide:FC,useValue:new Uyv});g.addProvider({provide:_.fEO,useValue:new $5j(e.root)});g.addProvider({provide:_.cg,useValue:new YhM});g.addProvider({provide:_.yq,useClass:cI});g.addProvider({provide:MP7,useClass:Rz});_.G("kevlar_network_sli_killswitch")||g.addProvider({provide:wQj,useValue:u4q});g.addProvider({provide:Msx,useFactory:KSt});c={};g.addProvider((c.provide=fM0,c.useFactory=
peK,c[y0]=[_.mtS,fH,_.Iz],c));c={};g.addProvider((c.provide=Y5q,c.useClass=Ci,c[y0]=[fM0],c));g.addProvider({provide:JuS,useClass:grx});g.addProvider({provide:G1O,useClass:Daj});c=[].concat(_.KY(K9V));c.push(_.b6);c.push(mp4);_.G("enable_share_panel_navigation_logging_fix_on_web")&&c.push(_.Vxq);g.addProvider({provide:yQt,useValue:c});g.addProvider({provide:OCY,useClass:XH7});g.addProvider({provide:n1q,useClass:q2x});c={};g.addProvider((c.provide=NVw,c.useClass=u1j,c[y0]=[V5],c));_.ft.addLowPriorityJob(function(){Jne()});
c={};g.addProvider((c.provide=M5q,c.useFactory=function(n){return function(R){var W,b=(W=_.x(R.commandMetadata,_.OM))==null?void 0:W.url;if(!b)throw new _.E2("No URL for PBJ Command",R);b=YVe(b,{pbj:"1"});W=ZAg(b,{})||{};W=Object.assign({},W,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.uo("STS").toString()});R=_.Oy({command:JSON.stringify(R),session_token:_.uo("XSRF_TOKEN")});return n.fetch(b,{method:"POST",headers:W,body:R})}},c[y0]=[n1q],c));
g.addProvider({provide:IvQ,useFactory:function(){var n={};return n.CSI=MmA(),n.ECATCHER=OFA(),n}});
g.addProvider({provide:HCI,useClass:JKv});c=[];c.push(g.resolve(G1O));k={};k=(k.client_location=_.jh.getInstance(),k.consistency=_.IKp(),k.entities=g.resolve(W6g),k.response_received_commands=g.resolve(OCY),k.store=g.resolve(_.ZCv),k.tokens=g.resolve(G1O),k.service_params=g.resolve(HCI),k);if(_.G("web_shorts_prefetch_service_enabled")){var I=new ptX(g.resolve(_.Bv));k.shorts_prefetch=I}k.adblock_detection=g.resolve(NVw);_.G("web_enable_chunk_prediction")&&(g.addProvider({provide:_.xP,useClass:hUM}),
g.addProvider({provide:CWk,useClass:FYx}),k.mss=g.resolve(CWk),_.iK(window,"yt-navigate-start",function(n){var R;n=(R=n.detail)==null?void 0:R.endpoint;var W;if(R=(W=_.x(n==null?void 0:n.commandMetadata,_.OM))==null?void 0:W.rootVe){W=_.uo("VE_TYPE_TO_XIDS",{});var b,h;n=(h=(b=W["0"])==null?void 0:b.xids)!=null?h:[];var X,D;b=(D=(X=W[R])==null?void 0:X.xids)!=null?D:[];X=n.concat(b);if(R in W&&X.length>0){var f;(f=G7z(_.Ss().resolve(_.xP),X))==null||f()}}}));
g.addProvider({provide:_.zI,useClass:_.zI});I=g.resolve(Fql);var J=[];_.G("PremiumClientSharedConfig__enable_att_context_processor")&&(g.addProvider({provide:CjX,useClass:Kzx}),J.push(g.resolve(CjX)));if(_.G("owl_pl_await")){var q={};g.addProvider((q.provide=Vsx,q.useFactory=function(n){return new ozl(n)},q[y0]=[_.zI],q));
J.push(g.resolve(Vsx))}glM(I,g.resolve(n1q),g.resolve(O4x),k,g.resolve(_.Bv),c,J,g.resolve(Y5q),g.resolve(JuS));g.addProvider({provide:_.kv,useValue:_.Yy.instance});_.G("start_client_gcf")&&g.addProvider({provide:XC,useValue:y51()});g.addProvider({provide:Tsg,useFactory:function(){return new Tsg(_.Ss().resolve(_.zI),_.rB.getInstance())}});
_.iE().parkOrScheduleJob(function(){lcj()},1,"eocs");
c={};g.addProvider((c.provide=pal,c.useClass=pal,c[y0]=[_.Iz,_.kv],c));g.addProvider({provide:_.vzS,useFactory:_.Gg.getInstance});_.iE().parkOrScheduleJob(function(){_.Ss().resolve(pal).refresh()},0,"eocs");
g.addProvider({provide:_.rl,useClass:VQq});_.G("kevlar_signal_collection_killswitch")||(c={},g.addProvider((c.provide=LPq,c.useClass=LPq,c[y0]=[l_,b8],c)),_.iE().parkOrScheduleJob(function(){_.Ss().resolve(LPq).record()},1,"eocs"));
_.G("web_debug_handler_registration_killswitch")||_.iE().parkOrScheduleJob(function(){mCU("DOWNLOAD_PES",ZGz);_.G("offline_client_state_export_ks")||mCU("OFFLINE_CLIENT_STATE",Qip)},0,"eocs");
_.G("kevlar_prevent_polymer_dynamic_font_load")&&_.iE().parkOrScheduleJob(function(){var n=[_.jw(Dlz),_.jw($lv)];n=_.w(n);for(var R=n.next();!R.done;R=n.next()){R=R.value;var W=document.createElement("link");_.h0(W,R,"stylesheet");document.head.appendChild(W)}},1,"eocs");
c=e.injector.resolve(_.kv);_.M00.instance=new _.M00(c);h0z(ZYx(new OYv(c)));c={};e.injector.addProvider((c.provide=t2,c.useFactory=function(n){(n=n==null?void 0:n.getCurrentPage())?n=n.visibilityObserver:(MW7||(MW7=LdW()),n=MW7);return n},c[y0]=[_.NN(_.A4)],c.skipCache=!0,c));
g.addProvider({provide:_.xt,useClass:pR});g.addProvider({provide:gC,useClass:t8M});e.injector.addProvider({provide:Hiv,useValue:WzD});g.addProvider({provide:Pas,useValue:Fzj});g.addProvider({provide:dQw,useValue:ABv});g.addProvider({provide:_.gb,useValue:tez});e=g.addProvider;r_v||(r_v=new LRX);e.call(g,{provide:_.W8,useValue:r_v});g.addProvider({provide:_.fV,useValue:_.uo("HTML_DIR")==="rtl"?"rtl":"ltr"});g.addProvider({provide:jRq,useClass:dOv});g.addProvider({provide:_.SY,useClass:j7v});_.Ss().addProvider({provide:P1S,
useValue:_.G("enable_web_delhi_icons")?ZBv.concat(tW7):o2v.concat(VWS)});g.addProvider({provide:_.dNQ,useClass:_.dNQ});g.addProvider({provide:_.XQS,useValue:new h_S});g.addProvider({provide:Wa7,useClass:nav});g.addProvider({provide:i8,useClass:i8});g.addProvider({provide:pi,useClass:pi});e={};g.addProvider((e.provide=SO,e.useClass=SO,e[y0]=[_.kv,_.Lj],e));g.addProvider({provide:Nv,useClass:Nv});g.addProvider({provide:Ajl,useClass:c_q});g.addProvider({provide:sk,useClass:sk});g.addProvider({provide:V1u,
useValue:miw});g.addProvider({provide:_.uJ,useClass:Rvq});_.G("enable_payments_purchase_manager")&&g.addProvider({provide:k67,useClass:evg});g.addProvider({provide:UOo,useFactory:function(){return function(n){return _.xll(n)}}});
g.addProvider({provide:_.EUO,useClass:WqS});e={};g.addProvider((e.provide=V_,e.useClass=V_,e[y0]=[_.EUO],e));g.addProvider({provide:TY,useClass:TY});g.addProvider({provide:jnj,useValue:J0x});g.addProvider({provide:LLI,useValue:_.XV0});g.addProvider({provide:tgg,useClass:gzl});g.addProvider({provide:nzD,useValue:$zX});e={};g.addProvider((e.provide=RsS,e.useClass=Ezo,e[y0]=[nzD],e));e={};g.addProvider((e.provide=_.JG,e.useClass=jFl,e[y0]=[RsS],e));e={};g.addProvider((e.provide=_.hE,e.useClass=y_j,e[y0]=
[_.EO,_.yq],e));if(_.G("web_explore_hub_on_hover")||_.G("web_client_explore_hub_on_hover"))e={},g.addProvider((e.provide=pH,e.useClass=pH,e[y0]=[_.kv,FN],e));if(_.G("web_enable_renderer_logger")){var L=new hR6;r$W(function(){L.abort()});
g.addProvider({provide:k$v,useValue:new acx(L.signal)})}g.addProvider({provide:ULI,useValue:MGe});g.addProvider({provide:uuv,useClass:TD0});_.G("web_use_flow_state_manager")&&(g.addProvider({provide:_.kh,useClass:brl}),e={},g.addProvider((e.provide=Ic,e.useClass=Ic,e[y0]=[_.kh],e)),e={},g.addProvider((e.provide=J9,e.useClass=J9,e[y0]=[_.EO,_.kh],e)),e={},g.addProvider((e.provide=vr,e.useClass=vr,e[y0]=[_.EO,_.kh,_.xk],e)),e={},g.addProvider((e.provide=wc,e.useClass=wc,e[y0]=[_.kv,_.xk],e)),e={},g.addProvider((e.provide=
qP,e.useClass=qP,e[y0]=[_.kh,_.xk],e)))}},Cf0);var gNj={},cO7=(gNj.initialized={priority:10,callback:function(){if(!v1O){ybC();eS6("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.I$(_.g$(eS6,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.G("log_heartbeat_with_lifecycles")){var e={};lU.instance||(lU.instance=new lU);lU.instance.install((e.document_visible={callback:gSC,priority:10},e.document_hidden={callback:gSC,priority:10},e))}else _.tt(document,"visibilitychange",gSC);v1O=!0}(e=_.EM())&&e!=="UNDEFINED_CSN"&&v8z(e)}},gNj);var kyz={},IX0=(kyz.initialized={callback:function(e){var g=_.VF(232091),c=e.injector.resolve(_.I5);_.Nd(c,g);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?ugY()&&_.yW(c,g):(e=e.injector.resolve(UOo)("refresh_detector"))&&(e.get("first_tab_load")?_.yW(c,g):e.set("first_tab_load","1"))}},kyz);var JO7={},vNg=(JO7.initialized={priority:0,callback:function(){var e=new btB,g="other";_.yG?g="chrome":_.S$?g="firefox":_.Tn?g="safari":Vr&&(g="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(c){e.increment(_.a$(),c,g)}).catch(function(){e.increment(_.a$(),!1,g)}):e.increment(_.a$(),!1,g)}},JO7);var wd0={},qg7=(wd0.rendering={priority:8,callback:dUZ},wd0);var LZD={},rOQ=(LZD.rendering={priority:10,callback:eYq},LZD.rendered={callback:MK4},LZD),aXx={},nNX=(aXx.rendering={callback:eYq},aXx.rendered={callback:MK4},aXx);var RGz=!1,ENS={},WZl=(ENS.initialized={priority:10,callback:function(){RGz||(WtV({didPatch:function(e){e.el&&ES6(e.el,e.props)},
didUnmount:function(e){nSV(e.el)}}),RGz=!0)}},ENS);var bbq=/^\/shorts\/?$/;_.Fq("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:{}}}}}}});_.G("kevlar_use_common_module_manager_ks")?(_.z_C(new gII),lZq()):ck4();
(function(){var e=document.querySelector("ytd-app");if(!e)throw Error("ak");vSC();e=new Xn({root:e,injector:_.Ss()});e.install(cO7);var g={};e.install((g.initialized={priority:10,callback:Kdp},g));_.G("wp_lat_b")&&(g={},e.install((g.initialized={priority:10,callback:function(){NI6()}},g)));
g={};e.install((g.rendered={priority:0,callback:NzV},g));g={};e.install((g.rendered={priority:0,callback:function(){_.ft.addLowPriorityJob(function(){_.zvX>1&&(Qjz(),tbz())},4E4)}},g));
e.install(yKx);e.install(IX0);e.install(WZl);faq();e.install(Jtv);e.install(Zf7);e.install(N1D);e.install(cVj);e.install(waO);e.install(kIg);e.install(eGS);e.install(tnj);e.install(vNg);if(!_.dH("IS_SHELL_LOAD")||_.G("kevlar_fetch_initial_data_promise_client")||_.G("sw_nav_preload_pbj")){var c=_.tv(window.location.href);g=c&&c==="/watch";c=c&&c.match(bbq);g?e.install(nNX):c?e.install(qg7):e.install(rOQ)}else e.install(Q$X);e.install(Ofg);_.G("web_enable_prefetching_videos_on_home")&&e.install(LC7);
_.G("start_client_gcf")&&e.install(knj);e.install(OTD);(new hgB).increment("INSTALLED");e.install(wbO);e.install(dlq);e.transition("initialized");HFz();mSU()})();
_.ZY=[[["bmQjMzEzcmNsN2ppZ3d5a2k=","dWUjejAwYmJzYXlzbnR4dmFs"],"UlQjb20yMXM1bHY4Y2FyQURfUExBQ0VNRU5UX0tJTkRfU1RB"]];_.oq=["a3Mja2plbGVjZzN2bHNiZ2xvYmFsQ2FsbGJhYw==","ZWQjNmM4Z25lcDc0OHVtb25BYm5vcm1hbGl0eURldGVjdA==","aXAjd3F0ZGRma2hkMTRjb25BZFNr","c2UjbDV0MmU4OTFiaXdjcmF3X3BsYXllcl9yZXNwb24=","dHMjc3lhbm9wYWxpbXBiYWRTbG8="];_.A$="a3Mja2plbGVjZzN2bHNiZ2xvYmFsQ2FsbGJhYw== ZWQjNmM4Z25lcDc0OHVtb25BYm5vcm1hbGl0eURldGVjdA== aXAjd3F0ZGRma2hkMTRjb25BZFNr c2UjbDV0MmU4OTFiaXdjcmF3X3BsYXllcl9yZXNwb24= a3MjcW1rZjZwd3JidHB3d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzXw== ZWYjd3p1OWZkdDl3bXBnYWJfc2Ff dHMjc3lhbm9wYWxpbXBiYWRTbG8=".split(" ");

_._ModuleManager_initialize=function(e,g){if(!_.Xw){if(!_.Gs)return;_.z_C(_.Gs())}_.Xw.setAllModuleInfoString(e,g)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy5/sy2:2/sy3:2/sy4/sy6/sy7:1,2,6/hU04te/kevlar_main_module:3,4,7,8/dpUCFd/U9vrqd/n0DHg/HwlOhd/JoU6vf/dIvQ6c/m9Vw4/mcjWUc/QiZf0e:7/f8YPh:3/b3MoKf:4/NSzT5:5',['sy5','sy6','sy1','sy4','sy3','sy2','sy7','hU04te','NSzT5','b3MoKf','f8YPh','QiZf0e','mcjWUc','m9Vw4','dIvQ6c','JoU6vf','HwlOhd','n0DHg','U9vrqd','dpUCFd','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.dZ0=function(e,g){if(_.G("web_enable_chat_autoscroll_to_user_turn")&&e&&g)return e-4+"px"};
}catch(e){_._DumpException(e)}
try{
var fXX,ibz;_.lt=function(e){var g=e.clientMessageId;var c=e.playerOffsetMs;var k=e.pageContext;e=e.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:g},!!c&&{playerOffsetMs:c},!!k&&{pageContext:k},!!e&&{userInputText:e})}};
_.Ygv=function(e,g,c){g=g===void 0?5:g;if(g!==0){var k=typeof e==="function"?e():document.querySelector(e);k?(c==null?0:c.enableSmartFocus)?_.FYA(k):k.focus():setTimeout(function(){_.Ygv(e,g-1,c)},500)}};
fXX=function(e,g){return _.Nc(e.entities,"inlineExpansionEntity",g)};
_.j2q=function(e){return{continuationCommand:{token:e,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
ibz=function(e,g){if(g)return"ytCardViewModelCardSelected";switch(e){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
_.PqQ=function(e,g){return _.Nc(e.entities,"youchatPendingResponseEntity",g)};
_.mZD=function(e){return function(g){_.As(_.cY("youchatPendingResponseEntity",e,{entityKey:e,isPendingResponse:g}))}};_.T3Q=_.H(function(e){var g=e.data;var c=function(){var k;return _.RB((k=g())==null?void 0:k.rendererContext)};
e={};return _.a("content-list-item-view-model",{el:_.mb(_.EQ(function(){return g().rendererContext})),
class:_.o6("ytContentListItemViewModelHost",(e.ytContentListItemViewModelTappable=c,e)),role:function(){return c()?"listitem":void 0},
tabindex:function(){return c()?0:void 0},
"on:keydown":_.LV()},_.a("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.a("div",{class:"ytContentListItemViewModelImageContainer"},_.a(_.E,{cond:function(){return g().image},
then:function(k){return _.a(_.pv,{data:k,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.a(_.eS,{data:function(){var k;
return(k=g())==null?void 0:k.avatar}},{avatarViewModel:_.E8})),_.a("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.a("div",{class:_.o6("ytContentListItemViewModelTitle",function(){a:{switch(g().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var k="ytContentListItemViewModelProminentTitle";
break a}k=void 0}return k})},_.a(_.fa,{text:function(){return g().title}})),_.a("div",{class:"ytContentListItemViewModelMetadata"},_.a(_.eS,{data:function(){return g().metadata}},{contentMetadataViewModel:function(k){return _.a(_.t8,{data:k.data,
layout:1})}})))),_.a("div",{class:"ytContentListItemViewModelActionButton"},_.a(_.eS,{data:function(){var k;
return(k=g())==null?void 0:k.actionButton}},{buttonViewModel:_.oD,
toggleButtonViewModel:_.vF})))},"wh");var lXj=_.H(function(e){var g=e.data,c=function(){var I;return(I=g())==null?void 0:I.description},k=function(){var I;
return(I=g())==null?void 0:I.title};
return _.a("ytfc-youth-basic-section-header-view-model",{class:_.o6("ytfcYouthBasicSectionHeaderViewModelHost",e.className)},_.a("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.a(_.eS,{data:function(){var I;return(I=g())==null?void 0:I.avatar}},{avatarViewModel:_.E8}),_.a(_.E,{cond:function(){var I;
return _.$u((I=g())==null?void 0:I.themedImage)},
then:function(I){return _.a(_.pv,{data:I,alt:function(){var J,q;return(q=(J=k())==null?void 0:J.content)!=null?q:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.a("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.a(_.E,{cond:k,
then:function(){return _.a(_.fa,{text:k,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.a("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.a(_.eS,{data:function(){var I;
return(I=g())==null?void 0:I.bottomBadge}},{badgeViewModel:function(I){return _.a("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.a(_.A8,{data:I.data}))}}),_.a(_.E,{cond:c,
then:function(){return _.a(_.fa,{text:c,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"xh");var AOl=_.H(function(e){var g=e.data;return _.a("ytfc-youth-section-body-view-model",{class:_.o6("ytfcYouthSectionBodyViewModelHost",e.className)},_.a(_.eS,{data:function(){var c;return(c=g())==null?void 0:c.topContent}},{avatarStackViewModel:function(c){return _.a(_.bh,{data:c.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.a(_.fa,{text:function(){var c;
return(c=g())==null?void 0:c.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"yh");var s27=_.H(function(e){var g=_.w(_.Wa(!1,void 0,"SrK51e")),c=g.next().value,k=g.next().value,I=function(){return e.data().inlineExpansionEntityKey},J=_.O1(fXX,I),q=function(){if(e.isSelected!==void 0)return e.isSelected();
if(I()){var n;return(n=J())==null?void 0:n.expanded}return c()};
g={};var L={};return _.a("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.Ve(function(){e.isSelected!==void 0||I()||k(!c())})},_.a("div",{class:"ytInlineExpanderViewModelHeader"},_.a(_.eS,{data:function(){return e.data().headerContent}},{youthBasicSectionHeaderViewModel:lXj}),_.a("div",{class:_.o6("ytInlineExpanderViewModelButton",(g.ytInlineExpanderViewModelButtonExpanded=q,g))},_.a(_.UO,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:q(),accessibilityLabel:q()?_.C_("SHOW_LESS",void 0,"Show Less"):_.C_("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.a("div",{class:_.o6("ytInlineExpanderViewModelBody",(L.ytInlineExpanderViewModelBodyExpanded=q,L)),"aria-hidden":function(){return!q()}},_.a("div",{class:"ytInlineExpanderViewModelBodyContent"},_.a(_.eS,{data:function(){return e.data().bodyContent}},{youthSectionBodyViewModel:AOl}))))},"zh");var FZ0=new _.AU("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.uSg=_.H(function(e){var g=function(){return e.data().background},c=function(){return e.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},k=function(){return e.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},I=_.Ss().resolve(_.NN(FZ0)),J={};
return _.a("yt-card-view-model",{el:_.mb(_.EQ(function(){return e.data().rendererContext})),
class:_.o6("ytCardViewModelHost",e.className,(J.ytCardViewModelClickable=function(){return _.nV(e.data().rendererContext)},J))},_.a(_.BG,{contentId:function(){return e.data().contentId}},function(){var q={};
return _.a("div",{class:_.o6("ytCardViewModelCardViewModelInner",function(){var L;return ibz(e.data().cardStyle,(L=e.isSelected)==null?void 0:L.call(e))},function(){if(e.isSelected===void 0){var L;
a:{switch((L=e.data().cardState)==null?void 0:L.selectionState){case "CARD_SELECTION_STATE_SELECTED":L="ytCardViewModelSelected";break a}L=void 0}return L}})},_.a(_.eS,{data:g},{cinematicContainerViewModel:function(L){return _.a(_.HCX,{data:L.data})}}),_.a("div",{class:"ytCardViewModelContentWrapper"},_.a(_.E,{cond:function(){return!c()},
then:function(){var L={},n={};return _.a("div",{class:"ytCardViewModelTopContentContainer"},_.a("div",{class:_.o6("ytCardViewModelTopContent",(L.ytCardViewModelInnerPadding=function(){return!e.data().disableTopContentPadding&&e.data().topContent},L))},_.a(_.eS,{data:function(){return e.data().topContent}},{contentListItemViewModel:function(R){return _.a(_.T3Q,{data:R.data})},
basicContentViewModel:_.YP,linearLayoutViewModel:_.iY})),_.a("div",{class:_.o6("ytCardViewModelInlineTrailingAction",(n.ytCardViewModelInlineCenterTrailingAction=k,n.ytCardViewModelInlineTrailingActionMargin=function(){return e.data().trailingAction},n))},_.a(_.eS,{data:function(){return e.data().trailingAction}},{buttonViewModel:function(R){return _.a(_.oD,{data:R.data})}})))}}),_.a("div",{class:_.o6((q.ytCardViewModelInnerPadding=function(){return!e.data().disableBodyContentPadding&&e.data().bodyContent},
q))},_.a(_.eS,{data:function(){return e.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.KNg,
contentListItemViewModel:_.T3Q,descriptionPreviewViewModel:_.Mm,inlineExpanderViewModel:function(L){return _.a(s27,{data:L.data,isSelected:e.isSelected})},
linearLayoutViewModel:_.iY,listItemViewModel:_.j5},I&&{contentSectionViewModel:I})))),_.a(_.E,{cond:function(){return c()},
then:function(){return _.a("div",{class:"ytCardViewModelOverlayTrailingAction"},_.a(_.eS,{data:function(){return e.data().trailingAction}},{buttonViewModel:function(L){return _.a(_.oD,{data:L.data})}}))}}))}))},"Ah");
}catch(e){_._DumpException(e)}
try{
var UZx;_.AE=function(e){var g=document.createElement("link");_.h0(g,e,"stylesheet");document.head.appendChild(g)};
_.sW=function(e,g){var c,k;return _.r(function(I){c=document.createElement("div");c.id=e.id;e.className&&(c.className=e.className);k=e.element;if(!k)throw Error("bk");if(e.location==="prepend")k.prepend(c);else if(e.location==="appendChild")k.appendChild(c);else if(e.location==="after")k.after(c);else throw Error("ck");return I.return(_.p4(c,g,"Fh"))})};
_.Fn=function(e){var g;return _.r(function(c){(g=document.getElementById(e))&&g.remove();_.Uh(c)})};
_.ut=function(e,g){var c=document.querySelector(e);c?g(c):setTimeout(function(){_.ut(e,g)},1E3)};
_.oNM=function(e,g,c){var k;_.r(function(I){if(I.nextAddress==1)return(k=document.getElementById(e))?I.jumpTo(2):I.yield(UZx(e,g,c),2);if(k=document.getElementById(e))k.style.display="block";_.Uh(I)})};
UZx=function(e,g,c){return _.r(function(k){return k.return(new Promise(function(I){_.ut("div #panels",function(J){_.sW({element:J,location:"appendChild",id:e,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+c},g);I()})}))})};_.dt=_.H(function(e){var g=e.text;var c=e.onClick;var k=e.color;var I=e.backgroundColor;var J=e.buttonSize;var q=e.disabled;var L=e.iconName;var n=e.iconSize;var R=e.className;var W=e.iconClassName;e=e.ariaLabel;var b=_.Ve(function(X){c(X)}),h={};
return _.a("button",{class:_.o6("ytpStandardButtonsHost",(h.ytpStandardButtonsLarge=function(){return(J==null?void 0:J())==="large"},h),R),
"on:click":b,style:_.N2({color:k,"background-color":I}),disabled:q,"aria-label":e},_.a(_.E,{cond:L,then:function(){return _.a(_.SU,{className:_.o6("ytpStandardButtonsIconContainer",W),icon:L,size:n})}}),g)},"Eh");_.ZbQ=_.H(function(e){var g,c,k={};return _.a("div",{class:_.o6("ytprototypesEngagementPanelComponentHost",(k.ytprototypesEngagementPanelComponentHostMweb=e.isMweb,k),e.className),id:e.id},_.a("div",{class:_.o6("ytprototypesEngagementPanelComponentEngagementPanelHeader",e.headerClassName)},_.a("div",null,e.header()),_.a("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.a("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(g=e.HeaderButton)==null?void 0:g.call(e)),
_.a(_.dt,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var I;(I=e.onHide)==null||I.call(e);var J;if((J=e.preventDefault)==null||!J.call(e))if(I=e.id(),I=document.getElementById(I))I.style.display="none"}}))),_.a("div",{class:_.o6("ytprototypesEngagementPanelComponentEngagementPanelContent",e.contentClassName),
style:function(){var I,J;return"height: "+(((I=e.height)==null?0:I.call(e))||((J=e.isMweb)==null?0:J.call(e))?"100%":"800px")+";"}},e.content()),_.a("div",null,(c=e.Footer)==null?void 0:c.call(e)))},"Gh");
}catch(e){_._DumpException(e)}
try{
var Q2o=function(e){if(e.backgroundStyle)switch(e.backgroundStyle){case "CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytChatUserTurnViewModelMonoContainer";case "CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytChatUserTurnViewModelGradientContainer";default:return"ytChatUserTurnViewModelDefaultContainer"}return e.hasGradientBackground?"ytChatUserTurnViewModelGradientContainer":"ytChatUserTurnViewModelDefaultContainer"};_.Iws=_.H(function(e){var g=function(){return e.data().choiceSelectedText};
return _.a("yt-chat-user-turn-view-model",{class:"ytChatUserTurnViewModelHost",style:_.N2({"min-height":function(){var c,k;return _.dZ0((c=e.containerHeight)==null?void 0:c.call(e),(k=e.isLastItem)==null?void 0:k.call(e))}}),
"data-target-id":function(){var c;return(c=e.data().itemTargetId)!=null?c:""}},_.a(_.E,{cond:g,
then:function(){return _.a("div",{class:"ytChatUserTurnViewModelChoiceSelected"},_.a(_.fa,{text:g}))}}),_.a("div",{class:_.o6("ytChatUserTurnViewModelUserMessage",function(){return Q2o(e.data())})},function(){return e.data().text}))},"Dh");
}catch(e){_._DumpException(e)}
try{
var HbO=function(e){e=_.x(e,zGq);if(e==null?0:e.trustedAnimationUrl){var g;return(g=_.j6(e.trustedAnimationUrl))==null?void 0:g.toString()}return e==null?void 0:e.animationUrl},zGq=new _.lN("lottieAnimationViewModel");_.Jkn=_.H(function(e){var g=function(){var J;return((J=_.Ss().resolve(_.NN(_.gb)))==null?0:J())&&e.data().darkThemeAnimation?HbO(e.data().darkThemeAnimation):e.data().animation?HbO(e.data().animation):e.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},c=_.NH(),k=_.Ss().resolve(_.fV);
_.Tr(function(){requestAnimationFrame(function(){var J;(J=c.lottieEl)==null||J.addEventListener("DOMLoaded",function(){var q;(q=e.onLottieLoaded)==null||q.call(e)})})});
var I={};return _.a("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){return e.data().targetId||""},
"aria-label":function(){return e.data().loadingAnimationA11yLabel||""},
role:function(){return e.data().loadingAnimationA11yLabel?"progressbar":void 0},
style:_.N2({"min-height":function(){var J,q;return _.dZ0((J=e.containerHeight)==null?void 0:J.call(e),(q=e.isLastItem)==null?void 0:q.call(e))}})},_.a(_.Sx,{"aria-hidden":"true",
className:_.o6((I.ytChatLoadingViewModelRtl=k==="rtl",I)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:g()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||g()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:g()}}},
animationRef:c}))},"Ch");
}catch(e){_._DumpException(e)}
try{
var VXX,B3S,N3x,yOq,KZ7;VXX=function(e){return String.raw.apply(String,[{raw:e}].concat(_.KY(_.Mb.apply(1,arguments).map(function(g){return g instanceof Array?g.join(""):g}))))};
B3S=function(e){var g=_.Mb.apply(1,arguments),c=g.length;if(!Array.isArray(e)||!Array.isArray(e.raw)||e.length!==e.raw.length||!_.XcY&&e===e.raw||!(_.XcY&&!_.G6I||_.Ux(e))||c+1!==e.length)throw new TypeError("aa");return new tXz(Object.freeze({strings:Object.freeze(e),args:Object.freeze(g)}))};
N3x=function(){return _.Mb.apply(0,arguments).flat().filter(function(e){return e}).join(";")};
yOq=function(){return B3S(SgX,N3x.apply(null,_.KY(_.Mb.apply(0,arguments))))};
KZ7=function(e){e==null||e.addEventListener("DOMLoaded",function(){e.goToAndPlay(e.totalFrames-48,!0)})};
_.OX=function(e){this.__isSoyCss=!0;this.css=VXX.apply(null,[e.strings].concat(_.KY(e.args)))};
_.OX.prototype.toString=function(){return this.css};
var tXz=function(){_.OX.apply(this,arguments)};
_.Y(tXz,_.OX);var SgX=_.Ti(["",""]);var Ob0=_.H(function(e){var g=void 0,c=function(){return e.data()},k=function(){return!!_.LL(_.wS(c())).optionColor},I=_.w(_.Wa(-1,void 0,"m6Iyqc")),J=I.next().value,q=I.next().value,L=function(h){return J()===h},n=function(h){return c().correctAnswerIndex===h},R=function(){return J()!==-1};
I=_.w(_.Wa("",void 0,"jvMkLd"));var W=I.next().value,b=I.next().value;return _.a("yoututor-quiz-view-model",{class:_.o6("learningQuizComponentHost","learningYoututorQuizHost",e.className),style:_.N2({background:function(){return _.LL(_.wS(c())).backgroundColor}})},_.a("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},W),_.a("div",{class:"learningQuizComponentQuizContainer"},_.a("div",{class:"learningQuizComponentQuiz"},_.a("div",{class:"learningQuizComponentQuizContent"},_.a(_.E,{cond:function(){return!!c().aiGeneratedQuizLabel},
then:function(){return _.a("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.a(_.fa,{text:function(){return c().aiGeneratedQuizLabel}}))}}),_.a("div",{class:"learningQuizComponentQuizHeader"},_.a("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.a("div",{class:"learningYoututorQuizText",
style:_.N2({color:function(){return _.LL(_.wS(c())).primaryTextColor}})},_.a(_.fa,{text:function(){return c().questionHeaderText}}))))),_.a("div",{role:"group",
class:_.o6("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.a(_.Yz,{each:function(){return c().optionsData||[]}},function(h,X){var D={};
return _.a("button",{class:_.o6("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(D.learningQuizComponentQuizHover=function(){return!R()},D.learningQuizComponentQuizOptionWithCustomColor=k,D.learningYoututorQuizOptionSelectedCorrectOutline=function(){return R()&&n(X())},D.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return J()!==c().correctAnswerIndex&&L(X())},D.learningQuizComponentQuizIncorrectShake=function(){return J()!==
c().correctAnswerIndex&&L(X())},D)),
"on:click":_.Ve(function(){_.$y(_.gL(),{data:h});if(R())return!1;q(X());b(n(X())?c().correctAnswerAriaLabel||"":c().incorrectAnswerAriaLabel||"");return!1}),
style:_.N2({background:"transparent"}),"aria-description":function(){return R()?n(X())?c().correctAnswerAriaLabel:c().incorrectAnswerAriaLabel:""},
"aria-disabled":R,el:_.mb(function(f){_.rS(271905,f,g,function(l){g=l})}),
"client-ve-type":271905},_.a("div",{class:"learningQuizComponentQuizOptionContainer"},_.a(_.fa,{text:h.optionText}),_.a(_.E,{cond:function(){var f=X();return R()&&(L(f)||n(f))},
then:function(){var f={};return _.a(_.SU,{className:_.o6("learningYoututorQuizOptionIcon",(f.learningQuizComponentQuizPulse=function(){return J()===c().correctAnswerIndex&&n(X())},f)),
size:24,icon:function(){return n(X())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.a(_.E,{cond:R,
then:function(){return _.a("div",{class:"learningYoututorQuizExplanationContainer"},_.a("div",{class:"learningYoututorQuizExplanationText"},_.a(_.fa,{text:function(){return c().explanationHeaderText}})),_.a(_.fa,{text:function(){return c().optionsData[J()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Hh");
Ob0.idomCompat=!0;var MXO=_.H(function(e){var g=e.thumbsUp,c=e.thumbsDown,k=e.rightAlignThumbs;e=_.w(_.Wa(!1,void 0,"OxPsH"));var I=e.next().value,J=e.next().value;e=_.w(_.Wa(!1,void 0,"V5vWne"));var q=e.next().value,L=e.next().value;e={};return _.a("div",{class:_.o6("ytwThumbsUpDownThumbs",(e.ytwThumbsUpDownRightAlign=function(){return k==null?void 0:k()},e))},_.a(_.vF,{data:g,
onToggle:function(n){J(n);q()&&L(!1)},
buttonShapeOverrides:function(){return{toggled:I()}}}),_.a(_.vF,{data:c,
onToggle:function(n){L(n);I()&&J(!1)},
buttonShapeOverrides:function(){return{toggled:q()}}}))},"Ih");
MXO.idomCompat=!0;var ekg=_.H(function(e){var g=function(){return e.data().pendingStateEntityKey||""},c=_.O1(_.PqQ,g),k=function(){var L;
if(!(L=e.disabled())){var n;L=!((n=c())==null||!n.isPendingResponse)}return L},I=_.w(_.Wa(yOq(""),void 0,"Q6q6y")),J=I.next().value,q=I.next().value;
_.Tr(function(){requestAnimationFrame(function(){var L=e.data().onShowAnimationMs||0;L=L>0?yOq("--chip-animation-duration: "+L+"ms;"):yOq("");q(L)})});
return _.a("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:J},_.a(_.Yz,{each:function(){return e.data().chipData||[]},
keyBy:"REFERENCE"},function(L){return _.a(CqQ,{data:L,disabled:k,pendingStateKey:g,onError:e.onError})}))},"Kh"),CqQ=_.H(function(e){var g=_.PV("button"),c=_.w(_.Wa(!0,void 0,"baSFEf")),k=c.next().value,I=c.next().value,J=function(){return e.data().text.content},q=function(){return e.data().transparentWhenLoading},L=_.M2(_.Yu.currentPageSubTypeSelector),n=function(){var W;
return(W=_.Ss().resolve(_.NN(_.b_)))==null?void 0:_.QRl(W,L())},R=_.Ve(function(W){var b,h,X,D,f,l,A,d;
return _.r(function(S){switch(S.nextAddress){case 1:W.stopPropagation();if(e.disabled())return S.return();h=String(Math.floor(((b=_.BO())==null?void 0:b.getCurrentTime())||0)*1E3);X="youchat-"+Date.now();D=function(){_.b3(e.data().onClick||{});var V=_.j2q(e.data().continuation),Q=_.lt({clientMessageId:X,playerOffsetMs:h,pageContext:n()});return new Promise(function(y,O){_.b3(V,{form:{formData:Q},commandController:{onSuccess:function(Jq,LC){y(LC)},
onServerError:function(Jq,LC){O(LC.error)}}})})};
f=_.mZD(e.pendingStateKey());f(!0);_.Ygv("#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");I(!1);_.lj(S,2);return S.yield(D(),4);case 4:_.zn(S,3);break;case 2:l=_.Qb(S),(d=(A=e).onError)==null||d.call(A,l);case 3:f(!1),_.Uh(S)}})});
return _.a(_.E,{cond:k,then:function(){return _.a("div",{class:"ytwYouChatChipsDataChipWrapper"},_.a("button",{el:g,class:"ytwYouChatChipsDataChip","data-disabled":e.disabled,"data-transparent-loading":q,"on:click":R,tabindex:0},J))}})},"Lh");var gQ7=_.H(function(e){var g=e.data;var c=e.initiallyExpanded;var k=function(){var R;return(R=g().conversationResourceData)==null?void 0:R.learningGuideData};
e=_.w(_.uF(function(){var R;return(R=c==null?void 0:c())!=null?R:!1}));
var I=e.next().value,J=e.next().value,q=function(){var R,W=_.x((R=k())==null?void 0:R.expandButton,_.$8);W&&_.$y(_.gL(),{data:W});J(!0)},L=_.xF(function(){var R,W;
return(W=(R=k())==null?void 0:R.sections)!=null?W:[]},void 0,"V7sYqc"),n=_.xF(function(){return L().length>4},void 0,"GFFPnd");
e=_.xF(function(){var R;return!I()&&n()&&(R=k())!=null&&R.expandButton?L().slice(0,4):L()},void 0,"Rbi7Ke");
return _.a("yt-conversation-resource-view-model",{class:_.o6("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.a(_.eS,{data:e},{expandableMetadataViewModel:_.XV0}),_.a(_.E,{cond:function(){return n()&&!I()},
then:function(){return _.a("div",{id:"showMoreButton"},_.a(_.eS,{data:function(){var R;return(R=k())==null?void 0:R.expandButton}},{buttonViewModel:function(R){return _.a(_.oD,{data:R.data,
onClick:q})}}))}}))},"Mh");_.pd7=_.H(function(e){var g=_.G("web_enable_youchat_ux_changes"),c=function(){var Q,y;return((Q=e.data().text)==null?void 0:Q.content)||((y=e.data().textContent)==null?void 0:y.content)||""},k=function(){var Q,y;
return(Q=e.data().webData)==null?void 0:(y=Q.textResult)==null?void 0:y.content},I=_.Ss().resolve(_.fV),J=_.NH(),q=function(){return e.data().chatResponseStyle},L=function(){return!e.data().transparentBackground},n=function(){return e.data().rightAlignThumbs},R=function(){return e.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||e.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"||!!e.data().icon},
W=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:R()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:e.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},b=function(){var Q,y;
return e.data().webData||((Q=e.data().text)==null?void 0:Q.content)||e.data().videoResultsData||e.data().conversationResourceViewModel||e.data().quiz||e.data().yoututorQuiz||e.data().richContent||e.data().content||((y=e.data().textContent)==null?void 0:y.content)},h=function(){return!!e.data().sectionHeader||b()},X=function(){return e.data().hideIcon||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?!1:h()},D=function(){var Q;
return(Q=e.data().videoResultsData)==null?void 0:Q.videoShelf},f=function(){var Q;
return(Q=e.data().webData)==null?void 0:Q.sourcesShelf},l=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:e.data().thumbsDownViewModel&&e.data().thumbsUpViewModel},A=function(){return _.x(e.data().thumbsUpViewModel,_.fP)},d=function(){return _.x(e.data().thumbsDownViewModel,_.fP)},S=function(){return R()};
_.Tr(function(){requestAnimationFrame(function(){var Q;(Q=e.shouldAnimateIcon)!=null&&Q.call(e)&&KZ7(J.lottieEl)})});
var V={};return _.a("you-chat-item-view-model",{class:_.o6("ytwYouChatItemViewModelYouChatItemViewModel",(V.ytwYouChatItemViewModelColumnLayout=S,V.ytwYouChatItemViewModelYouChatItemViewModelNoZIndex=g,V)),style:_.N2({"min-height":function(){var Q,y;return _.dZ0((Q=e.containerHeight)==null?void 0:Q.call(e),(y=e.isLastItem)==null?void 0:y.call(e))}}),
"data-target-id":function(){return e.data().id||""}},_.a(_.E,{cond:function(){return e.data().removeIcon||R()&&!X()?!1:h()},
then:function(){return _.a("div",{"aria-hidden":"true"},_.a(_.E,{cond:function(){return e.data().icon},
then:function(Q){var y={};return _.a(_.pv,{data:Q,className:_.o6("ytwYouChatItemViewModelIcon",(y.ytwYouChatItemViewModelIconVertical=S,y)),alt:""})},
else:function(){var Q={};return _.a(_.Sx,{className:_.o6("ytwYouChatItemViewModelIcon",(Q.ytwYouChatItemViewModelRtl=I==="rtl",Q.ytwYouChatItemViewModelHidden=function(){return!X()},Q)),
animationName:"YOUCHAT_ICON",data:W,animationRef:J})}}))}}),_.a(_.E,{cond:h,
then:function(){var Q={};return _.a("div",{class:_.o6("ytwYouChatItemViewModelHost",(Q.ytwYouChatItemViewModelHostNoPadding=function(){return!!e.data().sectionHeader&&!b()},Q.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},Q.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},Q.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
Q.ytwYouChatItemViewModelGradientBackground=L,Q.ytwYouChatItemViewModelHostAlignStart=function(){return!R()},Q.ytwYouChatItemViewModelHostDefaultFlex=function(){return!R()},Q)),
role:"alert"},_.a(_.E,{cond:c,then:function(y){return _.a(_.TZ,{text:y,wrapCodeBlocks:!0})}}),_.a(_.eS,{data:function(){return e.data().sectionHeader}},{sectionHeaderViewModel:function(y){var O={};
return _.a(_.CW,{data:y.data,className:_.o6("ytwYouChatItemViewModelSectionHeader",(O.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!e.data().sectionHeader&&!b()},O)),
forceSmallLayout:!0})}}),_.a(_.E,{cond:k,
then:function(y){return _.a(_.TZ,{text:y,wrapCodeBlocks:!0})}}),_.a(_.E,{cond:D,
then:function(){return _.a("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.a(_.eS,{data:function(){var y;return(y=e.data().videoResultsData)==null?void 0:y.videoShelf}},{horizontalShelfViewModel:function(y){return _.a(_.mo,{data:y.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.a(_.E,{cond:f,
then:function(){return _.a("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.a(_.eS,{data:function(){var y;return(y=e.data().webData)==null?void 0:y.sourcesShelf}},{horizontalShelfViewModel:function(y){return _.a(_.mo,{data:y.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.a(_.eS,{data:function(){return e.data().conversationResourceViewModel}},{conversationResourceViewModel:gQ7}),_.a(_.eS,{data:function(){return e.data().quiz}},{learningJourneyQuizViewModel:_.YC7}),_.a(_.eS,{data:function(){return e.data().yoututorQuiz}},{yoututorQuizViewModel:Ob0}),_.a(_.eS,{data:function(){return e.data().richContent}},{cardViewModel:_.uSg,
linearLayoutViewModel:_.iY}),_.a(_.eS,{data:function(){return e.data().content}},{cardViewModel:_.uSg,
yoututorQuizViewModel:Ob0,linearLayoutViewModel:_.iY,learningJourneyQuizViewModel:_.YC7,conversationResourceViewModel:gQ7}),_.a(_.E,{cond:l,then:function(){return _.a(MXO,{thumbsUp:A,thumbsDown:d,rightAlignThumbs:n})}}))}}),_.a(_.E,{cond:function(){return e.data().chipsData},
then:function(Q){return _.a(ekg,{data:Q,disabled:e.pending,onError:e.onError})}}))},"Oh");
_.pd7.idomCompat={callbacks:{onError:!0,onSend:!0}};
}catch(e){_._DumpException(e)}
try{
_.DL("hU04te");
_.kqY=_.H(function(e){return _.a("yt-feedback-prompt-view-model",{class:_.o6("ytFeedbackPromptViewModelHost",e.className)},_.a(_.E,{cond:function(){return e.data().text},
then:function(g){return _.a(_.fa,{text:g,className:"ytFeedbackPromptViewModelPrompt"})}}),_.a(_.eS,{data:function(){return e.data().likeButton}},{likeButtonViewModel:function(g){return _.a(_.Xh,{data:g.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.a(_.eS,{data:function(){return e.data().dislikeButton}},{dislikeButtonViewModel:_.hT}))},"Ph");
_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("NSzT5");
var OxT=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield(_.Ss().resolve(_.QF),2);(e=g.yieldResult)&&e.pauseVideo();_.Uh(g)})};var MtB=_.Ti(["https://portraits.google.com"]),C6a=_.Ti(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),ecP=_.Ti(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),gu3=_.jw(MtB),cCa=_.H(function(e){function g(b){var h;if(b=(h=b.detail)==null?void 0:h.endpoint){h=_.x(b,_.KU);var X;h&&((X=h.browseId)==null?0:X.startsWith("UC"))&&h.browseId!==I()&&(_.Fn("creator-chatbots-panel-persistent"),R.removeEventListener("yt-navigate-start",g))}}
var c=e.usePlayerHeight;var k=e.isPersistentPanel;var I=e.creatorChannelId;var J=_.M2(_.f_W),q=_.mb(function(b){var h=I();h=_.jw(C6a,h);_.wy(b,1,h)}),L=function(){var b,h,X;
return _.r(function(D){return D.nextAddress==1?D.yield(_.Ss().resolve(_.QF),2):(b=D.yieldResult)?D.return({video_id:(X=(h=b.getVideoData())==null?void 0:h.video_id)!=null?X:"",timestamp_sec:b.getCurrentTime().toString()}):D.return({})})};
_.VV("message",function(b){var h,X,D,f,l,A,d,S,V,Q;return _.r(function(y){if(y.nextAddress==1){if(b.origin!==gu3.toString())return console.warn("Received message from untrusted origin:",b.origin),y.return();h=b.data;if(typeof h!=="object"||h===null||!h.action)return y.return();if(h.action==="pause")return y.yield(OxT(),0);if(h.action!=="getYouTubeContext")return y.jumpTo(0);D=((X=k)==null?0:X())?"creator-chatbots-panel-persistent":"creator-chatbots-panel";f=document.getElementById(D);if(((l=k)==null?
0:l())&&f&&f.style.display!=="none"&&b.source)return(A=b.source)==null||A.postMessage(JSON.stringify({youTubeContext:{}}),{targetOrigin:b.origin}),y.jumpTo(0);if(!b.source)return y.jumpTo(0);d=b.source;S=d.postMessage;V=JSON;Q=V.stringify;return y.yield(L(),8)}S.call(d,Q.call(V,{youTubeContext:y.yieldResult}),{targetOrigin:b.origin});return y.jumpTo(0)})});
var n=function(){var b,h;(b=q.value)==null||(h=b.contentWindow)==null||h.postMessage("ep_closed",gu3.toString())};
_.VV("yt-page-type-changed",function(){if(k==null?0:k()){var b;((b=_.Ss().resolve(_.A4).getCurrentPage())==null?void 0:b.pageSubtype)!=="channels"&&(b=document.getElementById("creator-chatbots-panel-persistent"))&&(b.style.display="none")}else _.Ss().resolve(_.A4).isOnWatch()||document.getElementById("creator-chatbots-panel")&&_.Fn("creator-chatbots-panel")});
var R=_.Ss().resolve(_.yq),W;(W=R)==null||W.addEventListener("yt-navigate-start",g);_.Tr(function(){var b=(k==null?0:k())?"creator-chatbots-panel-persistent":"creator-chatbots-panel",h=document.getElementById(b);if(h){var X=new MutationObserver(function(D){D.forEach(function(f){f.type==="attributes"&&f.attributeName==="style"&&h.style.display==="none"&&n()})});
X.observe(h,{attributes:!0});_.sX(function(){X.disconnect()})}});
_.sX(function(){var b;(b=R)==null||b.removeEventListener("yt-navigate-start",g)});
e={};return _.a("div",{class:_.o6("ytprotoCreatorChatbotsAppHost",(e.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return J()},e)),
style:_.N2({height:function(){return(c==null?0:c())?"var(--ytd-watch-flexy-panel-max-height)":"100%"},
"max-height":function(){return(k==null?0:k())?"800px":void 0}})},_.a(_.ZbQ,{id:function(){return(k==null?0:k())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
preventDefault:function(){return!(k==null?0:k())},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){k!=null&&k()||(n(),_.Fn("creator-chatbots-panel"))},
header:function(){return _.a("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.a("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.a(_.xG,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.a(_.dt,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var b=_.Sa("https://portraits.google.com/gallery?ytChannelId="+I());b&&_.q5(window,b,"_blank");n()}})},
content:function(){return _.a("iframe",{el:q,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+gu3.toString()})}}))},"Zo"),kPr=_.H(function(e){var g=e.creatorChannelId;
var c=_.M2(_.f_W),k=_.mb(function(J){var q=g();q=_.jw(ecP,q);_.wy(J,1,q)}),I=_.eU(_.gL(),{veType:281629});
e={};return _.a("div",{class:_.o6("ytprotoCreatorChatbotsAppHost",(e.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return c()},e)),
style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.a(_.ZbQ,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.a("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.a("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.a(_.xG,{data:{text:"AI experiment",
type:0}}))},
content:function(){return _.a("iframe",{el:k,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.a("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.a(_.dt,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var J=_.Sa("https://portraits.google.com/gallery?ytChannelId="+g());J&&_.q5(window,J,"_blank");OxT();I&&_.$y(_.gL(),{visualElement:I})},
"client-ve-type":281629}),_.a("div",null,"This will take you to Google Portraits"))}}))},"$o");var I9B=_.Ti(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]),JCp=_.jw(I9B);_.qvn=function(e){e=e===void 0?"":e;_.Fn("creator-chatbots-panel");_.AE(JCp);_.ut("ytd-watch-metadata #top-level-buttons-computed",function(){document.getElementById("creator-chatbots-panel")||_.oNM("creator-chatbots-panel",function(){return _.a(cCa,{usePlayerHeight:!0,creatorChannelId:e})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.wwB=function(e){e=e===void 0?"":e;_.Fn("creator-chatbots-panel");_.ut("ytd-watch-metadata #top-level-buttons-computed",function(){_.oNM("creator-chatbots-panel",function(){return _.a(kPr,{creatorChannelId:e})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.vIq=function(e,g,c){e=e===void 0?"":e;g=g===void 0?!1:g;c=c===void 0?"CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_UNKNOWN":c;var k,I;return _.r(function(J){if(c==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"){if(k=document.getElementById("creator-chatbots-panel"))k.style.display="block";return J.jumpTo(0)}I=document.getElementById("creator-chatbots-panel-persistent");return!g||I?(!g&&I&&I.style.display==="none"&&(I.style.display="block"),J.jumpTo(0)):J.yield(new Promise(function(q){_.ut("ytd-app",
function(L){_.sW({element:L,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.a(cCa,{isPersistentPanel:!0,creatorChannelId:e})});
q()})}),0)})};
_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("b3MoKf");

_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("f8YPh");

_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("QiZf0e");

_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("mcjWUc");

_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("m9Vw4");

_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("dIvQ6c");

_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("JoU6vf");

_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("HwlOhd");

_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("n0DHg");

_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("U9vrqd");

_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("dpUCFd");

_.$r();
}catch(e){_._DumpException(e)}
try{
_.DL("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 cZO,zg,kHj,IHo,JZj,vQx,wP0,q4j,LVQ,rZQ,aHz,nQ7,H8,Rkq,EQl,WVj,bMj,hkX,XPo,GHg,xRO,DRq,$Ro,Y4x,fHD,jY0,iMS,mRj,pPv,lHQ,AZq,sYz,udq,dRv,zkz,HMg,QH,URq,oQX,ZMv,UW,VrO,S4x,yZQ,KVv,OMv,C0S,eo0,I5X,vfg,kjl,P0g,wmj,qMl,Lt7,oz,ZN,rrq,a5j,RoO,Ef7,b_x,hoD,Xmg,Gj0,xoO,DoX,$og,YMS,VH,f5S,i_D,Pcj,mox,pmQ,TEX,ArD,sCQ,FtQ,u7g,H_z,QCM,Z_x,VVQ,BED,NEj,yrQ,tE,KtS,MVQ,CcQ,emO,c5q,IO7,J5D,vnl,whz,qVq,L7o,r5S,aO0,nn0,Rmv,EnX,W7z,bAx,hmO,XhO,Guq,xcD,YVO,fOX,jtM,iA7,PBO,mcj,phg,T$D,A5S,stS,F7M,ubo,dcg,zmj,HAg,QtD,Uco,
SG,onj,ZAQ,V4M,t4l,B$S,N$7,yH,SV0,y5g,K7M,OAv,M4O,CBO,eBg,gdg,cwq,ktz,IYo,JwM,KR,vdD,wLz,qoX,Lpv,rwx,aYS,ndl,RBD,Edo,WpS,bUz,hBO,XLO,GtM,xWM,DWD,$W0,Yox,jqq,mWv,pLv,Tqq,lYQ,Awz,sqz,FpQ,uiv,dWl,zBg,HUo,Qql,UWQ,M0,CR,ZUj,VoO,toq,Bqj,Nqx,SoO,ywO,Kpo,OUQ,Mol,c3Q,auz,Wiq,bsg,Dkq,YYj,xkg,XgQ,TpD,s1j,Q17,h9X,uZD,lu0,$kD,ovg,thl,SY7,Bpg,Npv,y3j,Cgg,Oso,epq,g_Q,Mhx,Kiv,csj,kc,IQ,qzQ,JQ,Lkx,rs7,vK,aFD,n_v,Rpz,G5Q,xYD,$Yv,YzM,fFM,jIv,wW,iO0,PFQ,mY7,qh,LJ,Tk7,lFv,rW,sIl,Fkv,aQ,dYl,nJ,RQ,Ed,WK,QIO,HOj,UYQ,o_Q,
bG,ZO0,hQ,VYS,XV,Gh,MYl,xc,CFq,eZg,gkl,D_,wTS,kF7,vk7,qL7,IiD,rbM,JbS,RZQ,ail,nkj,Ekg,bvv,Wbl,x27,fiS,j3,iG,$2o,iv0,YLv,j6S,m9,Th,lG,AQ,yb7,Hv0,MUM,C3j,eNg,gy0,kJM,s6X,FbD,uG,d2Q,sd,FV,zZv,c4z,Kb7,u6O,zh,WsO,hNg,XOD,bxO,a37,xHl,Y1z,LsQ,wOq,q1z,ixj,r4X,Ud,$Hg,ny7,DHg,EyX,vyl,RND,mH0,zND,Hxj,QHQ,UHl,oyQ,Zxv,tt7,Nh,NiO,S1l,KsD,OxD,Mt0,C6z,ecv,gux,cCO,kPj,I9X,S3,JCQ,vul,wYq,qQv,W3q,y$,Eug,rCO,Rco,nu0,a9j,L3S,bVM,hcD,XYQ,GPl,KJ,xyx,Dyo,jBo,Mh,YQv,eg,Od,CJ,f9o,$yO,iVX,PDM,myl,pYq,TbM,l9M,sBS,F3D,uJj,dyM,
zcl,HVS,QBj,UyD,ouX,ZVo,tSX,BbQ,SQl,OVS,MSl,CDj,gDS,kMl,Jhj,vD0,wjl,qTO,rhl,aZS,nDv,RRj,EDv,WgX,bLO,XjS,GMg,$1x,fZD,iLS,YTz,x1z,D1g,TS7,pjq,PQj,lZo,m1z,Ahv,zRX,d1X,FgD,uXD,g5,HL7,U1M,oDD,ZLj,STj,yho,KgS,OLg,MlQ,CQx,ePM,gtv,cAz,ki7,IQ0,JA7,vtx,w2X,qmv,Lml,rAD,aQO,ntX,RPo,Etv,WmO,buv,hPv,Gil,xej,DeD,$ez,Ymx,fQQ,jdS,iuD,Pn0,mez,lQQ,sdo,u5g,deS,zPz,HuD,p2v,Tlo,otg,Zug,V$v,t$D,Bl0,NlQ,Sml,yA0,Km0,Ouj,M$q,CnM,gVQ,eOj,kXq,I4O,vVX,wWv,Lvl,rPQ,JM,EVD,Wvj,hOg,XWv,xBQ,GXz,YUv,DBM,$Bo,f4X,jsq,iqg,Pyx,mBD,pWl,
T0z,l4v,APX,ssx,FvS,uvl,zO7,dBQ,HqQ,oVX,ZqO,VAO,v7,tAx,B0v,N0O,SUx,yPv,KvS,OqS,MAl,Cyq,exS,gE7,klD,Ig0,JL7,vEQ,rL7,nE7,Rxv,Wn7,EEq,b2o,hx7,X9z,Glg,Dsv,$sx,Ysl,fgq,jXx,i2Q,P2g,msq,p9S,Tgo,lgD,uWj,dsv,sX7,Fnq,ALx,zxO,UsO,H2j,QXO,V9o,oEo,Z27,t9Q,Bgj,Ng7,Ssq,Kng,O2g,M9D,eex,goQ,kSv,Jao,wNX,LFM,a7g,ReQ,WFO,hex,xnv,$nD,YR7,f7S,iZS,j0S,mnQ,pNg,TGQ,l7j,qC,AaX,s0j,FFM,NG7,yav,KFj,e6M,aJ,gbz,cUD,k3j,JUl,I2q,vbo,wRl,qGz,LEj,rUS,CmM,a2X,nbS,R6S,qRj,EbX,WEM,O_j,bwx,h6S,XRO,G3x,xDq,DDq;
cZO=function(){switch(_.zZ6()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
zg=function(e){if(!e)return"browse";var g=e.page,c=e.url,k,I,J,q=(k=e.response)==null?void 0:(I=k.responseContext)==null?void 0:(J=I.webResponseContextExtensionData)==null?void 0:J.pageTheme;if(q)g=q.toLowerCase().replace(/_/g,"-");else if(g!=="watch"&&g!=="learning_journey_watch"){var L,n;if((g==="browse"||g==="settings")&&((L=e.response)==null?0:(n=L.sidebar)==null?0:n.settingsSidebarRenderer))g="WEB_PAGE_TYPE_SETTINGS";else{var R,W;g==="browse"&&((R=e.response)==null?0:(W=R.metadata)==null?0:W.channelMetadataRenderer)?
g="channel":c&&(g=_.CXg(c)||g)}}return g};
kHj=function(){return new Promise(function(e){var g=window;g.attmp!==void 0?e(g.attmp):(g.attmq===void 0&&(g.attmq=[]),g.attmq.push(function(c){e(c)}))})};
IHo=function(){var e=_.Q0("yt.aba.att");return e?e:_.cr.instance!==void 0?_.cr.instance.sLl.bind(_.cr.instance):null};
JZj=function(e,g){var c,k,I;return _.r(function(J){if(J.nextAddress==1){if(!_.G("attmusi")||!_.G("attmusi_ue"))return J.jumpTo(2);c=window;return c.attmp!==void 0?J.return(c.attmp.s(e,g,6E4)):J.yield(kHj(),3)}return J.nextAddress!=2?(k=J.yieldResult,J.return(k.s(e,g,6E4))):(I=IHo())?J.return(I(e,g,6E4)):J.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
vQx=function(e,g,c,k,I){g=g===void 0?[]:g;I=I?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:I}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.uB(e),dialogMessages:g.map(function(J){return _.uB(J)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.uB(c),serviceEndpoint:I}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.uB(k)}}}}}};
wP0=function(e,g,c,k){c||(e?k&&(k.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||k.WINDOW_SIZE_CHANGED&&(g.width!==window.innerWidth||g.height!==window.innerHeight)||k.SAFARI_ABORTED_BY_NEW_TRANSITION&&e instanceof DOMException&&e.name==="AbortError"&&e.message.includes("Old view transition aborted by new view transition"))||_.jW(e):_.jW(Error("Aj")))};
q4j=function(e,g){g=g===void 0?{}:g;var c,k,I,J,q,L,n,R,W,b,h,X,D;return _.r(function(f){switch(f.nextAddress){case 1:c=g;k=c.shouldWrap===void 0?!0:c.shouldWrap;I=c.skipTransitionTimeoutMs===void 0?300:c.skipTransitionTimeoutMs;J=c.beforeTransition;q=c.afterTransition;if(!k||!document.startViewTransition||document.visibilityState==="hidden")return f.return(e());L={width:window.innerWidth,height:window.innerHeight};n=!1;(R=J)==null||R();_.lj(f,2);W=document.startViewTransition(e);b=setTimeout(function(){W.skipTransition();
n=!0},I);
return f.yield(W.ready,4);case 4:return clearTimeout(b),f.yield(W.finished,5);case 5:clearTimeout(b);(h=q)==null||h();_.zn(f,0);break;case 2:X=_.Qb(f),(D=q)==null||D(),wP0(X,L,n,g.ignoredErrors),_.Uh(f)}})};
LVQ=function(e,g,c){c=c===void 0?!1:c;var k=_.eM(),I=!!_.po().queueProxy,J,q,L;e=e==null?void 0:(J=e.response)==null?void 0:(q=J.currentVideoEndpoint)==null?void 0:(L=q.watchEndpoint)==null?void 0:L.playlistId;if((I||e)&&!_.G("web_watch_disable_playlist_auto_miniplayer"))return c&&(k.playlistWatchPageActivation=!0),!0;switch(zg(g)){case "yts-products":return c&&(k.productDetailsPageActivation=!0),!0;case "mini_app":return c&&(k.miniAppPageActivation=!0),!0;case "playables":return c&&(k.playablesDestPageActivation=
!0),!0;case "companion-canvas":return c&&(k.companionCanvasActivation=!0),!0;default:return!1}};
rZQ=function(e){e=_.wzV(e);e.length>0&&e[0].focus()};
aHz=function(e,g,c){for(var k=typeof e==="string"?e.split(""):e,I=e.length-1;I>=0;--I)I in k&&g.call(c,k[I],I,e)};
nQ7=function(e,g,c){for(var k=e.length,I=typeof e==="string"?e.split(""):e,J=0;J<k;J++)if(J in I&&g.call(c,I[J],J,e))return J;return-1};
H8=function(e,g,c){g=nQ7(e,g,c);return g<0?null:typeof e==="string"?e.charAt(g):e[g]};
Rkq=function(e,g){g=nQ7(e,g);g>=0&&_.ltv(e,g)};
EQl=function(e){return Array.prototype.concat.apply([],arguments)};
WVj=function(e){var g=void 0;g!=null||(g=_.E7?1024:0);if(!_.wj(e))throw _.cw("uint64");var c=typeof e;switch(g){case 512:switch(c){case "string":return _.oIW(e);case "bigint":return String((0,_.fg)(64,e));default:return _.Qng(e)}case 1024:switch(c){case "string":return _.Z16(e);case "bigint":return _.zq((0,_.fg)(64,e));default:return _.Uqq(e)}case 0:switch(c){case "string":return _.oIW(e);case "bigint":return _.zq((0,_.fg)(64,e));default:return _.H1A(e)}default:return _.gj(g,"Unknown format requested type for int64")}};
bMj=function(e,g,c){if(g)return _.iS(e);var k;return(k=_.TD(e))!=null?k:c?"":void 0};
hkX=function(e){e!=null&&(e=e.JSC$9130_value_||"",e=typeof e==="string"?e:new Uint8Array(e));return e};
XPo=function(e,g){var c=_.iYz(g);c!=="javascript:"&&c!=="data:"&&e.setAttribute("href",g)};
GHg=function(e,g,c){return Math.abs(e-g)<=(c||1E-6)};
xRO=function(e,g){var c=[];for(g=g||0;g<e.length;g+=2)_.grA(e[g],e[g+1],c);return c.join("&")};
DRq=function(e,g){var c=arguments.length==2?xRO(arguments[1],0):xRO(arguments,1);return _.eEU(e,c)};
$Ro=function(e,g){if(/-[a-z]/.test(g))return null;if(_.m_k&&e.dataset){if(_.xU6()&&!(g in e.dataset))return null;e=e.dataset[g];return e===void 0?null:e}return e.getAttribute("data-"+_.KM(g))};
Y4x=function(){var e=_.Tn&&_.Gv(_.lHM,10)>=0,g;if(g=_.PSI)g=_.Gv(_.TYk,10)>=0;var c=_.yG&&_.Gv(_.lHM,85)>=0;return _.er||e||g||c};
fHD=function(e){var g=_.hEB(e);return g&&Y4x()?-e.scrollLeft:g&&_.Fw(e,"overflowX")!="visible"?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft};
jY0=function(e,g){g=Math.max(g,0);_.hEB(e)?Y4x()?e.scrollLeft=-g:e.scrollLeft=e.scrollWidth-g-e.clientWidth:e.scrollLeft=g};
iMS=function(){var e=window.location.hash;e.charAt(0)==="#"&&(e=e.charAt(1)==="!"?e.substring(2):e.substring(1));return _.ZC(e)};
mRj=function(){var e=P0g;_.Q0("yt.ads.biscotti.getId_")||_.BQ("yt.ads.biscotti.getId_",e)};
pPv=function(e){_.BQ("yt.ads.biscotti.lastId_",e)};
lHQ=function(){var e={};for(_.Dv=new TYo(e.handleError===void 0?_.Py:e.handleError,e.logEvent===void 0?_.Y2:e.logEvent);_.$1.length>0;)switch(e=_.$1.shift(),e.type){case "ERROR":_.Dv.logError(e.payload);break;case "EVENT":_.Dv.logEvent(e.eventType,e.payload)}};
AZq=function(e,g,c){return _.UWg(function(k){return c?k.userIdentifier!==void 0&&!e.includes(k.userIdentifier)&&c.includes(k.publicName):k.userIdentifier!==void 0&&!e.includes(k.userIdentifier)},g)};
sYz=function(e){var g,c;return _.r(function(k){if(k.nextAddress==1)return g=_.nf("YtIdbMeta hasAnyMeta other"),k.yield(_.UWg(function(I){return I.userIdentifier!==void 0&&I.userIdentifier!==g},e),2);
c=k.yieldResult;return k.return(c.length>0)})};
udq=function(e,g){FVz||(FVz=_.ft.addLowPriorityJob(function(){var c,k,I,J,q;return _.r(function(L){switch(L.nextAddress){case 1:return L.yield(_.Nl(),2);case 2:c=L.yieldResult;if(!c)return L.return();k=!0;_.lj(L,3);return L.yield(AZq(e,c,g),5);case 5:I=L.yieldResult;if(!I.length){k=!1;L.jumpTo(6);break}J=I[0];return L.yield(_.HQ(J.actualName),7);case 7:return L.yield(_.o$(J.actualName,c),6);case 6:_.zn(L,4);break;case 3:q=_.Qb(L),_.Y1(q),k=!1;case 4:_.ft.cancelJob(FVz),FVz=0,k&&udq(e,g),_.Uh(L)}})}))};
dRv=function(){var e;return _.r(function(g){return g.nextAddress==1?g.yield(_.Nl(),2):(e=g.yieldResult)?g.return(sYz(e)):g.return(!1)})};
zkz=function(e){var g=100;g=g===void 0?500:g;var c,k,I,J,q,L;return _.r(function(n){return n.nextAddress==1?(c=_.uo("INNERTUBE_CONTEXT_CLIENT_NAME",0),k=[c,(0,_.yr)()-2592E6],I=[c,(0,_.yr)()],J=IDBKeyRange.bound(k,I),n.yield(_.nkV(e),2)):n.nextAddress!=3?(q=n.yieldResult,L=[],n.yield(_.U2(q,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(R){L.length=0;return _.Kf(R.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:J,direction:"prev"},function(W){if(W.getValue()&&L.length<
g)return L.push(W.getValue()),W.delete().then(function(){return W.continue()})})}),3)):n.return(L)})};
HMg=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield(_.Nl(),2);e=g.yieldResult;if(!e||!_.R$()&&!_.G("nwl_init_require_datasync_id_killswitch")||!_.liz())return g.jumpTo(0);_.s6p=!0;_.Abe.isNwlInitialized=_.s6p;return g.yield(_.$Ww().awaitInitialization(),0)})};
QH=function(e,g){_.Ov6[e]=!0;var c=_.yu();c&&c.publish.apply(c,arguments);_.Ov6[e]=!1};
URq=function(){if(_.mYC()&&!QYl){var e=function(c){c=c.data;if(c.op==="serializedGelBatch"){var k=_.Oxv.get(c.key);k&&(_.C6K(c.serializedBatch,k.client,k.resolve,k.networklessOptions,k.isIsolated,k.useVSSEndpoint,k.dangerousLogToVisitorSession,k.requestsOutstanding),_.Oxv.delete(c.key))}},g=_.PFg();
g&&(g.addEventListener("message",e),g.onerror=function(){_.Oxv.clear()});
QYl=!0}};
oQX=function(){this.relativeTimeStart_=_.QG()};
ZMv=function(e,g){e!=null&&this.append.apply(this,arguments)};
UW=function(){for(var e=Array(36),g=0,c,k=0;k<36;k++)k==8||k==13||k==18||k==23?e[k]="-":k==14?e[k]="4":(g<=2&&(g=33554432+Math.random()*16777216|0),c=g&15,g>>=4,e[k]=_.ZZV[k==19?c&3|8:c]);return e.join("")};
VrO=function(){return _.Gj("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
S4x=function(){var e=_.n0.clone(trx),g;return(new _.Il(function(c,k){e.onSuccess=function(I){_.HAC(I)?c(new BYM(I)):k(new NYX("Request failed, status="+_.cQ(I),"net.badstatus",I))};
e.onError=function(I){k(new NYX("Unknown request error","net.unknown",I))};
e.onTimeout=function(I){k(new NYX("Request timed out","net.timeout",I))};
g=_.vQ("//googleads.g.doubleclick.net/pagead/id",e)})).thenCatch(function(c){if(c instanceof _.fL){var k;
(k=g)==null||k.abort()}return _.q2(c)})};
yZQ=function(e,g,c){c=c===void 0?!1:c;var k,I,J,q,L;return _.r(function(n){switch(n.nextAddress){case 1:_.r1("SOCS",e,34128E3,"youtube.com",!0);if(_.S$)return I=fetch(g,{method:"POST",mode:_.f_(g),credentials:_.Yf(g),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),J=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.f_("/upgrade_visitor_cookie?eom=1"),credentials:_.Yf("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),n.yield(Promise.all([I,J]).then(function(R){return R[1]}),5);
fetch(g,{method:"POST",mode:_.f_(g),credentials:_.Yf(g),cache:"no-store",headers:{"Content-Type":"text/plain"}});return n.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.f_("/upgrade_visitor_cookie?eom=1"),credentials:_.Yf("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:k=n.yieldResult;n.jumpTo(3);break;case 5:k=q=n.yieldResult;case 3:if(!k.ok)throw Error("vf");return n.yield(k.text(),7);case 7:L=n.yieldResult,
!L.includes('"state_switch":true')&&!c||L.includes("skip_reload_for_test")||window.location.reload(),_.Uh(n)}})};
KVv=function(e){return _.r(function(g){return g.nextAddress==1?g.yield(yZQ(e.socsCookie,e.savePreferenceUrl,!0),2):g.return()})};
OMv=function(e){return _.r(function(g){return g.nextAddress==1?g.yield(yZQ(e.socsCookie,e.savePreferenceUrl),2):g.return()})};
C0S=function(e){a:{var g="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(g="EMBEDDED_PLAYER_MODE_PFL");var c=e.raw_embedded_player_response;if(!c&&(e=e.embedded_player_response))try{c=JSON.parse(e)}catch(I){break a}if(c)b:{e=MrM;for(var k in e)if(e[k]==c.embeddedPlayerMode){g=e[k];break b}}}return g==="EMBEDDED_PLAYER_MODE_PFL"};
eo0=function(){if(_.G("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.tD8())return Error("xf");var e=_.uo("PLAYER_VARS",{});if(_.n0.get(e,"privembed",!1)=="1")return Error("yf");if(C0S(e))return Error("zf")};
I5X=function(e){e=e.xhr.responseText;if(!_.wV(e,")]}'"))throw new gfq;e=JSON.parse(e.substr(4));if((e.type||1)>1)throw new gfq;e=e.id;pPv(e);crQ=_.pP(e);kjl(18E5,2);return e};
vfg=function(e,g){g=new Jr7(g);pPv("");crQ=_.b$n(g);e>0&&kjl(12E4,e-1);throw g;};
kjl=function(e,g){_.k1(function(){S4x().then(I5X,function(c){return vfg(g,c)}).thenCatch(_.aX)},e)};
P0g=function(){var e=eo0();if(e!==void 0)return _.q2(e);crQ||(crQ=S4x().then(I5X).thenCatch(function(g){return vfg(2,g)}));
return crQ};
wmj=function(){var e=document;return H8(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(g){return"on"+g.toLowerCase()in e})};
qMl=function(e){e.addEventListener("click",function(g){var c=g.target;c&&c.getAttribute("href")&&(c=c.getAttribute("href"),_.q5(window,c,"_blank"),g.preventDefault(),g.stopImmediatePropagation())})};
Lt7=function(){var e=_.It();e.info||(e.info={});return e.info};
oz=function(){return(_.G("csi_use_time_origin")||_.G("csi_use_time_origin_tvhtml5"))&&_.LA.timeOrigin?Math.floor(_.LA.timeOrigin):_.LA.timing.navigationStart};
ZN=function(e){return Math.round(oz()+e)};
rrq=function(){var e;if(_.G("csi_use_performance_navigation_timing")){var g,c,k,I=_.LA==null?void 0:(e=_.LA.getEntriesByType)==null?void 0:(g=e.call(_.LA,"navigation"))==null?void 0:(c=g[0])==null?void 0:(k=c.toJSON)==null?void 0:k.call(c);I?(I.requestStart=ZN(I.requestStart),I.responseEnd=ZN(I.responseEnd),I.redirectStart=ZN(I.redirectStart),I.redirectEnd=ZN(I.redirectEnd),I.domainLookupEnd=ZN(I.domainLookupEnd),I.connectStart=ZN(I.connectStart),I.connectEnd=ZN(I.connectEnd),I.responseStart=ZN(I.responseStart),
I.secureConnectionStart=ZN(I.secureConnectionStart),I.domainLookupStart=ZN(I.domainLookupStart),I.isPerformanceNavigationTiming=!0,e=I):e=_.LA.timing}else e=_.G("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.LA.timing)):_.LA.timing;return e};
a5j=function(){if(_.LA.getEntriesByType){var e=_.LA.getEntriesByType("paint");if(e=H8(e,function(c){return c.name==="first-paint"}))return ZN(e.startTime)}var g;
_.G("csi_use_performance_navigation_timing")?g=_.LA.getEntriesByType("first-paint")[0].startTime:g=_.LA.timing.msFirstPaint;return g?Math.max(0,g):0};
RoO=function(){var e=window.location.protocol,g=_.LA.getEntriesByType("resource");g=_.VG(g,function(c){return c.name.indexOf(e+"//fonts.gstatic.com/s/")===0});
(g=nfS(g,function(c,k){return k.duration>c.duration?k:c}))&&g.startTime>0&&g.responseEnd>0&&(_.w$("wffs",ZN(g.startTime)),_.w$("wffe",ZN(g.responseEnd)))};
Ef7=function(e,g){e=document.querySelector(e);if(!e)return!1;var c="",k=e.nodeName;k==="SCRIPT"?(c=e.src,c||(c=e.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):k==="LINK"&&(c=e.href);_.LY(document)&&e.setAttribute("nonce",_.LY(document));return c?(e=_.LA.getEntriesByName(c))&&e[0]&&(e=e[0],c=oz(),_.w$("rsf_"+g,c+Math.round(e.fetchStart)),_.w$("rse_"+g,c+Math.round(e.responseEnd)),e.transferSize!==void 0&&e.transferSize===0)?!0:!1:!1};
b_x=function(e,g){_.HV(function(){_.vh("").info.actionType=e;g&&_.Fq("TIMING_AFT_KEYS",g);_.Fq("TIMING_ACTION",e);var c=_.VMW(_.uo("TIMING_INFO",{}));Object.keys(c).length>0&&_.qc(c);c={isNavigation:!0,actionType:_.lyp(_.uo("TIMING_ACTION"))};var k=_.uo("PREVIOUS_ACTION");k&&(c.previousAction=_.lyp(k));if(k=_.uo("CLIENT_PROTOCOL"))c.httpProtocol=k;if(k=_.uo("CLIENT_TRANSPORT"))c.transportProtocol=k;(k=_.EM())&&k!=="UNDEFINED_CSN"&&(c.clientScreenNonce=k);k=cZO();if(k===1||k===-1)c.isVisible=!0;k=
_.YHU().loadType==="cold";var I=Lt7();k||(k=I.yt_lt==="cold");if(k){c.loadType="cold";k=Lt7();I=rrq();var J=oz(),q=_.uo("CSI_START_TIMESTAMP_MILLIS",0);q>0&&!_.G("embeds_web_enable_csi_start_override_killswitch")&&(J=q);J&&(_.w$("srt",I.responseStart),k.prerender!==1&&_.dGC(J));k=a5j();k>0&&_.w$("fpt",k);k=rrq();k.isPerformanceNavigationTiming&&_.qc({performanceNavigationTiming:!0},void 0);_.w$("nreqs",k.requestStart,void 0);_.w$("nress",k.responseStart,void 0);_.w$("nrese",k.responseEnd,void 0);
k.redirectEnd-k.redirectStart>0&&(_.w$("nrs",k.redirectStart,void 0),_.w$("nre",k.redirectEnd,void 0));k.domainLookupEnd-k.domainLookupStart>0&&(_.w$("ndnss",k.domainLookupStart,void 0),_.w$("ndnse",k.domainLookupEnd,void 0));k.connectEnd-k.connectStart>0&&(_.w$("ntcps",k.connectStart,void 0),_.w$("ntcpe",k.connectEnd,void 0));k.secureConnectionStart>=oz()&&k.connectEnd-k.secureConnectionStart>0&&(_.w$("nstcps",k.secureConnectionStart,void 0),_.w$("ntcpe",k.connectEnd,void 0));_.LA&&"getEntriesByType"in
_.LA&&RoO();k=[];if(document.querySelector&&_.LA&&_.LA.getEntriesByName)for(var L in Wtj)Wtj.hasOwnProperty(L)&&(I=Wtj[L],Ef7(L,I)&&k.push(I));if(k.length>0)for(c.resourceInfo=[],L=_.w(k),k=L.next();!k.done;k=L.next())c.resourceInfo.push({resourceCache:k.value})}_.qc(c);c=_.J5();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);L=c.preLoggedGelInfos;c=_.jv8();k=void 0;for(I=0;I<L.length;I++)if(J=L[I],J.loadType){k=J.loadType;break}if(_.YHU().loadType==="cold"&&(c.loadType==="cold"||k==="cold")){k=_.fyK();
I=_.J5();I=I.gelTicks?I.gelTicks:I.gelTicks={};for(var n in k)n in I||typeof k[n]==="number"&&_.w$(n,_.r$(n));n={};k=!1;L=_.w(L);for(I=L.next();!I.done;I=L.next())k=I.value,_.X7(c,k),_.X7(n,k),k=!0;k&&_.qc(n)}_.BBC(!0);n=_.uo("TIMING_ACTION");_.Q0("ytglobal.timingready_")&&n&&_.gCq()&&_.tMg()&&_.oqt()})()};
hoD=function(e){var g,c,k,I=(k=(c=((g=e.mainDownloadsListEntity)!=null?g:{})[_.hb6])==null?void 0:c.refresh)!=null?k:"",J;e=(J=e.refresh)==null?void 0:J[I];I=e!=null?e:{};return(I==null?0:I.refreshTime)?Number(I==null?void 0:I.refreshTime):0};
Xmg=function(e,g){var c=_.wq(e);return g.every(function(k){var I;k=k==null?void 0:(I=k.playbackDataEntity)==null?void 0:I.key;if(!k)return!1;I=_.Bh(_.ZO(k).entityId,"mainVideoEntity");return!!c[I]})};
Gj0=function(e){return e.ui.guideIsVisibleButNotPersistent};
xoO=function(e){return e.ui.scrollAtTop};
DoX=function(e){return e.ui.tabGesturesIsActive};
$og=function(e){e=_.Iq(e.entities);return _.lrp(e).length};
YMS=function(e,g){if(g){var c;e=(c=_.Nc(e.entities,"downloadQualityPickerEntity",g))!=null?c:void 0}else e=void 0;return e};
VH=function(e,g,c){var k;return _.r(function(I){if(I.nextAddress==1)return I.yield(g(),2);k=I.yieldResult;c(k,e);_.Uh(I)})};
f5S=function(){return _.r(function(e){return e.nextAddress==1?e.yield((eo0()!==void 0?_.q2(Error("Af")):S4x()).then(function(){return 1},function(g){if(g.message==="Biscotti id is disabled")return 3;
_.mN("Failed fetching bid");return 0}),2):e.return(e.yieldResult)})};
i_D=function(){var e=_.Fi("eWVyI2YxdnN0MDF5anlweXQtaGF2ZW4tZW1iZWQtcGxh"),g=_.Fi("bWUjNnQ3dDk2bzFqd2U2aWZyYQ==");return document.querySelector(g+jCQ+e)?0:1};
Pcj=function(e){var g=document.getElementsByTagName("ytd-enforcement-message-view-model");g.length===0||getComputedStyle(g[0]).display==="none"?e(0,"p.h_"):e(1,"p.h_")};
mox=function(){return _.lsC(_.A$)};
pmQ=function(){return _.AiV()===0?0:_.sfp()};
TEX=function(){return _.H$g(_.Cht([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
ArD=function(){return _.YNz(l5z)};
sCQ=function(e){_.r(function(g){switch(g.nextAddress){case 1:return g.yield(VH("b.f_",f5S,e),2);case 2:return g.yield(VH("j.s_",_.DFW,e),3);case 3:return g.yield(VH("r.s_",_.X1U,e),4);case 4:return g.yield(VH("e.h_",ArD,e),5);case 5:if(!_.G("ab_det_sc_inj")){g.jumpTo(6);break}return g.yield(VH("s.i_",_.p1U,e),6);case 6:if(_.G("ab_deg_unex_thr")){g.jumpTo(8);break}return g.yield(VH("a.o_",_.PXC,e),8);case 8:if(_.G("ks_get_o_pp")){g.jumpTo(10);break}return g.yield(VH("g.o_",_.i$e,e),10);case 10:if(_.G("ks_det_gpbl")){g.jumpTo(12);
break}return g.yield(VH("p.i_",_.jfC,e),12);case 12:return g.yield(VH("f.i_",_.w1e,e),14);case 14:return g.yield(VH("a.b_",_.b$A,e),15);case 15:return g.yield(VH("p.m_",_.riv,e),16);case 16:if(!_.G("ab_det_el_h_v2")){g.jumpTo(17);break}return g.yield(VH("n.h_",TEX,e),17);case 17:return g.yield(VH("o.p_",mox,e),19);case 19:return g.yield(VH("e.i_",i_D,e),20);case 20:if(_.G("ab_det_apm"))return g.yield(VH("o.a_",pmQ,e),0);g.jumpTo(0)}})};
FtQ=function(e){switch(e){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:_.gj(e,"unknown result type")}};
u7g=function(e,g,c){g=_.NRt[g];c={detected:e===0,source:g.hNs,detectionResult:FtQ(e),contentCpn:c};_.Y2("biscottiBasedDetection",c);_.T7q.increment(g.hNs,e);g.pfy!==void 0&&_.Fq("CATSTAT",_.td6(e,g))};
H_z=function(){doD=0;var e=[_.CU(!0)];zoz&&_.V1(zoz,"yt-window-resized",e)};
QCM=function(){doD||(doD=_.ft.addLowPriorityJob(H_z,200))};
Z_x=function(){UoM=0;ofO=_.Z0v(document);var e=[ofO];zoz&&_.V1(zoz,"yt-window-scrolled",e)};
VVQ=function(){UoM||(UoM=_.ft.addLowPriorityJob(Z_x,200))};
BED=function(e){e=e===void 0?null:e;tVl.push(_.tt(window,"resize",QCM));tVl.push(_.tt(window,"scroll",VVQ));e&&(zoz=e)};
NEj=function(e){e=e.target.result;e.objectStoreNames.contains("swpushnotificationsstore")&&e.deleteObjectStore("swpushnotificationsstore");e.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
yrQ=function(){return SMO?Promise.resolve(SMO):new Promise(function(e,g){var c=self.indexedDB.open("swpushnotificationsdb");c.onerror=g;c.onsuccess=function(){var k=c.result;if(k.objectStoreNames.contains("swpushnotificationsstore"))SMO=k,e(SMO);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),yrQ()};
c.onupgradeneeded=NEj})};
tE=function(e){var g=new _.E2("Error accessing DB");return yrQ().then(function(c){return new Promise(function(k,I){try{var J=c.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(e);J.onsuccess=function(){var q=J.result;k(q?q.value:null)};
J.onerror=function(){g.params={key:e,source:"onerror"};I(g)}}catch(q){g.params={key:e,
thrownError:String(q)},I(g)}})},function(){return null})};
KtS=function(e,g){var c={};c.key=e;c.value=g;return yrQ().then(function(k){return new Promise(function(I,J){try{var q=k.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(c);q.onsuccess=function(){I()};
q.onerror=function(){J()}}catch(L){J(L)}})})};
MVQ=function(){var e=_.vg.getLocalStorage();e&&O_j(e,e.mechanism.__iterator__(!0))};
CcQ=function(e){_.r(function(g){if(g.nextAddress==1)return g.yield(e.delete("yt-appshell-assets"),2);_.Uh(g)})};
emO=function(e){return _.Qr((0,_.Xx1)(),e)};
c5q=function(){var e;_.r(function(g){return g.nextAddress==1?g.yield(B8.getInstance(),2):(e=g.yieldResult)?g.yield(gnq(e),0):g.jumpTo(0)})};
IO7=function(){var e;_.r(function(g){return g.nextAddress==1?g.yield(N0.getInstance(),2):(e=g.yieldResult)?g.yield(kuS(e),0):g.jumpTo(0)})};
J5D=function(e){CcQ(e);c5q();IO7()};
vnl=function(e){var g,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(_.Xu6(e),2);if(g=k.yieldResult){var I;a:{if(g.headers&&(I=g.headers.get("date"))&&(I=Date.parse(I),!isNaN(I))){I=Math.round((0,_.yr)()-I);break a}I=-1}c=I;if(c>-1)return k.return(c)}return k.return(-1)})};
whz=function(){var e=_.kp.caches,g=_.dH("IS_SHELL_LOAD"),c,k;_.r(function(I){if(I.nextAddress==1)return c=-1,g?I.yield(vnl(e),3):(k=oz(),c=Math.round((0,_.yr)()-k),I.jumpTo(2));I.nextAddress!=2&&(c=I.yieldResult);c>=0&&c<2147483648&&_.nA({appInstallDataAgeMs:c});_.Uh(I)})};
qVq=function(e){var g=_.zs(_.kp.location.href),c={};"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(k){var I=g.JSC$10342_queryData_.getValues(k);if(I==null?0:I.length)c[k]=I});
return _.i1(e,new Map(Object.entries(c)))};
L7o=function(e){return _.Fdz(_.sje(e&16777215))<.5};
r5S=function(e){e=e.match(/(.*)::.*::.*/);if(e!==null)return e[1]};
aO0=function(e){if(_.uoz()){var g=Object.keys(window.localStorage);g=_.w(g);for(var c=g.next();!c.done;c=g.next()){c=c.value;var k=r5S(c);k===void 0||e.includes(k)||self.localStorage.removeItem(c)}}};
nn0=function(){if(!_.uoz())return!1;var e=_.nf(),g=Object.keys(window.localStorage);g=_.w(g);for(var c=g.next();!c.done;c=g.next())if(c=r5S(c.value),c!==void 0&&c!==e)return!0;return!1};
Rmv=function(e){return KtS("NotificationsDisabled",e)};
EnX=function(){var e=_.C4("service_worker_scope");try{return navigator.serviceWorker.getRegistration(e)}catch(g){return Promise.reject(g)}};
W7z=function(){return Notification.permission!="granted"?Promise.resolve():EnX().then(function(e){return e?e.pushManager.getSubscription().then(function(g){if(g)return Promise.resolve();g={userVisibleOnly:!0,applicationServerKey:_.CC("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return e.pushManager.subscribe(g).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
bAx=function(e){return EnX().then(function(g){if(!g||!g.active)return Promise.reject(new _.E2("serviceworker.postMessage",e,g));try{return g.active.postMessage(e),Promise.resolve()}catch(c){return Promise.reject(c)}})};
hmO=function(){bAx({type:"notifications_register",data:_.uo("ID_TOKEN")})};
XhO=function(e){return!(!e||!e.pushManager)};
Guq=function(){return EnX().then(XhO).catch(function(){return!1})};
xcD=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Guq():Promise.resolve(!1)};
YVO=function(){var e={isWide:_.Lf.get("wide","0")==="1"},g=_.ch();if(g=g.getFlag(165)||g.getFlag(174))e.theme=_.Du(!0);if(_.eVK()){var c=_.xv()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";e.systemTheme=c}!g&&_.G("parent_tools_enable_app_settings")&&_.V0(window.location.href).theme!==void 0&&(e.theme=_.Du());if((g=Dc0)?!_.n0.equals(g,e):e)g={currentValue:e},$cS&&(g.timeSinceLastSnapshotSecs=Math.round(((0,_.yr)()-$cS)/1E3)),Dc0&&(g.previousValue=Dc0),_.Y2("appSettingsCaptured",g),Dc0=
e,$cS=(0,_.yr)()};
fOX=function(){if(!_.dH("LOGGED_IN"))return Promise.resolve(!1);var e=_.C4("service_worker_push_force_notification_prompt_tag");return e?tE("PromptTags").then(function(g){if(!g)return!0;var c=[];try{c=JSON.parse(g)}catch(k){return!1}return c&&c.indexOf(e)==-1}):Promise.resolve(!1)};
jtM=function(){var e=_.MN("service_worker_push_prompt_delay_microseconds");return e?tE("PromptTime").then(function(g){return Promise.resolve(Date.now()-e>(g||0))}):Promise.resolve(!0)};
iA7=function(){var e=_.MN("service_worker_push_logged_out_prompt_watches");return e==-1?Promise.resolve(!1):tE("WatchCount").then(function(g){return g>=e})};
PBO=function(){var e=_.di(document,"yt-push-prompt-modal-bg");e&&_.ev(e)};
mcj=function(){return _.MN("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):tE("PromptCount").then(function(e){e||(e=0);return Promise.resolve(e<_.MN("service_worker_push_prompt_cap"))})};
phg=function(e){return _.dH("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.dH("LOGGED_IN")&&(e===void 0?0:e)?fOX().then(function(g){if(g)return!0;g=[mcj(),jtM()];_.dH("LOGGED_IN")||g.push(iA7());return Promise.all(g).then(function(c){return c.every(function(k){return k})})}):Promise.resolve(!1)};
T$D=function(){tE("PromptCount").then(function(e){return KtS("PromptCount",e+1)}).then(function(){return KtS("PromptTime",Date.now())}).then(function(){var e=_.C4("service_worker_push_force_notification_prompt_tag");
if(e)return tE("PromptTags").then(function(g){var c=[];if(g)try{c=JSON.parse(g)}catch(k){return!1}c||(c=[]);c.push(e);return KtS("PromptTags",JSON.stringify(c))})})};
A5S=function(){lOl||PBO()};
stS=function(e){e.style.zIndex=2147483648;e.style.pointerEvents="auto";e.style.backgroundColor="rgba(0, 0, 0, 0.6)";e.style.width="100%";e.style.height="100vh";e.style.position="absolute";e.style.top="0";e.style.left="0";e.style.border="none"};
F7M=function(){var e=_.di(document,"yt-push-prompt-modal-bg");lOl=_.G("service_worker_push_prompt_modal_ignore_click");e?stS(e):(e=_.XW("div",{id:"yt-push-prompt-modal-bg"}),stS(e),document.body.appendChild(e),_.BLz(document,"click",A5S))};
ubo=function(){var e=arguments;_.G("service_worker_push_prompt_modal_enable")&&F7M();return Notification.requestPermission().then(function(g){PBO();var c=document.getElementById("ticker");c&&(c.className=c.classList.remove("show"));if(g=="granted")return W7z().then(function(){Rmv(!1);hmO();return Promise.resolve(!0)});
g=="denied"&&hmO();return Promise.resolve(!1)}).catch(function(){PBO();
return Promise.reject.apply(Promise,_.KY(e))})};
dcg=function(e){e=e===void 0?!1:e;var g=_.ig().client;if(g&&g.browserVersion){var c=g.browserVersion,k=g.browserName=="CHROME"&&_.Gv(c,"50.0.0")<0;g=g.browserName=="OPERA"&&_.Gv(c,"42.0.0")<0;if(k||g)return Promise.resolve()}return xcD().then(function(I){if(!I)return Promise.resolve();I=W7z().then(function(){return bAx({type:"notifications_check_registration",data:_.uo("ID_TOKEN")})});
return Notification.permission!="default"?I.catch(function(){}):I.then(function(){return phg(e)}).then(function(J){if(J)return T$D(),ubo().then(function(){})}).catch(function(){})})};
zmj=function(e){return XhO(e)?dcg():Promise.resolve()};
HAg=function(e){var g=e.installing||e.waiting;return e.active||!g?Promise.resolve(e):new Promise(function(c){var k=function(I){I=I.target;if(I.state==="activated"||I.state==="redundant")g.removeEventListener("statechange",k),c(e)};
g.addEventListener("statechange",k)})};
QtD=function(){var e=new _.YE6("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.OT(e,{mainAppWeb:_.Pg()});var g=_.Hc1;_.G("service_worker_forward_exp_params")&&(g=qVq(g));try{var c=_.wZA(g).catch(function(){_.M1(e,"FAILURE");return new Promise(function(){})});
_.G("service_worker_push_enabled")&&c.then(function(k){_.M1(e,"SUCCESS");return k}).then(HAg).then(zmj)}catch(k){if(_.M1(e,"FAILURE"),k.name!=="SecurityError")throw k;
}};
Uco=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&QtD()};
SG=function(e,g,c,k,I){var J={};g&&(J[g]=c);k?J.errorType=k:I&&(J.errorReason=I);_.Y2(e,J);_.fB()};
onj=function(e,g){var c={};g&&(c.serializedYpcFamilyCreateLoggingParams=g);_.Y2(e,c);_.fB()};
ZAQ=function(e,g){var c={};c.serializedYpcRefundFlowLoggingParams=g;e&&(c.eventType=e);_.Y2("ypcRefundFlowEvent",c);_.fB()};
V4M=function(e){e&&_.LMC("transactionFlowSucceeded",e)};
t4l=function(){SG("ypcRedeemFlowStarted")};
B$S=function(e){SG("ypcRedeemFlowFailed",void 0,void 0,void 0,e)};
N$7=function(e){e&&SG("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",e,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
yH=function(e){return function(g,c){var k=e||c.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(g,c,{get:function(){var I;return this.$?this.$[k]:(I=_.Mk(this))==null?void 0:I.querySelector("#"+k)},
enumerable:!0,configurable:!0})}};
SV0=function(e){if(e=_.jeW(e)){var g;(g=e.sources)!=null&&g[0]?(g=_.PTW(e),g=g<1?"VERTICAL":g>1?"HORIZONTAL":"SQUARE"):g=void 0;return g}};
y5g=function(e){return(e=_.jeW(e))?_.PTW(e):0};
K7M=function(e){var g,c,k,I,J,q,L;_.r(function(n){if(n.nextAddress==1)return n.yield(_.$8W(),2);if(n.nextAddress!=3){if(!n.yieldResult)return n.return(!1);g=[];return n.yield(_.Qe.keys(),3)}c=n.yieldResult;k=_.w(c);for(I=k.next();!I.done;I=k.next())J=I.value,q=_.x86(J),L=q.datasyncId,!L||e.includes(L)||g.push(_.Qe.delete(J));return n.return(Promise.all(g).then(function(R){return R.some(function(W){return W})}))})};
OAv=function(){var e,g,c,k,I,J,q;return _.r(function(L){if(L.nextAddress==1)return L.yield(_.$8W(),2);if(L.nextAddress!=3){if(!L.yieldResult)return L.return(!1);e=_.nf("cache contains other");return L.yield(_.Qe.keys(),3)}g=L.yieldResult;c=_.w(g);for(k=c.next();!k.done;k=c.next())if(I=k.value,J=_.x86(I),(q=J.datasyncId)&&q!==e)return L.return(!0);return L.return(!1)})};
M4O=function(e,g){return _.Nc(e.entities,"timedMarkersListSyncEntity",g)};
CBO=function(e,g){return _.Nc(e.entities,"liveReactionsDataEntity",g)};
eBg=function(e,g){e=_.Nc(e.entities,"booleanEntity",g);return!(!e||!e.value)};
gdg=function(e,g){var c=_.EM();c&&e&&_.Yn(c,_.Jb(e),g)};
cwq=function(e){return e.watch.isWatchActive};
ktz=function(e){return e.watch.isLearningJourneyActive};
IYo=function(e){return e.watch.watchWindowSize};
JwM=function(e){return!_.f_W(e)};
KR=function(e){return e.watch.watchScrollTop};
vdD=function(e){return e.watch.isLiveChatCollapsed};
wLz=function(e,g){return _.Nc(e.entities,"flowStateEntity",g)};
qoX=function(){var e=_.Ss().resolve(_.NN(_.oOs));return e?e.getCurrentTime():0};
Lpv=function(e,g){e={videoId:e};g&&(e.playlistId=g);return e};
rwx=function(){var e,g,c,k,I,J,q,L,n,R,W,b,h,X;return _.r(function(D){switch(D.nextAddress){case 1:e={},g=_.i9W(),c=_.w(Object.entries(g)),k=c.next();case 4:if(k.done){D.jumpTo(3);break}I=k.value;J=_.w(I);q=J.next().value;L=J.next().value;n=q;R=L;if(!R){D.jumpTo(5);break}return D.yield(R(),8);case 8:e[n]=D.yieldResult;case 5:k=c.next();D.jumpTo(4);break;case 2:W=_.w(),b=W.next();case 9:if(b.done){D.jumpTo(3);break}h=b.value;X=g[h];if(!X){D.jumpTo(10);break}return D.yield(X(),13);case 13:e[h]=D.yieldResult;
case 10:b=W.next();D.jumpTo(9);break;case 3:return D.return(e)}})};
aYS=function(){var e;_.r(function(g){if(g.nextAddress==1)return g.yield(rwx(),2);e=g.yieldResult;return g.yield(navigator.clipboard.writeText(JSON.stringify(e,null,2)),0)})};
ndl=function(e,g){if(e&&g){var c=_.MH();c().set(e,g);_.FTC(c())}};
RBD=function(e,g){if(e&&g){var c=_.MH();c().set(e,g);_.FTC(c())}};
Edo=function(e,g){return _.Nc(e.entities,"superThanksSelectedTierEntity",g)};
WpS=function(e,g){return _.Nc(e.entities,"contextNoteUserRatingEntityPayload",g)};
bUz=function(){_.G("web_watch_log_theater_mode")&&_.Klq("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
hBO=function(e,g,c){if(!e.includes("START_TIME_PLACEHOLDER")||!e.includes("END_TIME_PLACEHOLDER"))return e;var k=new Date(0),I=new Date(0);k.setUTCMilliseconds(g);I.setUTCMilliseconds(c);return e.replace("START_TIME_PLACEHOLDER",_.fU(k,7)).replace("END_TIME_PLACEHOLDER",_.fU(I,7))};
XLO=function(e,g,c){var k=c.minimumRowsOfVideosBetweenSections===void 0?1:c.minimumRowsOfVideosBetweenSections;return e<(c.minimumRowsOfVideosAtStart===void 0?2:c.minimumRowsOfVideosAtStart)||g!==null&&e-g<=k?!1:!0};
GtM=function(e,g){var c=0,k=0;e=_.w(e);for(var I=e.next();!I.done;I=e.next()){var J=I.value;if(J.richItemRenderer)J.richItemRenderer.rowIndex=k,J.richItemRenderer.colIndex=c++,c===g&&(c=0,k++);else if(J.richGroupRenderer&&J.richGroupRenderer.numColumns!==void 0)J.richGroupRenderer.rowIndex=k,J.richGroupRenderer.colIndex=c,c+=J.richGroupRenderer.numColumns,c===g&&(c=0,k++);else if(J.richSectionRenderer){var q=I=void 0;if(J=_.x((I=J)==null?void 0:(q=I.richSectionRenderer)==null?void 0:q.content,_.ejv))J.rowIndex=
k++}}};
xWM=function(e,g){var c=g.contentElement;g=g.rendererToTagNameMap;if(c&&g&&g.size!==0){for(var k=new Map,I=_.w(c.children),J=I.next();!J.done;J=I.next()){J=J.value;var q=J.tagName.toLowerCase(),L=k.get(q);L||(L=[],k.set(q,L));L.push(J)}if(k.size!==0)for(I=Math.min(e.length,c.children.length),J=new Map,q=0;q<I;q++){L=Object.keys(e[q])[0];L=g.get(L);if(!L)break;var n=J.get(L);n===void 0&&(n=0,J.set(L,n));var R=k.get(L);if(!R||n>=R.length)break;J.set(L,n+1);L=R[n];n=c.children[q];n!==L&&(_.l3=!0,_.Ab.set(L,
!0),c.insertBefore(L,n),_.Ab.delete(L),_.l3=!1)}}};
DWD=function(e,g,c,k,I,J,q){k=k===void 0?{}:k;if(!e||!e.length)return{orderedContent:[]};e=e.slice();var L=[],n=[];I=null;for(var R=0,W=function(S){n.sort(function(y,O){return O.skippedOnRow-y.skippedOnRow});
for(var V,Q=(V=n.shift())==null?void 0:V.content;Q;)!Q.richSectionRenderer&&S||L.push(Q),V=void 0,Q=(V=n.shift())==null?void 0:V.content},b=void 0,h=void 0,X=new Set;e.length>0||n.length>0;){for(var D=[],f=g;f>0;){var l=void 0,A=void 0,d=(A=n[0]&&n[0].skippedOnRow<R?(l=n.shift())==null?void 0:l.content:void 0)!=null?A:e.shift();
if(!d)break;if(d.richItemRenderer)l=d.richItemRenderer.targetId,A=void 0,l&&((A=q)==null?0:A.has(l))&&(A=q.get(l),!b||A&&A.timestamp>b.timestamp)&&(b=A,h&&X.add(h),h=l),D.push(d),f--;else if(d.richGroupRenderer&&d.richGroupRenderer.numColumns!==void 0)d.richGroupRenderer.numColumns<=f?(D.push(d),f-=d.richGroupRenderer.numColumns):f===g&&d.richGroupRenderer.numColumns>g?(D.push({richGroupRenderer:Object.assign({},d.richGroupRenderer,{numColumns:g})}),f=0):n.push({content:d,skippedOnRow:R});else if(d.richSectionRenderer)if(XLO(R,
I,k)&&f===g){L.push(d);I=R;R++;continue}else n.push({content:d,skippedOnRow:R});else if(d.continuationItemRenderer){W(!0);L.push(d);f=0;break}if(f===0)L.push.apply(L,_.KY(D));else if(!c&&e.length===0){W(!1);L.push.apply(L,_.KY(D));f=0;break}}R++;b&&(L.push(b.content),R++);h=b=void 0}GtM(L,g);J&&xWM(L,J);return{orderedContent:L,pinnedContentNotShownTargetIds:X}};
$W0=function(e){return e.shorts.isSmallScreenSqueezeback};
Yox=function(e){return e.shorts.isPlaybackStarted};
jqq=function(){if(_.G("kevlar_home_skeleton")&&!fYQ){var e=document.querySelector("#home-page-skeleton");e&&(_.Wh("hgcr"),_.ev(e),fYQ=!0)}};
mWv=function(){if(_.tD8()){var e=_.uo("PLAYER_VARS",{});if(_.n0.get(e,"privembed",!1)!="1"&&!C0S(e)){var g=function(){iUg=!0;"google_ad_status"in window?_.Fq("DCLKSTAT",1):_.Fq("DCLKSTAT",2)};
try{_.D5(_.HYS,g)}catch(c){}Pmz.push(_.ft.addLowPriorityJob(function(){if(!(iUg||"google_ad_status"in window)){try{_.dde(_.HYS.toString(),g)}catch(c){}iUg=!0;_.Fq("DCLKSTAT",3)}},5E3))}}};
pLv=function(e){return!!e.getOptions("captions")};
Tqq=function(e){return(e=e.getOption("captions","track"))?!!e.displayName:!1};
lYQ=function(e){return H8(e,function(g){return g.languageCode==="en"})};
Awz=function(e){var g=OW;if(Tqq(e))e.setOption("captions","stickyLoading",{}),e.setOption("captions","track",{});else{var c=H8(_.KjU(e),function(k){return k.displayName===g});
e.setOption("captions","track",c)}};
sqz=function(e,g){return{popup:{searchSuggestionReportDialog:{searchQuery:e,title:_.C_("SBOX_INAPPROPRIATE_TITLE"),suggestions:g,categoryLabel:_.C_("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.C_("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.C_("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.C_("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.C_("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.C_("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.C_("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.C_("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.C_("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.C_("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
FpQ=function(e){var g=_.ch();if(g.getFlag(202))g=g.getFlag(201);else{var c;g=(e==null?void 0:(c=e.config)==null?void 0:c.settingOnByDefault)!==void 0?e.config.settingOnByDefault:!_.Im("web_shorts_cinematics_disabled_by_default")}return g};
uiv=function(e){var g=_.ch();_.kn(0,201,e);_.kn(0,202,!0);g.save()};
dWl=function(e){var g,c,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S;return _.r(function(V){switch(V.nextAddress){case 1:return V.yield(_.KA(),2);case 2:return(g=V.yieldResult)?V.yield(_.HGC(g),3):V.return();case 3:c=V.yieldResult;if(!c)return V.return();I=((k=c.offlineVideos)==null?void 0:k.length)||0;q=((J=c.offlinePlaylists)==null?void 0:J.length)||0;if(I===0&&q===0)return V.return();L=0;if(c.offlineVideos)for(n=_.w(c.offlineVideos),R=n.next();!R.done;R=n.next())W=R.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
W.videoState&&(L+=1);e.offline_videos_count=I.toString();_.G("kevlar_log_offline_current_network_type_ks")||(e.offline_current_network_type=(b=_.bUK())!=null?b:"CONN_INVALID");_.G("kevlar_log_updated_time_for_smart_downloads")&&(h=_.Tt().getState().entities,X=_.aq(h),D=hoD(h),e.offline_smart_downloads_last_sync_time_ms=X.toString(),e.offline_smart_downloads_next_sync_time_ms=D.toString());e.offline_videos_playable=L.toString();e.offline_playlists_count=q.toString();c.offlineVideos&&(f=c.offlineVideos.reduce(function(Q,
y){y.downloadedBytes&&(Q+=Number(y.downloadedBytes));return Q},0).toString())&&(e.offline_used_disk_space_bytes=f);
if(!((l=navigator)==null?0:(A=l.storage)==null?0:A.estimate)){V.jumpTo(4);break}return V.yield(navigator.storage.estimate(),5);case 5:d=V.yieldResult,e.offline_free_disk_space_bytes=(((S=d)==null?void 0:S.quota)||0).toString();case 4:e.offline_client_state=JSON.stringify(c),_.Uh(V)}})};
zBg=function(e){e=e.match(/(.*)::.*::.*/);if(e!==null)return e[1]};
HUo=function(e){if(_.weK()){var g=Object.keys(window.sessionStorage);g=_.w(g);for(var c=g.next();!c.done;c=g.next()){c=c.value;var k=zBg(c);k===void 0||e.includes(k)||self.sessionStorage.removeItem(c)}}};
Qql=function(){if(!_.weK())return!1;var e=_.nf(),g=Object.keys(window.sessionStorage);g=_.w(g);for(var c=g.next();!c.done;c=g.next())if(c=zBg(c.value),c!==void 0&&c!==e)return!0;return!1};
UWQ=function(e){if(!e)return 0;var g=e.getPresentingPlayerType(),c=e.getVideoData();return c&&c.isLive?(e=e.getProgressState(g),e.seekableEnd-e.seekableStart):e.getDuration(g)};
M0=function(e,g){_.rS(g,e,function(){return odq[g]},function(c){odq[g]=c;
if(!_.G("mweb_player_ve_show_ks")){var k=_.EM(0);k&&c&&_.j4(k,c)}})};
CR=function(e){(e=odq[e])&&_.yW(_.gL(),e)};
ZUj=function(e,g){for(var c=_.w(Object.keys(e)),k=c.next();!k.done;k=c.next())if(k=k.value,e[k]!==g[k])return!1;return!0};
VoO=function(){return document.getElementById("player-control-overlay")};
toq=function(e){e!==-1&&!_.G("player_controls_log_creation_killswitch")&&VoO()&&(_.Wh("pcu_cs",e),_.Wh("pcu_ce"))};
Bqj=function(e){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:e}}]}}}};
Nqx=function(e,g,c,k){var I=_.G("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;g=Object.assign({},{text:g,hasGradientBackground:c},k&&{backgroundStyle:k},I&&{itemTargetId:I});I=_.G("web_enable_chat_autoscroll_to_user_turn")&&I?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:I,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:g}],
insertByPositionInSection:{sectionTargetId:e,position:"INSERTION_POSITION_LAST"}}}]},I?{scrollConfig:I}:{})}}};
SoO=function(e,g){return _.Nc(e.entities,"booleanEntity",g)};
ywO=function(){return function(e){_.As(_.cY("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:e}))}};
Kpo=function(e,g){g.stack&&(e.stack+="\n"+g.stack);return e};
OUQ=function(){this.isInputValid_=!0;this.JSC$19609_streamPos_=0;this.leftoverInput_=""};
Mol=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19612_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
c3Q=function(e){var g=CmM(e,"Content-Type");if(!g)return null;g=g.toLowerCase();if(g.startsWith("application/json"))return g.startsWith("application/json+protobuf")?new e9g:new _.qR;if(g.startsWith("application/x-protobuf")){e=CmM(e,"Content-Transfer-Encoding");if(!e)return new Mol;if(e.toLowerCase()=="base64")return new gv7}return null};
auz=function(e,g,c,k){var I=new kbg(function(L,n){return Iux.has(n)?L.sentinel==="gal"&&L.event!==void 0:!1},function(L){L.event?(L=J3o(L.event),L=!L||vvo(k,L)?!0:_.kV(e.lastEvent,e3,2,gW)?!_.kV(L,cK,1,gW)&&!_.kV(L,e3,2,gW):!_.kV(L,cK,1,gW)&&!_.kV(L,e3,3,gW)):L=!0;
return L});
c=_.i1(e.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",wgl(c)]]));if(e.nestedOrigins!==void 0)for(var J=_.w(e.nestedOrigins),q=J.next();!q.done;q=J.next())c=_.i1(c,new Map([["origin",q.value]]));return qYO(I,c,g).then(function(L){L=Liz(L.event);if(_.kV(L,cK,1,gW)){var n,R=(n=_.hP(L,cK,1,gW))==null?void 0:_.EU(n,2);R&&k.JSC$19664_logErrorEvent(r3q(R));n=_.hP(L,cK,1,gW);_.EU(n,2)===4?(L=_.hP(L,cK,1,gW),L={statusCode:11,statusMessage:_.Rs(L,
3)}):(L=_.hP(L,cK,1,gW),L={statusCode:12,statusMessage:_.Rs(L,3)});return L}_.kV(L,e3,3,gW)?(L=_.hP(L,e3,3,gW),L={statusCode:1,consentLanguageKeys:_.Rs(L,2)}):L={statusCode:1};return L}).catch(function(L){return L.errorCode!==void 0?{statusCode:L.errorCode,
statusMessage:L.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
Wiq=function(e){var g={};if(e===void 0||e===null)return g;e.getToken()!==void 0&&nvX(e.getToken())&&nvX(e.getToken()).length>0&&(g.scopes=new Set(nvX(e.getToken())));e.getToken()!==void 0&&R9g(e.getToken())&&R9g(e.getToken()).length>0&&(g.capabilities=new Set(R9g(e.getToken())));_.Rs(e,3)!==void 0&&(g.consistencyKey=_.Rs(e,3));e.getName()!==void 0&&e.getName()!==""&&(g.linkName=e.getName());_.cW(e,Evx,4)&&(e=_.Ml(e,Evx,4),e=Object.assign({},_.Rs(e,1)&&{userId:_.Rs(e,1)},_.Rs(e,2)&&{displayName:_.Rs(e,
2)},_.Rs(e,3)&&{email:_.Rs(e,3)},_.Rs(e,5)&&{username:_.Rs(e,5)},_.Rs(e,4)&&{profilePicture:_.Rs(e,4)}),g.profile=e);return g};
bsg=function(e,g){var c=e.flowParams,k;return{serviceId:c.serviceId,sessionId:c.sessionId,currentFlow:e.currentFlow,googleScopesString:g,linkingSessionSerialized:e.session.serialize(),consentLanguageKeys:c.consentLanguageKeys,callerState:e.callerState,dynamicUrlParameters:c.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(k=c.partnerConfigMinReadTimestamp)==null?void 0:k.serialize()}};
Dkq=function(e){var g=e.googleScopes!==void 0?Array.from(e.googleScopes).join(","):"";h9X(bsg(e,g),e.config.localStorage);g=XgQ(e);return g===null?Promise.resolve(Gbo):g.start().then(function(c){var k,I=(k=c.link)==null?void 0:k.consistencyKey;return c.statusCode===1&&e.googleScopes!==void 0&&e.googleScopes.size>0&&I!==void 0?(k=e.flowParams,xkg(k.serviceId,k.sessionId,e.googleScopes,I,k.galService,e.config,c)):c})};
YYj=function(e){var g=XgQ(e);return g===null?Promise.resolve($kD({statusCode:7,statusMessage:"Failed to create flow object"},e.callerState)):g.complete().then(function(c){var k,I=(k=c.link)==null?void 0:k.consistencyKey;return c.statusCode===1&&e.googleScopes!==void 0&&e.googleScopes.size>0&&I!==void 0?(k=e.flowParams,xkg(k.serviceId,k.sessionId,e.googleScopes,I,k.galService,e.config,c)):$kD(c,e.callerState)},function(c){return $kD({statusCode:12,
statusMessage:"Failed to complete the flow: "+c.message},e.callerState)})};
xkg=function(e,g,c,k,I,J,q){return fuX(I,{serviceId:e,sessionId:g,googleScopes:c,consistencyKey:k}).then(function(){return q},function(L){return I.deleteLink({serviceId:e,
sessionId:g,accountLinkingEntryPoint:J.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+L.message}},function(n){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+n.message}})})};
XgQ=function(e){switch(e.currentFlow){case 1:var g=e.flowParams;e=_.Ml(e.session,j1o,1);return isq.createOAuthFlow(g,e);case 2:case 3:return g=e.flowParams,e=_.Ml(e.session,PgS,6),mkQ.createStreamlinedFlow(g,e);default:return null}};
TpD=function(e,g){e===2&&(e=3);var c=0;pgx.indexOf(e)!==-1&&(c=pgx.indexOf(e)+1);for(e=c;e<pgx.length;e++)if(g.has(pgx[e]))return pgx[e]};
s1j=function(e){var g=e.serviceId;var c=e.sessionId;var k=e.config;var I=e.galService;var J=e.capabilities;var q=e.scopes;var L=e.loginHint;var n=e.callerState;var R=e.consentLanguageKeys;var W=e.linkName;var b=e.dynamicUrlParameters;var h=e.partnerConfigMinReadTimestamp;e=k.dataUsageNoticeConfig?k.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return I.startLinkingSession({serviceId:g,sessionId:c,capabilities:J,scopes:q,loginHint:L,callerState:n,supportedFlows:lu0(k.supportedFlows),completionUrl:k.completionUrl,
accountLinkingEntryPoint:k.accountLinkingEntryPoint,consentLanguageKeys:R,dataUsageNoticeConfig:e,linkName:W,dynamicUrlParameters:b,partnerConfigMinReadTimestamp:h}).then(function(X){return new A3v(g,c,k,I,X,void 0,n,R,b,h)})};
Q17=function(e,g,c){var k=(new Fiv(g.localStorage)).getSession(e);if(k===null)return Promise.resolve({statusCode:2});uZD(e,g.localStorage);var I=dkg(k.linkingSessionSerialized),J=k.googleScopesString!==""&&k.googleScopesString!==void 0?new Set(k.googleScopesString.split(",")):void 0,q=k.partnerConfigMinReadTimestampSerialized?z9Q(k.partnerConfigMinReadTimestampSerialized):void 0;return HsQ(new A3v(e,k.sessionId,g,c,I,J,k.callerState,k.consentLanguageKeys,k.dynamicUrlParameters,q),k.currentFlow,k.consentLanguageKeys)};
h9X=function(e,g){g=new Fiv(g);g.storage!==null&&g.storage.set("SAVED_SESSION",e)};
uZD=function(e,g){g=new Fiv(g);if(g.storage!==null){var c=g.storage.get("SAVED_SESSION");c!==void 0&&c.serviceId===e&&g.storage.remove("SAVED_SESSION")}};
lu0=function(e){var g=new Set;e=_.w(e);for(var c=e.next();!c.done;c=e.next())c=c.value,c!==1&&Ukj.has(c)&&g.add(Ukj.get(c));return g};
$kD=function(e,g){g!==void 0&&(e.callerState=g);return e};
ovg=function(e){switch(e){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
thl=function(e){return new Zsj(e,new Vhz(e))};
SY7=function(e,g){g=g===void 0?!1:g;var c=document.createElement("div");e&&(c.style.transform="scaleX(-1)");c.style.backgroundColor=g?"rgba(138,180,248,.24)":"#e8f0fe";c.style.height="4px";c.style.overflow="hidden";c.style.position="absolute";c.style.top="0";c.style.width="100%";c.style.zIndex="1500";c.setAttribute("aria-label","Loading");c.setAttribute("aria-live","polite");e=document.createElement("style");e.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  }";
c.appendChild(e);e=Bpg();e.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";e.style.left="-145.166611%";var k=Npv(g);k.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";e.appendChild(k);c.appendChild(e);e=Bpg();e.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";e.style.left="-54.888891%";g=Npv(g);g.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
e.appendChild(g);c.appendChild(e);return c};
Bpg=function(){var e=document.createElement("div");e.style.height="100%";e.style.position="absolute";e.style.transformOrigin="top left";e.style.width="100%";return e};
Npv=function(e){var g=document.createElement("span");g.style.borderTop=e?"4px solid #669df6":"4px solid #4285f4";g.style.display="inline-block";g.style.position="absolute";g.style.width="100%";return g};
y3j=function(e){return e==null?void 0:_.d_Y(e).valueOf()};
Cgg=function(e){var g=document.body,c=!1,k=function(){c||(c=!0,Kiv(I,J),setTimeout(function(){g.removeChild(J);g.removeChild(I)},150))},I=Oso(e,getComputedStyle(g).direction==="rtl",k),J=Mhx(k);
Kiv(I,J);g.appendChild(J);g.appendChild(I);window.requestAnimationFrame(function(){J.style.opacity="1";I.style.opacity="1";I.style.transform="translate(-50%, -50%) scale(1)";I.children[0].focus()})};
Oso=function(e,g,c){var k=document.createElement("div");k.style.position="fixed";k.style.alignItems="center";k.style.backgroundColor=e?"rgb(32, 33, 36)":"white";k.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";k.style.display="flex";k.style.flexDirection="column";k.style.justifyContent="center";k.style.left="50%";k.style.top="50%";k.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";k.style.zIndex="2002";document.body.clientWidth>=
660?(k.style.borderRadius="8px",k.style.minHeight="220px",k.style.maxHeight="90%",k.style.maxWidth="90%",k.style.minWidth="540px"):(k.style.height="100%",k.style.width="100%");k.setAttribute("aria-label","Error");k.setAttribute("aria-modal","true");k.setAttribute("role","alertdialog");k.addEventListener("keydown",function(J){J.key==="Escape"&&c()});
g=epq(e,g,c);k.appendChild(g_Q(g));k.appendChild(g);var I=document.createElement("img");I.src=e?"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";I.style.height="72px";I.style.width="72px";I.style.color="#9aa0a6";I.setAttribute("alt","");k.appendChild(I);I=document.createElement("h1");I.textContent="Something went wrong.  Try again.";
I.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";I.style.lineHeight="24px";I.style.fontSize="16px";I.style.textAlign="center";I.style.letterSpacing="0.1px";I.style.color=e?"rgb(232,234,237)":"#3c4043";k.appendChild(I);k.appendChild(g_Q(g));return k};
epq=function(e,g,c){var k=document.createElement("button");k.style.backgroundColor="transparent";k.style.border="none";k.style.borderRadius="50%";k.style.cursor="pointer";k.style.outline="none";k.style.padding="12px";k.setAttribute("aria-label","Close dialog");k.style.position="absolute";k.style.top="0";g?k.style.right="0":k.style.left="0";k.addEventListener("focus",function(){k.style.backgroundColor=e?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
k.addEventListener("blur",function(){k.style.backgroundColor="transparent"});
k.addEventListener("mouseenter",function(){k.style.backgroundColor=e?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
k.addEventListener("mouseleave",function(){k.style.backgroundColor="transparent"});
k.addEventListener("click",c);k.addEventListener("keydown",function(I){I.key!=="Enter"&&I.key!=="Space"||c()});
g=document.createElement("img");g.src=e?"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";g.style.display="block";g.style.height="24px";g.style.width="24px";g.setAttribute("alt","");k.appendChild(g);return k};
g_Q=function(e){var g=document.createElement("div");g.setAttribute("tabindex","0");g.setAttribute("aria-hidden","true");g.addEventListener("focus",function(){return void e.focus()});
return g};
Mhx=function(e){var g=document.createElement("div");g.style.backgroundColor="rgba(32,33,36,0.6)";g.style.bottom="0";g.style.left="0";g.style.position="fixed";g.style.right="0";g.style.top="0";g.style.transition=" opacity 150 ms linear";g.style.zIndex="2001";g.addEventListener("click",e);return g};
Kiv=function(e,g){g.style.opacity="0";e.style.opacity="0";e.style.transform="translate(-50%, -50%) scale(0.8)"};
csj=function(e,g){e.sandbox&&e.sandbox.add&&(e.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),e.sandbox.add("allow-downloads"));e.src=g};
kc=function(e){this.JSC$19852_value_=void 0;this.childNodes_={};if(e){var g=_.Xyu(e);e=_.dG(e);for(var c=0;c<g.length;c++)this.set(g[c],e[c])}};
IQ=function(e){k5q.call(this,e)};
qzQ=function(e,g){g=g===void 0?!1:g;this.parsedImageUrl_=null;e instanceof IF7||(Jsv==void 0&&(Jsv=new v_0),e=Jsv.parse(e.toString(),g));e=this.parsedImageUrl_=e;e.JSC$19877_parsedOptions_==void 0&&((g=e.getOptions())||(g=""),e.JSC$19877_parsedOptions_=(new woj).parse(g));k5q.call(this,e.JSC$19877_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;e=this.parsedImageUrl_;g=e.uri_.JSC$10342_port_;this.JSC$19879_domain_=e.uri_.JSC$10342_domain_+(g?":"+g:"");this.JSC$19879_query_=
this.parsedImageUrl_.uri_.JSC$10342_queryData_.toString()};
JQ=function(e){_.vR.call(this,"upload");this.opts.query=e};
Lkx=function(e){this.mode=4;this.data=e;this.parsedData=[];e=0;for(var g=this.data.length;e<g;e++){var c=[],k=this.data.charCodeAt(e);k>65536?(c[0]=240|(k&1835008)>>>18,c[1]=128|(k&258048)>>>12,c[2]=128|(k&4032)>>>6,c[3]=128|k&63):k>2048?(c[0]=224|(k&61440)>>>12,c[1]=128|(k&4032)>>>6,c[2]=128|k&63):k>128?(c[0]=192|(k&1984)>>>6,c[1]=128|k&63):c[0]=k;this.parsedData.push(c)}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))};
rs7=function(e){this.typeNumber=0;this.errorCorrectLevel=e===void 0?2:e;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
vK=function(e,g){if(e.length==void 0)throw Error("Lk`"+e.length+"`"+g);for(var c=0;c<e.length&&e[c]==0;)c++;this.num=Array(e.length-c+g);for(g=0;g<e.length-c;g++)this.num[g]=e[g+c]};
aFD=function(e,g){this.totalCount=e;this.dataCount=g};
n_v=function(){this.buffer=[];this.length=0};
Rpz=function(){var e=!1;if(_.ftz()){e=_.xp();var g="";_.PWt()?(g=/Windows (?:NT|Phone) ([0-9.]+)/,g=(e=g.exec(e))?e[1]:"0.0"):_.lW()?(g=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,g=(e=g.exec(e))&&e[1].replace(/_/g,".")):_.iCV()?(g=/Mac OS X ([0-9_.]+)/,g=(e=g.exec(e))?e[1].replace(/_/g,"."):"10"):_.EC(_.xp(),"KaiOS")?(g=/(?:KaiOS)\/(\S+)/i,g=(e=g.exec(e))&&e[1]):_.ftz()?(g=/Android\s+([^\);]+)(\)|;)/,g=(e=g.exec(e))&&e[1]):_.mUC()&&(g=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,g=(e=g.exec(e))&&e[1]);e=
g||""}return e};
G5Q=function(e,g){this.JSC$19908__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(g)for(var c in g)this.JSC$19908__htOption[c]=g[c];this.JSC$19908__htOption.useSVG&&(E_z=Wkg);this.JSC$19908__android=Rpz();this.JSC$19908__el=e;this._oQRCode=null;this._oDrawing=new E_z(this.JSC$19908__el,this.JSC$19908__htOption);this.JSC$19908__htOption.text&&(e=this.JSC$19908__htOption.text,this._oQRCode=new rs7(this.JSC$19908__htOption.correctLevel),bOx(this._oQRCode,
e),g=this._oQRCode,hpO(g,!1,XoD(g)),this.JSC$19908__el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage())};
xYD=function(e,g,c,k,I){e.save();var J=new Path2D;J.roundRect(g,c,k*7,k*7,k*2);J.roundRect(g+k,c+k,k*5,k*5,k*1.3);J.roundRect(g+2*k,c+2*k,k*3,k*3,k);e.clip(J,"evenodd");e.fillStyle=I;e.fillRect(0,0,e.canvas.width,e.canvas.height);e.restore()};
$Yv=function(){return DYj=DYj||new _.jv};
YzM=function(e){_.Bt.call(this,"serverreachability",e)};
fFM=function(e){var g=$Yv();g.dispatchEvent(new YzM(g,e))};
jIv=function(e,g){_.Bt.call(this,"statevent",e);this.stat=g};
wW=function(e){var g=$Yv();g.dispatchEvent(new jIv(g,e))};
iO0=function(e,g,c,k){_.Bt.call(this,"timingevent",e);this.size=g;this.rtt=c;this.retries=k};
PFQ=function(e,g,c){var k=$Yv();k.dispatchEvent(new iO0(k,e,g,c))};
mY7=function(e,g){if(typeof e!=="function")throw Error("Ok");return _.kp.setTimeout(function(){e()},g)};
qh=function(){this.redactEnabled_=!0};
LJ=function(e,g,c,k,I){this.JSC$19930_channel_=e;this.JSC$19930_channelDebug_=g;this.sid_=c;this.JSC$19930_rid_=k;this.JSC$19930_retryId_=I||1;this.JSC$19930_eventHandler_=new _.wD(this);this.timeout_=45E3;this.JSC$19930_extraHeaders_=null;this.JSC$19930_successful_=!1;this.JSC$19930_postData_=this.JSC$19930_requestUri_=this.JSC$19930_baseUri_=this.JSC$19930_type_=this.JSC$19930_requestStartTime_=this.JSC$19930_watchDogTimeoutTime_=this.JSC$19930_watchDogTimerId_=null;this.JSC$19930_pendingMessages_=
[];this.JSC$19930_xmlHttp_=null;this.JSC$19930_xmlHttpChunkStart_=0;this.JSC$19930_lastError_=this.JSC$19930_verb_=null;this.JSC$19930_lastStatusCode_=-1;this.JSC$19930_cancelled_=!1;this.JSC$19930_readyStateChangeThrottleMs_=0;this.JSC$19930_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new poM};
Tk7=function(e,g){var c=new qh;c.debug("TestLoadImage: loading "+e);if(_.kp.Image){var k=new Image;k.onload=_.g$(rW,c,"TestLoadImage: loaded",!0,g,k);k.onerror=_.g$(rW,c,"TestLoadImage: error",!1,g,k);k.onabort=_.g$(rW,c,"TestLoadImage: abort",!1,g,k);k.ontimeout=_.g$(rW,c,"TestLoadImage: timeout",!1,g,k);_.kp.setTimeout(function(){if(k.ontimeout)k.ontimeout()},1E4);
k.src=e}else g(!1)};
lFv=function(e,g){var c=new qh,k=new AbortController,I=setTimeout(function(){k.abort();rW(c,"TestPingServer: timeout",!1,g)},1E4);
fetch(e,{signal:k.signal}).then(function(J){clearTimeout(I);J.ok?rW(c,"TestPingServer: ok",!0,g):rW(c,"TestPingServer: server error",!1,g)}).catch(function(){clearTimeout(I);
rW(c,"TestPingServer: error",!1,g)})};
rW=function(e,g,c,k,I){try{e.debug(g),I&&(I.onload=null,I.onerror=null,I.onabort=null,I.ontimeout=null),k(c)}catch(J){}};
sIl=function(){this.JSC$19944_parser_=new Asz};
Fkv=function(e,g,c){return c&&c.internalChannelParams?c.internalChannelParams[e]||g:g};
aQ=function(e){this.serverVersion_=0;this.JSC$19949_outgoingMaps_=[];this.JSC$19949_channelDebug_=new qh;this.JSC$19949_hostPrefix_=this.JSC$19949_backChannelUri_=this.JSC$19949_forwardChannelUri_=this.JSC$19949_path_=this.JSC$19949_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19949_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19949_extraHeaders_=null;this.JSC$19949_nextMapId_=this.JSC$19949_nextRid_=0;this.JSC$19949_failFast_=Fkv("failFast",
!1,e);this.enableStreaming_=this.JSC$19949_deadBackChannelTimerId_=this.JSC$19949_backChannelTimerId_=this.JSC$19949_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19949_lastPostResponseArrayId_=this.JSC$19949_lastArrayId_=-1;this.JSC$19949_backChannelAttemptId_=this.JSC$19949_backChannelRetryCount_=this.JSC$19949_forwardChannelRetryCount_=0;this.JSC$19949_baseRetryDelayMs_=Fkv("baseRetryDelayMs",5E3,e);this.JSC$19949_retryDelaySeedMs_=
Fkv("retryDelaySeedMs",1E4,e);this.JSC$19949_forwardChannelMaxRetries_=Fkv("forwardChannelMaxRetries",2,e);this.JSC$19949_forwardChannelRequestTimeoutMs_=Fkv("forwardChannelRequestTimeoutMs",2E4,e);this.JSC$19949_xmlHttpFactory_=e&&e.xmlHttpFactory||void 0;this.networkTestUrl_=e&&e.networkTestUrl||void 0;this.usesFetchStreams_=e&&e.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19949_supportsCrossDomainXhrs_=e&&e.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=
new uAg(e&&e.concurrentRequestLimit);this.maxMapsPerRequest_=Math.min(e&&e.maxMessagesPerRequest||1E3,1E3);this.wireCodec_=new sIl;this.fastHandshake_=e&&e.fastHandshake||!1;this.encodeInitMessageHeaders_=e&&e.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19949_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=e&&e.blockingHandshake||!1;e&&e.disableRedact&&
this.JSC$19949_channelDebug_.disableRedact();e&&e.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&e&&e.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;e&&e.longPollingTimeout&&e.longPollingTimeout>0&&(this.longPollingTimeout_=e.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
dYl=function(){};
nJ=function(e,g){if(e instanceof nJ)this.array_=e.array_;else{var c;if(c=_.Bz(e))a:{for(var k=c=0;k<e.length;k++){if(!_.Bz(e[k])||c>0&&e[k].length!=c){c=!1;break a}for(var I=0;I<e[k].length;I++)if(typeof e[k][I]!=="number"){c=!1;break a}c==0&&(c=e[k].length)}c=c!=0}if(c)this.array_=_.tq(e);else if(e instanceof _.T6)this.array_=zpo(e.height,e.width);else if(typeof e==="number"&&typeof g==="number"&&e>0&&g>0)this.array_=zpo(e,g);else throw Error("Sk");}this.size_=new _.T6(this.array_[0].length,this.array_.length)};
RQ=function(e,g){if(typeof e!=="function")throw Error("Ok");return _.kp.setTimeout(function(){e()},g)};
Ed=function(e,g,c,k,I){this.JSC$19976_channel_=e;this.JSC$19976_channelDebug_=g;this.sid_=c;this.JSC$19976_rid_=k;this.JSC$19976_retryId_=I||1;this.timeout_=45E3;this.JSC$19976_eventHandler_=new _.wD(this);this.pollingTimer_=new _.rD;this.pollingTimer_.setInterval(250)};
WK=function(){};
QIO=function(e,g,c,k,I){(new WK).debug("TestLoadImageWithRetries: "+I);if(k==0)c(!1);else{var J=I||0;k--;HOj(e,g,function(q){q?c(!0):_.kp.setTimeout(function(){QIO(e,g,c,k,J)},J)})}};
HOj=function(e,g,c){var k=new WK;k.debug("TestLoadImage: loading "+e);var I=new Image;I.onload=function(){try{k.debug("TestLoadImage: loaded"),UYQ(I),c(!0)}catch(J){}};
I.onerror=function(){try{k.debug("TestLoadImage: error"),UYQ(I),c(!1)}catch(J){}};
I.onabort=function(){try{k.debug("TestLoadImage: abort"),UYQ(I),c(!1)}catch(J){}};
I.ontimeout=function(){try{k.debug("TestLoadImage: timeout"),UYQ(I),c(!1)}catch(J){}};
_.kp.setTimeout(function(){if(I.ontimeout)I.ontimeout()},g);
I.src=e};
UYQ=function(e){e.onload=null;e.onerror=null;e.onabort=null;e.ontimeout=null};
o_Q=function(e,g){this.JSC$19983_channel_=e;this.JSC$19983_channelDebug_=g;this.JSC$19983_parser_=new Asz};
bG=function(e,g,c){this.state_=1;this.JSC$19986_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19986_channelDebug_=new WK;this.JSC$19986_parser_=new Asz;this.firstTestResults_=e||null;this.secondTestResults_=g!=null?g:null;this.asyncTest_=c||!1};
ZO0=function(){this.front_=[];this.back_=[]};
hQ=function(e){this.JSC$20001_map_=new _.aY;this.size=0;e&&this.addAll(e)};
VYS=function(e,g){this.action=e;this.params=g||{}};
XV=function(e,g){_.Iy.call(this);this.delay_=new _.vt(this.JSC$20075_onTick_,0,this);_.yh(this,this.delay_);this.JSC$20073_interval_=5E3;this.retryCount=this.nextTickTime_=0;if(typeof e==="function")g&&(e=(0,_.Ju)(e,g));else if(e&&typeof e.handleEvent==="function")e=(0,_.Ju)(e.handleEvent,e);else throw Error("za");this.JSC$20075_listener_=e};
Gh=function(e,g,c,k,I,J,q,L,n,R,W,b,h,X,D,f){var l=this;c=c===void 0?!1:c;k=k===void 0?function(){return""}:k;
I=I===void 0?!1:I;J=J===void 0?!1:J;q=q===void 0?!1:q;L=L===void 0?function(){return _.No({})}:L;
n=n===void 0?!1:n;W=W===void 0?!1:W;b=b===void 0?!1:b;h=h===void 0?!1:h;X=X===void 0?!1:X;this.JSC$20076_pathPrefix_=e;this.defaultQueryParams_=g;this.pubsub_=new _.w1;this.retryLogger_=f;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!D)?D(function(){l.safeReconnect_()}):new XV(this.safeReconnect_,this);
this.JSC$20076_channel_=null;this.JSC$20076_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20076_pendingMessages_=[];this.enableAsyncTest_=c;this.JSC$20076_getXsrfToken_=k;this.useAsyncBrowserChannelHandler_=J;this.getAuthorizationHeader_=L;this.getAuthorizationHeaderSync_=R;this.enableCachedUpdateAuthorizationHeader_=q;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.No();this.enableLoungeTokenRefresh_=I;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
n;this.disableMdxAuthForNonPlaybackMessages_=W;this.disableMdxAuthForAdMessages_=b;this.enableMdxAuthForConnectionOnly_=h;this.disableMdxAuthForShortsMessages_=X;this.JSC$20076_channelOpenedCounter=new tYo;this.JSC$20076_channelClosedCounter=new Bk7;this.channelMessageSentCounter=new NkO;this.JSC$20076_channelMessageReceivedCounter=new Szl;this.JSC$20076_channelErrorCounter=new ysS;this.pendingMapsOnClosedCounter=new Kko;this.undeliveredMapsOnClosedCounter=new OOg};
MYl=function(e){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;e=e||document.location.href;var g=Number(_.oR(e)[4]||null)||"";g&&(this.port=":"+g);this.domain=_.V9(e)||"";e=_.xp();e.search("MSIE")>=0&&_.Gv(e.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
xc=function(e){e=e||{};this.name=e.name||"";this.id=e.id||e.screenId||"";this.token=e.token||e.loungeToken||"";this.uuid=e.uuid||e.dialId||"";this.idType=e.screenIdType||"normal";this.secret=e.screenIdSecret||""};
CFq=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var g=Math.random()*16|0;return(e=="x"?g:g&3|8).toString(16)})};
eZg=function(e){return _.R4(e,function(g){return{key:g.id,name:g.name}})};
gkl=function(e,g){return H8(e,function(c){return c||g?!c!=!g?!1:c.id==g.id:!0})};
D_=function(e,g){return H8(e,function(c){return cbq(c,g)})};
wTS=function(){var e=kF7(),g=IiD();if(JbS()){var c=e,k=_.dUV(c,g);k<0&&_.sAt(c,-(k+1),0,g)}e=vk7(e);if(e.length==0)try{_.nd8("remote_sid")}catch(I){}else try{_.r1("remote_sid",e.join(","),-1)}catch(I){}};
kF7=function(){var e=_.qk("yt-remote-connected-devices")||[];e.sort(_.ug8);return e};
vk7=function(e){if(e.length==0)return[];var g=e[0].indexOf("#"),c=g==-1?e[0]:e[0].substring(0,g);return _.R4(e,function(k,I){return I==0?k:k.substring(c.length)})};
qL7=function(e){_.wp("yt-remote-connected-devices",e,86400)};
IiD=function(){if(Lb7)return Lb7;var e=_.qk("yt-remote-device-id");e||(e=CFq(),_.wp("yt-remote-device-id",e,31536E3));for(var g=kF7(),c=1,k=e;_.Hz(g,k);)c++,k=e+"#"+c;return Lb7=k};
rbM=function(){return _.qk("yt-remote-session-browser-channel")};
JbS=function(){return _.qk("yt-remote-session-screen-id")};
RZQ=function(e){e.length>5&&(e=e.slice(e.length-5));var g=_.R4(ail(),function(k){return k.loungeToken}),c=_.R4(e,function(k){return k.loungeToken});
_.Ap6(c,function(k){return!_.Hz(g,k)})&&nkj();
_.wp("yt-remote-local-screens",e,31536E3)};
ail=function(){return _.qk("yt-remote-local-screens")||[]};
nkj=function(){_.wp("yt-remote-lounge-token-expiration",!0,86400)};
Ekg=function(e){e||(_.Ls("yt-remote-session-screen-id"),_.Ls("yt-remote-session-video-id"));wTS();e=kF7();_.UC(e,IiD());qL7(e)};
bvv=function(){Wbl();return $c?!!$c.get("yt-remote-use-staging-server"):!1};
Wbl=function(){if(!$c){var e=_.x1();e&&($c=new _.WQ(e))}};
x27=function(e,g,c,k,I){c=c===void 0?function(){return""}:c;
var J=function(){return new Gh(Yc(e,"/bc"),g,!1,c,k)};
return _.G("enable_mdx_web_channel_desktop")?new hZj(function(){return new XTX(Yc(e,"/wc"),g,c)}):new GFx(J,I)};
fiS=function(){var e=D2q;$2o();fJ.push(e);YLv()};
j3=function(e,g){$2o();var c=j6S(e,String(g));fJ.length==0?iv0(c):(YLv(),_.o7(fJ,function(k){k(c)}))};
iG=function(e){j3("CP",e)};
$2o=function(){fJ||(fJ=_.Q0("yt.mdx.remote.debug.handlers_")||[],_.BQ("yt.mdx.remote.debug.handlers_",fJ))};
iv0=function(e){var g=(P30+1)%50;P30=g;m2M[g]=e;pTQ||(pTQ=g==49)};
YLv=function(){var e=fJ;if(m2M[0]){var g=pTQ?P30:-1,c={};do c={record$jscomp$15:void 0},g=(g+1)%50,c.record$jscomp$15=m2M[g],_.o7(e,function(k){return function(I){I(k.record$jscomp$15)}}(c));
while(g!=P30);m2M=Array(50);P30=-1;pTQ=!1}};
j6S=function(e,g){var c=(Date.now()-TL7)/1E3;c.toFixed&&(c=c.toFixed(3));var k=[];k.push("[",c+"s","] ");k.push("[","yt.mdx.remote","] ");k.push(e+": "+g,"\n");return k.join("")};
m9=function(e){PK.call(this);this.JSC$20105_logName_=e;this.screens=[]};
Th=function(e){m9.call(this,"LocalScreenService");this.JSC$20112_http_=e;this.loungeTokenRefreshTimer_=NaN;pJ(this);this.info("Initializing with "+liq(this.screens))};
lG=function(e,g){g=g===void 0?!1:g;m9.call(this,"ScreenService");this.JSC$20118_http_=e;this.disableAutomaticScreenCache_=g;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};AbO(this)};
AQ=function(e,g,c){PK.call(this);this.JSC$20122_logName_=c;this.JSC$20122_screenService_=e;this.receiver_=g;this.screen_=null};
yb7=function(e,g,c){c.disableCastApi?sd("Cannot initialize because disabled by Mdx config."):s6X()?FbD(e,c)&&(u6O(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?d2Q(g):(window.__onGCastApiAvailable=function(k,I){k?d2Q(g):(FV("Failed to load cast API: "+I),zZv(!1),u6O(!1),_.Ls("yt-remote-cast-available"),_.Ls("yt-remote-cast-receiver"),Hv0(),g(!1))},c.loadCastApiSetupScript?_.D5(Q6O):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
U2M()>=60&&okX():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?ZvQ():U2M()>=89?VUO():(tUQ(),BLq(NLg.map(SLv))))):sd("Cannot initialize because not running Chrome")};
Hv0=function(){sd("dispose");var e=uG();e&&e.dispose();_.BQ("yt.mdx.remote.cloudview.instance_",null);Kb7(!1);_.MUU(Ovv);Ovv.length=0};
MUM=function(){return!!_.qk("yt-remote-cast-installed")};
C3j=function(){var e=_.qk("yt-remote-cast-receiver");return e?e.friendlyName:null};
eNg=function(){sd("clearCurrentReceiver");_.Ls("yt-remote-cast-receiver")};
gy0=function(){return MUM()?uG()?uG().getCastSession():(FV("getCastSelector: Cast is not initialized."),null):(FV("getCastSelector: Cast API is not installed!"),null)};
kJM=function(e,g){c4z()?uG().setConnectedScreenStatus(e,g):FV("setConnectedScreenStatus called before ready.")};
s6X=function(){var e=_.xp().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.yG||e};
FbD=function(e,g){var c=!1;uG()||(e=new dW(e,g),e.subscribe("yt-remote-cast2-availability-change",function(k){_.wp("yt-remote-cast-available",k);QH("yt-remote-cast2-availability-change",k)}),e.subscribe("yt-remote-cast2-receiver-selected",function(k){sd("onReceiverSelected: "+k.friendlyName);
_.wp("yt-remote-cast-receiver",k);QH("yt-remote-cast2-receiver-selected",k)}),e.subscribe("yt-remote-cast2-receiver-resumed",function(k){sd("onReceiverResumed: "+k.friendlyName);
_.wp("yt-remote-cast-receiver",k);QH("yt-remote-cast2-receiver-resumed",k)}),e.subscribe("yt-remote-cast2-session-change",function(k){sd("onSessionChange: "+I3j(k));
k||_.Ls("yt-remote-cast-receiver");QH("yt-remote-cast2-session-change",k)}),_.BQ("yt.mdx.remote.cloudview.instance_",e),c=!0);
sd("cloudview.createSingleton_: "+c);return c};
uG=function(){return _.Q0("yt.mdx.remote.cloudview.instance_")};
d2Q=function(e){zZv(!0);u6O(!1);uG().init(!1,function(g){g?(Kb7(!0),_.C3V("yt-remote-cast2-api-ready")):(FV("Failed to initialize cast API."),zZv(!1),_.Ls("yt-remote-cast-available"),_.Ls("yt-remote-cast-receiver"),Hv0());e(g)})};
sd=function(e){j3("cloudview",e)};
FV=function(e){j3("cloudview",e)};
zZv=function(e){sd("setCastInstalled_ "+e);_.wp("yt-remote-cast-installed",e)};
c4z=function(){return!!_.Q0("yt.mdx.remote.cloudview.apiReady_")};
Kb7=function(e){sd("setApiReady_ "+e);_.BQ("yt.mdx.remote.cloudview.apiReady_",e)};
u6O=function(e){_.BQ("yt.mdx.remote.cloudview.initializing_",e)};
zh=function(e){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(e)};
WsO=function(e){Wbl();if(!$c||!$c.get("yt-remote-disable-remote-module-for-dev")){e=_.uo("MDX_CONFIG")||e;MVQ();wTS();J4j||(J4j=new MYl(e?e.loungeApiHost:void 0),bvv()&&(J4j.basePath="/api/loungedev"));HK||(HK=_.Q0("yt.mdx.remote.deferredProxies_")||[],_.BQ("yt.mdx.remote.deferredProxies_",HK));vyl();var g=wOq();if(!g){var c=new lG(J4j,e?e.disableAutomaticScreenCache||!1:!1);_.BQ("yt.mdx.remote.screenService_",c);g=wOq();var k={};e&&(k={appId:e.appId,disableDial:e.disableDial,theme:e.theme,loadCastApiSetupScript:e.loadCastApiSetupScript,
disableCastApi:e.disableCastApi,enableDialLoungeToken:e.enableDialLoungeToken,enableCastLoungeToken:e.enableCastLoungeToken,forceMirroring:e.forceMirroring});_.BQ("yt.mdx.remote.enableConnectWithInitialState_",e?e.enableConnectWithInitialState||!1:!1);yb7(c,function(J){J?q1z()&&kJM(q1z(),"YouTube TV"):c.subscribe("onlineScreenChange",function(){QH("yt-remote-receiver-availability-change")})},k)}if(e&&!_.Q0("yt.mdx.remote.initialized_")){_.BQ("yt.mdx.remote.initialized_",!0);
LsQ("Initializing: "+_.X9(e));Q$.push(_.Mz("yt-remote-cast2-api-ready",function(){QH("yt-remote-api-ready")}));
Q$.push(_.Mz("yt-remote-cast2-availability-change",function(){QH("yt-remote-receiver-availability-change")}));
Q$.push(_.Mz("yt-remote-cast2-receiver-selected",function(){r4X();QH("yt-remote-auto-connect","cast-selector-receiver")}));
Q$.push(_.Mz("yt-remote-cast2-receiver-resumed",function(){QH("yt-remote-receiver-resumed","cast-selector-receiver")}));
Q$.push(_.Mz("yt-remote-cast2-session-change",a37));Q$.push(_.Mz("yt-remote-connection-change",function(J){J?kJM(q1z(),"YouTube TV"):ny7()||(kJM(null,null),eNg())}));
Q$.push(_.Mz("yt-remote-cast2-session-failed",function(){QH("yt-remote-connection-failed")}));
k=RND();e.isAuto&&(k.id+="#dial");var I=e.capabilities||[];I.length>0&&(k.capabilities=I);k.name=e.device;k.app=e.app;(e=e.theme)&&(k.theme=e);LsQ(" -- with channel params: "+_.X9(k));k?(_.wp("yt-remote-session-app",k.app),_.wp("yt-remote-session-name",k.name)):(_.Ls("yt-remote-session-app"),_.Ls("yt-remote-session-name"));_.BQ("yt.mdx.remote.channelParams_",k);g.start();q1z()||EyX()}}};
hNg=function(){var e=wOq().instance_.$_gos();var g=bxO();g&&Ud()&&(gkl(e,g)||e.push(g));return eZg(e)};
XOD=function(){var e=hNg(),g=bxO();g||(g=ny7());return H8(e,function(c){return g&&cbq(g,c.key)?!0:!1})};
bxO=function(){var e=q1z();if(!e)return null;var g=wOq().getScreens();return D_(g,e)};
a37=function(e){LsQ("remote.onCastSessionChange_: "+I3j(e));if(e){var g=bxO();if(g&&g.id==e.id){if(kJM(g.id,"YouTube TV"),e.idType=="shortLived"&&(e=e.token))GJM&&(GJM.token=e),(g=Ud())&&g.setLoungeToken(e)}else g&&xHl(),DHg(e,1)}else Ud()&&xHl()};
xHl=function(){c4z()?uG().stopSession():FV("stopSession called before API ready.");var e=Ud();e&&(e.disconnect(1),$Hg(null))};
Y1z=function(){var e=Ud();return e&&e.getProxyState()!=3?new oQ(Ud(),void 0):null};
LsQ=function(e){j3("remote",e)};
wOq=function(){if(!f37){var e=_.Q0("yt.mdx.remote.screenService_");f37=e?new jHo(e):null}return f37};
q1z=function(){return _.Q0("yt.mdx.remote.currentScreenId_")};
ixj=function(e){_.BQ("yt.mdx.remote.currentScreenId_",e)};
r4X=function(){_.BQ("yt.mdx.remote.connectData_",null)};
Ud=function(){return _.Q0("yt.mdx.remote.connection_")};
$Hg=function(e){var g=Ud();r4X();e||ixj("");_.BQ("yt.mdx.remote.connection_",e);HK&&(_.o7(HK,function(c){c(e)}),HK.length=0);
g&&!e?QH("yt-remote-connection-change",!1):!g&&e&&QH("yt-remote-connection-change",!0)};
ny7=function(){var e=JbS();if(!e)return null;var g=wOq();if(!g)return null;g=g.getScreens();return D_(g,e)};
DHg=function(e,g){P6O?GJM=e:(ixj(e.id),e=new Z_(J4j,e,RND(),_.Q0("yt.mdx.remote.enableConnectWithInitialState_")||!1),e.connect(g,_.Q0("yt.mdx.remote.connectData_")),e.subscribe("beforeDisconnect",function(c){QH("yt-remote-before-disconnect",c)}),e.subscribe("beforeDispose",function(){Ud()&&$Hg(null)}),e.subscribe("browserChannelAuthError",function(){var c=bxO();
c&&c.idType=="shortLived"&&(c4z()?uG().handleBrowserChannelAuthError():FV("refreshLoungeToken called before API ready."))}),$Hg(e))};
EyX=function(){var e=ny7();e?(LsQ("Resume connection to: "+I3j(e)),DHg(e,0)):(Ekg(),eNg(),LsQ("Skipping connecting because no session screen found."))};
vyl=function(){var e=RND();if(_.n0.isEmpty(e)){e=IiD();var g=_.qk("yt-remote-session-name")||"",c=_.qk("yt-remote-session-app")||"";e={device:"REMOTE_CONTROL",id:e,name:g,app:c,mdxVersion:3};e.authuser=String(_.uo("SESSION_INDEX","0"));(g=_.uo("DELEGATED_SESSION_ID"))&&(e.pageId=String(g));_.BQ("yt.mdx.remote.channelParams_",e)}};
RND=function(){return _.Q0("yt.mdx.remote.channelParams_")||{}};
mH0=function(){var e,g;return _.r(function(c){if(c.nextAddress==1)return(_.Fbv()||_.G("use_new_nwl"))&&_.TLC().isNetworkAvailable()?c.yield(_.Nl(),2):c.return();if(c.nextAddress!=3)return(e=c.yieldResult)?c.yield(zkz(e),3):c.return();g=c.yieldResult;if(!g.length)return c.return();g.forEach(function(k){var I={timestamp:k.timestamp};k=k.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:k.appShellAssetLoadReport,options:I}:k.clientError?{payloadName:"clientError",payload:k.clientError,
options:I}:void 0;k&&_.Y2(k.payloadName,k.payload,k.options)});
g.length===100&&_.ft.addLowPriorityJob(mH0);_.Uh(c)})};
zND=function(e,g,c){c=c===void 0?!1:c;var k=Math.max(e.width,pOM);if(_.G("kevlar_watch_feed_big_thumbs")&&e.width>=1550-V$()&&e.height>=800)k-=TiX;else if(e.width>=tQ){var I=l3X+A4S+BK;_.G("kevlar_watch_feed_big_thumbs")&&(I=sHQ);k-=I}else k-=l3X;k=Math.min(k,FsQ);I=240;c&&(I=380);g<.5624||(!_.G("kevlar_watch_flexy_disable_small_window_sizing")&&(e.height<630&&e.width>=657||e.height>=630&&e.width>=tQ&&e.width<1327)?I=360:!_.G("kevlar_watch_flexy_disable_large_window_sizing")&&e.height>=630&&e.width>=
1327&&(I=480));var J=Math.min(k*g,e.height-(56+uE7+dHv));J=Math.max(J,I);g<1?k=J/g:e.width>=tQ&&(k=zND(e,.5625,c).width);return new _.T6(Math.round(k),Math.round(J))};
Hxj=function(e){if(e.playerResponse){if(e=e.playerResponse,e.messages&&e.messages.length>0&&(e=e.messages.find(function(g){return!(!g||!g.mealbarPromoRenderer)}))&&e.mealbarPromoRenderer)return e.mealbarPromoRenderer}else if(e.response&&(e=e.response)&&e.overlay&&e.overlay.mealbarPromoRenderer)return e.overlay.mealbarPromoRenderer};
QHQ=function(e){if(e.response){var g=e.response;if(g&&g.overlay&&g.overlay.tooltipRenderer)return g.overlay.tooltipRenderer}if(e.playerResponse&&(e=e.playerResponse,e.messages&&e.messages.length>0&&(e=e.messages.find(function(c){return!(!c||!c.tooltipRenderer)}))&&e.tooltipRenderer))return e.tooltipRenderer};
UHl=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
oyQ=function(){var e,g,c;return _.r(function(k){switch(k.nextAddress){case 1:return k.yield(_.rB.getInstance(),2);case 2:e=k.yieldResult;if(!e){g=void 0;k.jumpTo(3);break}return k.yield(e.get("lmqf"),4);case 4:g=k.yieldResult;case 3:switch((c=g)||(c="SD"),c){case "HD":return k.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return k.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return k.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return k.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return k.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Zxv=function(e){var g,c,k;return _.r(function(I){if(I.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.G("disable_av1_setting")){var J=window.localStorage["yt-player-av1-pref"];J=J==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":J==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else J="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(g=e===J)return I.jumpTo(2);k=c=e;return I.yield(oyQ(),3)}I.nextAddress!=2&&(g=k===I.yieldResult);return I.return(g)})};
tt7=function(){var e=_.MN("user_engagement_experiments_rate_limit_ms"),g=VtM.get("last-user-engagement-exp-trigger-timestamp");return!g||(0,_.yr)()>=g+e?(VtM.set("last-user-engagement-exp-trigger-timestamp",(0,_.yr)()),!0):!1};
Nh=function(e,g,c,k,I){g=g===void 0?null:g;c=c===void 0?null:c;k=k===void 0?null:k;I=I===void 0?null:I;e={youThereEventType:e};c&&(e.lactThresholdMs=c.lactThresholdMs,e.mediaPosSec=c.promptDelaySec,e.lactServerRequestMs=c.lactServerRequestMs,e.triggerReason=c.triggerReason);I!=null&&(e.renderingMediaPosSec=Math.round(I));g||(g=_.EM());g&&(e.clientScreenNonce=g);k&&(e.clientPlaybackNonce=k);_.Y2("youThere",e)};
NiO=function(e){if(!Bij&&(e=e||_.uo("ZWIEBACK_PING_URLS"))&&e.length){Bij=!0;for(var g=0;g<e.length;g++)_.uw(e[g])}};
S1l=function(e){var g=0;e.indexOf("h")!=-1&&(e=e.split("h"),g=e[0]*60*60,e=e[1]);e.indexOf("m")!=-1&&(e=e.split("m"),g=e[0]*60+g,e=e[1]);e.indexOf("s")!=-1?(e=e.split("s"),g=e[0]*1+g):g=e*1+g;return g};
KsD=function(e){if(_.n0.get(_.uo("PLAYER_VARS",{}),"privembed",!1)!="1"){e&&mRj();try{y4X().then(function(){},function(){}),_.k1(KsD,18E5)}catch(g){_.zr(g)}}};
OxD=function(){var e=_.ch(),g=e.getFlag(119),c=window.devicePixelRatio>1;document.body&&_.Aa(document.body,"exp-invert-logo")&&(c&&!_.Aa(document.body,"inverted-hdpi")?_.PT(document.body,"inverted-hdpi"):!c&&_.Aa(document.body,"inverted-hdpi")&&_.i3(document.body,"inverted-hdpi"));g!=c&&(_.kn(0,119,c),e.save())};
Mt0=function(){_.MN("service_worker_push_logged_out_prompt_watches")!=-1&&tE("WatchCount").then(function(e){e>=100||KtS("WatchCount",e+1)})};
C6z=function(e){return e.filter(function(g){return"ypcGetCartEndpoint"in g||"ypcFixInstrumentEndpoint"in g})};
ecv=function(e){return e.filter(function(g){return!_.x(g,_.Ojk)})};
gux=function(e){switch(e){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}};
cCO=function(e,g,c){var k=_.WT(c);e&&g&&k&&e.getPlayerPromise().then(function(I){_.Mg8(k)&&_.fB();(new _.n$(I)).executeCommand(k,g);_.G("continue_playback_on_desktop_companion_click")||I.pauseVideo()})};
kPj=function(e){var g=_.FE(),c;if(c=_.Q0("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var k;c=(k=c())==null?void 0:k.layoutId}else c=null;cCO(g,c,e)};
I9X=function(e){var g=_.FE(),c;if(c=_.Q0("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var k;c=(k=c())==null?void 0:k.layoutId}else c=null;cCO(g,c,e)};
S3=function(e,g){var c=e<0?"-":"";e=Math.abs(e);var k=Math.floor(e/3600),I=Math.floor(e)%3600,J=Math.floor(I/60);I=Math.floor(I)%60;var q="";(g===void 0?0:g)&&(q="."+Math.round((e-Math.floor(e))*10));return k>0?c+k+":"+(J<10?"0"+J:""+J)+":"+(I<10?"0"+I:""+I)+q:c+J+":"+(I<10?"0"+I:""+I)+q};
JCQ=function(e){var g=e.match(/[^0-9:\.]/g);if(g&&g.length>0)return null;e=e.split(":");if(e.length===0||e.length>3)return null;g=1;for(var c=0;e.length>0;){var k=e.pop();if(k===void 0)break;var I=Number(k);if(k===""||isNaN(I))return null;c+=I*g;g*=60}return c};
vul=function(e,g,c,k){e=Math.max(c,e);g=Math.min(g,k-c);e+g>k?(c=k,e=c-g):c=e+g;return{start:e,end:c}};
wYq=function(e,g,c,k,I,J){e<c?e=c:e+I>k&&(e=k-I);g>k&&(g=k);g=Math.min(e+J,Math.max(e+I,g));return{start:e,end:g}};
qQv=function(e,g,c,k,I,J){g>k?g=k:g-I<c&&(g=c+I);e<c&&(e=c);e=Math.min(g-I,Math.max(g-J,e));return{start:e,end:g}};
W3q=function(e,g){var c=_.sz(e,{}),k=L3S("top",g),I=L3S("bottom",g),J=L3S("left",g),q=L3S("right",g);return _.N2({top:function(){return y$(c().position,k)},
bottom:function(){return y$(c().position,I)},
left:function(){return y$(c().position,J)},
right:function(){return y$(c().position,q)},
position:function(){return y$(c().positionType,rCO)},
height:function(){return y$(c().height,KJ)},
width:function(){return y$(c().width,KJ)},
"min-width":function(){return y$(c().minWidth,KJ)},
"min-height":function(){return y$(c().minHeight,KJ)},
"max-width":function(){return y$(c().maxWidth,KJ)},
"max-height":function(){return y$(c().maxHeight,KJ)},
"aspect-ratio":function(){return y$(c().aspectRatio,String)},
"margin-top":function(){return y$(c().margin,k)},
"margin-bottom":function(){return y$(c().margin,I)},
"margin-left":function(){return y$(c().margin,J)},
"margin-right":function(){return y$(c().margin,q)},
"padding-top":function(){return y$(c().padding,k)},
"padding-bottom":function(){return y$(c().padding,I)},
"padding-left":function(){return y$(c().padding,J)},
"padding-right":function(){return y$(c().padding,q)},
"flex-direction":function(){return y$(c().flexDirection,a9j)},
"justify-content":function(){return y$(c().justifyContent,nu0)},
"align-items":function(){return y$(c().alignItems,Rco)},
"flex-grow":function(){return y$(c().flexGrow,String)},
"flex-shrink":function(){return y$(c().flexShrink,String)},
"flex-basis":function(){return y$(c().flexBasis,KJ)},
"align-self":function(){return y$(c().alignSelf,Rco)},
"flex-wrap":function(){return y$(c().flexWrap,Eug)},
"align-content":function(){return y$(c().alignContent,Rco)}})};
y$=function(e,g){return e!==void 0?g(e):void 0};
Eug=function(e){switch(e){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
rCO=function(e){switch(e){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Rco=function(e){switch(e){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"}};
nu0=function(e){switch(e){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"}};
a9j=function(e){switch(e){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"}};
L3S=function(e,g){var c=g==="rtl";switch(e){case "top":var k=bVM;break;case "bottom":k=hcD;break;case "left":k=XYQ;break;default:k=GPl}return function(I){return y$(k(I,c),KJ)}};
bVM=function(e){var g=e.top;var c=e.vertical;e=e.all;var k;return(k=g!=null?g:c)!=null?k:e};
hcD=function(e){var g=e.bottom;var c=e.vertical;e=e.all;var k;return(k=g!=null?g:c)!=null?k:e};
XYQ=function(e,g){var c=e.left;var k=e.end;var I=e.start;var J=e.horizontal;e=e.all;var q,L;return(L=(q=c!=null?c:g?k:I)!=null?q:J)!=null?L:e};
GPl=function(e,g){var c=e.right;var k=e.end;var I=e.start;var J=e.horizontal;e=e.all;var q,L;return(L=(q=c!=null?c:g?I:k)!=null?q:J)!=null?L:e};
KJ=function(e){var g=e.value;switch(e.unit){case "YPC_DIMENSION_UNIT_POINT":return g+"px";case "YPC_DIMENSION_UNIT_FRACTION":return g+"%";default:return""+g}};
xyx=function(e){switch(e){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"}};
Dyo=function(e){var g=e!=null?e:{};e=g.fontRole;var c=g.fontSize;g=g.fontWeight;if(e!==null&&c!==null)switch(e){case "YPC_FONT_ROLE_DISPLAY":switch(c){case "YPC_FONT_SIZE_L":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(c){case "YPC_FONT_SIZE_L":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return g===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(c){case "YPC_FONT_SIZE_XL":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return g==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
jBo=function(e,g,c){function k(b){return Object.values(b).map(function(h){var X=h.productId;h=h.pricingOptionIndex;return Od(I(X).pricingOptions,h).pricingOptionId})}
function I(b){return n().get(b)}
function J(b){b=k(b);c(b)}
function q(b,h){return Array.from(Mh(b.pricingOptions)).filter(function(X){X=_.w(X);X.next();X=X.next().value;return CJ(X.pricingGroupAttributes,h)}).map(function(X){return _.w(X).next().value})}
var L=$yO([e,g],function(b,h){var X=b==null?void 0:b.selectedPricingOptions;b={};var D=!0;if(X&&h.length)for(var f=_.w(h),l=f.next();!l.done;l=f.next()){l=l.value;var A=YQv(l.pricingOptions,function(V){a:{V=V.pricingOptionId;for(var Q=_.w(X),y=Q.next();!y.done;y=Q.next())if(y.value===V){V=!0;break a}V=!1}return V});
if(A>=0){D=!1;var d=Od(l.pricingOptions,A),S=void 0;b[l.groupId]={productId:l.productId,pricingOptionIndex:A,pricingGroupAttributes:(S=d)==null?void 0:S.pricingGroupAttributes}}}D&&h.length&&(D=Od(h[0].pricingOptions,0),b[h[0].groupId]={productId:h[0].productId,pricingOptionIndex:0,pricingGroupAttributes:D==null?void 0:D.pricingGroupAttributes});return b}),n=$yO([g],function(b){return new Map(b.map(function(h){return[h.productId,
h]}))}),R=$yO([g],function(b){var h=new Map;
b=_.w(b);for(var X=b.next();!X.done;X=b.next()){var D=X.value;X=D.groupId;var f=D.productId;D=_.w(Mh(D.pricingOptions));for(var l=D.next();!l.done;l=D.next()){var A=_.w(l.value);l=A.next().value;A=A.next().value;h.set(A.pricingOptionId,{groupId:X,productId:f,index:l,pricingOption:A,pricingGroupAttributes:A.pricingGroupAttributes})}}return h}),W=$yO([g],function(b){var h=new Map;
b=_.w(b);for(var X=b.next();!X.done;X=b.next()){var D=X.value;X=D.groupId;var f=D.productId,l=void 0;D=_.w(Mh((l=D.pricingGroups)!=null?l:[]));for(l=D.next();!l.done;l=D.next()){var A=_.w(l.value);l=A.next().value;A=A.next().value;h.set(A.pricingGroupId,{groupId:X,productId:f,index:l,pricingGroup:A,pricingGroupAttributes:A.pricingGroupAttributes})}}return h});
return{getProductById:I,isProductSelected:function(b){var h=I(b);if(!h)return!1;var X;return((X=L()[h.groupId])==null?void 0:X.productId)===b},
getSelectedPricingOptions:function(){return Object.values(L()).map(function(b){var h=b.productId;b=b.pricingOptionIndex;return Od(I(h).pricingOptions,b)})},
getSelectedPricingGroupAttributesByGroupId:function(b){var h;return(b=(h=L()[b])==null?void 0:h.pricingGroupAttributes)?Array.from(b):void 0},
getSelectedProductByGroupId:function(b){var h;return(b=(h=L()[b])==null?void 0:h.productId)?I(b):void 0},
onProductSelected:function(b){var h=I(b);if(h){var X=L(),D;if(((D=X[h.groupId])==null?void 0:D.productId)!==b){var f=(D=(f=X[h.groupId])==null?void 0:f.productId)?I(D):void 0;var l;D=(l=X[h.groupId])==null?void 0:l.pricingGroupAttributes;var A;l=(A=X[h.groupId])==null?void 0:A.pricingOptionIndex;if(f&&l!==void 0)if(D){A=q(f,D).indexOf(l);if(A===-1)throw Error("Cl`"+l+"`"+f.productId);l=q(h,D);A=A<l.length?l[A]:l.length>0?l[0]:0}else A=l<eg(h.pricingOptions)?l:0;else A=0;eg(h.pricingOptions)<=A&&(A=
0);l=Od(h.pricingOptions,A);var d;f={};J(Object.assign({},X,(f[h.groupId]={productId:b,pricingOptionIndex:A,pricingGroupAttributes:(d=l==null?void 0:l.pricingGroupAttributes)!=null?d:[]},f)))}}},
onPricingOptionSelected:function(b){var h=R().get(b);if(h){b=h.groupId;var X=h.productId;h=h.index;var D=L(),f,l;if(((f=D[b])==null?void 0:f.productId)!==X||((l=D[b])==null?void 0:l.pricingOptionIndex)!==h){var A,d;f={};J(Object.assign({},D,(f[b]={productId:X,pricingOptionIndex:h,pricingGroupAttributes:(d=(A=D[b])==null?void 0:A.pricingGroupAttributes)!=null?d:[]},f)))}}},
onPricingGroupSelected:function(b){var h=W().get(b);if(h){b=h.groupId;var X=h.productId,D=h.pricingGroup.pricingGroupAttributes,f=I(X);if(f){h=L();var l=h[b].pricingGroupAttributes,A;if(((A=h[b])==null?void 0:A.productId)!==X||!CJ(f9o(l,eg(D)),D)){A=Array.from(D);for(D=eg(D);D<eg(l);D++){var d="",S=!1,V=Array.from(A);V.push(Od(l,D));for(var Q=_.w(f.pricingGroups),y=Q.next();!y.done;y=Q.next())if(y=y.value,CJ(y.pricingGroupAttributes,V)){A.push(Od(l,D));S=!0;break}else d===""&&eg(y.pricingGroupAttributes)===
V.length&&CJ(f9o(y.pricingGroupAttributes,A.length),A)&&(d=Od(y.pricingGroupAttributes,D));S||A.push(d)}d=h[b].pricingOptionIndex;D=[];S=new Map;V=0;f=_.w(Mh(f.pricingOptions));for(Q=f.next();!Q.done;Q=f.next())y=_.w(Q.value),Q=y.next().value,y=y.next().value,CJ(y.pricingGroupAttributes,A)&&D.push(Q),CJ(y.pricingGroupAttributes,l)&&S.set(Q,V++);D.length===0?l=0:(l=S.get(d),l=l!==void 0&&l<D.length?D[l]:D[0]);f={};J(Object.assign({},h,(f[b]={productId:X,pricingOptionIndex:l,pricingGroupAttributes:A},
f)))}}}},
onClearGroupSelected:function(b){var h=L();h[b]&&(h=Object.fromEntries(Object.entries(h).filter(function(X){return _.w(X).next().value!==b})),J(h))}}};
Mh=function(e){return function c(){var k,I,J,q,L;return _.y5(c,function(n){switch(n.nextAddress){case 1:_.ze(n,2),k=0,I=_.w(e),J=I.next();case 4:if(J.done){n.jumpTo(2);break}q=J.value;L=_.KL;return n.yield([k++,q],7);case 7:L(n.yieldResult);J=I.next();n.jumpTo(4);break;case 2:_.sh(n),_.HA(n,0)}})}()};
YQv=function(e,g){e=_.w(Mh(e));for(var c=e.next();!c.done;c=e.next()){var k=_.w(c.value);c=k.next().value;k=k.next().value;if(g(k))return c}return-1};
eg=function(e){var g=0;for(e=e[Symbol.iterator]();!e.next().done;)++g;return g};
Od=function(e,g){e=_.w(Mh(e));for(var c=e.next();!c.done;c=e.next()){var k=_.w(c.value);c=k.next().value;k=k.next().value;if(c===g)return k}};
CJ=function(e,g){if(!e&&!g)return!0;if(!e||!g)return!1;e=Array.from(e);g=Array.from(g);if(e.length!==g.length)return!1;for(var c=0;c<e.length;c++)if(e[c]!==g[c])return!1;return!0};
f9o=function(e,g){g=g===void 0?Infinity:g;var c=[];e=_.w(Mh(e));for(var k=e.next();!k.done;k=e.next()){var I=_.w(k.value);k=I.next().value;I=I.next().value;if(k>=g)break;k>=0&&c.push(I)}return c};
$yO=function(e,g){var c,k;return function(){for(var I=e.map(function(q){return q()}),J=0;J<I.length;J++)if(!c||I[J]!==c[J]){c=I;
k=g.apply(null,_.KY(I));break}return k}};
iVX=function(e,g,c){var k=[];e=_.w(e);for(var I=e.next();!I.done;I=e.next()){I=I.value;var J=void 0;((J=g)==null?0:J.length)&&!CJ(I.pricingGroupAttributes,g)||k.push({pricingOption:I,isSelected:c.includes(I.pricingOptionId)})}return k};
PDM=function(e,g){return _.Nc(e.entities,"pdpStateEntity",g)};
myl=function(e){var g,c;return!!(e.productId&&e.groupId&&((g=e.pricingOptions)==null?0:g.length)&&e.pricingOptions.every(function(k){return k.pricingOptionId})&&((c=e.pricingGroups)==null||!c.length||Array.isArray(e.pricingGroups)&&e.pricingGroups.every(function(k){return k.pricingGroupId&&k.pricingGroupAttributes&&k.pricingGroupAttributes.length>0})))};
pYq=function(e,g,c){return jBo(e,$yO([g],function(k){return k.filter(myl)}),c)};
TbM=function(e,g){return g.length===0?[e]:[e.slice(0,g[0]),e.slice(g[0])].filter(function(c){return c.length>0})};
l9M=function(e){switch(e){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""}};
sBS=function(e,g,c,k){k=Object.assign({},k);_.rL(k,ACz,{selectedOptionId:e,primaryButtonOverride:c});_.lF().dispatch(_.cY("flowStateEntity",g,k))};
F3D=function(e,g,c){!_.x(c,ACz)&&e.noPreselect&&g!==""&&e.defaultButtonOverride&&sBS("default",g,e.defaultButtonOverride,c)};
uJj=function(e){switch(e){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
dyM=function(e){switch(e){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
zcl=function(e,g){g.includes(e)?g=g.filter(function(c){return c!==e}):g.push(e);
return[].concat(_.KY(g))};
HVS=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("n0DHg"),2);e=_.yHZ;return g.return(e)})};
QBj=function(e,g){return _.Nc(e.entities,"contextNoteFeedEntityPayload",g)};
UyD=function(e,g){switch(e){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return g==null?void 0:g.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return g==null?void 0:g.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return g==null?void 0:g.ratingNotHelpfulText}};
ouX=function(e,g,c){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:c||e.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:e.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:e.deleteDialogTitle}]},dialogMessages:[{runs:[{text:e.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:e.deleteActionText}]},command:{performCommentActionEndpoint:{action:g}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:e.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
ZVo=function(e,g,c){var k;if(e&&((k=g())==null?0:k.includes(e))){var I;c((I=g())==null?void 0:I.filter(function(J){return J!==e}))}else c([].concat(_.KY(g()||[]),[e]))};
tSX=function(e,g){if(e){var c=[];g=_.w((g==null?void 0:g.checkboxes)||[]);for(var k=g.next();!k.done;k=g.next()){k=_.x(k.value,VSQ);var I=void 0;((I=k)==null?0:I.value)&&e.includes(k.key||"")&&c.push(k.value)}return c}};
BbQ=function(e,g){return e===g?!0:(e==null?void 0:e.formId)===(g==null?void 0:g.formId)&&(e==null?void 0:e.fieldId)===(g==null?void 0:g.fieldId)};
SQl=function(e){var g=NbD.get(e);if(g)return g;g=e.replace(/_([a-zA-Z0-9])/g,function(c,k){return k.toUpperCase()});
NbD.set(e,g);return g};
OVS=function(e){var g=_.xF(function(){var k;return(k=_.ds(e))!=null?k:{}},{equals:BbQ},"rjkP8c"),c=_.xF(function(){var k=g(),I=k.formId;
k=k.fieldId;var J;if(J=I&&k){if(k==="formId")throw Error("Jl`"+"Field id cannot be formId.".replace(/\n\s*/g," "));b:{if(I&&(yCQ?yCQ():(J=_.w(_.Wa(0,void 0,"VxY0fb")),yCQ=J.next().value,J.next(),J.next(),yCQ()),J=K3z.get(I))){J=J.form;break b}J=void 0}if(J){var q=SQl(k);J=J[q]}else J=void 0}if(J)throw Error("Jl`"+("Field "+k+" in form "+I+" is not a ScalarField.").replace(/\n\s*/g," "));},void 0,"OhSJ8e");
return function(){return c()}};
MSl=function(e){e.style.height="auto";e.style.height=e.scrollHeight+"px"};
CDj=function(e){return[e.syncStep,e.asyncStep].filter(function(g){return g!==void 0})};
gDS=function(e){var g,c,k;if(e=(g=e.structuredContextNoteFormSchema)==null?void 0:(c=g.fieldSchemas)==null?void 0:(k=c.noteBody)==null?void 0:k.validationSchema)for(g=_.w(CDj(e)),c=g.next();!c.done;c=g.next()){c=c.value.rules;if(!c)break;c=_.w(c);for(c=c.next();!c.done;c=c.next())return _.x(c.value,eRq)}};
kMl=function(e){if(e){e=_.w(CDj(e));for(var g=e.next();!g.done;g=e.next()){g=g.value.rules;if(!g)break;g=_.w(g);for(g=g.next();!g.done;g=g.next())return _.x(g.value,cho)}}};
Jhj=function(e){if(e){e=_.w(CDj(e));for(var g=e.next();!g.done;g=e.next()){g=g.value.rules;if(!g)break;g=_.w(g);for(g=g.next();!g.done;g=g.next())return _.x(g.value,IZD)}}};
vD0=function(e){e=/^https?:\/\//.test(e)?e:"http://"+e;try{var g=_.zs(e)}catch(c){return!1}if(g.toString()!==e)return!1;e=g.JSC$10342_domain_.split(".");return e.length>1&&e.every(function(c){return!!c})};
wjl=function(e,g,c,k){var I;k=(I=k.structuredContextNoteData)==null?void 0:I.createCommentEndpoint;if(I=_.x(k,_.vs4))return I.commentText=_.PL(e),I.videoPositionMention=g,I.sources=c,k};
qTO=function(e){return e==null?void 0:e.stringValue};
rhl=function(e,g,c){e=e.map(function(k,I){return{listItemViewModel:{title:k.title,subtitle:k.subtitle,leadingImage:k.leadingImage,trailingImage:I===g?Lg7:void 0,rendererContext:{commandContext:{onTap:k.onTap}}}}});
return Object.assign({},c&&{header:{panelHeaderViewModel:{title:c}}},{content:{listViewModel:{listItems:e}}})};
aZS=function(e,g){if(e&&g)switch(g){case "SELECTION_TYPE_BOOL":return e.boolValue;case "SELECTION_TYPE_INT":return e.intValue;case "SELECTION_TYPE_STRING":return e.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return e.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return e.timePickerFormatValue}};
nDv=function(e){var g;e=(g=e.options)==null?void 0:g.findIndex(function(c){return c.isSelected});
return e===void 0?-1:e};
RRj=function(e,g,c){var k=function(){return e().label},I={},J=_.o6("ytDropdownViewModelLabel",(I.ytDropdownViewModelLabelError=g,I));
return _.a(_.E,{cond:function(){return e().label&&!(c()===-1&&e().label&&!e().placeholderText)},
then:function(){return _.a("div",{class:J},_.a(_.fa,{text:k}))}})};
EDv=function(e,g){var c={};c=_.o6("ytDropdownViewModelTitle",(c.ytDropdownViewModelTitlePlaceholder=function(){return g()===-1},c));
return _.a("div",{class:c},_.a(_.fa,{text:function(){var k=e();var I=g();if(I===-1)k=k.placeholderText?k.placeholderText:k.label;else{var J,q;k=(J=k.options)==null?void 0:(q=J[I])==null?void 0:q.title}return k}}))};
WgX=function(e,g){var c=function(){return e().hint};
return _.a(_.es,null,_.a(_.E,{cond:function(){return c()&&!g()},
then:function(){return _.a("div",{class:_.o6("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.a(_.fa,{text:c,className:"ytDropdownViewModelSupportText"}))}}),_.a(_.E,{cond:g,
then:function(){return _.a("div",{id:"dropdown-view-model-error",role:"alert",class:_.o6("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.a(_.SU,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.a(_.fa,{text:g,className:"ytDropdownViewModelSupportText"}))}}))};
bLO=function(e,g){var c=_.Ss().resolve(_.MwQ);_.lo(function(){var k=e().id;k&&c!=null&&c.dropdownMap.set(k,g)})};
XjS=function(e){e=_.x(e.scheduleButton,hRv);e=_.x(e==null?void 0:e.primaryButton,_.$8);e=_.x(e==null?void 0:e.onTap,_.EL);var g,c,k=((c=_.x(e,_.SV))==null?void 0:c.commands)||[e];c=_.w(k);for(e=c.next();!e.done&&!(g=_.x(e.value,_.gCk));e=c.next());var I;g=(I=g)==null?void 0:I.createBroadcastRequest;if(!g)throw Error("Pl");return g};
GMg=function(e){var g,c;return((c=_.x((g=e.steps)==null?void 0:g[0],_.vU))==null?void 0:c.stepId)||""};
$1x=function(e,g){if(g){var c=_.Tt().getState().entities.flowStateEntity,k=x1z(e),I=[g];k&&k!==g&&I.push(k);var J=!0,q;if(c&&e.flowStateEntityKey&&((q=c[e.flowStateEntityKey])==null?void 0:q.primaryButtonDisabled)!==void 0){var L;J=!((L=c[e.flowStateEntityKey])==null||!L.primaryButtonDisabled)}D1g(e,k!=null?k:g,I,J)}};
fZD=function(e){return _.kq(_.Tt(),function(g){return g.entities.flowStateEntity},function(g,c){if(e.flowStateEntityKey){var k,I=g==null?void 0:(k=g[e.flowStateEntityKey])==null?void 0:k.currentStepId,J;
c=c==null?void 0:(J=c[e.flowStateEntityKey])==null?void 0:J.currentStepId;J=_.Tt().getState().talkToRecs;if(I&&I!==c){var q;g=(g==null?void 0:(q=g[e.flowStateEntityKey])==null?void 0:q.stepIdStack)||Object.keys(J.stepStates);q=!YTz(J==null?void 0:J.stepStates[I]);D1g(e,I,g,q)}}})};
iLS=function(e){return _.kq(_.Tt(),jmQ,function(g){var c=x1z(e);if(c){var k=Object.keys(g.stepStates);g=!YTz(g==null?void 0:g.stepStates[c]);D1g(e,c,k,g)}})};
YTz=function(e){var g=Object.keys((e==null?void 0:e.selectionStates)||{}).reduce(function(J,q){return J||(e==null?void 0:e.selectionStates[q].isSelected)},!1),c,k,I=!!(e==null?0:(c=e.userQuery)==null?0:(k=c.userQuery)==null?0:k.trim());
return g||I};
x1z=function(e){if(e.flowStateEntityKey){var g,c,k=(g=_.Tt().getState().entities.flowStateEntity)==null?void 0:(c=g[e.flowStateEntityKey])==null?void 0:c.currentStepId;if(k)return k}};
D1g=function(e,g,c,k){_.Tt().dispatch(_.cY("flowStateEntity",e.flowStateEntityKey,{currentStepId:g,stepIdStack:c,key:e.flowStateEntityKey,primaryButtonDisabled:k}))};
TS7=function(e,g,c){c=c===void 0?{}:c;var k,I;return _.r(function(J){if(k=PQj(g))return J.return(k);(I=m1z(e,g,c))&&pjq(g,I);return J.return(I)})};
pjq=function(e,g){var c=lZo(e);c&&g.then(function(k){_.Ss().resolve(_.Bv).put(c,new _.NT({innertubeResponse:k}))})};
PQj=function(e){if(e=lZo(e)){var g=_.Ss().resolve(_.Bv);if(g.has(e))return g.get(e).then(function(c){return c==null?void 0:_.om(c)})}return null};
lZo=function(e){var g=_.x(e.endpoint,_.Pm);if(g!=null&&g.videoId)return g={videoId:g.videoId},_.G("web_imp_player_mute_params")&&(g.mutedAtStart=e.startPlaybackInMutedState),_.ic("inline_playback",g)};
m1z=function(e,g,c){e=_.jt(e,g.endpoint,Ahv(g,c)).then(function(k){return k});
return Promise.resolve(e)};
Ahv=function(e,g){g=_.G("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!e.startPlaybackInMutedState},g):Object.assign({},{vis:5,autonav:"1"},g);var c;g={contentPlaybackContext:_.th(g,(c=_.x(e.endpoint.commandMetadata,_.OM))==null?void 0:c.url,window.location.href)};_.G("web_imp_player_mute_params")&&(g.overrideMutedAtStart=!e.startPlaybackInMutedState);return g};
zRX=function(e,g){var c=window.MutationObserver;c&&(smS=new c(function(k,I){k=_.w(k);for(var J=k.next();!J.done;J=k.next()){J=J.value;var q;if(q=J.type==="childList"&&J.target)a:{q=e;J=FgD(J.target);q=FgD(q);for(var L=null,n=0;n<J.length;n++)if(q.includes(J[n])){if(n===0){q=!1;break a}L=J[n];break}L?(J=uXD(J,L),q=uXD(q,L),q=J<q):q=!1}if(q){g();I.disconnect();break}}}),(c=d1X())&&smS.observe(c,{childList:!0,
subtree:!0}))};
d1X=function(){var e=document.getElementsByTagName("ytd-rich-grid-renderer");if(e.length>0)return e[0];e=document.getElementsByTagName("ytd-section-list-renderer");return e.length>0?e[0]:null};
FgD=function(e){for(var g=[];e;)g.push(e),e=e.parentElement;return g};
uXD=function(e,g){var c=Array.from(g.children);g=e.indexOf(g);return g>0?c.indexOf(e[g-1]):-1};
g5=function(e,g,c){c=c===void 0?{}:c;return _.C_(e,c,g)};
HL7=function(e){switch(e){case "MUSIC":return!0;default:return!1}};
U1M=function(e){if(e=e==null?void 0:e.find(function(k){var I,J;return((I=_.x(k,Qml))==null?void 0:(J=I.inlinePlaybackBadgeData)==null?void 0:J.replicateAsTimestamp)===!0}))if(e=_.x(e,Qml),e==null?0:e.icon){var g,c;
if((e=(g=_.mLp(e.icon))==null?void 0:(c=g.clientResource)==null?void 0:c.imageName)&&HL7(e))return e}};
oDD=function(e){return e==null?void 0:e.filter(function(g){return g.premiereTrailerBadgeRenderer})};
ZLj=function(e){var g,c=e==null?void 0:(g=e.find(function(n){return n.thumbnailOverlayTimeStatusRenderer}))==null?void 0:g.thumbnailOverlayTimeStatusRenderer,k,I;
if((c==null?0:(k=c.icon)==null?0:k.iconType)&&HL7(c==null?void 0:(I=c.icon)==null?void 0:I.iconType)){var J;return{icon:c==null?void 0:(J=c.icon)==null?void 0:J.iconType}}var q;if(g=e==null?void 0:(q=e.find(function(n){return n.thumbnailOverlayBadgeViewModel}))==null?void 0:q.thumbnailOverlayBadgeViewModel)if(q=U1M(g.thumbnailBadges))return{icon:q};
var L;if(e=e==null?void 0:(L=e.find(function(n){return n.thumbnailBottomOverlayViewModel}))==null?void 0:L.thumbnailBottomOverlayViewModel)if(L=U1M(e.badges))return{icon:L};
return{}};
STj=function(e,g){var c=new Vlz(function(J){I(J)},g);
g=_.w(_.Wa(tl0(c),void 0,"D2uee"));var k=g.next().value,I=g.next().value;_.AV(function(){Promise.resolve().then(function(){var J,q=(J=e())!=null?J:{};c.playerControlsData=q;c.lastSeenPlayerApi=_.Gi(q.playerApi);BS0(c)});
_.sX(function(){NSl(c)})},"xfRk8b");
return k};
yho=function(e){return function(g){var c=e(),k={playerState:g};if(g===1){var I;(I=c.playerApi)==null||I.loadModule("captions")}if(g===0){var J;(J=c.playerApi)==null||J.unloadModule("captions")}g!==-1&&c.setState(k)}};
KgS=function(e){return function(g){e().setState({playbackRate:g})}};
OLg=function(e){return function(g){var c=e(),k=c.playerApi,I=k==null?void 0:k.getVideoData(),J=(I==null?void 0:I.isLive)||!1;I=I==null?void 0:I.video_id;J={videoDuration:UWQ(k||void 0),isLive:J,videoId:I};J.videoId!==c.videoId&&(J=Object.assign({},_.cqs(k),J));if(g==null?0:g.playertype)J.playerType=g.playertype;if(k){J.captionsAvailable=pLv(k);g=J;var q;I=(q=k.getStoryboardLevel(k.getNumberOfStoryboardLevels()-1))==null?void 0:q.intervalMs;g.storyboardInterval=I?I/1E3:void 0;J.captionsAvailable&&
(J.captionsEnabled=Tqq(k))}J.volumeMuted=!(k==null||!k.isMuted());c.setState(J)}};
MlQ=function(e){return function(g){var c=e(),k=c.playerApi;if(k){var I=k.getPresentingPlayerType();g={playedTime:g||0,percentLoaded:k.getVideoLoadedFraction(),playerType:I};c.playerState===0&&(g.playedTime=c.videoDuration);c.isLive&&(I=k.getProgressState(I),g.playedTime-=I.seekableStart,g.videoDuration=UWQ(k));if(c.playerType===1)k=!1;else{var J;if((J=c.uxConfig)==null?0:J.showCuedOverlay){var q;k=!((q=c.playerApi)==null?0:q.getPlayerStateObject(c.playerType).isDomPaused)}else k=!0}k&&delete g.playedTime;
c.setState(g)}}};
CQx=function(e){return function(){var g=e(),c,k,I,J={volume:(I=(c=g.playerApi)==null?void 0:c.getVolume())!=null?I:0,volumeMuted:!((k=g.playerApi)==null||!k.isMuted())};g.setState(J)}};
ePM=function(e){return function(){var g=e(),c=g.playerApi;if(c){var k={captionsAvailable:pLv(c)};k.captionsAvailable&&(k.captionsEnabled=Tqq(c));g.setState(k)}}};
gtv=function(e){return{appApi:Object.assign({},_.yHV(),{showCaptionsToggleToast:function(g){var c,k;(k=(c=e()).showCaptionsToggleToast)==null||k.call(c,g)},
openInMiniplayer:function(){var g,c;(c=(g=e()).openInMiniplayer)==null||c.call(g)}})}};
cAz=function(e,g){var c,k,I;return!!(e==null?0:(c=e.playerResponse)==null?0:(k=c.playerConfig)==null?0:(I=k.inlinePlaybackConfig)==null?0:I.showScrubbingControls)&&!(g==null?0:g.hideScrubbingControls)};
ki7=function(e){var g=!e.miniplayerIsActive;return[5,2,0].includes(e.miniplayerPlaybackState)||g};
IQ0=function(e){return _.G("web_transcript_cue_id_killswitch")?String(e):"ytd-transcript-renderer_"+e};
JA7=function(e){return _.G("web_transcript_cue_id_killswitch")?!0:e.startsWith("ytd-transcript-renderer")};
vtx=function(e){var g=_.FE(),c;if(c=_.Q0("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var k;c=(k=c())==null?void 0:k.layoutId}else c=null;cCO(g,c,e)};
w2X=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("HwlOhd"),2);e=_.Ujv;return g.return(e)})};
qmv=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("JoU6vf"),2);e=_.$P;return g.return(e)})};
Lml=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("hU04te"),2);e=_.kqY;return g.return(e)})};
rAD=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("dIvQ6c"),2);e=_.Gvz;return g.return(e)})};
aQO=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("m9Vw4"),2);e=_.PW0;return g.return(e)})};
ntX=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("mcjWUc"),2);e=_.z8X;return g.return(e)})};
RPo=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("QiZf0e"),2);e=_.pd7;return g.return(e)})};
Etv=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("f8YPh"),2);e=_.Jkn;return g.return(e)})};
WmO=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield((0,_.Mf)("b3MoKf"),2);e=_.Iws;return g.return(e)})};
buv=function(e){e.style.height="auto";e.style.height=Math.min(e.scrollHeight||20,80)+"px"};
hPv=function(){var e;return String(Math.floor(((e=_.BO())==null?void 0:e.getCurrentTime())||0)*1E3)};
Gil=function(e){if(e.onWelcomeCommand)return _.WT(e.onWelcomeCommand);e=_.x(e.inputComposerViewModel,X2j);if(e==null?0:e.welcomeFeatureContinuation)return _.j2q(e.welcomeFeatureContinuation)};
xej=function(e){var g=_.FE(),c;c=(c=_.Q0("yt.www.ads.eventcache.getLastCompanionData"))?(c=c())&&c.layoutId:null;cCO(g,c,e)};
DeD=function(e){var g=_.FE(),c;c=(c=_.Q0("yt.www.ads.eventcache.getLastCompanionData"))?(c=c())&&c.layoutId:null;cCO(g,c,e)};
$ez=function(e){return e.filter(function(g){return!_.x(g,_.$t)})};
Ymx=function(e){var g,c,k,I;if(e=e==null?void 0:(g=e.contents)==null?void 0:(c=g.twoColumnWatchNextResults)==null?void 0:(k=c.results)==null?void 0:(I=k.results)==null?void 0:I.contents){var J,q;return(q=(J=e.find(function(L){return!!L.videoPrimaryInfoRenderer}))==null?void 0:J.videoPrimaryInfoRenderer)==null?void 0:q.updatedMetadataEndpoint}};
fQQ=function(e,g){var c;return(c=e.sourceConfigs)==null?void 0:c.find(function(k){return k.videoId===g})};
jdS=function(e){return e==="End of video"||e==="End of playlist"};
iuD=function(e){var g,c,k,I;return(g=e.getWatchNextResponse())==null?void 0:(c=g.contents)==null?void 0:(k=c.twoColumnWatchNextResults)==null?void 0:(I=k.playlist)==null?void 0:I.playlist};
Pn0=function(e){var g,c,k,I,J,q;return(g=iuD(e))==null?void 0:(c=g.playlistButtons)==null?void 0:(k=c.menuRenderer)==null?void 0:(I=k.topLevelButtons)==null?void 0:(J=I[0])==null?void 0:(q=J.playlistLoopButtonRenderer)==null?void 0:q.playlistLoopStateEntityKey};
mez=function(e){var g=_.Ss().resolve(_.fo),c;return(g=(c=_.x(g.getAutoplayEndpoint(),_.Pm))==null?void 0:c.playlistId)&&g===e};
lQQ=function(e,g,c,k,I){function J(){_.ft.cancelJob(c7);var q=p2v(g,c/e.getPlaybackRate()),L=q.hours,n=q.minutes;q=(q.seconds*1E3||6E4)/e.getPlaybackRate();e.setVideoTimeLeft(Tlo(L,n));k&&e.getPlayerState()!==0&&e.setSleepTimerTimeLeft(Tlo(L,n,!0));(L>0||n>0)&&!I&&(c7=_.JC(_.ft,J,q))}
_.ft.cancelJob(c7);c7=_.JC(_.ft,J)};
sdo=function(e,g,c){function k(){_.ft.cancelJob(AAO);var I=p2v(g,c),J=I.hours;I=I.minutes;var q=6E4/e.getPlaybackRate();if(J>0||I>0)e.setSleepTimerTimeLeft(Tlo(J,I,!0)),AAO=_.JC(_.ft,k,q)}
_.ft.cancelJob(AAO);AAO=_.JC(_.ft,k)};
u5g=function(e,g){var c=e.getVolume()/(g/500),k=function(I){_.ft.cancelJob(FmO);var J=Math.floor(I-c);e.setVolume(J,!1);J>0&&(FmO=_.JC(_.ft,function(){k(J)},500))};
_.ft.cancelJob(FmO);FmO=_.JC(_.ft,function(){k(e.getVolume())})};
deS=function(e,g){_.ft.cancelJob(FmO);g&&e.syncVolume()};
zPz=function(){var e={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.C_("SLEEP_TIMER_DISRUPTED")}}}}};_.Ss().resolve(_.xk).resolveCommand(e)};
HuD=function(e){return(e.getDuration()-e.getProgressState().current)*1E3};
p2v=function(e,g){e=e+g-(0,_.yr)();if(e<=0)return{hours:0,minutes:0,seconds:0};var c=new QdO(0,0,0,0,0,0,e);e=c.getHours();g=c.getMinutes();c=c.getSeconds();c!==0&&g++;g!==0&&g%60===0&&(e++,g=0);return{hours:e,minutes:g,seconds:c}};
Tlo=function(e,g,c){return e>0&&g>0?c?_.C_("TIME_LEFT_HOURS_MINUTES",{hours:e.toString(),minutes:g.toString()}):_.C_("TIME_HOURS_MINUTES",{hours:e.toString(),minutes:g.toString()}):e>0?c?_.e4("TIME_LEFT_HOURS",e):_.e4("TIME_HOURS",e):c?_.C_("TIME_LEFT_MINUTES",{minutes:g.toString()}):_.C_("TIME_MINUTES",{minutes:g.toString()})};
otg=function(e,g){if(e.timelyActions)return e.timelyActions.find(function(c){var k;return((k=_.x(c,Uev))==null?void 0:k.cueRangeId)===g})};
Zug=function(e){return _.G("kevlar_watch_cinematics_invisible")||e.fullscreen&&_.G("kevlar_watch_cinematics_invisible_in_fullscreen")||e.theater&&!e.fullscreen&&_.G("kevlar_watch_cinematics_invisible_in_theater")};
V$v=function(){var e=document.createElement("canvas"),g=e.getContext("2d");if(!g)throw Error("Tl");_.i2(e,{position:"absolute",width:"100%",height:"100%"});return{element:e,context:g}};
t$D=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.G("kevlar_watch_cinematics_css_blur")};
Bl0=function(e){var g=e.externalVideoId||"";return g?e.isShortsEligible?"https://www.youtube.com/shorts/"+g:"https://www.youtube.com/watch?v="+g:""};
NlQ=function(e){var g=[];e.viewCount&&g.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:e.viewCount});e.likeCount&&g.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:e.likeCount});return g};
Sml=function(e){var g,c,k={"@context":"https://schema.org","@type":"VideoObject",description:_.mp(e.description),duration:"PT"+(e.lengthSeconds||"0")+"S",embedUrl:e.embed?e.embed.iframeUrl:"",name:_.mp(e.title),thumbnailUrl:((g=e.thumbnail)==null?void 0:(c=g.thumbnails)==null?void 0:c.map(function(W){return W&&W.url||""}))||[],
uploadDate:e.publishDate};_.G("mweb_video_schema_id_killswitch")||(k["@id"]=Bl0(e));g=NlQ(e);g.length&&(k.interactionStatistic=g);e.category&&(k.genre=e.category);e.ownerChannelName&&(k.author=e.ownerChannelName);e.liveBroadcastDetails&&(k.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:e.liveBroadcastDetails.startTimestamp,endDate:e.liveBroadcastDetails.endTimestamp}]);if(e.learningResource){e=e.learningResource;k["@type"]=["VideoObject","LearningResource"];var I;if((I=e.learningResourceType)==
null?0:I.length)k.learningResourceType=e.learningResourceType[0];var J;if((J=e.educationalAlignment)==null?0:J.length)k.educationalAlignment={"@type":"AlignmentObject",targetName:e.educationalAlignment[0]};var q;if((q=e.educationalLevel)==null?0:q.length){I=e.educationalLevel[0];var L;if((L=e.educationalLevelCountry)==null?0:L.length)I+=" ("+e.educationalLevelCountry+")";k.educationalLevel=I}var n,R;if(((n=e.learningResourceType)==null?0:n.length)&&e.learningResourceType[0]==="Problem walkthrough"&&
((R=e.problemDescriptions)==null?0:R.length))for(k.hasPart=[],L=_.w(e.problemDescriptions),n=L.next();!n.done;n=L.next())I=n.value,n=I.problemDescriptionText,R=I.startOffset,I=I.url,n&&R!==void 0&&I&&k.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:n,text:n,startOffset:R,url:I})}return k};
yA0=function(e){return e?e.status==="LIVE_STREAM_OFFLINE":!1};
Km0=function(e){return e&&e.contents&&e.contents.twoColumnWatchNextResults&&e.contents.twoColumnWatchNextResults.results&&e.contents.twoColumnWatchNextResults.results.results.contents};
Ouj=function(e){if((e==null?void 0:e.value)===void 0||e==null||!e.unit)return"initial";a:{switch(e.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var g="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":g="%";break a}g=void 0}return g?""+e.value+g:"initial"};
M$q=function(e){return e?e.status==="LIVE_STREAM_OFFLINE":!1};
CnM=function(e){return e&&e.contents&&e.contents.twoColumnWatchNextResults&&e.contents.twoColumnWatchNextResults.results&&e.contents.twoColumnWatchNextResults.results.results.contents};
gVQ=function(e,g){var c,k,I,J,q,L,n;_.r(function(R){switch(R.nextAddress){case 1:c=_.jh.getInstance();k=_.yJ.instance;I=_.Yy.instance;if(!I)return eOj(e,k,g),R.return();_.lj(R,2);e.onLoadingCommand&&k.resolveCommand(e.onLoadingCommand);return R.yield(c.getCurrentPositionFromGeolocation(),4);case 4:J=R.yieldResult;if(!e.resolveLocationCommand){R.jumpTo(5);break}q=c.createLocationInfo(J);return R.yield(_.jt(I,e.resolveLocationCommand,{locationInfo:q}),6);case 6:L=R.yieldResult;if(!L||"error"in L&&L.error||
L.errorMetadata)return eOj(e,k,g),R.return();var W;if(L==null?0:(W=L.onResponseReceivedActions)==null?0:W.length){W=_.w(L.onResponseReceivedActions);for(var b=W.next();!b.done;b=W.next())k.resolveCommand(b.value)}(_.x(e.onSuccessCommand,_.Pm)||_.x(e.onSuccessCommand,_.KU))&&_.oC(g.hostElement,"yt-navigate",{endpoint:e.onSuccessCommand,reload:!0});case 5:_.zn(R,0);break;case 2:n=_.Qb(R);if(n instanceof GeolocationPositionError&&n.code===GeolocationPositionError.PERMISSION_DENIED)return e.onDeniedCommand&&
k.resolveCommand(e.onDeniedCommand),R.return();eOj(e,k,g);_.Uh(R)}})};
eOj=function(e,g,c){e.onFailureCommand&&(g.resolveCommand(e.onFailureCommand),_.Z5(c.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
kXq=function(e,g){var c=_.x(e,_.X6Y);if(c&&g){e=c.videoIds||[c.videoId];var k;g=(k=_.oC(g,"yt-lockup-requested",{videoIds:e}).detail)==null?void 0:k.returnValue;var I;c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?I=g?g:e.map(function(J){return{videoId:J,navigationEndpoint:c.videoCommand}}):g&&(I=g);
I&&(k=I.map(function(J){var q=Object,L=q.assign;var n=J.navigationEndpoint;if(!_.x(n,_.eh)){var R=_.x(n,_.Pm);if(R){if(delete R.index,delete R.playlistId,R=_.x(n==null?void 0:n.commandMetadata,_.OM),R==null?0:R.url){var W=R.url;W=_.gN(W,"list");W=_.gN(W,"index");R.url=W}}else n=void 0}return L.call(q,{},J,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:n})}),cPD(k,c))}};
I4O=function(e){var g=_.po();if(e=_.x(e,_.Gpq))e.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&g.clearQueue(),e.closeMiniplayer&&_.Ss().resolve(_.xt).close(!0)};
vVX=function(e){JPl(_.po(),e)};
wWv=function(e){var g;(e=(g=_.x(e,_.bz1))==null?void 0:g.setVideoIds)&&e.forEach(function(c){_.WoM(_.po(),c)})};
Lvl=function(e){qUS(_.po(),e)};
rPQ=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(e){return!1}};
JM=function(e,g,c){(_.G("desktop_keyboard_shortcut_usage_log")||c&&_.G("web_shorts_keyboard_shortcut_usage_log"))&&(g?kO.get(e):IJ.get(e))&&(e=g?a4v.get(e):nVj.get(e))&&_.m7(_.EM(),e)};
EVD=function(e){return e.findIndex(function(g){return RO0.indexOf(g.tagName)>-1})>-1};
Wvj=function(e,g){return e.findIndex(function(c){return c.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(g.keyCode):!1};
hOg=function(e,g){return _.a(bqz,{data:e,onYtNavigate:g})};
XWv=function(e,g){return _.Nc(e.entities,"pageHeaderEntity",g)};
xBQ=function(e,g){return e.map(function(c){if(c.tabRenderer)return GXz(c.tabRenderer);if(c.expandableTabRenderer&&g){var k=c.expandableTabRenderer;return{customTabRenderable:function(){return g(k)}}}return{}})};
GXz=function(e){return{identifier:e.tabIdentifier,aTagConfig:_.hb({innertubeCommand:e.endpoint,forceNewState:!0}),title:e.title,selected:e.selected,disabled:e.unselectable,icon:e.icon}};
YUv=function(e,g,c,k){if(e)return k=k||e.likeStatus,g?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:k==="LIKE",isDisabled:!e.likesAllowed,defaultIcon:{iconType:c},defaultText:k==="LIKE"?e.likeCountWithUnlikeText:e.likeCountText,toggledText:k==="LIKE"?e.likeCountText:e.likeCountWithLikeText,defaultNavigationEndpoint:DBM(e,"LIKE"),defaultServiceEndpoint:$Bo(e,"LIKE"),toggledServiceEndpoint:$Bo(e,"INDIFFERENT"),defaultTooltip:_.mp(e.likeCountTooltipText),toggledTooltip:_.mp(e.likeCountTooltipText),
targetId:e.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:k==="DISLIKE",isDisabled:!e.likesAllowed,defaultIcon:{iconType:c},defaultText:k==="DISLIKE"?e.dislikeCountWithUndislikeText:e.dislikeCountText,toggledText:k==="DISLIKE"?e.dislikeCountText:e.dislikeCountWithDislikeText,defaultNavigationEndpoint:DBM(e,"DISLIKE"),defaultServiceEndpoint:$Bo(e,"DISLIKE"),toggledServiceEndpoint:$Bo(e,"INDIFFERENT"),defaultTooltip:_.mp(e.dislikeCountTooltipText),
toggledTooltip:_.mp(e.dislikeCountTooltipText)}};
DBM=function(e,g){if(g==="LIKE")return e.likeCommand;if(g==="DISLIKE")return e.dislikeNavigationEndpoint};
$Bo=function(e,g){var c;return(c=e.serviceEndpoints)==null?void 0:c.find(function(k){var I;return((I=_.x(k,_.LP))==null?void 0:I.status)===g})};
f4X=function(e,g,c,k){e=g-e;c=k-c;return Math.sqrt(e*e+c*c)};
jsq=function(e){var g=e>>8&255,c=e&255;return"#"+(e>>16&255).toString(16).padStart(2,"0")+g.toString(16).padStart(2,"0")+c.toString(16).padStart(2,"0")};
iqg=function(e,g){e&&_.Ss().resolve(_.xk).resolveCommand(e,{forceClickLogging:!0,form:{element:g}})};
Pyx=function(e){if(e.simpleText)return[{text:e.simpleText}];var g;return(g=e.runs)!=null?g:[]};
mBD=function(e){var g=e.startEndTimeTemplate,c=e.startTimeUtcMillis;e=e.endTimeUtcMillis;if(g&&c&&e)return _.PL(hBO(_.mp(g),Number(c),Number(e)))};
pWl=function(e,g){var c,k,I=e==null?void 0:(c=e.viewCount)==null?void 0:(k=c.videoViewCountRenderer)==null?void 0:k.shortViewCount;if(!g&&I)return I;var J,q;return e==null?void 0:(J=e.viewCount)==null?void 0:(q=J.videoViewCountRenderer)==null?void 0:q.viewCount};
T0z=function(e,g){var c=e==null?void 0:e.relativeDateText;return!g&&c?[c,!0]:[e==null?void 0:e.dateText,!1]};
l4v=function(e,g,c,k,I){k=k===void 0?"":k;I=I===void 0?!1:I;var J=pWl(e,g),q=_.w(T0z(e,g)),L=q.next().value;q=q.next().value;g=g?e==null?void 0:e.sponsorsOnlyFirstTimeLongText:e==null?void 0:e.sponsorsOnlyFirstTimeShortText;var n=[];c&&J&&n.push(J);!c&&q||!L||n.push(L);e=[I?e==null?void 0:e.subtitle:void 0].concat(_.KY(n),[g,e==null?void 0:e.stationName,e==null?void 0:e.rating,e?mBD(e):void 0,e==null?void 0:e.upNextProgramText,e==null?void 0:e.superTitleLink]).filter(function(R){return!!R});
c={runs:[]};for(I=0;I<e.length;I++)c.runs.push.apply(c.runs,_.KY(Pyx(e[I]))),I<e.length-1&&c.runs.push({text:" "+k+" "});return c};
APX=function(e,g){var c=_.Hwq(g,{},e,!0);return new Promise(function(k,I){c.listenOnce("n",function(){I(Error("fm`"+c.JSC$30547_getErrorDescription()))});
c.listenOnce("l",function(){var J=c.getResponseCode();if(J!==200)I(Error("gm`"+g+"`"+e.type+"`"+e.size+"`"+J));else try{k(JSON.parse(c.getResponseText()).encryptedBlobId)}catch(q){I(q)}});
c.run()})};
ssx=function(e){return e.substring(e.indexOf(":")+1,e.indexOf(";"))};
FvS=function(e){return new Promise(function(g,c){var k=new FileReader;k.onloadend=function(){try{var I=new Uint8Array(k.result);I.length<8&&c(void 0);var J=I.subarray(0,8);I="";for(var q=0;q<J.length;q++)I+=("0"+J[q].toString(16)).substr(-2);I.startsWith("ffd8ff")?g("image/jpeg"):I.startsWith("47494638")?g("image/gif"):I.startsWith("89504e470d0a1a0a")?g("image/png"):I.startsWith("424d")?g("image/bmp"):g(void 0)}catch(L){c(L)}};
k.onerror=c;k.readAsArrayBuffer(e)})};
uvl=function(e){return new Promise(function(g,c){var k=new Image;k.crossOrigin="anonymous";k.onload=function(){var I=document.createElement("canvas");I.width=k.naturalWidth;I.height=k.naturalHeight;var J=I.getContext("2d");if(!J)throw Error("hm");J.drawImage(k,0,0);J=ssx(e);I.toBlob(function(q){q?g(q):c()},J)};
k.src=e})};
zO7=function(e,g){var c;if(((c=_.x(e,_.eh))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var k;_.oC((k=g.hostElement)!=null?k:g,"yt-shorts-reset");_.S5X(_.Ss().resolve(_.cp),e).then(function(J){dBQ(J,g,e)})}else{var I;
_.tr((I=g.hostElement)!=null?I:g,[e]).then(function(J){J&&dBQ(J.data,g,e)})}};
dBQ=function(e,g,c){if(e){var k=_.x(e.replacementEndpoint,_.eh);if(k){e.sequenceContinuation&&(k.sequenceParams=e.sequenceContinuation);var I;_.oC((I=g.hostElement)!=null?I:g,"yt-navigate",{endpoint:e.replacementEndpoint})}else if((e==null?void 0:e.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(e==null?0:e.watchStatus)&&_.x(e.watchStatus,_.JRw)){var J;_.oC((J=g.hostElement)!=null?J:g,"yt-navigate",{endpoint:c})}}};
HqQ=function(e){var g=_.Ss().resolve(_.EO),c=_.Yu.currentPageTypeSelector(g.getState())||"";g=_.Yu.currentPageSubTypeSelector(g.getState())||"";c=c==="ytd-browse"&&g==="home";return _.G("web_guide_entry_enable_cache_for_non_home_pages")?(e=(e==null?void 0:e.navigationEndpoint)&&_.y8(e.navigationEndpoint)==="home",{disableCache:c&&e}):{disableCache:c}};
oVX=function(e,g,c,k){if(e&&e.length){var I={};if(g){var J=void 0;c&&(J={commandContext:{onTap:{innertubeCommand:c||{}}}});I.header={panelHeaderViewModel:{title:_.a6(g),rendererContext:J}}}g=[];e=_.w(e);for(c=e.next();!c.done;c=e.next()){J=c.value;c=_.x(J,QsO);J=_.x(J,UBD);var q=void 0,L=void 0;if((q=J)==null?0:(L=q.expandableItems)==null?0:L.length)for(J=_.w(J.expandableItems),q=J.next();!q.done;q=J.next()){q=q.value.guideEntryRenderer;var n=L=void 0;if(((L=q)==null?void 0:(n=L.icon)==null?void 0:
n.iconType)==="VIEW_LIST_CAIRO"){c=q;break}}L=q=void 0;J=((q=c)==null?0:q.formattedTitle)?_.a6((L=c)==null?void 0:L.formattedTitle):void 0;q=void 0;L=(q=c)==null?void 0:q.isPrimary;if(c&&J&&!L){J={title:J};c.navigationEndpoint&&(J.rendererContext={commandContext:{onTap:{innertubeCommand:c.navigationEndpoint}}});q=[];n=L=void 0;if(((L=c)==null?0:(n=L.thumbnail)==null?0:n.thumbnails)&&c.thumbnail.thumbnails.length>0){L=_.w(c.thumbnail.thumbnails);for(n=L.next();!n.done;n=L.next())q.push({url:n.value.url});
J.leadingAccessory={avatarViewModel:{image:{sources:q},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(L=void 0,(L=c.icon)==null?0:L.iconType)q.push({clientResource:{imageName:c.icon.iconType||""}}),J.leadingImage={sources:q};L=q=void 0;((q=c)==null?0:(L=q.badges)==null?0:L.liveBroadcasting)?(J.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",J.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},J.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
c.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?J.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":c.count&&(J.trailingLabel={content:c.count.toString()});g.push({listItemViewModel:J})}}g.length!==0?(I.content={listViewModel:{listItems:g}},k===0&&(I.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):I=void 0;if(I)return g=void 0,k===0&&(g={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:I}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:g}}}}};
ZqO=function(e,g,c,k){if(g!=null&&g.isPrimary){switch(k){case 1:if(g.serviceEndpoint)break;c=oVX(c,g.formattedTitle,g.navigationEndpoint,k);if(!c)break;g.serviceEndpoint=c;g.navigationEndpoint=void 0;break;case 0:!g.mouseEnterEndpoint&&(c=oVX(c,g.formattedTitle,void 0,k))&&(g.mouseEnterEndpoint=c,g.mouseLeaveEndpoint={hideSheetCommand:{}})}e.push({guideEntryRenderer:g})}};
VAO=function(e){if(!e)return!1;try{if(e.host&&e.host.tagName==="YT-FORMATTED-STRING"&&e.host.id==="contenteditable-textarea"||e.nodeType===Node.ELEMENT_NODE&&e.tagName==="YTD-COMMENT-INPUT")return!0}catch(g){return!1}return VAO(e.parentNode)};
v7=function(e){return e?e.tagName==="A"&&e.href&&e.classList.contains("yt-simple-endpoint"):!1};
tAx=function(e){return e?e.tagName==="IMG"&&e.classList.contains("emoji"):!1};
B0v=function(e,g,c){if(!e)return null;var k=v7(e);if(k&&c)return g=e.pathname.substring(e.pathname.indexOf("/channel/")+9),document.createTextNode("@"+g);if(k&&!c)return document.createTextNode("");if(tAx(e))return c=e.alt,e=e.dataset.emojiId,!e&&g&&(g=_.Z9(g,c))&&g.isCustomEmoji&&(e=g.emojiId),e?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+e+">"):document.createTextNode(c);k=e.cloneNode(!1);for(var I=0;I<e.childNodes.length;++I){var J=B0v(e.childNodes[I],g,c);J&&k.appendChild(J)}return k};
N0O=function(e){return e?v7(e)?e:N0O(e.lastChild):null};
SUx=function(e){return e?v7(e)?e:SUx(e.firstChild):null};
yPv=function(e){if(!e)return null;for(var g=e.previousSibling;g;)if(g.nodeType===Node.ELEMENT_NODE&&g.nodeName==="BR")g=g.previousSibling;else if(g.nodeType===Node.TEXT_NODE&&/\s+/.test(g.textContent))g=g.previousSibling;else break;(g=N0O(g))?e=g:e=(e=e.parentNode)?N0O(e.previousElementSibling):null;return e};
KvS=function(e){if(!e)return null;for(var g=e.nextSibling;g;)if(g.nodeType===Node.ELEMENT_NODE&&g.nodeName==="BR")g=g.nextSibling;else if(g.nodeType===Node.TEXT_NODE&&/\s+/.test(g.textContent))g=g.nextSibling;else break;return(g=SUx(g))?g:KvS(e.parentNode)};
OqS=function(e){var g=_.gY(),c=g.JSC$11664_getStartNode();if(!VAO(c.parentNode))return null;g=g.JSC$11664_getStartOffset();if(c.nodeType===Node.TEXT_NODE){var k=_.Xm(c,v7);if(k){if(e&&g===0||!e&&g===c.length)return k}else{if(e&&g===c.length)return!c||c.nodeName==="BR"||c.nextElementSibling&&_.tC(c.nextElementSibling,"display")==="block"?null:SUx(c.nextElementSibling);if(!e&&g===0)return c?N0O(c.previousElementSibling):null}}if(c.nodeType===Node.ELEMENT_NODE)if(e){if(0<=g&&g<c.childNodes.length)return SUx(c.childNodes[g])}else if(0<
g&&g<=c.childNodes.length)return N0O(c.childNodes[g-1]);return null};
MAl=function(e,g,c){if(!e)return null;if(e.nodeType===Node.TEXT_NODE)if(c){var k=yPv(e);if(k&&!/^\s+\S/.test(e.wholeText.substr(0,g)))return k}else if((k=KvS(e))&&!/\S\s+/.test(e.wholeText.substr(g,e.wholeText.length)))return k;return e.nodeType===Node.ELEMENT_NODE?c?yPv(e.childNodes[g]):KvS(e.childNodes[g]):MAl(e.parentNode,g,c)};
Cyq=function(e){if(e.hasChildNodes())switch(e.tagName){case "DIV":case "A":case "SPAN":var g="";for(e=e.firstChild;e;e=e.nextSibling)g+=Cyq(e);return g;default:return""}else switch(e.nodeType){case 3:return e.textContent;default:return""}};
exS=function(e){switch(e){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"}};
gE7=function(e){return e.map(function(g){return{settingsRadioOptionRenderer:{title:_.zu(g.name),asideText:_.zu(g.approximateSize),id:exS(g.format)}}})};
klD=function(e){if(e&&e.length!==0)return e.filter(cLM()).map(function(g){return{settingsRadioOptionRenderer:{title:g.name,asideText:g.approximateSize,id:exS(g.formatType)}}})};
Ig0=function(e){if(e)return e.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
JL7=function(e,g){e=new Set(e!=null?e:[]);if(e.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(e.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(e.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(e.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(e.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(g)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
vEQ=function(e){var g=e.indexOf("(");return g!==-1?e.substring(g+1,e.length-1):e};
_.qsz=function(e,g,c,k,I){c||(c=w9v);var J;(J=_.x(c.commandMetadata,_.OM))!=null&&J.url||(c=Error("mm`"+JSON.stringify(c)),_.jW(c),c=w9v);c=_.n0.unsafeClone(c);J=_.cH(_.x(c.commandMetadata,_.OM).url,"search_query",e);_.eQ(location.href,"sv")==="1"&&(_.x(c,_.Oo).params="EgOAAgE%3D",J=_.cH(J,"sv","1"));_.x(c,_.Oo)&&(_.x(c,_.Oo).query=e);J=J.replace(/%20/g,"+");_.x(c.commandMetadata,_.OM).url=J;I=_.G("desktop_enable_entity_suggest")?{entityMid:I}:{};_.Ss().resolve(_.xk).resolveCommand(c,{form:{tempData:Object.assign({},
{gs_l:g,oq:k!=null?k:e},I),isFromShorts:_.TP()==="shorts"}})};
_.LnM=function(e){var g=_.uo("SBOX_SETTINGS"),c="https://"+(g.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";c+="&delq="+encodeURIComponent(e);(e=g==null?void 0:g.PSUGGEST_TOKEN)&&(c+="&tok="+e);(g=g==null?void 0:g.SESSION_INDEX)&&(c+="&authuser="+g);return c};
rL7=function(e){switch(e){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
nE7=function(e,g,c,k,I,J){var q=_.n0.clone(agX);q.locale=_.uo("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;q.report={description:I||"<empty>"};I=_.uo("SBOX_SETTINGS",{});g=g.join(",");var L=Date.now();e={choice_cc:k,choice_id_cc:c,choices_sc:g,gl:I.REQUEST_DOMAIN,hl:I.REQUEST_LANGUAGE,query:e,time:L};J&&(e.choice_additional_comment_cc=J);_.Vpn(q,e)};
Rxv=function(e){var g=new Map;g.set("authuser",_.uo("SESSION_INDEX","0"));return _.i1(e,g)};
Wn7=function(e){var g;return _.r(function(c){switch(c.nextAddress){case 1:if(!e||!EEq(e))return c.return(null);g=null;switch(_.uo("INNERTUBE_CLIENT_NAME")){case "WEB":return c.jumpTo(2);case "WEB_REMIX":g=e.getPlayer()}c.jumpTo(3);break;case 2:return c.yield(e.getPlayerPromise(),4);case 4:g=c.yieldResult;c.jumpTo(3);break;case 3:return c.return(g)}})};
EEq=function(e){return["ytd-player","ytmusic-player"].includes(String(e.tagName||"").toLowerCase())};
b2o=function(e){e=Math.round(e);return e%2?e-1:e};
hx7=function(e){e=Math.round(e);return e%2===0?e-1:e};
X9z=function(e){var g=["h","m","s"],c=_.tq(g);c.reverse();var k={};e=(e.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(q){var L=(q.match(/[hms]/)||[""])[0];return L?(k[L]=parseInt(q.match(/\d+/)[0],10),!1):!0});
for(e.reverse();e.length&&c.length;){var I=c.shift();I in k||(k[I]=parseInt(e.shift(),10))}if(e.length||k.s>59||k.m>59||k.h>9)return null;var J="";g.forEach(function(q){k[q]&&(J+=""+k[q]+q)});
return J||null};
Glg=function(e){var g,c,k;if(e=(g=e.createPlaylistDialogFormSchema)==null?void 0:(c=g.fieldSchemas)==null?void 0:(k=c.title)==null?void 0:k.validationSchema)for(g=[e.syncStep,e.asyncStep].filter(function(I){return I!==void 0}),g=_.w(g),c=g.next();!c.done;c=g.next()){c=c.value.rules;
if(!c)break;c=_.w(c);for(c=c.next();!c.done;c=c.next())return _.x(c.value,eRq)}};
Dsv=function(e){var g,c,k;if(e=(g=e.createPlaylistDialogFormSchema)==null?void 0:(c=g.fieldSchemas)==null?void 0:(k=c.visibility)==null?void 0:k.validationSchema)for(g=[e.syncStep,e.asyncStep].filter(function(I){return I!==void 0}),g=_.w(g),c=g.next();!c.done;c=g.next()){c=c.value.rules;
if(!c)break;c=_.w(c);for(k=c.next();!k.done;k=c.next())if(k=_.x(k.value,xsQ))return g=void 0,(g=k.translations)==null?void 0:g.visibilityNotValidErrorMessage}};
$sx=function(){var e,g;return(g=(e=_.Ss().resolve(_.NN(_.gb)))==null?void 0:e())!=null?g:!1};
Ysl=function(e){var g=21;if(!e)return g;g+=e.headerTitle?27:0;g+=e.headerTitle&&e.hasHeaderActionHeader?4:0;return g+=e.headerTitle&&e.headerSubtitle?16:0};
fgq=function(e){var g=0;if(!e)return g;g+=e.hasFooterPrimaryButton||e.hasFooterSecondaryButton?48:0;g+=e.footerTrailingLabel||e.footerLeadingLabel?30:0;return g+=e.hasFooterPrimaryButton||e.hasFooterSecondaryButton||!e.footerTrailingLabel&&!e.footerLeadingLabel?0:12};
jXx=function(e){var g=new _.w1,c=e;return{subscribe:function(k){g.subscribe("changed",k)},
dispatch:function(k,I){var J=c;if(k==="Touch Start")c=Object.assign({},J,{isAnimating:!1,initialY:I.event.touches[0].clientY});else if(k==="Touch Move"){k=I.contentScrollable?-1*(J.initialY-24):0;var q,L=(q=I.headerDivHeight)!=null?q:Ysl(I.header),n;q=(n=I.footerDivHeight)!=null?n:fgq(I.footer);n=Math.min(I.fullContentWrapperHeight,I.heightMap[I.contentWrapperId]+L-q);c=Object.assign({},J,{currentY:Math.max(k,I.event.touches[0].clientY-J.initialY),maxHeightForContentWrapper:Math.min(n,Math.max(0,
(J.isFullScreen?n:I.contentWrapperHeight)-J.currentY))})}else c=k==="Snap To Full Screen"?Object.assign({},J,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:I.maxHeight}):k==="Snap To Neutral Position"?Object.assign({},J,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:I.maxHeight}):k==="Close Sheet"?Object.assign({},J,{isAnimating:!0,currentY:I.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:I.maxHeight}):J;g.publish("changed",c)}}};
i2Q=function(){_.Ss().resolve(_.rC).closeSheet()};
P2g=function(e){var g,c,k,I,J,q,L,n,R,W,b;return{headerTitle:(g=e.headerTitle)==null?void 0:g.call(e),headerSubtitle:(c=e.headerSubtitle)==null?void 0:c.call(e),headerActionHeader:e.headerActionHeader,footerPrimaryButton:e.footerPrimaryButton,footerSecondaryButton:e.footerSecondaryButton,footerButtonType:(k=e.footerButtonType)==null?void 0:k.call(e),footerLeadingLabel:(I=e.footerLeadingLabel)==null?void 0:I.call(e),footerTrailingLabel:(J=e.footerTrailingLabel)==null?void 0:J.call(e),shouldShowIcons:(q=
e.shouldShowIcons)==null?void 0:q.call(e),skipContentClick:(L=e.skipContentClick)==null?void 0:L.call(e),additionalClassName:(n=e.additionalClassName)==null?void 0:n.call(e),onClosedCallback:e.onClosedCallback,focusOnClose:(R=e.focusOnClose)==null?void 0:R.call(e),isDisabled:(W=e.isDisabled)==null?void 0:W.call(e),disabledCommand:(b=e.disabledCommand)==null?void 0:b.call(e),headerFn:e.headerFn,contentFn:e.contentFn,footerFn:e.footerFn,hasHeaderFn:e.hasHeaderFn(),hasContentFn:e.hasContentFn(),hasFooterFn:e.hasFooterFn(),
hasFooterPrimaryButton:e.hasFooterPrimaryButton(),hasFooterSecondaryButton:e.hasFooterSecondaryButton(),hasHeaderActionHeader:e.hasHeaderActionHeader()}};
msq=function(e){switch(e){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""}};
p9S=function(e){switch(e){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""}};
Tgo=function(e){switch(e){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""}};
lgD=function(e,g,c){g.forEach(function(k){_.KP(_.Ss().resolve(_.I5),k)});
_.Z5(e,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",c])};
uWj=function(e,g,c,k){var I=_.x(c,_.jD).commandLifeCycleConfig;I&&I.onStartCommand&&_.Bm(e,[I.onStartCommand],g);_.jl(g);var J=_.Yy.instance;J&&_.fx(J,c)?_.jt(J,c,k).then(function(q){if(!q||(q==null?0:q.error))return q=_.x(c,_.jD).serializedTransactionFlowLoggingParams,_.iQ(g),_.q2(new w5("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",q));_.iQ(g);return{data:q}}).then(function(q){_.iQ(g);
ALx(q.data);var L=q.data.command;L&&_.Bm(e,[L],g);L=sX7(c,q.data);if(!L){var n=q.data;q=!1;if(n&&n.command&&_.x(n.command,_.SV)){var R;n=((R=_.x(n.command,_.SV))==null?void 0:R.commands)||[];for(R=0;R<n.length;R++)if(_.x(n[R],_.sLq)){q=!0;break}}q||_.JF('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!L&&I&&I.onSuccessCommand?_.Bm(e,[I.onSuccessCommand],g):L&&I&&I.onFailureCommand&&_.Bm(e,[I.onFailureCommand],g)},function(){_.iQ(g);
I&&I.onFailureCommand&&_.Bm(e,[I.onFailureCommand],g);Fnq(c)}):_.jW(Error("ym"),"ERROR")};
dsv=function(e,g,c){var k=[g];c&&k.push(c);return _.tr(e,k).then(function(I){var J=_.x(g,_.jD).serializedTransactionFlowLoggingParams,q=I.data,L=sX7(g,q);L?I=_.q2(new w5(L,J)):ALx(q);return I},function(){var I=_.x(g,_.jD).serializedTransactionFlowLoggingParams;
Fnq(g);return _.q2(new w5("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",I))})};
sX7=function(e,g){e=_.x(e,_.jD).serializedTransactionFlowLoggingParams;var c=null;switch(g.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":c="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":c="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":c="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}c?_.ps(c,e):V4M(e);return c};
Fnq=function(e){_.ps("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.x(e,_.jD).serializedTransactionFlowLoggingParams)};
ALx=function(e){if(e.trackingParams){var g=_.EM(),c=_.RC();g&&c&&_.Yn(g,c,_.Jb(e.trackingParams))}};
zxO=function(e,g,c){var k=_.Yy.instance,I=_.q$p(_.uo("YPC_MB_URL")),J=(new _.v5U).init(),q=_.wCq(),L=_.x(c,_.pII).languageCode;L===void 0?_.jW(Error("Li"),"ERROR"):_.ER([J,I]).then(function(){var n={ctk:_.Hj.payments.business.integration.ClientTokenFactory.createClientToken(L,q)};k&&_.fx(k,c)?_.jt(k,c,n).then(function(R){return{data:R}}).then(function(R){_.oC(g,"yt-service-request-completed",R);
R.code!=="ERROR"&&(R=R.data.command)&&_.Bm(e,[R],g)}):_.jW(Error("ym"),"ERROR")})};
UsO=function(e,g,c,k){var I=_.Yy.instance;I&&_.fx(I,c)?_.jt(I,c,k).then(function(J){return{data:J}}).then(function(J){H2j(e,g,c,J)},function(){QXO(c)}):(I=_.Ss().resolve(_.NN(_.cg)))&&I.requestDataForServiceEndpoint(c,k).then(function(J){H2j(e,g,c,J)},function(){QXO(c)})};
H2j=function(e,g,c,k){_.oC(g,"yt-service-request-completed",k);if(k.code&&k.code=="ERROR")QXO(c);else{(k=k.data.commands)&&_.Bm(e,k,g);var I;(e=(I=_.x(c,_.uhM))==null?void 0:I.serializedYpcPauseFlowLoggingParams)&&e&&SG("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",e)}};
QXO=function(e){var g;(e=(g=_.x(e,_.uhM))==null?void 0:g.serializedYpcPauseFlowLoggingParams)&&e&&SG("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",e,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
V9o=function(e,g,c){var k=_.Yy.instance;k&&_.fx(k,c)?_.jt(k,c).then(function(I){return{data:I}}).then(function(I){oEo(e,g,c,I)},function(){Z27(c)}):(k=_.Ss().resolve(_.NN(_.cg)))&&k.requestDataForServiceEndpoint(c).then(function(I){oEo(e,g,c,I)},function(){Z27(c)})};
oEo=function(e,g,c,k){_.oC(g,"yt-service-request-completed",k);k.code&&k.code=="ERROR"?Z27(c):((k=k.data.commands)&&_.Bm(e,k,g),(e=_.x(c,_.dp4).serializedYpcResumeFlowLoggingParams)&&e&&SG("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",e))};
Z27=function(e){(e=_.x(e,_.dp4).serializedYpcResumeFlowLoggingParams)&&e&&SG("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",e,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
t9Q=function(e){e=e===void 0?{}:e;_.Ss().resolve(_.fEO).showFeedbackDialog(e.customProductData,e.feedbackContent,e.onFeedbackSubmitted,e.bucket)};
Bgj=function(e){e=e===void 0?{}:e;_.Ss().resolve(_.fEO).showHelpDialog(e.helpContext,e.articleId,e.productData)};
Ng7=function(){Bgj()};
Ssq=function(){t9Q()};
Kng=function(e,g,c){var k,I,J,q,L,n,R;return _.r(function(W){switch(W.nextAddress){case 1:k=_.x(e,yL0);if((I=k)==null?0:I.productId){n={productId:k.productId,bucket:k.bucket,enableAnonymousFeedback:(L=k.enableAnonymousFeedback)!=null?L:!0,allowNonLoggedInFeedback:!0};R={feedbackChoice:c.feedbackChoice};if(!_.G("web_collect_offline_state")){W.jumpTo(8);break}_.lj(W,9);return W.yield(dWl(R),11)}q={bucket:(J=k)==null?void 0:J.bucket};if(!_.G("web_collect_offline_state")){W.jumpTo(4);break}q.customProductData=
{};_.lj(W,5);return W.yield(dWl(q.customProductData),7);case 7:_.zn(W,4);break;case 5:_.Qb(W);case 4:t9Q(q);W.jumpTo(0);break;case 11:_.zn(W,8);break;case 9:_.Qb(W);case 8:_.NTC(R),_.BTC("GFEEDBACK",R),k.productId==="5295751"&&(R.client_attestation=Number(_.uo("CATSTAT",0))),k.productId==="5295751"&&(R.client_time=Date.now()/1E3/3600),k.productId==="5295751"&&(R.original_playback_id=_.iEn||""),_.Vpn(n,R),_.Uh(W)}})};
O2g=function(e){if(e=_.x(e,_.BtU)){var g={bucket:e.bucketIdentifier};e.additionalDatas&&(g.customProductData={},e.additionalDatas.forEach(function(c){if(c=c.userFeedbackEndpointProductSpecificValueData)g.customProductData[c.key]=c.value}));
t9Q(g)}};
M9D=function(e){var g=_.dF.getInstance();var c=_.C_("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var k=_.C_("DELETE",void 0,"Delete"),I=_.C_("CANCEL",void 0,"Cancel");c=vQx(c,void 0,k,I,{signal:"DELETE_ALL_DOWNLOADS"});_.Rg(g,[{openPopupAction:c}],e)};
eex=function(){return _.r(function(e){return e.nextAddress==1?e.yield(_.Ss().resolve(_.mtS),2):e.yield(C20(),0)})};
goQ=function(e){var g,c;return _.r(function(k){return k.nextAddress==1?(c=(g=_.x(e,_.sf))==null?void 0:g.targetId)?k.yield(_.Ss().resolve(_.mtS),3):k.jumpTo(0):k.yield(_.Ss().resolve(_.rt).deleteVideo(c),0)})};
kSv=function(e){var g,c;return _.r(function(k){return k.nextAddress==1?(c=(g=_.x(e,_.sf))==null?void 0:g.targetId)?k.yield(_.Ss().resolve(_.mtS),3):k.jumpTo(0):k.yield(cag(_.Ss().resolve(_.rt),c),0)})};
Jao=function(e){var g,c;return _.r(function(k){return(c=(g=_.x(e,_.sf))==null?void 0:g.targetId)?k.yield(I7X(c),0):k.jumpTo(0)})};
wNX=function(){_.G("kevlar_woffle_refresh_dl_load_killswitch")||vov()};
LFM=function(){_.G("kevlar_woffle")&&_.Yv.instance&&qRj()};
a7g=function(e){var g;if((g=_.x(e,_.yF))==null||!g.videoId)return!1;raz(_.Ss().resolve(_.rt),_.x(e,_.yF),e.clickTrackingParams);return!0};
ReQ=function(e){var g;if((g=_.x(e,_.Kx))==null||!g.playlistId)return!1;noj(_.Ss().resolve(_.rt),_.x(e,_.Kx),e.clickTrackingParams);return!0};
WFO=function(e){var g=_.x(e,_.xTZ);(g==null?void 0:g.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(g==null?void 0:g.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||EoM(_.Ss().resolve(_.rt),_.x(e,_.xTZ))};
hex=function(e){e=_.x(e,_.yFw);var g;(e==null?0:(g=e.actions)==null?0:g.length)&&bZ7(e)};
xnv=function(e){var g,c;return _.r(function(k){g=_.x(e,XNo);return(c=g)!=null&&c.localWatchHistoryCommandType?k.yield(GS7(g),0):k.return()})};
$nD=function(){return _.r(function(e){return e.yield(Dnl(),0)})};
YR7=function(e){setTimeout(function(){requestAnimationFrame(e)},80)};
f7S=function(e){return Object.entries(e).map(function(g){return g.join(":")}).join(";")};
iZS=function(e){var g,c,k;_.r(function(I){if(I.nextAddress==1)return I.yield(j0S(),2);g=I.yieldResult;c=_.yJ.instance;switch(g){case "granted":k=e.getLocationCommand;break;case "denied":k=e.openDeniedDialogAction;break;case "prompt":k=e.openCollectionDialogAction;break;default:k=e.openCollectionDialogAction}k&&c.resolveCommand(k);_.Uh(I)})};
j0S=function(){var e,g;return _.r(function(c){if(c.nextAddress==1)return e="prompt",navigator.permissions?c.yield(navigator.permissions.query({name:"geolocation"}),3):c.jumpTo(2);c.nextAddress!=2&&(g=c.yieldResult,e=g.state);return c.return(e)})};
mnQ=function(){_.r(function(e){return e.yield(_.PV7(),0)})};
pNg=function(){var e,g,c;return _.r(function(k){if(k.nextAddress==1)return e=_.Ss().resolve(_.kv),e?k.yield(_.jt(e,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.mN(Error("Bm")),k.return(void 0));if(g=k.yieldResult){if(g.errorMetadata)return _.mN(Error("Cm`"+g.errorMetadata.status+"`"+g.error)),k.return(void 0);c=g.datasyncIds;_.zvX=c.length;return k.return(c)}_.mN(Error("Dm"));return k.return(void 0)})};
TGQ=function(){pNg().then(function(e){e&&(udq(e),K7M(e),aO0(e),HUo(e))})};
l7j=function(e){_.ft.addLowPriorityJob(function(){var g,c,k,I,J;return _.r(function(q){switch(q.nextAddress){case 1:if(_.G("ytidb_clear_optimizations_killswitch")){q.jumpTo(2);break}g=_.nf("clear");if(g.startsWith("V")&&g.endsWith("||")){var L=[g];udq(L);K7M(L);aO0(L);HUo(L);return q.return()}c=nn0();k=Qql();return q.yield(OAv(),3);case 3:return I=q.yieldResult,q.yield(dRv(),4);case 4:if(J=q.yieldResult,!(c||k||I||J))return q.return();case 2:e.isNetworkAvailable()?TGQ():e.listenOnce("publicytnetworkstatus-online",
TGQ),_.Uh(q)}})})};
qC=function(e){e={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.PL(e)}}}};_.yJ.instance&&_.yJ.instance.resolveCommand(e)};
AaX=function(e){if(e){var g=_.gL();_.BU(g,3854,void 0,{layer:0,parentLayer:4});switch(e){case 1:var c=238708;break;case 2:c=238715;break;case 3:c=238710;break;case 6:c=238709}c&&(e=_.eU(g,{veType:c}))&&_.yW(g,e)}};
s0j=function(e){if(e){var g=_.gL();_.BU(g,3854,void 0,{layer:0,parentLayer:4});switch(e){case 1:var c=238714;break;case 2:c=238711;break;case 8:c=238709;break;case 7:c=238713;break;case 3:case 4:case 5:c=238712}c&&(e=_.eU(g,{veType:c}))&&_.yW(g,e)}};
FFM=function(e){switch(e.latencyType){case 0:_.EV("consent_primitive_flow");_.Wh("cpit",e.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Wh("cpist",e.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Wh("cprtif",e.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Wh("cprtli",e.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Wh("cprt",e.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Wh("cpdt",e.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Wh("cpjct",e.timestampEpochMillis,"consent_primitive_flow")}};
NG7=function(e,g){var c,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q;return _.r(function(y){switch(y.nextAddress){case 1:_.lj(y,2);(k=(c=_.x(e,u9z))==null?void 0:c.serializedConsentRequest)||(k=(I=_.x(e,dnO))==null?void 0:I.serializedConsentRequest);k&&(J=zeS(_.CC(k)));if(J===void 0)return y.return();q=HZQ(J);q.latencyCallback=FFM;g&&Q0O(q,function(){g.then(function(O){O.pauseVideo();(new UnQ).increment()})});
return((L=_.x(e,u9z))==null?void 0:L.consentAction)==="CONSENT_ACTION_PREWARM"||((n=_.x(e,dnO))==null?void 0:n.consentAction)==="CONSENT_ACTION_PREWARM"?y.yield(ooS(q),5):y.yield(ZZj(q),6);case 6:R=y.yieldResult;W=_.JP(R,L9);if(W===1){if(((b=_.hP(R,Vc0,1,L9))==null?void 0:_.EU(b,1))===1||((h=_.hP(R,Vc0,1,L9))==null?void 0:_.EU(h,1))===2||((X=_.hP(R,Vc0,1,L9))==null?void 0:_.EU(X,1))===3)_.x(e,dnO)?qC(_.C_("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
qC(_.C_("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));AaX((D=_.hP(R,Vc0,1,L9))==null?void 0:_.EU(D,1),_.z1(R,tco,3,_.HH()))}else W===2?(((f=BGl(R))==null?void 0:_.EU(f,1))===5?_.x(e,dnO)?qC(_.C_("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):qC(_.C_("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((l=BGl(R))==null?void 0:_.EU(l,1))===1||((A=BGl(R))==null?void 0:_.EU(A,1))===4?
qC(_.C_("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((d=BGl(R))==null?void 0:_.EU(d,1))===7&&((S=J)==null?void 0:(V=_.Ml(S,r5,4))==null?void 0:_.EU(V,4))!==1&&qC(_.C_("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),s0j((Q=BGl(R))==null?void 0:_.EU(Q,1))):qC(_.C_("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));y.jumpTo(5);break;case 5:_.zn(y,0);break;case 2:_.Qb(y),qC(_.C_("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.Uh(y)}})};
yav=function(){if(!SRg.has("Worker")){SRg.set("Worker",!0);var e={api:"BROWSER_API_WEB_WORKER"};e.available="Worker"in window?!0:!1;_.Y2("apiTest",e)}};
KFj=function(e){return typeof e==="undefined"?"-1":String(Math.ceil(e/1048576))};
e6M=function(e,g){OZv(new Mcx(_.x(g,CVq).addToken,_.x(g,CVq).commonToken)).then(function(){_.oC(e,"yt-invoke-instrument-manager-action-completed")},function(c){_.oC(e,"yt-invoke-instrument-manager-action-error",c)})};
aJ=function(){return _.uo("HTML_DIR")==="rtl"};
gbz=function(){var e,g;return(g=(e=window).matchMedia)==null?void 0:g.call(e,"(prefers-reduced-motion: reduce)").matches};
cUD=function(e){var g=_.Ss().resolve(_.NN(_.JG));if(g&&g.isAnyTransitionEnabled){var c={};g.viewTransitionCoordinator.registerElement(e,(c.slide="miniplayer-page-transition",c["lockup-to-watch"]="miniplayer-page-transition",c["learning-journey"]="miniplayer-page-transition",c))}};
k3j=function(e,g,c){return{horizontalAlignment:e.x+c.width/2<g.width/2?"west":"east",verticalAlignment:e.y+c.height/2<g.height/2?"north":"south"}};
JUl=function(e,g,c,k,I){I=I===void 0?new _.pr(0,0):I;e=I2q(e,g,c,k,!1);return new _.pr(e.x+I.x,e.y+I.y)};
I2q=function(e,g,c,k,I){I=(I===void 0?0:I)?400:0;return new _.pr(e==="west"?16+(aJ()?I:0):c.width-k.width-16-(aJ()?0:I),g==="north"?16:c.height-k.height-16)};
vbo=function(e,g){var c=0;e&&(c+=76);g&&(c+=285);return c};
wRl=function(e){return _.$V(e)};
qGz=function(e){var g=1;e=e.split(":");for(var c=[];g>0&&e.length;)c.push(e.shift()),g--;e.length&&c.push(e.join(":"));return c};
LEj=function(e){var g=new _.C2;return _.Xv(g,11,e)};
rUS=function(e){var g={};e=e.getAllResponseHeaders().split("\r\n");for(var c=0;c<e.length;c++)if(!_.rV(e[c])){var k=qGz(e[c]),I=k[0];k=k[1];if(typeof k==="string"){k=k.trim();var J=g[I]||[];g[I]=J;J.push(k)}}return _.n0.map(g,function(q){return q.join(", ")})};
CmM=function(e,g){return e.JSC$10106_xhr_?e.JSC$10106_xhr_.getResponseHeader(g):null};
a2X=function(e,g){if(e.isDisposed())throw Error("Fa");e.cU.pG("n");var c=_.$o(e.cU,function(){return e.puE([g.zA,g.cYL,g.e4b,g.aJY])},"n");
e.cU.o1t(c.length);e.cU.gF();return c};
nbS=function(e,g,c){Array.isArray(c)||(c=[String(c)]);_.PfI(e.JSC$10342_queryData_,g,c);return e};
R6S=function(e){var g=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Sc(e);e.keyMap_.forEach(function(c,k){_.Hz(g,k)||this.remove(k)},e)};
qRj=function(){var e=_.Yv.instance;_.r(function(g){return e.deferredInstallPrompt?g.yield(e.deferredInstallPrompt.prompt(),0):g.jumpTo(0)})};
EbX=function(e,g,c){if(_.Bz(e))_.o7(e,g,c);else for(e=_.Dcw(e);;){var k=e.next();if(k.done)break;g.call(c,k.value,void 0,e)}};
WEM=function(e,g){var c=[];EbX(g,function(k){try{var I=_.LM.prototype.getWrapper.call(this,k,!0)}catch(J){if(J=="Storage: Invalid value was encountered")return;throw J;}I===void 0?c.push(k):_.xcq(I)&&c.push(k)},e);
return c};
O_j=function(e,g){WEM(e,g).forEach(function(c){_.LM.prototype.remove.call(this,c)},e)};
bwx=function(e){var g=_.xL;g._minimumZ=Math.max(g._minimumZ,e)};
h6S=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];XRO=function(e,g){_.Fm(e.vm);e.vm=g};
G3x=function(e,g,c,k){e.setState(5);var I=!!e.l0m&&h6S.includes(_.V9(e.l0m)||"");try{var J=new _.Yo({program:g,globalName:c,noW:{disable:!_.G("att_web_record_metrics")||!_.G("att_skip_metrics_for_cookieless_domains_ks")&&I,eD:"aGIf"}});J.cQm.then(function(){e.setState(6);k&&k(g)});
XRO(e,J)}catch(q){e.setState(7),q instanceof Error&&_.mN(q)}};
xDq=function(e,g,c,k,I,J){var q=q===void 0?"trayride":q;c?(e.setState(2),_.D5(_.Ry(c),function(){if(window[q])G3x(e,k,q,I);else{e.setState(3);var L=_.zFq(c),n=document.getElementById(L);n&&(_.gyt(L),n.parentNode.removeChild(n));_.mN(new _.E2("BL:ULB",c))}},J)):g?(J=_.C0("SCRIPT"),g instanceof _.ry?_.RP(J,g):J.textContent=g,J.nonce=_.LY(document),document.head.appendChild(J),document.head.removeChild(J),window[q]?G3x(e,k,q,I):(e.setState(4),_.mN(new _.E2("BL:ULBJ")))):_.mN(new _.E2("BL:ULV"))};
DDq=function(){this.state=1;this.vm=null;this.l0m=void 0};
_.v=DDq.prototype;_.v.initialize=function(e,g,c,k){this.l0m=k;if(e.program){var I;k=(I=e.interpreterUrl)!=null?I:null;if(e.interpreterSafeScript)I=_.YzU(e.interpreterSafeScript);else{var J;I=(J=e.interpreterScript)!=null?J:null}e.interpreterSafeUrl&&(k=_.j6(e.interpreterSafeUrl).toString());xDq(this,I,k,e.program,g,c)}else _.mN(Error("tf"))};
_.v.isInitialized=function(){return!!this.vm};
_.v.getState=function(){return this.state};
_.v.isLoading=function(){return this.state===2};
_.v.invoke=function(e){e=e===void 0?{}:e;var g;this.vm?g=a2X(this.vm,{zA:e}):g=null;return g};
_.v.dispose=function(){XRO(this,null);this.setState(8)};
_.v.setState=function(e){this.state=e};
var $D0=function(e,g){return e.vm.snapshot(g)},YGX=function(e,g){var c=_.MN("botguard_async_snapshot_timeout_ms",3E3);
g=g===void 0?{}:g;c=c===void 0?3E3:c;return e.vm?new Promise(function(k,I){var J=!1,q=_.ft.addJob(function(){J=!0;I(Error("uf"))},1,c);
e.vm?$D0(e,{zA:g}).then(function(L){_.ft.cancelJob(q);J||k(L)}).catch(function(L){_.ft.cancelJob(q);
J||I(L)}):(_.ft.cancelJob(q),k(null))}):Promise.resolve(null)},f2v=["att/log"],w9v;
w9v={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var juO={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},iwO=function(e,g){return _.CA(e,{mode:"readwrite",enableRetries:!0},function(c){return _.b8v(c,g,"settingEntity")})},PNz=function(e,g,c){return _.CA(e,{mode:"readonly",
enableRetries:!0},function(k){return _.qKv(k,g,c)})},mDQ=function(e){if(!e.storage)return!1;
a:{if(e.storage){try{var g=e.storage.get("TLPQtimestamp")}catch(c){}e=Number(g);if(!isNaN(e))break a}e=void 0}return e?Date.now()-e<864E5:!1},pRg=function(e){if(e.storage){try{var g=e.storage.get("TLPQindex")}catch(c){}e=Number(g);
if(!isNaN(e))return e}},n9=function(e){var g=_.iE();
return _.wEY(g,e,1)},TQl=function(e,g){e.queueProxy&&g.forEach(function(c){if(c.videoId&&c.trackingParams&&e.queueProxy instanceof _.Dy){var k=_.EM();
e.queueProxy.attributionData.set(c.videoId,{enqueueingVe:_.Jb(c.trackingParams).getAsJson(),enqueueingCsn:k?k:void 0,clientEnqueueingTimeMs:Math.floor((0,_.yr)()).toString()})}})},l2v=function(e){var g=_.t5q(e);
g!=e.currentSnapState_&&(e.currentSnapState_=g,e.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},RJ=function(e){this.JSC$13541_networkManager_=e;
this.partCallbacks_=[]};
RJ.prototype.getCacheKeyForEndpoint=function(e){return _.IIv(e,!1)};
RJ.prototype.onPartsCallback_=function(e){this.partCallbacks_.forEach(function(g){e&&g(e)})};
var Ea=function(e,g,c){RJ.call(this,e);this.player_=g;this.autoplayData_=c};
_.Y(Ea,RJ);Ea.prototype.getCacheKeyForEndpoint=function(e){return _.IIv(e,!!this.autoplayData_)};
Ea.prototype.getTempData=function(e,g){g=g.timeBeforeNextVideo;e={itct:e.clickTrackingParams,lact:_.S6(),pbis:g,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(e.autonav=1);return e};
Ea.prototype.getXhrParams=function(e){return Object.assign({pbj:"prefetch"},e)};
Ea.prototype.getParams=function(e){e={frags:e.fragmentsRequested.join(",")};_.G("kevlar_droppable_prefetchable_requests")&&(e.prefetch=1);return e};
var AUX=function(e){e.playerEvents_.forEach(function(g){e.player.removeEventListener(g.eventName,g.callback)});
e.playerEvents_.length=0},sux=function(e,g,c){this.player=e;
this.JSC$13551_taskManager=g;this.prefetchDelay=c;this.completionResolver_=null;this.playerEvents_=[]};
sux.prototype.start=function(){var e=this;this.completionResolver_=_.i6();_.WN(this.completionResolver_.promise,function(){AUX(e);e.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var FEq=function(e,g,c){e.player.addEventListener(g,c);e.playerEvents_.push({eventName:g,callback:c})},uGD={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},dDD={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},z67=function(e,g,c){sux.call(this,e,g,c);this.cueId_="playbackTrigger-"+Math.random()};
_.Y(z67,sux);
z67.prototype.prepareTrigger=function(e){var g=this,c=this.player.getDuration(),k=this.player.getVideoData(),I=k.isLive&&k.hasProgressBarBoundaries;if(I&&k.progressBarEndPositionUtcTimeMillis){var J=k.progressBarEndPositionUtcTimeMillis/1E3;isNaN(J)||(c=J)}var q=0;this.prefetchDelay>=0?I?k.progressBarStartPositionUtcTimeMillis&&(k=k.progressBarStartPositionUtcTimeMillis/1E3,isNaN(k)||(q=k+this.prefetchDelay)):q=this.prefetchDelay:q=c+this.prefetchDelay;I?this.player.addUtcCueRange(this.cueId_,q,c):
this.player.addCueRange(this.cueId_,q,c);_.WN(e.promise,function(){g.player.removeCueRange(g.cueId_)});
FEq(this,"onCueRangeEnter",function(L){L==g.cueId_&&e.resolve(c-q)})};
var HwD=function(e,g){e.fragmentConfiguration_[g].requiredKeys.every(function(c){return!!e.prefetchedData_[c]})&&(e.validatedFragments_.push(g),g=e.missingFragments_.indexOf(g),g!==-1&&e.missingFragments_.splice(g,1))},Quv=function(e){e.prefetchedFragments_.forEach(function(g){HwD(e,g)})},UDX=function(e,g,c){this.pageFragments_=e;
this.prefetchedFragments_=g;this.fragmentConfiguration_=dDD;this.prefetchedData_=c;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Quv(this)},obS=function(){},ZwD=function(e){this.JSC$13565_playlistManager_=e};
_.Y(ZwD,obS);ZwD.prototype.getPrefetchEndpoint=function(){return this.JSC$13565_playlistManager_.getAutoplayEndpoint()};
var Vpx=function(e){this.autonavEndpoints_=e};
_.Y(Vpx,obS);Vpx.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var tpD=function(e,g,c,k,I){this.autonavEndpoints=e;this.foregroundTrigger=g;this.backgroundTrigger=c;this.pageType=k;this.isInPlaylist=I},BQ7=function(e,g){if(e.webPrefetchData&&e.webPrefetchData.navigationEndpoints&&e.webPrefetchData.navigationEndpoints.length){e=e.webPrefetchData.navigationEndpoints;
var c=_.x(e[0],_.Pm);if(c.watchEndpointSupportedPrefetchConfig&&c.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var k=c.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;c=k.playbackRelativeSecondsPrefetchCondition;c=typeof c==="number"&&Math.abs(c)<g.videoDuration?c:void 0;k=k.countdownUiRelativeSecondsPrefetchCondition;k=typeof k!=="number"||_.G("prefetch_job_config_cleanup_ks")&&g.inPlaylist?void 0:k;if(typeof k==="number")return new tpD(e,g.makeUpNextTrigger(k),g.makePlaybackTrigger(k),
"watch",g.inPlaylist);if(typeof c==="number")return new tpD(e,g.makePlaybackTrigger(c),null,"watch",g.inPlaylist)}}},NQo=function(e){return e.prefetchJobConfig_.backgroundTrigger?_.HV(cZO)()==0?e.prefetchJobConfig_.backgroundTrigger:e.prefetchJobConfig_.foregroundTrigger:e.prefetchJobConfig_.foregroundTrigger},SG0=function(e){_.a0(document,"visibilitychange",e.onVisibilityChange_,!1,e)},W7=function(e){RJ.call(this,e)};
_.Y(W7,RJ);W7.prototype.getCacheKeyForEndpoint=function(e){return RJ.prototype.getCacheKeyForEndpoint.call(this,e)};
W7.prototype.getTempData=function(){return{}};
W7.prototype.getXhrParams=function(e){return e};
W7.prototype.getParams=function(){return{}};
var yUD=function(e,g,c){var k=e.prefetchDelay*1E3;if(Math.abs(k)>g)c.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var I=k,J=g-k;k<0&&(I=g+k,J=Math.abs(k));var q=e.JSC$13551_taskManager.addJob(function(){c.resolve(J/1E3)},10,I);
c.promise.thenCatch(function(){e.JSC$13551_taskManager.cancelJob(q)})}},KEQ=function(e,g,c){sux.call(this,e,g,c)};
_.Y(KEQ,sux);KEQ.prototype.prepareTrigger=function(e){var g=this;FEq(this,"onAutonavCoundownStarted",function(c){yUD(g,c,e)})};
var Owj=function(e){e.pendingPrefetchJob_&&(e.pendingPrefetchJob_.cancel(),e.pendingPrefetchJob_=null)},Mpx=function(e,g,c){if(!e.triggeredTargets.has(g)){var k=_.L8I(e,g);
k.action=c;_.qqw(e,g,k)}},CNS=function(e){_.gMs();
_.eqt("cpt")&&_.mN(Error("mh"));_.kp.requestAnimationFrame(function(){_.kp.setTimeout(function(){_.Wh("cpt");var g=_.Xb("vpl"),c=_.Xb("cpt");g&&c&&_.Wh("ol",Math.max(g,c))})});
try{_.Wh("fr_s"),e()}catch(g){_.jW(g)}_.kp.requestAnimationFrame(function(){_.Wh("bcp")})},etX={FILLED:"youtube_fill",
OUTLINE:"youtube_outline"},gHg=function(e,g){e.serviceEndpointHandlers.push(g)},cSX=function(e,g){g=e.pendingPages_.indexOf(g);
g>-1&&e.pendingPages_.splice(g,1)},kBQ=function(e,g){var c=_.mCq.indexOf(g);
c>-1&&_.mCq.splice(c,1);e.targetPage_==g?(e.abort(),_.T54(e)):cSX(e,g)},IxX=function(e,g){e.reloadContinuationItemsCommandMatcher=g},JSj=function(e,g,c){g&&c&&(e.videos.forEach(function(k){k.videoId===g&&(k.itemId=c)}),e.recommendedVideos.forEach(function(k){k.videoId===g&&(k.itemId=c)}))},vHD=function(e){this.onStepChangeCallback=function(){};
this.flowRenderer=e};
vHD.prototype.getCurrentStep=function(){var e=this,g;return((g=this.flowRenderer.steps)!=null?g:[]).map(function(c){return _.x(c,_.vU)}).find(function(c){return c&&c.stepId===e.currentStepId})};
var wkg=function(e,g){var c=g.flowStateEntityKey,k=e.flowStates.get(c);if(k)return k;g=new vHD(g);e.flowStates.set(c,g);return g},qS7=function(e,g){for(var c=_.w(e.flowStates.entries()),k=c.next();!k.done;k=c.next()){var I=_.w(k.value);
k=I.next().value;I=I.next().value;if(I.flowRenderer.targetId===g){e.flowStates.delete(k);break}}},Lyo=function(e,g){e.onStepChangeCallback=g;
e.onStepChangeCallback(e.getCurrentStep())},rSQ=function(e,g){var c=e.getCurrentStep();
if(c&&c.stepId===g)return!0;var k;return((k=e.flowRenderer.steps)!=null?k:[]).map(function(I){return _.x(I,_.vU)}).find(function(I){return I&&I.stepId===g})?(e.currentStepId=g,e.onStepChangeCallback(e.getCurrentStep()),!0):!1},axv=function(e,g,c,k){g={challenge:g};
c&&(g.webResponse=c);return _.Yq(e.innertubeTransportService,g,_.lm(f2v),k)},nHS=function(e,g,c){if(!g.challenge)throw Error("ti");
if(g.botguardData&&g.botguardData.program){var k=new DDq;k.initialize(g.botguardData,function(){YGX(k,{atr_challenge:g.challenge}).then(function(I){if(!I)throw Error("ui");return axv(e,g.challenge,I,c)}).catch(function(I){_.mN(I);
return axv(e,g.challenge,void 0,c)})},void 0)}else axv(e,g.challenge,void 0,c)},RtQ=function(e,g,c){var k={};
g.ids&&(k.ids=[].concat(_.KY(g.ids)));g.engagementType&&(k.engagementType=g.engagementType);return _.Yq(e.innertubeTransportService,k,_.lm(_.jfv),c).then(function(I){if(!I)throw new _.E2("GetAttestationChallenge returned falsy");nHS(e,I,c)}).thenCatch(function(I){_.jW(I)})},EHQ=function(e,g,c){return new _.Il(function(k,I){var J;
return _.r(function(q){if(q.nextAddress==1){var L=q.yield,n=g.engagementType,R=g.ids,W={};R=_.w(R!=null?R:[]);for(var b=R.next();!b.done;b=R.next())b=b.value,b.encryptedVideoId?W.encryptedVideoId=b.encryptedVideoId:b.externalChannelId?W.externalChannelId=b.externalChannelId:b.commentId?W.commentId=b.commentId:b.externalOwnerId?W.externalOwnerId=b.externalOwnerId:b.artistId?W.artistId=b.artistId:b.playlistId?W.playlistId=b.playlistId:b.externalPostId?W.externalPostId=b.externalPostId:b.shareId?W.shareId=
b.shareId:b.postPlayNonce&&(W.postPlayNonce=b.postPlayNonce);return L.call(q,JZj(n,W),2)}J=q.yieldResult;if(!J.challenge)return _.mN(Error("vi")),RtQ(e,g,c).then(k,I),q.return();L=J;n={challenge:L.challenge};n.webResponse=L.webResponse;n.engagementType=g.engagementType;n.ids=g.ids;_.Yq(e.innertubeTransportService,n,_.lm(f2v),c).then(k,I);_.Uh(q)})})},qUS=function(e,g){var c,k,I,J;
_.r(function(q){if(q.nextAddress==1){c=_.x(g,_.DEs);if(!(c&&c.listId&&e.response&&e.response.playingVideoId)||e.listId!==c.listId)return q.return();e.index===void 0&&(e.index=0);return q.yield(_.NXM(e.JSC$13404_playlistNetworkManager,c.listId,e.index,e.response.playingVideoId),2)}k=q.yieldResult;if(!k)return q.return();I=k.playlistId;J=k.playlistPanelRenderer;e.setPlaylistData(I,J,k.autoplayRenderer);_.Uh(q)})},Wyv=function(e,g,c){var k=e.getParams(c),I=_.l9U(g,k),J=e.getTempData(g,c);
J.endpoint=JSON.stringify(g);_.G("enable_unknown_lact_fix_on_html5")&&(_.Ss().resolve(_.et),J.lact=_.S6());var q={headers:{"X-YouTube-STS":_.uo("STS"),"x-youtube-csoc":1}};_.Ar(I,J);return new _.Il(function(L,n){var R=e.getXhrParams(k),W;_.G("kevlar_cache_on_ttl_player")&&(W=_.Ss().resolve(_.rl));W&&_.tQo(W,g)?_.O0o(W,g,J,window.location.href).then(function(b){b?L(b):n()},n):_.fNI(e.JSC$13541_networkManager_,g,R,e.onPartsCallback_.bind(e),q).then(function(b){b?L(b):n()},n)})},bQM=function(e,g){e.triggerPromise_=
g.start();
e.triggerPromise_.then(function(c){var k=e.prefetchEndpointProvider_.getPrefetchEndpoint();if(k){var I=uGD[e.prefetchJobConfig_.pageType].prefetchedFragments;e.prefetchRequestPromise_=Wyv(e.JSC$13577_networkPrefetchRequest_,k,{fragmentsRequested:I,timeBeforeNextVideo:c});e.prefetchResponseCacheKey_=e.JSC$13577_networkPrefetchRequest_.getCacheKeyForEndpoint(k);SG0(e);e.prefetchRequestPromise_.then(function(J){e.storePrefetchedDataCallback_(e.prefetchResponseCacheKey_,J);if(_.G("web_prefetch_preload_video")&&
I.length===1&&I[0]==="pl"&&J&&!J.playerAds&&!J.adPlacements){var q=_.x(k,_.eh),L=q!=null,n={raw_player_response:J,watch_endpoint:q};(J=_.Ss().resolve(L?_.pXZ:_.QF))&&k&&J.then(function(R){L&&_.G("web_queue_preload_video")?(n.prefer_gapless=!0,R.queueNextVideo(n)):R.preloadVideoByPlayerVars(n)})}})}})},b9=function(e,g,c,k){this.prefetchEndpointProvider_=e;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=g;this.prefetchJobConfig_=c;this.JSC$13577_networkPrefetchRequest_=k;this.prefetchResponseCacheKey_=null};
b9.prototype.enqueue=function(){this.triggerPromise_||(bQM(this,NQo(this)),_.iK(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
b9.prototype.resolve=function(){this.cancel()};
b9.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.");SG0(this)};
b9.prototype.onVisibilityChange_=function(){var e=this;_.HV(cZO)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){e.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||bQM(this,NQo(this))};
var hto=function(e,g,c,k,I){g&&(g==null?0:g.videoId)&&c&&c.entries&&_.G("kevlar_enable_shorts_prefetch_in_sequence")&&(Owj(e),g=c.entries.map(function(J){var q;return(q=_.x(J.command,_.eh))==null?void 0:q.videoId}).indexOf(g.videoId),c=c.entries[g+1],c!=null&&c.command&&!_.x(c==null?void 0:c.command,_.hR)&&(k=new tpD([c.command],new z67(k,_.ft,1),null,"shorts",!1),e.pendingPrefetchJob_=new b9(new Vpx(k.autonavEndpoints),function(){return!1},k,new W7(I)),e.pendingPrefetchJob_.enqueue()))},XkD=function(e,
g,c,k,I,J){var q=_.up.getInstance();
if(!_.G("block_all_player_prefetch_requests")){Owj(e);var L=!!c.getPlaylistId(),n=c.getVideoData().isLive&&c.getVideoData().hasProgressBarBoundaries;if((q.getState()==2||L||n)&&(!c.getVideoData().isLive||n)){q={inPlaylist:L,videoDuration:c.getDuration(),makeUpNextTrigger:function(W){return new KEQ(c,_.ft,W)},
makePlaybackTrigger:function(W){return new z67(c,_.ft,W)}};
var R=BQ7(g,q);R&&(e.pendingPrefetchJob_=new b9(R.isInPlaylist?new ZwD(I):new Vpx(R.autonavEndpoints),function(W,b){b=new UDX(uGD[R.pageType].pageFragments,uGD[R.pageType].prefetchedFragments,b);return _.CYk(b)?(e.prefetchCache_.set(W,b),!0):!1},R,new Ea(k,c,J,I)),e.pendingPrefetchJob_.enqueue())}}},GBD=function(){var e=_.po();
e.signals.parkOrScheduleJob(function(){var g=e.storage;if(g.storage)if(mDQ(g)){var c=g.getPlaylistId();g=pRg(g);c=!!c&&g!==void 0}else g.clear(),c=!1;else c=!1;if(c){c=e.JSC$13404_pageManager.isOnWatch();a:{var k=e.storage;if(k.storage&&mDQ(k)&&(g=k.getPlaylistId(),k=pRg(k),g&&k!==void 0)){c={recoverPlaylistCommand:{listId:g,index:k,openMiniplayer:!c,openListPanel:c,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}c=void 0}c&&_.Rg(e.JSC$13404_actionRouter,[c],null)}},0,"ma")},x9v=function(e,g,c,
k,I,J){var q=_.VF(7111);
_.Nd(e.JSC$18946_screenManager,q,J?_.Jb(J):void 0);_.yW(e.JSC$18946_screenManager,q,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:k,offlineId:g,offlineabilityFormatType:c,isDefaultFormatType:I==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:I}})},D97=function(e,g,c,k,I){var J,q,L,n,R;
return _.r(function(W){if(W.nextAddress==1)return W.yield(e.JSC$18946_playerApiPromise,2);J=W.yieldResult;x9v(e,g,c,"OFFLINE_OBJECT_TYPE_PLAYLIST",k,I);if(L=_.W2v[e.entityTypeMap.listEntityType])R={},q=(R[L]={maximumDownloadQuality:(n=c)!=null?n:void 0},R);return W.yield(J.queueOfflineAction(g,e.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",q),0)})},$9v=function(e,g){var c,k,I,J;
return _.r(function(q){if(q.nextAddress==1)return q.yield(e.JSC$18946_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3){c=q.yieldResult;if(!c)return _.mN(new _.E2("PES is undefined")),q.return();k=_.Bh(g,"downloadStatusEntity");return q.yield(PNz(c,k,"downloadStatusEntity"),3)}I=q.yieldResult;return q.return((J=I)==null?void 0:J.downloadState)})},YSD=function(e,g,c,k,I){var J,q,L,n,R,W;
return _.r(function(b){switch(b.nextAddress){case 1:return b.yield(e.JSC$18946_playerApiPromise,2);case 2:J=b.yieldResult;x9v(e,g,c,"OFFLINE_OBJECT_TYPE_VIDEO",k,I);if(L=_.W2v[e.entityTypeMap.singleEntityType])R={},q=(R[L]={maximumDownloadQuality:(n=c)!=null?n:void 0},R);return b.yield($9v(e,g),3);case 3:W=b.yieldResult;if(W!=="DOWNLOAD_STATE_USER_DELETED"){b.jumpTo(4);break}return b.yield(e.deleteVideo(g),4);case 4:return b.yield(J.queueOfflineAction(g,e.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
q),0)}})},fxQ=function(e,g,c,k,I){return _.r(function(J){return J.nextAddress==1?J.yield(e.deleteVideo(g,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):J.yield(YSD(e,g,c,k,I),0)})},jgQ=function(e,g,c){var k,I;
return _.r(function(J){if(J.nextAddress==1)return J.yield(e.JSC$18946_playerApiPromise,2);k=J.yieldResult;I=_.Bh(g,"mainVideoDownloadStateEntity");return J.yield(k.updateDownloadState(I,c),0)})},I7X=function(e){var g=_.Ss().resolve(_.rt);
return _.r(function(c){if(c.nextAddress==1)return g.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&g.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?c.jumpTo(2):c.yield(g.resumeVideoDownload(e),2);if(c.nextAddress!=4)return c.yield(jgQ(g,e,g.previousDownloadStateForVideo[e]),4);delete g.previousDownloadStateForVideo[e];_.Uh(c)})},cag=function(e,g){var c;
return _.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$18946_playerApiPromise,2);c=k.yieldResult;return k.yield(c.queueOfflineAction(g,e.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},C20=function(){var e=_.Ss().resolve(_.rt),g,c;
return _.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$18946_playerApiPromise,2);if(k.nextAddress!=3)return g=k.yieldResult,c={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},k.yield(g.queueOfflineAction("!*$_ALL_ENTITIES_!*$",e.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",c),3);var I=e.JSC$18946_commandHandler,J=I.resolveCommand,q=_.C_("DELETING_ALL",void 0,"Downloads are being deleted");J.call(I,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.uB(q)}},
popupType:"TOAST"}});_.Uh(k)})},iQX=function(e,g){var c,k,I,J,q,L;
return _.r(function(n){if(n.nextAddress==1)return n.yield(e.JSC$18946_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return c=n.yieldResult,c?n.yield(PNz(c,_.qW,"downloadsPageViewConfigurationEntity"),3):(_.mN(new _.E2("PES is undefined")),n.return());I=(k=n.yieldResult)!=null?k:{};L=(q=(J=I)==null?void 0:J.downloadsUpsellBannerVisibility)!=null?q:{};return L.visibleWithConnection?n.yield(g.refreshAllStaleEntities(0),0):n.jumpTo(0)})},Pvl=function(e){var g,c;
return _.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$18946_prefStorage,2);g=k.yieldResult;return k.return((c=g)==null?void 0:c.get("sdois"))})},m9S=function(e){var g,c,k,I,J,q;
return _.r(function(L){if(L.nextAddress==1)return L.yield(e.JSC$18946_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3){g=L.yieldResult;if(!g)return _.mN(new _.E2("PES is undefined")),L.return();c=_.Bh("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return L.yield(PNz(g,c,"settingEntity"),3)}k=L.yieldResult;return L.return((q=(I=k)==null?void 0:(J=I.settingOptionValue)==null?void 0:J.boolValue)!=null?q:!1)})},pkQ=function(e,g){var c,k,I,J;
return _.r(function(q){switch(q.nextAddress){case 1:return((c=g)==null?void 0:c.formatType)===void 0?q.return():q.yield(e.JSC$18946_prefStorage,2);case 2:k=q.yieldResult;if(k===void 0)return q.return();if(((I=g)==null?void 0:I.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return q.yield(k.set("lmqf",g.formatType),8);if(((J=g)==null?void 0:J.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){q.jumpTo(0);break}return q.yield(k.set("lmqf",g.formatType),6);case 6:return q.yield(k.set("lmqflst",
Math.floor((0,_.yr)())),0);case 8:return q.yield(k.remove("lmqflst"),0)}})},Txg=function(e){var g,c;
return _.r(function(k){switch(k.nextAddress){case 1:return k.yield(e.JSC$18946_prefStorage,2);case 2:g=k.yieldResult;if(!g){k.jumpTo(3);break}return k.yield(g.get("lmqflst"),4);case 4:if(c=k.yieldResult,c!==void 0)return k.return(c);case 3:return k.return(0)}})},lxv=function(e){var g,c,k;
return _.r(function(I){return I.nextAddress==1?I.yield(e.JSC$18946_prefStorage,2):I.nextAddress!=3?(g=I.yieldResult,I.yield((c=g)==null?void 0:c.get("ldtmes"),3)):I.return((k=I.yieldResult)!=null?k:!1)})},Dnl=function(){var e=_.Ss().resolve(_.rt),g;
return _.r(function(c){if(c.nextAddress==1)return c.yield(e.JSC$18946_prefStorage,2);g=c.yieldResult;return g===void 0?c.return():c.yield(g.set("ldtmes",!0),0)})},ASS=function(e){var g,c;
return _.r(function(k){switch(k.nextAddress){case 1:return k.yield(e.JSC$18946_prefStorage,2);case 2:g=k.yieldResult;if(g===void 0){k.jumpTo(3);break}return k.yield(g.get("lmqf"),4);case 4:if(c=k.yieldResult,c!==void 0)return k.return(c);case 3:return k.return("SD")}})},noj=function(e,g,c){var k,I,J,q,L,n,R,W;
_.r(function(b){switch(b.nextAddress){case 1:return b.yield(pkQ(e,(k=g)==null?void 0:k.actionParams),2);case 2:I=g.playlistId;if(!I)return b.return();if(g.action==="ACTION_ADD")return((q=g.actionParams)==null?0:q.formatType)?b.yield(D97(e,I,g.actionParams.formatType,(W=g.actionParams)==null?void 0:W.settingsAction,c),0):b.yield(e.offlineWebClientEligibility,14);if(g.action==="ACTION_REMOVE_WITH_PROMPT"){var h=e.JSC$18946_commandHandler,X=h.resolveCommand,D=_.uo("INNERTUBE_CLIENT_NAME");var f=D===
"WEB_REMIX"?_.C_("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.C_("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var l=D==="WEB_REMIX"?[_.C_("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];D=D==="WEB_REMIX"?_.C_("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.C_("DELETE",void 0,"Delete");var A=_.C_("CANCEL",void 0,"Cancel");f=vQx(f,l,D,A,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:I});X.call(h,{openPopupAction:f});return b.return()}if(g.action===
"ACTION_REMOVE")return b.yield(cag(e,I),0);if(g.action!=="ACTION_SYNC"){b.jumpTo(0);break}return b.yield(e.JSC$18946_playerApiPromise,9);case 9:return J=b.yieldResult,b.yield(J.queueOfflineAction(I,e.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return L=b.yieldResult,b.yield(ASS(e),15);case 15:return n=b.yieldResult,b.yield(Txg(e),16);case 16:R=b.yieldResult,g.onAddCommand&&e.JSC$18946_commandHandler.resolveCommand(g.onAddCommand,{form:{preferredFormatType:n,
offlineWebClientEligibility:L,lastOfflineQualitySettingsSavedMs:R.toString()}}),b.jumpTo(0)}})},raz=function(e,g,c){var k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y,O;
_.r(function(Jq){switch(Jq.nextAddress){case 1:return Jq.yield(pkQ(e,(k=g)==null?void 0:k.actionParams),2);case 2:I=g.videoId;if(!I)return Jq.return();if(g.action==="ACTION_REMOVE_WITH_PROMPT"){var LC=e.JSC$18946_commandHandler,bW=LC.resolveCommand,RA=_.uo("INNERTUBE_CLIENT_NAME");var Xg=RA==="WEB_REMIX"?_.C_("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.C_("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Fg=RA==="WEB_REMIX"?[_.C_("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];RA=RA==="WEB_REMIX"?_.C_("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.C_("DELETE",void 0,"Delete");var oA=_.C_("CANCEL",void 0,"Cancel");Xg=vQx(Xg,Fg,RA,oA,{signal:"DELETE_DOWNLOAD",targetId:I});bW.call(LC,{openPopupAction:Xg});return Jq.return()}if(g.action==="ACTION_ADD")return((S=g.actionParams)==null?0:S.formatType)?Jq.yield(YSD(e,I,g.actionParams.formatType,(O=g.actionParams)==null?void 0:O.settingsAction,c),0):Jq.yield(e.offlineWebClientEligibility,
29);if(g.action==="ACTION_RETRY")return Jq.yield(ASS(e),25);if(g.action==="ACTION_PAUSE")return Jq.yield(e.pauseVideoDownload(I),0);if(g.action==="ACTION_RESUME")return Jq.yield(e.resumeVideoDownload(I),0);if(g.action==="ACTION_REMOVE")return Jq.yield($9v(e,I),19);if(!g.onAddCommand||!_.x(g.onAddCommand,_.px)){Jq.jumpTo(0);break}J=_.x(g.onAddCommand,_.px);L=(q=J)==null?void 0:q.isCrossDeviceDownload;if(!L){Jq.jumpTo(0);break}n="HD";return Jq.yield(Txg(e),16);case 16:return R=Jq.yieldResult,Jq.yield(lxv(e),
17);case 17:return W=Jq.yieldResult,Jq.yield(e.offlineWebClientEligibility,18);case 18:b=Jq.yieldResult;e.JSC$18946_commandHandler.resolveCommand(g.onAddCommand,{form:{preferredFormatType:n,lastOfflineQualitySettingsSavedMs:R.toString(),downloadToMobileEduShown:W,offlineWebClientEligibility:b}});Jq.jumpTo(0);break;case 19:return h=Jq.yieldResult,e.previousDownloadStateForVideo[I]=(X=h)!=null?X:"DOWNLOAD_STATE_UNKNOWN",Jq.yield(jgQ(e,I,"DOWNLOAD_STATE_USER_DELETED"),20);case 20:if(e.previousDownloadStateForVideo[I]!==
"DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&e.previousDownloadStateForVideo[I]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){Jq.jumpTo(21);break}return Jq.yield(e.pauseVideoDownload(I),21);case 21:LC=_.C_("DELETED_VIDEO",void 0,"Video deleted from downloads.");bW=_.C_("UNDO_ACTION",void 0,"Undo");Xg=_.C_("CLOSE",void 0,"Close");D={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.uB(LC),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.uB(bW),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",targetId:I}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:LC+" "+bW}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:I}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:Xg}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},
popupType:"TOAST"}};e.JSC$18946_commandHandler.resolveCommand(D);Jq.jumpTo(0);break;case 25:f=Jq.yieldResult;f==="UNKNOWN_FORMAT_TYPE"&&(f="SD");l="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((A=g.actionParams)==null?0:A.formatType)f=g.actionParams.formatType,l=(d=g.actionParams)==null?void 0:d.settingsAction;return Jq.yield(fxQ(e,I,f,l,c),26);case 26:return Jq.return();case 29:return V=Jq.yieldResult,Jq.yield(ASS(e),30);case 30:return Q=Jq.yieldResult,Jq.yield(Txg(e),31);case 31:y=Jq.yieldResult,
g.onAddCommand&&e.JSC$18946_commandHandler.resolveCommand(g.onAddCommand,{form:{preferredFormatType:Q,offlineWebClientEligibility:V,lastOfflineQualitySettingsSavedMs:y.toString()}}),Jq.jumpTo(0)}})},sg7=function(e,g){var c,k,I,J,q,L,n;
return _.r(function(R){if(R.nextAddress==1)return R.yield(e.JSC$18946_persistentStorePromiseAccessor(),2);c=R.yieldResult;if(!c)return _.mN(new _.E2("PES is undefined")),R.return();if((k=g)==null||!k.settingItemId)return R.return();I=g;J=I.settingItemId;q=I.boolValue;L=_.Bh(J,"settingEntity");n={key:L,settingOptionValue:{boolValue:q}};return R.yield(iwO(c,n),0)})},FyQ=function(e,g){var c,k,I,J,q,L,n;
return _.r(function(R){switch(R.nextAddress){case 1:return R.yield(e.JSC$18946_prefStorage,2);case 2:return c=R.yieldResult,k=_.ch(),R.yield(e.JSC$18946_persistentStorePromiseAccessor(),3);case 3:return I=R.yieldResult,c?I?R.yield(c.get("sdois"),4):(_.mN(new _.E2("PES is undefined")),R.return()):(_.mN(new _.E2("prefStorage is undefined")),R.return());case 4:J=R.yieldResult;L=(q=g)==null?void 0:q.boolValue;L===void 0||_.G("kevlar_set_sd_enabled_flag_killswitch")||_.kn(0,197,!0);J===void 0&&L===void 0&&
(L=!1);if(L===void 0){R.jumpTo(0);break}return R.yield(c.set("sdois",L),6);case 6:return _.G("kevlar_set_sd_enabled_flag_killswitch")||(_.kn(0,196,L),k.save()),n={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:L},R.yield(sg7(e,n),0)}})},ulx=function(e,g,c){var k,I,J,q,L;
return _.r(function(n){switch(n.nextAddress){case 1:return n.yield(Pvl(e),2);case 2:return k=n.yieldResult,n.yield(FyQ(e,c),3);case 3:return n.yield(Pvl(e),4);case 4:return I=n.yieldResult,J=I!==k,n.yield(m9S(e),5);case 5:q=n.yieldResult&&!_.G("kevlar_modern_downloads_page");if((L=!I&&!q)||J)return n.yield(g.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);n.jumpTo(0)}})},vov=function(){var e=_.Ss().resolve(_.rt),
g;
_.r(function(c){switch(c.nextAddress){case 1:return c.yield(e.JSC$18946_playerApiPromise,2);case 2:g=c.yieldResult;if(!_.G("kevlar_force_refresh_smart_downloads")){c.jumpTo(3);break}return c.yield(g.refreshAllStaleEntities(0),4);case 4:return c.return();case 3:return c.yield(g.refreshAllStaleEntities(),5);case 5:return c.yield(ulx(e,g),6);case 6:if(_.G("enable_download_pep_for_premium_countries_web"))return c.yield(iQX(e,g),0);c.jumpTo(0)}})},EoM=function(e,g){var c,k;
_.r(function(I){switch(I.nextAddress){case 1:return I.yield(e.JSC$18946_playerApiPromise,2);case 2:c=I.yieldResult;switch((k=g)==null?void 0:k.settingItemId){case "SMART_DOWNLOADS_ENABLED":return I.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return I.jumpTo(4)}I.jumpTo(0);break;case 3:return I.yield(ulx(e,c,g),6);case 6:I.jumpTo(0);break;case 4:return I.yield(sg7(e,g),7);case 7:I.jumpTo(0)}})},d9g=function(e,g){var c,k,I;
return _.r(function(J){if(J.nextAddress==1)return J.yield(e.JSC$18946_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3){c=J.yieldResult;if(!c)return _.mN(new _.E2("PES is undefined")),J.return(!1);if(!g)return J.return(!1);k=_.Bh(g,"mainVideoEntity");return J.yield(PNz(c,k,"mainVideoEntity"),3)}I=J.yieldResult;return J.return(I!==void 0)})},bZ7=function(e){var g=_.Ss().resolve(_.rt),c,k,I,J,q,L,n,R,W,b,h;
_.r(function(X){switch(X.nextAddress){case 1:return X.yield(g.JSC$18946_playerApiPromise,2);case 2:c=X.yieldResult;I=(k=e)==null?void 0:k.actions;if(!I)return X.return();J=_.w(I);q=J.next();case 3:if(q.done){X.jumpTo(0);break}L=q.value;R=n=void 0;if(!(((n=L)==null?0:n.entityKey)&&((R=L)==null?0:R.actionType))){X.jumpTo(4);break}W=_.ZO(L.entityKey);b=W.entityId;h=W.entityType;return X.yield(c.queueOfflineAction(b,h,L.actionType),4);case 4:q=J.next(),X.jumpTo(3)}})},ztS=function(e,g){var c,k,I,J,q;
return _.r(function(L){if(L.nextAddress==1)return L.yield(e.JSC$18946_prefStorage,2);if(L.nextAddress!=3)return(c=L.yieldResult)?L.yield(c.get("psi"),3):L.return();k=L.yieldResult;q={isPaused:g,lastSyncTimestamp:(J=(I=k)==null?void 0:I.lastSyncTimestamp)!=null?J:"0"};return L.yield(c.set("psi",q),0)})},GS7=function(e){var g=_.Ss().resolve(_.rt),c,k,I,J,q,L,n,R;
return _.r(function(W){switch(W.nextAddress){case 1:return W.yield(g.JSC$18946_playerApiPromise,2);case 2:c=W.yieldResult;I=((k=e)==null?void 0:k.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((L=e)==null?void 0:L.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":J="!*$_ALL_ENTITIES_!*$";q="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return W.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return W.jumpTo(4)}W.jumpTo(5);break;case 3:return W.yield(ztS(g,I),6);case 6:W.jumpTo(5);break;case 4:return W.yield(d9g(g,(n=e)==null?void 0:n.videoId),7);case 7:W.yieldResult&&(J=(R=e)==null?void 0:R.videoId,q="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");W.jumpTo(5);break;case 5:if(J&&q)return W.yield(c.queueOfflineAction(J,"videoPlaybackPositionEntity",q),0);W.jumpTo(0)}})},HQ7=function(e,g){_.Ss().resolve(_.nj).persistentPanelContainerMap.set(g,e)},
QgM=function(e,g,c){e.hasRegisteredHoverCallbacks=!0;
e.hoverEnterCallback=g!=null?g:void 0;e.hoverLeaveCallback=c!=null?c:void 0},U9O=function(){return _.Ss().resolve(_.cp).dismissedIndices},oHq=function(){var e=_.Ss().resolve(_.cp);
_.Hvt(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(e.isFullscreenEnabled()?_.F7(document.documentElement):_.MD6(document.documentElement))},ZQg=function(e,g){var c;
g!==1||((c=e.currentPersistentToast)==null?0:c.isOpened())?_.aCv(e):e.currentPersistentToast=void 0},VLl=function(e,g){var c;
return(c=e.transitionTasksMap.get(g))!=null?c:[]},tLS=function(e,g){var c=[];
e.elementTasksMap.forEach(function(k){(k=k.get(g))&&c.push(k)});
return c},Bxz=function(e,g,c,k,I){I=I===void 0?{}:I;
var J=g.defaultViewTransitionOptions;return Object.assign({},J,I,{beforeTransition:function(){k.forEach(function(R){R.beforeTransition()});
var q;(q=J.beforeTransition)==null||q.call(J);var L,n;(n=(L=I).beforeTransition)==null||n.call(L);c.forEach(function(R){R.beforeTransition()})},
afterTransition:function(){k.forEach(function(R){R.afterTransition()});
var q;(q=J.afterTransition)==null||q.call(J);var L,n;(n=(L=I).afterTransition)==null||n.call(L);c.forEach(function(R){R.afterTransition()})},
ignoredErrors:e.config.ignoredErrors})},NxS=function(e,g,c){e.transitionTasksMap.has(g)?e.transitionTasksMap.get(g).push(c):(e=new _.E2("Transition task registered for unknown transition type",g),_.jW(e))},SSQ=function(e,g,c){if(e.transitionTasksMap.has(g)){var k=e.transitionTasksMap.get(g).filter(function(I){return I!==c});
e.transitionTasksMap.set(g,k)}},ySQ=function(e,g){var c=VLl(e,g);
c=_.w(c);for(var k=c.next();!k.done;k=c.next())k=k.value,k.runOnce&&SSQ(e,g,k);e.elementTasksMap.forEach(function(I,J){I.forEach(function(q,L){q.runOnce&&g===L&&(I.delete(L),I.size===0&&e.elementTasksMap.delete(J))})})},Kyj=function(e,g,c){var k,I,J,q,L,n,R,W,b;
_.r(function(h){if(h.nextAddress==1){if(e.config.disableAllTransitions)return h.return(g());if((k=c)==null||!k.transitionType)return h.return(q4j(g,Object.assign({},(I=c)==null?void 0:I.viewTransitionOptions,{ignoredErrors:e.config.ignoredErrors})));J=c;q=J.transitionType;L=J.viewTransitionOptions;n=e.config.transitionConfigs.get(q);if(!n)return h.return(g());R=VLl(e,q);W=tLS(e,q);b=q4j(g,Bxz(e,n,R,W,L));return h.yield(b,2)}ySQ(e,q);_.Uh(h)})},OQx=function(e,g){var c,k,I,J,q;
_.r(function(L){if(!g.length)return L.return([]);c=[];k=_.w(g);for(I=k.next();!I.done;I=k.next())J=I.value,(q=e.resolveIcon(J))&&!e.iconCache[q.url]&&c.push(_.mNj(e,q).then(function(){}).catch(function(){}));
return L.return(Promise.all(c))})},MLD=function(e,g){var c=[];
g=(new Set(g)).values();g=_.w(g);for(var k=g.next();!k.done;k=g.next()){k=k.value;for(var I=_.w(Object.values(etX)),J=I.next();!J.done;J=I.next())c.push({iconName:k,iconStyle:J.value})}OQx(e.iconManager,c)},CvS=function(e,g,c){var k=c!=null?c:e.iconsToFetch;
k!=null&&k.length?g!==void 0&&g>=0?_.h2(_.ft,function(){MLD(e,k)},g):MLD(e,k):Promise.resolve()},eDD=function(){var e,g,c,k;
return _.r(function(I){if(I.nextAddress==1)return e=navigator,(g=e.storage)!=null&&g.persisted?I.yield((c=e.storage)==null?void 0:c.persisted(),2):I.return("PERSISTED_STATE_NOT_SUPPORTED");k=I.yieldResult;return I.return(k?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},gAM=function(){var e,g,c,k;
return _.r(function(I){if(I.nextAddress==1)return e=navigator,(g=e.storage)!=null&&g.persist?I.yield((c=e.storage)==null?void 0:c.persist(),2):I.return("PERSISTED_STATE_NOT_SUPPORTED");k=I.yieldResult;return I.return(k?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},cD7=function(){var e,g;
return _.r(function(c){switch(c.nextAddress){case 1:return e="PERSISTED_STATE_NOT_SUPPORTED",_.lj(c,2),c.yield(eDD(),4);case 4:e=c.yieldResult;if(e!=="PERSISTED_STATE_NOT_GRANTED"){c.jumpTo(5);break}return c.yield(gAM(),6);case 6:e=c.yieldResult;case 5:_.zn(c,3);break;case 2:g=_.Qb(c),g instanceof Error&&_.jW(g);case 3:return _.Y2("persistentStorageStateChecked",{persistedState:e}),c.return(e)}})},kpM=function(e,g,c){if(e.isAnyTransitionEnabled){var k={beforeTransition:function(){c(!0);
g.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){g.style.viewTransitionName&&(g.style.viewTransitionName="",c(!1))}};
NxS(e.viewTransitionCoordinator,"slide",k);NxS(e.viewTransitionCoordinator,"lockup-to-watch",k);NxS(e.viewTransitionCoordinator,"watch-next-appears",k);NxS(e.viewTransitionCoordinator,"learning-journey",k)}},Ijo=function(e,g,c,k){if(e.isLockupToWatchTransitionEnabled){if(g){var I={};
I=(I["watch-next-appears"]="player-watch-next-loaded",I);I["lockup-to-watch"]=e.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";e.viewTransitionCoordinator.registerElement(g,I)}c&&(g={},e.viewTransitionCoordinator.registerElement(c,(g["lockup-to-watch"]="below-lockup-to-watch",g["watch-next-appears"]="below-watch-next-loaded",g)));k&&(c={},e.viewTransitionCoordinator.registerElement(k,(c["watch-next-appears"]="secondary-watch-next-loaded",
c)))}},JDz=function(e,g){e.isBrowseTransitionEnabled?Kyj(e.viewTransitionCoordinator,g,{transitionType:"slide"}):(g(),Promise.resolve())},vAv=function(e,g){e.isLockupToWatchTransitionEnabled?Kyj(e.viewTransitionCoordinator,g,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){e.registeredLockupThumbnail=void 0;e.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(g(),Promise.resolve())},w6g=function(e,g){e.isLockupToWatchTransitionEnabled?Kyj(e.viewTransitionCoordinator,g,{transitionType:"watch-next-appears"}):(g(),Promise.resolve())},qeM=function(e,g){e.isLearningJourneyTransitionEnabled?Kyj(e.viewTransitionCoordinator,g,{transitionType:"learning-journey"}):(g(),Promise.resolve())},LG0=function(e,g,c){if(e.isInitialized()){var k=
zg(c),I=k==="watch";
k=k==="shorts";var J=zg(g)==="watch";if(I)J||(e.backgroundPageData=g),e.watchPipMode&&J||e.deactivate(c.endpoint);else if(k){if(zg(g)!=="shorts"){var q;(q=e.getPlayerElement())==null||q.pause()}}else J&&!e.watchPipMode&&(LVQ(g,c,!0)?(e.watchWhileMode&&_.TFj(e,!1),_.fdD(e,g)):e.isMiniplayerActive()&&e.watchWhileMode&&e.deactivate());J&&_.A2j(e);e.shortsPipMode&&!k&&(window.focus(),e.deactivate());if(e.pictureInPictureEnabled())if(k&&e.shortsPipEnabled||I&&e.JSC$19363_watchPipEnabled&&(!e.watchPipManualOnlyEnabled||
_.Nfq()&&_.YCC("Chromium")>=142))_.yIV(e.handleMediaSessionPipActivation);else if((!e.isMiniplayerActive()||e.watchPipManualOnlyEnabled)&&(e.shortsPipEnabled||e.JSC$19363_watchPipEnabled)&&_.Nfq()){e=_.S$g().mediaSession;try{e.setActionHandler("enterpictureinpicture",null)}catch(L){}}}},rDq=function(e,g){var c,k;
_.r(function(I){if(I.nextAddress==1){if(!e||!e.navigationEndpoint)return I.return();_.eM().lockupActivation=!0;var J;g?J=_.PL(_.C_("QUEUE",void 0,"Queue")):J=e.longBylineText;k=(c=J)&&e.title?{miniplayerTitle:e.title,miniplayerSubtitle:c,playlistData:null}:void 0;return I.yield(_.TIM(_.Ss().resolve(_.xt),e.navigationEndpoint,!0,k),2)}_.eM().userActivation=!0;_.Uh(I)})},JPl=function(e,g){var c,k,I,J,q,L;
_.r(function(n){if(n.nextAddress==1){c=_.x(g,_.xEv);if(!c||!c.listId)return n.return();e.index=c.index||e.index||0;k=e.response&&e.response.playingVideoId||void 0;return n.yield(_.NXM(e.JSC$13404_playlistNetworkManager,c.listId,e.index,k),2)}I=n.yieldResult;if(!I)return n.return();J=I.playlistId;q=I.playlistPanelRenderer;!e.queueProxy&&J&&q&&J.startsWith("TLPQ")&&(e.queueProxy=new _.Dy(e.JSC$13404_playlistNetworkManager,J,e.setPlaylistData.bind(e),e.clearQueue.bind(e),_.y8C(q),e.storage));if(c.openMiniplayer&&
(L=_.KDt(q))&&!e.JSC$13404_pageManager.isOnWatch()){var R=L,W=c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";e.isMiniplayerActive()||rDq(R,W)}e.setPlaylistData(J,q,I.autoplayRenderer);_.Uh(n)})},cPD=function(e,g){var c=_.po();
c.index===void 0&&(c.index=0);c.temporaryItems.push.apply(c.temporaryItems,_.KY(e));if((g.videoId||g.videoIds)&&c.index!==void 0&&g.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!c.queueProxy){var k=[];if(c.response){var I=_.Ss().resolve(_.xt).isMiniplayerActive();if(c.response.playlistPanelRenderer&&c.response.playlistId&&!c.response.playlistId.startsWith("TLPQ")){if(c.JSC$13404_pageManager.isOnWatch()||I)k=_.y8C(c.response.playlistPanelRenderer)}else c.response.playingVideoId&&!g.openMiniplayer?
k.push(c.response.playingVideoId):I&&c.response.playingVideoId&&g.openMiniplayer&&k.push(c.response.playingVideoId)}c.queueProxy=new _.Dy(c.JSC$13404_playlistNetworkManager,"",c.setPlaylistData.bind(c),c.clearQueue.bind(c),k,c.storage);c.queueProxy.JSC$13350_setCurrentIndex(c.index)}c.queueProxy.addVideos(g.videoIds||[g.videoId],g)}TQl(c,e);c.response&&_.Tx(c,_.lE(c,c.response.autoplayRenderer));c.JSC$13404_pageManager.isOnWatch()||(e=e[0],g=g.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",c.isMiniplayerActive()||
rDq(e,g))},ajl=function(e,g){var c;
return _.r(function(k){return k.nextAddress==1?g&&e.lastWelcomeContinuationSent!==g?_.NFz(e)?k.yield(e.panelController.isVisible("PAai_companion"),3):k.jumpTo(2):k.return(!1):k.nextAddress==2||(c=k.yieldResult,c)?k.return(!0):k.return(!1)})},nAS=function(e){var g,c,k,I,J;
return _.r(function(q){if(q.nextAddress==1){if(!e.welcomeOptions)return q.return();g=e.welcomeOptions;c=g.command;k=g.setPending;if(c){var L;var n=(L=_.x(c,_.b6))==null?void 0:L.token}else n=void 0;I=n;return q.yield(ajl(e,I),2)}if(!q.yieldResult)return q.return();e.lastWelcomeContinuationSent=I;(J=k)==null||J(!0);n="youchat-"+Date.now();L=(L=_.BO())?String(Math.floor(L.getCurrentTime())*1E3):void 0;_.b3(c,{form:{formData:_.lt({clientMessageId:n,playerOffsetMs:L,pageContext:_.QRl(e,e.pageSubtype)})}});
_.Uh(q)})},RDv=function(e,g){_.r(function(c){e.welcomeOptions=g;
return c.yield(nAS(e),0)})},EAx=function(e){var g=_.Ix(e);
if(g=="object"||g=="array"){if(typeof e.clone==="function")return e.clone();if(typeof Map!=="undefined"&&e instanceof Map)return new Map(e);if(typeof Set!=="undefined"&&e instanceof Set)return new Set(e);g=g=="array"?[]:{};for(var c in e)g[c]=EAx(e[c]);return g}return e},nfS=function(e,g){return Array.prototype.reduce.call(e,g,{duration:0})},hM=function(e,g){return _.mqp(_.g0(e,g,void 0,_.Me))},Xj=function(e,g){return _.ax(_.g0(e,g,void 0,_.Me))},GU=function(e,g){return _.g0(e,g,void 0,_.Me,_.kX)},
WGo=_.hj(function(e,g,c,k){if(_.ZQ)return _.IE8(e,g,c,k);
if(e.nextWireType_!==0)return!1;_.id(g,c,k,_.ja(e.decoder_,_.y4));return!0},_.$B,_.iy),bzg=_.hj(function(e,g,c){if(_.ZQ)return _.wAU(e,g,c);
if(e.nextWireType_!==1)return!1;var k=e.decoder_;e=_.YV(k);k=_.YV(k);e=_.tk(e,k);_.Xp(g,c,e);return!0},_.yj6,_.upI),hD0=_.hj(function(e,g,c){if(e.nextWireType_!==5)return!1;
_.Xp(g,c,_.YV(e.decoder_));return!0},function(e,g,c){g=_.lwz(g);
g!=null&&(_.GT(e,c,5),_.xB(e.encoder_,g))},_.AjY),X6l=_.hj(function(e,g,c){if(e.nextWireType_!==2)return!1;
e=_.GTB(e);_.Xp(g,c,e===_.Ak()?void 0:e);return!0},_.eLg,_.HmB),GpD=_.Q3t(function(e,g,c){if(e.nextWireType_!==0&&e.nextWireType_!==2)return!1;
g=_.qb(g,g[_.wZ]|0,c);e.nextWireType_==2?_.xb4(e,wRl,g):g.push(_.$V(e.decoder_));return!0},function(e,g,c){g=_.Hme(_.ax,g,!0);
if(g!=null&&g.length){c=_.imZ(e,c);for(var k=0;k<g.length;k++)_.Brg(e.encoder_,g[k]);_.Pdw(e,c)}},_.Q3w),xE7=_.hj(function(e,g,c,k){if(e.nextWireType_!==0)return!1;
_.id(g,c,k,_.$V(e.decoder_));return!0},_.c0v,_.Q3w),DES=function(e,g){return e==g?!0:e&&g?e.width==g.width&&e.height==g.height:!1},xO=function(e,g){e.insertBefore(g,e.childNodes[0]||null)},$Eg=function(e){return e.previousElementSibling!==void 0?e.previousElementSibling:_.KqZ(e.previousSibling,!1)},z9Q=_.ld(_.Wj),Yeo=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Yeo,_.WJ);Yeo.prototype.getTypeName=function(){return _.Rs(this,1).split("/").pop()};
Yeo.prototype.getValue=function(){var e=_.g0(this,2);if(Array.isArray(e)||e instanceof _.WJ)throw Error("X");return _.Is(this,2)};
var fjQ=[0,2,_.Fv],tYo=function(){var e=_.Q8();this.JSC$10227_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.ZM("channel_type"))};
tYo.prototype.increment=function(e){this.JSC$10227_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",e)};
var Bk7=function(){var e=_.Q8();this.JSC$10230_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.ZM("channel_type"))};
Bk7.prototype.increment=function(e){this.JSC$10230_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",e)};
var Szl=function(){var e=_.Q8();this.JSC$10233_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.ZM("channel_type"))};
Szl.prototype.increment=function(e){this.JSC$10233_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",e)};
var NkO=function(){var e=_.Q8();this.JSC$10236_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
NkO.prototype.increment=function(){this.JSC$10236_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var ysS=function(){var e=_.Q8();this.JSC$10239_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.ZM("channel_type"),_.ZM("error_type"))};
ysS.prototype.increment=function(e,g){this.JSC$10239_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",e,g)};
var Kko=function(){var e=_.Q8();this.JSC$10242_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
Kko.prototype.increment=function(){this.JSC$10242_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var OOg=function(){var e=_.Q8();this.JSC$10245_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
OOg.prototype.increment=function(){this.JSC$10245_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var UnQ=function(){var e=_.Q8();this.JSC$10251_streamzService=e;e.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
UnQ.prototype.increment=function(){this.JSC$10251_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var jTO=function(e){return e.getCount&&typeof e.getCount=="function"?e.getCount():_.Bz(e)||typeof e==="string"?e.length:_.n0.getCount(e)},izO=function(e,g){if(typeof e.every=="function")return e.every(g,void 0);
if(_.Bz(e)||typeof e==="string")return Array.prototype.every.call(e,g,void 0);for(var c=_.Xyu(e),k=_.dG(e),I=k.length,J=0;J<I;J++)if(!g.call(void 0,k[J],c&&c[J],e))return!1;return!0},Pbz=function(e,g,c,k){var I=new _.mt(null);
e&&_.zS(I,e);g&&_.HN(I,g);c&&_.QA(I,c);k&&_.UR(I,k);return I},mE7=function(e){if(e>=48&&e<=57||e>=96&&e<=106||e>=65&&e<=90||_.Cb&&e==0)return!0;
switch(e){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 _.er;default:return!1}},p6l=function(e){if(e.altKey&&!e.ctrlKey||e.metaKey||e.keyCode>=112&&e.keyCode<=123)return!1;
if(mE7(e.keyCode))return!0;switch(e.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!_.er;default:return e.keyCode<166||e.keyCode>183}},Tho=[0,
_.mv,hD0,-1],ljQ={IMMEDIATE:10,AFTER_RENDER:8,MEASURE:5,INPUT:4,HIGH:3,MEDIUM:2,LOW:1,IDLE:0,10:"IMMEDIATE",8:"AFTER_RENDER",5:"MEASURE",4:"INPUT",3:"HIGH",2:"MEDIUM",1:"LOW",0:"IDLE"},FVz=0,QYl=!1,QdO=function(e,g,c,k,I,J,q){this.date=typeof e==="number"?new Date(e,g||0,c||1,k||0,I||0,J||0,q||0):new Date(e&&e.getTime?e.getTime():_.QG())};
_.Um(QdO,_.kA);_.v=QdO.prototype;_.v.getHours=function(){return this.date.getHours()};
_.v.getMinutes=function(){return this.date.getMinutes()};
_.v.getSeconds=function(){return this.date.getSeconds()};
_.v.getMilliseconds=function(){return this.date.getMilliseconds()};
_.v.getUTCDay=function(){return this.date.getUTCDay()};
_.v.getUTCHours=function(){return this.date.getUTCHours()};
_.v.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.v.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.v.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.v.setHours=function(e){this.date.setHours(e)};
_.v.setMinutes=function(e){this.date.setMinutes(e)};
_.v.setSeconds=function(e){this.date.setSeconds(e)};
_.v.setMilliseconds=function(e){this.date.setMilliseconds(e)};
_.v.setUTCHours=function(e){this.date.setUTCHours(e)};
_.v.setUTCMinutes=function(e){this.date.setUTCMinutes(e)};
_.v.setUTCSeconds=function(e){this.date.setUTCSeconds(e)};
_.v.setUTCMilliseconds=function(e){this.date.setUTCMilliseconds(e)};
_.v.add=function(e){_.kA.prototype.add.call(this,e);e.hours&&this.setUTCHours(this.date.getUTCHours()+e.hours);e.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+e.minutes);e.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+e.seconds)};
_.v.JSC$11647_toIsoString=function(e){var g=_.kA.prototype.JSC$11647_toIsoString.call(this,e);return e?g+"T"+_.Kq(this.getHours(),2)+":"+_.Kq(this.getMinutes(),2)+":"+_.Kq(this.getSeconds(),2):g+"T"+_.Kq(this.getHours(),2)+_.Kq(this.getMinutes(),2)+_.Kq(this.getSeconds(),2)};
_.v.equals=function(e){return this.getTime()==e.getTime()};
_.v.toString=function(){return this.JSC$11647_toIsoString()};
_.v.clone=function(){var e=new QdO(this.date);e.firstDayOfWeek_=this.firstDayOfWeek_;e.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return e};
oQX.prototype.set=function(e){this.relativeTimeStart_=e};
oQX.prototype.reset=function(){this.set(_.QG())};
oQX.prototype.get=function(){return this.relativeTimeStart_};
var ADx=null,sTD=function(){ADx||(ADx=new oQX)},FGS=function(){ADx||(ADx=new oQX)};
_.Um(FGS,sTD);_.v=ZMv.prototype;_.v.JSC$11673_buffer_="";_.v.set=function(e){this.JSC$11673_buffer_=""+e};
_.v.append=function(e,g,c){this.JSC$11673_buffer_+=String(e);if(g!=null)for(var k=1;k<arguments.length;k++)this.JSC$11673_buffer_+=arguments[k];return this};
_.v.clear=function(){this.JSC$11673_buffer_=""};
_.v.getLength=function(){return this.JSC$11673_buffer_.length};
_.v.toString=function(){return this.JSC$11673_buffer_};
var MrM={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"},BYM=function(e){this.xhr=e},NYX=function(e,g,c){_.eK.call(this,e+", errorCode="+g);
this.errorCode=g;this.xhr=c;this.name="PromiseAjaxError"};
_.Y(NYX,_.eK);var usO=!1,Jr7=function(e){_.eK.call(this,e.message||e.description||e.name);this.isMissing=e instanceof gfq;this.isTimeout=e instanceof NYX&&e.errorCode=="net.timeout";this.isCanceled=e instanceof _.fL};
_.Y(Jr7,_.eK);Jr7.prototype.name="BiscottiError";var gfq=function(){_.eK.call(this,"Biscotti ID is missing from server")};
_.Y(gfq,_.eK);gfq.prototype.name="BiscottiMissingError";var trx={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},crQ=null,y4X=function(){try{var e=_.Q0("yt.ads.biscotti.getId_");return e?e():P0g()}catch(g){return _.q2(g)}},Wtj={'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"},dEX=function(e,g){return _.Hh({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:e,command:g}})},zDq=function(e){return _.Hh({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:e}})},Hzo=function(e){return _.Hh({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:e}})},QTQ=function(e){return _.Hh({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:e}})},UE7=function(e){return _.Hh({type:"SET_GUIDE_IS_EXPANDED",
payload:e})},oAg=function(e){return _.Hh({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",
payload:e})},ZzM=function(e){return _.Hh({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:e})},VRv=function(e){return _.Hh({type:"SET_ONLINE_STATUS",
payload:e})},tRD=function(e){return _.Hh({type:"SET_IS_WATCH_ACTIVE",
payload:{isWatchActive:e}})},BhQ=function(e){return _.Hh({type:"SET_IS_WATCH_NARROW_WIDTH",
payload:{isWatchNarrowWidth:e}})},Nh0=function(e){return _.Hh({type:"SET_IS_LIVE_CHAT_COLLAPSED",
payload:{isLiveChatCollapsed:e}})},Se0=function(e,g){return _.Hh({type:"SET_TRANSCRIPTION_STATE",
payload:{high:e,low:g}})},yDg=function(e){return _.Hh({type:"SET_OVERLAY_STATE",
payload:e})},l5z=[[["cnkjM3V6dG9tNXR0YWh0cHJpbWE=",
null,null],[null,["ZXIjeWkwM202cjh0Z2RseXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVy","cGUjY20xd2lwd2ZuZ2F5c3R5bGUtc2Nv"],null],["YWQjNGN4eWp2ZmdiYzg4bWFzdGhlYWQt",["ZXIjcTducmQ3am05amR0eXRkLXJpY2gtZ3JpZC1yZW5kZXI="],null],[null,["ZXIjaGZ3endyaXRpMDVteXRkLXJpY2gtZ3JpZC1yZW5kZXI=","cGUjNWs2eTUxemlkcXdmc3R5bGUtc2Nv"],null],[null,["ZXIjN3A3dHJiaWU5cGlyeXRkLWJhbm5lci1wcm9tby1yZW5kZXI=","cGUjcW05azBib2Uyenpmc3R5bGUtc2Nv"],null],[null,["ZXIjNGx4cTV5Zmt5anN4eXRkLWFkLXNsb3QtcmVuZGVy"],null]],[["ZHMjNmJlcmNyMmVvOWtqcGxheWVyLWE=",
null,null]],[[null,null,"ZXIjdjIxeGxscGlydTUxeXRsci1iYW5uZXItY3RhLXJlbmRlcg=="]]],jCQ="#",KGg=0,Ozo=function(e,g,c){var k=this;this.priority=g;this.delay=c;this.jobId=0;this.completionCallback=_.aX;this.wrappedJob=function(){e();k.completionCallback()};
this.id=++KGg};
Ozo.prototype.enqueue=function(e){this.completionCallback=e;this.jobId=_.ft.addJob(this.wrappedJob,this.priority,this.delay)};
var Dm=function(){_.uN.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.Y(Dm,_.uN);Dm.prototype.addJob=function(e,g,c){e=new Ozo(e,g,c);this.taskIdToTask.set(e.id,e);this.isActive?MRg(this,e):this.suspendedTasks.add(e);return e.id};
var MRg=function(e,g){e.scheduledTasks.add(g);g.enqueue(function(){e.scheduledTasks.delete(g)})};
Dm.prototype.cancelJob=function(e){(e=this.taskIdToTask.get(e))&&(this.scheduledTasks.delete(e)?_.ft.cancelJob(e.jobId):this.suspendedTasks.delete(e))};
Dm.prototype.pause=function(){var e=this;this.isActive=!1;this.scheduledTasks.forEach(function(g){_.ft.cancelJob(g.jobId);e.suspendedTasks.add(g)});
this.scheduledTasks.clear()};
Dm.prototype.start=function(){var e=this;this.isActive=!0;this.suspendedTasks.forEach(function(g){MRg(e,g)});
this.suspendedTasks.clear()};
Dm.prototype.reset=function(){this.scheduledTasks.forEach(function(e){_.ft.cancelJob(e.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Cbg=function(e,g){this.JSC$13530_networkService_=e;this.pageRequestPromise=g};
Cbg.prototype.fetchData=function(e){ej7(this,this.JSC$13530_networkService_.fetchData(e))};
Cbg.prototype.postData=function(e,g){ej7(this,this.JSC$13530_networkService_.postData(e,g))};
Cbg.prototype.requestDataForServiceEndpoint=function(e,g){ej7(this,this.JSC$13530_networkService_.requestDataForServiceEndpoint(e,g))};
var ej7=function(e,g){g.then(e.pageRequestPromise.onSuccess,e.pageRequestPromise.onFailure,e.pageRequestPromise)};
Cbg.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var gLq=function(e){this.buildNetworkRequest_=e;this.pendingRequests_=new Set};
gLq.prototype.reset=function(){this.pendingRequests_.forEach(function(e){e.cancel()});
this.pendingRequests_.clear()};
gLq.prototype.fetchData=function(e){var g=ccq(this);g.fetchData(e);return g.pageRequestPromise};
gLq.prototype.postData=function(e,g){var c=ccq(this);c.postData(e,g);return c.pageRequestPromise};
gLq.prototype.requestDataForServiceEndpoint=function(e,g){var c=ccq(this);c.requestDataForServiceEndpoint(e,g);return c.pageRequestPromise};
var ccq=function(e){var g=e.buildNetworkRequest_();e.pendingRequests_.add(g);var c=function(){e.pendingRequests_.delete(g)};
g.pageRequestPromise.then(c,c);return g},k4X=function(e){var g=new Dm;
this.JSC$13537_networkService_=e;this.JSC$13537_taskManager_=g;this.JSC$13537_networkManager_=new gLq(this.networkRequestFactory_.bind(this))};
_.v=k4X.prototype;_.v.networkRequestFactory_=function(){return new Cbg(this.JSC$13537_networkService_,new _.NG(this.JSC$13537_taskManager_))};
_.v.reset=function(){this.JSC$13537_taskManager_.reset();this.JSC$13537_networkManager_.reset()};
_.v.start=function(){this.JSC$13537_taskManager_.start()};
_.v.pause=function(){this.JSC$13537_taskManager_.pause()};
_.v.getTaskManager=function(){return this.JSC$13537_taskManager_};
_.v.getNetworkManager=function(){return this.JSC$13537_networkManager_};
var ofO=null,tVl=[],doD=0,UoM=0,zoz=null,SMO=null,N0=function(e){this.token=e};
N0.getInstance=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield(_.Nl(),2);e=g.yieldResult;if(!e)return g.return();N0.instance||(N0.instance=new N0(e));return g.return(N0.instance)})};
var kuS=function(e){var g;return _.r(function(c){if(c.nextAddress==1)return c.yield(emO(e.token),2);g=c.yieldResult;return c.return(g.clear("resource-manifest-assets"))})},B8=function(e){this.token=e};
B8.getInstance=function(){var e;return _.r(function(g){if(g.nextAddress==1)return g.yield(_.Nl(),2);e=g.yieldResult;if(!e)return g.return();B8.instance||(B8.instance=new B8(e));return g.return(B8.instance)})};
var gnq=function(e){var g;return _.r(function(c){if(c.nextAddress==1)return c.yield(emO(e.token),2);g=c.yieldResult;return c.yield(g.clear("auth"),0)})},IPX=!1,Dc0=null,$cS=void 0,lOl=!1,JcD=function(e){if(!_.di(document,"gtm-noscript")){var g=document.createElement("noscript");
g.id="gtm-noscript";g.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+e+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(g)}},vLO=function(e){_.eK.call(this,e)};
_.Y(vLO,_.fqv);
var fYQ=!1,Pmz=[],iUg=!1,odq={},Vlz=function(e,g){var c=wnX,k=this;this.renderFn=e;this.listeners=c;this.context=g;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var I;this.lastSeenPlayerApi=_.Gi((I=this.playerControlsData)==null?void 0:I.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.cqs(),void 0);_.G("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){tl0(k).setState({playerState:-1});k.resetRecentlyNavigatedJobId&&
_.ft.cancelJob(k.resetRecentlyNavigatedJobId);k.recentlyNavigated=!0;k.resetRecentlyNavigatedJobId=_.ft.addJob(function(){k.recentlyNavigated=!1},8,1E4)})};
Vlz.prototype.setState=function(e){if(!_.G("mweb_player_skip_no_op_state_changes")||!ZUj(e,this.state))if(this.state=Object.assign({},this.state,e),!_.G("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)e=-1,_.G("player_controls_log_creation_killswitch")||VoO()||(e=(0,_.yr)()),_.Wh("pcu_s"),_.Wh("pcu_se"),_.Wh("pcu_rs"),this.renderFn(tl0(this)),_.Wh("pcu_re"),toq(e),_.ft.addJob(function(){_.Wh("pcu_ap")},8)};
var tl0=function(e){if(e.getPlayerApi)var g=_.Gi(e.getPlayerApi());else{var c;g=_.Gi((c=e.playerControlsData)==null?void 0:c.playerApi)}return Object.assign({},e.state,{setState:e.boundSetState,domMeasurements:{progressBarLineRect:e.progressBarLineRect},playerApi:g,appApi:e.context.appApi,playerContainer:e.context.playerContainer,playerControlContainer:e.context.playerControlContainer,uxConfig:e.context.uxConfig})},BS0=function(e){e.listeners.forEach(function(g){e.eventListenerCleanupFunctions.push(g.register(function(){return tl0(e)},
function(){return e.getData()}))})},NSl=function(e){e.eventListenerCleanupFunctions.forEach(function(g){g()});
e.eventListenerCleanupFunctions.length=0};
Vlz.prototype.getData=function(){return this.playerControlsData};var U2M=function(){var e=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return e?parseInt(e[1],10):0},q_X=function(e){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+e)!=-1||document.currentScript.src.indexOf("&"+e)!=-1)},LWX=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},BLq=function(e){e.length?rcX(e.shift(),function(){BLq(e)}):ZvQ()},SLv=function(e){return"chrome-extension://"+e+"/cast_sender.js"},rcX=function(e,
g,c){var k=document.createElement("script");
k.onerror=g;c&&(k.onload=c);_.Eh(k,_.Ry(e));(document.head||document.documentElement).appendChild(k)},aPo=function(){var e=U2M(),g=[];
if(e>1){var c=e-1;g.push("//www.gstatic.com/eureka/clank/"+e+"/cast_sender.js");g.push("//www.gstatic.com/eureka/clank/"+c+"/cast_sender.js")}return g},ZvQ=function(){var e=LWX();
e&&e(!1,"No cast extension found")},tUQ=function(){if(nLo){var e=2,g=LWX(),c=function(){e--;
e==0&&g&&g(!0)};
window.__onGCastApiAvailable=c;rcX("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",ZvQ,c)}},okX=function(){tUQ();
var e=aPo();e.push("//www.gstatic.com/eureka/clank/cast_sender.js");BLq(e)},VUO=function(){tUQ();
var e=aPo();e.push.apply(e,_.KY(NLg.map(SLv)));e.push("//www.gstatic.com/eureka/clank/cast_sender.js");BLq(e)},nLo=q_X("loadCastFramework")||q_X("loadCastApplicationFramework"),NLg=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Rjz=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Rjz,_.WJ);var ELQ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(ELQ,_.WJ);var WWj=function(){var e=new ELQ;return _.GX(e,1,3)};var $O=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y($O,_.WJ);var Evx=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Evx,_.WJ);var bXg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(bXg,_.WJ);bXg.prototype.getToken=function(){return _.Rs(this,1)};
bXg.prototype.setToken=function(e){return _.pL(this,1,e)};
var nvX=function(e){return _.gr(e,3,_.TD,_.HH())},R9g=function(e){return _.gr(e,6,_.TD,_.HH())};var YO=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(YO,_.WJ);YO.prototype.getToken=function(){return _.Ml(this,bXg,2)};
YO.prototype.setToken=function(e){return _.sx(this,2,e)};
YO.prototype.getName=function(){return _.Rs(this,6)};
var hjg=_.ld(YO);var Xnx=function(e,g,c){this.requestMessage=e;this.methodDescriptor=g;this.metadata=c};
Xnx.prototype.getMetadata=function(){return this.metadata};var G4O=function(e,g){g=g===void 0?{}:g;this.responseMessage=e;this.metadata=g;this.status=null};
G4O.prototype.getMetadata=function(){return this.metadata};
G4O.prototype.getStatus=function(){return this.status};var f9=function(e,g,c,k,I){this.name=e;this.methodType="unary";this.requestType=g;this.responseType=c;this.requestSerializeFn=k;this.responseDeserializeFn=I},xxv=function(e,g,c){c=c===void 0?{}:c;
return new Xnx(g,e,c)};
f9.prototype.getName=function(){return this.name};var jg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(jg,_.WJ);jg.prototype.getHeader=function(){return _.Ml(this,$O,1)};
jg.prototype.setHeader=function(e){return _.sx(this,1,e)};
jg.prototype.hasHeader=function(){return _.cW(this,$O,1)};var DxO=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(DxO,_.WJ);var $xQ=new f9("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",jg,DxO,function(e){return e.serialize()},_.ld(DxO));var i9=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(i9,_.WJ);i9.prototype.getHeader=function(){return _.Ml(this,$O,1)};
i9.prototype.setHeader=function(e){return _.sx(this,1,e)};
i9.prototype.hasHeader=function(){return _.cW(this,$O,1)};var Y_j=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Y_j,_.WJ);var fPl=new f9("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",i9,Y_j,function(e){return e.serialize()},_.ld(Y_j));var P7=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(P7,_.WJ);P7.prototype.getHeader=function(){return _.Ml(this,$O,1)};
P7.prototype.setHeader=function(e){return _.sx(this,1,e)};
P7.prototype.hasHeader=function(){return _.cW(this,$O,1)};var jMQ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(jMQ,_.WJ);jMQ.prototype.getValues=function(e){return _.vBI(this,1,e)};var iXO=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(iXO,_.WJ);iXO.prototype.getLink=function(){return _.Ml(this,YO,1)};var Pkx=new f9("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",P7,iXO,function(e){return e.serialize()},_.ld(iXO));var m_=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(m_,_.WJ);m_.prototype.getHeader=function(){return _.Ml(this,$O,1)};
m_.prototype.setHeader=function(e){return _.sx(this,1,e)};
m_.prototype.hasHeader=function(){return _.cW(this,$O,1)};var mxv=new f9("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",m_,YO,function(e){return e.serialize()},hjg);var pnS=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(pnS,_.WJ);var TaS=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(TaS,_.WJ);TaS.prototype.getUrl=function(){return _.Rs(this,2)};
TaS.prototype.setUrl=function(e){return _.pL(this,2,e)};var lPx=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(lPx,_.WJ);var Acq=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Acq,_.WJ);var sMX=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(sMX,_.WJ);var PgS=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(PgS,_.WJ);var j1o=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(j1o,_.WJ);var FWq=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(FWq,_.WJ);var dkg=_.ld(FWq);var uHl=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(uHl,_.WJ);var dxM=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(dxM,_.WJ);_.v=dxM.prototype;_.v.getHeader=function(){return _.Ml(this,$O,1)};
_.v.setHeader=function(e){return _.sx(this,1,e)};
_.v.hasHeader=function(){return _.cW(this,$O,1)};
_.v.getCompletionUrl=function(){return _.Rs(this,6)};
_.v.getDeviceId=function(){return _.Rs(this,11)};var zj0=new f9("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",dxM,FWq,function(e){return e.serialize()},dkg);var HXX=new Set(["SAPISIDHASH","APISIDHASH"]);var QMz=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(QMz,_.WJ);QMz.prototype.getMessage=function(){return _.Rs(this,2)};
var Uxv=_.ld(QMz);var ZXQ=function(e,g){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=e.nodeReadableStream;this.grpcResponseDeserializeFn=g;this.xhr=e.xhr;this.xhrNodeReadableStream&&oLx(this)},KWz=function(e,g){var c=new VJM;
_.iK(e.xhr,"complete",function(){if(e.xhr.isSuccess()){var k=e.xhr.getResponseText();var I;if(I=g)I=e.xhr,I.JSC$10106_xhr_&&I.isComplete()?(I=I.JSC$10106_xhr_.getResponseHeader("Content-Type"),I=I===null?void 0:I):I=void 0,I=I==="text/plain";if(I){if(!atob)throw Error("dk");k=atob(k)}try{var J=e.grpcResponseDeserializeFn(k)}catch(L){tJO(e,Kpo(new _.ha(13,"Error when deserializing response data; error: "+L+(", response: "+k)),c));return}k=_.BHg(e.xhr.getStatus());BaM(e,NaD(e));k===0?S_q(e,J):tJO(e,
Kpo(new _.ha(k,"Xhr succeeded but the status code is not 200"),c))}else{k=e.xhr.getResponseText();J=NaD(e);if(k){var q=ycX(e,k);k=q.code;I=q.details;q=q.metadata}else k=2,I="Rpc failed due to xhr error. uri: "+String(e.xhr.JSC$10106_lastUri_)+", error code: "+(e.xhr.JSC$10106_lastErrorCode_+", error: ")+e.xhr.getLastError(),q=J;BaM(e,J);tJO(e,Kpo(new _.ha(k,I,q),c))}})},oLx=function(e){e.xhrNodeReadableStream.on("data",function(g){if("1"in g){var c=g["1"];
try{var k=e.grpcResponseDeserializeFn(c)}catch(I){tJO(e,new _.ha(13,"Error when deserializing response data; error: "+I+(", response: "+c)))}k&&S_q(e,k)}if("2"in g)for(g=ycX(e,g["2"]),c=0;c<e.onStatusCallbacks.length;c++)e.onStatusCallbacks[c](g)});
e.xhrNodeReadableStream.on("end",function(){BaM(e,NaD(e));for(var g=0;g<e.onEndCallbacks.length;g++)e.onEndCallbacks[g]()});
e.xhrNodeReadableStream.on("error",function(){if(e.onErrorCallbacks.length!==0){var g=e.xhr.JSC$10106_lastErrorCode_;g!==0||e.xhr.isSuccess()||(g=6);var c=-1;switch(g){case 0:var k=2;break;case 7:k=10;break;case 8:k=4;break;case 6:c=e.xhr.getStatus();k=_.BHg(c);break;default:k=14}BaM(e,NaD(e));g=_.e_v(g)+", error: "+e.xhr.getLastError();c!==-1&&(g+=", http status code: "+c);tJO(e,new _.ha(k,g))}})},NaD=function(e){var g={},c=rUS(e.xhr);
Object.keys(c).forEach(function(k){g[k]=c[k]});
return g},ycX=function(e,g){var c=2,k={};
try{var I=Uxv(g);c=_.Qh(I,1);var J=I.getMessage();_.z1(I,Yeo,3,_.HH()).length&&(k["grpc-web-status-details-bin"]=g)}catch(q){e.xhr&&e.xhr.getStatus()===404?(c=5,J="Not Found: "+String(e.xhr.JSC$10106_lastUri_)):(c=14,J="Unable to parse RpcStatus: "+q)}return{code:c,details:J,metadata:k}};
ZXQ.prototype.on=function(e,g){e==="data"?this.onDataCallbacks.push(g):e==="metadata"?this.onMetadataCallbacks.push(g):e==="status"?this.onStatusCallbacks.push(g):e==="end"?this.onEndCallbacks.push(g):e==="error"&&this.onErrorCallbacks.push(g);return this};
var OXX=function(e,g){g=e.indexOf(g);g>-1&&e.splice(g,1)};
ZXQ.prototype.removeListener=function(e,g){e==="data"?OXX(this.onDataCallbacks,g):e==="metadata"?OXX(this.onMetadataCallbacks,g):e==="status"?OXX(this.onStatusCallbacks,g):e==="end"?OXX(this.onEndCallbacks,g):e==="error"&&OXX(this.onErrorCallbacks,g);return this};
ZXQ.prototype.cancel=function(){this.xhr.abort()};
var S_q=function(e,g){for(var c=0;c<e.onDataCallbacks.length;c++)e.onDataCallbacks[c](g)},BaM=function(e,g){for(var c=0;c<e.onMetadataCallbacks.length;c++)e.onMetadataCallbacks[c](g)},tJO=function(e,g){for(var c=0;c<e.onErrorCallbacks.length;c++)e.onErrorCallbacks[c](g)},VJM=function(){var e=Error.call(this);
this.message=e.message;"stack"in e&&(this.stack=e.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.Y(VJM,Error);var MJM=function(e){this.JSC$19599_worker_=e.worker||null;this.JSC$19599_streamBinaryChunks_=e.streamBinaryChunks||!1;this.JSC$19599_credentialsMode_=void 0};
_.Um(MJM,_.SIz);MJM.prototype.createInstance=function(){var e=new p9(this.JSC$19599_worker_,this.JSC$19599_streamBinaryChunks_);this.JSC$19599_credentialsMode_&&e.setCredentialsMode(this.JSC$19599_credentialsMode_);return e};
MJM.prototype.setCredentialsMode=function(e){this.JSC$19599_credentialsMode_=e};
var p9=function(e,g){_.jv.call(this);this.JSC$19603_worker_=e;this.JSC$19603_streamBinaryChunks_=g;this.JSC$19603_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19603_responseHeaders_=null;this.JSC$19603_method_="GET";this.JSC$19603_url_="";this.inProgress_=!1;this.JSC$19603_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Um(p9,_.jv);p9.prototype.open=function(e,g){if(this.readyState!=0)throw this.abort(),Error("ek");this.JSC$19603_method_=e;this.JSC$19603_url_=g;this.readyState=1;CkS(this)};
p9.prototype.send=function(e){if(this.readyState!=1)throw this.abort(),Error("fk");if(this.abortController_.signal.aborted)throw this.abort(),Error("gk");this.inProgress_=!0;var g={headers:this.requestHeaders_,method:this.JSC$19603_method_,credentials:this.JSC$19603_credentialsMode_,cache:void 0,signal:this.abortController_.signal};e&&(g.body=e);(this.JSC$19603_worker_||_.kp).fetch(new Request(this.JSC$19603_url_,g)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
p9.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,eFz(this));this.readyState=0};
p9.prototype.handleResponse_=function(e){if(this.inProgress_&&(this.fetchResponse_=e,this.JSC$19603_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19603_responseHeaders_=e.headers,this.readyState=2,CkS(this)),this.inProgress_&&(this.readyState=3,CkS(this),this.inProgress_)))if(this.responseType==="arraybuffer")e.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.kp.ReadableStream!==
"undefined"&&"body"in e){this.currentReader_=e.body.getReader();if(this.JSC$19603_streamBinaryChunks_){if(this.responseType)throw Error("hk");this.response=[]}else this.response=this.responseText="",this.JSC$19603_textDecoder_=new TextDecoder;g8z(this)}else e.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var g8z=function(e){e.currentReader_.read().then(e.handleDataFromStream_.bind(e)).catch(e.handleSendFailure_.bind(e))};
p9.prototype.handleDataFromStream_=function(e){if(this.inProgress_){if(this.JSC$19603_streamBinaryChunks_&&e.value)this.response.push(e.value);else if(!this.JSC$19603_streamBinaryChunks_){var g=e.value?e.value:new Uint8Array(0);if(g=this.JSC$19603_textDecoder_.decode(g,{stream:!e.done}))this.response=this.responseText+=g}e.done?eFz(this):CkS(this);this.readyState==3&&g8z(this)}};
p9.prototype.handleResponseText_=function(e){this.inProgress_&&(this.response=this.responseText=e,eFz(this))};
p9.prototype.handleResponseArrayBuffer_=function(e){this.inProgress_&&(this.response=e,eFz(this))};
p9.prototype.handleSendFailure_=function(){this.inProgress_&&eFz(this)};
var eFz=function(e){e.readyState=4;e.fetchResponse_=null;e.currentReader_=null;e.JSC$19603_textDecoder_=null;CkS(e)};
p9.prototype.setRequestHeader=function(e,g){this.requestHeaders_.append(e,g)};
p9.prototype.getResponseHeader=function(e){return this.JSC$19603_responseHeaders_?this.JSC$19603_responseHeaders_.get(e.toLowerCase())||"":""};
p9.prototype.getAllResponseHeaders=function(){if(!this.JSC$19603_responseHeaders_)return"";for(var e=[],g=this.JSC$19603_responseHeaders_.entries(),c=g.next();!c.done;)c=c.value,e.push(c[0]+": "+c[1]),c=g.next();return e.join("\r\n")};
p9.prototype.setCredentialsMode=function(e){this.JSC$19603_credentialsMode_=e};
var CkS=function(e){e.onreadystatechange&&e.onreadystatechange.call(e)};
Object.defineProperty(p9.prototype,"withCredentials",{get:function(){return this.JSC$19603_credentialsMode_==="include"},
set:function(e){this.setCredentialsMode(e?"include":"same-origin")}});var cRD=function(e){var g="";_.n0.forEach(e,function(c,k){g+=k;g+=":";g+=c;g+="\r\n"});
return g},k_o=function(e,g,c){if(_.n0.isEmpty(c))return e;
c=cRD(c);if(typeof e==="string")return _.Cr(e,_.Kr(g),c);_.Qd(e,g,c);return e};OUQ.prototype.isInputValid=function(){return this.isInputValid_};
OUQ.prototype.decode=function(e){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ik`"+this.JSC$19609_streamPos_+"`stream already broken`"+e);this.leftoverInput_+=e;e=Math.floor(this.leftoverInput_.length/4);if(e==0)return null;try{var g=_.VKV(this.leftoverInput_.slice(0,e*4))}catch(c){throw g=this.leftoverInput_,e=c.message,this.isInputValid_=!1,Error("ik`"+this.JSC$19609_streamPos_+"`"+e+"`"+g);}this.JSC$19609_streamPos_+=e*4;this.leftoverInput_=this.leftoverInput_.slice(e*4);return g};Mol.prototype.isInputValid=function(){return this.state_!=3};
var IU7=function(e,g,c,k){e.state_=3;e.errorMessage_="The stream is broken @"+e.JSC$19612_streamPos_+"/"+c+". Error: "+k+". With input:\n"+g;throw Error(e.errorMessage_);};
Mol.prototype.acceptsBinaryInput=function(){return!0};
Mol.prototype.parse=function(e){function g(n){n&128&&IU7(J,q,L,"invalid tag");(n&7)!=2&&IU7(J,q,L,"invalid wire type");J.tag_=n>>>3;J.tag_!=1&&J.tag_!=2&&J.tag_!=15&&IU7(J,q,L,"unexpected tag");J.state_=1;J.length_=0;J.countLengthBytes_=0}
function c(n){J.countLengthBytes_++;J.countLengthBytes_==5&&n&240&&IU7(J,q,L,"message length too long");J.length_|=(n&127)<<(J.countLengthBytes_-1)*7;n&128||(J.state_=2,J.countMessageBytes_=0,typeof Uint8Array!=="undefined"?J.messageBuffer_=new Uint8Array(J.length_):J.messageBuffer_=Array(J.length_),J.length_==0&&I())}
function k(n){J.messageBuffer_[J.countMessageBytes_++]=n;J.countMessageBytes_==J.length_&&I()}
function I(){if(J.tag_<15){var n={};n[J.tag_]=J.messageBuffer_;J.result_.push(n)}J.state_=0}
for(var J=this,q=e instanceof Array?e:new Uint8Array(e),L=0;L<q.length;){switch(J.state_){case 3:IU7(J,q,L,"stream already broken");break;case 0:g(q[L]);break;case 1:c(q[L]);break;case 2:k(q[L]);break;default:throw Error("jk`"+J.state_);}J.JSC$19612_streamPos_++;L++}e=J.result_;J.result_=[];return e.length>0?e:null};var gv7=function(){this.errorMessage_=null;this.JSC$19615_streamPos_=0;this.base64Decoder_=new OUQ;this.pbParser_=new Mol};
gv7.prototype.isInputValid=function(){return this.errorMessage_===null};
var JR0=function(e,g,c){e.errorMessage_="The stream is broken @"+e.JSC$19615_streamPos_+". Error: "+c+". With input:\n"+g;throw Error(e.errorMessage_);};
gv7.prototype.acceptsBinaryInput=function(){return!1};
gv7.prototype.parse=function(e){this.errorMessage_!==null&&JR0(this,e,"stream already broken");var g=null;try{var c=this.base64Decoder_.decode(e);g=c===null?null:this.pbParser_.parse(c)}catch(k){JR0(this,e,k.message)}this.JSC$19615_streamPos_+=e.length;return g};var e9g=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19618_streamPos_=0;this.result_=[];this.statusParsed_=!1};
e9g.prototype.isInputValid=function(){return this.errorMessage_===null};
e9g.prototype.acceptsBinaryInput=function(){return!1};
e9g.prototype.parse=function(e){function g(n){J.state_=6;J.errorMessage_="The stream is broken @"+J.JSC$19618_streamPos_+"/"+q+". Error: "+n+". With input:\n";throw Error(J.errorMessage_);}
function c(){J.jsonStreamParser_=new _.qR({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function k(n){if(n)for(var R=0;R<n.length;R++){var W={};W[1]=n[R];J.result_.push(W)}}
function I(n){if(n){(J.statusParsed_||n.length>1)&&g("extra status: "+n);J.statusParsed_=!0;var R={};R[2]=n[0];J.result_.push(R)}}
for(var J=this,q=0;q<e.length;){var L;if(L=J.state_!==2){a:{for(;q<e.length;){if(!_.Fs(e[q])){L=!0;break a}q++;J.JSC$19618_streamPos_++}L=!1}L=!L}if(L)return null;switch(J.state_){case 6:g("stream already broken");break;case 0:e[q]==="["?(J.state_=1,q++,J.JSC$19618_streamPos_++):g("unexpected input token");break;case 1:e[q]==="["?(J.state_=2,c()):e[q]===","||e.slice(q,q+5)=="null,"?J.state_=3:e[q]==="]"?(J.state_=5,q++,J.JSC$19618_streamPos_++):g("unexpected input token");break;case 2:L=J.jsonStreamParser_.parse(e.substring(q));
k(L);J.jsonStreamParser_.done()?(J.state_=3,L=J.jsonStreamParser_.JSC$11797_buffer_,J.JSC$19618_streamPos_+=e.length-q-L.length,e=L,q=0):(J.JSC$19618_streamPos_+=e.length-q,q=e.length);break;case 3:e[q]===","||e.slice(q,q+5)=="null,"?(J.state_=4,c(),J.jsonStreamParser_.parse("["),q+=e[q]===","?1:5,J.JSC$19618_streamPos_++):e[q]==="]"&&(J.state_=5,q++,J.JSC$19618_streamPos_++);break;case 4:L=J.jsonStreamParser_.parse(e.substring(q));I(L);J.jsonStreamParser_.done()?(J.state_=5,L=J.jsonStreamParser_.JSC$11797_buffer_,
J.JSC$19618_streamPos_+=e.length-q-L.length,e=L,q=0):(J.JSC$19618_streamPos_+=e.length-q,q=e.length);break;case 5:g("extra input after stream end")}}return J.result_.length>0?(e=J.result_,J.result_=[],e):null};var v8q=function(e){this.JSC$19621_xhr_=e;this.JSC$19621_parser_=null;this.status_=this.JSC$19621_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19621_textDecoder_=null;this.JSC$19621_eventHandler_=new _.wD(this);this.JSC$19621_eventHandler_.listen(this.JSC$19621_xhr_,"readystatechange",this.JSC$19623_readyStateChangeHandler_)},TU=function(e,g){e.status_!=g&&(e.status_=g,e.statusHandler_&&e.statusHandler_())},wUl=function(e){e.JSC$19621_eventHandler_.removeAll();
if(e.JSC$19621_xhr_){var g=e.JSC$19621_xhr_;e.JSC$19621_xhr_=null;g.abort();g.dispose()}};
v8q.prototype.getStatus=function(){return this.status_};
v8q.prototype.JSC$19623_readyStateChangeHandler_=function(e){e=e.target;try{if(e==this.JSC$19621_xhr_)a:{var g=_.xo(this.JSC$19621_xhr_),c=this.JSC$19621_xhr_.JSC$10106_lastErrorCode_,k=this.JSC$19621_xhr_.getStatus(),I=this.JSC$19621_xhr_.getResponseText();e=[];if(this.JSC$19621_xhr_.getResponse()instanceof Array){var J=this.JSC$19621_xhr_.getResponse();J.length>0&&J[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,e=J)}if(!(g<3||g==3&&!I&&e.length==0))if(k=k==200||k==206,g==4&&(c==8?
TU(this,7):c==7?TU(this,8):k||TU(this,3)),this.JSC$19621_parser_||(this.JSC$19621_parser_=c3Q(this.JSC$19621_xhr_),this.JSC$19621_parser_==null&&TU(this,5)),this.status_>2)wUl(this);else{if(e.length>this.JSC$19621_pos_){var q=e.length;c=[];try{if(this.JSC$19621_parser_.acceptsBinaryInput())for(var L=0;L<q;L++){var n=this.JSC$19621_parser_.parse(Array.from(e[L]));n&&(c=c.concat(n))}else{n="";if(!this.JSC$19621_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("kk");this.JSC$19621_textDecoder_=
new TextDecoder}for(L=0;L<q;L++)n+=this.JSC$19621_textDecoder_.decode(e[L],{stream:g==4&&L==q-1});c=this.JSC$19621_parser_.parse(n)}e.splice(0,q);c&&this.dataHandler_(c)}catch(W){TU(this,5);wUl(this);break a}}else if(I.length>this.JSC$19621_pos_){L=I.slice(this.JSC$19621_pos_);this.JSC$19621_pos_=I.length;try{var R=this.JSC$19621_parser_.parse(L);R!=null&&this.dataHandler_&&this.dataHandler_(R)}catch(W){TU(this,5);wUl(this);break a}}g==4?(I.length!=0||this.hasStreamingResponseData_?TU(this,2):TU(this,
4),wUl(this)):TU(this,1)}}}catch(W){TU(this,6),wUl(this)}};var qES=function(e){e=this.xhrReader_=e;var g=(0,_.Ju)(this.onData_,this);e.dataHandler_=g;e=this.xhrReader_;g=(0,_.Ju)(this.onStatusChange_,this);e.statusHandler_=g;this.JSC$19625_callbackMap_={};this.callbackOnceMap_={}};
_.v=qES.prototype;_.v.on=function(e,g){var c=this.JSC$19625_callbackMap_[e];c||(c=[],this.JSC$19625_callbackMap_[e]=c);c.push(g);return this};
_.v.addListener=function(e,g){this.on(e,g);return this};
_.v.removeListener=function(e,g){var c=this.JSC$19625_callbackMap_[e];c&&_.UC(c,g);(e=this.callbackOnceMap_[e])&&_.UC(e,g);return this};
_.v.once=function(e,g){var c=this.callbackOnceMap_[e];c||(c=[],this.callbackOnceMap_[e]=c);c.push(g);return this};
_.v.onData_=function(e){var g=this.JSC$19625_callbackMap_.data;g&&LKz(e,g);(g=this.callbackOnceMap_.data)&&LKz(e,g);this.callbackOnceMap_.data=[]};
var LKz=function(e,g){for(var c={},k=0;k<e.length;c={message$jscomp$1008:void 0},k++)c.message$jscomp$1008=e[k],g.forEach(function(I){return function(J){try{J(I.message$jscomp$1008)}catch(q){}}}(c))};
qES.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:rRo(this,"readable");break;case 5:case 6:case 4:case 7:case 3:rRo(this,"error");break;case 8:rRo(this,"close");break;case 2:rRo(this,"end")}};
var rRo=function(e,g){var c=e.JSC$19625_callbackMap_[g];c&&c.forEach(function(k){try{k()}catch(I){}});
(c=e.callbackOnceMap_[g])&&c.forEach(function(k){k()});
e.callbackOnceMap_[g]=[]};var aUl=function(){var e={format:"jspb"};e=e===void 0?{}:e;this.suppressCorsPreflight=e.suppressCorsPreflight||_.Q0("suppressCorsPreflight",e)||!1;this.withCredentials=e.withCredentials||_.Q0("withCredentials",e)||!1;this.streamInterceptors=e.streamInterceptors||[];this.unaryInterceptors=e.unaryInterceptors||[];this.workerScope=e.workerScope;this.chunkedServerStreaming=e.useFetchDownloadStreams||!1},E8D=function(e,g,c,k,I,J){J=J===void 0?{}:J;
var q=g.substring(0,g.length-I.name.length),L,n=(L=J)==null?void 0:L.signal;return n8X(function(R){return new Promise(function(W,b){if(n==null?0:n.aborted){var h=new _.ha(1,"Aborted");h.cause=n.reason;b(h)}else{var X={},D=RFl(e,R,q);D.on("error",function(f){return void b(f)});
D.on("metadata",function(f){X=f});
D.on("data",function(f){var l=X;l=l===void 0?{}:l;W(new G4O(f,l))});
n&&n.addEventListener("abort",function(){D.cancel();var f=new _.ha(1,"Aborted");f.cause=n.reason;b(f)})}})},e.unaryInterceptors).call(e,xxv(I,c,k)).then(function(R){return R.responseMessage})},WK7=function(e,g,c,k,I,J){J=J===void 0?{}:J;
return E8D(e,g,c,k,I,J)};
aUl.prototype.serverStreaming=function(e,g,c,k){var I=this,J=e.substring(0,e.length-k.name.length);return bPO(function(q){var L=q.methodDescriptor,n=q.getMetadata(),R=hFv(I,!1);n=XUO(I,n,R,J+L.getName());var W=G_j(R,L.responseDeserializeFn,!0);q=L.requestSerializeFn(q.requestMessage);R.send(n,"POST",q);return W},this.streamInterceptors).call(this,xxv(k,g,c))};
var RFl=function(e,g,c){var k=g.methodDescriptor,I=g.getMetadata(),J=hFv(e,!0);e=XUO(e,I,J,c+k.getName());c=G_j(J,k.responseDeserializeFn,!1);KWz(c,I["X-Goog-Encode-Response-If-Executable"]==="base64");g=k.requestSerializeFn(g.requestMessage);J.send(e,"POST",g);return c},hFv=function(e,g){g=e.chunkedServerStreaming&&!g;
return e.workerScope||g?new _.GS(new MJM({worker:e.workerScope,streamBinaryChunks:g})):new _.GS},XUO=function(e,g,c,k){g["Content-Type"]="application/json+protobuf";
g["X-User-Agent"]="grpc-web-javascript/0.1";var I=g.Authorization;if(I&&HXX.has(I.split(" ")[0])||e.withCredentials)c.JSC$10106_withCredentials_=!0;if(e.suppressCorsPreflight)k=k_o(k,"$httpHeaders",g);else for(e=_.w(Object.keys(g)),I=e.next();!I.done;I=e.next())I=I.value,c.headers.set(I,g[I]);return k},G_j=function(e,g,c){if(c){c=new v8q(e);
var k=new qES(c)}return new ZXQ({xhr:e,nodeReadableStream:k},g)},bPO=function(e,g){return g.reduce(function(c,k){return function(I){return k.intercept(I,c)}},e)},n8X=function(e,g){return g.reduce(function(c,k){return function(I){return k.intercept(I,c)}},e)};var xdQ=function(e){this.client_=new aUl;this.hostname_=e==void 0?e:e.replace(/\/+$/,"")};
_.v=xdQ.prototype;_.v.JSC$19643_depositGoogleCredential=function(e,g,c){return WK7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",e,g||{},fPl,c)};
_.v.deleteLink=function(e,g,c){return WK7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",e,g||{},$xQ,c)};
_.v.JSC$19643_finishOAuth=function(e,g,c){return WK7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",e,g||{},Pkx,c)};
_.v.getLink=function(e,g,c){return WK7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",e,g||{},mxv,c)};
_.v.startLinkingSession=function(e,g,c){return WK7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",e,g||{},zj0,c)};var DdO=[0,_.sU,1,GpD,[0,_.zX,[0,_.uy,-1]],[0,X6l],[0,_.Vk,-1],[0,X6l]];var $dX=function(){this.storage=new Map},fUD=function(e,g,c,k,I){if(!e.storage.has(g))return null;
e=_.w(e.storage.get(g));for(g=e.next();!g.done;g=e.next())if(g=g.value,!I||g.linkName===I)if(c&&g.scopes&&YEv(g.scopes,c)||k&&g.capabilities&&YEv(g.capabilities,k))return g;return null},j_z=function(e,g,c){if(!c)e.storage.delete(g);
else if(e.storage.has(g)){var k=e.storage.get(g).filter(function(I){return I.linkName!==c});
k.length>0?e.storage.set(g,k):e.storage.delete(g)}},YEv=function(e,g){g=_.w(g);
for(var c=g.next();!c.done;c=g.next())if(!e.has(c.value))return!1;return!0};var iPO=function(){var e=_.uo("LINK_GAL_DOMAIN");this.alsDomain1p=_.uo("LINK_GAL_DOMAIN");this.alsDomain3p=e;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},Pp0=function(e,g){e.apiKey=g;
return e};
iPO.prototype.build=function(){var e={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("lk");e.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("mk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("nk");e.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(e.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)e.apiKey=
this.apiKey,e.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ok");e.oauthToken=this.oauthToken;e.alsDomain=this.alsDomain3p}e.clientXd3=this.clientXd3;e.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(e.authUser=this.authUser);this.bucket!==void 0&&(e.bucket=this.bucket);this.completionUrl!==void 0&&(e.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(e.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(e.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(e.locale=this.locale);this.localStorage!==void 0&&(e.localStorage=this.localStorage);e.loggerType=this.loggerType;e.clientEnvironment=this.clientEnvironment;e.colorScheme=this.colorScheme;e.showCloseOption=this.showCloseOption;return e};var e3=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(e3,_.WJ);var md7=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(md7,_.WJ);var pUv=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(pUv,_.WJ);var cK=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(cK,_.WJ);var TMx=function(e){return _.EU(e,1)};var lUj=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(lUj,_.WJ);var Liz=_.ld(lUj),gW=[1,2,3,4,5];var J3o=function(e){try{return Liz(e)}catch(g){return null}},ARl=function(){},vvo=function(e,g){switch(_.JP(g,gW)){case 4:return(g=_.hP(g,pUv,4,gW))&&e.logStateTransition(_.EU(g,1)),!0;
case 5:return(g=_.hP(g,md7,5,gW))&&e.logInternalEvent(_.EU(g,1)),!0}return!1},r3q=function(e){switch(e){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.gj(e)}};var kbg=function(e,g){var c=this;this.validator=e;this.messageListener=g;this.dismissCallback=function(){s_X(c,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19672_receiveMessage=function(k){k.type==="message"&&(k=k.event_,k!==null&&(new URL(c.iframe.src)).origin===k.origin&&c.validator(k.data,k.origin)&&!c.messageListener(k.data)&&(c.JSC$19672_resolveCb!==void 0&&c.JSC$19672_resolveCb(k.data),FKx(c)))}},qYO=function(e,g,c){e.uiHandler!==void 0&&s_X(e,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(k,I){e.JSC$19672_resolveCb=k;e.JSC$19672_rejectCb=I;e.iframe=document.createElement("iframe");_.vA(e.iframe,g);e.uiHandler=c.displayContent(e.iframe,e.dismissCallback);_.iK(window,"message",e.JSC$19672_receiveMessage,!1,e)})},s_X=function(e,g){e.JSC$19672_rejectCb!==void 0&&e.JSC$19672_rejectCb(g);
FKx(e)},FKx=function(e){e.uiHandler!==void 0&&e.uiHandler.hideContent();
_.a0(window,"message",e.JSC$19672_receiveMessage,!1,e);e.JSC$19672_resolveCb=void 0;e.JSC$19672_rejectCb=void 0;e.uiHandler=void 0;e.iframe=void 0};var uND=function(e){if(e===2){var g;e=((g=window)==null?0:g.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return e},wgl=function(e){e=uND(e);
switch(e){case 0:return"light";case 1:return"dark";default:_.gj(e)}};var Iux=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),ddO=function(e,g){this.JSC$19684_linkingSession=e;this.noticeConfig=g;this.displayInfoMap=new Map;var c=new Map;if(_.cW(this.JSC$19684_linkingSession,lPx,7))for(e=_.Ml(this.JSC$19684_linkingSession,lPx,7),e=_.z1(e,TaS,1,_.HH()),e=_.w(e),g=e.next();!g.done;g=e.next())g=g.value,c.set(_.EU(g,1),_.q2A(_.Ml(g,_.nTC,3)));if(c.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){g=this.noticeConfig.enabledDataUsageNoticeUis;e=g.has(0)?c.get(1):void 0;g=g.has(1)?c.get(2):void 0;c=e!==void 0&&g!==void 0?c.get(3):void 0;var k=this.noticeConfig.nestedOrigins;var I=new lUj;var J=new e3;I=_.Fp(I,2,gW,J);J=new lUj;var q=new e3;J=_.Fp(J,3,gW,q);q=[];e!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:e,lastEvent:I,nestedOrigins:k}]),q.push({trustedUrl:e,lastEvent:I,nestedOrigins:k}));g!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:g,lastEvent:J,nestedOrigins:k}]),q.push({trustedUrl:g,lastEvent:J,nestedOrigins:k}));c!==void 0?this.displayInfoMap.set(3,[{trustedUrl:c,lastEvent:J,nestedOrigins:k}]):this.displayInfoMap.set(3,q)}};var zFo=function(e){var g=new $dX;this.galService=e;this.galCache=g};
zFo.prototype.getLink=function(e){var g=e.serviceId;var c=e.scopes;var k=e.capabilities;var I=e.linkName;var J=this,q;return _.r(function(L){if(k!==void 0&&c!==void 0)throw Error("pk");q=fUD(J.galCache,g,c,k,I);return q!==null?L.return(q):L.return(J.galService.getLink({serviceId:g,sessionId:Math.floor(Math.random()*2147483648),scopes:c,capabilities:k,linkName:I}).then(function(n){n=Wiq(n);var R=J.galCache;R.storage.has(g)?R.storage.get(g).push(n):R.storage.set(g,[n]);return n}))})};
zFo.prototype.deleteLink=function(e,g,c){var k=this;return _.r(function(I){j_z(k.galCache,e,c);return I.return(k.galService.deleteLink({serviceId:e,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:g,linkName:c}).then(function(){return!0}))})};var Q_0=function(e,g){var c=this;this.validator=e;this.msgHandler=g;this.closedPopupTimeout=this.JSC$19706_rejectCb=this.JSC$19706_resolveCb=this.popup=null;this.JSC$19706_receiveMessage=function(k){if(k!==null&&(k=k.event_,k.source===c.popup)){var I=k.data;if(c.validator(I,k.origin)){var J;(J=c.msgHandler)!=null&&J.call(c,I)||(c.JSC$19706_resolveCb!==null&&c.JSC$19706_resolveCb(I),HPD(c))}}}};
Q_0.prototype.open=function(e,g){var c=this;this.popup!==null&&Udx(this);return new Promise(function(k,I){c.JSC$19706_resolveCb=k;c.JSC$19706_rejectCb=I;c.popup=_.q5(window,e,"",g);_.iK(window,"message",c.JSC$19706_receiveMessage,!1,c);o8S(c)})};
var Udx=function(e,g){e.JSC$19706_rejectCb!==null&&e.JSC$19706_rejectCb(g);HPD(e)},HPD=function(e){e.closedPopupTimeout&&(e.closedPopupTimeout.cancel(),e.closedPopupTimeout=null);
e.popup&&e.popup.close();_.a0(window,"message",e.JSC$19706_receiveMessage,!1,e);e.popup=null;e.JSC$19706_resolveCb=null;e.JSC$19706_rejectCb=null},o8S=function(e){e.closedPopupTimeout=_.y_Z(100).then(function(){e.popup?e.popup.closed?ZPv(e):o8S(e):Udx(e,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},ZPv=function(e){e.closedPopupTimeout=_.y_Z(100).then(function(){Udx(e,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var VDl=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),tDl=function(e,g,c,k,I,J,q,L,n,R){var W=this;this.serviceId=e;this.sessionId=g;this.galService=c;this.oauthDetails=k;this.galLogger=I;this.interactionMode=J;this.redirectServiceUrl=q;this.consentLanguageKeys=L;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=R;this.started=!1;this.JSC$19712_dataValidator=function(b,
h){var X=VDl.has(h);X||W.redirectServiceUrl===void 0||(X=W.redirectServiceUrl===h);return X?b.sentinel==="gdi":!1}};
tDl.prototype.complete=function(){var e=this,g;return _.r(function(c){if(e.interactionMode!==1)return c.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));g=isq.getRedirectStateFromUri();return g===null?c.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):c.return(BMq(e,g))})};
tDl.prototype.start=function(){var e=this,g;return _.r(function(c){if(e.started)return c.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Rs(e.oauthDetails,1))return c.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(e.interactionMode===1)return isq.setLocation(_.Rs(e.oauthDetails,1)),c.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));e.started=!0;e.galLogger.logStateTransition(5);
g=isq.getPostMessagePopup(e.JSC$19712_dataValidator);return c.return(g.open(_.Rs(e.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(k){e.started=!1;var I=e.galLogger;if((k==null?void 0:k.error)!==void 0)throw I.logInternalEvent(59),Error("qk");if((k==null?void 0:k.redirect_state)===void 0)throw I.logInternalEvent(131),Error("rk");return BMq(e,k.redirect_state)}).catch(function(k){e.started=
!1;
return k.errorCode!==void 0?{statusCode:k.errorCode,statusMessage:k.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var BMq=function(e,g){return _.r(function(c){return c.return(NMz(e.galService,{serviceId:e.serviceId,sessionId:e.sessionId,dynamicUrlParameters:e.dynamicUrlParameters,redirectState:g,consentLanguageKeys:e.consentLanguageKeys,partnerConfigMinReadTimestamp:e.partnerConfigMinReadTimestamp}).then(function(k){var I={statusCode:1,link:Wiq(k.getLink())};hkX(_.Is(k,3))!==void 0&&(I.callerState=hkX(_.Is(k,3)));_.BjK(k,4,jMQ,bMj).size>0&&(I.redirectUriParams=new Map(Array.from(_.BjK(k,4,jMQ,bMj).entries()).map(function(J){var q=
_.w(J);J=q.next().value;var L=q.next().value;q=[];var n=q.concat;L=_.gr(L,1,_.TD,_.HH());return[J,n.call(q,_.KY(L))]})));
e.galLogger.logInternalEvent(134);return I}))})},isq={getPostMessagePopup:function(e){return new Q_0(e)},
getRedirectStateFromUri:function(){var e=_.zs(isq.getLocation()).fragment_;return(new _.ta(e)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(e){_.FzV(window.location,_.Km(e))},
createOAuthFlow:function(e,g){return new tDl(e.serviceId,e.sessionId,e.galService,g,e.galLogger,e.interactionMode,e.redirectServiceUrl,e.consentLanguageKeys,e.dynamicUrlParameters,e.partnerConfigMinReadTimestamp)}};var SE7=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(SE7,_.WJ);var yR0=_.ld(SE7);var KKg=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),OPX=function(e,g,c,k,I,J,q,L,n){var R=this;this.serviceId=e;this.sessionId=g;this.galService=c;this.gsiWebFlowDetails=k;this.colorScheme=I;this.showCloseOption=J;this.galLogger=q;this.interactionMode=L;this.redirectServiceUrl=n;this.started=!1;this.JSC$19725_dataValidator=function(W,b){var h=KKg.has(b);h||R.redirectServiceUrl===
void 0||(h=R.redirectServiceUrl===b);return h?W.sentinel==="gal":!1};
this.logEventProcessor=function(W){return W.result?(W=J3o(W.result))?vvo(R.galLogger,W):!1:!1}};
OPX.prototype.complete=function(){var e=this,g,c;return _.r(function(k){if(e.interactionMode!==1)return k.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));g=mkQ.getRedirectStateFromUri();if(g===void 0)return e.galLogger.JSC$19664_logErrorEvent(131),k.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return c=MDv(e,g),k.return(Cpl(e,c))}catch(I){return k.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
OPX.prototype.start=function(){var e=this,g;return _.r(function(c){if(e.started)return c.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Rs(e.gsiWebFlowDetails,1))return c.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(e.interactionMode===1)return mkQ.setLocation(e2S(e,_.Rs(e.gsiWebFlowDetails,1))),c.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
e.started=!0;g=mkQ.getPostMessagePopup(e.JSC$19725_dataValidator,e.logEventProcessor);return c.return(g.open(e2S(e,_.Rs(e.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(k){e.started=!1;if((k==null?void 0:k.result)===void 0)throw e.galLogger.JSC$19664_logErrorEvent(131),Error("rk");k=MDv(e,k.result);return Cpl(e,k)}).catch(function(k){e.started=!1;
return k.errorCode!==void 0?{statusCode:k.errorCode,statusMessage:k.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var e2S=function(e,g){e=["result_channel",e.interactionMode===1?"2":"1","color_scheme",wgl(e.colorScheme),"show_close_option",e.showCloseOption];return DRq(g,e)},Cpl=function(e,g){if(g!==null&&_.cW(g,cK,2)){var c,k=g==null?void 0:(c=_.Ml(g,cK,2))==null?void 0:_.EU(c,2);
k&&e.galLogger.JSC$19664_logErrorEvent(r3q(k));return TMx(_.Ml(g,cK,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 e.galService.getLink({serviceId:e.serviceId,sessionId:e.sessionId,consistencyKey:_.Rs(g,1)}).then(function(I){I=Wiq(I);e.galLogger.logInternalEvent(134);return{statusCode:1,link:I}})},MDv=function(e,g){g=yR0(g);
if(!_.cW(g,cK,2)&&_.Rs(g,1)==="")throw e.galLogger.JSC$19664_logErrorEvent(5),Error("sk");return g},mkQ={getPostMessagePopup:function(e,g){return new Q_0(e,g)},
getRedirectStateFromUri:function(){return _.Ht(_.zs(mkQ.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(e){_.FzV(window.location,_.Km(e))},
createStreamlinedFlow:function(e,g){return new OPX(e.serviceId,e.sessionId,e.galService,g,e.colorScheme,e.showCloseOption,e.galLogger,e.interactionMode,e.redirectServiceUrl)}};var Fiv=function(e){this.storage=(e=e?_.x1("GAL"):_.DWv("GAL"))?new _.WQ(e):null};
Fiv.prototype.getSession=function(e){if(this.storage!==null)try{var g=this.storage.get("SAVED_SESSION");if(g===void 0)return null;if(g.serviceId===e)return g}catch(c){}return null};var gqq=function(){};
_.Y(gqq,ARl);gqq.prototype.logStateTransition=function(){};
gqq.prototype.logInternalEvent=function(){};
gqq.prototype.JSC$19664_logErrorEvent=function(){};var c$g=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(c$g,_.WJ);c$g.prototype.getCompletionUrl=function(){return _.Rs(this,15)};var l9=function(e,g,c,k,I,J){this.serviceId=e;this.environment=g;this.sessionId=c;this.colorSchemeSelected=k;this.colorThemeDisplayed=I;this.JSC$19738_transport=J;this.currentState=1};
_.Y(l9,ARl);l9.prototype.logStateTransition=function(e){var g=kxQ(this);g=_.Cf(g,3,this.currentState);g=_.Cf(g,1,e);this.currentState=e;e=LEj(1);this.dispatch(g,e)};
l9.prototype.logInternalEvent=function(e){e=LEj(e);this.dispatch(kxQ(this),e)};
l9.prototype.JSC$19664_logErrorEvent=function(e){var g=kxQ(this);g=_.Cf(g,1,10);e=LEj(e);this.dispatch(g,e)};
var kxQ=function(e){var g=new c$g;g=_.Cf(g,1,e.currentState);g=_.vH(g,7,e.serviceId);var c,k;var I=((c=window)==null?0:(k=c.location)==null?0:k.href)?_.zs(window.location.href).JSC$10342_domain_:"NO_PACKAGE_NAME";c=_.vH(g,8,I);c=_.Cf(c,6,e.environment);c=_.vH(c,5,"100");c=_.Cf(c,11,e.colorSchemeSelected);return _.Cf(c,12,e.colorThemeDisplayed)};
l9.prototype.dispatch=function(e,g){g===void 0&&(g=new _.C2);var c=g;e=e.serialize();c=_.vH(c,8,e);_.Rl(c,12,this.sessionId);this.JSC$19738_transport.dispatch(g)};var Iy7=function(e,g){this.loggerType=e;this.sessionIndex=g!=null?g:0},J$z;
Iy7.prototype.create=function(e,g,c,k,I){switch(this.loggerType){case 0:return new gqq;case 1:return J$z||(J$z=(new _.SQ(555,this.sessionIndex.toString())).build()),new l9(e,g,c,k,I,J$z);default:_.gj(this.loggerType,"unknown logger type")}};var pgx=[6,2,3,1],Ukj=new Map([[4,1],[1,6],[2,2],[3,3]]),Gbo={statusCode:7,statusMessage:"Failed to create flow object"},A3v=function(e,g,c,k,I,J,q,L,n,R){this.serviceId=e;this.sessionId=g;this.config=c;this.galService=k;this.JSC$19745_linkingSession=I;this.googleScopes=J;this.callerState=q;this.consentLanguageKeys=L;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=R;this.currentFlow=0;k=this.JSC$19745_linkingSession;I=new Set;_.cW(k,j1o,1)&&I.add(1);_.cW(k,sMX,2)&&_.cW(k,PgS,6)&&I.add(2);
_.cW(k,Acq,3)&&_.cW(k,PgS,6)&&I.add(3);_.cW(k,pnS,4)&&I.add(6);this.supportedFlows=I;k=c.loggerType;I=c.clientEnvironment;a:{J=c.colorScheme;switch(J){case 0:J=1;break a;case 1:J=2;break a;case 2:J=3;break a;default:_.gj(J)}J=void 0}a:{q=c.colorScheme;q=uND(q);switch(q){case 0:q=1;break a;case 1:q=2;break a;default:_.gj(q)}q=void 0}this.galLogger=(new Iy7(k,c.authUser)).create(e,I,g,J,q)},qH0=function(e){return new Promise(function(g){var c,k,I,J,q,L,n,R,W,b;
return _.r(function(h){switch(h.nextAddress){case 1:c=TpD(e.currentFlow,e.supportedFlows),k=!1,I=new ddO(e.JSC$19745_linkingSession,e.config.dataUsageNoticeConfig);case 2:if(c===void 0){h.jumpTo(4);break}_.lj(h,5);var X=I,D=c,f=void 0;k?D===1&&(f=X.displayInfoMap.get(2)):D===2||D===3?f=X.displayInfoMap.get(1):D===1&&(f=X.displayInfoMap.get(3));J=f?f:[];q=e.consentLanguageKeys;L=_.w(J);n=L.next();case 7:if(n.done)return e.currentFlow=c,h.yield(Dkq(vqg(e,q)),11);R=n.value;return h.yield(auz(R,e.config.dataUsageNoticeConfig.uiAdapter,
e.config.colorScheme,e.galLogger),10);case 10:W=h.yieldResult;if(W.statusCode!==1)return wll(e),g($kD({statusCode:W.statusCode,statusMessage:W.statusMessage},e.callerState)),h.return();W.consentLanguageKeys!==void 0&&(q=W.consentLanguageKeys);n=L.next();h.jumpTo(7);break;case 11:b=h.yieldResult;if(b.statusCode!==10)return b.statusCode!==6&&wll(e),b.statusCode!==1&&e.callerState!==void 0&&(b.callerState=e.callerState),g(b),h.return();_.zn(h,6);break;case 5:_.Qb(h);case 6:c=TpD(e.currentFlow,e.supportedFlows);
k=!0;h.jumpTo(2);break;case 4:wll(e),g($kD({statusCode:12,statusMessage:"Linking failed"},e.callerState)),_.Uh(h)}})})},wll=function(e){uZD(e.serviceId,e.config.localStorage);
e.currentFlow=0},HsQ=function(e,g,c){e.currentFlow=g;
return YYj(vqg(e,c)).then(function(k){return k.statusCode===10&&e.config.interactionMode===1&&TpD(e.currentFlow,e.supportedFlows)!==void 0?qH0(e):k})},vqg=function(e,g){return{flowParams:{serviceId:e.serviceId,
sessionId:e.sessionId,galService:e.galService,galLogger:e.galLogger,interactionMode:e.config.interactionMode,redirectServiceUrl:e.config.redirectServiceUrl,colorScheme:e.config.colorScheme,consentLanguageKeys:g,dynamicUrlParameters:e.dynamicUrlParameters,showCloseOption:e.config.showCloseOption,partnerConfigMinReadTimestamp:e.partnerConfigMinReadTimestamp},currentFlow:e.currentFlow,config:e.config,session:e.JSC$19745_linkingSession,googleScopes:e.googleScopes,callerState:e.callerState}};var Zsj=function(e,g){this.config=e;this.galService=g.getService();this.JSC$19758_galRepository=g.JSC$19776_galRepository};
Zsj.prototype.getLink=function(e,g){return LAq(this,e,g)};
var LAq=function(e,g,c){return e.JSC$19758_galRepository.getLink({serviceId:g,scopes:void 0,capabilities:void 0,linkName:c}).then(function(k){return{statusCode:1,link:k}}).catch(function(k){return{statusCode:ovg(k.code),
statusMessage:k.message}})};
Zsj.prototype.deleteLink=function(e,g){return this.JSC$19758_galRepository.deleteLink(e,this.config.accountLinkingEntryPoint,g).then(function(){return{statusCode:1}}).catch(function(c){return{statusCode:ovg(c.code),
statusMessage:c.message}})};
Zsj.prototype.startLinkingSession=function(e){var g=e.serviceId;var c=e.sessionId;return s1j({serviceId:g,sessionId:c!==void 0?c:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:e.loginHint,callerState:e.callerState,consentLanguageKeys:e.consentLanguageKeys,linkName:e.linkName,dynamicUrlParameters:e.dynamicUrlParameters,partnerConfigMinReadTimestamp:e.partnerConfigMinReadTimestamp})};var AM=function(e,g,c,k,I,J,q){this.apiKey=g;this.authUser=c;this.oauthToken=k;this.bucket=I;this.locale=J;this.galSdkEventHandler=q;if(k===void 0){if(g===void 0)throw Error("tk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new xdQ(e)};
AM.prototype.deleteLink=function(e){var g=e.serviceId;var c=e.sessionId;var k=e.accountLinkingEntryPoint;var I=e.linkName;var J=this,q;return _.r(function(L){var n=(new jg).setHeader(J.getHeader(c));var R=r$S({serviceId:g,linkName:I});n=_.sx(n,2,R);q=_.GX(n,3,k);return L.return(J.makeRequest(J.galServiceClient.deleteLink,q,[1,3],[2,4]))})};
var NMz=function(e,g){var c=g.serviceId;var k=g.sessionId;var I=g.dynamicUrlParameters;var J=g.redirectState;var q=g.consentLanguageKeys;var L=g.partnerConfigMinReadTimestamp;var n;return _.r(function(R){var W=(new P7).setHeader(e.getHeader(k,I));W=_.pL(W,2,c);n=_.pL(W,4,J);q!==void 0&&_.pL(n,5,q);L!==void 0&&_.sx(n,6,L);return R.return(e.makeRequest(e.galServiceClient.JSC$19643_finishOAuth,n,[1,3],[2,4]))})};
AM.prototype.getLink=function(e){var g=e.serviceId;var c=e.sessionId;var k=e.scopes;var I=e.capabilities;var J=e.consistencyKey;var q=e.linkName;var L=this,n;return _.r(function(R){var W=(new m_).setHeader(L.getHeader(c)),b=r$S({serviceId:g,scopes:k,capabilities:I,linkName:q});n=_.sx(W,2,b);J!==void 0&&(W=WWj(),W=_.pL(W,2,J),_.sx(n,3,W));return R.return(L.makeRequest(L.galServiceClient.getLink,n,[1,3],[2,4]))})};
var fuX=function(e,g){var c=g.serviceId;var k=g.sessionId;var I=g.googleScopes;var J=g.consistencyKey;var q;return _.r(function(L){var n=(new i9).setHeader(e.getHeader(k));n=_.pL(n,2,c);var R=Array.from(I.values());n=_.Jj(n,3,R,_.iS);R=WWj();R=_.pL(R,2,J);q=_.sx(n,4,R);return L.return(e.makeRequest(e.galServiceClient.JSC$19643_depositGoogleCredential,q,[1,3],[2,4]))})};
AM.prototype.startLinkingSession=function(e){var g=e.serviceId;var c=e.sessionId;var k=e.scopes;var I=e.capabilities;var J=e.loginHint;var q=e.supportedFlows;var L=e.completionUrl;var n=e.usePingPong;var R=e.twoWayLinking;var W=e.accountLinkingEntryPoint;var b=e.callerState;var h=e.consentLanguageKeys;var X=e.googleScopes;var D=e.dataUsageNoticeConfig;var f=e.linkName;var l=e.dynamicUrlParameters;var A=e.partnerConfigMinReadTimestamp;var d=this,S,V;return _.r(function(Q){if(I!==void 0&&k!==void 0)throw Error("pk");
var y=(new dxM).setHeader(d.getHeader(c,l));S=_.pL(y,2,g);f!==void 0&&_.pL(S,14,f);if(I!==void 0){y=S;var O=Array.from(I.values());_.Jj(y,5,O,_.iS)}else k!==void 0&&(y=S,O=Array.from(k.values()),_.Jj(y,3,O,_.iS));L!==void 0&&_.pL(S,6,L);n!==void 0&&_.rE(S,15,n);q!==void 0&&(y=S,O=Array.from(q.values()),_.Jj(y,4,O,_.qM));if(R!==void 0){if(R&&(!X||X.size===0))throw Error("uk");_.rE(S,8,R)}W!==void 0&&_.GX(S,9,W);J!==void 0&&_.pL(S,13,J);b!==void 0&&(y=S,O=(new TextEncoder).encode(b),_.wr(y,12,_.sv(O,
!1),_.Ak()));h!==void 0&&_.pL(S,16,h);A!==void 0&&_.sx(S,18,A);if(D!==void 0&&D.size>0||X!==void 0&&X.size>0)V=new uHl,X!==void 0&&X.size>0&&(y=V,O=Array.from(X.values()),_.Jj(y,1,O,_.iS)),D!==void 0&&(D.has(0)&&_.CS6(V,2,_.qM,1,_.Lg),D.has(1)&&_.CS6(V,2,_.qM,2,_.Lg)),_.sx(S,17,V);return Q.return(d.makeRequest(d.galServiceClient.startLinkingSession,S,[1],[2]))})};
AM.prototype.getMetadata=function(){var e=this,g,c;return _.r(function(k){g={};e.useFpa?(g["X-Goog-Api-Key"]=e.apiKey,g["X-Goog-AuthUser"]=e.authUser!==void 0?e.authUser.toString():"0",(c=_.BkC([]))&&(g.Authorization=c)):g.Authorization="Bearer "+e.oauthToken;e.locale&&(g["accept-language"]=e.locale);return k.return(g)})};
AM.prototype.makeRequest=function(e,g,c,k){var I=this,J;return _.r(function(q){if(q.nextAddress==1)return q.yield(I.getMetadata(),2);J=q.yieldResult;ayq(I,c);return q.return(e.bind(I.galServiceClient)(g,J).finally(function(){ayq(I,k)}))})};
var ayq=function(e,g){e.galSdkEventHandler!==void 0&&g.forEach(function(c){e.galSdkEventHandler.onEvent(c)})};
AM.prototype.getHeader=function(e,g){var c=new $O;e=_.wr(c,2,_.rj(e),0);e=_.GX(e,5,3);g=_.Jj(e,8,g,_.iS);this.bucket!==void 0&&_.pL(g,1,this.bucket);return g};
var r$S=function(e){var g=e.serviceId;var c=e.scopes;var k=e.capabilities;e=e.linkName;if(k!==void 0&&c!==void 0)throw Error("pk");var I=new Rjz;g=_.pL(I,1,g);k!==void 0?(c=Array.from(k.values()),_.Jj(g,5,c,_.iS)):c!==void 0&&(c=Array.from(c.values()),_.Jj(g,3,c,_.iS));e!==void 0&&_.pL(g,6,e);return g};var Vhz=function(e){this.galService=new AM(e.alsDomain,e.apiKey,e.authUser,e.oauthToken,e.bucket,e.locale,e.galSdkEventHandler);this.JSC$19776_galRepository=new zFo(this.galService)};
Vhz.prototype.getService=function(){return this.galService};var nql=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(nql,_.WJ);var R27=function(e){var g=new nql;return _.Cf(g,1,e)};
nql.prototype.setErrorMessage=function(e){return _.vH(this,2,e)};var EqQ=[0,_.Z4,_.Fv,_.Z4];var sa=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(sa,_.WJ);var WAD=[0,[1,2,3],_.HW,[0,_.NrM,hD0,-1],_.HW,[0,bzg,-1],_.d0];var boQ=[0,_.ly,1,_.Z4,_.Fv,-1,1,_.Qk,_.mv,_.Z4,-1,WAD];var h2O=[0,_.Z4,[0,_.Qk,_.mv,[0,_.Fv]],_.AP,[0,_.Z4,-1]];var r5=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(r5,_.WJ);var Xl7=[0,_.Fv,_.Z4,-2,_.ly,_.Z4,_.ly,_.Z4,-2,1,_.AP];var Gxg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Gxg,_.WJ);var xGv=[0,_.ly];var DGO=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(DGO,_.WJ);var $G0=[0,_.Z4,h2O,xGv,Xl7,boQ];var zeS=_.ma(DGO,$G0);var YHM=[0,DdO];var tco=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(tco,_.WJ);var fyz=[0,[1,3],xE7,_.Z4,xE7];var Vc0=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Vc0,_.WJ);var jvl=[0,_.Z4];var iol=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(iol,_.WJ);var BGl=function(e){return _.hP(e,nql,2,L9)},PEg=function(e){var g=new iol;
return _.Fp(g,2,L9,e)},L9=[1,
2];var mGq=[0,L9,_.HW,jvl,_.HW,EqQ,_.zX,fyz,1,_.Z4,YHM];var plM=[0,1,[0,[1,2,3],_.HW,[0],_.HW,[0,fjQ],_.HW,[0,DdO]]];var TBS=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(TBS,_.WJ);var A$M=function(e){var g=new TBS;return _.Fp(g,3,lyX,e)},lyX=[2,
3];var svX=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(svX,_.WJ);var FA7=function(e,g){return _.sx(e,2,g)},uex=function(e,g){return _.sx(e,8,g)},dGg=function(e,g){return _.sx(e,3,g)};var z2l=[0,_.Z4,mGq,$G0,_.V2,[0,[5,6,7],[0,_.Z4,-2],[0,_.ly,_.Z4,_.Fv],[0,WAD],[0,_.Fv,_.Z4,-1,_.Zg,_.Z4],_.HW,[0,[0,_.ly],_.Z4,-1],_.HW,[0,[3,4],_.Z4,-1,_.HW,[0,[0,_.Z4,_.AP]],_.HW,[0,[0,[0,[1,2,3],_.HW,[0],_.HW,[0],_.HW,[0]]]]],_.HW,[0,_.Z4]],_.V2,-1,[0,lyX,_.Z4,_.HW,jvl,_.HW,EqQ,_.zX,fyz,[0,DdO],plM]];var HoO=_.ma(svX,z2l),Qvo=_.TT(z2l);var UGx=function(){_.Iy.call(this)};
_.Y(UGx,_.Iy);UGx.prototype.init=function(){};
new UGx;_.QG();var oq0=_.Ti(["data-"]),ZoQ=_.Ti(["aria-"]),VMS=_.Ti(["aria-"]),Fj=function(e,g){this.isLatencyMeasurementExperiment=e===void 0?!1:e;this.enableDialogA11yFix=g===void 0?!1:g;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.KqV(_.kp.location.href)},Q0O=function(e,g){e.onConsentPrimitiveShownCallback=g},tMQ=function(e,g){return e.overriddenIframeLoadTimeout?e.overriddenIframeLoadTimeout:g!==void 0?g:5E3},ooS=function(e){if(e.prewarmPromise!==void 0)return e.prewarmPromise;
e.prewarmPromise=new Promise(function(g,c){u9(e,1);BBg(e,NBQ(e,!0),SHM(e));e.iframe?e.prewarmChannel||y$v(e,e.iframe,g):c(Error("vk"))});
e.prewarmPromise.finally(function(){e.prewarmPromise=void 0});
return e.prewarmPromise};
Fj.prototype.showPrimitive=function(){var e=this;if(this.consentPromise!==void 0)return this.consentPromise;var g=Date.now();KAM(this,g);this.consentPromise=new Promise(function(c,k){u9(e,0,g);var I=e.isDarkTheme();e.isLatencyMeasurementExperiment||e.initialLoadingStrategy===1||e.initialLoadingStrategy===2||(e.loadingBar||(e.loadingBar=SY7(getComputedStyle(document.body).direction==="rtl",I),e.loadingBar.style.position="fixed",e.loadingBar.style.zIndex="15000"),document.body.appendChild(e.loadingBar));
BBg(e,NBQ(e),SHM(e));e.iframe?e.channel||Oox(e,e.iframe,c,k):(MMj(e),k(Error("vk")))});
this.consentPromise.finally(function(){e.consentPromise=void 0});
return this.consentPromise};
var Oox=function(e,g,c,k){var I,J;_.r(function(q){switch(q.nextAddress){case 1:u9(e,3);I=!1;setTimeout(function(){if(!I){MMj(e);CEl(e);eq0(e);var L=R27(7).setErrorMessage("Timeout connecting to iframe");c(uex(FA7(new svX,PEg(L)),A$M(L)))}},tMQ(e,gCo(e)));
if(!e.prewarmPromise){q.jumpTo(2);break}_.lj(q,3);return q.yield(e.prewarmPromise,5);case 5:_.zn(q,2);break;case 3:_.Qb(q),J=R27(4).setErrorMessage("Error while prewarming."),c(uex(FA7(new svX,PEg(J)),A$M(J)));case 2:e.prewarmChannel&&e.prewarmChannel.send(Qvo(dGg(new svX,e.consentPrimitiveRequest))),e.channel=_.NB({destination:e.win,iframe:g,origin:cFq(e),channelName:"cpw",onEstablished:function(){I=!0;MMj(e);e.isLatencyMeasurementExperiment||(e.JSC$19805_previousBodyOverflow=document.body.style.overflow,
e.JSC$19805_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,e.JSC$19805_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",e.enableDialogA11yFix&&window.addEventListener("blur",e.focusChangeListener));var L=e.iframe;L.style.bottom="0";L.style.position="fixed";L.style.right="0";L.style.border="none";L.style.left="0";L.style.top=
"0";L.style.zIndex="5000";L.style.pointerEvents="";L.style.visibility="";e.initialLoadingStrategy===2||e.initialLoadingStrategy===3?u9(e,4):u9(e,6);var n;(n=e.onConsentPrimitiveShownCallback)==null||n.call(e)},
onMessage:function(L){L=HoO(L.data);switch(_.EU(L,1)){case 1:CEl(e);var n=y3j(_.Ml(L,_.Wj,7));n&&(e.initialLoadingStrategy!==2&&e.initialLoadingStrategy!==3||u9(e,6,n),u9(e,5,n));if(n=y3j(_.Ml(L,_.Wj,6)))u9(e,7,n),u9(e,8);var R,W;((R=_.Ml(L,iol,2))==null?void 0:_.JP(R,L9))!==0&&((W=_.Ml(L,TBS,8))==null?void 0:_.JP(W,lyX))!==0||k(Error("wk"));c(L);break;case 2:eq0(e)}}}),_.Uh(q)}})},y$v=function(e,g,c){e.prewarmChannel=_.NB({destination:e.win,
iframe:g,origin:cFq(e),channelName:"pwcp",onEstablished:function(){u9(e,2);c()}})},cFq=function(e){var g=_.QP(e.src).toString();
return g&&g.indexOf("://")<0&&g.indexOf("//")!==0?e.origin:_.KqV(g)},NBQ=function(e,g){g=g===void 0?!1:g;
var c,k=new Map([["origin",e.origin],["hl",(c=kGQ(e))!=null?c:null]]);g&&k.set("pw","1");g=_.w([["cpr",e.consentPrimitiveRequest.serialize()]]);for(c=g.next();!c.done;c=g.next()){var I=_.w(c.value);c=I.next().value;I=I.next().value;k.set(c,I)}e.isDarkTheme()&&k.set("color_scheme","dark");return _.i1(e.src,k)},MMj=function(e){e.isLatencyMeasurementExperiment||e.loadingBar&&document.body.removeChild(e.loadingBar)};
Fj.prototype.getSrc=function(){var e=_.V9(this.origin),g;var c=(g=_.Ml(this.consentPrimitiveRequest,Gxg,3))==null?void 0:_.Qh(g,1);g="consent.google.com";c=c?"/u/"+encodeURIComponent(c.toString()):"";(e==null?0:e.endsWith("youtube.com"))?g="consent.youtube.com":(e=e==null?void 0:e.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(g="consent.google."+((e[1]?"co.":"")+encodeURIComponent(e[2])));return _.HJ("https://"+g+"/signedin"+c+"/landing")};
var BBg=function(e,g,c){e.iframe||(e.iframe=document.createElement("iframe"),e.iframe.style.width="100%",e.iframe.style.height="100%",c!==112496729&&(e.iframe.style.colorScheme="auto"),e.isLatencyMeasurementExperiment&&(e.iframe.style.display="none"),_.vA(e.iframe,g),e.iframe.setAttribute("jsname","C5o1O"),I6q(e.iframe),document.body.appendChild(e.iframe))},I6q=function(e){e.style.bottom="-200vh";
e.style.position="fixed";e.style.right="-200vw";e.style.border="";e.style.left="";e.style.top="";e.style.zIndex="";e.style.pointerEvents="none";e.style.visibility="hidden"},CEl=function(e){e.iframe&&(e.isLatencyMeasurementExperiment||(e.JSC$19805_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=e.JSC$19805_previousHtmlOverscroll),e.JSC$19805_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=e.JSC$19805_previousBodyOverscroll),e.JSC$19805_previousBodyOverflow!==
void 0&&(document.body.style.overflow=e.JSC$19805_previousBodyOverflow),e.enableDialogA11yFix&&JFq(e,!1)),I6q(e.iframe))};
Fj.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(JFq(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var JFq=function(e,g){var c,k,I=(c=e.iframe)==null?void 0:(k=c.parentElement)==null?void 0:k.children;if(I)for(c=0;c<I.length;c++)k=I[c],k!==e.iframe&&(g?(k.hasAttribute("aria-hidden")&&_.bj([_.Ya(oq0)],k,"data-old-aria-hidden",k.getAttribute("aria-hidden")),_.bj([_.Ya(ZoQ)],k,"aria-hidden","true")):(k.removeAttribute("aria-hidden"),k.hasAttribute("data-old-aria-hidden")&&(_.bj([_.Ya(VMS)],k,"aria-hidden",k.getAttribute("data-old-aria-hidden")),k.removeAttribute("data-old-aria-hidden"))))},u9=function(e,
g,c){var k;
(k=e.latencyCallback)==null||k.call(e,{latencyType:g,timestampEpochMillis:c!=null?c:Date.now()})};var vCO=function(e,g,c){Fj.call(this,g,c===void 0?!1:c);this.consentPrimitiveRequest=e;e=kGQ(this);_.qvA(e);this.src=this.getSrc();var k;this.initialLoadingStrategy=(k=_.Ml(this.consentPrimitiveRequest,r5,4))==null?void 0:_.EU(k,4)},w$D;
_.Y(vCO,Fj);var HZQ=function(e){e={request:e,enableDialogA11yFix:!0};w$D||(w$D=new vCO(e.request,e.isLatencyMeasurementExperiment||_.EU(e.request,1)===2,e.enableDialogA11yFix));return w$D},kGQ=function(e){var g;
return(g=_.Ml(e.consentPrimitiveRequest,r5,4))==null?void 0:_.Rs(g,1)},KAM=function(e,g){if(!_.cW(e.consentPrimitiveRequest,sa,5)){var c=e.consentPrimitiveRequest,k=new sa;
_.sx(c,5,k)}var I;if((I=_.Ml(e.consentPrimitiveRequest,sa,5))==null||_.kTq(I,8)==null){var J;(J=_.Ml(e.consentPrimitiveRequest,sa,5))!=null&&_.Rl(J,8,g)}},SHM=function(e){var g;
return(g=_.Ml(e.consentPrimitiveRequest,sa,5))==null?void 0:_.Qh(g,1)};
vCO.prototype.isDarkTheme=function(){var e;return((e=_.Ml(this.consentPrimitiveRequest,r5,4))==null?void 0:_.EU(e,2))===2};
var gCo=function(e){var g;return((g=_.Ml(e.consentPrimitiveRequest,r5,4))==null?void 0:_.Qh(g,5))||void 0},eq0=function(e){e.channel=void 0;
e.prewarmChannel=void 0;e.iframe&&(document.body.contains(e.iframe)&&document.body.removeChild(e.iframe),e.iframe=void 0);w$D=void 0},ZZj=function(e){return Fj.prototype.showPrimitive.call(e).then(function(g){return _.Ml(g,iol,2)})};for(var d5={},qOM=(d5[64]="ma",d5[73]="ogb",d5[89]="cr",d5[21]="test",d5[0]="unkn",d5[137]="con",d5[155]="hl",d5[78]="yt",d5[171]="lp",d5[172]="ap",d5[177]="amo",d5[178]="pqe",d5[74]="gg",d5[1]="gm",d5[140]="am",d5[193]="sc",d5),LXj=_.w(Object.keys(qOM)),rFg=LXj.next();!rFg.done;rFg=LXj.next());var a67=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(a67,_.WJ);var nC7=[0,[2,3,4],_.Z4,WGo,xE7,_.d0];var RqX=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(RqX,_.WJ);var ECS=_.ma(RqX,[0,_.Vk,_.Fv,_.Z4,_.Fv,_.Z4,nC7]);var WXQ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(WXQ,_.WJ);WXQ.prototype.getCommand=function(){return _.EU(this,1)};
var baO=function(){var e=new WXQ;return _.GX(e,1,0)};var hqQ=_.TT([0,_.Vk,_.Fv,[0,_.Z4,_.Fv,-1]]);var X$X=new _.wG("s"),GGS=new _.wG("t"),xrg=new _.wG("u"),Drq=new _.wG("v"),$rl=function(e,g,c){_.Bt.call(this,X$X);this.mediaKey=e;this.photoUrl=g;this.photoSource=c};
_.Y($rl,_.Bt);var YOS=function(){_.Bt.call(this,GGS)};
_.Y(YOS,_.Bt);var f6Q=function(e){e=e===void 0?!1:e;_.Bt.call(this,xrg);this.isError=e};
_.Y(f6Q,_.Bt);var jDX=function(){_.Bt.call(this,Drq)};
_.Y(jDX,_.Bt);var iaj=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,T4X=function(e){if(typeof e=="string"){if(e.charAt(0)==".")return P77(e.substr(1));if(e.charAt(0)=="["){var g=iaj.exec(e);e=e.indexOf("=")==-1?void 0:g[3];return mrv(g[1],e)}return p$z(e)}return e},P77=function(e){return function(g){return g.getAttribute&&_.Aa(g,e)}},mrv=function(e,g){return function(c){return g!==void 0?c.getAttribute&&c.getAttribute(e)==g:c.hasAttribute&&c.hasAttribute(e)}},p$z=function(e){e=e.toUpperCase();
return function(g){return(g=g.tagName)&&g.toUpperCase()==e}},l6x=function(){return!0};var zU=function(e,g){this.JSC$19833_key_=e;this.JSC$19833_value_=g},AFq=function(e){throw Error("xk`"+e.JSC$19833_key_);
},sDo=function(e,g){return new TypeError("yk`"+g+"`"+e.JSC$19833_key_+"`"+e.JSC$19833_value_+"`"+typeof e.JSC$19833_value_)};
zU.prototype.string=function(e){return arguments.length==0?FXX(this):uaz(this,e)};
var uaz=function(e,g){var c;return(c=drl(e))!=null?c:g},FXX=function(e){var g=drl(e);
g===null&&AFq(e);return g},drl=function(e){var g=e.JSC$19833_value_;
if(g==null)return null;if(typeof g==="string")return g;throw sDo(e,"string");};
zU.prototype.bool=function(e){if(arguments.length==0){var g=this.optionalBool();g===null&&AFq(this)}else{var c;g=(c=this.optionalBool())!=null?c:e}return g};
zU.prototype.optionalBool=function(){var e=this.JSC$19833_value_;if(e==null)return null;if(typeof e==="boolean")return e;if(typeof e==="string"){e=e.toLowerCase();if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1}throw sDo(this,"boolean");};
zU.prototype.number=function(e){if(arguments.length==0){var g=zq7(this);g===null&&AFq(this)}else g=HaS(this,e);return g};
var HaS=function(e,g){var c;return(c=zq7(e))!=null?c:g},zq7=function(e){var g=e.JSC$19833_value_;
if(g==null)return null;if(typeof g==="number")return g;if(typeof g==="string"){var c=Number(g);if(!isNaN(c)&&(c!==0||g.trim().length!==0))return c}throw sDo(e,"number");};
zU.prototype.toString=function(){return FXX(this)};
zU.prototype.enum=function(e,g){var c=!0,k=void 0,I;for(I in e){var J=e[I];c&&(c=!1,k=typeof J==="number"?HaS(this,g):uaz(this,g));if(J==k)return k}JSON.stringify(e);return k};
zU.prototype.array=function(e){if(arguments.length==0){var g=QDO(this);g===null&&AFq(this);return g}g=QDO(this);return g==null?e:g};
var QDO=function(e){var g=e.JSC$19833_value_;if(g==null)return null;Array.isArray(g)||(typeof g!=="string"?g=[g]:(g=g.trim(),g=g==""?[]:g.split(",").map(function(c){return c.trim()})));
return Ur7(e,g)},Ur7=function(e,g){var c=e.JSC$19833_key_+"[";
return Array.from(g,function(k,I){return new zU(c+I+"]",k)})};
zU.prototype.object=function(e){var g=this.JSC$19833_value_;if(g==null)return e===void 0&&AFq(this),e;if(typeof g==="object"&&g.constructor===Object){e={};var c=this.JSC$19833_key_+".",k;for(k in g)e[k]=new zU(c+k,g[k]);return e}throw sDo(this,"object");};var H7=function(e){this.list_=oCX(e)},oCX=function(e){if(e instanceof H7)e=e.list_;
else if(e[0]instanceof H7){for(var g=new Set,c=0;c<e.length;c++)for(var k=_.w(e[c].list_),I=k.next();!I.done;I=k.next())g.add(I.value);e=g}return[].concat(_.KY(e))};
_.v=H7.prototype;_.v.each=function(e,g,c){((c===void 0?0:c)?aHz:_.o7)(this.list_,e,g);return this};
_.v.size=function(){return this.list_.length};
_.v.isEmpty=function(){return this.list_.length===0};
_.v.get=function(e){return this.list_[e]||null};
_.v.el=function(){return this.list_[0]||null};
_.v.map=function(e,g){return _.R4(this.list_,e,g)};
_.v.equals=function(e){return this===e||_.OC(this.list_,e.list_)};
_.v.first=function(){return this.list_.length==0?null:new QK(this.list_[0])};
_.v.last=function(){return this.list_.length==0?null:new QK(this.list_[this.list_.length-1])};
_.v.find=function(e){var g=[];this.each(function(c){c=c.querySelectorAll(String(e));for(var k=0;k<c.length;k++)g.push(c[k])});
return new H7(g)};
_.v.parent=function(){var e=[];this.each(function(g){(g=g.parentElement||null)&&!_.Hz(e,g)&&e.push(g)});
return new H7(e)};
_.v.children=function(){var e=[];this.each(function(g){g=_.f2(g);for(var c=0;c<g.length;c++)e.push(g[c])});
return new H7(e)};
_.v.filter=function(e){e=_.VG(this.list_,T4X(e));return new H7(e)};
_.v.closest=function(e){var g=[],c=T4X(e),k=function(I){return _.yd(I)&&c(I)};
this.each(function(I){(I=_.Xm(I,k,!0))&&!_.Hz(g,I)&&g.push(I)});
return new H7(g)};
_.v.next=function(e){return Zaj(this,_.O0k,e)};
_.v.prev=function(e){return Zaj(this,$Eg,e)};
var Zaj=function(e,g,c){var k=[];var I=c?T4X(c):l6x;e.each(function(J){(J=g(J))&&I(J)&&k.push(J)});
return new H7(k)};
H7.prototype.setClass=function(e){return this.each(function(g){_.lV(g,e)})};
var VxD=function(e,g){return e.each(function(c){_.PT(c,g)})},txv=function(e,g){return e.each(function(c){_.i3(c,g)})};
H7.prototype.toggleClass=function(e,g){return g===!0?VxD(this,e):g===!1?txv(this,e):this.each(function(c){_.Aa(c,e)?_.i3(c,e):_.PT(c,e)})};
H7.prototype.setText=function(e){return this.each(function(g){_.j9(g,e)})};
var B4z=function(e){e.each(function(g){g.removeAttribute("aria-hidden")})};
H7.prototype.getStyle=function(e){if(this.list_.length>0){var g=this.list_[0],c=g.style[_.O4(e)];return typeof c!=="undefined"?c:g.style[_.Luw(g,e)]||""}};
H7.prototype.getData=function(e){if(this.list_.length===0)return new zU(e,null);var g=$Ro(this.list_[0],e);return new zU(e,g)};
H7.prototype.focus=function(e){try{e?this.el().focus(e):this.el().focus()}catch(g){}return this};
H7.prototype.click=function(){var e=_.be(this.el());if(e.createEvent){var g=e.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,e.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(g)}else e=e.createEventObject(),e.clientX=0,e.clientY=0,e.screenX=0,e.screenY=0,e.altKey=!1,e.ctrlKey=!1,e.shiftKey=!1,e.button=0,this.el().fireEvent("onclick",e)};
var Ua=function(e,g,c,k){function I(L,n,R){var W=n;n&&n.parentNode&&(W=n.cloneNode(!0));L(W,R)}
k=k===void 0?!1:k;if(e.list_.length==1){var J=e.list_[0],q=function(L){return g(L,J)};
c instanceof H7?c.each(q,void 0,k):Array.isArray(c)?(k?aHz:_.o7)(c,q):q(c);return e}return e.each(function(L){c instanceof H7?c.each(function(n){I(g,n,L)}):Array.isArray(c)?_.o7(c,function(n){I(g,n,L)}):I(g,c,L)})};
_.v=H7.prototype;_.v.append=function(e){return Ua(this,function(g,c){g&&c.appendChild(g)},e)};
_.v.appendTo=function(e){(new H7([e])).append(this);return this};
_.v.remove=function(){return Ua(this,function(e,g){_.ev(g)},null)};
_.v.empty=function(){return Ua(this,function(e,g){_.Dg(g)},null)};
_.v.after=function(e,g){return Ua(this,function(c,k){c&&_.YE(c,k)},e,!(g===void 0||g))};
_.v.before=function(e){return Ua(this,function(g,c){g&&_.$E(g,c)},e)};
_.v.replaceWith=function(e){return Ua(this,function(g,c){g&&_.S5I(g,c)},e)};
_.v.toggle=function(e){return this.each(function(g){_.ZL(g,e)})};
_.v.show=function(){return this.toggle(!0)};
_.v.hide=function(){return this.toggle(!1)};
_.v.trigger=function(e,g,c,k){return N4Q(this,e,g,c,k)};
var N4Q=function(e,g,c,k,I){return e.each(function(J){_.mzv(_.be(J)).triggerWizEventInternal(J,g,c,k,I)})},QK=function(e,g){e instanceof H7&&(g=e.list_,e=null);
this.list_=oCX(e!=null?[e]:g)};
_.Um(QK,H7);_.v=QK.prototype;_.v.children=function(){return new H7(Array.prototype.slice.call(_.f2(this.list_[0])))};
_.v.each=function(e,g){e.call(g,this.list_[0],0);return this};
_.v.size=function(){return 1};
_.v.el=function(){return this.list_[0]};
_.v.first=function(){return this};var oJ=function(e,g){g=g===void 0?window:g;this.hostId=e;this.win=g;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$19844_previousHtmlOverscroll=this.JSC$19844_previousBodyOverscroll=this.JSC$19844_previousBodyOverflow="";this.eventTarget=new _.jv;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},KXq=function(e){var g=
SOX(SOX(SOX(new yFq(78),"po"),"hppp"),"hhc");
g.authUser=Number(_.uo("SESSION_INDEX","0"));g.colorScheme=e;return g};
oJ.prototype.getOrigin=function(){return this.origin?this.origin:_.QA(_.HN(_.zS(new _.mt,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
oJ.prototype.getTargetOrigin=function(){return _.QA(_.HN(_.zS(new _.mt,this.scheme),this.domain),this.port)};
oJ.prototype.preloadIframe=function(e){var g=this;if(this.iframeLoadPromise===void 0){var c=document.createElement("iframe");this.iframe=c;csj(c,e);this.iframeLoadPromise=new Promise(function(k,I){var J=!1,q=function(L){L.stopPropagation();c.removeEventListener("error",q);c.removeEventListener("securitypolicyviolation",q);I(Error("zk",{cause:L}))};
c.addEventListener("error",q);c.addEventListener("securitypolicyviolation",q);setTimeout(function(){J||I(Error("Ak"))},3E4);
Oag(g,c,function(){J=!0;c.removeEventListener("error",q);c.removeEventListener("securitypolicyviolation",q);k()})});
MxO(this);e=this.getTargetOrigin().toString();c.setAttribute("allow","camera "+e+"; display-capture "+e);this.parentElement.appendChild(c)}return this.iframeLoadPromise};
var g3z=function(e,g){var c,k;return _.r(function(I){if(I.nextAddress==1)return c=SY7(getComputedStyle(e.parentElement).direction==="rtl"),e.parentElement.appendChild(c),document.activeElement instanceof HTMLElement&&(e.elementToFocusAfterClose=document.activeElement),_.lj(I,2),I.yield(e.preloadIframe(g),4);if(I.nextAddress!=2){e.parentElement.removeChild(c);e.JSC$19844_previousBodyOverflow=e.parentElement.style.overflow;e.JSC$19844_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
e.JSC$19844_previousBodyOverscroll=e.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";e.parentElement.style.overscrollBehavior="contain";e.parentElement.style.overflow="hidden";var J=e.iframe;J.style.bottom="0";J.style.border="none";J.style.height="100%";J.style.left="0";J.style.position=e.iframePosition;J.style.right="0";J.style.top="0";J.style.width="100%";J.style.zIndex="2202";J.setAttribute("aria-hidden","false");J.setAttribute("aria-modal","true");
e.opened=!0;C7l(e);return _.zn(I,0)}k=_.Qb(I);e.parentElement.removeChild(c);Cgg(e.isDarkTheme());eTQ(e,!1);throw Error("Bk",{cause:k});})},eTQ=function(e,g){g=g===void 0?!0:g;
e.iframe!==void 0&&(cgQ(e),document.documentElement.style.overscrollBehavior=e.JSC$19844_previousHtmlOverscroll,e.parentElement.style.overscrollBehavior=e.JSC$19844_previousBodyOverscroll,e.parentElement.style.overflow=e.JSC$19844_previousBodyOverflow,e.elementToFocusAfterClose!==void 0&&(e.elementToFocusAfterClose.focus(),e.elementToFocusAfterClose=void 0),g?MxO(e):(e.parentElement.removeChild(e.iframe),e.iframe=void 0,e.iframeLoadPromise=void 0,e.mainChannel=void 0),e.opened=!1)},cgQ=function(e){e.backgroundElementsAriaHiddenIsNull&&
(B4z(e.backgroundElementsAriaHiddenIsNull),e.backgroundElementsAriaHiddenIsNull=void 0);
e.backgroundElementsAriaHiddenIsFalse&&(e.backgroundElementsAriaHiddenIsFalse.each(function(g){g.setAttribute("aria-hidden","false")}),e.backgroundElementsAriaHiddenIsFalse=void 0);
e.backgroundElementsWithoutInert&&(e.backgroundElementsWithoutInert.each(function(g){g.removeAttribute("inert")}),e.backgroundElementsWithoutInert=void 0)},C7l=function(e){e.backgroundElementsAriaHiddenIsNull=(new QK(e.iframe.parentElement)).children().filter(function(g){return g.getAttribute("aria-hidden")===null&&g!==e.iframe});
e.backgroundElementsAriaHiddenIsNull.each(function(g){g.setAttribute("aria-hidden","true")});
e.backgroundElementsAriaHiddenIsFalse=(new QK(e.iframe.parentElement)).children().filter(function(g){return g.getAttribute("aria-hidden")==="false"&&g!==e.iframe});
e.backgroundElementsAriaHiddenIsFalse.each(function(g){g.setAttribute("aria-hidden","true")});
e.backgroundElementsWithoutInert=(new QK(e.iframe.parentElement)).children().filter(function(g){return!g.hasAttribute("inert")&&g!==e.iframe});
e.backgroundElementsWithoutInert.each(function(g){g.setAttribute("inert","true")})},MxO=function(e){e=e.iframe;
e.style.bottom="-1000px";e.style.position="fixed";e.style.right="-1000px";e.style.border="";e.style.height="";e.style.left="";e.style.top="";e.style.width="";e.style.zIndex="";e.setAttribute("aria-hidden","true");e.setAttribute("aria-modal","false")};
oJ.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var yFq=function(e,g){oJ.call(this,qOM[e],g);this.options=[];this.style=""};
_.Y(yFq,oJ);var k9o=function(e){e.style="youtube";return e},IrD=function(e,g){e.eventTarget.listen(xrg,g);
return e},Jg7=function(e,g){e.eventTarget.listen(X$X,g);
return e},SOX=function(e,g){e.options.push(g);
return e},v3o=function(e){var g=[e.getOrigin()];
e.ancestorOrigins&&g.push.apply(g,_.KY(e.ancestorOrigins));var c=new _.mt(e.win.location.href),k=e.startUrl?e.startUrl:e.options.includes("po")?"profile-picture/art":"profile-picture";g=nbS(_.UR(e.getTargetOrigin(),k),"origin",g);e.startUrl&&_.Qd(g,"startPath",e.startUrl);e.authUser>0&&_.Qd(g,"authuser",e.authUser);e.pageId!==void 0&&_.Qd(g,"pageId",e.pageId);_.Qd(g,"hostId",e.hostId);e.jsMode!==void 0&&_.Qd(g,"jsmode",e.jsMode);e.rectangleRatio!==void 0&&_.Qd(g,"rectangleRatio",e.rectangleRatio);
e.options.length>0&&_.Qd(g,"opts",e.options.join(","));try{for(var I=_.w(["utm_source","utm_medium","utm_campaign","utm_content"]),J=I.next();!J.done;J=I.next()){var q=J.value;_.Ht(c,q)&&_.Qd(g,q,_.Ht(c,q))}var L,n=(L=e.hl)!=null?L:_.Ht(c,"hl");n!==void 0&&_.Qd(g,"hl",n)}catch(R){if(!(R instanceof URIError))throw R;}e.colorScheme&&_.Qd(g,"theme",e.colorScheme);e.style&&_.Qd(g,"style",e.style);return g},wFq=function(e,g){e.mainChannel=_.NB({destination:e.win,
iframe:g,origin:e.getTargetOrigin().toString(),channelName:"ow",onMessage:function(c){c=ECS(c.data);if(g===e.iframe)switch(_.EU(c,1)){case 1:e.eventTarget.dispatchEvent(new f6Q);eTQ(e);break;case 2:e.eventTarget.dispatchEvent(new $rl(_.Rs(c,4),_.Rs(c,2),_.EU(c,5),_.Ml(c,a67,6)));break;case 0:var k;e.eventTarget.dispatchEvent(new YOS(_.Rs(c,2),(k=_.EU(c,3))!=null?k:0));break;case 3:e.eventTarget.dispatchEvent(new f6Q(!0));eTQ(e,!1);break;case 4:e.eventTarget.dispatchEvent(new jDX)}}})},Oag=function(e,
g,c){_.NB({destination:e.win,
iframe:g,origin:_.QA(_.HN(_.zS(new _.mt,e.scheme),e.domain),e.port).toString(),channelName:"owi",onMessage:function(k){g===e.iframe&&(c!==void 0&&c(),wFq(e,g),e.opened&&e.mainChannel.send(hqQ(baO())),k.reply(),Oag(e,g))}})};
yFq.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?oJ.prototype.preloadIframe.call(this,v3o(this).toString()):this.iframeLoadPromise};
yFq.prototype.openPicker=function(e){var g=this;return _.r(function(c){if(c.nextAddress==1)return g.startUrl=e?e:g.options.includes("po")?"profile-picture/art":"profile-picture",c.yield(g3z(g,v3o(g).toString()),2);if(g.mainChannel){var k=g.mainChannel,I=k.send;var J=baO();J=_.vH(J,2,g.startUrl);I.call(k,hqQ(J))}_.Uh(c)})};var qJX=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(qJX,_.WJ);_.v=qJX.prototype;_.v.getSize=function(){return Xj(this,1)};
_.v.setSize=function(e){return _.Xv(this,1,e)};
_.v.getWidth=function(){return Xj(this,12)};
_.v.getHeight=function(){return Xj(this,13)};
_.v.setCenterCrop=function(e){return _.td(this,20,e)};
_.v.getHtml=function(){return _.r0(this,4)};
_.v.getToken=function(){return _.Ma(this,24)};
_.v.setToken=function(e){return _.vH(this,24,e)};
_.v.getBackgroundColor=function(){return Xj(this,87)};
_.v.hasBackgroundColor=function(){return _.ax(_.g0(this,87))!=null};
_.v.getStoryboardLevel=function(){return Xj(this,109)};kc.prototype.set=function(e,g){LQX(this,e,g,!1)};
kc.prototype.add=function(e,g){LQX(this,e,g,!0)};
var LQX=function(e,g,c,k){for(var I=0;I<g.length;I++){var J=g.charAt(I);e.childNodes_[J]||(e.childNodes_[J]=new kc);e=e.childNodes_[J]}if(k&&e.JSC$19852_value_!==void 0)throw Error("Ck`"+g);e.JSC$19852_value_=c},rgz=function(e,g){for(var c=0;c<g.length;c++)if(e=e.childNodes_[g.charAt(c)],!e)return;
return e};
kc.prototype.get=function(e){return(e=rgz(this,e))?e.JSC$19852_value_:void 0};
kc.prototype.getValues=function(){var e=[];arS(this,e);return e};
var arS=function(e,g){e.JSC$19852_value_!==void 0&&g.push(e.JSC$19852_value_);for(var c in e.childNodes_)arS(e.childNodes_[c],g)};
kc.prototype.getKeys=function(e){var g=[];if(e){for(var c=this,k=0;k<e.length;k++){var I=e.charAt(k);if(!c.childNodes_[I])return[];c=c.childNodes_[I]}n3X(c,e,g)}else n3X(this,"",g);return g};
var n3X=function(e,g,c){e.JSC$19852_value_!==void 0&&c.push(g);for(var k in e.childNodes_)n3X(e.childNodes_[k],g+k,c)};
_.v=kc.prototype;_.v.containsKey=function(e){return this.get(e)!==void 0};
_.v.containsValue=function(e){if(this.JSC$19852_value_===e)return!0;for(var g in this.childNodes_)if(this.childNodes_[g].containsValue(e))return!0;return!1};
_.v.clear=function(){this.childNodes_={};this.JSC$19852_value_=void 0};
_.v.remove=function(e){for(var g=this,c=[],k=0;k<e.length;k++){var I=e.charAt(k);if(!g.childNodes_[I])throw Error("Dk`"+e);c.push([g,I]);g=g.childNodes_[I]}e=g.JSC$19852_value_;for(delete g.JSC$19852_value_;c.length>0;)if(k=c.pop(),g=k[0],k=k[1],g.childNodes_[k].isEmpty())delete g.childNodes_[k];else break;return e};
_.v.clone=function(){return new kc(this)};
_.v.getCount=function(){return jTO(this.getValues())};
_.v.isEmpty=function(){return this.JSC$19852_value_===void 0&&_.n0.isEmpty(this.childNodes_)};var woj=function(){if(!RTQ){var e=RTQ=new kc,g;for(g in E3g)e.add(g,E3g[g])}},RTQ,Zm=function(e,g){this.types=e;
this.setters=g},E3g={a:new Zm([3,
0],[function(e,g){_.td(e,21,g)},
function(e,g){_.Xv(e,56,g)}]),
al:new Zm([3],[function(e,g){_.td(e,74,g)}]),
b:new Zm([3,0],[function(e,g){_.td(e,23,g)},
function(e,g){_.Xv(e,38,g)}]),
ba:new Zm([0],[function(e,g){_.Xv(e,85,g)}]),
bc:new Zm([0],[function(e,g){_.Xv(e,87,g)}]),
br:new Zm([0],[function(e,g){_.Xv(e,86,g)}]),
c:new Zm([3,0],[function(e,g){_.td(e,2,g)},
function(e,g){_.Xv(e,39,g)}]),
cc:new Zm([3],[function(e,g){_.td(e,51,g)}]),
ci:new Zm([3],[function(e,g){_.td(e,32,g)}]),
ckm:new Zm([3],[function(e,g){_.td(e,104,g)}]),
cp:new Zm([0],[function(e,g){_.Xv(e,92,g)}]),
cr:new Zm([3],[function(e,g){_.td(e,108,g)}]),
cv:new Zm([0],[function(e,g){_.Xv(e,94,g)}]),
d:new Zm([3],[function(e,g){_.td(e,3,g)}]),
dc:new Zm([5],[function(e,g){_.vH(e,99,g)}]),
df:new Zm([3],[function(e,g){_.td(e,80,g)}]),
dv:new Zm([3],[function(e,g){_.td(e,90,g)}]),
e:new Zm([0],[function(e,g){_.Xv(e,15,g)}]),
em:new Zm([0],[function(e,g){_.Xv(e,107,g)}]),
f:new Zm([4],[function(e,g){_.vH(e,16,g)}]),
fg:new Zm([3],[function(e,g){_.td(e,34,g)}]),
fh:new Zm([3],[function(e,g){_.td(e,30,g)}]),
fm:new Zm([3],[function(e,g){_.td(e,84,g)}]),
fo:new Zm([2],[function(e,g){_.e6(e,79,_.cq(g))}]),
ft:new Zm([3],[function(e,g){_.td(e,50,g)}]),
fv:new Zm([3],[function(e,g){_.td(e,31,g)}]),
g:new Zm([3],[function(e,g){_.td(e,14,g)}]),
gce:new Zm([4],[function(e,g){_.vH(e,112,g)}]),
gd:new Zm([3],[function(e,g){_.td(e,83,g)}]),
gm:new Zm([3],[function(e,g){_.td(e,105,g)}]),
h:new Zm([3,0],[function(e,g){_.td(e,4,g)},
function(e,g){_.Xv(e,13,g)}]),
i:new Zm([3],[function(e,g){_.td(e,22,g)}]),
ic:new Zm([0],[function(e,g){_.Xv(e,71,g)}]),
id:new Zm([3],[function(e,g){_.td(e,70,g)}]),
il:new Zm([3],[function(e,g){_.td(e,96,g)}]),
ip:new Zm([3],[function(e,g){_.td(e,54,g)}]),
iv:new Zm([0],[function(e,g){_.Rl(e,75,g)}]),
j:new Zm([1],[function(e,g){_.e6(e,29,g==null?g:WVj(g))}]),
k:new Zm([3,0],[function(e,g){_.td(e,17,g)},
function(e,g){_.Xv(e,42,g)}]),
l:new Zm([0],[function(e,g){_.Xv(e,44,g)}]),
lf:new Zm([3],[function(e,g){_.td(e,65,g)}]),
lo:new Zm([3],[function(e,g){_.td(e,97,g)}]),
m:new Zm([0],[function(e,g){_.Xv(e,63,g)}]),
md:new Zm([3],[function(e,g){_.td(e,91,g)}]),
mm:new Zm([4],[function(e,g){_.vH(e,81,g)}]),
mo:new Zm([3],[function(e,g){_.td(e,73,g)}]),
mp:new Zm([0],[function(e,g){_.Xv(e,115,g)}]),
mv:new Zm([3],[function(e,g){_.td(e,66,g)}]),
n:new Zm([3],[function(e,g){e.setCenterCrop(g)}]),
nc:new Zm([3],[function(e,g){_.td(e,55,g)}]),
nd:new Zm([3],[function(e,g){_.td(e,53,g)}]),
ng:new Zm([3],[function(e,g){_.td(e,95,g)}]),
ngm:new Zm([3],[function(e,g){_.td(e,106,g)}]),
no:new Zm([3],[function(e,g){_.td(e,37,g)}]),
ns:new Zm([3],[function(e,g){_.td(e,40,g)}]),
nt0:new Zm([4],[function(e,g){_.vH(e,36,g)}]),
ntm:new Zm([3],[function(e,g){_.td(e,114,g)}]),
nu:new Zm([3],[function(e,g){_.td(e,46,g)}]),
nw:new Zm([3],[function(e,g){_.td(e,48,g)}]),
o:new Zm([1,3],[function(e,g){_.e6(e,7,g==null?g:WVj(g))},
function(e,g){_.td(e,27,g)}]),
p:new Zm([3,0],[function(e,g){_.td(e,19,g)},
function(e,g){_.Xv(e,43,g)}]),
pa:new Zm([3],[function(e,g){_.td(e,61,g)}]),
pc:new Zm([0],[function(e,g){_.Xv(e,88,g)}]),
pd:new Zm([3],[function(e,g){_.td(e,60,g)}]),
pf:new Zm([3],[function(e,g){_.td(e,67,g)}]),
pg:new Zm([3],[function(e,g){_.td(e,72,g)}]),
pi:new Zm([2],[function(e,g){_.e6(e,76,_.cq(g))}]),
pp:new Zm([3],[function(e,g){_.td(e,52,g)}]),
pt:new Zm([4],[function(e,g){_.vH(e,111,g)}]),
q:new Zm([4],[function(e,g){_.vH(e,28,g)}]),
r:new Zm([3,0],[function(e,g){_.td(e,6,g)},
function(e,g){_.Xv(e,26,g)}]),
ra:new Zm([3],[function(e,g){_.td(e,103,g)}]),
rf:new Zm([3],[function(e,g){_.td(e,100,g)}]),
rg:new Zm([3],[function(e,g){_.td(e,59,g)}]),
rh:new Zm([3],[function(e,g){_.td(e,49,g)}]),
rj:new Zm([3],[function(e,g){_.td(e,57,g)}]),
ro:new Zm([2],[function(e,g){_.e6(e,78,_.cq(g))}]),
rp:new Zm([3],[function(e,g){_.td(e,58,g)}]),
rw:new Zm([3],[function(e,g){_.td(e,35,g)}]),
rwa:new Zm([3],[function(e,g){_.td(e,64,g)}]),
rwu:new Zm([3],[function(e,g){_.td(e,41,g)}]),
s:new Zm([3,0],[function(e,g){_.td(e,33,g)},
function(e,g){e.setSize(g)}]),
sb:new Zm([0],[function(e,g){_.Xv(e,110,g)}]),
sc:new Zm([0],[function(e,g){_.Xv(e,89,g)}]),
sg:new Zm([3],[function(e,g){_.td(e,82,g)}]),
sl:new Zm([0],[function(e,g){_.Xv(e,109,g)}]),
sm:new Zm([3],[function(e,g){_.td(e,93,g)}]),
t:new Zm([4],[function(e,g){e.setToken(g)}]),
tm:new Zm([3],[function(e,g){_.td(e,113,g)}]),
u:new Zm([3],[function(e,g){_.td(e,18,g)}]),
ut:new Zm([3],[function(e,g){_.td(e,45,g)}]),
v:new Zm([0],[function(e,g){_.Xv(e,62,g)}]),
vb:new Zm([0],[function(e,g){_.Rl(e,68,g)}]),
vf:new Zm([4],[function(e,g){_.vH(e,102,g)}]),
vl:new Zm([0],[function(e,g){_.Rl(e,69,g)}]),
vm:new Zm([3],[function(e,g){_.td(e,98,g)}]),
w:new Zm([0],[function(e,g){_.Xv(e,12,g)}]),
x:new Zm([0],[function(e,g){_.Xv(e,9,g)}]),
y:new Zm([0],[function(e,g){_.Xv(e,10,g)}]),
ya:new Zm([2],[function(e,g){_.e6(e,77,_.cq(g))}]),
z:new Zm([0],[function(e,g){_.Xv(e,11,g)}])};
woj.prototype.parse=function(e){var g=new qJX,c=new qJX;if(e=="")e=!0;else{e=e.split("-");for(var k=!0,I=0;I<e.length;I++){var J=e[I];if(J.length==0)k=!1;else{var q=J,L=!1;var n=q;var R=q.charAt(0);R!=R.toLowerCase()&&(L=!0,n=q.charAt(0).toLowerCase()+q.substring(1));var W=RTQ;for(R=1;R<=n.length;++R){var b=W,h=n.substring(0,R);if(h.length==0?b.isEmpty():!rgz(b,h))break}n=R==1?null:(n=W.get(n.substring(0,R-1)))?{option:q.substring(0,R-1),value:q.substring(R-1),signed:L,attributes:n}:null;if(n){q=
[];L=[];R=!1;for(W=0;W<n.attributes.types.length;W++){b=n.attributes.types[W];var X=n.value;h=I;if(n.signed&&b==1)for(var D=X.length;D<12&&h<e.length-1;)X+="-"+e[h+1],D=X.length,++h;else if(b==2)for(;h<e.length-1&&e[h+1].match(/^[\d\.]/);)X+="-"+e[h+1],++h;D=n.attributes.setters[W];X=WQ0(this,b)(n.option,X,g,c,D);if(X===null){R=!0;I=h;break}else q.push(b),L.push(X)}if(!R)for(n=0;n<L.length;n++)W=q[n],X=L[n],b8D(this,W)(J,X);k=k&&R}else k=!1}}e=k}return new hTO(g,c,e)};
var XFg=function(e,g,c,k,I,J){I(c,g);e=e.charAt(0);J=J(e==e.toUpperCase());I(k,J)};
_.v=woj.prototype;_.v.parseAndSetIntOption_=function(e,g,c,k,I){if(g=="")return 0;isFinite(g)&&(g=String(g));g=typeof g==="string"?/^\s*-?0x/i.test(g)?parseInt(g,16):parseInt(g,10):NaN;if(isNaN(g))return 1;XFg(e,g,c,k,I,Number);return null};
_.v.logIntParseError_=function(){};
_.v.parseAndSetFloatOption_=function(e,g,c,k,I){if(g=="")return 0;var J=Number(g);g=J==0&&_.rV(g)?NaN:J;if(isNaN(g))return 1;XFg(e,g,c,k,I,Number);return null};
_.v.logFloatParseError_=function(){};
_.v.parseAndSetBoolOption_=function(e,g,c,k,I){if(g!="")return 2;XFg(e,!0,c,k,I,Boolean);return null};
_.v.logBoolParseError_=function(){};
_.v.parseAndSetStringOption_=function(e,g,c,k,I){if(g=="")return 0;XFg(e,g,c,k,I,function(J){return J?"1":""});
return null};
_.v.logStringParseError_=function(){};
_.v.parseAndSetUint64Base64Option_=function(e,g,c,k,I){if(g=="")return 0;XFg(e,g,c,k,I,function(J){return J?1:0});
return null};
var WQ0=function(e,g){switch(g){case 0:return(0,_.Ju)(e.parseAndSetIntOption_,e);case 2:return(0,_.Ju)(e.parseAndSetFloatOption_,e);case 3:return(0,_.Ju)(e.parseAndSetBoolOption_,e);case 4:return(0,_.Ju)(e.parseAndSetStringOption_,e);case 1:return(0,_.Ju)(e.parseAndSetUint64Base64Option_,e);default:return function(){}}},b8D=function(e,g){switch(g){case 0:return(0,_.Ju)(e.logIntParseError_,e);
case 2:return(0,_.Ju)(e.logFloatParseError_,e);case 3:return(0,_.Ju)(e.logBoolParseError_,e);case 4:case 1:return(0,_.Ju)(e.logStringParseError_,e);default:return function(){}}},hTO=function(e,g,c){this.valueProto_=e;
this.signatureFlagProto_=g;this.JSC$19864_valid_=c};
hTO.prototype.isValid=function(){return this.JSC$19864_valid_};var k5q=function(e){this.JSC$19865_parser_=null;this.JSC$19865_components_=[];this.JSC$19865_parsedOptions_=null;G97(this,e)},xwX=function(e){e.JSC$19865_parser_==null&&(e.JSC$19865_parser_=new woj);
return e.JSC$19865_parser_},G97=function(e,g){e.JSC$19865_parsedOptions_=g?typeof g==="string"?xwX(e).parse(g):g:xwX(e).parse("")},VK=function(e,g){return e==g?!1:!0};
_.v=k5q.prototype;_.v.JSC$19867_setCrop=function(e){e=e||void 0;var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,_.r0(c,2),_.r0(g.signatureFlagProto_,2))&&_.td(c,2,e);return this};
_.v.JSC$19867_setCircleCrop=function(e){e=e||void 0;var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,hM(c,51),hM(g.signatureFlagProto_,51))&&_.td(c,51,e);return this};
_.v.JSC$19867_setImageCrop=function(e){e=e||void 0;var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,hM(c,32),hM(g.signatureFlagProto_,32))&&_.td(c,32,e);return this};
_.v.JSC$19867_setHeight=function(e){var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,c.getHeight(),g.signatureFlagProto_.getHeight())&&_.Xv(c,13,e);return this};
_.v.setCenterCrop=function(e){e=e||void 0;var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,_.r0(c,20),_.r0(g.signatureFlagProto_,20))&&c.setCenterCrop(e);return this};
_.v.JSC$19867_setSmartCrop=function(e){e=e||void 0;var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,_.r0(c,19),_.r0(g.signatureFlagProto_,19))&&_.td(c,19,e);return this};
_.v.JSC$19867_setPad=function(e){e=e||void 0;var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,hM(c,60),hM(g.signatureFlagProto_,60))&&_.td(c,60,e);return this};
_.v.JSC$19867_setSmartCropUseFace=function(e){e=e||void 0;var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,_.r0(c,67),_.r0(g.signatureFlagProto_,67))&&_.td(c,67,e);return this};
_.v.JSC$19867_setSmartCropNoClip=function(e){e=e||void 0;var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,_.r0(c,52),_.r0(g.signatureFlagProto_,52))&&_.td(c,52,e);return this};
_.v.setSize=function(e){var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,c.getSize(),g.signatureFlagProto_.getSize())&&c.setSize(e);return this};
_.v.setToken=function(e){e=e||void 0;var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,c.getToken(),g.signatureFlagProto_.getToken())&&c.setToken(e);return this};
_.v.JSC$19867_setWidth=function(e){var g=this.JSC$19865_parsedOptions_,c=g.valueProto_;VK(e,c.getWidth(),g.signatureFlagProto_.getWidth())&&_.Xv(c,12,e);return this};
_.v.clearOptions=function(){G97(this,"");return this};
_.v.build=function(){this.JSC$19865_components_.length=0;var e=this.JSC$19865_parsedOptions_,g=e.valueProto_;e=e.signatureFlagProto_;tM(this,"s",g.getSize(),e.getSize());tM(this,"w",g.getWidth(),e.getWidth());B7(this,"c",_.r0(g,2),_.r0(e,2));B7(this,"d",_.r0(g,3),_.r0(e,3));tM(this,"h",g.getHeight(),e.getHeight());B7(this,"s",hM(g,33),hM(e,33));B7(this,"h",g.getHtml(),e.getHtml());B7(this,"p",_.r0(g,19),_.r0(e,19));B7(this,"pp",_.r0(g,52),_.r0(e,52));B7(this,"pf",_.r0(g,67),_.r0(e,67));B7(this,"n",
_.r0(g,20),_.r0(e,20));tM(this,"r",Xj(g,26),Xj(e,26));B7(this,"r",_.r0(g,6),_.r0(e,6));B7(this,"o",hM(g,27),hM(e,27));var c=_.Lq(g,7,_.Me);NC(this,"o",c,_.Lq(e,7,_.Me));c=_.Lq(g,29,_.Me);NC(this,"j",c,_.Lq(e,29,_.Me));tM(this,"x",Xj(g,9),Xj(e,9));tM(this,"y",Xj(g,10),Xj(e,10));tM(this,"z",Xj(g,11),Xj(e,11));B7(this,"g",_.r0(g,14),_.r0(e,14));tM(this,"e",Xj(g,15),Xj(e,15));NC(this,"f",_.Ma(g,16),_.Ma(e,16));B7(this,"k",hM(g,17),hM(e,17));B7(this,"u",hM(g,18),!0);B7(this,"ut",hM(g,45),!0);B7(this,"i",
hM(g,22),!0);B7(this,"a",hM(g,21),hM(e,21));B7(this,"b",_.r0(g,23),_.r0(e,23));tM(this,"b",Xj(g,38),Xj(e,38));tM(this,"c",Xj(g,39),Xj(e,39),16,8);NC(this,"q",_.Ma(g,28),_.Ma(e,28));B7(this,"fh",hM(g,30),hM(e,30));B7(this,"fv",hM(g,31),hM(e,31));B7(this,"fg",_.r0(g,34),_.r0(e,34));B7(this,"ci",hM(g,32),hM(e,32));NC(this,"t",g.getToken(),e.getToken());NC(this,"nt0",_.Ma(g,36),_.Ma(e,36));B7(this,"rw",_.r0(g,35),_.r0(e,35));B7(this,"rwu",_.r0(g,41),_.r0(e,41));B7(this,"rwa",_.r0(g,64),_.r0(e,64));B7(this,
"nw",_.r0(g,48),_.r0(e,48));B7(this,"rh",_.r0(g,49),_.r0(e,49));B7(this,"no",_.r0(g,37),_.r0(e,37));B7(this,"ns",hM(g,40),hM(e,40));tM(this,"k",Xj(g,42),Xj(e,42));tM(this,"p",Xj(g,43),Xj(e,43));tM(this,"l",Xj(g,44),Xj(e,44));tM(this,"v",Xj(g,62),Xj(e,62));B7(this,"nu",hM(g,46),hM(e,46));B7(this,"ft",hM(g,50),hM(e,50));B7(this,"cc",hM(g,51),hM(e,51));B7(this,"nd",hM(g,53),hM(e,53));B7(this,"ip",hM(g,54),hM(e,54));B7(this,"nc",hM(g,55),hM(e,55));tM(this,"a",Xj(g,56),Xj(e,56));B7(this,"rj",hM(g,57),
hM(e,57));B7(this,"rp",hM(g,58),hM(e,58));B7(this,"rg",hM(g,59),hM(e,59));B7(this,"pd",hM(g,60),hM(e,60));B7(this,"pa",hM(g,61),hM(e,61));tM(this,"m",Xj(g,63),Xj(e,63));tM(this,"vb",_.qB(g,68,_.Me),_.qB(e,68,_.Me));tM(this,"vl",_.qB(g,69,_.Me),_.qB(e,69,_.Me));B7(this,"lf",hM(g,65),hM(e,65));B7(this,"mv",hM(g,66),hM(e,66));B7(this,"id",hM(g,70),hM(e,70));tM(this,"ic",Xj(g,71),!0);B7(this,"pg",_.r0(g,72),_.r0(e,72));B7(this,"mo",hM(g,73),hM(e,73));B7(this,"al",hM(g,74),hM(e,74));tM(this,"iv",_.qB(g,
75,_.Me),_.qB(e,75,_.Me));tM(this,"pi",GU(g,76),GU(e,76));tM(this,"ya",GU(g,77),GU(e,77));tM(this,"ro",GU(g,78),GU(e,78));tM(this,"fo",GU(g,79),GU(e,79));B7(this,"df",hM(g,80),hM(e,80));NC(this,"mm",_.Ma(g,81),_.Ma(e,81));B7(this,"sg",hM(g,82),hM(e,82));B7(this,"gd",hM(g,83),hM(e,83));B7(this,"fm",hM(g,84),hM(e,84));tM(this,"ba",Xj(g,85),Xj(e,85));tM(this,"br",Xj(g,86),Xj(e,86));tM(this,"bc",g.getBackgroundColor(),e.getBackgroundColor(),16,8);tM(this,"pc",Xj(g,88),Xj(e,88),16,8);tM(this,"sc",Xj(g,
89),Xj(e,89),16,8);B7(this,"dv",hM(g,90),hM(e,90));B7(this,"md",hM(g,91),hM(e,91));tM(this,"cp",Xj(g,92),Xj(e,92));B7(this,"sm",hM(g,93),hM(e,93));tM(this,"cv",Xj(g,94),Xj(e,94));B7(this,"ng",hM(g,95),hM(e,95));B7(this,"il",hM(g,96),hM(e,96));B7(this,"lo",hM(g,97),hM(e,97));B7(this,"vm",hM(g,98),hM(e,98));NC(this,"dc",_.Ma(g,99),_.Ma(e,99));B7(this,"rf",hM(g,100),hM(e,100));NC(this,"vf",_.Ma(g,102),_.Ma(e,102));B7(this,"ra",_.r0(g,103),_.r0(e,103));B7(this,"ckm",hM(g,104),hM(e,104));B7(this,"gm",
hM(g,105),hM(e,105));B7(this,"ngm",hM(g,106),hM(e,106));tM(this,"em",Xj(g,107),Xj(e,107));B7(this,"cr",hM(g,108),hM(e,108));tM(this,"sl",g.getStoryboardLevel(),e.getStoryboardLevel());tM(this,"sb",Xj(g,110),Xj(e,110));NC(this,"pt",_.Ma(g,111),_.Ma(e,111));NC(this,"gce",_.Ma(g,112),_.Ma(e,112));B7(this,"tm",hM(g,113),hM(e,113));B7(this,"ntm",hM(g,114),hM(e,114));tM(this,"mp",Xj(g,115),Xj(e,115));return this.JSC$19865_components_.join("-")};
var tM=function(e,g,c,k,I,J){if(c!=null){var q=I==void 0||I!=10&&I!=16?10:I;c=Number(c).toString(q);I=new ZMv;I.append(q==16?"0x":"");q=I.append;J==void 0?J="":(J-=c.length,J=J<=0?"":(0,_.zvI)("0",J));q.call(I,J);I.append(c);Dwz(e,g,I.toString(),!!Number(k))}},B7=function(e,g,c,k){c&&Dwz(e,g,"",!!k)},NC=function(e,g,c,k){c&&Dwz(e,g,String(c),!!Number(k))},Dwz=function(e,g,c,k){k&&(g=g.charAt(0).toUpperCase()+g.substring(1));
e.JSC$19865_components_.push(g+c)};_.Um(IQ,k5q);_.v=IQ.prototype;_.v.JSC$19867_setCrop=function(e){e&&Sg(this);return IQ.superClass_.JSC$19867_setCrop.call(this,e)};
_.v.JSC$19867_setHeight=function(e){e=e==null||e<0?void 0:e;e!=null&&this.setSize();return IQ.superClass_.JSC$19867_setHeight.call(this,e)};
_.v.JSC$19867_setImageCrop=function(e){e&&Sg(this);return IQ.superClass_.JSC$19867_setImageCrop.call(this,e)};
_.v.JSC$19867_setCircleCrop=function(e){e&&Sg(this);return IQ.superClass_.JSC$19867_setCircleCrop.call(this,e)};
_.v.setSize=function(e){_.SK(e)&&(e=Math.max(e.width,e.height));e=e==null||e<0?void 0:e;e!=null&&(this.JSC$19867_setWidth(),this.JSC$19867_setHeight());return IQ.superClass_.setSize.call(this,e)};
_.v.JSC$19867_setSmartCrop=function(e){e&&Sg(this);return IQ.superClass_.JSC$19867_setSmartCrop.call(this,e)};
_.v.JSC$19867_setSmartCropNoClip=function(e){e&&Sg(this);return IQ.superClass_.JSC$19867_setSmartCropNoClip.call(this,e)};
_.v.JSC$19867_setSmartCropUseFace=function(e){e&&Sg(this);return IQ.superClass_.JSC$19867_setSmartCropUseFace.call(this,e)};
_.v.setCenterCrop=function(e){e&&Sg(this);return IQ.superClass_.setCenterCrop.call(this,e)};
_.v.JSC$19867_setPad=function(e){e&&Sg(this);return IQ.superClass_.JSC$19867_setPad.call(this,e)};
_.v.JSC$19867_setWidth=function(e){e=e==null||e<0?void 0:e;e!=null&&this.setSize();return IQ.superClass_.JSC$19867_setWidth.call(this,e)};
var $wv=function(e){e.clearOptions();var g=e.JSC$19865_parsedOptions_,c=g.valueProto_;VK(!0,_.r0(c,3),_.r0(g.signatureFlagProto_,3))&&_.td(c,3,!0);return e},Sg=function(e){e.setCenterCrop();
e.JSC$19867_setCircleCrop();e.JSC$19867_setCrop();e.JSC$19867_setImageCrop();e.JSC$19867_setPad();e.JSC$19867_setSmartCrop();e.JSC$19867_setSmartCropNoClip();e.JSC$19867_setSmartCropUseFace()};
IQ.prototype.build=function(){var e=this.JSC$19865_parsedOptions_.valueProto_;hM(e,18)||hM(e,45)?e.getSize()||this.setSize(0):(e=this.JSC$19865_parsedOptions_.valueProto_,e.getSize()||e.getWidth()||e.getHeight()||(this.setSize(),this.JSC$19867_setHeight(),this.JSC$19867_setWidth(),Sg(this)));return IQ.superClass_.build.call(this)};var YJD=/^[^\/]*\/\//,frx=function(e,g){g=g===void 0?!1:g;this.original_=e;this.originalPrefix_="";(e=this.original_.match(YJD))&&e[0]?(this.originalPrefix_=e[0],e=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):e="http://"+this.original_;this.uri_=_.zs(e,!0);this.isFreeformUrl_=g;this.JSC$19871_valid_=!0;this.obfuscated_=!1},j5M=function(e,g){e.JSC$19873_pathPrefix_=e.JSC$19873_pathPrefix_?e.JSC$19873_pathPrefix_+("/"+g):g},yK=function(e){if(e.JSC$19873_components_==
void 0){var g=e.uri_.getPath().substring(1);
e.JSC$19873_pathPrefix_=null;if(e.isFreeformUrl_){e.JSC$19873_components_=[];if((g.match(/=/g)||[]).length>1)return e.JSC$19871_valid_=!1,e.JSC$19873_components_;var c=g.indexOf("=");c!=-1?(e.JSC$19873_components_.push(g.substr(0,c)),e.JSC$19873_components_.push(g.substr(c+1))):e.JSC$19873_components_.push(g);return e.JSC$19873_components_}e.JSC$19873_components_=g.split("/");g=e.JSC$19873_components_.length;g>2&&e.JSC$19873_components_[0]=="u"&&(j5M(e,e.JSC$19873_components_[0]+"/"+e.JSC$19873_components_[1]),
e.JSC$19873_components_.shift(),e.JSC$19873_components_.shift(),g-=2);if(g==0||g==4||g>7)return e.JSC$19871_valid_=!1,e.JSC$19873_components_;if(g==2)j5M(e,e.JSC$19873_components_[0]);else if(e.JSC$19873_components_[0]=="image")j5M(e,e.JSC$19873_components_[0]);else if(g==7||g==3)return e.JSC$19871_valid_=!1,e.JSC$19873_components_;if(g<=3){e.obfuscated_=!0;g==3&&(j5M(e,e.JSC$19873_components_[1]),e.JSC$19873_components_.shift(),--g);--g;c=e.JSC$19873_components_[g];var k=c.indexOf("=");k!=-1&&(e.JSC$19873_components_[g]=
c.substr(0,k),e.JSC$19873_components_.push(c.substr(k+1)))}}return e.JSC$19873_components_};
frx.prototype.isValid=function(){yK(this);return this.JSC$19871_valid_};
frx.prototype.isObfuscated=function(){yK(this);return this.obfuscated_};
var i8z=function(e){yK(e);return e.isFreeformUrl_},K9=function(e){yK(e);
e.JSC$19873_pathPrefix_==void 0&&(e.JSC$19873_pathPrefix_=null);return e.JSC$19873_pathPrefix_},PZQ=function(e){switch(yK(e).length){case 7:return!0;
case 6:return K9(e)==null;case 5:return!1;case 3:return!0;case 2:return K9(e)==null;case 1:return!1;default:return!1}},Oa=function(e,g){if(i8z(e))a:{switch(g){case 7:g=0;
break;case 4:if(!PZQ(e)){e=null;break a}g=1;break;default:e=null;break a}e=yK(e)[g]}else if(e.isObfuscated())a:{var c=K9(e)!=null?1:0;switch(g){case 6:g=c;break;case 4:if(!PZQ(e)){e=null;break a}g=1+c;break;default:e=null;break a}e=yK(e)[g]}else a:{c=K9(e)!=null?1:0;switch(g){case 0:g=c;break;case 1:g=1+c;break;case 2:g=2+c;break;case 3:g=3+c;break;case 4:if(!PZQ(e)){e=null;break a}g=4+c;break;case 5:g=PZQ(e)?1:0;g=4+c+g;break;default:e=null;break a}e=yK(e)[g]}return e};
frx.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Oa(this,4));return this.options_};var v_0=function(){};
v_0.prototype.parse=function(e,g){return new IF7(e,g===void 0?!1:g)};
var IF7=function(e,g){frx.call(this,e,g===void 0?!1:g)};
_.Y(IF7,frx);_.Um(qzQ,IQ);var Jsv;qzQ.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
qzQ.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var e=qzQ.superClass_.build.call(this),g=[];K9(this.parsedImageUrl_)!=null&&g.push(K9(this.parsedImageUrl_));var c=i8z(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var k=this.parsedImageUrl_;k.obfuscatedData_==void 0&&(k.obfuscatedData_=Oa(k,6));g.push(k.obfuscatedData_+(e?"="+e:""))}else if(c){k=g.push;var I=this.parsedImageUrl_;I.freeformUrlPath_===void 0&&(I.freeformUrlPath_=
Oa(I,7));k.call(g,I.freeformUrlPath_);e&&g.push(e)}else k=g.push,I=this.parsedImageUrl_,I.obfuscatedGaiaId_==void 0&&(I.obfuscatedGaiaId_=Oa(I,0)),k.call(g,I.obfuscatedGaiaId_),k=g.push,I=this.parsedImageUrl_,I.photoId_==void 0&&(I.photoId_=Oa(I,1)),k.call(g,I.photoId_),k=g.push,I=this.parsedImageUrl_,I.imageVersion_==void 0&&(I.imageVersion_=Oa(I,2)),k.call(g,I.imageVersion_),k=g.push,I=this.parsedImageUrl_,I.signature_==void 0&&(I.signature_=Oa(I,3)),k.call(g,I.signature_),e&&g.push(e),e=g.push,
k=this.parsedImageUrl_,k.filename_==void 0&&(k.filename_=Oa(k,5)),e.call(g,k.filename_);g=c?g.join("="):g.join("/");g=_.zs(this.protocolPrefix_+this.JSC$19879_domain_+"/"+g+(this.JSC$19879_query_?"?"+this.JSC$19879_query_:"")).toString();g.startsWith("%3a//")&&(g=g.replace("%3a//","://"));return g};_.Um(JQ,_.vR);JQ.prototype.JSC$10384_setLabel=function(e){JQ.superClass_.JSC$10384_setLabel.call(this,e);return this};
JQ.prototype.addUploadMetadata=function(e,g){JQ.superClass_.addUploadMetadata.call(this,e,g);return this};var mwj=function(e){if(e!=="youtubebanner"&&e!=="youtube-channel-banner")throw Error("Ek");JQ.call(this,e)};
_.Y(mwj,JQ);mwj.prototype.JSC$10384_setLabel=function(e){JQ.prototype.JSC$10384_setLabel.call(this,e);return this};
mwj.prototype.addUploadMetadata=function(e,g){JQ.prototype.addUploadMetadata.call(this,e,g);return this};var pFo=[0,_.Z4,_.ly,_.Z4,-1,_.ly,[0,_.AP,_.Fv,-1],_.Z4,-1];var Tmj=[0,[1,2,3],_.d0,-2];var lrX=[0,_.Z4];var Agx=_.Ti(["viewBox"]),s5z=_.Ti(["width"]),FQD=_.Ti(["height"]),uxx=_.Ti(["fill"]),dwg=_.Ti(["id"]),zTv=_.Ti(["x"]),H8j=_.Ti(["y"]);Lkx.prototype.getLength=function(){return this.parsedData.length};
Lkx.prototype.write=function(e){for(var g=0,c=this.parsedData.length;g<c;g++)e.put(this.parsedData[g],8)};
var bOx=function(e,g){var c=new Lkx(g);e.dataList.push(c);c=e.errorCorrectLevel;var k=1,I=encodeURI(g).toString().replace(/%[0-9a-fA-F]{2}/g,"a");g=I.length+(I.length!=g?3:0);I=0;for(var J=MC.length;I<=J;I++){var q=0;switch(c){case 1:q=MC[I][0];break;case 0:q=MC[I][1];break;case 3:q=MC[I][2];break;case 2:q=MC[I][3]}if(g<=q)break;else k++}if(k>MC.length)throw Error("Nk");e.typeNumber=k;e.dataCache=null};
rs7.prototype.isDark=function(e,g){if(e<0||this.moduleCount<=e||g<0||this.moduleCount<=g)throw Error("Fk`"+e+"`"+g);return this.modules[e][g]};
for(var hpO=function(e,g,c){e.moduleCount=e.typeNumber*4+17;e.modules=Array(e.moduleCount);for(var k=0;k<e.moduleCount;k++){e.modules[k]=Array(e.moduleCount);for(var I=0;I<e.moduleCount;I++)e.modules[k][I]=null}Q5j(e,0,0);Q5j(e,e.moduleCount-7,0);Q5j(e,0,e.moduleCount-7);k=UwD[e.typeNumber-1];for(I=0;I<k.length;I++)for(var J=0;J<k.length;J++){var q=k[I],L=k[J];if(e.modules[q][L]==null)for(var n=-2;n<=2;n++)for(var R=-2;R<=2;R++)e.modules[q+n][L+R]=n==-2||n==2||R==-2||R==2||n==0&&R==0?!0:!1}for(k=
8;k<e.moduleCount-8;k++)e.modules[k][6]==null&&(e.modules[k][6]=k%2==0);for(k=8;k<e.moduleCount-8;k++)e.modules[6][k]==null&&(e.modules[6][k]=k%2==0);k=e.errorCorrectLevel<<3|c;for(I=k<<10;C9(I)-C9(1335)>=0;)I^=1335<<C9(I)-C9(1335);k=(k<<10|I)^21522;for(I=0;I<15;I++)J=!g&&(k>>I&1)==1,I<6?e.modules[I][8]=J:I<8?e.modules[I+1][8]=J:e.modules[e.moduleCount-15+I][8]=J;for(I=0;I<15;I++)J=!g&&(k>>I&1)==1,I<8?e.modules[8][e.moduleCount-I-1]=J:I<9?e.modules[8][15-I-1+1]=J:e.modules[8][15-I-1]=J;e.modules[e.moduleCount-
8][8]=!g;if(e.typeNumber>=7){k=e.typeNumber;for(I=k<<12;C9(I)-C9(7973)>=0;)I^=7973<<C9(I)-C9(7973);k=k<<12|I;for(I=0;I<18;I++)J=!g&&(k>>I&1)==1,e.modules[Math.floor(I/3)][I%3+e.moduleCount-8-3]=J;for(I=0;I<18;I++)J=!g&&(k>>I&1)==1,e.modules[I%3+e.moduleCount-8-3][Math.floor(I/3)]=J}if(e.dataCache==null){I=e.typeNumber;J=e.dataList;g=e.errorCorrectLevel;k=o3D(I,g);if(k==void 0)throw Error("Mk`"+I+"`"+g);q=k.length/3;g=[];for(L=0;L<q;L++){n=k[L*3];R=k[L*3+1];for(var W=k[L*3+2],b=0;b<n;b++)g.push(new aFD(R,
W))}k=new n_v;for(q=0;q<J.length;q++)L=J[q],k.put(L.mode,4),k.put(L.getLength(),Z80(L.mode,I)),L.write(k);for(q=I=0;q<g.length;q++)I+=g[q].dataCount;if(k.length>I*8)throw Error("Gk`"+k.length+"`"+I*8);for(k.length+4<=I*8&&k.put(0,4);k.length%8!=0;)Vql(k,!1);for(;!(k.length>=I*8);){k.put(236,8);if(k.length>=I*8)break;k.put(17,8)}J=I=R=0;q=Array(g.length);L=Array(g.length);for(n=0;n<g.length;n++){b=g[n].dataCount;var h=g[n].totalCount-b;I=Math.max(I,b);J=Math.max(J,h);q[n]=Array(b);for(W=0;W<q[n].length;W++)q[n][W]=
255&k.buffer[W+R];R+=b;W=h;b=new vK([1],0);for(h=0;h<W;h++)b=b.multiply(new vK([1,tqg(h)],0));W=b;b=(new vK(q[n],W.getLength()-1)).mod(W);L[n]=Array(W.getLength()-1);for(W=0;W<L[n].length;W++)h=W+b.getLength()-L[n].length,L[n][W]=h>=0?b.get(h):0}for(W=k=0;W<g.length;W++)k+=g[W].totalCount;k=Array(k);for(W=R=0;W<I;W++)for(n=0;n<g.length;n++)W<q[n].length&&(k[R++]=q[n][W]);for(W=0;W<J;W++)for(n=0;n<g.length;n++)W<L[n].length&&(k[R++]=L[n][W]);e.dataCache=k}g=e.dataCache;k=-1;I=e.moduleCount-1;J=7;q=
0;for(L=e.moduleCount-1;L>0;L-=2)for(L==6&&L--;;){for(n=0;n<2;n++)e.modules[I][L-n]==null&&(R=!1,q<g.length&&(R=(g[q]>>>J&1)==1),Bmv(c,I,L-n)&&(R=!R),e.modules[I][L-n]=R,J--,J==-1&&(q++,J=7));I+=k;if(I<0||e.moduleCount<=I){I-=k;k=-k;break}}},Q5j=function(e,g,c){for(var k=-1;k<=7;k++)if(!(g+k<=-1||e.moduleCount<=g+k))for(var I=-1;I<=7;I++)c+I<=-1||e.moduleCount<=c+I||(e.modules[g+k][c+I]=0<=k&&k<=6&&(I==0||I==6)||0<=I&&I<=6&&(k==0||k==6)||2<=k&&k<=4&&2<=I&&I<=4?!0:!1)},XoD=function(e){for(var g=0,
c=0,k=0;k<8;k++){hpO(e,!0,k);
var I=e;for(var J=I.moduleCount,q=0,L=0;L<J;L++)for(var n=0;n<J;n++){for(var R=0,W=I.isDark(L,n),b=-1;b<=1;b++)if(!(L+b<0||J<=L+b))for(var h=-1;h<=1;h++)n+h<0||J<=n+h||(b!=0||h!=0)&&W==I.isDark(L+b,n+h)&&R++;R>5&&(q+=3+R-5)}for(L=0;L<J-1;L++)for(n=0;n<J-1;n++)if(R=0,I.isDark(L,n)&&R++,I.isDark(L+1,n)&&R++,I.isDark(L,n+1)&&R++,I.isDark(L+1,n+1)&&R++,R==0||R==4)q+=3;for(L=0;L<J;L++)for(n=0;n<J-6;n++)I.isDark(L,n)&&!I.isDark(L,n+1)&&I.isDark(L,n+2)&&I.isDark(L,n+3)&&I.isDark(L,n+4)&&!I.isDark(L,n+5)&&
I.isDark(L,n+6)&&(q+=40);for(n=0;n<J;n++)for(L=0;L<J-6;L++)I.isDark(L,n)&&!I.isDark(L+1,n)&&I.isDark(L+2,n)&&I.isDark(L+3,n)&&I.isDark(L+4,n)&&!I.isDark(L+5,n)&&I.isDark(L+6,n)&&(q+=40);for(n=R=0;n<J;n++)for(L=0;L<J;L++)I.isDark(L,n)&&R++;I=q+=Math.abs(100*R/J/J-50)/5*10;if(k==0||g>I)g=I,c=k}return c},UwD=[[],
[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]],C9=function(e){for(var g=0;e!=0;)g++,e>>>=1;return g},Bmv=function(e,g,c){switch(e){case 0:return(g+c)%2==0;
case 1:return g%2==0;case 2:return c%3==0;case 3:return(g+c)%3==0;case 4:return(Math.floor(g/2)+Math.floor(c/3))%2==0;case 5:return g*c%2+g*c%3==0;case 6:return(g*c%2+g*c%3)%2==0;case 7:return(g*c%3+(g+c)%2)%2==0;default:throw Error("Hk`"+e);}},Z80=function(e,g){if(1<=g&&g<10)switch(e){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ik`"+e);}else if(g<27)switch(e){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ik`"+e);}else if(g<41)switch(e){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ik`"+e);}else throw Error("Jk`"+g);},SJq=function(e){if(e<1)throw Error("Kk`"+e);
return Nmg[e]},tqg=function(e){for(;e<0;)e+=255;
for(;e>=256;)e-=255;return e8[e]},e8=Array(256),Nmg=Array(256),yg7=0;yg7<8;yg7++)e8[yg7]=1<<yg7;
for(var g_=8;g_<256;g_++)e8[g_]=e8[g_-4]^e8[g_-5]^e8[g_-6]^e8[g_-8];for(var KQX=0;KQX<255;KQX++)Nmg[e8[KQX]]=KQX;vK.prototype.get=function(e){return this.num[e]};
vK.prototype.getLength=function(){return this.num.length};
vK.prototype.multiply=function(e){for(var g=Array(this.getLength()+e.getLength()-1),c=0;c<this.getLength();c++)for(var k=0;k<e.getLength();k++)g[c+k]^=tqg(SJq(this.get(c))+SJq(e.get(k)));return new vK(g,0)};
vK.prototype.mod=function(e){if(this.getLength()-e.getLength()<0)return this;for(var g=SJq(this.get(0))-SJq(e.get(0)),c=Array(this.getLength()),k=0;k<this.getLength();k++)c[k]=this.get(k);for(k=0;k<e.getLength();k++)c[k]^=tqg(SJq(e.get(k))+g);return(new vK(c,0)).mod(e)};
var O8l=[[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]],o3D=function(e,g){switch(g){case 1:return O8l[(e-1)*4];case 0:return O8l[(e-1)*4+1];case 3:return O8l[(e-1)*4+2];case 2:return O8l[(e-1)*4+3]}};
n_v.prototype.get=function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1};
n_v.prototype.put=function(e,g){for(var c=0;c<g;c++)Vql(this,(e>>>g-c-1&1)==1)};
var Vql=function(e,g){var c=Math.floor(e.length/8);e.buffer.length<=c&&e.buffer.push(0);g&&(e.buffer[c]|=128>>>e.length%8);e.length++},MC=[[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]],Wkg=function(){var e=function(g,c){this.JSC$19905__el=g;this.JSC$19905__htOption=c};
e.prototype.draw=function(g){function c(W,b){W=document.createElementNS("http://www.w3.org/2000/svg",W);for(var h in b)b.hasOwnProperty(h)&&(h==="href"?XPo(W,b[h]):_.bj([_.Ya(Agx),_.Ya(s5z),_.Ya(FQD),_.Ya(uxx),_.Ya(dwg),_.Ya(zTv),_.Ya(H8j)],W,h,b[h]));return W}
var k=this.JSC$19905__htOption,I=this.JSC$19905__el,J=g.moduleCount;this.clear();var q=c("svg",{viewBox:"0 0 "+String(J)+" "+String(J),width:"100%",height:"100%",fill:k.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});I.appendChild(q);q.appendChild(c("rect",{fill:k.colorLight,width:"100%",height:"100%"}));q.appendChild(c("rect",{fill:k.colorDark,width:"1",height:"1",id:"template"}));for(var L=0;L<J;L++)for(var n=0;n<J;n++)if(g.isDark(L,n)){var R=c("use",{x:String(L),y:String(n),href:"#template"});
q.appendChild(R)}};
e.prototype.clear=function(){for(;this.JSC$19905__el.hasChildNodes();)this.JSC$19905__el.removeChild(this.JSC$19905__el.lastChild)};
return e}(),E_z=document.documentElement.tagName.toLowerCase()==="svg"?Wkg:typeof CanvasRenderingContext2D!="undefined"?function(){var e=function(g,c){this._bIsPainted=!1;
Rpz();this.JSC$19905__htOption=c;this._elCanvas=document.createElement("canvas");this._elCanvas.width=c.width;this._elCanvas.height=c.height;g.appendChild(this._elCanvas);this.JSC$19905__el=g;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$19905__el.appendChild(this._elImage);this._bSupportDataURI=null};
e.prototype._onMakeImage=function(){var g=this._elCanvas.toDataURL("image/png");this._elImage.src=g;this._elImage.style.display="block";this._elCanvas.style.display="none"};
e.prototype._safeSetDataURI=function(g,c){var k=this;k._fFail=c;k._fSuccess=g;k._bSupportDataURI===null?(g=_.C0("IMG"),c=function(){k._bSupportDataURI=!1;k._fFail&&k._fFail.call(k)},g.onabort=c,g.onerror=c,g.onload=function(){k._bSupportDataURI=!0;
k._fSuccess&&k._fSuccess.call(k)},g.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):k._bSupportDataURI===!0&&k._fSuccess?k._fSuccess.call(k):k._bSupportDataURI===!1&&k._fFail&&k._fFail.call(k)};
e.prototype.draw=function(g){var c=this._oContext,k=this.JSC$19905__htOption,I=g.moduleCount,J=k.width/I,q=k.height/I,L=Math.round(J),n=Math.round(q);this._elImage.style.display="none";this.clear();for(var R=0;R<I;R++)for(var W=0;W<I;W++){var b=g.isDark(R,W),h=W*J,X=R*q;c.strokeStyle=b?k.colorDark:k.colorLight;c.lineWidth=1;c.fillStyle=b?k.colorDark:k.colorLight;c.fillRect(h,X,J,q);c.strokeRect(Math.floor(h)+.5,Math.floor(X)+.5,L,n);c.strokeRect(Math.ceil(h)-.5,Math.ceil(X)-.5,L,n)}this._bIsPainted=
!0};
e.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
e.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
e.prototype.round=function(g){return g?Math.floor(g*1E3)/1E3:g};
return e}():function(){var e=function(g,c){this.JSC$19905__el=g;
this.JSC$19905__htOption=c};
e.prototype.draw=function(g){for(var c=this.JSC$19905__htOption,k=this.JSC$19905__el,I=g.moduleCount,J=Math.floor(c.width/I),q=Math.floor(c.height/I),L=['<table style="border:0;border-collapse:collapse;">'],n=0;n<I;n++){L.push("<tr>");for(var R=0;R<I;R++)L.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+J+"px;height:"+q+"px;background-color:"+(g.isDark(n,R)?c.colorDark:c.colorLight)+';"></td>');L.push("</tr>")}L.push("</table>");g=L.join("");g=_.j4w(_.PeY,g);_.WA(k,g);
g=k.childNodes[0];I=(c.width-g.offsetWidth)/2;J=(c.height-g.offsetHeight)/2;I>0&&J>0&&(g.style.margin=J+"px "+I+"px")};
e.prototype.clear=function(){this.JSC$19905__el.textContent=""};
return e}();
G5Q.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19908__android||this.JSC$19908__android>=3)&&this._oDrawing.makeImage()};
G5Q.prototype.clear=function(){this._oDrawing.clear()};
_.kp.QRCode=G5Q;var Mql={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Asz=function(){};
Asz.prototype.stringify=function(e){return _.kp.JSON.stringify(e,void 0)};
Asz.prototype.parse=function(e){return _.kp.JSON.parse(e,void 0)};var CZQ=function(){_.Bt.call(this,"z")};
_.Um(CZQ,_.Bt);var ebj=function(){_.Bt.call(this,"y")};
_.Um(ebj,_.Bt);var DYj=null;_.Um(YzM,_.Bt);_.Um(jIv,_.Bt);_.Um(iO0,_.Bt);qh.prototype.disableRedact=function(){this.redactEnabled_=!1};
var gsO=function(e,g,c,k,I,J){e.info(function(){if(e.redactEnabled_)if(J){var q="";for(var L=J.split("&"),n=0;n<L.length;n++){var R=L[n].split("=");if(R.length>1){var W=R[0];R=R[1];var b=W.split("_");q=b.length>=2&&b[1]=="type"?q+(W+"="+R+"&"):q+(W+"=redacted&")}}}else q=null;else q=J;return"XMLHTTP REQ ("+k+") [attempt "+I+"]: "+g+"\n"+c+"\n"+q})},czS=function(e,g,c,k,I,J,q){e.info(function(){return"XMLHTTP RESP ("+k+") [ attempt "+I+"]: "+g+"\n"+c+"\n"+J+" "+q})},cS=function(e,g,c,k){e.info(function(){return"XMLHTTP TEXT ("+
g+"): "+kdz(e,c)+(k?" "+k:"")})},IG7=function(e,g){e.info(function(){return"TIMEOUT: "+g})};
qh.prototype.debug=function(){};
qh.prototype.info=function(){};
qh.prototype.warning=function(){};
var kdz=function(e,g){if(!e.redactEnabled_)return g;if(!g)return null;try{var c=JSON.parse(g);if(c)for(var k=0;k<c.length;k++)if(Array.isArray(c[k])){var I=c[k];if(!(I.length<2)){var J=I[1];if(Array.isArray(J)&&!(J.length<1)){var q=J[0];if(q!="noop"&&q!="stop"&&q!="close")for(var L=1;L<J.length;L++)J[L]=""}}}return _.X9(c)}catch(n){return e.debug("Exception parsing expected JS array - probably was not JS"),g}};var poM=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},Jzx=function(e,g){switch(e){case 0:return"Non-200 return code ("+g+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},vsv={},wvQ={};
LJ.prototype.setTimeout=function(e){this.timeout_=e};
var L5O=function(e,g,c){e.JSC$19930_type_=1;e.JSC$19930_baseUri_=_.Nn(g.clone());e.JSC$19930_postData_=c;e.decodeChunks_=!0;qcz(e,null)},qcz=function(e,g){e.JSC$19930_requestStartTime_=Date.now();
rz7(e);e.JSC$19930_requestUri_=e.JSC$19930_baseUri_.clone();nbS(e.JSC$19930_requestUri_,"t",e.JSC$19930_retryId_);e.JSC$19930_xmlHttpChunkStart_=0;var c=e.JSC$19930_channel_.JSC$19949_supportsCrossDomainXhrs_;e.fetchResponseState_=new poM;e.JSC$19930_xmlHttp_=aG0(e.JSC$19930_channel_,c?g:null,!e.JSC$19930_postData_);e.JSC$19930_readyStateChangeThrottleMs_>0&&(e.JSC$19930_readyStateChangeThrottle_=new _.BT((0,_.Ju)(e.JSC$19934_xmlHttpHandler_,e,e.JSC$19930_xmlHttp_),e.JSC$19930_readyStateChangeThrottleMs_));
e.JSC$19930_eventHandler_.listen(e.JSC$19930_xmlHttp_,"readystatechange",e.JSC$19934_readyStateChangeHandler_);g=e.JSC$19930_extraHeaders_?_.n0.clone(e.JSC$19930_extraHeaders_):{};e.JSC$19930_postData_?(e.JSC$19930_verb_||(e.JSC$19930_verb_="POST"),g["Content-Type"]="application/x-www-form-urlencoded",e.JSC$19930_xmlHttp_.send(e.JSC$19930_requestUri_,e.JSC$19930_verb_,e.JSC$19930_postData_,g)):(e.JSC$19930_verb_="GET",e.JSC$19930_xmlHttp_.send(e.JSC$19930_requestUri_,e.JSC$19930_verb_,null,g));fFM(1);
gsO(e.JSC$19930_channelDebug_,e.JSC$19930_verb_,e.JSC$19930_requestUri_,e.JSC$19930_rid_,e.JSC$19930_retryId_,e.JSC$19930_postData_)};
LJ.prototype.JSC$19934_readyStateChangeHandler_=function(e){e=e.target;var g=this.JSC$19930_readyStateChangeThrottle_;g&&_.xo(e)==3?(this.JSC$19930_channelDebug_.debug("Throttling readystatechange."),g.fire()):this.JSC$19934_xmlHttpHandler_(e)};
LJ.prototype.JSC$19934_xmlHttpHandler_=function(e){try{e==this.JSC$19930_xmlHttp_?nsD(this):this.JSC$19930_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(g){this.JSC$19930_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),RbS(this)}finally{}};
var nsD=function(e){var g=_.xo(e.JSC$19930_xmlHttp_),c=e.JSC$19930_xmlHttp_.JSC$10106_lastErrorCode_,k=e.JSC$19930_xmlHttp_.getStatus();if(!(g<3||g==3&&!RbS(e))){e.JSC$19930_cancelled_||g!=4||c==7||(c==8||k<=0?fFM(3):fFM(2));Esq(e);var I=e.JSC$19930_xmlHttp_.getStatus();e.JSC$19930_lastStatusCode_=I;c=W50(e);RbS(e)||e.JSC$19930_channelDebug_.debug(function(){return"No response text for uri "+e.JSC$19930_requestUri_+" status "+I});
e.JSC$19930_successful_=I==200;czS(e.JSC$19930_channelDebug_,e.JSC$19930_verb_,e.JSC$19930_requestUri_,e.JSC$19930_rid_,e.JSC$19930_retryId_,g,I);if(e.JSC$19930_successful_){if(e.decodeInitialResponse_&&!e.initialResponseDecoded_)if(k=b3l(e))cS(e.JSC$19930_channelDebug_,e.JSC$19930_rid_,k,"Initial handshake response via X-HTTP-Initial-Response"),e.initialResponseDecoded_=!0,hbv(e,k);else{e.JSC$19930_successful_=!1;e.JSC$19930_lastError_=3;wW(12);e.JSC$19930_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
e.JSC$19930_rid_+")");kw(e);Xvl(e);return}e.decodeChunks_?Gdq(e,g,c):(cS(e.JSC$19930_channelDebug_,e.JSC$19930_rid_,c,null),hbv(e,c));g==4&&kw(e);e.JSC$19930_successful_&&!e.JSC$19930_cancelled_&&(g==4?xTj(e.JSC$19930_channel_,e):(e.JSC$19930_successful_=!1,rz7(e)))}else rUS(e.JSC$19930_xmlHttp_),I==400&&c.indexOf("Unknown SID")>0?(e.JSC$19930_lastError_=3,wW(12),e.JSC$19930_channelDebug_.warning("XMLHTTP Unknown SID ("+e.JSC$19930_rid_+")")):(e.JSC$19930_lastError_=0,wW(13),e.JSC$19930_channelDebug_.warning("XMLHTTP Bad status "+
I+" ("+e.JSC$19930_rid_+")")),kw(e),Xvl(e)}},b3l=function(e){return e.JSC$19930_xmlHttp_&&(e=CmM(e.JSC$19930_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.rV(e)?e:null},W50=function(e){if(!DTX(e))return e.JSC$19930_xmlHttp_.getResponseText();
var g=e.JSC$19930_xmlHttp_.getResponse();if(g==="")return"";var c="",k=g.length,I=_.xo(e.JSC$19930_xmlHttp_)==4;if(!e.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return kw(e),Xvl(e),"";e.fetchResponseState_.textDecoder=new _.kp.TextDecoder}for(var J=0;J<k;J++)e.fetchResponseState_.responseArrivedForFetch=!0,c+=e.fetchResponseState_.textDecoder.decode(g[J],{stream:!(I&&J==k-1)});g.length=0;e.fetchResponseState_.responseBuffer+=c;e.JSC$19930_xmlHttpChunkStart_=0;return e.fetchResponseState_.responseBuffer},
RbS=function(e){return e.JSC$19930_xmlHttp_?e.fetchResponseState_.responseArrivedForFetch?!0:!(!e.JSC$19930_xmlHttp_.getResponseText()&&!e.JSC$19930_xmlHttp_.getResponse()):!1},DTX=function(e){return e.JSC$19930_xmlHttp_?e.JSC$19930_verb_=="GET"&&e.JSC$19930_type_!=2&&e.JSC$19930_channel_.usesFetchStreams_:!1},Gdq=function(e,g,c){for(var k=!0,I;!e.JSC$19930_cancelled_&&e.JSC$19930_xmlHttpChunkStart_<c.length;)if(I=$TD(e,c),I==wvQ){g==4&&(e.JSC$19930_lastError_=4,wW(14),k=!1);
cS(e.JSC$19930_channelDebug_,e.JSC$19930_rid_,null,"[Incomplete Response]");break}else if(I==vsv){e.JSC$19930_lastError_=4;wW(15);cS(e.JSC$19930_channelDebug_,e.JSC$19930_rid_,c,"[Invalid Chunk]");k=!1;break}else cS(e.JSC$19930_channelDebug_,e.JSC$19930_rid_,I,null),hbv(e,I);DTX(e)&&e.JSC$19930_xmlHttpChunkStart_!=0&&(e.fetchResponseState_.responseBuffer=e.fetchResponseState_.responseBuffer.slice(e.JSC$19930_xmlHttpChunkStart_),e.JSC$19930_xmlHttpChunkStart_=0);g!=4||c.length!=0||e.fetchResponseState_.responseArrivedForFetch||
(e.JSC$19930_lastError_=1,wW(16),k=!1);e.JSC$19930_successful_=e.JSC$19930_successful_&&k;k?c.length>0&&!e.firstByteReceived_&&(e.firstByteReceived_=!0,g=e.JSC$19930_channel_,g.JSC$19949_backChannelRequest_==e&&g.detectBufferingProxy_&&!g.bpDetectionDone_&&(g.JSC$19949_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+c.length),Yc0(g),g.bpDetectionDone_=!0,wW(11))):(cS(e.JSC$19930_channelDebug_,e.JSC$19930_rid_,c,"[Invalid Chunked Response]"),kw(e),Xvl(e))},$TD=function(e,
g){var c=e.JSC$19930_xmlHttpChunkStart_,k=g.indexOf("\n",c);
if(k==-1)return wvQ;c=Number(g.substring(c,k));if(isNaN(c))return vsv;k+=1;if(k+c>g.length)return wvQ;g=g.slice(k,k+c);e.JSC$19930_xmlHttpChunkStart_=k+c;return g};
LJ.prototype.cancel=function(){this.JSC$19930_cancelled_=!0;kw(this)};
var rz7=function(e){e.JSC$19930_watchDogTimeoutTime_=Date.now()+e.timeout_;fGO(e,e.timeout_)},fGO=function(e,g){if(e.JSC$19930_watchDogTimerId_!=null)throw Error("Pk");
e.JSC$19930_watchDogTimerId_=mY7((0,_.Ju)(e.JSC$19934_onWatchDogTimeout_,e),g)},Esq=function(e){e.JSC$19930_watchDogTimerId_&&(_.kp.clearTimeout(e.JSC$19930_watchDogTimerId_),e.JSC$19930_watchDogTimerId_=null)};
LJ.prototype.JSC$19934_onWatchDogTimeout_=function(){this.JSC$19930_watchDogTimerId_=null;var e=Date.now();e-this.JSC$19930_watchDogTimeoutTime_>=0?(IG7(this.JSC$19930_channelDebug_,this.JSC$19930_requestUri_),this.JSC$19930_type_!=2&&(fFM(3),wW(17)),kw(this),this.JSC$19930_lastError_=2,Xvl(this)):(this.JSC$19930_channelDebug_.warning("WatchDog timer called too early"),fGO(this,this.JSC$19930_watchDogTimeoutTime_-e))};
var Xvl=function(e){e.JSC$19930_channel_.state_==0||e.JSC$19930_cancelled_||xTj(e.JSC$19930_channel_,e)},kw=function(e){Esq(e);
_.Fm(e.JSC$19930_readyStateChangeThrottle_);e.JSC$19930_readyStateChangeThrottle_=null;e.JSC$19930_eventHandler_.removeAll();if(e.JSC$19930_xmlHttp_){var g=e.JSC$19930_xmlHttp_;e.JSC$19930_xmlHttp_=null;g.abort();g.dispose()}};
LJ.prototype.getLastError=function(){return this.JSC$19930_lastError_};
var hbv=function(e,g){try{var c=e.JSC$19930_channel_;if(c.state_!=0&&(c.JSC$19949_backChannelRequest_==e||jGq(c.forwardChannelRequestPool_,e)))if(!e.initialResponseDecoded_&&jGq(c.forwardChannelRequestPool_,e)&&c.state_==3){try{var k=c.wireCodec_.JSC$19944_parser_.parse(g)}catch(L){k=null}if(Array.isArray(k)&&k.length==3){g=k;if(g[0]==0)a:if(c.JSC$19949_channelDebug_.debug("Server claims our backchannel is missing."),c.JSC$19949_backChannelTimerId_)c.JSC$19949_channelDebug_.debug("But we are currently starting the request.");
else{if(c.JSC$19949_backChannelRequest_)if(c.JSC$19949_backChannelRequest_.JSC$19930_requestStartTime_+3E3<e.JSC$19930_requestStartTime_)i3q(c),PUo(c);else break a;else c.JSC$19949_channelDebug_.warning("We do not have a BackChannel established");mTx(c);wW(18)}else{c.JSC$19949_lastPostResponseArrayId_=g[1];var I=c.JSC$19949_lastPostResponseArrayId_-c.JSC$19949_lastArrayId_;if(0<I){var J=g[2];c.JSC$19949_channelDebug_.debug(J+" bytes (in "+I+" arrays) are outstanding on the BackChannel");J<37500&&
c.enableStreaming_&&c.JSC$19949_backChannelRetryCount_==0&&!c.JSC$19949_deadBackChannelTimerId_&&(c.JSC$19949_deadBackChannelTimerId_=mY7((0,_.Ju)(c.JSC$19951_onBackChannelDead_,c),6E3))}}if(pvM(c.forwardChannelRequestPool_)<=1&&c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(L){}c.forwardChannelFlushedCallback_=void 0}}else c.JSC$19949_channelDebug_.debug("Bad POST response data returned"),IO(c,11)}else if((e.initialResponseDecoded_||c.JSC$19949_backChannelRequest_==
e)&&i3q(c),!_.rV(g)){var q=c.wireCodec_.JSC$19944_parser_.parse(g);c.onInput_(q,e)}fFM(4)}catch(L){}};var TO7=function(e,g){this.JSC$19937_mapId=e;this.map=g;this.context=null};var uAg=function(e){this.maxPoolSizeConfigured_=e||10;_.kp.PerformanceNavigationTiming?(e=_.kp.performance.getEntriesByType("navigation"),e=e.length>0&&(e[0].nextHopProtocol=="hq"||e[0].nextHopProtocol=="h2")):e=!!(_.kp.chrome&&_.kp.chrome.loadTimes&&_.kp.chrome.loadTimes()&&_.kp.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19940_maxSize_=e?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19940_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19940_request_=null;this.JSC$19940_pendingMessages_=
[]},lG7=function(e){return e.JSC$19940_request_?!0:e.requestPool_?e.requestPool_.size>=e.JSC$19940_maxSize_:!1},pvM=function(e){return e.JSC$19940_request_?1:e.requestPool_?e.requestPool_.size:0},jGq=function(e,g){return e.JSC$19940_request_?e.JSC$19940_request_==g:e.requestPool_?e.requestPool_.has(g):!1},AzO=function(e,g){e.requestPool_?e.requestPool_.add(g):e.JSC$19940_request_=g},sGo=function(e,g){e.JSC$19940_request_&&e.JSC$19940_request_==g?e.JSC$19940_request_=null:e.requestPool_&&e.requestPool_.has(g)&&
e.requestPool_.delete(g)};
uAg.prototype.cancel=function(){this.JSC$19940_pendingMessages_=F5o(this);if(this.JSC$19940_request_)this.JSC$19940_request_.cancel(),this.JSC$19940_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var e=_.w(this.requestPool_.values()),g=e.next();!g.done;g=e.next())g.value.cancel();this.requestPool_.clear()}};
var F5o=function(e){if(e.JSC$19940_request_!=null)return e.JSC$19940_pendingMessages_.concat(e.JSC$19940_request_.JSC$19930_pendingMessages_);if(e.requestPool_!=null&&e.requestPool_.size!==0){var g=e.JSC$19940_pendingMessages_;e=_.w(e.requestPool_.values());for(var c=e.next();!c.done;c=e.next())g=g.concat(c.value.JSC$19930_pendingMessages_);return g}return _.tq(e.JSC$19940_pendingMessages_)},ukQ=function(e,g){e.JSC$19940_pendingMessages_=e.JSC$19940_pendingMessages_.concat(g)};aQ.prototype.JSC$19951_channelVersion_=8;aQ.prototype.state_=1;
aQ.prototype.connect=function(e,g,c,k){this.JSC$19949_channelDebug_.debug("connect()");wW(0);this.JSC$19949_path_=e;this.JSC$19949_extraParams_=g||{};c&&k!==void 0&&(this.JSC$19949_extraParams_.OSID=c,this.JSC$19949_extraParams_.OAID=k);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19949_channelDebug_.debug("connectChannel_()");e=dTS(this,null,this.JSC$19949_path_);this.JSC$19949_channelDebug_.debug("GetForwardChannelUri: "+e);this.JSC$19949_forwardChannelUri_=e;zbj(this)};
aQ.prototype.disconnect=function(){this.JSC$19949_channelDebug_.debug("disconnect()");H3x(this);if(this.state_==3){var e=this.JSC$19949_nextRid_++,g=this.JSC$19949_forwardChannelUri_.clone();_.Qd(g,"SID",this.sid_);_.Qd(g,"RID",e);_.Qd(g,"TYPE","terminate");QGq(this,g);e=new LJ(this,this.JSC$19949_channelDebug_,this.sid_,e);e.JSC$19930_type_=2;e.JSC$19930_baseUri_=_.Nn(g.clone());g=!1;if(_.kp.navigator&&_.kp.navigator.sendBeacon)try{g=_.kp.navigator.sendBeacon(e.JSC$19930_baseUri_.toString(),"")}catch(c){}!g&&
_.kp.Image&&((new Image).src=e.JSC$19930_baseUri_,g=!0);g||(e.JSC$19930_xmlHttp_=aG0(e.JSC$19930_channel_,null),e.JSC$19930_xmlHttp_.send(e.JSC$19930_baseUri_));e.JSC$19930_requestStartTime_=Date.now();rz7(e)}UT7(this)};
var PUo=function(e){e.JSC$19949_backChannelRequest_&&(Yc0(e),e.JSC$19949_backChannelRequest_.cancel(),e.JSC$19949_backChannelRequest_=null)},H3x=function(e){PUo(e);
e.JSC$19949_backChannelTimerId_&&(_.kp.clearTimeout(e.JSC$19949_backChannelTimerId_),e.JSC$19949_backChannelTimerId_=null);i3q(e);e.forwardChannelRequestPool_.cancel();e.JSC$19949_forwardChannelTimerId_&&(typeof e.JSC$19949_forwardChannelTimerId_==="number"&&_.kp.clearTimeout(e.JSC$19949_forwardChannelTimerId_),e.JSC$19949_forwardChannelTimerId_=null)};
aQ.prototype.getState=function(){return this.state_};
var zbj=function(e){lG7(e.forwardChannelRequestPool_)||e.JSC$19949_forwardChannelTimerId_||(e.JSC$19949_forwardChannelTimerId_=!0,_.R0(e.JSC$19951_onStartForwardChannelTimer_,e),e.JSC$19949_forwardChannelRetryCount_=0)},Z3o=function(e,g){if(pvM(e.forwardChannelRequestPool_)>=e.forwardChannelRequestPool_.JSC$19940_maxSize_-(e.JSC$19949_forwardChannelTimerId_?1:0))return!1;
if(e.JSC$19949_forwardChannelTimerId_)return e.JSC$19949_channelDebug_.debug("Use the retry request that is already scheduled."),e.JSC$19949_outgoingMaps_=g.JSC$19930_pendingMessages_.concat(e.JSC$19949_outgoingMaps_),!0;if(e.state_==1||e.state_==2||e.JSC$19949_forwardChannelRetryCount_>=(e.JSC$19949_failFast_?0:e.JSC$19949_forwardChannelMaxRetries_))return!1;e.JSC$19949_channelDebug_.debug("Going to retry POST");e.JSC$19949_forwardChannelTimerId_=mY7((0,_.Ju)(e.JSC$19951_onStartForwardChannelTimer_,
e,g),oso(e,e.JSC$19949_forwardChannelRetryCount_));e.JSC$19949_forwardChannelRetryCount_++;return!0};
aQ.prototype.JSC$19951_onStartForwardChannelTimer_=function(e){if(this.JSC$19949_forwardChannelTimerId_)if(this.JSC$19949_forwardChannelTimerId_=null,this.JSC$19949_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!e){this.JSC$19949_channelDebug_.debug("open_()");this.JSC$19949_nextRid_=Math.floor(Math.random()*1E5);e=this.JSC$19949_nextRid_++;var g=new LJ(this,this.JSC$19949_channelDebug_,"",e),c=this.JSC$19949_extraHeaders_;this.initHeaders_&&(c?(c=_.n0.clone(c),_.n0.extend(c,this.initHeaders_)):
c=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(g.JSC$19930_extraHeaders_=c,c=null);var k;if(this.fastHandshake_)a:{for(var I=k=0;I<this.JSC$19949_outgoingMaps_.length;I++){b:{var J=this.JSC$19949_outgoingMaps_[I];if("__data__"in J.map&&(J=J.map.__data__,typeof J==="string")){J=J.length;break b}J=void 0}if(J===void 0)break;k+=J;if(k>4096){k=I;break a}if(k===4096||I===this.JSC$19949_outgoingMaps_.length-1){k=I+1;break a}}k=this.maxMapsPerRequest_}else k=
this.maxMapsPerRequest_;k=V_X(this,g,k);I=this.JSC$19949_forwardChannelUri_.clone();_.Qd(I,"RID",e);_.Qd(I,"CVER",22);this.httpSessionIdParam_&&_.Qd(I,"X-HTTP-Session-Id",this.httpSessionIdParam_);QGq(this,I);c&&(this.encodeInitMessageHeaders_?k="headers="+_.Kr(cRD(c))+"&"+k:this.httpHeadersOverwriteParam_&&k_o(I,this.httpHeadersOverwriteParam_,c));AzO(this.forwardChannelRequestPool_,g);this.blockingHandshake_&&_.Qd(I,"TYPE","init");this.fastHandshake_?(_.Qd(I,"$req",k),_.Qd(I,"SID","null"),g.decodeInitialResponse_=
!0,L5O(g,I,null)):L5O(g,I,k);this.state_=2}}else this.state_==3&&(e?t_Q(this,e):this.JSC$19949_outgoingMaps_.length==0?this.JSC$19949_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):lG7(this.forwardChannelRequestPool_)||(t_Q(this),this.JSC$19949_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var t_Q=function(e,g){var c;g?c=g.JSC$19930_rid_:c=e.JSC$19949_nextRid_++;var k=e.JSC$19949_forwardChannelUri_.clone();_.Qd(k,"SID",e.sid_);_.Qd(k,"RID",c);_.Qd(k,"AID",e.JSC$19949_lastArrayId_);QGq(e,k);e.httpHeadersOverwriteParam_&&e.JSC$19949_extraHeaders_&&k_o(k,e.httpHeadersOverwriteParam_,e.JSC$19949_extraHeaders_);c=new LJ(e,e.JSC$19949_channelDebug_,e.sid_,c,e.JSC$19949_forwardChannelRetryCount_+1);e.httpHeadersOverwriteParam_===null&&(c.JSC$19930_extraHeaders_=e.JSC$19949_extraHeaders_);
g&&(e.JSC$19949_outgoingMaps_=g.JSC$19930_pendingMessages_.concat(e.JSC$19949_outgoingMaps_));g=V_X(e,c,e.maxMapsPerRequest_);c.setTimeout(Math.round(e.JSC$19949_forwardChannelRequestTimeoutMs_*.5)+Math.round(e.JSC$19949_forwardChannelRequestTimeoutMs_*.5*Math.random()));AzO(e.forwardChannelRequestPool_,c);L5O(c,k,g)},QGq=function(e,g){e.JSC$19949_extraParams_&&_.n0.forEach(e.JSC$19949_extraParams_,function(c,k){_.Qd(g,k,c)});
e.handler_&&_.n0.forEach({},function(c,k){_.Qd(g,k,c)})},V_X=function(e,g,c){c=Math.min(e.JSC$19949_outgoingMaps_.length,c);
var k=e.handler_?(0,_.Ju)(e.handler_.JSC$19955_badMapError,e.handler_,e):null;a:{for(var I=e.JSC$19949_outgoingMaps_,J=-1;;){var q=["count="+c];J==-1?c>0?(J=I[0].JSC$19937_mapId,q.push("ofs="+J)):J=0:q.push("ofs="+J);for(var L=!0,n=0;n<c;n++){var R=I[n].JSC$19937_mapId,W=I[n].map;R-=J;if(R<0)J=Math.max(0,I[n].JSC$19937_mapId-100),L=!1;else try{R="req"+R+"_"||"";try{var b=W instanceof Map?W:Object.entries(W);for(var h=_.w(b),X=h.next();!X.done;X=h.next()){var D=_.w(X.value),f=D.next().value,l=D.next().value,
A=l;_.SK(l)&&(A=_.X9(l));q.push(R+f+"="+encodeURIComponent(A))}}catch(d){throw q.push(R+"type="+encodeURIComponent("_badmap")),d;}}catch(d){k&&k(W)}}if(L){b=q.join("&");break a}}b=void 0}e=e.JSC$19949_outgoingMaps_.splice(0,c);g.JSC$19930_pendingMessages_=e;return b},BOj=function(e){e.JSC$19949_backChannelRequest_||e.JSC$19949_backChannelTimerId_||(e.JSC$19949_backChannelAttemptId_=1,_.R0(e.JSC$19951_onStartBackChannelTimer_,e),e.JSC$19949_backChannelRetryCount_=0)},mTx=function(e){if(e.JSC$19949_backChannelRequest_||
e.JSC$19949_backChannelTimerId_||e.JSC$19949_backChannelRetryCount_>=3)return!1;
e.JSC$19949_channelDebug_.debug("Going to retry GET");e.JSC$19949_backChannelAttemptId_++;e.JSC$19949_backChannelTimerId_=mY7((0,_.Ju)(e.JSC$19951_onStartBackChannelTimer_,e),oso(e,e.JSC$19949_backChannelRetryCount_));e.JSC$19949_backChannelRetryCount_++;return!0};
aQ.prototype.JSC$19951_onStartBackChannelTimer_=function(){this.JSC$19949_backChannelTimerId_=null;NOX(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19949_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19949_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19949_backChannelRequest_+" "+this.handshakeRttMs_);else{var e=4*this.handshakeRttMs_;this.JSC$19949_channelDebug_.info("BP detection timer enabled: "+e);this.bpDetectionTimerId_=mY7((0,_.Ju)(this.onBpDetectionTimer_,
this),e)}};
aQ.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19949_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19949_backChannelRequest_.JSC$19930_xmlHttp_!=null){var e=this.JSC$19949_backChannelRequest_.JSC$19930_xmlHttp_.getResponseText();e&&this.JSC$19949_channelDebug_.warning("Timer should have been cancelled : "+e)}this.JSC$19949_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;wW(10);PUo(this);NOX(this)}else this.JSC$19949_channelDebug_.warning("Invalid operation.")};
var Yc0=function(e){e.bpDetectionTimerId_!=null&&(e.JSC$19949_channelDebug_.debug("Cancel the BP detection timer."),_.kp.clearTimeout(e.bpDetectionTimerId_),e.bpDetectionTimerId_=null)},NOX=function(e){e.JSC$19949_channelDebug_.debug("Creating new HttpRequest");
e.JSC$19949_backChannelRequest_=new LJ(e,e.JSC$19949_channelDebug_,e.sid_,"rpc",e.JSC$19949_backChannelAttemptId_);e.httpHeadersOverwriteParam_===null&&(e.JSC$19949_backChannelRequest_.JSC$19930_extraHeaders_=e.JSC$19949_extraHeaders_);e.JSC$19949_backChannelRequest_.JSC$19930_readyStateChangeThrottleMs_=0;var g=e.JSC$19949_backChannelUri_.clone();_.Qd(g,"RID","rpc");_.Qd(g,"SID",e.sid_);_.Qd(g,"AID",e.JSC$19949_lastArrayId_);_.Qd(g,"CI",e.enableStreaming_?"0":"1");!e.enableStreaming_&&e.longPollingTimeout_&&
_.Qd(g,"TO",e.longPollingTimeout_);_.Qd(g,"TYPE","xmlhttp");QGq(e,g);e.httpHeadersOverwriteParam_&&e.JSC$19949_extraHeaders_&&k_o(g,e.httpHeadersOverwriteParam_,e.JSC$19949_extraHeaders_);e.backChannelRequestTimeoutMs_&&e.JSC$19949_backChannelRequest_.setTimeout(e.backChannelRequestTimeoutMs_);var c=e.JSC$19949_backChannelRequest_,k=e.JSC$19949_hostPrefix_;c.JSC$19930_type_=1;c.JSC$19930_baseUri_=_.Nn(g.clone());c.JSC$19930_postData_=null;c.decodeChunks_=!0;qcz(c,k);e.JSC$19949_channelDebug_.debug("New Request created")};
aQ.prototype.JSC$19951_onBackChannelDead_=function(){this.JSC$19949_deadBackChannelTimerId_!=null&&(this.JSC$19949_deadBackChannelTimerId_=null,PUo(this),mTx(this),wW(19))};
var i3q=function(e){e.JSC$19949_deadBackChannelTimerId_!=null&&(_.kp.clearTimeout(e.JSC$19949_deadBackChannelTimerId_),e.JSC$19949_deadBackChannelTimerId_=null)},xTj=function(e,g){e.JSC$19949_channelDebug_.debug("Request complete");
var c=null;if(e.JSC$19949_backChannelRequest_==g){i3q(e);Yc0(e);e.JSC$19949_backChannelRequest_=null;var k=2}else if(jGq(e.forwardChannelRequestPool_,g))c=g.JSC$19930_pendingMessages_,sGo(e.forwardChannelRequestPool_,g),k=1;else return;if(e.state_!=0)if(g.JSC$19930_successful_)k==1?(PFQ(g.JSC$19930_postData_?g.JSC$19930_postData_.length:0,Date.now()-g.JSC$19930_requestStartTime_,e.JSC$19949_forwardChannelRetryCount_),zbj(e)):BOj(e);else{var I=g.JSC$19930_lastStatusCode_,J=g.getLastError();if(J==3||
J==0&&I>0)e.JSC$19949_channelDebug_.debug("Not retrying due to error type"),I>200&&(e.errorResponseStatusCode_=g.JSC$19930_lastStatusCode_);else{e.JSC$19949_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Jzx(J,e.errorResponseStatusCode_)});
if(k==1&&Z3o(e,g)||k==2&&mTx(e))return;e.JSC$19949_channelDebug_.debug("Exceeded max number of retries")}c&&c.length>0&&ukQ(e.forwardChannelRequestPool_,c);e.JSC$19949_channelDebug_.debug("Error: HTTP request failed");switch(J){case 1:IO(e,5);break;case 4:IO(e,10);break;case 3:IO(e,6);break;default:IO(e,2)}}},oso=function(e,g){var c=e.JSC$19949_baseRetryDelayMs_+Math.floor(Math.random()*e.JSC$19949_retryDelaySeedMs_);
e.isActive()||(e.JSC$19949_channelDebug_.debug("Inactive channel"),c*=2);return c*g};
aQ.prototype.onInput_=function(e,g){for(var c=0;c<e.length;c++){var k=e[c],I=k[0];if(I<=this.JSC$19949_lastArrayId_)this.JSC$19949_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+I+", lastArrayId: "+this.JSC$19949_lastArrayId_);else if(I>this.JSC$19949_lastArrayId_+1&&this.JSC$19949_lastArrayId_>-1&&this.JSC$19949_channelDebug_.warning("Received non-consecutive message with arrayId: "+I+", lastArrayId: "+this.JSC$19949_lastArrayId_),this.JSC$19949_lastArrayId_=I,
k=k[1],this.state_==2)if(k[0]=="c"){this.sid_=k[1];this.JSC$19949_hostPrefix_=k[2];I=k[3];I!=null&&(this.JSC$19951_channelVersion_=I,this.JSC$19949_channelDebug_.info("VER="+this.JSC$19951_channelVersion_));I=k[4];I!=null&&(this.serverVersion_=I,this.JSC$19949_channelDebug_.info("SVER="+this.serverVersion_));k=k[5];k!=null&&typeof k==="number"&&k>0&&(this.backChannelRequestTimeoutMs_=k*=1.5,this.JSC$19949_channelDebug_.info("backChannelRequestTimeoutMs_="+k));if(k=g.JSC$19930_xmlHttp_){var J=CmM(k,
"X-Client-Wire-Protocol");J&&(I=this.forwardChannelRequestPool_,!I.requestPool_&&(_.nC(J,"spdy")||_.nC(J,"quic")||_.nC(J,"h2"))&&(I.JSC$19940_maxSize_=I.maxPoolSizeConfigured_,I.requestPool_=new Set,I.JSC$19940_request_&&(AzO(I,I.JSC$19940_request_),I.JSC$19940_request_=null)));this.httpSessionIdParam_&&((k=CmM(k,"X-HTTP-Session-Id"))?(this.httpSessionId_=k,_.Qd(this.JSC$19949_forwardChannelUri_,this.httpSessionIdParam_,k)):this.JSC$19949_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19955_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-g.JSC$19930_requestStartTime_,this.JSC$19949_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));k=g;I=dTS(this,this.JSC$19949_supportsCrossDomainXhrs_?this.JSC$19949_hostPrefix_:null,this.JSC$19949_path_);this.JSC$19949_channelDebug_.debug("GetBackChannelUri: "+I);this.JSC$19949_backChannelUri_=I;k.initialResponseDecoded_?(this.JSC$19949_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
sGo(this.forwardChannelRequestPool_,k),I=k,(J=this.backChannelRequestTimeoutMs_)&&I.setTimeout(J),I.JSC$19930_watchDogTimerId_&&(Esq(I),rz7(I)),this.JSC$19949_backChannelRequest_=k):BOj(this);this.JSC$19949_outgoingMaps_.length>0&&zbj(this)}else k[0]!="stop"&&k[0]!="close"||IO(this,7);else this.state_==3&&(k[0]=="stop"||k[0]=="close"?k[0]=="stop"?IO(this,7):this.disconnect():k[0]!="noop"&&this.handler_&&this.handler_.JSC$19955_channelHandleArray(k),this.JSC$19949_backChannelRetryCount_=0)}};
var IO=function(e,g){e.JSC$19949_channelDebug_.info("Error code "+g);if(g==2){var c=(0,_.Ju)(e.testNetworkCallback_,e),k=e.networkTestUrl_,I=!k;k=new _.mt(k||"//www.google.com/images/cleardot.gif");_.kp.location&&_.kp.location.protocol=="http"||_.zS(k,"https");_.Nn(k);I?Tk7(k.toString(),c):lFv(k.toString(),c)}else wW(2);e.onError_(g)};
aQ.prototype.testNetworkCallback_=function(e){e?(this.JSC$19949_channelDebug_.info("Successfully pinged google.com"),wW(2)):(this.JSC$19949_channelDebug_.info("Failed to ping google.com"),wW(1))};
aQ.prototype.onError_=function(e){this.JSC$19949_channelDebug_.debug("HttpChannel: error - "+e);this.state_=0;this.handler_&&this.handler_.JSC$19955_channelError(e);UT7(this);H3x(this)};
var UT7=function(e){e.state_=0;e.nonAckedMapsAtChannelClose_=[];if(e.handler_){var g=F5o(e.forwardChannelRequestPool_);if(g.length!=0||e.JSC$19949_outgoingMaps_.length!=0)e.JSC$19949_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+g.length+", outgoing: "+e.JSC$19949_outgoingMaps_.length}),_.NU(e.nonAckedMapsAtChannelClose_,g),_.NU(e.nonAckedMapsAtChannelClose_,e.JSC$19949_outgoingMaps_),e.forwardChannelRequestPool_.JSC$19940_pendingMessages_.length=0,_.tq(e.JSC$19949_outgoingMaps_),
e.JSC$19949_outgoingMaps_.length=0;
e.handler_.JSC$19955_channelClosed()}},Scg=function(e){if(e.state_==0)return e.nonAckedMapsAtChannelClose_;
var g=[];_.NU(g,F5o(e.forwardChannelRequestPool_));_.NU(g,e.JSC$19949_outgoingMaps_);return g},dTS=function(e,g,c){var k=_.zs(c);
k.JSC$10342_domain_!=""?(g&&_.HN(k,g+"."+k.JSC$10342_domain_),_.QA(k,k.JSC$10342_port_)):(k=_.kp.location,k=Pbz(k.protocol,g?g+"."+k.hostname:k.hostname,+k.port,c));g=e.httpSessionIdParam_;c=e.httpSessionId_;g&&c&&_.Qd(k,g,c);_.Qd(k,"VER",e.JSC$19951_channelVersion_);QGq(e,k);return k},aG0=function(e,g,c){if(g&&!e.JSC$19949_supportsCrossDomainXhrs_)throw Error("Qk");
g=e.usesFetchStreams_&&!e.JSC$19949_xmlHttpFactory_?new _.GS(new MJM({streamBinaryChunks:c})):new _.GS(e.JSC$19949_xmlHttpFactory_);g.JSC$10106_withCredentials_=e.JSC$19949_supportsCrossDomainXhrs_;return g};
aQ.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var yzD=function(){};
_.v=yzD.prototype;_.v.JSC$19955_channelOpened=function(){};
_.v.JSC$19955_channelHandleArray=function(){};
_.v.JSC$19955_channelError=function(){};
_.v.JSC$19955_channelClosed=function(){};
_.v.isActive=function(){return!0};
_.v.JSC$19955_badMapError=function(){};var vS=function(e,g){_.jv.call(this);this.JSC$19958_channel_=new aQ(g);this.JSC$19958_url_=e;this.messageUrlParams_=g&&g.messageUrlParams||null;e=g&&g.messageHeaders||null;g&&g.clientProtocolHeaderRequired&&(e?_.n0.set(e,"X-Client-Protocol","webchannel"):e=_.n0.create("X-Client-Protocol","webchannel"));this.JSC$19958_channel_.JSC$19949_extraHeaders_=e;e=g&&g.initMessageHeaders||null;g&&g.messageContentType&&(e?_.n0.set(e,"X-WebChannel-Content-Type",g.messageContentType):e=_.n0.create("X-WebChannel-Content-Type",
g.messageContentType));g&&g.clientProfile&&(e?_.n0.set(e,"X-WebChannel-Client-Profile",g.clientProfile):e=_.n0.create("X-WebChannel-Client-Profile",g.clientProfile));this.JSC$19958_channel_.initHeaders_=e;(e=g&&g.httpHeadersOverwriteParam)&&!_.rV(e)&&(this.JSC$19958_channel_.httpHeadersOverwriteParam_=e);this.supportsCrossDomainXhr_=g&&g.supportsCrossDomainXhr||!1;this.sendRawJson_=g&&g.sendRawJson||!1;(g=g&&g.httpSessionIdParam)&&!_.rV(g)&&(this.JSC$19958_channel_.httpSessionIdParam_=g,_.n0.containsKey(this.messageUrlParams_,
g)&&_.n0.remove(this.messageUrlParams_,g));this.channelHandler_=new JJ(this)};
_.Um(vS,_.jv);vS.prototype.open=function(){this.JSC$19958_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19958_channel_.JSC$19949_supportsCrossDomainXhrs_=!0);this.JSC$19958_channel_.connect(this.JSC$19958_url_,this.messageUrlParams_||void 0)};
vS.prototype.close=function(){this.JSC$19958_channel_.disconnect()};
vS.prototype.send=function(e){var g=this.JSC$19958_channel_;if(typeof e==="string"){var c={};c.__data__=e;e=c}else this.sendRawJson_&&(c={},c.__data__=_.X9(e),e=c);g.JSC$19949_outgoingMaps_.push(new TO7(g.JSC$19949_nextMapId_++,e));g.state_==3&&zbj(g)};
vS.prototype.disposeInternal=function(){this.JSC$19958_channel_.handler_=null;delete this.channelHandler_;this.JSC$19958_channel_.disconnect();delete this.JSC$19958_channel_;vS.superClass_.disposeInternal.call(this)};
var K5z=function(e){CZQ.call(this);e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var g=e.__sm__;g?this.data=(this.metadataKey=_.n0.getAnyKey(g))?_.n0.get(g,this.metadataKey):g:this.data=e};
_.Um(K5z,CZQ);var O3l=function(e){ebj.call(this);this.status=1;this.errorCode=e};
_.Um(O3l,ebj);var JJ=function(e){this.JSC$19965_channel_=e};
_.Um(JJ,yzD);JJ.prototype.JSC$19955_channelOpened=function(){this.JSC$19965_channel_.dispatchEvent("w")};
JJ.prototype.JSC$19955_channelHandleArray=function(e){this.JSC$19965_channel_.dispatchEvent(new K5z(e))};
JJ.prototype.JSC$19955_channelError=function(e){this.JSC$19965_channel_.dispatchEvent(new O3l(e))};
JJ.prototype.JSC$19955_channelClosed=function(){this.JSC$19965_channel_.dispatchEvent("x")};
var M_7=function(e,g){this.transportChannel_=e;this.JSC$19968_channel_=g},CUX=function(e){return Scg(e.JSC$19968_channel_).map(function(g){var c=e.transportChannel_;
g=g.map;"__data__"in g?(g=g.__data__,c=c.sendRawJson_?_.Cok(g):g):c=g;return c})};
M_7.prototype.commit=function(e){this.JSC$19968_channel_.forwardChannelFlushedCallback_=e};var e5x=function(e,g,c){for(var k=0;k<e.getSize().height;k++)for(var I=0;I<e.getSize().width;I++)g.call(c,e.array_[k][I],k,I,e)},gGj=function(e,g){var c=new nJ(e.getSize());
e5x(e,function(k,I,J){c.array_[I][J]=g.call(void 0,k,I,J,e)});
return c},zpo=function(e,g){for(var c=[],k=0;k<e;k++){c[k]=[];
for(var I=0;I<g;I++)c[k][I]=0}return c};
nJ.prototype.add=function(e){if(!DES(this.size_,e.getSize()))throw Error("Tk");return gGj(this,function(g,c,k){return g+e.array_[c][k]})};
nJ.prototype.equals=function(e,g){if(this.size_.width!=e.size_.width||this.size_.height!=e.size_.height)return!1;g=g||0;for(var c=0;c<this.size_.height;c++)for(var k=0;k<this.size_.width;k++)if(!GHg(this.array_[c][k],e.array_[c][k],g))return!1;return!0};
nJ.prototype.getSize=function(){return this.size_};
var w_=function(e,g,c){return g>=0&&g<e.size_.height&&c>=0&&c<e.size_.width?e.array_[g][c]:null};
nJ.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var cTX=function(e,g,c,k){if(!(g>=0&&g<e.size_.height&&c>=0&&c<e.size_.width))throw Error("Uk`"+g+"`"+c+"`"+e.size_.height+"`"+e.size_.width);e.array_[g][c]=k};
nJ.prototype.multiply=function(e){if(e instanceof nJ){if(this.size_.width!=e.getSize().height)throw Error("Vk");return kOM(this,e)}if(typeof e==="number")return IR0(this,e);throw Error("Wk");};
var kOM=function(e,g){var c=new nJ(e.size_.height,g.getSize().width);e5x(c,function(k,I,J){for(var q=k=0;q<this.size_.width;q++)k+=w_(this,I,q)*w_(g,q,J);cTX(c,I,J,k)},e);
return c},IR0=function(e,g){return gGj(e,function(c){return c*g})};var qX=function(e){JTS.dispatchEvent(new vGz(JTS,e))},JTS=new _.jv,vGz=function(e,g){_.Bt.call(this,"statevent",e);
this.stat=g};
_.Y(vGz,_.Bt);_.v=Ed.prototype;_.v.JSC$19978_extraHeaders_=null;_.v.JSC$19978_successful_=!1;_.v.JSC$19978_watchDogTimerId_=null;_.v.JSC$19978_watchDogTimeoutTime_=null;_.v.JSC$19978_requestStartTime_=null;_.v.JSC$19978_type_=null;_.v.JSC$19978_baseUri_=null;_.v.JSC$19978_requestUri_=null;_.v.JSC$19978_postData_=null;_.v.JSC$19978_xmlHttp_=null;_.v.JSC$19978_xmlHttpChunkStart_=0;_.v.trident_=null;_.v.JSC$19978_verb_=null;_.v.JSC$19978_lastError_=null;_.v.JSC$19978_lastStatusCode_=-1;_.v.sendClose_=!0;
_.v.JSC$19978_cancelled_=!1;_.v.JSC$19978_readyStateChangeThrottleMs_=0;_.v.JSC$19978_readyStateChangeThrottle_=null;var wI0=function(e,g){switch(e){case 0:return"Non-200 return code ("+g+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},qwg={},Lwq={};
Ed.prototype.setTimeout=function(e){this.timeout_=e};
var aRO=function(e,g,c){e.JSC$19978_type_=1;e.JSC$19978_baseUri_=_.Nn(g.clone());e.JSC$19978_postData_=c;e.decodeChunks_=!0;rTv(e,null)},nGO=function(e,g,c,k,I){e.JSC$19978_type_=1;
e.JSC$19978_baseUri_=_.Nn(g.clone());e.JSC$19978_postData_=null;e.decodeChunks_=c;I&&(e.sendClose_=!1);rTv(e,k)},rTv=function(e,g){e.JSC$19978_requestStartTime_=Date.now();
R5v(e);e.JSC$19978_requestUri_=e.JSC$19978_baseUri_.clone();nbS(e.JSC$19978_requestUri_,"t",e.JSC$19976_retryId_);e.JSC$19978_xmlHttpChunkStart_=0;e.JSC$19978_xmlHttp_=e.JSC$19976_channel_.JSC$19985_createXhrIo(e.JSC$19976_channel_.JSC$19985_shouldUseSecondaryDomains()?g:null);e.JSC$19978_readyStateChangeThrottleMs_>0&&(e.JSC$19978_readyStateChangeThrottle_=new _.BT((0,_.Ju)(e.JSC$19978_xmlHttpHandler_,e,e.JSC$19978_xmlHttp_),e.JSC$19978_readyStateChangeThrottleMs_));e.JSC$19976_eventHandler_.listen(e.JSC$19978_xmlHttp_,
"readystatechange",e.JSC$19978_readyStateChangeHandler_);g=e.JSC$19978_extraHeaders_?_.n0.clone(e.JSC$19978_extraHeaders_):{};e.JSC$19978_postData_?(e.JSC$19978_verb_="POST",g["Content-Type"]="application/x-www-form-urlencoded",e.JSC$19978_xmlHttp_.send(e.JSC$19978_requestUri_,e.JSC$19978_verb_,e.JSC$19978_postData_,g)):(e.JSC$19978_verb_="GET",e.sendClose_&&!_.Cb&&(g.Connection="close"),e.JSC$19978_xmlHttp_.send(e.JSC$19978_requestUri_,e.JSC$19978_verb_,null,g));e.JSC$19976_channel_.notifyServerReachabilityEvent(1);
g=e.JSC$19976_channelDebug_;var c=e.JSC$19978_postData_;if(c){var k="";c=c.split("&");for(var I=0;I<c.length;I++){var J=c[I].split("=");if(J.length>1){var q=J[0];J=J[1];var L=q.split("_");k=L.length>=2&&L[1]=="type"?k+(q+"="+J+"&"):k+(q+"=redacted&")}}}else k=null;g.info("XMLHTTP REQ ("+e.JSC$19976_rid_+") [attempt "+e.JSC$19976_retryId_+"]: "+e.JSC$19978_verb_+"\n"+e.JSC$19978_requestUri_+"\n"+k)};
Ed.prototype.JSC$19978_readyStateChangeHandler_=function(e){e=e.target;var g=this.JSC$19978_readyStateChangeThrottle_;g&&_.xo(e)==3?(this.JSC$19976_channelDebug_.debug("Throttling readystatechange."),g.fire()):this.JSC$19978_xmlHttpHandler_(e)};
Ed.prototype.JSC$19978_xmlHttpHandler_=function(e){try{if(e==this.JSC$19978_xmlHttp_)a:{var g=_.xo(this.JSC$19978_xmlHttp_),c=this.JSC$19978_xmlHttp_.JSC$10106_lastErrorCode_,k=this.JSC$19978_xmlHttp_.getStatus();if(_.Cb&&!_.Ne("420+")){if(g<4)break a}else if(g<3||g==3&&!this.JSC$19978_xmlHttp_.getResponseText())break a;this.JSC$19978_cancelled_||g!=4||c==7||(c==8||k<=0?this.JSC$19976_channel_.notifyServerReachabilityEvent(3):this.JSC$19976_channel_.notifyServerReachabilityEvent(2));EGx(this);var I=
this.JSC$19978_xmlHttp_.getStatus();this.JSC$19978_lastStatusCode_=I;var J=this.JSC$19978_xmlHttp_.getResponseText();J||this.JSC$19976_channelDebug_.debug("No response text for uri "+this.JSC$19978_requestUri_+" status "+I);this.JSC$19978_successful_=I==200;this.JSC$19976_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19976_rid_+") [ attempt "+this.JSC$19976_retryId_+"]: "+this.JSC$19978_verb_+"\n"+this.JSC$19978_requestUri_+"\n"+g+" "+I);if(this.JSC$19978_successful_){g==4&&Ww0(this);if(this.decodeChunks_){for(e=
!0;!this.JSC$19978_cancelled_&&this.JSC$19978_xmlHttpChunkStart_<J.length;){var q=bjj(this,J);if(q==Lwq){g==4&&(this.JSC$19978_lastError_=4,qX(15),e=!1);h5v(this.JSC$19976_channelDebug_,this.JSC$19976_rid_,null,"[Incomplete Response]");break}else if(q==qwg){this.JSC$19978_lastError_=4;qX(16);h5v(this.JSC$19976_channelDebug_,this.JSC$19976_rid_,J,"[Invalid Chunk]");e=!1;break}else h5v(this.JSC$19976_channelDebug_,this.JSC$19976_rid_,q,null),XIq(this,q)}g==4&&J.length==0&&(this.JSC$19978_lastError_=
1,qX(17),e=!1);this.JSC$19978_successful_=this.JSC$19978_successful_&&e;e||(h5v(this.JSC$19976_channelDebug_,this.JSC$19976_rid_,J,"[Invalid Chunked Response]"),Ww0(this),GOD(this))}else h5v(this.JSC$19976_channelDebug_,this.JSC$19976_rid_,J,null),XIq(this,J);this.JSC$19978_successful_&&!this.JSC$19978_cancelled_&&(g==4?this.JSC$19976_channel_.JSC$19985_onRequestComplete(this):(this.JSC$19978_successful_=!1,R5v(this)))}else I==400&&J.indexOf("Unknown SID")>0?(this.JSC$19978_lastError_=3,qX(13),this.JSC$19976_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19976_rid_+")")):(this.JSC$19978_lastError_=0,qX(14),this.JSC$19976_channelDebug_.warning("XMLHTTP Bad status "+I+" ("+this.JSC$19976_rid_+")")),Ww0(this),GOD(this)}else this.JSC$19976_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(L){this.JSC$19976_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var bjj=function(e,g){var c=e.JSC$19978_xmlHttpChunkStart_,k=g.indexOf("\n",c);if(k==-1)return Lwq;c=Number(g.substring(c,k));if(isNaN(c))return qwg;k+=1;if(k+c>g.length)return Lwq;g=g.slice(k,k+c);e.JSC$19978_xmlHttpChunkStart_=k+c;return g};
Ed.prototype.cancel=function(){this.JSC$19978_cancelled_=!0;Ww0(this)};
var R5v=function(e){e.JSC$19978_watchDogTimeoutTime_=Date.now()+e.timeout_;xp7(e,e.timeout_)},xp7=function(e,g){if(e.JSC$19978_watchDogTimerId_!=null)throw Error("Pk");
e.JSC$19978_watchDogTimerId_=RQ((0,_.Ju)(e.JSC$19978_onWatchDogTimeout_,e),g)},EGx=function(e){e.JSC$19978_watchDogTimerId_&&(_.kp.clearTimeout(e.JSC$19978_watchDogTimerId_),e.JSC$19978_watchDogTimerId_=null)};
Ed.prototype.JSC$19978_onWatchDogTimeout_=function(){this.JSC$19978_watchDogTimerId_=null;var e=Date.now();e-this.JSC$19978_watchDogTimeoutTime_>=0?(this.JSC$19976_channelDebug_.info("TIMEOUT: "+this.JSC$19978_requestUri_),this.JSC$19978_type_!=2&&this.JSC$19976_channel_.notifyServerReachabilityEvent(3),Ww0(this),this.JSC$19978_lastError_=2,qX(18),GOD(this)):(this.JSC$19976_channelDebug_.warning("WatchDog timer called too early"),xp7(this,this.JSC$19978_watchDogTimeoutTime_-e))};
var GOD=function(e){e.JSC$19976_channel_.JSC$19985_isClosed()||e.JSC$19978_cancelled_||e.JSC$19976_channel_.JSC$19985_onRequestComplete(e)},Ww0=function(e){EGx(e);
_.Fm(e.JSC$19978_readyStateChangeThrottle_);e.JSC$19978_readyStateChangeThrottle_=null;e.pollingTimer_.stop();e.JSC$19976_eventHandler_.removeAll();if(e.JSC$19978_xmlHttp_){var g=e.JSC$19978_xmlHttp_;e.JSC$19978_xmlHttp_=null;g.abort();g.dispose()}e.trident_&&(e.trident_=null)};
Ed.prototype.getLastError=function(){return this.JSC$19978_lastError_};
var XIq=function(e,g){try{e.JSC$19976_channel_.JSC$19985_onRequestData(e,g),e.JSC$19976_channel_.notifyServerReachabilityEvent(4)}catch(c){}};var h5v=function(e,g,c,k){var I=e.info;a:if(c&&c!="y2f%"){try{var J=JSON.parse(c);if(J)for(var q=0;q<J.length;q++)if(Array.isArray(J[q])){var L=J[q];if(!(L.length<2)){var n=L[1];if(Array.isArray(n)&&!(n.length<1)){var R=n[0];if(R!="noop"&&R!="stop")for(var W=1;W<n.length;W++)n[W]=""}}}var b=_.X9(J);break a}catch(h){e.debug("Exception parsing expected JS array - probably was not JS");b=c;break a}b=void 0}else b=c;I.call(e,"XMLHTTP TEXT ("+g+"): "+b+(k?" "+k:""))};
WK.prototype.debug=function(e){this.info(e)};
WK.prototype.info=function(){};
WK.prototype.warning=function(){};_.v=o_Q.prototype;_.v.JSC$19985_extraHeaders_=null;_.v.JSC$19985_request_=null;_.v.receivedIntermediateResult_=!1;_.v.JSC$19985_path_=null;_.v.state_=null;_.v.JSC$19985_lastStatusCode_=-1;_.v.JSC$19985_hostPrefix_=null;_.v.blockedPrefix_=null;
_.v.connect=function(e){this.JSC$19985_path_=e;e=DpD(this.JSC$19983_channel_,this.JSC$19985_path_);qX(3);Date.now();var g=this.JSC$19983_channel_.firstTestResults_;g!=null?(this.JSC$19985_hostPrefix_=g[0],(this.blockedPrefix_=g[1])?(this.state_=1,$pS(this)):(this.state_=2,YwM(this))):(nbS(e,"MODE","init"),this.JSC$19985_request_=new Ed(this,this.JSC$19983_channelDebug_),this.JSC$19985_request_.JSC$19978_extraHeaders_=this.JSC$19985_extraHeaders_,nGO(this.JSC$19985_request_,e,!1,null,!0),this.state_=
0)};
var $pS=function(e){var g=fRX(e.JSC$19983_channel_,e.blockedPrefix_,"/mail/images/cleardot.gif");_.Nn(g);QIO(g.toString(),5E3,(0,_.Ju)(e.checkBlockedCallback_,e),3,2E3);e.notifyServerReachabilityEvent(1)};
o_Q.prototype.checkBlockedCallback_=function(e){if(e)this.state_=2,YwM(this);else{qX(4);var g=this.JSC$19983_channel_;g.JSC$19986_channelDebug_.debug("Test Connection Blocked");g.JSC$19990_lastStatusCode_=g.connectionTest_.JSC$19985_lastStatusCode_;LN(g,9)}e&&this.notifyServerReachabilityEvent(2)};
var YwM=function(e){e.JSC$19983_channelDebug_.debug("TestConnection: starting stage 2");var g=e.JSC$19983_channel_.secondTestResults_;g!=null?(e.JSC$19983_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+g?"Buffered":"Unbuffered"),qX(5),g?(qX(11),jLv(e.JSC$19983_channel_,e,!1)):(qX(12),jLv(e.JSC$19983_channel_,e,!0))):(e.JSC$19985_request_=new Ed(e,e.JSC$19983_channelDebug_),e.JSC$19985_request_.JSC$19978_extraHeaders_=e.JSC$19985_extraHeaders_,g=ijx(e.JSC$19983_channel_,
e.JSC$19985_hostPrefix_,e.JSC$19985_path_),qX(5),nbS(g,"TYPE","xmlhttp"),nGO(e.JSC$19985_request_,g,!1,e.JSC$19985_hostPrefix_,!1))};
_.v=o_Q.prototype;_.v.JSC$19985_createXhrIo=function(e){return this.JSC$19983_channel_.JSC$19985_createXhrIo(e)};
_.v.abort=function(){this.JSC$19985_request_&&(this.JSC$19985_request_.cancel(),this.JSC$19985_request_=null);this.JSC$19985_lastStatusCode_=-1};
_.v.JSC$19985_isClosed=function(){return!1};
_.v.JSC$19985_onRequestData=function(e,g){this.JSC$19985_lastStatusCode_=e.JSC$19978_lastStatusCode_;if(this.state_==0)if(this.JSC$19983_channelDebug_.debug("TestConnection: Got data for stage 1"),g){try{var c=this.JSC$19983_parser_.parse(g)}catch(k){PAl(this.JSC$19983_channel_,this);return}this.JSC$19985_hostPrefix_=c[0];this.blockedPrefix_=c[1]}else this.JSC$19983_channelDebug_.debug("TestConnection: Null responseText"),PAl(this.JSC$19983_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(qX(7),Date.now()):g=="11111"?(qX(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19985_lastStatusCode_=200,this.JSC$19985_request_.cancel(),this.JSC$19983_channelDebug_.debug("Test connection succeeded; using streaming connection"),qX(12),jLv(this.JSC$19983_channel_,this,!0)):(qX(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.v.JSC$19985_onRequestComplete=function(){this.JSC$19985_lastStatusCode_=this.JSC$19985_request_.JSC$19978_lastStatusCode_;this.JSC$19985_request_.JSC$19978_successful_?this.state_==0?(this.JSC$19983_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,$pS(this)):(this.state_=2,YwM(this))):this.state_==2&&(this.JSC$19983_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19983_channelDebug_.debug("Test connection succeeded; using streaming connection"),
qX(12),jLv(this.JSC$19983_channel_,this,!0)):(this.JSC$19983_channelDebug_.debug("Test connection failed; not using streaming"),qX(11),jLv(this.JSC$19983_channel_,this,!1))):(this.JSC$19983_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?qX(9):this.state_==2&&qX(10),PAl(this.JSC$19983_channel_,this,this.JSC$19985_request_.getLastError()))};
_.v.JSC$19985_shouldUseSecondaryDomains=function(){return this.JSC$19983_channel_.JSC$19985_shouldUseSecondaryDomains()};
_.v.isActive=function(){return this.JSC$19983_channel_.isActive()};
_.v.notifyServerReachabilityEvent=function(e){this.JSC$19983_channel_.notifyServerReachabilityEvent(e)};var mpv=function(e,g){this.JSC$19988_mapId=e;this.map=g;this.context=null};
_.v=bG.prototype;_.v.JSC$19990_extraHeaders_=null;_.v.JSC$19990_extraParams_=null;_.v.forwardChannelRequest_=null;_.v.JSC$19990_backChannelRequest_=null;_.v.JSC$19990_path_=null;_.v.JSC$19990_forwardChannelUri_=null;_.v.JSC$19990_backChannelUri_=null;_.v.JSC$19990_hostPrefix_=null;_.v.JSC$19990_nextRid_=0;_.v.JSC$19990_nextMapId_=0;_.v.handler_=null;_.v.JSC$19990_forwardChannelTimerId_=null;_.v.JSC$19990_backChannelTimerId_=null;_.v.JSC$19990_deadBackChannelTimerId_=null;_.v.connectionTest_=null;
_.v.useChunked_=null;_.v.JSC$19990_lastArrayId_=-1;_.v.JSC$19990_lastPostResponseArrayId_=-1;_.v.JSC$19990_lastStatusCode_=-1;_.v.JSC$19990_forwardChannelRetryCount_=0;_.v.JSC$19990_backChannelRetryCount_=0;_.v.JSC$19990_channelVersion_=8;var pIX={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},TCj=function(e,g,c,k){_.Bt.call(this,"timingevent",e);this.size=g;this.rtt=c;this.retries=k};
_.Um(TCj,_.Bt);var lRx=function(e){_.Bt.call(this,"serverreachability",e)};
_.Um(lRx,_.Bt);bG.prototype.connect=function(e,g,c,k,I){this.JSC$19986_channelDebug_.debug("connect()");qX(0);this.JSC$19990_path_=g;this.JSC$19990_extraParams_=c||{};k&&I!==void 0&&(this.JSC$19990_extraParams_.OSID=k,this.JSC$19990_extraParams_.OAID=I);this.asyncTest_?(RQ((0,_.Ju)(this.connectTest_,this,e),100),ATq(this)):this.connectTest_(e)};
bG.prototype.disconnect=function(){this.JSC$19986_channelDebug_.debug("disconnect()");sLD(this);if(this.state_==3){var e=this.JSC$19990_nextRid_++,g=this.JSC$19990_forwardChannelUri_.clone();_.Qd(g,"SID",this.sid_);_.Qd(g,"RID",e);_.Qd(g,"TYPE","terminate");Fwz(this,g);e=new Ed(this,this.JSC$19986_channelDebug_,this.sid_,e);e.JSC$19978_type_=2;e.JSC$19978_baseUri_=_.Nn(g.clone());(new Image).src=e.JSC$19978_baseUri_.toString();e.JSC$19978_requestStartTime_=Date.now();R5v(e)}uhQ(this)};
bG.prototype.connectTest_=function(e){this.JSC$19986_channelDebug_.debug("connectTest_()");this.connectionTest_=new o_Q(this,this.JSC$19986_channelDebug_);this.connectionTest_.JSC$19985_extraHeaders_=this.JSC$19990_extraHeaders_;this.connectionTest_.JSC$19983_parser_=this.JSC$19986_parser_;this.connectionTest_.connect(e)};
var ATq=function(e){e.JSC$19986_channelDebug_.debug("connectChannel_()");e.JSC$19990_ensureInState_(1,0);e.JSC$19990_forwardChannelUri_=DpD(e,e.JSC$19990_path_);dpv(e)},sLD=function(e){e.connectionTest_&&(e.connectionTest_.abort(),e.connectionTest_=null);
e.JSC$19990_backChannelRequest_&&(e.JSC$19990_backChannelRequest_.cancel(),e.JSC$19990_backChannelRequest_=null);e.JSC$19990_backChannelTimerId_&&(_.kp.clearTimeout(e.JSC$19990_backChannelTimerId_),e.JSC$19990_backChannelTimerId_=null);z5X(e);e.forwardChannelRequest_&&(e.forwardChannelRequest_.cancel(),e.forwardChannelRequest_=null);e.JSC$19990_forwardChannelTimerId_&&(_.kp.clearTimeout(e.JSC$19990_forwardChannelTimerId_),e.JSC$19990_forwardChannelTimerId_=null)},Hjo=function(e,g){if(e.state_==0)throw Error("Xk");
e.JSC$19986_outgoingMaps_.length==1E3&&e.JSC$19986_parser_.stringify(g);e.JSC$19986_outgoingMaps_.push(new mpv(e.JSC$19990_nextMapId_++,g));e.state_!=2&&e.state_!=3||dpv(e)};
bG.prototype.JSC$19985_isClosed=function(){return this.state_==0};
bG.prototype.getState=function(){return this.state_};
var dpv=function(e){e.forwardChannelRequest_||e.JSC$19990_forwardChannelTimerId_||(e.JSC$19990_forwardChannelTimerId_=RQ((0,_.Ju)(e.JSC$19990_onStartForwardChannelTimer_,e),0),e.JSC$19990_forwardChannelRetryCount_=0)};
bG.prototype.JSC$19990_onStartForwardChannelTimer_=function(e){this.JSC$19990_forwardChannelTimerId_=null;QLo(this,e)};
var QLo=function(e,g){e.JSC$19986_channelDebug_.debug("startForwardChannel_");if(e.state_==1){if(!g){e.JSC$19986_channelDebug_.debug("open_()");e.JSC$19990_nextRid_=Math.floor(Math.random()*1E5);g=e.JSC$19990_nextRid_++;var c=new Ed(e,e.JSC$19986_channelDebug_,"",g);c.JSC$19978_extraHeaders_=e.JSC$19990_extraHeaders_;var k=Upq(e),I=e.JSC$19990_forwardChannelUri_.clone();_.Qd(I,"RID",g);_.Qd(I,"CVER","1");Fwz(e,I);aRO(c,I,k);e.forwardChannelRequest_=c;e.state_=2}}else e.state_==3&&(g?oG7(e,g):e.JSC$19986_outgoingMaps_.length==
0?e.JSC$19986_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):e.forwardChannelRequest_||(oG7(e),e.JSC$19986_channelDebug_.debug("startForwardChannel_ finished, sent request")))},oG7=function(e,g){if(g)if(e.JSC$19990_channelVersion_>6){e.JSC$19986_outgoingMaps_=e.pendingMaps_.concat(e.JSC$19986_outgoingMaps_);
e.pendingMaps_.length=0;var c=e.JSC$19990_nextRid_-1;g=Upq(e)}else c=g.JSC$19976_rid_,g=g.JSC$19978_postData_;else c=e.JSC$19990_nextRid_++,g=Upq(e);var k=e.JSC$19990_forwardChannelUri_.clone();_.Qd(k,"SID",e.sid_);_.Qd(k,"RID",c);_.Qd(k,"AID",e.JSC$19990_lastArrayId_);Fwz(e,k);c=new Ed(e,e.JSC$19986_channelDebug_,e.sid_,c,e.JSC$19990_forwardChannelRetryCount_+1);c.JSC$19978_extraHeaders_=e.JSC$19990_extraHeaders_;c.setTimeout(1E4+Math.round(1E4*Math.random()));e.forwardChannelRequest_=c;aRO(c,k,
g)},Fwz=function(e,g){e.handler_&&(e=e.handler_.JSC$19997_getAdditionalParams())&&_.n0.forEach(e,function(c,k){_.Qd(g,k,c)})},Upq=function(e){var g=Math.min(e.JSC$19986_outgoingMaps_.length,1E3),c=["count="+g];
if(e.JSC$19990_channelVersion_>6&&g>0){var k=e.JSC$19986_outgoingMaps_[0].JSC$19988_mapId;c.push("ofs="+k)}else k=0;for(var I={},J=0;J<g;I={mapId$jscomp$3:void 0},J++){I.mapId$jscomp$3=e.JSC$19986_outgoingMaps_[J].JSC$19988_mapId;var q=e.JSC$19986_outgoingMaps_[J].map;I.mapId$jscomp$3=e.JSC$19990_channelVersion_<=6?J:I.mapId$jscomp$3-k;try{_.n0.forEach(q,function(L){return function(n,R){c.push("req"+L.mapId$jscomp$3+"_"+R+"="+encodeURIComponent(n))}}(I))}catch(L){c.push("req"+I.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}e.pendingMaps_=e.pendingMaps_.concat(e.JSC$19986_outgoingMaps_.splice(0,g));
return c.join("&")},ZjQ=function(e){e.JSC$19990_backChannelRequest_||e.JSC$19990_backChannelTimerId_||(e.JSC$19990_backChannelAttemptId_=1,e.JSC$19990_backChannelTimerId_=RQ((0,_.Ju)(e.JSC$19990_onStartBackChannelTimer_,e),0),e.JSC$19990_backChannelRetryCount_=0)},tIg=function(e){if(e.JSC$19990_backChannelRequest_||e.JSC$19990_backChannelTimerId_||e.JSC$19990_backChannelRetryCount_>=3)return!1;
e.JSC$19986_channelDebug_.debug("Going to retry GET");e.JSC$19990_backChannelAttemptId_++;e.JSC$19990_backChannelTimerId_=RQ((0,_.Ju)(e.JSC$19990_onStartBackChannelTimer_,e),VIv(e,e.JSC$19990_backChannelRetryCount_));e.JSC$19990_backChannelRetryCount_++;return!0};
bG.prototype.JSC$19990_onStartBackChannelTimer_=function(){this.JSC$19990_backChannelTimerId_=null;this.JSC$19986_channelDebug_.debug("Creating new HttpRequest");this.JSC$19990_backChannelRequest_=new Ed(this,this.JSC$19986_channelDebug_,this.sid_,"rpc",this.JSC$19990_backChannelAttemptId_);this.JSC$19990_backChannelRequest_.JSC$19978_extraHeaders_=this.JSC$19990_extraHeaders_;this.JSC$19990_backChannelRequest_.JSC$19978_readyStateChangeThrottleMs_=0;var e=this.JSC$19990_backChannelUri_.clone();_.Qd(e,
"RID","rpc");_.Qd(e,"SID",this.sid_);_.Qd(e,"CI",this.useChunked_?"0":"1");_.Qd(e,"AID",this.JSC$19990_lastArrayId_);Fwz(this,e);_.Qd(e,"TYPE","xmlhttp");nGO(this.JSC$19990_backChannelRequest_,e,!0,this.JSC$19990_hostPrefix_,!1);this.JSC$19986_channelDebug_.debug("New Request created")};
var jLv=function(e,g,c){e.JSC$19986_channelDebug_.debug("Test Connection Finished");e.useChunked_=e.secondTestResults_==null?c:!e.secondTestResults_;e.JSC$19990_lastStatusCode_=g.JSC$19985_lastStatusCode_;e.asyncTest_||ATq(e)},PAl=function(e,g){e.JSC$19986_channelDebug_.debug("Test Connection Failed");
e.JSC$19990_lastStatusCode_=g.JSC$19985_lastStatusCode_;LN(e,2)};
bG.prototype.JSC$19985_onRequestData=function(e,g){if(this.state_!=0&&(this.JSC$19990_backChannelRequest_==e||this.forwardChannelRequest_==e))if(this.JSC$19990_lastStatusCode_=e.JSC$19978_lastStatusCode_,this.forwardChannelRequest_==e&&this.state_==3)if(this.JSC$19990_channelVersion_>7){try{var c=this.JSC$19986_parser_.parse(g)}catch(k){c=null}if(Array.isArray(c)&&c.length==3)if(g=c,g[0]==0)a:if(this.JSC$19986_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19990_backChannelTimerId_)this.JSC$19986_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19990_backChannelRequest_)if(this.JSC$19990_backChannelRequest_.JSC$19978_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19978_requestStartTime_)z5X(this),this.JSC$19990_backChannelRequest_.cancel(),this.JSC$19990_backChannelRequest_=null;else break a;else this.JSC$19986_channelDebug_.warning("We do not have a BackChannel established");tIg(this);qX(19)}else this.JSC$19990_lastPostResponseArrayId_=g[1],e=this.JSC$19990_lastPostResponseArrayId_-this.JSC$19990_lastArrayId_,0<
e&&(g=g[2],this.JSC$19986_channelDebug_.debug(g+" bytes (in "+e+" arrays) are outstanding on the BackChannel"),g<37500&&this.useChunked_&&this.JSC$19990_backChannelRetryCount_==0&&!this.JSC$19990_deadBackChannelTimerId_&&(this.JSC$19990_deadBackChannelTimerId_=RQ((0,_.Ju)(this.JSC$19990_onBackChannelDead_,this),6E3)));else this.JSC$19986_channelDebug_.debug("Bad POST response data returned"),LN(this,11)}else g!="y2f%"&&(this.JSC$19986_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
LN(this,11));else this.JSC$19990_backChannelRequest_==e&&z5X(this),_.rV(g)||(e=this.JSC$19986_parser_.parse(g),this.onInput_(e))};
bG.prototype.JSC$19990_onBackChannelDead_=function(){this.JSC$19990_deadBackChannelTimerId_!=null&&(this.JSC$19990_deadBackChannelTimerId_=null,this.JSC$19990_backChannelRequest_.cancel(),this.JSC$19990_backChannelRequest_=null,tIg(this),qX(20))};
var z5X=function(e){e.JSC$19990_deadBackChannelTimerId_!=null&&(_.kp.clearTimeout(e.JSC$19990_deadBackChannelTimerId_),e.JSC$19990_deadBackChannelTimerId_=null)};
bG.prototype.JSC$19985_onRequestComplete=function(e){this.JSC$19986_channelDebug_.debug("Request complete");if(this.JSC$19990_backChannelRequest_==e){z5X(this);this.JSC$19990_backChannelRequest_=null;var g=2}else if(this.forwardChannelRequest_==e)this.forwardChannelRequest_=null,g=1;else return;this.JSC$19990_lastStatusCode_=e.JSC$19978_lastStatusCode_;if(this.state_!=0)if(e.JSC$19978_successful_)if(g==1){g=e.JSC$19978_postData_?e.JSC$19978_postData_.length:0;e=Date.now()-e.JSC$19978_requestStartTime_;
var c=JTS;c.dispatchEvent(new TCj(c,g,e,this.JSC$19990_forwardChannelRetryCount_));dpv(this);this.handler_&&this.handler_.JSC$19997_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else ZjQ(this);else{c=e.getLastError();if(c==3||c==7||c==0&&this.JSC$19990_lastStatusCode_>0)this.JSC$19986_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19986_channelDebug_.debug("Maybe retrying, last error: "+wI0(c,this.JSC$19990_lastStatusCode_));var k;if(k=g==1)this.forwardChannelRequest_||
this.JSC$19990_forwardChannelTimerId_||this.state_==1||this.JSC$19990_forwardChannelRetryCount_>=2?k=!1:(this.JSC$19986_channelDebug_.debug("Going to retry POST"),this.JSC$19990_forwardChannelTimerId_=RQ((0,_.Ju)(this.JSC$19990_onStartForwardChannelTimer_,this,e),VIv(this,this.JSC$19990_forwardChannelRetryCount_)),this.JSC$19990_forwardChannelRetryCount_++,k=!0);if(k||g==2&&tIg(this))return;this.JSC$19986_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19986_channelDebug_.debug("Error: HTTP request failed");
switch(c){case 1:LN(this,5);break;case 4:LN(this,10);break;case 3:LN(this,6);break;case 7:LN(this,12);break;default:LN(this,2)}}};
var VIv=function(e,g){var c=5E3+Math.floor(Math.random()*1E4);e.isActive()||(e.JSC$19986_channelDebug_.debug("Inactive channel"),c*=2);return c*g};
bG.prototype.onInput_=function(e){for(var g=0;g<e.length;g++){var c=e[g];this.JSC$19990_lastArrayId_=c[0];c=c[1];this.state_==2?c[0]=="c"?(this.sid_=c[1],this.JSC$19990_hostPrefix_=c[2],c=c[3],c!=null?this.JSC$19990_channelVersion_=c:this.JSC$19990_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19997_channelOpened(),this.JSC$19990_backChannelUri_=ijx(this,this.JSC$19990_hostPrefix_,this.JSC$19990_path_),ZjQ(this)):c[0]=="stop"&&LN(this,7):this.state_==3&&(c[0]=="stop"?LN(this,7):
c[0]!="noop"&&this.handler_&&this.handler_.JSC$19997_channelHandleArray(c),this.JSC$19990_backChannelRetryCount_=0)}};
bG.prototype.JSC$19990_ensureInState_=function(e){if(!_.Hz(arguments,this.state_))throw Error("Yk`"+this.state_);};
var LN=function(e,g){e.JSC$19986_channelDebug_.info("Error code "+g);if(g==2||g==9){var c=null;e.handler_&&(c=null);var k=(0,_.Ju)(e.testGoogleComCallback_,e);c||(c=new _.mt("//www.google.com/images/cleardot.gif"),_.Nn(c));HOj(c.toString(),1E4,k)}else qX(2);e.onError_(g)};
bG.prototype.testGoogleComCallback_=function(e){e?(this.JSC$19986_channelDebug_.info("Successfully pinged google.com"),qX(2)):(this.JSC$19986_channelDebug_.info("Failed to ping google.com"),qX(1),this.onError_(8))};
bG.prototype.onError_=function(e){this.JSC$19986_channelDebug_.debug("HttpChannel: error - "+e);this.state_=0;this.handler_&&this.handler_.JSC$19997_channelError(e);uhQ(this);sLD(this)};
var uhQ=function(e){e.state_=0;e.JSC$19990_lastStatusCode_=-1;if(e.handler_)if(e.pendingMaps_.length==0&&e.JSC$19986_outgoingMaps_.length==0)e.handler_.JSC$19997_channelClosed();else{e.JSC$19986_channelDebug_.debug("Number of undelivered maps, pending: "+e.pendingMaps_.length+", outgoing: "+e.JSC$19986_outgoingMaps_.length);var g=_.tq(e.pendingMaps_),c=_.tq(e.JSC$19986_outgoingMaps_);e.pendingMaps_.length=0;e.JSC$19986_outgoingMaps_.length=0;e.handler_.JSC$19997_channelClosed(g,c)}},DpD=function(e,
g){g=fRX(e,null,g);
e.JSC$19986_channelDebug_.debug("GetForwardChannelUri: "+g);return g},ijx=function(e,g,c){g=fRX(e,e.JSC$19985_shouldUseSecondaryDomains()?g:null,c);
e.JSC$19986_channelDebug_.debug("GetBackChannelUri: "+g);return g},fRX=function(e,g,c){var k=_.zs(c);
if(k.JSC$10342_domain_!="")g&&_.HN(k,g+"."+k.JSC$10342_domain_),_.QA(k,k.JSC$10342_port_);else{var I=window.location;k=Pbz(I.protocol,g?g+"."+I.hostname:I.hostname,+I.port,c)}e.JSC$19990_extraParams_&&_.n0.forEach(e.JSC$19990_extraParams_,function(J,q){_.Qd(k,q,J)});
_.Qd(k,"VER",e.JSC$19990_channelVersion_);Fwz(e,k);return k};
bG.prototype.JSC$19985_createXhrIo=function(e){if(e)throw Error("Qk");e=new _.GS;e.JSC$10106_withCredentials_=!1;return e};
bG.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
bG.prototype.notifyServerReachabilityEvent=function(e){var g=JTS;g.dispatchEvent(new lRx(g,e))};
bG.prototype.JSC$19985_shouldUseSecondaryDomains=function(){return!1};
new FGS;var BC0=function(){};
_.v=BC0.prototype;_.v.JSC$19997_channelOpened=function(){};
_.v.JSC$19997_channelHandleArray=function(){};
_.v.JSC$19997_channelSuccess=function(){};
_.v.JSC$19997_channelError=function(){};
_.v.JSC$19997_channelClosed=function(){};
_.v.JSC$19997_getAdditionalParams=function(){return{}};
_.v.isActive=function(){return!0};var NCg=function(e){e.front_.length===0&&(e.front_=e.back_,e.front_.reverse(),e.back_=[])};
_.v=ZO0.prototype;_.v.enqueue=function(e){this.back_.push(e)};
_.v.peek=function(){NCg(this);return _.Aq(this.front_)};
_.v.getCount=function(){return this.front_.length+this.back_.length};
_.v.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.v.clear=function(){this.front_=[];this.back_=[]};
_.v.contains=function(e){return _.Hz(this.front_,e)||_.Hz(this.back_,e)};
_.v.remove=function(e){var g=this.front_;var c=Array.prototype.lastIndexOf.call(g,e,g.length-1);c>=0?(_.ltv(g,c),g=!0):g=!1;return g||_.UC(this.back_,e)};
_.v.getValues=function(){for(var e=[],g=this.front_.length-1;g>=0;--g)e.push(this.front_[g]);g=this.back_.length;for(var c=0;c<g;++c)e.push(this.back_[c]);return e};var SwQ=function(e){var g=typeof e;return g=="object"&&e||g=="function"?"o"+_.KC(e):g.charAt(0)+e};
_.v=hQ.prototype;_.v.getCount=function(){return this.JSC$20001_map_.size};
_.v.add=function(e){this.JSC$20001_map_.set(SwQ(e),e);this.size=this.JSC$20001_map_.size};
_.v.addAll=function(e){e=_.dG(e);for(var g=e.length,c=0;c<g;c++)this.add(e[c]);this.size=this.JSC$20001_map_.size};
_.v.removeAll=function(e){e=_.dG(e);for(var g=e.length,c=0;c<g;c++)this.remove(e[c]);this.size=this.JSC$20001_map_.size};
_.v.delete=function(e){e=this.JSC$20001_map_.remove(SwQ(e));this.size=this.JSC$20001_map_.size;return e};
_.v.remove=function(e){return this.delete(e)};
_.v.clear=function(){this.JSC$20001_map_.clear();this.size=0};
_.v.isEmpty=function(){return this.JSC$20001_map_.size===0};
_.v.has=function(e){return this.JSC$20001_map_.containsKey(SwQ(e))};
_.v.contains=function(e){return this.JSC$20001_map_.containsKey(SwQ(e))};
_.v.getValues=function(){return this.JSC$20001_map_.getValues()};
_.v.values=function(){return this.JSC$20001_map_.values()};
_.v.clone=function(){return new hQ(this)};
_.v.equals=function(e){return this.getCount()==jTO(e)&&yTX(this,e)};
var yTX=function(e,g){var c=jTO(g);if(e.getCount()>c)return!1;!(g instanceof hQ)&&c>5&&(g=new hQ(g));return izO(e,function(k){var I=g;return I.contains&&typeof I.contains=="function"?I.contains(k):I.containsValue&&typeof I.containsValue=="function"?I.containsValue(k):_.Bz(I)||typeof I==="string"?_.Hz(I,k):_.n0.containsValue(I,k)})};
hQ.prototype.__iterator__=function(){return this.JSC$20001_map_.__iterator__(!1)};
hQ.prototype[Symbol.iterator]=function(){return this.values()};_.rk({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 e=this.query;e&&(this.full||e[0]==="("||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},
queryHandler:function(e){this._setQueryMatches(e.matches)}});var Kw7={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(e){return(this._clampValue(e)-this.min)/(this.max-this.min)},
_clampValue:function(e){return Math.min(this.max,Math.max(this.min,this._calcStep(e)))},
_calcStep:function(e){e=parseFloat(e);if(!this.step)return e;e=Math.round((e-this.min)/this.step);return this.step<1?e/(1/this.step)+this.min:e*this.step+this.min},
_validateValue:function(){var e=this._clampValue(this.value);this.value=this.oldValue=isNaN(e)?this.oldValue:e;return this.value!==e},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var Ojo=[_.Jc,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(e){_.IC(e).path[0]!==this&&(this.resetLayout(),e.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var e=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.US(this._layoutDebouncer,_.wL,e);_.og(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var e=this;requestAnimationFrame(function(){e.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)},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 MIS=[_.jds,{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(e,g){var c=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[e];if(!c)throw new ReferenceError(this._getUndefinedMsg(e));e=this._boundEffect(c,g||{});e.setUp();return e},
_effectsChanged:function(e,g,c){this._tearDownEffects();e&&c&&(e.split(" ").forEach(function(k){var I;k!==""&&((I=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[k])?this._effects.push(this._boundEffect(I,g[k])):console.warn(this._getUndefinedMsg(k)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(e,g){g=g||{};var c=parseFloat(g.startsAt||0),k=parseFloat(g.endsAt||1),I=k-c,J=function(){};
k=c===0&&k===1?e.run:function(q,L){e.run.call(this,Math.max(0,(q-c)/I),L)};
return{setUp:e.setUp?e.setUp.bind(this,g):J,run:e.run?k.bind(this):J,tearDown:e.tearDown?e.tearDown.bind(this):J}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(e){e.setUp()!==!1&&this._effectsRunFn.push(e.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(e){e.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(e,g){this._effectsRunFn&&this._effectsRunFn.forEach(function(c){c(e,g)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var e=this._clampedScrollTop;this._updateScrollState(e);this.threshold>0&&this._setThresholdTriggered(e>=this.threshold)}},
_getDOMRef:function(e){console.warn("_getDOMRef","`"+e+"` is undefined")},
_getUndefinedMsg:function(e){return"Scroll effect `"+e+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+e+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Zk`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(e){var g={};e=parseFloat(e.scalar);g.background=this._getDOMRef("background");g.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");g.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");g.deltaBg=g.backgroundFrontLayer.offsetHeight-g.background.offsetHeight;g.deltaBg===0?(isNaN(e)&&(e=.8),g.deltaBg=(this._dHeight||0)*e):(isNaN(e)&&(e=
1),g.deltaBg*=e);this._fxParallaxBackground=g},
run:function(e){var g=this._fxParallaxBackground;this.transform("translate3d(0px, "+g.deltaBg*Math.min(1,e)+"px, 0px)",g.backgroundFrontLayer);g.backgroundRearLayer&&this.transform("translate3d(0px, "+g.deltaBg*Math.min(1,e)+"px, 0px)",g.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var CAD;var euX;_.rk({_template:function(){if(euX!==void 0)return euX;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;CAD===void 0&&(CAD=document.createElement("template"));var k=CAD;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return euX=e},
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(){_.Va(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(e){e.keyCode===27&&(e.preventDefault(),this.close())},
_track:function(e){if(!this.persistent&&!this.disableSwipe)switch(e.preventDefault(),e.detail.state){case "start":this._trackStart(e);break;case "track":this._trackMove(e);break;case "end":this._trackEnd(e)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var e=this.$.contentContainer.getBoundingClientRect();this._savedWidth=e.width;this._translateOffset=this.position==="left"?e.left:e.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(e){this._trackDetails&&(this._translateDrawer(e.detail.dx+this._translateOffset),this._trackDetails.push({dx:e.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(e){if(this._trackDetails){var g=e.detail.dx+this._translateOffset,c=this.getWidth();g=this.position==="left"?g>=0||g<=-c:g<=0||g>=c;if(!g){var k=this._trackDetails;this._trackDetails=null;this._flingDrawer(e,k);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}c/=2;e.detail.dx<-c?this.opened=this.position==="right":e.detail.dx>c&&(this.opened=this.position==="left");g?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(e,g){for(var c=Date.now(),k=c-100,I,J=0,q=g.length-1;J<=q;){var L=J+q>>1,n=g[L];n.timeStamp>=k?(I=n,q=L-1):J=L+1}return I?(e.detail.dx-I.dx)/(c-I.timeStamp||1):0},
_flingDrawer:function(e,g){g=this._calculateVelocity(e,g);if(!(Math.abs(g)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;e=e.detail.dx+this._translateOffset;var c=this.getWidth(),k=this.position==="left",I=g>0;I?(g=Math.max(g,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(g=Math.min(g,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");g=this._FLING_INITIAL_SLOPE*(!I&&k?-(e+c):I&&!k?c-e:-e)/g;this._styleTransitionDuration(g);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,g)}},
_styleTransitionDuration:function(e){this.style.transitionDuration=e+"ms";this.$.contentContainer.style.transitionDuration=e+"ms";this.$.scrim.style.transitionDuration=e+"ms"},
_styleTransitionTimingFunction:function(e){this.$.contentContainer.style.transitionTimingFunction=e;this.$.scrim.style.transitionTimingFunction=e},
_translateDrawer:function(e){var g=this.getWidth();this.position==="left"?(e=Math.max(-g,Math.min(e,0)),this.$.scrim.style.opacity=1+e/g):(e=Math.max(0,Math.min(e,g)),this.$.scrim.style.opacity=1-e/g);this.translate3d(e+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var e=this._drawerState;e===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;e!==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=""),e!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var e=_.IC(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"])');e.length>0?(this._firstTabStop=e[0],this._lastTabStop=e[e.length-1]):
this._lastTabStop=this._firstTabStop=null;(e=this.getAttribute("tabindex"))&&parseInt(e,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(e){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||e.keyCode!==9||(e.shiftKey?this._firstTabStop&&_.IC(e).localTarget===this._firstTabStop&&(e.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.IC(e).localTarget===this._lastTabStop&&(e.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(e,g){this.toggleClass("visible",e&&!g,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 g9o;var c8O;var kAj=function(){};
_.v=kAj.prototype;_.v._scrollTargetChanged=function(){};
_.v.scroll=function(){};
_.v._isValidScrollTarget=function(){};
_.v._toggleScrollListener=function(){};
_.v.toggleScrollListener=function(){};
_.v.createEffect=function(){};
_.v._effectsChanged=function(){};
_.v._layoutIfDirty=function(){};
_.v._boundEffect=function(){};
_.v._setUpEffect=function(){};
_.v._tearDownEffects=function(){};
_.v._runEffects=function(){};
_.v._scrollHandler=function(){};
_.v._scrollStateChanged=function(){};
_.v._getUndefinedMsg=function(){};
_.v.notifyResize=function(){};
_.v.assignParentResizable=function(){};
_.v.stopResizeNotificationsFor=function(){};
_.v._subscribeIronResize=function(){};
_.v._unsubscribeIronResize=function(){};
_.v.resizerShouldNotify=function(){};
_.v._onDescendantIronResize=function(){};
_.v._fireResize=function(){};
_.v._onIronRequestResizeNotifications=function(){};
_.v._parentResizableChanged=function(){};
_.v._notifyDescendant=function(){};
_.v._requestResizeNotifications=function(){};
_.v._findParent=function(){};
_.v._appResetLayoutHandler=function(){};
_.v.resetLayout=function(){};
_.v._notifyLayoutChanged=function(){};
_.v._notifyDescendantResize=function(){};
_.v._setThresholdTriggered=function(){};
kAj=_.rk({_template:function(){if(c8O!==void 0)return c8O;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;g9o===void 0&&(g9o=document.createElement("template"));var k=g9o;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return c8O=e},
is:"tp-yt-app-header",behaviors:[MIS,Ojo],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 e=_.IC(this.$.slot).getDistributedNodes(),g=0,c;c=e[g];g++)if(c.nodeType===Node.ELEMENT_NODE)if(c.hasAttribute("sticky")){this._stickyElRef=c;break}else this._stickyElRef||(this._stickyElRef=c);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var e=this._clampedScrollTop,g=this._height===0||e===0,c=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;g||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();g?this._updateScrollState(e,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=c}},
_updateScrollState:function(e,g){if(this._height!==0){var c=0,k=this._top;var I=this._maxHeaderTop;var J=e-this._lastScrollTop,q=Math.abs(J),L=e>this._lastScrollTop,n=performance.now();this._mayMove()&&(c=this._clamp(this.reveals?k+J:e,0,I));e>=this._dHeight&&(c=this.condenses&&!this.fixed?Math.max(this._dHeight,c):c,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&q<100){if(n-this._initTimestamp>300||this._wasScrollingDown!==L)this._initScrollTop=e,this._initTimestamp=n;e>=I&&
(Math.abs(this._initScrollTop-e)>30||q>10?(L&&e>=I?c=I:!L&&e>=this._dHeight&&(c=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((c-k)/(J/(n-this._lastTimestamp)),0,300)+"ms"):c=this._top)}I=this._dHeight===0?e>0?1:0:c/this._dHeight;g||(this._lastScrollTop=e,this._top=c,this._wasScrollingDown=L,this._lastTimestamp=n);if(g||I!==this._progress||k!==c||e===0)this._progress=I,this._runEffects(I,c),this._transformHeader(c)}},
_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(e){this.translate3d(0,-e+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&e>=this._stickyElTop?Math.min(e,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(e,g,c){return Math.min(c,Math.max(g,e))},
_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),_.IC(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(e){switch(e){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.IC(this).querySelector("[main-title]");case "condensedTitle":return _.IC(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Ifz;var J8v;_.rk({_template:function(){if(J8v!==void 0)return J8v;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;Ifz===void 0&&(Ifz=document.createElement("template"));var k=Ifz;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return J8v=e},
is:"tp-yt-app-header-layout",behaviors:[Ojo],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.IC(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var e=this.header;if(this.isAttached&&e){this.$.wrapper.classList.remove("initializing");e.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)e.style.left="",e.style.right="";else{var g=this.getBoundingClientRect(),c=document.documentElement.clientWidth-g.right;e.style.left=g.left+"px";e.style.right=c+"px"}g=this.$.contentContainer.style;c=e.offsetHeight;e.fixed&&!e.condenses&&this.hasScrollingRegion?
(g.marginTop=c+"px",g.paddingTop=""):(g.paddingTop=c+"px",g.marginTop="")}}});/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var v9X=_.Ti(['<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>']),
wG0=_.Tkv(v9X);wG0.setAttribute("style","display: none;");document.head.appendChild(wG0.content);var q8x;var LDq;/*

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
*/
_.rk({_template:function(){if(LDq!==void 0)return LDq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;q8x===void 0&&(q8x=document.createElement("template"));var k=q8x;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return LDq=e},
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(e,g){var c=this._resolveSrc(e);c!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",e===""||g?this._setLoading(!1):(this._resolvedSrc=c,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 e=this.$.sizedImgDiv.style,g=this.$.placeholder.style;e.backgroundSize=g.backgroundSize=this.sizing;e.backgroundPosition=g.backgroundPosition=this.sizing?this.position:"";e.backgroundRepeat=g.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(e){e=_.eX(e,this.$.baseURIAnchor.href);e.length>=2&&e[0]==="/"&&e[1]!=="/"&&(e=(location.origin||location.protocol+"//"+location.host)+e);return e}});var r8g;var afg;_.rk({_template:function(){if(afg!==void 0)return afg;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=
e.content,c=g.insertBefore;r8g===void 0&&(r8g=document.createElement("template"));var k=r8g;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return afg=e},
is:"tp-yt-iron-pages",behaviors:[_.Jc,_.mk],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var n97;var Rug;_.rk({_template:function(){if(Rug!==void 0)return Rug;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;n97===void 0&&(n97=document.createElement("template"));var k=n97;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return Rug=e},
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(e){return e?"false":"true"},
_headingChanged:function(e){var g=this.getAttribute("heading"),c=this.getAttribute("aria-label");typeof c==="string"&&c!==g||this.setAttribute("aria-label",e)},
_computeHeadingClass:function(e){return e?" over-image":""},
_computeAnimated:function(e){return e}});var E9D;var WDx;_.rk({_template:function(){if(WDx!==void 0)return WDx;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;E9D===void 0&&(E9D=document.createElement("template"));var k=E9D;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return WDx=e},
is:"tp-yt-paper-checkbox",behaviors:[_.Tgk],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Va(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var e=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),g="px",c=e.match(/[A-Za-z]+$/);c!==null&&(g=c[0]);e=parseFloat(e);c=8/3*e;g==="px"&&(c=Math.floor(c),c%2!==e%2&&c++);this.updateStyles({"--paper-checkbox-ink-size":c+
g})}})},
_computeCheckboxClass:function(e,g){var c="";e&&(c+="checked ");g&&(c+="invalid");return c},
_computeCheckmarkClass:function(e){return e?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.msw._createRipple.call(this)}});var bSO;var hu7;var XGz=_.ME.IronButtonState,GAO=(0,_.gh)(HTMLElement);
_.rk({_template:function(){if(hu7!==void 0)return hu7;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;bSO===void 0&&(bSO=document.createElement("template"));var k=bSO;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return hu7=e},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[XGz,_.Kz,_.Cz,_.kL],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(e){var g=(0,_.Eg)(this);g.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:e});g.shadowRoot.appendChild(e);return GAO.prototype._attachDom.call(this,e)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var e=this.contentElement;e&&e.selectedItem&&this._setSelectedItem(e.selectedItem)},
get contentElement(){for(var e=_.IC(this.$.content).getDistributedNodes(),g=0,c=e.length;g<c;g++)if(e[g].nodeType===Node.ELEMENT_NODE)return e[g]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(e){this._setSelectedItem(e.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(e){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e)===this&&this.open()},
_selectedItemChanged:function(e){var g="";e?g=e.label||e.getAttribute("label")||e.textContent.trim():g="";this.value=g;this._setSelectedItemLabel(g)},
_computeMenuVerticalOffset:function(e,g){return g?g:e?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var e=this.opened?"true":"false",g=this.contentElement;g&&g.setAttribute("aria-expanded",e)}});var x67;var D6S;_.rk({_template:function(){if(D6S!==void 0)return D6S;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
var g=e.content,c=g.insertBefore;x67===void 0&&(x67=document.createElement("template"));var k=x67;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return D6S=e},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var $6Q;var Y8X;_.rk({_template:function(){if(Y8X!==void 0)return Y8X;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;$6Q===void 0&&($6Q=document.createElement("template"));var k=$6Q;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return Y8X=e},
is:"tp-yt-paper-progress",behaviors:[Kw7],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(e){this.toggleClass("indeterminate",e,this.$.primaryProgress)},
_transformProgress:function(e,g){e.style.transform=e.style.webkitTransform="scaleX("+g/100+")"},
_mainRatioChanged:function(e){this._transformProgress(this.$.primaryProgress,e)},
_progressChanged:function(e,g,c,k,I){e=this._clampValue(e);g=this._clampValue(g);var J=this._calcRatio(e)*100,q=this._calcRatio(g)*100;this._setSecondaryRatio(J);this._transformProgress(this.$.secondaryProgress,J);this._transformProgress(this.$.primaryProgress,q);this.secondaryProgress=e;I?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",g);this.setAttribute("aria-valuemin",c);this.setAttribute("aria-valuemax",k)},
_disabledChanged:function(e){this.setAttribute("aria-disabled",e?"true":"false")},
_hideSecondaryProgress:function(e){return e===0}});var ffz;var j8X;var iSo=function(){};
_.v=iSo.prototype;_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._noinkChanged=function(){};
_.v._focusedChanged=function(){};
_.v._createRipple=function(){};
_.v.registered=function(){};
_.v._invalidChanged=function(){};
_.v.hasValidator=function(){};
_.v.validate=function(){};
_.v._getValidity=function(){};
_.v._requiredChanged=function(){};
_.v._valueChanged=function(){};
_.v._checkedChanged=function(){};
_.v._buttonStateChanged=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
iSo=_.rk({is:"tp-yt-paper-radio-button",_template:function(){if(j8X!==void 0)return j8X;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;ffz===void 0&&(ffz=document.createElement("template"));var k=ffz;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return j8X=e},
behaviors:[_.Tgk],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(){_.Va(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var e=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),g=Math.floor(3*e);g%2!==e%2&&g++;this.updateStyles({"--paper-radio-button-ink-size":g+"px"})}})}});var Phv;var m67;_.rk({_template:function(){if(m67!==void 0)return m67;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Phv===void 0&&(Phv=document.createElement("template"));var k=Phv;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return m67=e},
is:"tp-yt-paper-radio-group",behaviors:[_.Ymn],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(e){var g=this._valueToItem(e);if(!g||!g.hasAttribute("disabled")){if(this.selected){g=this._valueToItem(this.selected);if(this.selected==e)if(this.allowEmptySelection)e="";else{g&&(g.checked=!0);return}g&&
(g.checked=!1)}_.mk.select.apply(this,[e]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(e){this._focusPrevious();e.preventDefault();this._activateFocusedItem()},
_onDownKey:function(e){this._focusNext();e.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(e){_.$eu._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(e){_.$eu._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.mk._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.IM._resetTabindices.apply(this,arguments);this.items.forEach(function(e){e.removeAttribute("aria-selected")},this)}});var pG0;var TeD;var lfX=function(){};
_.v=lfX.prototype;_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._buttonStateChanged=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._noinkChanged=function(){};
_.v._calcRatio=function(){};
_.v._clampValue=function(){};
_.v._calcStep=function(){};
_.v._validateValue=function(){};
_.v._update=function(){};
_.v._setImmediateValue=function(){};
_.v._setExpand=function(){};
_.v._setDragging=function(){};
_.v._setTransiting=function(){};
_.v._setMarkers=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
_.v._setRatio=function(){};
lfX=_.rk({_template:function(){if(TeD!==void 0)return TeD;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;pG0===void 0&&(pG0=document.createElement("template"));var k=pG0;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return TeD=e},
is:"tp-yt-paper-slider",behaviors:[_.yB,_.Cz,_.p9s,Kw7],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&&_.mZ(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(e,g,c){this.setAttribute("aria-valuemin",g);this.setAttribute("aria-valuemax",c);this.setAttribute("aria-valuenow",e);this._positionKnob(this._calcRatio(e)*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(e){this._setImmediateValue(this._calcStep(this._calcKnobPosition(e)));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(e){return(this.max-this.min)*e/100+this.min},
_onTrack:function(e){e.stopPropagation();switch(e.detail.state){case "start":this._trackStart(e);break;case "track":this._trackX(e);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(e){this.dragging||this._trackStart(e);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,e.detail.dx*(this._isRTL?-1:1)));e=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(e);e=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(e+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var e=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;e.transform=e.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(e){this._expandKnob();e.preventDefault();this.focus()},
_bartrack:function(e){this._allowBarEvent(e)&&this._onTrack(e)},
_barclick:function(e){this._w=this.$.sliderBar.offsetWidth;var g=this.$.sliderBar.getBoundingClientRect();g=(e.detail.x-g.left)/this._w*100;this._isRTL&&(g=100-g);var c=this.ratio;this._setTransiting(!0);this._positionKnob(g);c===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
e.preventDefault();this.focus()},
_bardown:function(e){this._allowBarEvent(e)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(e))},
_knobTransitionEnd:function(e){e.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(e,g,c,k){k||this._setMarkers([]);g=Math.round((c-g)/this.step);g>e&&(g=e);if(g<0||!isFinite(g))g=0;this._setMarkers(Array(g))},
_mergeClasses:function(e){return Object.keys(e).filter(function(g){return e[g]}).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(e){return!this.ignoreBarTouch||e.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(e){this._isRTL?this._incrementKey(e):this._decrementKey(e)},
_rightKey:function(e){this._isRTL?this._decrementKey(e):this._incrementKey(e)},
_incrementKey:function(e){this.disabled||(e.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),e.preventDefault())},
_decrementKey:function(e){this.disabled||(e.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),e.preventDefault())},
_changeValue:function(e){this.value=e.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(e){e.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.msw._createRipple.call(this)},
_focusedChanged:function(e){e&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=e?"":"none",this._ripple.holdDown=e)}});var A8z;var s8j;var r_=null,FDD=function(){};
_.v=FDD.prototype;_.v.fit=function(){};
_.v._discoverInfo=function(){};
_.v.resetFit=function(){};
_.v.refit=function(){};
_.v.position=function(){};
_.v.constrain=function(){};
_.v._sizeDimension=function(){};
_.v.__sizeDimension=function(){};
_.v.center=function(){};
_.v.__getNormalizedRect=function(){};
_.v.__getOffscreenArea=function(){};
_.v.__getPosition=function(){};
_.v.notifyResize=function(){};
_.v.assignParentResizable=function(){};
_.v.stopResizeNotificationsFor=function(){};
_.v._subscribeIronResize=function(){};
_.v._unsubscribeIronResize=function(){};
_.v.resizerShouldNotify=function(){};
_.v._onDescendantIronResize=function(){};
_.v._fireResize=function(){};
_.v._onIronRequestResizeNotifications=function(){};
_.v._parentResizableChanged=function(){};
_.v._notifyDescendant=function(){};
_.v._requestResizeNotifications=function(){};
_.v._findParent=function(){};
_.v.toggle=function(){};
_.v.open=function(){};
_.v.close=function(){};
_.v.cancel=function(){};
_.v.invalidateTabbables=function(){};
_.v._ensureSetup=function(){};
_.v._canceledChanged=function(){};
_.v._withBackdropChanged=function(){};
_.v._prepareRenderOpened=function(){};
_.v._finishRenderOpened=function(){};
_.v._finishRenderClosed=function(){};
_.v._preparePositioning=function(){};
_.v._finishPositioning=function(){};
_.v._applyFocus=function(){};
_.v._onCaptureClick=function(){};
_.v._onCaptureFocus=function(){};
_.v._onCaptureEsc=function(){};
_.v._onCaptureTab=function(){};
_.v._onIronResize=function(){};
_.v._onNodesChange=function(){};
_.v.__ensureFirstLastFocusables=function(){};
_.v.__openedChanged=function(){};
_.v.__deraf=function(){};
_.v.__updateScrollObservers=function(){};
_.v.__addScrollListeners=function(){};
_.v.__removeScrollListeners=function(){};
_.v.__isValidScrollAction=function(){};
_.v.__onCaptureScroll=function(){};
_.v.__saveScrollPosition=function(){};
_.v.__restoreScrollPosition=function(){};
_.v._setCanceled=function(){};
FDD=_.rk({_template:function(){if(s8j!==void 0)return s8j;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;A8z===void 0&&(A8z=document.createElement("template"));var k=A8z;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return s8j=e},
is:"tp-yt-paper-toast",behaviors:[_.$L],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(){_.c6._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.hc.requestAvailability()},
show:function(e){typeof e=="string"&&(e={text:e});for(var g in e)g.indexOf("_")===0?_.c6._warn('The property "'+g+'" is private and was not set.'):g in this?this[g]=e[g]:_.c6._warn('The property "'+g+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(e){e&&e.target===this&&e.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(r_&&r_!==this&&r_.close(),r_=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):r_===this&&(r_=null);_.DP._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(e){this.positionTarget=e},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var uFX=new _.lN("disablePersonalizationAction");var u9z=new _.lN("showDmaConsentFlowCommand");var dnO=new _.lN("showMmgNoticeCommand");var d6j=new _.lN("saveConsentAction");var zuS=new _.lN("navigateAction");var HSx=new _.lN("replaceFeedContentAction");var Q8S=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(Q8S,_.WJ);var U6x=_.r0p(Q8S);var o9v=new _.lN("imageTileRenderer");var ZSD=new _.lN("promotedSparklesWebRenderer");var VZo=new _.lN("adGridCardCollectionViewModel");var tZl=new _.lN("addRendererToItemSectionAction");var BeO=new _.lN("updateTopbarAvatarAction");var NeX=new _.lN("channelHandleValidationResultRenderer");var S8M=new _.lN("generateHandleFromNameResultRenderer");var y87=new _.lN("channelHandleInputRenderer");var KD0=new _.lN("copyLinkRenderer");var OS7=new _.lN("carouselTitleViewModel");var MZ0=new _.lN("ctaCarouselItemViewModel");var Ch0=new _.lN("timedCommand");var e$S=new _.lN("textFieldViewModel");var gYq=new _.lN("crowdsourcedContextUserRatingFormFlowState");var ciz=new _.lN("noteViewModel");var kk7=new _.lN("alertCommand");var Isj=new _.lN("clearCookieAction");var Jiq=new _.lN("engagementPanelHeaderShowNavigationButtonCommand");var vYv=new _.lN("getMultiPageMenuAction");var w1O=new _.lN("addToGuideSectionAction"),qNq=new _.lN("removeFromGuideSectionAction");var LHj=new _.lN("hideEngagementPanelScrimAction");var riD=new _.lN("updateNotificationsUnseenCountAction");var asq=new _.lN("resetChannelUnreadCountCommand");var nYx=new _.lN("resetSubscriptionsUnreadDotCommand");var R$x=new _.lN("selectLanguageCommand");var yL0=new _.lN("sendFeedbackAction");var EY0=new _.lN("setActivePanelItemAction");var WHO=new _.lN("showEngagementPanelScrimAction");var b$x=new _.lN("updateEngagementPanelAction");var h$O=new _.lN("updateSearchInVideoResultsAction");var X1M=new _.lN("uploadImageToScottyCommand");var GkM=new _.lN("webWatchNextResponseExtensionData");var xFS=new _.lN("manageLabsStateCommand");var DFS=new _.lN("registerPromoCommand");var $FX=new _.lN("setPushNotificationsEnabledCommand");var YNq=new _.lN("updateSentimentBarStateCommand");var fs7=new _.lN("desktopTopbarRenderer");var jf7=new _.lN("surveyFollowUpRenderer");var i$O=new _.lN("formRenderer");var PX7=new _.lN("inlineFormRenderer");var mFj=new _.lN("handlesClaimingRadioOptionRenderer");var p1M=new _.lN("hotkeyDialogRenderer");var TRg=new _.lN("playlistSidebarPrimaryInfoRenderer");var lsg=new _.lN("transcriptCueGroupRenderer");var Aij=new _.lN("transcriptCueRenderer");var sfX=new _.lN("transcriptFooterRenderer");var FH7=new _.lN("engagementPanelAdSubtitleRenderer");var urv=new _.lN("videoDescriptionFantasySectionViewModel");var dFv=new _.lN("inlineSurveyRenderer");var z$O=new _.lN("radioButtonSurveyOptionRenderer"),H$Q=new _.lN("checkboxSurveyOptionRenderer");var Qf0=new _.lN("showSurveyCommand");var aO=new _.lN("abuseReportFlowState");var UFQ=new _.lN("modifyReportFormCommand");var oYl=new _.lN("feedbackFormFlowState");var Z$o=new _.lN("inputBoxViewModel");var Vdg=new _.lN("flowRootRenderer");var eRq=new _.lN("lengthValidationRule");var cho=new _.lN("regexValidationRule");var IZD=new _.lN("selectedValidationRule");var tdv=new _.lN("accountLinkCommand");var BRM=new _.lN("accountUnlinkCommand");var NR0=new _.lN("deleteClipEngagementPanelCommand");var iWO=new _.lN("logAccountLinkingEventCommand");var PCX=new _.lN("loopCommand");var UBD=new _.lN("guideCollapsibleEntryRenderer");var mmz=new _.lN("guideDownloadsEntryRenderer");var QsO=new _.lN("guideEntryRenderer");var pXj=[0,_.Fv,_.Z4,_.V2];var TXl=[0,_.ly,-2,Tho];var lAg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Z0(e)};
_.Y(lAg,_.WJ);lAg.prototype.getFeature=function(){return _.Rs(this,6)};
lAg.prototype.hasFeature=function(){return _.TD(_.g0(this,6))!=null};var AGQ=[0,_.Fv];var sEq=_.ma(lAg,[0,_.ly,-2,Tho,_.ly,_.Fv,-1,_.TX,-1,_.Fv,-3,_.Cd4,_.AP,TXl,_.Fv,-1,pFo,_.TX,_.Fv,pXj,[0,[0,_.Fv,-2,2,_.Fv,-1,[0,_.Fv],[0,_.Z4,_.Fv],[0,_.Z4],[0,_.Fv],2,[0,_.Z4,2,[0,[2,3],_.Z4,xE7,_.HW,[0,[1,2,3],xE7,-2]],[0,_.zX,Tmj],1,[0,lrX],1,[0,_.Fv],1,[0,[2],_.Fv,_.HW,[0,_.ly]]],[0,_.AP],[0,[1,2],_.HW,[0,_.Fv],_.HW,[0,_.Fv,_.UU,-1]],[0,_.Z4],[0,_.Fv,[0,[1,2,3,4],_.HW,[0,[0,_.Fv],AGQ],_.HW,[0,[0,_.Fv],AGQ],_.HW,[0,AGQ],_.HW,[0,[0,_.Fv],AGQ]]],[0,_.Fv],1,[0,_.Fv,_.Z4],1,[0,_.Fv],[0,_.AP],[0,_.Fv,
_.Z4,-1,[0,_.Fv,-4]],[0,_.Fv],[0,_.Fv,-2],1,[0,_.Fv],[0,_.AP],[0,_.AP,_.Fv],1,[0,_.AP],[0],[0]],_.Fv,_.Z4,_.mv,1,_.Qk,_.Fv,_.Z4],_.ly,_.Qk,_.Z4,-1,_.ly]);var F2q=new _.lN("interstitialViewModel");var u8D=new _.lN("changeCreatorEndscreenVisibilityCommand");var dmQ=new _.lN("liveChatCallForQuestionsRenderer");var zKD=new _.lN("getLocationCommand");var HWg=new _.lN("locationCollectionCommand");var QE7=new _.lN("chipsShelfViewModel");var nN=new _.lN("cinematicContainerRenderer");var RO=new _.lN("changeMarkersVisibilityCommand");var UmS=new _.lN("updateTimedMarkersSyncObserverCommand");var oJz=new _.lN("storiesItemViewModel");var ZWO=new _.lN("talkToRecsViewModel");var Uev=new _.lN("timelyActionViewModel");var Vfo=new _.lN("timelyActionsOverlayViewModel");var tfM=new _.lN("addToRemoteQueueAction");var BXg=new _.lN("insertInRemoteQueueAction");var NXQ=new _.lN("removeFromRemoteQueueAction");var SKx=new _.lN("productDetailsThumbnailRenderer"),yGx=new _.lN("productDetailsVariantRenderer"),K2z=new _.lN("productDetailsVariantOptionRenderer"),OWg=new _.lN("productDetailsOffersContainerRenderer"),MfM=new _.lN("productDetailsOfferRenderer");var CCl=new _.lN("shoppingFlaggingRenderer");var efo=new _.lN("notificationActionRenderer");var gPS=new _.lN("notificationRenderer");var XNo=new _.lN("localWatchHistoryCommand");var cxl=new _.lN("pdgBuyFlowHeaderRenderer");var kZv=new _.lN("pdgColorSliderRenderer");var ISX=new _.lN("pdgCommentOptionRenderer");var JxD=new _.lN("pdgCommentPreviewRenderer");var vPv=new _.lN("superVodSelectableItemButtonRenderer");var wEl=new _.lN("creatorGoalSetUpFlowDropdownItemViewModel");var q90=new _.lN("creatorGoalSetUpFlowDropdownViewModel");var LoO=new _.lN("repeatChapterCommand");var rxX=new _.lN("watchPlayerOverflowMenuCommand");var aSl=new _.lN("compositeVideoOverlayRenderer");var nPz=new _.lN("playlistBylineRenderer");var Rfx=new _.lN("reelNavigateCommand");var EPx=new _.lN("reelNonVideoContentDismissalCommand");var WoQ=new _.lN("showReelsCommentsOverlayCommand");var bE0=new _.lN("switchButtonRenderer");var hfx=new _.lN("responsiveContainerConfiguration");var XED=new _.lN("sortFilterSubMenuRenderer");var GZS=new _.lN("upsellDialogRenderer");var xgq=new _.lN("insertChannelTabCommand");var Dgx=new _.lN("feedbackQuestionRenderer"),$gx=new _.lN("feedbackOptionRenderer");var Y9O=new _.lN("sponsorshipsTierRenderer"),fS0=new _.lN("sponsorshipsPromotionChannelRenderer");var jUz=new _.lN("simpleSurveyMessageRenderer");var Qml=new _.lN("thumbnailBadgeViewModel");var iEx=new _.lN("checkboxGroupViewModel");var VSQ=new _.lN("checkboxItemViewModel");var PYz=new _.lN("radioButtonGroupViewModel");var mgQ=new _.lN("radioButtonItemViewModel");var pEx=new _.lN("switchListItemViewModel");var X2j=new _.lN("inputComposerViewModel");var hRv=new _.lN("panelFooterViewModel");var T7D=new _.lN("transcriptEditSegmentCommand");var lSo=new _.lN("transcriptUpdateSegmentTextCommand");var Axz=new _.lN("transcriptSearchBoxRenderer");var sUO=new _.lN("transcriptSegmentListRenderer");var FoS=new _.lN("transcriptSegmentRenderer");var u_g=new _.lN("videoInteractionPopUpRenderer");var dg7=new _.lN("updateDateTextAction");var zfo=new _.lN("updateTitleAction");var HEv=new _.lN("updateViewershipAction");var QUq=new _.lN("relatedChipCommand");var UgX=new _.lN("carouselLockupRenderer");var oPv=new _.lN("engagementPanelSectionListRenderer");var EA=new _.lN("expandableVideoDescriptionBodyRenderer");var ZE0=new _.lN("videoDescriptionHeaderRenderer");var V5Q=new _.lN("videoDescriptionYouchatSectionViewModel");var CVq=new _.lN("invokeInstrumentManagerAction");var t5M=new _.lN("logYpcFlowDismissCommand");var B7D=new _.lN("logYpcFlowStartCommand");var N7O=new _.lN("ypcCancelRecurrenceCommand");var S9D=new _.lN("cancellationFlowState");var ACz=new _.lN("premiumPurchaseFlowState");var yxQ=new _.lN("unlimitedCreateFamilyEndpoint");var Koz=new _.lN("surveyAnswerCardRenderer");var OEj=new _.lN("iconBadgeRenderer");var M5M=new _.lN("showMoreButtonRenderer");var CYo=new _.lN("pollChoiceData");var xsQ=new _.lN("collaborativePlaylistVisibilityValidationRule");var er0=function(e){_.Bt.call(this,"channelMessage");this.message=e};
_.Y(er0,_.Bt);var gj0=function(e){_.Bt.call(this,"channelError");this.error=e};
_.Y(gj0,_.Bt);var cfx={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},k0v={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},IJz={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},JfD={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},vj7={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var WS=function(e){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 _.aY;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;e&&(this.id=e.id||e.name,this.name=e.name,this.clientName=e.clientName?e.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=e.app,this.type=e.type||"REMOTE_CONTROL",this.username=e.user||"",this.avatar=e.userAvatarUri||"",this.obfuscatedGaiaId=e.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=e.ownerObfuscatedGaiaId||"",this.castUserId=e.castUserId||"",this.theme=e.theme||"u",wxq(this,e.capabilities||""),qqq(this,
e.compatibleSenderThemes||""),L8X(this,e.experiments||""),this.remoteControllerUrl=e.remoteControllerUrl||"",this.localChannelEncryptionKey=e.localChannelEncryptionKey||"",this.deviceContext=e.deviceContext,this.brand=e.brand||"",this.model=e.model||"",this.year=e.year||0,this.os=e.os||"",this.osVersion=e.osVersion||"",this.chipset=e.chipset||"",this.mdxDialServerType=e.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=e.pairingType||"unknown",e=e.deviceInfo)&&(e=JSON.parse(e),this.brand=
e.brand||"",this.model=e.model||"",this.year=e.year||0,this.os=e.os||"",this.osVersion=e.osVersion||"",this.chipset=e.chipset||"",this.clientName=e.clientName?e.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=e.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
WS.prototype.copy=function(){var e={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&&(e.brand=this.brand);
this.model&&(e.model=this.model);this.year&&(e.year=this.year);this.os&&(e.os=this.os);this.osVersion&&(e.osVersion=this.osVersion);this.chipset&&(e.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(e.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(e.mdxDialServerType=this.mdxDialServerType);e=new WS(e);e.connected=this.connected;e.remoteControllerUrl=this.remoteControllerUrl;e.localChannelEncryptionKey=this.localChannelEncryptionKey;e.deviceContext=
this.deviceContext;e.castUserId=this.castUserId;return e};
WS.prototype.equals=function(e){return e?this.id==e.id:!1};
var wxq=function(e,g){e.capabilities.clear();_.VG(g.split(","),_.g$(_.n0.contains,cfx)).forEach(function(c){e.capabilities.add(c)})},qqq=function(e,g){e.compatibleSenderThemes.clear();
_.VG(g.split(","),_.g$(_.n0.contains,k0v)).forEach(function(c){e.compatibleSenderThemes.add(c)})},L8X=function(e,g){e.experiments.clear();
g.split(",").forEach(function(c){e.experiments.add(c)})};_.Um(XV,_.Iy);_.v=XV.prototype;_.v.JSC$20075_onTick_=function(){this.retryCount++;this.JSC$20073_interval_=Math.min(3E5,this.JSC$20073_interval_*2);this.JSC$20075_listener_();this.nextTickTime_&&this.start()};
_.v.getRetryCount=function(){return this.retryCount};
_.v.start=function(){var e=this.JSC$20073_interval_+15E3*Math.random(),g=this.delay_;g.isActive()||g.start(e);this.nextTickTime_=Date.now()+e};
_.v.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.v.isActive=function(){return this.delay_.isActive()};
_.v.reset=function(){this.delay_.stop();this.retryCount=0;this.JSC$20073_interval_=5E3};_.Um(Gh,BC0);_.v=Gh.prototype;_.v.subscribe=function(e,g,c){return this.pubsub_.subscribe(e,g,c)};
_.v.unsubscribe=function(e,g,c){return this.pubsub_.unsubscribe(e,g,c)};
_.v.unsubscribeByKey=function(e){return this.pubsub_.unsubscribeByKey(e)};
_.v.publish=function(e,g){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.v.dispose=function(){this.JSC$20076_disposed_||(this.JSC$20076_disposed_=!0,_.Fm(this.pubsub_),this.disconnect(),_.Fm(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20076_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.No({})})};
_.v.isDisposed=function(){return this.JSC$20076_disposed_};
_.v.connect=function(e,g,c){var k=this,I,J,q,L;return _.r(function(n){if(n.nextAddress==1)return _.ze(n,2),k.useAsyncBrowserChannelHandler_?n.yield(k.connectPromise_,2):n.jumpTo(2);_.sh(n);if(k.JSC$20076_disposed_||k.JSC$20076_channel_&&k.JSC$20076_channel_.getState()==2&&!k.isInitialReconnectTimer_)return n.return();k.sCookie_="";k.isInitialReconnectTimer_||k.reconnectTimer_.stop();k.connectionParams_=e||null;k.connectUi_=g||0;I=k.JSC$20076_pathPrefix_+"/test";J=k.JSC$20076_pathPrefix_+"/bind";q=
new bG(c?c.firstTestResults:null,c?c.secondTestResults:null,k.enableAsyncTest_);if(L=k.JSC$20076_channel_)L.handler_=null;q.handler_=k;k.JSC$20076_channel_=q;if(k.useAsyncBrowserChannelHandler_)return k.connectPromise_=rfS(k).then(function(){return aJ7(k,I,J,L,c)}),n.return(k.connectPromise_.then(function(){k.connectPromise_=_.No()}));
aJ7(k,I,J,L,c);return _.HA(n,0)})};
var aJ7=function(e,g,c,k,I){nj0(e);if(e.JSC$20076_channel_){var J=_.uo("ID_TOKEN"),q=e.JSC$20076_channel_.JSC$19990_extraHeaders_||{};J?q["x-youtube-identity-token"]=J:delete q["x-youtube-identity-token"];e.JSC$20076_channel_.JSC$19990_extraHeaders_=q}Rro(e);k?(k.getState(),e.JSC$20076_channel_.connect(g,c,e.defaultQueryParams_,k.sid_,k.JSC$19990_lastArrayId_)):I?e.JSC$20076_channel_.connect(g,c,e.defaultQueryParams_,I.sessionId,I.arrayId):e.JSC$20076_channel_.connect(g,c,e.defaultQueryParams_);e.isInitialReconnectTimer_&&
!e.reconnectTimer_.isActive()&&e.reconnectTimer_.start();e.retryLogger_&&e.retryLogger_.startLogTimeout()};
Gh.prototype.disconnect=function(e){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.No())}finally{this.disconnectUi_=e||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),nj0(this),this.JSC$20076_channel_&&(this.JSC$20076_channel_.getState()==3&&QLo(this.JSC$20076_channel_),this.JSC$20076_channel_.disconnect()),this.disconnectUi_=0}};
Gh.prototype.sendMessage=function(e,g){var c=this,k;return _.r(function(I){switch(I.nextAddress){case 1:_.ze(I,2);if(!c.useAsyncBrowserChannelHandler_){I.jumpTo(2);break}return I.yield(c.connectPromise_,2);case 2:_.sh(I);if(c.JSC$20076_disposed_)return I.return();k={_sc:e};g&&_.n0.extend(k,g);if(c.reconnectTimer_.isActive()||(c.JSC$20076_channel_?c.JSC$20076_channel_.getState():0)==2){c.JSC$20076_pendingMessages_.push(k);I.jumpTo(6);break}if(!c.isChannelOpened()){I.jumpTo(6);break}_.ze(I,8);if(!c.useAsyncBrowserChannelHandler_||
Ejq(c,e)){I.jumpTo(8);break}return I.yield(rfS(c),8);case 8:_.sh(I,0,0,1);c.isChannelOpened()&&(Ejq(c,e)||Rro(c),nj0(c),Hjo(c.JSC$20076_channel_,k));_.HA(I,6,1);break;case 6:_.HA(I,0)}})};
var Ejq=function(e,g){return e.enableMdxAuthForConnectionOnly_?!0:e.disableMdxAuthForAdMessages_?Object.values(IJz).includes(g):e.disableMdxAuthForNonPlaybackMessages_?!Object.values(JfD).includes(g):e.disableMdxAuthForShortsMessages_?Object.values(vj7).includes(g):!1};
Gh.prototype.JSC$19997_channelOpened=function(){this.retryLogger_&&this.reconnectTimer_&&this.reconnectTimer_.getRetryCount()>0&&(this.retryLogger_.logRetry(this.reconnectTimer_.getRetryCount(),this.isInitialReconnectTimer_,!0),this.retryLogger_.logSuccess());this.retryLogger_&&this.retryLogger_.cancelLogTimeout();this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.Fm(this.reconnectTimer_),this.reconnectTimer_=new XV(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();
this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20076_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)W8j(this);else{var e=this.JSC$20076_pendingMessages_;this.JSC$20076_pendingMessages_=[];var g=e.length;Rro(this);bcO(this,e,g);hrX(this)}else hrX(this)};
var W8j=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return _.ze(k,2),k.yield(rfS(e),2);_.sh(k);g=e.JSC$20076_pendingMessages_;e.JSC$20076_pendingMessages_=[];c=g.length;bcO(e,g,c);hrX(e);return _.HA(k,0)})},bcO=function(e,g,c){for(var k=0;k<c;++k)Hjo(e.JSC$20076_channel_,g[k]);
hrX(e)},hrX=function(e){e.publish("handlerOpened");
e.JSC$20076_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.v=Gh.prototype;_.v.JSC$19997_channelError=function(e){var g=e==2&&this.JSC$20076_channel_.JSC$19990_lastStatusCode_==401;e==4||g||(this.isInitialReconnectTimer_&&!this.reconnectTimer_.isActive()&&(_.Fm(this.reconnectTimer_),this.reconnectTimer_=new XV(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1),this.reconnectTimer_.start());this.publish("handlerError",e,g);g=Object.keys(pIX).find(function(c){return pIX[c]===e});
this.JSC$20076_channelErrorCounter.increment("BROWSER_CHANNEL",g!=null?g:"UNKNOWN")};
_.v.JSC$19997_channelClosed=function(e,g){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(g)for(var c=g.length,k=0;k<c;++k){var I=g[k].map;I&&this.JSC$20076_pendingMessages_.push(I)}this.JSC$20076_channelClosedCounter.increment("BROWSER_CHANNEL");e&&this.pendingMapsOnClosedCounter.JSC$10242_streamzService.JSC$10097_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",e.length);g&&this.undeliveredMapsOnClosedCounter.JSC$10245_streamzService.JSC$10097_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
g.length)};
_.v.JSC$19997_channelSuccess=function(e,g){g!=null&&e!=null&&this.channelMessageSentCounter.increment()};
_.v.JSC$19997_getAdditionalParams=function(){var e={v:2};this.sCookie_&&(e.gsessionid=this.sCookie_);this.connectUi_!=0&&(e.ui=""+this.connectUi_);this.disconnectUi_!=0&&(e.ui=""+this.disconnectUi_);this.connectionParams_&&_.n0.extend(e,this.connectionParams_);return e};
_.v.JSC$19997_channelHandleArray=function(e){e[0]=="S"?this.sCookie_=e[1]:e[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20076_channel_.disconnect()):this.publish("handlerMessage",new VYS(e[0],e[1]));this.JSC$20076_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.v.isChannelOpened=function(){return!!this.JSC$20076_channel_&&this.JSC$20076_channel_.getState()==3};
var nj0=function(e){if(e.JSC$20076_channel_){var g=e.JSC$20076_getXsrfToken_(),c=e.JSC$20076_channel_.JSC$19990_extraHeaders_||{};g?c["x-youtube-lounge-xsrf-token"]=g:delete c["x-youtube-lounge-xsrf-token"];e.JSC$20076_channel_.JSC$19990_extraHeaders_=c}},rfS=function(e){if(e.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.No();
if(!e.enableCachedUpdateAuthorizationHeader_)return Xxg(e);e.updateAuthorizationHeaderPromise_===null&&(e.updateAuthorizationHeaderPromise_=Xxg(e));return e.updateAuthorizationHeaderPromise_},Xxg=function(e){return _.WN(e.getAuthorizationHeader_().then(function(g){G0v(e,g)}).thenCatch(function(){}),function(){e.updateAuthorizationHeaderPromise_=null})},G0v=function(e,g){if(e.JSC$20076_channel_){var c=e.JSC$20076_channel_.JSC$19990_extraHeaders_||{};
g&&Object.keys(g).length>0?c=Object.assign({},c,g):delete c.Authorization;e.JSC$20076_channel_.JSC$19990_extraHeaders_=c}},Rro=function(e){e.getAuthorizationHeaderSync_&&!e.useAsyncBrowserChannelHandler_&&G0v(e,e.getAuthorizationHeaderSync_())};
_.v=Gh.prototype;_.v.setLoungeToken=function(e){(this.defaultQueryParams_.loungeIdToken=e)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20076_channel_){var g=this.JSC$20076_channel_.JSC$19990_extraHeaders_||{};e?g["X-YouTube-LoungeId-Token"]=e:delete g["X-YouTube-LoungeId-Token"];this.JSC$20076_channel_.JSC$19990_extraHeaders_=g}};
_.v.getDeviceId=function(){return this.defaultQueryParams_.id};
_.v.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.v.reconnect=function(){var e=this.reconnectTimer_;e.delay_.fire();e.start()};
_.v.safeReconnect_=function(){var e=this.JSC$20076_channel_,g=0;e.JSC$19990_backChannelRequest_&&g++;e.forwardChannelRequest_&&g++;g==0&&this.connect(this.connectionParams_,this.connectUi_)};var Yc=function(e,g){var c=e.basePath;e.supportCors&&(c=e.scheme+"://"+e.domain+e.port+e.basePath);return _.MO(c+g,{})};
MYl.prototype.sendRequest=function(e,g,c,k,I,J,q){e={format:J?"RAW":"JSON",method:e,context:this,timeout:5E3,withCredentials:!!q,onSuccess:_.g$(this.JSC$20083_onSuccess_,k,!J),onError:_.g$(this.onError_,I),onTimeout:_.g$(this.JSC$20083_onTimeout_,I)};c&&(e.postParams=c,e.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.vQ(g,e)};
MYl.prototype.JSC$20083_onSuccess_=function(e,g,c,k){g?e(k):e({text:c.responseText})};
MYl.prototype.onError_=function(e,g){e(Error("$k`"+g.status))};
MYl.prototype.JSC$20083_onTimeout_=function(e){e(Error("al"))};var cbq=function(e,g){return!!g&&(e.id==g||e.uuid==g)},xVo=function(e){return{name:e.name,
screenId:e.id,loungeToken:e.token,dialId:e.uuid,screenIdType:e.idType,screenIdSecret:e.secret}},DVM=function(e){return new xc(e)},$Vl=function(e){return Array.isArray(e)?_.R4(e,DVM):[]},I3j=function(e){if(!e)return"null";
var g=e.token?".."+e.token.slice(-6):"-",c=e.uuid?".."+e.uuid.slice(-6):"-",k=e.secret?".."+e.secret.slice(-6):"-";return'{name:"'+e.name+'",id:'+e.id.substr(0,6)+"..,token:"+(g+",uuid:"+c+",idType:"+e.idType+",secret:")+(k+"}")},liq=function(e){return Array.isArray(e)?"["+_.R4(e,I3j).join(",")+"]":"null"};var Lb7="",$c=null;var GFx=function(e,g){_.jv.call(this);var c=this;this.handler=e();this.handler.subscribe("handlerOpened",this.JSC$20090_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(k,I){c.onError(I)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=g};
_.Y(GFx,_.jv);_.v=GFx.prototype;_.v.connect=function(e,g,c){this.handler.connect(e,g,c)};
_.v.disconnect=function(e){this.handler.disconnect(e)};
_.v.reconnect=function(){this.handler.reconnect()};
_.v.getDeviceId=function(){return this.handler.getDeviceId()};
_.v.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.v.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.v.JSC$20090_onOpened=function(){this.dispatchEvent("channelOpened");var e=this.handler,g=this.currentScreenId;_.wp("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!e.JSC$20076_channel_.useChunked_,sessionId:e.JSC$20076_channel_.sid_,arrayId:e.JSC$20076_channel_.JSC$19990_lastArrayId_});_.wp("yt-remote-session-screen-id",g);e=kF7();g=IiD();_.Hz(e,g)||e.push(g);qL7(e);wTS()};
_.v.onClosed=function(){this.dispatchEvent("channelClosed")};
_.v.onMessage=function(e){this.dispatchEvent(new er0(e))};
_.v.onError=function(e){this.dispatchEvent(new gj0(e?1:0))};
_.v.sendMessage=function(e,g){this.handler.sendMessage(e,g)};
_.v.setLoungeToken=function(e){this.handler.setLoungeToken(e)};
_.v.dispose=function(){this.handler.dispose()};var XTX=function(e,g,c){var k=this;c=c===void 0?function(){return""}:c;
var I=I===void 0?new dYl:I;var J=J===void 0?new _.w1:J;this.pathPrefix=e;this.defaultQueryParams=g;this.getXsrfToken=c;this.JSC$20093_pubsub=J;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new XV(function(){var q;((q=k.channel)==null?void 0:pvM((new M_7(q,q.JSC$19958_channel_)).JSC$19968_channel_.forwardChannelRequestPool_))===0&&k.connect(k.connectionParams,k.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20093_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20093_channelOpenedCounter=new tYo;this.JSC$20093_channelClosedCounter=new Bk7;this.JSC$20093_channelMessageReceivedCounter=new Szl;this.JSC$20093_channelErrorCounter=new ysS};
XTX.prototype.connect=function(e,g){e=e===void 0?{}:e;g=g===void 0?0:g;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=e,this.connectUi=g,Yqv(this),(e=_.uo("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=e: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 vS(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,fJz(this))};
var fJz=function(e){_.iK(e.channel,"w",function(){e.channelState=3;e.reconnectTimer.reset();e.connectionParams=null;e.connectUi=0;for(var g=_.w(e.nonAckedMessagesOnChannelClosed),c=g.next();!c.done;c=g.next())c=c.value,e.channel&&e.channel.send(c);e.nonAckedMessagesOnChannelClosed=[];e.publish("webChannelOpened");e.JSC$20093_channelOpenedCounter.increment("WEB_CHANNEL")});
_.iK(e.channel,"x",function(){e.channelState=0;e.reconnectTimer.isActive()||e.publish("webChannelClosed");var g,c=(g=e.channel)==null?void 0:CUX(new M_7(g,g.JSC$19958_channel_));c&&(e.nonAckedMessagesOnChannelClosed=[].concat(_.KY(c)));e.JSC$20093_channelClosedCounter.increment("WEB_CHANNEL")});
_.iK(e.channel,"z",function(g){var c=g.data;c[0]==="gracefulReconnect"?(e.reconnectTimer.start(),e.channel&&e.channel.close()):e.publish("webChannelMessage",new VYS(c[0],c[1]));e.lastStatusCode=g.statusCode;e.JSC$20093_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.iK(e.channel,"y",function(){e.lastStatusCode===401||e.reconnectTimer.start();e.publish("webChannelError");e.JSC$20093_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.v=XTX.prototype;_.v.disconnect=function(e){this.disconnectUi=e===void 0?0:e;this.reconnectTimer.stop();Yqv(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.v.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.v.reconnect=function(){var e=this.reconnectTimer;e.delay_.fire();e.start()};
_.v.sendMessage=function(e,g){this.channel&&(Yqv(this),e=Object.assign({},{_sc:e},g),this.channel.send(e))};
_.v.setLoungeToken=function(e){e||this.reconnectTimer.stop();e?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=e:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var Yqv=function(e){var g=e.getXsrfToken();g?e.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=g:delete e.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.v=XTX.prototype;_.v.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.v.publish=function(e){return this.JSC$20093_pubsub.publish.apply(this.JSC$20093_pubsub,[e].concat(_.KY(_.Mb.apply(1,arguments))))};
_.v.subscribe=function(e,g,c){return this.JSC$20093_pubsub.subscribe(e,g,c)};
_.v.unsubscribe=function(e,g,c){return this.JSC$20093_pubsub.unsubscribe(e,g,c)};
_.v.unsubscribeByKey=function(e){return this.JSC$20093_pubsub.unsubscribeByKey(e)};
_.v.dispose=function(){this.JSC$20093_disposed||(this.JSC$20093_disposed=!0,_.Fm(this.JSC$20093_pubsub),this.disconnect(),_.Fm(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.v.isDisposed=function(){return this.JSC$20093_disposed};var hZj=function(e){_.jv.call(this);this.webChannelService=e();this.webChannelService.subscribe("webChannelOpened",this.JSC$20101_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.Y(hZj,_.jv);_.v=hZj.prototype;_.v.connect=function(e,g){this.webChannelService.connect(e,g)};
_.v.disconnect=function(e){this.webChannelService.disconnect(e)};
_.v.reconnect=function(){this.webChannelService.reconnect()};
_.v.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.v.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.v.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.v.JSC$20101_onOpened=function(){this.dispatchEvent("channelOpened")};
_.v.onClosed=function(){this.dispatchEvent("channelClosed")};
_.v.onMessage=function(e){this.dispatchEvent(new er0(e))};
_.v.onError=function(){this.dispatchEvent(new gj0(this.webChannelService.lastStatusCode===401?1:0))};
_.v.sendMessage=function(e,g){this.webChannelService.sendMessage(e,g)};
_.v.setLoungeToken=function(e){this.webChannelService.setLoungeToken(e)};
_.v.dispose=function(){this.webChannelService.dispose()};var TL7=Date.now(),fJ=null,m2M=Array(50),P30=-1,pTQ=!1;var PK=function(e){e=e===void 0?!1:e;_.Iy.call(this);this.pubSub_=new _.w1(e);_.yh(this,this.pubSub_)};
_.Um(PK,_.Iy);PK.prototype.subscribe=function(e,g,c){return this.isDisposed()?0:this.pubSub_.subscribe(e,g,c)};
PK.prototype.unsubscribe=function(e,g,c){return this.isDisposed()?!1:this.pubSub_.unsubscribe(e,g,c)};
PK.prototype.unsubscribeByKey=function(e){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(e)};
PK.prototype.publish=function(e,g){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};_.Um(m9,PK);m9.prototype.getScreens=function(){return this.screens};
m9.prototype.contains=function(e){return!!gkl(this.screens,e)};
m9.prototype.get=function(e){return e?D_(this.screens,e):null};
var jWO=function(e,g){var c=e.get(g.uuid)||e.get(g.id);if(c)return e=c.name,c.id=g.id||c.id,c.name=g.name,c.token=g.token,c.uuid=g.uuid||c.uuid,c.name!=e;e.screens.push(g);return!0},icj=function(e,g){var c=e.screens.length!=g.length;
e.screens=_.VG(e.screens,function(J){return!!gkl(g,J)});
for(var k=g.length,I=0;I<k;I++)c=jWO(e,g[I])||c;return c},PJl=function(e,g){var c=e.screens.length;
e.screens=_.VG(e.screens,function(k){return!(k||g?!k!=!g?0:k.id==g.id:1)});
return e.screens.length<c};
m9.prototype.info=function(e){j3(this.JSC$20105_logName_,e)};var mVO=function(e,g,c,k,I){PK.call(this);this.JSC$20108_http_=e;this.pairingCode_=g;this.deviceId_=c;this.friendlyName_=k;this.enableShortLivedLoungeToken_=I;this.pollIndex_=0;this.JSC$20108_xhr_=null;this.JSC$20108_timer_=NaN};
_.Y(mVO,PK);_.v=mVO.prototype;_.v.start=function(){!this.JSC$20108_xhr_&&isNaN(this.JSC$20108_timer_)&&this.poll_()};
_.v.stop=function(){this.JSC$20108_xhr_&&(this.JSC$20108_xhr_.abort(),this.JSC$20108_xhr_=null);isNaN(this.JSC$20108_timer_)||(_.JK(this.JSC$20108_timer_),this.JSC$20108_timer_=NaN)};
_.v.disposeInternal=function(){this.stop();PK.prototype.disposeInternal.call(this)};
_.v.poll_=function(){this.JSC$20108_timer_=NaN;this.JSC$20108_xhr_=_.vQ(Yc(this.JSC$20108_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Ju)(this.JSC$20110_onSuccess_,this),onError:(0,_.Ju)(this.onError_,this),onTimeout:(0,_.Ju)(this.JSC$20110_onTimeout_,this)})};
_.v.JSC$20110_onSuccess_=function(e,g){this.JSC$20108_xhr_=null;e=g.screen||{};e.dialId=this.deviceId_;e.name=this.friendlyName_;g=-1;this.enableShortLivedLoungeToken_&&e.shortLivedLoungeToken&&e.shortLivedLoungeToken.value&&e.shortLivedLoungeToken.refreshIntervalMs&&(e.screenIdType="shortLived",e.loungeToken=e.shortLivedLoungeToken.value,g=e.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new xc(e),g)};
_.v.onError_=function(e){this.JSC$20108_xhr_=null;e.status&&e.status==404?this.pollIndex_>=pxM.length?this.publish("pairingFailed",Error("bl")):(e=pxM[this.pollIndex_],this.JSC$20108_timer_=_.k1((0,_.Ju)(this.poll_,this),e),this.pollIndex_++):this.publish("pairingFailed",Error("cl`"+e.status))};
_.v.JSC$20110_onTimeout_=function(){this.JSC$20108_xhr_=null;this.publish("pairingFailed",Error("dl"))};
var pxM=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Um(Th,m9);_.v=Th.prototype;_.v.start=function(){pJ(this)&&this.publish("screenChange");!_.qk("yt-remote-lounge-token-expiration")&&T2j(this);_.JK(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.k1((0,_.Ju)(this.start,this),1E4)};
_.v.add=function(e,g){pJ(this);jWO(this,e);lJX(this,!1);this.publish("screenChange");g(e);e.token||T2j(this)};
_.v.remove=function(e,g){var c=pJ(this);PJl(this,e)&&(lJX(this,!1),c=!0);g(e);c&&this.publish("screenChange")};
_.v.updateName=function(e,g,c,k){var I=pJ(this),J=this.get(e.id);J?(J.name!=g&&(J.name=g,lJX(this,!1),I=!0),c(e)):k(Error("el"));I&&this.publish("screenChange")};
_.v.disposeInternal=function(){_.JK(this.loungeTokenRefreshTimer_);Th.superClass_.disposeInternal.call(this)};
var T2j=function(e){if(e.screens.length){var g=_.R4(e.screens,function(k){return k.id}),c=Yc(e.JSC$20112_http_,"/pairing/get_lounge_token_batch");
e.JSC$20112_http_.sendRequest("POST",c,{screen_ids:g.join(",")},(0,_.Ju)(e.handleLoungeTokens_,e),(0,_.Ju)(e.handleLoungeTokenError_,e))}};
Th.prototype.handleLoungeTokens_=function(e){pJ(this);var g=this.screens.length;e=e&&e.screens||[];for(var c=e.length,k=0;k<c;++k){var I=e[k],J=this.get(I.screenId);J&&(J.token=I.loungeToken,--g)}lJX(this,!g);g&&j3(this.JSC$20105_logName_,"Missed "+g+" lounge tokens.")};
Th.prototype.handleLoungeTokenError_=function(e){j3(this.JSC$20105_logName_,"Requesting lounge tokens failed: "+e)};
var pJ=function(e){if(_.G("deprecate_pair_servlet_enabled"))return icj(e,[]);var g=$Vl(ail());g=_.VG(g,function(c){return!c.uuid});
return icj(e,g)},lJX=function(e,g){RZQ(_.R4(e.screens,xVo));
g&&nkj()};var bz=function(e,g){PK.call(this);this.getScreensToCheck_=g;g=(g=_.qk("yt-remote-online-screen-ids")||"")?g.split(","):[];for(var c={},k=this.getScreensToCheck_(),I=k.length,J=0;J<I;++J){var q=k[J].id;c[q]=_.Hz(g,q)}this.screenIdSet_=c;this.JSC$20115_http_=e;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;AfO("Initialized with "+_.X9(this.screenIdSet_))};
_.Y(bz,PK);bz.prototype.isOnline=function(e){return!!this.screenIdSet_[e]};
bz.prototype.start=function(){var e=parseInt(_.qk("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.QG()-144E5<e?0:e)?sWD(this):(this.fastCheckEndTime_=_.QG()+3E5,_.wp("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
bz.prototype.isEmpty=function(){return _.n0.isEmpty(this.screenIdSet_)};
bz.prototype.update=function(){AfO("Updating availability on schedule.");var e=this.getScreensToCheck_(),g=_.n0.filter(this.screenIdSet_,function(c,k){return c&&!!D_(e,k)},this);
F8z(this,g)};
var u4D=function(e,g,c){var k=Yc(e.JSC$20115_http_,"/pairing/get_screen_availability");e.JSC$20115_http_.sendRequest("POST",k,{lounge_token:g.token},(0,_.Ju)(function(I){I=I.screens||[];for(var J=I.length,q=0;q<J;++q)if(I[q].loungeToken==g.token){c(I[q].status=="online");return}c(!1)},e),(0,_.Ju)(function(){c(!1)},e))};
bz.prototype.disposeInternal=function(){_.JK(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);PK.prototype.disposeInternal.call(this)};
var F8z=function(e,g){a:if(_.n0.getCount(g)!=_.n0.getCount(e.screenIdSet_))var c=!1;else{c=_.n0.getKeys(g);for(var k=c.length,I=0;I<k;++I)if(!e.screenIdSet_[c[I]]){c=!1;break a}c=!0}c||(AfO("Updated online screens: "+_.X9(e.screenIdSet_)),e.screenIdSet_=g,e.publish("screenChange"));dVO(e)},sWD=function(e){isNaN(e.refreshTimer_)||_.JK(e.refreshTimer_);
e.refreshTimer_=_.k1((0,_.Ju)(e.requestScreenAvailability_,e),e.fastCheckEndTime_>0&&e.fastCheckEndTime_<_.QG()?2E4:1E4)};
bz.prototype.requestScreenAvailability_=function(){_.JK(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var e=zrQ(this);if(_.n0.getCount(e)){var g=Yc(this.JSC$20115_http_,"/pairing/get_screen_availability"),c={lounge_token:_.n0.getKeys(e).join(",")};this.currentRequest_=this.JSC$20115_http_.sendRequest("POST",g,c,(0,_.Ju)(this.onScreenAvailability_,this,e),(0,_.Ju)(this.onScreenAvailabilityError_,this))}else F8z(this,{}),sWD(this)};
bz.prototype.onScreenAvailability_=function(e,g){this.currentRequest_=null;var c=_.n0.getKeys(zrQ(this));if(_.OC(c,_.n0.getKeys(e))){g=g.screens||[];c={};for(var k=g.length,I=0;I<k;++I)c[e[g[I].loungeToken]]=g[I].status=="online";F8z(this,c);sWD(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
bz.prototype.onScreenAvailabilityError_=function(e){this.warn_("Screen availability failed: "+e);this.currentRequest_=null;sWD(this)};
var AfO=function(e){j3("OnlineScreenService",e)};
bz.prototype.warn_=function(e){j3("OnlineScreenService",e)};
var zrQ=function(e){var g={};_.o7(e.getScreensToCheck_(),function(c){c.token?g[c.token]=c.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return g},dVO=function(e){e=_.n0.getKeys(_.n0.filter(e.screenIdSet_,function(g){return g}));
e.sort(_.ug8);e.length?_.wp("yt-remote-online-screen-ids",e.join(","),60):_.Ls("yt-remote-online-screen-ids")};_.Um(lG,m9);_.v=lG.prototype;_.v.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.v.add=function(e,g,c){this.localScreenService_.add(e,g,c)};
_.v.remove=function(e,g,c){this.localScreenService_.remove(e,g,c);this.onlineScreenService_.update()};
_.v.updateName=function(e,g,c,k){this.localScreenService_.contains(e)?this.localScreenService_.updateName(e,g,c,k):(e="Updating name of unknown screen: "+e.name,j3(this.JSC$20105_logName_,e),k(Error(e)))};
_.v.getScreens=function(e){return e?this.screens:EQl(this.screens,_.VG(this.automaticScreens_,function(g){return!this.contains(g)},this))};
_.v.JSC$20120_getOnlineScreens=function(){return _.VG(this.getScreens(!0),function(e){return this.onlineScreenService_.isOnline(e.id)},this)};
var QWl=function(e,g,c,k,I,J){e.info("getAutomaticScreenByIds "+c+" / "+g);c||(c=e.deviceToScreenId_[g]);var q=e.getScreens(),L=c?D_(q,c):null;c&&(e.disableAutomaticScreenCache_||L)||(L=D_(q,g));if(L){L.uuid=g;var n=hJ(e,L);u4D(e.onlineScreenService_,n,function(R){I(R?n:null)})}else c?Hcg(e,c,(0,_.Ju)(function(R){var W=hJ(this,new xc({name:k,
screenId:c,loungeToken:R,dialId:g||""}));u4D(this.onlineScreenService_,W,function(b){I(b?W:null)})},e),J):I(null)};
lG.prototype.JSC$20120_getScreenByPollingPairingCode=function(e,g,c,k,I,J){var q=this;this.info("getDialScreenByPairingCode "+e+" / "+g);var L=new mVO(this.JSC$20118_http_,e,g,c,k);L.subscribe("pairingComplete",function(n,R){_.Fm(L);I(hJ(q,n),R)});
L.subscribe("pairingFailed",function(n){_.Fm(L);J(n)});
L.start();return(0,_.Ju)(L.stop,L)};
var UVx=function(e,g){for(var c=e.screens.length,k=0;k<c;++k)if(e.screens[k].name==g)return e.screens[k];return null};
lG.prototype.JSC$20120_getScreenByPairingCode=function(e,g,c,k){_.vQ(Yc(this.JSC$20118_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:e},timeout:5E3,onSuccess:(0,_.Ju)(function(I,J){I=new xc(J.screen||{});if(!I.name||UVx(this,I.name)){a:{J=I.name;for(var q=2,L=g(J,q);UVx(this,L);){q++;if(q>20)break a;L=g(J,q)}J=L}I.name=J}c(hJ(this,I))},this),
onError:(0,_.Ju)(function(I){k(Error("fl`"+I.status))},this),
onTimeout:(0,_.Ju)(function(){k(Error("gl"))},this)})};
var oj7=function(e,g,c){u4D(e.onlineScreenService_,g,c)};
lG.prototype.disposeInternal=function(){_.Fm(this.localScreenService_);_.Fm(this.onlineScreenService_);lG.superClass_.disposeInternal.call(this)};
var Hcg=function(e,g,c,k){e.info("requestLoungeToken_ for "+g);var I={postParams:{screen_ids:g},method:"POST",context:e,onSuccess:function(J,q){J=q&&q.screens||[];J[0]&&J[0].screenId==g?c(J[0].loungeToken):k(Error("hl"))},
onError:function(){k(Error("il"))}};
_.vQ(Yc(e.JSC$20118_http_,"/pairing/get_lounge_token_batch"),I)},Zcj=function(e){e.screens=e.localScreenService_.getScreens();
for(var g=_.n0.transpose(e.deviceToScreenId_),c=e.screens.length,k=0;k<c;++k){var I=e.screens[k];I.uuid=g[I.id]||""}e.info("Updated manual screens: "+liq(e.screens))};
lG.prototype.handleScreenChange_=function(){Zcj(this);this.publish("screenChange");this.onlineScreenService_.update()};
var AbO=function(e){V7O(e);e.localScreenService_=new Th(e.JSC$20118_http_);e.localScreenService_.subscribe("screenChange",(0,_.Ju)(e.handleScreenChange_,e));Zcj(e);e.disableAutomaticScreenCache_||(e.automaticScreens_=$Vl(_.qk("yt-remote-automatic-screen-cache")||[]));V7O(e);e.info("Initializing automatic screens: "+liq(e.automaticScreens_));e.onlineScreenService_=new bz(e.JSC$20118_http_,(0,_.Ju)(e.getScreens,e,!0));e.onlineScreenService_.subscribe("screenChange",(0,_.Ju)(function(){this.publish("onlineScreenChange")},
e))},hJ=function(e,g){var c=e.get(g.id);
c?(c.uuid=g.uuid,g=c):((c=D_(e.automaticScreens_,g.uuid))?(c.id=g.id,c.token=g.token,g=c):e.automaticScreens_.push(g),e.disableAutomaticScreenCache_||t7O(e));V7O(e);e.deviceToScreenId_[g.uuid]=g.id;_.wp("yt-remote-device-id-map",e.deviceToScreenId_,31536E3);return g},t7O=function(e){e=_.VG(e.automaticScreens_,function(g){return g.idType!="shortLived"});
_.wp("yt-remote-automatic-screen-cache",_.R4(e,xVo))},V7O=function(e){e.deviceToScreenId_=_.qk("yt-remote-device-id-map")||{}};
lG.prototype.dispose=lG.prototype.dispose;_.Um(AQ,PK);var Xu=function(e,g){e.screen_=g;e.publish("sessionScreen",e.screen_)},B2v=function(e,g){e.screen_&&(e.screen_.token=g,hJ(e.JSC$20122_screenService_,e.screen_));
e.publish("sessionScreen",e.screen_)};
AQ.prototype.onSessionStopped=function(e){this.isDisposed()||(e&&(GQ(this,""+e),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
AQ.prototype.info=function(e){j3(this.JSC$20122_logName_,e)};
var GQ=function(e,g){j3(e.JSC$20122_logName_,g)};
AQ.prototype.JSC$20124_getCastSession=function(){return null};
AQ.prototype.setDisplayStatus=function(e){var g=this.receiver_;e?(g.displayStatus=new chrome.cast.ReceiverDisplayStatus(e,[]),g.displayStatus.showStop=!0):g.displayStatus=null;chrome.cast.setReceiverDisplayStatus(g,(0,_.Ju)(function(){this.info("Updated receiver status for "+g.friendlyName+": "+e)},this),(0,_.Ju)(function(){GQ(this,"Failed to update receiver status for: "+g.friendlyName)},this))};
AQ.prototype.disposeInternal=function(){this.setDisplayStatus("");AQ.superClass_.disposeInternal.call(this)};var xw=function(e,g,c){AQ.call(this,e,g,"CastSession");var k=this;this.config_=c;this.JSC$20127_session_=null;this.JSC$20127_boundSessionUpdate_=(0,_.Ju)(this.JSC$20129_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Ju)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.k1(function(){N2O(k,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20127_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20127_isInitLoungeToken_=!1;this.JSC$20127_lastLoungeTokenRefreshError_="unknown"};
_.Y(xw,AQ);_.v=xw.prototype;
_.v.setCastSession=function(e){if(this.JSC$20127_session_){if(this.JSC$20127_session_==e)return;GQ(this,"Overriding cast session with new session object");Sql(this);this.JSC$20127_isInitLoungeToken_=!1;this.JSC$20127_lastLoungeTokenRefreshError_="unknown";this.JSC$20127_session_.removeUpdateListener(this.JSC$20127_boundSessionUpdate_);this.JSC$20127_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20127_session_=e;this.JSC$20127_session_.addUpdateListener(this.JSC$20127_boundSessionUpdate_);this.JSC$20127_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);yfg(this,"getMdxSessionStatus")};
_.v.launchWithParams=function(e){this.info("launchWithParams no-op for Cast: "+_.X9(e))};
_.v.stop=function(){if(this.JSC$20127_session_)this.JSC$20127_session_.stop((0,_.Ju)(function(){this.onSessionStopped()},this),(0,_.Ju)(function(){this.onSessionStopped(Error("jl"))},this));
else this.onSessionStopped(Error("kl"))};
_.v.setDisplayStatus=function(){};
_.v.disposeInternal=function(){this.info("disposeInternal");Sql(this);this.JSC$20127_session_&&(this.JSC$20127_session_.removeUpdateListener(this.JSC$20127_boundSessionUpdate_),this.JSC$20127_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20127_session_=null;AQ.prototype.disposeInternal.call(this)};
var OcD=function(e,g){_.JK(e.getLoungeTokenTimeoutKey_);e.getLoungeTokenTimeoutKey_=0;g==0?K87(e):e.getLoungeTokenTimeoutKey_=_.k1(function(){K87(e)},g)},K87=function(e){yfg(e,"getLoungeToken");
_.JK(e.onLoungeTokenTimeoutKey_);e.onLoungeTokenTimeoutKey_=_.k1(function(){M7g(e,null)},3E4)},yfg=function(e,g){e.info("sendYoutubeMessage_: "+g+" "+_.X9(void 0));
var c={};c.type=g;e.JSC$20127_session_?e.JSC$20127_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",c,function(){},(0,_.Ju)(function(){GQ(this,"Failed to send message: "+g+".")},e)):GQ(e,"Sending yt message without session: "+_.X9(c))};
xw.prototype.onYoutubeMessage_=function(e,g){if(!this.isDisposed())if(g)if(g=_.L_(g),_.SK(g))switch(e=""+g.type,g=g.data||{},this.info("onYoutubeMessage_: "+e+" "+_.X9(g)),e){case "mdxSessionStatus":N2O(this,g);break;case "loungeToken":M7g(this,g);break;default:GQ(this,"Unknown youtube message: "+e)}else GQ(this,"Unable to parse message.");else GQ(this,"No data in message.")};
var CJo=function(e,g){if(g)e.info("onConnectedScreenId_: Received screenId: "+g),e.screen_&&e.screen_.id==g||e.getScreen_(g,function(c){Xu(e,c)},function(){return e.onSessionStopped()},5);
else e.onSessionStopped(Error("ll"))},ghq=function(e,g,c){e.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(g));
var k=new xc(g);ez7(e,k,function(I){I?(e.JSC$20127_isInitLoungeToken_=!0,hJ(e.JSC$20122_screenService_,k),Xu(e,k),e.JSC$20127_lastLoungeTokenRefreshError_="unknown",OcD(e,c)):(_.zr(Error("ml`"+JSON.stringify(g))),e.onSessionStopped())},5)},N2O=function(e,g){_.JK(e.sessionStatusTimeoutKey_);
e.sessionStatusTimeoutKey_=0;if(g)e.config_.enableCastLoungeToken&&g.loungeToken?g.deviceId?e.screen_&&e.screen_.uuid==g.deviceId||(g.loungeTokenRefreshIntervalMs?ghq(e,{name:e.receiver_.friendlyName,screenId:g.screenId,loungeToken:g.loungeToken,dialId:g.deviceId,screenIdType:"shortLived"},g.loungeTokenRefreshIntervalMs):(_.zr(Error("ol`"+JSON.stringify(g))),CJo(e,g.screenId))):(_.zr(Error("nl`"+JSON.stringify(g))),CJo(e,g.screenId)):CJo(e,g.screenId);else e.onSessionStopped(Error("ll"))},M7g=function(e,
g){_.JK(e.onLoungeTokenTimeoutKey_);
e.onLoungeTokenTimeoutKey_=0;var c=null;if(g)if(g.loungeToken){var k;((k=e.screen_)==null?void 0:k.token)==g.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";else c="noLoungeTokenResponse";c?(e.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(g)+", error: "+c)),e.JSC$20127_lastLoungeTokenRefreshError_=c,OcD(e,3E4)):(B2v(e,g.loungeToken),e.JSC$20127_isInitLoungeToken_=!1,e.JSC$20127_lastLoungeTokenRefreshError_="unknown",OcD(e,g.loungeTokenRefreshIntervalMs))};
xw.prototype.getScreen_=function(e,g,c,k){_.JK(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;QWl(this.JSC$20122_screenService_,this.receiver_.label,e,this.receiver_.friendlyName,(0,_.Ju)(function(I){I?g(I):k>=0?(GQ(this,"Screen "+e+" appears to be offline. "+k+" retries left."),this.getScreenTimeoutKey_=_.k1((0,_.Ju)(this.getScreen_,this,e,g,c,k-1),300)):c(Error("pl"))},this),c)};
var ez7=function(e,g,c,k){_.JK(e.JSC$20127_checkScreenAvailabilityTimeoutKey_);e.JSC$20127_checkScreenAvailabilityTimeoutKey_=0;oj7(e.JSC$20122_screenService_,g,function(I){I||k<0?c(I):e.JSC$20127_checkScreenAvailabilityTimeoutKey_=_.k1(function(){ez7(e,g,c,k-1)},300)})};
xw.prototype.JSC$20124_getCastSession=function(){return this.JSC$20127_session_};
xw.prototype.JSC$20129_onSessionUpdate_=function(e){this.isDisposed()||e||(GQ(this,"Cast session died."),this.onSessionStopped())};
var Sql=function(e){_.JK(e.getScreenTimeoutKey_);e.getScreenTimeoutKey_=0;_.JK(e.JSC$20127_checkScreenAvailabilityTimeoutKey_);e.JSC$20127_checkScreenAvailabilityTimeoutKey_=0;_.JK(e.sessionStatusTimeoutKey_);e.sessionStatusTimeoutKey_=0;_.JK(e.onLoungeTokenTimeoutKey_);e.onLoungeTokenTimeoutKey_=0;_.JK(e.getLoungeTokenTimeoutKey_);e.getLoungeTokenTimeoutKey_=0};var D8=function(e,g,c,k){AQ.call(this,e,g,"DialSession");this.config_=k;this.JSC$20131_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20131_theme_=c;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20131_deferredLaunchDeadlineTimer_=NaN;this.JSC$20131_boundSessionUpdate_=(0,_.Ju)(this.JSC$20133_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20131_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20131_isInitLoungeToken_=!1;this.JSC$20131_lastLoungeTokenRefreshError_="unknown"};
_.Y(D8,AQ);D8.prototype.setCastSession=function(e){this.JSC$20131_session_=e;this.JSC$20131_session_.addUpdateListener(this.JSC$20131_boundSessionUpdate_)};
D8.prototype.launchWithParams=function(e){this.connectData_=e;this.deferredLaunch_()};
D8.prototype.stop=function(){c9l(this);if(this.JSC$20131_session_)this.JSC$20131_session_.stop((0,_.Ju)(this.onSessionStopped,this,null),(0,_.Ju)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
D8.prototype.disposeInternal=function(){c9l(this);this.JSC$20131_session_&&this.JSC$20131_session_.removeUpdateListener(this.JSC$20131_boundSessionUpdate_);this.JSC$20131_session_=null;AQ.prototype.disposeInternal.call(this)};
var koj=function(e){var g;return!!(e.config_.enableDialLoungeToken&&((g=e.JSC$20131_session_)==null?0:g.getDialAppInfo))},J9D=function(e){e.cancelPolling_=e.JSC$20122_screenService_.JSC$20120_getScreenByPollingPairingCode(e.reversePairingCode_,e.receiver_.label,e.receiver_.friendlyName,koj(e),function(g,c){e.cancelPolling_=function(){};
e.JSC$20131_isInitLoungeToken_=!0;Xu(e,g);g.idType=="shortLived"&&c>0&&Ie7(e,c)},function(g){e.cancelPolling_=function(){};
e.onSessionStopped(g)})};
D8.prototype.JSC$20133_onSessionUpdate_=function(e){this.isDisposed()||e||(GQ(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var vhD=function(e){var g={};g.pairingCode=e.reversePairingCode_;g.theme=e.JSC$20131_theme_;bvv()&&(g.env_useStageMdx=1);return _.Oy(g)},wrO=function(e){return new Promise(function(g){e.reversePairingCode_=CFq();
if(e.connectData_){var c=new chrome.cast.DialLaunchResponse(!0,vhD(e));g(c);J9D(e)}else e.deferredLaunch_=function(){_.JK(e.JSC$20131_deferredLaunchDeadlineTimer_);e.deferredLaunch_=function(){};
e.JSC$20131_deferredLaunchDeadlineTimer_=NaN;var k=new chrome.cast.DialLaunchResponse(!0,vhD(e));g(k);J9D(e)},e.JSC$20131_deferredLaunchDeadlineTimer_=_.k1(function(){e.deferredLaunch_()},100)})},L0o=function(e,g,c){e.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(g));
var k=new xc(g);return(new Promise(function(I){qbx(e,k,function(J){J?(e.JSC$20131_isInitLoungeToken_=!0,hJ(e.JSC$20122_screenService_,k),Xu(e,k),Ie7(e,c)):_.zr(Error("rl`"+JSON.stringify(g)));I(J)},5)})).then(function(I){return I?new chrome.cast.DialLaunchResponse(!1):wrO(e)})},r9O=function(e,g){var c=e.launchData_.receiver.label,k=e.receiver_.friendlyName;
return(new Promise(function(I){QWl(e.JSC$20122_screenService_,c,g,k,function(J){J&&J.token&&Xu(e,J);I(J)},function(J){GQ(e,"Failed to get DIAL screen: "+J);
I(null)})})).then(function(I){return I&&I.token?new chrome.cast.DialLaunchResponse(!1):wrO(e)})},qbx=function(e,g,c,k){_.JK(e.JSC$20131_checkScreenAvailabilityTimeoutKey_);
e.JSC$20131_checkScreenAvailabilityTimeoutKey_=0;oj7(e.JSC$20122_screenService_,g,function(I){I||k<0?c(I):e.JSC$20131_checkScreenAvailabilityTimeoutKey_=_.k1(function(){qbx(e,g,c,k-1)},300)})},Ie7=function(e,g){e.info("getDialAppInfoWithTimeout_ "+g);
koj(e)&&(_.JK(e.getDialAppInfoTimeoutKey_),e.getDialAppInfoTimeoutKey_=0,g==0?aeQ(e):e.getDialAppInfoTimeoutKey_=_.k1(function(){aeQ(e)},g))},aeQ=function(e){koj(e)&&e.JSC$20131_session_.getDialAppInfo(function(g){e.info("getDialAppInfo dialLaunchData: "+JSON.stringify(g));
g=g.extraData||{};var c=null;if(g.loungeToken){var k;((k=e.screen_)==null?void 0:k.token)==g.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";c?(e.JSC$20131_lastLoungeTokenRefreshError_=c,Ie7(e,3E4)):(e.JSC$20131_isInitLoungeToken_=!1,e.JSC$20131_lastLoungeTokenRefreshError_="unknown",B2v(e,g.loungeToken),Ie7(e,g.loungeTokenRefreshIntervalMs))},function(g){e.info("getDialAppInfo error: "+g);
e.JSC$20131_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Ie7(e,3E4)})},c9l=function(e){_.JK(e.JSC$20131_checkScreenAvailabilityTimeoutKey_);
e.JSC$20131_checkScreenAvailabilityTimeoutKey_=0;_.JK(e.getDialAppInfoTimeoutKey_);e.getDialAppInfoTimeoutKey_=0;e.cancelPolling_();e.cancelPolling_=function(){};
_.JK(e.JSC$20131_deferredLaunchDeadlineTimer_)};var $w=function(e,g){AQ.call(this,e,g,"ManualSession");this.JSC$20135_deferredLaunchDeadlineTimer_=_.k1((0,_.Ju)(this.launchWithParams,this,null),150)};
_.Y($w,AQ);$w.prototype.stop=function(){this.onSessionStopped()};
$w.prototype.setCastSession=function(){};
$w.prototype.launchWithParams=function(){_.JK(this.JSC$20135_deferredLaunchDeadlineTimer_);this.JSC$20135_deferredLaunchDeadlineTimer_=NaN;var e=D_(this.JSC$20122_screenService_.getScreens(),this.receiver_.label);if(e)Xu(this,e);else this.onSessionStopped(Error("sl"))};
$w.prototype.disposeInternal=function(){_.JK(this.JSC$20135_deferredLaunchDeadlineTimer_);this.JSC$20135_deferredLaunchDeadlineTimer_=NaN;AQ.prototype.disposeInternal.call(this)};var dW=function(e,g){PK.call(this);this.config_=g;this.JSC$20138_screenService_=e;this.JSC$20138_appId_=g.appId||"233637DE";this.JSC$20138_theme_=g.theme||"cl";this.disableDial_=g.disableCastApi||!1;this.forceMirroring_=g.forceMirroring||!1;this.JSC$20138_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Ju)(this.onReceiverAction_,this)};
_.Y(dW,PK);
dW.prototype.init=function(e,g){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest(this.JSC$20138_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.G("desktop_enable_cast_connect")&&(c.androidReceiverCompatible=!0);this.disableDial_||(c.dialRequest=new chrome.cast.DialRequest("YouTube"));var k=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;e=e||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var I=(0,_.Ju)(this.onReceiverUpdated_,this);
c=new chrome.cast.ApiConfig(c,(0,_.Ju)(this.onSessionEstablished_,this),I,k,e);c.customDialLaunchCallback=(0,_.Ju)(this.onDialLaunchRequested_,this);chrome.cast.initialize(c,(0,_.Ju)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),fiS(),this.JSC$20138_screenService_.subscribe("onlineScreenChange",(0,_.Ju)(this.JSC$20140_onScreenChange_,this)),this.customReceivers_=nhz(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Ju)(function(J){this.warn_("Failed to set initial custom receivers: "+
_.X9(J))},this)),this.publish("yt-remote-cast2-availability-change",Rz7(this)),g(!0))},this),(0,_.Ju)(function(J){this.warn_("Failed to initialize API: "+_.X9(J));
g(!1)},this))};
dW.prototype.setConnectedScreenStatus=function(e,g){Yw("Setting connected screen ID: "+e+" -> "+g);if(this.JSC$20138_session_){var c=this.JSC$20138_session_.screen_;if(!e||c&&c.id!=e)Yw("Unsetting old screen status: "+this.JSC$20138_session_.receiver_.friendlyName),fN(this,null)}if(e&&g){if(!this.JSC$20138_session_){e=D_(this.JSC$20138_screenService_.getScreens(),e);if(!e){Yw("setConnectedScreenStatus: Unknown screen.");return}if(e.idType=="shortLived"){Yw("setConnectedScreenStatus: Screen with id type to be short lived.");
return}c=Ehl(this,e);c||(Yw("setConnectedScreenStatus: Connected receiver not custom..."),c=new chrome.cast.Receiver(e.uuid?e.uuid:e.id,e.name),c.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(c),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Ju)(function(k){this.warn_("Failed to set initial custom receivers: "+_.X9(k))},this)));
Yw("setConnectedScreenStatus: new active receiver: "+c.friendlyName);fN(this,new $w(this.JSC$20138_screenService_,c),!0)}this.JSC$20138_session_.setDisplayStatus(g)}else Yw("setConnectedScreenStatus: no screen.")};
var Ehl=function(e,g){return g?H8(e.customReceivers_,function(c){return cbq(g,c.label)},e):null};
dW.prototype.setLaunchParams=function(e){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20138_session_?this.JSC$20138_session_.launchWithParams(e):this.warn_("Setting connection data without a session")};
dW.prototype.JSC$20140_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20138_session_?(this.JSC$20138_session_.stop(),fN(this,null)):Yw("Stopping non-existing session")};
dW.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Ju)(this.onSessionEstablished_,this),(0,_.Ju)(this.onSessionRequestFailed_,this))};
dW.prototype.disposeInternal=function(){this.JSC$20138_screenService_.unsubscribe("onlineScreenChange",(0,_.Ju)(this.JSC$20140_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.UC(_.Q0("yt.mdx.remote.debug.handlers_")||[],D2q);_.Fm(this.JSC$20138_session_);PK.prototype.disposeInternal.call(this)};
var Yw=function(e){j3("Controller",e)};
dW.prototype.warn_=function(e){j3("Controller",e)};
var D2q=function(e){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(e)},Rz7=function(e){return e.hasCastReceiver_||!!e.customReceivers_.length||!!e.JSC$20138_session_},fN=function(e,g,c){g!=e.JSC$20138_session_&&(_.Fm(e.JSC$20138_session_),(e.JSC$20138_session_=g)?(c?e.publish("yt-remote-cast2-receiver-resumed",g.receiver_):e.publish("yt-remote-cast2-receiver-selected",g.receiver_),g.subscribe("sessionScreen",(0,_.Ju)(e.onSessionScreen_,e,g)),g.subscribe("sessionFailed",
function(){return W00(e,g)}),g.screen_?e.publish("yt-remote-cast2-session-change",g.screen_):c&&e.JSC$20138_session_.launchWithParams(null)):e.publish("yt-remote-cast2-session-change",null))},W00=function(e,g){e.JSC$20138_session_==g&&e.publish("yt-remote-cast2-session-failed")};
_.v=dW.prototype;_.v.onSessionScreen_=function(e,g){this.JSC$20138_session_==e&&(g||fN(this,null),this.publish("yt-remote-cast2-session-change",g))};
_.v.onReceiverAction_=function(e,g){if(!this.isDisposed())if(e)switch(e.friendlyName=chrome.cast.unescape(e.friendlyName),Yw("onReceiverAction_ "+e.label+" / "+e.friendlyName+"-- "+g),g){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20138_session_)if(this.JSC$20138_session_.receiver_.label!=e.label)Yw("onReceiverAction_: Stopping active receiver: "+this.JSC$20138_session_.receiver_.friendlyName),this.JSC$20138_session_.stop();else{Yw("onReceiverAction_: Casting to active receiver.");this.JSC$20138_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20138_session_.screen_);break}switch(e.receiverType){case chrome.cast.ReceiverType.CUSTOM:fN(this,new $w(this.JSC$20138_screenService_,e));break;case chrome.cast.ReceiverType.DIAL:fN(this,new D8(this.JSC$20138_screenService_,e,this.JSC$20138_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:fN(this,new xw(this.JSC$20138_screenService_,e,this.config_));break;default:this.warn_("Unknown receiver type: "+e.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20138_session_&&
this.JSC$20138_session_.receiver_.label==e.label?this.JSC$20138_session_.stop():this.warn_("Stopping receiver w/o session: "+e.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.v.onDialLaunchRequested_=function(e){if(this.isDisposed())return Promise.reject(Error("tl"));var g=e.receiver;g.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+g.friendlyName),g.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.JSC$20138_session_?this.JSC$20138_session_.receiver_:null;if(!c||c.label!=g.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+g.friendlyName),Promise.reject(Error("ul"));if(c&&c.label==g.label&&c.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20138_session_.screen_)return Yw("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20138_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+g.friendlyName);fN(this,new D8(this.JSC$20138_screenService_,g,this.JSC$20138_theme_,this.config_))}g=this.JSC$20138_session_;g.launchData_=e;g.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(e=g.launchData_.extraData||{},c=e.screenId||null,koj(g)&&e.loungeToken?e.loungeTokenRefreshIntervalMs?e=L0o(g,{name:g.receiver_.friendlyName,screenId:e.screenId,loungeToken:e.loungeToken,dialId:g.launchData_.receiver.label,screenIdType:"shortLived"},e.loungeTokenRefreshIntervalMs):(_.zr(Error("ql`"+JSON.stringify(e))),e=r9O(g,c)):e=r9O(g,c)):e=wrO(g);return e};
_.v.onSessionEstablished_=function(e){var g=this;if(!this.isDisposed()&&!this.forceMirroring_){Yw("New cast session ID: "+e.sessionId);var c=e.receiver;if(c.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20138_session_)if(c.receiverType==chrome.cast.ReceiverType.CAST)Yw("Got resumed cast session before resumed mdx connection."),c.friendlyName=chrome.cast.unescape(c.friendlyName),fN(this,new xw(this.JSC$20138_screenService_,c,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var k=this.JSC$20138_session_.receiver_,I=D_(this.JSC$20138_screenService_.getScreens(),k.label);I&&cbq(I,c.label)&&k.receiverType!=chrome.cast.ReceiverType.CAST&&c.receiverType==chrome.cast.ReceiverType.CAST&&(Yw("onSessionEstablished_: manual to cast session change "+c.friendlyName),_.Fm(this.JSC$20138_session_),this.JSC$20138_session_=new xw(this.JSC$20138_screenService_,c,this.config_),this.JSC$20138_session_.subscribe("sessionScreen",(0,_.Ju)(this.onSessionScreen_,this,this.JSC$20138_session_)),
this.JSC$20138_session_.subscribe("sessionFailed",function(){return W00(g,g.JSC$20138_session_)}),this.JSC$20138_session_.launchWithParams(null));
this.JSC$20138_session_.setCastSession(e)}}};
_.v.JSC$20140_getCastSession=function(){return this.JSC$20138_session_?this.JSC$20138_session_.JSC$20124_getCastSession():null};
_.v.onSessionRequestFailed_=function(e){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+_.X9(e)),e.code!=chrome.cast.ErrorCode.CANCEL&&fN(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.v.onReceiverUpdated_=function(e){Yw("Receiver availability updated: "+e);if(!this.isDisposed()){var g=Rz7(this);this.hasCastReceiver_=e==chrome.cast.ReceiverAvailability.AVAILABLE;Rz7(this)!=g&&this.publish("yt-remote-cast2-availability-change",Rz7(this))}};
var nhz=function(e){var g=e.JSC$20138_screenService_.JSC$20120_getOnlineScreens(),c=e.JSC$20138_session_&&e.JSC$20138_session_.receiver_;e=_.R4(g,function(k){c&&cbq(k,c.label)&&(c=null);var I=k.uuid?k.uuid:k.id,J=Ehl(this,k);J?(J.label=I,J.friendlyName=k.name):(J=new chrome.cast.Receiver(I,k.name),J.receiverType=chrome.cast.ReceiverType.CUSTOM);return J},e);
c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),e.push(c));return e};
dW.prototype.JSC$20140_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=nhz(this),Yw("Updating custom receivers: "+_.X9(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Ju)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Rz7(this)))};
dW.prototype.setLaunchParams=dW.prototype.setLaunchParams;dW.prototype.setConnectedScreenStatus=dW.prototype.setConnectedScreenStatus;dW.prototype.stopSession=dW.prototype.JSC$20140_stopSession;dW.prototype.getCastSession=dW.prototype.JSC$20140_getCastSession;dW.prototype.requestSession=dW.prototype.requestSession;dW.prototype.init=dW.prototype.init;dW.prototype.dispose=dW.prototype.dispose;var bHo=_.Ti(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),Ovv=[],Q6O=_.jw(bHo);var hzv=function(e){e.audioTrackId=null;e.trackData=null;e.playerState=-1;e.hasPrevious=!1;e.hasNext=!1;e.playerTime_=0;e.playerTimeAt_=_.QG();e.seekableStart_=0;e.seekableEnd_=0;e.duration_=0;e.loadedTime=0;e.liveIngestionTime_=NaN;e.isLive_=!1};
_.v=zh.prototype;
_.v.reset=function(e){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;e&&(this.index=e.index,this.listId=e.listId,this.videoId=e.videoId,this.playerState=e.playerState,this.volume=e.volume,this.muted=e.muted,this.audioTrackId=e.audioTrackId,this.trackData=e.trackData,this.hasPrevious=e.hasPrevious,this.hasNext=e.hasNext,this.playerTime_=e.playerTime,this.playerTimeAt_=e.playerTimeAt,this.seekableStart_=e.seekableStart,this.seekableEnd_=e.seekableEnd,this.duration_=e.duration,this.loadedTime=
e.loadedTime,this.liveIngestionTime_=e.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.v.stopPlayer=function(){this.index=-1;this.videoId="";hzv(this)};
_.v.isPlaying=function(){return this.playerState==1};
_.v.isBuffering=function(){return this.playerState==3};
_.v.isAdPlaying=function(){return this.playerState==1081};
var j8=function(e,g){e.playerTime_=g;e.playerTimeAt_=_.QG()},Xrx=function(e){switch(e.playerState){case 1:case 1081:return(_.QG()-e.playerTimeAt_)/1E3+e.playerTime_;
case -1E3:return 0}return e.playerTime_};
zh.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.QG()-this.playerTimeAt_)/1E3:0):this.duration_};
var Gol=function(e,g,c){var k=e.videoId;e.videoId=g;e.index=c;g!=k&&hzv(e)},xPX=function(e){var g={};
g.index=e.index;g.listId=e.listId;g.videoId=e.videoId;g.playerState=e.playerState;g.volume=e.volume;g.muted=e.muted;g.audioTrackId=e.audioTrackId;g.trackData=_.n0.unsafeClone(e.trackData);g.hasPrevious=e.hasPrevious;g.hasNext=e.hasNext;g.playerTime=e.playerTime_;g.playerTimeAt=e.playerTimeAt_;g.seekableStart=e.seekableStart_;g.seekableEnd=e.seekableEnd_;g.duration=e.duration_;g.loadedTime=e.loadedTime;g.liveIngestionTime=e.liveIngestionTime_;return g};
zh.prototype.clone=function(){return new zh(xPX(this))};var oQ=function(e,g){PK.call(this);var c=this;this.state_=0;this.connection_=e;this.contextSubscriptions_=[];this.actionQueue_=new ZO0;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Ju)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Ju)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Ju)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Ju)(this.onCloudviewAvailabilityChange_,this);var k=0;e?(k=e.getProxyState(),
k!=3&&(e.subscribe("proxyStateChange",this.setState_,this),DP0(this))):k=3;k!=0&&(g?this.setState_(k):_.k1(function(){c.setState_(k)},0));
(e=gy0())&&$Pj(this,e);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.Y(oQ,PK);oQ.prototype.getState=function(){return this.state_};
oQ.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
oQ.prototype.reconnect=function(){this.connection_.reconnect()};
var iz=function(e){return new zh(e.connection_.getPlayerContextData())};
_.v=oQ.prototype;_.v.play=function(){PS(this)?(this.castMedia_?this.castMedia_.play(null,_.aX,YbX(this,"play")):mT(this,"play"),feD(this,1,Xrx(iz(this))),this.publish("remotePlayerChange")):pN(this,this.play)};
_.v.pause=function(){PS(this)?(this.castMedia_?this.castMedia_.pause(null,_.aX,YbX(this,"pause")):mT(this,"pause"),feD(this,2,Xrx(iz(this))),this.publish("remotePlayerChange")):pN(this,this.pause)};
_.v.seekTo=function(e){if(PS(this)){if(this.castMedia_){var g=iz(this),c=new chrome.cast.media.SeekRequest;c.currentTime=e;g.isPlaying()||g.isBuffering()?c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(c,_.aX,YbX(this,"seekTo",{newTime:e}))}else mT(this,"seekTo",{newTime:e});feD(this,3,e);this.publish("remotePlayerChange")}else pN(this,_.g$(this.seekTo,e))};
_.v.stop=function(){if(PS(this)){this.castMedia_?this.castMedia_.stop(null,_.aX,YbX(this,"stopVideo")):mT(this,"stopVideo");var e=iz(this);e.stopPlayer();TQ(this,e);this.publish("remotePlayerChange")}else pN(this,this.stop)};
_.v.setVolume=function(e,g){if(PS(this)){var c=iz(this);if(this.castSession_){if(c.volume!=e){var k=Math.round(e)/100;this.castSession_.setReceiverVolumeLevel(k,(0,_.Ju)(function(){iG("set receiver volume: "+k)},this),(0,_.Ju)(function(){this.warn_("failed to set receiver volume.")},this))}c.muted!=g&&this.castSession_.setReceiverMuted(g,(0,_.Ju)(function(){iG("set receiver muted: "+g)},this),(0,_.Ju)(function(){this.warn_("failed to set receiver muted.")},this))}else{var I={volume:e,
muted:g};c.volume!=-1&&(I.delta=e-c.volume);mT(this,"setVolume",I)}c.muted=g;c.volume=e;TQ(this,c)}else pN(this,_.g$(this.setVolume,e,g))};
_.v.setAudioTrack=function(e,g){PS(this)?(g=g.getLanguageInfo().getId(),mT(this,"setAudioTrack",{videoId:e,audioTrackId:g}),e=iz(this),e.audioTrackId=g,TQ(this,e)):pN(this,_.g$(this.setAudioTrack,e,g))};
_.v.addVideo=function(e){PS(this)?mT(this,"addVideo",{videoId:e}):pN(this,_.g$(this.addVideo,e))};
_.v.addPlaylist=function(e){PS(this)?mT(this,"addVideos",{listId:e}):pN(this,_.g$(this.addPlaylist,e))};
_.v.addVideos=function(e){e.length==0?this.warn_("Ignore add videos request due to empty list"):PS(this)?mT(this,"addVideos",{videoIds:e.join(",")}):pN(this,_.g$(this.addVideos,e))};
_.v.JSC$20150_removeVideo=function(e){PS(this)?mT(this,"removeVideo",{videoId:e}):pN(this,_.g$(this.JSC$20150_removeVideo,e))};
_.v.JSC$20150_insertVideo=function(e){PS(this)?mT(this,"insertVideo",{videoId:e}):pN(this,_.g$(this.JSC$20150_insertVideo,e))};
_.v.playVideo=function(e,g,c,k,I,J,q){k=k===void 0?null:k;I=I===void 0?null:I;J=J===void 0?null:J;q=q===void 0?null:q;var L=iz(this),n={videoId:e};c!==void 0&&(n.currentIndex=c);Gol(L,e,c||0);g!==void 0&&(j8(L,g),n.currentTime=g);k&&(n.listId=k);I&&(n.playerParams=I);J&&(n.clickTrackingParams=J);q&&(n.locationInfo=_.X9(q));mT(this,"setPlaylist",n);k||TQ(this,L)};
_.v.nextVideo=function(e,g){if(PS(this)){if(e&&g){var c=iz(this);Gol(c,e,g);TQ(this,c)}mT(this,"next")}else pN(this,_.g$(this.nextVideo,e,g))};
_.v.clearPlaylist=function(){if(PS(this)){mT(this,"clearPlaylist");var e=iz(this);e.reset();TQ(this,e);this.publish("remotePlayerChange")}else pN(this,this.clearPlaylist)};
_.v.dispose=function(){if(this.state_!=3){var e=this.state_;this.state_=3;this.publish("proxyStateChange",e,this.state_)}PK.prototype.dispose.call(this)};
_.v.disposeInternal=function(){jco(this);this.connection_=null;this.actionQueue_.clear();$Pj(this,null);PK.prototype.disposeInternal.call(this)};
var DP0=function(e){_.o7("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(g){this.contextSubscriptions_.push(this.connection_.subscribe(g,_.g$(this.onProxyEvent_,g),this))},e)},jco=function(e){_.o7(e.contextSubscriptions_,function(g){this.connection_.unsubscribeByKey(g)},e);
e.contextSubscriptions_.length=0},PS=function(e){return e.getState()==1},pN=function(e,g){e.actionQueue_.getCount()<50&&e.actionQueue_.enqueue(g)},feD=function(e,g,c){var k=iz(e);
j8(k,c);k.playerState!=-1E3&&(k.playerState=g);TQ(e,k)},mT=function(e,g,c){e.connection_.sendMessage(g,c)},TQ=function(e,g){jco(e);
e.connection_.setPlayerContextData(xPX(g));DP0(e)};
oQ.prototype.setState_=function(e){if((e!=this.state_||e==2)&&this.state_!=3&&e!=0){var g=this.state_;this.state_=e;this.publish("proxyStateChange",g,e);if(e==1)for(;!this.actionQueue_.isEmpty();)e=this.actionQueue_,NCg(e),e.front_.pop().apply(this);else e==3&&this.dispose()}};
oQ.prototype.onProxyEvent_=function(e,g){this.publish(e,g)};
var $Pj=function(e,g){e.castSession_&&(e.castSession_.removeUpdateListener(e.boundCastStatusListener_),e.castSession_.removeMediaListener(e.boundCastMediaListener_),e.onCastMediaChange_(null));e.castSession_=g;if(e.castSession_&&(iG("Setting cast session: "+e.castSession_.sessionId),e.castSession_.addUpdateListener(e.boundCastStatusListener_),e.castSession_.addMediaListener(e.boundCastMediaListener_),e.castSession_.media.length))e.onCastMediaChange_(e.castSession_.media[0])};
oQ.prototype.onCastStatusUpdate_=function(e){if(!e)this.onCastMediaChange_(null),$Pj(this,null);else if(this.castSession_.receiver.volume){e=this.castSession_.receiver.volume;var g=iz(this),c=Math.round(100*e.level||0);if(g.volume!=c||g.muted!=e.muted)iG("Cast volume update: "+e.level+(e.muted?" muted":"")),g.volume=c,g.muted=!!e.muted,TQ(this,g)}};
oQ.prototype.onCastMediaChange_=function(e){iG("Cast media: "+!!e);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=e)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),iHo(this),this.publish("remotePlayerChange")};
var iHo=function(e){var g=e.castMedia_.media,c=e.castMedia_.customData;if(g&&c){var k=iz(e);g.contentId!=k.videoId&&iG("Cast changing video to: "+g.contentId);k.videoId=g.contentId;k.playerState=c.playerState;j8(k,e.castMedia_.getEstimatedTime());TQ(e,k)}else iG("No cast media video. Ignoring state update.")};
oQ.prototype.onCastMediaUpdate_=function(e){if(e)iHo(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
oQ.prototype.onCloudviewAvailabilityChange_=function(){var e=gy0();e&&$Pj(this,e)};
oQ.prototype.warn_=function(e){j3("CP",e)};
var YbX=function(e,g,c){return(0,_.Ju)(function(k){this.warn_("Failed to "+g+" with cast v2 channel. Error code: "+k.code);k.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+g+" using MDx browser channel."),mT(this,g,c))},e)};var Z_=function(e,g,c,k){k=k===void 0?!1:k;PK.call(this);var I=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$20155_http_=e;this.enableConnectWithInitialState_=k;this.listeners_.push(_.tt(window,"beforeunload",function(){I.JSC$20158_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new zh;this.currentScreenId_=g.id;this.currentScreenIdType_=g.idType;this.channelService=x27(this.JSC$20155_http_,c,this.JSC$20158_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){P_o(I)});
this.channelService.listen("channelClosed",function(){lz("Channel closed");isNaN(I.connectTimerId_)?Ekg(!0):Ekg();I.dispose()});
this.channelService.listen("channelError",function(J){Ekg();isNaN(I.getReconnectTimeout_())?(J==1&&I.currentScreenIdType_=="shortLived"&&I.publish("browserChannelAuthError",J),lz("Channel error: "+J+" without reconnection"),I.dispose()):(I.reconnecting_=!0,lz("Channel error: "+J+" with reconnection in "+I.getReconnectTimeout_()+" ms"),mPX(I,2))});
this.channelService.listen("channelMessage",function(J){prz(I,J)});
this.channelService.setLoungeToken(g.token);this.subscribe("remoteQueueChange",function(){var J=I.playerContext_.videoId;JbS()&&_.wp("yt-remote-session-video-id",J)})};
_.Y(Z_,PK);
Z_.prototype.connect=function(e,g){if(g){var c=g.listId,k=g.videoId,I=g.videoIds,J=g.playerParams,q=g.clickTrackingParams,L=g.index,n={videoId:k},R=g.currentTime,W=g.locationInfo;g=g.loopMode;R!==void 0&&(n.currentTime=R<=5?0:R);J&&(n.playerParams=J);W&&(n.locationInfo=W);q&&(n.clickTrackingParams=q);c&&(n.listId=c);I&&I.length>0&&(n.videoIds=I.join(","));L!==void 0&&(n.currentIndex=L);this.enableConnectWithInitialState_&&(n.loopMode=g||"LOOP_MODE_OFF");c&&(this.playerContext_.listId=c);this.playerContext_.videoId=
k;this.playerContext_.index=L||0;this.playerContext_.state=3;j8(this.playerContext_,R);this.autoplayMode_="UNSUPPORTED";c=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";lz("Connecting with "+c+" and params: "+_.X9(n));this.channelService.connect({method:c,params:_.X9(n)},e,rbM())}else lz("Connecting without params"),this.channelService.connect({},e,rbM());Tco(this)};
Z_.prototype.setLoungeToken=function(e){this.channelService.setLoungeToken(e)};
Z_.prototype.dispose=function(){this.isDisposed()||(_.BQ("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),mPX(this,3));PK.prototype.dispose.call(this)};
Z_.prototype.disposeInternal=function(){leO(this);A9O(this);scv(this);_.JK(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.JK(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.tUg(this.listeners_);this.listeners_.length=0;this.channelService.dispose();PK.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var F0l=function(e){return H8(e.connectedDevices_,function(g){return g.type=="LOUNGE_SCREEN"})},lz=function(e){j3("conn",e)},mPX=function(e,g){e.publish("proxyStateChange",g)},Tco=function(e){e.connectTimerId_=_.k1(function(){lz("Connecting timeout");
e.JSC$20158_disconnect_(1)},2E4)},leO=function(e){_.JK(e.connectTimerId_);
e.connectTimerId_=NaN},scv=function(e){_.JK(e.reconnectedCheckScreenTimeout_);
e.reconnectedCheckScreenTimeout_=NaN},dPS=function(e){A9O(e);
e.playingSyncTimerId_=_.k1(function(){uOX(e,"getNowPlaying")},2E4)},A9O=function(e){_.JK(e.playingSyncTimerId_);
e.playingSyncTimerId_=NaN},P_o=function(e){lz("Channel opened");
e.reconnecting_&&(e.reconnecting_=!1,scv(e),e.reconnectedCheckScreenTimeout_=_.k1(function(){lz("Timing out waiting for a screen.");e.JSC$20158_disconnect_(1)},15E3))},HHD=function(e,g){var c=null;
if(g){var k=F0l(e);k&&(c={clientName:k.clientName,deviceMake:k.brand,deviceModel:k.model,osVersion:k.osVersion})}_.BQ("yt.mdx.remote.remoteClient_",c);g&&(leO(e),scv(e));c=e.channelService.isChannelOpened()&&isNaN(e.connectTimerId_);g==c?g&&(mPX(e,1),uOX(e,"getSubtitlesTrack")):g?(e.getOtherConnectedRemoteId_()&&e.playerContext_.reset(),mPX(e,1),uOX(e,"getNowPlaying"),zzo(e)):e.JSC$20158_disconnect_(1)},QcD=function(e,g){var c=g.params.videoId;
delete g.params.videoId;c==e.playerContext_.videoId&&(_.n0.isEmpty(g.params)?e.playerContext_.trackData=null:e.playerContext_.trackData=g.params,e.publish("remotePlayerChange"))},UPq=function(e,g,c){var k=g.params.videoId||g.params.video_id,I=parseInt(g.params.currentIndex,10);
e.playerContext_.listId=g.params.listId||e.playerContext_.listId;Gol(e.playerContext_,k,I);e.publish("remoteQueueChange",c)},ohD=function(e,g){g.params=g.params||{};
UPq(e,g,"NOW_PLAYING_MAY_CHANGE");e.onStateChange_(g);e.publish("autoplayDismissed")};
Z_.prototype.onStateChange_=function(e){var g=parseInt(e.params.currentTime||e.params.current_time,10);j8(this.playerContext_,isNaN(g)?0:g);g=parseInt(e.params.state,10);g=isNaN(g)?-1:g;g==-1&&this.playerContext_.playerState==-1E3&&(g=-1E3);this.playerContext_.playerState=g;g=Number(e.params.loadedTime);this.playerContext_.loadedTime=isNaN(g)?0:g;g=Number(e.params.duration);this.playerContext_.duration_=isNaN(g)?0:g;g=this.playerContext_;var c=Number(e.params.liveIngestionTime);g.liveIngestionTime_=
c;g.isLive_=isNaN(c)?!1:!0;g=this.playerContext_;c=Number(e.params.seekableStartTime);e=Number(e.params.seekableEndTime);g.seekableStart_=isNaN(c)?0:c;g.seekableEnd_=isNaN(e)?0:e;this.playerContext_.playerState==1?dPS(this):A9O(this);this.publish("remotePlayerChange")};
Z_.prototype.onAdStateChange_=function(e){if(this.playerContext_.playerState!=-1E3){var g=1085;switch(parseInt(e.params.adState,10)){case 1:g=1081;break;case 2:g=1084;break;case 0:g=1083}this.playerContext_.playerState=g;e=parseInt(e.params.currentTime,10);j8(this.playerContext_,isNaN(e)?0:e);this.publish("remotePlayerChange")}};
var ZHD=function(e,g){var c=g.params.muted=="true";e.playerContext_.volume=parseInt(g.params.volume,10);e.playerContext_.muted=c;e.publish("remotePlayerChange")},VOj=function(e,g){e.autoplayVideoId_=g.params.videoId;
e.publish("nowAutoplaying",parseInt(g.params.timeout,10))},tOq=function(e,g){e.autoplayVideoId_=g.params.videoId||null;
e.publish("autoplayUpNext",e.autoplayVideoId_)},Bc0=function(e,g){e.autoplayMode_=g.params.autoplayMode;
e.publish("autoplayModeChange",e.autoplayMode_);e.autoplayMode_=="DISABLED"&&e.publish("autoplayDismissed")},Ncl=function(e,g){var c=g.params.hasNext=="true";
e.playerContext_.hasPrevious=g.params.hasPrevious=="true";e.playerContext_.hasNext=c;e.publish("previousNextChange")};
Z_.prototype.isCapabilitySupportedOnConnectedDevices_=function(e){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var g=_.w(this.connectedDevices_),c=g.next();!c.done;c=g.next())if(!c.value.capabilities.has(e))return!1;return!0};
var prz=function(e,g){g=g.message;g.params?lz("Received: action="+g.action+", params="+_.X9(g.params)):lz("Received: action="+g.action+" {}");switch(g.action){case "loungeStatus":g=_.L_(g.params.devices);e.connectedDevices_=_.R4(g,function(k){return new WS(k)});
g=!!H8(e.connectedDevices_,function(k){return k.type=="LOUNGE_SCREEN"});
HHD(e,g);g=e.isCapabilitySupportedOnConnectedDevices_("mlm");e.publish("multiStateLoopEnabled",g);break;case "loungeScreenDisconnected":Rkq(e.connectedDevices_,function(k){return k.type=="LOUNGE_SCREEN"});
HHD(e,!1);break;case "remoteConnected":var c=new WS(_.L_(g.params.device));H8(e.connectedDevices_,function(k){return k.equals(c)})||_.TVg(e.connectedDevices_,c);
break;case "remoteDisconnected":c=new WS(_.L_(g.params.device));Rkq(e.connectedDevices_,function(k){return k.equals(c)});
break;case "gracefulDisconnect":break;case "playlistModified":UPq(e,g,"QUEUE_MODIFIED");break;case "nowPlaying":ohD(e,g);break;case "onStateChange":e.onStateChange_(g);break;case "onAdStateChange":e.onAdStateChange_(g);break;case "onVolumeChanged":ZHD(e,g);break;case "onSubtitlesTrackChanged":QcD(e,g);break;case "nowAutoplaying":VOj(e,g);break;case "autoplayDismissed":e.publish("autoplayDismissed");break;case "autoplayUpNext":tOq(e,g);break;case "onAutoplayModeChanged":Bc0(e,g);break;case "onHasPreviousNextChanged":Ncl(e,
g);break;case "requestAssistedSignIn":e.publish("assistedSignInRequested",g.params.authCode);break;case "onLoopModeChanged":e.publish("loopModeChange",g.params.loopMode);break;default:lz("Unrecognized action: "+g.action)}};
_.v=Z_.prototype;_.v.getProxyState_=function(){var e=3;this.isDisposed()||(e=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(e=1):e=2);return e};
_.v.JSC$20158_disconnect_=function(e){lz("Disconnecting with "+e);_.BQ("yt.mdx.remote.remoteClient_",null);leO(this);this.publish("beforeDisconnect",e);e==1&&Ekg();this.channelService.disconnect(e);this.dispose()};
_.v.getPlayerContextData_=function(){var e=this.playerContext_;this.clientVideoId_&&(e=this.playerContext_.clone(),Gol(e,this.clientVideoId_,e.index));return xPX(e)};
_.v.setPlayerContextData_=function(e){var g=this,c=new zh(e);c.videoId&&c.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=c.videoId,_.JK(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.k1(function(){if(g.clientVideoId_){var I=g.clientVideoId_;g.clientVideoId_=null;g.playerContext_.videoId!=I&&uOX(g,"getNowPlaying")}},5E3));
var k=[];this.playerContext_.listId==c.listId&&this.playerContext_.videoId==c.videoId&&this.playerContext_.index==c.index||k.push("remoteQueueChange");this.playerContext_.playerState==c.playerState&&this.playerContext_.volume==c.volume&&this.playerContext_.muted==c.muted&&Xrx(this.playerContext_)==Xrx(c)&&_.X9(this.playerContext_.trackData)==_.X9(c.trackData)||k.push("remotePlayerChange");this.playerContext_.reset(e);_.o7(k,function(I){this.publish(I)},this)};
_.v.getOtherConnectedRemoteId_=function(){var e=this.channelService.getDeviceId(),g=H8(this.connectedDevices_,function(c){return c.type=="REMOTE_CONTROL"&&c.id!=e});
return g?g.id:""};
_.v.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.v.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.v.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.v.JSC$20158_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var zzo=function(e){_.JK(e.idleDisconnectTimerId_);e.idleDisconnectTimerId_=_.k1(function(){e.JSC$20158_disconnect_(1)},864E5)},uOX=function(e,g,c){c?lz("Sending: action="+g+", params="+_.X9(c)):lz("Sending: action="+g);
e.channelService.sendMessage(g,c)};
Z_.prototype.sendMessageWithUserAction_=function(e,g){uOX(this,e,g);zzo(this)};
Z_.prototype.JSC$20158_getXsrfToken_=function(){var e=_.Lf.get("SAPISID","")||_.Lf.get("__Secure-1PAPISID",void 0)||"",g=_.Lf.get("__Secure-3PAPISID","")||"";if(!e&&!g)return"";e=_.MU(_.vz(e),2);g=_.MU(_.vz(g),2);return _.MU(_.vz(","+e+","+g),2)};
Z_.prototype.subscribe=Z_.prototype.subscribe;Z_.prototype.unsubscribeByKey=Z_.prototype.unsubscribeByKey;Z_.prototype.getProxyState=Z_.prototype.getProxyState_;Z_.prototype.disconnect=Z_.prototype.JSC$20158_disconnect_;Z_.prototype.getPlayerContextData=Z_.prototype.getPlayerContextData_;Z_.prototype.setPlayerContextData=Z_.prototype.setPlayerContextData_;Z_.prototype.getOtherConnectedRemoteId=Z_.prototype.getOtherConnectedRemoteId_;Z_.prototype.getReconnectTimeout=Z_.prototype.getReconnectTimeout_;
Z_.prototype.getAutoplayMode=Z_.prototype.getAutoplayMode_;Z_.prototype.getAutoplayVideoId=Z_.prototype.getAutoplayVideoId_;Z_.prototype.reconnect=Z_.prototype.JSC$20158_reconnect_;Z_.prototype.sendMessage=Z_.prototype.sendMessageWithUserAction_;Z_.prototype.getXsrfToken=Z_.prototype.JSC$20158_getXsrfToken_;Z_.prototype.isCapabilitySupportedOnConnectedDevices=Z_.prototype.isCapabilitySupportedOnConnectedDevices_;var jHo=function(e){m9.call(this,"ScreenServiceProxy");this.instance_=e;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Ju)(this.JSC$20161_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Ju)(this.onOnlineScreenChange_,this)))};
_.Y(jHo,m9);_.v=jHo.prototype;_.v.getScreens=function(e){return this.instance_.$_gs(e)};
_.v.contains=function(e){return!!this.instance_.$_c(e)};
_.v.get=function(e){return this.instance_.$_g(e)};
_.v.start=function(){this.instance_.$_st()};
_.v.add=function(e,g,c){this.instance_.$_a(e,g,c)};
_.v.remove=function(e,g,c){this.instance_.$_r(e,g,c)};
_.v.updateName=function(e,g,c,k){this.instance_.$_un(e,g,c,k)};
_.v.disposeInternal=function(){for(var e=this.subscriptionKeys_.length,g=0;g<e;++g)this.instance_.$_ubk(this.subscriptionKeys_[g]);this.subscriptionKeys_.length=0;this.instance_=null;m9.prototype.disposeInternal.call(this)};
_.v.JSC$20161_onScreenChange_=function(){this.publish("screenChange")};
_.v.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
lG.prototype.$_st=lG.prototype.start;lG.prototype.$_gspc=lG.prototype.JSC$20120_getScreenByPairingCode;lG.prototype.$_gsppc=lG.prototype.JSC$20120_getScreenByPollingPairingCode;lG.prototype.$_c=lG.prototype.contains;lG.prototype.$_g=lG.prototype.get;lG.prototype.$_a=lG.prototype.add;lG.prototype.$_un=lG.prototype.updateName;lG.prototype.$_r=lG.prototype.remove;lG.prototype.$_gs=lG.prototype.getScreens;lG.prototype.$_gos=lG.prototype.JSC$20120_getOnlineScreens;lG.prototype.$_s=lG.prototype.subscribe;
lG.prototype.$_ubk=lG.prototype.unsubscribeByKey;var GJM=null,P6O=!1,J4j=null,HK=null,f37=null,Q$=[];var Sb0=new _.pt("yt-menu"),y9g=function(){},OH7=function(e,g,c){e=g=="right-click"?c.rightClickMenuPopupHint:c.menuPopupHint;
if(!(K0j(g)>10))return g=g||"default",Sb0.set(g+"-impression",K0j(g)+1),e},K0j=function(e){return parseInt(Sb0.get((e||"default")+"-impression")||0,10)};
_.H2(y9g);var MOM=function(){this.contexts_=new WeakMap;this.JSC$20167_networkService_=this.activeContext_=null},C_0=function(e,g,c){var k=e.contexts_.get(g);
k||(k=new k4X(e.JSC$20167_networkService_),e.contexts_.set(g,k));e.activeContext_=k;c&&e.activeContext_.reset();e.activeContext_.start();return e.activeContext_};var V$=_.Dzt(function(e){var g=_.C0("DIV");e&&(g.className=e);g.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";e=_.C0("DIV");_.nrn(e,"200px","200px");g.appendChild(e);document.body.appendChild(g);e=g.offsetWidth-g.clientWidth;_.ev(g);return e});var BK=_.MN("kevlar_watch_page_horizontal_margin",24),uE7=_.MN("kevlar_watch_page_columns_top_padding",24),pOM=426+BK*2,tQ=_.MN("kevlar_watch_two_column_width_threshold",1E3),l3X=BK*2,A4S=_.MN("kevlar_watch_secondary_width",402),FsQ=_.MN("kevlar_watch_max_player_width",1280),dHv=_.MN("kevlar_watch_flexy_metadata_height",136),sHQ=l3X+310+BK,TiX=l3X+360+BK;var AJ=function(){};
AJ.prototype.enqueue=function(){var e=this,g;return _.r(function(c){if(e.isCounterfactual())return(g=e.getCounterfactualData())&&e.shouldLogCounterfactualImpression()&&e.sendImpressionEndpoints(g),c.return();e.doEnqueue();_.Uh(c)})};
AJ.prototype.sendImpressionEndpoints=function(e){_.dF.getInstance().triggerOptionalAction("yt-service-request",{},e[0])};var sA=function(e,g){this.renderer=e;this.page=g};
_.Y(sA,AJ);sA.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
sA.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
sA.prototype.shouldLogCounterfactualImpression=function(){return!0};
sA.prototype.doEnqueue=function(){var e=_.s1(this.page);e&&e.pause();this.renderer.impressionCommand&&_.dF.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Rg(_.dF.getInstance(),[this.renderer.promoCommand],this.page)};var e47=function(e,g){this.renderer=e;this.resolver=_.i6();this.JSC$20179_enforcementCounter=new _.$zI;g?this.JSC$20179_playerManager=_.s1(g):this.JSC$20179_playerManager=null;_.So(1,!0)};
_.Y(e47,AJ);_.v=e47.prototype;_.v.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var e=[];this.renderer.impressionEndpoints.forEach(function(g){(g=_.WT(g))&&e.push(g)});
return e}};
_.v.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.v.shouldLogCounterfactualImpression=function(){var e=_.cnp();e?(this.JSC$20179_enforcementCounter.increment("POPUP"),_.So(3)):_.So(2);return e};
_.v.cancel=function(){this.resolver.promise.cancel()};
_.v.doEnqueue=function(){var e=this;_.cnp()?(this.JSC$20179_enforcementCounter.increment("POPUP"),_.So(3),g0Q(this)):this.JSC$20179_playerManager?(this.resolver.promise.then(function(){g0Q(e)}),c6q(this.resolver,this.JSC$20179_playerManager)):_.So(2)};
var c6q=function(e,g){var c=_.i6();g.getPlayerPromise().then(function(k){c.resolve(k)});
c.promise.then(function(k){k.addEventListener("onAbnormalityDetected",e.resolve);_.WN(e.promise,function(){k.removeEventListener("onAbnormalityDetected",e.resolve)})});
e.promise.thenCatch(function(){c.promise.cancel()})},g0Q=function(e){_.So(3);
var g={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:e.renderer}};g=_.dF.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:g},{});Promise.all(g).then(function(){kYv();e.JSC$20179_playerManager&&e.JSC$20179_playerManager.pause()})},kYv=function(){Pcj(function(e,g){u7g(e,g);
e===0?_.So(7):_.So(4)})};var Ilv=function(e,g){this.renderer=e;this.page=g;this.resolver=_.i6()};
_.Y(Ilv,AJ);_.v=Ilv.prototype;_.v.cancel=function(){this.resolver.promise.cancel()};
_.v.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.v.isCounterfactual=function(){return!this.renderer.isVisible};
_.v.shouldLogCounterfactualImpression=function(){return!0};
_.v.doEnqueue=function(){var e=this;this.resolver.promise.then(function(){var c={popup:{mealbarPromoRenderer:e.renderer},popupType:"MEALBAR"};_.dF.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var g=_.s1(this.page);g&&J6j(this.resolver,g)}break;default:this.resolver.resolve()}};
var J6j=function(e,g){var c=_.i6();g.getPlayerPromise().then(function(k){c.resolve(k)});
c.promise.then(function(k){k.addEventListener("onAdEnd",e.resolve);_.WN(e.promise,function(){k.removeEventListener("onAdEnd",e.resolve)})});
e.promise.thenCatch(function(){c.promise.cancel()})};var v00=function(e,g){this.renderer=e;this.page=g};
_.Y(v00,AJ);_.v=v00.prototype;_.v.cancel=function(){this.JSC$20187_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20187_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20187_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.v.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.v.isCounterfactual=function(){return!this.renderer.isVisible};
_.v.shouldLogCounterfactualImpression=function(){return!0};
_.v.doEnqueue=function(){var e=this,g,c;((g=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(c=g.playbackUpsellDialogTriggerConditionData)==null?void 0:c.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20187_downloadedVideosCountSelectorUnsubscriber=_.kq(_.Tt(),$og,function(k,I){k>I&&(w5O(e),e.cancel())}):w5O(this)};
var w5O=function(e){var g={popup:{upsellDialogRenderer:e.renderer},popupType:"MODAL"};_.dF.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:g},{});(e=_.s1(e.page))&&e.pause()};var Fu={},qkj=(Fu.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Fu.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Fu.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Fu.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Fu.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Fu.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Fu.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Fu),Lcg=function(e,g){this.renderer=e;this.targetManager=
g};
_.Y(Lcg,AJ);_.v=Lcg.prototype;_.v.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20194_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20194_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20194_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.v.getCounterfactualData=function(){if(this.isCounterfactual()){var e;return(e=this.renderer.promoConfig)==null?void 0:e.impressionEndpoints}};
_.v.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.v.shouldLogCounterfactualImpression=function(){return!0};
_.v.doEnqueue=function(){var e=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20194_downloadedVideosCountSelectorUnsubscriber=_.kq(_.Tt(),$og,function(g,c){e.renderer.targetId&&g>c&&(Mpx(e.targetManager,e.renderer.targetId,r67(e)),e.cancel())});
break;default:Mpx(this.targetManager,this.renderer.targetId,r67(this))}};
var r67=function(e){var g;if((g=e.renderer.suggestedPosition)==null?0:g.type)var c=qkj[e.renderer.suggestedPosition.type];c||(c="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:e.renderer},popupType:"HINT",position:c}}};var alS=function(){this.previousPage=null},n0S;
alS.prototype.registerPromoCommand=function(e,g){R4M(this,void 0,void 0,_.x(e.roadblock,GZS),void 0,void 0,g)};
var R4M=function(e,g,c,k,I,J,q){e.previousPage!==q&&e.pendingTooltipPromo&&e.pendingTooltipPromo.cancel();e.previousPage=q;I?(e.pendingEnforcementPromo&&e.pendingEnforcementPromo.cancel(),e.pendingEnforcementPromo=new e47(I,q),e.pendingEnforcementPromo.enqueue()):J?(e.pendingCommandWrapperPromo=new sA(J,q),e.pendingCommandWrapperPromo.enqueue()):k?(e.pendingRoadblockPromo&&e.pendingRoadblockPromo.cancel(),e.pendingRoadblockPromo=new v00(k,q),e.pendingRoadblockPromo.enqueue()):g?(e.pendingMealbarPromo&&
e.pendingMealbarPromo.cancel(),e.pendingMealbarPromo=new Ilv(g,q),e.pendingMealbarPromo.enqueue()):c&&(e.pendingTooltipPromo&&e.pendingTooltipPromo.cancel(),e.pendingTooltipPromo=new Lcg(c,_.MG()),e.pendingTooltipPromo.enqueue())},E0Q=function(){n0S||(n0S=new alS);
return n0S};var Wcj=function(){this.horizontal=!1},biz=function(e,g){e.horizontal=g};
Wcj.prototype.position=function(e,g,c,k){k=k===void 0?1:k;e=this.delta(e)*k+g;k=Math.max(g,c);return e>=Math.min(g,c)&&e<=k?e:c};
Wcj.prototype.axis=function(e){e=this.direction(e);return e==="up"||e==="down"?"Y":"X"};var uz=function(e,g,c){g=g===void 0?_.Co():g;this.target=e;this.manager=g;this.touchAction=c;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
uz.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(_.KY(this.events)));for(var e=_.w(this.events),g=e.next();!g.done;g=e.next())this.listen(g.value)}};
uz.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.KY(this.events)));for(var e=_.w(this.events),g=e.next();!g.done;g=e.next())this.unlisten(g.value)}};
uz.prototype.listen=function(e){this.eventMap[e]&&this.target.addEventListener(e,this.eventMap[e])};
uz.prototype.unlisten=function(e){this.eventMap[e]&&this.target.removeEventListener(e,this.eventMap[e])};var d_=function(){Wcj.apply(this,arguments)};
_.Y(d_,Wcj);d_.prototype.direction=function(e){var g=e.detail;e=g.deltaY;g=g.deltaX;return e&&!this.horizontal?e>0?"down":"up":g&&this.horizontal?g>0?"right":"left":"none"};
d_.prototype.distance=function(e){return Math.abs(this.delta(e))};
d_.prototype.delta=function(e){var g=this.direction(e),c=e.detail;e=c.deltaX;c=c.deltaY;return g==="up"||g==="down"?c||0:e||0};
d_.prototype.velocity=function(e){var g=this.direction(e),c=e.detail;e=c.velocityX;c=c.velocityY;return Math.abs(g==="up"||g==="down"?c||0:e||0)};var zQ=function(e,g,c,k,I,J){I=I===void 0?new d_:I;J=J===void 0?_.Co():J;uz.call(this,g,J,k);var q=this;this.element=e;this.target=g;this.config=c;this.input=I;this.manager=J;this.events=["panstart","panmove","panend"];this.onPanStart=function(){q.config.draggingClass&&q.element.classList.add(q.config.draggingClass);q.config.startAction&&q.config.startAction()};
this.onPanMove=function(L){var n=h4v(q,L);if(n){q.move(L,n);n.fade&&q.fade(L,n);var R=q.input.direction(L);n.moveAction&&n.moveAction(X5Q(q,L,n),R)}};
this.onPanEnd=function(L){var n,R,W,b,h,X;return _.r(function(D){if(D.nextAddress==1){q.animationRequestId&&cancelAnimationFrame(q.animationRequestId);q.animationRequestId=void 0;n=h4v(q,L);if(!n)return D.return();R=n;W=R.triggerAction;b=R.fade;h=R.disableFinish;X=R.translateBack;var f=q.input.velocity(L),l=q.input.distance(L),A=q.threshold(n);return f>.3&&l>10||l>A?h?D.jumpTo(6):b?D.yield(GY0(q,L),6):D.yield(xvz(q,L,n),6):X?D.yield(q.translateBack(L),3):D.jumpTo(3)}D.nextAddress!=3&&W&&W();q.config.draggingClass&&
q.element.classList.remove(q.config.draggingClass);q.reset();_.Uh(D)})};
e=Object.keys(c.triggers);this.directions=new Set(e);biz(this.input,this.directions.has("right")||this.directions.has("left"))};
_.Y(zQ,uz);zQ.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var h4v=function(e,g){g=e.input.direction(g);return e.config.triggers[g]};
zQ.prototype.move=function(e,g){var c=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var k=c.input.axis(e),I=c.input.position(e,c.config.startPosition,g.endPosition,g.moveRatio||1);c.element.style.transform="translate"+k+"("+I+"px)";c.animationRequestId=void 0}))};
var X5Q=function(e,g,c){var k=c.moveRatio||1;c=Math.abs(e.config.startPosition-c.endPosition);return Math.min(e.input.distance(g)*k,c)/c};
zQ.prototype.fade=function(e,g){var c=g.endOpacity;e=X5Q(this,e,g);e>0&&(this.element.style.opacity=""+(((c||0)-1)*e+1))};
zQ.prototype.threshold=function(e){return e.threshold?e.threshold:Math.abs(e.endPosition-this.config.startPosition)/3};
var xvz=function(e,g,c){var k,I,J,q,L,n,R;return _.r(function(W){if(W.nextAddress==1)return k=e.input.delta(g)+e.config.startPosition,I=e.input.axis(g),J=c,q=J.endPosition,L=J.transitionEndPosition,R=(n=L)!=null?n:q,W.yield(e.element.animate([{transform:"translate"+I+"("+k+"px)"},{transform:"translate"+I+"("+R+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);e.element.style.transform="translate"+I+"("+R+"px)";_.Uh(W)})};
zQ.prototype.translateBack=function(e){var g=this,c,k;return _.r(function(I){if(I.nextAddress==1){if(!g.element.style.transform)return I.return();c=g.input.axis(e);k=g.config.startPosition;return I.yield(g.element.animate([{transform:g.element.style.transform},{transform:"translate"+c+"("+k+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}g.element.style.transform="translate"+c+"("+k+"px)";_.Uh(I)})};
var GY0=function(e,g){var c,k,I,J;return _.r(function(q){if(q.nextAddress==1)return c=e.input.delta(g)+e.config.startPosition,k=e.input.axis(g),I=c+70,J=e.element.style.opacity===""?1:e.element.style.opacity,q.yield(e.element.animate([{transform:"translate"+k+"("+c+"px)",opacity:J},{transform:"translate"+k+"("+I+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);e.element.style.transform="translate"+k+"("+I+"px)";e.element.style.opacity="0";_.Uh(q)})};var VtM=new _.pt("ratelimit");var Dvo=function(e,g){this.playerProvider_=e;this.actionSenderElement_=g;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
Dvo.prototype.reset=function(){$v0(this);this.isUserPredictedAbsent_=!1};
var $v0=function(e,g){!e.youThereData_||e.showWarningJob_||g!==void 0&&g||(Nh("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.EM(),e.youThereData_,e.clientPlaybackNonce_),_.fB());_.ft.cancelJob(e.showWarningJob_);e.showWarningJob_=0;_.ft.cancelJob(e.showBlockingWarningJob_);e.showBlockingWarningJob_=0;_.ft.cancelJob(e.pausePlaybackJob_);e.pausePlaybackJob_=0;e.youThereData_=null;e.clientPlaybackNonce_=void 0;e.inYouThereFlow_=!1},flv=function(e,g){var c,k,I;
_.r(function(J){if(J.nextAddress==1)return e.reset(),J.yield(e.playerProvider_().getPlayerPromise(),2);c=J.yieldResult;e.clientPlaybackNonce_=c.getVideoData().cpn;e.youThereData_=g.configData.youThereData;if(!e.youThereData_)return J.return();if(e.youThereData_.triggerReason&&e.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!tt7())return Nh("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.EM(),e.youThereData_,e.clientPlaybackNonce_),J.return();k=e.youThereData_.promptDelaySec;I=c.getCurrentTime();
e.showWarningJob_=_.ft.addLowPriorityJob(function(){return _.r(function(q){e.showWarningJob_=0;return q.yield(YkO(e),0)})},Math.max(k-I,0)*1E3);
_.Uh(J)})},YkO=function(e){var g,c,k,I,J,q;
return _.r(function(L){if(L.nextAddress==1)return L.yield(e.playerProvider_().getPlayerPromise(),2);if(L.nextAddress!=3)return g=L.yieldResult,c=g.getCurrentTime(),L.yield(jbX(e),3);k=L.yieldResult;if(!k||!e.youThereData_)return L.return();if(_.G("check_user_lact_at_prompt_shown_time_on_web")&&(I=parseInt(e.youThereData_.lactThresholdMs,10),_.S6()<I))return Nh("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.EM(),e.youThereData_,e.clientPlaybackNonce_),L.return();if(e.youThereData_.playbackPauseDelayMs<=
0)return iiS(e),L.return();!_.G("external_fullscreen")&&(J=_.sM())&&(e.ignoreFullscreenExitUserActivity_=!0,_.ft.addLowPriorityJob(function(){e.ignoreFullscreenExitUserActivity_=!1},2E3),_.F7(J));
e.youThereData_.showToastWarningPrompt&&(HS(e,e.youThereData_.showWarningActions),e.inYouThereFlow_=!0,Nh("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.EM(),e.youThereData_,e.clientPlaybackNonce_,c),Nh("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.EM(),e.youThereData_,e.clientPlaybackNonce_,c));q=0;e.youThereData_.blockingPromptDelayMs&&(q=e.youThereData_.blockingPromptDelayMs);e.showBlockingWarningJob_=_.ft.addLowPriorityJob(function(){return _.r(function(n){e.showBlockingWarningJob_=0;return n.yield(P87(e),
0)})},q);
_.Uh(L)})},P87=function(e){var g,c,k;
return _.r(function(I){if(I.nextAddress==1)return I.yield(jbX(e),2);g=I.yieldResult;if(!e.youThereData_)return I.return();g&&(e.youThereData_.showBlockingWarningAction&&(Nh("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.EM(),e.youThereData_,e.clientPlaybackNonce_),(c=_.x(e.youThereData_.showBlockingWarningAction,_.SV))?HS(e,c.commands):HS(e,[e.youThereData_.showBlockingWarningAction]),e.inYouThereFlow_=!0),k=e.youThereData_.playbackPauseDelayMs,e.pausePlaybackJob_=_.ft.addLowPriorityJob(function(){return _.r(function(J){e.pausePlaybackJob_=
0;return J.yield(iiS(e),0)})},k));
_.Uh(I)})},iiS=function(e){var g;
return _.r(function(c){if(c.nextAddress==1)return c.yield(jbX(e),2);g=c.yieldResult;if(!e.youThereData_)return c.return();g&&(Nh("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.EM(),e.youThereData_,e.clientPlaybackNonce_),HS(e,e.youThereData_.showPausedActions),e.inYouThereFlow_=!0);_.Uh(c)})};
Dvo.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var e=_.x(this.youThereData_.userActiveDuringFlowAction,_.SV);e?HS(this,e.commands):HS(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(Nh("YOU_THERE_EVENT_TYPE_LACT_RESET",_.EM(),this.youThereData_,this.clientPlaybackNonce_),_.fB());$v0(this,!0)}mvv(this,!1)};
var p57=function(e){Nh("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.EM(),e.youThereData_,e.clientPlaybackNonce_)},jbX=function(e){var g,c;
return _.r(function(k){if(k.nextAddress==1)return k.yield(e.playerProvider_().getPlayerPromise(),2);g=k.yieldResult;c=g.getPlayerState();return k.return(c==-1||c==1||c==3)})},mvv=function(e,g){var c;
_.r(function(k){if(k.nextAddress==1){if(e.isUserPredictedAbsent_==g)return k.jumpTo(0);e.isUserPredictedAbsent_=g;return k.yield(e.playerProvider_().getPlayerPromise(),3)}c=k.yieldResult;c.setUserEngagement(g);g&&Nh("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.EM(),e.youThereData_,e.clientPlaybackNonce_);_.Uh(k)})},HS=function(e,g){if(_.G("handle_service_request_actions")||_.G("kevlar_youthere_service_endpoint_actions_killswitch"))_.Bm(e.actionSenderElement_,g,e.actionSenderElement_);
else{g=_.w(g);for(var c=g.next();!c.done;c=g.next())c=c.value,c.commandMetadata&&c.commandMetadata.webCommandMetadata&&c.commandMetadata.webCommandMetadata.sendPost?_.tr(e.actionSenderElement_,[c]):_.Bm(e.actionSenderElement_,[c],e.actionSenderElement_)}};var Bij=!1;var T97={PAUSE_CHAT:18};var Mcx=function(e,g){var c=_.uo("SESSION_INDEX");this.actionToken_=e;this.commonToken_=g;this.sessionIndex_=c},OZv=function(e){var g=_.i6(),c=_.Q0("payments.business.integration.bootstrap"),k=_.Q0("payments.business.integration"),I=k.Style.create().withMaterialDesignStyle(),J=k.mashupMode.popup("instrument-manager");
c.asMashupMode(J).usingUserIndex(e.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(I).inStandaloneContext(k.standaloneContextAuthId.forUserId()).instrumentManager(e.actionToken_,e.commonToken_.length>0?e.commonToken_:void 0,function(q){var L=q.instrumentId;L?g.resolve(L):(L=_.Q0("payments.business.integration.scenario.InstrumentManager"),g.reject(q.errorCode&&q.errorCode===L.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(q){_.zr(q);
g.reject("instrumentManagerLoadError")});
return g.promise};var w5=function(e,g,c){this.payloadName="transactionFlowFailed";this.payload={errorType:e,serializedTransactionFlowLoggingParams:g,isUserDismiss:c===void 0?!1:c}};
_.BQ("yt.ypc.shared.YpcTransactionFlowError",w5);var QQ=function(){return _.gk.apply(this,arguments)||this};
_.Y(QQ,_.gk);QQ.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
QQ.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
QQ.prototype.onErrorMessageDismiss=QQ.prototype.onErrorMessageDismiss;_.t([_.u({readOnly:!0,observer:"errorRendererChanged"}),_.B("design:type",Object)],QQ.prototype,"errorRenderer",void 0);_.t([_.Ks("yt-live-chat-error-message-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QQ.prototype,"onErrorMessageDismiss",null);_.t([_.co()],QQ);var llj=[QQ.prototype];var A6v;var sbj,FcD=function(){if(sbj!==void 0)return sbj;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;A6v===void 0&&(A6v=document.createElement("template"));var k=A6v;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return sbj=e};var UA=function(){var e=_.z.apply(this,arguments)||this;e.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";e.goalDescription="";e.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";e.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";e.startButtonId="start-button";e.exampleButtonId="example-button";return e};
_.Y(UA,_.z);_.v=UA.prototype;_.v.getGoalDropdownItems=function(){var e,g;return(g=_.x((e=this.data)==null?void 0:e.purchaseTargetDropdown,q90))==null?void 0:g.dropdownItems};
_.v.getTimerDropdownItems=function(){var e,g;return(g=_.x((e=this.data)==null?void 0:e.timerDropdown,q90))==null?void 0:g.dropdownItems};
_.v.getColorDropdownItems=function(){var e,g;return(g=_.x((e=this.data)==null?void 0:e.colorDropdown,q90))==null?void 0:g.dropdownItems};
_.v.getDropdownItemText=function(e){var g;return(g=_.x(e,wEl))==null?void 0:g.itemLabel};
_.v.getDropdownItemValue=function(e){e=_.x(e,wEl);return(e==null?void 0:e.timeLimit)||(e==null?void 0:e.purchaseTarget)||(e==null?void 0:e.eligiblePurchaseType)};
_.v.updateFlowState=function(e){_.Z5(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:e}])};
_.v.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.v.updateGoalValue=function(e){this.goal=e.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.v.onTextValueChanged=function(e){this.goalDescription=e.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.v.updateTimerValue=function(e){this.timer=e.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.v.updateTierValue=function(e){this.tier=e.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.v.getButtonViewModel=function(e){e=(e==null?void 0:e.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var g,c=_.x((g=this.data)==null?void 0:g.startGoalButton,_.$8);return Object.assign({},c,{state:e})};
_.Bd.Object.defineProperties(UA,{template:{configurable:!0,enumerable:!0,get:function(){return FcD()}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],UA.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],UA.prototype,"goal",void 0);_.t([_.u(),_.B("design:type",Object)],UA.prototype,"goalDescription",void 0);_.t([_.u(),_.B("design:type",Object)],UA.prototype,"timer",void 0);_.t([_.u(),_.B("design:type",Object)],UA.prototype,"tier",void 0);
_.t([_.u(),_.B("design:type",Object)],UA.prototype,"startButtonId",void 0);_.t([_.u(),_.B("design:type",Object)],UA.prototype,"exampleButtonId",void 0);_.t([_.Wo({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],UA);_.U(UA,"yt-creator-goal-set-up-flow-view-model",function(){return FcD()},{mode:0});var uTo;var dvM;var oO=function(){return _.z.apply(this,arguments)||this};
_.Y(oO,_.z);oO.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
oO.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var e=_.x(this.data.button,_.$8);e&&(e.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Bd.Object.defineProperties(oO,{template:{configurable:!0,enumerable:!0,get:function(){if(dvM===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;uTo===void 0&&(uTo=document.createElement("template"));var k=uTo;c.call(g,k.content.cloneNode(!0),e.content.firstChild);dvM=e}e=dvM;return e}}});
_.t([_.m(_.W$),_.B("design:type",Object)],oO.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],oO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u({selectorArgs:["data.enabledEntityKey"],selector:eBg,observer:"onEnabledChange"}),_.B("design:type",Boolean)],oO.prototype,"enabled",void 0);_.t([_.u(),_.B("design:type",Object)],oO.prototype,"data",void 0);_.t([_.Wo({is:"yt-disableable-button-view-model",noInjection:!0})],oO);var z47;var Hi7;var Qb7=["transVert01","transVert02","transVert03"],UvX="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Z8=function(){var e=_.z.apply(this,arguments)||this;e.emojiManager=_.Y3;e.isDarkTheme=document.documentElement.hasAttribute("dark");e.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};e.reactionBuckets=[];e.noEmojiIdentifier="NO_EMOJI";return e};
_.Y(Z8,_.z);_.v=Z8.prototype;_.v.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.v.desktopFountainEmojiSizePxChanged=function(){_.Nk(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.v.createUserReactionAnimation=function(e){this.createEmojiAnimation(e,!0)};
_.v.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var e;((e=this.data)==null?0:e.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.cY("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.KY(this.emojiContainer.children)).forEach(function(g){g.remove()})};
_.v.detached=function(){this.cleanupFountain()};
_.v.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var e;this.reactionBuckets=_.n0.unsafeClone((e=this.emojiFountainData)==null?void 0:e.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.v.processEmojiBucket=function(e){var g=this;if(this.reactionBuckets&&!(e>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var c=this.reactionBuckets[e];this.generateEmojiAnimations(c);if(e<this.reactionBuckets.length-1){var k;if(c==null?0:(k=c.duration)==null?0:k.seconds)this.emojiBucketTimerId=setTimeout(function(){g.processEmojiBucket(e+1)},Number(c.duration.seconds)*1E3)}}};
_.v.generateEmojiAnimations=function(e){var g=this,c=this.getRandomEmojiIdFromBucketWithOverride(e);if(c&&c!==this.noEmojiIdentifier){var k=0;e.targetEps?(k=this.linearInterpolateBounded(1,20,100,12,e.emojiSizeIndex||0),this.createEmojiAnimation(c,!1,e.emojiAnimationMs,k),k=this.getEmojiDelayMsFromTargetEps(e.targetEps)):(this.createEmojiAnimation(c),k=this.getEmojiDelayMsFromDistribution(e.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){g.generateEmojiAnimations(e)},k)}};
_.v.getRandomEmojiIdFromBucketWithOverride=function(e){if(!(e&&e.reactionsData&&e.reactionsData.length&&e.totalReactions))return this.noEmojiIdentifier;for(var g=e.totalReactions,c=1,k=_.w(e.reactionsData),I=k.next();!I.done;I=k.next())I=I.value,(I.reactionWeightOverride||I.reactionWeightOverride===0)&&I.reactionCount&&(g-=I.reactionCount,c-=I.reactionWeightOverride);k=!0;c<0&&(k=!1,g=e.totalReactions,c=1);if(k&&c>0&&g===0)if(c===1){I=0;for(var J=_.w(e.reactionsData),q=J.next();!q.done;q=J.next())q=
q.value,q.reactionCount&&q.reactionCount>0&&I++;I=1/I;J=_.w(e.reactionsData);for(q=J.next();!q.done;q=J.next())q.value.reactionWeightOverride=I}else for(I=1/(1-c),J=_.w(e.reactionsData),q=J.next();!q.done;q=J.next())q=q.value,q.reactionWeightOverride&&(q.reactionWeightOverride*=I);I=Math.random();J=0;q=_.w(e.reactionsData);for(var L=q.next();!L.done;L=q.next())if(L=L.value,L.reactionCount&&(J=(L.reactionWeightOverride||L.reactionWeightOverride===0)&&k?J+L.reactionWeightOverride:J+c*L.reactionCount/
g,J>I&&(L.reactionCount--,e.totalReactions--,L=this.reactionItemToEmojiString(L),L!==this.noEmojiIdentifier)))return L;return this.noEmojiIdentifier};
_.v.reactionItemToEmojiString=function(e){if(e.unicodeEmojiId)return e.unicodeEmojiId;if(e.emoteId)return e.emoteId;if(e.videoReactionType)switch(e.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.v.createEmojiAnimation=function(e,g,c,k){g=g===void 0?!1:g;this.lastEmojiRequestedForTesting=e;var I=e.startsWith("yt-icons:"),J=_.Dr(this.emojiManager,e);if(J||I){var q=document.createElement("emoji");q.classList.add("yt-emoji-fountain-view-model");q.classList.add(Qb7[Math.floor(Math.random()*Qb7.length)]);var L=document.createElement("div");L.classList.add("yt-emoji-fountain-view-model");L.classList.add("horizontal-container");L.classList.add(UvX[Math.floor(Math.random()*UvX.length)]);g?(c=document.createElement("div"),
c.classList.add("user-reaction-bubble"),c.classList.add("yt-emoji-fountain-view-model"),L.appendChild(c)):(c&&(q.style.animationDuration=c+"ms",L.style.animationDuration=c+"ms"),k&&(q.style.width=k+"px",q.style.height=k+"px"));I?(I=document.createElement("yt-icon"),I.polymerController.icon=e,k&&(I.style.width=k+"px",I.style.height=k+"px"),e=I):e=this.emojiManager.createEmoji(J,!1);e.classList.add("yt-emoji-fountain-view-model");L.appendChild(e);q.appendChild(L);this.emojiContainer.appendChild(q);
q.addEventListener("animationend",function(){q.remove()});
var n,R;if((n=this.data)==null?0:(R=n.loggingDirectives)==null?0:R.trackingParams)g=g?_.VF(183501):_.VF(183500),gdg(this.data.loggingDirectives.trackingParams,g),_.unK(g);setTimeout(function(){q&&q.remove()},2E3)}};
_.v.getEmojiDelayMsFromDistribution=function(e){return Math.random()*(e||1)*1E3};
_.v.getEmojiDelayMsFromTargetEps=function(e){return Math.random()*2*(1/e)*1E3};
_.v.linearInterpolateBounded=function(e,g,c,k,I){I=Math.min(Math.max(I,e),c);return(g*(c-I)+k*(I-e))/(c-e)};
Z8.prototype.onEmojiFountainDataEntityUpdate=Z8.prototype.onEmojiFountainDataEntityUpdate;Z8.prototype.desktopFountainEmojiSizePxChanged=Z8.prototype.desktopFountainEmojiSizePxChanged;Z8.prototype.isActiveChanged=Z8.prototype.isActiveChanged;_.t([_.u(),_.B("design:type",_.x3)],Z8.prototype,"emojiManager",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.W$),_.B("design:type",Object)],Z8.prototype,"ytLiveChatReduxBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Z8.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Z8.prototype,"data",void 0);_.t([_.u({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(e,g){return _.Nc(e.entities,"emojiFountainDataEntity",g)}}),
_.B("design:type",Object)],Z8.prototype,"emojiFountainData",void 0);_.t([_.u(),_.B("design:type",Boolean)],Z8.prototype,"isActive",void 0);_.t([_.OY("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z8.prototype,"isActiveChanged",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Z8.prototype,"isDarkTheme",void 0);_.t([_.u(),_.B("design:type",String)],Z8.prototype,"lastEmojiRequestedForTesting",void 0);
_.t([_.u({value:function(){return _.MN("desktop_fountain_emoji_size_px",20)}}),
_.B("design:type",Number)],Z8.prototype,"desktopFountainEmojiSizePx",void 0);_.t([_.OY("desktopFountainEmojiSizePx"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z8.prototype,"desktopFountainEmojiSizePxChanged",null);_.t([_.Cs("#emoji-container"),_.B("design:type",HTMLElement)],Z8.prototype,"emojiContainer",void 0);
_.t([_.OY("emojiFountainData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z8.prototype,"onEmojiFountainDataEntityUpdate",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Z8);
_.U(Z8,"yt-emoji-fountain-view-model",function(){if(Hi7===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;z47===void 0&&(z47=document.createElement("template"));var k=z47;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Hi7=e}e=Hi7;return e},{mode:0});var o0o;var ZiS;var VQ=function(){return _.z.apply(this,arguments)||this};
_.Y(VQ,_.z);VQ.prototype.onChoiceChanged=function(){this.data&&_.Nk(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
VQ.prototype.onChoiceChanged=VQ.prototype.onChoiceChanged;_.t([_.u(),_.B("design:type",Object)],VQ.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VQ.prototype,"onChoiceChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],VQ);
_.U(VQ,"yt-live-chat-banner-poll-choice",function(){if(ZiS===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;o0o===void 0&&(o0o=document.createElement("template"));var k=o0o;c.call(g,k.content.cloneNode(!0),e.content.firstChild);ZiS=e}e=ZiS;return e},{mode:0});var Vyz;var tyX;var tJ=function(){var e=_.z.apply(this,arguments)||this;e.modern=_.G("web_button_rework_with_live");e.small=!1;return e};
_.Y(tJ,_.z);tJ.prototype.computeIsSmall=function(){var e;return((e=this.buttonOverrides)==null?void 0:e.size)==="S"};
tJ.prototype.computeId=function(){return this.data&&this.data.targetId};
_.t([_.m(_.b7.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],tJ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.u({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",String)],tJ.prototype,"id",void 0);_.t([_.u(),_.B("design:type",Object)],tJ.prototype,"buttonOverrides",void 0);_.t([_.u(),_.B("design:type",Object)],tJ.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],tJ.prototype,"modern",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.B("design:type",Object)],tJ.prototype,"small",void 0);_.t([_.bF({disableElementRegistration:!0,is:"yt-live-chat-button"})],tJ);
_.U(tJ,"yt-live-chat-button",function(){if(tyX===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Vyz===void 0&&(Vyz=document.createElement("template"));var k=Vyz;c.call(g,k.content.cloneNode(!0),e.content.firstChild);tyX=e}e=tyX;return e},{mode:0});var B9D;var N9x;var BS=function(){var e=_.z.apply(this,arguments)||this;e.inCollapsedBanner=!1;e.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};e.questionButtonOverrides={style:"mono",type:"filled"};return e};
_.Y(BS,_.z);_.v=BS.prototype;_.v.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.v.onContextMenuButtonClick=function(e){this.ytLiveChatItemBehavior.showContextMenu(e)};
_.v.onYtRendererstamperFinished=function(){this.menuButton=_.o1(this.hostElement).querySelector("#menu-button")};
_.v.dataChanged=function(){var e,g;if((g=_.x((e=this.data)==null?void 0:e.overflowMenuButton,_.G_))==null?0:g.command)this.data.contextMenuEndpoint=_.x(this.data.overflowMenuButton,_.G_).command};
_.v.onButtonClick=function(){var e,g=_.x((e=this.data)==null?void 0:e.askQuestionButton,_.G_);if(g){if(g.trackingParams&&(e=_.Jb(g.trackingParams))){var c=_.EM();c&&_.m7(c,e)}_.oC(this.hostElement,"innertube-command",g.command)}};
BS.prototype.onYtRendererstamperFinished=BS.prototype.onYtRendererstamperFinished;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.W$),_.B("design:type",Object)],BS.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],BS.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.u({observer:"dataChanged"}),_.B("design:type",Object)],BS.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],BS.prototype,"inCollapsedBanner",void 0);_.t([_.u(),_.B("design:type",Object)],BS.prototype,"buttonOverrides",void 0);_.t([_.u(),_.B("design:type",Object)],BS.prototype,"questionButtonOverrides",void 0);_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BS.prototype,"onYtRendererstamperFinished",null);
_.t([_.bF({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],BS);
_.U(BS,"yt-live-chat-call-for-questions-renderer",function(){if(N9x===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;B9D===void 0&&(B9D=document.createElement("template"));var k=B9D;c.call(g,k.content.cloneNode(!0),e.content.firstChild);N9x=e}e=N9x;return e},{mode:0});var Skg={};Skg.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 e=this;window.requestAnimationFrame(function(){e.restoreFocusNode_||(e.restoreFocusNode_=document.activeElement);var g=_.Lnq(e.hostElement);g.length&&g[g.length-1].focus()})},
isAttachedChanged_:function(e,g){e?this.focusChild_():g&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(e){this.hidden||_.lg(e).indexOf(this.hostElement)!==-1||(e.stopPropagation(),this.focusChild_())}};var y6q;var KcQ;var NX=function(){return _.z.apply(this,arguments)||this};
_.Y(NX,_.z);NX.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
NX.prototype.onClick=function(e){e.target!==this.confirmButton&&e.target!==this.cancelButton&&(this.hidden=!0)};
_.t([_.Cs("#confirm_button"),_.B("design:type",Object)],NX.prototype,"confirmButton",void 0);_.t([_.Cs("#cancel_button"),_.B("design:type",Object)],NX.prototype,"cancelButton",void 0);_.t([_.u(),_.B("design:type",OiS)],NX.prototype,"data",void 0);_.t([_.u({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],NX.prototype,"hidden",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(Skg.YtLiveChatDialogBehavior),_.B("design:type",Object)],NX.prototype,"ytLiveChatDialogBehavior",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],NX);
var OiS=_.U(NX,"yt-live-chat-dialog-renderer",function(){if(KcQ===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;y6q===void 0&&(y6q=document.createElement("template"));var k=y6q;c.call(g,k.content.cloneNode(!0),e.content.firstChild);KcQ=e}e=KcQ;return e},{mode:0});var MyS;var C8D,eQv=function(){if(C8D!==void 0)return C8D;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;MyS===void 0&&(MyS=document.createElement("template"));var k=MyS;c.call(g,k.content.cloneNode(!0),e.content.firstChild);return C8D=e};var gMS;var cmD;var S8=function(){var e=_.z.apply(this,arguments)||this;e.icon=null;return e};
_.Y(S8,_.z);S8.prototype.dismiss=function(){_.oC(this.hostElement,"yt-live-chat-error-message-dismiss")};
S8.prototype.computeIcon=function(e){return e&&e.iconType?"yt-icons:"+e.iconType.toLowerCase():"yt-icons:close"};
_.t([_.u(),_.B("design:type",Object)],S8.prototype,"data",void 0);_.t([_.u({computed:"computeIcon(data.icon)"}),_.B("design:type",Object)],S8.prototype,"icon",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],S8);
_.U(S8,"yt-live-chat-error-message-renderer",function(){if(cmD===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;gMS===void 0&&(gMS=document.createElement("template"));var k=gMS;c.call(g,k.content.cloneNode(!0),e.content.firstChild);cmD=e}e=cmD;return e},{mode:0});var kW0;var I1o;var yQ=function(){var e=_.z.apply(this,arguments)||this;e.tooltip=null;e.data=null;e.id="";e.active=!1;e.icon="";e.disabled=!1;e.showTooltip=!1;e.useToggledActiveState=!0;e.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return e};
_.Y(yQ,_.z);_.v=yQ.prototype;
_.v.dataChanged=function(){var e;((e=this.data)==null?0:e.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,_.Bg)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var g;if((g=this.data)==null?0:g.disabled)this.disabled=!0};
_.v.computeId=function(e){return e};
_.v.computeIcon=function(e,g){if(!e)return"";if(this.useToggledActiveState)return"yt-icons:"+e.toLowerCase();var c,k;return g&&((c=this.data)==null?0:(k=c.toggledIcon)==null?0:k.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+e.toLowerCase()};
_.v.logPDGEntryPoint=function(){_.yiC(_.tw("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.v.immediatelyShowTooltip=function(){var e=_.o1(this.hostElement).querySelector("#tooltip");e.animationDelay=0;e.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};e.show()};
_.v.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.v.onClick=function(e){var g;((g=this.data)==null?0:g.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(),e.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.oC(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.v.computeShowTooltip=function(e,g){return!!(e&&e.tooltip&&g)};
_.v.maybeUpdateTooltipText=function(){var e=this,g;if((g=this.data)==null?0:g.tooltip){var c=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Bg)(e.tooltip).textContent=c},250)}};
_.v.handleLiveChatActions=function(e){var g=this;e.length&&(this.id!=="creator"&&this.id!=="product-picker"||e.forEach(function(c){(c=g.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",c))&&c.durationSec===c.fullDurationSec&&g.startBubble(g.colorFromDecimal(c.startBackgroundColor))}))};
_.v.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.v.startBubble=function(e){_.Nk(this.hostElement,{"--yt-live-chat-monetization-button-glow":e});this.hostElement.setAttribute("bubble","")};
_.v.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.v.colorFromDecimal=function(e){typeof e==="string"&&(e=Number(e));return"rgba("+[e>>16&255,e>>8&255,e&255,(e>>24&255)/255].join()+")"};
yQ.prototype.onAnimationEnd=yQ.prototype.onAnimationEnd;yQ.prototype.disabledChanged=yQ.prototype.disabledChanged;yQ.prototype.dataChanged=yQ.prototype.dataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],yQ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.b7.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],yQ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],yQ.prototype,"data",void 0);_.t([_.u({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",Object)],yQ.prototype,"id",void 0);_.t([_.u({notify:!0,reflectToAttribute:!0}),_.B("design:type",Object)],yQ.prototype,"active",void 0);
_.t([_.u({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.B("design:type",Object)],yQ.prototype,"icon",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],yQ.prototype,"disabled",void 0);_.t([_.u({computed:"computeShowTooltip(data, disabled)"}),_.B("design:type",Object)],yQ.prototype,"showTooltip",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],yQ.prototype,"useToggledActiveState",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yQ.prototype,"dataChanged",null);_.t([_.OY("disabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yQ.prototype,"disabledChanged",null);_.t([_.Ks("animationend"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],yQ.prototype,"onAnimationEnd",null);
_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],yQ);
_.U(yQ,"yt-live-chat-icon-toggle-button-renderer",function(){if(I1o===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;kW0===void 0&&(kW0=document.createElement("template"));var k=kW0;c.call(g,k.content.cloneNode(!0),e.content.firstChild);I1o=e}e=I1o;return e},{mode:0});var JmS;var vMO;var KN=function(){return _.z.apply(this,arguments)||this};
_.Y(KN,_.z);KN.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([_.u(),_.B("design:type",Object)],KN.prototype,"data",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.bF({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],KN);
_.U(KN,"yt-live-chat-message-input-prompt-header-renderer",function(){if(vMO===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;JmS===void 0&&(JmS=document.createElement("template"));var k=JmS;c.call(g,k.content.cloneNode(!0),e.content.firstChild);vMO=e}e=vMO;return e},{mode:0});var wp0;var qBo;var Lhg;var rml;var a1z;var nM7;var RQz=function(){return _.z.apply(this,arguments)||this};
_.Y(RQz,_.z);_.t([_.u(),_.B("design:type",Object)],RQz.prototype,"data",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],RQz);
_.U(RQz,"yt-live-chat-message-subtext-renderer",function(){if(nM7===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;a1z===void 0&&(a1z=document.createElement("template"));var k=a1z;c.call(g,k.content.cloneNode(!0),e.content.firstChild);nM7=e}e=nM7;return e},{mode:0});var OA=function(){var e=_.z.apply(this,arguments)||this;e.subtextOnBottom=!1;e.buttonOverrides={style:"mono",type:"tonal"};return e};
_.Y(OA,_.z);OA.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],OA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],OA.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],OA.prototype,"subtextOnBottom",void 0);_.t([_.u(),_.B("design:type",Object)],OA.prototype,"buttonOverrides",void 0);
_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],OA);
_.U(OA,"yt-live-chat-message-renderer",function(){if(rml===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Lhg===void 0&&(Lhg=document.createElement("template"));var k=Lhg;c.call(g,k.content.cloneNode(!0),e.content.firstChild);rml=e}e=rml;return e},{mode:0});var EMl;var Whq;var MX=function(){var e=_.z.apply(this,arguments)||this;e.isRemovable=!1;e.hasPrefilledText=!1;e.isInputDirty=!1;e.overCharacterLimit=!1;e.underCharacterLimit=!1;e.showErrorMessage=!1;return e};
_.Y(MX,_.z);_.v=MX.prototype;_.v.computeId=function(){return this.data.id};
_.v.computeInputData=function(){return this.data.inputData};
_.v.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.v.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.v.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.v.getLiveChatRichMessageInput=function(){return _.o1(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.v.clearInput=function(){_.o1(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.v.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.v.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.v.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.v.handleTextInputCharCountChanged=function(e){e=e.detail&&e.detail.characterCount;e!==void 0&&(this.characterCount=e,e!==0&&(this.isInputDirty=!0))};
_.v.onInputFocusOut=function(){this.isInputDirty=!0};
_.v.onClickCloseButton=function(){_.oC(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
MX.prototype.handleTextInputCharCountChanged=MX.prototype.handleTextInputCharCountChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],MX.prototype,"data",void 0);_.t([_.u({computed:"computeId(data.id)"}),_.B("design:type",String)],MX.prototype,"id",void 0);_.t([_.u({computed:"computeInputData(data.inputData)"}),_.B("design:type",Object)],MX.prototype,"inputData",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.B("design:type",Object)],MX.prototype,"isRemovable",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.B("design:type",Object)],MX.prototype,"hasPrefilledText",void 0);_.t([_.u({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.B("design:type",Number)],MX.prototype,"charactersRemaining",void 0);
_.t([_.u(),_.B("design:type",Number)],MX.prototype,"characterCount",void 0);_.t([_.u(),_.B("design:type",Object)],MX.prototype,"isInputDirty",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.B("design:type",Object)],MX.prototype,"overCharacterLimit",void 0);_.t([_.u({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.B("design:type",Object)],MX.prototype,"underCharacterLimit",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.B("design:type",Object)],MX.prototype,"showErrorMessage",void 0);_.t([_.Ks("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],MX.prototype,"handleTextInputCharCountChanged",null);
_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],MX);
_.U(MX,"yt-live-chat-poll-editor-input",function(){if(Whq===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;EMl===void 0&&(EMl=document.createElement("template"));var k=EMl;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Whq=e}e=Whq;return e},{mode:0});var bh0;var hQS;var XpQ={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},CN=function(){var e=_.z.apply(this,arguments)||this;e.modern=_.G("web_button_rework_with_live");e.closeButtonOverrides={iconPosition:"icon-only"};e.startButtonOverrides={style:"mono",type:"filled"};e.addOptionButtonOverrides={style:"mono",type:"text"};return e};
_.Y(CN,_.z);_.v=CN.prototype;
_.v.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.v.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var e;_.x((e=this.data)==null?void 0:e.startButton,_.G_)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.v.computeId=function(){return this.data&&this.data.id||""};
_.v.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.v.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.v.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.v.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.v.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var e=0;e<this.pollEditorInfoWithDefaults.minPollOptions;e++)this.addPollOptionData()};
_.v.getIsValidPoll=function(){var e=this;if(!this.pollEditorInfoWithDefaults)return!1;var g=this.pollEditorInfoWithDefaults,c=g.minPollOptionChars,k=g.maxPollOptionChars,I=g.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>g.maxPollQuestionChars)return!1;g=_.o1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(g).every(function(J,q){J=J.characterCount;!J&&I[q]&&(J=e.ytRendererBehavior.getSimpleString(I[q]).length);return J!==void 0&&J>=c&&J<=k})};
_.v.isValidPollChanged=function(){var e;_.x((e=this.data)==null?void 0:e.startButton,_.G_)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.v.addPollOptionData=function(){var e=this.pollEditorInfoWithDefaults,g=e.maxPollOptionChars,c=e.optionPlaceholderText,k=e.customOptionPlaceholderText,I=e.pollOptionData;this.currentNumPollOptions>=e.maxPollOptions||(e={liveChatPollOptionInput:{inputData:{placeholder:k[this.currentNumPollOptions]||c,maxCharacterLimit:g},maxCharacterLimit:g,minCharacterLimit:e.minPollOptionChars,hasPrefilledText:!!k[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=e.minPollOptions}},I.charCountErrorText&&
(e.liveChatPollOptionInput.charCountErrorText=I.charCountErrorText),I.charsRemainingAltLabel&&(e.liveChatPollOptionInput.charsRemainingAltLabel=I.charsRemainingAltLabel),I.removeOptionAltText&&(e.liveChatPollOptionInput.removeOptionAltText=I.removeOptionAltText),this.push("pollOptionsData",e),I=Array.from(_.o1(_.o1(this.hostElement).querySelector("#poll-options")).children),I.forEach(function(J,q){J.polymerController.set("data.id",q)}),_.o1(I[I.length-1]).querySelector("#input").focus())};
_.v.getPollOptionInputValues=function(){var e=this,g=[],c=_.o1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),k=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(c).forEach(function(I,J){var q=null;I=I.getLiveChatRichMessageInput();var L;(I==null?0:(L=I.textSegments)==null?0:L.length)?q=_.GJ(I):k[J]&&(q=e.formattedStringToLiveChatRichMessageInput(k[J]));g.push(q)});
return g};
_.v.requestCreateAndStartPoll=function(e){var g=this.getPollOptionInputValues();if(!g.some(function(k){return!k})){g={optionText:g};
var c=_.o1(_.o1(this.hostElement).querySelector("#poll-question")).firstChild;c&&c.liveChatRichMessageInput&&(g.questionText=_.GJ(c.liveChatRichMessageInput));_.tr(this.hostElement,[e,g])}};
_.v.selectedChanged=function(){if(this.selected){var e=_.o1(_.o1(this.hostElement).querySelector("#start-button")).firstElementChild;if(e){var g;(g=_.o1(e).querySelector("#button")||_.Zu(e).querySelector("button"))==null||g.focus()}}};
_.v.handleTextInputChanged=function(e){var g;((g=e.target)==null?void 0:g.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=e.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.v.handleStartButtonAction=function(e){e.detail.actionName==="yt-service-request"&&(e.stopPropagation(),(e=e.detail.args[1])&&this.requestCreateAndStartPoll(e))};
_.v.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.v.handleServiceRequestCompleted=function(e){this.createPollRequestInFlight=!1;(e=e.detail&&e.detail.data)&&e.success&&(_.oC(this.hostElement,"picker-cancelled"),_.Z5(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.v.onCloseClick=function(){_.oC(this.hostElement,"picker-cancelled");_.Z5(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.v.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.v.handlePollEditorInputClosed=function(e){var g=this.pollOptionsData.findIndex(function(c){return c.liveChatPollOptionInput.id===e.detail.id});
this.splice("pollOptionsData",g,1);this.isValidPoll=this.getIsValidPoll()};
_.v.onPickerCancelled=function(){this.reset()};
_.v.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var e=_.o1(_.o1(this.hostElement).querySelector("#poll-question")).firstChild;e&&e.setLiveChatRichMessageInput(null);if(e=_.o1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){e=_.w(Array.from(e));for(var g=e.next();!g.done;g=e.next())g.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.v.formattedStringToLiveChatRichMessageInput=function(e){return e.simpleText?{text_segments:[e.simpleText]}:{text_segments:e.runs}};
_.Bd.Object.defineProperties(CN.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(XpQ,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
CN.prototype.onPickerCancelled=CN.prototype.onPickerCancelled;CN.prototype.handlePollEditorInputClosed=CN.prototype.handlePollEditorInputClosed;CN.prototype.handleServiceRequestCompleted=CN.prototype.handleServiceRequestCompleted;CN.prototype.handleServiceRequestSent=CN.prototype.handleServiceRequestSent;CN.prototype.handleTextInputChanged=CN.prototype.handleTextInputChanged;CN.prototype.selectedChanged=CN.prototype.selectedChanged;CN.prototype.isValidPollChanged=CN.prototype.isValidPollChanged;
CN.prototype.shouldInitializePollChanged=CN.prototype.shouldInitializePollChanged;CN.prototype.dataChanged=CN.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],CN.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],CN.prototype,"modern",void 0);
_.t([_.u(),_.B("design:type",Object)],CN.prototype,"closeButtonOverrides",void 0);_.t([_.u(),_.B("design:type",Object)],CN.prototype,"startButtonOverrides",void 0);_.t([_.u(),_.B("design:type",Object)],CN.prototype,"addOptionButtonOverrides",void 0);_.t([_.u({computed:"computeId(data.id)",reflectToAttribute:!0}),_.B("design:type",String)],CN.prototype,"id",void 0);_.t([_.u({value:function(){return[]}}),
_.B("design:type",Array)],CN.prototype,"pollOptionsData",void 0);_.t([_.p("pollEditorInfoWithDefaults"),_.B("design:type",Object),_.B("design:paramtypes",[])],CN.prototype,"pollQuestionData",null);_.t([_.u({value:0}),_.B("design:type",Number)],CN.prototype,"pollQuestionCharacterCount",void 0);_.t([_.p("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],CN.prototype,"pollQuestionCharactersRemaining",null);
_.t([_.u({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.B("design:type",Boolean)],CN.prototype,"overQuestionCharacterLimit",void 0);_.t([_.p("data.pollEditorInfo"),_.B("design:type",Object),_.B("design:paramtypes",[])],CN.prototype,"pollEditorInfoWithDefaults",null);_.t([_.u({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.B("design:type",Number)],CN.prototype,"currentNumPollOptions",void 0);
_.t([_.u({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.B("design:type",Boolean)],CN.prototype,"hasMaxNumPollOptions",void 0);_.t([_.p("pollEditorInfoWithDefaults","pollOptionsData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CN.prototype,"shouldInitializePoll",null);_.t([_.u(),_.B("design:type",Object)],CN.prototype,"isValidPoll",void 0);
_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],CN.prototype,"createPollRequestInFlight",void 0);_.t([_.u(),_.B("design:type",Object)],CN.prototype,"selected",void 0);_.t([_.u({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.B("design:type",Boolean)],CN.prototype,"showQuestionErrorMessage",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CN.prototype,"dataChanged",null);_.t([_.OY("shouldInitializePoll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CN.prototype,"shouldInitializePollChanged",null);_.t([_.OY("isValidPoll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CN.prototype,"isValidPollChanged",null);
_.t([_.OY("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CN.prototype,"selectedChanged",null);_.t([_.Ks("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],CN.prototype,"handleTextInputChanged",null);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CN.prototype,"handleServiceRequestSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],CN.prototype,"handleServiceRequestCompleted",null);
_.t([_.Ks("yt-live-chat-poll-editor-input-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],CN.prototype,"handlePollEditorInputClosed",null);_.t([_.Ks("picker-cancelled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CN.prototype,"onPickerCancelled",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],CN);
_.U(CN,"yt-live-chat-poll-editor-panel-renderer",function(){if(hQS===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;bh0===void 0&&(bh0=document.createElement("template"));var k=bh0;c.call(g,k.content.cloneNode(!0),e.content.firstChild);hQS=e}e=hQS;return e},{mode:0});var GWD;var xLg;var eB=function(){return _.z.apply(this,arguments)||this};
_.Y(eB,_.z);eB.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
eB.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Bd.Object.defineProperties(eB.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var e,g;return(e=this.data)==null?void 0:(g=e.title)==null?void 0:g.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var e;return _.WT((e=this.data)==null?void 0:e.onTapCommand)}}});
_.t([_.m(_.B$.YtEndpointBehavior),_.B("design:type",Object)],eB.prototype,"ytEndpointBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],eB.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],eB.prototype,"itemId",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],eB.prototype,"hasPromotion",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],eB.prototype,"innertubeCommand",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],eB);
_.U(eB,"yt-live-chat-product-picker-panel-item-view-model",function(){if(xLg===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;GWD===void 0&&(GWD=document.createElement("template"));var k=GWD;c.call(g,k.content.cloneNode(!0),e.content.firstChild);xLg=e}e=xLg;return e},{mode:0});var DLD;var $Lx;var gn=function(){var e=_.z.apply(this,arguments)||this;e.id="product-picker";e.selected=!1;e.closeButtonId="close-button";e.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return e};
_.Y(gn,_.z);_.v=gn.prototype;_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.v.observeSelected=function(){this.selected&&this.hostElement.focus();var e=_.o1(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");e.length&&e[0].focus()};
_.v.onCloseBuyFlow=function(){_.oC(this.hostElement,"picker-cancelled")};
_.v.onCloseClick=function(){_.oC(this.hostElement,"picker-cancelled");var e;((e=this.data)==null?0:e.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.x(this.data.closeButton,_.$8))};
_.v.onCloseEngageWithAudienceEditorPanels=function(){_.oC(this.hostElement,"picker-cancelled")};
gn.prototype.observeSelected=gn.prototype.observeSelected;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],gn.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],gn.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gn.prototype,"id",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gn.prototype,"selected",void 0);_.t([_.u(),_.B("design:type",Object)],gn.prototype,"closeButtonId",void 0);_.t([_.OY("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gn.prototype,"observeSelected",null);
_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],gn);
_.U(gn,"yt-live-chat-product-picker-panel-view-model",function(){if($Lx===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;DLD===void 0&&(DLD=document.createElement("template"));var k=DLD;c.call(g,k.content.cloneNode(!0),e.content.firstChild);$Lx=e}e=$Lx;return e},{mode:0});var YBM;var f1O;var c_=function(){var e=_.z.apply(this,arguments)||this;e.iconId="";e.icon="";e.disabled=!1;e.systemIcons=_.G("kevlar_system_icons");return e};
_.Y(c_,_.z);_.v=c_.prototype;_.v.computeIconId=function(e){return e&&e.icon&&e.icon.iconType?e.icon.iconType.toLowerCase():""};
_.v.computeIcon=function(e){return e&&e.icon&&e.icon.iconType?(e=e.icon.iconType.toLowerCase(),(e.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+e):""};
_.v.computeDisabled=function(e){return!!e};
_.v.computeCommand=function(e,g){return g?void 0:e};
_.v.computeTooltip=function(e,g){return g&&e?e:""};
_.v.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Bd.Object.defineProperties(c_.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var e="",g,c,k;if((g=this.data)==null?0:(c=g.text)==null?0:(k=c.runs)==null?0:k.length)e=this.data.text.runs[0].text||"";else{var I,J;if((I=this.data)==null?0:(J=I.text)==null?0:J.simpleText)e=this.data.text.simpleText}var q,L,n;if((q=this.data)==null?0:(L=q.subtext)==null?0:(n=L.runs)==null?0:n.length)e&&(e+=". "),e+=this.data.subtext.runs[0].text||"";else{var R,W;if((R=this.data)==null?0:(W=R.subtext)==
null?0:W.simpleText)e&&(e+=". "),e+=this.data.subtext.simpleText}return e}}});
_.t([_.m(_.B$.YtEndpointBehavior),_.B("design:type",Object)],c_.prototype,"ytEndpointBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],c_.prototype,"data",void 0);_.t([_.u({computed:"computeIconId(data)",reflectToAttribute:!0}),_.B("design:type",Object)],c_.prototype,"iconId",void 0);
_.t([_.u({computed:"computeIcon(data)",reflectToAttribute:!0}),_.B("design:type",Object)],c_.prototype,"icon",void 0);_.t([_.u({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.B("design:type",Object)],c_.prototype,"disabled",void 0);_.t([_.u({computed:"computeCommand(data.command, disabled)"}),_.B("design:type",Object)],c_.prototype,"command",void 0);_.t([_.u({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.B("design:type",String)],c_.prototype,"tooltip",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],c_.prototype,"systemIcons",void 0);_.t([_.p("data.text","data.subtext"),_.u(),_.B("design:type",String),_.B("design:paramtypes",[])],c_.prototype,"ariaLabel",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],c_);
_.U(c_,"yt-live-chat-product-button-renderer",function(){if(f1O===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;YBM===void 0&&(YBM=document.createElement("template"));var k=YBM;c.call(g,k.content.cloneNode(!0),e.content.firstChild);f1O=e}e=f1O;return e},{mode:0});var jeS;var ihx;var k$=function(){var e=_.z.apply(this,arguments)||this;e.selected=!1;e.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return e};
_.Y(k$,_.z);_.v=k$.prototype;_.v.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.computeId=function(e){return e.id||""};
_.v.onCloseClick=function(){_.oC(this.hostElement,"picker-cancelled")};
_.v.observeSelected=function(){this.selected&&this.hostElement.focus();var e=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");e.length&&e[0].focus()};
_.v.onCloseBuyFlow=function(){_.oC(this.hostElement,"picker-cancelled")};
_.v.onCloseEngageWithAudienceEditorPanels=function(){_.oC(this.hostElement,"picker-cancelled")};
k$.prototype.observeSelected=k$.prototype.observeSelected;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],k$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],k$.prototype,"data",void 0);
_.t([_.u({computed:"computeId(data)",reflectToAttribute:!0}),_.B("design:type",String)],k$.prototype,"id",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],k$.prototype,"selected",void 0);_.t([_.OY("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k$.prototype,"observeSelected",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],k$);
_.U(k$,"yt-live-chat-product-picker-renderer",function(){if(ihx===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;jeS===void 0&&(jeS=document.createElement("template"));var k=jeS;c.call(g,k.content.cloneNode(!0),e.content.firstChild);ihx=e}e=ihx;return e},{mode:0});var PTS;var mLX;var ppO;var TPz;var IZ=function(){return _.z.apply(this,arguments)||this};
_.Y(IZ,_.z);IZ.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()};
IZ.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
IZ.prototype.created=function(){this.ids={background:UW(),maskOne:UW(),maskTwo:UW(),gradient:UW(),largeBackground:UW(),largeGradientOne:UW(),largeGradientTwo:UW(),largeGradientPath:UW()}};
IZ.prototype.maybeLoadAnimationBackground=IZ.prototype.maybeLoadAnimationBackground;_.t([_.u({value:!1}),_.B("design:type",Boolean)],IZ.prototype,"useLargeBackground",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],IZ.prototype,"useAnimationBackground",void 0);_.t([_.u({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.B("design:type",Boolean)],IZ.prototype,"useRegularBackground",void 0);
_.t([_.u(),_.B("design:type",Object)],IZ.prototype,"ids",void 0);_.t([_.u(),_.B("design:type",Object)],IZ.prototype,"lottieAnimation",void 0);_.t([_.Cs("#animation-background"),_.B("design:type",HTMLDivElement)],IZ.prototype,"animationBackground",void 0);_.t([_.OY("useAnimationBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IZ.prototype,"maybeLoadAnimationBackground",null);
_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],IZ);
_.U(IZ,"yt-live-interactivity-component-background",function(){if(TPz===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;ppO===void 0&&(ppO=document.createElement("template"));var k=ppO;c.call(g,k.content.cloneNode(!0),e.content.firstChild);TPz=e}e=TPz;return e},{mode:0});var J1=function(){var e=_.z.apply(this,arguments)||this;e.characterCount=0;e.showInputErrorMessage=!1;e.startQnaRequestInFlight=!1;e.modern=_.G("web_button_rework_with_live");e.buttonOverrides={style:"mono",type:"filled"};e.closeButtonOverrides={iconPosition:"icon-only"};e.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return e};
_.Y(J1,_.z);_.v=J1.prototype;
_.v.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.v.onCharacterCountChanged=function(e){var g,c,k,I,J=(c=_.x(this==null?void 0:(g=this.data)==null?void 0:g.creatorCallForQuestions,dmQ))==null?void 0:(k=c.inputField)==null?void 0:(I=k.liveChatTextInputFieldRenderer)==null?void 0:I.maxCharacterLimit,q,L;J!=null&&(e==null?void 0:(q=e.detail)==null?void 0:q.characterCount)!=null&&_.x(this==null?void 0:(L=this.data)==null?void 0:L.startButton,_.G_)&&(g=e.detail.characterCount>J,this.set("data.startButton.buttonRenderer.isDisabled",e.detail.characterCount===
0||g),this.showInputErrorMessage=g)};
_.v.onCloseClick=function(){_.oC(this.hostElement,"picker-cancelled");_.Z5(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.v.onPickerCancelled=function(){var e=_.o1(this.hostElement).querySelector("#qna-creator-text-input-field");e&&e.setLiveChatRichMessageInput(null)};
_.v.handleOpenQnaStartPanel=function(){var e=_.o1(this.hostElement).querySelector("#qna-creator-text-input-field");e&&e.focus()};
_.v.handleStartButtonAction=function(e){var g=this;if(e.detail.actionName==="yt-service-request"&&(e.stopPropagation(),e=e.detail.args[1])){var c=_.o1(this.hostElement).querySelector("#qna-creator-text-input-field"),k;(c==null?0:(k=c.liveChatRichMessageInput)==null?0:k.textSegments)&&c.liveChatRichMessageInput.textSegments.length!==0&&(k={rich_message:_.GJ(c.liveChatRichMessageInput)},_.tr(this.hostElement,[e,k]).then(function(){_.oC(g.hostElement,"picker-cancelled")}))}};
_.v.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.v.handleServiceRequestCompleted=function(e){var g;e=e==null?void 0:(g=e.detail)==null?void 0:g.data;(e==null?0:e.actions)&&e.actions.length>0?this.startQnaRequestInFlight=!1:_.Z5(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.v.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
J1.prototype.handleServiceRequestError=J1.prototype.handleServiceRequestError;J1.prototype.handleServiceRequestCompleted=J1.prototype.handleServiceRequestCompleted;J1.prototype.handleServiceRequestSent=J1.prototype.handleServiceRequestSent;J1.prototype.onPickerCancelled=J1.prototype.onPickerCancelled;J1.prototype.onCharacterCountChanged=J1.prototype.onCharacterCountChanged;_.t([_.u(),_.B("design:type",Object)],J1.prototype,"characterCount",void 0);
_.t([_.u(),_.B("design:type",Object)],J1.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],J1.prototype,"showInputErrorMessage",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],J1.prototype,"startQnaRequestInFlight",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],J1.prototype,"modern",void 0);_.t([_.u(),_.B("design:type",Object)],J1.prototype,"buttonOverrides",void 0);
_.t([_.u(),_.B("design:type",Object)],J1.prototype,"closeButtonOverrides",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.W$),_.B("design:type",Object)],J1.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.m(_.f8.YtLiveChatItemBehavior),_.B("design:type",_.jq)],J1.prototype,"ytLiveChatItemBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],J1.prototype,"ytActionHandlerBehavior",void 0);_.t([_.Ks("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],J1.prototype,"onCharacterCountChanged",null);_.t([_.Ks("picker-cancelled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],J1.prototype,"onPickerCancelled",null);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],J1.prototype,"handleServiceRequestSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],J1.prototype,"handleServiceRequestCompleted",null);
_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],J1.prototype,"handleServiceRequestError",null);_.t([_.bF({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],J1);
_.U(J1,"yt-live-chat-qna-start-panel-renderer",function(){if(mLX===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;PTS===void 0&&(PTS=document.createElement("template"));var k=PTS;c.call(g,k.content.cloneNode(!0),e.content.firstChild);mLX=e}e=mLX;return e},{mode:0});var l1X;var Amg;var v_=function(){return _.z.apply(this,arguments)||this};
_.Y(v_,_.z);v_.prototype.dismiss=function(){_.oC(this.hostElement,"yt-live-chat-error-message-dismiss")};
v_.prototype.edit=function(){_.oC(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.t([_.u(),_.B("design:type",Object)],v_.prototype,"data",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],v_);
_.U(v_,"yt-live-chat-text-actions-error-message-renderer",function(){if(Amg===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;l1X===void 0&&(l1X=document.createElement("template"));var k=l1X;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Amg=e}e=Amg;return e},{mode:0});var se0;var FhM;var u$j;var dLo;var wn=function(){var e=_.z.apply(this,arguments)||this;e.isDarkTheme=document.documentElement.hasAttribute("dark");e.newnessDotEligible=!1;return e};
_.Y(wn,_.z);wn.prototype.sendReaction=function(){var e,g,c=((e=this.data)==null?void 0:e.emojiId)||((g=this.data)==null?void 0:g.emoteId),k;c&&((k=this.data)==null?0:k.shouldTriggerAnimation)&&_.Z5(this.hostElement,"yt-create-user-reaction-animation",[c]);var I;(e=_.WT((I=this.data)==null?void 0:I.onTap))&&_.KO(e,this.hostElement);this.showNewnessDot&&_.Z5(this.hostElement,"yt-hide-newness-dot")};
wn.prototype.onClick=function(e){(!e||e.clientX||e.clientY)&&this.sendReaction()};
wn.prototype.onKeyDown=function(e){e.key!=="Enter"&&e.key!==" "||e.repeat||this.sendReaction()};
_.Bd.Object.defineProperties(wn.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var e,g;return!!(((e=this.data)==null?0:e.emojiId)||((g=this.data)==null?0:g.emoteId))}}});
_.t([_.u(),_.B("design:type",Object)],wn.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],wn.prototype,"isDarkTheme",void 0);_.t([_.u(),_.B("design:type",Object)],wn.prototype,"newnessDotEligible",void 0);_.t([_.p("data.maybeShowNewnessDot"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wn.prototype,"showNewnessDot",null);_.t([_.p("data.emojiId","data.emoteId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wn.prototype,"useYtImage",null);
_.t([_.Wo({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],wn);
_.U(wn,"yt-reaction-control-panel-button-view-model",function(){if(dLo===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;u$j===void 0&&(u$j=document.createElement("template"));var k=u$j;c.call(g,k.content.cloneNode(!0),e.content.firstChild);dLo=e}e=dLo;return e},{mode:0});var zQO;var Hh7;var qQ=function(){var e=_.z.apply(this,arguments)||this;e.reactionControlPanelExpanded=!1;e.isDarkTheme=document.documentElement.hasAttribute("dark");e.newnessDotEligible=!1;return e};
_.Y(qQ,_.z);_.v=qQ.prototype;_.v.expandedButtonsChanged=function(){var e,g;_.Nk(this.hostElement,{"--expanded-buttons-height":((g=(e=this.expandedButtonsData)==null?void 0:e.length)!=null?g:0)*36+"px"})};
_.v.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.v.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.v.onMouseLeave=function(){var e=this;this.collapseTimer=setTimeout(function(){e.reactionControlPanelExpanded=!1},500)};
_.v.onFocusIn=function(){this.onMouseEnter()};
_.v.onFocusOut=function(){this.onMouseLeave()};
_.v.onCollapsedButtonFocusIn=function(){var e=this;setTimeout(function(){var g;(g=e.expandedButtons.querySelector("button"))==null||g.focus()},100)};
_.v.onCollapsedButtonFocusOut=function(e){e.stopPropagation()};
_.Bd.Object.defineProperties(qQ.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var e,g;return _.n0.unsafeClone((e=this.liveReactionsData)==null?void 0:e.emojiButtonData)||((g=this.data)==null?void 0:g.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var e;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((e=this.data)==null||!e.maybeShowNewnessDot)}}});
qQ.prototype.expandedButtonsChanged=qQ.prototype.expandedButtonsChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],qQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.W$),_.B("design:type",Object)],qQ.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qQ.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],qQ.prototype,"reactionControlPanelExpanded",void 0);_.t([_.u({selectorArgs:["data.liveReactionsDataEntityKey"],selector:CBO}),_.B("design:type",Object)],qQ.prototype,"liveReactionsData",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],qQ.prototype,"isDarkTheme",void 0);_.t([_.u(),_.B("design:type",Object)],qQ.prototype,"newnessDotEligible",void 0);
_.t([_.p("liveReactionsData","data.expandedButtons"),_.B("design:type",Object),_.B("design:paramtypes",[])],qQ.prototype,"expandedButtonsData",null);_.t([_.p("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.u({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],qQ.prototype,"showNewnessDot",null);_.t([_.Cs("#expanded-buttons"),_.B("design:type",HTMLElement)],qQ.prototype,"expandedButtons",void 0);
_.t([_.OY("expandedButtonsData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qQ.prototype,"expandedButtonsChanged",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],qQ);
_.U(qQ,"yt-reaction-control-panel-view-model",function(){if(Hh7===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;zQO===void 0&&(zQO=document.createElement("template"));var k=zQO;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Hh7=e}e=Hh7;return e},{mode:0});var L5=new _.pt("yt-live-chat"),QeM=Date.parse("2024-7-24"),rn=function(){var e=_.z.apply(this,arguments)||this;e.emojiManager=_.Y3;e.newnessDotEligible=!1;e.newnessDotImpressionCounted=!1;e.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return e};
_.Y(rn,_.z);_.v=rn.prototype;_.v.emojiCustomizationEnabledChanged=function(){var e;((e=this.data)==null?0:e.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((e=L5.getCreationTime("emoji-customization-count"))&&e<QeM&&L5.set("emoji-customization-count","0"),e=Number(L5.get("emoji-customization-count"))||0,e<3&&(this.newnessDotEligible=!0,L5.set("emoji-customization-count",(e+1).toString())),this.newnessDotImpressionCounted=!0)};
_.v.hideNewnessDot=function(){this.newnessDotEligible=!1;L5.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.v.handleReactionsMute=function(e){var g=_.EM(),c=_.VF(206221),k={checkboxData:{state:e?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};g&&_.m7(g,c,k);this.reactionsMuted=e};
_.v.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.v.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.Bd.Object.defineProperties(rn.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var e;return(!((e=this.liveReactionsData)==null||!e.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
rn.prototype.liveReactionsSettingChanged=rn.prototype.liveReactionsSettingChanged;rn.prototype.emojiCustomizationEnabledChanged=rn.prototype.emojiCustomizationEnabledChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],rn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.W$),_.B("design:type",Object)],rn.prototype,"ytLiveChatReduxBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],rn.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],rn.prototype,"data",void 0);_.t([_.u(),_.B("design:type",_.x3)],rn.prototype,"emojiManager",void 0);_.t([_.u(),_.B("design:type",Object)],rn.prototype,"newnessDotEligible",void 0);_.t([_.u(),_.B("design:type",Object)],rn.prototype,"newnessDotImpressionCounted",void 0);
_.t([_.u({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:eBg}),_.B("design:type",Boolean)],rn.prototype,"liveReactionsSetting",void 0);_.t([_.u({selectorArgs:["data.liveReactionsDataEntityKey"],selector:CBO}),_.B("design:type",Object)],rn.prototype,"liveReactionsData",void 0);_.t([_.u({value:function(){var e=_.G("enable_lwe_web_mute"),g=L5.get("allow-reactions");return g===void 0?!1:!g&&e}}),
_.B("design:type",Boolean)],rn.prototype,"reactionsMuted",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rn.prototype,"liveReactionsEnabled",null);_.t([_.OY("data.emojiCustomizationEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rn.prototype,"emojiCustomizationEnabledChanged",null);
_.t([_.OY("liveReactionsEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rn.prototype,"liveReactionsSettingChanged",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],rn);
_.U(rn,"yt-reaction-control-panel-overlay-view-model",function(){if(FhM===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;se0===void 0&&(se0=document.createElement("template"));var k=se0;c.call(g,k.content.cloneNode(!0),e.content.firstChild);FhM=e}e=FhM;return e},{mode:0});var ULX={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(e){var g=this.$.pickers.selected;if(g){_.o1(this.hostElement).removeAttribute(g+"-open");var c="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(c="#picker-buttons",g==="emoji"&&_.o1(this.hostElement).querySelector("#emoji-picker-button")&&(c="#emoji-picker-button"));if(c=_.o1(this.hostElement).querySelector(c).querySelector("#"+g))c.active=!1}c=e;g==e&&(c=null);g!=
e&&_.o1(this.hostElement).setAttribute(e+"-open","");this.$.pickers.selected=c;_.Z5(this.hostElement,"yt-live-chat-picker-changed",[c])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var aZ=function(){var e=_.z.apply(this,arguments)||this;e.numSentMessages=0;e.timeoutDurationMs=0;e.timeoutMs=0;e.lastTimeoutTimeMs=0;e.pendingMessageId="";e.hasFiredInitialFocusActions=!1;e.isBeforeFocusEnabled=!0;e.id="";e.characterCount=0;e.maxCharacterLimit=0;e.remainingCharacterCount=0;e.inputExpanded=!1;e.buttonOverrides={iconPosition:"icon-only"};e.inReplyPanel=!1;e.countdownRatio=0;e.isTooltipVisible=!1;e.tooltipTimeout=1E4;e.systemIcons=_.G("kevlar_system_icons");e.tallerEmojiPicker=_.G("live_chat_taller_emoji_picker");
e.sendReplyMessageInFlight=!1;e.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"};e.onResize=function(){e.maybeToggleCharacterCount()};
return e};
_.Y(aZ,_.z);_.v=aZ.prototype;
_.v.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.v.attached=function(){window.addEventListener("resize",this.onResize)};
_.v.detached=function(){window.removeEventListener("resize",this.onResize)};
_.v.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.v.sendMessage=function(){var e=this,g,c,k,I;return _.r(function(J){if(e.sendDisabled)return J.return();e.isTooltipVisible&&_.Z5(e.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(e.data.sendButton&&e.data.sendButton.buttonRenderer){e.input.completeEmojis();g=e.data.sendButton.buttonRenderer.serviceEndpoint;if(!g)return J.return();k=((c=_.x(g,_.yRw))==null?void 0:c.clientIdPrefix)||"";I={client_message_id:k+String(e.numSentMessages++),rich_message:_.GJ(e.input.liveChatRichMessageInput)};
e.pendingMessageId=I.client_message_id;e.inReplyPanel&&(e.sendReplyMessageInFlight=!0);_.tr(e.hostElement,[g,I]);e.input.setLiveChatRichMessageInput(null)}_.Uh(J)})};
_.v.handleSendButtonAction=function(e){e.detail.actionName==="yt-service-request"&&(e.stopPropagation(),this.sendMessage())};
_.v.onSendCompleted=function(e,g){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(e=this.get("timeoutDurationUsec",g.data))&&this.handleTimeout(Number(e)/1E3);this.errorMessage=this.get("errorMessage",g.data);this.pendingMessageId=""};
_.v.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Z5(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.v.handlePickerButtonToggle=function(e){e=e.detail.targetId;this.ytPickerBehavior.togglePicker_(e);if(e==="emoji")this.input.focus();else if(e==="qna-start-panel"){var g,c;(g=_.o1(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(c=g.querySelector("#qna-creator-text-input-field"))==null||c.focus()}};
_.v.onComponentReplaced=function(e){var g,c;e.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((g=e.replacement.liveChatMessageInputRenderer)==null?0:(c=g.headerRenderer)==null?0:c.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.v.onEmojiSelect=function(e){this.input.focus();this.input.insertEmoji(e.detail)};
_.v.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.v.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Z5(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Z5(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.v.onOpenPopupAction=function(e,g){var c=this;g===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Z5(c.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.v.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.v.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.v.focusChanged=function(){this.maybeToggleCharacterCount()};
_.v.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var e=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",e>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.v.computeId=function(){return this.data&&this.data.targetId||""};
_.v.computeSendDisabled=function(e,g,c,k){e=!!(!e||g&&e>g||k);(g=_.o1(this.hostElement).querySelector("#send-button"))&&g.children.length&&(g.children[0].disabled=e);return e};
_.v.handleTimeout=function(e){this.timeoutDurationMs=this.timeoutMs=e;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.v.updateTimeout=function(e){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(e-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=e,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.v.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.v.onErrorMessageEdit=function(e){this.input.setLiveChatRichMessageInput(e.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.v.errorMessageChanged=function(){var e=this;_.Y_(function(){_.Z5(e.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.v.computeAuthorNameColor=function(e){var g;if(_.G("live_chat_author_name_color_usernames")&&(e==null?0:(g=e.authorName)==null?0:g.simpleText))return _.kY6(_.Il6(e.authorName.simpleText));if(_.G("live_chat_seed_color_usernames")&&(e==null?0:e.authorSeedColorArgb))return _.kY6(_.ts(e.authorSeedColorArgb));if(_.G("live_chat_colored_usernames"))return"#cc0000";var c;return _.G("live_chat_simple_color_usernames")&&(e==null?0:(c=e.authorName)==null?0:c.simpleText)&&(e==null?0:e.authorUsernameColorLight)&&
(e==null?0:e.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.ts(e.authorUsernameColorDark):_.ts(e.authorUsernameColorLight):""};
_.v.onIsTooltipVisibleChanged=function(){var e=_.o1(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){e.hidden=!1;e.setAttribute("role","alert")},0):(e.hidden=!0,e.removeAttribute("role"))};
_.v.onFocusedChanged=function(e){this.inputFocused=e.detail.value};
_.Bd.Object.defineProperties(aZ.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 e;return!((e=this.data)==null||!e.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:(g=e.pickers)==null?void 0:g.find(function(c){return c.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var e=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return e?this.ytRendererBehavior.getSimpleString(e):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
aZ.prototype.onIsTooltipVisibleChanged=aZ.prototype.onIsTooltipVisibleChanged;aZ.prototype.errorMessageChanged=aZ.prototype.errorMessageChanged;aZ.prototype.onErrorMessageEdit=aZ.prototype.onErrorMessageEdit;aZ.prototype.onErrorMessageDismiss=aZ.prototype.onErrorMessageDismiss;aZ.prototype.focusChanged=aZ.prototype.focusChanged;aZ.prototype.characterCountChanged=aZ.prototype.characterCountChanged;aZ.prototype.onEmojiSelect=aZ.prototype.onEmojiSelect;aZ.prototype.handlePickerButtonToggle=aZ.prototype.handlePickerButtonToggle;
aZ.prototype.onSendError=aZ.prototype.onSendError;aZ.prototype.onSendCompleted=aZ.prototype.onSendCompleted;aZ.prototype.sendMessage=aZ.prototype.sendMessage;aZ.prototype.dataChanged=aZ.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],aZ.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(ULX.YtPickerBehavior),_.B("design:type",Object)],aZ.prototype,"ytPickerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],aZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.b7.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],aZ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"hasFiredInitialFocusActions",void 0);
_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"isBeforeFocusEnabled",void 0);_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"data",void 0);_.t([_.u({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",Object)],aZ.prototype,"id",void 0);_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"characterCount",void 0);_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"maxCharacterLimit",void 0);
_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"remainingCharacterCount",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],aZ.prototype,"inputExpanded",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],aZ.prototype,"inputFocused",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],aZ.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.t([_.u(),_.B("design:type",_.mQ)],aZ.prototype,"participantsManager",void 0);
_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"buttonOverrides",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],aZ.prototype,"inReplyPanel",void 0);_.t([_.p("characterCount, maxCharacterLimit, countdownActive"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],aZ.prototype,"sendDisabled",null);_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"countdownRatio",void 0);
_.t([_.p("countdownRatio"),_.B("design:type",Number),_.B("design:paramtypes",[])],aZ.prototype,"countdownStrokeDashOffset",null);_.t([_.p("countdownRatio"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],aZ.prototype,"countdownActive",null);_.t([_.p("data.interactionMessage"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],aZ.prototype,"hasInteractionMessage",null);
_.t([_.p("data.emojiPickerButton"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],aZ.prototype,"hasEmojiPickerButton",null);_.t([_.p("data, characterCount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],aZ.prototype,"showAvatar",null);_.t([_.p("data.pickers"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],aZ.prototype,"hasProductPickerPanelViewModel",null);
_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"errorMessage",void 0);_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"genericErrorMessage",void 0);_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"isTooltipVisible",void 0);_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"tooltipTimeout",void 0);_.t([_.p("data.onInitialFocusCommand"),_.B("design:type",String),_.B("design:paramtypes",[])],aZ.prototype,"tooltipMessage",null);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],aZ.prototype,"systemIcons",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],aZ.prototype,"tallerEmojiPicker",void 0);_.t([_.p("data"),_.B("design:type",String),_.B("design:paramtypes",[])],aZ.prototype,"authorNameColor",null);_.t([_.u(),_.B("design:type",Object)],aZ.prototype,"sendReplyMessageInFlight",void 0);_.t([_.Cs("#input"),_.B("design:type",_.szB)],aZ.prototype,"input",void 0);
_.t([_.Cs("#count"),_.B("design:type",HTMLElement)],aZ.prototype,"count",void 0);_.t([_.Cs("#input-container"),_.B("design:type",HTMLElement)],aZ.prototype,"inputContainer",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aZ.prototype,"dataChanged",null);_.t([_.Ks("yt-live-chat-send-message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],aZ.prototype,"sendMessage",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[Event,_.ms]),_.B("design:returntype")],aZ.prototype,"onSendCompleted",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aZ.prototype,"onSendError",null);
_.t([_.Ks("yt-live-chat-icon-toggle-button-renderer-toggle"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],aZ.prototype,"handlePickerButtonToggle",null);_.t([_.Ks("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],aZ.prototype,"onEmojiSelect",null);
_.t([_.OY("characterCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aZ.prototype,"characterCountChanged",null);_.t([_.OY("inputFocused"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aZ.prototype,"focusChanged",null);_.t([_.Ks("yt-live-chat-error-message-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aZ.prototype,"onErrorMessageDismiss",null);
_.t([_.Ks("yt-live-chat-error-message-edit"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],aZ.prototype,"onErrorMessageEdit",null);_.t([_.OY("errorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aZ.prototype,"errorMessageChanged",null);_.t([_.OY("isTooltipVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aZ.prototype,"onIsTooltipVisibleChanged",null);
_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],aZ);
_.U(aZ,"yt-live-chat-message-input-renderer",function(){if(qBo===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;wp0===void 0&&(wp0=document.createElement("template"));var k=wp0;c.call(g,k.content.cloneNode(!0),e.content.firstChild);qBo=e}e=qBo;return e},{mode:0});var oMQ;var Zhg;var n5=function(){var e=_.z.apply(this,arguments)||this;e.systemIcons=_.G("kevlar_system_icons");e.firedOnClickCommand=!1;e.inReplyPanel=!1;return e};
_.Y(n5,_.z);
n5.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"}}}};
n5.prototype.onButtonToggle=function(e){e.target.disabled||this.ytPickerBehavior.togglePicker_(e.detail.targetId)};
n5.prototype.onClick=function(){var e=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Z5(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return e.firedOnClickCommand=!1},5E3))};
_.Bd.Object.defineProperties(n5.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:(g=e.panels)==null?void 0:g.find(function(c){return c.liveChatProductPickerPanelViewModel}))!==void 0}}});
n5.prototype.onButtonToggle=n5.prototype.onButtonToggle;_.t([_.m(ULX.YtPickerBehavior),_.B("design:type",Object)],n5.prototype,"ytPickerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],n5.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],n5.prototype,"systemIcons",void 0);_.t([_.u({reflectToAttribute:!1}),_.B("design:type",Object)],n5.prototype,"firedOnClickCommand",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],n5.prototype,"inReplyPanel",void 0);_.t([_.p("data.pickers"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],n5.prototype,"hasProductPickerPanelViewModel",null);
_.t([_.Ks("yt-live-chat-icon-toggle-button-renderer-toggle"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],n5.prototype,"onButtonToggle",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],n5);
_.U(n5,"yt-live-chat-restricted-participation-renderer",function(){if(Zhg===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;oMQ===void 0&&(oMQ=document.createElement("template"));var k=oMQ;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Zhg=e}e=Zhg;return e},{mode:0});var RZ=function(){var e=_.z.apply(this,arguments)||this;e.genericErrorMessage=_.PL("Error, try again.");e.inReplyPanel=!1;e.hideBorder=!1;return e};
_.Y(RZ,_.z);RZ.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}}}}}};
_.Bd.Object.defineProperties(RZ,{template:{configurable:!0,enumerable:!0,get:function(){return eQv()}}});
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],RZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],RZ.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],RZ.prototype,"genericErrorMessage",void 0);_.t([_.u(),_.B("design:type",Object)],RZ.prototype,"inReplyPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],RZ.prototype,"hideBorder",void 0);
_.t([_.Wo({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],RZ);_.U(RZ,"yt-live-chat-engagement-panel-input-renderer",function(){return eQv()},{mode:0});var VEX;var tES;var BPO=new _.pt("yt-live-chat"),NPX=new Map;NPX.set("timestamp_toggle","show-timestamps");NPX.set("reactions_toggle","allow-reactions");var E0=function(){return _.z.apply(this,arguments)||this};
_.Y(E0,_.z);_.v=E0.prototype;_.v.menuItemIdentifierChanged=function(){var e;(e=this.data)!=null&&e.menuItemIdentifier&&(e=NPX.get(this.data.menuItemIdentifier))&&(_.G("enable_lwe_web_mute")?(e=BPO.get(e),this.isToggled=!(e===void 0?!this.data.isToggled:!e)):this.isToggled=BPO.get(e))};
_.v.onFocus=function(){this.toggleButton.focus()};
_.v.onTap=function(){var e=this.data.command;e&&this.componentBehavior.resolveCommand(e)};
_.v.computeText=function(e,g,c){return this.componentBehavior.getSimpleString(e?c:g)};
_.v.computeIcon=function(e,g,c){return(e=e?c:g)&&e.iconType?_.NY(e.iconType):""};
E0.prototype.onTap=E0.prototype.onTap;E0.prototype.onFocus=E0.prototype.onFocus;E0.prototype.menuItemIdentifierChanged=E0.prototype.menuItemIdentifierChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],E0.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],E0.prototype,"data",void 0);
_.t([_.u({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.B("design:type",String)],E0.prototype,"icon",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],E0.prototype,"isToggled",void 0);_.t([_.Cs("tp-yt-paper-toggle-button"),_.B("design:type",Object)],E0.prototype,"toggleButton",void 0);_.t([_.OY("data.menuItemIdentifier"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],E0.prototype,"menuItemIdentifierChanged",null);
_.t([_.Ks("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],E0.prototype,"onFocus",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],E0.prototype,"onTap",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],E0);
_.U(E0,"yt-live-chat-toggle-renderer",function(){if(tES===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;VEX===void 0&&(VEX=document.createElement("template"));var k=VEX;c.call(g,k.content.cloneNode(!0),e.content.firstChild);tES=e}e=tES;return e},{mode:0});var SBX=new _.AU("NAVIGATION_PROGRESS_TOKEN");var ymM={},KhX={},Ohj=(KhX[HWg.name]=!0,KhX),W_=function(){var e=_.gk.apply(this,arguments)||this;e._noAccessors=!0;e.tabGesturesIsActive=!1;e.actionRouterIsRoot=!0;e.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"};e.pageTitle="";e.titleSuffix="YouTube";e.unseenNotificationCount=
0;e.hasNavigated=!1;e.hasSetScrollTopForNavigation=!1;e.pagePreparer=null;e.zwiebackInitJobId=0;e.dataUpdatePromise=null;e.loadDepsPromise=_.No();e.hasPendingNavigation=!1;e.pendingPlayerOnResponseReceivedActions=[];return e};
_.Y(W_,_.gk);W_.prototype.attached=function(){ME7(this);document.addEventListener("yt-navigate-cache",_.yg(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var e=bR();e.init();e.dispatchElement=this.hostElement};
var ME7=function(e,g){g=g===void 0?0:g;var c=_.Ss().resolve(_.NN(_.yq));if(c)CT7(e,c);else{if(g>=5)throw Error("vl");setTimeout(function(){ME7(e,g+1)},0)}},CT7=function(e,g){g.addEventListener("yt-navigate-start",_.yg(e,e.onYtNavigateStart));
g.addEventListener("yt-navigate-finish",_.yg(e,e.onYtNavigateFinish));g.addEventListener("yt-navigate-error",_.yg(e,e.onYtNavigateError));g.addEventListener("yt-page-data-fetched",_.yg(e,e.onYtPageDataFetched))};
_.v=W_.prototype;_.v.detached=function(){var e=_.Ss().resolve(_.yq);e.removeEventListener("yt-navigate-start",_.yg(this,this.onYtNavigateStart));e.removeEventListener("yt-navigate-finish",_.yg(this,this.onYtNavigateFinish));e.removeEventListener("yt-navigate-error",_.yg(this,this.onYtNavigateError));e.removeEventListener("yt-page-data-fetched",_.yg(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.yg(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.v.setPageOffset=function(e,g){e?_.Z5(this.hostElement,"yt-set-page-offset",[e,g]):_.jW(Error("wl"))};
_.v.setPageOffsetForNavigation=function(e,g){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(e,g))};
_.v.onYtNavigateSetPageOffset=function(e,g){this.setPageOffsetForNavigation(g.page,g.offset)};
_.v.getPageOffset=function(){var e=_.o1(this.hostElement).querySelector("#page-manager").getCurrentPage(),g=0;e&&(g=_.Z5(this.hostElement,"yt-get-page-offset",[e])[0]);return g};
_.v.onYtHistoryPop=function(e,g){if(_.dH("DISABLE_WARM_LOADS"))e.preventDefault(),window.location.reload();else{var c=_.Ss().resolve(_.yq);c.hasPendingNavigation()&&e.preventDefault();c.cancelPendingNavigation();_.V1(this.hostElement,"yt-pending-navigation-cancelled");g.errorMsg&&(e=g.errorMsg.split(" - "),g=Error(e[0]),e.length==2&&e[1]&&(_.pB(g,e[1]),_.mN(g)),window.location.reload())}};
_.v.onYtHistoryLoad=function(e,g){var c=this;if(_.dH("DISABLE_WARM_LOADS"))window.location.reload();else{(e=g.endpoint)&&Object.keys(e).length||(e=null);var k=g.historyEntry,I=_.Ss().resolve(_.yq),J=_.Ss().resolve(_.A4),q=null;k&&k.rootData&&(q=k.rootData);var L=q&&ewg(q);!q||L||q.filler?e?(I.navigate(e,!0),g4v(this,e)):(g.legacyBorder||L||(g.JSC$31245_savedComponentState==null&&q==null?_.mN(new _.E2("Incomplete history entry",g.forward)):_.Py(new _.E2("Malformed history entry",g.JSC$31245_savedComponentState,
g.forward,q))),window.location.reload()):(_.MMV({isHot:!0}),_.nA({webInfo:{navigationReason:"h"}}),_.UCC(),_.Wh("srt"),_.Wh("pdc"),this.cancelPendingTasks(),c7j(this,g.forward,q),q.player&&(q.player.loaded=!1),g4v(this,e),_.n$Y(I,e||{},q,2,{},!1,g).then(function(){c.setPageOffset(J.getCurrentPage(),k.scrollTop||0)}))}};
_.v.initHistoryManager=function(e){if(!this.hasNavigated){this.hasNavigated=!0;var g=_.o1(this.hostElement).querySelector("#page-manager").getCurrentData();e=isNaN(e)?this.getPageOffset():e;var c=_.Ss().resolve(_.yq).currentEndpoint;this.replaceState(c,g,e)}};
_.v.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.v.onYtNavigateStart=function(e,g){this.navigationSpan&&(this.navigationSpan.addAttributes({cancelled:!0}),this.navigationSpan.end());var c;this.navigationSpan=_.Q1("navigate",{fromPath:window.location.pathname,toPath:g.url?(c=_.tv(g.url))!=null?c:void 0:void 0});this.cancelPendingTasks();g.noProgressBar||(e=_.Ss().resolve(_.NN(SBX)))&&e.start();e=this.hasPendingNavigation?null:this.data;c=_.Ss().resolve(_.A4);var k,I,J;_.G("kevlar_use_vimio_behavior")&&!((k=g.endpoint)==null?0:(I=k.commandMetadata)==
null?0:(J=I.webCommandMetadata)==null?0:J.ignoreNavigation)&&(k=c.getCurrentPage())&&k.disconnectVisibilityRoot();c.prepareForNavigation(g.pageType,g.endpoint);_.G("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.AF(1,"pcl"),_.sO(this.pagePreparer,c.preparePage.bind(c,g.pageType,g.endpoint)));k=this.getPageOffset();this.initHistoryManager(k);g.reload||this.hasPendingNavigation?(g.pageType==="shorts"&&g.reload&&_.oC(this.hostElement,"yt-shorts-reset"),this.replaceState(g.endpoint,e,k)):
(e==null?void 0:e.page)==="watch"&&g.pageType==="watch"&&_.G("kevlar_replace_watch_to_watch_history_state")?this.replaceState(g.endpoint,e,k):(e==null?void 0:e.page)!=="shorts"||g.pageType!=="shorts"||g.endpoint.reelWatchEndpoint.sequenceParams||_.G("short_to_short_back_nav_killswitch")?g.type!="navigate-back"&&g.type!="navigate-forward"&&(g.pageType==="shorts"&&_.oC(this.hostElement,"yt-shorts-reset"),this.saveAndPush(g.url,g.endpoint,e,k)):this.replaceState(g.endpoint,e,0);this.hasPendingNavigation=
!0};
var kCS=function(e){e.hasPendingNavigation=!1;(e=_.Ss().resolve(_.NN(SBX)))&&e.finish()};
W_.prototype.onYtNavigateError=function(e,g){this.navigationSpan&&(this.navigationSpan.end("SPAN_STATUS_ERROR"),this.navigationSpan=void 0);kCS(this);e=this.get("endpoint.commandMetadata.webCommandMetadata.url",g);var c=_.V0(window.location.href);e&&!c.pbjreload&&(g=g.navigationErrorReason||"10",_.G("kevlar_parent_on_pbjreload")&&(c={csn:_.EM()},this.get("data.endpoint.clickTrackingParams")&&(c.itct=this.data.endpoint.clickTrackingParams),_.Ar(e,c)),_.Gb(_.t_(e,{pbjreload:g})))};
W_.prototype.onYtNavigateCache=function(e,g){var c=this,k=g.url,I=g.endpoint,J=g.data;e=!!g.miniplayer;g=!!g.skipHistory;if(k&&I&&J){var q=this.getPageOffset(),L=this.data||null;g||this.saveAndPush(k,I,L,q);k=_.n$Y(_.Ss().resolve(_.yq),I,J,e?4:3,{},e);e&&k.then(function(){c.dataUpdatePromise&&c.dataUpdatePromise.then(function(){var n=_.Ss().resolve(_.A4);c.setPageOffset(n.getCurrentPage(),0)})})}};
W_.prototype.onYtNavigateFinish=function(e,g){var c=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){IhO(c,g.fromHistory)})};
var IhO=function(e,g){e.navigationSpan&&(e.navigationSpan.end(),e.navigationSpan=void 0);kCS(e);if(e.pendingPlayerOnResponseReceivedActions){for(var c=_.w(e.pendingPlayerOnResponseReceivedActions),k=c.next();!k.done;k=c.next())_.KO(k.value,e.hostElement);e.pendingPlayerOnResponseReceivedActions=[]}c=_.Ss().resolve(_.A4);g||!e.hasNavigated||_.G("web_disable_scroll_on_navigate_finish")||((g=c.getCurrentPage())?g.is==="ytd-shorts"||e.tabGesturesIsActive||e.setPageOffsetForNavigation(g,0):_.mN(Error("xl")));
_.Y_(function(){_.Y_(function(){_.Wh("pda")})})};
W_.prototype.onYtNavigate=function(e){if(!e.detail.endpoint){var g=new _.E2("Error: Missing yt-navigate endpoint from target:",e.target,e.target.nodeName);_.jW(g)}if(g=_.G("cold_missing_history"))g=bR(),g.init(!1),g=!(g.browserHistory.boundHistoryReplaceState&&g.browserHistory.boundHistoryPushState);if(g){_.Fq("DISABLE_WARM_LOADS",!0);g=new _.E2("Failed to initialize history manager",this.getDebugString());var c=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
c?_.mN(g):_.jW(g)}g=e.detail.endpoint;var k,I;_.G("debug_forward_web_query_parameters")&&((k=g.commandMetadata)==null?0:(I=k.webCommandMetadata)==null?0:I.url)&&(g=JSON.parse(JSON.stringify(g)),g.commandMetadata.webCommandMetadata.url=_.N$C(g.commandMetadata.webCommandMetadata.url,window.location.search));e={type:0,command:g,form:{params:e.detail.params,tempData:e.detail.tempData||{},requestType:e.detail.type,createScreenConfig:e.detail.createScreenConfig,reload:e.detail.reload?e.detail.reload:!1,
requestForm:e.detail}};_.G("kevlar_yt_navigate_command_handler")?(k=_.Ss().resolve(_.xk),e.form.skipDefaultElement=!0,k.resolveCommand(g,{form:e.form})):this.handleNavigate(e)};
W_.prototype.handleNavigate=function(e){this.hasSetScrollTopForNavigation=!1;var g=_.Ss().resolve(_.yq),c=e.form||{};g.navigate(e.command,c.reload,c.params,c.tempData,c.requestType,c.createScreenConfig,c.ignoreConfirmation,c.requestForm)&&g4v(this,e.command,c.tempData)};
W_.prototype.onYtPageDataFetched=function(e,g){try{_.gMs().reset();this.data=g.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.Ss().resolve(_.A4).updatePageData(this.data);var c=this.get("playerResponse.onResponseReceivedActions",this.data);c&&(c=J7M(this,c));c&&_.Bm(this.hostElement,c,this.hostElement);var k=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),I=this.get("response.responseContext.consistencyTokenJar",this.data);if(k||I){var J=_.IKp(),q=(0,_.n0.getValues)(J.tokenJars);k&&J.replace(q,k);I&&J.replace(q,I)}}catch(L){_.jW(L)}};
var g4v=function(e,g,c){try{e.onYtEndpointChangeHandler(g,c)}catch(k){_.jW(k)}};
_.v=W_.prototype;_.v.onYtEndpointChangeHandler=function(){};
_.v.setPageTitle=function(e){e=(this.pageTitle=e)?e+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+e};
_.v.onYtUpdateTitle=function(e,g){this.setPageTitle(g)};
_.v.setUnseenNotificationCount=function(e){this.unseenNotificationCount=e;this.setPageTitle(this.pageTitle)};
_.v.handleUpdateNotificationsUnseenCountAction=function(e){_.x(e,riD)&&((e=_.x(e,riD).unseenCount)?this.setUnseenNotificationCount(e):this.setUnseenNotificationCount(0))};
_.v.handleClearCookieAction=function(e){var g;(e=(g=_.x(e,Isj))==null?void 0:g.cookieName)&&_.nd8(e)};
_.v.onYtUpdateUnseenNotificationCount=function(e,g){this.setUnseenNotificationCount(g)};
_.v.loadData=function(e){var g=this;this.loadDepsPromise.then(function(){var c=_.Ss().resolve(_.NN(_.yq));c||_.jW(Error("yl"));if(e&&e.response){if(!e.endpoint){var k=_.Bc(window.document.location.href)||"/",I="";if(k==="/"||k.startsWith("/?"))I="WEB_PAGE_TYPE_BROWSE";e.endpoint={commandMetadata:{webCommandMetadata:{url:k,webPageType:I,rootVe:3854}}}}_.n$Y(c,e.endpoint,e,5,{})}else e.endpoint?c.navigate(e.endpoint):c.navigate(_.cl);_.ft.cancelJob(g.zwiebackInitJobId);g.zwiebackInitJobId=_.ft.addLowPriorityJob(NiO)})};
var bR=function(){return _.Ss().resolve(_.Oc)};
W_.prototype.getDebugString=function(){return bR().getDebugString()};
W_.prototype.getThirdPartyManipulationSuspected=function(){return bR().getThirdPartyManipulationSuspected()};
W_.prototype.replaceState=function(e,g,c){bR().saveAndReplace(e,g,c)};
W_.prototype.saveAndPush=function(e,g,c,k){bR().saveAndPush(e,g,c,k)};
var ewg=function(e){return _.x(e.endpoint,_.Pm)||_.x(e.endpoint,_.eh)?!0:!e||isNaN(e.expirationTime)?!1:(0,_.yr)()>e.expirationTime},c7j=function(e,g,c){var k=e.get("response.trackingParams",c),I=_.RC(),J=_.EM();
if(k&&I&&J&&(k=e.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",c),!k&&c.rootVe&&(k=c.rootVe),I=g?"forwardButton":"backButton",g=e.get("playerResponse.topbar.desktopTopbarRenderer."+I+".buttonRenderer.command.clickTrackingParams",e.data),e=e.get("response.topbar.desktopTopbarRenderer."+I+".buttonRenderer.command.clickTrackingParams",e.data),g=(e=g||e)?_.Jb(e):void 0,e=_.gL(),I=[_.No(c)],_.BU(e,k,g,{dataPromises:I,csnToClone:c.csn}),c.graftedVes))for(c=
_.w(c.graftedVes),k=c.next();!k.done;k=c.next())_.Nd(e,k.value)};
W_.prototype.onStoreGraftedVeAction=function(e){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(e)):_.mN(Error("zl"))};
var J7M=function(e,g){return g.filter(function(c){for(var k in c)if(Ohj[k])return e.pendingPlayerOnResponseReceivedActions.push(c),!0;return!1})};
_.Bd.Object.defineProperties(W_.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
W_.prototype.onStoreGraftedVeAction=W_.prototype.onStoreGraftedVeAction;W_.prototype.loadData=W_.prototype.loadData;W_.prototype.onYtUpdateUnseenNotificationCount=W_.prototype.onYtUpdateUnseenNotificationCount;W_.prototype.handleClearCookieAction=W_.prototype.handleClearCookieAction;W_.prototype.handleUpdateNotificationsUnseenCountAction=W_.prototype.handleUpdateNotificationsUnseenCountAction;W_.prototype.setUnseenNotificationCount=W_.prototype.setUnseenNotificationCount;
W_.prototype.onYtUpdateTitle=W_.prototype.onYtUpdateTitle;W_.prototype.setPageTitle=W_.prototype.setPageTitle;W_.prototype.onYtEndpointChangeHandler=W_.prototype.onYtEndpointChangeHandler;W_.prototype.onYtPageDataFetched=W_.prototype.onYtPageDataFetched;W_.prototype.handleNavigate=W_.prototype.handleNavigate;W_.prototype.onYtNavigate=W_.prototype.onYtNavigate;W_.prototype.onYtNavigateFinish=W_.prototype.onYtNavigateFinish;W_.prototype.onYtNavigateCache=W_.prototype.onYtNavigateCache;
W_.prototype.onYtNavigateError=W_.prototype.onYtNavigateError;W_.prototype.onYtNavigateStart=W_.prototype.onYtNavigateStart;W_.prototype.cancelPendingTasks=W_.prototype.cancelPendingTasks;W_.prototype.initHistoryManager=W_.prototype.initHistoryManager;W_.prototype.onYtHistoryLoad=W_.prototype.onYtHistoryLoad;W_.prototype.onYtHistoryPop=W_.prototype.onYtHistoryPop;W_.prototype.onYtNavigateSetPageOffset=W_.prototype.onYtNavigateSetPageOffset;W_.prototype.setPageOffset=W_.prototype.setPageOffset;
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],W_.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],W_.prototype,"data",void 0);_.t([_.Ks("yt-navigate-set-page-offset"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],W_.prototype,"onYtNavigateSetPageOffset",null);
_.t([_.Ks("yt-history-pop"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],W_.prototype,"onYtHistoryPop",null);_.t([_.Ks("yt-history-load"),_.B("design:type",Function),_.B("design:paramtypes",[Event,_.mXq]),_.B("design:returntype")],W_.prototype,"onYtHistoryLoad",null);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],W_.prototype,"onYtNavigate",null);
_.t([_.Ks("yt-update-title"),_.B("design:type",Function),_.B("design:paramtypes",[Event,String]),_.B("design:returntype")],W_.prototype,"onYtUpdateTitle",null);_.t([_.Ks("yt-update-unseen-notification-count"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Number]),_.B("design:returntype")],W_.prototype,"onYtUpdateUnseenNotificationCount",null);_.t([_.co()],W_);ymM.YtdAppBehavior=[_.Nr.YtActionHandlerBehavior,W_.prototype];var h1=function(){var e=_.gk.apply(this,arguments)||this;e._noAccessors=!0;e.scrollRate=3;e.autoScrollAnimationStart=0;e.autoScrollPaused=!1;e.autoScrollRafId=0;return e};
_.Y(h1,_.gk);_.v=h1.prototype;_.v.created=function(){var e=this;this.boundAutoScrollHandler=function(g){e.autoScroll(g)}};
_.v.detached=function(){this.hostElement.removeEventListener("mouseout",_.yg(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.yg(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.yg(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.v.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.yg(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.yg(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.yg(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.yg(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.yg(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.yg(this,this.endAutoScroll)),this.endAutoScroll())};
_.v.autoScroll=function(e){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=e);var g;if(g=!this.autoScrollPaused&&this.scrollTarget)g=this.scrollTarget,g=g.scrollHeight-g.scrollTop!==g.clientHeight;g&&(g=1E3/this.scrollRate,e-=this.autoScrollAnimationStart,e>g&&(this.scrollTarget.scrollTop+=Math.ceil(e/g),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.v.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.v.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
h1.prototype.autoScrollEnabledChanged=h1.prototype.autoScrollEnabledChanged;_.t([_.u(),_.B("design:type",Object)],h1.prototype,"scrollRate",void 0);_.t([_.u(),_.B("design:type",Object)],h1.prototype,"scrollTarget",void 0);_.t([_.u(),_.B("design:type",Boolean)],h1.prototype,"autoScrollEnabled",void 0);_.t([_.OY("autoScrollEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],h1.prototype,"autoScrollEnabledChanged",null);_.t([_.co()],h1);var v4S=[h1.prototype];var Xf=function(){var e=_.gk.apply(this,arguments)||this;e._noAccessors=!0;return e};
_.Y(Xf,_.gk);Xf.prototype.ready=function(){var e=this;_.o1(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){e.onChange_()})};
Xf.prototype.dataChanged_=function(){_.o1(this.hostElement).querySelector("#checkbox").checked=!1};
Xf.prototype.onChange_=function(){var e=_.o1(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.oC(this.hostElement,"yt-dismissal-reason-"+e,this.data.feedbackToken)};
Xf.prototype.dataChanged_=Xf.prototype.dataChanged_;_.t([_.u(),_.B("design:type",Object)],Xf.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xf.prototype,"dataChanged_",null);_.t([_.co()],Xf);var w4j=[Xf.prototype];var G$=function(){var e=_.gk.apply(this,arguments)||this;e.showInput=!1;return e};
_.Y(G$,_.gk);_.v=G$.prototype;_.v.detached=function(){this.showInput&&window.removeEventListener("click",_.yg(this,this.closeOnOutsideClick_))};
_.v.stopPropagation_=function(e){this.showInput&&e.stopPropagation()};
_.v.closeOnOutsideClick_=function(e){this.closeOnOutsideClickCondition(e)&&(this.showInput=!1,window.removeEventListener("click",_.yg(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.v.closeOnOutsideClickCondition=function(){return!0};
_.v.closeOnOutsideClickHandler=function(){};
_.v.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.yg(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.v.openOnClickHandler=function(){};
_.v.showInputChanged=function(){};
_.v.setShowInput=function(e){this.showInput=e};
G$.prototype.setShowInput=G$.prototype.setShowInput;G$.prototype.showInputChanged=G$.prototype.showInputChanged;G$.prototype.openOnClickHandler=G$.prototype.openOnClickHandler;G$.prototype.openOnClick_=G$.prototype.openOnClick_;G$.prototype.closeOnOutsideClickHandler=G$.prototype.closeOnOutsideClickHandler;G$.prototype.closeOnOutsideClickCondition=G$.prototype.closeOnOutsideClickCondition;G$.prototype.closeOnOutsideClick_=G$.prototype.closeOnOutsideClick_;G$.prototype.stopPropagation_=G$.prototype.stopPropagation_;
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],G$.prototype,"showInput",void 0);_.t([_.Ks("click"),_.Ks("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],G$.prototype,"stopPropagation_",null);_.t([_.OY("showInput"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],G$.prototype,"showInputChanged",null);_.t([_.co()],G$);var qFM=[G$.prototype];var x$=function(){var e=_.gk.apply(this,arguments)||this;e.timeoutJobId=0;e.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return e};
_.Y(x$,_.gk);x$.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
x$.prototype.startTimeout=function(){var e=this,g=this.data&&this.data.displayDurationSeconds;g&&!this.timeoutJobId&&(this.timeoutJobId=_.h2(_.ft,function(){_.Z5(e.hostElement,"yt-close-popup-action",[e.is]);e.timeoutJobId=0},g*1E3))};
x$.prototype.cancelTimeout=function(){_.ft.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
x$.prototype.ytdHatsSurveyBehaviorDataChanged=x$.prototype.ytdHatsSurveyBehaviorDataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],x$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x$.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.t([_.co()],x$);var L1D=[_.Nr.YtActionHandlerBehavior,x$.prototype];var r7Q=_.VF(115994),ahX=_.VF(115993),n4g=function(e,g,c){var k=this;var I=c.dragDownAction;this.layer=0;this.JSC$20425_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return k.dragDownAction()}}}};
this.JSC$20425_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return k.dragDownAction()}}}};
this.fullscreen=!1;var J=_.gL();_.SD(J,r7Q,this.layer);_.SD(J,ahX,this.layer);this.dragDownAction=function(){I();_.$y(J,{visualElement:k.fullscreen?r7Q:ahX})};
this.gesture=new zQ(e,g,this.getConfig(!1),"pandown");this.attach()};
n4g.prototype.attach=function(){this.gesture.attach()};
n4g.prototype.detach=function(){this.gesture.detach()};
n4g.prototype.update=function(e){this.fullscreen=e;var g=this.gesture;e=this.getConfig(e);g.config=e};
n4g.prototype.getConfig=function(e){return e?this.JSC$20425_watchFullScreenConfig:this.JSC$20425_watchConfig};var RwM;var E4D;var D$=function(){var e=_.z.apply(this,arguments)||this;e.systemIcons=_.G("kevlar_system_icons");e.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return e};
_.Y(D$,_.z);D$.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var e=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(e=this.data.percentIfLiked||0,this.activated=!0):(e=this.data.percentIfIndifferent||0,this.activated=!1);_.o1(this.hostElement).querySelector("#like-bar").style.width=e+"%"}};
D$.prototype.handleUpdateSentimentBarStateCommand=function(e){this.data&&this.set("data.likeStatus",_.x(e,YNq).likeStatus)};
D$.prototype.observeLikeStatus=D$.prototype.observeLikeStatus;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],D$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],D$.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],D$.prototype,"activated",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],D$.prototype,"systemIcons",void 0);_.t([_.OY("data.likeStatus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D$.prototype,"observeLikeStatus",null);_.t([_.bF({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],D$);
_.U(D$,"ytd-sentiment-bar-renderer",function(){if(E4D!==void 0)return E4D;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return E4D=e},{mode:1});var W1o;var $$=function(){var e=_.z.apply(this,arguments)||this;e.small=!0;return e};
_.Y($$,_.z);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],$$.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$$.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$$.prototype,"small",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],$$);
_.U($$,"ytd-video-view-count-renderer",function(){if(W1o!==void 0)return W1o;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return W1o=e},{mode:2});var Y$=function(){var e=_.z.apply(this,arguments)||this;e.infoFormattedStrings=[];e.wrapVideoActions=_.G("kevar_watch_wrap_video_actions");e.hideSentimentBar=_.G("kevlar_watch_hide_sentiment_bar");e.actionMap={};return e};
_.Y(Y$,_.z);_.v=Y$.prototype;_.v.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.G("web_modern_buttons"),forceIconButton:!_.G("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.v.dataChanged=function(){_.G("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.v.computeInfoFormattedStrings=function(e){if(!e)return[];var g=[];e.dateText&&g.push(e.dateText);e.stationName&&g.push(e.stationName);e.rating&&g.push(e.rating);e.startEndTimeTemplate&&e.startTimeUtcMillis&&e.endTimeUtcMillis&&g.push(_.PL(hBO(_.mp(e.startEndTimeTemplate),Number(e.startTimeUtcMillis),Number(e.endTimeUtcMillis))));e.upNextProgramText&&g.push(e.upNextProgramText);return g};
_.v.scheduleInitialUpdatedMetadataRequest=function(){var e,g=(e=this.data)==null?void 0:e.updatedMetadataEndpoint;if(g){var c;e=Number((c=_.x(g,_.XvY))==null?void 0:c.initialDelayMs);c=isNaN(e)?250:e;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),c)}};
_.v.setSentimentBarWidth=function(){var e=this;_.Va(this,function(){var g=_.o1(e.hostElement).querySelector("ytd-menu-renderer");if(g){g=g.topLevelButtons;for(var c=0,k=0;k<g.length;k++){var I=g[k],J=e.get("toggleButtonSupportedData.toggleButtonIdData.id",I.data);if(J==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||J==="TOGGLE_BUTTON_ID_TYPE_LIKE")c+=I.clientWidth+8;else break}c&&(e.sentiment.style.width=c-8+" px")}})};
_.v.fetchUpdatedMetadata=function(e){var g;e&&(g={continuation:e});var c;(e=(c=this.data)==null?void 0:c.updatedMetadataEndpoint)&&_.Ss().resolve(_.xk).resolveCommand(e,{form:Object.assign({},g,{element:this.hostElement})})};
_.v.onYtServiceRequestSent=function(e,g){g.endpoint&&_.x(g.endpoint,_.LP)&&(this.hasUpdateSentimentBarStateCommands()&&!_.G("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.x(g.endpoint,_.LP).status),this.setSentimentBarWidth())};
_.v.hasUpdateSentimentBarStateCommands=function(){var e,g,c,k,I=(k=(e=this.data)==null?void 0:(g=e.videoActions)==null?void 0:(c=g.menuRenderer)==null?void 0:c.topLevelButtons)!=null?k:[];e=_.w(I);for(g=e.next();!g.done;g=e.next()){g=g.value;I=k=c=void 0;var J=(c=g.toggleButtonRenderer)==null?void 0:(k=c.toggleButtonSupportedData)==null?void 0:(I=k.toggleButtonIdData)==null?void 0:I.id;if(J==="TOGGLE_BUTTON_ID_TYPE_LIKE"||J==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){k=c=void 0;g=(k=_.x((c=g.toggleButtonRenderer)==
null?void 0:c.defaultServiceEndpoint,_.SV))==null?void 0:k.commands;if(!g)break;g=_.w(g);for(c=g.next();!c.done;c=g.next())if(_.x(c.value,YNq))return!0}}return!1};
_.v.onYtServiceRequestCompleted=function(e,g){var c;(e=(c=g.data)==null?void 0:c.loggingDirectives)&&_.xj6(_.gL(),e);this.get("continuation.timedContinuationData",g.data)&&this.data&&this.data.updatedMetadataEndpoint&&(g=g.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,g.continuation),g.timeoutMs))};
_.v.computeHasDateText=function(e){return!!e&&!!e.dateText};
_.Bd.Object.defineProperties(Y$.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k;return!((k=(e=this.data)==null?void 0:(g=e.videoActions)==null?void 0:(c=g.menuRenderer)==null?void 0:c.flexibleItems)==null||!k.length)}}});
Y$.prototype.onYtServiceRequestCompleted=Y$.prototype.onYtServiceRequestCompleted;Y$.prototype.onYtServiceRequestSent=Y$.prototype.onYtServiceRequestSent;Y$.prototype.dataChanged=Y$.prototype.dataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Y$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Y$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.TG.YtTaskEmitterBehavior),_.B("design:type",Object)],Y$.prototype,"ytTaskEmitterBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Y$.prototype,"data",void 0);_.t([_.u({computed:"computeInfoFormattedStrings(data)"}),_.B("design:type",Array)],Y$.prototype,"infoFormattedStrings",void 0);
_.t([_.u({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Y$.prototype,"hasDateText",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Y$.prototype,"wrapVideoActions",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Y$.prototype,"hideSentimentBar",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Y$.prototype,"flexMenuEnabled",null);
_.t([_.Cs("#sentiment"),_.B("design:type",Object)],Y$.prototype,"sentiment",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Y$.prototype,"dataChanged",null);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],Y$.prototype,"onYtServiceRequestSent",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],Y$.prototype,"onYtServiceRequestCompleted",null);
_.U(Y$,"ytd-video-primary-info-renderer",function(){if(RwM===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);RwM=e}e=RwM;return e},{mode:1});var bdv;var hw7;var f5=function(){return _.z.apply(this,arguments)||this};
_.Y(f5,_.z);f5.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
f5.prototype.onTap=function(e){var g=this.data&&this.data.endpoint;g&&!_.TJ(_.lg(e),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.oC(this.hostElement,"yt-navigate",{endpoint:g})};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],f5.prototype,"data",void 0);_.t([_.bF({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],f5);
_.U(f5,"ytd-autotagging-metadata-renderer",function(){if(hw7!==void 0)return hw7;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return hw7=e},{mode:1});var X4q;var jB=function(){return _.z.apply(this,arguments)||this};
_.Y(jB,_.z);jB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],jB.prototype,"data",void 0);_.t([_.bF({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],jB);
_.U(jB,"ytd-autotagging-metadata-row-renderer",function(){if(X4q!==void 0)return X4q;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return X4q=e},{mode:1});var GCX;var x8v;var iR=function(){var e=_.z.apply(this,arguments)||this;e.engagementPanelContent=!1;return e};
_.Y(iR,_.z);iR.prototype.computeHasDividerLine=function(e,g){return e&&!g};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],iR.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.B("design:type",Boolean)],iR.prototype,"hasDividerLine",void 0);_.t([_.u(),_.B("design:type",Object)],iR.prototype,"engagementPanelContent",void 0);
_.t([_.bF({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],iR);
_.U(iR,"ytd-metadata-row-header-renderer",function(){if(x8v!==void 0)return x8v;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return x8v=e},{mode:1});var D8X;var P_=function(){return _.z.apply(this,arguments)||this};
_.Y(P_,_.z);P_.prototype.computeHasDividerLine=function(e){return e};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],P_.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.B("design:type",Boolean)],P_.prototype,"hasDividerLine",void 0);_.t([_.bF({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],P_);
_.U(P_,"ytd-metadata-row-renderer",function(){if(D8X!==void 0)return D8X;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return D8X=e},{mode:1});var $8S;var YFz=function(){return _.z.apply(this,arguments)||this};
_.Y(YFz,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],YFz.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],YFz.prototype,"data",void 0);_.t([_.bF({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],YFz);
_.U(YFz,"ytd-metadata-with-image-row-renderer",function(){if($8S!==void 0)return $8S;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return $8S=e},{mode:1});var fhq;var ml=function(){var e=_.z.apply(this,arguments)||this;e.rounded=!0;e.fixie=!1;e.fullWidth=!1;return e};
_.Y(ml,_.z);_.v=ml.prototype;_.v.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.onDataChanged=function(){var e=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(g){e.onEndpointLinkKeyPress(g)}))};
_.v.onEndpointLinkKeyPress=function(e){e.target===this.endpointLink&&e.keyCode===13&&_.oC(this.hostElement,"click")};
_.v.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var e;if((e=this.data)==null?0:e.endpoint)_.Bm(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.v.onYtNavigate=function(e){this.endpointHref||(e.stopPropagation(),e.preventDefault())};
_.v.onInformationButtonContainerClick=function(e){e.target.id!=="information-button-container"&&(e.stopPropagation(),e.preventDefault())};
_.v.computeStyle=function(e){return e};
_.v.computeIsThumbnailStyle=function(e){return e==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.v.computeThumbnailWidth=function(e){switch(e){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.v.computeThumbnailObjectFit=function(e){switch(e){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Bd.Object.defineProperties(ml.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
ml.prototype.onYtNavigate=ml.prototype.onYtNavigate;ml.prototype.onClick=ml.prototype.onClick;ml.prototype.onDataChanged=ml.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],ml.prototype,"componentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],ml.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],ml.prototype,"componentStyle",void 0);_.t([_.u({computed:"computeIsThumbnailStyle(data.style)"}),_.B("design:type",Boolean)],ml.prototype,"isThumbnailStyle",void 0);_.t([_.u({computed:"computeThumbnailObjectFit(data.style)"}),_.B("design:type",String)],ml.prototype,"thumbnailObjectFit",void 0);
_.t([_.u({computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],ml.prototype,"thumbnailWidth",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ml.prototype,"rounded",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ml.prototype,"fixie",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ml.prototype,"fullWidth",void 0);_.t([_.Cs("#endpoint-link"),_.B("design:type",HTMLAnchorElement)],ml.prototype,"endpointLink",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ml.prototype,"onDataChanged",null);_.t([_.p("data.endpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],ml.prototype,"endpointHref",null);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],ml.prototype,"onClick",null);
_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ml.prototype,"onYtNavigate",null);_.t([_.bF({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],ml);
_.U(ml,"ytd-rich-metadata-renderer",function(){if(fhq!==void 0)return fhq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return fhq=e},{mode:2});var jwv;var p5=function(){var e=_.z.apply(this,arguments)||this;e.fixie=!1;e.fullWidth=!1;return e};
_.Y(p5,_.z);p5.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
p5.prototype.computeHasDividerLine=function(e){return e};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],p5.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.B("design:type",Boolean)],p5.prototype,"hasDividerLine",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"fixie",void 0);_.t([_.u(),_.B("design:type",Object)],p5.prototype,"fullWidth",void 0);
_.t([_.bF({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],p5);
_.U(p5,"ytd-rich-metadata-row-renderer",function(){if(jwv!==void 0)return jwv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return jwv=e},{mode:1});var T$=function(){var e=_.z.apply(this,arguments)||this;e.engagementPanelContent=!1;e.fixie=!1;e.fullWidth=!1;return e};
_.Y(T$,_.z);
T$.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"}}}};
T$.prototype.computeCollapsibleItems=function(e,g,c){return e===void 0||g===void 0||c===void 0||c?[]:e.slice(g)};
T$.prototype.computeAlwaysShownItems=function(e,g){return e&&e.length?e.slice(0,g):[]};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],T$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],T$.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],T$.prototype,"collapsed",void 0);
_.t([_.u({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.B("design:type",Array)],T$.prototype,"alwaysShownItems",void 0);_.t([_.u({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.B("design:type",Array)],T$.prototype,"collapsibleItems",void 0);_.t([_.u(),_.B("design:type",Object)],T$.prototype,"engagementPanelContent",void 0);_.t([_.u(),_.B("design:type",Object)],T$.prototype,"fixie",void 0);
_.t([_.u(),_.B("design:type",Object)],T$.prototype,"fullWidth",void 0);_.t([_.bF({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],T$);
_.U(T$,"ytd-metadata-row-container-renderer",function(){if(GCX!==void 0)return GCX;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return GCX=e},{mode:1});var idg;var lR=function(){return _.z.apply(this,arguments)||this};
_.Y(lR,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],lR.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],lR.prototype,"data",void 0);_.t([_.bF({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],lR);
_.U(lR,"ytd-error-corrections-section-item-renderer",function(){if(idg!==void 0)return idg;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return idg=e},{mode:1});var Pro;var A1=function(){return _.z.apply(this,arguments)||this};
_.Y(A1,_.z);A1.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],A1.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],A1.prototype,"data",void 0);_.t([_.bF({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],A1);
_.U(A1,"ytd-error-corrections-section-renderer",function(){if(Pro!==void 0)return Pro;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Pro=e},{mode:1});var m8g;var s0=function(){return _.z.apply(this,arguments)||this};
_.Y(s0,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],s0.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],s0.prototype,"data",void 0);_.t([_.bF({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],s0);
_.U(s0,"ytd-topic-link-renderer",function(){if(m8g!==void 0)return m8g;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return m8g=e},{mode:1});var p4o;var Ff=function(){var e=_.z.apply(this,arguments)||this;e.modernLockupV2=_.G("modernize_structured_description_playlist_lockups_v2");return e};
_.Y(Ff,_.z);Ff.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ff.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ff.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ff.prototype,"modernLockupV2",void 0);_.t([_.bF({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Ff);
_.U(Ff,"ytd-video-description-course-section-renderer",function(){if(p4o!==void 0)return p4o;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return p4o=e},{mode:1});var Tu0;var uR=function(){return _.z.apply(this,arguments)||this};
_.Y(uR,_.z);uR.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],uR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],uR.prototype,"data",void 0);_.t([_.bF({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],uR);
_.U(uR,"ytd-video-description-files-section-renderer",function(){if(Tu0!==void 0)return Tu0;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Tu0=e},{mode:1});var lhj;var dn=function(){return _.z.apply(this,arguments)||this};
_.Y(dn,_.z);dn.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],dn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],dn.prototype,"data",void 0);_.t([_.bF({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],dn);
_.U(dn,"ytd-video-description-gaming-section-renderer",function(){if(lhj!==void 0)return lhj;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return lhj=e},{mode:1});var A7S;var z$=function(){var e=_.z.apply(this,arguments)||this;e.isExpanded=!1;return e};
_.Y(z$,_.z);z$.prototype.computeHasDefaultMetadataEndpoint=function(e){var g;e=e==null?void 0:(g=e.defaultMetadata)==null?void 0:g.runs;return!(!e||e.length!==1||!e[0].navigationEndpoint)};
z$.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Bd.Object.defineProperties(z$.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],z$.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],z$.prototype,"isExpanded",void 0);_.t([_.u({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],z$.prototype,"hasDefaultMetadataEndpoint",void 0);
_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],z$.prototype,"isExpandable",null);_.t([_.p("data","isExpandable","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],z$.prototype,"showExpandedMetadata",null);_.t([_.bF({is:"ytd-info-row-renderer",disableElementRegistration:!0})],z$);
_.U(z$,"ytd-info-row-renderer",function(){if(A7S!==void 0)return A7S;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return A7S=e},{mode:1});var swM;var H_=function(){var e=_.z.apply(this,arguments)||this;e.currentIndex=0;e.supportComponentResize=!0;e.JSC$20482_lastScrollContainerWidth=NaN;return e};
_.Y(H_,_.z);_.v=H_.prototype;
_.v.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.v.getItemsPath=function(){return"videoLockups"};
_.v.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.v.onIronResize=function(){this.updateVideoLockupStyles()};
_.v.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.v.updateVideoLockupStyles=function(){var e;this.JSC$20482_scrollContainer!==void 0&&(e=this.videoLockups)!=null&&e.length&&(e=this.JSC$20482_scrollContainer.clientWidth,e!==this.JSC$20482_lastScrollContainerWidth&&(this.JSC$20482_lastScrollContainerWidth=e,_.Nk(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(e*.8,415)+"px"}),_.oC(this.hostElement,"iron-resize")))};
_.Bd.Object.defineProperties(H_.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var e=[],g;if((g=this.data)==null||!g.carouselLockups)return e;g=_.w(this.data.carouselLockups);for(var c=g.next();!c.done;c=g.next()){c=c.value;var k=void 0;((k=_.x(c,UgX))==null?0:k.videoLockup)&&e.push(_.x(c,UgX).videoLockup)}return e}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.videoLockups)==null||!e.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var e=[],g;if((g=this.data)==null||!g.carouselLockups)return e;var c;return(c=_.x(this.data.carouselLockups[this.scrollCount],UgX))==null?void 0:c.infoRows}}});
H_.prototype.dataChanged=H_.prototype.dataChanged;H_.prototype.onIronResize=H_.prototype.onIronResize;H_.prototype.hiddenChanged=H_.prototype.hiddenChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],H_.prototype,"componentBehavior",void 0);_.t([_.m(_.dO.YtdHorizontalListBehavior),_.B("design:type",Object)],H_.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],H_.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],H_.prototype,"inlineStructuredDescription",void 0);_.t([_.u({value:2}),_.B("design:type",Number)],H_.prototype,"initialCount",void 0);_.t([_.u(),_.B("design:type",Object)],H_.prototype,"currentIndex",void 0);
_.t([_.u(),_.B("design:type",Number)],H_.prototype,"scrollCount",void 0);_.t([_.u(),_.B("design:type",Object)],H_.prototype,"supportComponentResize",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],H_.prototype,"contentHidden",void 0);_.t([_.Cs("#scroll-container"),_.B("design:type",HTMLDivElement)],H_.prototype,"JSC$20482_scrollContainer",void 0);
_.t([_.OY("contentHidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],H_.prototype,"hiddenChanged",null);_.t([_.p("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],H_.prototype,"videoLockups",null);_.t([_.p("videoLockups"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],H_.prototype,"hasVideoLockups",null);
_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],H_.prototype,"onIronResize",null);_.t([_.p("data","scrollCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],H_.prototype,"infoRows",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],H_.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],H_);
_.U(H_,"ytd-video-description-music-section-renderer",function(){if(swM!==void 0)return swM;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return swM=e},{mode:2});var F17;var Qy=function(){return _.z.apply(this,arguments)||this};
_.Y(Qy,_.z);Qy.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Qy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.t([_.u({}),_.B("design:type",Object)],Qy.prototype,"data",void 0);_.t([_.bF({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Qy);
_.U(Qy,"ytd-video-description-transcript-section-renderer",function(){if(F17!==void 0)return F17;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return F17=e},{mode:1});var uRj;_.sL(_.H(function(e){var g=_.O1(_.o$K,function(){return e.data().firstProviderLinkStatusEntityKey}),c=_.O1(_.o$K,function(){return e.data().secondProviderLinkStatusEntityKey}),k=function(){var I,J;
return((I=g())==null?void 0:I.linked)||((J=c())==null?void 0:J.linked)};
return _.a("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.a(_.fa,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return e.data().sectionTitle}}),_.a(_.fa,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return k()?e.data().connectedMessage:e.data().notConnectedMessage}}),_.a(_.E,{cond:k,
then:function(){return _.a(_.eS,{data:function(){return e.data().connectedButton}},{buttonViewModel:function(I){return _.a(_.oD,{data:I.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.a(_.E,{cond:function(){return!k()},
then:function(){return _.a(_.eS,{data:function(){return e.data().notConnectedButton}},{buttonViewModel:function(I){return _.a(_.oD,{data:I.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Qh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;return _.a("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.a("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.a(_.fa,{text:function(){return g().sectionTitle}})),_.a("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.a(_.fa,{text:function(){return g().bodyHeader}})),_.a("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.a(_.fa,{text:function(){return g().bodyText}})),_.a(_.E,{cond:function(){return g().attributionText},
then:function(){return _.a("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.a(_.fa,{text:function(){return g().attributionText}}))}}))},"Rh"),"how-this-was-made-section-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){return _.a("yt-video-description-youchat-section-view-model",{class:_.o6("ytVideoDescriptionYouchatSectionViewModelHost")},_.a("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.a(_.fa,{text:function(){return e.data().sectionTitle}})),_.a("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.a(_.fa,{text:function(){return e.data().subHeaderText}})),_.a("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.a(_.oD,{data:function(){return _.x(e.data().primaryButton,
_.$8)}})))},"Sh"),"yt-video-description-youchat-section-view-model",{props:{data:_.jx}});var U0=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return e};
_.Y(U0,_.z);_.v=U0.prototype;
_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.v.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.v.dataChanged=function(){var e,g;this.hasDescriptionOnly=!(((e=this.data)==null?void 0:(g=e.items)==null?void 0:g.length)!==1||!_.x(this.data.items[0],EA))};
_.v.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.v.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.v.autoFocusDescription=function(){var e;((e=_.Ss().resolve(_.NN(_.u7)))==null?0:e.isKeyBoardInUse())&&this.description&&_.oF(this.description)};
_.v.resize=function(){if(_.G("kevlar_disable_sd_resize"))this.JSC$20489_cardList&&_.oC(this.JSC$20489_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.oC(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.oC(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.v.scrollToSection=function(e){if(e=this.getSectionElement(e))_.Z5(this.hostElement,"yt-scroll-to-watch-element",[e]),e.focus()};
_.v.getSectionElement=function(e){switch(e){case "infocards-item-section":var g;return(g=this.infocardsSection)!=null?g:null;case "transcript-item-section":var c;return(c=this.transcriptSection)!=null?c:null;case "how-this-was-made-section-item-section":var k;return(k=this.howThisWasMadeSection)!=null?k:null;case "files-item-section":var I;return(I=this.filesSection)!=null?I:null;default:return null}};
_.v.handleSetActiveItemAction=function(e){var g=_.x(e,EY0),c=g&&(g==null?void 0:g.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20489_cardList;if(g&&c){e=this.currentActiveChapter;var k=this.currentActiveProblem;g=c==null?void 0:c.getItemByIndex(g.itemIndex);var I=c=!0;g&&(g.active=!0,g.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(c=e!==g,I=!1,this.currentActiveChapter=g):(g==null?void 0:g.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(c=!1,I=k!==g,this.currentActiveProblem=g));e&&c&&(e.active=!1);k&&I&&(k.active=!1)}};
_.Bd.Object.defineProperties(U0.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Im("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
U0.prototype.onYtExpanderMoreTapped=U0.prototype.onYtExpanderMoreTapped;U0.prototype.onHiddenChanged=U0.prototype.onHiddenChanged;U0.prototype.dataChanged=U0.prototype.dataChanged;U0.prototype.panelContentVisibleChanged=U0.prototype.panelContentVisibleChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],U0.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],U0.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.Jc),_.B("design:type",Object)],U0.prototype,"ironResizableBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],U0.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],U0.prototype,"panelContentVisible",void 0);_.t([_.u(),_.B("design:type",Boolean)],U0.prototype,"hasDescriptionOnly",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],U0.prototype,"inlineStructuredDescription",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],U0.prototype,"hidden",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],U0.prototype,"shortsPanel",void 0);_.t([_.u(),_.B("design:type",Object)],U0.prototype,"videoSummary",void 0);_.t([_.u(),_.B("design:type",Object)],U0.prototype,"merchShelf",void 0);
_.t([_.p("videoSummary"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],U0.prototype,"showVideoSummary",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],U0.prototype,"engagementPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],U0.prototype,"watchWhileSdp",void 0);_.t([_.Cs("ytd-expandable-video-description-body-renderer"),_.B("design:type",Object)],U0.prototype,"description",void 0);
_.t([_.Cs("ytd-horizontal-card-list-renderer"),_.B("design:type",Object)],U0.prototype,"JSC$20489_cardList",void 0);_.t([_.Cs("ytd-horizontal-card-list-renderer[center-items]"),_.B("design:type",Object)],U0.prototype,"problemWalkthroughCardList",void 0);_.t([_.Cs("ytd-shelf-renderer"),_.B("design:type",Object)],U0.prototype,"shelfSection",void 0);_.t([_.Cs("ytd-video-description-music-section-renderer"),_.B("design:type",Object)],U0.prototype,"musicMetadataSection",void 0);
_.t([_.Cs("ytd-video-description-infocards-section-renderer"),_.B("design:type",Object)],U0.prototype,"infocardsSection",void 0);_.t([_.Cs("ytd-video-description-transcript-section-renderer"),_.B("design:type",Object)],U0.prototype,"transcriptSection",void 0);_.t([_.Cs("how-this-was-made-section-view-model"),_.B("design:type",Object)],U0.prototype,"howThisWasMadeSection",void 0);_.t([_.Cs("ytd-video-description-files-section-renderer"),_.B("design:type",Object)],U0.prototype,"filesSection",void 0);
_.t([_.OY("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U0.prototype,"panelContentVisibleChanged",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U0.prototype,"dataChanged",null);_.t([_.OY("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U0.prototype,"onHiddenChanged",null);
_.t([_.Ks("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U0.prototype,"onYtExpanderMoreTapped",null);_.t([_.bF({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],U0);
_.U(U0,"ytd-structured-description-content-renderer",function(){if(uRj!==void 0)return uRj;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return uRj=e},{mode:2});var oZ=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return e};
_.Y(oZ,_.z);_.v=oZ.prototype;_.v.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.v.dataChanged=function(){var e;this.descriptionToggled=!((e=this.data)==null||!e.defaultExpanded);var g;this.collapsed=this.descriptionAlwaysCollapsed||!((g=this.data)==null?0:g.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.VF(110509);this.showLessClientVe=_.VF(110510);e=_.EM();g=_.RC();e&&g&&_.fA(e,g,[this.showMoreClientVe,this.showLessClientVe])};
_.v.onYtExpanderMoreTapped=function(){var e,g=(e=this.data)==null?void 0:e.showMoreCommand;g&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(g);(e=_.EM())&&this.showMoreClientVe&&_.m7(e,this.showMoreClientVe)};
_.v.onYtExpanderLessTapped=function(){var e=_.EM();e&&this.showLessClientVe&&_.m7(e,this.showLessClientVe);var g;(e=(g=this.data)==null?void 0:g.showLessCommand)&&this.componentBehavior.resolveCommand(e)};
_.v.handleUpdateDateTextAction=function(e){this.data&&this.data.dateText&&this.set("data.dateText",_.x(e,dg7).dateText)};
_.v.handleUpdateDescriptionAction=function(e){if(e=_.x(e,_.Www))e.isEmpty||!e.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.a6(e.description)):this.set("data.description",e.description)};
_.v.onYtChangeEngagementPanelVisibilityAction=function(e){if(_.G("web_structured_description_show_more")||_.G("web_engagement_panel_open_description")){var g,c=(g=_.x(e,_.nAs))==null?void 0:g.targetId,k;e=((k=_.x(e,_.nAs))==null?void 0:k.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";c==="engagement-panel-structured-description"&&e&&(this.descriptionToggled=!0)}};
_.v.updateCollapsedFromBinding=function(e){this.collapsed=e.detail.value};
_.v.updateDescriptionToggledFromBinding=function(e){this.descriptionToggled=e.detail.value};
_.v.updateCanCollapseFromBinding=function(e){this.canCollapse=e.detail.value};
_.Bd.Object.defineProperties(oZ.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(e=this.data)==null?void 0:(g=e.metadataRowContainer)==null?void 0:g.metadataRowContainerRenderer;return!!c&&!!c.rows&&c.rows.length>c.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.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}}});
oZ.prototype.onYtExpanderLessTapped=oZ.prototype.onYtExpanderLessTapped;oZ.prototype.onYtExpanderMoreTapped=oZ.prototype.onYtExpanderMoreTapped;oZ.prototype.dataChanged=oZ.prototype.dataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],oZ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],oZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],oZ.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],oZ.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],oZ.prototype,"collapsed",void 0);_.t([_.u(),_.B("design:type",Boolean)],oZ.prototype,"descriptionToggled",void 0);
_.t([_.u(),_.B("design:type",Boolean)],oZ.prototype,"canCollapse",void 0);_.t([_.u(),_.B("design:type",Object)],oZ.prototype,"subscribeButtonData",void 0);_.t([_.u(),_.B("design:type",Number)],oZ.prototype,"descriptionCollapsedHeight",void 0);_.t([_.u(),_.B("design:type",Object)],oZ.prototype,"structuredDescriptionContentRenderer",void 0);_.t([_.u({value:function(){return _.G("web_watch_description_always_collapsed")}}),
_.B("design:type",Boolean)],oZ.prototype,"descriptionAlwaysCollapsed",void 0);_.t([_.Cs("#description"),_.B("design:type",HTMLDivElement)],oZ.prototype,"description",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oZ.prototype,"dataChanged",null);_.t([_.Ks("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oZ.prototype,"onYtExpanderMoreTapped",null);
_.t([_.Ks("yt-expander-less-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oZ.prototype,"onYtExpanderLessTapped",null);_.t([_.p("data.metadataRowContainer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oZ.prototype,"metadataCollapsible",null);_.t([_.p("data","structuredDescriptionContentRenderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oZ.prototype,"hasInlineStructuredDescription",null);
_.t([_.p("data.attributedDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oZ.prototype,"hasAttributedDescription",null);_.t([_.p("hasInlineStructuredDescription","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oZ.prototype,"loadStructuredDescription",null);_.t([_.p("data","structuredDescriptionContentRenderer","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oZ.prototype,"showInlineStructuredDescription",null);
_.t([_.p("data","hasInlineStructuredDescription","metadataCollapsible"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oZ.prototype,"descriptionAlwaysCollapsible",null);
_.U(oZ,"ytd-video-secondary-info-renderer",function(){if(bdv===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);bdv=e}e=bdv;return e},{mode:2});var d8o;var Z$=function(){return _.z.apply(this,arguments)||this};
_.Y(Z$,_.z);Z$.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Z$.prototype,"rendererBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],Z$.prototype,"dismissibleItemBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Z$.prototype,"rendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Z$.prototype,"data",void 0);_.t([_.bF({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Z$);
_.U(Z$,"ytd-comment-history-entry-renderer",function(){if(d8o!==void 0)return d8o;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return d8o=e},{mode:1});var zwl;var Vy=function(){var e=_.z.apply(this,arguments)||this;e.isCollapsed=!1;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return e};
_.Y(Vy,_.z);_.v=Vy.prototype;_.v.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.onDonateTap=function(){var e=this.get("data.donateButton.buttonRenderer.command");if(e){var g=_.EM(),c=this.get("data.donateButton.buttonRenderer.trackingParams");g&&c&&_.m7(g,_.Jb(c));this.ytOpenPopupBehavior.openPopup(e)}};
_.v.onShowMore=function(){this.isCollapsed=!1;var e=_.EM(),g=this.get("data.expandButton.buttonRenderer.trackingParams");e&&g&&_.m7(e,_.Jb(g))};
_.v.onShowLess=function(){this.isCollapsed=!0};
_.v.dataChanged=function(){_.Nk(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.v.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.v.handleUpdate=function(e){if(e=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",e))this.set("data.startLabel",e.startLabel),this.set("data.endLabel",e.endLabel),this.set("data.progress",e.progress),this.set("data.amountRaisedLabel",e.amountRaisedLabel),this.dataChanged()};
_.v.handleOpenPopupAction=function(e){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",e)&&_.Z5(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.v.computeHeaderBackgroundUrl=function(e,g){if(e)return g?e.headerBackgroundDarkUrl:e.headerBackgroundUrl};
_.v.isProgressBarVisible=function(e){return!(!e||e.progress===void 0)};
_.v.headerBackgroundClass=function(){return _.uo("HTML_DIR")==="rtl"?"flip":""};
Vy.prototype.dataChanged=Vy.prototype.dataChanged;_.t([_.m(_.tF.YtOpenPopupBehavior),_.B("design:type",Object)],Vy.prototype,"ytOpenPopupBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Vy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Vy.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],Vy.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Vy.prototype,"isCollapsed",void 0);_.t([_.u({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.B("design:type",String)],Vy.prototype,"headerBackgroundUrl",void 0);_.t([_.u(),_.B("design:type",Boolean)],Vy.prototype,"isDarkTheme",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vy.prototype,"dataChanged",null);
_.t([_.bF({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Vy);
_.U(Vy,"ytd-donation-shelf-renderer",function(){if(zwl!==void 0)return zwl;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return zwl=e},{mode:1});var HdS;var QwM=function(){return _.z.apply(this,arguments)||this};
_.Y(QwM,_.z);_.t([_.u(),_.B("design:type",Object)],QwM.prototype,"data",void 0);_.t([_.bF({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],QwM);
_.U(QwM,"ytd-donation-unavailable-renderer",function(){if(HdS!==void 0)return HdS;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return HdS=e},{mode:1});var U8q;var t1=function(){var e=_.z.apply(this,arguments)||this;e.playerListenerConfig=null;e.actionMap={"yt-show-watch-page-survey":"openSurvey"};return e};
_.Y(t1,_.z);_.v=t1.prototype;_.v.dataChanged=function(){var e=this,g=_.FE();g&&g.getPlayerPromise().then(function(k){e.maybeRemovePlayerListeners(k)});
var c=this.data&&this.data.survey;c&&((c=(c=c.singleOptionSurveyRenderer||c.checkboxSurveyRenderer||c.multiStageSurveyRenderer)&&c.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(g,c):this.openSurvey())};
_.v.triggerWatchPageSurvey=function(e,g){var c=this,k,I,J,q,L,n,R,W,b;return _.r(function(h){if(h.nextAddress==1)return e?h.yield(e.getPlayerPromise(),2):h.return();c.player=h.yieldResult;if(!c.player)return h.return();k={};I=_.w(g);for(J=I.next();!J.done;J=I.next())q=J.value,L=_.w(c.createEventListenerPair(q)),n=L.next().value,R=L.next().value,W=n,b=R,W&&b&&(k[W]=b,c.ytPlayerListenerBehavior.listenToPlayerEvent(c.player,W,b));c.playerListenerConfig=k;_.Uh(h)})};
_.v.createEventListenerPair=function(e){var g=e.playbackEventTrigger;return g?this.handlePlaybackTrigger(g):(e=e.watchTimeTrigger)?this.handleWatchTimeTrigger(e):[void 0,void 0]};
_.v.handleWatchTimeTrigger=function(e){var g=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var c=e.videoWatchFraction,k=e.watchTimeSec;return k&&c?["onVideoProgress",function(){g.player&&g.isWatchTimeConditionMet(g.player,c,k)&&g.showSurvey()}]:[void 0,
void 0]};
_.v.isWatchTimeConditionMet=function(e,g,c){var k=e.getProgressState(),I=k.current-this.lastKnownPlaybackPosition;I<5&&(this.accumulatedMediaTime+=I);this.lastKnownPlaybackPosition=k.current;k=Math.round(this.accumulatedMediaTime/k.duration*1E3)/1E3;return e.getPresentingPlayerType&&e.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>c||k>g)};
_.v.handlePlaybackTrigger=function(e){var g=this;e=e.playbackEvent;if(e==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var c="onStateChange";var k=function(I){I===0&&g.showSurvey()}}else e==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(c="onVideoProgress",k=function(I){g.player&&g.player.getPresentingPlayerType&&g.player.getPresentingPlayerType()===1&&I&&g.showSurvey()}):e==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(c="onAdEnd",k=this.showSurvey);
return[c,k]};
_.v.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.v.openSurvey=function(){var e=this,g=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(oAg(!!g));_.ft.addJob(function(){e.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:g}})},0,0)};
_.v.maybeRemovePlayerListeners=function(e){if(this.playerListenerConfig){for(var g=_.w(Object.keys(this.playerListenerConfig)),c=g.next();!c.done;c=g.next())c=c.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(e,c,this.playerListenerConfig[c]);this.playerListenerConfig=null}};
t1.prototype.dataChanged=t1.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],t1.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],t1.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],t1.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(_.Wv),_.B("design:type",Object)],t1.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],t1.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],t1.prototype,"playerListenerConfig",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],t1.prototype,"lastKnownPlaybackPosition",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],t1.prototype,"accumulatedMediaTime",void 0);_.t([_.u(),_.B("design:type",Object)],t1.prototype,"player",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],t1.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],t1);
_.U(t1,"ytd-survey-trigger-renderer",function(){if(U8q!==void 0)return U8q;var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return U8q=e},{mode:1});var o4O;_.qH("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var B_=function(){var e=_.z.apply(this,arguments)||this;e.role="link";e.tabindex="0";e.actionMap=_.G("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 e};
_.Y(B_,_.z);_.v=B_.prototype;_.v.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Du()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.v.getCurrentTheme=function(){return _.$v()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Du()};
_.v.onThemeSelected=function(e,g){var c=e||g?e:_.xv(),k=(c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.gKC(_.tv(window.location.href));_.kn(0,165,e);_.kn(0,174,g);this.prefs.save();k&&_.Z5(this.hostElement,"yt-dark-mode-toggled-action",[c]);_.Z5(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.v.onTap=function(){this.data.serviceEndpoint&&_.tr(this.hostElement,[this.data.serviceEndpoint])};
_.v.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.v.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.v.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
B_.prototype.onTap=B_.prototype.onTap;B_.prototype.dataChanged=B_.prototype.dataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],B_.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.jJ),_.B("design:type",Object)],B_.prototype,"paperItemBehaviors",void 0);_.t([_.u(),_.B("design:type",Object)],B_.prototype,"data",void 0);_.t([_.u({value:function(){return _.ch()}}),
_.B("design:type",_.FG)],B_.prototype,"prefs",void 0);_.t([_.u(),_.B("design:type",Object)],B_.prototype,"label",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],B_.prototype,"role",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],B_.prototype,"tabindex",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B_.prototype,"dataChanged",null);
_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B_.prototype,"onTap",null);_.t([_.bF({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],B_);
_.oI()(B_,"ytd-toggle-theme-compact-link-renderer",function(){if(o4O===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);o4O=e}e=o4O;return e},{allowedProps:["data"],
mode:1});var Zdj;_.qH("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.qH("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var NQ=function(){return _.z.apply(this,arguments)||this};
_.Y(NQ,_.z);_.v=NQ.prototype;_.v.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.onKeyUp=function(e){if(e.keyCode===13)this.onTap()};
_.v.onTap=function(){this.data.recordClickEndpoint&&_.Ss().resolve(_.xk).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var e=this.data.navigationEndpoint;e&&_.x(e,_.WU)&&_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}})};
_.v.readChanged=function(){var e;_.Vg(this.hostElement,"unread",!((e=this.data)==null?0:e.read))};
_.v.dataChanged=function(){this.data&&_.Vg(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.v.computeThumbnailSize=function(){var e;return((e=this.data)==null?0:e.highPriorityNotification)?32:48};
_.v.getEndpointURL=function(e){return e&&!_.x(e,_.WU)?this.componentBehavior.computeHref_(e):null};
_.v.getEndpointData=function(e){return e&&!_.x(e,_.WU)?e:null};
NQ.prototype.computeThumbnailSize=NQ.prototype.computeThumbnailSize;NQ.prototype.dataChanged=NQ.prototype.dataChanged;NQ.prototype.readChanged=NQ.prototype.readChanged;NQ.prototype.onKeyUp=NQ.prototype.onKeyUp;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],NQ.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],NQ.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],NQ.prototype,"data",void 0);_.t([_.u({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.B("design:type",Number)],NQ.prototype,"thumbnailSize",void 0);_.t([_.Ks("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],NQ.prototype,"onKeyUp",null);
_.t([_.OY("data.read"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NQ.prototype,"readChanged",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NQ.prototype,"dataChanged",null);_.t([_.OY("data.highPriorityNotification"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NQ.prototype,"computeThumbnailSize",null);
_.t([_.bF({is:"ytd-notification-renderer",disableElementRegistration:!0})],NQ);
_.U(NQ,"ytd-notification-renderer",function(){if(Zdj!==void 0)return Zdj;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Zdj=e},{mode:1});var Vk7;var SB=function(){return _.z.apply(this,arguments)||this};
_.Y(SB,_.z);SB.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"}}}};
SB.prototype.computeActionButtonClass=function(e){return!e.actionButtons||e.actionButtons.length<=1?"single-button":e.description?"vertical-buttons":"horizontal-buttons"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],SB.prototype,"data",void 0);_.t([_.bF({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],SB);
_.U(SB,"ytd-playlist-show-metadata-renderer",function(){if(Vk7!==void 0)return Vk7;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Vk7=e},{mode:1});var tk0;_.qH("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var yy=function(){return _.z.apply(this,arguments)||this};
_.Y(yy,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],yy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],yy.prototype,"data",void 0);_.t([_.bF({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],yy);
_.U(yy,"ytd-purchase-item-renderer",function(){if(tk0!==void 0)return tk0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return tk0=e},{mode:1});var Buv;var Nux={};Nux.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(e){if(e)return e.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(e){if(e==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.qH("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var K5=function(){return _.z.apply(this,arguments)||this};
_.Y(K5,_.z);K5.prototype.onYtNavigate=function(e){var g=this.openPopupBehavior.getNavigationEndpointPopupAction(e.detail.endpoint);g&&(e.stopPropagation(),this.openPopupBehavior.openPopup(g))};
K5.prototype.onYtNavigate=K5.prototype.onYtNavigate;_.t([_.m(Nux.YtSimpleTextSectionBehavior),_.B("design:type",Object)],K5.prototype,"ytSimpleTextSectionBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],K5.prototype,"openPopupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],K5.prototype,"data",void 0);
_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],K5.prototype,"onYtNavigate",null);_.t([_.bF({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],K5);
_.U(K5,"ytd-simple-text-section-renderer",function(){if(Buv!==void 0)return Buv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Buv=e},{mode:1});var SF0;_.qH("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var y7o=function(){return _.z.apply(this,arguments)||this};
_.Y(y7o,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],y7o.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],y7o.prototype,"data",void 0);_.t([_.bF({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],y7o);
_.U(y7o,"ytd-unlimited-page-feature-info-renderer",function(){if(SF0!==void 0)return SF0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return SF0=e},{mode:1});var K1z;var Od0;var O0=function(){return _.z.apply(this,arguments)||this};
_.Y(O0,_.z);O0.prototype.dataChanged=function(){if(this.data){var e=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);e&&(e=_.F6(e,screen.width),this.hostElement.style.backgroundImage="url("+e+")")}};
O0.prototype.dataChanged=O0.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],O0.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],O0.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],O0);
_.U(O0,"ytd-post-redemption-section-renderer",function(){if(Od0!==void 0)return Od0;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Od0=e},{mode:1});var Mkl;var MQ=function(){return _.z.apply(this,arguments)||this};
_.Y(MQ,_.z);MQ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],MQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],MQ.prototype,"data",void 0);_.t([_.bF({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],MQ);
_.U(MQ,"ytd-ypc-post-redemption-renderer",function(){if(Mkl!==void 0)return Mkl;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Mkl=e},{mode:1});_.qH("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var C5=function(){var e=_.z.apply(this,arguments)||this;e.MIN_CODE_LENGTH=12;e.MAX_CODE_LENGTH=24;return e};
_.Y(C5,_.z);_.v=C5.prototype;_.v.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.v.created=function(){this.riskService=new _.v5U;this.loadPaymentThenable=_.q$p(_.uo("YPC_MB_URL"))};
_.v.ready=function(){var e=this;this.code.addEventListener("keypress",function(g){e.onCodeInputKeypress(g)})};
_.v.dataChanged=function(){var e=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(g){g=_.w(g);for(var c=g.next();!c.done;c=g.next())c=c.value,c.type==="attributes"&&c.attributeName==="dark"&&e.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.v.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var e=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+e+")")}};
_.v.computeRedeemButton=function(e){(e=this.get("redeemButton.buttonRenderer",e))&&(e=Object.assign({},e,{serviceEndpoint:void 0}));return e};
_.v.onRedeemButtonTap=function(e){e.stopPropagation();t4l();this.redeemCode()};
_.v.redeemCode=function(){var e=this;this.isLoading=!0;var g=this.riskService.init();_.ER([g,this.loadPaymentThenable]).then(function(){var c=e.data.redeemButton.buttonRenderer.serviceEndpoint,k=_.wCq(),I=_.Hj.payments.business.integration.ClientTokenFactory.createClientToken(_.x(c,_.CAq).countryCode,k);k={c:e.code.value.trim(),rd:window.btoa(k),ctk:I};c&&_.Ss().resolve(_.xk).resolveCommand(c,{form:Object.assign({},k,{element:e.hostElement})})},function(){e.showGenericError();
B$S("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.zr(Error("Al"))})};
_.v.onYtServiceRequestCompleted=function(e){e.stopPropagation();this.isLoading=!1;var g,c;this.errorMessage=(g=e.detail)==null?void 0:(c=g.data)==null?void 0:c.errorMessage;var k,I;this.postRedemptionRenderer=(k=e.detail)==null?void 0:(I=k.data)==null?void 0:I.renderer;var J,q;if(e=(J=e.detail)==null?void 0:(q=J.data)==null?void 0:q.redirectEndpoint)this.isLoading=!0,_.oC(this.hostElement,"yt-navigate",{endpoint:e});this.errorMessage?B$S("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
e)&&SG("ypcRedeemFlowSucceeded")};
_.v.onYtServiceRequestError=function(e){e.stopPropagation();this.isLoading=!1;if(e=this.get("detail.error.message",e))this.errorMessage=_.PL(e);B$S("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.v.onInvokeInstrumentManagerActionCompleted=function(e){e.stopPropagation();this.redeemCode()};
_.v.onInvokeInstrumentManagerActionError=function(e){e.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",e)){case "instrumentManagerLoadError":this.showGenericError();B$S("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();B$S("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":SG("ypcRedeemFlowCancelled")}};
_.v.onInput=function(){var e=this;_.fO(this,"onInput",function(){var g=e.code.value.trim();e.redeemButtonDisabled=g.length<e.MIN_CODE_LENGTH||g.length>e.MAX_CODE_LENGTH},200)};
_.v.onCodeInputKeypress=function(e){e.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(t4l(),this.redeemCode())};
_.v.computeImageUrl=function(e){return e?_.F6(e.thumbnails,600):null};
_.v.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
C5.prototype.onInvokeInstrumentManagerActionError=C5.prototype.onInvokeInstrumentManagerActionError;C5.prototype.onInvokeInstrumentManagerActionCompleted=C5.prototype.onInvokeInstrumentManagerActionCompleted;C5.prototype.onYtServiceRequestError=C5.prototype.onYtServiceRequestError;C5.prototype.onYtServiceRequestCompleted=C5.prototype.onYtServiceRequestCompleted;C5.prototype.dataChanged=C5.prototype.dataChanged;
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],C5.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],C5.prototype,"isLoading",void 0);_.t([_.u(),_.B("design:type",Boolean)],C5.prototype,"redeemButtonDisabled",void 0);
_.t([_.u(),_.B("design:type",Object)],C5.prototype,"errorMessage",void 0);_.t([_.u(),_.B("design:type",Object)],C5.prototype,"postRedemptionRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],C5.prototype,"observer",void 0);_.t([_.Cs("#code"),_.B("design:type",HTMLInputElement)],C5.prototype,"code",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],C5.prototype,"dataChanged",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],C5.prototype,"onYtServiceRequestCompleted",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],C5.prototype,"onYtServiceRequestError",null);
_.t([_.Ks("yt-invoke-instrument-manager-action-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],C5.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.t([_.Ks("yt-invoke-instrument-manager-action-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],C5.prototype,"onInvokeInstrumentManagerActionError",null);_.t([_.bF({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],C5);
_.U(C5,"ytd-redeem-code-renderer",function(){if(K1z!==void 0)return K1z;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return K1z=e},{mode:1});var CrD;_.qH("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var eC=function(){var e=_.z.apply(this,arguments)||this;e.businessEmailDisplayState="HIDE_SECTION";return e};
_.Y(eC,_.z);_.v=eC.prototype;_.v.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.v.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.v.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.v.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.D5(_.M1q),this.businessEmailDisplayState="CAPTCHA"))};
_.v.onYtServiceRequestCompleted=function(e){var g;if((g=e.detail.data)==null?0:g.businessEmail)this.businessEmail=e.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var c;if((c=e.detail.data)==null?0:c.errorMessage)this.businessEmailErrorMessage=e.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.v.computeEmailHref=function(e){return"mailto:"+e};
_.v.computeSafeUrl=function(e){if(e)return _.Km(e)};
_.v.onBusinessEmailCaptchaSubmit=function(){var e;(e=this.data)!=null&&e.onBusinessEmailRevealClickCommand&&(e=this.JSC$20549_captchaTextarea.value)&&(e={recaptcha_response_token:e,channel_id:this.data.channelId},_.Ss().resolve(_.xk).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},e,{element:this.hostElement})}))};
_.v.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Bd.Object.defineProperties(eC.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 e,g;return!((e=this.data)==null||!e.primaryLinks)&&!((g=this.data)==null?0:g.links)&&this.data.primaryLinks.every(function(c){return c.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var e,g;return!((e=this.data)==null||!e.primaryLinks)&&!((g=this.data)==null?0:g.links)&&!this.shouldShowNewLinks}}});
eC.prototype.onYtServiceRequestCompleted=eC.prototype.onYtServiceRequestCompleted;eC.prototype.dataChanged=eC.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],eC.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.Cs("#g-recaptcha-response"),_.B("design:type",HTMLTextAreaElement)],eC.prototype,"JSC$20549_captchaTextarea",void 0);_.t([_.u(),_.B("design:type",Object)],eC.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],eC.prototype,"businessEmailDisplayState",void 0);_.t([_.u(),_.B("design:type",String)],eC.prototype,"businessEmail",void 0);_.t([_.u(),_.B("design:type",String)],eC.prototype,"businessEmailErrorMessage",void 0);
_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],eC.prototype,"hideDetailsSection",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eC.prototype,"dataChanged",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],eC.prototype,"shouldShowNewLinks",null);_.t([_.p("data","shouldShowLinks"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],eC.prototype,"shouldShowLegacyLinks",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],eC.prototype,"onYtServiceRequestCompleted",null);_.t([_.bF({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],eC);
_.U(eC,"ytd-channel-about-metadata-renderer",function(){if(CrD!==void 0)return CrD;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return CrD=e},{mode:1});var eaz;_.qH("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var gA=function(){return _.z.apply(this,arguments)||this};
_.Y(gA,_.z);gA.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],gA.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Number)],gA.prototype,"lockupContainerType",void 0);_.t([_.u(),_.B("design:type",String)],gA.prototype,"thumbnailFixedWidth",void 0);
_.t([_.bF({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],gA);
_.U(gA,"ytd-channel-featured-content-renderer",function(){if(eaz!==void 0)return eaz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return eaz=e},{mode:1});var glQ;_.qH("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var cf=function(){var e=_.z.apply(this,arguments)||this;e.roundContainer=!0;e.amsterdamEnabled=_.G("enable_desktop_amsterdam_info_panels");return e};
_.Y(cf,_.z);_.v=cf.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.v.dataChanged=function(){this.imageWidth=this.imageHeight=24;var e=this.data;e.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!e.style&&e.image&&e.image.thumbnails.length&&(e=e.image.thumbnails[0],this.imageWidth=e.width||0,this.imageHeight=e.height||0)};
_.v.computeSource=function(e){return e.secondarySource?_.mp(e.secondarySource):_.mp(e.source)};
_.v.computeClarifyStyle=function(e){return e?e.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.v.isLargeStyle=function(e){return e==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.v.computeBackgroundStyle=function(e){return e?e.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.v.computeHasActionButton=function(e){return!!e.actionButton};
_.v.computeHasBottomSection=function(e){return!!e.ctaHasBottomSection};
_.v.computeIsSourceMissing=function(e){return e.ctaHasBottomSection===!1?!0:e&&this.computeSource(e)?!1:!0};
_.v.computeSecondaryEndpoint=function(e){return e.secondaryEndpoint||e.endpoint};
cf.prototype.dataChanged=cf.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],cf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],cf.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Number)],cf.prototype,"imageWidth",void 0);_.t([_.u(),_.B("design:type",Number)],cf.prototype,"imageHeight",void 0);
_.t([_.u({computed:"computeSecondaryEndpoint(data)"}),_.B("design:type",Object)],cf.prototype,"secondaryEndpoint",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.B("design:type",Boolean)],cf.prototype,"hasActionButton",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.B("design:type",Boolean)],cf.prototype,"hasBottomSection",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.B("design:type",Boolean)],cf.prototype,"missingSource",void 0);_.t([_.u({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],cf.prototype,"icon",void 0);_.t([_.u({computed:"computeIcon_(data.secondaryIcon)"}),_.B("design:type",String)],cf.prototype,"secondaryIcon",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.B("design:type",String)],cf.prototype,"clarifyStyle",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.B("design:type",String)],cf.prototype,"backgroundStyle",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],cf.prototype,"roundContainer",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],cf.prototype,"amsterdamEnabled",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cf.prototype,"dataChanged",null);
_.t([_.bF({is:"ytd-clarification-renderer",disableElementRegistration:!0})],cf);
_.U(cf,"ytd-clarification-renderer",function(){if(glQ!==void 0)return glQ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return glQ=e},{mode:1});var cEj;_.qH("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var kR=function(){return _.z.apply(this,arguments)||this};
_.Y(kR,_.z);_.v=kR.prototype;_.v.computeHasPrimaryIcon=function(e){return!(!e.icon&&!e.thumbnail)};
_.v.computeHasSecondary=function(e){return!(!e.secondaryIcon&&!e.secondaryNotificationText)};
_.v.computeHideSecondaryString=function(e){return!_.G("disable_hide_empty_secondary_string")&&!e.secondaryNotificationText};
_.v.computeCompactLinkStyle=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.v.computeHasFitHeight=function(e){return e==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.v.isActiveEndpoint=function(e){return(e=this.get("commandMetadata.webCommandMetadata.url",e))?_.tv(window.location.href)!=="/account_transfer_channel"&&_.tv(window.location.href)!=="/gaia_link"&&_.tv(window.location.href)!=="/channel_switcher"||e!=="/account"?_.tv(window.location.href)===e:!0:!1};
_.v.onTap=function(){var e;((e=this.data)==null?0:e.serviceEndpoint)&&_.tr(this.hostElement,[this.data.serviceEndpoint])};
kR.prototype.onTap=kR.prototype.onTap;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],kR.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.B("design:type",Boolean)],kR.prototype,"active",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.B("design:type",String)],kR.prototype,"compactLinkStyle",void 0);
_.t([_.u({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],kR.prototype,"icon",void 0);_.t([_.u({computed:"computeIcon_(data.secondaryIcon)"}),_.B("design:type",Object)],kR.prototype,"secondaryIcon",void 0);_.t([_.u({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],kR.prototype,"hasSecondary",void 0);_.t([_.u({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],kR.prototype,"hideSecondaryString",void 0);
_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kR.prototype,"onTap",null);_.t([_.bF({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],kR);
_.U(kR,"ytd-compact-link-renderer",function(){if(cEj!==void 0)return cEj;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return cEj=e},{mode:1});var kgD;var INO;var Ik=function(){var e=_.z.apply(this,arguments)||this;e.amsterdamEnabled=_.G("enable_desktop_amsterdam_info_panels");return e};
_.Y(Ik,_.z);_.v=Ik.prototype;_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.v.computeIcon=function(e){return e?"yt-icons:"+e.toLowerCase():null};
_.v.computeUseContacts=function(e){return!!e.contacts&&e.contacts.length>0};
_.v.computePhoneContact=function(e){var g,c;return(g=e.contacts)==null?void 0:(c=g.find(function(k){var I;return(k==null?void 0:(I=k.icon)==null?void 0:I.iconType)==="PHONE"}))==null?void 0:c.actionText};
_.v.computeSmsContact=function(e){var g,c;return(g=e.contacts)==null?void 0:(c=g.find(function(k){var I;return(k==null?void 0:(I=k.icon)==null?void 0:I.iconType)==="SMS"}))==null?void 0:c.actionText};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ik.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ik.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ik.prototype,"amsterdamEnabled",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.B("design:type",Boolean)],Ik.prototype,"useContacts",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.B("design:type",String)],Ik.prototype,"phoneContact",void 0);_.t([_.bF({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Ik);
_.U(Ik,"ytd-single-action-emergency-support-renderer",function(){if(INO!==void 0)return INO;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return INO=e},{mode:1});_.qH("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var JW=function(){var e=_.z.apply(this,arguments)||this;e.roundedContainer=!0;e.amsterdamEnabled=_.G("enable_desktop_amsterdam_info_panels");return e};
_.Y(JW,_.z);JW.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],JW.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],JW.prototype,"roundedContainer",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],JW.prototype,"amsterdamEnabled",void 0);
_.t([_.bF({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],JW);
_.U(JW,"ytd-emergency-onebox-renderer",function(){if(kgD!==void 0)return kgD;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return kgD=e},{mode:1});var JED;_.qH("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var vf=function(){return _.z.apply(this,arguments)||this};
_.Y(vf,_.z);vf.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vf.prototype,"data",void 0);_.t([_.bF({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],vf);
_.U(vf,"ytd-exploratory-results-renderer",function(){if(JED!==void 0)return JED;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return JED=e},{mode:1});var vlj;_.qH("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var wA=function(){var e=_.z.apply(this,arguments)||this;e.messageData=null;return e};
_.Y(wA,_.z);_.v=wA.prototype;_.v.onServiceRequestCompleted=function(e,g){e=g.actions||[];g=0;for(var c=e.length;g<c;g++){var k=e[g],I=void 0,J=void 0;if((I=_.x(k,_.CX))==null?0:(J=I.item)==null?0:J.messageRenderer)this.messageData=_.x(k,_.CX).item.messageRenderer}};
_.v.dataChanged=function(){var e=this.data;this.hostElement.hidden=!1;_.Vg(this.hostElement,"is-channel",e&&!e.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.v.computeThumbnailWidth=function(e){return e?126:56};
_.v.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.v.onSubmitTap=function(){var e=this.data,g=this.selectedResponseIndex;e!==void 0&&g!==void 0&&(e=e.responses[g],e.responseData&&_.Ss().resolve(_.xk).resolveCommand(e.responseData,{form:{element:this.hostElement}}))};
_.v.onDismissTap=function(){this.hostElement.hidden=!0;var e=this.data;e!==void 0&&e.dismissalEndpoint&&_.Ss().resolve(_.xk).resolveCommand(e.dismissalEndpoint,{form:{element:this.hostElement}})};
_.v.updateSelectedResponseIndexFromBinding=function(e){this.selectedResponseIndex=e.detail.value};
wA.prototype.onSelectedResponseIndexChange=wA.prototype.onSelectedResponseIndexChange;wA.prototype.dataChanged=wA.prototype.dataChanged;wA.prototype.onServiceRequestCompleted=wA.prototype.onServiceRequestCompleted;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wA.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],wA.prototype,"messageData",void 0);
_.t([_.u(),_.B("design:type",Number)],wA.prototype,"selectedResponseIndex",void 0);_.t([_.Cs("#submit-button"),_.B("design:type",HTMLButtonElement)],wA.prototype,"submitButton",void 0);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],wA.prototype,"onServiceRequestCompleted",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wA.prototype,"dataChanged",null);
_.t([_.OY("selectedResponseIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wA.prototype,"onSelectedResponseIndexChange",null);_.t([_.bF({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],wA);
_.U(wA,"ytd-feedback-elicitation-single-question-renderer",function(){if(vlj!==void 0)return vlj;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return vlj=e},{mode:1});var w8x;var q4=function(){return _.z.apply(this,arguments)||this};
_.Y(q4,_.z);q4.prototype.computeIconType=function(e){return e?"yt-icons:"+e.toLowerCase():null};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],q4.prototype,"data",void 0);_.t([_.bF({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],q4);
_.U(q4,"ytd-limited-state-message-renderer",function(){if(w8x!==void 0)return w8x;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return w8x=e},{mode:1});var qWz;var Ll=function(){return _.z.apply(this,arguments)||this};
_.Y(Ll,_.z);Ll.prototype.computeThumbnailWidth=function(e){return e?602:428};
Ll.prototype.updateWideFromBinding=function(e){this.wide=e.detail.value};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ll.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],Ll.prototype,"wide",void 0);_.t([_.bF({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Ll);
_.U(Ll,"ytd-newspaper-hero-video-renderer",function(){if(qWz!==void 0)return qWz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return qWz=e},{mode:1});var LxM;var rEO=function(){return _.z.apply(this,arguments)||this};
_.Y(rEO,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],rEO.prototype,"rendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],rEO.prototype,"data",void 0);_.t([_.bF({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],rEO);
_.U(rEO,"ytd-newspaper-mini-video-renderer",function(){if(LxM!==void 0)return LxM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return LxM=e},{mode:1});var aNq;_.qH("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var rA=function(){return _.z.apply(this,arguments)||this};
_.Y(rA,_.z);rA.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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],rA.prototype,"data",void 0);_.t([_.bF({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],rA);
_.U(rA,"ytd-newspaper-renderer",function(){if(aNq!==void 0)return aNq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return aNq=e},{mode:1});var nl0;_.qH("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var ak=function(){var e=_.z.apply(this,arguments)||this;e.isSegment=!1;e.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};e.nextContinuation={continuationType:"playlistVideoListContinuation"};return e};
_.Y(ak,_.z);_.v=ak.prototype;_.v.created=function(){var e=this;this.JSC$20588_ytReorderableController=new _.ZNu(101,function(g){e.handleDrop(g)})};
_.v.attached=function(){_.Ss();var e;(e=_.Ss().resolve(_.NN(_.ni)))!=null&&(e.playlistVideoListElement=this.hostElement)};
_.v.detached=function(){var e;(e=_.Ss().resolve(_.NN(_.ni)))!=null&&(e.playlistVideoListElement=void 0);e=_.Ss().resolve(_.NN(_.Sf));_.G("web_enable_voting_animation")&&e&&(e.parentElem=void 0,e.videos=[],e.continuationsPresent=!1,e.showRefreshPill=!1);_.C3(this.JSC$20588_ytReorderableController)};
_.v.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.v.dataChanged=function(){var e=_.Ss().resolve(_.NN(_.Sf));if(_.G("web_enable_voting_animation")&&this.data&&e){var g=_.o1(this.hostElement).querySelector("#contents");g&&(e.parentElem=g);e.addVideos(this.data.contents)}_.C3(this.JSC$20588_ytReorderableController)};
_.v.onRendererstamperFinished=function(){this.canReorder&&_.V8B(this.JSC$20588_ytReorderableController,_.o1(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.v.onPlaylistReloading=function(){this.isReloading=!0};
_.v.onUpdateSetVideoId=function(e){if(e.detail&&this.data&&this.data.contents){var g=e.detail;e=this.data.contents.findIndex(function(I){var J;return((J=I.playlistVideoRenderer)==null?void 0:J.videoId)===g.videoId});
if(!(e<0)&&g.setVideoId&&(this.set("data.contents."+e+".playlistVideoRenderer.setVideoId",g.setVideoId),_.G("web_enable_voting_animation"))){var c;if(e=_.x((c=this.data.contents[e].playlistVideoRenderer)==null?void 0:c.engagementBar,_.jat)){var k;(k=e.actions)==null||k.forEach(function(I){if(I=_.x(I,_.iyU))I.itemId=g.setVideoId})}(c=_.Ss().resolve(_.NN(_.Sf)))&&JSj(c,g.videoId,g.setVideoId)}}};
_.v.computeContentsClass=function(e){return e?"reloading":""};
_.v.computeIsSortable=function(e,g){return e&&g>0&&!this.isSegment&&!_.G("shorts_in_playlists_web")};
_.v.computeIsEditable=function(e){return e};
_.v.computeCanReorder=function(e){return e};
_.v.handlePlaylistRemoveVideosAction=function(e){if(this.get("playlistRemoveVideosAction.setVideoIds",e)&&this.data&&this.data.contents){e=_.x(e,_.bz1).setVideoIds;for(var g=this.data.contents.length-1;g>=0;){var c=this.data.contents[g].playlistVideoRenderer;c&&c.setVideoId&&e.includes(c.setVideoId)&&this.splice("data.contents",g,1);g--}_.Z5(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.v.updateIndices=function(){if(this.data&&this.data.contents)for(var e=0;e<this.data.contents.length;e++)this.set("data.contents."+e+".playlistVideoRenderer.index",_.PL(String(e+1)))};
_.v.handleDrop=function(e){e=e.currDragItem;var g=_.dV(e.parentNode.childNodes,e),c=this.data.contents.splice(Number(_.mp(e.data.index))-1,1)[0];this.data.contents.splice(g,0,c);g=g?this.get("contents."+(g-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();e=this.buildReorderServiceEndpoint(e.data.setVideoId,g);this.ytComponentBehavior.resolveCommand(e)};
_.v.buildReorderServiceEndpoint=function(e,g){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",e),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",g),this.data.onReorderEndpoint):null};
_.v.handleUpdatePlaylistAction=function(e){var g;(e=_.x((g=_.x(e,_.hDw))==null?void 0:g.updatedRenderer,_.Dwu))&&this.canReorder!==e.canReorder&&this.set("data.canReorder",e.canReorder);e&&e.contents&&(this.set("data.contents",e.contents),this.isReloading=!1);e&&e.continuations&&this.set("data.continuations",e.continuations)};
_.v.handleAddRendererToItemSectionAction=function(e){var g,c=(g=_.x(e,tZl))==null?void 0:g.renderer,k;c&&((k=_.x(e,tZl))==null?void 0:k.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,c),e=_.Ss().resolve(_.NN(_.Sf)),_.G("web_enable_voting_animation")&&e&&(c&&(g=_.fW8(c))&&e.recommendedVideos.push({itemId:g,videoId:_.P48(c),voteCount:_.m7A(c),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.v.isVotingEnabledOnPlaylist=function(e){if(!e)return!1;e=_.w(e);for(e=e.next();!e.done;e=e.next()){var g=void 0;return!!_.x((g=e.value.playlistVideoRenderer)==null?void 0:g.engagementBar,_.jat)}return!1};
_.v.onAppendContinuationItemsActionFinished=function(){var e;this.isVotingEnabledOnPlaylist((e=this.data)==null?void 0:e.contents)&&(this.updateIndices(),e=_.Ss().resolve(_.NN(_.Sf)),_.G("web_enable_voting_animation")&&e&&this.data&&e.addVideos(this.data.contents))};
_.v.updateVideoData=function(e){if(e.detail&&this.data&&this.data.contents){var g=e.detail;e=g.toIdx;var c=g.itemId,k=g.newVoteCount,I=g.voteStatus;g=g.hideItem;var J,q,L=(J=this.data)==null?void 0:(q=J.contents)==null?void 0:q.findIndex(function(b){return _.fW8(b)===c});
if(!(L<0)){J=this.data.contents[L];var n;if((n=J.playlistVideoRenderer)==null?0:n.voteCount)J.playlistVideoRenderer.voteCount=k;var R;if(n=_.x((R=J.playlistVideoRenderer)==null?void 0:R.engagementBar,_.jat)){var W;(W=n.actions)==null||W.forEach(function(b){(b=_.x(b,_.iyU))&&b.initialState&&(b.initialState.votes=k,b.initialState.status=I)})}this.data.contents.splice(L,1);
g||this.data.contents.splice(e,0,J);this.updateIndices()}}};
ak.prototype.updateVideoData=ak.prototype.updateVideoData;ak.prototype.onAppendContinuationItemsActionFinished=ak.prototype.onAppendContinuationItemsActionFinished;ak.prototype.onUpdateSetVideoId=ak.prototype.onUpdateSetVideoId;ak.prototype.onPlaylistReloading=ak.prototype.onPlaylistReloading;ak.prototype.onRendererstamperFinished=ak.prototype.onRendererstamperFinished;ak.prototype.dataChanged=ak.prototype.dataChanged;
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],ak.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.lX.YtNextContinuationBehavior),_.B("design:type",Object)],ak.prototype,"ytNextContinuationBehavior",void 0);
_.t([_.m(_.Tk),_.B("design:type",Object)],ak.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],ak.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ak.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],ak.prototype,"isReloading",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ak.prototype,"isSegment",void 0);
_.t([_.u({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.B("design:type",Boolean)],ak.prototype,"isSortable",void 0);_.t([_.u({computed:"computeIsEditable(data.isEditable)"}),_.B("design:type",Boolean)],ak.prototype,"isEditable",void 0);_.t([_.u({computed:"computeCanReorder(data.canReorder)"}),_.B("design:type",Boolean)],ak.prototype,"canReorder",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ak.prototype,"dataChanged",null);_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ak.prototype,"onRendererstamperFinished",null);_.t([_.Ks("yt-playlist-reloading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ak.prototype,"onPlaylistReloading",null);
_.t([_.Ks("yt-update-set-video-id"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ak.prototype,"onUpdateSetVideoId",null);_.t([_.Ks("yt-append-continuation-items-action-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ak.prototype,"onAppendContinuationItemsActionFinished",null);
_.t([_.Ks("yt-update-video-data-voting-animation"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ak.prototype,"updateVideoData",null);_.t([_.bF({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],ak);
_.U(ak,"ytd-playlist-video-list-renderer",function(){if(nl0!==void 0)return nl0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return nl0=e},{mode:2});var RaO;var nl=function(){return _.z.apply(this,arguments)||this};
_.Y(nl,_.z);nl.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"}}}}};
nl.prototype.onTextWrapperTap=function(e){var g=this.data&&this.data.navigationEndpoint;g&&!_.TJ(_.lg(e),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.oC(this.hostElement,"yt-navigate",{endpoint:g})};
nl.prototype.dataChanged=function(){var e=this.get("data.offerButton.buttonRenderer.serviceEndpoint");e&&e.commandMetadata&&_.x(e.commandMetadata,_.I_)&&_.x(e.commandMetadata,_.I_).fireAutomatically&&_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}})};
nl.prototype.dataChanged=nl.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.f3),_.B("design:type",Object)],nl.prototype,"ytdLockupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],nl.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],nl.prototype,"useBiggerThumbs",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.C4("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],nl.prototype,"biggerThumbsStyle",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],nl.prototype,"leftAligned",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nl.prototype,"dataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-movie-renderer"})],nl);
_.U(nl,"ytd-movie-renderer",function(){if(RaO!==void 0)return RaO;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return RaO=e},{mode:1});var Elo={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(e){if(e&&e.length==1&&Array.isArray(e[0].loggingUrls)){e=_.n0.unsafeClone(e[0]);var g=this.macros||{},c=this.getAdModuleClient_();if(!c)return _.No();e.loggingUrls.forEach(function(k){if(k.baseUrl){var I=k.baseUrl;var J=g;J=J===void 0?{}:J;I=c.getOptions().includes("replaceUrlMacros")?_.Iq4(c,"replaceUrlMacros",{url:I,additionalMapping:J}):I;k.baseUrl=I}},this);
e=[e]}return _.tr(this.hostElement,e)},
getAdModuleClient_:function(){var e=_.FE(this);return e?(e=e.getPlayer())?new _.n$(e):null:null}}]};var WxQ;var Rk=function(){var e=_.z.apply(this,arguments)||this;e.modern=_.G("web_modern_buttons");e.buttonOverrides={style:"call-to-action",type:"filled"};return e};
_.Y(Rk,_.z);Rk.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=_.R1(this.data.backgroundColor)))};
Rk.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var e=this.getFormattedStringLoggingDirectives(this.data.headline);e&&this.rendererBehavior.logExplicitClick(e)}};
Rk.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var e=this.getFormattedStringLoggingDirectives(this.data.description);e&&this.rendererBehavior.logExplicitClick(e)}};
Rk.prototype.getFormattedStringLoggingDirectives=function(e){return e&&e.runs&&e.runs.length>0&&e.runs[0]&&e.runs[0].loggingDirectives?e.runs[0].loggingDirectives:null};
Rk.prototype.dataChanged=Rk.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Rk.prototype,"rendererBehavior",void 0);_.t([_.m(Elo.YtMacroReplacementBehavior),_.B("design:type",Object)],Rk.prototype,"macroReplacementBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Rk.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Rk.prototype,"navigationEndpoint",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Rk.prototype,"enableColors",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Rk.prototype,"modern",void 0);_.t([_.u(),_.B("design:type",Object)],Rk.prototype,"buttonOverrides",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rk.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Rk);
_.U(Rk,"ytd-action-basic-immersive-content-renderer",function(){if(WxQ!==void 0)return WxQ;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return WxQ=e},{mode:1});var bR7;var ha7;var Er=function(){return _.z.apply(this,arguments)||this};
_.Y(Er,_.z);Er.prototype.dataChanged=function(){var e;((e=this.data)==null?void 0:e.backgroundColor)!==void 0&&_.Nk(this.hostElement,{"--bgu-color":_.R1(this.data.backgroundColor)})};
Er.prototype.onImageTileClick=function(){var e;((e=this.data)==null?0:e.navigationEndpoint)&&_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var g;((g=this.data)==null?0:g.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Bd.Object.defineProperties(Er.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var e;if(((e=this.data)==null?void 0:e.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 e;return((e=this.data)==null?void 0:e.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var e,g,c;if(((e=this.data)==null?void 0:(g=e.detailsLine)==null?void 0:g.texts)!=null&&((c=this.data)==null?void 0:c.detailsLine.texts.length)>0){var k;return(k=this.data)==null?void 0:k.detailsLine.texts.map(function(I){return I.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var e,g,c;if(((e=this.data)==null?void 0:(g=e.optionalDetailsLine)==null?void 0:g.texts)!=null&&((c=this.data)==null?void 0:c.optionalDetailsLine.texts.length)>0){var k;return(k=this.data)==null?void 0:k.optionalDetailsLine.texts.map(function(I){return I.text}).join("")}return null}}});
Er.prototype.dataChanged=Er.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Er.prototype,"rendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Er.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Er.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.backgroundColor"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Er.prototype,"hasBackgroundColor",null);
_.t([_.p("data.objectFit"),_.B("design:type",Object),_.B("design:paramtypes",[])],Er.prototype,"getObjectFit",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.tileRenderingStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Er.prototype,"hasTileMetadata",null);_.t([_.p("data.detailsLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Er.prototype,"getSecondaryDetails",null);
_.t([_.p("data.optionalDetailsLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Er.prototype,"getOptionalDetails",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Er.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Er);
_.U(Er,"ytd-image-tile-renderer",function(){if(ha7!==void 0)return ha7;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ha7=e},{mode:1});var X8X;var Wf=function(){return _.z.apply(this,arguments)||this};
_.Y(Wf,_.z);Wf.prototype.getOpenLinkIcon=function(){return _.G("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Wf.prototype.onSitelinkTap=function(){_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.G("kevlar_command_handler_migration_killswitch"))_.Bm(this.hostElement,this.data.clickCommands,this.hostElement);else for(var e=_.w(this.data.clickCommands),g=e.next();!g.done;g=e.next())this.ytComponentBehavior.resolveCommand(g.value)};
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Wf.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Wf.prototype,"rendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Wf.prototype,"data",void 0);_.t([_.bF({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Wf);
_.U(Wf,"ytd-sitelink-renderer",function(){if(X8X!==void 0)return X8X;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return X8X=e},{mode:1});var bx=function(){var e=_.z.apply(this,arguments)||this;e.paddingFix=_.G("enable_ads_web_ep_buenos_aires_and_padding_fix");return e};
_.Y(bx,_.z);bx.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"}}}};
bx.prototype.dataChanged=function(){var e=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(g){g.clickTrackingParams&&delete g.clickTrackingParams;e.ytMacroReplacementBehavior.sendServiceRequestAction([g])})};
bx.prototype.shouldHideFooter=function(e){return!(e&&_.G("use_ads_engagement_panel_desktop_footer_cta"))};
_.Bd.Object.defineProperties(bx.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:e.imageTileRenderers)===void 0||((g=this.data)==null?void 0:g.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(c){var k;return(k=_.x(c,o9v))==null?void 0:k.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:e.imageTileRenderers)===void 0||((g=this.data)==null?void 0:g.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(c){var k;return((k=_.x(c,o9v))==null?void 0:k.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
bx.prototype.dataChanged=bx.prototype.dataChanged;_.t([_.m(Elo.YtMacroReplacementBehavior),_.B("design:type",Object)],bx.prototype,"ytMacroReplacementBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],bx.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],bx.prototype,"paddingFix",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.imageTileRenderers"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],bx.prototype,"removeBorderFromImageTiles",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.imageTileRenderers"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],bx.prototype,"useFooteredMetadataRenderingStyle",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bx.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],bx);
_.U(bx,"ytd-action-engagement-panel-content-renderer",function(){if(bR7!==void 0)return bR7;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return bR7=e},{mode:1});var Ggl;var x0x=_.H(function(e){var g=e.data;var c=e.customCommandResolver;return _.a("ad-grid-card-image-full-metadata-view-model",{class:function(){var k;return((k=g().interaction)==null?0:k.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.mb(_.By({visibilityCallback:function(k){var I,J=(I=g().interaction)==null?void 0:I.onFirstVisible;k&&J&&_.GF(J)},
showOption:_.HG}),_.GP(function(){return g().interaction},c)),
"aria-label":function(){var k,I;return(k=g().interaction)==null?void 0:(I=k.accessibility)==null?void 0:I.label}},_.a("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.a(_.eS,{data:function(){return g().adImage}},{adImageViewModel:function(k){return _.a(_.U8,{data:k.data,
customCommandResolver:c})}})),_.a("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.a(_.E,{cond:function(){return g().headline},
then:function(k){return _.a(_.fa,{text:k,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.a(_.E,{cond:function(){return g().detailsLine},
then:function(k){return _.a("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.a(_.eS,{data:k},{adDetailsLineViewModel:function(I){return _.a(_.SZ,{data:I.data,customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.a(_.E,{cond:function(){return g().secondaryDetailsLine},
then:function(k){return _.a("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.a(_.eS,{data:k},{adDetailsLineViewModel:function(I){return _.a(_.SZ,{data:I.data,customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Th");var D0j=_.H(function(e){var g=e.data;var c=e.customCommandResolver;return _.a("ad-grid-card-image-view-model",{class:function(){var k;return((k=g().interaction)==null?0:k.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.mb(_.By({visibilityCallback:function(k){var I,J=(I=g().interaction)==null?void 0:I.onFirstVisible;k&&J&&_.GF(J)},
showOption:_.HG}),_.GP(function(){return g().interaction},c)),
"aria-label":function(){var k,I;return(k=g().interaction)==null?void 0:(I=k.accessibility)==null?void 0:I.label}},_.a(_.eS,{data:function(){return g().adImage}},{adImageViewModel:function(k){return _.a(_.U8,{data:k.data,
customCommandResolver:c})}}),_.a("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.a(_.eS,{data:function(){return g().adCardBadge}},{adCardBadgeViewModel:_.ryn})))},"Uh");var $0D=_.H(function(e){var g=e.data;var c=e.customCommandResolver;return _.a("ad-grid-card-text-view-model",{class:function(){var k;return((k=g().interaction)==null?0:k.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.mb(_.By({visibilityCallback:function(k){var I,J=(I=g().interaction)==null?void 0:I.onFirstVisible;k&&J&&_.GF(J)},
showOption:_.HG}),_.GP(function(){return g().interaction},c)),
"aria-label":function(){var k,I;return(k=g().interaction)==null?void 0:(I=k.accessibility)==null?void 0:I.label}},_.a("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.a(_.E,{cond:function(){return g().title},
then:function(k){return _.a(_.fa,{text:k,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.a("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.a(_.Yz,{each:function(){var k;
return((k=g())==null?void 0:k.descriptions)||[]},
keyBy:"INDEX"},function(k){return _.a(_.fa,{text:k,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.a("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.a(_.eS,{data:function(){return g().moreInfoButton}},{adButtonViewModel:function(k){return _.a(_.o8,{data:k.data,
customCommandResolver:c})}})))},"Vh");var YWx=_.H(function(e){var g=e.data;var c=e.customCommandResolver;var k=e.adGridCardCollectionStyle;return _.a("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.mb(_.By({visibilityCallback:function(I){var J,q=(J=g().interaction)==null?void 0:J.onFirstVisible;I&&q&&_.GF(q)},
showOption:_.HG})),style:function(){return"grid-template-columns: repeat("+gux(k?k():g().style)+", minmax(0, 1fr));"}},_.a(_.eS,{data:function(){var I;
return(I=g())==null?void 0:I.gridCards}},{adGridCardImageViewModel:function(I){return _.a(D0j,{data:I.data,
customCommandResolver:c})},
adGridCardImageFullMetadataViewModel:function(I){return _.a(x0x,{data:I.data,customCommandResolver:c})},
adGridCardTextViewModel:function(I){return _.a($0D,{data:I.data,customCommandResolver:c})}}))},"Wh");_.sL(_.H(function(e){var g=e.data;return _.a("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.mb(_.By({visibilityCallback:function(c){var k,I=(k=g().interaction)==null?void 0:k.onFirstVisible;c&&I&&_.GF(I)},
showOption:_.HG}),_.GP(function(){return g().interaction},kPj))},_.a("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.a(_.E,{cond:_.V2W("(min-width: "+(V$()+tQ)+"px)"),
then:function(){return _.a(_.eS,{data:function(){return g().adGridCardCollection}},{adGridCardCollectionViewModel:function(c){return _.a(YWx,{data:c.data,
customCommandResolver:kPj})}})},
else:function(){return _.a(_.eS,{data:function(){return g().adGridCardCollection}},{adGridCardCollectionViewModel:function(c){return _.a(YWx,{data:c.data,
customCommandResolver:kPj,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.a("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.a(_.eS,{data:function(){return g().adButton}},{adButtonViewModel:function(c){return _.a(_.o8,{data:c.data,
customCommandResolver:kPj})}})))},"Xh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;return _.a("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.mb(_.By({visibilityCallback:function(c){var k,I=(k=g().interaction)==null?void 0:k.onFirstVisible;c&&I&&_.GF(I)},
showOption:_.HG}),_.GP(function(){return g().interaction},I9X))},_.a("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.a(_.eS,{data:function(){if(_.V2W("(min-width: "+(V$()+tQ)+"px)")())var c=g().adGridCardCollection;
else{c=Object.assign({},_.x(g().adGridCardCollection,VZo));var k;c.gridCards!==void 0&&((k=c.gridCards)==null?void 0:k.length)>1?c.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":c.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";c={adGridCardCollectionViewModel:c}}return c}},{adGridCardCollectionViewModel:function(c){return _.a(YWx,{data:c.data,
customCommandResolver:I9X})}})),_.a("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.a(_.eS,{data:function(){return g().adButton}},{adButtonViewModel:function(c){return _.a(_.o8,{data:c.data,
customCommandResolver:I9X})}})))},"Yh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.jx}});var hW=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return e};
_.Y(hW,_.z);_.v=hW.prototype;_.v.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.v.attached=function(){this.getDataFromPlayerAndRender()};
_.v.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.v.getDataFromPlayerAndRender=function(){var e=this,g=_.FE(this.hostElement);g&&g.getPlayerPromise().then(function(c){e.getCachedDataAndListen(c)})};
_.v.getCachedDataAndListen=function(e){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(e,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(e,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=e)};
_.v.resolveCachedActions=function(){var e=_.Q0("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(e=e&&e())&&!_.n0.isEmpty(e)&&this.sendUpdateEngagementPanelAction(e);(e=(e=_.Q0("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&e())&&!_.n0.isEmpty(e)&&this.sendChangeEngagementPanelVisibilityAction(e);(e=(e=_.Q0("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&e())&&!_.n0.isEmpty(e)&&this.sendScrollToEngagementPanelCommand(e)};
_.v.sendUpdateEngagementPanelAction=function(e){var g;_.Z5(this.hostElement,"yt-update-engagement-panel-action",[(g=_.n0.get(e,"action"))!=null?g:e])};
_.v.sendChangeEngagementPanelVisibilityAction=function(e){_.Z5(this.hostElement,"yt-change-engagement-panel-visibility-action",[e])};
_.v.sendScrollToEngagementPanelCommand=function(e){_.Z5(this.hostElement,"yt-scroll-to-engagement-panel-command",[e])};
_.v.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.G("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.mN(Error("Bl"))};
hW.prototype.dataChanged=hW.prototype.dataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],hW.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],hW.prototype,"componentBehavior",void 0);_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],hW.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],hW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],hW.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],hW.prototype,"player",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hW.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],hW);
_.U(hW,"ytd-ads-engagement-panel-content-renderer",function(){if(Ggl!==void 0)return Ggl;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
return Ggl=e},{mode:1});var fNX;var Xt=function(){var e=_.z.apply(this,arguments)||this;e.player=null;e.JSC$20626_playerEvents=new Map;e.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return e};
_.Y(Xt,_.z);_.v=Xt.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.v.created=function(){this.player=null;this.JSC$20626_playerEvents=new Map;this.JSC$20626_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20626_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20626_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20626_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.v.attached=function(){var e=this,g=_.FE();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));g&&g.getPlayerPromise().then(function(c){e.setPlayer(c);e.set("isPageLoad",!1)})};
_.v.setPlayer=function(e){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20626_playerEvents);this.set("player",e);e&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(e,this.JSC$20626_playerEvents),e.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.v.onLoopRangeChange=function(e){var g=_.Ss().resolve(_.NN(_.A4));if((!g||g.isOnWatch())&&this.hostElement.clientHeight){var c;!e&&((c=this.data)==null?0:c.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.v.onVideoProgress=function(e){var g,c,k=((g=this.player)==null?void 0:(c=g.getPresentingPlayerType)==null?void 0:c.call(g))===2;this.isAdPlaying!==k&&this.set("isAdPlaying",k);var I;if(!k&&(I=this.player)!=null&&I.getLoopRange()){c=this.player.getLoopRange();g=c.startTimeMs;c=c.endTimeMs;k=this.player.getProgressState(1).seekableStart;var J;g<k*1E3&&((J=this.data)==null?0:J.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
e=c<e*1E3;var q;((q=this.player)==null?0:q.getLoopRange())&&e&&this.player.seekTo(g/1E3)}};
_.v.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.v.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.v.onYtDeleteClipEngagementPanelCommand=function(e){_.x(e,NR0).command&&this.ytComponentBehavior.resolveCommand(_.x(e,NR0).command)};
_.Bd.Object.defineProperties(Xt.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.voteCount)||_.PL("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Xt.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Xt.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Xt.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],Xt.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Xt.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Xt.prototype,"isAdPlaying",void 0);_.t([_.u({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Xt.prototype,"isPageLoad",void 0);_.t([_.u({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Xt.prototype,"isDarkTheme",void 0);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Xt.prototype,"voteCount",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Xt.prototype,"channelEndpoint",null);_.t([_.p("channelEndpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],Xt.prototype,"channelHref",null);_.t([_.bF({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Xt);
_.U(Xt,"ytd-clip-attribution-renderer",function(){if(fNX!==void 0)return fNX;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return fNX=e},{mode:1});var jzq;var GE=function(){var e=_.z.apply(this,arguments)||this;e.player=null;e.JSC$20631_playerEvents=new Map;return e};
_.Y(GE,_.z);_.v=GE.prototype;_.v.created=function(){this.player=null;this.JSC$20631_playerEvents=new Map;this.JSC$20631_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20631_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20631_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.v.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.v.attached=function(){var e=this,g=_.FE();g&&g.getPlayerPromise().then(function(c){e.setPlayer(c);e.set("isPageLoad",!1)})};
_.v.setPlayer=function(e){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20631_playerEvents);this.set("player",e);if(e){this.ytPlayerListenerBehavior.listenToPlayerEvents(e,this.JSC$20631_playerEvents);var g;(e==null?void 0:(g=e.getPresentingPlayerType)==null?void 0:g.call(e))===2&&this.playerAdStartHandler()}};
_.v.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.v.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.v.onVideoProgress=function(){var e,g,c=((e=this.player)==null?void 0:(g=e.getPresentingPlayerType)==null?void 0:g.call(e))===2;this.isAdPlaying!==c&&this.set("isAdPlaying",c)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],GE.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],GE.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],GE.prototype,"isAdPlaying",void 0);
_.t([_.u({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],GE.prototype,"isPageLoad",void 0);_.t([_.bF({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],GE);
_.U(GE,"ytd-clip-section-footer-renderer",function(){if(jzq!==void 0)return jzq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return jzq=e},{mode:1});var iRq;var PtO;var m0l=function(){return _.z.apply(this,arguments)||this};
_.Y(m0l,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],m0l.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],m0l.prototype,"data",void 0);_.t([_.bF({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],m0l);
_.U(m0l,"ytd-clip-ad-state-renderer",function(){if(PtO!==void 0)return PtO;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return PtO=e},{mode:1});var p87;var xR=function(){var e=_.z.apply(this,arguments)||this;e.value="";e.valid=!1;e.userChangedValue=!1;e.disabled=!1;e.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return e};
_.Y(xR,_.z);_.v=xR.prototype;_.v.detached=function(){this.userChangedValue=!1};
_.v.handleKeyDown=function(e){if(_.er)var g=13;else _.DMZ&&_.Cb?g=13:g=13;e.keyCode===g&&e.preventDefault()};
_.v.handleInput=function(){var e=_.o1(this.hostElement).querySelector("#title");if(e){var g=(e.value||"").replace(/\r|\n/g," ");this.set("value",g);e.value=g;this.valid=e.validate();this.userChangedValue=!0}};
_.v.handleBlur=function(){this.valid=_.o1(this.hostElement).querySelector("#title").validate()};
_.v.onValueChanged=function(){_.oC(this.hostElement,"title-changed",{title:this.value})};
_.v.onValidChanged=function(){_.oC(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.v.setInput=function(e,g){var c=_.o1(this.hostElement).querySelector("#title");c&&(c.value=e,this.handleInput(),g&&(c.invalid=!1,this.valid=!0))};
_.v.onClipCreationDisable=function(){this.set("disabled",!0)};
_.v.onClipCreationEnable=function(){this.set("disabled",!1)};
_.v.onClipCreationVisibilityChange=function(e){var g=this;e.visible?requestAnimationFrame(function(){var c;((c=_.o1(g.hostElement).querySelector("#title"))==null?void 0:c.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
xR.prototype.onValidChanged=xR.prototype.onValidChanged;xR.prototype.onValueChanged=xR.prototype.onValueChanged;xR.prototype.handleBlur=xR.prototype.handleBlur;xR.prototype.handleInput=xR.prototype.handleInput;xR.prototype.handleKeyDown=xR.prototype.handleKeyDown;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],xR.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],xR.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],xR.prototype,"value",void 0);_.t([_.u(),_.B("design:type",Object)],xR.prototype,"valid",void 0);_.t([_.u(),_.B("design:type",Object)],xR.prototype,"userChangedValue",void 0);_.t([_.u(),_.B("design:type",Object)],xR.prototype,"disabled",void 0);_.t([_.Ks("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],xR.prototype,"handleKeyDown",null);
_.t([_.Ks("input"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xR.prototype,"handleInput",null);_.t([_.Ks("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xR.prototype,"handleBlur",null);_.t([_.OY("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xR.prototype,"onValueChanged",null);
_.t([_.OY("valid"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xR.prototype,"onValidChanged",null);_.t([_.bF({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],xR);
_.U(xR,"ytd-clip-creation-text-input-renderer",function(){if(p87!==void 0)return p87;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return p87=e},{mode:1});var Tto;var lNS;var AEM;var szO;var Fx0;var DV=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};e.pendingStoryboardImages_={};e.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];e.tickLabelInterval=30;e.mediumTickInterval=5;e.largeTickInterval=15;e.aboveRulerHeight=32;e.rulerHeight=50;e.smallTickHeight=4;e.mediumTickHeight=8;e.largeTickHeight=16;e.mediaListeners_=
{};return e};
_.Y(DV,_.z);_.v=DV.prototype;_.v.attached=function(){var e=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(g){g=_.w(["screen and (min-resolution: "+g+")","screen and (max-resolution: "+g+")"]);for(var c=g.next();!c.done;c=g.next()){c=c.value;var k=window.matchMedia(c);k&&(e.mediaListeners_[c]=e.updatePixelRatio_.bind(e),k.addEventListener?k.addEventListener("change",e.mediaListeners_[c]):k.addListener?k.addListener(e.mediaListeners_[c]):delete e.mediaListeners_[c])}})};
_.v.detached=function(){this.setPlayer(null);for(var e=_.w(Object.keys(this.mediaListeners_)),g=e.next();!g.done;g=e.next()){var c=g.value;g=this.mediaListeners_[c];(c=window.matchMedia(c))&&(c.removeEventListener?c.removeEventListener("change",g):c.removeListener&&c.removeListener(g))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.v.onVisibilityChangedAction_=function(e){var g=this;e.visible&&!this.player_&&(e=_.FE())&&e.getPlayerPromise().then(function(c){g.setPlayer(c)})};
_.v.setPlayer=function(e){e&&this.set("player_",e)};
_.v.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.v.setUpCanvas_=function(){var e=this.rulerWidth,g=this.devicePixelRatio_,c=this.visible;this.set("canvasReady_",!1);if(c&&g!==0){c=this.aboveRulerHeight+this.rulerHeight;var k=_.o1(this.hostElement).querySelector("#ticks");k.width=e*g;k.height=c*g;k.style.width=e+"px";k.style.height=c+"px";k.getContext("2d").scale(g,g);this.set("canvasReady_",!0)}};
_.v.drawRuler_=function(e,g,c,k,I,J,q,L,n,R,W,b){e&&c&&g&&(e=_.o1(this.hostElement).querySelector("#ticks"),g=e.getContext("2d"),g.clearRect(0,0,e.width,e.height),g.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),g.lineWidth=2,g.beginPath(),g.moveTo(0,this.aboveRulerHeight),g.lineTo(e.width,this.aboveRulerHeight),g.moveTo(0,e.height),g.lineTo(e.width,e.height),g.stroke(),this.drawRulerTicks_(e,J,I,k),this.drawStoryboardImages_(e,c,J,I,k),g.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
g.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(q-J,k,!1),this.rulerHeight),c=this.timeToPixels_(L-J,k,!1),g.fillRect(c,this.aboveRulerHeight,e.width-c,this.rulerHeight),this.drawSpeedLines_(e,J,b))};
_.v.drawRulerTicks_=function(e,g,c,k){var I=e.getContext("2d");I.save();I.lineWidth=1;for(var J=Math.floor(Math.max(0,g-this.tickLabelInterval));J<g+c;J++){I.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var q=(J-g)*k;I.beginPath();I.moveTo(q,e.height);var L=this.smallTickHeight;J%this.largeTickInterval===0?L=this.largeTickHeight:J%this.mediumTickInterval===0&&(L=this.mediumTickHeight);I.lineTo(q,e.height-L);I.stroke();J%this.tickLabelInterval===0&&(I.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),I.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),I.fillText(S3(J),q+4,12),I.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),I.moveTo(q,0),I.lineTo(q,this.aboveRulerHeight),I.stroke())}I.restore()};
_.v.percentToHex_=function(e){e=Math.round(e*255).toString(16);e.length<2&&(e="0"+e);return e};
_.v.drawSpeedLines_=function(e,g,c){var k=e.getContext("2d");k.save();var I=Math.min(25,Math.abs(c)-15)/25,J=e.width*.3*I,q=e.width*-.3,L=e.width*1.3,n=this.aboveRulerHeight;e=e.height;var R=Math.round(4*I),W=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");W.length<7&&(W="#"+W.substring(1,4).repeat(2));var b=this.percentToHex_(.5+I/2);b=W+b;W+="00";if(I>0)for(I=0;I<R;I++){var h=q+Math.random()*(L-q),X=n+Math.random()*(e-n),D=J+g%J,f=k.createLinearGradient(h,X,h+D,X);
c<0?(f.addColorStop(0,b),f.addColorStop(.4,b),f.addColorStop(.9,W)):(f.addColorStop(.1,W),f.addColorStop(.6,b),f.addColorStop(1,b));k.strokeStyle=f;k.lineWidth=1;k.beginPath();k.moveTo(h,X);k.lineTo(h+D,X);k.stroke()}k.restore()};
_.v.getStoryboardForTime_=function(e,g,c){c===void 0&&(c=g.getNumberOfStoryboardLevels()-1);e=g.getStoryboardFrameIndex(e,c);return g.getStoryboardFrame(e,c)};
_.v.drawStoryboardImages_=function(e,g,c,k,I){if(!this.disabled){e=e.getContext("2d");var J=this.getStoryboardForTime_(0,g);if(J){var q=J.width/J.columns;J=J.height/J.rows;var L=q/J,n=this.rulerHeight*L;n=this.tickLabelInterval*(L<this.tickLabelInterval*I/this.rulerHeight?1/Math.floor(this.tickLabelInterval*I/n):Math.round(n/(this.tickLabelInterval*I)));var R=n*I,W=this.rulerHeight,b=R/this.rulerHeight,h=Math.floor(Math.max(0,c-n));for(h-=h%n;h<c+k;h+=n){var X=this.getStoryboardForTime_(h,g),D=this.getPreloadedStoryboard_(X.url);
if(D){var f=(h-c)*I,l=this.aboveRulerHeight,A=X.column*q,d=X.row*J;if(L<b){var S=W/(R/L);X=q;S*=J;d+=(J-S)/2}else X=R/(W*L)*q,S=J,A+=(q-X)/2;e.drawImage(D,A,d,X,S,f,l,R,W)}else this.fetchStoryboardImage_(X)}}}};
_.v.getPreloadedStoryboard_=function(e){return this.storyboardImages_.find(function(g){if(g.src==e)return!0;var c=g.src.indexOf(e);return c!=-1&&c==g.src.length-e.length})};
_.v.fetchStoryboardImage_=function(e){var g=this,c=this.getPreloadedStoryboard_(e.url),k=this.pendingStoryboardImages_[e.url];c||k!==void 0||(c=new Promise(function(I){var J=new Image(e.width,e.height);J.src=e.url;J.onload=function(){I(J)};
J.onerror=function(){I(null)}}),this.pendingStoryboardImages_[e.url]=c,c.then(function(I){I&&g.push("storyboardImages_",I);
return I}).finally(function(){delete g.pendingStoryboardImages_[e.url]}))};
_.v.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.v.timeToPixels_=function(e,g,c){e*=g;return c===void 0||c?e+"px":e};
_.v.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
DV.prototype.drawRuler_=DV.prototype.drawRuler_;DV.prototype.setUpCanvas_=DV.prototype.setUpCanvas_;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],DV.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],DV.prototype,"start",void 0);_.t([_.u({value:30}),_.B("design:type",Number)],DV.prototype,"end",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],DV.prototype,"visible",void 0);_.t([_.u(),_.B("design:type",Object)],DV.prototype,"player_",void 0);_.t([_.u(),_.B("design:type",Number)],DV.prototype,"tickSpacing",void 0);_.t([_.u(),_.B("design:type",Number)],DV.prototype,"windowSizeSec",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],DV.prototype,"rulerWidth",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],DV.prototype,"rulerShift",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],DV.prototype,"canvasReady_",void 0);_.t([_.u({value:function(){return[]}}),
_.B("design:type",Array)],DV.prototype,"storyboardImages_",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],DV.prototype,"disabled",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],DV.prototype,"forceRender_",void 0);_.t([_.u({value:1}),_.B("design:type",Number)],DV.prototype,"devicePixelRatio_",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],DV.prototype,"windowSpeed",void 0);
_.t([_.OY("visible","devicePixelRatio_","rulerWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DV.prototype,"setUpCanvas_",null);
_.t([_.OY("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.B("design:returntype")],DV.prototype,"drawRuler_",null);_.t([_.Wo({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],DV);
_.U(DV,"yt-clip-creation-scrubber-canvas",function(){if(Fx0===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);Fx0=e}e=Fx0;return e},
{mode:2});var unz;var d0D;var $R=function(){var e=_.z.apply(this,arguments)||this;e.start=0;e.end=30;e.visible=!1;e.draggingLeft_=!1;e.draggingRight_=!1;e.draggingRuler_=!1;e.draggingWindow_=!1;e.seekableStart=0;e.seekableEnd=0;e.rulerWidth_=0;e.rulerShift_=0;e.windowSlideSpeed=0;e.disabled=!1;e.initialized=!1;e.durationAccessibilityLabel="";e.activeLoopRange_=!1;e.rulerDragMouseStart_=0;e.rulerDragRulerStart_=0;e.rulerDragStartTime_=0;e.rulerDragEndTime_=0;e.dragMouseLastX_=0;e.scrollInterval_=null;e.scrubberVe_=null;e.boundHandlers_=
{};e.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return e};
_.Y($R,_.z);_.v=$R.prototype;
_.v.created=function(){var e=this;this.JSC$20645_playerEvents=new Map;this.JSC$20645_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20645_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20645_playerEvents.set("onStateChange",this.onStateChange_);var g={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(g).forEach(function(c){e.boundHandlers_[c]=g[c].bind(e)})};
_.v.attached=function(){this.activeLoopRange_=!1;_.o1(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.o1(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.VF(156731)};
_.v.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.o1(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.o1(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.v.onVisibilityChangedAction_=function(e){var g=this;e.visible&&!this.player_&&(e=_.FE())&&e.getPlayerPromise().then(function(c){g.setPlayer(c)})};
_.v.setPlayer=function(e){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20645_playerEvents);e&&(this.set("player_",e),this.ytPlayerListenerBehavior.listenToPlayerEvents(e,this.JSC$20645_playerEvents))};
_.v.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.v.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.v.beginHandleDrag_=function(e){this.disabled||(e.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=e.clientX,e.target===_.o1(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():e.target===_.o1(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.v.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.v.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.v.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.v.beginRulerDrag_=function(e){this.disabled||(e.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=e.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.v.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.v.beginWindowScroll_=function(){var e=this;this.scrollInterval_=setInterval(function(){var g=e.windowSlideSpeed;if(g=GHg(e.start,e.boundedRulerStartLimit_())?g-.1:GHg(e.end,e.boundedRulerEndLimit_())?g+.1:0){var c=e.capRulerOffset_(e.rulerShift_+g);c==e.rulerShift_?g=0:(e.set("rulerShift_",c),_.oC(e.hostElement,"set-fixed-length-range",{start:e.start+g,duration:e.end-e.start}))}e.set("windowSlideSpeed",g)},33)};
_.v.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.v.endDrag_=function(){this.logClick();var e=void 0;this.draggingRight_?e=this.end-1:this.draggingLeft_&&(e=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,e);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.v.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.v.updateRulerSize_=function(){this.set("rulerWidth_",_.o1(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.v.handleMouseDrag_=function(e){e.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(e):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(e):this.draggingWindow_&&this.handleWindowDrag_(e))};
_.v.handleRulerDrag_=function(e){e=this.pixelsToTime_(e.clientX-this.rulerDragMouseStart_);e=this.capRulerOffset_(this.rulerDragRulerStart_-e);this.set("rulerShift_",e);var g=this.rulerDragStartTime_-(this.rulerDragRulerStart_-e);_.oC(this.hostElement,"set-fixed-length-range",{start:g,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-e)-g})};
_.v.handleWindowDrag_=function(e){var g=e.clientX-this.dragMouseLastX_;this.dragMouseLastX_=e.clientX;e=this.pixelsToTime_(g);_.oC(this.hostElement,"set-fixed-length-range",{start:this.start+e,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.v.capRulerOffset_=function(e){var g=this.seekableStart-this.pixelsToTime_(16),c=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(g,e),c)};
_.v.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.v.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.v.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.v.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.v.handleWindowHandleDrag_=function(e){var g=e.clientX-this.dragMouseLastX_;this.dragMouseLastX_=e.clientX;e=this.pixelsToTime_(g);if(this.draggingLeft_){var c=this.start+e;var k=this.end}else this.draggingRight_&&(c=this.start,k=this.end+e);_.oC(this.hostElement,"set-range",{start:c,end:k,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.v.onVideoProgress_=function(e){this.disabled||(e=this.timeToPixels_(e-this.rulerShift_,this.tickSpacing_),_.o1(this.hostElement).querySelector("#playhead").style.transform="translateX("+e+")")};
_.v.onClipCreationDisable_=function(){this.endDrag_()};
_.v.timeToPixels_=function(e,g,c){e*=g;return c===void 0||c?e+"px":e};
_.v.pixelsToTime_=function(e){return e/this.tickSpacing_};
_.v.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.v.centerRuler_=function(e,g,c){this.set("rulerShift_",this.capRulerOffset_(e+(g-e)/2-c/2))};
_.v.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.v.updateLoopRange_=function(e,g,c,k,I,J,q){e&&(g&&k&&!c?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(e.pauseVideo(),e.seekTo(I,!1,void 0,void 0,50)):this.draggingRight_?(e.pauseVideo(),e.seekTo(J-.1,!1,void 0,void 0,50)):(q!==void 0?e.seekTo(q,!0,void 0,void 0,50):(g=e.getCurrentTime(),g<I||g>J?e.seekTo(I,!0,void 0,void 0,50):e.seekTo(g,!0,void 0,void 0,50)),e.playVideo()),e.setLoopRange({startTimeMs:I*1E3,endTimeMs:J*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(e.getCurrentTime())):
this.activeLoopRange_&&(e.setLoopRange(null),this.activeLoopRange_=!1))};
_.v.updateHandles_=function(){_.o1(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.o1(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.v.updateRuler_=function(){var e=this.end,g=this.start,c=this.draggableStartLimit_(),k=this.draggableEndLimit_();(g<c-.001||e>k+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.v.computeDurationLabel_=function(e,g){return e?e.replace("$clip_length",parseFloat(g).toFixed(1)):""};
_.v.computeDuration_=function(e,g){return this.isValidTime_(e)&&this.isValidTime_(g)&&e<g?g-e:0};
_.v.isValidTime_=function(e){return isNaN(parseFloat(e))||e<0?!1:this.player_?e>=this.seekableStart&&e<=this.seekableEnd:!0};
_.v.computeWindowSizeSec_=function(e,g,c){return Math.min((e||12E4)/1E3,c-g)};
_.v.computeTickSpacing_=function(e,g){return g?g/e:1};
_.v.onDragStateChanged_=function(){_.oC(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.v.centerRangeOnTime_=function(e){var g=this.duration;e=vul(e-g/2,g,this.seekableStart,this.seekableEnd);_.oC(this.hostElement,"set-fixed-length-range",{start:e.start,duration:e.end-e.start})};
_.v.nearlyLessThan_=function(e,g,c){return e+(c===void 0?1E-6:c)<g};
_.v.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var e=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(e,this.start)||this.nearlyLessThan_(this.end,e))&&this.centerRangeOnTime_(e)}};
_.v.onStateChange_=function(e){this.visible&&!this.disabled&&e==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.v.computeDragState_=function(e,g,c,k){return e?"left":g?"right":c?"ruler":k?"window":"none"};
_.v.logClick=function(){var e=_.EM(),g=_.RC();e&&g&&this.scrubberVe_&&(_.G("combine_ve_grafts")?_.Nd(_.gL(),this.scrubberVe_,g):_.Yn(e,g,this.scrubberVe_),_.m7(e,this.scrubberVe_))};
$R.prototype.onDragStateChanged_=$R.prototype.onDragStateChanged_;$R.prototype.updateRuler_=$R.prototype.updateRuler_;$R.prototype.updateHandles_=$R.prototype.updateHandles_;$R.prototype.onUpdateLoopRange=$R.prototype.onUpdateLoopRange;$R.prototype.onInitializedChanged_=$R.prototype.onInitializedChanged_;$R.prototype.onVisibleChanged_=$R.prototype.onVisibleChanged_;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],$R.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",Object)],$R.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"start",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"end",void 0);_.t([_.u({computed:"computeDuration_(start, end)"}),_.B("design:type",Number)],$R.prototype,"duration",void 0);
_.t([_.u(),_.B("design:type",String)],$R.prototype,"lengthTemplate",void 0);_.t([_.u({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.B("design:type",String)],$R.prototype,"durationLabel",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"visible",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"player_",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"draggingLeft_",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"draggingRight_",void 0);
_.t([_.u(),_.B("design:type",Object)],$R.prototype,"draggingRuler_",void 0);_.t([_.u({value:!1}),_.B("design:type",Object)],$R.prototype,"draggingWindow_",void 0);_.t([_.u({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.B("design:type",Number)],$R.prototype,"tickSpacing_",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"seekableStart",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"seekableEnd",void 0);
_.t([_.u(),_.B("design:type",Number)],$R.prototype,"windowSizeMs",void 0);_.t([_.u({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.B("design:type",Number)],$R.prototype,"windowSizeSec_",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"rulerWidth_",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"rulerShift_",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"windowSlideSpeed",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$R.prototype,"disabled",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"initialized",void 0);_.t([_.u(),_.B("design:type",Object)],$R.prototype,"durationAccessibilityLabel",void 0);_.t([_.u({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.B("design:type",String)],$R.prototype,"dragState",void 0);
_.t([_.OY("visible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$R.prototype,"onVisibleChanged_",null);_.t([_.OY("initialized"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$R.prototype,"onInitializedChanged_",null);_.t([_.OY("player_","visible","disabled","initialized","start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$R.prototype,"onUpdateLoopRange",null);
_.t([_.OY("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$R.prototype,"updateHandles_",null);_.t([_.OY("start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$R.prototype,"updateRuler_",null);
_.t([_.OY("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$R.prototype,"onDragStateChanged_",null);_.t([_.Wo({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],$R);
_.U($R,"yt-clip-creation-scrubber-view",function(){if(d0D===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;unz===void 0&&(unz=document.createElement("template"));var k=unz;c.call(g,k.content.cloneNode(!0),e.content.firstChild);d0D=e}e=d0D;return e},{mode:2});var YR=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};e.startHighlightTimeout=0;e.endHighlightTimeout=0;return e};
_.Y(YR,_.z);_.v=YR.prototype;_.v.attached=function(){var e=this;this.startInput.addEventListener("input",function(g){return e.handleStartInput_(g)});
this.endInput.addEventListener("input",function(g){return e.handleEndInput_(g)});
this.startInput.addEventListener("focusout",function(g){return e.handleStartBlur_(g)});
this.endInput.addEventListener("focusout",function(g){return e.handleEndBlur_(g)})};
_.v.setPlayer=function(e){this.set("player_",e)};
_.v.onSetFixedLengthRange_=function(e){var g=e.detail;e=g.start;var c=g.duration,k=g.startLimit;g=g.endLimit;k||(k=this.seekableStart_);g||(g=this.seekableEnd_);e=vul(e,c,k,g);this.start=e.start;this.end=e.end};
_.v.onSetRange_=function(e){var g=e.detail;e=g.start;var c=g.end,k=g.startLimit;g=g.endLimit;k||(k=this.seekableStart_);g||(g=this.seekableEnd_);if(e=wYq(e,c,k,g,this.minLengthSec,this.maxLengthSec))this.start=e.start,this.end=e.end};
_.v.updateInputs_=function(){var e=this.end,g=this.start;this.startInput.focused||(this.startInput.value=S3(g,!0));this.endInput.focused||(this.endInput.value=S3(e,!0))};
_.v.handleStartInput_=function(e){e=JCQ(e.target.value);if(e===null)this.set("startValid",!1);else{var g=this.end,c=wYq(e,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);c?(this.set("endWillUpdate",c.end!==g),this.set("startValid",c.start===e)):this.set("startValid",!1)}};
_.v.handleEndInput_=function(e){e=JCQ(e.target.value);if(e===null)this.set("endValid",!1);else{var g=this.start,c=qQv(this.start,e,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);c?(this.set("startWillUpdate",c.start!==g),this.set("endValid",c.end===e)):this.set("endValid",!1)}};
_.v.handleStartBlur_=function(e){e=JCQ(e.target.value);e===null?this.startInput.value=S3(this.start,!0):this.forceUpdateInputs_(wYq(e,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.v.handleEndBlur_=function(e){e=JCQ(e.target.value);e===null?this.endInput.value=S3(this.end,!0):this.forceUpdateInputs_(qQv(this.start,e,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.v.forceUpdateInputs_=function(e){e&&(this.start=e.start,this.end=e.end);this.startInput.value=S3(this.start,!0);this.endInput.value=S3(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.v.initializeClipRange_=function(){var e=this.seekableEnd_,g=this.seekableStart_,c=this.visible_,k=this.player_;if(!k||!c||g===null||!e)this.set("initialized",!1);else if(!this.initialized){var I=k.getCurrentTime(),J=this.getDefaultLengthSec_();c=k.getVideoData();var q=k.getPlayerState()==1,L=c.isLive;J=Math.min(J,e-g);I=Math.max(0,I);e=L?qQv(I-J,I,g,e,this.minLengthSec,this.maxLengthSec):q?vul(I-J/2,J,g,e):vul(I,J,g,e);this.start=e.start;this.end=e.end;this.set("initialized",!0);c.isLive&&k.seekTo(e.start);
this.startInput.value=S3(this.start,!0);this.endInput.value=S3(this.end,!0)}};
_.v.onStartChanged_=function(){var e=this;_.oC(this.hostElement,"start-changed",{start:this.start});var g;isNaN((g=this.oldStart)!=null?g:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){e.set("highlightStart",!1);e.startHighlightTimeout=0;e.oldStart=e.start},3E3))};
_.v.onEndChanged_=function(){var e=this;_.oC(this.hostElement,"end-changed",{end:this.end});var g;isNaN((g=this.oldEnd)!=null?g:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){e.set("highlightEnd",!1);e.endHighlightTimeout=0;e.oldEnd=e.end},3E3))};
_.v.onVisibilityChangedAction_=function(e){var g=this;this.set("visible_",e.visible);this.visible_&&!this.player_&&(e=_.FE())&&e.getPlayerPromise().then(function(c){g.setPlayer(c)})};
_.v.computeMinLengthSec_=function(e){return e/1E3||5};
_.v.computeMaxLengthSec_=function(e){return e/1E3||60};
_.v.computeDefaultLengthSec_=function(e){return e/1E3};
_.v.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.v.computeSeekableStart_=function(e,g){return e&&g?e.getProgressState(1).seekableStart:0};
_.v.computeSeekableEnd_=function(e,g){return e&&g?e.getProgressState(1).seekableEnd:0};
_.v.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.v.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.v.onDragState_=function(e){this.set("highlightStart",e.detail.startChanging);this.set("highlightEnd",e.detail.endChanging)};
YR.prototype.onDragState_=YR.prototype.onDragState_;YR.prototype.onEndChanged_=YR.prototype.onEndChanged_;YR.prototype.onStartChanged_=YR.prototype.onStartChanged_;YR.prototype.initializeClipRange_=YR.prototype.initializeClipRange_;YR.prototype.updateInputs_=YR.prototype.updateInputs_;YR.prototype.onSetRange_=YR.prototype.onSetRange_;YR.prototype.onSetFixedLengthRange_=YR.prototype.onSetFixedLengthRange_;
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],YR.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],YR.prototype,"data",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],YR.prototype,"start",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],YR.prototype,"startValid",void 0);
_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],YR.prototype,"startWillUpdate",void 0);_.t([_.u({value:30}),_.B("design:type",Number)],YR.prototype,"end",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],YR.prototype,"endValid",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],YR.prototype,"endWillUpdate",void 0);_.t([_.u({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.B("design:type",Number)],YR.prototype,"minLengthSec",void 0);
_.t([_.u({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.B("design:type",Number)],YR.prototype,"maxLengthSec",void 0);_.t([_.u({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.B("design:type",Number)],YR.prototype,"defaultLengthSec",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],YR.prototype,"visible_",void 0);_.t([_.u(),_.B("design:type",Object)],YR.prototype,"player_",void 0);
_.t([_.u({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.B("design:type",Number)],YR.prototype,"seekableStart_",void 0);_.t([_.u({computed:"computeSeekableEnd_(player_, visible_)"}),_.B("design:type",Number)],YR.prototype,"seekableEnd_",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],YR.prototype,"initialized",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],YR.prototype,"disabled",void 0);
_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],YR.prototype,"highlightStart",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],YR.prototype,"highlightEnd",void 0);_.t([_.Cs("#start"),_.B("design:type",HTMLInputElement)],YR.prototype,"startInput",void 0);_.t([_.Cs("#end"),_.B("design:type",HTMLInputElement)],YR.prototype,"endInput",void 0);
_.t([_.Ks("set-fixed-length-range"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],YR.prototype,"onSetFixedLengthRange_",null);_.t([_.Ks("set-range"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],YR.prototype,"onSetRange_",null);_.t([_.OY("start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YR.prototype,"updateInputs_",null);
_.t([_.OY("player_","visible_","seekableStart_","seekableEnd_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YR.prototype,"initializeClipRange_",null);_.t([_.OY("start"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YR.prototype,"onStartChanged_",null);_.t([_.OY("end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YR.prototype,"onEndChanged_",null);
_.t([_.Ks("clips-drag-state"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],YR.prototype,"onDragState_",null);_.t([_.Wo({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],YR);
_.U(YR,"yt-clip-creation-scrubber-renderer",function(){if(szO===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;AEM===void 0&&(AEM=document.createElement("template"));var k=AEM;c.call(g,k.content.cloneNode(!0),e.content.firstChild);szO=e}e=szO;return e},{mode:2});var fl=function(){var e=_.z.apply(this,arguments)||this;e.player_=null;e.JSC$20659_playerEvents=new Map;e.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return e};
_.Y(fl,_.z);_.v=fl.prototype;_.v.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.v.created=function(){this.JSC$20659_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20659_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20659_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20659_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.v.detached=function(){this.setPlayer(null)};
_.v.onVisibilityChangedAction_=function(e){var g=this,c;if((c=this.data)==null?0:c.externalVideoId){var k;this.videoId=(k=this.data)==null?void 0:k.externalVideoId}this.getPlayer().then(function(I){if(e.visible)g.returnTime=I.getCurrentTime(),g.isAtLiveHead=I.getProgressState().isAtLiveHead;else{var J=g.returnTime;g.isAtLiveHead&&(J=Number.POSITIVE_INFINITY);I.seekTo(J,void 0,void 0,void 0,51)}})};
_.v.getPlayer=function(){var e=this;if(!this.player_){var g=_.FE();if(g)return g.getPlayerPromise().then(function(c){e.setPlayer(c);return c})}return Promise.resolve(this.player_)};
_.v.setPlayer=function(e){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20659_playerEvents);if(e){this.player_=e;var g;((g=this.data)==null?0:g.externalVideoId)||this.set("videoId",e.getVideoData().video_id||"");var c;(e==null?void 0:(c=e.getPresentingPlayerType)==null?void 0:c.call(e))===2&&(this.set("isAdPlaying",!0),_.Z5(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(e,this.JSC$20659_playerEvents)}};
_.v.ready=function(){_.o1(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.v.onTitleChanged_=function(e){this.set("titleValue",e.detail.title)};
_.v.onStartChanged_=function(e){this.set("start",e.detail.start)};
_.v.onEndChanged_=function(e){this.set("end",e.detail.end)};
_.v.onTitleValidChanged_=function(e){this.set("titleValid",e.detail.valid)};
_.v.onStartValidChanged_=function(e){this.set("startValid",e.detail.valid)};
_.v.onEndValidChanged_=function(e){this.set("endValid",e.detail.valid)};
_.v.onVideoDataChange_=function(){var e;if((e=this.data)==null||!e.externalVideoId){var g;this.set("videoId",((g=this.player_)==null?void 0:g.getVideoData().video_id)||"")}};
_.v.computeFormValid_=function(e,g,c,k){return!!(e&&g&&c&&k)};
_.v.computeCancelButton_=function(e,g,c){return e&&_.x(e,_.G_)?{buttonRenderer:Object.assign({},_.x(e,_.G_),{isDisabled:g||c})}:null};
_.v.computeSubmitButton_=function(e,g,c){return e&&_.x(e,_.G_)?{buttonRenderer:Object.assign({},_.x(e,_.G_),{command:void 0,isDisabled:!this.formValid||g||c})}:null};
_.v.computeSubmitCommand_=function(e){return e||null};
_.v.onSubmit_=function(e){var g=this;e.stopPropagation();e.preventDefault();this.submitCommand_&&(e={},e.comment_text=this.titleValue,e.clip_external_video_id=this.videoId,e.clip_offset_ms=parseInt(this.start*1E3,10),e.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.tr(this.hostElement,[this.submitCommand_,e]).then(function(){g.set("isLoading_",!1)},function(){g.set("isLoading_",!1)}))};
_.v.playerAdStartHandler_=function(){_.Z5(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.v.playerAdEndHandler_=function(){_.Z5(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.v.onVideoProgress_=function(){var e=this;this.getPlayer().then(function(g){var c,k=(g==null?void 0:(c=g.getPresentingPlayerType)==null?void 0:c.call(g))===2;e.isAdPlaying!==k&&(k?e.playerAdStartHandler_():e.playerAdEndHandler_())})};
fl.prototype.onEndValidChanged_=fl.prototype.onEndValidChanged_;fl.prototype.onStartValidChanged_=fl.prototype.onStartValidChanged_;fl.prototype.onTitleValidChanged_=fl.prototype.onTitleValidChanged_;fl.prototype.onEndChanged_=fl.prototype.onEndChanged_;fl.prototype.onStartChanged_=fl.prototype.onStartChanged_;fl.prototype.onTitleChanged_=fl.prototype.onTitleChanged_;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],fl.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",Object)],fl.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fl.prototype,"data",void 0);_.t([_.u({value:""}),_.B("design:type",String)],fl.prototype,"titleValue",void 0);
_.t([_.u({value:!1}),_.B("design:type",Boolean)],fl.prototype,"titleValid",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],fl.prototype,"start",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],fl.prototype,"startValid",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],fl.prototype,"end",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],fl.prototype,"endValid",void 0);_.t([_.u({value:""}),_.B("design:type",String)],fl.prototype,"videoId",void 0);
_.t([_.u({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.B("design:type",Boolean)],fl.prototype,"formValid",void 0);_.t([_.u({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.B("design:type",Object)],fl.prototype,"submitButton_",void 0);_.t([_.u({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.B("design:type",Object)],fl.prototype,"submitCommand_",void 0);
_.t([_.u({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.B("design:type",Object)],fl.prototype,"cancelButton_",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],fl.prototype,"isLoading_",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],fl.prototype,"isAdPlaying",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],fl.prototype,"returnTime",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],fl.prototype,"isAtLiveHead",void 0);
_.t([_.Ks("title-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fl.prototype,"onTitleChanged_",null);_.t([_.Ks("start-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fl.prototype,"onStartChanged_",null);_.t([_.Ks("end-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fl.prototype,"onEndChanged_",null);
_.t([_.Ks("title-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fl.prototype,"onTitleValidChanged_",null);_.t([_.Ks("start-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fl.prototype,"onStartValidChanged_",null);_.t([_.Ks("end-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fl.prototype,"onEndValidChanged_",null);
_.t([_.Wo({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],fl);
_.U(fl,"yt-clip-creation-renderer",function(){if(lNS===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Tto===void 0&&(Tto=document.createElement("template"));var k=Tto;c.call(g,k.content.cloneNode(!0),e.content.firstChild);lNS=e}e=lNS;return e},{mode:2});var jC=function(){return _.z.apply(this,arguments)||this};
_.Y(jC,_.z);jC.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"}}}};
jC.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(e){return e.hasOwnProperty("clipCreationRenderer")})&&_.Z5(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
jC.prototype.onPanelContentVisibleChanged=jC.prototype.onPanelContentVisibleChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],jC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.xC.YtVisibilityBehavior),_.B("design:type",Object)],jC.prototype,"ytVisibilityBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],jC.prototype,"ytdReduxBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],jC.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],jC.prototype,"panelContentVisible",void 0);_.t([_.OY("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jC.prototype,"onPanelContentVisibleChanged",null);_.t([_.bF({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],jC);
_.U(jC,"ytd-clip-section-renderer",function(){if(iRq!==void 0)return iRq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return iRq=e},{mode:1});var zao;var HRj;var Qz0;var U0q=function(){return _.z.apply(this,arguments)||this};
_.Y(U0q,_.z);_.t([_.u(),_.B("design:type",Object)],U0q.prototype,"data",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],U0q.prototype,"ytRendererBehavior",void 0);_.t([_.bF({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],U0q);
_.U(U0q,"ytd-hashtag-grid-tile-renderer",function(){if(Qz0!==void 0)return Qz0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Qz0=e},{mode:1});var ix=function(){return _.z.apply(this,arguments)||this};
_.Y(ix,_.z);ix.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
ix.prototype.updateRichGridTrendingHashtagsVisibility=function(){var e,g;if(((e=this.data)==null||!e.isExpanded)&&(g=this.data)!=null&&g.tiles){e=this.data.tiles.length;g=e>this.richGridItemsPerRow?this.richGridItemsPerRow+1:e;var c=Math.ceil(e/g);this.fullyVisibleRows=e%g===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}};
ix.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
ix.prototype.updateRichGridTrendingHashtagsVisibility=ix.prototype.updateRichGridTrendingHashtagsVisibility;_.t([_.u(),_.B("design:type",Object)],ix.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Number)],ix.prototype,"fullyVisibleRows",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],ix.prototype,"isShowMoreVisible",void 0);_.t([_.u({selector:_.Rq,value:0}),_.B("design:type",Number)],ix.prototype,"richGridItemsPerRow",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],ix.prototype,"ytdReduxBehavior",void 0);_.t([_.OY("data","richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ix.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.t([_.bF({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],ix);
_.U(ix,"ytd-hashtag-grid-shelf-renderer",function(){if(HRj!==void 0)return HRj;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return HRj=e},{mode:1});var ol7;var ZRS;var VGQ=0,Pf=function(){var e=_.z.call(this)||this;e.selected=!1;e.isOverlay=!1;e.inputId="toggle-option-"+VGQ;VGQ++;return e};
_.Y(Pf,_.z);Pf.prototype.onTap=function(){_.oC(this.hostElement,"ytd-toggle-option-clicked")};
_.t([_.u(),_.B("design:type",String)],Pf.prototype,"label",void 0);_.t([_.u(),_.B("design:type",String)],Pf.prototype,"inputId",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Pf.prototype,"selected",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Pf.prototype,"isOverlay",void 0);_.t([_.bF({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.B("design:paramtypes",[])],Pf);
_.U(Pf,"ytd-toggle-option-renderer",function(){if(ZRS!==void 0)return ZRS;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ZRS=e},{mode:1});var mf=function(){var e=_.z.apply(this,arguments)||this;e.isToggleOption=!1;e.isOverlay=!1;return e};
_.Y(mf,_.z);mf.prototype.onTap=function(e){e.preventDefault();this.data&&(e=!this.data.checked,this.set("data.checked",e),_.oC(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:e,value:this.data.value}))};
_.Bd.Object.defineProperties(mf.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
mf.prototype.onTap=mf.prototype.onTap;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],mf.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],mf.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],mf.prototype,"isToggleOption",void 0);_.t([_.u(),_.B("design:type",Object)],mf.prototype,"isOverlay",void 0);_.t([_.p("data.responseText"),_.B("design:type",String),_.B("design:paramtypes",[])],mf.prototype,"label",null);
_.t([_.Ks("ytd-toggle-option-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],mf.prototype,"onTap",null);_.t([_.bF({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],mf);
_.U(mf,"ytd-checkbox-survey-option-renderer",function(){if(ol7!==void 0)return ol7;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ol7=e},{mode:1});var tGg;var BtM;var pl=function(){var e=_.z.apply(this,arguments)||this;e.checked=!1;e.isToggleOption=!1;return e};
_.Y(pl,_.z);pl.prototype.onTap=function(){this.data&&(this.checked?_.Z5(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Z5(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
pl.prototype.onTap=pl.prototype.onTap;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],pl.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],pl.prototype,"checked",void 0);_.t([_.u(),_.B("design:type",Object)],pl.prototype,"isToggleOption",void 0);_.t([_.Ks("ytd-toggle-option-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],pl.prototype,"onTap",null);
_.t([_.bF({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],pl);
_.U(pl,"ytd-radio-button-survey-option-renderer",function(){if(BtM!==void 0)return BtM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return BtM=e},{mode:1});var TE=function(){var e=_.z.apply(this,arguments)||this;e.disableAnimation=!1;e.isToggleOption=!0;e.followUpSurveyCommand=null;e.selectedRatingEndpoint=null;e.isSlimlineSurveyFollowUp=!1;e.isShortsStyle=!1;e.styleOverrideAttribute=!0;e.isDarkMode=!1;e.isSubmitted=!1;e.roundedContainer=!0;e.improveShortsResponseRate=_.G("web_improve_shorts_response_rate");e.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 e};
_.Y(TE,_.z);_.v=TE.prototype;
_.v.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.v.attached=function(){var e=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(c){var k;if((k=c[0])!=null&&k.isIntersecting){_.CO().reportShown(e.hostElement);var I;(I=e.intersectionObserver)==null||I.unobserve(e.hostElement)}},{rootMargin:"0px",
threshold:.6});var g;(g=this.intersectionObserver)==null||g.observe(this.hostElement)};
_.v.onDarkModeToggledAction=function(e){this.isDarkMode=e};
_.v.dataChanged=function(){var e;if(((e=this.data)==null?void 0:e.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var g;((g=this.data)==null?void 0:g.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var c,k,I,J;this.darkColorPalette=(c=this.data)==null?void 0:(k=c.inlineContent)==null?void 0:(I=k.compactVideoRenderer)==null?void 0:(J=I.thumbnail)==null?
void 0:J.darkColorPalette;var q,L,n,R;this.lightColorPalette=(q=this.data)==null?void 0:(L=q.inlineContent)==null?void 0:(n=L.compactVideoRenderer)==null?void 0:(R=n.thumbnail)==null?void 0:R.lightColorPalette;var W,b;if(((W=this.data)==null?0:(b=W.inlineContent)==null?0:b.compactVideoRenderer)&&this.isShortsStyle){var h,X,D,f;e=_.u3((h=this.data)==null?void 0:(X=h.inlineContent)==null?void 0:(D=X.compactVideoRenderer)==null?void 0:(f=D.thumbnail)==null?void 0:f.thumbnails);_.Nk(this.hostElement,
{"--yt-background-url":"url("+e+")"})}};
_.v.handleRequestCompletion=function(){this.hostElement.hidden&&_.oC(this.hostElement,"yt-dismissible-item-dismissed")};
_.v.onPopupClosed=function(e){var g;((g=e.detail)==null?void 0:g.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Z5(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.v.handleInlineSurveyRatingSelect=function(e,g){var c=this;this.selectedRatingEndpoint=e;this.followUpSurveyCommand=g;this.expanded=!!e;this.getOptionRenderers().forEach(function(k,I){c.notifyPath("followUpSurveyCommand.followUpOptions."+I+".checkboxSurveyOptionRenderer.checked");c.set("followUpSurveyCommand.followUpOptions."+I+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),e=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Z5(this.hostElement,"yt-reel-non-video-content-dismissal-command",[e]))};
_.v.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Z5(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var e,g=(e=this.data)==null?void 0:e.dismissalEndpoint;g&&this.ytComponentBehavior.resolveCommand(g)}};
_.v.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Z5(this.hostElement,"yt-close-popup-action"))};
_.v.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var e=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{e=this.getOptionRenderers().filter(function(k){return k.checked});
if(e.length===0)return;e=e.map(function(k){return k.responseEndpoint})}var g=[];
e.forEach(function(k,I){I!==0&&(k=_.x(k,_.bn))&&k.feedbackToken&&g.push(k.feedbackToken)});
if(e=e[0]){var c={};g.length>0&&(c.extra_feedback_tokens=g);this.ytComponentBehavior.resolveCommand(e,{form:c})}}};
_.v.getOptionRenderers=function(){var e=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(g){e.isSingleSelect=!!_.x(g,z$O);return e.isSingleSelect?_.x(g,z$O):_.x(g,H$Q)}):[]};
_.v.handleInlineSurveyOptionSelect=function(e){e=this.optionSelector.indexOf(e);e!==-1&&this.optionSelector.selectIndex(e)};
_.v.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.v.maybeGetBackgroundColor=function(e){return this.isDarkMode?e.section2Color:e.section3Color};
_.v.colorPaletteChanged=function(){var e=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;e=e&&this.maybeGetBackgroundColor(e);this.dismissibleEl.style.backgroundColor=!e||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.R1(e)};
_.Bd.Object.defineProperties(TE.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
TE.prototype.colorPaletteChanged=TE.prototype.colorPaletteChanged;TE.prototype.onPopupClosed=TE.prototype.onPopupClosed;TE.prototype.handleRequestCompletion=TE.prototype.handleRequestCompletion;TE.prototype.dataChanged=TE.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],TE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],TE.prototype,"actionHandlerBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],TE.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],TE.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.Cs("#follow-up-survey-options"),_.B("design:type",Object)],TE.prototype,"optionSelector",void 0);_.t([_.u(),_.B("design:type",Object)],TE.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],TE.prototype,"disableAnimation",void 0);_.t([_.u(),_.B("design:type",Object)],TE.prototype,"isToggleOption",void 0);_.t([_.u(),_.B("design:type",Object)],TE.prototype,"followUpSurveyCommand",void 0);_.t([_.u(),_.B("design:type",Object)],TE.prototype,"selectedRatingEndpoint",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],TE.prototype,"expanded",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],TE.prototype,"isSlimlineSurveyFollowUp",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],TE.prototype,"isShortsStyle",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],TE.prototype,"styleOverrideAttribute",void 0);_.t([_.u(),_.B("design:type",Boolean)],TE.prototype,"isSingleSelect",void 0);_.t([_.u(),_.B("design:type",Object)],TE.prototype,"isDarkMode",void 0);
_.t([_.u(),_.B("design:type",Object)],TE.prototype,"lightColorPalette",void 0);_.t([_.u(),_.B("design:type",Object)],TE.prototype,"darkColorPalette",void 0);_.t([_.p("selectedRatingEndpoint","isShortsStyle"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],TE.prototype,"isOptionSelected",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],TE.prototype,"roundedContainer",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],TE.prototype,"improveShortsResponseRate",void 0);_.t([_.Cs("#dismissible"),_.B("design:type",HTMLElement)],TE.prototype,"dismissibleEl",void 0);_.t([_.Cs("#dismiss-button yt-icon-button"),_.B("design:type",HTMLElement)],TE.prototype,"dismissButtonEl",void 0);_.t([_.Cs("#inline-survey-header yt-icon-button"),_.B("design:type",HTMLElement)],TE.prototype,"inlineHeaderDismissButtonEl",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TE.prototype,"dataChanged",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TE.prototype,"handleRequestCompletion",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],TE.prototype,"onPopupClosed",null);
_.t([_.OY("darkColorPalette","lightColorPalette","isDarkMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TE.prototype,"colorPaletteChanged",null);_.t([_.bF({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],TE);
_.U(TE,"ytd-inline-survey-renderer",function(){if(tGg!==void 0)return tGg;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return tGg=e},{mode:1});var Ntl;var SWQ;var lx=function(){var e=_.z.apply(this,arguments)||this;e.visibleVideos=[];e.hiddenVideos=[];e.modern=_.G("web_modern_buttons");e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(lx,_.z);_.v=lx.prototype;_.v.attached=function(){var e=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",e);this.onDarkModeToggledAction(e)};
_.v.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.v.dataChanged=function(){var e=this;this.requestElementsPerRow();var g,c;this.currentColorPalette=this.isDarkTheme?(g=this.data)==null?void 0:g.darkColorData:(c=this.data)==null?void 0:c.lightColorData;var k;if((k=this.currentColorPalette)==null?0:k.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Va(this,function(){e.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.v.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.v.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.v.computeIsFirstFeedItem=function(e){return e};
_.v.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&this.set("isDarkTheme",e);this.data&&(this.currentColorPalette=e?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.v.getCurrentLogo=function(e,g){if(e)return g?e.darkLogoImage:e.lightLogoImage};
_.v.computeTitleStyle=function(e){var g;if((g=this.data)!=null&&g.title&&e&&e.textPrimary!==void 0)return"color:"+_.R1(e.textPrimary)+";"};
_.v.computeSubtitleStyle=function(e){var g;if((g=this.data)!=null&&g.subtitle&&e&&e.textSecondary!==void 0)return"color:"+_.R1(e.textSecondary)+";"};
_.v.computeDismissIconStyle=function(e){if(this.data&&this.data.dismissButton&&e&&e.textPrimary!==void 0)return"--yt-button-color:"+_.R1(e.textPrimary)+";"};
_.v.computeOverflowButtonStyle=function(e){if(this.data&&this.data.overflowButton&&e&&e.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.R1(e.textPrimary)+";--yt-spec-icon-active-other:"+_.R1(e.textPrimary)+";"};
_.v.computeBackgroundStyle=function(e){if(e&&this.data){var g="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=_.u3((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&(g+='background-image:url("'+c+'");')}e.backgroundColor!==void 0&&(g+="background-color:"+_.EY(e.backgroundColor)+";");return g}};
_.v.computeButton=function(){var e,g=Object.assign({},_.x((e=this.data)==null?void 0:e.showMoreButton,_.G_));if(this.modern&&g){g.style="STYLE_MONO_OUTLINE";var c;if(e=(c=this.currentColorPalette)==null?void 0:c.textPrimary)g.colorData={basicColorPaletteData:{foregroundTitleColor:e,borderColor:e}}}return g};
_.v.shouldShowBottomButton=function(e,g){return!(e==null?0:e.header)&&!(e==null||!e.primaryButton)&&g<3};
_.v.checkExpanded=function(e){this.isExpanded=e&&e.content?this.hiddenVideos.length===0:!0};
_.v.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.v.getLogoHeight=function(e){return this.logoWithPadding(e)?"26":"20"};
_.v.getLogoImageId=function(e){return this.logoWithPadding(e)?"logo-image-with-padding":"logo-image"};
_.v.computeHasSectionHeader=function(e){return!!e.header};
_.v.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var e;if((e=this.data.primaryButton)==null?0:e.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 g;((g=this.data.dismissButton)==null?0:g.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var c,k;((c=this.data)==null?0:(k=c.primaryButton)==null?0:k.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.v.setVisibleVideos=function(e){if(this.data&&this.data.content)if(this.data.content.length){var g=this.data.content.length;this.data.header?e?(this.visibleVideos=this.data.content.slice(0,Math.min(g,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(g,this.slimItemsPerRow),g)):(this.visibleVideos=this.data.content.slice(0,Math.min(g,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(g,this.elementsPerRow),g)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(g,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(g,this.elementsPerRow),g)):(this.visibleVideos=this.data.content.slice(0,Math.min(g,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(g,this.elementsPerRow-1),g))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.v.setHasMovieRenderer=function(){var e;if((e=this.data)!=null&&e.content){var g;this.hasMovieRenderer=!!_.x((g=this.data)==null?void 0:g.content[0],_.rF1)}else this.hasMovieRenderer=!1};
_.v.requestElementsPerRow=function(){_.oC(this.hostElement,"yt-request-elements-per-row")};
_.v.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var e=_.w(this.hiddenMediaRenderers),g=e.next();!g.done;g=e.next())g.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(e=_.o1(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&e.focus()}};
_.v.updateTitleSpec=function(){var e;(e=this.data)!=null&&e.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.v.logoWithPadding=function(e){var g,c,k;return(e=(g=this.getCurrentLogo(e,this.isDarkTheme))==null?void 0:(c=g.thumbnails)==null?void 0:(k=c[0])==null?void 0:k.height)&&e%31===0?!0:!1};
_.v.onUpdateElementsPerRowAction=function(e,g,c){e&&this.elementsPerRow!==e&&(this.elementsPerRow=e);c&&this.slimItemsPerRow!==c&&(this.slimItemsPerRow=c)};
lx.prototype.slimItemsPerRowChanged=lx.prototype.slimItemsPerRowChanged;lx.prototype.elementsPerRowChanged=lx.prototype.elementsPerRowChanged;lx.prototype.dataChanged=lx.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],lx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],lx.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],lx.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],lx.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],lx.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],lx.prototype,"currentColorPalette",void 0);_.t([_.u(),_.B("design:type",Array)],lx.prototype,"visibleVideos",void 0);_.t([_.u(),_.B("design:type",Array)],lx.prototype,"hiddenVideos",void 0);
_.t([_.u(),_.B("design:type",Object)],lx.prototype,"primaryButton",void 0);_.t([_.u({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],lx.prototype,"elementsPerRow",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],lx.prototype,"isDarkTheme",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],lx.prototype,"isExpanded",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],lx.prototype,"largeTitle",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],lx.prototype,"hasMovieRenderer",void 0);_.t([_.u(),_.B("design:type",Number)],lx.prototype,"slimItemsPerRow",void 0);_.t([_.u(),_.B("design:type",Boolean)],lx.prototype,"showLightVideoMetadata",void 0);_.t([_.u(),_.B("design:type",Boolean)],lx.prototype,"showDarkVideoMetadata",void 0);_.t([_.u(),_.B("design:type",Number)],lx.prototype,"videoMetadataColor",void 0);
_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],lx.prototype,"miniMode",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.B("design:type",Boolean)],lx.prototype,"isFirstFeedItem",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.B("design:type",Boolean)],lx.prototype,"hasSectionHeader",void 0);
_.t([_.u({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],lx.prototype,"roundedContainer",void 0);_.t([_.eY("#visible-video-container ytd-rich-grid-media"),_.B("design:type",Array)],lx.prototype,"visibleMediaRenderers",void 0);_.t([_.eY("#hidden-video-container ytd-rich-grid-media"),_.B("design:type",Array)],lx.prototype,"hiddenMediaRenderers",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],lx.prototype,"modern",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lx.prototype,"dataChanged",null);_.t([_.OY("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lx.prototype,"elementsPerRowChanged",null);_.t([_.OY("slimItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lx.prototype,"slimItemsPerRowChanged",null);
_.t([_.bF({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],lx);
_.U(lx,"ytd-brand-video-shelf-renderer",function(){if(SWQ!==void 0)return SWQ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return SWQ=e},{mode:1});var yEX;var AW=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(AW,_.z);_.v=AW.prototype;_.v.attached=function(){var e=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",e);this.onDarkModeToggledAction(e)};
_.v.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.v.dataChanged=function(){this.requestElementsPerRow();var e,g;this.currentColorPalette=this.isDarkTheme?(e=this.data)==null?void 0:e.darkColorData:(g=this.data)==null?void 0:g.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.v.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.v.computeIsFirstFeedItem=function(e){return e};
_.v.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&this.set("isDarkTheme",e);this.data&&(this.currentColorPalette=e?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(e),this.updateButtonPalette())};
_.v.shouldShowThumbnailInMetadata=function(e){return e<=1};
_.v.computeVideoMetadataColor=function(){if(this.data){var e;if((e=this.currentColorPalette)==null?0:e.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.v.computeTitleStyle=function(e){var g;if((g=this.data)!=null&&g.title&&e&&e.textPrimary!==void 0)return"color:"+_.R1(e.textPrimary)+";"};
_.v.computeSubtitleStyle=function(e){var g;if((g=this.data)!=null&&g.subtitle&&e&&e.textSecondary!==void 0)return"color:"+_.R1(e.textSecondary)+";"};
_.v.computeOverflowButtonStyle=function(e){if(this.data&&this.data.overflowButton&&e.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.R1(e.textPrimary)+";--yt-spec-icon-active-other:"+_.R1(e.textPrimary)+";"};
_.v.computeBackgroundStyle=function(e){if(e&&this.data){var g="";e.backgroundColor!==void 0&&(g+="background-color:"+_.EY(e.backgroundColor)+";");return g}};
_.v.computeHasOverflowButton=function(e){return!!e.overflowButton};
_.v.updateButtonPalette=function(){if(this.data){var e;if((e=this.data.primaryButton)==null?0:e.buttonRenderer){var g;if((g=this.currentColorPalette)==null?0:g.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var c;((c=this.currentColorPalette)==null?0:c.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.v.requestElementsPerRow=function(){_.oC(this.hostElement,"yt-request-elements-per-row")};
_.v.updateTitleSpec=function(){var e;(e=this.data)!=null&&e.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.v.onUpdateElementsPerRowAction=function(e){e&&this.elementsPerRow!==e&&(this.elementsPerRow=e)};
AW.prototype.elementsPerRowChanged=AW.prototype.elementsPerRowChanged;AW.prototype.dataChanged=AW.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],AW.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],AW.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],AW.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],AW.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],AW.prototype,"currentColorPalette",void 0);_.t([_.u(),_.B("design:type",Object)],AW.prototype,"primaryButton",void 0);
_.t([_.u({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],AW.prototype,"elementsPerRow",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],AW.prototype,"isDarkTheme",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],AW.prototype,"titleSize",void 0);_.t([_.u(),_.B("design:type",Number)],AW.prototype,"videoMetadataColor",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],AW.prototype,"miniMode",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.B("design:type",Boolean)],AW.prototype,"isFirstFeedItem",void 0);_.t([_.u({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],AW.prototype,"roundedContainer",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.B("design:type",Boolean)],AW.prototype,"hasOverflowButton",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AW.prototype,"dataChanged",null);_.t([_.OY("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AW.prototype,"elementsPerRowChanged",null);_.t([_.bF({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],AW);
_.U(AW,"ytd-brand-video-singleton-renderer",function(){if(yEX!==void 0)return yEX;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return yEX=e},{mode:2});var Kxz;var ORz=_.H(function(e){var g=e.data;return _.a(_.pv,{data:function(){return g().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(g().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var c=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":c=88;break a;default:c=88}return c},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return g().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Zh"),Ctv=_.H(function(e){var g=e.metadataRow;
var c=e.delimiter;return _.a(_.Yz,{each:function(){return g().textParts||[]},
keyBy:"INDEX"},function(k,I){return _.a(_.es,null,_.a(_.fa,{text:k,noWrap:!0,userInput:!0}),_.a(MGO,{delimiter:c,max:function(){return g().textParts.length},
index:I}))})},"$h"),MGO=_.H(function(e){var g=e.delimiter;
var c=e.max;var k=e.index;return _.a(_.E,{cond:function(){return(g==null?void 0:g())&&c()-1>k()},
then:function(){return _.a("span",null,g)}})},"ai"),eyv=_.H(function(e){var g=e.data;
e={};return _.a("yt-profile-page-header-information-view-model",{class:_.o6("profilePageHeaderInformationViewModelHost",(e.profilePageHeaderInformationViewModelMobile=!1,e))},_.a(_.E,{cond:function(){return g().onTap},
then:function(){return _.a(_.d4,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.WT(g().onTap)}},_.a(_.eS,{data:function(){return g().thumbnail}},{profilePageHeaderThumbnailViewModel:ORz}))},
else:function(){return _.a("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.a(_.eS,{data:function(){return g().thumbnail}},{profilePageHeaderThumbnailViewModel:ORz}))}}),_.a("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.a(_.E,{cond:function(){return g().onTap},
then:function(){return _.a(_.eS,{data:function(){return g().title}},{profilePageHeaderTitleViewModel:function(c){var k=c.data;
return _.a(_.d4,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.WT(k().onTap)}},_.a(_.fa,{text:function(){return k().title}}))}})},
else:function(){return _.a(_.eS,{data:function(){return g().title}},{profilePageHeaderTitleViewModel:function(c){var k=c.data;
return _.a(_.fa,{text:function(){return k().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.a(_.eS,{data:function(){return g().metadata}},{profilePageHeaderMetadataViewModel:function(c){var k=c.data;
return _.a(_.E,{cond:function(){return k().metadataRows},
then:function(I){return _.a("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.a(_.Yz,{each:I,keyBy:"INDEX"},function(J,q){return _.a(_.es,null,_.a(Ctv,{metadataRow:J,delimiter:" \u2022 "}),_.a(MGO,{delimiter:" \u2022 ",max:function(){return I().length},
index:q}))}))}})}})))},"bi");
eyv.idomCompat=!0;_.sL(eyv,"yt-profile-page-header-information-view-model",{props:{data:_.jx}});var sr=function(){return _.z.apply(this,arguments)||this};
_.Y(sr,_.z);sr.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],sr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],sr.prototype,"data",void 0);_.t([_.bF({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],sr);
_.U(sr,"ytd-effect-pivot-header-view-model",function(){if(Kxz!==void 0)return Kxz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Kxz=
e},{mode:1});var gcg;var Ft=function(){return _.z.apply(this,arguments)||this};
_.Y(Ft,_.z);Ft.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ft.prototype,"data",void 0);_.t([_.bF({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Ft);
_.U(Ft,"ytd-source-pivot-header-renderer",function(){if(gcg!==void 0)return gcg;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return gcg=e},{mode:1});var cQQ;var khO;var I_7;var ux=function(){var e=_.z.apply(this,arguments)||this;e.playing=!1;e.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.KC(e);e.active=!1;return e};
_.Y(ux,_.z);_.v=ux.prototype;_.v.detached=function(){this.stop()};
_.v.play=function(){var e=this,g,c,k,I,J;return _.r(function(q){if(q.nextAddress==1)return e.active=!0,g=e.get("data.inlinePlaybackEndpoint.watchEndpoint"),c=g.videoId||e.data.videoId,k=g.startTimeSeconds||0,I=g.playerParams||null,_.G("kevlar_player_update_killswitch")?q.yield(e.playerEl.update({args:{video_id:c,startSeconds:k,player_params:I}}),2):(e.playerEl.loadVideoWithPlayerVars({video_id:c,startSeconds:k,player_params:I,autoplay:!0}),q.jumpTo(2));if(q.nextAddress!=4)return q.yield(e.playerEl.getPlayerPromise(),
4);J=q.yieldResult;J.unloadModule("annotations_module");J.addEventListener("onStateChange",function(L){e.onPlayerStateChange(L)});
_.Uh(q)})};
_.v.onPlayerStateChange=function(e){if(this.active)switch(this.playing=e===1,e){case 1:_.oC(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.oC(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.v.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.v.resize=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return c.yield(e.playerEl.getPlayerPromise(),2);g=c.yieldResult;g.setSize(NaN,NaN);_.Uh(c)})};
_.t([_.u(),_.B("design:type",Object)],ux.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ux.prototype,"playing",void 0);_.t([_.u(),_.B("design:type",Object)],ux.prototype,"playerId",void 0);_.t([_.Cs("#player"),_.B("design:type",Object)],ux.prototype,"playerEl",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],ux);
_.U(ux,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(I_7!==void 0)return I_7;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return I_7=e},{mode:1});var JQ0;var vcO;var dA=function(){var e=_.z.apply(this,arguments)||this;e.width=0;return e};
_.Y(dA,_.z);_.v=dA.prototype;_.v.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.yg(this,this.onEnded));this.mp4El.addEventListener("error",_.yg(this,this.onError))};
_.v.detached=function(){this.videoEl.removeEventListener("ended",_.yg(this,this.onEnded));this.mp4El.removeEventListener("error",_.yg(this,this.onError))};
_.v.play=function(){var e=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var g=this.videoEl.play();g?g.then(function(){e.handleVideoStartPlaying()}).catch(function(){_.oC(e.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.oC(this.hostElement,"yt-video-thumbnail-not-playing")};
_.v.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.v.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.v.dataChanged=function(){var e;if((e=this.data)==null?0:e.thumbnailPlaceholder)e=_.F6(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+e+")";this.stop();this.autoplay&&this.play()};
_.v.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.v.onEnded=function(){this.stop();_.oC(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.v.onError=function(){_.oC(this.hostElement,"yt-video-thumbnail-error")};
_.v.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.v.getVideoThumbnail=function(e){if(e&&e.length)return e[0]};
dA.prototype.dataChanged=dA.prototype.dataChanged;_.t([_.u(),_.B("design:type",Object)],dA.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],dA.prototype,"animatePlaceholderOnEntrance",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],dA.prototype,"autoplay",void 0);_.t([_.u({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.B("design:type",Object)],dA.prototype,"videoThumbnail",void 0);
_.t([_.u(),_.B("design:type",Boolean)],dA.prototype,"loop",void 0);_.t([_.u(),_.B("design:type",Boolean)],dA.prototype,"isVideoPlaying",void 0);_.t([_.u(),_.B("design:type",Object)],dA.prototype,"width",void 0);_.t([_.Cs("#mp4"),_.B("design:type",HTMLElement)],dA.prototype,"mp4El",void 0);_.t([_.Cs("#placeholder"),_.B("design:type",HTMLElement)],dA.prototype,"placeholderEl",void 0);_.t([_.Cs("#video"),_.B("design:type",HTMLVideoElement)],dA.prototype,"videoEl",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dA.prototype,"dataChanged",null);_.t([_.Wo({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],dA);
_.U(dA,"yt-video-as-thumbnail-details",function(){if(vcO===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;JQ0===void 0&&(JQ0=document.createElement("template"));var k=JQ0;c.call(g,k.content.cloneNode(!0),e.content.firstChild);vcO=e}e=vcO;return e},{mode:2});var zE=function(){var e=_.z.apply(this,arguments)||this;e.disableGridStateAware=!1;e.animationEnabled=_.G("enable_web_ketchup_hero_animation");e.transitioningOut=!1;e.narrow=!1;e.narrower=!1;e.isCarouselInFeed=!1;e.videoTimeoutJobId=0;e.panelTimeoutJobId=0;e.panelTimeoutJobStartMs=0;e.actionMap={"yt-window-resized":"onWindowResized"};return e};
_.Y(zE,_.z);_.v=zE.prototype;_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.v.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var e;this.player&&((e=this.data)==null?0:e.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.v.attached=function(){this.onWindowResized()};
_.v.detached=function(){this.clearTimeouts()};
_.v.onWindowResized=function(){this.updateSize()};
_.v.computePanelLayout=function(e){return e&&e.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.v.playVideo=function(){var e;this.video&&((e=this.data)==null?0:e.videoThumbnail)&&this.video.play();var g;this.player&&((g=this.data)==null?0:g.inlinePlaybackRenderer)&&this.player.play()};
_.v.stopVideo=function(){var e;this.video&&((e=this.data)==null?0:e.videoThumbnail)&&this.video.stop();var g;this.player&&((g=this.data)==null?0:g.inlinePlaybackRenderer)&&this.player.stop()};
_.v.transitionOut=function(){var e=this;this.transitioningOut=!0;return new Promise(function(g){e.player&&(e.player.playing=!1);var c=_.o1(e.hostElement).querySelector("#action-button");if(c){var k=function(){c.removeEventListener("animationend",k);_.ft.cancelJob(I);g();e.transitioningOut=!1};
var I=_.h2(_.ft,k,1E3);c.addEventListener("animationend",k)}else g(),e.transitioningOut=!1})};
_.v.computeMetadataOrder=function(e){return e&&e.metadataOrder&&e.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?e.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.v.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.v.computeAvatarSize=function(e){return e&&e.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.v.onContentClick=function(e){if(!_.TJ(_.lg(e),this.hostElement,["A".toString(),"BUTTON".toString()])){var g;if((g=this.data)==null?0:g.navigationEndpoint){var c;this.componentBehavior.resolveCommand((c=this.data)==null?void 0:c.navigationEndpoint)}}};
_.v.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.v.setBackgroundImage=function(e){if(e=this.getBackgroundImageUrl(e))_.o1(this.hostElement).querySelector("#hero").style.backgroundImage="url("+e+")"};
_.v.setScrimLayer=function(e){var g=this.getScrimLayerColorStops(e);e=((e==null?void 0:e.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(e=180);_.uo("HTML_DIR")==="rtl"&&(e=-e);g&&(_.o1(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+e+"deg, "+g+")")};
_.v.isNarrower=function(){return this.hostElement.clientWidth<zE.NARROW_VERSION_SIZE};
_.v.getScrimLayerColorStops=function(){var e,g=(e=this.data)==null?void 0:e.scrimColorValues;if(!g)return null;if(g.length===1)return e=_.EY(g[0]),e+" 0%, "+e+" 100%";if(g.length===3){var c=[0,72,98];return g.map(function(k,I){return _.EY(k)+" "+c[I]+"%"}).join(",")}return null};
_.v.getBackgroundImageUrl=function(e){return e&&e.largeFormFactorBackgroundThumbnail?_.F6((e.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||e.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.v.onPlaying=function(){this.startVideoTimeout()};
_.v.onEnded=function(){this.rotate()};
_.v.startPanelTimeout=function(){var e=this;if(!this.panelTimeoutJobId){var g=this.get("data.minPanelDisplayDurationMs");g&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.h2(_.ft,function(){e.rotate()},g))}};
_.v.startVideoTimeout=function(){var e=this;if(!this.videoTimeoutJobId){_.ft.cancelJob(this.panelTimeoutJobId);var g=Date.now()-this.panelTimeoutJobStartMs;g=Math.max(0,this.get("data.minPanelDisplayDurationMs")-g);g=Math.max(this.get("data.minVideoPlayDurationMs")||0,g);this.videoTimeoutJobId=_.h2(_.ft,function(){e.rotate()},g)}};
_.v.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.ft.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.ft.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.v.rotate=function(){this.clearTimeouts();_.oC(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Bd.Object.defineProperties(zE.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.o1(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.o1(this.hostElement).querySelector("#video")}}});
_.Bd.Object.defineProperties(zE,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
zE.prototype.onEnded=zE.prototype.onEnded;zE.prototype.onPlaying=zE.prototype.onPlaying;zE.prototype.dataChanged=zE.prototype.dataChanged;_.t([_.m(_.Gd),_.B("design:type",Object)],zE.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],zE.prototype,"componentBehavior",void 0);_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],zE.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.m(_.Zgl),_.B("design:type",Object)],zE.prototype,"ytBooleanLogicBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],zE.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],zE.prototype,"disableGridStateAware",void 0);_.t([_.u(),_.B("design:type",Object)],zE.prototype,"data",void 0);_.t([_.u({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.B("design:type",String)],zE.prototype,"panelLayout",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],zE.prototype,"animationEnabled",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],zE.prototype,"transitioningOut",void 0);
_.t([_.u({computed:"computeMetadataOrder(data)"}),_.B("design:type",Boolean)],zE.prototype,"metadataOrder",void 0);_.t([_.u({computed:"computeByline(data)"}),_.B("design:type",Object)],zE.prototype,"byline",void 0);_.t([_.u({computed:"computeAvatarSize(data)"}),_.B("design:type",Number)],zE.prototype,"avatarSize",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],zE.prototype,"narrow",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],zE.prototype,"narrower",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],zE.prototype,"layoutStyle",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],zE.prototype,"isCarouselInFeed",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zE.prototype,"dataChanged",null);_.t([_.Ks("yt-default-promo-panel-renderer-playing"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zE.prototype,"onPlaying",null);
_.t([_.Ks("yt-default-promo-panel-renderer-ended"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zE.prototype,"onEnded",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],zE);
_.U(zE,"ytd-default-promo-panel-renderer",function(){if(khO!==void 0)return khO;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return khO=e},{mode:1});_.qH("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Hf=function(){var e=_.z.apply(this,arguments)||this;e.narrower=!1;e.dotMenuVisible=!1;e.paginationThumbnailsVisible=!1;e.active=!0;e.disableGridStateAware=!1;e.actionMap={"yt-window-resized":"onWindowResized"};return e};
_.Y(Hf,_.z);_.v=Hf.prototype;_.v.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.v.attached=function(){document.addEventListener("yt-page-type-changed",_.yg(this,this.onPageTypeChange));this.currentPageSubtype=_.CXg(location.pathname);this.onWindowResized()};
_.v.detached=function(){this.jobId&&_.ft.cancelJob(this.jobId);this.updateSizeJobId&&_.ft.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.yg(this,this.onPageTypeChange))};
_.v.onPageTypeChange=function(e){this.active=e.detail.newPageSubtype===this.currentPageSubtype};
_.v.onWindowResized=function(){this.updateSize()};
_.v.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.v.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.v.setCarouselItem=function(e){e>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.ft.cancelJob(this.jobId);var g=this.getCurrentPanelElement();g&&g.stopVideo();this.currentItemIndex=e%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(g||(g=this.getCurrentPanelElement()),g.playVideo()):this.startRotationJob()};
_.v.scrollThumbnails=function(e){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var g=this.getCurrentPaginationElement();if(g){var c=_.o1(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?c.style.transform="translateX(0)":(g=g.offsetWidth+8,c.style.transform="translateX(-"+g*(e-Math.ceil(Math.floor(this.overlay.offsetWidth/g)/2)+1)+"px)")}}};
_.v.onDataChanged=function(){var e=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.e$(_.ft,function(){var g;(g=e.getCurrentPanelElement())==null||g.updateSize();e.updateSize()}))};
_.v.getCurrentPanelElement=function(){return _.o1(_.o1(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.v.getCurrentPaginationElement=function(){return _.o1(_.o1(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.v.getNavigationClass=function(e,g){return e===g?"selected":""};
_.v.getNavigationDurationStyle=function(e){return"animation-duration:"+(this.get("data.carouselItems."+e+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.v.onNavigationTap=function(e){var g=this,c=e.model.index;c!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){g.setCarouselItem(c)}),this.autorotateActive=!1)};
_.v.onVideoThumbnailEnded=function(){var e=this;if(this.shouldRotate()){var g=this.getCurrentPaginationElement();g&&(g.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){g.classList.remove("finished");e.setNextCarouselItem()}))}};
_.v.onVideoThumbnailError=function(){this.startRotationJob()};
_.v.onVideoNotPlaying=function(){this.startRotationJob()};
_.v.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.v.startRotationJob=function(){var e=this;_.ft.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.ft.addLowPriorityJob(function(){e.getCurrentPanelElement().transitionOut().then(function(){e.setNextCarouselItem()})},this.rotationTimeout))};
_.v.computeDotMenuVisible=function(e,g){return!!e&&!!e.carouselItems&&e.carouselItems.length>1&&!e.paginationThumbnails||!!g};
_.v.computePaginationThumbnailsVisible=function(e,g){var c,k;return((k=e==null?void 0:(c=e.paginationThumbnails)==null?void 0:c.length)!=null?k:0)>1&&!g};
_.v.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.v.computePaginatorAlignment=function(e){return(e==null?void 0:e.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.v.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.v.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.v.isNarrower=function(e){return(e!=null?e:0)<zE.NARROW_VERSION_SIZE};
Hf.prototype.activeChanged=Hf.prototype.activeChanged;Hf.prototype.onVideoNotPlaying=Hf.prototype.onVideoNotPlaying;Hf.prototype.onVideoThumbnailError=Hf.prototype.onVideoThumbnailError;Hf.prototype.onVideoThumbnailEnded=Hf.prototype.onVideoThumbnailEnded;Hf.prototype.onDataChanged=Hf.prototype.onDataChanged;_.t([_.m(_.Gd),_.B("design:type",Object)],Hf.prototype,"ytdGridStateAwareBehavior",void 0);
_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Hf.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Hf.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Hf.prototype,"currentItem",void 0);
_.t([_.u(),_.B("design:type",Number)],Hf.prototype,"currentItemIndex",void 0);_.t([_.u(),_.B("design:type",Number)],Hf.prototype,"rotationTimeout",void 0);_.t([_.u(),_.B("design:type",Number)],Hf.prototype,"loopCount",void 0);_.t([_.u({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.B("design:type",String)],Hf.prototype,"paginatorAlignment",void 0);_.t([_.u(),_.B("design:type",Number)],Hf.prototype,"jobId",void 0);
_.t([_.u(),_.B("design:type",Number)],Hf.prototype,"updateSizeJobId",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hf.prototype,"isCarouselInFeed",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hf.prototype,"narrower",void 0);_.t([_.u({computed:"computeDotMenuVisible(data, narrower)"}),_.B("design:type",Object)],Hf.prototype,"dotMenuVisible",void 0);
_.t([_.u({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.B("design:type",Object)],Hf.prototype,"paginationThumbnailsVisible",void 0);_.t([_.u({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.B("design:type",String)],Hf.prototype,"layoutType",void 0);_.t([_.u({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hf.prototype,"autorotateActive",void 0);_.t([_.u(),_.B("design:type",Object)],Hf.prototype,"active",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hf.prototype,"disableGridStateAware",void 0);_.t([_.Cs("#overlay"),_.B("design:type",HTMLElement)],Hf.prototype,"overlay",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hf.prototype,"onDataChanged",null);
_.t([_.Ks("yt-video-thumbnail-ended"),_.Ks("yt-default-promo-panel-renderer-rotate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hf.prototype,"onVideoThumbnailEnded",null);_.t([_.Ks("yt-video-thumbnail-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hf.prototype,"onVideoThumbnailError",null);
_.t([_.Ks("yt-video-thumbnail-not-playing"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hf.prototype,"onVideoNotPlaying",null);_.t([_.k_("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hf.prototype,"activeChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Hf);
_.U(Hf,"ytd-carousel-item-renderer",function(){if(cQQ!==void 0)return cQQ;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return cQQ=e},{mode:2});var wKv;var qdx;var L9S;var rQz;var QY=function(){var e=_.z.apply(this,arguments)||this;e.answerExpanded=!1;return e};
_.Y(QY,_.z);QY.prototype.toggleAnswer_=function(e){var g=_.A3(e);g&&g.classList.contains("yt-simple-endpoint")||(e.preventDefault(),e.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
QY.prototype.toggleAnswer_=QY.prototype.toggleAnswer_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],QY.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QY.prototype,"answerExpanded",void 0);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],QY.prototype,"toggleAnswer_",null);
_.t([_.Wo({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],QY);
_.U(QY,"yt-generic-faq-question-renderer",function(){if(rQz===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;L9S===void 0&&(L9S=document.createElement("template"));var k=L9S;c.call(g,k.content.cloneNode(!0),e.content.firstChild);rQz=e}e=rQz;return e},{mode:2});_.qH("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Ur=function(){return _.z.apply(this,arguments)||this};
_.Y(Ur,_.z);Ur.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ur.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ur.prototype,"data",void 0);_.t([_.Wo({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Ur);
_.U(Ur,"yt-faq-section-renderer",function(){if(qdx===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;wKv===void 0&&(wKv=document.createElement("template"));var k=wKv;c.call(g,k.content.cloneNode(!0),e.content.firstChild);qdx=e}e=qdx;return e},{mode:2});_.sL(_.uSg,"yt-card-view-model",{props:{data:_.jx,className:_.jx,isSelected:_.jx}});var a_v;var ncv;var Ryo=function(){return _.z.apply(this,arguments)||this};
_.Y(Ryo,_.z);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Ryo.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ryo.prototype,"data",void 0);_.t([_.bF({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Ryo);
_.U(Ryo,"ytd-channel-history-renderer",function(){if(ncv!==void 0)return ncv;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ncv=e},{mode:1});var Ecl;var W9q=function(){return _.z.apply(this,arguments)||this};
_.Y(W9q,_.z);_.t([_.u(),_.B("design:type",Object)],W9q.prototype,"data",void 0);_.t([_.bF({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],W9q);
_.U(W9q,"ytd-feature-enablement-info-renderer",function(){if(Ecl!==void 0)return Ecl;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Ecl=e},{mode:1});var bJv;var hyo;var ok=function(){var e=_.z.apply(this,arguments)||this;e.textBoxMaxLength=_.G("enable_tvod_campaign_code_integration")?15:12;return e};
_.Y(ok,_.z);_.v=ok.prototype;_.v.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.v.onSubmit=function(){var e=this.data.serviceEndpoint,g=_.x(e,_.pV);g&&e&&(g.couponCode=this.userInput,_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}}))};
_.v.validate=function(){var e=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=e&&!this.data.errorMessage;this.showErrorMessage=e&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.G("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.v.computeStyle=function(e){return e};
_.v.computeShowValidationBelowInput=function(e){return e!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.v.updateUserInputFromBinding=function(e){this.userInput=e.currentTarget.value};
_.v.updateShowErrorMessageFromBinding=function(e){this.showErrorMessage=e.detail.value};
_.Bd.Object.defineProperties(ok.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
ok.prototype.dataChanged=ok.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ok.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],ok.prototype,"userInput",void 0);_.t([_.u(),_.B("design:type",Boolean)],ok.prototype,"disableApplyButton",void 0);_.t([_.u(),_.B("design:type",Boolean)],ok.prototype,"hideApplyButton",void 0);
_.t([_.u(),_.B("design:type",Boolean)],ok.prototype,"hideErrorMessage",void 0);_.t([_.u(),_.B("design:type",Boolean)],ok.prototype,"showTick",void 0);_.t([_.u(),_.B("design:type",Boolean)],ok.prototype,"showErrorMessage",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],ok.prototype,"couponStyle",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.B("design:type",Boolean)],ok.prototype,"showValidationBelowInput",void 0);_.t([_.u(),_.B("design:type",Object)],ok.prototype,"textBoxMaxLength",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ok.prototype,"dataChanged",null);
_.t([_.p("showTick","showErrorMessage","userInput"),_.B("design:type",String),_.B("design:paramtypes",[])],ok.prototype,"validationState",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],ok);
_.U(ok,"ytd-ypc-coupon-renderer",function(){if(hyo!==void 0)return hyo;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return hyo=e},{mode:1});var ZV=function(){return _.z.apply(this,arguments)||this};
_.Y(ZV,_.z);ZV.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"}}}};
ZV.prototype.computeStyle=function(e){return e};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ZV.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ZV.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],ZV.prototype,"buttonStyle",void 0);_.t([_.bF({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],ZV);
_.U(ZV,"ytd-flow-bottom-bar-renderer",function(){if(bJv!==void 0)return bJv;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return bJv=e},{mode:1});var XKX;var GhM;var VY=function(){return _.z.apply(this,arguments)||this};
_.Y(VY,_.z);VY.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
VY.prototype.focus=function(e){this.title&&_.Un(this.title,e)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],VY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],VY.prototype,"data",void 0);_.t([_.Cs("#title"),_.B("design:type",HTMLElement)],VY.prototype,"title",void 0);_.t([_.bF({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],VY);
_.U(VY,"ytd-flow-top-bar-renderer",function(){if(GhM!==void 0)return GhM;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return GhM=e},{mode:1});var xhD;var DhS;var $hQ;var tW=function(){return _.z.apply(this,arguments)||this};
_.Y(tW,_.z);tW.prototype.freeTextValueChanged=function(){_.Z5(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
tW.prototype.updateFreeTextValueFromBinding=function(e){this.freeTextValue=e.detail.value};
_.Bd.Object.defineProperties(tW.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(g=(e=this.data)==null?void 0:e.responseMaxLength)!=null?g:500,k;return((k=this.freeTextValue)!=null?k:"").length>=c?"maxed-out":""}}});
tW.prototype.freeTextValueChanged=tW.prototype.freeTextValueChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],tW.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],tW.prototype,"freeTextValue",void 0);_.t([_.Cs("#user-input"),_.B("design:type",HTMLTextAreaElement)],tW.prototype,"input",void 0);
_.t([_.p("freeTextValue"),_.B("design:type",Object),_.B("design:paramtypes",[])],tW.prototype,"characterLimitClass",null);_.t([_.OY("freeTextValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tW.prototype,"freeTextValueChanged",null);_.t([_.Wo({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],tW);
_.U(tW,"yt-free-text-input-flow-step-renderer",function(){if($hQ===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;DhS===void 0&&(DhS=document.createElement("template"));var k=DhS;c.call(g,k.content.cloneNode(!0),e.content.firstChild);$hQ=e}e=$hQ;return e},{mode:2});var Bf=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return e};
_.Y(Bf,_.z);Bf.prototype.handleFreeTextFlowStepInputChanged=function(e){_.Z5(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:e}}])};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Bf.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Bf.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Bf.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Bf);
_.U(Bf,"ytd-free-text-input-flow-step-renderer",function(){if(xhD!==void 0)return xhD;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return xhD=e},{mode:1});var Yd7;var f_S;var jQD;var iJx=function(){return _.z.apply(this,arguments)||this};
_.Y(iJx,_.z);_.t([_.u(),_.B("design:type",Object)],iJx.prototype,"data",void 0);_.t([_.Wo({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],iJx);
_.U(iJx,"yt-survey-answer-card-renderer",function(){if(jQD===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;f_S===void 0&&(f_S=document.createElement("template"));var k=f_S;c.call(g,k.content.cloneNode(!0),e.content.firstChild);jQD=e}e=jQD;return e},{mode:2});var PGS;var mh7;var N4=function(){return _.z.apply(this,arguments)||this};
_.Y(N4,_.z);_.v=N4.prototype;_.v.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.v.selectedItemChanged=function(e){_.Z5(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[e.feedbackToken||""]}])};
_.v.surveyAnswerCardRendererClicked=function(e){if(e.target&&_.x(e.model.item,Koz)){var g=e.target;e=_.x(e.model.item,Koz);e.onTapCommand?_.Bm(g,[e.onTapCommand],g):this.data.onTapCommand&&_.Bm(g,[this.data.onTapCommand],g);this.selectedItemChanged(e)}};
_.v.checkIsCancellationStyle=function(e){return e==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.v.updateSelectedItemFromBinding=function(e){this.selectedItem=e.detail.value};
N4.prototype.onSelectedItemChanged=N4.prototype.onSelectedItemChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],N4.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],N4.prototype,"selectedItem",void 0);_.t([_.u({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.B("design:type",Boolean)],N4.prototype,"isCancellationStyle",void 0);
_.t([_.OY("selectedItem"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],N4.prototype,"onSelectedItemChanged",null);_.t([_.Wo({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],N4);
_.U(N4,"yt-survey-flow-step-renderer",function(){if(mh7===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;PGS===void 0&&(PGS=document.createElement("template"));var k=PGS;c.call(g,k.content.cloneNode(!0),e.content.firstChild);mh7=e}e=mh7;return e},{mode:2});var SC=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return e};
_.Y(SC,_.z);SC.prototype.handleSurveyFlowStepOptionChanged=function(e){this.ytdReduxBehavior.dispatch(_.Hh({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:e}));_.Z5(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:e}}])};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],SC.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],SC.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],SC.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],SC);
_.U(SC,"ytd-survey-flow-step-renderer",function(){if(Yd7!==void 0)return Yd7;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Yd7=e},{mode:1});var pKj;var TWX;var l_q=function(){return _.z.apply(this,arguments)||this};
_.Y(l_q,_.z);_.t([_.u(),_.B("design:type",Object)],l_q.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],l_q);
_.U(l_q,"ytd-metadata-line-renderer",function(){if(TWX!==void 0)return TWX;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return TWX=e},{mode:1});var yY=function(){return _.z.apply(this,arguments)||this};
_.Y(yY,_.z);yY.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],yY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],yY.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],yY.prototype,"isMasthead",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],yY);
_.U(yY,"ytd-media-product-renderer",function(){if(pKj!==void 0)return pKj;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return pKj=e},{mode:1});var AQo;var Kl=function(){return _.z.apply(this,arguments)||this};
_.Y(Kl,_.z);Kl.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Kl.prototype.onBillboardImageLoaded=function(){_.oC(this.hostElement,"yt-refit")};
Kl.prototype.onBillboardImageLoaded=Kl.prototype.onBillboardImageLoaded;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Kl.prototype,"data",void 0);_.t([_.Cs("#billboardImage"),_.B("design:type",Object)],Kl.prototype,"billboardImage",void 0);_.t([_.Ks("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kl.prototype,"onBillboardImageLoaded",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Kl);
_.U(Kl,"ytd-billboard-masthead-renderer",function(){if(AQo!==void 0)return AQo;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return AQo=e},{mode:1});var sQl;var Or=function(){var e=_.z.apply(this,arguments)||this;e.smallSize=!1;return e};
_.Y(Or,_.z);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Or.prototype,"ytComponentBehaviorType",void 0);_.t([_.u(),_.B("design:type",Object)],Or.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Or.prototype,"smallSize",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Or);
_.U(Or,"ytd-bullet-formatted-string",function(){if(sQl!==void 0)return sQl;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return sQl=e},{mode:1});var F9z;var M4=function(){return _.z.apply(this,arguments)||this};
_.Y(M4,_.z);M4.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],M4.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],M4);
_.U(M4,"ytd-offer-detail-renderer",function(){if(F9z!==void 0)return F9z;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return F9z=e},{mode:1});var uVj;var Cl=function(){return _.z.apply(this,arguments)||this};
_.Y(Cl,_.z);Cl.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Cl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Cl.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Cl);
_.U(Cl,"ytd-offer-detail-step-renderer",function(){if(uVj!==void 0)return uVj;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return uVj=e},{mode:1});var dhq;var eT=function(){var e=_.z.apply(this,arguments)||this;e.isInOfferModule=!1;return e};
_.Y(eT,_.z);_.v=eT.prototype;_.v.computeHasEndpoint=function(){var e;return!((e=this.data)==null||!e.onClickCommand)};
_.v.dataChanged=function(){var e;if((e=this.data)==null?0:e.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.v.detached=function(){var e;if((e=this.data)==null?0:e.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.v.handleClickEvent=function(){var e;if((e=this.data)==null?0:e.onClickCommand){var g;this.componentBehavior.resolveCommand((g=this.data)==null?void 0:g.onClickCommand)}};
_.v.onContentKeyDown=function(e){e.key==="Enter"?this.handleClickEvent(e):e.key===" "&&e.preventDefault()};
_.v.onContentKeyUp=function(e){e.key===" "&&this.handleClickEvent(e)};
eT.prototype.dataChanged=eT.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],eT.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],eT.prototype,"data",void 0);_.t([_.u({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],eT.prototype,"hasEndpoint",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],eT.prototype,"isInOfferModule",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eT.prototype,"dataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],eT);
_.U(eT,"ytd-channel-masthead-renderer",function(){if(dhq!==void 0)return dhq;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return dhq=e},{mode:1});var zy0;var g8=function(){var e=_.z.apply(this,arguments)||this;e.thumbnailObjectFit="CONTAIN";e.thumbnailObjectPosition="LEFT";e.isExpanded=!1;return e};
_.Y(g8,_.z);_.v=g8.prototype;_.v.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.v.dataChanged=function(){this.resetStates()};
_.v.computeisTapOnOfferInfoContainerEnabled=function(){var e;return((e=this.data)==null?void 0:e.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.v.onExpandBtnClick=function(){var e,g=_.x((e=this.data)==null?void 0:e.showMoreButtonRenderer,M5M);g&&_.KP(_.gL(),g.trackingParams);this.isExpanded=!this.isExpanded};
_.v.onOfferInfoClick=function(e){this.isTapOnOfferInfoContainerEnabled&&(_.TJ(_.lg(e)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.l6(_.lg(e)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.v.onBottomBarClick=function(){this.executeTapCommand()};
_.v.executeTapCommand=function(){var e,g=(e=this.data)==null?void 0:e.tapCommand;g&&this.ytComponentBehavior.resolveCommand(g)};
_.v.resetStates=function(){this.isExpanded=!1};
_.Bd.Object.defineProperties(g8.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var e=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),g,c,k;return((g=this.data)==null?void 0:g.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&e&&!!((c=this.data)==null?0:(k=c.benefits)==null?0:k.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((g=_.x((e=this.data)==null?void 0:e.showMoreButtonRenderer,M5M))==null?void 0:g.showMoreButtonTitle)||((c=this.data)==null?void 0:c.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((g=_.x((e=this.data)==null?void 0:e.showMoreButtonRenderer,M5M))==null?void 0:g.showLessButtonTitle)||((c=this.data)==null?void 0:c.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var e;return(e=this.showLessButtonTitle)!=null?e:""}var g;return(g=this.showMoreButtonTitle)!=null?g:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((e=this.data)==null?void 0:e.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((g=this.data)==null?0:g.footerTitle)||((c=this.data)==null?0:c.footerSubtitle))}}});
g8.prototype.dataChanged=g8.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],g8.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",String)],g8.prototype,"thumbnailObjectFit",void 0);
_.t([_.u(),_.B("design:type",String)],g8.prototype,"thumbnailObjectPosition",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.B("design:type",Boolean)],g8.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.t([_.u(),_.B("design:type",Object)],g8.prototype,"isExpanded",void 0);_.t([_.u(),_.B("design:type",Object)],g8.prototype,"data",void 0);_.t([_.u({computed:"computeIcon_(data.footerIcon)"}),_.B("design:type",String)],g8.prototype,"icon",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],g8.prototype,"dataChanged",null);_.t([_.p("data.thumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],g8.prototype,"hasThumbnail",null);_.t([_.p("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],g8.prototype,"enableExpandButton",null);
_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],g8.prototype,"enableOfferContentIcon",null);_.t([_.p("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],g8.prototype,"showMoreButtonTitle",null);_.t([_.p("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],g8.prototype,"showLessButtonTitle",null);
_.t([_.p("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.B("design:type",String),_.B("design:paramtypes",[])],g8.prototype,"expandedBtnText",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],g8.prototype,"enableBottomBar",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],g8);
_.U(g8,"ytd-offer-card-renderer",function(){if(zy0!==void 0)return zy0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return zy0=e},{mode:1});var HJq;var ci=function(){return _.z.apply(this,arguments)||this};
_.Y(ci,_.z);ci.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"}}}};
ci.prototype.onClick=function(e){if(!_.TJ(e.composedPath()||[],this.hostElement,["A".toString()])){var g,c;if((e=(c=_.x((g=this.data)==null?void 0:g.actionButton,_.G_))==null?void 0:c.command)&&!this.ytComponentBehavior.resolveCommand(e)){var k;(k=_.gL())==null||k.clickCommand(e);_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}})}}};
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],ci.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ci.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],ci);
_.U(ci,"ytd-offer-content-renderer",function(){if(HJq!==void 0)return HJq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return HJq=e},{mode:1});var QQo;var kg=function(){return _.z.apply(this,arguments)||this};
_.Y(kg,_.z);kg.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Bd.Object.defineProperties(kg.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var e,g;return!((e=this.data)==null||!e.title)||!((g=this.data)==null||!g.description)}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],kg.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],kg.prototype,"hasHeaderData",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],kg);
_.U(kg,"ytd-offer-section-renderer",function(){if(QQo!==void 0)return QQo;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return QQo=e},{mode:1});var Uhv;var IS=function(){return _.z.apply(this,arguments)||this};
_.Y(IS,_.z);
IS.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],IS.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],IS);
_.U(IS,"ytd-offer-selection-step-renderer",function(){if(Uhv!==void 0)return Uhv;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Uhv=e},{mode:1});var ocz;var Je=function(){return _.z.apply(this,arguments)||this};
_.Y(Je,_.z);Je.prototype.computeStyle=function(e){return e};
Je.prototype.computeImageWidth=function(e){return e==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.t([_.u({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.B("design:type",String)],Je.prototype,"containerStyle",void 0);_.t([_.u({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.B("design:type",String)],Je.prototype,"imageWidth",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Je.prototype,"data",void 0);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Je);
_.U(Je,"ytd-confirmation-masthead-renderer",function(){if(ocz!==void 0)return ocz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ocz=e},{mode:1});var ZJM;var vi=function(){return _.z.apply(this,arguments)||this};
_.Y(vi,_.z);vi.prototype.computeStyle=function(e){return e};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vi.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.B("design:type",String)],vi.prototype,"containerStyle",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],vi);
_.U(vi,"ytd-purchase-complete-detail-renderer",function(){if(ZJM!==void 0)return ZJM;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ZJM=e},{mode:1});var V3v;var w8=function(){var e=_.z.apply(this,arguments)||this;e.scriptsAppended=!1;return e};
_.Y(w8,_.z);w8.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"}}}};
w8.prototype.onDataChanged=function(){var e=this.get("data.gtmId");e&&(_.ID(e,_.uo("GL","")),this.setupConversionTracking())};
w8.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var e=document.createElement("noscript");e.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(e);this.scriptsAppended=!0}};
w8.prototype.onDataChanged=w8.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],w8.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],w8.prototype,"scriptsAppended",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w8.prototype,"onDataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],w8);
_.U(w8,"ytd-purchase-complete-step-renderer",function(){if(V3v!==void 0)return V3v;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return V3v=e},{mode:1});var t3x;var q3=function(){return _.z.apply(this,arguments)||this};
_.Y(q3,_.z);q3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],q3.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],q3);
_.U(q3,"ytd-ypc-transaction-error-message-renderer",function(){if(t3x!==void 0)return t3x;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return t3x=e},{mode:1});var BWv;var NWQ;var Lp=function(){var e=_.z.apply(this,arguments)||this;e.handlePhoneVerificationSuccess=function(g){if(e.isValidPhoneVerificationCompletionMessageEvent(g)){var c;((c=e.data)==null?0:c.nextStepCommand)&&e.ytComponentBehavior.resolveCommand(e.data.nextStepCommand)}};
return e};
_.Y(Lp,_.z);Lp.prototype.isValidPhoneVerificationCompletionMessageEvent=function(e){if(e.data!=="yt-phone-verification-complete")return!1;e=_.V9(e.origin);return e!==null&&e.includes("youtube.com")};
Lp.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Lp.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Lp.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Lp.prototype,"data",void 0);_.t([_.Wo({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Lp);
_.U(Lp,"yt-feature-enablement-soft-entry-renderer",function(){if(NWQ===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;BWv===void 0&&(BWv=document.createElement("template"));var k=BWv;c.call(g,k.content.cloneNode(!0),e.content.firstChild);NWQ=e}e=NWQ;return e},{mode:1});var Sdj;var yQ0;var K9j;var OJX;var M3S=function(){return _.z.apply(this,arguments)||this};
_.Y(M3S,_.z);_.t([_.u(),_.B("design:type",Object)],M3S.prototype,"data",void 0);_.t([_.Wo({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],M3S);
_.U(M3S,"yt-benefits-item-renderer",function(){if(OJX===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;K9j===void 0&&(K9j=document.createElement("template"));var k=K9j;c.call(g,k.content.cloneNode(!0),e.content.firstChild);OJX=e}e=OJX;return e},{mode:2});var CGD;var eCz;var r8=function(){return _.z.apply(this,arguments)||this};
_.Y(r8,_.z);r8.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
r8.prototype.computeisWithoutPadding=function(){var e;return((e=this.data)==null?void 0:e.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],r8.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.B("design:type",Boolean)],r8.prototype,"isWithoutPadding",void 0);_.t([_.Wo({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],r8);
_.U(r8,"yt-benefits-section-renderer",function(){if(eCz===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;CGD===void 0&&(CGD=document.createElement("template"));var k=CGD;c.call(g,k.content.cloneNode(!0),e.content.firstChild);eCz=e}e=eCz;return e},{mode:2});var aS=function(){return _.z.apply(this,arguments)||this};
_.Y(aS,_.z);aS.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
aS.prototype.computeisUsingLargeWidth=function(){var e;return((e=this.data)==null?void 0:e.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],aS.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.B("design:type",Boolean)],aS.prototype,"isUsingLargeWidth",void 0);_.t([_.Wo({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],aS);
_.U(aS,"yt-benefits-flow-step-renderer",function(){if(yQ0===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;Sdj===void 0&&(Sdj=document.createElement("template"));var k=Sdj;c.call(g,k.content.cloneNode(!0),e.content.firstChild);yQ0=e}e=yQ0;return e},{mode:2});var gOx;var cM0;var np=function(){return _.z.apply(this,arguments)||this};
_.Y(np,_.z);np.prototype.checkIsUsingLargeWidth=function(){var e;return((e=this.data)==null?void 0:e.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.t([_.u(),_.B("design:type",Object)],np.prototype,"data",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.t([_.u({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.B("design:type",Boolean)],np.prototype,"isUsingLargeWidth",void 0);_.t([_.Wo({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],np);
_.U(np,"yt-confirmation-flow-step-renderer",function(){if(cM0===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;gOx===void 0&&(gOx=document.createElement("template"));var k=gOx;c.call(g,k.content.cloneNode(!0),e.content.firstChild);cM0=e}e=cM0;return e},{mode:2});var kUo;var ImM;var JMX=function(){return _.z.apply(this,arguments)||this};
_.Y(JMX,_.z);_.t([_.u(),_.B("design:type",Object)],JMX.prototype,"data",void 0);_.t([_.Wo({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],JMX);
_.U(JMX,"yt-info-flow-step-renderer",function(){if(ImM===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;kUo===void 0&&(kUo=document.createElement("template"));var k=kUo;c.call(g,k.content.cloneNode(!0),e.content.firstChild);ImM=e}e=ImM;return e},{mode:2});var vOX;var w7j;var qaz=function(){return _.z.apply(this,arguments)||this};
_.Y(qaz,_.z);_.t([_.u(),_.B("design:type",Object)],qaz.prototype,"data",void 0);_.t([_.Wo({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],qaz);
_.U(qaz,"yt-info-list-flow-step-renderer",function(){if(w7j===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;vOX===void 0&&(vOX=document.createElement("template"));var k=vOX;c.call(g,k.content.cloneNode(!0),e.content.firstChild);w7j=e}e=w7j;return e},{mode:2});var L_M=_.H(function(e){var g=e.data;return _.a("styled-text-view-model",{class:_.o6("ytStyledTextViewModelHost",function(){return Dyo(g().fontAttributes)},function(){return xyx(g().color)})},_.a(_.fa,{text:function(){return g().text},
ariaLabel:function(){var c,k,I;return(I=(c=g().accessibility)==null?void 0:(k=c.accessibilityData)==null?void 0:k.label)!=null?I:""}}))},"ci");
L_M.idomCompat=!0;var rM0=_.H(function(e){var g=function(){var I,J,q,L;return(L=(q=(I=e.alt)==null?void 0:I.call(e))!=null?q:(J=e.data().accessibilityData)==null?void 0:J.label)!=null?L:""},c=function(){return e.data().imageWidth},k=function(){return e.data().imageHeight};
return _.a("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.a(_.E,{cond:function(){var I=e.data();if(I){var J,q,L;var n=((J=_.Ss().resolve(_.NN(_.gb)))==null?0:J())?(q=I.imageDark)!=null?q:I.imageLight:(L=I.imageLight)!=null?L:I.imageDark}else n=void 0;return n},
then:function(I){return _.a(_.pv,Object.assign({},e,{data:I,alt:g,targetWidth:c,targetHeight:k,preserveHeight:!0,preserveWidth:!0}))}}))},"di");
rM0.idomCompat=!0;var RS=_.H(function(e){var g=e.data;e=_.sz(function(){return g().slots},[]);
var c=_.sz(function(){return g().layoutProperties},{}),k=_.Ss().resolve(_.fV);
return _.a("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:W3q(c,k)},_.a(_.Yz,{each:e,keyBy:"INDEX"},function(I){return _.a("div",{class:"ytContainerLayoutViewModelSlot",style:W3q(function(){return I().layoutProperties},k)},_.a(_.eS,{data:function(){return I().contents}},{containerLayoutViewModel:RS,
badgeViewModel:_.A8,buttonViewModel:_.oD,styledTextViewModel:L_M,contentPreviewImageViewModel:function(J){return _.a(_.Zf,{data:J.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(J){return _.a(rM0,{data:J.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"ei");
RS.idomCompat=!0;var amj=_.H(function(e){var g=e.data;var c=e.stateFns;var k=function(){var R=g(),W=R.productId;return!(!R.clearGroupId&&!W)},I=function(){var R=g(),W=R.clearGroupId;
return(R=R.productId)?c().isProductSelected(R):W?c().getSelectedProductByGroupId(W)==null:!1},J=function(R){var W=g(),b=W.clearGroupId;
if(W=W.productId)c().onProductSelected(W),R==null||R.forEach(function(h){_.GF(h)});
else if(b)c().onClearGroupSelected(b)},q=function(){var R=g(),W=R.clearGroupId;
if(R=R.productId){var b;return"group:"+(((b=c().getProductById(R))==null?void 0:b.groupId)||"")}return W?"group:"+W:""},L=_.sz(function(){return g().header},[]),n=_.sz(function(){return g().body},[]);
return _.a("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.a(_.E,{cond:function(){return L().length>0||k()},
then:function(){return _.a("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.a("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.a(_.eS,{data:L},{containerLayoutViewModel:function(R){return _.a("div",{class:"ytPdpCardSectionViewModelContentItem"},_.a(RS,{data:R.data}))},
styledTextViewModel:function(R){return _.a("div",{class:"ytPdpCardSectionViewModelContentItem"},_.a(L_M,{data:R.data}))}})),_.a(_.E,{cond:k,
then:function(){return _.a("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.a(_.fE,{checked:I,name:q,onChange:function(){J(g().onSelect)}}))}}))}}),_.a(_.E,{cond:function(){return n().length>0},
then:function(){return _.a("div",null,_.a(_.eS,{data:n},{containerLayoutViewModel:function(R){return _.a("div",{class:"ytPdpCardSectionViewModelContentItem"},_.a(RS,{data:R.data}))}}))}}))},"fi");
amj.idomCompat=!0;var nOl=_.H(function(e){var g=e.data;var c=e.stateFns;return _.a("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.a(_.E,{cond:function(){return g().banner},
then:function(k){return _.a("div",{class:"ytPdpCardViewModelBanner"},_.a(_.fa,{text:k}))}}),_.a(_.eS,{data:function(){return g().sections}},{pdpCardSectionViewModel:function(k){k=k.data;
var I={};return _.a("div",{class:_.o6("ytPdpCardViewModelSectionContainer",(I.ytPdpCardViewModelShowDividers=function(){return g().showDividers},I))},_.a(amj,{data:k,
stateFns:c}))}}))},"gi");
nOl.idomCompat=!0;var RCz=_.H(function(e){var g=e.data;var c=e.isOverlay;e={};return _.a("pdp-masthead-view-model",{class:_.o6("ytPdpMastheadViewModelHost",(e.ytPdpMastheadViewModelIsOverlay=c,e))},_.a(_.eS,{data:function(){return g().image}},{contentPreviewImageViewModel:_.Zf,
themedImageViewModel:function(k){return _.a(rM0,{data:k.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.a(_.E,{cond:function(){return g().title},
then:function(k){return _.a("h1",{class:"ytPdpMastheadViewModelHeading"},_.a(_.fa,{text:k,isOverlay:c}))}}),_.a(_.Yz,{each:function(){var k;
return(k=g().finePrint)!=null?k:[]}},function(k){return _.a("div",{class:"ytPdpMastheadViewModelFinePrint"},_.a(_.fa,{text:k,
isOverlay:c}))}))},"hi");
RCz.idomCompat=!0;var EOQ=_.H(function(e){var g=e.data;var c=e.stateFns;var k=function(){return"pdp-pricing-group-selector-"+g().pricingGroupAttributeIds},I=_.sz(function(){return g().pricingGroupSelectorSectionHeader});
return _.a("pdp-pricing-group-selector-view-model",null,_.a(_.E,{cond:function(){return!!I()},
then:function(){return _.a(_.eS,{data:I},{sectionHeaderViewModel:function(J){J=J.data;var q={};return _.a("div",{class:_.o6("ytPdpPricingGroupSelectorViewModelSectionHeader",(q.ytPdpPricingGroupSelectorViewModelFullBleed=!0,q.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,q))},_.a(_.CW,{data:J}))}})}}),_.a("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.a(_.Yz,{each:function(){var J=c().getSelectedProductByGroupId(g().groupId);
if(!J)return _.Py(Error("Dl`"+g().groupId)),[];var q,L=(q=g().pricingGroupAttributeIds)!=null?q:[],n;if((n=J.pricingGroups)==null||!n.length||!L.length)return[];q=J.pricingGroups.filter(function(h){return L.length?h.pricingGroupAttributes.every(function(X){return L.includes(X)}):!1});
J=[];if(L.length>0){q=[].concat(_.KY(q));n=_.w(L);for(var R=n.next(),W={};!R.done;W={targetAttrId:void 0},R=n.next())W.targetAttrId=R.value,R=q.findIndex(function(h){return function(X){return X.pricingGroupAttributes.includes(h.targetAttrId)}}(W)),R!==-1&&(J.push(q[R]),q.splice(R,1))}var b=c().getSelectedPricingGroupAttributesByGroupId(g().groupId);
return J.map(function(h){var X=!1;b&&h.pricingGroupAttributes&&(X=CJ(h.pricingGroupAttributes,b));return{pricingGroup:h,isSelected:X}})},
keyBy:function(J){return J.pricingGroup.pricingGroupId}},function(J){return _.a("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.a("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.a(_.eS,{data:function(){return J().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:RS})),_.a("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.a(_.fE,{checked:function(){return J().isSelected},
name:k,onClick:function(){var q=J().pricingGroup;c().onPricingGroupSelected(q.pricingGroupId);if(q=_.WT(q.onSelectPricingGroup)){var L;(L=_.Ss().resolve(_.xk))==null||L.resolveCommand(q)}}})))})))},"ii");
EOQ.idomCompat=!0;var W_x=_.H(function(e){var g=e.data;var c=e.stateFns;var k=function(){var q=c().getSelectedPricingOptions().map(function(R){return R.pricingOptionId}),L=c().getSelectedProductByGroupId(g().groupId);
if(!L)return _.Py(Error("El`"+g().groupId)),[];var n=c().getSelectedPricingGroupAttributesByGroupId(g().groupId);return iVX(L.pricingOptions,n,q)},I=_.sz(function(){return g().pricingOptionSelectorSectionHeader}),J=function(){return k().length>1};
return _.a("pdp-pricing-option-selector-view-model",null,_.a(_.E,{cond:function(){return!!I()&&J()},
then:function(){return _.a(_.eS,{data:I},{sectionHeaderViewModel:function(q){q=q.data;var L={};return _.a("div",{class:_.o6("ytPdpPricingOptionSelectorViewModelSectionHeader",(L.ytPdpPricingOptionSelectorViewModelFullBleed=!0,L.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,L))},_.a(_.CW,{data:q}))}})}}),_.a(_.E,{cond:J,
then:function(){return _.a("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.a(_.Yz,{each:k,keyBy:"INDEX"},function(q){return _.a("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.a("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.a(_.eS,{data:function(){return q().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:RS})),_.a("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.a(_.fE,{checked:function(){return q().isSelected},
onClick:function(){c().onPricingOptionSelected(q().pricingOption.pricingOptionId);var L=q().pricingOption.onSelectPricingOption;if(L=_.WT(L)){var n;(n=_.Ss().resolve(_.xk))==null||n.resolveCommand(L)}}})))}))}}))},"ji");
W_x.idomCompat=!0;var b9X=_.H(function(e){var g=e.data;var c=e.stateFns;return _.a("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.a(_.eS,{data:function(){var k,I;return(I=(k=c().getSelectedPricingOptions()[0])==null?void 0:k.primaryButton)!=null?I:g().emptyStateButton}},{buttonViewModel:_.oD}))},"ki");
b9X.idomCompat=!0;var hCS=_.H(function(e){var g=e.stateFns;return _.a("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.a(_.eS,{data:function(){return g().getSelectedPricingOptions().flatMap(function(c){return c.summaryLines}).filter(function(c){return!!c})}},{containerLayoutViewModel:function(c){return _.a("div",{class:"ytPdpSummaryViewModelLineItem"},_.a(RS,{data:c.data}))}}))},"li");
hCS.idomCompat=!0;var X7O=_.H(function(e){function g(D){var f=q();_.As(_.ET("pdpStateEntity",f,{key:f,selectedPricingOptions:D}))}
var c=e.data;var k=e.internalScrolling;var I=e.stateFnsForTesting;var J=_.sz(function(){return c().allProducts},[]),q=_.sz(function(){return c().pdpStateEntityKey},""),L=_.O1(PDM,q),n=_.xF(function(){_.ds(!0);
var D;return(D=I==null?void 0:I())!=null?D:pYq(L,J,g)},void 0,"Pzdsic"),R=_.sz(function(){return c().body},[]),W=_.sz(function(){return c().columnBreakHints},[]),b=function(){return c().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},h=function(){return b()||c().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},X=_.xF(function(){var D=_.$u(c().background),f;
if(D==null?0:(f=D.sources)==null?0:f.length){var l=l===void 0?!0:l;D=_.set(void 0,D.sources,void 0,l,l?1E3:void 0,l?void 0:1E3)}else D=null;return D},void 0,"RDPOae");
_.lo(function(){var D=c().onStartCommand;if(D&&(D=_.WT(D))){var f;(f=_.Ss().resolve(_.xk))==null||f.resolveCommand(D)}});
e={};return _.a("pdp-view-model",{class:_.o6("ytPdpViewModelHost",(e.ytPdpViewModelHasBackground=function(){return h()||!!X()},e.ytPdpViewModelHasDarkBackground=h,e.ytPdpViewModelHasScrim=b,e.ytPdpViewModelInternalScrolling=k,e.ytPdpViewModelForceSingleColumn=function(){return W().length===0},e)),
style:_.N2({"--pdp-view-model-background":function(){return X()?"url("+X()+")":void 0}})},_.a("div",{class:"ytPdpViewModelColumnContainer"},_.a(_.Yz,{each:function(){return TbM(R(),W())},
keyBy:"INDEX"},function(D){return _.a("div",{class:"ytPdpViewModelColumn"},_.a(_.eS,{data:D},{containerLayoutViewModel:function(f){return _.a(EZ,null,_.a(RS,{data:f.data}))},
dividerViewModel:function(f){return _.a(EZ,{fullBleed:!0},_.a(_.oSM,{data:f.data}))},
pdpCardViewModel:function(f){return _.a(EZ,null,_.a(nOl,{data:f.data,stateFns:n}))},
pdpMastheadViewModel:function(f){return _.a(EZ,null,_.a(RCz,{data:f.data,isOverlay:h}))},
pdpPricingGroupSelectorViewModel:function(f){return _.a(EZ,null,_.a(EOQ,{data:f.data,stateFns:n}))},
pdpPricingOptionSelectorViewModel:function(f){return _.a(EZ,null,_.a(W_x,{data:f.data,stateFns:n}))},
pdpPrimaryButtonViewModel:function(f){return _.a(EZ,null,_.a(b9X,{data:f.data,stateFns:n}))},
pdpSummaryViewModel:function(f){return _.a(EZ,null,_.a(hCS,{data:f.data,stateFns:n}))},
sectionHeaderViewModel:function(f){return _.a(EZ,{fullBleed:!0,noVerticalPadding:!0},_.a(_.CW,{data:f.data}))}}))})))},"mi");
X7O.idomCompat=!0;var EZ=_.H(function(e){var g={};return _.a("div",{class:_.o6("ytPdpViewModelItem",(g.ytPdpViewModelFullBleed=e.fullBleed,g.ytPdpViewModelNoVerticalPadding=e.noVerticalPadding,g))},e.children)},"ni");_.sL(X7O,"pdp-view-model",{props:{data:_.jx,stateFnsForTesting:_.TF,internalScrolling:_.TF}});var GU0=_.H(function(e){var g=e.data;var c=e.className;var k=_.O1(_.uQ,function(){return g().flowStateEntityKey});
return _.a("ytm-premium-purchase-button-renderer",{class:_.o6("ytPremiumPurchaseButtonRendererHost",c)},_.a(_.eS,{data:function(){var I;return(I=_.x(k(),ACz))==null?void 0:I.primaryButtonOverride}},{buttonRenderer:function(I){return _.a(_.lh,{data:I.data,
className:c})},
buttonViewModel:function(I){return _.a(_.oD,{data:I.data,className:c})}}))},"oi");
GU0.idomCompat=!0;var xCS=_.H(function(e){var g=e.data;e=e.className;var c=function(){return l9M(g().style)},k=_.o6("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",c),I=_.o6("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",c);
return _.a("yt-flow-bottom-bar-renderer",{class:_.o6("yt-flow-bottom-bar-renderer",e,c)},_.a(_.eS,{data:function(){return g().secondaryButton}},{buttonRenderer:function(J){return _.a(_.lh,{data:J.data,
className:I})},
buttonViewModel:function(J){return _.a(_.oD,{data:J.data,className:I})},
premiumPurchaseButtonRenderer:function(J){return _.a(GU0,{data:J.data,className:I})}}),_.a(_.eS,{data:function(){return g().primaryButton}},{buttonRenderer:function(J){return _.a(_.lh,{data:J.data,
className:k})},
buttonViewModel:function(J){return _.a(_.oD,{data:J.data,className:k})},
premiumPurchaseButtonRenderer:function(J){return _.a(GU0,{data:J.data,className:k})}}))},"pi");
xCS.idomCompat=!0;_.sL(xCS,"yt-flow-bottom-bar-renderer",{props:{data:_.jx,className:_.jx}});var DCQ=_.H(function(e){var g=_.o6(e.className,"ytOfferSummaryRendererHost");return _.a("yt-offer-summary-renderer",{class:g},_.a("div",{class:"ytOfferSummaryRendererTextContainer"},_.a("div",{class:"ytOfferSummaryRendererEyebrowText"},_.a(_.fa,{text:function(){return e.data().eyebrowText}})),_.a("div",{class:"ytOfferSummaryRendererTitle"},_.a(_.fa,{text:function(){return e.data().title}})),_.a("div",{class:"ytOfferSummaryRendererSubtitle"},_.a(_.fa,{text:function(){return e.data().subtitle}})),_.a("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.a(_.Yz,{each:function(){var c;
return(c=e.data().featureListData)!=null?c:[]}},function(c){var k;
return _.a("div",{class:"ytOfferSummaryRendererFeatureList"},_.a(_.SU,{icon:(k=c.icon)==null?void 0:k.iconType,active:function(){return c.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(c.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.a("div",{class:"ytOfferSummaryRendererFeatureListText"},_.a(_.fa,{text:c.text,
className:function(){return c.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.a("div",{class:"ytOfferSummaryRendererDescription"},_.a(_.fa,{text:function(){return e.data().description}}))))},"qi");_.sL(_.H(function(e){var g={};g=_.o6("ytOfferSummaryFlowStepRendererHost",(g.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=e.shouldDisableHeaderTopMargin,g));return _.a("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:g},_.a("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.a("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.a(_.fa,{text:function(){return e.data().header}})),_.a("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.a(_.fa,{text:function(){return e.data().subtitle}}))),_.a("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.a(_.eS,{data:function(){return e.data().offerSummary}},{offerSummaryRenderer:function(c){return _.a(DCQ,{data:c.data,
className:e.flowClassName})}})))},"ri"),"yt-offer-summary-flow-step-renderer",{props:{data:_.TF,
flowClassName:_.TF,flowStateEntityKey:_.TF,shouldDisableHeaderTopMargin:_.TF}});var $Co=_.H(function(e){var g=e.data;var c=e.className;var k=e.flowStateEntityKey;var I=e.selectionStepStyle;e=_.Ve(function(n){var R=g(),W=k==null?void 0:k();n.target&&(n.stopPropagation(),n=W||"",W=_.uQ(_.lF().getState(),n),R=Object.assign({},W,{premiumPurchaseFlowState:{selectedOptionId:R.optionId,primaryButtonOverride:R.primaryButtonOverride}}),_.lF().dispatch(_.cY("flowStateEntity",n,R)));return!1});
var J=function(){return(k==null?void 0:k())||""},q=_.O1(_.uQ,J);
_.lo(function(){var n=g(),R=J(),W=q();n.defaultSelected&&R!==""&&n.primaryButtonOverride&&sBS(n.optionId||"",R,n.primaryButtonOverride,W)});
var L={};return _.a("ytm-option-item-renderer",{"on:click":e,class:_.o6(c,"ytm-option-item-renderer",(L["ytm-option-item-renderer--lp2-style"]=function(){return(I==null?void 0:I())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},L))},_.a("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.a("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var n=g(),R=J(),W=q();W=_.x(W,ACz);return(W?(W==null?void 0:W.selectedOptionId)||"":n.defaultSelected&&R!==""?(n==null?void 0:n.optionId)||"":"")===g().optionId},
name:("input"+_.bN(_.X_)).toString()})),_.a("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.a(_.eS,{data:function(){return g().titleBadge}},{badgeViewModel:function(n){return _.a(_.A8,{data:n.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.a(_.E,{cond:function(){return g().eyebrowText},
then:function(){return _.a("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.a(_.fa,{text:function(){return g().eyebrowText}}))}}),_.a("div",{class:"ytm-option-item-renderer__option-item-title"},_.a(_.fa,{text:function(){return g().title}})),_.a("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.a(_.fa,{text:function(){return g().subtitle}})),_.a(_.E,{cond:function(){return g().featureListData},
then:function(){return _.a("div",{class:"ytm-option-item-renderer__feature-list-data"},_.a(_.Yz,{each:function(){return g().featureListData||[]}},function(n){var R,W=(R=n.icon)==null?void 0:R.iconType;
a:switch(n.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":R="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":R="ytm-option-item-renderer__feature-list-icon-small";break a;default:R="ytm-option-item-renderer__feature-list-icon-default"}return _.a("div",{class:"ytm-option-item-renderer__feature-list"},_.a(_.SU,{icon:W,className:R,active:function(){return n.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.a("div",{class:"ytm-option-item-renderer__feature-list-text"},_.a(_.fa,{text:n.text,
className:function(){return n.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.a("div",{class:"ytm-option-item-renderer__option-item-description"},_.a(_.fa,{text:function(){return g().description}}))))},"si");var Yaz=_.H(function(e){var g=e.data;var c=e.flowClassName;var k=e.flowStateEntityKey;var I=e.selectionStepStyle;return _.a("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.a("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.a("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.a(_.fa,{text:function(){return g().title}}),_.a(_.eS,{data:function(){return g().titleBadge}},{badgeViewModel:function(J){return _.a(_.A8,{data:J.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.a(_.E,{cond:function(){return g().subtitle},
then:function(){return _.a("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.a(_.fa,{text:function(){return g().subtitle}}))}}),_.a(_.E,{cond:function(){return g().featureListData},
then:function(J){return _.a("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.a(_.Yz,{each:J},function(q){var L;return _.a("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.a(_.SU,{icon:(L=q.icon)==null?void 0:L.iconType,active:function(){return q.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(q.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.a("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.a(_.fa,{text:q.text,
className:function(){return q.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.a(_.E,{cond:function(){return g().secondaryTitle},
then:function(){return _.a("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.a(_.fa,{text:function(){return g().secondaryTitle}}))}}),_.a(_.Yz,{each:function(){return g().sectionDisclaimers||[]}},function(J){return _.a("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.a(_.fa,{text:J}))})),_.a(_.eS,{data:function(){return g().optionItems}},{optionItemRenderer:function(J){return _.a("div",{class:"ytOptionSectionRendererOptionItem"},_.a($Co,{data:J.data,
className:c,flowStateEntityKey:k,selectionStepStyle:I}))}}),_.a(_.E,{cond:function(){return g().offerText},
then:function(){return _.a("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.a(_.fa,{text:function(){return g().offerText}}))}}))},"ti");
Yaz.idomCompat=!0;var fmS=_.H(function(e){var g=e.data;var c=e.flowClassName;var k=e.flowStateEntityKey;e=e.isDesktop;var I=_.io("div"),J=function(){var W;return(W=g().flowStateEntityKey)!=null?W:k==null?void 0:k()},q=function(){return(J==null?void 0:J())||""},L=function(){return g().style},n=_.O1(_.uQ,q);
_.lo(function(){F3D(g(),q(),n());setTimeout(function(){var W;(W=I.value)==null||W.focus()})});
var R={};return _.a("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.o6("ytm-option-selection-flow-step-renderer",(R["ytm-option-selection-flow-step-renderer--desktop"]=e,R["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return g().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},R))},_.a("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"},
_.a("div",{el:I,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.a(_.fa,{text:function(){return g().header}})),_.a("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.a(_.fa,{text:function(){return g().subtitle}}))),_.a(_.eS,{data:function(){return g().optionItems||[]}},{optionItemRenderer:function(W){return _.a("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.a($Co,{data:W.data,
className:c,flowStateEntityKey:J,selectionStepStyle:L}))},
optionSectionRenderer:function(W){return _.a("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.a(Yaz,{data:W.data,flowClassName:c,flowStateEntityKey:J,selectionStepStyle:L}))}}))},"ui");
fmS.idomCompat=!0;_.sL(fmS,"yt-option-selection-flow-step-renderer",{props:{data:_.jx,flowClassName:_.jx,flowStateEntityKey:_.jx,isDesktop:_.jx}});var Wi=_.H(function(e){var g=_.FA(e,{type:1,disablePadding:!1,disablePrimaryButton:!1}),c=g.data,k=g.type;e=g.disablePadding;var I=g.disablePrimaryButton,J=g.onClickPrimaryButton,q=function(){return c().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},L=function(){return{disabled:I(),
state:I()?"disabled":"active"}},n=function(){return c().leadingLabel||c().trailingLabel};
g={};return _.a("yt-panel-footer-view-model",{class:_.o6("yt-panel-footer-view-model",(g["yt-panel-footer-view-model--hide-divider"]=function(){return c().shouldHideDivider},g["yt-panel-footer-view-model--disable-padding"]=e,g))},_.a(_.E,{cond:n,
then:function(){var R={},W={};return _.a("div",{class:_.o6("yt-panel-footer-view-model__text-row",(R["yt-panel-footer-view-model--row-bottom-padding"]=function(){var b=c();return!(!b.leadingLabel&&!b.trailingLabel||!b.primaryButton&&!b.secondaryButton)},R))},_.a(_.fa,{text:function(){return c().leadingLabel},
className:_.o6((W["yt-panel-footer-view-model--text-padding"]=n,W))}),_.a(_.fa,{text:function(){return c().trailingLabel}}))}}),_.a(_.E,{cond:q,
then:function(){var R={};return _.a("div",{class:"yt-panel-footer-view-model__button-stack"},_.a("div",{class:_.o6("yt-panel-footer-view-model__primary-button",(R["yt-panel-footer-view-model__button-stack--top-button"]=function(){return c().secondaryButton},R))},_.a(_.eS,{data:function(){return c().primaryButton}},{buttonViewModel:function(W){return _.a(_.oD,{data:W.data,
buttonOverrides:L,onClick:J})}})),_.a(_.eS,{data:function(){return c().secondaryButton}},{buttonViewModel:_.oD}))}}),_.a(_.E,{cond:function(){return!q()},
then:function(){var R={},W={},b={};return _.a("div",{class:_.o6("yt-panel-footer-view-model__button-row",(R["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===k()},R))},_.a("div",{class:_.o6("yt-panel-footer-view-model__button-row--left-button",(W["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===k()},W["yt-panel-footer-view-model__button-row--hidden"]=function(){return!c().secondaryButton||0===k()},W["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===k()},W))},_.a(_.eS,{data:function(){return c().secondaryButton}},{buttonViewModel:_.oD})),_.a("div",{class:_.o6("yt-panel-footer-view-model__primary-button",(b["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===k()||1===k()},b["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===k()},b))},_.a(_.eS,{data:function(){return c().primaryButton}},{buttonViewModel:function(h){return _.a(_.oD,{data:h.data,
buttonOverrides:L,onClick:J})}})))}}))},"vi");
Wi.idomCompat=!0;var jJq=_.H(function(e){e=_.FA(e,{disablePadding:!1});var g=e.data,c=e.disablePadding;e=_.l8C(function(){return g().formId},void 0,function(){return g().onSubmitSuccess});
var k=e.submitForm,I=e.isValid,J=e.isSubmitting;return _.a("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.a(_.eS,{data:function(){return g().panelFooter}},{panelFooterViewModel:function(q){return _.a(Wi,{data:q.data,
onClickPrimaryButton:function(){k()},
disablePrimaryButton:function(){return!I()||J()},
disablePadding:c})}}))},"wi");_.sL(jJq,"yt-form-footer-view-model",{props:{data:_.jx,disablePadding:_.jx}});var i9S=_.H(function(e){var g=_.G("enable_user_rating_web");return _.a("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.a("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.a(_.E,{cond:function(){var c;return(c=e.data())==null?void 0:c.image},
then:function(c){return _.a(_.pv,{data:c,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.a("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.a(_.fa,{text:function(){var c;
return(c=e.data())==null?void 0:c.title}})),_.a("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.a(_.fa,{text:function(){var c;
return(c=e.data())==null?void 0:c.subtitle}})),_.a(_.E,{cond:function(){return!g},
then:function(){return _.a(_.eS,{data:function(){var c;return(c=e.data())==null?void 0:c.viewTipsButton}},{buttonViewModel:function(c){return _.a(_.oD,{data:c.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"xi");_.sL(i9S,"yt-contributor-zero-state-view-model",{props:{data:_.jx}});var P9z=_.H(function(e){var g=function(){var c;return(c=e.data())==null?void 0:c.image};
return _.a("yt-featured-content-item-view-model",{class:_.o6("ytFeaturedContentItemViewModelHost")},_.a("div",{class:_.o6(function(){return g()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.a("div",{class:function(){return g()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.a(_.E,{cond:g,
then:function(){return _.a("div",{class:"ytFeaturedContentItemViewModelImage"},_.a(_.eS,{data:function(){return e.data().image}},{themedImageViewModel:function(c){return _.a(rM0,{data:c.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.a(_.E,{cond:function(){var c;
return!g()&&((c=e.data())==null?void 0:c.iconName)},
then:function(){return _.a("div",{class:"ytFeaturedContentItemViewModelIcon"},_.a(_.SU,{icon:function(){return e.data().iconName}}))}}),_.a("div",{class:"ytFeaturedContentItemViewModelContent"},_.a(_.E,{cond:function(){var c;
return(c=e.data())==null?void 0:c.title},
then:function(){return _.a("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.a(_.fa,{text:function(){return e.data().title}}))}}),_.a(_.E,{cond:function(){var c;
return(c=e.data())==null?void 0:c.body},
then:function(){return _.a("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.a(_.fa,{text:function(){return e.data().body}}))}})))))},"yi");var mCM=_.H(function(e){var g=function(){var I;return uJj((I=e.data())==null?void 0:I.titleFontSize)},c=function(){var I;
return dyM((I=e.data())==null?void 0:I.descriptionFontSize)},k=function(){var I;
return((I=e.data())==null?void 0:I.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.a("yt-landing-page-view-model",{class:_.o6("ytLandingPageViewModelHost",e.className)},_.a("div",{class:"ytLandingPageViewModelHeader"},_.a(_.E,{cond:function(){var I;return(I=e.data())==null?void 0:I.bannerImage},
then:function(I){return _.a("div",{class:"ytLandingPageViewModelHeaderImage"},_.a(_.eS,{data:function(){return I()}},{imageBannerViewModel:function(J){return _.a(_.pE,{data:J.data,
isPositionRelative:!0})}}))}}),_.a(_.E,{cond:function(){var I;
return(I=e.data())==null?void 0:I.bannerAnimation},
then:function(I){return _.a(_.Sx,{data:function(){var J=I();if(J==null?0:J.url){var q;J={path:(q=J==null?void 0:J.url)!=null?q:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(J==null?0:J.payload){var L;J={animationData:JSON.parse((L=J==null?void 0:J.payload)!=null?L:""),autoplay:!0,loop:!0,renderer:"svg"}}else J=void 0;return{animationConfig:J}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.a("div",{class:"ytLandingPageViewModelHeaderTitle"},_.a(_.E,{cond:function(){var I;
return(I=e.data())==null?void 0:I.title},
then:function(I){return _.a("div",{class:_.o6("ytLandingPageViewModelHeaderTitleContent",g)},_.a(_.fa,{text:function(){return I()}}))}}),_.a(_.E,{cond:function(){var I;
return(I=e.data())==null?void 0:I.description},
then:function(I){var J={};return _.a(_.fa,{className:_.o6("ytLandingPageViewModelHeaderTitleDescription",c,(J.ytLandingPageViewModelHeaderTitleDescriptionMargin=k,J)),text:function(){return I()}})}}))),_.a(_.E,{cond:function(){var I,J;
return(I=e.data())==null?void 0:(J=I.featuredContentList)==null?void 0:J.length},
then:function(){return _.a("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.a(_.eS,{data:function(){return e.data().featuredContentList}},{featuredContentItemViewModel:function(I){return _.a(P9z,{data:I.data})}}))}}),_.a(_.E,{cond:function(){var I,J;
return(I=e.data())==null?void 0:(J=I.expandableContentList)==null?void 0:J.length},
then:function(){return _.a("div",{class:"ytLandingPageViewModelFaqSection"},_.a(_.eS,{data:function(){return e.data().expandableContentList}},{faqEntryViewModel:function(I){return _.a("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.a(_.fak,{data:I.data}))}}))}}),_.a("div",{class:"ytLandingPageViewModelFooter"},_.a(_.E,{cond:function(){var I;
return(I=e.data())==null?void 0:I.legalCopy},
then:function(I){return _.a("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.a(_.fa,{text:function(){return I()}}))}}),_.a(_.E,{cond:function(){var I;
return(I=e.data())==null?void 0:I.actions},
then:function(I){return _.a("div",null,_.a(_.eS,{data:function(){return I()}},{flexibleActionsViewModel:function(J){return _.a(_.bA,{data:J.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"zi");_.sL(_.H(function(e){return _.a("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.a("div",{class:"ytLpSectionGroupViewModelContainer"},_.a(_.eS,{data:function(){return e.data().sections}},{landingPageViewModel:function(g){return _.a(mCM,{data:g.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Ai"),"yt-lp-section-group-view-model",{props:{data:_.jx}});var p7X=_.H(function(e){var g=e.data;var c=e.selectedKey;var k=e.onSelected;var I=e.groupName;var J=function(){return g().text},q=function(){return g().attributedText},L=function(){return g().subtext},n=function(){return g().attributedSubtext},R=function(){return g().selectionText},W=function(){return g().trailingIconName},b=_.a("div",{class:"ytRadioButtonItemViewModelLabel"},_.a("div",null,_.a(_.E,{cond:J,
then:function(){return _.a("div",null,J)}}),_.a(_.E,{cond:q,
then:function(){return _.a(_.fa,{text:q})}}),_.a(_.E,{cond:L,
then:function(){return _.a("div",{class:"ytRadioButtonItemViewModelSubText"},L)}}),_.a(_.E,{cond:n,
then:function(){return _.a(_.fa,{text:n,className:"ytRadioButtonItemViewModelSubText"})}})),_.a(_.E,{cond:function(){return R()||W()},
then:function(){return _.a("div",{class:"ytRadioButtonItemViewModelTrailingContainer"},_.a(_.E,{cond:R,then:function(){return _.a(_.fa,{text:R,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}),_.a(_.E,{cond:W,
then:function(){return _.a(_.SU,{icon:W,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}))}}));
e={};return _.a("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.a(_.fE,{name:I,checked:function(){return!(c==null||!c()||g().key!==(c==null?void 0:c()))},
onChange:function(h){k==null||k(h.target,g(),I==null?void 0:I())},
labelRenderable:function(){return b},
ariaLabel:function(){var h,X;var D=(X=(h=n())==null?void 0:h.content)!=null?X:L();var f,l;h=(l=(f=q())==null?void 0:f.content)!=null?l:J();return D?h+", "+D:h},
className:_.o6((e.ytRadioButtonItemViewModelSubTitle=function(){return!!L()},e))}))},"Bi");var T5v=_.H(function(e){var g=e.data,c=e.onSelected,k=e.selectedKey,I=e.groupName;e=e.className;var J=_.w(_.Wa(!1,void 0,"mDtSad")),q=J.next().value,L=J.next().value,n=function(){if(k!==void 0){var R=k();return!(!R||g().key!==R)}return q()};
J=_.Ve(function(R){c?c(R.currentTarget,g(),I==null?void 0:I()):L(!q())});
return _.a("yt-selectable-item-view-model",{class:_.o6("ytSelectableItemViewModelHost",e,"ytSelectableItemViewModelContainer"),"on:click":J,"prop:checked":n},_.a(_.eS,{data:function(){return g().content}},{cardViewModel:function(R){return _.a(_.uSg,{data:R.data,
isSelected:n})}}))},"Ci");var lmz=_.H(function(e){var g=e.data;var c=e.onSelected;var k=e.selectedKey;var I=e.groupName;var J=function(){return(I==null?void 0:I())||g().key};
return _.a("yt-radio-button-group-view-model",{class:_.o6("ytRadioButtonGroupViewModelHost",e.className)},_.a("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.a(_.eS,{data:function(){return g().radioButtons}},{radioButtonItemViewModel:function(q){return _.a(p7X,{data:q.data,
onSelected:c,selectedKey:k,groupName:J})},
selectableItemViewModel:function(q){return _.a(T5v,{data:q.data,onSelected:c,selectedKey:k,groupName:J})}})))},"Di");var AMS=_.H(function(e){_.lo(function(){if(e.controlledMode()&&e.data().defaultSelected)_.jW(Error("Fl"));else{var J;!e.controlledMode()&&((J=e.selected)==null?0:J.call(e))&&_.jW(Error("Gl"))}});
var g=_.w(_.uF(function(){if(!e.controlledMode())return e.data().defaultSelected})),c=g.next().value,k=g.next().value,I=function(){if(!e.controlledMode())return c();
var J;return(J=e.selected)==null?void 0:J.call(e)};
return _.a("yt-checkbox-item-view-model",{class:_.o6("ytCheckboxItemViewModelHost",e.className)},_.a(_.j5,{data:function(){var J=e.data(),q=I();return{title:J.text,subtitle:J.subtext,superlabel:J.superlabel,isSelected:!!q,isDisabled:J.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!e.controlledMode()&&k(!c());var J,q;(q=e.onTap)==null||q.call(e,!!I(),e.data(),(J=e.groupName)==null?void 0:J.call(e))},
isCompact:e.isCompact,disableHorizontalPadding:e.disableHorizontalPadding}))},"Ei");var sJQ=_.H(function(e){var g=e.data;var c=e.controlledMode;var k=e.selectedKeys;var I=e.onItemTap;var J=e.groupName;var q=e.disableHorizontalPadding;var L=function(){return(J==null?void 0:J())||g().key};
_.lo(function(){c()&&g().defaultSelectedKeys?_.jW(Error("Hl")):!c()&&(k==null?0:k())&&_.jW(Error("Il"))});
e=_.w(_.uF(function(){if(!c())return g().defaultSelectedKeys}));
var n=e.next().value,R=e.next().value,W=function(b,h,X){b=[];!c()&&h.key&&(b=zcl(h.key,n()||[]),R(b));I==null||I(h,b,X)};
return _.a("yt-checkbox-group-view-model",{class:_.o6("ytCheckboxGroupViewModelHost")},_.a("fieldset",{class:_.o6("ytCheckboxGroupViewModelFieldset")},_.a("div",{role:"list"},_.a(_.eS,{data:function(){return g().checkboxes}},{checkboxItemViewModel:function(b){var h=b.data;
return _.a(AMS,{data:h,controlledMode:!0,selected:function(){var X=c()?(k==null?void 0:k())||[]:n()||[],D=h().key;return D?X.includes(D):!1},
onTap:W,groupName:L,disableHorizontalPadding:q})}}))))},"Fi");var F_z=_.kD(HVS,{debugName:"ytAlertBannerViewModel"});_.K4(_.xP,function(e){_.DS(e,"ytAlertBannerViewModel","n0DHg",HVS)});var ba=_.H(function(e){var g=_.O1(QBj,_.sz(function(){var L;return(L=e.data())==null?void 0:L.noteFeedEntityKey},"")),c=_.O1(WpS,_.sz(function(){var L;
return(L=e.data())==null?void 0:L.userRatingEntityKey},"")),k=_.G("enable_user_rating_web"),I=function(){var L,n,R;
return((L=g())==null?0:L.contributorNote)?(n=g())==null?void 0:n.contributorNote:(R=e.data())==null?void 0:R.existingNote},J=function(){var L,n;
return!!c()&&!!UyD((L=c())==null?void 0:L.helpfulnessValue,(n=e.data())==null?void 0:n.noteData)};
if(k){var q={};return _.a("yt-note-view-model",{class:_.o6("ytNoteViewModelHostUserRating",(q.ytNoteViewModelHostUserRatingPublishedNote=function(){var L,n,R,W;return((L=e.data())==null?void 0:(n=L.noteData)==null?void 0:n.isPublished)&&!((R=e.data())==null?0:(W=R.noteData)==null?0:W.isUserRatingForm)},q))},_.a("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.a("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.a(_.E,{cond:function(){var L,n;
return(L=e.data())==null?void 0:(n=L.noteData)==null?void 0:n.isPinned},
then:function(){return _.a(_.SU,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.a(_.E,{cond:function(){var L,n;return(L=e.data())==null?void 0:(n=L.noteData)==null?void 0:n.isPublished},
then:function(){return _.a(_.SU,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.a(_.eS,{data:function(){var L;
return(L=e.data())==null?void 0:L.metadata}},{contentMetadataViewModel:_.t8}),_.a("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var L,n;
return(n=_.x((L=e.data())==null?void 0:L.metadata,_.K5u))==null?void 0:n.delimiter}),_.a(_.fa,{text:function(){var L;
return(L=I())==null?void 0:L.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.a(_.E,{cond:function(){var L,n;return!((L=e.data())==null?0:(n=L.noteData)==null?0:n.isUserRatingForm)},
then:function(){return _.a(_.eS,{data:function(){var L,n,R,W,b,h,X,D=!!((L=e.data())==null?0:(n=L.noteData)==null?0:n.isPinned);L=J();n=(R=e.data())==null?void 0:R.noteData;R=(W=g())==null?void 0:(b=W.contributorNote)==null?void 0:b.deleteAction;W=(h=e.data())==null?void 0:h.overflowButtonNoteWithRatingOnTapOverride;h=(X=e.data())==null?void 0:X.overflowButton;var f;X=(f=_.x(h,_.$8))==null?void 0:f.accessibilityText;return D?ouX(n,R,X):L?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:W,accessibilityText:X}}:h}},{buttonViewModel:function(L){return _.a(_.oD,{data:L.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.a("div",{class:"ytNoteViewModelNoteContent"},_.a(_.fa,{text:function(){var L;
return(L=I())==null?void 0:L.text}})),_.a(_.E,{cond:function(){var L,n,R,W;
return!((L=e.data())==null?0:(n=L.noteData)==null?0:n.isPinned)&&!((R=e.data())==null?0:(W=R.noteData)==null?0:W.isUserRatingForm)},
then:function(){return _.a(_.E,{cond:J,then:function(){return _.a("div",{class:"ytNoteViewModelUserRatingContainer"},_.a(_.fa,{text:function(){var L,n;return UyD((L=c())==null?void 0:L.helpfulnessValue,(n=e.data())==null?void 0:n.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.a(_.eS,{data:function(){var L;return(L=e.data())==null?void 0:L.userRatingButton}},{buttonViewModel:function(L){return _.a(_.oD,{data:L.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.a(_.E,{cond:function(){var L,n,R,W;
return!((L=e.data())==null?0:(n=L.noteData)==null?0:n.ignoreDivider)&&!((R=e.data())==null?0:(W=R.noteData)==null?0:W.isUserRatingForm)},
then:function(){return _.a("div",{class:"ytNoteViewModelDivider"},_.a(_.eS,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(L){return _.a(_.oSM,{data:L.data})}}))}}))}return _.a("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.a("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.a("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.a(_.E,{cond:function(){var L,n;return(L=e.data())==null?void 0:(n=L.noteData)==null?void 0:n.isPinned},
then:function(){return _.a(_.SU,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.a(_.E,{cond:function(){var L,n;return(L=e.data())==null?void 0:(n=L.noteData)==null?void 0:n.isPublished},
then:function(){return _.a(_.SU,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.a(_.E,{cond:function(){return k},
then:function(){return _.a(_.eS,{data:function(){var L;return(L=e.data())==null?void 0:L.metadata}},{contentMetadataViewModel:function(L){return _.a(_.t8,{data:L.data})}})}}),_.a(_.fa,{text:function(){var L,n;
return(L=e.data())==null?void 0:(n=L.noteData)==null?void 0:n.headerText}}),_.a("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.a(_.fa,{text:function(){var L,n;
return(L=e.data())==null?void 0:(n=L.noteData)==null?void 0:n.delimiter}})),_.a(_.fa,{text:function(){var L,n;
return(L=g())==null?void 0:(n=L.contributorNote)==null?void 0:n.publishedTimeText}})),_.a(_.eS,{data:function(){var L,n,R;
return ouX((L=e.data())==null?void 0:L.noteData,(n=g())==null?void 0:(R=n.contributorNote)==null?void 0:R.deleteAction)}},{buttonViewModel:function(L){return _.a(_.oD,{data:L.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.a("div",{class:"ytNoteViewModelNoteContent"},_.a(_.fa,{text:function(){var L,n;
return(L=g())==null?void 0:(n=L.contributorNote)==null?void 0:n.text}})))},"Gi");
ba.idomCompat=!0;_.sL(_.H(function(e){var g=_.sz(function(){var d;return(d=e.data())==null?void 0:d.flowStateEntityKey},""),c=_.O1(_.uQ,g),k=_.O1(QBj,_.sz(function(){var d;
return(d=e.data())==null?void 0:d.noteFeedEntityKey},"")),I=_.w(_.uF(function(){var d;
return(d=_.x(e.data().helpfulnessValue,PYz))==null?void 0:d.defaultSelectedKey})),J=I.next().value,q=I.next().value;
I=_.w(_.uF(function(){var d,S,V;return(V=_.x((d=_.x(e.data().helpfulnessValue,PYz))==null?void 0:(S=d.radioButtons)==null?void 0:S.find(function(Q){var y;return((y=_.x(Q,mgQ))==null?void 0:y.key)===J()}),mgQ))==null?void 0:V.value}));
var L=I.next().value,n=I.next().value;I=_.w(_.uF(function(){var d;return(d=_.x(e.data().helpfulReasons,iEx))==null?void 0:d.defaultSelectedKeys}));
var R=I.next().value,W=I.next().value;I=_.w(_.uF(function(){var d;return(d=_.x(e.data().notHelpfulReasons,iEx))==null?void 0:d.defaultSelectedKeys}));
var b=I.next().value,h=I.next().value,X=function(d,S){q(S.key);n(S.value);W([]);h([])},D=function(){var d,S;
return((d=L())==null?void 0:d.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((S=L())==null?void 0:S.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},f=function(){var d,S;
return((d=L())==null?void 0:d.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((S=L())==null?void 0:S.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},l=function(d){ZVo(d.key,R,W)},A=function(d){ZVo(d.key,b,h)};
_.lo(function(){var d,S,V;ndl((d=e.data())==null?void 0:(S=d.userRatingFormSchema)==null?void 0:S.id,{isValid:function(){return!!J()},
formData:function(){var Q=L(),y=tSX(R(),_.x(e.data().helpfulReasons,iEx)),O=tSX(b(),_.x(e.data().notHelpfulReasons,iEx));Q={helpfulnessValue:Q==null?void 0:Q.noteHelpfulnessValue};if(y){Q.helpfulReasons=[];y=_.w(y);for(var Jq=y.next();!Jq.done;Jq=y.next()){Jq=Jq.value;var LC=void 0;if((LC=Jq)==null?0:LC.noteHelpfulReason)LC=void 0,Q.helpfulReasons.push((LC=Jq)==null?void 0:LC.noteHelpfulReason)}}if(O)for(Q.notHelpfulReasons=[],O=_.w(O),y=O.next();!y.done;y=O.next())if(y=y.value,Jq=void 0,(Jq=y)==
null?0:Jq.noteNotHelpfulReason)Jq=void 0,Q.notHelpfulReasons.push((Jq=y)==null?void 0:Jq.noteNotHelpfulReason);return{userRatingFormData:Q}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(V=_.x(c(),gYq))==null?void 0:V.submitFormParams},onSubmitResult:function(){var Q,y=(Q=_.x(c(),gYq))==null?void 0:Q.userRatingEntityKey,O;Q={key:y,helpfulnessValue:(O=L())==null?void 0:O.noteHelpfulnessValue};y&&_.As(_.cY("contextNoteUserRatingEntityPayload",y,Q));var Jq;y=(Jq=e.data())==null?void 0:Jq.viewNoteFlowStepId;var LC;if((LC=k())==null||!LC.contributorNote){var bW;y=(bW=e.data())==null?void 0:bW.zeroStateFlowStepId}(Jq=
Object.assign({},c()))&&y&&(Jq.currentStepId=y,Jq.stepIdStack=[y],_.As(_.cY("flowStateEntity",g(),Jq)));var RA;(Jq=(RA=e.data())==null?void 0:RA.ratingSubmittedSnackbarCommand)&&_.GF(Jq)},
disableDuringSubmission:!0})});
return _.a("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.a(_.eS,{data:function(){var d=_.x(c(),gYq);if(d){var S;var V={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:d==null?void 0:(S=d.note)==null?void 0:S.headerText}]}],delimiter:"\u2022"}},existingNote:d.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else V=void 0;return V}},{noteViewModel:function(d){return _.a("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.a(ba,{data:d.data}))}}),_.a(_.eS,{data:function(){var d;
return(d=e.data())==null?void 0:d.helpfulnessValue}},{radioButtonGroupViewModel:function(d){return _.a("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.a(lmz,{data:d.data,
onSelected:X,selectedKey:J}))}}),_.a(_.E,{cond:D,
then:function(){return _.a("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.a("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.a(_.fa,{text:function(){var d;return(d=e.data())==null?void 0:d.helpfulReasonQuestion}})),_.a(_.eS,{data:function(){var d;
return(d=e.data())==null?void 0:d.helpfulReasons}},{checkboxGroupViewModel:function(d){return _.a(sJQ,{data:d.data,
onItemTap:l,selectedKeys:R,controlledMode:!0})}}))}}),_.a(_.E,{cond:f,
then:function(){return _.a("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.a("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.a(_.fa,{text:function(){var d;return(d=e.data())==null?void 0:d.notHelpfulReasonQuestion}})),_.a(_.eS,{data:function(){var d;
return(d=e.data())==null?void 0:d.notHelpfulReasons}},{checkboxGroupViewModel:function(d){return _.a(sJQ,{data:d.data,
onItemTap:A,selectedKeys:b,controlledMode:!0})}}))}}),_.a(_.E,{cond:function(){return!D()&&!f()},
then:function(){return _.a(_.eS,{data:function(){var d;return(d=e.data())==null?void 0:d.helpfulNoteFeatures}},{alertBannerViewModel:function(d){return _.a("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.a(F_z,{data:d.data}))}})}}))},"Hi"),"yt-note-user-rating-view-model",{props:{data:_.jx}});_.sL(ba,"yt-note-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=_.O1(QBj,_.sz(function(){var c;return(c=e.data())==null?void 0:c.noteFeedEntityKey},""));
return _.a("yt-notes-wrapper-view-model",{class:_.o6("ytNotesWrapperViewModelHost")},_.a(_.E,{cond:function(){var c,k,I;return!((c=e.data())==null||!c.existingNotes)||!((k=e.data())==null||!k.currentNote)&&!((I=g())==null||!I.contributorNote)},
then:function(){return _.a(_.es,null,_.a(_.eS,{data:function(){var c,k,I,J;return((k=_.x((c=e.data())==null?void 0:c.currentNote,ciz))==null?0:(I=k.noteData)==null?0:I.isPublished)?(J=e.data())==null?void 0:J.currentNote:void 0}},{noteViewModel:function(c){return _.a(ba,{data:c.data})}}),_.a(_.eS,{data:function(){var c;
return(c=e.data())==null?void 0:c.existingNotes}},{noteViewModel:function(c){var k=c.data;
return _.a(_.E,{cond:function(){var I,J;return(I=k())==null?void 0:(J=I.noteData)==null?void 0:J.isPublished},
then:function(){return _.a(ba,{data:k})}})}}),_.a(_.eS,{data:function(){var c,k,I,J,q;
return((k=_.x((c=e.data())==null?void 0:c.currentNote,ciz))==null?0:(I=k.noteData)==null?0:I.isPublished)||(J=g())==null||!J.contributorNote?void 0:(q=e.data())==null?void 0:q.currentNote}},{noteViewModel:function(c){return _.a(ba,{data:c.data})}}),_.a(_.eS,{data:function(){var c;
return(c=e.data())==null?void 0:c.existingNotes}},{noteViewModel:function(c){var k=c.data;
return _.a(_.E,{cond:function(){var I,J;return!((I=k())==null?0:(J=I.noteData)==null?0:J.isPublished)},
then:function(){return _.a(ba,{data:k})}})}}))},
else:function(){return _.a(_.eS,{data:function(){var c;return(c=e.data())==null?void 0:c.zeroStateData}},{contributorZeroStateViewModel:i9S})}}))},"Ii"),"yt-notes-wrapper-view-model",{props:{data:_.jx}});var NbD=new Map;var yCQ;var K3z=new Map;var dCx=_.H(function(e){var g=_.FA(e,{label:"",hideLabel:!1,text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,ariaLabel:void 0,timePickerData:void 0,error:void 0,hasError:!1,validation:void 0,characterLimit:void 0}),c=g.label,k=g.hideLabel,I=g.text,J=g.placeholder,q=g.hint;e=g.rows;var L=g.overflowStyle,n=g.outline,R=g.disabled,W=g.disableNewLines,b=g.onInput,h=g.ariaLabel,X=g.timePickerData,D=g.error,f=g.hasError,l=g.validation,A=g.characterLimit,
d=_.io("textarea");g=_.w(_.uF(function(){return I()}));
var S=g.next().value,V=g.next().value;g=_.w(_.Wa(!1,void 0,"PheJId"));var Q=g.next().value,y=g.next().value,O=function(){y(!0)},Jq=function(){y(!1)};
_.lo(function(){var hk=d.value,Pq=L(),vq=S();Pq==="expand-vertically"&&vq&&MSl(hk);d.value.addEventListener("focusin",O);d.value.addEventListener("focusout",Jq)});
_.sX(function(){d.value.removeEventListener("focusin",O);d.value.removeEventListener("focusout",Jq)});
var LC=function(){var hk;return(hk=l())==null?void 0:hk.validate(S())},bW=function(){var hk,Pq,vq;
return(vq=(hk=D())==null?void 0:hk.maxChars)!=null?vq:(Pq=A())==null?void 0:Pq.maxChars},RA=function(){return bW()===void 0?!1:!LC()&&S().length>bW()},Xg=function(){var hk,Pq;
return((hk=D())==null?void 0:hk.errorMessage)||LC()||RA()&&((Pq=A())==null?void 0:Pq.errorMessage)},Fg=function(){return!!Xg()||f()};
g=_.Ve(function(hk){if(!hk.currentTarget)return!1;hk=hk.currentTarget;V(hk.value);L()==="expand-vertically"&&MSl(hk);b==null||b(hk.value);return!0});
var oA=_.Ve(function(hk){W()&&hk.key==="Enter"&&hk.preventDefault();return!1}),Zt=_.Ve(function(){d.value.focus()}),Ev=function(){return J()||c()},an={},V6={},bs={},f1={};
return _.a("textarea-shape",{class:_.o6("ytStandardsTextareaShapeHost",(an.ytStandardsTextareaShapeTimePicker=function(){var hk;return(hk=X())==null?void 0:hk.useTimePickerStyles},an))},_.a("div",{class:_.o6("ytStandardsTextareaShapeTextareaContainer",(V6.ytStandardsTextareaShapeTextareaContainerOutline=n,V6.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=R,V6.ytStandardsTextareaShapeTextareaContainerOutlineError=Fg,V6.ytStandardsTextareaShapeTextareaContainerLabelHidden=k,V6)),
"on:click":Zt},_.a("label",{class:_.o6("ytStandardsTextareaShapeLabel",(bs.ytStandardsTextareaShapeLabelFocused=Q,bs.ytStandardsTextareaShapeLabelDisabled=R,bs.ytStandardsTextareaShapeLabelError=function(){return Fg()&&!R()},bs.ytStandardsTextareaShapeLabelHidden=function(){return k()||!Q()&&!S()&&!!Ev()},bs))},c),_.a("div",{class:_.o6("ytStandardsTextareaShapePlaceholder",(f1.ytStandardsTextareaShapePlaceholderVisible=function(){return!Q()&&!S()},f1)),
"aria-hidden":"true"},Ev),_.a("textarea",{el:d,"aria-label":h,class:"ytStandardsTextareaShapeTextarea",rows:e,disabled:R,placeholder:Ev,"prop:value":S,"on:input":g,"on:keydown":oA})),_.a(_.E,{cond:function(){return q()&&!Fg()},
then:function(){var hk={};return _.a("div",{class:_.o6("ytStandardsTextareaShapeHint",(hk.ytStandardsTextareaShapeHintDisabled=R,hk))},_.a("div",{class:"ytStandardsTextareaShapeHintHintMessage"},q))}}),_.a(_.E,{cond:Xg,
then:function(){return _.a(ujS,{disabled:R},_.a("div",{class:"ytStandardsTextareaShapeErrorMessage"},Xg),_.a(_.E,{cond:RA,then:function(){return _.a("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return S().length+"/"+bW()})}}))}}))},"Ji");
dCx.idomCompat={callbacks:{onInput:!0}};var ujS=_.H(function(e){var g={};return _.a("div",{class:_.o6("ytStandardsTextareaShapeError",(g.ytStandardsTextareaShapeErrorDisabled=e.disabled,g)),role:"alert"},_.a(_.SU,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),e.children)},"Ki");var zC7=_.H(function(e){var g=e.data;var c=e.controlledMode;var k=e.disableFormsApiMode;var I=e.text;var J=e.onInput;var q=e.characterLimit;var L=e.validation;e=e.disabled;var n=function(){return g().formFieldMetadata},R=function(){return(c==null?0:c())?2:!n()||k!=null&&k()?1:3};
_.lo(function(){R()===2?(I==null?void 0:I())===void 0&&_.jW(Error("Kl")):R()===3&&((I==null?void 0:I())!==void 0&&_.jW(Error("Ll")),(L==null?void 0:L())!==void 0&&_.jW(Error("Ml")),(q==null?void 0:q())!==void 0&&_.jW(Error("Nl")),J!==void 0&&_.jW(Error("Ol")))});
var W=OVS(n);return _.a("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.a(dCx,{text:function(){if(R()===2)return I==null?void 0:I();if(R()===3){var b;return(b=W())==null?void 0:b.value}return""},
label:function(){var b;return(b=g().contentProperties)==null?void 0:b.labelText},
hideLabel:function(){var b;return(b=g().displayProperties)==null?void 0:b.hideLabel},
placeholder:function(){var b;return(b=g().contentProperties)==null?void 0:b.placeholderText},
hint:function(){var b;return(b=g().contentProperties)==null?void 0:b.hintText},
outline:function(){var b;return!((b=g().displayProperties)==null?0:b.hideBorder)},
overflowStyle:function(){var b;return((b=g().displayProperties)==null?0:b.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:e,disableNewLines:function(){var b;return(b=g().displayProperties)==null?void 0:b.disableNewLines},
onInput:function(b){if(R()===3){var h;(h=W())==null||h.updateValue(b)}else J==null||J(b)},
error:function(){if(R()===3){var b;if(((b=W())==null?0:b.errors)&&W().errors.length>0){b=W().errors[0].message;var h,X=(h=g().contentProperties)==null?void 0:h.maxCharacterCount;return{errorMessage:b,maxChars:X}}}},
validation:L,characterLimit:q,rows:function(){var b;return(b=g().displayProperties)==null?void 0:b.rows}}))},"Li");var H9x=_.H(function(e){var g=e.data;return _.a("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.a(dCx,{text:e.text,label:function(){var c;return(c=g().contentProperties)==null?void 0:c.labelText},
placeholder:function(){var c;return(c=g().contentProperties)==null?void 0:c.placeholderText},
hint:function(){var c;return(c=g().contentProperties)==null?void 0:c.hintText},
outline:function(){var c;return!((c=g().displayProperties)==null?0:c.hideBorder)},
overflowStyle:function(){var c;return((c=g().displayProperties)==null?0:c.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var c;return(c=g().displayProperties)==null?void 0:c.disableNewLines},
onInput:e.onInput,characterLimit:e.characterLimit,validation:e.validation,rows:function(){var c;return(c=g().displayProperties)==null?void 0:c.rows}}))},"Mi");var QJ7=_.H(function(e){var g=_.w(_.uF(function(){var LC,bW;return((LC=e.data().structuredContextNoteFormSchema)==null?0:(bW=LC.initialValues)==null?0:bW.noteBody)?e.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),c=g.next().value,k=g.next().value;
g=_.w(_.uF(function(){e.data();return!1}));
var I=g.next().value,J=g.next().value;g=_.w(_.uF(function(){e.data();return!1}));
var q=g.next().value,L=g.next().value;g=_.w(_.uF(function(){var LC,bW;return((LC=e.data().structuredContextNoteFormSchema)==null?0:(bW=LC.initialValues)==null?0:bW.timestamp)?e.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var n=g.next().value,R=g.next().value;g=_.w(_.uF(function(){e.data();return!1}));
var W=g.next().value,b=g.next().value;g=_.w(_.uF(function(){var LC,bW;return((LC=e.data().structuredContextNoteFormSchema)==null?0:(bW=LC.initialValues)==null?0:bW.sources)?[e.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var h=g.next().value,X=g.next().value;g=_.w(_.uF(function(){e.data();return!1}));
var D=g.next().value,f=g.next().value;g=_.w(_.uF(function(){return!1}));
var l=g.next().value,A=g.next().value;_.lo(function(){var LC;RBD((LC=e.data().structuredContextNoteFormSchema)==null?void 0:LC.id,{isSubmitting:l,onSubmit:function(){A(!0);var bW=wjl(c(),n(),h(),e.data()),RA=_.Ss().resolve(_.xk);bW&&RA&&RA.resolveCommand(bW,{commandController:{onSuccess:function(){A(!1)}}})},
isValid:function(){return I()&&!q()&&!W()&&!D()}})});
var d=function(LC){if(LC!==void 0&&(k(LC),!I()&&LC.length>0&&J(!0),I())){var bW=gDS(e.data());if(bW){var RA=bW.minLength;bW=bW.maxLength;RA&&LC.length<RA?L(!0):bW&&LC.length>bW?L(!0):L(!1)}}},S=function(LC){if(LC!==void 0){R(LC);
if(LC.length>0){var bW,RA,Xg,Fg,oA=kMl((bW=e.data())==null?void 0:(RA=bW.structuredContextNoteFormSchema)==null?void 0:(Xg=RA.fieldSchemas)==null?void 0:(Fg=Xg.timestamp)==null?void 0:Fg.validationSchema);if(oA&&(bW=oA.regex)&&!(new RegExp(bW)).test(LC)){b(!0);return}}b(!1)}},V=function(LC){if(LC!==void 0){var bW=LC.split(/[ \n]/).map(function(RA){return RA.trim()});
X(bW);if(LC.length>0)for(LC=_.w(bW),bW=LC.next();!bW.done;bW=LC.next())if(!vD0(bW.value)){f(!0);return}f(!1)}},Q=function(){return{validate:function(LC){if(I()){var bW=gDS(e.data());
if(bW){var RA=bW.minLength;bW=bW.translations;if(RA&&LC.length<RA)return bW==null?void 0:bW.minLengthErrorMessage}}}}},y=function(){var LC=gDS(e.data()),bW=LC==null?void 0:LC.maxLength,RA;
LC=LC==null?void 0:(RA=LC.translations)==null?void 0:RA.maxLengthErrorMessage;if(bW&&LC)return{maxChars:bW,errorMessage:LC}},O=function(){return{validate:function(LC){if(LC){var bW,RA,Xg,Fg,oA=kMl((bW=e.data())==null?void 0:(RA=bW.structuredContextNoteFormSchema)==null?void 0:(Xg=RA.fieldSchemas)==null?void 0:(Fg=Xg.timestamp)==null?void 0:Fg.validationSchema);
if(oA&&(bW=oA.regex,oA=oA.translations,bW&&!(new RegExp(bW)).test(LC)))return oA==null?void 0:oA.regexErrorMessage}}}},Jq=function(){return{validate:function(LC){if(LC){var bW,RA,Xg,Fg,oA=Jhj((bW=e.data())==null?void 0:(RA=bW.structuredContextNoteFormSchema)==null?void 0:(Xg=RA.fieldSchemas)==null?void 0:(Fg=Xg.sources)==null?void 0:Fg.validationSchema);
if(oA&&(bW=oA.translations,bW==null?0:bW.selectedErrorMessage))for(LC=LC.split(/[ \n]/).map(function(Zt){return Zt.trim()}),LC=_.w(LC),RA=LC.next();!RA.done;RA=LC.next())if(!vD0(RA.value))return LC=void 0,(LC=bW)==null?void 0:LC.selectedErrorMessage}}}};
return _.a("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.a("div",{class:"ytStructuredContextNoteViewModelTextField"},_.a(_.eS,{data:function(){var LC;return(LC=e.data())==null?void 0:LC.noteContents}},{textFormFieldViewModel:function(LC){return _.a(H9x,{data:LC.data,
onInput:d,validation:Q,characterLimit:y})},
textFieldViewModel:function(LC){return _.a(zC7,{data:LC.data,disableFormsApiMode:!0,onInput:d,validation:Q,characterLimit:y})}})),_.a("div",{class:"ytStructuredContextNoteViewModelTextField"},_.a(_.eS,{data:function(){var LC;
return(LC=e.data())==null?void 0:LC.noteTimestamp}},{textFormFieldViewModel:function(LC){return _.a(H9x,{data:LC.data,
onInput:S,validation:O})},
textFieldViewModel:function(LC){return _.a(zC7,{data:LC.data,disableFormsApiMode:!0,onInput:S,validation:O})}})),_.a("div",{class:"ytStructuredContextNoteViewModelTextField"},_.a(_.eS,{data:function(){var LC;
return(LC=e.data())==null?void 0:LC.noteSources}},{textFormFieldViewModel:function(LC){return _.a(H9x,{data:LC.data,
onInput:V,validation:Jq})},
textFieldViewModel:function(LC){return _.a(zC7,{data:LC.data,disableFormsApiMode:!0,onInput:V,validation:Jq})}})))},"Ni");
QJ7.idomCompat=!0;_.sL(QJ7,"yt-structured-context-note-view-model",{props:{data:_.jx}});var UCg=_.H(function(e){var g=_.w(_.uF(function(){var J;if((J=e.controlled)==null?0:J.call(e))return[];var q;return(((q=e.data())==null?void 0:q.chips)||[]).map(function(L){L=_.x(L,_.Y8);if(L==null?0:L.selected)return qTO(L.chipValue)}).filter(function(L){return L!==void 0})})),c=g.next().value,k=g.next().value,I=function(J){var q=qTO(J.chipValue);
if(q!==void 0){var L;if((L=e.controlled)==null?0:L.call(e))return void e.controlled().onTap(q);J=c().includes(q)?[].concat(_.KY(c().filter(function(R){return R!==q}))):[].concat(_.KY(c()),[q]);
k(J);var n;if((n=e.uncontrolled)==null?0:n.call(e))e.uncontrolled().onUpdate(J)}};
return _.a("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.a(_.Yz,{each:function(){return e.data().chips||[]}},function(J){return _.a("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.a(_.rIw,{data:function(){return _.x(J,_.Y8)},
selected:function(){var q;if(q=_.x(J,_.Y8)){var L=qTO(q.chipValue);if(L!==void 0){var n;q=((n=e.controlled)==null?0:n.call(e))?e.controlled().selectedValues.includes(L):c().includes(L)}else q=void 0}else q=!1;return q},
callback:I}))}))},"Oi");var oOS=_.H(function(e){var g=e.data;var c=function(){var L;return((L=g())==null?void 0:L.flowStateKey)||""},k=_.O1(_.uQ,c),I=function(){var L;
return(L=_.x(k(),oYl))==null?void 0:L.chips},J=function(L){if(L!==void 0){var n=I()||[];
n=n.find(function(R){return R===L})?n.filter(function(R){return R!==L}):[].concat(_.KY(n),[L]);
n=Object.assign({},k(),{feedbackFormFlowState:Object.assign({},_.x(k(),oYl),{chips:n})});_.As(_.cY("flowStateEntity",c(),n))}},q=function(){var L;
return _.x((L=g())==null?void 0:L.inputBox,Z$o)};
e=_.RX(function(L){var n=q();n=!(n==null?0:n.maxChars)||L.length<=n.maxChars;L=Object.assign({},k(),{feedbackFormFlowState:Object.assign({},_.x(k(),oYl),{detail:L}),abuseReportFlowState:Object.assign({},_.x(k(),aO),{navigationEnabled:n})});_.As(_.cY("flowStateEntity",c(),L))},150);
return _.a("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.a("div",{class:"ytFeedbackFormViewModelChips"},_.a(_.eS,{data:function(){var L;return(L=g())==null?void 0:L.chipSelection}},{chipSelectionFormFieldViewModel:function(L){return _.a(UCg,{data:L.data,
controlled:function(){return{selectedValues:I()||[],onTap:J}}})}})),_.a("div",{class:"ytFeedbackFormViewModelInputBox"},_.a(dCx,{text:function(){var L;
return(L=_.x(k(),oYl))==null?void 0:L.detail},
placeholder:function(){var L;return((L=q())==null?void 0:L.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var L=q();if(L&&L.maxChars)return{maxChars:L.maxChars,errorMessage:L.maxCharsExceededErrorMessage||""}},
onInput:e})),_.a("div",{class:"ytFeedbackFormViewModelFooterText"},_.a(_.fa,{text:function(){return g().footerText}})))},"Pi");
oOS.idomCompat=!0;_.sL(oOS,"yt-feedback-form-view-model",{props:{data:_.jx}});var Z9O=_.H(function(e){var g=e.data;var c=_.O1(wLz,function(){return g().flowStateKey||""}),k=function(){var I;
_.GF((I=_.x(c(),aO))==null?void 0:I.navigationCommand)};
return _.a("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.a("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.a(_.eS,{data:function(){return g().cancelButton}},{buttonViewModel:function(I){return _.a(_.oD,{data:I.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:k})}}),_.a(_.eS,{data:function(){var I;
if(g().navButton){var J=Object;var q=J.assign,L=_.x(g().navButton,_.$8),n=((I=_.x(c(),aO))==null?0:I.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",R,W;I=_.x((R=_.x(c(),aO))==null?void 0:R.navigationCommand,_.EL);R=(W=_.x(I,_.uf))==null?void 0:W.url;J={buttonViewModel:q.call(J,{},L,{state:n,iconName:R?"OPEN_IN_NEW":""})}}else J=void 0;return J}},{buttonViewModel:function(I){return _.a(_.oD,{data:I.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:k})}})))},"Qi");
Z9O.idomCompat=!0;_.sL(Z9O,"yt-report-form-bottom-bar-view-model",{props:{data:_.jx}});var VgM=_.H(function(e){var g=e.nextStep;return _.a("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.a("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.a(_.SU,{icon:function(){return g().iconName||""}})),_.a("div",null,_.a(_.fa,{text:function(){return g().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ri"),tgQ=_.H(function(e){var g=e.data;
var c,k=(c=_.Ss().resolve(_.NN(_.gb)))==null?void 0:c(),I=_.O1(_.uQ,function(){return g().flowStateKey||""});
return _.a("yt-report-form-confirmation-page-view-model",{class:function(){var J;return((J=_.x(I(),aO))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.a("div",{class:function(){var J;
return((J=_.x(I(),aO))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.a(_.pv,{data:function(){return k&&g().imageDark?g().imageDark:g().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.a("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.a("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return g().confirmationHeader}),_.a("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.a(_.fa,{text:function(){return g().confirmationText}})),_.a("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.a(_.fa,{text:function(){return g().lawEnforcementText}})),
_.a("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return g().whatToExpectHeader}),_.a(_.E,{cond:function(){return g().nextSteps},
then:function(J){return _.a("div",null,_.a(_.Yz,{each:J},function(q){return _.a(VgM,{nextStep:q})}))}}),_.a(_.E,{cond:function(){return g().legalReportText},
then:function(J){return _.a("div",null,_.a(_.fa,{text:J,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Si");
tgQ.idomCompat=!0;_.sL(tgQ,"yt-report-form-confirmation-page-view-model",{props:{data:_.jx}});var B5O=_.H(function(e){var g=e.data;var c=function(){var J;return((J=_.x(g().inputBox,Z$o))==null?void 0:J.maxChars)||500},k=function(){return g().flowStateKey||""},I=_.O1(_.uQ,k);
e=_.RX(function(J){J=Object.assign({},I(),{flowFormState:{isValid:J.length<=c()},abuseReportFlowState:{userComments:J,navigationEnabled:!(J.length>c()),isReportFormDirty:!0}});_.lF().dispatch(_.ET("flowStateEntity",k(),J))},150);
_.lo(function(){var J=Object.assign({},I(),{flowFormState:{isValid:!0}});_.lF().dispatch(_.ET("flowStateEntity",k(),J))});
return _.a("yt-report-form-details-page-view-model",{class:function(){var J;return((J=_.x(I(),aO))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.a("h1",{class:function(){var J;
return((J=_.x(I(),aO))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return g().detailsPageHeader}),_.a("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.a(_.fa,{text:function(){return g().bodyText}})),_.a("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.a(dCx,{label:function(){var J;
return((J=_.x(g().inputBox,Z$o))==null?void 0:J.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var J;return{errorMessage:((J=_.x(g().inputBox,Z$o))==null?void 0:J.maxCharsExceededErrorMessage)||"",maxChars:c()}},
onInput:e})))},"Ti");
B5O.idomCompat=!0;_.sL(B5O,"yt-report-form-details-page-view-model",{props:{data:_.jx}});var N5x=_.H(function(e){var g=e.data;var c=function(){return g().flowStateKey||""},k=_.O1(_.uQ,c),I=function(){return _.x(k(),aO)};
return _.a("yt-report-form-reason-select-page-view-model",{class:function(){var J;return((J=I())==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.a("h1",{class:function(){var J;
return((J=I())==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return g().pageHeader}),_.a("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.a(_.fa,{text:function(){return g().bodyText}})),_.a("div",{class:function(){var J;
return((J=I())==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.a(lmz,{data:function(){return _.x(g().radioButtonGroup,PYz)},
onSelected:function(J,q){J=Object.assign({},k(),{abuseReportFlowState:Object.assign({},I(),{reasonKey:q.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:q.command})});_.As(_.cY("flowStateEntity",c(),J))},
selectedKey:function(){var J;return(J=I())==null?void 0:J.reasonKey},
groupName:"report-form-reason-select-page"})))},"Ui");
N5x.idomCompat=!0;_.sL(N5x,"yt-report-form-reason-select-page-view-model",{props:{data:_.jx}});var Sal=_.H(function(e){var g=e.data;var c,k=(c=_.Ss().resolve(_.NN(_.gb)))==null?void 0:c();return _.a("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.a("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.a(_.pv,{data:function(){return k&&g().imageDark?g().imageDark:g().image},
alt:""})),_.a("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.a("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return g().header}),_.a(_.fa,{text:function(){return g().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Vi");
Sal.idomCompat=!0;_.sL(Sal,"yt-report-form-sign-in-page-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;var c=function(){return g().titleSuperscript},k=function(){return g().answersShelf},I=function(){return g().videoShelf},J=function(){var Q;
return(Q=g().textInputPlaceholder)==null?void 0:Q.content},q=function(){return g().showOpenTextInput},L=function(){var Q;
return(Q=g().textInputValue)==null?void 0:Q.content},n="",R=function(){return g().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
e=_.w(_.Wa("",void 0,"ioQph"));var W=e.next().value,b=e.next().value;e=_.w(_.Wa(!1,void 0,"Srxao"));var h=e.next().value,X=e.next().value,D=function(){return{state:h()||W()?"active":"disabled",disabled:!(h()||W())}};
_.Tr(function(){q()&&L()&&b(L())});
var f=function(Q){var y=g().onUpdateText;y&&_.GF(y,{form:{userQuery:Q}});b(Q)},l=_.RX(function(Q){f(Q.target.value.trim())},150),A=_.Ve(function(Q){var y;
n=(y=Q.target.value)==null?void 0:y.trim();l(Q);return!1}),d=_.Ve(function(Q){Q.key==="Enter"&&(h()||W())&&(f(Q.target.value.trim()),V());
return!1}),S=function(Q,y){X(y);
if(y){if(g().isMultiTurnFlow&&!n){var O;f((O=Q==null?void 0:Q.text)!=null?O:"")}g().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&V()}else b(n)},V=function(){var Q=_.x(g().nextButtonViewModel,_.$8);
if(Q==null?0:Q.trackingParams){Q=_.Jb(Q.trackingParams);var y=_.EM();y&&Q&&_.pA(y,Q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(Q=g().onNextStepCommand)&&_.GF(Q)};
e={};return _.a("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.a("div",{class:"ytwTalkToRecsTopCornerButton"},_.a(_.eS,{data:function(){return g().topCornerButton}},{buttonViewModel:_.oD})),_.a("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.a("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.a(_.fa,{text:function(){return g().title}}),_.a(_.E,{cond:c,
then:function(){return _.a("sup",{class:"ytwTalkToRecsSuperScript"},_.a(_.fa,{text:c}))}})),_.a("div",{class:"ytwTalkToRecsSubtitle"},_.a(_.fa,{text:function(){return g().subtitle}})),_.a("div",{class:"ytwTalkToRecsResultsShelf"},_.a(_.E,{cond:k,
then:function(){return _.a(_.eS,{data:k},{chipsShelfViewModel:function(Q){return _.a("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.a(_.ef,{data:Q.data,callback:S,selectionBehavior:R}))}})}}),_.a(_.E,{cond:I,
then:function(){return _.a(_.eS,{data:I},{horizontalShelfViewModel:function(Q){return _.a("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.a(_.mo,{data:Q.data,thumbnailAspectRatio:0}))}})}})),_.a("div",{class:_.o6("ytwTalkToRecsRefinementContainer",(e.ytwTalkToRecsBottomMargin=function(){return g().isMultiTurnFlow},e))},_.a(_.E,{cond:q,
then:function(){return _.a("div",{class:"ytwTalkToRecsUserInputBox"},_.a("input",{type:"text",class:"ytwTalkToRecsTextInput",title:J,placeholder:J,value:W,"on:input":A,"on:keyup":d,maxlength:200}))}}),_.a(_.eS,{data:function(){return g().isMultiTurnFlow?g().nextButtonViewModel:void 0}},{buttonViewModel:function(Q){return _.a("div",{class:"ytwTalkToRecsFlowControlButtons"},_.a(_.oD,{data:Q.data,
buttonOverrides:D}))}}),_.a(_.eS,{data:function(){return g().isMultiTurnFlow?g().resetButtonViewModel:void 0}},{buttonViewModel:function(Q){return _.a("div",{class:"ytwTalkToRecsFlowControlButtons"},_.a(_.oD,{data:Q.data,
onClick:function(){var y,O=(y=_.x(g().resetButtonViewModel,_.$8))==null?void 0:y.onTap;O&&_.GF(O)}}))}}))))},"Xi"),"yt-talk-to-recs-view-model",{props:{data:_.jx}});var Lg7={sources:[{clientResource:{imageName:"CHECK"}}]};var yMO=_.H(function(e){var g=_.io("div");e=_.FA(e,{error:void 0});var c=e.data,k=e.error,I=e.onSelected;e=e.className;var J=_.w(_.uF(function(){return nDv(c())})),q=J.next().value,L=J.next().value;
bLO(c,function(X){L(X);var D,f,l=aZS((D=c().options)==null?void 0:(f=D[X])==null?void 0:f.value,c().type);I==null||I(l);g.value.focus()});
J=_.Ve(function(){if(!c().disabled){var X=c(),D=q(),f=g.value;X.options&&(X=rhl(X.options,D,X.label),_.Ss().resolve(_.rC).openSheet({viewModel:X},f))}});
var n=_.LfW(),R=function(){return!!k()},W=function(){return!!c().disabled},b={},h={};
return _.a("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.a("div",{class:_.o6("ytDropdownViewModelDropdownContainer",e,(b.ytDropdownViewModelDropdownContainerErrorBorder=R,b.ytDropdownViewModelDropdownContainerDisabled=W,b)),"on:click":J,el:g,role:"combobox",tabindex:0,"on:keydown":n,"aria-invalid":R,"aria-disabled":W,"aria-describedby":function(){return R()?"dropdown-view-model-error":void 0}},_.a("div",{class:"ytDropdownViewModelText"},RRj(c,R,q),EDv(c,q)),_.a("div",{class:_.o6("ytDropdownViewModelChevronDown",
(h.ytDropdownViewModelChevronDownDisabled=W,h))},_.a(_.SU,{icon:"CHEVRON_DOWN"}))),WgX(c,k))},"Yi");_.sL(_.H(function(e){var g=e.data;var c=function(I){var J=XjS(g());J.videoMetadata||(J.videoMetadata={});J.videoMetadata.sponsorshipsMetadata||(J.videoMetadata.sponsorshipsMetadata={});J.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(I)},k=function(I){var J=XjS(g());
J.scheduledRedirectMetadata||(J.scheduledRedirectMetadata={});J.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(I)};
return _.a("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.a("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.a("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.a(_.fa,{text:function(){return g().title}}),_.a(_.SU,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.a(_.fa,{text:function(){return g().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.a(_.eS,{data:function(){return g().tierChoices}},{dropdownViewModel:function(I){return _.a("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.a(yMO,{data:I.data,
onSelected:c}))}}),_.a(_.eS,{data:function(){return g().startTimeChoices}},{dropdownViewModel:function(I){return _.a("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.a(yMO,{data:I.data,
onSelected:k}))}}),_.a(_.fa,{text:function(){return g().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.a("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.a(_.eS,{data:function(){return g().scheduleButton}},{panelFooterViewModel:Wi})))},"Zi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;e=e.className===void 0?"":e.className;var c=_.O1(wLz,function(){return g().flowStateEntityKey||""}),k={};
k=_.o6("ytFlowBottomBarViewModelFlowBottomBarButtons",(k.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return g().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||g().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},k));
var I={},J=_.o6("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",k,(I.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return g().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},I.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return g().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},I));
I={};var q=_.o6("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",k,(I.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return g().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},I.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return g().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},I));
k={};k=_.o6("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(k.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return g().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},k.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return g().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},k.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return g().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
k));
e=_.o6("ytFlowBottomBarViewModelHost",e);return _.a("yt-flow-bottom-bar-view-model",{class:e},_.a(_.E,{cond:function(){var L;return(L=g())==null?void 0:L.textSection},
then:function(L){return _.a("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.a(_.fa,{text:L}))}}),_.a("div",{class:k},_.a(_.eS,{data:function(){return g().secondaryButton}},{buttonViewModel:function(L){return _.a(_.oD,{data:L.data,
className:q})}}),_.a(_.eS,{data:function(){return g().primaryButton}},{buttonViewModel:function(L){return _.a(_.oD,{data:L.data,
className:J,buttonOverrides:function(){var n;return{disabled:!((n=c())==null||!n.primaryButtonDisabled)}}})}})))},"$i"),"yt-flow-bottom-bar-view-model",{props:{data:_.jx,
className:_.TF}});var K_X="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),he=function(){var e=_.z.apply(this,arguments)||this;e.enableScrollingFix=!0;e.bottomBar=!1;e.fitContent=!1;return e};
_.Y(he,_.z);_.v=he.prototype;_.v.ready=function(){_.G("enable_pdp_icon_prefetch")&&CvS(_.Ss().resolve(_.dNQ),0,K_X)};
_.v.focus=function(e){this.topBar?_.Un(this.topBar,e):this.paperDialog.focus(e)};
_.v.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$20980_scroller&&(this.JSC$20980_scroller.dialogElement=this.paperDialog,this.JSC$20980_scroller.attached&&typeof this.JSC$20980_scroller.attached==="function"&&this.JSC$20980_scroller.attached())};
_.v.onDataChanged=function(){var e;this.fitContent=!((e=this.data)==null||!e.fitContent);var g;this.bottomBar=!((g=this.data)==null||!g.bottomBar)};
_.v.onProgressChanged=function(){var e,g,c=((g=(e=this.data)==null?void 0:e.progress)!=null?g:0)*100;this.progressElement.style.width=c+"%"};
_.v.isProgressHidden=function(){var e;return!((e=this.data)==null?0:e.progress)};
_.v.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(e){return e&&!e.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
he.prototype.onProgressChanged=he.prototype.onProgressChanged;he.prototype.onDataChanged=he.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],he.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],he.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],he.prototype,"enableScrollingFix",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],he.prototype,"bottomBar",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],he.prototype,"fitContent",void 0);_.t([_.Cs("#progress"),_.B("design:type",HTMLElement)],he.prototype,"progressElement",void 0);_.t([_.Cs("#scroller"),_.B("design:type",Object)],he.prototype,"JSC$20980_scroller",void 0);_.t([_.Cs("ytd-flow-top-bar-renderer"),_.B("design:type",HTMLElement)],he.prototype,"topBar",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],he.prototype,"onDataChanged",null);_.t([_.OY("data.progress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],he.prototype,"onProgressChanged",null);_.t([_.bF({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],he);
_.U(he,"ytd-flow-step-renderer",function(){if(XKX!==void 0)return XKX;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return XKX=e},{mode:1});var XK=function(e){this.resolveCommand=e;this.steps={}},O9v=function(e,g){g=_.w(g||[]);
for(var c=g.next();!c.done;c=g.next()){c=c.value;var k=Object.values(c)[0],I=void 0;if((I=k)==null?0:I.stepId)e.steps[k.stepId]=c}},C9S=function(e,g){var c,k,I,J,q;
return _.r(function(L){if((c=e.state)==null||!c.currentStepId)return L.return(void 0);k=e.getCurrentStep();if(!k)return L.return(Mgl(e));if(I=_.x(k,_.vU))e.logVEScreen(I),((J=I)==null?0:J.onStepStartCommand)&&e.resolveCommand((q=I)==null?void 0:q.onStepStartCommand,{});I&&g&&(e.logFlowEvent(I,g),g.steps&&!g.steps.includes(k)&&g.steps.push(k));return L.return(k)})};
XK.prototype.back=function(){var e;(e=this.state)!=null&&e.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
XK.prototype.handleUpdateFlowCommand=function(e){e.steps&&O9v(this,e.steps);e.entityUpdateCommand&&this.resolveCommand(e.entityUpdateCommand,{});e.flowContinuationCommand&&(e=e.flowContinuationCommand)&&(this.getFlowContinuationCommand=e);this.awaitFlowContinuation&&(e=this.getCurrentStep(),this.awaitFlowContinuation(e),this.awaitFlowContinuation=void 0)};
XK.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Mgl=function(e){return _.r(function(g){return e.getFlowContinuationCommand?g.return(new Promise(function(c){e.awaitFlowContinuation=c;e.getFlowContinuationCommand&&e.resolveCommand(e.getFlowContinuationCommand,{flow_state:e.state})})):g.return(Promise.resolve(void 0))})};
XK.prototype.getCurrentStep=function(){var e;if((e=this.state)!=null&&e.currentStepId)return this.steps[this.state.currentStepId]};
XK.prototype.logVEScreen=function(e){var g;((g=e.screenLoggingData)==null?0:g.screenVeType)&&_.BU(_.gL(),e.screenLoggingData.screenVeType)};
XK.prototype.logFlowEvent=function(e,g){var c,k,I,J;((c=g.flowLoggingData)==null?0:c.eventNamespace)&&((k=e.flowEventData)==null?0:k.eventType)&&((I=e.flowEventData)==null?0:I.eventMetadata)&&((J=g.flowLoggingData)==null?0:J.flowType)&&(e=_.tw(g.flowLoggingData.eventNamespace,e.flowEventData.eventType,e.flowEventData.eventMetadata),_.BL().logFlowEvent(e,g.flowLoggingData.flowType))};
_.Bd.Object.defineProperties(XK.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.state)==null?void 0:e.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.state)!=null&&e.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(g,c){c.key&&c.value&&(g[c.key]=c.value);return g},{})}}});var GR=function(){var e=_.z.apply(this,arguments)||this;e.flowState=_.G("web_use_flow_state_manager")?void 0:new XK(function(g,c){c=c===void 0?{}:c;_.yJ.instance.resolveCommand(g,{form:{form:c,element:e.hostElement}})});
e.JSC$20991_flowStateManager=_.G("web_use_flow_state_manager")?_.Ss().resolve(_.kh):void 0;e.currentTargetId="";e.initialState=!0;e.isLoading=!1;e.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"};e.containsTalkToRecs=!1;return e};
_.Y(GR,_.z);_.v=GR.prototype;_.v.onPopupClosed=function(e){if(!e||this.hostElement===e.detail.popupRenderer){if(this.JSC$20991_flowStateManager){var g;((g=this.data)==null?0:g.flowStateEntityKey)&&this.JSC$20991_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.v.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.v.focus=function(e){var g=this;_.Y_(function(){var c=_.o1(g.hostElement).querySelector("ytd-flow-step-renderer");(c==null?0:c.topBar)?c.focus(e):g.topBar&&_.Un(g.topBar,e)},1)};
_.v.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.v.computeTopBarHidden=function(e){var g;return!((g=_.x(e,_.vU))==null||!g.topBarOverride)};
_.v.onCurrentFlowChange=function(){if(this.JSC$20991_flowStateManager&&this.data&&this.flow){var e=wkg(this.JSC$20991_flowStateManager,this.data),g;if(e&&((g=this.flow)==null?0:g.currentStepId)){e=rSQ(e,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var c;!e&&((c=this.data)==null?0:c.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.v.observeData=function(){var e=this;if(this.JSC$20991_flowStateManager){var g=this.currentTargetId,c,k,I=(k=(c=this.data)==null?void 0:c.targetId)!=null?k:"";g!==I&&g&&qS7(this.JSC$20991_flowStateManager,g);this.currentTargetId=I;this.data&&Lyo(wkg(this.JSC$20991_flowStateManager,this.data),function(J){J&&(e.initialState=!1,e.currentFlowStep={flowStepRenderer:J},e.isLoading=!e.currentFlowStep,e.autofocusAndRefit(),e.updateContainsTalkToRecs(),e.logVEScreen(),e.logFlowEvent())})}};
_.v.dataChanged=function(){var e=this,g,c;return _.r(function(k){if(k.nextAddress==1){if(!e.flowState)return k.return();((g=e.data)==null?0:g.steps)&&O9v(e.flowState,e.data.steps);if((c=e.data)==null?0:c.flowContinuationCommand){var I=e.flowState,J=e.data.flowContinuationCommand;J&&(I.getFlowContinuationCommand=J)}return k.yield(C9S(e.flowState,e.data),2)}e.currentFlowStep=k.yieldResult;_.Uh(k)})};
_.v.flowChanged=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1){if(!e.flowState||!e.flow)return c.return();e.flowState.state=e.flow;e.isLoading=!0;return c.yield(C9S(e.flowState,e.data),2)}g=c.yieldResult;if(!g||e.flow.isLoading)return c.return();e.currentFlowStep=g;e.initialState=!1;e.isLoading=!1;e.autofocusAndRefit();e.updateContainsTalkToRecs();_.Uh(c)})};
_.v.logVEScreen=function(){var e,g,c=(e=_.x(this.currentFlowStep,_.vU))==null?void 0:(g=e.screenLoggingData)==null?void 0:g.screenVeType;c&&_.BU(_.Ss().resolve(_.I5),c)};
_.v.logFlowEvent=function(){var e=_.x(this.currentFlowStep,_.vU),g,c,k,I,J,q;(this==null?0:(g=this.data)==null?0:(c=g.flowLoggingData)==null?0:c.eventNamespace)&&(this==null?0:(k=this.data)==null?0:(I=k.flowLoggingData)==null?0:I.flowType)&&(e==null?0:(J=e.flowEventData)==null?0:J.eventType)&&(e==null?0:(q=e.flowEventData)==null?0:q.eventMetadata)&&(e=_.tw(this.data.flowLoggingData.eventNamespace,e.flowEventData.eventType,e.flowEventData.eventMetadata),_.BL().logFlowEvent(e,this.data.flowLoggingData.flowType))};
_.v.updateContainsTalkToRecs=function(){var e,g=(e=_.x(this.currentFlowStep,_.vU))==null?void 0:e.content;this.containsTalkToRecs=!!g&&!!_.x(g,ZWO)};
_.v.autofocusAndRefit=function(){var e=this,g=_.Ss().resolve(_.NN(_.u7)),c=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),k=document.querySelector("yt-report-form-confirmation-page-view-model"),I=document.querySelector("yt-report-form-details-page-view-model"),J=document.querySelector("yt-report-form-reason-select-page-view-model"),q=document.querySelector("yt-contributor-zero-state-view-model"),
L=document.querySelector("yt-structured-context-note-view-model"),n=document.querySelector("yt-note-view-model");(!c&&g&&g.isKeyBoardInUse()||k||!c&&I||!c&&J||!c&&(q||L||n))&&_.oF(this.hostElement);_.Va(this,function(){_.oC(e.hostElement,"yt-refit")})};
_.v.handleUpdateFlowCommand=function(e){this.flowState?this.data&&(e=_.x(e,_.dxq),e.targetId===this.data.targetId&&(e.flowContinuationCommand&&(this.data.flowContinuationCommand=e.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(e),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(e)};
_.v.handleFlowNextStepCommand=function(e){this.JSC$20991_flowStateManager?this.ytComponentBehavior.resolveCommand(e):this.data&&this.flow&&this.flow.key&&(e=_.x(e,_.Acw),e.targetId===this.data.targetId&&(e=e.stepId||"",this.ytdReduxBehavior.dispatch(_.ET("flowStateEntity",this.flow.key,{currentStepId:e,stepIdStack:(this.flow.stepIdStack||[]).concat(e)}))))};
_.v.handleFlowPrevStepCommand=function(e){if(this.JSC$20991_flowStateManager)this.ytComponentBehavior.resolveCommand(e);else if(this.data&&this.flow&&this.flow.key&&(e=_.x(e,_.sMI),e.targetId===this.data.targetId)){var g=[].concat(_.KY(this.flow.stepIdStack||[]));g.length>1?(g.pop(),this.ytdReduxBehavior.dispatch(_.ET("flowStateEntity",this.flow.key,{currentStepId:g[g.length-1],stepIdStack:g}))):e.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(e.onFirstStepCommand)}};
_.v.handleYpcCancelRecurrenceCommand=function(e){if(this.data&&this.flow&&this.flow.key&&(e=_.x(e,N7O),e.targetId===this.data.targetId&&e.endpointCommand)){var g=_.x(this.flow,S9D);g&&_.x(e.endpointCommand,_.yTI)&&(_.x(e.endpointCommand,_.yTI).feedbackData=g.surveyFeedback);this.ytComponentBehavior.resolveCommand(e.endpointCommand)}};
_.v.handlePartialUpdateFlowStateEntity=function(e){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.ET("flowStateEntity",this.flow.key,e,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
GR.prototype.flowChanged=GR.prototype.flowChanged;GR.prototype.dataChanged=GR.prototype.dataChanged;GR.prototype.observeData=GR.prototype.observeData;GR.prototype.onCurrentFlowChange=GR.prototype.onCurrentFlowChange;GR.prototype.onPopupClosed=GR.prototype.onPopupClosed;_.t([_.m(_.Wv),_.B("design:type",Object)],GR.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],GR.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],GR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],GR.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],GR.prototype,"initialState",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],GR.prototype,"isLoading",void 0);_.t([_.u(),_.B("design:type",Object)],GR.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],GR.prototype,"currentFlowStep",void 0);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],GR.prototype,"onPopupClosed",null);
_.t([_.u({selectorArgs:["data.flowStateEntityKey"],selector:wLz}),_.B("design:type",Object)],GR.prototype,"flow",void 0);_.t([_.Cs("ytd-flow-top-bar-renderer"),_.B("design:type",HTMLElement)],GR.prototype,"topBar",void 0);_.t([_.OY("data","flow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GR.prototype,"onCurrentFlowChange",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GR.prototype,"observeData",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],GR.prototype,"dataChanged",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],GR.prototype,"containsTalkToRecs",void 0);_.t([_.k_("flow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],GR.prototype,"flowChanged",null);_.t([_.bF({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],GR);
var eJQ=_.oI()(GR,"ytd-flow-root-renderer",function(){if(a_v!==void 0)return a_v;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return a_v=e},{mode:_.ZF("kevlar_poly_si_batch_j025")?1:2});var jmQ=_.WJB.talkToRecsStateSelector;_.sL(_.H(function(e){var g=function(){return _.x(e.data().flowRoot,Vdg)};
_.lo(function(){var c=g(),k=function(){},I=function(){};
c&&($1x(c,GMg(c)),k=fZD(c),I=iLS(c));_.sX(function(){k();k=function(){};
I();I=function(){};
var J=g();J&&(_.Tt().dispatch(_.cY("flowStateEntity",J.flowStateEntityKey)),_.As(_.Hh({type:"TALK_TO_RECS_RESET_STEP_STATE",payload:{stepId:GMg(J)}})))})});
return _.a("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.a(_.BG,{contentId:function(){return e.data().contentId}},function(){return _.a("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.a(_.E,{cond:g,
then:function(c){return _.a(eJQ,{data:c})}}))}))},"aj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.jx}});var gwz=_.H(function(e){var g=_.FA(e,{numberOfChips:5}).numberOfChips;return _.a("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.a(_.Yz,{each:function(){return Array(g==null?void 0:g())}},function(){return _.a("div",{class:"ytGhostChipShelfChip"})}))},"bj");_.sL(_.H(function(){return _.a("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.a("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.a("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.a(gwz,null)),_.a(_.lq1,{data:{rows:1},isExploreHub:!0}))},"cj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.sL(_.H(function(e){var g=e.data;var c=e.standardUnitMinWidth;e=_.w((0,_.P1)(g));var k=e.next().value,I=e.next().value,J=function(){var L,n=(L=k())==null?void 0:L.contents;return n==null||n.length===0},q=function(){I(Object.assign({},k(),{contents:[]}))};
return _.a("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.mb(_.By({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var L=_.x(g().chipsShelf,QE7);if(L!=null&&L!=null&&L.autoselectChipOnVisible){var n,R,W=_.x(L==null?void 0:(n=L.contents)==null?void 0:n[(R=L.autoselectedChipIndex)!=null?R:0],_.Y8);W&&W.tapCommand&&_.GF(W.tapCommand)}}}))},_.a(_.BG,{contentId:function(){return g().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.a("div",null,_.a("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.a(_.eS,{data:function(){return g().header}},{sectionHeaderViewModel:function(L){return _.a(_.CW,{data:L.data,
disableHorizontalPadding:!0})}})),_.a("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.a(_.eS,{data:function(){return g().chipsShelf}},{chipsShelfViewModel:function(L){return _.a(_.ef,{data:L.data,
callback:q,selectionBehavior:1})}})),_.a("div",null,_.a(_.E,{cond:J,
then:function(){return _.a("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.a(_.lq1,{data:{rows:1},isExploreHub:!0}))}}),_.a(_.eS,{data:function(){var L;
return(L=k())==null?void 0:L.contents}},{richShelfRenderer:function(L){return _.a(_.Nfk,{data:L.data,
isInnerShelf:!0,standardUnitMinWidth:c})}})))}))},"dj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.jx,
standardUnitMinWidth:_.jx}});var xg=function(){return _.z.apply(this,arguments)||this};
_.Y(xg,_.z);
xg.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
xg.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.t([_.m(_.Wv),_.B("design:type",Object)],xg.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],xg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Tk),_.B("design:type",Object)],xg.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],xg.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Number)],xg.prototype,"standardUnitMinWidth",void 0);_.t([_.bF({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],xg);
_.U(xg,"ytd-rich-section-renderer",function(){if(Ntl!==void 0)return Ntl;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Ntl=e},{mode:2});var cJq;var smS=null;_.sL(_.H(function(e){return _.a("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.a("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.a(_.fa,{text:function(){return e.data().text}}),_.a("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"ej"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.jx}});var kQ7=_.H(function(e){var g=e.playerControlsProps;var c=e.isShortsPage;return _.a("yt-bigboard",null,_.a(_.E,{cond:function(){return g().isDragging},
then:function(){return _.a("div",{class:"ytBigboardStoryboardHost"},_.a(_.wyQ,{progressBarProps:g,isShortsPage:c}))}}))},"fj");
kQ7.idomCompat=!0;var DD={ACCOUNT_LABEL:g5("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:g5("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:g5("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:g5("AD_BADGE_HINT"),AD_BADGE_TEXT:g5("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:g5("ALL_CHANNELS_LABEL"),AMBIENT_MODE:g5("AMBIENT_MODE"),AMBIENT_MODE_OFF:g5("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:g5("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:g5("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:g5("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:g5("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:g5("APP_UPSELL_TITLE"),AUDIO_TRACK:g5("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:g5("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:g5("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:g5("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:g5("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:g5("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:g5("AUTO_ZOOM","Auto zoom"),BACK:g5("BACK"),CANCEL:g5("CANCEL"),CHANNEL_SWITCHER_LABEL:g5("CHANNEL_SWITCHER_LABEL"),CLOSE:g5("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:g5("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:g5("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:g5("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:g5("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:g5("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:g5("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:g5("COMMENT_MODAL_CONTENT"),CONFIRM_OK:g5("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:g5("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:g5("COPIED_TO_CLIPBOARD"),COPY:g5("COPY"),COPY_DEBUG_INFO:g5("COPY_DEBUG_INFO"),COPY_EMBED_CODE:g5("COPY_EMBED_CODE"),
COPY_LINK_LABEL:g5("COPY_LINK_LABEL"),COPY_VIDEO_URL:g5("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:g5("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:g5("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:g5("DELETE_FROM_DOWNLOADS"),DIALOG:g5("DIALOG"),DONE:g5("DONE"),DOWNLOAD:g5("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:g5("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:g5("FLAG_CONFIRM"),FLAG_CONTENT:g5("FLAG_CONTENT"),FLAG_LABEL:g5("FLAG_LABEL"),FLAG_TITLE:g5("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:g5("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:g5("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:g5("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:g5("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:g5("HIDE_SEARCH_FILTERS_LABEL"),HOME:g5("HOME","Home"),INVALID_RESPONSE_RECEIVED:g5("INVALID_RESPONSE_RECEIVED"),LIBRARY:g5("LIBRARY","Library"),LISTENING:g5("LISTENING"),LOADING:g5("LOADING"),LONG_PRESS_MIC_TO_SPEAK:g5("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:g5("LOOP"),MENU_DESKTOP:g5("MENU_DESKTOP"),
MENU_EXIT:g5("MENU_EXIT"),MENU_FEEDBACK:g5("MENU_FEEDBACK"),MENU_HELP:g5("MENU_HELP"),MENU_IMPRESSUM:g5("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:g5("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:g5("MENU_SETTINGS"),MENU_SIGN_IN:g5("MENU_SIGN_IN"),MENU_TITLE:g5("MENU_TITLE"),MENU_YOUR_DATA:g5("MENU_YOUR_DATA"),MORE_INFO:g5("MORE_INFO"),MORE_OPTIONS:g5("MORE_OPTIONS"),MUTE_VOLUME:g5("MUTE_VOLUME"),NEW_PLAYLIST:g5("NEW_PLAYLIST"),NEXT_VIDEO:g5("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:g5("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:g5("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:g5("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:g5("NOT_FOUND_TITLE"),NO_DOWNLOADS:g5("NO_DOWNLOADS"),NO_MIC_INPUT:g5("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:g5("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:g5("OOPS_MESSAGE"),OPEN_APP:g5("OPEN_APP"),OPEN_YOUTUBE:g5("OPEN_YOUTUBE"),PAUSE:g5("PAUSE"),PLAY:g5("PLAY"),PLAYER_CAPTION:g5("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:g5("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:g5("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:g5("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:g5("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:g5("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:g5("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:g5("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:g5("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:g5("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:g5("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:g5("PLAYER_MINIMIZE"),PLAYER_NEXT:g5("PLAYER_NEXT"),PLAYER_PAUSE:g5("PLAYER_PAUSE"),PLAYER_PLAY:g5("PLAYER_PLAY"),
PLAYER_PREVIOUS:g5("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:g5("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:g5("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:g5("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:g5("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:g5("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:g5("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:g5("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:g5("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:g5("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:g5("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:g5("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:g5("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:g5("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:g5("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:g5("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:g5("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:g5("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:g5("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:g5("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:g5("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:g5("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:g5("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:g5("PLAY_ALL"),PLEASE_FIX_ERRORS:g5("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:g5("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:g5("PREVIOUS_VIDEO"),PRIVACY_POLICY:g5("PRIVACY_POLICY"),RELOAD:g5("RELOAD"),REQUIRED_LABEL:g5("REQUIRED_LABEL"),SAVE_PLAYLIST:g5("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:g5("SCRUB_SLIDE_USER_EDU"),SEARCH:g5("SEARCH","Search"),
SEARCH_APPEND_LABEL:g5("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:g5("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:g5("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:g5("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:g5("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:g5("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:g5("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:g5("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:g5("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:g5("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:g5("SEEK_SLIDER"),SETTINGS_LABEL:g5("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:g5("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:g5("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:g5("SHOW_LESS"),SHOW_MORE:g5("SHOW_MORE"),SHOW_PLAYER_CONTROLS:g5("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:g5("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:g5("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:g5("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:g5("SIGN_IN_ON_WEB"),STABLE_VOLUME:g5("STABLE_VOLUME"),STABLE_VOLUME_OFF:g5("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:g5("STABLE_VOLUME_ON"),STATS_FOR_NERDS:g5("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:g5("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:g5("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:g5("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:g5("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:g5("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:g5("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:g5("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:g5("TIMESTAMP_SECONDS"),TOGGLE_OFF:g5("TOGGLE_OFF"),TOGGLE_ON:g5("TOGGLE_ON"),TRENDING:g5("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:g5("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:g5("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:g5("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:g5("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:g5("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:g5("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:g5("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:g5("VIDEO_LINK_LABEL")};var I8v=_.H(function(e){var g=e.playerApi;e=_.io("button",function(k){M0(k,36843)});
var c=g5("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.a("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.a("button",{el:e,class:"ytPlayerControlsJumpForwardButtonButton",title:c,"aria-label":c,"on:click":_.Ve(function(){CR(36843);g&&g().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.a("span",null,_.a(_.SU,{icon:"FAST_FORWARD"}))))},"gj");var JJ0=_.H(function(e){var g=e.appApi;e=_.io("button",function(k){M0(k,62946)});
var c=g5("OPEN_IN_MINIPLAYER");return _.a("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.a("button",{el:e,class:"ytMiniplayerButtonButton",title:c,"aria-label":c,"on:click":_.Ve(function(){CR(62946);var k,I;(I=(k=g()).openInMiniplayer)==null||I.call(k);return!1})},_.a(_.SU,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"hj");var vwl=_.H(function(e){var g=e.playerApi;e=_.io("button",function(J){M0(J,142812)});
var c=_.w(_.Wa(!1,void 0,"eOMRAb")),k=c.next().value,I=c.next().value;c=function(){return g5("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(k()?1:2)})};
return _.a("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.a("button",{el:e,class:"ytPlaybackSpeedButtonButton",title:c,"aria-label":c,"on:click":_.Ve(function(){CR(142812);if(g){var J=g(),q=k();J.setPlaybackRate(q?1:2);I(!k())}return!1})},_.a("span",null,_.a(_.SU,{icon:function(){return k()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"ij");var wSz=_.H(function(e){var g=e.title;var c=e.ariaLabel;var k=e.icon;var I=e.command;var J=e.visualElementId;e=_.io("button",function(q){J&&M0(q,J())});
return _.a("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.a("button",{el:e,class:"ytdThumbnailOverlayButtonButton",title:g,"aria-label":c,"on:click":_.Ve(function(){J&&CR(J());I&&_.Ss().resolve(_.xk).resolveCommand(I())})},_.a(_.SU,{icon:k})))},"jj");var qAg=["en-CA","en","es-MX","fr-CA"];var LTD=_.H(function(e){var g=_.FA(e,{isOverlay:!1}),c=g.captionIconType,k=g.onClick;e=g.ariaLabel;var I=g.ariaPressed,J=g.isOverlay;g=_.io("button",function(n){M0(n,127299)});
var q=_.Ve(function(n){CR(127299);k==null||k(n);return!1}),L={};
return _.a("ytm-closed-captioning-button",{class:_.o6("ytmClosedCaptioningButtonHost",(L.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return c()===-1&&J()},L.ytmClosedCaptioningButtonIconDisabled=function(){return c()===-1&&!J()},L))},_.a("button",{el:g,
class:"ytmClosedCaptioningButtonButton",title:e,"aria-label":e,"aria-pressed":I,"on:click":q},_.a(_.SU,{icon:function(){var n="";var R=_.ch().get("hl");R=!R||qAg.includes(R)?"CLOSED_CAPTION":"SUBTITLES";var W=c();switch(W){case -1:case 0:n=R;break;case 1:n=R+"_FILLED";break;default:_.gj(W)}return n}})))},"kj");
LTD.idomCompat={callbacks:{onClick:!0}};var OW="";var rJD=_.H(function(e){var g=e.playerControlsProps,c=e.onClickFn;e=_.xF(function(){var J=g(),q=-1;J.captionsAvailable&&(q=J.captionsEnabled?1:0);return q},void 0,"MZ0Wqe");
var k=_.xF(function(){var J=g();return J.captionsAvailable?_.C_(J.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.C_("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),I=_.xF(function(){var J=g();
J=J.captionsAvailable?J.captionsEnabled:void 0;return J},void 0,"fhuQRe");
return _.a("yt-closed-captions-toggle-button",null,_.a(LTD,{captionIconType:e,ariaLabel:k,ariaPressed:I,onClick:function(J){var q=g();if(q.captionsAvailable){var L=q.playerApi;if(L){var n=q.playerApi;if(n){var R=OW;if(R){n=n.getOption("captions","track");var W;OW=(W=n?n.displayName:null)!=null?W:R}else pLv(n)?(R=_.KjU(n),OW=R.length?(W=lYQ(R))?W.displayName:R[0].displayName:""):OW=""}Awz(L);_.G("mweb_disable_set_state_captions_killswitch")&&q.setState({captionsEnabled:!q.captionsEnabled})}}var b,
h;(h=(b=q.appApi).showCaptionsToggleToast)==null||h.call(b,q);c==null||c(J)},
isOverlay:!0}))},"lj");var a8X=_.H(function(e){var g=e.data;return _.a("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.a(_.xG,{data:function(){return{type:17,text:_.giC(g().label)}}}))},"mj");var nwj=_.H(function(e){var g=_.o6("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return e.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return e.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return e.size()==="small"?e.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
e.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.a("animated-seek-arrows",{class:_.o6("ytPlayerControlsAnimatedSeekArrowsHost")},_.a("span",{class:g}),_.a("span",{class:g}),_.a("span",{class:g}))},"nj");
nwj.idomCompat=!0;var RJx=_.H(function(){var e=_.C_("PLAYER_SECONDS",{seconds_placeholder:"30"}),g=_.w(_.Wa(!1,void 0,"iRJu8c")),c=g.next().value,k=g.next().value,I=_.w(_.Wa(!1,void 0,"MPnizf"));g=I.next().value;var J=I.next().value;I={};var q=_.o6("jumpForwardOverlayOverlay",(I.jumpForwardOverlayOverlayHidden=g,I));_.lo(function(){var L=null,n=null,R=function(){L!==null&&_.nu().cancelJob(L);n!==null&&_.nu().cancelJob(n);J(!0);k(!0);_.HT(_.nu(),function(){J(!1)});
L=_.HT(_.nu(),function(){J(!0);n=_.HT(_.nu(),function(){k(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",R);_.sX(function(){window.removeEventListener("jump-forward-clicked",R)})});
return _.a("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.a(_.E,{cond:c,then:function(){return _.a("div",{class:q},_.a(nwj,{direction:1,size:"large"}),_.a("div",null,e))}}))},"oj");var EwD=DD.MUTE_VOLUME,WTQ=DD.UNMUTE_VOLUME,bNz=_.H(function(e){var g=e.muteIconType;var c=e.onClick;var k=e.useOutlineIcon;var I=e.useDelhiIcons;e=_.io("button",function(L){M0(L,28662)});
var J=function(){var L=g(),n=k==null?void 0:k(),R=I==null?void 0:I(),W="",b="";switch(L){case -1:case 0:W=n?"VOLUME_OFF":R?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";b=WTQ;break;case 1:W=n?"VOLUME_UP_OUTLINE":R?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";b=EwD;break;case 2:W=n?"VOLUME_DOWN_OUTLINE":R?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";b=EwD;break;default:_.gj(L)}return{iconName:W,ariaLabel:b}},q=function(){return J().ariaLabel};
return _.a("ytm-mute-button",{class:"ytmMuteButtonHost"},_.a("button",{el:e,class:"ytmMuteButtonButton",title:q,"aria-label":q,"on:click":_.Ve(function(L){CR(28662);c==null||c(L);return!1})},_.a("span",null,_.a(_.SU,{icon:function(){return J().iconName}}))))},"pj");var hJg=_.H(function(e){var g=e.volumeProps;var c=e.onClickFn;var k=e.useOutlineIcon;var I=e.useDelhiIcons;return _.a("yt-mute-toggle-button",null,_.a(bNz,{muteIconType:function(){var J=g();return J.volumeMuted||J.volume===0?0:J.volume>50?1:2},
onClick:function(J){var q=g().playerApi;q&&(q.isMuted()?q.unMute():q.mute(!1));c==null||c(J)},
useOutlineIcon:function(){return!(k==null||!k())},
useDelhiIcons:function(){return!(I==null||!I())}}))},"qj");
hJg.idomCompat=!0;var XSQ=_.H(function(e){var g=e.data;var c=_.io("ytm-paid-content-overlay-renderer");return _.a("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:c,"on:animationend":_.Ve(function(){c.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.a(_.d4,{command:function(){return g().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.a(_.E,{cond:function(){var k;return(k=g().icon)==null?void 0:k.iconType},
then:function(){return _.a("span",null,_.a(_.SU,{icon:function(){var k;return(k=g().icon)==null?void 0:k.iconType}}))}}),_.a("div",{class:"ytmPaidContentOverlayText"},_.a(_.fa,{text:function(){return g().text}})),_.a(_.E,{cond:function(){return g().navigationEndpoint},
then:function(){return _.a(_.SU,{icon:"CHEVRON_RIGHT"})}})))},"rj");
XSQ.idomCompat=!0;var wnX=[].concat(_.KY([{register:function(e){var g=CQx(e),c;(c=e().playerApi)==null||c.addEventListener("onVolumeChange",g);return function(){}}},
{register:function(e){var g=ePM(e);e=e().playerApi;e==null||e.addEventListener("captionschanged",g);e==null||e.addEventListener("captionssettingschanged",g);e==null||e.addEventListener("onCaptionsTrackListChanged",g);return function(){}}}]),[{register:function(e){var g=yho(e),c;
(c=e().playerApi)==null||c.addEventListener("onStateChange",g);return function(){}}},
{register:function(e){var g=KgS(e),c;(c=e().playerApi)==null||c.addEventListener("onPlaybackRateChange",g);return function(){}}},
{register:function(e){var g=OLg(e),c;(c=e().playerApi)==null||c.addEventListener("onVideoDataChange",g);return function(){}}},
{register:function(e){var g=MlQ(e),c,k;(c=e())==null||(k=c.playerApi)==null||k.addEventListener("onVideoProgress",g);return function(){}}}]);var GQD=_.H(function(e){var g=e.data;var c=function(){return _.C_("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+g().playbackRate})};
return _.a(_.E,{cond:function(){return g().playbackRate&&g().playbackRate!==1},
then:function(){return _.a("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.a("div",{class:"ytPlaybackRateOverlayOverlay"},_.a(nwj,{direction:1,size:"small"}),_.a("div",{class:"ytPlaybackRateOverlayLabel"},c)))}})},"tj");var xXx=_.H(function(e){var g=e.data;return _.a("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.a(_.E,{cond:function(){var c,k=(c=g())==null?void 0:c.playerResponse,I;return k==null?void 0:(I=k.paidContentOverlay)==null?void 0:I.paidContentOverlayRenderer},
then:function(c){return _.a(XSQ,{data:c})}}))},"vj"),DXX=_.H(function(e){var g=e.props;
var c=e.data;var k=e.options;var I=function(){var R,W,b,h;return(R=c())==null?void 0:(W=R.playerResponse)==null?void 0:(b=W.playerConfig)==null?void 0:(h=b.inlinePlaybackConfig)==null?void 0:h.showAudioControls},J=function(){var R,W;
if(I()&&((R=k())==null?void 0:(W=R.additionalButton)==null?void 0:W.button)!==void 0){var b,h,X;R=(b=c())==null?void 0:(h=b.playerApi)==null?void 0:(X=h.getSize())==null?void 0:X.height;if(!(R===void 0||R<180)){var D,f;return(D=k())==null?void 0:(f=D.additionalButton)==null?void 0:f.button}}},q=function(){var R,W;
return(R=k())==null?void 0:(W=R.additionalButton)==null?void 0:W.thumbnailOverlayButtonRenderers},L=function(){var R,W;
return(R=k())==null?void 0:(W=R.additionalButton)==null?void 0:W.thumbnailOverlayButtonViewModels},n=function(){var R=[_.a(hJg,{volumeProps:g})],W;
((W=k())==null?0:W.hideCaptionsToggleButton)||R.push(_.a(rJD,{playerControlsProps:g}));J()===1&&R.push(_.a(I8v,{playerApi:function(){return g().playerApi}}));
J()===2&&R.push(_.a(JJ0,{appApi:function(){return g().appApi}}));
J()===3&&R.push(_.a(vwl,{playerApi:function(){return g().playerApi}}));
W=q();if(J()===4&&W){W=_.w(W);for(var b=W.next(),h={};!b.done;h={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$55:void 0,command$jscomp$632:void 0},b=W.next()){b=b.value;h.tooltip$jscomp$3=b.tooltip;var X=void 0,D=void 0;h.ariaLabel$jscomp$20=((X=b.accessibility)==null?void 0:(D=X.accessibilityData)==null?void 0:D.label)||h.tooltip$jscomp$3;X=void 0;h.icon$jscomp$55=(X=b.icon)==null?void 0:X.iconType;h.command$jscomp$632=b.command;h.tooltip$jscomp$3&&h.ariaLabel$jscomp$20&&h.icon$jscomp$55&&
R.push(_.a(wSz,{title:function(f){return function(){return f.tooltip$jscomp$3}}(h),
ariaLabel:function(f){return function(){return f.ariaLabel$jscomp$20}}(h),
icon:function(f){return function(){return f.icon$jscomp$55}}(h),
command:function(f){return function(){return f.command$jscomp$632}}(h)}))}}W=L();
if(J()===4&&W)for(W=_.w(W),b=W.next(),h={};!b.done;h={tooltip$jscomp$4:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$56:void 0,command$jscomp$633:void 0,trackingParamsVeType:void 0},b=W.next())b=b.value,h.tooltip$jscomp$4=b.title,h.ariaLabel$jscomp$21=b.accessibilityText||h.tooltip$jscomp$4,h.icon$jscomp$56=b.iconName,h.command$jscomp$633=_.WT(b.onTap),D=X=void 0,h.trackingParamsVeType=((X=b.loggingDirectives)==null?0:X.trackingParams)?(D=sEq(_.CC(b.loggingDirectives.trackingParams)))==null?void 0:
_.Qh(D,2):void 0,h.tooltip$jscomp$4&&h.ariaLabel$jscomp$21&&h.icon$jscomp$56&&R.push(_.a(wSz,{title:function(f){return function(){return f.tooltip$jscomp$4}}(h),
ariaLabel:function(f){return function(){return f.ariaLabel$jscomp$21}}(h),
icon:function(f){return function(){return f.icon$jscomp$56}}(h),
command:function(f){return function(){return f.command$jscomp$633}}(h),
visualElementId:function(f){return function(){return f.trackingParamsVeType}}(h)}));
return R};
return _.a(_.E,{cond:I,then:function(){return _.a("div",{class:"ytInlinePlayerControlsTopRightControls"},_.a(_.Yz,{each:n},function(R){return _.a("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.a("div",{class:"ytInlinePlayerControlsButtonIcon"},R))}))}})},"wj"),f8x=_.H(function(e){var g=e.props;
var c=e.data;var k=e.options;e={};e=_.o6("ytInlinePlayerControlsBottomRightControls",(e.ytInlinePlayerControlsBottomRightControlsHidden=function(){var I;return cAz(c(),k())&&((I=k())==null?void 0:I.insetProgressBar)&&(g().isHovering||g().isDragging)},e));
return _.a("div",{class:e},_.a($X0,{data:c}),_.a(_.E,{cond:function(){var I;return!((I=k())==null?0:I.hideTimeDisplay)},
then:function(){return _.a(YA0,{props:g,data:c})}}))},"xj"),$X0=_.H(function(e){var g=e.data;
return _.a(_.eS,{data:function(){var c;return oDD((c=g())==null?void 0:c.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:a8X})},"yj"),YA0=_.H(function(e){var g=e.props;
var c=e.data;return _.a(_.E,{cond:function(){return g().isLive},
then:function(){return _.a(jOo,{props:g,data:c})},
else:function(){return _.a(iNS,{props:g,data:c})}})},"zj"),iNS=_.H(function(e){var g=e.props;
var c=e.data;var k=_.xF(function(){var I;return ZLj((I=c())==null?void 0:I.thumbnailOverlays)},void 0,"Pf9uIe");
return _.a("div",{class:_.o6("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return DD.PLAYER_TIME_ELAPSED+" "+_.DUk(g().playedTime)}},_.a(_.xG,{data:function(){var I=_.DUk(g().videoDuration-g().playedTime);
return Object.assign({},{type:17,text:I},k())}}))},"Aj"),PzO=_.H(function(e){e=e.badgeShapeData;
return _.a("div",{class:_.o6("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.a(_.xG,{data:e}))},"Bj"),jOo=_.H(function(e){var g=e.data;
e=_.xF(function(){if(_.G("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var k,I=_.w(((k=g())==null?void 0:k.thumbnailOverlays)||[]);for(k=I.next();!k.done;k=I.next()){k=k.value;if(k.thumbnailOverlayTimeStatusRenderer||k.thumbnailOverlayBadgeViewModel)return k;var J=void 0;if((J=k.thumbnailBottomOverlayViewModel)==null?0:J.badges)if(k=k.thumbnailBottomOverlayViewModel.badges.find(function(q){return _.x(q,Qml)}))return k}}},void 0,"GPGpgc");
var c=_.xF(function(){var k,I,J,q,L,n;return _.vlV((k=g())==null?void 0:(I=k.playerApi)==null?void 0:(J=I.getSize())==null?void 0:J.width,(q=g())==null?void 0:(L=q.playerApi)==null?void 0:(n=L.getSize())==null?void 0:n.height)},void 0,"OeIVKe");
return _.a(_.E,{cond:e,then:function(k){return _.a(_.eS,{data:k},{thumbnailOverlayTimeStatusRenderer:function(I){var J=I.data;I=_.xF(function(){return _.O5C(J(),0)},void 0,"skoDC");
return _.a(PzO,{badgeShapeData:I})},
thumbnailBadgeViewModel:function(I){return _.a(_.ceq,{data:I.data,class:_.o6("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(I){return _.a(_.h8,{data:I.data,thumbnailSize:c})}})},
else:function(){var k={type:18,text:DD.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.a(PzO,{badgeShapeData:function(){return k}})}})},"Cj"),mXD=_.H(function(e){var g=e.props;
var c=e.data;var k=e.options;return _.a(_.RdD,{progressBarProps:g,config:function(){var I,J=_.x((I=c())==null?void 0:I.multiMarkersPlayerBar,_.xpv),q;I=((q=k())==null?0:q.insetProgressBar)?2:1;var L;q=(L=k())==null?void 0:L.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:I,chapterData:J,isInlinePlayback:!0,doSeekOnClick:q,playheadDotBehavior:q?1:0}}})},"Dj");_.sL(_.H(function(e){var g=e.data;var c=e.appApi;var k=e.options;var I=STj(g,gtv(c));e={};c={};return _.a("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.a("div",{class:_.o6("ytInlinePlayerControlsDarkenedOverlay",(e.ytInlinePlayerControlsDarkenedOverlayShow=function(){return I().isHovering},e))}),_.a(RJx,null),_.a(GQD,{data:I}),_.a(xXx,{data:g}),_.a(kQ7,{playerControlsProps:I,
isShortsPage:!1}),_.a("div",{class:_.o6((c.ytInlinePlayerControlsControlsHidden=function(){return I().isDragging},c))},_.a(DXX,{props:I,
data:g,options:k}),_.a(f8x,{props:I,data:g,options:k})),_.a(_.E,{cond:function(){return cAz(g(),k())},
then:function(){return _.a(mXD,{props:I,data:g,options:k})}}))},"uj"),"yt-inline-player-controls",{props:{data:_.jx,
appApi:_.TF,options:_.jx}});var $g=function(){var e=_.z.apply(this,arguments)||this;e.opts=null;e.playerControlsData=null;e.playerControlsAppApi={openInMiniplayer:function(){e.openInMiniplayer()}};
e.playerControlsOptions={};e.noAnimation=!1;e.playbackIntentTriggered=!1;e.positionData=null;e.hidden=!0;e.active=!1;e.playing=!1;e.persistentPanelVisible=!1;e.videoPreviewDataIndex=0;e.JSC$21050_playerPromise=null;e.player=null;e.enableAudioControls=!1;e.hasBeenUnmuted=!1;e.captionsHaveBeenTurnedOff=!1;e.JSC$21050_playerEvents=new Map;e.videoPreviewFetchRequest=null;e.scheduledPreviewEndJobId=null;e.JSC$21050_preventProgressSaveTimer=null;e.watchEndpointStartTimeUpdaterInterval=null;e.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};e.windowOnBlurFn=function(){e.deactivate()};
return e};
_.Y($g,_.z);_.v=$g.prototype;
_.v.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.v.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$21050_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$21050_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$21050_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$21050_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.yg(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.yg(this,this.onScroll))};
_.v.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.yg(this,this.onScroll))};
_.v.onPageTypeChange=function(){this.deactivate()};
_.v.onWindowResized=function(){this.deactivate()};
_.v.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.v.onCaptionsChanged=function(e){e=!!e.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!e);this.setCaptionSize()};
_.v.setCaptionSize=function(){var e;if(this.active&&!this.captionsHaveBeenTurnedOff&&((e=this.player)==null?0:e.getCaptionWindowContainerId())){var g;(g=this.player)==null||g.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.v.currentPageAllowed=function(){return!this.isWatchPage};
_.v.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.G("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var e=this.positionData,g=e.initialTopPosition,c=e.initialHorizontalPosition;_.Nk(this.hostElement,{"--ytd-video-preview-translate-left":e.finalHorizontalPosition-c+"px","--ytd-video-preview-translate-top":e.finalTopPosition-g+"px","--ytd-video-preview-original-top-position":g+
"px","--ytd-video-preview-original-horizontal-position":c+"px","--ytd-video-preview-initial-scale":"scale("+e.initialScale+")","--ytd-video-preview-width":e.videoPreviewWidth+"px","--ytd-video-preview-height":e.videoPreviewHeight+"px"});return!0};
_.v.isOutOfBounds=function(e){var g=e.initialHorizontalPosition+12;e=g+e.videoPreviewWidth>window.innerWidth;return g<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&g<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&g<72||e};
_.v.handleOpenVideoPreviewAction=function(e){var g=this,c;return _.r(function(k){if(!g.currentPageAllowed())return k.return(0);g.opts=e;return(c=g.alignVideoPreviewForAnimation(e.thumbnail))?k.return(g.activate()):k.return(0)})};
_.v.onMouseLeave=function(e){var g,c;(g=this.opts)==null||(c=g.mouseleaveCallback)==null||c.call(g);this.shouldDeactivateOnMouseLeave(e)&&this.deactivate()};
_.v.onScroll=function(){var e,g;((e=this.opts)==null?0:e.isAutoplay)&&((g=this.opts)==null?0:g.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.v.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.ft.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.v.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.v.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",$g.JSC$21049_DEFAULT_CLICK_LOCATION_BEHAVIOR,$g.JSC$21049_CLICK_LOCATION_ID_MAP)};
_.v.shouldDeactivateOnMouseLeave=function(e){e=e.relatedTarget;if(!e)return!0;var g;return(g=this.opts)!=null&&g.mediaRenderer?!_.Zu(this.opts.mediaRenderer).contains(e):!0};
_.v.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.v.onPlaybackStart=function(){var e=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$21050_preventProgressSaveTimer=
_.HT(_.ft,function(){e.resetPreventProgressSaveTimer()},1E4);
var g;if((g=this.opts)==null?0:g.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.HT(_.ft,function(){e.hasMultipleVideoPreviews()?e.startPlaybackForNextVideo():e.deactivate()},this.opts.videoPreviewDurationMs);
var c;this.player.setGlobalCrop(((c=this.opts)==null?0:c.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.v.getRoundedCornersSize=function(){var e;if((e=this.opts)==null?0:e.roundedCornersSize){var g;return(g=this.opts)==null?void 0:g.roundedCornersSize}var c;if((c=this.opts)==null?0:c.enableRounding){var k;if(((k=this.opts)==null?void 0:k.thumbnailSize)==="small")return 1;var I;if(((I=this.opts)==null?void 0:I.thumbnailSize)==="medium")return 2;var J;if(((J=this.opts)==null?void 0:J.thumbnailSize)==="large")return 3}return _.G("web_imp_inset_progress_bar")?3:0};
_.v.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.v.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.v.onMediaContainerClick=function(e){this.isShortcutClick(e)||(this.navigateToWatch(e),e.preventDefault(),e.stopPropagation())};
_.v.activate=function(){var e=this,g,c,k,I,J,q,L,n,R;return _.r(function(W){switch(W.nextAddress){case 1:if(!e.currentPageAllowed())return W.return(0);c=(g=e.videoPreviewData)==null?void 0:g.inlinePlaybackEndpoint;k=_.Yy.instance;if(!c||!k)return W.return(0);e.playbackIntentTriggered=!0;((I=e.opts)==null?0:I.mediaRenderer)&&((J=e.opts)==null||!J.isAutoplay)&&zRX(e.opts.mediaRenderer,function(){e.deactivate()});
_.Va(e,function(){e.revealPreviewUi()});
q={};_.G("enable_unknown_lact_fix_on_html5")&&(_.Ss().resolve(_.et),q.lact=_.S6());e.videoPreviewFetchRequest=TS7(k,e.getInlinePlaybackRequestData(e.videoPreviewData),q);_.lj(W,2);return W.yield(e.videoPreviewFetchRequest,4);case 4:L=W.yieldResult;if(((n=L)==null?void 0:(R=n.playabilityStatus)==null?void 0:R.status)==="OK")return W.return(e.handlePlayerResponse(L));throw Error("Ql");case 2:_.Qb(W),e.deactivate();case 3:return W.return(1)}})};
_.v.getInlinePlaybackRequestData=function(e){var g,c=_.G("web_imp_player_mute_params")?((g=this.opts)==null?void 0:g.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:e.inlinePlaybackEndpoint,startPlaybackInMutedState:c}};
_.v.handlePlayerResponse=function(e){var g=this,c,k,I,J,q,L,n,R,W,b,h,X,D,f;return _.r(function(l){if(l.nextAddress==1){c=g.getInlinePlaybackVideoId();if(!(((k=e)==null?0:(I=k.videoDetails)==null?0:I.videoId)&&g.currentPageAllowed()&&g.playbackIntentTriggered&&g.opts&&c))return g.deactivate(),l.return(0);if(e.videoDetails.videoId!==c)return l.return(0);g.enableAudioControls=!!((J=e.playerConfig)==null?0:(q=J.inlinePlaybackConfig)==null?0:q.showAudioControls);e.trackingParams=g.getInlinePlaybackTrackingParams();
if(!g.inlinePlayer)return l.return(0);L={};if(R=_.x((n=g.videoPreviewData)==null?void 0:n.inlinePlaybackEndpoint,_.Pm))L.watch_endpoint=R;if(g.videoPreviewData){var A,d=(A=_.x(g.videoPreviewData.inlinePlaybackEndpoint,_.Pm))==null?void 0:A.startTimeSeconds;d!==void 0&&(e.playerConfig||(e.playerConfig={}),e.playerConfig.playbackStartConfig||(e.playerConfig.playbackStartConfig={}),e.playerConfig.playbackStartConfig.startPosition||(e.playerConfig.playbackStartConfig.startPosition={}),e.playerConfig.playbackStartConfig.startSeconds=
d,e.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(d*1E3))}g.inlinePlayer.loadVideoWithPlayerResponse(e,L);if(g.JSC$21050_playerPromise)return l.jumpTo(2);g.JSC$21050_playerPromise=g.inlinePlayer.getPlayerPromise();return l.yield(g.JSC$21050_playerPromise,3)}l.nextAddress!=2&&(W=l.yieldResult,W.setInlinePreview(!0),b=!_.G("web_imp_theater_bugfix"),W.setSizeStyle(!1,b),g.ytPlayerListenerBehavior.listenToPlayerEvents(W,g.JSC$21050_playerEvents),g.player=W,_.oC(g.hostElement,
"player-api-ready"));((h=g.opts)==null?0:h.showPlayerControls)&&g.videoPreviewData&&g.player&&(g.playerControlsData={playerResponse:e,isInlinePlayback:!0,thumbnailOverlays:g.videoPreviewData.thumbnailOverlays,playerApi:g.player},g.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!g.unroundCornersForPlayback,additionalButton:g.getAdditionalButtonType(g.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(X=g.opts)==null?void 0:X.hideTimeDisplay,hideScrubbingControls:(D=g.opts)==
null?void 0:D.hideScrubber,hideCaptionsToggleButton:(f=g.opts)==null?void 0:f.hideCaptionsToggleButton});return l.return(2)})};
_.v.revealPreviewUi=function(){var e=this;this.playbackIntentTriggered&&_.VAe(this,function(){e.hasThumbnailPositionChangedSinceTriggered()||(e.updateActiveState(!0),e.noAnimation=!1)})};
_.v.hasThumbnailPositionChangedSinceTriggered=function(){var e=this.positionData,g=this.getThumbnailPositionData();return(e==null?void 0:e.initialTopPosition)!==(g==null?void 0:g.initialTopPosition)||(e==null?void 0:e.initialHorizontalPosition)!==(g==null?void 0:g.initialHorizontalPosition)};
_.v.getThumbnailPositionData=function(){var e,g;if((g=this.opts)==null||!g.thumbnail)return null;g=this.opts.thumbnail;var c=((e=this.opts)==null?0:e.cropPlayerToFillThumbnailHorizontally)?!1:!0;var k=g.getBoundingClientRect();e=k.width;g=k.height;var I=k.top+window.scrollY;k=k.left+window.scrollX;var J=c?Math.ceil(e):e;c=c?Math.ceil(g):g;var q=e/J;e={initialScale:q,initialTopPosition:I-12*q,finalTopPosition:I-12-(c-g)/2,initialHorizontalPosition:k-(12+(J-e)/2),finalHorizontalPosition:k-12-(J-e)/
2,videoPreviewWidth:J,videoPreviewHeight:c};return e};
_.v.updateActiveState=function(e){this.active=e;this.ytdReduxBehavior.dispatch(_.Hh({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:e}))};
_.v.stopPlayer=function(e){e=e.resetWatchEndpointStartTime===void 0?!1:e.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(e)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.ft.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.v.deactivate=function(e){e=e===void 0?{}:e;e=e.resetWatchEndpointStartTime===void 0?!1:e.resetWatchEndpointStartTime;smS&&(smS.disconnect(),smS=null);this.stopPlayer({resetWatchEndpointStartTime:e});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.v.isValidThumbnailOverlayButton=function(e,g){e=e.thumbnailOverlayButtonRenderer;var c;return!!e&&!!e.tooltip&&!((c=e.icon)==null||!c.iconType)&&g.includes(e.icon.iconType)};
_.v.isValidThumbnailOverlayButtonViewModel=function(e,g){var c;e=_.x((c=e.thumbnailOverlayButtonViewModel)==null?void 0:c.overlayButton,_.$8);return!!e&&!!e.title&&!!e.iconName&&g.includes(e.iconName)};
_.v.getAdditionalButtonType=function(e){var g=this;if(_.G("web_imp_miniplayer_button"))return{button:2};if(_.G("web_imp_playback_speed_button"))return{button:3};var c=["BOX_STACK_3"],k=(e||[]).filter(function(J){return g.isValidThumbnailOverlayButton(J,c)}).map(function(J){return J.thumbnailOverlayButtonRenderer});
if(k.length)return{button:4,thumbnailOverlayButtonRenderers:k};var I=["BOX_STACK_3"];e=(e||[]).filter(function(J){return g.isValidThumbnailOverlayButtonViewModel(J,I)}).map(function(J){return _.x(J.thumbnailOverlayButtonViewModel.overlayButton,_.$8)});
if(e.length)return{button:4,thumbnailOverlayButtonViewModels:e}};
_.v.allowCaptions=function(){var e;return!((e=this.opts)==null?0:e.forceCaptionsOff)};
_.v.allowUnmuting=function(){var e;return this.enableAudioControls&&!((e=this.opts)==null?0:e.forceMutedVolume)};
_.v.beginStartTimeUpdater=function(){var e=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.I$(function(){e.updateWatchEndpointStartTime()},1E3)};
_.v.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.v.resetPreventProgressSaveTimer=function(){this.JSC$21050_preventProgressSaveTimer!==null&&(_.ft.cancelJob(this.JSC$21050_preventProgressSaveTimer),this.JSC$21050_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.v.updateWatchEndpointStartTime=function(e){var g=this.videoPreviewData;if(this.player&&g!=null&&g.inlinePlaybackEndpoint&&!this.JSC$21050_preventProgressSaveTimer){e=e?0:Math.floor(this.player.getCurrentTime());var c=_.x(g.navigationEndpoint,_.Pm);c&&(c.startTimeSeconds=e);if(g=_.x(g.inlinePlaybackEndpoint,_.Pm))g.startTimeSeconds=e}};
_.v.isShortcutClick=function(e){return!!e&&(e.ctrlKey||e.shiftKey||e.metaKey)};
_.v.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.v.openInMiniplayer=function(){var e=this,g,c;return _.r(function(k){if(k.nextAddress==1){c=(g=e.videoPreviewData)==null?void 0:g.navigationEndpoint;if(!c)return k.return();_.eM().lockupActivation=!0;return k.yield(_.TIM(_.Ss().resolve(_.xt),c),2)}_.eM().userActivation=!0;_.Uh(k)})};
_.v.navigateToWatch=function(e){var g,c=(g=this.videoPreviewData)==null?void 0:g.navigationEndpoint;if(c){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(c,e,!0);else{var k;_.G("web_thumbnail_to_watch_transition")&&((k=this.opts)==null?0:k.thumbnail)&&_.PM4(_.Ss().resolve(_.JG),this.opts.thumbnail);_.oC(this.hostElement,"yt-navigate",{endpoint:c})}this.deactivate()}};
_.v.getInlinePlaybackVideoId=function(){var e,g;return(g=_.x((e=this.videoPreviewData)==null?void 0:e.inlinePlaybackEndpoint,_.Pm))==null?void 0:g.videoId};
_.v.getInlinePlaybackTrackingParams=function(){var e,g;return(e=this.videoPreviewData)==null?void 0:(g=e.inlinePlaybackEndpoint)==null?void 0:g.clickTrackingParams};
_.v.hasMultipleVideoPreviews=function(){var e;return!!(((e=this.opts)==null?0:e.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.v.startPlaybackForNextVideo=function(){var e;(e=this.opts)!=null&&e.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())};
_.Bd.Object.defineProperties($g.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.opts)==null?0:e.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.opts)==null||!e.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 e;if(Array.isArray((e=this.opts)==null?void 0:e.videoPreviewData)){var g;return(g=this.opts)==null?void 0:g.videoPreviewData[this.videoPreviewDataIndex]}var c;return(c=this.opts)==null?void 0:c.videoPreviewData}}});
$g.prototype.onIsAdsVideoChange=$g.prototype.onIsAdsVideoChange;$g.prototype.onInlinePreviewIsEnabledChange=$g.prototype.onInlinePreviewIsEnabledChange;$g.prototype.optsChanged=$g.prototype.optsChanged;$g.prototype.onMouseLeave=$g.prototype.onMouseLeave;$g.prototype.onPersistentPanelVisibleChange=$g.prototype.onPersistentPanelVisibleChange;$g.JSC$21049_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
$g.JSC$21049_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([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],$g.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],$g.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],$g.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],$g.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],$g.prototype,"componentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Wv),_.B("design:type",Object)],$g.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Fk.YtSparklesClickLocationBehavior),_.B("design:type",Object)],$g.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$g.prototype,"opts",void 0);_.t([_.u(),_.B("design:type",Object)],$g.prototype,"playerControlsData",void 0);_.t([_.u(),_.B("design:type",Object)],$g.prototype,"playerControlsAppApi",void 0);
_.t([_.u(),_.B("design:type",Object)],$g.prototype,"playerControlsOptions",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$g.prototype,"noAnimation",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$g.prototype,"hidden",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$g.prototype,"active",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],$g.prototype,"playing",void 0);
_.t([_.u({selector:_.lGC}),_.B("design:type",Boolean)],$g.prototype,"inlinePreviewIsEnabled",void 0);_.t([_.u(),_.B("design:type",String)],$g.prototype,"pagePath",void 0);_.t([_.u({selector:_.mTA}),_.B("design:type",Boolean)],$g.prototype,"isWatchPage",void 0);_.t([_.u({selector:_.Yu.persistentPanelVisibleSelector}),_.B("design:type",Object)],$g.prototype,"persistentPanelVisible",void 0);
_.t([_.p("videoPreviewData"),_.B("design:type",Object),_.B("design:paramtypes",[])],$g.prototype,"thumbnailData",null);_.t([_.p("opts","active"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$g.prototype,"hidePlayerControls",null);_.t([_.p("opts"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$g.prototype,"isAdsVideo",null);
_.t([_.p("opts"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$g.prototype,"roundedCornersSmall",null);_.t([_.p("opts"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$g.prototype,"roundedCornersMedium",null);_.t([_.p("opts"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$g.prototype,"roundedCornersLarge",null);
_.t([_.p("opts"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$g.prototype,"unroundCornersForPlayback",null);_.t([_.p("opts","videoPreviewDataIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],$g.prototype,"videoPreviewData",null);_.t([_.u(),_.B("design:type",Object)],$g.prototype,"videoPreviewDataIndex",void 0);_.t([_.Cs("#inline-player"),_.B("design:type",Object)],$g.prototype,"inlinePlayer",void 0);
_.t([_.OY("persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$g.prototype,"onPersistentPanelVisibleChange",null);_.t([_.Ks("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],$g.prototype,"onMouseLeave",null);_.t([_.k_("opts"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$g.prototype,"optsChanged",null);
_.t([_.k_("inlinePreviewIsEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$g.prototype,"onInlinePreviewIsEnabledChange",null);_.t([_.OY("isAdsVideo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$g.prototype,"onIsAdsVideoChange",null);_.t([_.bF({is:"ytd-video-preview",disableElementRegistration:!0})],$g);
_.U($g,"ytd-video-preview",function(){if(cJq!==void 0)return cJq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return cJq=e},{mode:2});var pSO;var Yg=function(){var e=_.z.apply(this,arguments)||this;e.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};e.forceDarkTheme=!1;e.forceLightTheme=!1;e.dynamicTextHeight=94;e.hasOverflowButton=!1;e.isInfeedModernization=!1;return e};
_.Y(Yg,_.z);_.v=Yg.prototype;_.v.computeUrlImg=function(e){if(e)return _.u3(e.thumbnails)};
_.v.getLogoHeight=function(e){return this.logoWithPadding(e)?"31":"24"};
_.v.getLogoClassName=function(e){return this.logoWithPadding(e)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.v.logoWithPadding=function(e){var g,c;return(e=(g=e.thumbnails)==null?void 0:(c=g[0])==null?void 0:c.height)&&e%31===0?!0:!1};
_.v.sendImpressionEndpoints=function(e){e.impressionEndpoints&&_.tr(this.hostElement,e.impressionEndpoints)};
_.v.observeBasicPalette=function(){var e,g,c=(e=this.data)==null?void 0:(g=e.colorData)==null?void 0:g.basicColorPaletteData;c?_.vO(this.hostElement,c):_.vO(this.hostElement,{})};
_.v.observeDataChanged=function(){var e;this.dynamicTextHeight=((e=this.data)==null?0:e.supplementalText)?74:94;var g;this.hasSupplementalText=!((g=this.data)==null||!g.supplementalText);var c,k,I,J;e=(c=this.data)==null?void 0:(k=c.actionButton)==null?void 0:(I=k.buttonRenderer)==null?void 0:(J=I.colorData)==null?void 0:J.basicColorPaletteData;var q,L,n;if(!((q=this.data)==null?0:(L=q.actionButton)==null?0:(n=L.buttonRenderer)==null?0:n.style)&&e){this.computeIsInfeedModernization(this.data)||(e.borderColor=
e.foregroundTitleColor);var R,W;this.set("data.actionButton.buttonRenderer",_.n0.unsafeClone((R=this.data)==null?void 0:(W=R.actionButton)==null?void 0:W.buttonRenderer))}};
_.v.observeDataForCounterfactual=function(){if(_.G("kevlar_banner_cf_extra_logging")){var e;((e=this.data)==null?0:e.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.v.computeSupplementalStyle=function(){var e;if((e=this.data)!=null&&e.supplementalText){var g,c,k;if((g=this.data)==null?0:(c=g.colorData)==null?0:(k=c.basicColorPaletteData)==null?0:k.foregroundActivatedColor)return e=_.R1(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+e+"; --yt-endpoint-hover-color:"+e+"; --yt-endpoint-visited-color:"+e+"; --yt-formatted-string-bold-font-weight:700;"}};
_.v.computeForcedDarkTheme=function(){var e,g,c,k=(e=this.data)==null?void 0:(g=e.actionButton)==null?void 0:(c=g.buttonRenderer)==null?void 0:c.style,I,J,q;e=L7o(((I=this.data)==null?void 0:(J=I.colorData)==null?void 0:(q=J.basicColorPaletteData)==null?void 0:q.backgroundColor)||0);return k&&e};
_.v.computeForcedLightTheme=function(){var e,g,c,k=(e=this.data)==null?void 0:(g=e.actionButton)==null?void 0:(c=g.buttonRenderer)==null?void 0:c.style,I,J,q;e=!L7o(((I=this.data)==null?void 0:(J=I.colorData)==null?void 0:(q=J.basicColorPaletteData)==null?void 0:q.backgroundColor)||0);return k&&e};
_.v.computeHasOverflowButton=function(e){return!!e.overflowButton};
_.v.computeHasTitle=function(e){return!!e.title};
_.v.computeTitleMaxFontSize=function(e){return this.computeHasOverflowButton(e)?28:64};
_.v.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.v.computeIsInfeedModernization=function(){var e,g,c,k,I=(e=this.data)==null?void 0:(g=e.actionButton)==null?void 0:(c=g.buttonRenderer)==null?void 0:(k=c.colorData)==null?void 0:k.basicColorPaletteData;return(I==null?void 0:I.backgroundColor)===452984831||(I==null?void 0:I.backgroundColor)===218103808};
Yg.prototype.observeDataForCounterfactual=Yg.prototype.observeDataForCounterfactual;Yg.prototype.observeDataChanged=Yg.prototype.observeDataChanged;Yg.prototype.observeBasicPalette=Yg.prototype.observeBasicPalette;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],Yg.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Yg.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Yg.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Yg.prototype,"hasSupplementalText",void 0);_.t([_.u(),_.B("design:type",Object)],Yg.prototype,"dismissButtonOverrides",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.B("design:type",Boolean)],Yg.prototype,"hasTitle",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.B("design:type",Object)],Yg.prototype,"forceDarkTheme",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.B("design:type",Object)],Yg.prototype,"forceLightTheme",void 0);_.t([_.u(),_.B("design:type",Object)],Yg.prototype,"dynamicTextHeight",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.B("design:type",Object)],Yg.prototype,"hasOverflowButton",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.B("design:type",Object)],Yg.prototype,"isInfeedModernization",void 0);_.t([_.OY("data.colorData.basicColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yg.prototype,"observeBasicPalette",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yg.prototype,"observeDataChanged",null);_.t([_.OY("data.isVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yg.prototype,"observeDataForCounterfactual",null);_.t([_.bF({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Yg);
_.U(Yg,"ytd-banner-promo-renderer",function(){if(pSO!==void 0)return pSO;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return pSO=e},{mode:1});var sOl=_.H(function(e){var g=e.data;var c=e.hideDivider;var k=e.isChannelInfoCard;e={};return _.a("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.a("div",{class:_.o6("yt-profile-identity-info-view-model__frame",(e["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!g().channelBanner},e))},_.a(T_x,{profileIdentityInfoData:g}),_.a("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.a("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.a(_.eS,{data:function(){return g().avatar}},{avatarViewModel:_.E8})),_.a(l8g,{profileIdentityInfoData:g})),_.a(_.E,{cond:function(){return g().channelDescription},
then:function(I){var J={};return _.a("div",{class:_.o6((J["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(k==null||!k())},J["yt-profile-identity-info-view-model__channel-description"]=function(){return!(k==null?0:k())},J))},I)}}),_.a(AJo,{profileIdentityInfoData:g}),_.a(_.E,{cond:function(){return!(c==null?0:c())},
then:function(){return _.a("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Ej");
sOl.idomCompat=!0;var AJo=_.H(function(e){var g=e.profileIdentityInfoData;return _.a("div",{class:"yt-profile-identity-info-view-model__buttons"},_.a(_.Yz,{each:function(){return g().subscribeButton?[g().subscribeButton,g().channelAccess]:[g().channelAccess]}},function(c){return _.a("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.a("div",{class:"yt-profile-identity-info-view-model--button"},_.a(_.eS,{data:function(){return c}},{buttonViewModel:_.oD,
subscribeButtonViewModel:_.Ew})))}))},"Fj"),l8g=_.H(function(e){var g=e.profileIdentityInfoData;
return _.a("div",{class:"yt-profile-identity-info-view-model__trio"},_.a("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.a(FTg,{profileIdentityInfoData:g}),_.a(_.eS,{data:function(){return g().threeDotMenu}},{buttonViewModel:_.oD})),_.a(uuD,{profileIdentityInfoData:g}))},"Gj"),FTg=_.H(function(e){var g=e.profileIdentityInfoData;
return _.a("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.a("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return g().channelDisplayName}),_.a(_.E,{cond:function(){return g().verifiedOrOacBadge},
then:function(c){return _.a("div",{class:"yt-profile-identity-info-view-model__badge"},_.a(_.pv,{data:function(){return{thumbnails:[{url:c().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Hj"),T_x=_.H(function(e){var g=e.profileIdentityInfoData;
return _.a("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.a(_.eS,{data:function(){var c=g().channelBanner;if(c)return{imageBannerViewModel:{image:c.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(c){return _.a("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.a(_.pE,{data:c.data,
isPositionRelative:!0}))}}))},"Ij"),uuD=_.H(function(e){var g=e.profileIdentityInfoData;
return _.a("div",{class:"yt-profile-identity-info-view-model__metadata"},_.a("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.a("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return g().channelHandle}),_.a(_.E,{cond:function(){return g().channelPronouns&&g().channelHandle},
then:function(){return _.a("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.a("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return g().channelPronouns})),_.a("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.a("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return g().leftOfBulletInfo}),_.a(_.E,{cond:function(){return g().leftOfBulletInfo&&g().rightOfBulletInfo},
then:function(){return _.a("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.a("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return g().rightOfBulletInfo})))},"Jj");_.sL(sOl,"yt-profile-identity-info-view-model",{props:{data:_.jx,hideDivider:_.jx,isChannelInfoCard:_.jx}});_.sL(_.NV0,"yt-page-header-view-model",{props:{data:_.jx,noPadding:_.jx,enableBanner:_.jx,cinematicContainerTopbarOffset:_.jx,allowCinematicContainerOverflow:_.jx,displayAsSidebar:_.jx,displayAsPanel:_.jx,alwaysUseMediumTextDescription:_.jx}});var dXl=_.H(function(){return _.a("div",{class:_.o6("ytdGhostGridViewModelGhostCard")},_.a("div",{class:_.o6("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.a("div",{class:_.o6("ytdGhostGridViewModelDetails")},_.a("div",{class:_.o6("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.a("div",{class:_.o6("ytdGhostGridViewModelDetailsTextShell")},_.a("div",{class:_.o6("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.a("div",{class:_.o6("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"Lj");_.sL(_.H(function(e){var g=e.data;var c=_.M2(_.Rq);return _.a("ytd-ghost-grid-view-model",{class:_.o6("ytdGhostGridViewModelHost")},_.a(_.Yz,{each:function(){var k=Array,I;var J=((I=g().numRows)!=null?I:0)*c();return k(J)},
keyBy:"INDEX"},function(){return _.a(dXl,null)}))},"Kj"),"ytd-ghost-grid-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;var c=function(){var I;return(I=g().numColumns)!=null?I:2},k=function(){return c()>1?3:2};
e={};return _.a("ytd-rich-grid-group",{class:_.o6("ytdRichGridGroupHost",(e.ytdRichGridGroupHostFirstColumn=function(){return g().colIndex===0},e)),
style:_.N2({"--ytd-rich-grid-group-num-columns":c,"--ytd-rich-grid-items-per-group":k})},_.a("div",{class:"ytdRichGridGroupContents"},_.a(_.eS,{data:function(){var I;return(I=g().contents)==null?void 0:I.slice(0,k())}},{richItemRenderer:function(I){return _.a(_.t1u,{data:I.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Mj"),"ytd-rich-grid-group",{props:{data:_.jx}});var fp=function(){var e=_.z.apply(this,arguments)||this;e.resizeOnObserverInit=!1;e.isInlinePreviewDisabled=_.G("web_disable_inline_preview");e.disableStickyFilterBar=!1;e.transparentBackgroundChipsBar=!1;e.hideChipsBar=!1;e.isScrolled=!1;e.isWatchDefaultLayout=!0;e.continuationShowButton=!1;e.rowReducedHorizontalMargin=!1;e.useCompactList=!1;e.manualDownloadsPresent=!1;e.smartDownloadsPresent=!1;e.isOnline=!1;e.shouldRenderDownloadsBanner=!1;e.shouldRenderDownloadsBannerUpsell=!1;e.hasOptedIntoSmartDownloads=
!1;e.elementsPerRow=4;e.typographyBump=!1;e.slimItemsPerRow=1;e.pageLoadingFromNavigation=!1;e.resizeObserver=null;e.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"};e.rendererToTagNameMap=new Map(Object.entries(e.contentMapping()).map(function(g){var c=
_.w(g);g=c.next().value;c=c.next().value;return[g,c.component]}));
e.insertedContent=new Map;return e};
_.Y(fp,_.z);_.v=fp.prototype;_.v.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var e=_.w(_.o1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),g=e.next();!g.done;g=e.next())g.value.useCompactList=this.useCompactList};
_.v.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var e=_.w(_.o1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),g=e.next();!g.done;g=e.next())g=g.value,g.sizing=this.sizing,g.typographyBump=this.typographyBump};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.v.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{linearLayoutViewModel:"yt-linear-layout-view-model",feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",
params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",
mapping:this.contentMapping(),reuseComponents:!1},loadingContentRenderer:{id:"reload-content",mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.v.attached=function(){document.addEventListener("yt-page-type-changed",_.yg(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.yg(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$21079_throttledOnResize=new _.BT(this.resizeObserved,_.MN("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.yg(this,this.onScroll))};
_.v.detached=function(){var e;(e=this.resizeObserver)==null||e.disconnect();document.removeEventListener("yt-page-type-changed",_.yg(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.yg(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.yg(this,this.onScroll))};
_.v.insertRichSection=function(e){var g=e.richItemTargetId;e=e.richSectionRendererToInsert;g&&e&&(this.insertedContent.set(g,{content:e,timestamp:Date.now()}),this.reflowContent())};
_.v.computeIsInlinePreviewEnabled=function(e,g,c){return _.G("web_disable_inline_preview")?!1:!c&&ki7({miniplayerIsActive:e,miniplayerPlaybackState:g})};
_.v.computeSizing=function(){var e=_.IDg(this.data);if(e||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return e?this.useCompactList?"COMPACT":e:this.miniMode?"COMPACT":"STANDARD"};
_.v.updateItemMinAndMaxWidth=function(){var e=_.MN("rich_grid_max_item_width",500);e>0&&_.Nk(this.hostElement,{"--ytd-rich-grid-item-max-width":e+"px"});var g;e=this.getRichItemMinWidth((g=this.hostElement)==null?void 0:g.clientWidth);e>0&&_.Nk(this.hostElement,{"--ytd-rich-grid-item-min-width":e+"px"})};
_.v.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.v.resizeObserved=function(){_.V1(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.v.onPageChange=function(){var e=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.V1(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.ft.addJob(function(){e.pageLoadingFromNavigation=!1;e.setMasthead();e.maybeSetBigYoodle();e.forceRefreshAndLog();e.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.v.dataChanged=function(){var e=this;_.V1(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Va(this,function(){e.updateRichItemGridPositions();e.contentsElement&&_.Nk(e.hostElement,{"--ytd-rich-grid-content-offset-top":e.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.v.initResizeObserver=function(){var e=this;if(window.ResizeObserver){var g;(g=this.resizeObserver)==null||g.disconnect();var c=!1;this.resizeObserver=new ResizeObserver(function(){if(c){var k;(k=e.resizeObserver)==null||k.disconnect();var I;(I=e.JSC$21079_throttledOnResize)==null||I.fire();requestAnimationFrame(function(){var q;(q=e.JSC$21079_throttledOnResize)==null||q.fire();e.initResizeObserver()})}else if(c=!0,e.resizeOnObserverInit){var J;
(J=e.JSC$21079_throttledOnResize)==null||J.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.v.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.V1(this.hostElement,"ytd-rich-item-index-update-action")};
_.v.updateElementsPerRow=function(){_.V1(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Hh({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Hh({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.v.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.v.onRichShelfRendererCollapse=function(e){if(this.shownItems){var g=e.detail;e=this.shownItems.findIndex(function(k){var I,J;return((J=_.x(k==null?void 0:(I=k.richSectionRenderer)==null?void 0:I.content,_.ejv))==null?void 0:J.trackingParams)===g});
var c=e+1;e<0||c>=this.contentsElement.children.length||!this.shownItems[c].richItemRenderer||this.contentsElement.children[c].scrollIntoView({behavior:"smooth",block:"start"})}};
_.v.onSoftReloadPage=function(){this.scrollUpToTop()};
_.v.handleRerenderDownloadsData=function(){_.G("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.v.handlePlaylistRemoveVideosAction=function(e){var g;if(((g=_.x(e,_.bz1))==null?0:g.setVideoIds)&&this.data&&this.data.contents){e=_.x(e,_.bz1).setVideoIds;for(g=this.data.contents.length-1;g>=0;){var c=_.x(this.data.contents[g],_.JR);(c=c&&_.x(c.content,_.XN))&&c.setVideoId&&e.includes(c.setVideoId)&&this.splice("data.contents",g,1);g--}this.updateIndices()}};
_.v.updateIndices=function(){if(this.data&&this.data.contents)for(var e=0;e<this.data.contents.length;e++)this.set("data.contents."+e+".richItemRenderer.index",_.PL(String(e+1)))};
_.v.hasTopRowInlinePlayableVideoWithEndorsement=function(e){var g;return!((g=e.slice(0,this.getItemsPerRow()))==null||!g.some(function(c){var k;c=_.x(c==null?void 0:(k=c.richItemRenderer)==null?void 0:k.content,_.KQI);var I;return(c==null?void 0:c.inlinePlaybackEndpoint)&&(c==null?void 0:(I=c.thumbnailOverlays)==null?void 0:I.some(function(J){return J.thumbnailOverlayEndorsementRenderer}))}))};
_.v.refreshGridLayoutNew=function(e,g,c,k){var I=k.postsPerRow;var J=k.slimItemsPerRow;var q=k.gameCardsPerRow;k=k.miniGameCardsPerRow;var L;if((L=this.data)==null||!L.contents||!this.containerWidth)return!1;var n;if((n=this.data.responsiveContainerConfiguration)==null?0:n.responsiveSize){var R=_.uPV(this.data.responsiveContainerConfiguration,this.containerWidth,2),W;L=_.xu(Object.assign({},R,{standardUnitMinWidth:(W=this.data)==null?void 0:W.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&R.isCompactList)}else L=_.xu({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(R=this.data)==null?void 0:R.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=L.typographyBump;W=!1;if(e||this.elementsPerRow!==L.numItems||this.postsPerRow!==I||this.slimItemsPerRow!==J||this.gameCardsPerRow!==
q||this.miniGameCardsPerRow!==k||this.gutter!==L.gutter)W=this.elementsPerRow!==L.numItems,this.elementsPerRow=L.numItems,this.postsPerRow=I,this.slimItemsPerRow=J,this.gameCardsPerRow=q,this.miniGameCardsPerRow=k,this.gutter=L.gutter,this.itemWidth=L.itemWidth,this.reflowContent(g),_.Nk(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":L.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(c);this.ytdReduxBehavior.dispatch(_.Hh({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:L.maxContainerWidth}));return W};
_.v.refreshGridLayout=function(e,g){var c,k=(c=this.hostElement)==null?void 0:c.clientWidth;this.containerWidth=this.adjustRichGridWidth(k,!0);var I;if((I=this.data)==null||!I.contents||!this.containerWidth)return e&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(e=!0,this.pendingForceReflow=!1);c=this.getRichItemMinWidth(k);var J=this.isShortsPanel?146:194,q=this.getMiniGameCardMinWidth(),L=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.MN("rich_grid_default_max_items_per_row",
6);k=c=this.calcElementsPerRow(c,L);(I=c<=3&&this.miniModeAllowed())&&(c=this.calcElementsPerRow(240,4));var n=this.calcMaxSlimElementsPerRow(c,L,this.isDefaultGrid);L=this.calcElementsPerRow(J,n);var R=this.calcElementsPerRow(this.isCompactGrid?J:154,n);J=this.calcElementsPerRow(this.isCompactGrid?J:q,n);q=!1;if(this.sizing)return this.refreshGridLayoutNew(e,g,I,{postsPerRow:k,slimItemsPerRow:L,gameCardsPerRow:R,miniGameCardsPerRow:J});if(e||this.elementsPerRow!==c||this.postsPerRow!==k||this.slimItemsPerRow!==
L||this.gameCardsPerRow!==R||this.miniGameCardsPerRow!==J)q=this.elementsPerRow!==c,this.elementsPerRow=c,this.postsPerRow=k,this.slimItemsPerRow=L,this.gameCardsPerRow=R,this.miniGameCardsPerRow=J,this.reflowContent(g),this.updateElementsPerRow(),_.Nk(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)&&_.Nk(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(I);_.V1(this.hostElement,"yt-rich-grid-layout-refreshed");return q};
_.v.getRichItemMinWidth=function(e){var g=_.MN("rich_grid_min_item_width",310);if(!_.G("kevlar_disable_min_width_override")){var c,k;g=(k=(c=this.data)==null?void 0:c.minItemWidth)!=null?k:g}return g+_.MCv(e)};
_.v.calcMaxSlimElementsPerRow=function(e,g,c){return(c===void 0?0:c)?e===1?2:e%2===0?e/2*3:e+2:g*2};
_.v.adjustRichGridWidth=function(e,g){var c=_.G("disable_rich_grid_guide_compensation");if(!this.isWatch&&!c&&this.hostElement.offsetWidth===document.body.clientWidth&&(c=_.Ss().resolve(_.NN(_.xs)))&&!c.getData())if(c.canFitPersistentGuide(e)&&c.getGuideExpandsAutomatically()){var k,I,J=Number((k=window.getComputedStyle(this.hostElement))==null?void 0:(I=k.getPropertyValue("--app-drawer-width"))==null?void 0:I.replace("px",""));e-=J||0}else if(c.canFitMiniGuide(e)){var q;k=Number((J=window.getComputedStyle(this.hostElement))==
null?void 0:(q=J.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:q.replace("px",""));e-=k||0}e>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(e-=g?32:48));return e};
_.v.calcElementsPerRow=function(e,g){var c=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),k=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((c+k)/(e+k))||1,g)};
_.v.reflowContent=function(e){var g=this;if(!this.isReflowing){this.isReflowing=!0;var c,k,I=!!((c=this.data)==null?0:(k=c.contents)==null?0:k.some(function(L){return _.x(L,_.zM)}));
c=this.getItemsPerRow();var J;k=(J=this.data)==null?void 0:J.reflowOptions;e&&(_.Wh("rgr_s"),_.Va(this,function(){_.Wh("rgr_nrf")}));
e={};(J=_.o1(this.hostElement).querySelector("#contents"))&&(e={contentElement:J,rendererToTagNameMap:this.rendererToTagNameMap});J=(J=this.data.contents)?J.slice():[];I=DWD(J,c,I,k,this.getRichGridStyle(),e,this.insertedContent);var q=I.orderedContent;if(I=I.pinnedContentNotShownTargetIds)for(I=_.w(I),c=I.next();!c.done;c=I.next())this.insertedContent.delete(c.value);I=function(){g.shownItems=q;g.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(q),_.Va(this,I)):I()}};
_.v.getFirstRowItems=function(e){for(var g=[],c=0;c<e.length;c++){var k=void 0,I=void 0,J=void 0,q=void 0,L=void 0,n=void 0;if(((k=e[c])==null?void 0:(I=k.richItemRenderer)==null?void 0:I.rowIndex)===0||((J=e[c])==null?void 0:(q=J.richGroupRenderer)==null?void 0:q.rowIndex)===0||((L=e[c])==null?void 0:(n=L.richSectionRenderer)==null?void 0:n.rowIndex)===0)g.push(e[c]);else break}return g};
_.v.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.v.resetInsertedContentIfNeeded=function(){(_.G("web_explore_hub_on_hover")||_.G("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.v.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.v.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.v.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.v.terminateVideoPreview=function(){_.V1(this.hostElement,"yt-terminate-video-preview-action")};
_.v.updateRichItemGridPositions=function(){var e={gridData:{gridColumnCount:this.elementsPerRow}},g;((g=this.data)==null?0:g.trackingParams)&&(g=_.EM())&&_.Tu(g,_.Jb(this.data.trackingParams),e);_.V1(this.hostElement,"ytd-rich-item-index-update-action")};
_.v.miniModeAllowed=function(){return this.isChannelPage};
_.v.getMiniGameCardMinWidth=function(){return 154};
_.v.updateMiniMode=function(e){this.miniMode=this.miniModeAllowed()&&e;this.ytdReduxBehavior.dispatch(_.Hh({type:"SET_RICH_GRID_MINI_MODE",payload:e}))};
_.v.isCurrentPage=function(){return location.pathname===this.pagePath};
_.v.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var e=_.Ss().resolve(_.A4).getCurrentPage();e&&e.setScrollTop(0)}};
_.v.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.v.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.v.maybeSetBigYoodle=function(){var e,g=(e=this.data)==null?void 0:e.bigYoodle;this.bigYoodleData!==g&&(this.bigYoodleData=g)};
_.v.setMasthead=function(){var e;((e=this.data)==null?0:e.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.v.getRichGridStyle=function(){var e,g;return(g=(e=this.data)==null?void 0:e.style)!=null?g:"RICH_GRID_STYLE_UNKNOWN"};
_.v.onIsShortsGridChange=function(){var e=this.ytdReduxBehavior,g=e.dispatch,c=this.getRichGridStyle();g.call(e,_.Hh({type:"SET_RICH_GRID_STYLE",payload:c}))};
_.v.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.v.onScroll=function(){this.isScrolled=window.scrollY>0};
_.Bd.Object.defineProperties(fp.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.G("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.ytContinuationHandlerBehavior)==null?void 0:e.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var e=_.Ss().resolve(_.A4).getCurrentPage(),g,c,k;return(((g=this.data)==null?void 0:g.targetId)==="browse-feedFEsfv_audio_pivot"||_.G("web_enable_channel_pivot_panel")&&((c=this.data)==null?void 0:c.targetId)==="browse-feedFEsfv_channel_pivot"||_.G("web_enable_effect_pivot_panel")&&((k=this.data)==null?void 0:k.targetId)==="browse-feedFEsfv_effect_pivot")&&(e==null?void 0:e.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.G("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 e;return!((e=this.data)==null?0:e.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var e;return((e=_.Ss().resolve(_.A4).getCurrentPage())==null?void 0:e.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var e;return((e=_.Ss().resolve(_.A4).getCurrentPage())==null?void 0:e.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((e=this.data)==null?0:e.enableContentSpecificAspectRatio)||((g=this.data)==null?0:(c=g.responsiveContainerConfiguration)==null?0:c.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.MN("web_continuation_handler_margin",0):0}}});
fp.prototype.onIsShortsGridChange=fp.prototype.onIsShortsGridChange;fp.prototype.onReloadContinuationFinish=fp.prototype.onReloadContinuationFinish;fp.prototype.reflowContent=fp.prototype.reflowContent;fp.prototype.handleRerenderDownloadsData=fp.prototype.handleRerenderDownloadsData;fp.prototype.onRichShelfRendererCollapse=fp.prototype.onRichShelfRendererCollapse;fp.prototype.onRequestElementsPerRow=fp.prototype.onRequestElementsPerRow;fp.prototype.contentLengthChanged=fp.prototype.contentLengthChanged;
fp.prototype.dataChanged=fp.prototype.dataChanged;fp.prototype.onSizingChange=fp.prototype.onSizingChange;fp.prototype.onUseCompactListChange=fp.prototype.onUseCompactListChange;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Jc),_.B("design:type",Object)],fp.prototype,"ironResizableBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],fp.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.Tk),_.B("design:type",Object)],fp.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],fp.prototype,"componentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],fp.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fp.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],fp.prototype,"miniMode",void 0);_.t([_.u({value:[]}),_.B("design:type",Array)],fp.prototype,"shownItems",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],fp.prototype,"isReflowing",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],fp.prototype,"isFilteredFeed",void 0);_.t([_.u({selector:_.i3z}),_.B("design:type",Boolean)],fp.prototype,"guideIsExpanded",void 0);
_.t([_.u({selectorArgs:["entitySelectorType"],selector:function(e,g){if(_.G("kevlar_modern_downloads_page")&&g&&g!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(g){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":g=e.entities;var c=_.LU(g),k=_.rq(g),I=_.t_g(e),J=_.V_p(e),q=_.BOV(e),L=_.b38(g),n=_.kd(c),R=_.aq(g);return _.p38(c,k,L,_.xTV(g),I,J,n,R,q,_.ScC(e),_.bm(e));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return e=_.LU(e.entities),_.lqC(e);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return e=
_.RbW(e.entities),_.AYW(e);default:_.mN(new _.E2("Error: entitySelectorType defined but not matched in selector.",e,g))}}}),
_.B("design:type",Object)],fp.prototype,"entityDrivenRichGridData",void 0);_.t([_.u(),_.B("design:type",Object)],fp.prototype,"resizeOnObserverInit",void 0);_.t([_.u(),_.B("design:type",Object)],fp.prototype,"bigYoodleData",void 0);_.t([_.u(),_.B("design:type",Object)],fp.prototype,"mastheadData",void 0);_.t([_.u(),_.B("design:type",Boolean)],fp.prototype,"isInlinePreviewDisabled",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],fp.prototype,"disableStickyFilterBar",void 0);
_.t([_.u(),_.B("design:type",Object)],fp.prototype,"transparentBackgroundChipsBar",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],fp.prototype,"hideChipsBar",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("isHomePage","isFilteredFeed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"showChipsOnScroll",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],fp.prototype,"isScrolled",void 0);
_.t([_.u(),_.B("design:type",Object)],fp.prototype,"isWatchDefaultLayout",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],fp.prototype,"continuationShowButton",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],fp.prototype,"rowReducedHorizontalMargin",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],fp.prototype,"useCompactList",void 0);_.t([_.u({selector:function(e){return _.rq(e.entities).length>0}}),
_.B("design:type",Object)],fp.prototype,"manualDownloadsPresent",void 0);_.t([_.u({selector:function(e){return _.LU(e.entities).length>0}}),
_.B("design:type",Object)],fp.prototype,"smartDownloadsPresent",void 0);_.t([_.u({selector:_.bm}),_.B("design:type",Object)],fp.prototype,"isOnline",void 0);_.t([_.u({selector:_.V_p}),_.B("design:type",Object)],fp.prototype,"shouldRenderDownloadsBanner",void 0);_.t([_.u({selector:_.ScC}),_.B("design:type",Object)],fp.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.t([_.u({selector:_.t_g}),_.B("design:type",Object)],fp.prototype,"hasOptedIntoSmartDownloads",void 0);
_.t([_.OY("useCompactList"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fp.prototype,"onUseCompactListChange",null);_.t([_.OY("sizing","typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fp.prototype,"onSizingChange",null);_.t([_.u({selector:_.Aze}),_.B("design:type",Number)],fp.prototype,"miniplayerPlaybackState",void 0);_.t([_.u({selector:_.Eo}),_.B("design:type",Boolean)],fp.prototype,"miniplayerIsActive",void 0);
_.t([_.u({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.B("design:type",Boolean)],fp.prototype,"isInlinePreviewEnabled",void 0);_.t([_.u({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.B("design:type",String)],fp.prototype,"sizing",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],fp.prototype,"elementsPerRow",void 0);
_.t([_.u(),_.B("design:type",Object)],fp.prototype,"typographyBump",void 0);_.t([_.u(),_.B("design:type",Number)],fp.prototype,"itemWidth",void 0);_.t([_.Cs("#header"),_.B("design:type",HTMLElement)],fp.prototype,"headerElement",void 0);_.t([_.Cs("#contents"),_.B("design:type",HTMLElement)],fp.prototype,"contentsElement",void 0);_.t([_.p("reloadUiContent"),_.B("design:type",Object),_.B("design:paramtypes",[])],fp.prototype,"loadingContentRenderer",null);
_.t([_.p("reloadUiContent"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"hasLoadingContent",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fp.prototype,"dataChanged",null);_.t([_.k_("data.contents.length"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fp.prototype,"contentLengthChanged",null);
_.t([_.Ks("yt-request-elements-per-row"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fp.prototype,"onRequestElementsPerRow",null);_.t([_.Ks("yt-rich-shelf-renderer-collapse"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fp.prototype,"onRichShelfRendererCollapse",null);
_.t([_.k_("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fp.prototype,"handleRerenderDownloadsData",null);_.t([_.p("data"),_.B("design:type",String),_.B("design:paramtypes",[])],fp.prototype,"entitySelectorType",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"isSub",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"isWatch",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"isShortsPanel",null);
_.t([_.u({reflectToAttribute:!0}),_.p("isWatch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"reducedTopMargin",null);_.t([_.u({reflectToAttribute:!0}),_.p("data","isWatch","isWatchDefaultLayout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"noTopMargin",null);_.t([_.u({reflectToAttribute:!0}),_.p("isInlinePreviewEnabled","shownItems"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"topRowEndorsement",null);
_.t([_.p("data.header"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"hideHeader",null);_.t([_.Ks("yt-rich-grid-reflow"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],fp.prototype,"reflowContent",null);_.t([_.Ks("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fp.prototype,"onReloadContinuationFinish",null);
_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"isSlimGrid",null);_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"isShortsGrid",null);_.t([_.p("data","isSlimGrid","isShortsGrid"),_.u(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"noRichItemGutterMargins",null);
_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"isShortsGridSlim",null);_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"isCompactGrid",null);_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"isDefaultGrid",null);
_.t([_.p("data.targetId"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"hideChipsBarOnWatch",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fp.prototype,"onIsShortsGridChange",null);_.t([_.p("data.enableContentSpecificAspectRatio"),_.u(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"force16By9ThumbnailAspectRatio",null);
_.t([_.p("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],fp.prototype,"continuationTriggerOffset",null);_.t([_.bF({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],fp);
_.U(fp,"ytd-rich-grid-renderer",function(){if(zao!==void 0)return zao;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="contents" hidden="[[hasLoadingContent]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return zao=e},{mode:2});var zJD;var jT=function(){return _.z.apply(this,arguments)||this};
_.Y(jT,_.z);_.v=jT.prototype;
_.v.onKeyDown=function(e){if(this.snippetElements.length!==0&&(e=e.keyCode,e===38||e===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);e===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Pc(this.highlightedIndex,-1,this.snippetElements.length);e=this.snippetElements.length;var g=this.highlightedIndex%e;this.highlightedIndex=g*e<0?g+e:g;e=this.snippetElements[this.highlightedIndex];this.highlightSnippet(e);this.ensureVisible(e)}};
_.v.onKeyUp=function(e){var g=this;p6l(e)&&(e.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.ft.cancelJob(this.inputTimerId),this.inputTimerId=_.ft.addLowPriorityJob(function(){g.typedValue&&(g.fetchSnippets(g.typedValue),g.logInputGesture(g.data))},1E3))};
_.v.onClick=function(e){(e=_.qu4(e.target,null,"snippet-item"))&&this.selectSnippet(e)};
_.v.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.v.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.v.ready=function(){var e=this;this.inputElement.addEventListener("focus",function(){e.snippetsWrapper.style.removeProperty("display")})};
_.v.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.v.getSourceTimelines=function(){if(!this.data)return[];var e=[];if(this.data.searchInVideoSources)for(var g=_.w(this.data.searchInVideoSources),c=g.next();!c.done;c=g.next())c=c.value,c==="SEARCH_IN_VIDEO_SOURCE_ASR"?e.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):c==="SEARCH_IN_VIDEO_SOURCE_OCR"&&e.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return e};
_.v.fetchSnippets=function(e){var g=_.Z5(this.hostElement,"yt-get-current-video-id-action")[0],c=this.getSourceTimelines();e={getSearchInVideoCommand:{externalVideoId:g,query:e!=null?e:"",sourceTimelines:c},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}})};
_.v.filterSnippets=function(e,g){var c=this;if(g){this.filteredSnippets=(0,_.n0.unsafeClone)(e);var k=RegExp(_.ize(g),"i");this.filteredSnippets=this.filteredSnippets.filter(function(q){return k.test(c.ytRendererBehavior.getSimpleString(q.snippet))});
e=_.w(this.filteredSnippets);for(var I=e.next();!I.done;I=e.next()){I=I.value;var J=this.ytRendererBehavior.getSimpleString(I.snippet);I.snippet={runs:[{text:J.substring(0,J.toLowerCase().indexOf(g))},{text:J.substring(J.toLowerCase().indexOf(g),J.toLowerCase().indexOf(g)+g.length),bold:!0},{text:J.substring(J.toLowerCase().indexOf(g)+g.length,J.length)}]}}}else this.filteredSnippets=e};
_.v.onUpdateSearchInVideoResults=function(e){if(!(this.snippets.length>0)){var g,c,k;if((k=(g=_.x(e,h$O))==null?void 0:(c=g.results)==null?void 0:c.length)!=null&&k){var I;this.filteredSnippets=this.snippets=((I=_.x(e,h$O))==null?void 0:I.results).map(function(J){var q,L,n;return{startMs:J==null?void 0:(q=J.searchInVideoResultRenderer)==null?void 0:q.startMs,startTimeText:J==null?void 0:(L=J.searchInVideoResultRenderer)==null?void 0:L.startTimeText,snippet:J==null?void 0:(n=J.searchInVideoResultRenderer)==
null?void 0:n.snippet}})}}};
_.v.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.v.highlightSnippet=function(e){e.classList.add("highlighted")};
_.v.removeSnippetHighlight=function(e){e.classList.remove("highlighted")};
_.v.selectSnippet=function(e){this.typedValue=String(e.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(e);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.v.ensureVisible=function(e){var g=this.snippetsWrapper.scrollTop,c=g+this.snippetsWrapper.clientHeight,k=e.offsetTop-this.snippetsWrapper.offsetTop;e=k+e.clientHeight;k<g?this.snippetsWrapper.scrollTop-=g-k:e>c&&(this.snippetsWrapper.scrollTop+=e-c)};
_.v.seekPlayer=function(e){var g,c;return _.r(function(k){if(k.nextAddress==1){if(!e)return k.jumpTo(0);g=Number(e.dataset.startOffset);return k.yield(_.u6().getPlayerPromise(),3)}c=k.yieldResult;c.seekTo(g/1E3,!0);c.wakeUpControls();_.Uh(k)})};
_.v.logInputGesture=function(e){var g=_.EM();g&&(e==null?0:e.trackingParams)&&_.pA(g,_.Jb(e.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.v.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("typed-value-changed",this.typedValue))};
_.v.updateTypedValueFromBinding=function(e){this.typedValue=e.currentTarget.value};
jT.prototype.typedValueChangedForBinding=jT.prototype.typedValueChangedForBinding;jT.prototype.dataChanged=jT.prototype.dataChanged;jT.prototype.panelContentVisibleChanged=jT.prototype.panelContentVisibleChanged;jT.prototype.onClick=jT.prototype.onClick;jT.prototype.onKeyUp=jT.prototype.onKeyUp;jT.prototype.onKeyDown=jT.prototype.onKeyDown;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],jT.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],jT.prototype,"data",void 0);_.t([_.u({value:[]}),_.B("design:type",Array)],jT.prototype,"snippets",void 0);_.t([_.u({value:[]}),_.B("design:type",Array)],jT.prototype,"filteredSnippets",void 0);_.t([_.u({value:[]}),_.B("design:type",Array)],jT.prototype,"snippetElements",void 0);
_.t([_.Cs("#siv-input"),_.B("design:type",HTMLElement)],jT.prototype,"inputElement",void 0);_.t([_.Cs("#siv-snippets-wrapper"),_.B("design:type",HTMLElement)],jT.prototype,"snippetsWrapper",void 0);_.t([_.u(),_.B("design:type",String)],jT.prototype,"typedValue",void 0);_.t([_.u({value:-1}),_.B("design:type",Number)],jT.prototype,"highlightedIndex",void 0);_.t([_.Ks("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[_.qn]),_.B("design:returntype")],jT.prototype,"onKeyDown",null);
_.t([_.Ks("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[_.qn]),_.B("design:returntype")],jT.prototype,"onKeyUp",null);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],jT.prototype,"onClick",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],jT.prototype,"panelContentVisible",void 0);
_.t([_.OY("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jT.prototype,"panelContentVisibleChanged",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jT.prototype,"dataChanged",null);_.t([_.OY("typedValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jT.prototype,"typedValueChangedForBinding",null);
_.t([_.bF({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],jT);
_.U(jT,"ytd-search-in-video-renderer",function(){if(zJD!==void 0)return zJD;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return zJD=e},{mode:1});var HNq;var ia=function(){return _.z.apply(this,arguments)||this};
_.Y(ia,_.z);ia.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
ia.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]]"}}}}}};
ia.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var e,g,c,k,I=(g=_.x((e=this.data)==null?void 0:e.onClickCommand,_.etI))==null?void 0:(c=g.item)==null?void 0:(k=c.notificationTextRenderer)==null?void 0:k.successResponseText;I&&_.F4v(this.hostElement,I)}};
_.Bd.Object.defineProperties(ia.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k;return this.isProductPlaceholder&&((e=this.data)==null?void 0:(g=e.hiddenProductOptions)==null?void 0:g.showDropCountdown)&&!!((c=this.data)==null?0:(k=c.hiddenProductOptions)==null?0:k.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var e;return!this.isProductPlaceholder&&!((e=this.data)==null?0:e.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var e,g;return!((e=this.data)==null?0:e.priceReplacementText)&&!((g=this.data)==null||!g.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],ia.prototype,"componentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ia.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],ia.prototype,"useCenterLayoutContainer",null);_.t([_.u({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],ia.prototype,"buttonOverride",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ia.prototype,"isProductPlaceholder",null);
_.t([_.p("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],ia.prototype,"showDropCountdown",null);_.t([_.p("isProductPlaceholder","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ia.prototype,"showBrandName",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ia.prototype,"showPriceReplacementText",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ia.prototype,"showPrice",null);
_.t([_.p("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],ia.prototype,"showMetadata",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],ia);
_.U(ia,"ytd-product-list-item-renderer",function(){if(HNq!==void 0)return HNq;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return HNq=e},{mode:1});var QOS;var Pi=function(){return _.z.apply(this,arguments)||this};
_.Y(Pi,_.z);Pi.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Pi.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Pi.prototype.panelContentVisibleChanged=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return e.playerApi?c.jumpTo(2):c.yield(_.u6().getPlayerPromise(),3);c.nextAddress!=2&&(e.playerApi=c.yieldResult);(g=e.playerApi)==null||g.productsInVideoVisibilityUpdated(!!e.panelContentVisible);_.Uh(c)})};
Pi.prototype.panelContentVisibleChanged=Pi.prototype.panelContentVisibleChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Pi.prototype,"panelContentVisible",void 0);_.t([_.u(),_.B("design:type",Object)],Pi.prototype,"data",void 0);
_.t([_.OY("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],Pi.prototype,"panelContentVisibleChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Pi);
_.U(Pi,"ytd-product-list-renderer",function(){if(QOS!==void 0)return QOS;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return QOS=e},{mode:1});var UXq;var m4=function(){var e=_.z.apply(this,arguments)||this;e.isToggleChecked=!1;return e};
_.Y(m4,_.z);m4.prototype.onDataChanged=function(){var e;this.isToggleChecked=((e=this.data)==null?void 0:e.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
m4.prototype.close=function(){var e;((e=this.data)==null?0:e.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
m4.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var e,g=_.x((e=this.data)==null?void 0:e.switchButton,bE0);g&&(this.isToggleChecked&&g.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(g.switchOnInnertubeCommand),!this.isToggleChecked&&g.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(g.switchOffInnertubeCommand))};
m4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
m4.prototype.onDataChanged=m4.prototype.onDataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],m4.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],m4.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],m4.prototype,"isToggleChecked",void 0);_.t([_.u({value:_.C_("CLOSE")}),_.B("design:type",String)],m4.prototype,"closeButtonAriaLabel",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],m4.prototype,"onDataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],m4);
_.U(m4,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(UXq!==void 0)return UXq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return UXq=e},{mode:1});var owv;var pp=function(){var e=_.z.apply(this,arguments)||this;e.hideTimestamps=!!_.qk("hide-transcript-timestamps");e.currentCueIndex=-1;e.flatCues=[];e.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};e.TEST_ONLY={getFlatCues:function(){return e.flatCues}};
return e};
_.Y(pp,_.z);_.v=pp.prototype;_.v.hideTimestampsChanged=function(){_.wp("hide-transcript-timestamps",this.hideTimestamps)};
_.v.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.v.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.v.dataChanged=function(){var e;if((e=this.data)!=null&&e.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;e=_.w(this.data.cueGroups);for(var g=e.next();!g.done;g=e.next()){g=_.w(_.x(g.value,lsg).cues);for(var c=g.next();!c.done;c=g.next())this.flatCues.push(Number(_.x(c.value,Aij).startOffsetMs))}}};
_.v.onYtPlayerTimeChanged=function(e){if(!(e<0)){for(var g=this.currentCueIndex,c=g;;){var k=c>=0?this.flatCues[c]/1E3:-1;if(e+.5<k)--c;else if(k=c+1<this.flatCues.length?this.flatCues[c+1]/1E3:Infinity,e+.5>k)c+=1;else break}c!==g&&(g>=0&&((e=this.getCueElement(g))&&e.classList.remove("active"),(g=this.getCueGroupElement(g))&&g.classList.remove("active")),(g=this.getCueElement(c))&&g.classList.add("active"),(g=this.getCueGroupElement(c))&&g.classList.add("active"),this.currentCueIndex=c,this.isHovered||
this.scrollElementToTop(c))}};
_.v.scrollElementToTop=function(e){e=this.getCueElement(e>=3?e-3:0);this.hostElement.scrollTop=Math.min(e.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.v.getCueElement=function(e){return _.o1(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[e]+'"]')};
_.v.getCueGroupElement=function(e){return(e=this.getCueElement(e))&&e.parentElement?e.parentElement.parentElement:null};
_.v.onTap=function(e){var g=_.A3(e);e.target.classList.contains("cue")&&this.seekCueElement(g)};
_.v.onKeyPress=function(e){e.keyCode==13&&(e=_.qu4(e.target,null,"cue"))&&this.seekCueElement(e)};
_.v.seekCueElement=function(e){e=Number(e.getAttribute("start-offset"));_.Z5(this.hostElement,"yt-transcript-player-seek",[e/1E3])};
_.v.onMouseEnter=function(){this.isHovered=!0};
_.v.onMouseLeave=function(){this.isHovered=!1};
pp.prototype.onMouseLeave=pp.prototype.onMouseLeave;pp.prototype.onMouseEnter=pp.prototype.onMouseEnter;pp.prototype.onKeyPress=pp.prototype.onKeyPress;pp.prototype.onTap=pp.prototype.onTap;pp.prototype.dataChanged=pp.prototype.dataChanged;pp.prototype.hideTimestampsChanged=pp.prototype.hideTimestampsChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],pp.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],pp.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],pp.prototype,"hideTimestamps",void 0);_.t([_.u(),_.B("design:type",Boolean)],pp.prototype,"isHovered",void 0);_.t([_.OY("hideTimestamps"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pp.prototype,"hideTimestampsChanged",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pp.prototype,"dataChanged",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],pp.prototype,"onTap",null);_.t([_.Ks("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],pp.prototype,"onKeyPress",null);
_.t([_.Ks("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pp.prototype,"onMouseEnter",null);_.t([_.Ks("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pp.prototype,"onMouseLeave",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],pp);
_.U(pp,"ytd-transcript-body-renderer",function(){if(owv!==void 0)return owv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return owv=e},{mode:1});var ZNz;var TR=function(){var e=_.z.apply(this,arguments)||this;e.darkerPanels=_.G("web_watch_darker_panels");return e};
_.Y(TR,_.z);TR.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],TR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],TR.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],TR.prototype,"darkerPanels",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],TR);
_.U(TR,"ytd-transcript-footer-renderer",function(){if(ZNz!==void 0)return ZNz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ZNz=e},{mode:1});var V8O;var t8Q;var la=function(){var e=_.z.apply(this,arguments)||this;e.systemIcons=_.G("kevlar_system_icons");e.showClearButton=!1;return e};
_.Y(la,_.z);_.v=la.prototype;_.v.handleInput=function(e){var g=this;e.target.value.length?_.fO(this,"ytdTranscriptSearchBoxSearch",function(){g.emitSearchEvent(e)},500):(_.njt(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=e.target.value.length>0};
_.v.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.v.handleClick=function(){var e,g=(e=this.data)==null?void 0:e.trackingParams;g&&_.KP(_.gL(),g)};
_.v.handleClear=function(){_.njt(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var e,g,c=(g=_.x((e=this.data)==null?void 0:e.clearButton,_.G_))==null?void 0:g.trackingParams;c&&_.KP(_.gL(),c);this.clear()};
_.v.emitSearchEvent=function(e){_.oC(this.hostElement,"yt-transcript-search-box-search",{query:e.target.value});var g,c;(e=(c=_.x((g=this.data)==null?void 0:g.searchButton,_.G_))==null?void 0:c.trackingParams)&&_.KP(_.gL(),e)};
_.v.emitClearEvent=function(){_.oC(this.hostElement,"yt-transcript-search-box-clear")};
_.Bd.Object.defineProperties(la.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.o1(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],la.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],la.prototype,"systemIcons",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],la);
_.U(la,"ytd-transcript-search-box-renderer",function(){if(t8Q!==void 0)return t8Q;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return t8Q=e},{mode:1});var B_x;var N_Q;var Ae=function(){return _.z.apply(this,arguments)||this};
_.Y(Ae,_.z);Ae.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var e,g;this.sectionHeaderAriaLabel=(e=this.data)==null?void 0:(g=e.accessibility)==null?void 0:g.accessibilityData.label}};
Ae.prototype.fireSelectedEvent=function(e){_.oC(this.hostElement,"ytd-transcript-section-header",{startMs:e})};
Ae.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Ae.prototype.handleKeyPress=function(e){this.data&&e.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Bd.Object.defineProperties(Ae.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var e,g;return(g=(e=this.data)==null?void 0:e.enableTappableTranscriptHeader)!=null?g:!1}}});
Ae.prototype.dataChanged=Ae.prototype.dataChanged;_.t([_.u(),_.B("design:type",Object)],Ae.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],Ae.prototype,"sectionHeaderAriaLabel",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ae.prototype,"enableTappableTranscriptHeader",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ae.prototype,"dataChanged",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Ae);
_.U(Ae,"ytd-transcript-section-header-renderer",function(){if(N_Q!==void 0)return N_Q;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return N_Q=e},{mode:1});var SA0;var yJO;var sZ=function(){var e=_.z.apply(this,arguments)||this;e.isEditMode=!1;e.touchCaptionsEnabled=!1;e.deleteCaptionCorrectionPopupCommand=null;e.voteCaptionCorrectionPopupCommand=null;e.roundedContainer=!0;e.mouseOver=!1;e.textChanged=!1;e.messages={suggest_correction:_.C_("suggest_correction",void 0,"Edit caption"),suggested_caption:_.C_("suggested_caption",void 0,"Suggested caption"),submit_correction:_.C_("submit_correction",void 0,"Submit for review"),cancel_correction:_.C_("cancel_correction",
void 0,"Cancel"),replay_segment:_.C_("replay_segment",void 0,"Re-play segment"),delete_correction:_.C_("delete_correction",void 0,"Delete correction")};e.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return e};
_.Y(sZ,_.z);_.v=sZ.prototype;_.v.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.v.handleDelete=function(e){if(this.deleteCaptionCorrectionPopupCommand){var g=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);g&&this.ytdOpenPopupBehavior.openPopup(g);e.stopPropagation()}};
_.v.handleSubmit=function(e){if(this.data&&this.data.submitCaptionCorrectionCommand&&(e.stopPropagation(),this.textChanged)){var g;e=(g=_.x(this.data.submitCaptionCorrectionCommand,_.rT4))==null?void 0:g.params;g=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:e,correctionText:String(this.ironTextAreaElement.value),originalText:_.mp(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(g);this.isEditMode=!1}};
_.v.handleUpdateSegmentText=function(e){(e=_.x(e,lSo))&&e.targetId&&this.data&&e.targetId===this.data.targetId&&(e.userCorrection&&(this.editedText=e.userCorrection),e.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.mp(this.data.snippet)),e.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=e.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=e.voteCaptionCorrectionPopupCommand?
e.voteCaptionCorrectionPopupCommand:null,e.accessibility&&(this.segmentAriaLabel=e.accessibility.accessibilityData.label))};
_.v.handleCancel=function(e){this.isEditMode=!1;e.stopPropagation();this.logClientVe(159409)};
_.v.handleEditSegmentCommand=function(e){(e=_.x(e,T7D))&&e.targetId&&this.data&&e.targetId===this.data.targetId&&this.handleEdit()};
_.v.handleEditButtonClick=function(e){this.data&&(this.handleEdit(),e.stopPropagation())};
_.v.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var e;(e=this.ironTextAreaElement.textarea)==null||e.focus();this.logClientVe(159407)}};
_.v.handleMouseEnter=function(){this.mouseOver=!0};
_.v.handleMouseLeave=function(){this.mouseOver=!1};
_.v.handleReplay=function(e){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),e.stopPropagation(),this.logClientVe(159408))};
_.v.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.v.handleKeypress=function(e){this.data&&(this.isEditMode?e.stopPropagation():this.isEnterPress(e)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(e)&&this.logClientVe(138758))};
_.v.handleTextboxClick=function(e){e.stopPropagation()};
_.v.handleTextboxKeydown=function(e){this.isControlEnterPress(e)?this.handleSubmit(e):e.key==="Escape"&&this.handleCancel(e)};
_.v.handleTextboxKeyup=function(){this.textChanged=_.mp(this.latestText)!==String(this.ironTextAreaElement.value)};
_.v.fireSelectedEvent=function(e){_.oC(this.hostElement,"yt-transcript-segment-selected",{startMs:e})};
_.v.fireReplayEvent=function(e,g){_.oC(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(e-100,0),endMs:g})};
_.v.fireEditEvent=function(e,g){_.oC(this.hostElement,"yt-transcript-segment-edit",{startMs:e,endMs:g})};
_.v.isEnterPress=function(e){return e.key==="Enter"||e.code==="Enter"||e.code==="NumpadEnter"||e.keyCode===13?!0:!1};
_.v.isControlEnterPress=function(e){var g=e.key==="Enter"||e.code==="Enter"||e.code==="NumpadEnter"||e.keyCode===13;return(e.ctrlKey||e.metaKey)&&g};
_.v.isCopyPress=function(e){var g=e.ctrlKey;return e.key==="c"&&g};
_.v.logClick=function(){var e,g=(e=this.data)==null?void 0:e.trackingParams;g&&_.KP(_.gL(),g)};
_.v.logClientVe=function(e){_.yW(_.gL(),_.VF(e))};
_.Bd.Object.defineProperties(sZ.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}}});
sZ.prototype.handleMouseLeave=sZ.prototype.handleMouseLeave;sZ.prototype.handleMouseEnter=sZ.prototype.handleMouseEnter;sZ.prototype.dataChanged=sZ.prototype.dataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],sZ.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],sZ.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],sZ.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],sZ.prototype,"isEditMode",void 0);_.t([_.u(),_.B("design:type",Object)],sZ.prototype,"touchCaptionsEnabled",void 0);_.t([_.u(),_.B("design:type",Object)],sZ.prototype,"editedText",void 0);_.t([_.u(),_.B("design:type",Object)],sZ.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.t([_.u(),_.B("design:type",Object)],sZ.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.t([_.u(),_.B("design:type",String)],sZ.prototype,"segmentAriaLabel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],sZ.prototype,"roundedContainer",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],sZ.prototype,"mouseOver",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],sZ.prototype,"textChanged",void 0);_.t([_.u(),_.B("design:type",Object)],sZ.prototype,"messages",void 0);
_.t([_.Cs("#suggestion"),_.B("design:type",Object)],sZ.prototype,"ironTextAreaElement",void 0);_.t([_.p("data","editedText"),_.B("design:type",Object),_.B("design:paramtypes",[])],sZ.prototype,"latestText",null);_.t([_.p("touchCaptionsEnabled","isEditMode"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],sZ.prototype,"enableEditButton",null);
_.t([_.p("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],sZ.prototype,"enableUndoButton",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sZ.prototype,"dataChanged",null);_.t([_.Ks("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sZ.prototype,"handleMouseEnter",null);
_.t([_.Ks("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sZ.prototype,"handleMouseLeave",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],sZ);
_.U(sZ,"ytd-transcript-segment-renderer",function(){if(yJO!==void 0)return yJO;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return yJO=e},{mode:1});var FK=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};e.isError=!1;e.darkerPanels=_.G("web_watch_darker_panels");e.useParentMaxHeight=_.G("web_watch_transscript_use_parent_max_height");e.segmentOffsets=[];e.segmentIndex=-1;return e};
_.Y(FK,_.z);_.v=FK.prototype;_.v.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.v.segmentsChanged=function(){this.updateOffsets()};
_.v.onYtPlayerTimeChanged=function(e){for(var g=this.segmentIndex,c=g;;){if(c>=0){var k=this.segmentOffsets[c].start;var I=this.segmentOffsets[c].isAutoScrollable}else k=-1,I=!0;var J=e+.5;if(!I){k=c+1<this.segmentOffsets.length?this.segmentOffsets[c+1].start:Infinity;if(J>=k){c+=1;continue}c=-1;break}if(J<k)k=c-1>=0&&this.segmentOffsets[c-1].isAutoScrollable,I=c===0||k?1:2,c-=I;else if(I=c+1<this.segmentOffsets.length&&this.segmentOffsets[c+1].isAutoScrollable?1:2,k=c+I<this.segmentOffsets.length?
this.segmentOffsets[c+I].start:Infinity,J>k)c+=I;else{if(c<0)break;c<this.segmentOffsets.length&&J>this.segmentOffsets[c].end&&(c=-1);break}}if(g!==c){if(g>=0){var q;(q=this.getSegmentElement(g))==null||q.classList.remove("active")}this.segmentIndex=c;if(!(c<0)){var L;(L=this.getSegmentElement(c))==null||L.classList.add("active");this.isHovered||this.scrollElementToTop(c)}}};
_.v.handleSegmentEdit=function(e){e.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=e.target,_.Z5(this.hostElement,"yt-transcript-player-edit",[e.detail.startMs/1E3,e.detail.endMs/1E3]))};
_.v.handleSegmentSelected=function(e){_.Z5(this.hostElement,"yt-transcript-player-seek",[e.detail.startMs/1E3])};
_.v.handleSegmentReplay=function(e){_.Z5(this.hostElement,"yt-transcript-player-replay",[e.detail.startMs/1E3,e.detail.endMs/1E3])};
_.v.handleSectionHeaderSelected=function(e){_.Z5(this.hostElement,"yt-transcript-player-seek",[e.detail.startMs/1E3])};
_.v.onMouseEnter=function(){this.isHovered=!0};
_.v.onMouseLeave=function(){this.isHovered=!1};
_.v.onRetryButtonClick=function(){_.oC(this.hostElement,"transcript-retry-button-click")};
_.v.getSegmentElement=function(e){return _.o1(this.hostElement).querySelector(":nth-child("+(e+1)+")")};
_.v.scrollElementToTop=function(e){e=this.getSegmentElement(e>=2?e-2:0);this.hostElement.scrollTop=Math.min(e.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.v.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(e){var g,c=(g=e.transcriptSegmentRenderer)!=null?g:e.transcriptSectionHeaderRenderer;return{start:Number(c.startMs)/1E3,end:Number(c.endMs)/1E3,isAutoScrollable:e.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.v.clearHighlightedSegments=function(){var e=_.o1(this.hostElement);e=_.w(e.querySelectorAll("ytd-transcript-segment-renderer"));for(var g=e.next();!g.done;g=e.next())g.value.classList.remove("active")};
_.Bd.Object.defineProperties(FK.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:e.searchResultSegments)||((g=this.data)==null?void 0:g.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
FK.prototype.onMouseLeave=FK.prototype.onMouseLeave;FK.prototype.onMouseEnter=FK.prototype.onMouseEnter;FK.prototype.handleSectionHeaderSelected=FK.prototype.handleSectionHeaderSelected;FK.prototype.handleSegmentReplay=FK.prototype.handleSegmentReplay;FK.prototype.handleSegmentSelected=FK.prototype.handleSegmentSelected;FK.prototype.handleSegmentEdit=FK.prototype.handleSegmentEdit;FK.prototype.segmentsChanged=FK.prototype.segmentsChanged;
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],FK.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],FK.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],FK.prototype,"isError",void 0);
_.t([_.u(),_.B("design:type",Object)],FK.prototype,"noResultLabel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],FK.prototype,"darkerPanels",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],FK.prototype,"useParentMaxHeight",void 0);_.t([_.p("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],FK.prototype,"segments",null);
_.t([_.p("segments","noResultLabel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],FK.prototype,"displayNoResults",null);_.t([_.OY("segments"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FK.prototype,"segmentsChanged",null);_.t([_.Ks("yt-transcript-segment-edit"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],FK.prototype,"handleSegmentEdit",null);
_.t([_.Ks("yt-transcript-segment-selected"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],FK.prototype,"handleSegmentSelected",null);_.t([_.Ks("yt-transcript-segment-replay"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],FK.prototype,"handleSegmentReplay",null);
_.t([_.Ks("ytd-transcript-section-header"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],FK.prototype,"handleSectionHeaderSelected",null);_.t([_.Ks("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FK.prototype,"onMouseEnter",null);_.t([_.Ks("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FK.prototype,"onMouseLeave",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],FK);
_.U(FK,"ytd-transcript-segment-list-renderer",function(){if(SA0!==void 0)return SA0;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return SA0=e},{mode:1});var ua=function(){var e=_.z.apply(this,arguments)||this;e.hideTimestamps=!!_.qk("hide-transcript-timestamps");e.isLoadingTranscripts=!1;e.darkerPanels=_.G("web_watch_darker_panels");e.isError=!1;e.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return e};
_.Y(ua,_.z);_.v=ua.prototype;_.v.headerChanged=function(){var e,g;this.baseGetTranscriptsCommand=(g=_.x((e=this.data)==null?void 0:e.header,Axz))==null?void 0:g.onTextChangeCommand};
_.v.bodyChanged=function(){var e=this.getBodyRenderer();e&&(e.initialSegments&&(this.initialTranscriptsRenderer=e),e.noResultLabel&&(this.noResultLabel=e.noResultLabel),e.retryLabel&&(this.retryLabel=e.retryLabel))};
_.v.detached=function(){this.clearSearchBoxText()};
_.v.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.v.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.v.fireSearch=function(e){var g=this;if(e){var c=e.detail.query;if(this.baseGetTranscriptsCommand){var k;e=(k=_.x(this.baseGetTranscriptsCommand,_.wnI))==null?void 0:k.params;var I;k=_.x((I=this.data)==null?void 0:I.footer,sfX);var J;if((I=(J=_.x(k==null?void 0:k.languageMenu,XED))==null?void 0:J.subMenuItems)&&I.length>0&&(J=I.find(function(n){return n.selected}))){var q,L;
e=(q=J.continuation)==null?void 0:(L=q.reloadContinuationData)==null?void 0:L.continuation}q=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:e,searchQuery:c}});this.ytComponentBehavior.resolveCommand(q,{commandController:{onServerError:function(){g.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});IxX(this.ytContinuationHandlerBehavior,function(){return c===g.getCurrentSearchBoxText()})}}};
_.v.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.v.onRetryButtonClick=function(){this.isError=!1;var e={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:e}))};
_.v.hideTimestampsChanged=function(){_.wp("hide-transcript-timestamps",this.hideTimestamps)};
_.v.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.v.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.v.handleSignalActionCopyTranscript=function(){var e=this,g=this.getBodyRenderer();g&&(g=((g==null?void 0:g.searchResultSegments)||(g==null?void 0:g.initialSegments)||[]).map(function(c){return _.x(c,FoS)}).filter(function(c){return!!c}).map(function(c){return{snippet:c.snippet||{runs:[{text:""}]},
startTimeText:c.startTimeText||{simpleText:""}}}).map(function(c){var k=(c.snippet.runs||[]).reduce(function(I,J){return I+J.text},"");
return e.hideTimestamps?k:c.startTimeText.simpleText+" "+k}).join("\n"),this.copyToClipboard(g))};
_.v.copyToClipboard=function(e){navigator.clipboard&&navigator.clipboard.writeText(e)};
_.v.getCurrentSearchBoxText=function(){var e;return(e=this.searchBox)==null?void 0:e.value};
_.v.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.v.getBodyRenderer=function(){var e;return _.x((e=this.data)==null?void 0:e.body,sUO)};
_.v.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Bd.Object.defineProperties(ua.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.o1(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
ua.prototype.hideTimestampsChanged=ua.prototype.hideTimestampsChanged;ua.prototype.searchCleared=ua.prototype.searchCleared;ua.prototype.fireSearch=ua.prototype.fireSearch;ua.prototype.onReloadContinuationFinish=ua.prototype.onReloadContinuationFinish;ua.prototype.bodyChanged=ua.prototype.bodyChanged;ua.prototype.headerChanged=ua.prototype.headerChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],ua.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ua.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Tk),_.B("design:type",Object)],ua.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ua.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ua.prototype,"hideTimestamps",void 0);
_.t([_.u(),_.B("design:type",Object)],ua.prototype,"isLoadingTranscripts",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ua.prototype,"darkerPanels",void 0);_.t([_.u(),_.B("design:type",Object)],ua.prototype,"isError",void 0);_.t([_.OY("data.header"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ua.prototype,"headerChanged",null);
_.t([_.k_("data.body"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ua.prototype,"bodyChanged",null);_.t([_.Ks("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ua.prototype,"onReloadContinuationFinish",null);_.t([_.Ks("yt-transcript-search-box-search"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],ua.prototype,"fireSearch",null);
_.t([_.Ks("yt-transcript-search-box-clear"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ua.prototype,"searchCleared",null);_.t([_.OY("hideTimestamps"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ua.prototype,"hideTimestampsChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],ua);
_.U(ua,"ytd-transcript-search-panel-renderer",function(){if(B_x!==void 0)return B_x;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return B_x=e},{mode:1});var d8=function(){var e=_.z.apply(this,arguments)||this;e.player=null;e.playerPollJobId=0;return e};
_.Y(d8,_.z);_.v=d8.prototype;_.v.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.v.onLoadReloadContinuation=function(e){_.G("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:e.target.data.continuation}}):(e={clickTrackingParams:e.target.data.clickTrackingParams,getTranscriptEndpoint:{params:e.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}}))};
_.v.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.v.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.v.attached=function(){this.updatePlayerListening()};
_.v.detached=function(){this.updatePlayerListening()};
_.v.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.v.startPlayerListening=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return(g=_.FE())?c.yield(g.getPlayerPromise(),2):c.return();e.player=c.yieldResult;e.playerPollJobId=_.ft.addLowPriorityJob(function(){e.getPlayerVideoProgress()},1E3);
e.player.addEventListener("onCueRangeEnter",function(k){e.onCueRangeEnter(k)});
e.player.addEventListener("onCueRangeExit",function(k){e.onCueRangeExit(k)});
e.player.addEventListener("onStateChange",function(k){e.onPlayerStateChange(k)});
e.player.addEventListener("SEEK_TO",function(k){e.onPlayerSeek(k)});
_.Uh(c)})};
_.v.getPlayerVideoProgress=function(){var e=this;_.ft.cancelJob(this.playerPollJobId);if(this.player){var g=this.player.getCurrentTime();_.Z5(this.hostElement,"yt-player-time-changed",[g])}this.playerPollJobId=_.ft.addLowPriorityJob(function(){e.getPlayerVideoProgress()},1E3)};
_.v.stopPlayerListening=function(){this.player=null;_.ft.cancelJob(this.playerPollJobId)};
_.v.onPlayerStateChange=function(e){e===2&&this.removePendingCue()};
_.v.onPlayerSeek=function(e){var g;if(g=this.pendingReplayCueId)g=this.pendingReplayCueId,g=e===(_.G("web_transcript_cue_id_killswitch")?Number(g):Number(g.split("_")[1]));g||this.removePendingCue()};
_.v.onCueRangeEnter=function(e){JA7(e)&&(this.pendingReplayCueId=e)};
_.v.onCueRangeExit=function(e){JA7(e)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.v.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.v.onYtTranscriptPlayerSeek=function(e){this.player&&this.player.seekTo(e,!0)};
_.v.onYtTranscriptPlayerReplay=function(e,g){this.player&&(this.player.addCueRange(IQ0(e),e,g),this.player.seekTo(e,!0),this.player.playVideo())};
_.v.onYtTranscriptPlayerEdit=function(e,g){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(IQ0(e),e,g),this.player.seekTo(e,!0))};
d8.prototype.onLoadReloadContinuation=d8.prototype.onLoadReloadContinuation;d8.prototype.panelContentVisibleChanged=d8.prototype.panelContentVisibleChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],d8.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],d8.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],d8.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],d8.prototype,"panelContentVisible",void 0);_.t([_.OY("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],d8.prototype,"panelContentVisibleChanged",null);
_.t([_.Ks("yt-load-reload-continuation"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],d8.prototype,"onLoadReloadContinuation",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],d8);
_.U(d8,"ytd-transcript-renderer",function(){if(V8O!==void 0)return V8O;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return V8O=e},{mode:1});var KTM;var ONz;var zR=function(){return _.z.apply(this,arguments)||this};
_.Y(zR,_.z);zR.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Bm(this.hostElement,[this.data.clickCommand],this.hostElement))};
zR.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+(V$()+tQ)+"px)"};
zR.prototype.updateShouldHideFromBinding=function(e){this.shouldHide=e.detail.value};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],zR.prototype,"rendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],zR.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],zR.prototype,"shouldHide",void 0);_.t([_.bF({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],zR);
_.U(zR,"ytd-ad-engagement-panel-banner-renderer",function(){if(ONz!==void 0)return ONz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ONz=e},{mode:2});var M87;var Hi=function(){var e=_.z.apply(this,arguments)||this;e.buttonUpdate=_.G("web_modern_buttons");e.adsSemanticText=_.G("enable_ads_web_ep_buenos_aires_and_padding_fix");return e};
_.Y(Hi,_.z);Hi.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.t([_.u(),_.B("design:type",Object)],Hi.prototype,"data",void 0);_.t([_.u({computed:"computeHideDefaultAdBadge(data)"}),_.B("design:type",Boolean)],Hi.prototype,"hideDefaultAdBadge",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hi.prototype,"buttonUpdate",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hi.prototype,"adsSemanticText",void 0);_.t([_.bF({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Hi);
_.U(Hi,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(M87!==void 0)return M87;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return M87=e},{mode:1});var Czq;var Ql=function(){var e=_.z.apply(this,arguments)||this;e.darkerPanels=_.G("web_watch_darker_panels");e.enableSqueezebackPanels=_.G("web_shorts_enable_squeezeback_panels");e.enableAnchoredPanel=_.G("desktop_shorts_v2_anchored_panel");e.headerClickListener=function(g){e.onHeaderClick(g)};
e.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return e};
_.Y(Ql,_.z);_.v=Ql.prototype;_.v.computeAdsInfoButton=function(){if(_.G("web_modern_buttons")){var e,g;return(g=_.x((e=this.data)==null?void 0:e.subtitleComplex,FH7))==null?void 0:g.adInfoRenderer}};
_.v.updateHeaderClickListener=function(){var e,g,c;((e=this.data)==null?0:e.navigationEndpoint)||((g=this.data)==null?0:g.onClickCommand)||_.x((c=this.data)==null?void 0:c.visibilityButton,_.x8)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.v.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.v.collapsedChanged=function(){var e;(e=this.data)!=null&&e.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.G("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.v.focus=function(e){var g=this;this.titleElement&&_.ft.addJob(function(){_.Un(g.titleElement,e)},0,500)};
_.v.computeTitleAriaLabel=function(e){var g=[];if(e.title){var c,k;g.push(this.ytRendererBehavior.getSimpleString(e.title)||((c=e.title.accessibility)==null?void 0:(k=c.accessibilityData)==null?void 0:k.label))}e.contextualInfo&&g.push(this.ytRendererBehavior.getSimpleString(e.contextualInfo));return g.join(" ")};
_.v.onHeaderClick=function(e){this.shouldTriggerHeaderClick(e)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Bm(this.hostElement,[this.data.onClickCommand],this.hostElement)):(e=this.getVisibilityToggleButton())&&e.click())};
_.v.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var e=_.x(this.data.visibilityButton,_.G_)||_.x(this.data.visibilityButton,_.x8);e&&this.ytRendererBehavior.logExplicitClick(e)}};
_.v.getVisibilityToggleButton=function(){var e=_.o1(this.hostElement).querySelector("#visibility-button").firstElementChild;return(e==null?void 0:e.is)==="ytd-toggle-button-renderer"?e:null};
_.v.shouldTriggerHeaderClick=function(e){return!_.TJ(_.lg(e),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.v.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(e){e=_.x(e,Jiq);this.targetId&&(e==null?void 0:e.targetId)===this.targetId&&(e=e.navigationButton)&&this.set("data.navigationButton",e)};
_.Bd.Object.defineProperties(Ql.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.G("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var e;return!!(((e=this.entity)==null?0:e.isActionButtonHidden)||this.hideActionButton)}}});
Ql.prototype.collapsedChanged=Ql.prototype.collapsedChanged;Ql.prototype.updateHeaderClickListener=Ql.prototype.updateHeaderClickListener;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Ql.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Wv),_.B("design:type",Object)],Ql.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ql.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],Ql.prototype,"targetId",void 0);_.t([_.u(),_.B("design:type",Boolean)],Ql.prototype,"collapsed",void 0);_.t([_.u(),_.B("design:type",Boolean)],Ql.prototype,"hideActionButton",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ql.prototype,"shortsPanel",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ql.prototype,"liveChatEngagementPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ql.prototype,"learningChatEngagementPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ql.prototype,"darkerPanels",void 0);_.t([_.Cs("#title"),_.B("design:type",HTMLElement)],Ql.prototype,"titleElement",void 0);_.t([_.Cs("#header"),_.B("design:type",HTMLElement)],Ql.prototype,"headerElement",void 0);
_.t([_.u({computed:"computeAdsInfoButton(data)"}),_.B("design:type",Object)],Ql.prototype,"adsInfoButton",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ql.prototype,"enableSqueezebackPanels",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ql.prototype,"enableAnchoredPanel",void 0);_.t([_.u({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(e,g){return _.Nc(e.entities,"engagementPanelTitleHeaderEntity",g)}}),
_.B("design:type",Object)],Ql.prototype,"entity",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ql.prototype,"adsSemanticText",null);_.t([_.OY("data","data.navigationEndpoint","data.onClickCommand"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ql.prototype,"updateHeaderClickListener",null);
_.t([_.k_("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ql.prototype,"collapsedChanged",null);_.t([_.p("entity","hideActionButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ql.prototype,"isActionButtonHidden",null);_.t([_.bF({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Ql);
_.U(Ql,"ytd-engagement-panel-title-header-renderer",function(){if(Czq!==void 0)return Czq;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Czq=e},{mode:1});var eW7;var UZ=function(){return _.z.apply(this,arguments)||this};
_.Y(UZ,_.z);UZ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],UZ.prototype,"data",void 0);_.t([_.bF({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],UZ);
_.U(UZ,"ytd-macro-markers-info-item-renderer",function(){if(eW7!==void 0)return eW7;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return eW7=e},{mode:1});var g$O;var oS=function(e,g,c,k,I,J){_.Iy.call(this);var q=this;this.JSC$21186_containerElement=e;this.hostElement=g;this.supportedSyncItems=c;this.syncEntityKey=k;this.options=I;this.renderLazyListItems=J;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;c1x(this);k$D(this);this.JSC$21186_scrollAnimation=new _.F4(function(L){e.scrollTop=L});
_.yh(this,this.JSC$21186_scrollAnimation);this.addOnDisposeCallback(function(){I$7(q,!1);q.activeItem&&q.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.Y(oS,_.Iy);var c1x=function(e){var g=_.kq(_.Ss().resolve(_.EO),function(c){return c.entities.markersEngagementPanelSyncEntity||{}},function(c,k){var I;
if(c[e.syncEntityKey]!==k[e.syncEntityKey]&&((I=c[e.syncEntityKey])==null?void 0:I.activeItemIndex)!==void 0)if(k=c[e.syncEntityKey].activeItemIndex,c=e.getItemByIndex(k)){if(J1q(e,c),e.contentVisible)if(e.browsingMode){var J;((J=e.options)==null?void 0:J.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(J=v$Q(e),c.offsetTop<e.JSC$21186_containerElement.clientHeight+e.JSC$21186_containerElement.scrollTop&&J&&!e.activeItemBelowSyncPosition&&I$7(e,!1));w_l(e)}else e.scrollToItem(c)}else _.mN(new _.E2("Could not find "+
e.supportedSyncItems+" sync child to set active.",k,e.JSC$21186_containerElement.querySelectorAll(e.supportedSyncItems).length))});
e.unsubscribeFromTimedMarkersListSyncEntity=g;e.addOnDisposeCallback(g);q0D(e)},q0D=function(e){var g=_.Ss().resolve(_.EO);
g=_.zw8(g.getState(),e.syncEntityKey);(g==null?void 0:g.activeItemIndex)!==void 0&&(g=e.getItemByIndex(g.activeItemIndex))&&J1q(e,g)},k$D=function(e){var g=new _.BT(e.onScroll,50,e);
_.yh(e,g);var c=function(){g.fire()};
e.JSC$21186_containerElement.addEventListener("scroll",c);e.addOnDisposeCallback(function(){e.JSC$21186_containerElement.removeEventListener("scroll",c)})};
oS.prototype.getItemByIndex=function(e){var g;(g=this.renderLazyListItems)==null||g.call(this,e);g=this.JSC$21186_containerElement.querySelectorAll(this.supportedSyncItems);if(g.length>e)return g[e]};
var J1q=function(e,g){e.activeItem&&e.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));g.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));e.activeItem=g};
oS.prototype.scrollToItem=function(e){e=this.getScrollPositionForItem(e);this.JSC$21186_containerElement.scrollTop!==e&&this.JSC$21186_scrollAnimation.start(this.JSC$21186_containerElement.scrollTop,e,300)};
oS.prototype.getScrollPositionForItem=function(e){if(this.JSC$21186_containerElement.querySelectorAll(this.supportedSyncItems)[0]===e)return 0;var g,c=((g=this.options)==null?0:g.percentOffset)?this.JSC$21186_containerElement.clientHeight*this.options.percentOffset:0;e=_.hd(e).y+this.JSC$21186_containerElement.scrollTop-(_.hd(this.JSC$21186_containerElement).y+c);return Math.max(0,Math.min(e,this.JSC$21186_containerElement.scrollHeight-this.JSC$21186_containerElement.offsetHeight))};
oS.prototype.onScroll=function(){this.activeItemBelowSyncPosition=v$Q(this);if(this.activeItem&&!this.JSC$21186_scrollAnimation.isAnimating()&&Math.abs(this.JSC$21186_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var e;switch((e=this.options)==null?void 0:e.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":LlX(this,!r1j(this));w_l(this);break;default:LlX(this,!0)}}};
var LlX=function(e,g){var c,k;_.r(function(I){if(I.nextAddress==1){if(e.browsingMode)return I.return();e.browsingMode=!0;g&&e.hostElement.classList.add("browsing-mode");e.playerExitBrowsingModeListener=function(){I$7(e,!1)};
return I.yield(_.t4(),2)}c=I.yieldResult;(k=c)==null||k.addEventListener("SEEK_TO",e.playerExitBrowsingModeListener);_.Uh(I)})},I$7=function(e,g){g=g===void 0?!0:g;
e.browsingMode&&(e.browsingMode=!1,e.hostElement.classList.remove("browsing-mode"),g&&e.scrollToItem(e.activeItem),a$M(e))},a$M=function(e){var g,c;
_.r(function(k){if(k.nextAddress==1)return e.playerExitBrowsingModeListener?k.yield(_.t4(),3):k.jumpTo(0);g=k.yieldResult;(c=g)==null||c.removeEventListener("SEEK_TO",e.playerExitBrowsingModeListener);e.playerExitBrowsingModeListener=void 0;_.Uh(k)})},w_l=function(e){var g;
((g=e.options)==null?void 0:g.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(r1j(e)?e.hostElement.classList.remove("browsing-mode"):e.activeItem&&e.hostElement.classList.add("browsing-mode"))},v$Q=function(e){if(!e.activeItem)return!1;
var g,c=((g=e.options)==null?0:g.percentOffset)?e.JSC$21186_containerElement.clientHeight*e.options.percentOffset:0;return e.activeItem.offsetTop>=e.JSC$21186_containerElement.scrollTop+c},r1j=function(e){if(!e.activeItem)return!1;
var g=e.activeItem.offsetTop+14<=e.JSC$21186_containerElement.scrollTop+e.JSC$21186_containerElement.clientHeight;return e.activeItem.offsetTop+e.activeItem.clientHeight-14>=e.JSC$21186_containerElement.scrollTop&&g};
oS.prototype.panelContentVisibleChanged=function(e){(this.contentVisible=e)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var n$l=function(e,g){e.syncEntityKey=g;var c;(c=e.unsubscribeFromTimedMarkersListSyncEntity)==null||c.call(e);c1x(e)},RWj=function(e,g){e.options=g};var ZD=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return e};
_.Y(ZD,_.z);_.v=ZD.prototype;_.v.detached=function(){var e;(e=this.scrollController)==null||e.dispose();this.scrollController=void 0};
_.v.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.v.dataChanged=function(){var e=this;_.Va(this,function(){if(e.scrollController){var g;(g=e.scrollController)==null||I$7(g,!1);var c,k,I;(k=e.scrollController)==null||n$l(k,(I=(c=e.data)==null?void 0:c.syncModelEntityKey)!=null?I:"default-macro-markers-list-renderer-entity-key");var J,q,L;(L=e.scrollController)==null||RWj(L,{percentOffset:(J=e.data)==null?void 0:J.selectedItemAlignmentPercentOffset,floatingPillType:(q=e.data)==null?void 0:q.floatingPillType})}else{var n,R,W,b;e.scrollController=
new oS(e.contents,e.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(b=(n=e.data)==null?void 0:n.syncModelEntityKey)!=null?b:"default-macro-markers-list-renderer-entity-key",{percentOffset:(R=e.data)==null?void 0:R.selectedItemAlignmentPercentOffset,floatingPillType:(W=e.data)==null?void 0:W.floatingPillType},function(h){e.renderLazyListItems(h)})}e.scrollController.panelContentVisibleChanged(!!e.panelContentVisible)})};
_.v.computeButtonShape=function(){var e=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){e.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.v.renderLazyListItems=function(e){for(var g=this.contents.children,c=0,k=0;k<g.length;k++){var I=void 0;(I=g[k].ytLazyListBehavior)==null||I.fillRemainingListItems();var J=void 0,q=void 0;I=_.x((J=this.data)==null?void 0:(q=J.contents)==null?void 0:q[k],_.Nm1);q=J=void 0;if((J=I)==null?0:(q=J.contents)==null?0:q.length)c+=I.contents.length;if(c>=e)break}};
_.v.handleSetActivePanelItemAction=function(e){if((e=_.x(e,EY0))&&this.panelTargetId===e.panelTargetId){e=e.itemIndex;var g,c,k=(c=(g=this.data)==null?void 0:g.syncModelEntityKey)!=null?c:"default-macro-markers-list-renderer-entity-key",I;((I=this.syncEntity)==null?void 0:I.activeItemIndex)!==e&&this.ytdReduxBehavior.dispatch(_.cY("markersEngagementPanelSyncEntity",k,{key:k,activeItemIndex:e}))}};
_.v.onSyncClick=function(){var e;(e=this.scrollController)==null||I$7(e)};
_.v.panelContentVisibleChanged=function(){var e;(e=this.scrollController)==null||e.panelContentVisibleChanged(!!this.panelContentVisible)};
ZD.prototype.panelContentVisibleChanged=ZD.prototype.panelContentVisibleChanged;ZD.prototype.dataChanged=ZD.prototype.dataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],ZD.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Wv),_.B("design:type",Object)],ZD.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ZD.prototype,"data",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],ZD.prototype,"useCustomColors",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],ZD.prototype,"panelTargetId",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],ZD.prototype,"panelContentVisible",void 0);
_.t([_.Cs("#contents"),_.B("design:type",HTMLElement)],ZD.prototype,"contents",void 0);_.t([_.u({selectorArgs:["data.syncModelEntityKey"],selector:_.zw8}),_.B("design:type",Object)],ZD.prototype,"syncEntity",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZD.prototype,"dataChanged",null);
_.t([_.OY("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZD.prototype,"panelContentVisibleChanged",null);_.t([_.bF({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],ZD);
_.U(ZD,"ytd-macro-markers-list-renderer",function(){if(g$O!==void 0)return g$O;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return g$O=e},{mode:1});var E$l;var Wlg;var Vl=function(){return _.z.apply(this,arguments)||this};
_.Y(Vl,_.z);Vl.prototype.computeAriaLabel=function(e){var g,c;return(e==null?void 0:(g=e.accessibility)==null?void 0:(c=g.accessibilityData)==null?void 0:c.label)||_.C_("LOADING",void 0,"Loading")};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Vl.prototype,"data",void 0);_.t([_.u({computed:"computeAriaLabel(data)"}),_.B("design:type",String)],Vl.prototype,"ariaLabel",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Vl);
_.U(Vl,"yt-content-loading-renderer",function(){if(Wlg===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;E$l===void 0&&(E$l=document.createElement("template"));var k=E$l;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Wlg=e}e=Wlg;return e},{mode:1});_.sL(_.H(function(e){var g=_.w(_.Wa(!1,void 0,"OZMtVb")),c=g.next().value,k=g.next().value;g=_.w(_.Wa(!1,void 0,"qWERsf"));var I=g.next().value,J=g.next().value;_.lo(function(){var n=_.x(e.data().collaboratePlaylistCollaborationSetting,pEx);n&&k(n.switchedOnByDefault);var R=_.x(e.data().allowNewCollaboratorsPlaylistCollaborationSetting,pEx);R&&J(R.switchedOnByDefault);if(!n&&!R||!n&&e.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")k(!0),J(!0)});
var q=function(n){k(n);J(n);var R=e.data().playlistCollaborationEntityKey||"";var W=_.lF().getState();(W=_.Nc(W.entities,"playlistCollaborationEntity",R))&&(W==null?void 0:W.isCollaborative)===n||_.lF().dispatch(_.cY("playlistCollaborationEntity",R,Object.assign({},W,{isCollaborative:n})))},L=function(n){J(n)};
return _.a("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.a("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.a(_.eS,{data:function(){return e.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.a(_.vpv,{data:n.data,
onSwitch:q})}})),_.a(_.E,{cond:c,
then:function(){return _.a(_.es,null,_.a("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.a(_.eS,{data:function(){return e.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.a(_.vpv,{data:n.data,
onSwitch:L,overrideDisabled:!1})}})),_.a(_.E,{cond:I,
then:function(){return _.a("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.a(_.eS,{data:function(){return e.data().copyLinkButton}},{buttonViewModel:_.oD}))}}),_.a("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.a(_.eS,{data:function(){return e.data().playlistCollaborators}},{contentListItemViewModel:_.T3Q})))}}))},"Nj"),"playlist-collaboration-view-model",{props:{data:_.jx}});var b5g=_.H(function(e){var g=e.data;var c=e.customCommandResolver;return _.a(_.es,null,_.a("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.a(_.eS,{data:function(){return g().adAvatar}},{adAvatarViewModel:function(k){return _.a(_.Tok,{data:k.data,
customCommandResolver:c})}})),_.a("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.a(_.E,{cond:function(){return g().headline},
then:function(k){return _.a(_.fa,{text:k,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.a("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.a(_.eS,{data:function(){return g().adBadge}},{adBadgeViewModel:function(k){return _.a(_.N6,{data:k.data,
hasDot:function(){return g().primaryDetailsLine!==void 0},
customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.a(_.eS,{data:function(){return g().primaryDetailsLine}},{adDetailsLineViewModel:function(k){return _.a(_.SZ,{data:k.data,
customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Oj"),hWD=_.H(function(e){var g=e.data;
var c=e.customCommandResolver;return _.a("ad-avatar-lockup-view-model",{class:function(){var k;return((k=g().interaction)==null?0:k.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.mb(_.By({visibilityCallback:function(k){var I,J=(I=g().interaction)==null?void 0:I.onFirstVisible;k&&J&&_.GF(J)},
showOption:_.HG}),_.GP(function(){return g().interaction},c)),
"aria-label":function(){var k,I;return(k=g().interaction)==null?void 0:(I=k.accessibility)==null?void 0:I.label}},_.a(_.f4,null,_.a(_.DC,{when:function(){return g().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.a(b5g,{data:g,
customCommandResolver:c})}),_.a(_.$z,null,function(){return null})))},"Pj");_.sL(_.H(function(e){var g=e.data;var c=e.panelContentVisibility;e=_.By({visibilityCallback:function(J){var q,L=(q=g().interaction)==null?void 0:q.onFirstVisible;J&&L&&_.GF(L)},
showOption:_.HG});var k=_.GP(function(){return g().interaction},vtx);
_.lu(function(){var J,q;if(q=_.Q0("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var L;q=(L=q())==null?void 0:L.onLayoutVisibleCallback}else q=null;(J=q)==null||J()},"Qj");
var I=function(){return c()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.a("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.mb(e,k)},_.a("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.a("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.a(_.E,{cond:_.V2W("(min-width: "+(V$()+tQ)+"px) or (max-width: 600px)"),then:function(){return _.a(_.eS,{data:function(){return g().adImage}},{adImageViewModel:function(J){return _.a(_.U8,{data:J.data,
targetHeight:80,customCommandResolver:vtx})}})}})),_.a("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.a("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.a(_.eS,{data:function(){return g().adAvatarLockup}},{adAvatarLockupViewModel:function(J){return _.a(hWD,{data:J.data,
customCommandResolver:vtx})}})),_.a(_.E,{cond:I,
then:function(){return _.a(_.eS,{data:function(){return g().adButton}},{adButtonViewModel:function(J){return _.a(_.o8,{data:J.data,
customCommandResolver:vtx})}})},
else:function(){return _.a(_.eS,{data:function(){return g().menu}},{buttonViewModel:_.oD})}}),_.a("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.a(_.eS,{data:function(){var J=_.x(g().toggleButton,_.fP);
return{toggleButtonViewModel:Object.assign({},J,{isTogglingDisabled:!0,isToggled:I()})}}},{toggleButtonViewModel:_.vF})))))},"Rj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.jx,
panelContentVisibility:_.jx}});var X_O=_.kD(w2X,{debugName:"chipBarViewModel"});_.K4(_.xP,function(e){_.DS(e,"chipBarViewModel","HwlOhd",w2X)});var G$v=_.kD(qmv,{debugName:"gridShelfViewModel"});_.K4(_.xP,function(e){_.DS(e,"gridShelfViewModel","JoU6vf",qmv)});var xQ7=_.kD(Lml,{debugName:"ytFeedbackPromptViewModel"});_.K4(_.xP,function(e){_.DS(e,"ytFeedbackPromptViewModel","hU04te",Lml)});var DQl=_.kD(rAD,{debugName:"learningJourneyLoaderViewModel"});_.K4(_.xP,function(e){_.DS(e,"learningJourneyLoaderViewModel","dIvQ6c",rAD)});var $QS=_.kD(aQO,{debugName:"ytAccordionViewModel"});_.K4(_.xP,function(e){_.DS(e,"ytAccordionViewModel","m9Vw4",aQO)});var Y0z=_.kD(ntX,{debugName:"videoOverviewViewModel"});_.K4(_.xP,function(e){_.DS(e,"videoOverviewViewModel","mcjWUc",ntX)});var f$j=_.kD(RPo,{debugName:"youChatItemViewModel"});_.K4(_.xP,function(e){_.DS(e,"youChatItemViewModel","QiZf0e",RPo)});var jZv=_.kD(Etv,{debugName:"ytChatLoadingViewModel"});_.K4(_.xP,function(e){_.DS(e,"ytChatLoadingViewModel","f8YPh",Etv)});var i5Q=_.kD(WmO,{debugName:"ytChatUserTurnViewModel"});_.K4(_.xP,function(e){_.DS(e,"ytChatUserTurnViewModel","b3MoKf",WmO)});var PRD=_.H(function(e){var g=_.w((0,_.zn1)(e.data)).next().value,c=function(){var k,I;return(I=(k=g().contents)==null?void 0:k.length)!=null?I:0};
return _.a("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return e.data().targetId||""},
"aria-busy":function(){var k,I;return(I=(k=g().contents)==null?void 0:k.some(function(J){return!!J.chatLoadingViewModel}))!=null?I:!1}},_.a(_.eS,{data:function(){return e.data().header}},{chipBarViewModel:X_O,
sectionHeaderViewModel:_.CW}),_.a(_.eS,{data:function(){return g().contents}},{accordionViewModel:$QS,
alertBannerViewModel:F_z,chatLoadingViewModel:function(k,I){return _.a(jZv,{data:k.data,containerHeight:e.containerHeight,isLastItem:function(){return I()===c()-1}})},
chatUserTurnViewModel:function(k,I){return _.a(i5Q,{data:k.data,containerHeight:e.containerHeight,isLastItem:function(){return I()===c()-1}})},
feedbackPromptViewModel:xQ7,gridShelfViewModel:function(k){return _.a(G$v,{data:k.data,shouldUseOwnContainerSize:!0,marginSettings:e.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:DQl,linearLayoutViewModel:_.iY,lockupViewModel:function(k){return _.a(_.KS,{data:k.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:e.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.CW,videoOverviewViewModel:Y0z,youChatItemViewModel:function(k,I){return _.a(f$j,{data:k.data,pending:!1,containerHeight:e.containerHeight,isLastItem:function(){return I()===c()-1}})}}))},"Sj");_.sL(_.H(function(e){var g=_.w((0,_.zn1)(e.data)).next().value,c=_.w(_.cj()),k=c.next().value;c=c.next().value;var I=_.mb(c);c=_.w(_.Wa(void 0,void 0,"fqbUqd"));var J=c.next().value,q=c.next().value,L=function(){var n;return _.x((n=e.data().sectionListLayoutConfiguration)==null?void 0:n.layoutConfiguration,hfx)};
_.lo(function(){var n,R=(n=I.value)==null?void 0:n.clientWidth;n=L()?_.DAt(R,L()):void 0;q(n)});
c={};return _.a("yt-section-list-renderer",{class:_.o6("ytSectionListRendererHost",e.className,(c.ytSectionListRendererHostOverscrollContain=function(){var n;return(n=e.overscrollContain)==null?void 0:n.call(e)},c)),
el:I,"data-target-id":function(){return e.data().targetId||""}},_.a(_.eS,{data:function(){return g().contents}},{itemSectionRenderer:function(n){return _.a(PRD,{data:n.data,
containerLayoutConfig:J,marginSettings:e.marginSettings,containerHeight:function(){return k.height()}})}}))},"Tj"),"yt-section-list-renderer",{props:{data:_.jx,
className:_.TF,marginSettings:_.jx,overscrollContain:_.jx}});_.sL(_.H(function(e){var g=function(){return _.x(e.data().inputComposerViewModel,X2j)},c=_.M2(_.Yu.currentPageSubTypeSelector),k=_.M2(_.Yu.persistentPanelVisibleSelector),I=_.w(_.Wa(!1,void 0,"RXGzYc")),J=I.next().value,q=I.next().value;
I=_.w(_.Wa(!1,void 0,"oyonKd"));var L=I.next().value,n=I.next().value,R=function(){f(!0);var Xg;_.GF(((Xg=g())==null?void 0:Xg.onSubmitCommand)||{})},W=function(){if(k()&&!L()){var Xg;
(Xg=_.BO())==null||Xg.removeCueRange("aic-proactive");q(!1);n(!0);R();_.b3(_.j2q(g().endOfVideoContinuation),{form:{formData:_.lt({clientMessageId:"youchat-"+Date.now(),pageContext:bW()})},commandController:{onSuccess:function(){f(!1)},
onServerError:function(){_.b3(Bqj(S()));f(!1)}}})}},b=function(){var Xg=_.BO();
if(Xg&&!J()&&!L()){var Fg=Xg.getDuration();Fg>60&&(Xg.addCueRange("aic-proactive",Fg-60,Fg-20),q(!0))}},h=function(){var Xg;
return((Xg=g())==null?void 0:Xg.youchatPendingResponseEntityKey)||""},X=_.O1(_.PqQ,h),D=function(){var Xg;
return!((Xg=X())==null||!Xg.isPendingResponse)},f=function(Xg){_.mZD(h())(Xg)};
I=_.w(_.Wa(!0,void 0,"umCoCf"));var l=I.next().value,A=I.next().value,d=function(){var Xg,Fg;var oA=_.x((Fg=g())==null?void 0:Fg.inputFormField,e$S);return oA==null?void 0:(Xg=oA.contentProperties)==null?void 0:Xg.placeholderText},S=function(){return g().sectionTargetId||"youchat_messages_section"};
I=_.PV("yt-chat-input-view-model");var V=_.io("textarea"),Q=_.O1(SoO,"chat_input_view_model_state"),y=ywO(),O=function(){var Xg;return!((Xg=Q())==null||!Xg.value)},Jq=function(){return e.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},LC=function(){var Xg;
(Xg=_.BO())==null||Xg.removeCueRange("aic-proactive");q(!1);n(!1);var Fg;_.G("enable_navigational_proactive_messages_on_ai_companion")&&((Fg=g())==null?0:Fg.navigationContinuation)&&k()&&(R(),_.b3(_.j2q(g().navigationContinuation),{form:{formData:_.lt({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:hPv(),pageContext:bW()})},commandController:{onSuccess:function(){f(!1)},
onServerError:function(){_.b3(Bqj(S()));f(!1)}}}))},bW=function(){var Xg;
return(Xg=_.Ss().resolve(_.NN(_.b_)))==null?void 0:_.QRl(Xg,c())};
_.lo(function(){if(_.Im("enable_ai_chat_controller")){var Xg;(Xg=_.Ss().resolve(_.NN(_.b_)))==null||Xg.init(e.data().environment)}else if(Xg=Gil(e.data()),!O()&&Xg){var Fg;((Fg=g())==null?0:Fg.setPendingResponseOnWelcome)&&f(!0);_.b3(Xg,{form:{formData:_.lt({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:hPv(),pageContext:bW()})}});y(!0)}var oA=S(),Zt=_.Ss().resolve(_.NN(_.yq)),Ev=function(){_.Cx.remove(oA);if(_.Im("enable_ai_chat_controller")){var V6;(V6=_.Ss().resolve(_.NN(_.b_)))!=null&&
V6.environment==="CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(V6.lastWelcomeContinuationSent=void 0)}else y(!1)},an=function(){_.EX(function(){if(Jq()&&(LC(oA),c()==="watch")){var V6=_.BO();
V6&&(V6.addEventListener("onStateChange",b),V6.addEventListener("onCueRangeEnter",W))}})};
Fg=_.G("enable_ai_companion")?!Jq():!0;Zt==null||Zt.addEventListener("yt-navigate-start",Ev,{once:Fg});Zt==null||Zt.addEventListener("yt-navigate-finish",an,{once:Fg});_.sX(function(){Zt==null||Zt.removeEventListener("yt-navigate-start",Ev);Zt==null||Zt.removeEventListener("yt-navigate-finish",an);var V6=_.BO();V6&&(V6.removeEventListener("onCueRangeEnter",W),V6.removeEventListener("onStateChange",b),V6.removeCueRange("aic-proactive"))})});
_.AV(function(){if(_.Im("enable_ai_chat_controller")){var Xg=Gil(e.data());if(Xg){var Fg,oA=((Fg=g())==null?0:Fg.setPendingResponseOnWelcome)?f:void 0,Zt;(Zt=_.Ss().resolve(_.NN(_.b_)))==null||RDv(Zt,{command:Xg,setPending:oA})}}},"SXTMBe");
var RA=function(){var Xg=V.value.value;V.value.value="";buv(V.value);var Fg,oA=((Fg=g())==null?void 0:Fg.enableGradientColorBg)||!1,Zt;Fg=Nqx(S(),Xg,oA,(Zt=g())==null?void 0:Zt.chatUserTurnBackgroundStyle);_.b3(Fg);R();var Ev,an,V6;Zt=(V6=_.WT((Ev=e.data())==null?void 0:Ev.sendUserQueryCommand))!=null?V6:_.j2q((an=g())==null?void 0:an.continuation);_.b3(Zt,{form:{formData:_.lt({clientMessageId:"youchat-"+Date.now(),userInputText:Xg,playerOffsetMs:hPv(),pageContext:bW()})},commandController:{onSuccess:function(){f(!1)},
onServerError:function(){_.b3(Bqj(S()));f(!1)}}})};
return _.a("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:I},_.a("div",{class:"chatInputViewModelChatInputWrapper"},_.a("form",{class:"chatInputViewModelChatInputForm"},_.a("textarea",{class:"chatInputViewModelChatInput",el:V,"on:keydown":_.Ve(function(Xg){var Fg=D()||!1;buv(V.value);Fg||Xg.key!=="Enter"||Xg.shiftKey||(Xg.preventDefault(),RA());return!1}),
"on:keyup":_.Ve(function(){A(V.value.value.length===0);return!1}),
"aria-label":function(){if(D()){var Xg,Fg;return((Xg=g())==null?void 0:(Fg=Xg.loadingConfig)==null?void 0:Fg.loadingAnimationA11yLabel)||""}return d()},
placeholder:d,rows:1}),_.a(_.oD,{data:function(){return _.x(e.data().sendButton,_.$8)},
onClick:function(Xg){Xg.preventDefault();RA();A(V.value.value.length===0)},
buttonOverrides:function(){return{disabled:l()||D()}}})),_.a(_.fa,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Xg;return e.data().disclaimerText||((Xg=_.x(e.data().disclaimer,_.SJw))==null?void 0:Xg.text)}})))},"Vj"),"yt-chat-input-view-model",{props:{data:_.jx}});var mQO=["engagement-panel-clip-create","engagement-panel-clip-view"],p_j=0,te=function(){var e=_.z.apply(this,arguments)||this;var g;e.headerData=(g=e.data)==null?void 0:g.header;e.darkerPanels=_.G("web_watch_darker_panels");e.matchContentTheme=_.G("web_watch_panel_content_match_theme");e.disableAutoFill=!1;e.isFullscreen=!1;e.isTheaterMode=!1;e.liveChatReplyPanel=!1;e.enableAnchoredPanel=_.G("desktop_shorts_v2_anchored_panel");e.disableBackdropFilter=_.G("web_disable_backdrop_filter");e.isPersistentPanel=
!1;e.trackEngagementPanelVisibility=_.G("web_watch_track_engagement_panel_visibility");e.overscrollContain=!1;e.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 e};
_.Y(te,_.z);_.v=te.prototype;
_.v.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(e){var g;return(e==null?void 0:(g=e.webComponentHint)==null?void 0:g.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.v.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var e;if((e=this.hostElement.parentElement)==null?0:e.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.v.detached=function(){this.updateTheaterDisablement()};
_.v.showPanel=function(){var e=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.ft.addJob(function(){e.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.v.maybeScrollToItemSection=function(e){var g=this,c,k=e==null?void 0:(c=e.sectionListEngagementPanelExtras)==null?void 0:c.scrollToItemSectionIdentifier;k&&_.ft.addJob(function(){var I;(I=g.sectionListRendererElement)==null||I.scrollToItemSection(k)},8)};
_.v.hidePanel=function(){var e=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.ft.addJob(function(){e.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.v.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.v.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.v.updatePanel=function(e,g,c,k){var I=this;if((e=e==null?void 0:e.engagementPanelSectionListRenderer)||k){if(e){k=e.header;var J=e.content,q=e.footer,L=e.targetId,n=e.onShowCommands;e=e.onHideCommands;L&&this.set("data.targetId",L);k&&this.set("data.header",k);J&&this.set("data.content",J);q&&this.set("data.footer",q);_.G("enable_on_visibility_change_commands_for_panels")&&(n&&this.set("data.onShowCommands",n),e&&this.set("data.onHideCommands",e))}else k&&(e=k.content,J=k.secondaryHeaderContent,
q=k.targetId,k=k.loggingDirectives,q&&this.set("data.targetId",q),e&&this.set("data.content",e),k&&_.G("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",k),J&&(this.secondaryHeaderData=J));this.updateChildVisibilityProperties();if(g){var R;_.G("kevlar_update_panel_focus_scroll_killswitch")||(R={preventScroll:!0});this.focus(R)}_.Va(this,function(){_.oC(I.hostElement,"yt-refit");I.maybeScrollToItemSection(c)})}};
_.v.computeHeaderData=function(){var e,g=(0,_.n0.unsafeClone)((e=this.data)==null?void 0:e.header);if(g){e=new _.lN(Object.keys(g)[0]);var c=_.x(g,e),k=_.x(this.secondaryHeaderData,e);k&&_.rL(g,e,Object.assign({},k,c))}return g};
_.v.getReloadContinuation=function(){var e,g,c,k=_.w(((e=this.data)==null?void 0:(g=e.content)==null?void 0:(c=g.sectionListRenderer)==null?void 0:c.continuations)||[]);for(e=k.next();!e.done;e=k.next())if(e=e.value,e.reloadContinuationData)return e.reloadContinuationData.continuation};
_.v.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var e;((e=this.data)==null?0:e.targetId)&&(e=this.contentElement.firstElementChild)&&e.setAttribute("panel-target-id",this.data.targetId)};
_.v.forwardPopupClosedToFlowRootRenderer=function(){var e=_.o1(this.hostElement).querySelector("ytd-flow-root-renderer");if(e&&this.hostElement.closest("ytd-popup-container"))e.onPopupClosed()};
_.v.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var e;if(!mQO.includes((e=this.theaterDisablementPanelIdentifier)!=null?e:""))if(e=_.G("web_watch_imax_theater_mode")&&this.isTheaterMode,e=_.G("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||e,_.G("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||e){var g;this.visibility=(g=this.data)==null?void 0:g.visibility;var c;this.trackEngagementPanelVisibility&&((c=this.data)==null?void 0:c.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var k,I,J,q;this.contentEmpty=!!(((k=this.data)==null?0:(I=k.content)==null?0:I.structuredDescriptionContentRenderer)&&Object.keys((J=this.data)==null?void 0:(q=J.content)==null?void 0:
q.structuredDescriptionContentRenderer).length===0);(g=_.Ss().resolve(_.Lj))&&g.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.v.isTheaterModeChanged=function(){_.G("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.v.isFullscreenChanged=function(){_.G("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.v.focus=function(e){if(this.header)this.header.focus(e);else{var g;(g=_.o1(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||g.focus(e)}};
_.v.visibilityChanged=function(){if(!_.G("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var e=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",g=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",k=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",I=k||!this.lastVisibility,J,q,L,n=((J=this.data)==null?void 0:(q=J.identifier)==null?void 0:
q.tag)||((L=this.data)==null?void 0:L.panelIdentifier);if(e&&I){var R;if((R=this.data)==null?0:R.onShowCommands)if(_.G("enable_on_visibility_change_commands_for_panels"))for(g=_.w(this.data.onShowCommands),c=g.next();!c.done;c=g.next())this.ytComponentBehavior.resolveCommand(c.value);else _.Bm(this.hostElement,this.data.onShowCommands,this.hostElement);n&&_.Tt().dispatch(_.Hh({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:n}}))}else if(g&&c){var W;if((W=this.data)==null?0:W.onHideCommands)if(_.G("enable_on_visibility_change_commands_for_panels"))for(g=
_.w(this.data.onHideCommands),c=g.next();!c.done;c=g.next())this.ytComponentBehavior.resolveCommand(c.value);else _.Bm(this.hostElement,this.data.onHideCommands,this.hostElement);n&&_.Tt().dispatch(_.Hh({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:n}}))}e&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*p_j++));_.G("kevlar_watch_focus_on_engagement_panels")&&e&&k&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.v.notifyVisibilityChanged=function(e){var g;_.V1(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,e,(g=this.data)==null?void 0:g.targetId]);if(_.G("autonav_pause_for_comments_ep")){var c;_.oC(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(c=this.data)==null?void 0:c.targetId})}};
_.v.updateTheaterDisablement=function(){if(!_.G("kevlar_watch_theater_disablement_killswitch")){var e=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&mQO.includes(e)&&!_.G("watch_next_grid_ignore_disallowed_panels")){var g=_.nx(_.Tt().getState()),c=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";e!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():c?(this.originalTheaterState===void 0&&(this.originalTheaterState=g,this.theaterDisablementPanelIdentifier=
e),g&&_.Z5(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.v.clearTheaterDisablement=function(){_.Z5(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.v.updateChildVisibilityProperties=function(){this.hostElement||_.G("kevlar_panel_property_init_killswitch")||this._enableProperties();var e=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=e);var g,c=(g=this.headerElement)==null?void 0:g.firstElementChild;if(c&&!this.adHeaderImageLockupViewModel){g=e==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";c.collapsed=g;c=_.o1(c).querySelector("#visibility-button");if(!c)return;(c=c.firstElementChild)&&
c.polymerController.is==="ytd-toggle-button-renderer"&&c.polymerController.data.isToggled!==g&&c.polymerController.set("data.isToggled",g)}var k;if(g=(k=this.contentElement)==null?void 0:k.firstElementChild)if(e&&e!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")g.removeAttribute("panel-content-visible");else{g.setAttribute("panel-content-visible","");var I;(I=g.markDirty)==null||I.call(g)}};
_.v.onYtChangeEngagementPanelVisibilityAction=function(e){var g=this,c,k=(c=this.data)==null?void 0:c.targetId,I,J,q;c=((I=this.data)==null?void 0:(J=I.identifier)==null?void 0:J.tag)||((q=this.data)==null?void 0:q.panelIdentifier);var L=_.x(e,_.nAs),n;e=k&&(L==null?void 0:L.targetId)===k||c&&(L==null?void 0:(n=L.panelIdentifier)==null?void 0:n.tag)===c;this.dialog&&e&&(L==null?void 0:L.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(k==="engagement-panel-comments-section"?_.Z5(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Z5(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",c]));!_.G("kevlar_use_engagement_panel_management_component")&&e&&(k=L.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!k?_.ft.addJob(function(){g.visibility=L.visibility},2,this.hideDelayMs):this.visibility=L.visibility,L.visibility&&this.notifyVisibilityChanged(L.visibility))};
_.v.onYtScrollToEngagementPanelCommand=function(e){var g,c=(g=this.data)==null?void 0:g.targetId,k,I,J;g=((k=this.data)==null?void 0:(I=k.identifier)==null?void 0:I.tag)||((J=this.data)==null?void 0:J.panelIdentifier);e=_.x(e,_.jTB);var q;(c&&(e==null?void 0:e.targetId)===c||g&&(e==null?void 0:(q=e.panelIdentifier)==null?void 0:q.tag)===g)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Z5(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.v.attachVEs=function(e){var g,c;(e==null?0:(g=e.content)==null?0:(c=g.productListRenderer)==null?0:c.trackingParams)&&_.gL().graftServerVe(e.content.productListRenderer.trackingParams);var k,I;(e==null?0:(k=e.content)==null?0:(I=k.transcriptRenderer)==null?0:I.trackingParams)&&_.gL().graftServerVe(e.content.transcriptRenderer.trackingParams)};
_.v.onYtUpdateEngagementPanelAction=function(e){var g,c=(g=this.data)==null?void 0:g.targetId;e=_.x(e,b$x);c&&(e==null?void 0:e.targetId)===c&&(this.updatePanel({engagementPanelSectionListRenderer:{header:e==null?void 0:e.header,content:e==null?void 0:e.content}},!1),this.attachVEs(e))};
_.v.onYtShowEngagementPanelScrimAction=function(e){var g,c=(g=this.data)==null?void 0:g.targetId;e=_.x(e,WHO);c&&(e==null?void 0:e.engagementPanelTargetId)===c&&(this.scrimmed=!0)};
_.v.onYtHideEngagementPanelScrimAction=function(e){var g,c=(g=this.data)==null?void 0:g.targetId;e=_.x(e,LHj);c&&(e==null?void 0:e.engagementPanelTargetId)===c&&(this.scrimmed=!1)};
_.v.getIdentifier=function(){var e,g,c;return((e=this.data)==null?void 0:e.panelIdentifier)||((g=this.data)==null?void 0:(c=g.identifier)==null?void 0:c.tag)};
_.v.getSurface=function(){var e,g;return(e=this.data)==null?void 0:(g=e.identifier)==null?void 0:g.surface};
_.Bd.Object.defineProperties(te.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var e=this.getIdentifier();return e==="engagement-panel-youchat"||e==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
te.prototype.visibilityChanged=te.prototype.visibilityChanged;te.prototype.isFullscreenChanged=te.prototype.isFullscreenChanged;te.prototype.isTheaterModeChanged=te.prototype.isTheaterModeChanged;te.prototype.dataChanged=te.prototype.dataChanged;te.prototype.forwardPopupClosedToFlowRootRenderer=te.prototype.forwardPopupClosedToFlowRootRenderer;te.prototype.onYtRendererstamperFinished=te.prototype.onYtRendererstamperFinished;
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],te.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],te.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],te.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],te.prototype,"ytdReduxBehavior",void 0);
_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],te.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],te.prototype,"data",void 0);_.t([_.u({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.B("design:type",Object)],te.prototype,"headerData",void 0);_.t([_.u(),_.B("design:type",Object)],te.prototype,"secondaryHeaderData",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"visibility",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],te.prototype,"contentEmpty",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],te.prototype,"scrimmed",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],te.prototype,"dialog",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],te.prototype,"dropdown",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"darkerPanels",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"matchContentTheme",void 0);_.t([_.u(),_.B("design:type",Object)],te.prototype,"disableAutoFill",void 0);_.t([_.u({reflectToAttribute:!0,value:_.G("optimal_reading_width_comments_ep")}),_.B("design:type",Boolean)],te.prototype,"optimalReadingWidthComments",void 0);_.t([_.u(),_.B("design:type",Number)],te.prototype,"hideDelayMs",void 0);
_.t([_.u({selector:_.RH,reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"isFullscreen",void 0);_.t([_.u({selector:_.nx,reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"isTheaterMode",void 0);_.t([_.u(),_.B("design:type",Number)],te.prototype,"showDelayMs",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.targetId"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"targetId",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"webSize",null);_.t([_.u(),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"hideFooterBorder",null);_.t([_.u(),_.B("design:type",Object)],te.prototype,"isWatch",void 0);_.t([_.u(),_.B("design:type",Object)],te.prototype,"originalTheaterState",void 0);_.t([_.u(),_.B("design:type",Object)],te.prototype,"theaterDisablementPanelIdentifier",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],te.prototype,"isWatchWhilePanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],te.prototype,"shortsPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],te.prototype,"liveChatEngagementPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],te.prototype,"learningChatEngagementPanel",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"liveChatReplyPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"enableAnchoredPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"disableBackdropFilter",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"isPersistentPanel",void 0);_.t([_.u(),_.B("design:type",Object)],te.prototype,"trackEngagementPanelVisibility",void 0);
_.t([_.u(),_.B("design:type",Object)],te.prototype,"overscrollContain",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"isAiCompanionPanel",null);_.t([_.Cs("#header"),_.B("design:type",HTMLElement)],te.prototype,"headerElement",void 0);_.t([_.Cs("#header > *"),_.B("design:type",HTMLElement)],te.prototype,"header",void 0);_.t([_.Cs("ytd-section-list-renderer"),_.B("design:type",Object)],te.prototype,"sectionListRendererElement",void 0);
_.t([_.Cs("panel-ad-header-image-lockup-view-model"),_.B("design:type",HTMLElement)],te.prototype,"adHeaderImageLockupViewModel",void 0);_.t([_.Cs("#content"),_.B("design:type",HTMLElement)],te.prototype,"contentElement",void 0);_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"onYtRendererstamperFinished",null);
_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.t([_.k_("data","isFullscreen","isTheaterMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"dataChanged",null);_.t([_.OY("isTheaterMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"isTheaterModeChanged",null);
_.t([_.OY("isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"isFullscreenChanged",null);_.t([_.OY("visibility"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"visibilityChanged",null);_.t([_.bF({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],te);
_.U(te,"ytd-engagement-panel-section-list-renderer",function(){if(KTM!==void 0)return KTM;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return KTM=e},{mode:2});var TnM;var Bi=function(){var e=_.z.apply(this,arguments)||this;e.rounded=!0;e.pageAttachedTo=void 0;e.currentRequestResolver=void 0;e.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return e};
_.Y(Bi,_.z);Bi.prototype.attached=function(){this.pageAttachedTo=_.Ss().resolve(_.A4).getCurrentPage();_.oC(this.hostElement,"yt-player-attached",this.player)};
Bi.prototype.detached=function(){var e;if((e=this.pageAttachedTo)==null?0:e.hostElement)_.oC(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Bi.prototype.dataChanged=function(){var e=this,g;if(((g=this.data)==null?0:g.inlinePlaybackEndpoint)&&!_.G("web_channel_imp_ks")){this.currentRequestResolver&&this.currentRequestResolver.reject();g=this.data.inlinePlaybackEndpoint;var c=_.Ss().resolve(_.kv),k={};_.Ss().resolve(_.et);k.lact=_.S6();var I=new _.V8;this.currentRequestResolver=I;I.promise.then(function(J){var q={autoplay:!0};!_.G("miniplayer_stop_channel_video_autoplay_killswitch")&&_.Ss().resolve(_.xt).isMiniplayerActive()&&(q.pause_at_start=
!0,q.autoplay=!1);J&&e.player.loadVideoWithPlayerResponse(J,q)});
TS7(c,{endpoint:g,startPlaybackInMutedState:!1},k).then(function(J){I.resolve(J)}).catch(function(){})}else if((c=this.data)==null?0:c.videoId)g={video_id:this.data.videoId,
autoplay:!0},!_.G("miniplayer_stop_channel_video_autoplay_killswitch")&&_.Ss().resolve(_.xt).isMiniplayerActive()&&(g.pause_at_start=!0,g.autoplay=!1),this.player.loadVideoWithPlayerVars(g)};
Bi.prototype.handleSignalActionPausePlayer=function(){_.u6().pause()};
Bi.prototype.dataChanged=Bi.prototype.dataChanged;_.t([_.u(),_.B("design:type",Object)],Bi.prototype,"data",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Bi.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Bi.prototype,"rounded",void 0);_.t([_.Cs("#player"),_.B("design:type",Object)],Bi.prototype,"player",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bi.prototype,"dataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Bi);
_.U(Bi,"ytd-channel-video-player-renderer",function(){if(TnM!==void 0)return TnM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return TnM=e},{mode:1});var l$z;var N3=function(){return _.z.apply(this,arguments)||this};
_.Y(N3,_.z);N3.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.WA(_.o1(this.hostElement).querySelector("#text"),_.j4w(_.mau,this.data.companionLegalText))};
N3.prototype.computeAutoScrollEnabled=function(e,g){return e&&!g};
N3.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
N3.prototype.onToggleTap=function(){this.expanded=!this.expanded};
N3.prototype.expandedChanged=N3.prototype.expandedChanged;N3.prototype.dataChanged=N3.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.t([_.m(v4S),_.B("design:type",Object)],N3.prototype,"ytdAutoScrollBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],N3.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],N3.prototype,"expanded",void 0);
_.t([_.u({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.B("design:type",Boolean)],N3.prototype,"autoScrollEnabled",void 0);_.t([_.u(),_.B("design:type",String)],N3.prototype,"expanderIcon",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],N3.prototype,"dataChanged",null);
_.t([_.OY("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],N3.prototype,"expandedChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],N3);
_.U(N3,"ytd-companion-legal-text-renderer",function(){if(l$z!==void 0)return l$z;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return l$z=e},{mode:1});var A10;var ST=function(){var e=_.z.apply(this,arguments)||this;e.buttonUpdate=_.G("web_modern_buttons");e.kevlarWatchGrid=_.G("kevlar_watch_grid");e.centerAlignDescription=_.G("action_companion_center_align_description");e.truncateDomain=_.G("action_companion_truncate_domain");e.enableMonoStyle=_.G("enable_default_mono_cta_migration_web_client");return e};
_.Y(ST,_.z);_.v=ST.prototype;_.v.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.v.getOnLayoutVisibleCallback=function(){var e=_.Q0("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.onLayoutVisibleCallback:null};
_.v.getLayoutId=function(){var e=_.Q0("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.layoutId:null};
_.v.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",ST.JSC$21251_DEFAULT_AD_BADGE_RENDERER);var e=this.getOnLayoutVisibleCallback();e&&e()}};
_.v.getButtonRenderer=function(e){return e.actionButton&&_.x(e.actionButton,_.G_)?(delete _.x(e.actionButton,_.G_).navigationEndpoint,_.x(e.actionButton,_.G_)):{}};
_.v.onClick=function(e){var g=this;if((!_.G("web_modern_buttons")||!_.TJ(_.lg(e),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){e=_.FE();var c=this.getLayoutId();e&&c&&_.G("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?e.getPlayerPromise().then(function(k){(new _.n$(k)).executeCommand(g.data.navigationEndpoint,c)}):_.G("kevlar_companion_resolve_command_killswitch")?_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Z5(this.hostElement,"yt-companion-ad-clicked",["action-companion",c])}};
_.Bd.Object.defineProperties(ST.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((e=this.data)==null?0:(g=e.detailsLine)==null?0:(c=g.adRating)==null?0:c.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 e,g,c,k;return((e=this.data)==null?0:(g=e.detailsLine)==null?0:(c=g.adRating)==null?0:(k=c.ratingIcon)==null?0:k.iconType)?_.NY(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k;return((e=this.data)==null?0:(g=e.detailsLine)==null?0:(c=g.texts)==null?0:(k=c[0])==null?0:k.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 e,g;return((e=this.data)==null?0:(g=e.description)==null?0:g.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var e=_.Q0("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var e=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return e?e.indexOf("/default_banner")!==-1:!0}}});
ST.prototype.onClick=ST.prototype.onClick;ST.prototype.dataChanged=ST.prototype.dataChanged;ST.JSC$21251_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.C_("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],ST.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ST.prototype,"rendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ST.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ST.prototype,"buttonUpdate",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ST.prototype,"kevlarWatchGrid",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ST.prototype,"centerAlignDescription",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ST.prototype,"truncateDomain",void 0);
_.t([_.u({computed:"computeButtonOverride(buttonUpdate)"}),_.B("design:type",Object)],ST.prototype,"buttonOverride",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ST.prototype,"enableMonoStyle",void 0);_.t([_.p("data.detailsLine.adRating.ratingText"),_.B("design:type",Object),_.B("design:paramtypes",[])],ST.prototype,"getRating",null);_.t([_.p("getRating"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ST.prototype,"computeRatingHidden",null);
_.t([_.p("data.detailsLine.adRating.ratingIcon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],ST.prototype,"iconType",null);_.t([_.p("data.detailsLine.texts.0.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],ST.prototype,"getDetailsLine",null);_.t([_.p("getDetailsLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ST.prototype,"computeDetailsLineHidden",null);
_.t([_.p("data.description.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],ST.prototype,"getDescriptionText",null);_.t([_.p("getDescriptionText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ST.prototype,"computeDescriptionTextHidden",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ST.prototype,"interactionLoggingClientData",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ST.prototype,"hideBanner",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ST.prototype,"dataChanged",null);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],ST.prototype,"onClick",null);_.t([_.bF({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],ST);
_.U(ST,"ytd-action-companion-ad-renderer",function(){if(A10!==void 0)return A10;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return A10=e},{mode:2});var sZS;var FlS;var yl=function(){var e=_.z.apply(this,arguments)||this;e.buttonUpdate=_.G("web_modern_buttons");e.hideLegacyBanner=_.G("enable_dsa_one_click_ata_translators_infeed_elements");e.adInfoButtonStyle="mono";e.adInfoButtonType="text";e.noDotAdBadge=!0;return e};
_.Y(yl,_.z);_.v=yl.prototype;_.v.getOnLayoutVisibleCallback=function(){var e=_.Q0("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.onLayoutVisibleCallback:null};
_.v.getLayoutId=function(){var e=_.Q0("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.layoutId:null};
_.v.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var e=this.data.image.thumbnail.thumbnails[0];this.imageSrc=e.url?_.Km(e.url):void 0;this.imageWidth=e.width||0;this.imageHeight=e.height||0}this.data.clickthroughEndpoint&&_.x(this.data.clickthroughEndpoint,_.uf)&&(e=_.x(this.data.clickthroughEndpoint,_.uf).url,_.G("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
e||"":e?(e=_.Km(e),this.clickThroughUrl=_.BJ(e)):this.clickThroughUrl=void 0);(e=this.getOnLayoutVisibleCallback())&&e()}};
_.v.onClick=function(e){_.TJ(_.lg(e),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(e)};
_.v.handleClick=function(){var e=this;this.data&&this.data.clickthroughEndpoint&&(_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(g){e.macroReplacementBehavior.sendServiceRequestAction([g])}),_.Z5(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.v.onLoad=function(){_.V1(this.hostElement,"yt-refit-popups-action")};
_.Bd.Object.defineProperties(yl.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var e=_.Q0("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var e=_.Q0("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.interactionLoggingClientData:null}}});
yl.prototype.onLoad=yl.prototype.onLoad;yl.prototype.onClick=yl.prototype.onClick;yl.prototype.dataChanged=yl.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],yl.prototype,"rendererBehavior",void 0);_.t([_.m(Elo.YtMacroReplacementBehavior),_.B("design:type",Object)],yl.prototype,"macroReplacementBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],yl.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],yl.prototype,"buttonUpdate",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],yl.prototype,"hideLegacyBanner",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],yl.prototype,"adInfoButtonStyle",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],yl.prototype,"adInfoButtonType",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],yl.prototype,"macros",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],yl.prototype,"interactionLoggingClientData",null);_.t([_.u(),_.B("design:type",String)],yl.prototype,"clickThroughUrl",void 0);_.t([_.u(),_.B("design:type",_.ZB)],yl.prototype,"imageSrc",void 0);_.t([_.u(),_.B("design:type",Number)],yl.prototype,"imageWidth",void 0);_.t([_.u(),_.B("design:type",Number)],yl.prototype,"imageHeight",void 0);_.t([_.u(),_.B("design:type",Object)],yl.prototype,"noDotAdBadge",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"dataChanged",null);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],yl.prototype,"onClick",null);_.t([_.Ks("load"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"onLoad",null);_.t([_.bF({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],yl);
_.U(yl,"ytd-image-companion-renderer",function(){if(FlS!==void 0)return FlS;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return FlS=e},{mode:2});var ufl;var Kp=function(){return _.z.apply(this,arguments)||this};
_.Y(Kp,_.z);_.v=Kp.prototype;_.v.dataChanged=function(){this.set("data.adBadge",Kp.JSC$21260_DEFAULT_AD_BADGE_RENDERER);if(this.data){var e=this.getOnLayoutVisibleCallback();e&&e()}};
_.v.getOnLayoutVisibleCallback=function(){var e=_.Q0("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.onLayoutVisibleCallback:null};
_.v.getLayoutId=function(){var e=_.Q0("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.layoutId:null};
_.v.onCompanionClicked=function(e){this.data&&(e.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Z5(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.v.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var e=_.FE(),g=this.getLayoutId(),c=this.data.clickToAdvSiteEndpoint;e&&g&&_.G("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?e.getPlayerPromise().then(function(k){(new _.n$(k)).executeCommand(c,g)}):_.oC(this.hostElement,"yt-navigate",{endpoint:c})}};
_.v.sendTrackingPings=function(e){if(e&&e.length!==0&&e[0].loggingUrls&&(e=e[0].loggingUrls.map(this.getBaseUrl)))for(var g=0;g<e.length;g++)_.uw(e[g])};
_.v.getBaseUrl=function(e){return e.baseUrl||""};
_.Bd.Object.defineProperties(Kp.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var e=_.Q0("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.interactionLoggingClientData:null}}});
Kp.prototype.onCompanionClicked=Kp.prototype.onCompanionClicked;Kp.prototype.dataChanged=Kp.prototype.dataChanged;Kp.JSC$21260_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.C_("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Kp.prototype,"data",void 0);_.t([_.Cs("#title"),_.B("design:type",HTMLElement)],Kp.prototype,"shopTitle",void 0);
_.t([_.k_("data.impressionEndpoints"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kp.prototype,"dataChanged",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kp.prototype,"interactionLoggingClientData",null);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Kp.prototype,"onCompanionClicked",null);
_.t([_.bF({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Kp);
_.U(Kp,"ytd-shopping-companion-renderer",function(){if(ufl!==void 0)return ufl;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ufl=e},{mode:1});_.sL(_.H(function(e){var g=e.data;e=_.By({visibilityCallback:function(k){var I,J=(I=g().interaction)==null?void 0:I.onFirstVisible;k&&J&&_.GF(J)},
showOption:_.HG});var c=_.GP(function(){return g().interaction},xej);
_.lu(function(){var k,I;I=(I=_.Q0("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.onLayoutVisibleCallback:null;(k=I)==null||k()},"Wj");
return _.a("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Ve(function(k){_.V1(k.currentTarget,"yt-refit-popups-action")}),
el:_.mb(e,c),"aria-label":function(){var k,I;return(k=g().interaction)==null?void 0:(I=k.accessibility)==null?void 0:I.label}},_.a("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.a(_.eS,{data:function(){return g().adImage}},{adImageViewModel:function(k){return _.a(_.U8,{data:k.data,
targetHeight:80,customCommandResolver:xej})}})),_.a("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.a("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.a(_.eS,{data:function(){return g().adBadge}},{adBadgeViewModel:function(k){return _.a(_.N6,{data:k.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.a("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.a(_.eS,{data:function(){return g().menu}},{buttonViewModel:_.oD}))))},"Xj"),"banner-image-layout-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;e=_.By({visibilityCallback:function(k){var I,J=(I=g().interaction)==null?void 0:I.onFirstVisible;k&&J&&_.GF(J)},
showOption:_.HG});var c=_.GP(function(){return g().interaction},DeD);
_.lu(function(){var k,I;I=(I=_.Q0("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.onLayoutVisibleCallback:null;(k=I)==null||k()},"Yj");
return _.a("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.mb(e,c)},_.a("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.a(_.eS,{data:function(){return g().adImage}},{adImageViewModel:function(k){return _.a(_.U8,{data:k.data,
targetHeight:80,customCommandResolver:DeD})}})),_.a("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.a("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.a(_.eS,{data:function(){return g().adAvatarLockup}},{adAvatarLockupViewModel:function(k){return _.a(hWD,{data:k.data,
customCommandResolver:DeD})}})),_.a(_.eS,{data:function(){return g().adButton}},{adButtonViewModel:function(k){return _.a(_.o8,{data:k.data,
customCommandResolver:DeD})}}),_.a("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.a(_.eS,{data:function(){return g().menu}},{buttonViewModel:_.oD}))))},"Zj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.jx}});var dQq={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"},OZ=function(){var e=_.z.apply(this,arguments)||this;e.updateCompanionDataJobId=0;e.contentVideoId=null;e.player=null;e.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return e};
_.Y(OZ,_.z);_.v=OZ.prototype;_.v.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:dQq}}};
_.v.attached=function(){var e=this,g=_.FE();g&&g.getPlayerPromise().then(function(c){e.getCachedDataAndListen(c)})};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.v.updateRendererStamper=function(){var e={};if(this.data)for(var g in dQq)if(this.data[g]){e[g]=this.data[g];break}if(this.oneofRenderer!=void 0||Object.keys(e).length)this.oneofRenderer=e};
_.v.getCachedDataAndListen=function(e){var g=this.retrieveCachedCompanionData();g&&Object.keys(g).length&&this.receiveCompanionData(g);this.ytPlayerListenerBehavior.listenToPlayerEvent(e,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=e};
_.v.retrieveCachedCompanionData=function(){return _.kp.yt&&_.kp.yt.www&&_.kp.yt.www.ads&&_.kp.yt.www.ads.eventcache&&_.kp.yt.www.ads.eventcache.getLastCompanionData?_.kp.yt.www.ads.eventcache.getLastCompanionData():null};
_.v.receiveCompanionData=function(e){e&&Object.keys(e).length?(this.contentVideoId=e.contentVideoId,this.setCompanionData(e)):this.setCompanionData(e)};
_.v.setCompanionData=function(e){this.cancelPendingCompanionAdJobs();if(e){this.updateCompanionDataJobId=0;for(var g in dQq)dQq.hasOwnProperty(g)&&(this.data[g]=void 0);e.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",e.shoppingCompanionCarouselRenderer):e.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",e.imageCompanionAdRenderer):e.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",e.actionCompanionAdRenderer),_.V1(this.hostElement,
"yt-hide-unlimited-offer-module"),_.V1(this.hostElement,"yt-hide-tvfilm-offer-module")):e.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",e.bannerImageLayoutViewModel):e.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",e.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.v.dataChanged=function(){var e=this,g=_.FE();g?g.getPlayerPromise().then(function(c){e.contentVideoId&&c.getVideoUrl().includes("v="+e.contentVideoId)||(e.cancelPendingCompanionAdJobs(),e.updateRendererStamper())}):_.UI(Error("Rl"))};
_.v.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.ft.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.v.handleCompanionAdClicked=function(e,g){this.player.onAdUxClicked(e,g);this.player.pauseVideo()};
OZ.prototype.dataChanged=OZ.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],OZ.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],OZ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],OZ.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],OZ.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],OZ.prototype,"oneofRenderer",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OZ.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],OZ);
_.U(OZ,"ytd-companion-slot-renderer",function(){if(sZS!==void 0)return sZS;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return sZS=e},{mode:2});var zW0;var M3=function(){return _.z.apply(this,arguments)||this};
_.Y(M3,_.z);M3.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
M3.prototype.dataChanged=M3.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],M3.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],M3.prototype,"companionSlotData",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],M3.prototype,"dataChanged",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],M3);
_.U(M3,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(zW0!==void 0)return zW0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return zW0=e},{mode:1});var H5S;var Cp=function(){var e=_.z.apply(this,arguments)||this;e.skinnyMode=!1;e.COMPACT_EVENT_COUNT=4;e.onShelfToggleButtonTap=function(){e.logTap(e.data);e.showingMore=!e.showingMore};
e.onShelfToggleButtonFocus=function(){e.showingMore||(e.logTap(e.data),e.showingMore=!0,_.Va(e,function(){var g=e.COMPACT_EVENT_COUNT-1,c;(c=_.o1(e.hostElement).querySelector("#event-"+g))==null||c.focus()}))};
return e};
_.Y(Cp,_.z);_.v=Cp.prototype;_.v.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.v.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.v.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.yg(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.yg(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.yg(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.yg(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.yg(this.infoTooltip,this.infoTooltip.hide))};
_.v.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.yg(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.yg(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.yg(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.yg(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.yg(this.infoTooltip,this.infoTooltip.hide))};
_.v.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.v.onShowingMoreChanged=function(){var e;this.showingMoreChanged((e=this.showingMore)!=null?e:!1)};
_.v.showingMoreChanged=function(e){var g=this.get("data.events")||[];this.set("restEvents",g.slice(1,e?g.length:this.COMPACT_EVENT_COUNT).map(function(c){return c.ticketEventRenderer}));
g.slice(0,e?g.length:this.COMPACT_EVENT_COUNT).forEach(function(c){var k=_.EM();c=c.ticketEventRenderer.trackingParams;_.RC()&&k&&c&&(c=_.Jb(c),k&&_.j4(k,c))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.v.computeAriaLabel=function(e){return e.subtitle1+", "+e.subtitle2};
_.v.logTap=function(e){_.RC()&&this.ytRendererBehavior.logExplicitClick(e)};
_.v.isKeyboardAction=function(e){return this.get("detail.x",e)===0&&this.get("detail.y",e)===0};
_.v.onFirstEventTap=function(e){e.target&&this.handleTap(e.target,this.firstEvent,this.isKeyboardAction(e))};
_.v.onTicketLinkTap=function(e){e.target&&this.handleTap(e.target,e.model.item,this.isKeyboardAction(e))};
_.v.handleTap=function(e,g,c){if(g.buttonCommand)if(g.hasMultipleOffers)Object.assign(_.x(g.buttonCommand,_.k8),{properties:{source:c?"keyboard":"tap"}}),this.logTap(g),this.popupPositionTarget=e,_.Bm(this.hostElement,[g.buttonCommand],this.hostElement);else{var k;if((k=_.x(g.buttonCommand,_.uf))==null?0:k.url)this.logTap(g),_.q5(window,_.x(g.buttonCommand,_.uf).url)}};
Cp.prototype.onShowingMoreChanged=Cp.prototype.onShowingMoreChanged;Cp.prototype.dataChanged=Cp.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Cp.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Cp.prototype,"firstEvent",void 0);_.t([_.u(),_.B("design:type",Object)],Cp.prototype,"restEvents",void 0);_.t([_.u(),_.B("design:type",String)],Cp.prototype,"imageUrl",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Cp.prototype,"showingMore",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Cp.prototype,"canShowMore",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Cp.prototype,"skinnyMode",void 0);_.t([_.u(),_.B("design:type",HTMLElement)],Cp.prototype,"popupPositionTarget",void 0);_.t([_.Cs("#banner-info-tooltip"),_.B("design:type",Object)],Cp.prototype,"infoTooltip",void 0);
_.t([_.Cs("#info-container"),_.B("design:type",HTMLElement)],Cp.prototype,"infoContainer",void 0);_.t([_.Cs("#shelf-toggler"),_.B("design:type",HTMLElement)],Cp.prototype,"shelfToggleButton",void 0);_.t([_.Cs("#separator"),_.B("design:type",HTMLDivElement)],Cp.prototype,"separator",void 0);_.t([_.u(),_.B("design:type",String)],Cp.prototype,"shelfTogglerLabelText",void 0);_.t([_.u(),_.B("design:type",String)],Cp.prototype,"shelfTogglerIcon",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cp.prototype,"dataChanged",null);_.t([_.k_("showingMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cp.prototype,"onShowingMoreChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Cp);
_.U(Cp,"ytd-ticket-shelf-renderer",function(){if(H5S!==void 0)return H5S;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return H5S=e},{mode:1});var QZQ={};QZQ.YtVisibilityRootBehavior=[_.MOq.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Fm(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.uo("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var e=_.uo("INNERTUBE_CLIENT_NAME")!=="WEB";_.G("kevlar_use_vimio_behavior")&&e&&_.D$Z()}}];var ej={};ej.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(e){e.detail.contextProvider=this;e.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
QZQ.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.i6();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(e){var g=this;this.pageCount+=1;_.G("kevlar_use_vimio_behavior")&&(_.uo("INNERTUBE_CLIENT_NAME")==="WEB"?_.ft.addJob(function(){g.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(e)},
loadPage_:function(e){this.data=e},
ytPageBehaviorActiveObserver_:function(e){var g=this;_.G("kevlar_use_vimio_behavior")&&(e?_.uo("INNERTUBE_CLIENT_NAME")==="WEB"?_.ft.addJob(function(){g.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(e){if(!this.setScrollTopJobId_){var g=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){g.setScrollTopJobId_=0;var c=_.Ss().resolve(_.NN(_.et));c&&_.sc(c);this.getPageScrollingElement().scrollTop=e}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.hL(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];var UQM;var o$z;var Z5x;var VBv;var go=function(){var e=_.z.apply(this,arguments)||this;e.originalQuery=null;e.originalEndpoint=null;return e};
_.Y(go,_.z);go.prototype.computeShowOriginalQueryWithoutEndpoint_=function(e,g){return!(!e||g)};
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],go.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],go.prototype,"correctedText",void 0);_.t([_.u(),_.B("design:type",Object)],go.prototype,"correctedQuery",void 0);_.t([_.u(),_.B("design:type",Object)],go.prototype,"correctedEndpoint",void 0);_.t([_.u(),_.B("design:type",Object)],go.prototype,"originalText",void 0);_.t([_.u(),_.B("design:type",Object)],go.prototype,"originalQuery",void 0);
_.t([_.u(),_.B("design:type",Object)],go.prototype,"originalEndpoint",void 0);_.t([_.u({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.B("design:type",Boolean)],go.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.t([_.Wo({is:"yt-search-query-correction",disableElementRegistration:!0})],go);
_.U(go,"yt-search-query-correction",function(){if(VBv===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Z5x===void 0&&(Z5x=document.createElement("template"));var k=Z5x;c.call(g,k.content.cloneNode(!0),e.content.firstChild);VBv=e}e=VBv;return e},{mode:2});_.qH("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var tBj=function(){return _.z.apply(this,arguments)||this};
_.Y(tBj,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],tBj.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],tBj.prototype,"data",void 0);_.t([_.Wo({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],tBj);
_.U(tBj,"yt-did-you-mean-renderer",function(){if(o$z===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;UQM===void 0&&(UQM=document.createElement("template"));var k=UQM;c.call(g,k.content.cloneNode(!0),e.content.firstChild);o$z=e}e=o$z;return e},{mode:2});var BnX;var Nno;_.qH("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var S07=function(){return _.z.apply(this,arguments)||this};
_.Y(S07,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],S07.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],S07.prototype,"data",void 0);_.t([_.Wo({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],S07);
_.U(S07,"yt-including-results-for-renderer",function(){if(Nno===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;BnX===void 0&&(BnX=document.createElement("template"));var k=BnX;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Nno=e}e=Nno;return e},{mode:2});var y1Q;var Klo;_.qH("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var cM=function(){return _.z.apply(this,arguments)||this};
_.Y(cM,_.z);cM.prototype.computeExtraClasses_=function(e,g){var c="";e&&(c+=" "+e.toLowerCase().replace(/_/g,"-"));g&&(c+=" "+g.toLowerCase().replace(/_/g,"-"));return c};
cM.prototype.computeUrlImg_=function(){var e=this.data;e.image&&(_.o1(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.F6(e.image.thumbnails,Number.MAX_VALUE)+")")};
cM.prototype.computeUrlImg_=cM.prototype.computeUrlImg_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],cM.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cM.prototype,"computeUrlImg_",null);_.t([_.Wo({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],cM);
_.U(cM,"yt-music-pass-feature-info-renderer",function(){if(Klo===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;y1Q===void 0&&(y1Q=document.createElement("template"));var k=y1Q;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Klo=e}e=Klo;return e},{mode:2});var O5g;var MB7;_.qH("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var CRo=function(){return _.z.apply(this,arguments)||this};
_.Y(CRo,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],CRo.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],CRo.prototype,"data",void 0);_.t([_.Wo({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],CRo);
_.U(CRo,"yt-no-results-found-showing-results-for-renderer",function(){if(MB7===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;O5g===void 0&&(O5g=document.createElement("template"));var k=O5g;c.call(g,k.content.cloneNode(!0),e.content.firstChild);MB7=e}e=MB7;return e},{mode:2});var eHQ;var gRD;_.qH("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var cWv=function(){return _.z.apply(this,arguments)||this};
_.Y(cWv,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cWv.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],cWv.prototype,"data",void 0);_.t([_.Wo({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],cWv);
_.U(cWv,"yt-results-without-quotes-renderer",function(){if(gRD===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;eHQ===void 0&&(eHQ=document.createElement("template"));var k=eHQ;c.call(g,k.content.cloneNode(!0),e.content.firstChild);gRD=e}e=gRD;return e},{mode:2});var kEo;var IV7;_.qH("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var JWM=function(){return _.z.apply(this,arguments)||this};
_.Y(JWM,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],JWM.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],JWM.prototype,"data",void 0);_.t([_.Wo({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],JWM);
_.U(JWM,"yt-search-no-results-renderer",function(){if(IV7===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;kEo===void 0&&(kEo=document.createElement("template"));var k=kEo;c.call(g,k.content.cloneNode(!0),e.content.firstChild);IV7=e}e=IV7;return e},{mode:2});var vR7;var wfX;_.qH("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var qr7=function(){return _.z.apply(this,arguments)||this};
_.Y(qr7,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qr7.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qr7.prototype,"data",void 0);_.t([_.Wo({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],qr7);
_.U(qr7,"yt-showing-results-for-renderer",function(){if(wfX===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;vR7===void 0&&(vR7=document.createElement("template"));var k=vR7;c.call(g,k.content.cloneNode(!0),e.content.firstChild);wfX=e}e=wfX;return e},{mode:2});var LfS;var rWO;_.qH("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var kZ=function(){return _.z.apply(this,arguments)||this};
_.Y(kZ,_.z);
kZ.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],kZ.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],kZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],kZ.prototype,"data",void 0);_.t([_.Wo({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],kZ);
_.U(kZ,"yt-offer-item-expanded-renderer",function(){if(rWO===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;LfS===void 0&&(LfS=document.createElement("template"));var k=LfS;c.call(g,k.content.cloneNode(!0),e.content.firstChild);rWO=e}e=rWO;return e},{mode:2});var aVl;var nRg;_.qH("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Ih=function(){return _.z.apply(this,arguments)||this};
_.Y(Ih,_.z);
Ih.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"}}}}};
Ih.prototype.computeFullWidthMode=function(e){return!(!e||!e.fullWidthMode)};
Ih.prototype.computeBorderlessMode=function(e){return!(!e||!e.borderlessMode)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ih.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.B("design:type",Boolean)],Ih.prototype,"fullWidthMode",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.B("design:type",Boolean)],Ih.prototype,"borderlessMode",void 0);_.t([_.Wo({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Ih);
_.U(Ih,"yt-offer-item-renderer",function(){if(nRg===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;aVl===void 0&&(aVl=document.createElement("template"));var k=aVl;c.call(g,k.content.cloneNode(!0),e.content.firstChild);nRg=e}e=nRg;return e},{mode:2});var RHo;var ERO;_.qH("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Jy=function(){return _.z.apply(this,arguments)||this};
_.Y(Jy,_.z);Jy.prototype.computeAriaLevel_=function(e){return this.getLevelID_(e)};
Jy.prototype.getLevelID_=function(e){return(e=e.match(/[0-9]+$/))&&e.length==1?e[0]:"1"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Jy.prototype,"data",void 0);_.t([_.u({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.B("design:type",String)],Jy.prototype,"ariaLevel",void 0);_.t([_.u({value:"heading",reflectToAttribute:!0}),_.B("design:type",String)],Jy.prototype,"role",void 0);
_.t([_.u({value:-1,reflectToAttribute:!0}),_.B("design:type",Number)],Jy.prototype,"tabindex",void 0);_.t([_.Wo({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Jy);
_.U(Jy,"yt-subscription-product-header-renderer",function(){if(ERO===void 0){var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;RHo===void 0&&(RHo=document.createElement("template"));var k=RHo;c.call(g,k.content.cloneNode(!0),e.content.firstChild);ERO=e}e=ERO;return e},{mode:2});var WfO;var blq;_.qH("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var vM=function(){return _.z.apply(this,arguments)||this};
_.Y(vM,_.z);vM.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:_.Lx("menuRenderer"),events:!0}}};
vM.prototype.onStampFinished_=function(){_.o1(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
vM.prototype.onStampFinished_=vM.prototype.onStampFinished_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vM.prototype,"data",void 0);_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vM.prototype,"onStampFinished_",null);
_.t([_.Wo({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],vM);
_.U(vM,"yt-subscription-product-renderer",function(){if(blq===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;WfO===void 0&&(WfO=document.createElement("template"));var k=WfO;c.call(g,k.content.cloneNode(!0),e.content.firstChild);blq=e}e=blq;return e},{mode:2});var hHO;var XfO;_.qH("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var wo=function(){return _.z.apply(this,arguments)||this};
_.Y(wo,_.z);wo.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
wo.prototype.imageScrimColorValuesChanged_=function(){var e,g=(e=this.data)==null?void 0:e.imageScrimColorValues;_.o1(this.hostElement).querySelector("#scrim").style.backgroundColor=g?_.EY(g[0]):"transparent"};
wo.prototype.imageScrimColorValuesChanged_=wo.prototype.imageScrimColorValuesChanged_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wo.prototype,"data",void 0);
_.t([_.OY("data.imageScrimColorValues"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wo.prototype,"imageScrimColorValuesChanged_",null);_.t([_.Wo({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],wo);
_.U(wo,"yt-subscription-product-upsell-offer-renderer",function(){if(XfO===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;hHO===void 0&&(hHO=document.createElement("template"));var k=hHO;c.call(g,k.content.cloneNode(!0),e.content.firstChild);XfO=e}e=XfO;return e},{mode:2});var GEX;var x4v;var D4o;var $4M;var Yrj;var fVl;var qK=function(){return _.z.apply(this,arguments)||this};
_.Y(qK,_.z);qK.prototype.onYtServiceRequestError_=function(e){_.iD(this.hostElement,e.detail.error.message)};
qK.prototype.onYtServiceRequestError_=qK.prototype.onYtServiceRequestError_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qK.prototype,"data",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],qK.prototype,"collapsible",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],qK.prototype,"isManageRed",void 0);
_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qK.prototype,"onYtServiceRequestError_",null);_.t([_.Wo({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],qK);
_.U(qK,"yt-single-ypc-offer-renderer",function(){if(fVl===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Yrj===void 0&&(Yrj=document.createElement("template"));var k=Yrj;c.call(g,k.content.cloneNode(!0),e.content.firstChild);fVl=e}e=fVl;return e},{mode:2});var Le=function(){return _.z.apply(this,arguments)||this};
_.Y(Le,_.z);Le.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Le.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Le.prototype,"isManageRed",void 0);_.t([_.Wo({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Le);
_.U(Le,"yt-single-ypc-offer-list-renderer",function(){if($4M===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;D4o===void 0&&(D4o=document.createElement("template"));var k=D4o;c.call(g,k.content.cloneNode(!0),e.content.firstChild);$4M=e}e=$4M;return e},{mode:2});var jkQ;var ilo;_.qH("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var ro=function(){return _.z.apply(this,arguments)||this};
_.Y(ro,_.z);ro.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ro.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ro.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],ro.prototype,"isManageRed",void 0);_.t([_.Wo({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],ro);
_.U(ro,"yt-ypc-offers-list-renderer",function(){if(ilo===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;jkQ===void 0&&(jkQ=document.createElement("template"));var k=jkQ;c.call(g,k.content.cloneNode(!0),e.content.firstChild);ilo=e}e=ilo;return e},{mode:2});_.qH("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var ah=function(){return _.z.apply(this,arguments)||this};
_.Y(ah,_.z);
ah.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ah.prototype,"data",void 0);_.t([_.Wo({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],ah);
_.U(ah,"yt-unlimited-manage-subscription-page-renderer",function(){if(x4v===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;GEX===void 0&&(GEX=document.createElement("template"));var k=GEX;c.call(g,k.content.cloneNode(!0),e.content.firstChild);x4v=e}e=x4v;return e},{mode:2});var PxO;var m4q;var ne=function(){return _.z.apply(this,arguments)||this};
_.Y(ne,_.z);_.v=ne.prototype;_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.v.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.onKeypress_=function(e){e.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.v.handleHeaderTap_=function(e){e.preventDefault();e.stopPropagation();this.expandOffers_()};
_.v.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.v.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
ne.prototype.dataChanged_=ne.prototype.dataChanged_;_.t([_.m(_.yB),_.B("design:type",Object)],ne.prototype,"ironA11yKeysBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ne.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ne.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],ne.prototype,"offersVisible_",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ne.prototype,"dataChanged_",null);_.t([_.Wo({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],ne);
_.U(ne,"yt-collapsible-ypc-offer-renderer",function(){if(m4q===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;PxO===void 0&&(PxO=document.createElement("template"));var k=PxO;c.call(g,k.content.cloneNode(!0),e.content.firstChild);m4q=e}e=m4q;return e},{mode:2});var pfx;var TA0;_.qH("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Rh=function(){return _.z.apply(this,arguments)||this};
_.Y(Rh,_.z);_.v=Rh.prototype;_.v.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.v.dataChanged_=function(){if(this.data.backgroundImage){var e=_.F6(this.data.backgroundImage.thumbnails,screen.width),g=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=g?"linear-gradient(180deg, "+g+"), url("+e+")":"url("+e+")";this.data.gtmId&&_.ID(this.data.gtmId,_.uo("GL",""))}};
_.v.onYtServiceRequestError_=function(e){_.iD(this.hostElement,e.detail.error.message)};
_.v.getScrimLayerColorStops_=function(){var e,g,c=(e=this.data.unlimitedHeaderV2Data)==null?void 0:(g=e.unlimitedHeaderV2Data)==null?void 0:g.scrimLayerColors;if(!c)return null;var k=100/c.length;return c.map(function(I,J){J*=k;return _.EY(I)+" "+J+"%"}).join(",")};
_.v.computeLogoWithPadding=function(e){var g,c,k;return(e=(g=e.unlimitedLogoImage)==null?void 0:(c=g.thumbnails)==null?void 0:(k=c[0])==null?void 0:k.height)&&e%31===0?!0:!1};
Rh.prototype.onYtServiceRequestError_=Rh.prototype.onYtServiceRequestError_;Rh.prototype.dataChanged_=Rh.prototype.dataChanged_;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.t([_.u({computed:"computeLogoWithPadding(data)"}),_.B("design:type",Boolean)],Rh.prototype,"logoWithPadding",void 0);
_.t([_.u(),_.B("design:type",Object)],Rh.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rh.prototype,"dataChanged_",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Rh.prototype,"onYtServiceRequestError_",null);_.t([_.Wo({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Rh);
_.U(Rh,"yt-unlimited-page-header-renderer",function(){if(TA0===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;pfx===void 0&&(pfx=document.createElement("template"));var k=pfx;c.call(g,k.content.cloneNode(!0),e.content.firstChild);TA0=e}e=TA0;return e},{mode:2});var lV7;var AWQ;_.qH("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Ep=function(){return _.z.apply(this,arguments)||this};
_.Y(Ep,_.z);Ep.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ep.prototype,"data",void 0);_.t([_.Wo({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Ep);
_.U(Ep,"yt-unlimited-user-notification-renderer",function(){if(AWQ===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;lV7===void 0&&(lV7=document.createElement("template"));var k=lV7;c.call(g,k.content.cloneNode(!0),e.content.firstChild);AWQ=e}e=AWQ;return e},{mode:2});var sk7;var Ffx;var utX=function(){return _.z.apply(this,arguments)||this};
_.Y(utX,_.z);_.t([_.u(),_.B("design:type",Object)],utX.prototype,"data",void 0);_.t([_.Wo({is:"yt-alert-renderer",disableElementRegistration:!0})],utX);
_.U(utX,"yt-alert-renderer",function(){if(Ffx===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;sk7===void 0&&(sk7=document.createElement("template"));var k=sk7;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Ffx=e}e=Ffx;return e},{mode:2});var VCX=function(e){_.Iy.call(this);this.JSC$21348_watchApi=e;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;d4Q(this);zHo(this);Hlx(this);QkD(this);U4S(this);oRg(this);Zlo(this)};
_.Y(VCX,_.Iy);var Hlx=function(e){var g=function(){_.G("kevlar_is_pupi_enabled")||WM(e)};
e.JSC$21348_watchApi.getRoot().addEventListener("yt-player-updated",g);e.addOnDisposeCallback(function(){e.JSC$21348_watchApi.getRoot().removeEventListener("yt-player-updated",g)})},U4S=function(e){if(_.G("kevlar_endscreen_auto_theater_mode")){var g=e.JSC$21348_watchApi.subscribeToActiveChanged(function(){tCQ(e)},!1);
e.addOnDisposeCallback(g)}},d4Q=function(e){var g,c,k,I,J;
_.r(function(q){if(q.nextAddress==1)return q.yield(e.JSC$21348_watchApi.playerApi,2);g=q.yieldResult;c=function(L){L=!!L;BAz(e)&&(L=L?2:1,_.up.getInstance().setState(L,!0,!1))};
k=function(L){L&&JwM(_.Tt().getState())&&(_.Z5(e.JSC$21348_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),e.temporaryTheaterMode=!0)};
I=function(L){_.G("kevlar_player_update_autonav_on_new_data")&&L.type==="newdata"&&(_.G("kevlar_is_pupi_enabled")||WM(e))};
J=function(L){e.onPlayerStateChange(L)};
_.G("kevlar_endscreen_auto_theater_mode")&&g.addEventListener("onAutonavCancelled",k);g.addEventListener("onAutonavChangeRequest",c);g.addEventListener("onVideoDataChange",I);g.addEventListener("onStateChange",J);e.addOnDisposeCallback(function(){g.removeEventListener("onAutonavChangeRequest",c);g.removeEventListener("onVideoDataChange",I);g.removeEventListener("onStateChange",J);_.G("kevlar_endscreen_auto_theater_mode")&&g.removeEventListener("onAutonavCancelled",k)});
_.Uh(q)})},zHo=function(e){e.JSC$21348_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){e.autonavCancelledBySignal=!0;
_.G("kevlar_is_pupi_enabled")||WM(e)});
e.JSC$21348_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(g,c,k){c&&WM(e,k)});
e.JSC$21348_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){BAz(e)&&_.up.getInstance().setState(2,!0,!0)});
e.JSC$21348_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){BAz(e)&&_.up.getInstance().setState(1,!0,!0)});
e.addOnDisposeCallback(function(){e.JSC$21348_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");e.JSC$21348_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");e.JSC$21348_watchApi.unregisterActionHandler("yt-enable-autoplay-command");e.JSC$21348_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},QkD=function(e){var g=e.JSC$21348_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Zlo(e)}),c=e.JSC$21348_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){oRg(e)});
e.addOnDisposeCallback(function(){e.JSC$21348_watchApi.unsubscribeByKey(g);e.JSC$21348_watchApi.unsubscribeByKey(c)})},Zlo=function(e){e.autonavCancelledBySignal=!1;
_.G("kevlar_is_pupi_enabled")||WM(e)},oRg=function(e){var g=e.JSC$21348_watchApi.getWatchNextResponse(),c,k;
var I=(g=(k=_.x(g==null?void 0:(I=g.playerOverlays)==null?void 0:(c=I.playerOverlayRenderer)==null?void 0:c.autonavToggle,_.GOq))==null?void 0:k.enabled)?2:1;_.G("kevlar_is_pupi_enabled")?_.up.getInstance().setState(I,!1,!1):WM(e);_.G("web_persist_server_autonav_state_on_client")&&typeof g==="boolean"&&_.GxC(I===2)},BAz=function(e){if(e.autonavCancelledBySignal)return!1;
var g,c,k,I;return!!((g=e.JSC$21348_watchApi.getWatchNextResponse())==null?0:(c=g.contents)==null?0:(k=c.twoColumnWatchNextResults)==null?0:(I=k.autoplay)==null?0:I.autoplay)};
VCX.prototype.onPlayerStateChange=function(e){if(e===0){e=!_.up.getInstance().isAutoplaySetExplicitly();var g=this.JSC$21348_watchApi.getWatchNextResponse(),c,k,I,J;g=_.x(g==null?void 0:(c=g.contents)==null?void 0:(k=c.twoColumnWatchNextResults)==null?void 0:(I=k.autoplay)==null?void 0:(J=I.autoplay)==null?void 0:J.autoplayExplicitChoiceDialogRenderer,_.zT4);BAz(this)&&e&&g&&_.yJ.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:g},popupType:"DIALOG"}})}else tCQ(this)};
var tCQ=function(e){e.temporaryTheaterMode&&(e.temporaryTheaterMode=!1,_.Z5(e.JSC$21348_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},WM=function(e,g){g=g===void 0?!1:g;
var c;_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21348_watchApi.playerApi,2);c=k.yieldResult;BAz(e)?c.setAutonavState(_.up.getInstance().getState(),g):c.setAutonavState(1,g);_.Uh(k)})};var NAX={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};var yWl=function(e){_.Iy.call(this);var g=this;this.JSC$21353_watchApi=e;var c=this.JSC$21353_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){SrO(g)});
this.addOnDisposeCallback(function(){g.JSC$21353_watchApi.unsubscribeByKey(c)});
SrO(this)};
_.Y(yWl,_.Iy);var SrO=function(e){var g=e.JSC$21353_watchApi.getPlayerResponse(),c=e.JSC$21353_watchApi.getWatchNextResponse();if(!_.RiK(g==null?void 0:g.playabilityStatus,c==null?void 0:c.playerOverlays)){var k;var I=g==null?void 0:(k=g.playabilityStatus)==null?void 0:k.errorScreen}e.JSC$21353_watchApi.provideRenderingData("ERROR_SCREEN",I)};var Kfl=_.H(function(e){return _.a("yt-player-grid-renderer",{class:_.o6("ytPlayerGridRendererHost",e.className)},_.a(_.eS,{data:e.data},{lockupViewModel:function(g){return _.a(_.KS,{data:g.data,useOverlayStyling:!0})}}))},"$j");var Oll=_.H(function(e){var g=e.data;e=_.G("web_watch_video_details_hide_subtitle");var c=_.G("web_watch_video_details_single_line_title"),k=_.Ve(function(){var L=g().onTap;L&&_.Ss().resolve(_.xk).resolveCommand(L)}),I={},J={},q={};
return _.a("yt-player-overlay-video-details-renderer",{class:_.o6("ytPlayerOverlayVideoDetailsRendererHost",(I.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.G("web_watch_video_details_transparent_background"),I)),"on:click":k,role:"button"},_.a("h2",{class:_.o6("ytPlayerOverlayVideoDetailsRendererTitle",(J.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return c},J))},_.a(_.fa,{text:function(){return g().title}})),_.a("div",{class:_.o6("ytPlayerOverlayVideoDetailsRendererSubtitle",
(q.ytPlayerOverlayVideoDetailsRendererHideSubtitle=e,q))},_.a(_.fa,{text:function(){return g().subtitle}})))},"ak");var b$={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},MCD=_.H(function(e){var g=e.data;var c=_.M2(_.RH),k=_.G("web_watch_action_bar_resize_buttons"),I=_.G("web_watch_video_action_dsdvb"),J=_.G("delhi_modern_web_player_icons")&&!_.G("enable_web_delhi_icons");e=_.G("delhi_modern_web_player_disable_frosted_glass");var q=_.G("delhi_modern_web_player_compact_video_actions_controls"),
L=_.G("web_player_quick_action_buttons_icon_only"),n=function(){var W=k&&!c(),b={};q?b.size="S":W&&(b.size="M");L&&(b.iconPosition="icon-only");if(Object.keys(b).length!==0)return b},R={};
return _.a("yt-player-quick-action-buttons",{class:_.o6("ytPlayerQuickActionButtonsHost",(R.ytPlayerQuickActionButtonsHostCompactControls=function(){return!c()||q},R.ytPlayerQuickActionButtonsHostDisableBackdropFilter=e,R))},_.a(_.Yz,{each:function(){var W=g();
if(J){W=JSON.parse(JSON.stringify(W));for(var b=_.w(W),h=b.next();!h.done;h=b.next()){var X=h.value,D=void 0;h=_.x((D=_.x(X,_.DQ))==null?void 0:D.toggleButtonViewModel,_.fP);var f=void 0;D=_.x((f=_.x(X,_.$t))==null?void 0:f.toggleButtonViewModel,_.fP);f=_.x(X,_.$8);X=_.x(X,_.fP);if(h)D=_.x(h.defaultButtonViewModel,_.$8),h=_.x(h.toggledButtonViewModel,_.$8),D&&D.iconName&&(D.iconName=b$[D.iconName]),h&&h.iconName&&(h.iconName=b$[h.iconName]);else if(D)h=_.x(D.defaultButtonViewModel,_.$8),D=_.x(D.toggledButtonViewModel,
_.$8),h&&h.iconName&&(h.iconName=b$[h.iconName]),D&&D.iconName&&(D.iconName=b$[D.iconName]);else if(f)f.iconName&&(f.iconName=b$[f.iconName]);else if(X){h=_.x(X.defaultButtonViewModel,_.$8);D=_.x(X.toggledButtonViewModel,_.$8);X=void 0;if((X=h)==null?0:X.iconName)h.iconName=b$[h.iconName];h=void 0;if((h=D)==null?0:h.iconName)D.iconName=b$[D.iconName]}}}I&&(W=$ez(W));return W}},function(W){return _.a(_.eS,{data:function(){return W}},{buttonViewModel:function(b){return _.a(_.oD,{data:b.data,
buttonOverrides:n})},
likeButtonViewModel:function(b){return _.a(_.Xh,{data:b.data,buttonShapeOverrideables:n})},
dislikeButtonViewModel:function(b){return _.a(_.hT,{data:b.data,buttonShapeOverrideables:n})},
toggleButtonViewModel:function(b){return _.a(_.vF,{data:b.data,buttonShapeOverrides:n})}})}))},"bk");var e7D=function(e){_.Iy.call(this);var g=this;this.JSC$21361_watchApi=e;e=_.w(_.Wa({},void 0,"NNzZMe"));this.quickActionsViewModel=e.next().value;this.setQuickActionsViewModel=e.next().value;e=_.w(_.Wa({},void 0,"iORsec"));this.playerOverlayVideoDetailsRenderer=e.next().value;this.setPlayerOverlayVideoDetailsRenderer=e.next().value;e=_.w(_.Wa([],void 0,"dektd"));this.lockupViewModels=e.next().value;this.setLockupViewModels=e.next().value;e=_.w(_.Wa({},void 0,"Sp5Hqf"));this.commentsButton=e.next().value;
this.setCommentsButton=e.next().value;e=_.w(_.Wa({},void 0,"yDAoue"));this.descriptionButton=e.next().value;this.setDescriptionButton=e.next().value;var c=this.JSC$21361_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Cxl(g)});
this.addOnDisposeCallback(function(){g.JSC$21361_watchApi.unsubscribeByKey(c)});
Cxl(this)};
_.Y(e7D,_.Iy);
var Cxl=function(e){var g,c,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A,d,S,V,Q,y,O,Jq,LC;_.r(function(bW){if(bW.nextAddress==1)return bW.yield(e.JSC$21361_watchApi.playerApi,2);g=bW.yieldResult;c=e.JSC$21361_watchApi.getWatchNextResponse();J=(k=c)==null?void 0:(I=k.playerOverlays)==null?void 0:I.playerOverlayRenderer;L=_.x((q=J)==null?void 0:q.fullscreenQuickActionsBar,_.XF1);(R=(n=e).setQuickActionsViewModel)==null||R.call(n,L||{});L&&gg0(e,g);h=(W=J)==null?void 0:(b=W.videoDetails)==null?void 0:b.playerOverlayVideoDetailsRenderer;
(D=(X=e).setPlayerOverlayVideoDetailsRenderer)==null||D.call(X,h||{});h&&ceD(e,g);if(_.G("web_player_use_external_grid_component")){var RA=[],Xg,Fg,oA,Zt,Ev=c==null?void 0:(Xg=c.contents)==null?void 0:(Fg=Xg.twoColumnWatchNextResults)==null?void 0:(oA=Fg.secondaryResults)==null?void 0:(Zt=oA.secondaryResults)==null?void 0:Zt.results;if(Ev)for(Xg=_.w(Ev),Fg=Xg.next();!Fg.done;Fg=Xg.next())if(Fg=Fg.value,Fg.lockupViewModel)RA.push(Fg);else if(oA=void 0,(oA=Fg.itemSectionRenderer)==null?0:oA.contents)for(Fg=
_.w(Fg.itemSectionRenderer.contents),oA=Fg.next();!oA.done;oA=Fg.next())oA=oA.value,oA.lockupViewModel&&RA.push(oA);f=RA;(A=(l=e).setLockupViewModels)==null||A.call(l,f||[]);kRO(e,g)}S=_.x((d=J)==null?void 0:d.commentsButton,_.fP);(Q=(V=e).setCommentsButton)==null||Q.call(V,S||{});S&&IDQ(e,g);O=_.x((y=J)==null?void 0:y.descriptionButton,_.$8);(LC=(Jq=e).setDescriptionButton)==null||LC.call(Jq,O||{});O&&Je0(e,g);_.Uh(bW)})},gg0=function(e,g){if(!e.quickActionButtonsContainer)if(g.setFullscreenQuickActions){e.quickActionButtonsContainer=
document.createElement("div");
g.setFullscreenQuickActions(e.quickActionButtonsContainer);var c=function(){return e.quickActionsViewModel().quickActionButtons||[]},k=_.p4(e.quickActionButtonsContainer,function(){return _.a(MCD,{data:c})},"ck");
e.addOnDisposeCallback(function(){g.setFullscreenQuickActions(void 0);k()})}else _.mN(new _.E2("setFullscreenQuickActions not defined",{playerApi:Object.keys(g),
isReady:g.isReady(),appState:g.getAppState()}))},ceD=function(e,g){if(!e.playerOverlayVideoDetailsRendererContainer)if(g.setPlayerOverlayVideoDetailsRenderer){e.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
g.setPlayerOverlayVideoDetailsRenderer(e.playerOverlayVideoDetailsRendererContainer);var c=_.p4(e.playerOverlayVideoDetailsRendererContainer,function(){return _.a(Oll,{data:e.playerOverlayVideoDetailsRenderer})},"dk");
e.addOnDisposeCallback(function(){g.setPlayerOverlayVideoDetailsRenderer(void 0);c()})}else _.mN(new _.E2("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(g),
isReady:g.isReady(),appState:g.getAppState()}))},kRO=function(e,g){if(!e.gridRendererContainer)if(g.setFullscreenGrid){e.gridRendererContainer=document.createElement("div");
g.setFullscreenGrid(e.gridRendererContainer);var c=_.p4(e.gridRendererContainer,function(){return _.a(Kfl,{data:e.lockupViewModels})},"ek");
e.addOnDisposeCallback(function(){g.setFullscreenGrid(void 0);c()})}else _.mN(new _.E2("setFullscreenGrid not defined",{playerApi:Object.keys(g),
isReady:g.isReady(),appState:g.getAppState()}))},IDQ=function(e,g){if(!e.commentsButtonContainer)if(g.setCommentsButton){e.commentsButtonContainer=document.createElement("div");
g.setCommentsButton(e.commentsButtonContainer);var c=_.p4(e.commentsButtonContainer,function(){return _.a(_.vF,{data:e.commentsButton})},"fk");
e.addOnDisposeCallback(function(){g.setCommentsButton(void 0);c()})}else _.mN(new _.E2("setCommentsButton not defined",{playerApi:Object.keys(g),
isReady:g.isReady(),appState:g.getAppState()}))},Je0=function(e,g){if(!e.descriptionButtonContainer)if(g.setDescriptionButton){e.descriptionButtonContainer=document.createElement("div");
g.setDescriptionButton(e.descriptionButtonContainer);var c=_.p4(e.descriptionButtonContainer,function(){return _.a(_.oD,{data:e.descriptionButton})},"gk");
e.addOnDisposeCallback(function(){g.setDescriptionButton(void 0);c()})}else _.mN(new _.E2("setDescriptionButton not defined",{playerApi:Object.keys(g),
isReady:g.isReady(),appState:g.getAppState()}))};var hy=function(e){_.Iy.call(this);var g=this;this.JSC$21367_watchApi=e;this.JSC$21367_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;e=_.kq(_.Tt(),_.RH,function(c){g.onFullscreenChanged(c)});
this.addOnDisposeCallback(e);e=_.kq(_.Tt(),KR,function(c){g.onWatchScroll(c)});
this.addOnDisposeCallback(e);_.G("kevlar_watch_while_v2")&&(e=_.kq(_.Tt(),_.Eo,function(c){vg7(g,c)}),this.addOnDisposeCallback(e));
wiX(this);qZg(this);L4q();this.onWatchScroll(KR(_.Tt().getState()));_.dH("START_IN_FULL_WINDOW_MODE")&&this.JSC$21367_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.Y(hy,_.Iy);var wiX=function(e){e.JSC$21367_watchApi.registerActionHandler("yt-fullscreen-change-action",function(g){var c=e.JSC$21367_watchApi.isActive();g&&!c||_.Tt().dispatch(_.Hh({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!g}}))});
e.addOnDisposeCallback(function(){e.JSC$21367_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},qZg=function(e){var g,c;
_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21367_watchApi.playerApi,2);g=k.yieldResult;c=function(){e.onFullerscreenEduClicked()};
g.addEventListener("onFullerscreenEduClicked",c);e.addOnDisposeCallback(function(){g.removeEventListener("onFullerscreenEduClicked",c)});
_.Uh(k)})};
hy.prototype.onFullscreenChanged=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return g.isFullscreen=!!_.sM(),k.yield(g.JSC$21367_watchApi.playerApi,2);c=k.yieldResult;g.JSC$21367_miniplayerActive||c.setFauxFullscreen(g.isFullscreen);if(e&&(g.JSC$21367_watchApi.focusOnPlayer(),!g.fullerscreenEduButtonShownThisPlayback)){g.fullerscreenEduButtonShownThisPlayback=!0;var I=_.qk("yt-fullerscreen-edu-button-shown-count")||0;_.wp("yt-fullerscreen-edu-button-shown-count",I+1,31536E3);
g.updateFullerscreenEduButtonSubtleModeState()}_.Uh(k)})};
var vg7=function(e,g){var c;_.r(function(k){if(k.nextAddress==1)return e.JSC$21367_miniplayerActive=g,k.yield(e.JSC$21367_watchApi.playerApi,2);c=k.yieldResult;c.setFauxFullscreen(!e.JSC$21367_miniplayerActive&&e.isFullscreen);_.Uh(k)})};
hy.prototype.onWatchScroll=function(e){var g=this,c,k;return _.r(function(I){if(I.nextAddress==1)return _.G("external_fullscreen_with_edu")?I.yield(g.JSC$21367_watchApi.playerApi,2):I.return();c=I.yieldResult;k=e<=0;g.shouldShowFullerscreenEdu!==k&&(g.shouldShowFullerscreenEdu=k,c.updateFullerscreenEduButtonVisibility(!g.shouldShowFullerscreenEdu));_.Uh(I)})};
hy.prototype.onFullerscreenEduClicked=function(){this.JSC$21367_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var e=_.qk("yt-fullerscreen-edu-button-click-count")||0;_.wp("yt-fullerscreen-edu-button-click-count",e+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
hy.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var e=this,g,c,k,I,J,q;return _.r(function(L){if(L.nextAddress==1)return g=_.qk("yt-fullerscreen-edu-button-click-count")||0,c=_.qk("yt-fullerscreen-edu-button-shown-count")||0,k=_.MN("external_fullscreen_button_click_threshold"),I=_.MN("external_fullscreen_button_shown_threshold"),J=g>=k||c>=I,L.yield(e.JSC$21367_watchApi.playerApi,2);q=L.yieldResult;q.updateFullerscreenEduButtonSubtleModeState(J);_.Uh(L)})};
hy.prototype.disposeInternal=function(){_.Iy.prototype.disposeInternal.call(this);var e=_.sM();_.G("kevlar_exit_fullscreen_leaving_watch")&&e&&_.F7(e)};
var L4q=function(){if(_.G("web_watch_add_viewport_meta_tag")){var e=document.querySelector("meta[name=viewport]"),g=document.head;g&&!e&&(e=document.createElement("meta"),e.name="viewport",e.content="width=device-width, initial-scale=1.0, viewport-fit=cover",g.appendChild(e))}};var aDz=function(e){_.Iy.call(this);var g=this;this.JSC$21370_watchApi=e;this.jobId=0;this.pendingRequestId=void 0;var c=this.JSC$21370_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){reO(g)});
this.addOnDisposeCallback(function(){g.JSC$21370_watchApi.unsubscribeByKey(c)});
reO(this)};
_.Y(aDz,_.Iy);var ngQ=function(e){_.ft.cancelJob(e.jobId);e.pendingRequestId=void 0},reO=function(e){ngQ(e);
var g=Ymx(e.JSC$21370_watchApi.getWatchNextResponse());if(g){var c=250,k,I=(k=_.x(g,_.XvY))==null?void 0:k.initialDelayMs;_.G("web_watch_updated_metadata_server_initial_delay")&&I&&(c=I);e.jobId=_.ft.addLowPriorityJob(function(){return e.fetchUpdatedMetadata(g)},c)}};
aDz.prototype.fetchUpdatedMetadata=function(e,g){var c=this,k,I,J,q,L,n,R,W,b,h,X,D,f,l,A;return _.r(function(d){switch(d.nextAddress){case 1:g&&(k={continuation:g});if(!_.G("web_get_updated_metadata_fantasy_panel_continuation_params")){d.jumpTo(2);break}I=_.Ss().resolve(_.Lj);J="PAsports_fantasy";return d.yield(I.isVisible(J,!0),3);case 3:d.yieldResult&&(R=(L=(q=I).getUpdatePanelContinuationData)==null?void 0:(n=L.call(q,J))==null?void 0:n.updatePanelContinuationRequest)&&(k||(k={}),k.clientParams=
{panelContinuationParams:{panelContinuation:R}});case 2:W=_.Ss().resolve(_.kv);if(!W)return _.jW(Error("Sl")),d.return();b={};c.pendingRequestId=b;return d.yield(_.jt(W,e,k),4);case 4:h=d.yieldResult;if(b!==c.pendingRequestId)return d.return();f=(X=h)==null?void 0:(D=X.continuation)==null?void 0:D.timedContinuationData;((l=f)==null?0:l.continuation)&&((A=f)==null?0:A.timeoutMs)&&(c.jobId=_.ft.addLowPriorityJob(function(){return c.fetchUpdatedMetadata(e,f.continuation)},f.timeoutMs));
_.Uh(d)}})};
aDz.prototype.disposeInternal=function(){_.Iy.prototype.disposeInternal.call(this);ngQ(this)};var R7z=_.H(function(e){var g=_.Ve(function(){var k=e.data().videoId;if(e.active())k=_.Fb(k),_.Ss().resolve(_.xk).resolveCommand(k);else{var I=e.playerApi(),J=I.getAvailableAudioTracks(),q,L,n=(q=e.sourceVideoConfig().audioTracks)==null?void 0:(L=q.find(function(R){return R.isDefaultForSource}))==null?void 0:L.id;
if(J=J.find(function(R){return R.getLanguageInfo().getId()===n}))I.setAudioTrack(J,!0),I.setCompositeParam({activeVideoId:k}),e.setActiveSourceId(k)}}),c={};
return _.a("ytw-composite-source-video-overlay",{class:_.o6("ytwCompositeSourceVideoOverlayHost",(c.ytwCompositeSourceVideoOverlayActive=e.active,c.ytwCompositeSourceVideoOverlayInteracting=e.interacting,c)),style:_.N2({left:function(){var k;return((k=e.data().topLeftCornerX)!=null?k:0)*100+"%"},
top:function(){var k;return((k=e.data().topLeftCornerY)!=null?k:0)*100+"%"},
width:function(){var k;return((k=e.data().width)!=null?k:0)*100+"%"},
height:function(){var k;return((k=e.data().height)!=null?k:0)*100+"%"}}),
"on:click":g},_.a("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"hk");var EgD=_.H(function(e){var g=_.w(_.uF(function(){var q,L=(q=e.data().sources)==null?void 0:q.find(function(n){return n.isActive});
if(L)return L.videoId})),c=g.next().value,k=g.next().value;
g=_.w(_.Wa(!1,void 0,"rmRJ8d"));var I=g.next().value,J=g.next().value;return _.a("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Ve(function(){J(!0)}),
"on:mouseout":_.Ve(function(){J(!1)})},_.a(_.E,{cond:function(){return e.data().sources},
then:function(q){return _.a(_.Yz,{each:q},function(L){return _.a(R7z,{data:L,active:function(){return L.videoId===c()},
setActiveSourceId:k,interacting:I,playerApi:e.playerApi,sourceVideoConfig:function(){return fQQ(e.compositeVideoConfig(),L.videoId)}})})}}))},"ik");var h7X=function(e){_.Iy.call(this);this.JSC$21385_watchApi=e;e=_.w(_.Wa({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=e.next().value;this.setCompositeVideoOverlayRenderer=e.next().value;e=_.w(_.Wa({},void 0,"OlaJpc"));this.compositeVideoConfig=e.next().value;this.setCompositeVideoConfig=e.next().value;W4z(this);bpl(this)};
_.Y(h7X,_.Iy);var W4z=function(e){var g=e.JSC$21385_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){bpl(e)});
e.addOnDisposeCallback(function(){e.JSC$21385_watchApi.unsubscribeByKey(g)})},Xio=function(e){var g;
return _.r(function(c){if(c.nextAddress==1)return c.yield(e.JSC$21385_watchApi.playerApi,2);g=c.yieldResult;g.setCompositeVideoOverlayRendererComponent(e.container);_.Uh(c)})},GRx=function(e){var g;
return _.r(function(c){if(c.nextAddress==1)return c.yield(e.JSC$21385_watchApi.playerApi,2);g=c.yieldResult;g.setCompositeVideoOverlayRendererComponent(void 0);_.Uh(c)})},x3D=function(e){var g,c;
return _.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21385_watchApi.playerApi,2);g=k.yieldResult;e.container=document.createElement("div");c=_.p4(e.container,function(){return _.a(EgD,{data:e.compositeVideoOverlayRenderer,compositeVideoConfig:e.compositeVideoConfig,playerApi:g})},"jk");
e.addOnDisposeCallback(c);_.Uh(k)})},bpl=function(e){var g,c,k,I,J,q,L,n;
_.r(function(R){return R.nextAddress==1?(g=e.JSC$21385_watchApi.getPlayerResponse(),J=_.x((c=g)==null?void 0:(k=c.overlay)==null?void 0:(I=k.playerControlsOverlayRenderer)==null?void 0:I.compositeVideoOverlay,aSl),n=(q=g)==null?void 0:(L=q.playerConfig)==null?void 0:L.compositeVideoConfig,J&&e.setCompositeVideoOverlayRenderer(J),n&&e.setCompositeVideoConfig(n),J&&n?e.container?R.jumpTo(6):R.yield(x3D(e),6):D30(e)?R.yield(GRx(e),0):R.jumpTo(0)):D30(e)?R.jumpTo(0):R.yield(Xio(e),0)})},D30=function(e){var g;
return!((g=e.container)==null||!g.parentElement)};
h7X.prototype.disposeInternal=function(){D30(this)&&GRx(this);_.Iy.prototype.disposeInternal.call(this)};var ipj=function(e){_.Iy.call(this);var g=this;this.JSC$21391_watchApi=e;var c=this.JSC$21391_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var k=g.JSC$21391_watchApi.getPlayerResponse();if(k){var I,J;if(k=_.x((I=k.endscreen)==null?void 0:(J=I.endscreenRenderer)==null?void 0:J.hideButton,_.fP)){var q;(q=g.setEndscreenHideButton)==null||q.call(g,k);$3S(g)}}});
this.addOnDisposeCallback(function(){g.JSC$21391_watchApi.unsubscribeByKey(c)});
e=_.w(_.Wa({},void 0,"ER3tqb"));this.endscreenHideButton=e.next().value;this.setEndscreenHideButton=e.next().value;YZ0(this);fD7(this);jSq(this)};
_.Y(ipj,_.Iy);var $3S=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return e.creatorEndscreenHideButtonContainer?k.return():k.yield(e.JSC$21391_watchApi.playerApi,2);g=k.yieldResult;e.creatorEndscreenHideButtonContainer=document.createElement("div");_.ZL(e.creatorEndscreenHideButtonContainer,!1);g.setCreatorEndscreenHideButton(e.creatorEndscreenHideButtonContainer);c=_.p4(e.creatorEndscreenHideButtonContainer,function(){return _.a(_.vF,{data:e.endscreenHideButton,useOutlinedIcon:!0})},"kk");
e.addOnDisposeCallback(function(){c();var I;(I=g)==null||I.setCreatorEndscreenHideButton(void 0)});
_.Uh(k)})},YZ0=function(e){var g,c;
_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21391_watchApi.playerApi,2);g=k.yieldResult;c=function(){e.creatorEndscreenHideButtonContainer&&_.ZL(e.creatorEndscreenHideButtonContainer,!0)};
g.addEventListener("endscreenelementshown",c);e.addOnDisposeCallback(function(){var I;(I=g)==null||I.removeEventListener("endscreenelementshown",c)});
_.Uh(k)})},fD7=function(e){var g=function(){e.creatorEndscreenHideButtonContainer&&_.ZL(e.creatorEndscreenHideButtonContainer,!1)},c=e.JSC$21391_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",g),k=e.JSC$21391_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",g);
e.addOnDisposeCallback(function(){e.JSC$21391_watchApi.unsubscribeByKey(c);e.JSC$21391_watchApi.unsubscribeByKey(k)})},jSq=function(e){e.JSC$21391_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(g){var c=_.x(g,u8D);
e.JSC$21391_watchApi.playerApi.then(function(k){k==null||k.setCreatorEndscreenVisibility(!!c.hide)})});
e.addOnDisposeCallback(function(){e.JSC$21391_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};var m37=function(e){_.Iy.call(this);this.JSC$21397_watchApi=e;PaS(this)};
_.Y(m37,_.Iy);var PaS=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21397_watchApi.playerApi,2);g=k.yieldResult;c=function(I){_.Tt().dispatch(_.Hh({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:I}}))};
g.addEventListener("onRetroModeChanged",c);e.addOnDisposeCallback(function(){g.removeEventListener("onRetroModeChanged",c)});
_.Uh(k)})};var AAO=0,c7=0,FmO=0;var piq=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),XI=function(e){_.Iy.call(this);this.JSC$21414_watchApi=e;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;T8Q(this)};
_.Y(XI,_.Iy);
var T8Q=function(e){var g,c,k;_.r(function(I){if(I.nextAddress==1)return I.yield(e.JSC$21414_watchApi.playerApi,2);g=I.yieldResult;if(e.isDisposed())return I.return();e.sessionStorage=_.xll("yt-sleep-timer");e.sessionStorage||_.mN(new _.E2("SessionStorage for Sleep Timer is undefined."));((c=e.sessionStorage)==null?void 0:c.get("yt-sleep-timer"))==="true"&&(zPz(),(k=e.sessionStorage)==null||k.remove("yt-sleep-timer"),g.syncVolume());lDS(e,g);Aeg(e,g);sS7(e,g);_.Uh(I)})},lDS=function(e,g){var c=function(R){e.onSleepTimerSettingsChanged(R,
g)},k=function(R){e.onPlayerStateChange(R,g)},I=function(){e.onLoopChange(g)},J=function(){e.onCloseMiniplayer(g)},q=function(){lQQ(g,(0,_.yr)(),HuD(g),e.selectedOption==="End of video",g.getPlayerState()!==1)},L=function(){e.onSeekComplete(g)},n=function(){_.ft.cancelJob(c7);
var R=g.getCurrentTime()>=g.getDuration(),W=e.selectedOption==="End of video"||e.selectedOption==="End of playlist"&&!mez(e.playlistId);R&&W&&F4D(e,g)};
g.addEventListener("onSleepTimerSettingsChanged",c);g.addEventListener("onLoopChange",I);g.addEventListener("onLoopRangeChange",I);g.addEventListener("onStateChange",k);g.addEventListener("onCloseMiniplayer",J);g.addEventListener("onSleepTimerFeatureAvailable",q);g.addEventListener("SEEK_COMPLETE",L);g.addEventListener("onAdStart",n);e.addOnDisposeCallback(function(){g.removeEventListener("onSleepTimerSettingsChanged",c);g.removeEventListener("onLoopChange",I);g.removeEventListener("onLoopRangeChange",
I);g.removeEventListener("onStateChange",k);g.removeEventListener("onCloseMiniplayer",J);g.removeEventListener("onSleepTimerFeatureAvailable",q);g.removeEventListener("SEEK_COMPLETE",L);g.removeEventListener("onAdStart",n)})},Aeg=function(e,g){var c=e.JSC$21414_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var k=g.getVideoData().video_id,I,J=(I=iuD(e.JSC$21414_watchApi))==null?void 0:I.playlistId;
e.pauseAutonavPlayback&&(g.pauseVideo(),g.syncVolume(),e.pauseAutonavPlayback=!1);if(e.selectedOption==="End of video"&&k!==e.videoId)Gz(e,g);else{if(e.selectedOption==="End of playlist"){I=mez(e.playlistId);if(J!==e.playlistId){Gz(e,g);break a}I?I&&uKo(e,g):d3v(e,g)}e.videoId=k;e.playlistId=J}}});
e.addOnDisposeCallback(function(){e.JSC$21414_watchApi.unsubscribeByKey(c)})},sS7=function(e,g){var c=_.Ss().resolve(_.EO),k=_.kq(c,_.pvU,function(J){J&&e.selectedOption!=="Off"&&Gz(e,g)}),I=e.JSC$21414_watchApi.subscribeToActiveChanged(function(J){var q,L;
return _.r(function(n){if(n.nextAddress==1)return n.yield(_.eM().navigationFinishPromise,2);q=!_.H61();L=_.Ss().resolve(_.xt).isMiniplayerActive();J||!jdS(e.selectedOption)||L||q||Gz(e,g);_.Uh(n)})},!1);
c=_.kq(c,function(J){return J.entities.playlistLoopStateEntity||{}},function(J){J=J===void 0?{}:J;
var q=Pn0(e.JSC$21414_watchApi);if(q){var L;((L=J[q])==null?void 0:L.state)==="PLAYLIST_LOOP_STATE_ALL"&&jdS(e.selectedOption)&&Gz(e,g)}});
e.addOnDisposeCallback(k);e.addOnDisposeCallback(c);e.addOnDisposeCallback(I)};
XI.prototype.onSleepTimerSettingsChanged=function(e,g){switch(e){case "Off":this.selectedOption!=="Off"&&Gz(this,g);break;case "End of video":case "End of playlist":z7z(this,e,g);break;default:z7z(this,e,g,piq.get(e))}};
XI.prototype.onLoopChange=function(e){(e.getLoopVideo()||e.getLoopRange())&&jdS(this.selectedOption)&&Gz(this,e)};
XI.prototype.onCloseMiniplayer=function(e){jdS(this.selectedOption)&&Gz(this,e)};
var z7z=function(e,g,c,k){Hpo(e,c);e.selectedOption=g;e.videoId=c.getVideoData().video_id;e.playlistId="";var I;(I=e.sessionStorage)==null||I.set("yt-sleep-timer","true");e.adjustmentsCount++;lQQ(c,(0,_.yr)(),HuD(c),e.selectedOption==="End of video");if(e.selectedOption==="End of video")d3v(e,c),QSS(e,c);else if(e.selectedOption==="End of playlist"){QSS(e,c);var J,q;e.playlistId=(q=(J=iuD(e.JSC$21414_watchApi))==null?void 0:J.playlistId)!=null?q:"";mez(e.playlistId)||d3v(e,c)}else k&&(e.presetFadeSchedulerId=
_.JC(_.ft,function(){u5g(c,15E3)},k-15E3),e.presetPauseSchedulerId=_.JC(_.ft,function(){F4D(e,c)},k),sdo(c,(0,_.yr)(),k))},F4D=function(e,g){if(e.JSC$21414_watchApi.isActive()){var c={dismissDialogEndpoint:{}};
var k={commandExecutorCommand:{commands:[c,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};c={buttonViewModel:{title:_.C_("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:c}}};k={buttonViewModel:{title:_.C_("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:k}}};var I={dialogHeaderViewModel:{headline:{content:_.C_("SLEEP_TIMER_ENDED_TITLE")}}},
J={basicContentViewModel:{paragraphs:[{text:{content:_.C_("SLEEP_TIMER_ENDED_TEXT")}}]}};c={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:I,content:J,footer:{panelFooterViewModel:{primaryButton:c,secondaryButton:k,shouldHideDivider:!0}}}}}}};_.Ss().resolve(_.xk).resolveCommand(c,{form:{element:e}})}else zPz();U3g(e,!1);ogX(e,g);g.pauseVideo();_.up.getInstance().getState()===2&&g.getPlayerState()===5&&(e.pauseAutonavPlayback=!0)},Gz=function(e,g){U3g(e,!0);
ogX(e,g);zPz()},ogX=function(e,g){Hpo(e,g);
e.selectedOption="Off";e.videoId="";e.playlistId="";e.adjustmentsCount=0;var c;(c=e.sessionStorage)==null||c.remove("yt-sleep-timer");_.ft.cancelJob(AAO);g.resetSleepTimerMenuSettings()},U3g=function(e,g){g={timer_length_adjustment_times_during_session:e.adjustmentsCount-1,
is_session_cancelled:g};switch(e.selectedOption){case "Off":g.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":g.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":g.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:g.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",g.option_duration_in_minutes=piq.get(e.selectedOption)/6E4}_.Y2("sleepTimerSessionFinishEvent",g)};
XI.prototype.onPlayerStateChange=function(e,g){e===1?lQQ(g,(0,_.yr)(),HuD(g),this.selectedOption==="End of video"):e===0?(_.ft.cancelJob(c7),g.setVideoTimeLeft(Tlo(0,0))):e===2&&_.ft.cancelJob(c7);this.selectedOption==="End of video"?e===0?F4D(this,g):e===2&&deS(g):this.selectedOption!=="End of playlist"||mez(this.playlistId)||(e===0?F4D(this,g):e===2&&deS(g))};
XI.prototype.onSeekComplete=function(e){e.getPlayerState()===2&&lQQ(e,(0,_.yr)(),HuD(e),this.selectedOption==="End of video",!0)};
XI.prototype.onCueRangeEnter=function(e,g){e==="sleep-timer-fade-audio"&&u5g(g,(g.getDuration()-g.getProgressState().current)*1E3)};
XI.prototype.onCueRangeExit=function(e,g){e==="sleep-timer-fade-audio"&&g.getPlayerState()!==0&&deS(g,!0)};
var d3v=function(e,g){g.addCueRange("sleep-timer-fade-audio",g.getDuration()-15,g.getDuration());g.addEventListener("onCueRangeEnter",function(c){e.onCueRangeEnter(c,g)});
g.addEventListener("onCueRangeExit",function(c){e.onCueRangeExit(c,g)})},uKo=function(e,g){g.removeCueRange("sleep-timer-fade-audio");
g.removeEventListener("onCueRangeEnter",function(c){e.onCueRangeEnter(c,g)});
g.removeEventListener("onCueRangeExit",function(c){e.onCueRangeExit(c,g)})},Hpo=function(e,g){jdS(e.selectedOption)?uKo(e,g):(_.ft.cancelJob(e.presetPauseSchedulerId),_.ft.cancelJob(e.presetFadeSchedulerId),e.presetPauseSchedulerId=0,e.presetFadeSchedulerId=0);
deS(g,!0)},QSS=function(e,g){g.setLoop(!1);
g.setLoopVideo(!1);g.setLoopRange(null);(e=Pn0(e.JSC$21414_watchApi))&&_.Ss().resolve(_.EO).dispatch(_.cY("playlistLoopStateEntity",e,{key:e,state:"PLAYLIST_LOOP_STATE_NONE"}))};var N8q=function(e){_.Iy.call(this);var g=this;this.JSC$21417_watchApi=e;_.G("web_watch_force_start_in_theater_mode")&&Zpg(this,!0,!1);VTx(this);tT7(this);B8M(this);var c=this.JSC$21417_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.MN("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.Lf.get("wide",void 0)==="1"&&_.r1("wide","1",_.MN("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){g.JSC$21417_watchApi.unsubscribeByKey(c)});
e=e.getRoot();if(e.is==="ytd-watch-flexy"||e.is==="ytd-watch-grid")e.onTheaterReduxValueUpdate(this.getState());this.getState()&&bUz();_.G("web_watch_log_theater_mode_cookie_state")&&_.Lf.get("wide","0")==="1"&&_.Klq("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.Y(N8q,_.Iy);var VTx=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21417_watchApi.playerApi,2);g=k.yieldResult;c=function(I){Zpg(e,!!I)};
g.addEventListener("SIZE_CLICKED",c);e.addOnDisposeCallback(function(){g.removeEventListener("SIZE_CLICKED",c)});
_.Uh(k)})},tT7=function(e){e.JSC$21417_watchApi.registerActionHandler("yt-toggle-theater-mode",function(g,c){Zpg(e,g,c===void 0?!0:c)});
e.addOnDisposeCallback(function(){e.JSC$21417_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
N8q.prototype.getState=function(){return _.nx(_.Tt().getState())};
var Zpg=function(e,g,c){c=c===void 0?!0:c;var k,I,J,q=_.G("enable_player_resize_transition")&&!!e.JSC$21417_watchApi.getWatchNextResponse()&&!((k=e.JSC$21417_watchApi.getWatchNextResponse())==null?0:(I=k.contents)==null?0:(J=I.twoColumnWatchNextResults)==null?0:J.conversationBar);q4j(function(){_.Tt().dispatch(_.Hh({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:g}}));_.G("theater_mode_scroll_to_top_killswitch")||e.JSC$21417_watchApi.scrollWatchTo(0,!1);_.sM()&&_.G("external_fullscreen")&&_.F7(document.documentElement);
B8M(e);c&&_.r1("wide",g?"1":"0",_.MN("theater_mode_cookie_max_age_seconds",-1));_.Z5(e.JSC$21417_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);e.JSC$21417_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:g});g&&bUz()},{shouldWrap:q})},B8M=function(e){var g;
_.r(function(c){if(c.nextAddress==1)return c.yield(e.JSC$21417_watchApi.playerApi,2);g=c.yieldResult;g.setSizeStyle(!0,e.getState());_.Uh(c)})};var K4o=function(e){_.Iy.call(this);var g=this;this.playerApi=e;this.timeToPanelSyncKeyMap={};var c;if(e==null?0:(c=e.isReady)==null?0:c.call(e)){c=_.kq(_.Ss().resolve(_.EO),function(I){return I.entities.timedMarkersListSyncEntity||{}},function(I,J){I=I===void 0?{}:I;
J=J===void 0?{}:J;for(var q=_.w(Object.keys(J)),L=q.next();!L.done;L=q.next())L=L.value,I[L]!==J[L]&&SZ7(g,J[L]);J=_.w(Object.keys(I));for(q=J.next();!q.done;q=J.next())q=q.value,L=I[q],g.timeToPanelSyncKeyMap[q]&&yeo(g,L)});
this.addOnDisposeCallback(c);var k=function(I){g.onCueRangeEnter(I)};
e.addEventListener("onCueRangeEnter",k);this.addOnDisposeCallback(function(){var I;(I=e.removeEventListener)==null||I.call(e,"onCueRangeEnter",k)})}};
_.Y(K4o,_.Iy);
var yeo=function(e,g){var c,k;if((c=e.playerApi)==null?0:(k=c.isReady)==null?0:k.call(c)){var I;if((c=g==null?void 0:(I=g.timedListData)==null?void 0:I.sections)&&g!=null&&g.key)for(I=_.w(c),c=I.next();!c.done;c=I.next())if(c=c.value,c.timedSyncDataList&&c.sectionId)for(k=0;k<c.timedSyncDataList.length;k++){var J=c.timedSyncDataList[k];J.syncItemId&&e.playerApi.addCueRange(c.sectionId+"_"+g.key+"_"+J.syncItemId,Number(J.videoTimeMs)/1E3,k===c.timedSyncDataList.length-1?0x8000000000000:Number(c.timedSyncDataList[k+
1].videoTimeMs)/1E3)}}},SZ7=function(e,g){var c,k;
if((c=e.playerApi)==null?0:(k=c.isReady)==null?0:k.call(c)){var I;if((c=g==null?void 0:(I=g.timedListData)==null?void 0:I.sections)&&g!=null&&g.key)for(I=_.w(c),c=I.next();!c.done;c=I.next())if(c=c.value,c.timedSyncDataList&&c.sectionId){k=_.w(c.timedSyncDataList);for(var J=k.next();!J.done;J=k.next())J=J.value,J.syncItemId&&e.playerApi.removeCueRange(c.sectionId+"_"+g.key+"_"+J.syncItemId)}}};
K4o.prototype.onCueRangeEnter=function(e){for(var g=_.w(Object.keys(this.timeToPanelSyncKeyMap)),c=g.next();!c.done;c=g.next()){c=c.value;var k=_.w(e.split("_"+c+"_")),I=k.next().value;k=k.next().value;if(I&&k){e=_.Ss().resolve(_.EO);g=this.timeToPanelSyncKeyMap[c];var J=_.zw8(e.getState(),g);c=OpM(c,I,k);if(c===-1)break;c={activeSyncId:k,activeItemIndex:c,activeSectionInfo:{sectionIdentifier:I}};J?e.dispatch(_.ET("markersEngagementPanelSyncEntity",g,c)):e.dispatch(_.cY("markersEngagementPanelSyncEntity",
g,Object.assign({},{key:g},c)));break}}};
var OpM=function(e,g,c){var k=_.Ss().resolve(_.EO),I,J;e=(I=M4O(k.getState(),e))==null?void 0:(J=I.timedListData)==null?void 0:J.sections;if(!e)return-1;I=0;J=_.w(e);for(e=J.next();!e.done;e=J.next()){e=e.value;k=e.timedSyncDataList||[];if(e.sectionId===g)return g=k.findIndex(function(q){return q.syncItemId===c}),g===-1?g:I+g;
I+=k.length}return-1};var e3j=function(e){_.Iy.call(this);var g=this;this.JSC$21431_watchApi=e;this.unresolvedCommands=[];this.JSC$21431_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(c){MTS(g,c)});
this.addOnDisposeCallback(function(){g.JSC$21431_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
Caz(this)};
_.Y(e3j,_.Iy);var Caz=function(e){var g;_.r(function(c){if(c.nextAddress==1)return c.yield(e.JSC$21431_watchApi.playerApi,2);g=c.yieldResult;if(e.isDisposed())return c.return();e.timedSyncObserver=new K4o(g);e.unresolvedCommands.length&&(e.unresolvedCommands.forEach(function(k){return MTS(e,k)}),e.unresolvedCommands=[]);
_.yh(e,e.timedSyncObserver);_.Uh(c)})},MTS=function(e,g){if(e.timedSyncObserver){var c=_.x(g,UmS);
if(c&&c.timedSyncEntityKey&&c.panelSyncEntityKey){e=e.timedSyncObserver;g=c.timedSyncEntityKey;var k=c.panelSyncEntityKey;c=!!c.isEnabled;c=c===void 0?!0:c;var I=_.Ss().resolve(_.EO);I=M4O(I.getState(),g);c?e.timeToPanelSyncKeyMap[g]||(e.timeToPanelSyncKeyMap[g]=k,yeo(e,I)):(delete e.timeToPanelSyncKeyMap[g],SZ7(e,I))}}else e.unresolvedCommands.push(g)};var gZj=_.H(function(e){var g=e.data,c=e.maybeLogSmartSkipClientData,k=null,I=null,J=_.G("web_enable_auto_focus_for_timely_action_button"),q=function(){k=document.activeElement},L=function(){g().smartSkipMetadata&&(k=document.activeElement,_.Ygv(function(){return I}))},n=function(W){if(g().smartSkipMetadata&&(!W||W.key!=="Enter")){k&&k.isConnected&&(_.Ygv(function(){return k}),k=null);
var b;(b=I)==null||b.blur()}};
e=_.Ve(function(){c==null||c(!0,g());return!1});
var R=_.mb(_.EQ(function(){return g().rendererContext},{onTap:function(W,b){b({disableClickTracking:!0})}}),_.By({visibilityCallback:function(W){if(J)W?I&&g().smartSkipMetadata&&(L(),document.addEventListener("focusin",q)):(document.removeEventListener("focusin",q),n());
else if(W){W=_.nV(g().rendererContext);var b=Number(g().maxVisibleDurationMilliseconds),h,X=(h=_.x(g().rendererContext,_.Jh))==null?void 0:h.label;W&&b&&X&&(h={label:X,command:W,durationMs:b},_.Ss().resolve(_.hE).enqueue(h))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.Tr(function(){if(J){var W;if((I=(W=R.value)==null?void 0:W.querySelector("button"))&&g().smartSkipMetadata){var b;(b=R.value)==null||b.addEventListener("keydown",n)}}});
_.sX(function(){J&&(I&&g().smartSkipMetadata&&I.removeEventListener("keydown",n),document.removeEventListener("focusin",q),n())});
return _.a("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:R,"on:click":e},_.a(_.eS,{data:function(){return g().content}},{buttonViewModel:_.oD}))},"mk");var cyq=_.H(function(e){var g=e.data,c=e.playerApi,k=_.Ss().resolve(_.EUO);e=_.w(_.uF(function(){g()}));
var I=e.next().value,J=e.next().value,q=function(){return otg(g(),I())},L=function(R,W){var b,h,X=(b=_.x(W==null?void 0:W.rendererContext,_.cT))==null?void 0:(h=b.loggingDirectives)==null?void 0:h.trackingParams;
if((W=W==null?void 0:W.smartSkipMetadata)&&W.loggingData&&(h=W.loggingData,W=h.algorithmId,b=h.startMilliseconds,h=h.endMilliseconds,W&&b!==void 0&&h!==void 0)){var D,f;R={smartSkipData:Object.assign({},{versionName:W,startMediaTimeMs:b,endMediaTimeMs:h},R&&{userInteractionMediaTimeMs:(Math.floor(((D=_.FE())==null?void 0:(f=D.getPlayer())==null?void 0:f.getCurrentTime())||0)*1E3).toString()})};D=_.EM();var l;X&&(l=_.Jb(X));D&&l&&_.Tu(D,l,R)}},n=function(R,W){var b=otg(g(),R);
if(b){var h=_.x(b,Uev),X;if(X=W)X=c(),b=_.x(b,Uev),X=b!=null&&b.smartSkipMetadata?!(X==null?0:X.isSameMarkerTypeVisible((b==null?void 0:b.smartSkipMetadata.markerKey)||"")):!0;if(X){var D,f;(h==null?0:(D=h.smartSkipMetadata)==null?0:(f=D.loggingData)==null?0:f.isCounterfactual)||(L(!1,h),J(R))}else W||I()!==R||J(void 0)}};
_.AV(function(){var R=g().timelyActions;if(R){R=_.w(R);for(var W=R.next();!W.done;W=R.next()){W=_.x(W.value,Uev);var b=void 0;(b=W)!=null&&b.cueRangeId&&k.timelyActionsMap.set(W.cueRangeId,n)}_.sX(function(){k.timelyActionsMap.clear()})}},"l2RtC");
return _.a("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.a(_.eS,{data:q},{timelyActionViewModel:function(R){return _.a(gZj,{data:R.data,maybeLogSmartSkipClientData:function(){L(!0,_.x(q(),Uev))}})}}))},"ok");var ITg=function(e){_.Iy.call(this);this.JSC$21444_watchApi=e;e=_.w(_.Wa({},void 0,"UN7k5e"));this.timelyActionsOverlay=e.next().value;this.setTimelyActionsOverlay=e.next().value;kzo(this)};
_.Y(ITg,_.Iy);var kzo=function(e){var g,c,k,I;_.r(function(J){if(J.nextAddress==1)return JyM(e),vZl(e),e.timelyActionsContainer=document.createElement("div"),J.yield(e.JSC$21444_watchApi.playerApi,2);g=J.yieldResult;(k=(c=g).insertTimelyActionUi)==null||k.call(c,e.timelyActionsContainer);I=_.p4(e.timelyActionsContainer,function(){return _.a(cyq,{data:e.timelyActionsOverlay,playerApi:g})},"pk");
e.addOnDisposeCallback(I);_.Uh(J)})},vZl=function(e){var g=e.JSC$21444_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JyM(e)});
e.addOnDisposeCallback(function(){e.JSC$21444_watchApi.unsubscribeByKey(g)})},JyM=function(e){var g=e.JSC$21444_watchApi.getWatchNextResponse();
if(g){var c,k;if(g=_.x((c=g.playerOverlays)==null?void 0:(k=c.playerOverlayRenderer)==null?void 0:k.timelyActionsOverlayViewModel,Vfo)){var I;(I=e.setTimelyActionsOverlay)==null||I.call(e,g)}}};var qpx=function(e){_.Iy.call(this);this.JSC$21448_watchApi=e;wMO(this)};
_.Y(qpx,_.Iy);var wMO=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21448_watchApi.playerApi,2);g=k.yieldResult;c=function(I){_.yJ.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.x(I,efo)},popupType:"TOAST"}})};
g.addEventListener("onYtShowToast",c);e.addOnDisposeCallback(function(){g.removeEventListener("onYtShowToast",c)});
_.Uh(k)})};var LLX=function(e){var g=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.V8;this.element.addEventListener("load",function(){g.loaded=!0;g.resolver.resolve(g.element)});
this.element.addEventListener("error",function(){g.failed=!0});
this.element.src=e};var ryx=function(e,g){this.image=e;this.frame=g};
ryx.prototype.drawToCanvas=function(e,g){var c=this.frame.width/this.frame.columns,k=this.frame.height/this.frame.rows,I=g.offsetX,J=g.offsetY;Zug(g)?(e.fillStyle=g.fullscreen?"#000":"#0f0f0f",e.fillRect(I,J,(g==null?void 0:g.width)||c,(g==null?void 0:g.height)||k)):e.drawImage(this.image,this.frame.column*c,this.frame.row*k,c,k,I,J,(g==null?void 0:g.width)||c,(g==null?void 0:g.height)||k)};
var aTX=function(e){this.color=e};
aTX.prototype.drawToCanvas=function(e,g){var c=g.offsetX,k=g.offsetY,I=g.width,J=g.height;e.fillStyle=Zug(g)?g.fullscreen?"#000":"#0f0f0f":this.color;e.fillRect(c,k,I,J)};var xZ=function(e,g){PK.call(this);this.playerApi=g;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.T6(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();nZQ(this,e);R3D(this);this.update()};
_.Y(xZ,PK);xZ.prototype.addEventListeners=function(){var e=this,g=function(){e.update()},c=function(I){e.paused||(I.type==="newdata"&&(e.mosaics.clear(),EZv(e),DT(e)),R3D(e),e.update())},k=function(){e.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",g);this.playerApi.addEventListener("onVideoDataChange",c);this.playerApi.addEventListener("onStateChange",k);this.addOnDisposeCallback(function(){e.playerApi.removeEventListener("onVideoProgress",g);e.playerApi.removeEventListener("onVideoDataChange",c);e.playerApi.removeEventListener("onStateChange",k)})};
var nZQ=function(e,g){e.cinematicContainerRenderer!==g&&(e.cinematicContainerRenderer=g,EZv(e),DT(e),e.colorStoreUpdateJobId=_.ft.addLowPriorityJob(function(){var c;if((c=e.cinematicContainerRenderer.colorStore)!=null&&c.sampledColors){c=Infinity;for(var k=_.w(e.cinematicContainerRenderer.colorStore.sampledColors),I=k.next();!I.done;I=k.next()){I=I.value;var J=Number(I.key);J!==0&&J<c&&(c=J);J=_.EY(I.value);e.colorStore.set(I.key,J)}e.colorStoreTimeInterval=c}}))},EZv=function(e){e.colorStoreUpdateJobId&&
(_.ft.cancelJob(e.colorStoreUpdateJobId),e.colorStoreUpdateJobId=void 0);
e.colorStore.clear();e.currentStoryboardColor=void 0},WLj=function(e,g){var c;
return(c=e.getStoryboardFrame(g))==null?void 0:c.url};
xZ.prototype.onPlayerStateChange=function(){this.update()};
xZ.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var R3D=function(e){var g=e.getStoryboardFrame(0);g&&(g=new _.T6(g.width/g.columns,g.height/g.rows),DES(e.currentStoryboardSize,g)||(e.currentStoryboardSize=g,e.publish("STORYBOARD_SIZE_CHANGED",e.currentStoryboardSize)))},bej=function(e,g){e.currentStoryboardIndex=g;
e.pendingStoryboardIndex=NaN;g=e.getStoryboardFrame(e.currentStoryboardIndex);e.currentStoryboard=new ryx(e.mosaics.get(g.url).element,g);e.publish("STORYBOARD_CHANGED",e.currentStoryboard);e.lastUpdateTime=(0,_.yr)()};
xZ.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var DT=function(e){e.currentStoryboardIndex=NaN;e.pendingStoryboardIndex=NaN;e.currentStoryboard&&(e.currentStoryboard=void 0,e.publish("STORYBOARD_CHANGED",void 0));e.lastUpdateTime=NaN};
xZ.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)DT(this);else{var e=this.playerApi.getPlayerState(1);if(e===-1||e===5||e===0)DT(this);else if(isNaN(this.lastUpdateTime)||!((0,_.yr)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(e=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){e=""+Math.round(e*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var g=this.colorStore.get(e);g?g!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=g,this.currentStoryboard=new aTX(g),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.yr)()):(_.mN(new _.E2("Could not find color for timestamp: "+e,this.cinematicContainerRenderer)),DT(this))}else DT(this);else h3v(this,e)}};
var h3v=function(e,g){var c=e.getStoryboardFrameIndex(g);if(c!==e.currentStoryboardIndex&&c!==e.pendingStoryboardIndex){g=WLj(e,c);var k=e.mosaics.get(g);k?k.loaded&&bej(e,c):(e.pendingStoryboardIndex=c,c=new LLX(g),e.mosaics.set(g,c),c.resolver.promise.then(function(){if(!e.isDisposed()&&!e.paused&&!isNaN(e.pendingStoryboardIndex)){var I=WLj(e,e.pendingStoryboardIndex);if(I){var J;(J=e.mosaics.get(I))!=null&&J.loaded&&bej(e,e.pendingStoryboardIndex)}else DT(e)}}))}};
xZ.prototype.getStoryboardFrameIndex=function(e){var g=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(e,g)};
xZ.prototype.getStoryboardFrame=function(e){var g=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,c,k;return((k=(c=this.playerApi).getStoryboardFrame)==null?void 0:k.call(c,e,g))||null};
xZ.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var YZ=function(e,g,c,k){k=k===void 0?!1:k;_.Iy.call(this);this.cinematicContainerRenderer=g;this.playerApi=c;this.theater=this.fullscreen=!1;var I;this.ambientLightThemeEnabled=!k&&!!(g==null?0:(I=g.config)==null?0:I.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=k)&&!0;this.container=document.createElement("div");e.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);XMo(this);this.backCanvas=
V$v();this.frontCanvas=V$v();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new xZ(g,this.playerApi);_.yh(this,this.storyboardManager);this.addEventListeners();GzQ(this)?xK0(this,100+$Z(this)*3*2,100+$Z(this)*3*2):DKv(this);$KX(this,this.storyboardManager.currentStoryboard)};
_.Y(YZ,_.Iy);
var XMo=function(e){var g=e.playerApi.getVideoAspectRatio();_.i2(e.container,{"aspect-ratio":""+g,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var c;var k;if((e.fullscreen||e.theater)&&((c=e.cinematicContainerRenderer.config)==null?0:(k=c.watchFullscreenConfig)==null?0:k.colorSourceWidthMultiplier))c=e.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var I;c=(I=
e.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?I:e.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var J,q;if((e.fullscreen||e.theater)&&((J=e.cinematicContainerRenderer.config)==null?0:(q=J.watchFullscreenConfig)==null?0:q.colorSourceHeightMultiplier))I=e.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var L;I=(L=e.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?L:e.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.i2(e.innerContainer,
{"aspect-ratio":""+g,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+c+", "+I+")"});t$D()&&_.i2(e.innerContainer,"filter","blur("+_.MN("cinematic_watch_css_filter_blur_strength",40)+"px)")};
YZ.prototype.setFullscreen=function(e,g){this.fullscreen=e;this.theater=!!g;XMo(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),e=this.storyboardManager.currentStoryboard,Yp7(this),e&&fTg(this,e)};
YZ.prototype.addEventListeners=function(){var e=this,g=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(I){$KX(e,I)}),c=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){DKv(e)});
this.addOnDisposeCallback(function(){e.storyboardManager.unsubscribeByKey(g);e.storyboardManager.unsubscribeByKey(c)});
var k=function(){XMo(e)};
this.playerApi.addEventListener("onVideoDataChange",k);this.addOnDisposeCallback(function(){e.playerApi.removeEventListener("onVideoDataChange",k)})};
var DKv=function(e){if(!GzQ(e)){var g=e.storyboardManager.currentStoryboardSize;isNaN(g.width)||isNaN(g.height)||xK0(e,Number(g.width)+$Z(e)*3*2,Number(g.height)+$Z(e)*3*2)}},xK0=function(e,g,c){e.backCanvas.element.width=g;
e.backCanvas.element.height=c;e.frontCanvas.element.width=g;e.frontCanvas.element.height=c},GzQ=function(e){return e.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},$KX=function(e,g,c){c=c===void 0?!1:c;
var k=e.frontCanvas.element.getAnimations()[0];k?(k.pause(),e.backCanvas.context.globalAlpha=Number(getComputedStyle(e.frontCanvas.element).opacity),e.frontCanvas.element.style.opacity="0",k.finish()):e.backCanvas.context.globalAlpha=1;e.backCanvas.context.drawImage(e.frontCanvas.element,0,0,e.backCanvas.element.width,e.backCanvas.element.height);Yp7(e);g&&fTg(e,g);g=g?e.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.MN("cinematic_watch_fade_out_duration",500);k=_.MN("cinematic_watch_transition_frame_rate")/
1E3;var I={};k&&(I={easing:"steps("+Math.round(g*k)+")"});(c===void 0?0:c)||e.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:g,iterations:1},I));e.frontCanvas.element.style.opacity="1"},Yp7=function(e){var g=e.ambientLightThemeEnabled||e.ambientTheaterModeEnabled,c=e.ambientLightThemeEnabled||e.ambientFullscreenEnabled;
e.frontCanvas.context.fillStyle=e.theater&&g||e.fullscreen&&c?"#000":"#0f0f0f";t$D()||(e.frontCanvas.context.filter="blur(0)");e.frontCanvas.context.fillRect(0,0,e.frontCanvas.element.width,e.frontCanvas.element.height)},fTg=function(e,g){t$D()||(e.frontCanvas.context.filter="blur("+$Z(e)+"px)");
e.frontCanvas.context.globalAlpha=e.fullscreen&&e.ambientFullscreenEnabled||e.theater&&e.ambientTheaterModeEnabled?_.MN("cinematic_watch_effect_letterbox_opacity",.4):_.MN("cinematic_watch_effect_opacity",.4);var c={offsetX:$Z(e)*3,offsetY:$Z(e)*3,theater:e.theater,fullscreen:e.fullscreen};GzQ(e)&&(c.width=100,c.height=100);g.drawToCanvas(e.frontCanvas.context,c);e.frontCanvas.context.globalAlpha=1},$Z=function(e){var g;
return(g=e.cinematicContainerRenderer.config.blurStrength)!=null?g:5};
YZ.prototype.disposeInternal=function(){_.Iy.prototype.disposeInternal.call(this);this.container.remove()};
YZ.prototype.clear=function(){$KX(this,void 0,!0)};
YZ.prototype.pause=function(){this.storyboardManager.pause()};var jhl=_.n2(function(){var e,g,c=!((g=(e=document.createElement("canvas")).getContext)==null||!g.call(e,"2d")),k;e=!((k=CSS)==null||!k.supports("filter: blur(0)"));k=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var I;return c&&e&&k&&!((I=CSS)==null||!I.supports("aspect-ratio: 1 / 1"))}),fe=function(e,g){PK.call(this);
this.container=e;this.playerApi=g;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=ieM(this);this.update()};
_.Y(fe,PK);var P$x=function(e){var g=document.documentElement.hasAttribute("dark");e.isDarkModeEnabled=g;e.update()},mKl=function(e,g){e.settingEnabled=g;
e.update()};
fe.prototype.setFullscreen=function(e,g){this.fullscreen=e;this.theater=!!g;this.update()};
var pMS=function(e,g){e.cinematicContainerRenderer=g;e.cinematicContainerRenderer&&(e.cinematicsVe=_.VF(e.isShorts()?227858:159022),_.Nd(_.gL(),e.cinematicsVe),e.loggingClientData={watchCinematicContainerData:{presentationStyle:e.cinematicContainerRenderer.presentationStyle}});e.update()};
fe.prototype.isShorts=function(){var e,g;return((e=this.cinematicContainerRenderer)==null?void 0:(g=e.config)==null?void 0:g.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
fe.prototype.isAllowed=function(){var e;if(e=jhl()){var g,c,k;e=((c=this.cinematicContainerRenderer)==null?void 0:c.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((k=this.cinematicContainerRenderer)==null||!k.colorStore)||((g=this.cinematicContainerRenderer)==null?void 0:g.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(e)if(_.G("web_cinematics_pausing")){var I,J;e=this.isDarkModeEnabled||!!((I=this.cinematicContainerRenderer)==
null?0:(J=I.config)==null?0:J.enableInLightTheme)}else{var q,L;I=!!((q=this.cinematicContainerRenderer)==null?0:(L=q.config)==null?0:L.enableInLightTheme)&&(_.uo("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);e=this.isDarkModeEnabled||I}if(q=e){var n,R;q=!((R=(n=this.prefersReducedMotionQuery)==null?void 0:n.matches)!=null&&R)}return q};
var Too=function(e){var g;(g=e.currentCinematicEffect)==null||g.clear()},lTv=function(e){var g;
(g=e.currentCinematicEffect)==null||g.pause()},Ayq=function(e){(e=e.currentCinematicEffect)!=null&&(e=e.storyboardManager,e.paused=!1,R3D(e),e.update())};
fe.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var ieM=function(e){if(!_.G("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var g=window.matchMedia("(prefers-reduced-motion: reduce)"),c=function(){e.update()};
g.addListener(c);e.addOnDisposeCallback(function(){g.removeListener(c)});
return g}};
fe.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var e=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new YZ(this.container,e,this.playerApi,this.isDarkModeEnabled),_.yh(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var g=this.currentCinematicEffect;g.cinematicContainerRenderer!==
e&&(g.cinematicContainerRenderer=e,nZQ(g.storyboardManager,e),XMo(g));e=_.ch();_.kn(0,194,!0);e.save();e=_.EM();this.cinematicsVe&&e&&_.iB(e,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(e=_.EM(),this.cinematicsVe&&e&&_.Ph(e,[this.cinematicsVe],!1,this.loggingClientData),_.Fm(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Bd.Object.defineProperties(fe.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var shq=!1,z3g=function(e){_.Iy.call(this);this.JSC$21481_watchApi=e;this.fullscreen=this.theater=!1;FLz(this);uIQ(this);dKD(this)};
_.Y(z3g,_.Iy);var dKD=function(e){var g,c,k;_.r(function(I){if(I.nextAddress==1)return I.yield(e.JSC$21481_watchApi.playerApi,2);g=I.yieldResult;if(e.isDisposed())return I.return();c=e.JSC$21481_watchApi.getElement("CINEMATICS");if(!c)return I.return();e.JSC$21481_cinematicController=new fe(c,g);_.yh(e,e.JSC$21481_cinematicController);P$x(e.JSC$21481_cinematicController);Hez(e,_.jiK());k=e.JSC$21481_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(J){Qh7(e,J)});
e.addOnDisposeCallback(function(){e.JSC$21481_watchApi.unsubscribeByKey(k)});
UKS(e);Qh7(e,e.JSC$21481_cinematicController.isAllowed());oZQ(e);Ze7(e);_.Uh(I)})},oZQ=function(e){e.fullscreen=_.RH(_.Tt().getState());
e.theater=_.nx(_.Tt().getState());Vjg(e,e.fullscreen,e.theater);var g=_.kq(_.Tt(),_.RH,function(k){e.fullscreen=k;Vjg(e,e.fullscreen,e.theater)}),c=_.kq(_.Tt(),_.nx,function(k){e.theater=k;
Vjg(e,e.fullscreen,e.theater)});
e.addOnDisposeCallback(g);e.addOnDisposeCallback(c)},FLz=function(e){var g=e.JSC$21481_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){UKS(e)});
e.addOnDisposeCallback(function(){e.JSC$21481_watchApi.unsubscribeByKey(g)})},uIQ=function(e){var g,c;
_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21481_watchApi.playerApi,2);g=k.yieldResult;c=function(I){Hez(e,I)};
g.addEventListener("cinematicSettingsToggleChange",c);e.addOnDisposeCallback(function(){g.removeEventListener("cinematicSettingsToggleChange",c)});
_.Uh(k)})},UKS=function(e){var g=e.JSC$21481_watchApi.getWatchNextResponse(),c;
g=_.x(g==null?void 0:(c=g.pageVisualEffects)==null?void 0:c[0],nN);var k;(k=e.JSC$21481_cinematicController)==null||pMS(k,g)},Hez=function(e,g){var c;
(c=e.JSC$21481_cinematicController)==null||mKl(c,g);tjz(e)},Qh7=function(e,g){var c;
_.r(function(k){if(k.nextAddress==1)return _.G("kevlar_watch_cinematics_invisible")&&(g=!1),k.yield(e.JSC$21481_watchApi.playerApi,2);c=k.yieldResult;c.updateCinematicSettings(g);tjz(e);_.Uh(k)})},Ze7=function(e){var g=_.ch();
if(_.G("kevlar_measure_ambient_mode_idle")&&!g.getFlag(192)&&!shq){shq=!0;var c=_.h2(_.ft,function(){_.Ss().resolve(_.XQS).start(1E4)},5E3);
e.addOnDisposeCallback(function(){_.ft.cancelJob(c);_.Ss().resolve(_.XQS).stop()})}},Vjg=function(e,g,c){e.fullscreen=g;
e.theater=c;var k;(k=e.JSC$21481_cinematicController)==null||k.setFullscreen(e.fullscreen,e.theater);if(_.G("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(e.theater||e.fullscreen){var I;(I=e.JSC$21481_cinematicController)==null||Ayq(I)}else{var J;(J=e.JSC$21481_cinematicController)==null||lTv(J)}},tjz=function(e){var g;
e.JSC$21481_watchApi.getRoot().toggleCinematicsActive(!((g=e.JSC$21481_cinematicController)==null||!g.isEnabled()))};var yyS=function(e){_.Iy.call(this);var g=this;this.JSC$21484_watchApi=e;this.commentsReady=!1;this.setCommentsJobId=0;e=_.kq(_.Tt(),KR,function(){Bog(g)});
this.addOnDisposeCallback(e);var c=this.JSC$21484_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Nox(g)}),k=this.JSC$21484_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){Nox(g)});
this.addOnDisposeCallback(function(){g.JSC$21484_watchApi.unsubscribeByKey(c);g.JSC$21484_watchApi.unsubscribeByKey(k)});
var I=function(){_.G("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Spv(g,"false")};
this.JSC$21484_watchApi.getRoot().addEventListener("yt-page-data-will-update",I);this.addOnDisposeCallback(function(){g.JSC$21484_watchApi.getRoot().removeEventListener("yt-page-data-will-update",I)});
Nox(this)};
_.Y(yyS,_.Iy);var Nox=function(e){e.commentsReady=!1;_.ft.cancelJob(e.setCommentsJobId);e.setCommentsJobId=_.h2(_.ft,function(){Bog(e)},1E3)},Bog=function(e){if(!e.commentsReady){_.Wh("cmi");
_.ft.cancelJob(e.setCommentsJobId);var g,c,k,I,J=(g=e.JSC$21484_watchApi.getWatchNextResponse())==null?void 0:(c=g.contents)==null?void 0:(k=c.twoColumnWatchNextResults)==null?void 0:(I=k.results)==null?void 0:I.results.contents;g=void 0;if(J&&J.length)for(J=_.w(J),c=J.next();!c.done;c=J.next())if(c=c.value,I=k=void 0,((k=c)==null?void 0:(I=k.itemSectionRenderer)==null?void 0:I.sectionIdentifier)==="comment-item-section"){_.G("web_watch_provide_undefined_comments")?g=c.itemSectionRenderer:e.JSC$21484_watchApi.provideRenderingData("COMMENTS",
c.itemSectionRenderer);Spv(e,"true");break}_.G("web_watch_provide_undefined_comments")&&e.JSC$21484_watchApi.provideRenderingData("COMMENTS",g);e.commentsReady=!0;e.JSC$21484_watchApi.dispatchEvent("yt-watch-comments-ready")}},Spv=function(e,g){var c;
(c=e.JSC$21484_watchApi.getElement("COMMENTS"))==null||c.setAttribute("canScheduleJobs",g)};var KLq=["engagement-panel-ads"],gig=function(e){_.Iy.call(this);var g=this;this.JSC$21487_watchApi=e;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.G("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.G("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.G("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.MN("swatcheroo_provide_all_data_delay_ms",
250);if(this.swatcherooProvideAllDataOnScheduledJob)OeM(this);else{var c=this.JSC$21487_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Mjq(g);jj(g)}),k=this.JSC$21487_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){i$(g);
jj(g)});
this.JSC$21487_watchApi.getRoot().is==="ytd-watch-grid"&&_.G("swatcheroo_pbs_load_grid")&&(C$7(this),eno(this));this.addOnDisposeCallback(function(){g.JSC$21487_watchApi.unsubscribeByKey(c);g.JSC$21487_watchApi.unsubscribeByKey(k);_.ft.cancelJob(g.provideRichGridJobId)});
Mjq(this);i$(this)}};
_.Y(gig,_.Iy);var OeM=function(e){var g=e.JSC$21487_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){e.providePlayerJobId=_.e$(_.ft,function(){Mjq(e);jj(e)},e.provideAllDataDelayMs)}),c=e.JSC$21487_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){e.provideWatchNextJobId=_.e$(_.ft,function(){i$(e);
jj(e)},e.provideAllDataDelayMs)}),k=e.JSC$21487_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){e.provideWatchNextJobId=_.e$(_.ft,function(){i$(e);
jj(e)},e.provideAllDataDelayMs)});
e.JSC$21487_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.h2(_.ft,function(){Mjq(e);i$(e);jj(e)},100)});
e.JSC$21487_watchApi.addPageDisposeJob(function(){_.ft.cancelJob(e.provideWatchNextJobId);_.ft.cancelJob(e.providePlayerJobId)});
e.addOnDisposeCallback(function(){e.JSC$21487_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");e.JSC$21487_watchApi.unsubscribeByKey(g);e.JSC$21487_watchApi.unsubscribeByKey(c);e.JSC$21487_watchApi.unsubscribeByKey(k);_.ft.cancelJob(e.providePlayerJobId);_.ft.cancelJob(e.provideWatchNextJobId)});
Mjq(e);i$(e)},Mjq=function(e){var g=e.JSC$21487_watchApi.getPlayerResponse(),c,k,I=(k=g==null?void 0:(c=g.playabilityStatus)==null?void 0:c.messageRenderers)!=null?k:[],J,q;
g=(q=g==null?void 0:(J=g.playabilityStatus)==null?void 0:J.messages)!=null?q:[];J=_.w(g);for(q=J.next();!q.done;q=J.next())I.push({alertRenderer:{text:_.PL(q.value),type:"WARNING"}});e.JSC$21487_watchApi.provideRenderingData("ALERTS",I)},i$=function(e){var g=[],c,k,I,J=e.JSC$21487_watchApi.getWatchNextResponse(),q,L,n,R,W=J==null?void 0:(q=J.contents)==null?void 0:(L=q.twoColumnWatchNextResults)==null?void 0:(n=L.results)==null?void 0:(R=n.results)==null?void 0:R.contents;
if(W)for(q=_.w(W),L=q.next();!L.done;L=q.next())if(L=L.value,L.videoPrimaryInfoRenderer)var b=L;else if(L.videoSecondaryInfoRenderer){var h=L;R=n=void 0;L=Object.assign({},(n=L.videoSecondaryInfoRenderer)==null?void 0:(R=n.metadataRowContainer)==null?void 0:R.metadataRowContainerRenderer);if(L.rows&&L.collapsedItemCount!==void 0){L.rows=L.rows.slice(0,L.collapsedItemCount).filter(function(C1){return!!C1.richMetadataRowRenderer});
L.collapsedItemCount=L.rows.length;var X={metadataRowContainerRenderer:L}}}else if(L.merchandiseShelfRenderer)var D=L;else if(L.ticketShelfRenderer)var f=L;else if(L.expandableMetadataRenderer)var l=L;else if(L.itemSectionRenderer)if(n=L.itemSectionRenderer.contents,R=void 0,e.directlyProvideComments&&((R=L.itemSectionRenderer)==null?void 0:R.sectionIdentifier)==="comment-item-section")_.Wh("cmi"),e.JSC$21487_watchApi.provideRenderingData("COMMENTS",L.itemSectionRenderer);else if(n)for(L=_.w(n),n=
L.next();!n.done;n=L.next())if(n=n.value,n.commentsEntryPointHeaderRenderer)var A=n;else if(n.clarificationRenderer||n.infoPanelContainerRenderer||n.infoPanelContentRenderer||n.emergencyOneboxRenderer){g.push(n);var d=d||!!h}else n.limitedStateMessageRenderer?k=n:n.videoMetadataCarouselViewModel&&(I=n);if(_.G("web_watch_merch_in_sd_when_ticket_shelf_present")&&D&&f){var S=D;D=void 0}if(e.provideWatchNextSecondaryResults){var V,Q,y;e.JSC$21487_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
J==null?void 0:(V=J.contents)==null?void 0:(Q=V.twoColumnWatchNextResults)==null?void 0:(y=Q.secondaryResults)==null?void 0:y.secondaryResults)}if(e.JSC$21487_watchApi.getRoot().is==="ytd-watch-grid"){var O,Jq;e.JSC$21487_watchApi.provideRenderingData("LIVE_CHAT",J==null?void 0:(O=J.contents)==null?void 0:(Jq=O.twoColumnWatchNextResults)==null?void 0:Jq.conversationBar)}var LC,bW,RA,Xg;(V=J==null?void 0:(LC=J.contents)==null?void 0:(bW=LC.twoColumnWatchNextResults)==null?void 0:(RA=bW.secondaryResults)==
null?void 0:(Xg=RA.secondaryResults)==null?void 0:Xg.offerModule)&&(V.donationShelfRenderer||V.donationUnavailableRenderer)&&e.JSC$21487_watchApi.getRoot().is!=="ytd-watch-grid"&&(c=V);LC=e.JSC$21487_watchApi.getPlayerResponse();if(!LC||!_.RiK(LC.playabilityStatus,J==null?void 0:J.playerOverlays)){var Fg;if(J==null?0:(Fg=J.contents)==null?0:Fg.singleColumnWatchNextResults){var oA,Zt;var Ev=J==null?void 0:(oA=J.contents.singleColumnWatchNextResults.results)==null?void 0:(Zt=oA.results)==null?void 0:
Zt.contents}else{var an,V6,bs,f1;Fg=!!(W==null?0:(an=W[0])==null?0:(V6=an.itemSectionRenderer)==null?0:(bs=V6.contents)==null?0:(f1=bs[0])==null?0:f1.backgroundPromoRenderer);var hk,Pq;an=!!(J==null?0:(hk=J.contents)==null?0:(Pq=hk.twoColumnWatchNextResults)==null?0:Pq.secondaryResults);Fg&&!an&&(Ev=W)}}W=g[0];hk=g[1];d&&g.length===1&&(hk=W,W=void 0);e.JSC$21487_watchApi.provideRenderingData("PRIMARY_INFO",b);e.JSC$21487_watchApi.provideRenderingData("SECONDARY_INFO",h);e.JSC$21487_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
A);e.JSC$21487_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",I);e.JSC$21487_watchApi.provideRenderingData("CLARIFICATION",W);e.JSC$21487_watchApi.provideRenderingData("RICH_METADATA",X);e.JSC$21487_watchApi.provideRenderingData("MERCH_SHELF",D);_.G("web_watch_merch_in_sd_when_ticket_shelf_present")&&e.JSC$21487_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",S);e.JSC$21487_watchApi.provideRenderingData("TICKET_SHELF",f);e.JSC$21487_watchApi.provideRenderingData("LIMITED_STATE",k);e.JSC$21487_watchApi.getRoot().is!==
"ytd-watch-grid"&&e.JSC$21487_watchApi.provideRenderingData("DONATION_SHELF",c);e.JSC$21487_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Ev);e.JSC$21487_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",hk);e.JSC$21487_watchApi.provideRenderingData("EXPANDABLE_METADATA",l);if(e.swatcherooProvideAllDataOnScheduledJob){var vq,hq,zv,XM,Su,p1;b=J==null?void 0:(vq=J.contents)==null?void 0:(hq=vq.twoColumnWatchNextResults)==null?void 0:(zv=hq.secondaryResults)==null?void 0:(XM=zv.secondaryResults)==
null?void 0:(Su=XM.results)==null?void 0:(p1=Su[0])==null?void 0:p1.richGridRenderer;e.JSC$21487_watchApi.provideRenderingData("RICH_GRID_RENDERER",b)}};
gig.prototype.hasCompanionAds=function(e){var g,c;return(c=e==null?void 0:(g=e.adPlacements)==null?void 0:g.some(function(k){var I,J,q,L;return(k==null?void 0:(I=k.adPlacementRenderer)==null?void 0:(J=I.renderer)==null?void 0:J.actionCompanionAdRenderer)||(k==null?void 0:(q=k.adPlacementRenderer)==null?void 0:(L=q.renderer)==null?void 0:L.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?c:!1};
var jj=function(e){if(!_.G("swaterdoo_ps_wn_handle_ks")){e.swatcherooProvideAllDataOnScheduledJob||eno(e,3E3);var g=e.JSC$21487_watchApi.getPlayerResponse(),c,k,I,J,q,L=(c=e.JSC$21487_watchApi.getWatchNextResponse())==null?void 0:(k=c.contents)==null?void 0:(I=k.twoColumnWatchNextResults)==null?void 0:(J=I.secondaryResults)==null?void 0:(q=J.secondaryResults)==null?void 0:q.offerModule;g=e.hasCompanionAds(g);var n,R;c=(L==null?void 0:(n=L.tvfilmOfferModuleRenderer)==null?void 0:n.clientShouldSuppressIfCompanionAdDisplayed)||
(L==null?void 0:(R=L.unlimitedOfferModuleRenderer)==null?void 0:R.suppressIfCompanionAds);n=g&&c;e.JSC$21487_watchApi.getRoot().is==="ytd-watch-grid"&&e.JSC$21487_watchApi.provideRenderingData("OFFER_MODULE",n?void 0:L)}},eno=function(e,g){_.G("swatcheroo_pbs_load_grid")&&(e.provideRichGridJobId&&_.ft.cancelJob(e.provideRichGridJobId),e.provideRichGridJobId=_.e$(_.ft,function(){e.provideRichGridJobId=0;
var c,k,I,J,q,L,n,R=(c=e.JSC$21487_watchApi.getWatchNextResponse())==null?void 0:(k=c.contents)==null?void 0:(I=k.twoColumnWatchNextResults)==null?void 0:(J=I.secondaryResults)==null?void 0:(q=J.secondaryResults)==null?void 0:(L=q.results)==null?void 0:(n=L[0])==null?void 0:n.richGridRenderer;R&&e.JSC$21487_watchApi.provideRenderingData("RICH_GRID_RENDERER",R)},g))},C$7=function(e){var g,c;
_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21487_watchApi.playerApi,2);g=k.yieldResult;c=function(){e.onPlaybackStart()};
g.addEventListener("onPlaybackStartExternal",c);e.addOnDisposeCallback(function(){g.removeEventListener("onPlaybackStartExternal",c)});
_.Uh(k)})};
gig.prototype.onPlaybackStart=function(){eno(this)};var cYM=_.VF(115994),kNv=_.VF(115993),PM=function(e,g,c){var k=this;var I=c.dragDownAction;this.layer=0;this.JSC$21502_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return k.dragDownAction()}}}};
this.JSC$21502_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return k.dragDownAction()}}}};
this.fullscreen=!1;var J=_.gL();_.SD(J,cYM,this.layer);_.SD(J,kNv,this.layer);this.dragDownAction=function(){I();_.$y(J,{visualElement:k.fullscreen?cYM:kNv})};
this.gesture=new zQ(e,g,this.getConfig(!1),"pandown");this.attach()};
PM.prototype.attach=function(){this.gesture.attach()};
PM.prototype.detach=function(){this.gesture.detach()};
PM.prototype.update=function(e){this.fullscreen=e;var g=this.gesture;e=this.getConfig(e);g.config=e};
PM.prototype.getConfig=function(e){return e?this.JSC$21502_watchFullScreenConfig:this.JSC$21502_watchConfig};var JYD=function(e){_.Iy.call(this);var g=this;this.JSC$21505_watchApi=e;e.playerApi.then(function(c){g.player=c});
this.gestures=new PM(this.JSC$21505_watchApi.getRoot(),e.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(cwq(_.Tt().getState())&&KR(_.Tt().getState())<=0)if(_.RH(_.Tt().getState())){var c;(c=g.player)==null||c.toggleFullscreen()}else _.Z5(g.JSC$21505_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Iqv(this)};
_.Y(JYD,_.Iy);var Iqv=function(e){var g=_.kq(_.Tt(),_.RH,function(c){e.onFullscreenChanged(c)});
e.addOnDisposeCallback(g);g=_.kq(_.Tt(),KR,function(c){e.gestures&&(c>0?e.gestures.detach():e.gestures.attach())});
e.addOnDisposeCallback(g)};
JYD.prototype.onFullscreenChanged=function(e){this.gestures&&this.gestures.update(e)};var vij=["PLAYLIST"],qtD=function(e){_.Iy.call(this);var g=this;this.JSC$21508_watchApi=e;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(e.subscribeToActiveChanged(function(c){g.onActiveChanged(c)}));
w3M(this)};
_.Y(qtD,_.Iy);var L$X=function(e){e.pageDisposalDataTypes=Object.values(NAX).filter(function(g){return!vij.includes(g)})},w3M=function(e){if(_.G("swatcheroo_enable_ghost_cards")||_.G("web_watch_clear_data_on_page_dispose"))L$X(e),e.JSC$21508_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.ft.cancelJob(e.clearDataJobId);
e.clearDataJobId=0}),e.runPageDisposeJob=function(){var g=_.Ss().resolve(_.A4).getDestinationPageType()==="watch";
e.clearDataJobId=_.e$(_.ft,e.runClearDataJob,g?0:_.MN("web_watch_delay_page_dispose_ms",1E4))},e.runClearDataJob=function(){rYj(e)},e.runOnYtNavigateAwayFinish=function(){e.clearDataJobId&&(_.ft.cancelJob(e.clearDataJobId),e.clearDataJobId=0,rYj(e))},document.addEventListener("yt-navigate-finish",e.runOnYtNavigateAwayFinish),e.JSC$21508_watchApi.addPageDisposeJob(e.runPageDisposeJob),e.addOnDisposeCallback(function(){e.JSC$21508_watchApi.removePageDisposeJob(e.runPageDisposeJob);
e.JSC$21508_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",e.runOnYtNavigateAwayFinish)})},rYj=function(e){e.pageDisposalDataTypes.forEach(function(g){e.JSC$21508_watchApi.provideRenderingData(g,void 0)});
e.clearDataJobId=0};
qtD.prototype.onActiveChanged=function(e){e&&((e=document.querySelector("#watch-page-skeleton"))&&_.ev(e),aqX(this),document.body.removeAttribute("no-y-overflow"),_.dH("IS_SHELL_LOAD")&&jqq())};
var aqX=function(e){_.r(function(g){if(g.nextAddress==1)return g.yield(e.JSC$21508_watchApi.playerApi,2);_.Pj();_.Uh(g)})};var nig=_.G("kevlar_watch_while_counterfactual")?0:.25,bDx=function(e){_.Iy.call(this);this.JSC$21511_watchApi=e;this.JSC$21511_watchWhileEnabled=_.G("kevlar_watch_while_v2");this.JSC$21511_watchPipEnabled=_.G("web_watch_pip");Rno(this);Eiq(this);W$v(this)};
_.Y(bDx,_.Iy);var Rno=function(e){e.JSC$21511_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){hnz(e)});
e.addOnDisposeCallback(function(){e.JSC$21511_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Eiq=function(e){var g,c;
_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21511_watchApi.playerApi,2);g=k.yieldResult;c=function(I){I&&e.JSC$21511_watchPipEnabled?X3O(e):hnz(e)};
g.addEventListener("onCollapseMiniplayer",c);e.addOnDisposeCallback(function(){g.removeEventListener("onCollapseMiniplayer",c)});
_.Uh(k)})},W$v=function(e){var g=e.JSC$21511_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&g&&e.JSC$21511_watchWhileEnabled&&(e.playerIntersectionObserver=new IntersectionObserver(function(c){e.handleIntersect(c)},{threshold:[nig]}),e.playerIntersectionObserver.observe(g),e.addOnDisposeCallback(function(){var c;
(c=e.playerIntersectionObserver)==null||c.disconnect()}))},hnz=function(e){var g,c,k;
_.r(function(I){if(I.nextAddress==1)return g=_.Ss().resolve(_.A4),c=g.data,k=_.Nde(c.response,c.playerResponse),_.eM().miniplayerButtonActivation=!0,_.Ss().resolve(_.xt).collapse(),I.yield(_.eM().navigationFinishPromise,2);if(I.nextAddress!=3)return _.eM().currentEndpoint=k.watchEndpoint||null,I.yield(_.Ss().resolve(_.xt).activate(e.JSC$21511_watchApi.getElement("PLAYER"),k,c),3);_.eM().userActivation=!0;_.Uh(I)})},X3O=function(e){var g,c,k;
_.r(function(I){if(I.nextAddress==1)return _.Ss().resolve(_.xt).pictureInPictureSupported()?I.jumpTo(2):I.yield(e.JSC$21511_watchApi.playerApi,3);if(I.nextAddress!=2)return g=I.yieldResult,(c=g)==null||c.togglePictureInPicture(),I.return();k=_.Ss().resolve(_.A4);_.eM().watchPipActivation=!0;_.fdD(_.Ss().resolve(_.xt),k.data);_.Uh(I)})};
bDx.prototype.handleIntersect=function(e){GNQ(this,e[e.length-1])};
var GNQ=function(e,g){e.watchWhileJobId&&_.ft.cancelJob(e.watchWhileJobId);e.watchWhileJobId=_.ft.addLowPriorityJob(function(){var c,k;return _.r(function(I){if(I.nextAddress==1)return e.watchWhileJobId=void 0,c=_.Ss().resolve(_.xt),g.intersectionRatio>nig?c.isMiniplayerActive()?I.yield(c.deactivate(),0):I.jumpTo(0):(k=!c.isMiniplayerActive())?I.yield(xIq(e),5):I.jumpTo(4);I.nextAddress!=4&&(k=I.yieldResult);if(!k)return I.jumpTo(0);_.eM().watchWhileActivation=!0;return I.yield(DI0(e),0)})},100)},
xIq=function(e){return _.r(function(g){return g.nextAddress==1?_.G("kevlar_watch_while_paused")?g.return(!0):g.yield(e.isPlayerPlaying(),2):g.return(g.yieldResult)})};
bDx.prototype.isPlayerPlaying=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return c.yield(e.JSC$21511_watchApi.playerApi,2);g=c.yieldResult;return c.return(g.getPlayerStateObject().isPlaying)})};
var DI0=function(e){var g,c;return _.r(function(k){g=_.Ss().resolve(_.A4).data;c=_.Nde(g.response,g.playerResponse);_.eM().currentEndpoint=c.watchEndpoint||null;return k.yield(_.Ss().resolve(_.xt).activate(e.JSC$21511_watchApi.getElement("PLAYER"),c,g),0)})};var fq7=function(e){_.Iy.call(this);this.JSC$21515_watchApi=e;$Il(this);Ytj(this)};
_.Y(fq7,_.Iy);var Ytj=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21515_watchApi.playerApi,2);g=k.yieldResult;c=function(I){var J;I.sessionData&&I.sessionData.itct&&(J=I.sessionData.itct);var q=I.watchEndpoint;if(q&&I.sessionData&&I.sessionData.autonav)q=_.qaK(q,J);else{var L;q=_.Fb(I.videoId,(L=I.listId)!=null?L:void 0,J)}J={endpoint:q};I.sessionData&&(J.tempData=I.sessionData);e.JSC$21515_watchApi.dispatchEvent("yt-navigate",J)};
g.addEventListener("onPlayVideo",c);e.addOnDisposeCallback(function(){g.removeEventListener("onPlayVideo",c)});
_.Uh(k)})},$Il=function(e){var g=function(c){e.onYtNavigate(c)};
e.JSC$21515_watchApi.getRoot().addEventListener("yt-navigate",g);e.addOnDisposeCallback(function(){e.JSC$21515_watchApi.getRoot().removeEventListener("yt-navigate",g)})};
fq7.prototype.onYtNavigate=function(e){var g=this,c,k,I,J,q,L,n,R,W;return _.r(function(b){if(b.nextAddress==1){if(!((c=e.detail)==null?0:(k=c.endpoint)==null?0:k.watchEndpoint))return b.return();I=e.detail.endpoint.watchEndpoint;J=g.JSC$21515_watchApi.getWatchNextResponse();L=_.x((q=J)==null?void 0:q.currentVideoEndpoint,_.Pm);if(!L)return b.return();if(I.videoId!==L.videoId||I.playlistId&&I.playlistId!==L.playlistId||typeof I.startTimeSeconds!=="number")return b.jumpTo(0);e.stopPropagation();(n=
_.G("kevlar_watch_while_v2")&&!_.G("kevlar_watch_while_counterfactual"))&&_.Ss().resolve(_.xt).isMiniplayerActive()||g.JSC$21515_watchApi.scrollWatchTo(0,!0);return b.yield(g.JSC$21515_watchApi.playerApi,3)}R=b.yieldResult;W=I.startTimeSeconds;R.seekTo(W,void 0,void 0,void 0,84);R.wakeUpControls();W<R.getDuration()&&R.playVideo();_.Uh(b)})};var iDO=function(e){_.Iy.call(this);var g=this;this.JSC$21518_watchApi=e;var c=this.JSC$21518_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jK0(g)});
this.addOnDisposeCallback(function(){g.JSC$21518_watchApi.unsubscribeByKey(c)});
jK0(this);_.G("enable_ai_companion")&&(e=this.JSC$21518_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&HQ7(e,"WATCH")};
_.Y(iDO,_.Iy);var jK0=function(e){var g=e.JSC$21518_watchApi.getWatchNextResponse();if(g){var c,k=[].concat(_.KY((c=g==null?void 0:g.engagementPanels)!=null?c:[]));_.G("web_watch_comments_visible_by_default")&&(c=k.find(function(I){var J;return((J=I.engagementPanelSectionListRenderer)==null?void 0:J.targetId)==="engagement-panel-comments-section"}),c==null?0:c.engagementPanelSectionListRenderer)&&(c.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
k.unshift.apply(k,_.KY(PLj(g)));e.JSC$21518_watchApi.provideRenderingData("ENGAGEMENT_PANELS",k)}},p3l=function(e){var g,c,k,I=(g=e.engagementPanels)==null?void 0:(c=g.find(function(X){var D;
return((D=X.engagementPanelSectionListRenderer)==null?void 0:D.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(k=c.engagementPanelSectionListRenderer.content)==null?void 0:k.structuredDescriptionContentRenderer,J;
if(_.x(I==null?void 0:(J=I.items)==null?void 0:J.find(function(X){return!!_.x(X,V5Q)}),V5Q))return!0;
var q,L,n,R;if(e=(((q=e.contents)==null?void 0:(L=q.twoColumnWatchNextResults)==null?void 0:(n=L.results)==null?void 0:(R=n.results)==null?void 0:R.contents)||[]).find(function(X){return X.videoPrimaryInfoRenderer})){var W,b,h;
return(((W=e.videoPrimaryInfoRenderer)==null?void 0:(b=W.videoActions)==null?void 0:(h=b.menuRenderer)==null?void 0:h.flexibleItems)||[]).some(function(X){X=_.x(X,_.Q5Z);if(!X)return!1;var D,f;X=(D=X.topLevelButton)==null?void 0:(f=D.buttonViewModel)==null?void 0:f.onTap;if(!X)return!1;D=_.WT(X);if(!D)return!1;if(mID(D))return!0;if(_.G("enable_creator_chatbot")){D=_.x(D,_.SV);if(!D)return!1;var l;return(l=D.commands)==null?void 0:l.some(function(A){return mID(A)})}return!1})}return!1},mID=function(e){var g;
return((g=_.x(e,_.W2))==null?void 0:g.panelIdentifier)==="PAyouchat"},PLj=function(e){var g=[];
if(!_.G("web_watch_inject_placeholder_fantasy_panel_killswitch")){var c,k,I,J=(c=e.engagementPanels)==null?void 0:(k=c.find(function(L){var n;return((n=L.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(I=k.engagementPanelSectionListRenderer.content)==null?void 0:I.structuredDescriptionContentRenderer,q;
_.x(J==null?void 0:(q=J.items)==null?void 0:q.find(function(L){return!!_.x(L,urv)}),urv)&&(c=_.N6C("PAsports_fantasy"),c.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",g.push(c))}p3l(e)&&(e=_.N6C("PAyouchat"),e.engagementPanelSectionListRenderer.targetId="PAyouchat",e.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",g.push(e));
return g};var lqg=function(e){_.Iy.call(this);this.JSC$21521_watchApi=e;TwM(this)};
_.Y(lqg,_.Iy);var TwM=function(e){e.JSC$21521_watchApi.registerActionHandler("yt-loop-command",function(g){AYS(e,g)});
e.JSC$21521_watchApi.registerActionHandler("yt-repeat-chapter-command",function(g){sKo(e,g)});
e.addOnDisposeCallback(function(){e.JSC$21521_watchApi.unregisterActionHandler("yt-loop-command");e.JSC$21521_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},AYS=function(e,g){var c;
_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21521_watchApi.playerApi,2);c=k.yieldResult;_.x(g,PCX).loop?(c.setLoopRange({startTimeMs:Number(_.x(g,PCX).startTimeMs),endTimeMs:Number(_.x(g,PCX).endTimeMs),postId:_.x(g,PCX).postId,type:"clips"}),c.playVideo()):c.setLoopRange(null);_.Uh(k)})},sKo=function(e,g){var c,k;
_.r(function(I){if(I.nextAddress==1)return I.yield(e.JSC$21521_watchApi.playerApi,2);c=I.yieldResult;k=_.x(g,LoO).repeat;k==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(c.setLoopRange({startTimeMs:Number(_.x(g,LoO).startTimeMs),endTimeMs:Number(_.x(g,LoO).endTimeMs),type:"repeatChapter"}),c.playVideo()):k==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&c.setLoopRange(null);_.Uh(I)})};var uPj=function(e){_.Iy.call(this);this.JSC$21526_watchApi=e;F$S(this)};
_.Y(uPj,_.Iy);var F$S=function(e){e.JSC$21526_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(g){dIS(e,g)});
e.addOnDisposeCallback(function(){e.JSC$21526_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},dIS=function(e,g){var c,k,I,J,q,L,n,R,W,b,h;
_.r(function(X){if(X.nextAddress==1)return X.yield(e.JSC$21526_watchApi.playerApi,2);c=X.yieldResult;if(J=(I=(k=_.x(g,rxX))==null?void 0:k.highlightedMenuItemKey)!=null?I:"")(L=(q=c).highlightSettingsMenuItem)==null||L.call(q,J);if(W=(R=(n=_.x(g,rxX))==null?void 0:n.openMenuItemKey)!=null?R:"")(h=(b=c).openSettingsMenuItem)==null||h.call(b,W);_.Uh(X)})};var zng=_.Bh("/youtube/app/watch/player_state","playerStateEntity");var mL=function(e){_.Iy.call(this);this.JSC$21529_watchApi=e;HDQ(this)};
_.Y(mL,_.Iy);var QKS=function(e){switch(e){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"}},HDQ=function(e){var g,c,k,I,J;
_.r(function(q){if(q.nextAddress==1)return q.yield(e.JSC$21529_watchApi.playerApi,2);g=q.yieldResult;if(e.isDisposed())return q.return();c=function(L){e.onPlayerStateChange(L)};
k=function(L){e.onAdStateChange(L)};
I=function(){e.onAdSkip()};
J=function(L){e.onVideoDataChange(L)};
g.addEventListener("onStateChange",c);g.addEventListener("onAdStateChange",k);g.addEventListener("onAdSkip",I);g.addEventListener("onVideoDataChange",J);e.addOnDisposeCallback(function(){g.removeEventListener("onStateChange",c);g.removeEventListener("onAdStateChange",k);g.removeEventListener("onAdSkip",I);g.removeEventListener("onVideoDataChange",J)});
_.Uh(q)})},UIq=function(e){var g=_.lF(),c=g.dispatch;
a:switch(e.adsState){case -1:case 0:var k="ADS_STATE_NONE";break a;case 1:case 2:case 3:k="ADS_STATE_PLAYING";break a;default:k="ADS_STATE_UNKNOWN"}c.call(g,_.cY("playerStateEntity",zng,{key:zng,playerState:QKS(e.playerState),adsState:k,videoId:e.videoId}))};
mL.prototype.onPlayerStateChange=function(e){var g=this,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(g.JSC$21529_watchApi.playerApi,2);c=k.yieldResult;if(g.isDisposed())return k.return();g.playerState=e;g.videoId=c.getVideoData().video_id;UIq(g);_.Uh(k)})};
mL.prototype.onAdStateChange=function(e){this.adsState=e;UIq(this)};
mL.prototype.onAdSkip=function(){this.adsState=0;UIq(this)};
mL.prototype.onVideoDataChange=function(e){e.type==="newdata"&&(this.adsState=-1,UIq(this))};var ZDl=function(e){_.Iy.call(this);var g=this;this.JSC$21533_watchApi=e;this.enableExternalPlaylistPanelInPlayer=_.G("delhi_web_player_use_external_playlist_panel");_.Ss().resolve(_.fo).setPlayer(this.JSC$21533_watchApi.getElement("PLAYER"));e=this.JSC$21533_watchApi.subscribeToActiveChanged(function(c){g.onActiveChanged(c)});
this.addOnDisposeCallback(e);oiS(this)};
_.Y(ZDl,_.Iy);var oiS=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return e.enableExternalPlaylistPanelInPlayer?k.yield(e.JSC$21533_watchApi.playerApi,2):k.return();g=k.yieldResult;c=function(){if(e.playlistPanelElement)e.playlistPanelElement.onToggleExpanded()};
g.addEventListener("onToggleExternalPlaylistPanel",c);e.addOnDisposeCallback(function(){g.removeEventListener("onToggleExternalPlaylistPanel",c)});
_.Uh(k)})};
ZDl.prototype.onActiveChanged=function(e){var g=this,c=_.Ss().resolve(_.fo),k=function(){VHS(g)};
e?(this.playlistPanelElement=this.JSC$21533_watchApi.getElement("PLAYLIST_PANEL"))?(c.setPlaylistComponent(this.playlistPanelElement),c.addEventListener("yt-playlist-data-updated",k),this.addOnDisposeCallback(function(){c.removeEventListener("yt-playlist-data-updated",k)}),VHS(this)):_.UI(Error("Ul")):(c.removeEventListener("yt-playlist-data-updated",k),c.cancelVideoSkip())};
var VHS=function(e){var g=_.Ss().resolve(_.fo);e.JSC$21533_watchApi.provideRenderingData("PLAYLIST",g.getPlaylistData())};var pe=function(e){_.Iy.call(this);var g=this;this.JSC$21536_watchApi=e;this.onPageScroll=function(){g.scrollThrottle.fire();g.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.BT(this.onThrottledScroll,200,this);_.yh(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.BT(this.onMastheadThrottledScroll,50,this);_.yh(this,this.mastheadScrollThrottle);this.animation=new _.F4(function(c){g.JSC$21536_watchApi.getRoot().setScrollTop(c)});
e=_.kq(_.Tt(),_.RH,function(){g.onFullscreenChanged()});
this.addOnDisposeCallback(e);tHQ(this);Bwx(this);this.onThrottledScroll()};
_.Y(pe,_.Iy);
pe.prototype.onFullscreenChanged=function(){var e=this,g=this.JSC$21536_watchApi.getRoot();!this.pageScrollElement&&g.pageScrollElement?(this.pageScrollElement=g.pageScrollElement,g.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){e.pageScrollElement&&e.pageScrollElement.removeEventListener("scroll",e.onPageScroll)})):this.pageScrollElement&&!g.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var tHQ=function(e){window.addEventListener("scroll",e.onPageScroll);e.addOnDisposeCallback(function(){window.removeEventListener("scroll",e.onPageScroll)})},Bwx=function(e){e.JSC$21536_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(g){a:{var c;
if(c=e.JSC$21536_watchApi.getRoot().contains(g)&&!e.animation.isAnimating()){c=g.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var k,I,J=(g==null?void 0:(k=g.parentElement)==null?void 0:(I=k.parentElement)==null?void 0:I.id)==="fixed-secondary";c=!(c&&J)}if(c){if(_.G("kevlar_watch_scroll_manager_absolute_offset_killswitch"))k=g.offsetTop;else for(k=0,I=g;I!==null;)k+=I.offsetTop,k-=I.scrollTop,I=I.offsetParent;I=k;k=I-24;g=I+g.offsetHeight+24;I=e.JSC$21536_watchApi.getRoot().getPageScrollingElement();
c=e.JSC$21536_watchApi.getRoot().getScrollTop();J=c+I.clientHeight-56;if(k<c+56)g=k-56;else if(g>J)g-=I.clientHeight;else break a;e.scrollWatchTo(Math.max(0,g),!0)}}});
e.addOnDisposeCallback(function(){e.JSC$21536_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
pe.prototype.onThrottledScroll=function(){var e=_.Tt(),g=e.dispatch,c=this.JSC$21536_watchApi.getRoot().getScrollTop();g.call(e,_.Hh({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:c}}))};
pe.prototype.onMastheadThrottledScroll=function(){this.JSC$21536_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$21536_watchApi.getRoot().getScrollTop())};
pe.prototype.scrollWatchTo=function(e,g){(g===void 0?0:g)?this.animation.start(this.JSC$21536_watchApi.getRoot().getScrollTop(),Math.max(0,e),500):this.JSC$21536_watchApi.getRoot().setScrollTop(e)};var yY0=function(e){_.Iy.call(this);var g=this;this.JSC$21539_watchApi=e;var c=this.JSC$21539_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Nwv(g)}),k=this.JSC$21539_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Stl(g)});
this.addOnDisposeCallback(function(){g.JSC$21539_watchApi.unsubscribeByKey(c);g.JSC$21539_watchApi.unsubscribeByKey(k)});
Nwv(this);Stl(this)};
_.Y(yY0,_.Iy);
var Nwv=function(e){var g,c,k,I=(k=(g=e.JSC$21539_watchApi.getPlayerResponse())==null?void 0:(c=g.videoDetails)==null?void 0:c.title)!=null?k:"";e.JSC$21539_watchApi.dispatchEvent("yt-update-title",I)},Stl=function(e){var g,c,k,I,J,q,L,n=(L=((q=(g=e.JSC$21539_watchApi.getWatchNextResponse())==null?void 0:(c=g.contents)==null?void 0:(k=c.twoColumnWatchNextResults)==null?void 0:(I=k.results)==null?void 0:(J=I.results)==null?void 0:J.contents)!=null?q:[]).find(function(R){return!!R.videoPrimaryInfoRenderer}))==null?
void 0:L.videoPrimaryInfoRenderer;
(g=_.mp(n==null?void 0:n.title))&&e.JSC$21539_watchApi.dispatchEvent("yt-update-title",g)};var ODS=function(e){_.Iy.call(this);this.JSC$21542_watchApi=e;K$v(this)};
_.Y(ODS,_.Iy);var K$v=function(e){var g,c;_.r(function(k){if(k.nextAddress==1)return k.yield(e.JSC$21542_watchApi.playerApi,2);g=k.yieldResult;c=function(){e.onYpcContentRequest()};
g.addEventListener("onYpcContentRequest",c);e.addOnDisposeCallback(function(){g.removeEventListener("onYpcContentRequest",c)});
_.Uh(k)})};
ODS.prototype.onYpcContentRequest=function(){var e,g,c,k,I,J=(e=this.JSC$21542_watchApi.getWatchNextResponse())==null?void 0:(g=e.contents)==null?void 0:(c=g.twoColumnWatchNextResults)==null?void 0:(k=c.secondaryResults)==null?void 0:(I=k.secondaryResults)==null?void 0:I.offerModule,q,L,n,R;e=(R=(n=(L=(q=J==null?void 0:J.episodeOfferModuleRenderer)!=null?q:J==null?void 0:J.movieOfferModuleRenderer)!=null?L:J==null?void 0:J.unlimitedOfferModuleRenderer)!=null?n:J==null?void 0:J.liveOfferModuleRenderer)!=
null?R:J==null?void 0:J.tvfilmOfferModuleRenderer;var W,b,h;J=(h=J==null?void 0:(W=J.tvfilmOfferModuleRenderer)==null?void 0:(b=W.actionButtons)==null?void 0:b.length)!=null?h:0;b=Math.max(J-1,0);var X,D,f;W=(f=e==null?void 0:(X=e.offerButton)==null?void 0:X.buttonRenderer)!=null?f:e==null?void 0:(D=e.actionButtons)==null?void 0:D[b].buttonRenderer;var l,A;(X=(A=(l=W==null?void 0:W.navigationEndpoint)!=null?l:W==null?void 0:W.serviceEndpoint)!=null?A:W==null?void 0:W.command)&&_.yJ.instance.resolveCommand(X)};var MHq=function(e){PK.call(this);var g=this;this.rootElement=e;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return g.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(c){g.initOrDisposeActiveModules(c)}));
this.onAttached()};
_.Y(MHq,PK);_.v=MHq.prototype;_.v.getRoot=function(){return this.rootElement};
_.v.getElement=function(e){return this.rootElement.getElement(e)};
_.v.setPlayerResponse=function(e){this.playerResponse=e;this.publish("PLAYER_RESPONSE_UPDATED",e)};
_.v.getPlayerResponse=function(){return this.playerResponse};
_.v.setWatchNextResponse=function(e){this.watchNextResponse===e?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=e,this.publish("WATCH_NEXT_RESPONSE_UPDATED",e))};
_.v.getWatchNextResponse=function(){return this.watchNextResponse};
_.v.registerActionHandler=function(e,g){var c=this;if(_.G("web_watch_controller_reg_multiple_handlers_killswitch")){var k={};_.zm(_.dF.getInstance(),(k[e]=g,k),this.getRoot())}else this.actionHandlers.has(e)||(this.actionHandlers.set(e,[]),k={},_.zm(_.dF.getInstance(),(k[e]=function(){var I=_.Mb.apply(0,arguments);return(c.actionHandlers.get(e)||[]).map(function(J){return J.apply(null,_.KY(I))})},k),this.getRoot())),this.actionHandlers.get(e).push(g)};
_.v.unregisterActionHandler=function(e){if(_.G("web_watch_controller_reg_multiple_handlers_killswitch")){var g={};_.Hy(_.dF.getInstance(),(g[e]=!0,g),this.getRoot())}else(g=this.actionHandlers.get(e))?(g.pop(),g.length===0&&(g={},_.Hy(_.dF.getInstance(),(g[e]=!0,g),this.getRoot()),this.actionHandlers.delete(e))):_.mN(new _.E2("Attempted to unregister an action handler which is not registered.",e))};
_.v.addPageDisposeJob=function(e){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.TVg(this.rootElement.pageDisposeJobs,e)};
_.v.removePageDisposeJob=function(e){this.rootElement.pageDisposeJobs&&_.UC(this.rootElement.pageDisposeJobs,e)};
_.v.dispatchEvent=function(e,g){_.oC(this.rootElement,e,g)};
_.v.provideRenderingData=function(e,g){this.rootElement.provideRenderingData(e,g)};
_.v.scrollWatchTo=function(e,g){var c;(c=this.watchScrollManager)==null||c.scrollWatchTo(e,g)};
_.v.focusOnPlayer=function(){var e=this.getElement("PLAYER");_.Va(e,function(){if(e&&e.firstElementChild){var g=e.querySelector(".html5-video-player");g&&(_.sc(_.Ss().resolve(_.et)),g.focus())}else _.mN(Error("Vl"))})};
var CLM=function(e){var g=!!e.rootElement.theater,c=!!e.rootElement.fullscreen,k;(k=e.watchCinematicManager)==null||Vjg(k,c,g)};
_.v=MHq.prototype;_.v.subscribeToActiveChanged=function(e,g){g=g===void 0?!0:g;var c=_.kq(_.Tt(),ktz,function(k){e(k)});
g&&e(ktz(_.Tt().getState()));return c};
_.v.isActive=function(){return ktz(_.Tt().getState())};
_.v.onAttached=function(){var e=_.G("external_fullscreen");_.G("use_unified_flag_accessor")&&(e=_.Ss().resolve(_.Coo).retriever.getFlag(_.Htu));(e||_.dH("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.v.initPersistentModules=function(){if(_.G("kevlar_watch_flexy_theater_manager")){var e=new N8q(this);_.yh(this,e)}e=new qtD(this);_.yh(this,e);e=new hy(this);_.yh(this,e);e=new gig(this);_.yh(this,e);e=new mL(this);_.yh(this,e);e=new XI(this);_.yh(this,e);_.G("kevlar_watch_flexy_playlist_manager")&&(e=new ZDl(this),_.yh(this,e))};
_.v.initOrDisposeActiveModules=function(e){e?(this.watchScrollManager=new pe(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new fq7(this)),this.activeModules.push(new VCX(this)),this.activeModules.push(new yY0(this)),this.activeModules.push(new bDx(this)),_.G("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new yWl(this)),this.activeModules.push(new lqg(this)),_.G("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new ODS(this)),_.G("kevlar_watch_flexy_ads_manager")&&
this.activeModules.push(new qpx(this)),_.Im("kevlar_watch_cinematics")&&(this.watchCinematicManager=new z3g(this),this.activeModules.push(this.watchCinematicManager),CLM(this)),_.G("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new uPj(this)),_.G("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new JYD(this)),e=_.G("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.G("kevlar_watch_flexy_comments_manager")&&!e&&this.activeModules.push(new yyS(this)),
_.G("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new aDz(this)),this.activeModules.push(new e3j(this)),this.activeModules.push(new iDO(this)),_.G("web_enable_timely_actions")&&this.activeModules.push(new ITg(this)),_.G("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new ipj(this)),_.G("web_watch_enable_multiview_manager")&&this.activeModules.push(new h7X(this)),_.G("web_fullscreen_components")&&this.activeModules.push(new e7D(this)),_.G("web_player_rtr_ctrls")&&
this.activeModules.push(new m37(this))):(_.ue(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.v.disposeInternal=function(){PK.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Bd.Object.defineProperties(MHq.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.sL(_.H(function(e){var g=_.io("script");_.AV(function(){var c;if(c=JSON)c=Sml(e.data()),c=_.aP(JSON.stringify(c).replace(/</g,"\\u003C"));var k=e.data(),I=_.mp(k.title).trim().length===0,J=!k.publishDate||k.publishDate.trim().length===0,q,L,n,R,W=!((q=k.thumbnail)==null?0:(L=q.thumbnails)==null?0:L.length)||!((n=k.thumbnail)==null?0:n.thumbnails[0].url)||((R=k.thumbnail)==null?void 0:R.thumbnails[0].url.trim().length)===0;g.value&&c&&!(I||J||W)&&_.RP(g.value,c)},"Vy9K7b");
return _.a("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.a("script",{el:g,type:"application/ld+json"}))},"rk"),"player-microformat-renderer",{props:{data:_.TF}});var eIg={},gxg=["learning-journey-engagement-panel","PAlearning_chat"];
eIg.YtdLearningJourneyWatchBehavior=[_.K.YtRendererBehavior,_.iU.YtPlayerListenerBehavior,_.Fa.YtRendererstamperBehavior,_.Nr.YtActionHandlerBehavior,ej.YtPageBehavior,_.B$.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 _.dH("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.G("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 _.dH("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 _.G("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.G("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 _.MN("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.MN("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.Im("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("web_watch_rounded_player_large")||_.G("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 _.G("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.G("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("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 _.G("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:n9(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:n9(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},
learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var e=this;this.watchController=void 0;this.pageDisposeJobs=[function(){e.showMetadataPlaceholder_()},
function(){_.G("web_watch_dont_clear_comments")||e.clearComments_()},
function(){e.clearPlayerAds_()},
function(){e.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.G("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.G("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new Dvo(function(){return _.s1(e)},
this.hostElement);
this.pageDisposeJobs.push(function(){e.youThereManager_.reset()});
_.G("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){e.resetFullerscreenEduButtonForNewPlayback_()}));
_.G("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.aY;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;_.G("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.G("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));_.G("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.yg(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(e){e&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:e}),e.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(e){_.G("kevlar_watch_flexy_theater_manager")&&(this.theater=e,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.G("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(e){!_.G("kevlar_watch_while_v2")&&!_.G("web_watch_pip")||e||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(e){this.active!==void 0&&(this.fullscreen=e,_.G("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(e){this.active!==void 0&&(_.oC(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.G("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(e>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(e){b_x("learning_journey_watch",["pbs","pbp","pbu"]);this.updatePageData_(e)},
updatePageData_:function(e){var g=this;if(e)if(this.data===e){this.onPageLoadWithSameData_();var c;(c=this.watchController)==null||c.setWatchNextResponse(this.data)}else this.data=e;this.playlist&&_.nA({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Wh("nw");this.loading=!1;_.h2(_.ft,function(){mWv();var k,I=((k=g.player)==null?void 0:k.getVideoData().cpn)||"";sCQ(function(J,q){u7g(J,q,I)})})},
onPageLoadWithSameData_:function(){_.G("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 e=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!e);this.set("loadingData.playlistLoading",e&&e!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),e=this.watchNextSkeletonEl_.firstElementChild;e;)e.classList.remove("hidden"),e=e.nextElementSibling;var g,c,k;e=(g=this.loadingData)==null?void 0:(c=g.endpoint)==null?void 0:(k=c.watchEndpoint)==null?void 0:k.videoId;var I;e&&(I="https://i.ytimg.com/vi/"+e+"/frame0.jpg");_.o1(this.hostElement).querySelector("#player").style.backgroundImage=I?"url("+I+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var e=_.o1(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&e&&(e.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var g,c;(c=(g=this.watchMetadata).updateSentimentBarWidth)==
null||c.call(g);var k,I;(I=(k=this.watchMetadata).resize)==null||I.call(k)}_.o1(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(e){var g=_.o1(this.hostElement).querySelector(e);g?_.uc(g,!1):_.mN(new _.E2("Overscroll monitor not found for component: ",e))},
removeSplitScrollMouseTrap:function(e){var g=_.o1(this.hostElement).querySelector(e);g?_.dE(g):_.mN(new _.E2("Disposal component for  overscroll monitoring not found: ",e))},
onLoadingChanged_:function(e){e?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(e){var g=this;e?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ft.addLowPriorityJob(function(){g.onWindowResized_(_.CU(!0))})},
updateTheaterModeState_:function(e){if(!_.G("kevlar_watch_flexy_theater_manager")){e=e||this.fullWindowMode_;if(this.theater!==void 0||e)this.theater=e;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();e&&bUz()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var e=this.theater;_.G("external_fullscreen")&&this.fullscreen&&(e=!0);e=e?_.o1(this.hostElement).querySelector("#player-full-bleed-container"):_.o1(this.hostElement).querySelector("#player-container-inner");var g=this.getPlayerContainer(),c=_.G("kevlar_watch_while_v2")||_.G("web_watch_pip");g.parentElement!==e&&(c&&_.Ss().resolve(_.xt).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.s1(this).appendTo(e,g),e.appendChild(_.o1(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var e=this;return _.r(function(g){if(g.nextAddress==1)return g.yield(_.Ss().resolve(_.xt).deactivate(),2);e.updatePlayerLocation();_.Uh(g)})},
updateCinematicsLocation:function(){var e=this.getElement("CINEMATICS");if(e){var g=this.getCinematicsLocationContainer();e.parentElement!==g&&g.appendChild(e);var c;(c=this.watchController)==null||CLM(c)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.o1(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.o1(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(e,g){var c=document.documentElement.hasAttribute("dark"),k=!c&&this.cinematicLightTheme;return e&&c||g&&c||(g||e)&&k},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var e;(e=this.watchController)==null||e.setWatchNextResponse(this.data);_.G("kevlar_watch_flexy_comments_manager")||this.initComments_();_.G("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Ss().resolve(_.fo).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.G("web_watch_start_chat_in_theater_mode")){var g,
c,k;if((g=this.data)==null?0:(c=g.contents)==null?0:(k=c.twoColumnWatchNextResults)==null?0:k.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var I,J;((I=this.data)==null?0:(J=I.contents)==null?0:J.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(e){var g;(g=this.watchController)==null||g.setPlayerResponse(this.playerData);e&&e.playabilityStatus&&(g=this.isVideoPlayable_(e.playabilityStatus,this.getPlayerOverlays_(this.data)),e=yA0(e.playabilityStatus),g&&!e||_.Va(this,function(){_.Wh("pbu")}));
this.setPlayerAds_();_.V1(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(e){_.Tt().dispatch(_.Hh({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));e?this.activate_():this.deactivate_()},
attached:function(){var e=this;this.watchController=new MHq(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.G("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var g=_.s1(this);_.G("kevlar_disable_prepare_player")||g.preparePlayer();_.G("kevlar_watch_flexy_playlist_manager")||_.Ss().resolve(_.fo).setPlayer(g);this.updatePageMediaQueries();g={"--ytd-watch-flexy-scrollbar-width":V$()+
"px"};!_.MN("kv_pl_mx_sz_ks")&&_.MN("kevlar_watch_max_player_width")&&(g["--ytd-watch-flexy-max-player-width-wide-screen"]=FsQ+"px");_.MN("kevlar_watch_flexy_metadata_height")&&(g["--ytd-watch-flexy-space-below-player"]=dHv+"px");this.safeUpdateStyles(g);_.G("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new n4g(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return e.onPlayerTouchPanDown_()}}));
_.G("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.o1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var e=V$(),g=tQ+e,c=g;this.fixedPanels&&(g+=A4S);var k=657+e;e=1327+e;_.o1(this.hostElement).querySelector("#two-column-query").query="(min-width: "+g+"px)";_.o1(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(k+"px), (min-height: 630px) and (min-width: ")+(g+"px) and (max-width: ")+(e+"px)");_.o1(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(e+"px)");_.o1(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+c+"px)"},
calculateCurrentPlayerSize_:function(){return this.theater||_.G("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.T6(NaN,NaN):zND(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return zND(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Fm(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var e=this;this.onWindowResized_(_.CU());_.G("browse_skeleton_removal_on_watch_killswitch")||_.dH("IS_SHELL_LOAD")&&jqq();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var g=_.s1(this);g.addEventListener("yt-player-updated",_.yg(this,this.onPlayerUpdated_));g.getPlayerPromise().then(function(c){e.playerApiReady_(c)});
_.G("kevlar_watch_flexy_playlist_manager")||(g=_.Ss().resolve(_.fo),_.G("kevlar_watch_observe_playlist_navigations_killswitch")&&g.addEventListener("yt-navigate",_.yg(this,this.onYtNavigate_)),g.setPlaylistComponent(_.o1(this.hostElement).querySelector("#playlist")),g.addEventListener("yt-playlist-data-updated",_.yg(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ft.addLowPriorityJob(function(){_.oC(e.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.s1(this).removeEventListener("yt-player-updated",_.yg(this,this.onPlayerUpdated_));if(!_.G("kevlar_watch_flexy_playlist_manager")){var e=_.Ss().resolve(_.fo);_.G("kevlar_watch_observe_playlist_navigations_killswitch")&&e.removeEventListener("yt-navigate",_.yg(this,this.onYtNavigate_));e.cancelVideoSkip();e.removeEventListener("yt-playlist-data-updated",_.yg(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();
_.oC(this.hostElement,"yt-autonav-pause-player",!1);e=_.sM();_.G("kevlar_exit_fullscreen_leaving_watch")&&e&&_.F7(e)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(e){this.player&&this.player.updateVideoData({rvs:e.rvs})},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(e){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e)},
onRetrieveLocation_:function(e,g){g.hasComments?g.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):g.locationRetrieved("/related_ajax",void 0);e.stopPropagation()},
onSubscriptionChanged_:function(e,g){this.player&&(g?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.o1(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.o1(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(e){this.player=e;e=e.getPlayerState();_.Tt().dispatch(_.h$(e));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.G("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.G("kevlar_unified_player")||_.G("kevlar_player_new_bootstrap_adoption"))&&_.Pj()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(e,g){g=g===void 0?!0:g;_.sM()&&_.G("external_fullscreen")&&_.F7(document.documentElement);this.theaterRequested_=e;g&&_.r1("wide",e?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.G("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Z5(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.oC(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(e){_.pB(e,typeof this.player),this.player&&_.pB(e,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var e;((e=this.player)==null?0:e.isFullscreen())?this.player.toggleFullscreen():_.Z5(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(e,g){return this.loading?g:!!Object.keys(e).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(e){if(e){e=_.w(e);for(var g=e.next();!g.done;g=e.next())g=g.value,g.youThereRenderer&&flv(this.youThereManager_,g.youThereRenderer)}},
setPlaylistData_:function(e){return e||{}},
userEngagementConfigDataChanged_:function(e){if(e)if(e.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var g=this.youThereManager_;_.S6()<e.lowEngagementThresholdMs||mvv(g,!0)}else e.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Z5(this.hostElement,"yt-autonav-pause-user-engagement",[e])},
isPlayerUnavailable_:function(e,g,c){return!!e&&!this.isVideoPlayable_(e,c)&&!g},
getPlayerOverlays_:function(e){return(e==null?void 0:e.playerOverlays)||null},
isVideoPlayable_:function(e,g){if(!e)return!1;var c=e.status==="OK"||e.status==="LIVE_STREAM_OFFLINE",k=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",e)||this.get("errorScreen.ypcTrailerRenderer",e);e=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",e);var I;g=g==null?void 0:(I=g.playerOverlayRenderer)==null?void 0:I.gatedActionsOverlayRenderer;return!!c||!!k||!!e||!!g},
shouldProceedToNextVideo_:function(e,g,c){var k=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",g),I=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];I=_.G("web_no_skip_video_on_verification_checks")?(e==null?void 0:e.status)&&I.includes(e.status):e&&e.status==="AGE_CHECK_REQUIRED";var J=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",e);J==void 0&&(J=!0);!c||this.isVideoPlayable_(e,this.getPlayerOverlays_(g))||
k||I||!J||_.Ss().resolve(_.fo).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();Mt0()},
onPlayerFeedbackStartRequest_:function(e){_.Z5(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:e}])},
onPlayerFeedbackArticleRequest_:function(e){_.Z5(this.hostElement,"yt-help-dialog-requested",[e])},
onPlayerYpcContentRequest_:function(){var e,g,c,k,I,J,q,L,n=((e=this.data)==null?NaN:(g=e.contents)==null?NaN:(c=g.twoColumnWatchNextResults)==null?NaN:(k=c.secondaryResults)==null?NaN:(I=k.secondaryResults)==null?NaN:(J=I.offerModule)==null?NaN:(q=J.tvfilmOfferModuleRenderer)==null?NaN:(L=q.actionButtons)==null?NaN:L.length)-1;e=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];g=_.w(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(c=g.next();!c.done;c=g.next())for(c=c.value,k=_.w(e),I=k.next();!I.done;I=k.next())if(I="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+c+I.value,I=this.get(I+"navigationEndpoint",this.data)||this.get(I+"serviceEndpoint",this.data)||this.get(I+"command",this.data)){_.KO(I,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(e){_.oC(this.hostElement,"yt-autonav-pause-player",e)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(e){e()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(e){switch(e){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(e){switch(e){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.oC(this.hostElement,"yt-autonav-pause-player-ended")}_.Tt().dispatch(_.h$(e))},
onPlayerSubscribe_:function(e){_.Z5(this.hostElement,"yt-player-subscribe",[e])},
onPlayerUnsubscribe_:function(e){_.Z5(this.hostElement,"yt-player-unsubscribe",[e])},
onPlayerAdYtShowToast_:function(e){_.Z5(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:e.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(e){if(e)return e},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(e){return!_.Im("web_watch_move_summary_to_sd")&&!!e},
computeWatchMetadataRefresh:function(){return _.G("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var e,g,c,k;this.watchNextSecondaryResults=(e=this.data)==null?void 0:(g=e.contents)==null?void 0:(c=g.twoColumnWatchNextResults)==null?void 0:(k=c.secondaryResults)==null?void 0:k.secondaryResults}},
setRichGridRendererData:function(e){this.richGridRendererData=e},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var e,g=(e=this.data)==null?void 0:e.engagementPanels;if(g==null?0:g.length){e=null;g=_.w(g);for(var c=g.next();!c.done;c=g.next()){c=c.value;var k=void 0;if(((k=c.engagementPanelSectionListRenderer)==null?void 0:k.targetId)==="engagement-panel-structured-description"){e=c;break}}var I,J,q;e=(I=e)==null?void 0:(J=I.engagementPanelSectionListRenderer)==null?void 0:(q=J.content)==null?void 0:q.structuredDescriptionContentRenderer;if(e==null?0:e.items){I=
[];J=_.w(e.items);for(q=J.next();!q.done;q=J.next()){q=q.value;if(!_.G("sd_horizontal_list_show_nav_killswitch")){var L=k=c=g=e=void 0,n=void 0,R=(e=q.horizontalCardListRenderer)==null?void 0:(g=e.header)==null?void 0:(c=g.richListHeaderRenderer)==null?void 0:(k=c.navigationButton)==null?void 0:(L=k.buttonRenderer)==null?void 0:(n=L.command)==null?void 0:n.commandExecutorCommand;R&&R.commands&&(R.commands=R.commands.filter(function(W){return!_.x(W,Jiq)}))}q.expandableVideoDescriptionBodyRenderer||
q.videoDescriptionHeaderRenderer||I.push(q)}return{items:I}}}},
isPlaShelfEnabled_:function(e){if((this.get("adPlacements",e)||[]).length)return!0;e=this.get("playerAds",e)||[];return!(!e.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",e[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var e=this;_.oC(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();var g=this.getScrollTop()>0;this.gestures_&&(g?this.gestures_.detach():this.gestures_.attach());g!==this.showFullerscreenEdu_&&_.G("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=g,_.s1(this).getPlayerPromise().then(function(c){c.updateFullerscreenEduButtonVisibility(e.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.oC(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var e=this;this.commentsReady=!1;_.ft.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.h2(_.ft,function(){e.setComments_()},1E3)},
setComments_:function(){if(!_.G("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Wh("cmi");_.ft.cancelJob(this.setCommentsJobId_);var e=Km0(this.data);if(e&&e.length){e=_.w(e);for(var g=e.next();!g.done;g=e.next())if(g=g.value,this.get("itemSectionRenderer.sectionIdentifier",g)==="comment-item-section"){this.comments=g.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.oC(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.G("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.G("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Wh("cmc")},
doRemoveComments_:function(){this.comments={};_.G("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ft.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ft.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(e,g){var c=_.x(g.endpoint,_.Pm);c&&(!(g=this.get("data.currentVideoEndpoint.watchEndpoint"))||c.videoId!==g.videoId||c.playlistId&&c.playlistId!==g.playlistId||c.index!==void 0&&c.index!==g.index||typeof c.startTimeSeconds!=="number"||(e.stopPropagation(),this.setScrollTop(0),_.s1(this).getPlayerPromise().then(function(k){var I=c.startTimeSeconds;k.seekTo(I);k.wakeUpControls();I<k.getDuration()&&k.playVideo()})))},
updatePlayerStartTime_:function(){var e=iMS();"t"in e&&(e=S1l(e.t),this.player.seekTo(e,!0))},
updateTitleFromWatchNext:function(e){e=Km0(e);var g,c;(e=_.mp(e==null?void 0:(g=e[0])==null?void 0:(c=g.videoPrimaryInfoRenderer)==null?void 0:c.title))&&_.oC(this.hostElement,"yt-update-title",e)},
updateTitle_:function(e){e=this.get("videoDetails.title",e)||"";_.oC(this.hostElement,"yt-update-title",e)},
syncWithRemoteVideo_:function(e,g,c){if(this.active&&this.player){var k=this.player.getVideoData();k.video_id===c&&(c=k.list,_.G("polymer_enable_mdx_queue")&&c&&c.startsWith("RQ")&&(c=void 0),k.video_id!==e||c!=g)&&(e=_.G("kevlar_player_watch_endpoint_navigation")?_.qaK(Lpv(e,g)):_.Fb(e,g),_.oC(this.hostElement,"yt-navigate",{endpoint:e,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var e=document.querySelector("#watch-page-skeleton");if(e){var g=e.querySelector("#primary-info"),c=e.querySelector("#secondary-info"),k=e.querySelector("#related");g&&_.o1(this.hostElement).querySelector("#info-skeleton").appendChild(g);c&&_.o1(this.hostElement).querySelector("#meta-skeleton").appendChild(c);k&&(_.o1(this.hostElement).querySelector("#related-skeleton").appendChild(k),this.watchNextSkeletonEl_=k);_.ev(e)}},
handlePlayerUpdated_:function(){_.s1(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(e,g){if(this.watchNextSkeletonEl_&&typeof g!=="undefined"){var c=this.watchNextSkeletonEl_.children,k=e&&e.indexSplices.length?e.indexSplices[0].index:0;e=Math.min(this.watchNextShownItems.length,c.length);g||(k=0,e=c.length);for(g=k;g<e;g++)c[g].classList.add("hidden")}},
onPlayerFullscreenChange_:function(e){_.G("external_fullscreen")||_.Z5(this.hostElement,"yt-player-fullscreen",[e.fullscreen])},
onFullscreenChange_:function(e){this.fullscreen=e;this.gestures_&&this.gestures_.update(this.fullscreen);var g=_.s1(this);g.getPlayerPromise().then(function(c){c.setFauxFullscreen(!!_.sM())});
this.updateFullBleedElementLocations();e&&(g.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(e,g){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!g},
computeIsDonationShelfCollapsed_:function(e){return e},
computeShouldShowMerchShelf:function(e,g){return g&&!!e},
computeResponseHasComments:function(e){var g,c,k,I,J;return!!(e==null?0:(g=e.contents)==null?0:(c=g.twoColumnWatchNextResults)==null?0:(k=c.results)==null?0:(I=k.results)==null?0:(J=I.contents)==null?0:J.some(function(q){var L;return(q==null?void 0:(L=q.itemSectionRenderer)==null?void 0:L.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(e,g){this.responseHasComments=this.computeResponseHasComments(this.data);return!!e&&!!Object.keys(e).length&&!g},
identity:_.uW,onWindowResized_:function(e){this.windowSize_=e;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.G("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onPlayerPresentingVideoDataChange_:function(e){var g=this;e&&e.type!=="dataloaded"&&e.type!=="dataupdated"||_.s1(this).getPlayerPromise().then(function(c){var k=c.getPlayerState();k!==5&&k!==0&&(c=1/c.getVideoAspectRatio(),g.videoHeightToWidthRatio_!==c&&(g.videoHeightToWidthRatio_=c))})},
schedulePlayerSizeUpdate_:function(e){var g=this,c=_.G("kevlar_watch_while_v2")||_.G("web_watch_pip"),k=function(){if(g.watchMetadata){var I,J;(J=(I=g.watchMetadata).resize)==null||J.call(I)}_.s1(g).getPlayerPromise().then(function(q){if(_.Im("kevlar_set_internal_player_size")){if(!c||!_.Ss().resolve(_.xt).isMiniplayerActive()){var L=g.calculateCurrentPlayerSize_();q.setInternalSize(L.width,L.height)}}else q.setSize(NaN,NaN);_.G("kevlar_watch_while")&&g.updateWatchWhileScrollThreshold_()})};
e?k():_.e$(_.ft,k)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(e){this.set("data.survey",e.detail)},
onYtShowSurveyCommand_:function(e){this.set("data.survey",_.x(e,Qf0).survey)},
onDownloadedVideoDeleted:function(e){var g=this,c,k;return _.r(function(I){if(I.nextAddress==1){if(!g.active||(c=g.playerData)==null||!c.offlineState||g.videoId!==e)return I.return();(k=g.player)==null||k.stopVideo();_.eM().navigatingAwayFromWatchDeletedVideo=!0;_.KO(_.Eiz,g.hostElement);return I.yield(_.eM().navigationFinishPromise,2)}_.eM().navigatingAwayFromWatchDeletedVideo=!1;_.Uh(I)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var e;this.theater?e=_.Pc(.5625*this.windowSize_.width,480,this.windowSize_.height-185):e=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==e&&(this.watchWhileScrollThreshold_=e)}},
isTwoColumnsChanged_:function(e,g){if(e!==!0||g!==void 0){e=!_.G("live_chat_over_engagement_panels");g=_.o1(this.hostElement).querySelector("#chat-container");var c=_.o1(this.hostElement).querySelector("#plj-sidebar"),k=_.o1(this.hostElement).querySelector("#panels"),I=_.o1(this.hostElement).querySelector("#plj-panels"),J=_.o1(this.hostElement).querySelector("#plj-playlist"),q=_.o1(this.hostElement).querySelector("#alerts"),L=_.o1(this.hostElement).querySelector("#playlist"),n=_.o1(this.hostElement).querySelector("#related"),
R=_.o1(this.hostElement).querySelector("#donation-shelf"),W=_.o1(this.hostElement).querySelector("#comments");this.isTwoColumns_?(q=_.o1(this.hostElement).querySelector("#secondary-inner"),q.appendChild(c),c.appendChild(J),J.appendChild(L),c.appendChild(I),e&&q.appendChild(k),_.G("web_watch_theater_chat")||q.appendChild(g),e||q.appendChild(k),q.appendChild(R),q.appendChild(n)):(e&&_.$E(k,q),_.$E(L,q),_.G("web_watch_theater_chat")||_.$E(g,q),e||_.$E(k,q),_.$E(R,q),W&&(I&&_.$E(I,W),_.$E(n,W)));_.G("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.G("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.G("web_watch_theater_chat")){var e=_.o1(this.hostElement).querySelector("#chat-container"),g=this.theater&&!this.fullscreen||_.G("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&g?_.G("web_watch_theater_chat_beside_player")?(g=_.o1(this.hostElement).querySelector("#panels-full-bleed-container"),(e==null?void 0:e.parentElement)!==g&&g.append(e),this.panelsBesidePlayer=!0):_.G("web_watch_theater_fixed_chat")&&
(g=_.o1(this.hostElement).querySelector("#columns"),(e==null?void 0:e.parentElement)!==g&&g.append(e),this.fixedPanels=!0):(_.G("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.G("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),g=_.o1(this.hostElement).querySelector("#playlist"),e&&g?_.YE(e,g):_.mN(new _.E2("Missing element when updating chat location",{"chatContainer defined":!!e,"playlist defined":!!g})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(e,g){return _.G("sw_metadata_vis_toggle_ks")?!0:!!e||!!g},
computeForceDarkPanelTheme:function(e){return _.G("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&e:!1},
safeUpdateStyles:function(e){try{_.Nk(this.hostElement,e)}catch(g){_.mN(g)}},
videoHeightToWidthRatioChanged_:function(e,g){g&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.G("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(e){this.videoHeightToWidthRatio_=1/e},
computeIsVerticalVideo_:function(e){return e>=1},
computeIsFourThreeToSixteenNineVideo_:function(e){return e<=.7501&&e>=.5624},
computeIsExtraWideVideo_:function(e){return e<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.s1(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.s1(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){p57(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(e){var g=_.qk(e)||0;_.wp(e,g+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var e=_.qk("yt-fullerscreen-edu-button-click-count")||0,g=_.qk("yt-fullerscreen-edu-button-shown-count")||0,c=_.MN("external_fullscreen_button_shown_threshold"),k=e>=_.MN("external_fullscreen_button_click_threshold")||g>=c;_.s1(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonSubtleModeState(k)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(e,g){return g},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Ss().resolve(_.fo).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var e=this;this.panelMaxHeightUpdateJob_&&_.ft.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.ft.addLowPriorityJob(function(){e.panelMaxHeightUpdateJob_=0;var g;!e.isTwoColumns_||e.theater||e.fullscreen?g=460:g=e.calculateNormalPlayerSize_().height;var c=g+"px";_.G("live_chat_taller_height")&&!e.theater&&(c="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.G("live_chat_medium_height")&&
!e.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.G("live_chat_scaled_height")&&!e.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 238px)");e.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":g+"px","--ytd-watch-flexy-chat-max-height":c,"--ytd-watch-flexy-structured-description-max-height":g+"px","--ytd-watch-flexy-comments-panel-max-height":g+"px","--ytd-comments-engagement-panel-content-height":g+"px"})})},
onYtShowEngagementPanelScrimAction_:function(e){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",e)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Bm(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(e){var g=_.o1(this.hostElement).querySelector("#engagement-panel-scrim");e?g.addEventListener("tap",_.yg(this,this.onEngagementPanelScrimClick_)):g.removeEventListener("tap",_.yg(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(e){if(this.hostElement.contains(e)&&!this.scrollToAnimation_.isAnimating()){var g=e.offsetTop-24;e=e.offsetTop+e.offsetHeight+24;var c=this.getPageScrollingElement(),k=this.getScrollTop(),I=k+c.clientHeight-56;if(g<k+56)g-=56;else if(e>I)g=e-c.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,g),500)}},
onYtSignalActionScrollToComments:function(){var e=this.hostElement.querySelector("#comments");if(e&&!this.scrollToAnimation_.isAnimating()){e=e.offsetTop-56-24;if(_.G("kevlar_comment_teaser_scroll_to_midpoint")&&(e-=_.kU().height/3,e<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,e),500)}},
onYtEngagementPanelVisibleChanged:function(e,g,c){this.active&&this.trackEngagementPanelVisibility&&!KLq.includes(c)&&(g==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(c),g!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&g!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(c),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(e){return e?"":"watch-active-metadata"},
computeNewMetadataClass:function(e){return e?"watch-active-metadata":""},
computeFullBleedPlayer:function(e,g){return e||g},
computeDefaultLayout:function(e){return!e},
computeDefaultTwoColumnLayout:function(e,g){return!e&&g},
computeWatchWhilePanelsActive:function(e,g){return e||g},
computeNoBorderOnChat:function(e){return _.G("web_watch_theater_chat_no_border")&&e},
computeLiveChatPresentAndExpanded:function(e,g){return e&&!g},
computePanelExpanded:function(e,g,c){return e||g||c},
onChangeMarkersVisibility:function(e){_.s1(this).getPlayerPromise().then(function(g){var c;(c=g.changeMarkerVisibility)==null||c.call(g,_.x(e,RO).isVisible||!1,_.x(e,RO).entityKeys||[],_.x(e,RO).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(e){this.liveChatCollapsed=e.detail;_.Tt().dispatch(Nh0(e.detail))},
provideRenderingData:function(e,g){switch(e){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=g;break;case "PRIMARY_INFO":_.G("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=g);this.videoPrimaryInfoRendererValue=g==null?void 0:g.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.G("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=g);this.videoSecondaryInfoRendererValue=g==null?void 0:g.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
g;break;case "CLARIFICATION":this.clarifyBoxValue=g;break;case "LIVE_CHAT":this.conversationBar=g;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=g;break;case "PLAYLIST":this.externalPlaylistData_=g!=null?g:{};break;case "MERCH_SHELF":this.merchShelfValue=g==null?void 0:g.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=g;break;case "OFFER_MODULE":this.offerModule=g;break;case "LIMITED_STATE":this.limitedStateValue=g;break;case "DONATION_SHELF":this.donation=g;break;
case "ALERTS":this.alertsValue=g;break;case "COMMENTS":this.comments=g;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=g;break;case "ENGAGEMENT_PANELS":this.engagementPanels=g;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=g;break;case "RICH_GRID_RENDERER":this.richGridRendererData=g;break;case "EXPANDABLE_METADATA":this.expandableMetadata=g;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=g}},
toggleCinematicsActive:function(e){this.cinematicsActive=e},
getLearningJourneyEngagementPanels:function(e){return gxg.map(function(g){return e.find(function(c){var k;return(c==null?void 0:(k=c.engagementPanelSectionListRenderer)==null?void 0:k.targetId)===g})}).filter(function(g){return g!==void 0})},
getNonLearningJourneyEngagementPanels:function(e){return e.filter(function(g){var c;return!gxg.includes((g==null?void 0:(c=g.engagementPanelSectionListRenderer)==null?void 0:c.targetId)||"")})}}];var Tz=function(){return _.gk.apply(this,arguments)||this};
_.Y(Tz,_.gk);_.v=Tz.prototype;_.v.activeChanged=function(){if(this.active){var e=_.o1(this.hostElement).querySelector("#header");e&&_.oC(e,"iron-resize");window.addEventListener("scroll",_.yg(this,this.onScroll))}else window.removeEventListener("scroll",_.yg(this,this.onScroll)),_.oC(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.v.guideVisibleChanged=function(){var e=_.o1(this.hostElement).querySelector("#header");e&&_.oC(e,"iron-resize")};
_.v.onScroll=function(){var e=this;_.fO(this,"onScroll",function(){var g=_.o1(e.hostElement).querySelector("#header");g&&g.polymerController&&(g=g.polymerController.getScrollState().progress===1?"standard":"seamed",_.oC(e.hostElement,"yt-request-panel-mode-change",{mode:g}))},10)};
_.v.tabsChanged=function(){if(this.tabs){for(var e=null,g=0,c=this.tabs.length;g<c;++g){var k=this.tabs[g].tabRenderer;if(k&&k.selected){e=g;break}}this.selected=e}};
_.v.onTabsActivate=function(e){_.oC(this.hostElement,"yt-navigate",{endpoint:this.tabs[e.detail.selected].tabRenderer.endpoint})};
Tz.prototype.tabsChanged=Tz.prototype.tabsChanged;Tz.prototype.guideVisibleChanged=Tz.prototype.guideVisibleChanged;Tz.prototype.activeChanged=Tz.prototype.activeChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Tz.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(),_.B("design:type",Array)],Tz.prototype,"tabs",void 0);
_.t([_.u(),_.B("design:type",Object)],Tz.prototype,"selected",void 0);_.t([_.u(),_.B("design:type",Boolean)],Tz.prototype,"active",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Tz.prototype,"disableHeaderFluidWidth",void 0);_.t([_.OY("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tz.prototype,"activeChanged",null);
_.t([_.OY("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tz.prototype,"guideVisibleChanged",null);_.t([_.OY("tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tz.prototype,"tabsChanged",null);_.t([_.co()],Tz);var clv=[_.K.YtRendererBehavior,_.DG.YtdGuideStateAwareBehavior,Tz.prototype];var IzD=function(e){_.Iy.call(this);var g=this;this.JSC$21574_watchApi=e;this.observer=null;var c=this.JSC$21574_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kKS(g)});
this.addOnDisposeCallback(function(){g.JSC$21574_watchApi.unsubscribeByKey(c);g.observer&&(g.observer.disconnect(),g.observer=null)});
kKS(this)};
_.Y(IzD,_.Iy);var kKS=function(e){var g,c,k,I,J;_.r(function(q){if(q.nextAddress==1){e.observer&&(e.observer.disconnect(),e.observer=null);g=e.JSC$21574_watchApi.getWatchNextResponse();if(!g)return q.return();c=_.x(g,GkM);return((k=c)==null?0:k.enableCreatorChatbot)&&c.creatorChannelId?_.G("enable_creator_chatbot_link_out")?q.yield((0,_.Mf)("NSzT5"),6):q.yield((0,_.Mf)("NSzT5"),5):q.jumpTo(0)}if(q.nextAddress!=6)return I=_.qvn,I(c.creatorChannelId),q.jumpTo(0);J=_.wwB;J(c.creatorChannelId);_.Uh(q)})};var l$=function(e){_.Iy.call(this);this.JSC$21578_watchApi=e;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;Jlx(this)};
_.Y(l$,_.Iy);var Jlx=function(e){_.r(function(g){if(g.nextAddress==1)return g.yield(vxS(e),2);wso(e);_.Uh(g)})},vxS=function(e){var g,c,k,I,J,q,L,n,R;
return _.r(function(W){if(W.nextAddress==1)return W.yield(e.JSC$21578_watchApi.playerApi,2);g=W.yieldResult;e.JSC$21578_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){q3q(e)});
e.JSC$21578_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){e.isShelfVisible?LIx(e):Ay(e)});
c=_.Tt().subscribe(function(){e.isTheaterMode=_.nx(_.Tt().getState());e.isTheaterMode?Ay(e):rlX(e)});
k=e.JSC$21578_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){wso(e)});
I=function(b){e.onCueRangeEnter(b)};
g.addEventListener("onCueRangeEnter",I);J=function(b){e.onCueRangeExit(b)};
g.addEventListener("onCueRangeExit",J);q=function(){e.isSeeking=!0};
g.addEventListener("SEEK_TO",q);L=function(){e.onSeekComplete()};
g.addEventListener("SEEK_COMPLETE",L);n=function(){e.onAdStart()};
g.addEventListener("onAdStart",n);R=function(){e.onAdComplete()};
g.addEventListener("onAdComplete",R);e.addOnDisposeCallback(function(){c();e.JSC$21578_watchApi.unsubscribeByKey(k);g.removeEventListener("onCueRangeEnter",I);g.removeEventListener("onCueRangeExit",J);g.removeEventListener("SEEK_TO",q);g.removeEventListener("SEEK_COMPLETE",L);g.removeEventListener("onAdStart",n);g.removeEventListener("onAdComplete",R)});
_.Uh(W)})},azx=function(e){var g,c,k,I,J,q,L,n,R;
return(J=(g=e.contents)==null?void 0:(c=g.twoColumnWatchNextResults)==null?void 0:(k=c.results)==null?void 0:(I=k.results)==null?void 0:I.contents)==null?void 0:(q=J.find(function(W){var b,h,X;return(b=W.itemSectionRenderer)==null?void 0:(h=b.contents)==null?void 0:(X=h[0])==null?void 0:X.shoppingTimelyShelfViewModel}))==null?void 0:(L=q.itemSectionRenderer)==null?void 0:(n=L.contents)==null?void 0:(R=n[0])==null?void 0:R.shoppingTimelyShelfViewModel},wso=function(e){var g;
_.r(function(c){if(c.nextAddress==1)return(g=e.JSC$21578_watchApi.getWatchNextResponse())?c.yield(q3q(e),2):c.return();e.shoppingTimelyShelfViewModel=azx(g);nxM(e);RIl(e);_.Uh(c)})},nxM=function(e){var g,c=(g=e.shoppingTimelyShelfViewModel)==null?void 0:g.offerIdToVariants;
c&&(g=c.filter(function(k){return k.key&&k.value}).map(function(k){return[k.key,
k.value]}),e.variantsMap=new Map(g))},RIl=function(e){var g,c,k,I,J,q;
_.r(function(L){if(L.nextAddress==1)return(c=(g=e.shoppingTimelyShelfViewModel)==null?void 0:g.cueRanges)?L.yield(e.JSC$21578_watchApi.playerApi,2):L.return();k=L.yieldResult;e.cueRanges=c;I=_.w(c);for(J=I.next();!J.done;J=I.next())q=J.value,q.startTime!==void 0&&q.endTime!==void 0&&q.id!==void 0&&k.addCueRange("shopping_timely_shelf"+q.id,Exo(q.startTime),Exo(q.endTime));_.Uh(L)})},Exo=function(e){return Number(e.seconds||0)+(e.nanos||0)/1E9};
l$.prototype.onCueRangeEnter=function(e){if(e.startsWith("shopping_timely_shelf")&&(this.activeCueId=e,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){e=e.substring(21);var g,c,k=(g=this.variantsMap)==null?void 0:(c=g.get(e))==null?void 0:c.shelf;k&&(this.JSC$21578_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",k),LIx(this))}};
l$.prototype.onCueRangeExit=function(e){e.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||Ay(this))};
l$.prototype.onSeekComplete=function(){this.isSeeking=!1;rlX(this)};
var LIx=function(e){e.shoppingTimelyShelfViewModel&&(e.isShelfVisible=!0,_.dF.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},Ay=function(e){e.shoppingTimelyShelfViewModel&&e.isShelfVisible&&(e.isShelfVisible=!1,_.dF.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},q3q=function(e){var g,c,k,I,J;
return _.r(function(q){if(q.nextAddress==1)return q.yield(e.JSC$21578_watchApi.playerApi,2);g=q.yieldResult;if(e.cueRanges)for(c=_.w(e.cueRanges),k=c.next();!k.done;k=c.next())I=k.value,I.id&&(J="shopping_timely_shelf"+I.id,g.removeCueRange(J));e.JSC$21578_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});Ay(e);e.shoppingTimelyShelfViewModel=void 0;e.cueRanges=void 0;e.variantsMap=void 0;e.isSeeking=!1;e.activeCueId=void 0;_.Uh(q)})};
l$.prototype.onAdStart=function(){this.isAdPlaying=!0;Ay(this)};
l$.prototype.onAdComplete=function(){this.isAdPlaying=!1;rlX(this)};
var rlX=function(e){if(e.activeCueId)e.onCueRangeEnter(e.activeCueId);else Ay(e)};var GKg=function(e){_.Iy.call(this);var g=this;this.JSC$21585_watchApi=e;e=_.kq(_.Tt(),_.YdC,function(){WIl(g)});
this.addOnDisposeCallback(e);e=_.kq(_.Tt(),IYo,function(){WIl(g)});
this.addOnDisposeCallback(e);bko(this);hIS(this);XsM()};
_.Y(GKg,_.Iy);var bko=function(e){var g=function(k){_.Tt().dispatch(BhQ(k.matches))},c=window.matchMedia("(max-width: "+(999+V$())+"px)");
c.addListener(g);e.addOnDisposeCallback(function(){c.removeListener(g)});
g(c)},hIS=function(e){e.JSC$21585_watchApi.registerActionHandler("yt-window-resized",function(){XsM()});
e.addOnDisposeCallback(function(){e.JSC$21585_watchApi.unregisterActionHandler("yt-window-resized")})},XsM=function(){var e=_.CU();
_.Tt().dispatch(_.Hh({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:e.width,height:e.height}}}))},WIl=function(e){var g;
_.r(function(c){if(c.nextAddress==1)return c.yield(e.JSC$21585_watchApi.playerApi,2);g=c.yieldResult;g.setSize(NaN,NaN);_.Uh(c)})};var xAo=function(e){_.Iy.call(this);var g=_.Ss().resolve(_.JG);Ijo(g,e.getElement("PLAYER_CONTAINER"),e.getElement("BELOW_THE_PLAYER"),e.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var c=e.getElement("PLAYER_CONTAINER"),k=e.getElement("BELOW_THE_PLAYER"),I=e.getElement("SECONDARY");g.isLockupToWatchTransitionEnabled&&(c&&_.XJ(g.viewTransitionCoordinator,c),k&&_.XJ(g.viewTransitionCoordinator,k),I&&_.XJ(g.viewTransitionCoordinator,I))})};
_.Y(xAo,_.Iy);var sp=function(e){PK.call(this);var g=this;this.rootElement=e;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return g.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(c){g.initOrDisposeActiveModules(c)}));
this.onAttached()};
_.Y(sp,PK);_.v=sp.prototype;_.v.getRoot=function(){return this.rootElement};
_.v.getElement=function(e){return this.rootElement.getElement(e)};
_.v.setPlayerResponse=function(e){this.playerResponse=e;this.publish("PLAYER_RESPONSE_UPDATED",e)};
_.v.getPlayerResponse=function(){return this.playerResponse};
_.v.setWatchNextResponse=function(e){this.watchNextResponse===e?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=e,this.publish("WATCH_NEXT_RESPONSE_UPDATED",e))};
_.v.getWatchNextResponse=function(){return this.watchNextResponse};
_.v.registerActionHandler=function(e,g){var c=this;if(_.G("web_watch_controller_reg_multiple_handlers_killswitch")){var k={};_.zm(_.dF.getInstance(),(k[e]=g,k),this.getRoot())}else this.actionHandlers.has(e)||(this.actionHandlers.set(e,[]),k={},_.zm(_.dF.getInstance(),(k[e]=function(){var I=_.Mb.apply(0,arguments);return(c.actionHandlers.get(e)||[]).map(function(J){return J.apply(null,_.KY(I))})},k),this.getRoot())),this.actionHandlers.get(e).push(g)};
_.v.unregisterActionHandler=function(e){if(_.G("web_watch_controller_reg_multiple_handlers_killswitch")){var g={};_.Hy(_.dF.getInstance(),(g[e]=!0,g),this.getRoot())}else(g=this.actionHandlers.get(e))?(g.pop(),g.length===0&&(g={},_.Hy(_.dF.getInstance(),(g[e]=!0,g),this.getRoot()),this.actionHandlers.delete(e))):_.mN(new _.E2("Attempted to unregister an action handler which is not registered.",e))};
_.v.addPageDisposeJob=function(e){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.TVg(this.rootElement.pageDisposeJobs,e)};
_.v.removePageDisposeJob=function(e){this.rootElement.pageDisposeJobs&&_.UC(this.rootElement.pageDisposeJobs,e)};
_.v.dispatchEvent=function(e,g){_.oC(this.rootElement,e,g)};
_.v.provideRenderingData=function(e,g){this.rootElement.provideRenderingData(e,g)};
_.v.scrollWatchTo=function(e,g){var c;(c=this.watchScrollManager)==null||c.scrollWatchTo(e,g)};
_.v.focusOnPlayer=function(){var e=this.getElement("PLAYER");_.Va(e,function(){if(e&&e.firstElementChild){var g=e.querySelector(".html5-video-player");g&&(_.sc(_.Ss().resolve(_.et)),g.focus())}else _.mN(Error("Vl"))})};
_.v.subscribeToActiveChanged=function(e,g){g=g===void 0?!0:g;var c=_.kq(_.Tt(),cwq,function(k){e(k)});
g&&e(cwq(_.Tt().getState()));return c};
_.v.isActive=function(){return cwq(_.Tt().getState())};
_.v.onAttached=function(){var e=_.G("external_fullscreen");_.G("use_unified_flag_accessor")&&(e=_.Ss().resolve(_.Coo).retriever.getFlag(_.Htu));(e||_.dH("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var DA0=function(e){return e.getRoot().is==="ytd-watch-flexy"||e.getRoot().is==="ytd-watch-grid"},FI=function(e){return e.getRoot().is==="ytd-watch-fixie"};
sp.prototype.initPersistentModules=function(){if(FI(this)||DA0(this)&&_.G("kevlar_watch_flexy_theater_manager")){var e=new N8q(this);_.yh(this,e)}e=new qtD(this);_.yh(this,e);e=new hy(this);_.yh(this,e);e=new gig(this);_.yh(this,e);e=new mL(this);_.yh(this,e);e=new XI(this);_.yh(this,e);if(FI(this)||DA0(this)&&_.G("kevlar_watch_flexy_playlist_manager"))e=new ZDl(this),_.yh(this,e);_.G("web_thumbnail_to_watch_transition")&&(e=new xAo(this),_.yh(this,e))};
sp.prototype.initOrDisposeActiveModules=function(e){e?(this.watchScrollManager=new pe(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new fq7(this)),_.G("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new l$(this)),this.activeModules.push(new VCX(this)),FI(this)&&this.activeModules.push(new GKg(this)),this.activeModules.push(new yY0(this)),this.activeModules.push(new bDx(this)),(FI(this)||_.G("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new yWl(this)),
this.activeModules.push(new lqg(this)),(FI(this)||_.G("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new ODS(this)),(FI(this)||_.G("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new qpx(this)),_.Im("kevlar_watch_cinematics")&&(this.watchCinematicManager=new z3g(this),this.activeModules.push(this.watchCinematicManager)),_.G("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new uPj(this)),_.G("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new JYD(this)),
e=_.G("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.G("kevlar_watch_flexy_comments_manager")&&!e&&this.activeModules.push(new yyS(this)),_.G("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new aDz(this)),this.activeModules.push(new e3j(this)),this.activeModules.push(new iDO(this)),_.G("web_enable_timely_actions")&&this.activeModules.push(new ITg(this)),_.G("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new ipj(this)),_.G("web_watch_enable_multiview_manager")&&
this.activeModules.push(new h7X(this)),_.G("web_fullscreen_components")&&this.activeModules.push(new e7D(this)),_.G("web_player_rtr_ctrls")&&this.activeModules.push(new m37(this)),(_.G("enable_creator_chatbot")||_.G("enable_creator_chatbot_link_out"))&&this.activeModules.push(new IzD(this))):(_.ue(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
sp.prototype.disposeInternal=function(){PK.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Bd.Object.defineProperties(sp.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.sL(_.H(function(e){var g=e.data;e=_.w(_.Wa(!1,void 0,"VotqNe"));var c=e.next().value,k=e.next().value;_.lo(function(){_.dF.getInstance().triggerAction("yt-request-timely-shelf-state")});
var I=_.xF(function(){var R,W,b=(R=_.x(g().rendererContext,_.cT))==null?void 0:(W=R.loggingDirectives)==null?void 0:W.trackingParams;if(b)return _.Jb(b)},void 0,"AvMXxb");
_.zm(_.dF.getInstance(),{"yt-hide-shopping-timely-shelf":function(){k(!1);var R=_.EM(),W=I();R&&W&&_.Ph(R,[W])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){k(!0);var R=_.EM(),W=I();R&&W&&_.iB(R,[W])})}});
var J=function(){var R;return(R=g().image)==null?void 0:R.image},q=function(){var R,W;
return!!((R=J())==null?0:(W=R.sources)==null?0:W.some(function(b){var h;return!!(b==null?0:(h=b.clientResource)==null?0:h.imageName)}))},L=function(){var R;
return((R=g().image)==null?void 0:R.height)||40},n=function(){var R;
return(R=g().image)==null?void 0:R.backgroundColor};
e={};return _.a("yt-shopping-timely-shelf-content-view-model",{el:_.mb(_.EQ(function(){return g().rendererContext})),
class:_.o6("ytShoppingTimelyShelfContentViewModelHost",(e.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(g().image||g().avatar||g().line1)&&c()},e)),
style:_.N2({"--shopping-timely-shelf-content-padding-top":function(){var R;return Ouj((R=g().padding)==null?void 0:R.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var R;return Ouj((R=g().padding)==null?void 0:R.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var R;return Ouj((R=g().padding)==null?void 0:R.start)},
"--shopping-timely-shelf-content-padding-end":function(){var R;return Ouj((R=g().padding)==null?void 0:R.end)},
"--yt-shopping-timely-shelf-background-color":function(){return g().backgroundColor!==void 0?_.EY(g().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var R,W;return((W=(R=g().image)==null?void 0:R.cornerRadius)!=null?W:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return n()!==void 0?_.EY(n()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var R;return(((R=g().image)==null?void 0:R.width)||40)+"px"}})},_.a(_.E,{cond:J,
then:function(R){var W={};return _.a(_.pv,{preserveHeight:!0,preserveWidth:!0,height:L,data:R,alt:"",className:_.o6("ytShoppingTimelyShelfContentViewModelImage",(W.ytShoppingTimelyShelfContentViewModelIcon=q,W))})}}),_.a(_.eS,{data:function(){return g().avatar}},{avatarViewModel:_.E8}),_.a("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.a(_.eS,{data:function(){return g().line1}},{shoppingContentLineViewModel:function(R){return _.a(_.Ax,{data:R.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.a(_.eS,{data:function(){return g().line2}},{shoppingContentLineViewModel:function(R){return _.a(_.Ax,{data:R.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.a("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.a(_.eS,{data:function(){var R;
return(R=g().button)!=null?R:[]}},{buttonViewModel:function(R){var W=R.data;
return _.a(_.oD,{data:W,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(b){W().onTap&&b.stopPropagation()}})}})))},"sk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.jx}});var $Ag={};
$Ag.YtdWatchBehavior=[_.K.YtRendererBehavior,_.iU.YtPlayerListenerBehavior,_.Fa.YtRendererstamperBehavior,_.Nr.YtActionHandlerBehavior,ej.YtPageBehavior,_.B$.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.dH("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.G("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 _.dH("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.G("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.MN("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.MN("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.G("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.G("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.G("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.G("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("swatcheroo_enable_ghost_cards")||_.G("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("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 _.G("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.G("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 _.G("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.G("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(e,g,c){return e&&(g||!c)},
computeShowGhostRelated_:function(e,g,c){return e&&(g||!c)},
monitorScroll:!0,configureRendererStamper:function(){var e={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:n9(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:n9(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},
microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.G("swa_prov_panels_ks")?e.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(e.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},e.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return e},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged","yt-downloaded-video-deleted":"onDownloadedVideoDeleted",
"yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var e=this;this.watchController=void 0;this.pageDisposeJobs=[function(){e.showMetadataPlaceholder_()},
function(){_.G("web_watch_dont_clear_comments")||e.clearComments_()},
function(){e.clearPlayerAds_()},
function(){e.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.G("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.G("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new Dvo(function(){return _.s1(e)},this.hostElement);
this.pageDisposeJobs.push(function(){e.youThereManager_.reset()});
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.aY;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.G("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));_.G("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.yg(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(e){e&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:e}),e.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(e){_.G("kevlar_watch_flexy_theater_manager")&&(this.theater=e,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(e){!_.G("kevlar_watch_while_v2")&&!_.G("web_watch_pip")||e||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(e){this.active!==void 0&&(this.fullscreen=e,_.G("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(e){this.active!==void 0&&(_.oC(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.G("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(e>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(e){b_x("watch",["pbs","pbp","pbu"]);this.updatePageData_(e)},
updatePageData_:function(e){var g=this;if(e)if(this.data===e){this.onPageLoadWithSameData_();var c;(c=this.watchController)==null||c.setWatchNextResponse(this.data)}else this.data=e;this.playlist&&_.nA({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Wh("nw");this.loading=!1;_.h2(_.ft,function(){mWv();var k,I=((k=g.player)==null?void 0:k.getVideoData().cpn)||"";sCQ(function(J,q){u7g(J,q,I)})})},
onPageLoadWithSameData_:function(){_.G("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 e=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!e);this.set("loadingData.playlistLoading",e&&e!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),e=this.watchNextSkeletonEl_.firstElementChild;e;)e.classList.remove("hidden"),e=e.nextElementSibling;if(_.G("kevlar_watch_frame0_loading_state")){var g,c,k;e=(g=this.loadingData)==null?void 0:(c=g.endpoint)==null?void 0:(k=c.watchEndpoint)==null?void 0:k.videoId;var I;e&&(I="https://i.ytimg.com/vi/"+e+"/frame0.jpg");_.o1(this.hostElement).querySelector("#player").style.backgroundImage=I?"url("+I+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var e=_.o1(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&e&&(e.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var g,c;(c=(g=this.watchMetadata).updateSentimentBarWidth)==
null||c.call(g);var k,I;(I=(k=this.watchMetadata).resize)==null||I.call(k)}_.G("kevlar_watch_frame0_loading_state")&&(_.o1(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(e){var g=_.o1(this.hostElement).querySelector(e);g?_.uc(g,!1):_.mN(new _.E2("Overscroll monitor not found for component: ",e))},
removeSplitScrollMouseTrap:function(e){var g=_.o1(this.hostElement).querySelector(e);g?_.dE(g):_.mN(new _.E2("Disposal component for  overscroll monitoring not found: ",e))},
onLoadingChanged_:function(e){e?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.G("web_thumbnail_to_watch_transition")&&!_.xzj||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.G("web_thumbnail_to_watch_transition")&&!_.xzj||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(e){var g=this;e?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ft.addLowPriorityJob(function(){g.onWindowResized_(_.CU(!0))})},
updateTheaterModeState_:function(e){if(!_.G("kevlar_watch_flexy_theater_manager")){e=e||this.fullWindowMode_;if(this.theater!==void 0||e)this.theater=e;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();e&&bUz()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var e=this.fullBleedPlayer?_.o1(this.hostElement).querySelector("#player-full-bleed-container"):_.o1(this.hostElement).querySelector("#player-container-inner");var g=this.getPlayerContainer(),c=_.G("kevlar_watch_while_v2")||_.G("web_watch_pip");g.parentElement!==e&&(c&&_.Ss().resolve(_.xt).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.s1(this).appendTo(e,g))},
updateErrorScreenLocation:function(){var e=_.o1(this.hostElement).querySelector("#error-screen"),g=this.fullBleedPlayer?_.o1(this.hostElement).querySelector("#player-full-bleed-container"):_.o1(this.hostElement).querySelector("#player");e.parentElement!==g&&g.appendChild(e)},
deactivateMiniplayerAndResetPlayer:function(){var e=this;return _.r(function(g){if(g.nextAddress==1)return g.yield(_.Ss().resolve(_.xt).deactivate(),2);e.updatePlayerLocation();_.Uh(g)})},
updateCinematicsLocation:function(){var e=this.getElement("CINEMATICS");if(e){var g=this.getCinematicsLocationContainer();e.parentElement!==g&&g.appendChild(e)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.o1(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.o1(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(e,g,c){var k=document.documentElement.hasAttribute("dark"),I=!k&&this.cinematicLightTheme;return c||e&&k||g&&k||(g||e)&&I},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var e=this,g;(g=this.watchController)==null||g.setWatchNextResponse(this.data);_.G("kevlar_watch_flexy_comments_manager")||this.initComments_();_.G("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Ss().resolve(_.fo).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.G("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.ft.addLowPriorityJob(function(){_.V1(e.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.G("web_watch_start_chat_in_theater_mode")){var c,k,I;if((c=this.data)==null?0:(k=c.contents)==null?0:(I=k.twoColumnWatchNextResults)==null?0:I.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var J,q;((J=this.data)==null?0:(q=J.contents)==null?0:q.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(e){var g;(g=this.watchController)==null||g.setPlayerResponse(this.playerData);e&&e.playabilityStatus&&(g=this.isVideoPlayable_(e.playabilityStatus,this.getPlayerOverlays_(this.data)),e=M$q(e.playabilityStatus),g&&!e||_.Va(this,function(){_.Wh("pbu")}));
this.setPlayerAds_();_.V1(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(e,g){if((_.G("kevlar_watch_while_v2")||_.G("web_watch_pip"))&&this.playerData&&g)return this.playerData.videoDetails},
watchPageActiveChanged_:function(e){_.Tt().dispatch(tRD(this.active));e?this.activate_():this.deactivate_()},
attached:function(){var e=this;this.watchController=new sp(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);_.G("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var g=_.s1(this);_.G("kevlar_disable_prepare_player")||
g.preparePlayer();_.G("kevlar_watch_flexy_playlist_manager")||_.Ss().resolve(_.fo).setPlayer(g);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();g={"--ytd-watch-flexy-scrollbar-width":V$()+"px"};this.is==="ytd-watch-grid"&&(_.Tt().dispatch(_.Hh({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),g["--ytd-watch-flexy-sidebar-width"]=A4S+"px",g["--ytd-watch-grid-horizontal-page-margins"]=BK+"px",g["--ytd-watch-grid-columns-top-margins"]=uE7+"px",
g["--ytd-watch-grid-min-player-height-medium"]="360px");!_.MN("kv_pl_mx_sz_ks")&&_.MN("kevlar_watch_max_player_width")&&(g["--ytd-watch-flexy-max-player-width-wide-screen"]=FsQ+"px");_.MN("kevlar_watch_flexy_metadata_height")&&(g["--ytd-watch-flexy-space-below-player"]=dHv+"px");this.safeUpdateStyles(g);_.G("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new PM(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return e.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.o1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var e=V$(),g=tQ+e,c=g;this.fixedPanels&&(g+=A4S);var k=657+e;e=1327+e;_.o1(this.hostElement).querySelector("#two-column-query").query="(min-width: "+g+"px)";_.o1(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(k+"px), (min-height: 630px) and (min-width: ")+(g+"px) and (max-width: ")+(e+"px)");_.o1(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(e+"px)");_.o1(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+c+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var e=this.squeezeback&&!_.G("web_watch_squeezeback_player_size_killswitch");return this.theater||_.G("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||e||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.T6(NaN,NaN):zND(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return zND(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Fm(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var e=this;this.onWindowResized_(_.CU());_.G("browse_skeleton_removal_on_watch_killswitch")||_.dH("IS_SHELL_LOAD")&&jqq();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var g=_.s1(this);g.addEventListener("yt-player-updated",_.yg(this,this.onPlayerUpdated_));g.getPlayerPromise().then(function(c){e.playerApiReady_(c)});
_.G("kevlar_watch_flexy_playlist_manager")||(g=_.Ss().resolve(_.fo),_.G("kevlar_watch_observe_playlist_navigations_killswitch")&&g.addEventListener("yt-navigate",_.yg(this,this.onYtNavigate_)),g.setPlaylistComponent(_.o1(this.hostElement).querySelector("#playlist")),g.addEventListener("yt-playlist-data-updated",_.yg(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ft.addLowPriorityJob(function(){_.oC(e.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.s1(this).removeEventListener("yt-player-updated",_.yg(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.G("kevlar_watch_flexy_playlist_manager")){var e=_.Ss().resolve(_.fo);_.G("kevlar_watch_observe_playlist_navigations_killswitch")&&e.removeEventListener("yt-navigate",_.yg(this,this.onYtNavigate_));
e.cancelVideoSkip();e.removeEventListener("yt-playlist-data-updated",_.yg(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();_.oC(this.hostElement,"yt-autonav-pause-player",!1);e=_.sM();_.G("kevlar_exit_fullscreen_leaving_watch")&&e&&_.F7(e)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(e){this.player&&this.player.updateVideoData({rvs:e.rvs})},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(e){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e)},
onRetrieveLocation_:function(e,g){g.hasComments?g.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):g.locationRetrieved("/related_ajax",void 0);e.stopPropagation()},
onSubscriptionChanged_:function(e,g){this.player&&(g?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.o1(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.o1(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(e){this.player=e;e=e.getPlayerState();_.Tt().dispatch(_.h$(e));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();(_.G("kevlar_unified_player")||_.G("kevlar_player_new_bootstrap_adoption"))&&_.Pj()},
setTheaterModeRequested:function(e,g){g=g===void 0?!0:g;_.sM()&&_.G("external_fullscreen")&&_.F7(document.documentElement);this.theaterRequested_=e;g&&_.r1("wide",e?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Z5(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.oC(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(e){_.pB(e,typeof this.player),this.player&&_.pB(e,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var e;((e=this.player)==null?0:e.isFullscreen())?this.player.toggleFullscreen():_.Z5(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(e,g){return this.loading?g:!!Object.keys(e).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(e){if(e){e=_.w(e);for(var g=e.next();!g.done;g=e.next())g=g.value,g.youThereRenderer&&flv(this.youThereManager_,g.youThereRenderer)}},
setPlaylistData_:function(e){return e||{}},
userEngagementConfigDataChanged_:function(e){if(e)if(e.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var g=this.youThereManager_;_.S6()<e.lowEngagementThresholdMs||mvv(g,!0)}else e.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Z5(this.hostElement,"yt-autonav-pause-user-engagement",[e])},
isPlayerUnavailable_:function(e,g,c){return!!e&&!this.isVideoPlayable_(e,c)&&!g},
getPlayerOverlays_:function(e){return(e==null?void 0:e.playerOverlays)||null},
isVideoPlayable_:function(e,g){if(!e)return!1;var c=e.status==="OK"||e.status==="LIVE_STREAM_OFFLINE",k=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",e)||this.get("errorScreen.ypcTrailerRenderer",e);e=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",e);var I;g=g==null?void 0:(I=g.playerOverlayRenderer)==null?void 0:I.gatedActionsOverlayRenderer;return!!c||!!k||!!e||!!g},
shouldProceedToNextVideo_:function(e,g,c){var k=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",g),I=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];I=_.G("web_no_skip_video_on_verification_checks")?(e==null?void 0:e.status)&&I.includes(e.status):e&&e.status==="AGE_CHECK_REQUIRED";var J=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",e);J==void 0&&(J=!0);!c||this.isVideoPlayable_(e,this.getPlayerOverlays_(g))||
k||I||!J||_.Ss().resolve(_.fo).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();Mt0()},
onPlayerFeedbackStartRequest_:function(e){_.Z5(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:e}])},
onPlayerFeedbackArticleRequest_:function(e){_.Z5(this.hostElement,"yt-help-dialog-requested",[e])},
onPlayerYpcContentRequest_:function(){var e,g,c,k,I,J,q,L,n=((e=this.data)==null?NaN:(g=e.contents)==null?NaN:(c=g.twoColumnWatchNextResults)==null?NaN:(k=c.secondaryResults)==null?NaN:(I=k.secondaryResults)==null?NaN:(J=I.offerModule)==null?NaN:(q=J.tvfilmOfferModuleRenderer)==null?NaN:(L=q.actionButtons)==null?NaN:L.length)-1;e=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];g=_.w(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(c=g.next();!c.done;c=g.next())for(c=c.value,k=_.w(e),I=k.next();!I.done;I=k.next())if(I="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+c+I.value,I=this.get(I+"navigationEndpoint",this.data)||this.get(I+"serviceEndpoint",this.data)||this.get(I+"command",this.data)){_.KO(I,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(e){_.oC(this.hostElement,"yt-autonav-pause-player",e)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(e){e()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(e){switch(e){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(e){switch(e){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.oC(this.hostElement,"yt-autonav-pause-player-ended")}_.Tt().dispatch(_.h$(e))},
onPlayerSubscribe_:function(e){_.Z5(this.hostElement,"yt-player-subscribe",[e])},
onPlayerUnsubscribe_:function(e){_.Z5(this.hostElement,"yt-player-unsubscribe",[e])},
onPlayerAdYtShowToast_:function(e){_.Z5(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:e.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(e){if(e)return e},
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(e){return!_.Im("web_watch_move_summary_to_sd")&&!!e},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.G("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var e,g,c,k;this.watchNextSecondaryResults=(e=this.data)==null?void 0:(g=e.contents)==null?void 0:(c=g.twoColumnWatchNextResults)==null?void 0:(k=c.secondaryResults)==null?void 0:k.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var e,g=(e=this.data)==null?void 0:e.engagementPanels;if(g==null?0:g.length){e=null;g=_.w(g);for(var c=g.next();!c.done;c=g.next()){c=c.value;var k=void 0;if(((k=c.engagementPanelSectionListRenderer)==null?void 0:k.targetId)==="engagement-panel-structured-description"){e=c;break}}var I,J,q;e=(I=e)==null?void 0:(J=I.engagementPanelSectionListRenderer)==null?void 0:(q=J.content)==null?void 0:q.structuredDescriptionContentRenderer;if(e==null?0:e.items){I=
[];J=_.w(e.items);for(q=J.next();!q.done;q=J.next()){q=q.value;if(!_.G("sd_horizontal_list_show_nav_killswitch")){var L=k=c=g=e=void 0,n=void 0,R=(e=q.horizontalCardListRenderer)==null?void 0:(g=e.header)==null?void 0:(c=g.richListHeaderRenderer)==null?void 0:(k=c.navigationButton)==null?void 0:(L=k.buttonRenderer)==null?void 0:(n=L.command)==null?void 0:n.commandExecutorCommand;R&&R.commands&&(R.commands=R.commands.filter(function(W){return!_.x(W,Jiq)}))}(!q.expandableVideoDescriptionBodyRenderer&&
!q.videoDescriptionHeaderRenderer||_.G("web_delhi_colorful_sd"))&&I.push(q)}return{items:I}}}},
isPlaShelfEnabled_:function(e){if((this.get("adPlacements",e)||[]).length)return!0;e=this.get("playerAds",e)||[];return!(!e.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",e[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var e=this;this.commentsReady=!1;_.ft.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.h2(_.ft,function(){e.setComments_()},1E3)},
setComments_:function(){if(!_.G("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Wh("cmi");_.ft.cancelJob(this.setCommentsJobId_);var e=CnM(this.data);if(e&&e.length){e=_.w(e);for(var g=e.next();!g.done;g=e.next())if(g=g.value,this.get("itemSectionRenderer.sectionIdentifier",g)==="comment-item-section"){this.comments=g.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.oC(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.G("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.G("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Wh("cmc")},
doRemoveComments_:function(){this.comments={};_.G("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ft.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ft.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(e,g){var c=_.x(g.endpoint,_.Pm);c&&(!(g=this.get("data.currentVideoEndpoint.watchEndpoint"))||c.videoId!==g.videoId||c.playlistId&&c.playlistId!==g.playlistId||c.index!==void 0&&c.index!==g.index||typeof c.startTimeSeconds!=="number"||(e.stopPropagation(),this.setScrollTop(0),_.s1(this).getPlayerPromise().then(function(k){var I=c.startTimeSeconds;k.seekTo(I);k.wakeUpControls();I<k.getDuration()&&k.playVideo()})))},
updatePlayerStartTime_:function(){var e=iMS();"t"in e&&(e=S1l(e.t),this.player.seekTo(e,!0))},
updateTitleFromWatchNext:function(e){e=CnM(e);var g,c;(e=_.mp(e==null?void 0:(g=e[0])==null?void 0:(c=g.videoPrimaryInfoRenderer)==null?void 0:c.title))&&_.oC(this.hostElement,"yt-update-title",e)},
updateTitle_:function(e){e=this.get("videoDetails.title",e)||"";_.oC(this.hostElement,"yt-update-title",e)},
syncWithRemoteVideo_:function(e,g,c){if(this.active&&this.player){var k=this.player.getVideoData();k.video_id===c&&(c=k.list,_.G("polymer_enable_mdx_queue")&&c&&c.startsWith("RQ")&&(c=void 0),k.video_id!==e||c!=g)&&(e=_.G("kevlar_player_watch_endpoint_navigation")?_.qaK(Lpv(e,g)):_.Fb(e,g),_.oC(this.hostElement,"yt-navigate",{endpoint:e,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var e=document.querySelector("#watch-page-skeleton");if(e){var g=e.querySelector("#primary-info"),c=e.querySelector("#secondary-info"),k=e.querySelector("#related");g&&_.o1(this.hostElement).querySelector("#info-skeleton").appendChild(g);c&&_.o1(this.hostElement).querySelector("#meta-skeleton").appendChild(c);k&&(_.o1(this.hostElement).querySelector("#related-skeleton").appendChild(k),this.watchNextSkeletonEl_=k);_.ev(e)}},
handlePlayerUpdated_:function(){_.s1(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(e,g){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof g!=="undefined"){var c=this.watchNextSkeletonEl_.children,k=e&&e.indexSplices.length?e.indexSplices[0].index:0;e=Math.min(this.watchNextShownItems.length,c.length);g||(k=0,e=c.length);if(!this.ghostCardsEnabled)for(g=k;g<e;g++)c[g].classList.add("hidden")}},
onPlayerFullscreenChange_:function(e){_.G("external_fullscreen")||_.Z5(this.hostElement,"yt-player-fullscreen",[e.fullscreen])},
onFullscreenChange_:function(e){this.fullscreen=e;this.gestures_&&this.gestures_.update(this.fullscreen);var g=_.s1(this);g.getPlayerPromise().then(function(c){c.setFauxFullscreen(!!_.sM())});
this.updateFullBleedElementLocations();e&&g.focusOnPlayer()},
computeShouldStampChat_:function(e,g){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!g},
computeIsDonationShelfCollapsed_:function(e){return e},
computeShouldShowMerchShelf:function(e,g){return g&&!!e},
computeResponseHasComments:function(e){var g,c,k,I,J;return!!(e==null?0:(g=e.contents)==null?0:(c=g.twoColumnWatchNextResults)==null?0:(k=c.results)==null?0:(I=k.results)==null?0:(J=I.contents)==null?0:J.some(function(q){var L;return(q==null?void 0:(L=q.itemSectionRenderer)==null?void 0:L.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(e,g,c,k){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&k?!1:!!e&&!!Object.keys(e).length&&!g},
identity:_.uW,onWindowResized_:function(e){this.windowSize_=e;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())},
onPlayerPresentingVideoDataChange_:function(e){var g=this;e&&e.type!=="dataloaded"&&e.type!=="dataupdated"||_.s1(this).getPlayerPromise().then(function(c){var k=c.getPlayerState();k!==5&&k!==0&&(c=1/c.getVideoAspectRatio(),g.videoHeightToWidthRatio_!==c&&(g.videoHeightToWidthRatio_=c))})},
schedulePlayerSizeUpdate_:function(e){var g=this,c=_.G("kevlar_watch_while_v2")||_.G("web_watch_pip"),k=function(){if(g.watchMetadata){var I,J;(J=(I=g.watchMetadata).resize)==null||J.call(I)}_.s1(g).getPlayerPromise().then(function(q){if(_.Im("kevlar_set_internal_player_size")){if(!c||!_.Ss().resolve(_.xt).isMiniplayerActive()){var L=g.calculateCurrentPlayerSize_();q.setInternalSize(L.width,L.height)}}else q.setSize(NaN,NaN);_.G("kevlar_watch_while")&&g.updateWatchWhileScrollThreshold_()})};
e?k():_.e$(_.ft,k)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(e){this.set("data.survey",e.detail)},
onYtShowSurveyCommand_:function(e){this.set("data.survey",_.x(e,Qf0).survey)},
onDownloadedVideoDeleted:function(e){var g=this,c,k;return _.r(function(I){if(I.nextAddress==1){if(!g.active||(c=g.playerData)==null||!c.offlineState||g.videoId!==e)return I.return();(k=g.player)==null||k.stopVideo();_.eM().navigatingAwayFromWatchDeletedVideo=!0;_.KO(_.Eiz,g.hostElement);return I.yield(_.eM().navigationFinishPromise,2)}_.eM().navigatingAwayFromWatchDeletedVideo=!1;_.Uh(I)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var e;this.theater?e=_.Pc(.5625*this.windowSize_.width,480,this.windowSize_.height-185):e=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==e&&(this.watchWhileScrollThreshold_=e)}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var e=_.o1(this.hostElement).querySelector("#secondary-inner");if(e){var g=_.o1(this.hostElement).querySelector("#below"),c=_.o1(this.hostElement).querySelector("#secondary"),k=_.o1(this.hostElement).querySelector("#comments");k&&c&&g&&(this.defaultTwoColumnLayout?(e.appendChild(k),c.appendChild(e)):(g.appendChild(k),xO(g,e)))}}},
isTwoColumnsChanged_:function(e,g){if(e!==!0||g!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(e=_.o1(this.hostElement).querySelector("#secondary-inner"))){g=_.o1(this.hostElement).querySelector("#below");var c=_.o1(this.hostElement).querySelector("#secondary"),k=_.o1(this.hostElement).querySelector("#comments");k&&c&&g&&(this.isTwoColumns_?(e.appendChild(k),c.appendChild(e)):(g.appendChild(k),xO(g,e)))}}else{e=!_.G("web_watch_enable_fs_squeezeback_panels");
g=_.o1(this.hostElement).querySelector("#panels");var I=_.o1(this.hostElement).querySelector("#alerts"),J=_.o1(this.hostElement).querySelector("#shopping-timely-shelf");c=_.o1(this.hostElement).querySelector("#playlist");k=_.o1(this.hostElement).querySelector("#related");var q=_.o1(this.hostElement).querySelector("#donation-shelf"),L=_.o1(this.hostElement).querySelector("#comments"),n=_.o1(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(I=_.o1(this.hostElement).querySelector("#secondary-inner"),
e&&(I.appendChild(g),I.appendChild(c),this.aiCompanionEnabled&&n&&I.appendChild(n)),I.appendChild(q),I.appendChild(k)):(e&&(_.$E(g,I),_.$E(c,I),this.aiCompanionEnabled&&n&&_.$E(n,I),_.$E(J,c)),_.$E(q,I),L&&_.$E(k,L));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.G("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.G("web_watch_enable_fs_squeezeback_panels")&&_.G("web_watch_theater_chat")){var e=_.o1(this.hostElement).querySelector("#chat-container"),g=this.theater&&!this.fullscreen||_.G("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&g?(g=_.o1(this.hostElement).querySelector("#columns"),(e==null?void 0:e.parentElement)!==g&&g.append(e),this.fixedPanels=!0):(this.fixedPanels=
!1,g=_.o1(this.hostElement).querySelector("#playlist"),e&&g?_.YE(e,g):_.mN(new _.E2("Missing element when updating chat location",{"chatContainer defined":!!e,"playlist defined":!!g})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(e,g){return _.G("sw_metadata_vis_toggle_ks")?!0:!!e||!!g},
computeForceDarkPanelTheme:function(e){return _.G("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&e:!1},
safeUpdateStyles:function(e){try{_.Nk(this.hostElement,e)}catch(g){_.mN(g)}},
videoHeightToWidthRatioChanged_:function(e,g){g&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(e){this.videoHeightToWidthRatio_=1/e},
computeIsVerticalVideo_:function(e){return e>=1},
computeIsFourThreeToSixteenNineVideo_:function(e){return e<=.7501&&e>=.5624},
computeIsExtraWideVideo_:function(e){return e<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.s1(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.s1(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){p57(this.youThereManager_)},
computePlaylistData_:function(e,g){return g},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Ss().resolve(_.fo).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var e=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.ft.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.ft.addLowPriorityJob(function(){e.fullHeightPanelPositionUpdateJobId=0;var g=_.o1(e.hostElement).querySelector("#secondary"),c=_.o1(e.hostElement).querySelector("#fixed-secondary");g=g.getBoundingClientRect();var k=g.width;e.swatcherooSqueezeback&&
(k+=BK);if(e.swatcherooSqueezeback){var I=_.o1(e.hostElement).querySelector("#squeezeback-constraining-container");I.style.width=k+"px";I.style.flex="0 0 "+k+"px"}c.style.width=k+"px";c.style.left=g.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var e=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.ft.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.ft.addLowPriorityJob(function(){e.panelMaxHeightUpdateJob_=0;var g;!e.isTwoColumns_||e.theater||e.fullscreen?g=460:g=e.calculateNormalPlayerSize_().height;var c=g+"px";_.G("live_chat_taller_height")&&!e.theater&&(c="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.G("live_chat_medium_height")&&!e.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.G("live_chat_scaled_height")&&!e.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 238px)");e.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":g+"px","--ytd-watch-flexy-chat-max-height":c,"--ytd-watch-flexy-structured-description-max-height":g+"px","--ytd-watch-flexy-comments-panel-max-height":g+"px","--ytd-comments-engagement-panel-content-height":g+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(e){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",e)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Bm(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(e){var g=_.o1(this.hostElement).querySelector("#engagement-panel-scrim");e?g.addEventListener("tap",_.yg(this,this.onEngagementPanelScrimClick_)):g.removeEventListener("tap",_.yg(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtEngagementPanelVisibleChanged:function(e,g,c){if(this.active&&this.trackEngagementPanelVisibility&&!KLq.includes(c)){if(g==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.V1(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var k=_.Ss().resolve(_.Lj);this.visiblePanelIdentifiers_.forEach(function(I){I!==c&&k.hidePanel({identifier:I})})}this.visiblePanelIdentifiers_.add(c)}g!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&g!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(c);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(e){return e?"":"watch-active-metadata"},
computeNewMetadataClass:function(e){return e?"watch-active-metadata":""},
computeIsSingleColumn:function(e,g){return g&&!e},
computeFullBleedPlayer:function(e,g,c){return _.G("external_fullscreen")&&e||g||c},
computeDefaultLayout:function(e){return!e},
computeDefaultTwoColumnLayout:function(e,g){return!e&&g},
updatePanelsLocation:function(){if(_.G("web_watch_enable_fs_squeezeback_panels")){var e=_.o1(this.hostElement).querySelector("#below"),g=_.o1(this.hostElement).querySelector("#panels"),c=_.o1(this.hostElement).querySelector("#playlist"),k=_.o1(this.hostElement).querySelector("#chat-container"),I=_.o1(this.hostElement).querySelector("#panels-full-bleed-container"),J=_.o1(this.hostElement).querySelector("#secondary-inner"),q=_.o1(this.hostElement).querySelector("#shopping-timely-shelf"),L=_.o1(this.hostElement).querySelector("#persistent-panel-container");
if(e&&g&&c&&k&&I&&J&&q&&(this.aiCompanionEnabled?L:1)){var n=this.fullscreen||this.theater&&this.iMaxTheaterMode,R=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;R?(R=_.o1(this.hostElement).querySelector("#columns"),(k==null?void 0:k.parentElement)!==R&&R.append(k),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):n?I.appendChild(k):this.isTwoColumns_?xO(J,k):xO(e,k);n?(I.appendChild(g),I.appendChild(c),
this.aiCompanionEnabled&&L&&I.appendChild(L)):(this.isTwoColumns_?(xO(J,g),xO(J,c),this.aiCompanionEnabled&&L&&xO(J,L)):(xO(e,g),xO(e,c),this.aiCompanionEnabled&&L&&xO(e,L)),xO(e,q))}}},
swatcherooUpdatePanelsLocation:function(e,g,c,k,I,J){if(this.is==="ytd-watch-grid"){g=e&&!g;this.swatcherooSplitScroll&&(g?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));c=_.o1(this.hostElement).querySelector("#panels");var q=_.o1(this.hostElement).querySelector("#playlist"),L=_.o1(this.hostElement).querySelector("#persistent-panel-container"),
n=_.o1(this.hostElement).querySelector("#fixed-secondary"),R=_.o1(this.hostElement).querySelector("#fixed-below"),W=_.o1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),b=_.o1(this.hostElement).querySelector("#chat-container");J&&(e?(n.appendChild(c),this.aiCompanionEnabled&&L&&n.appendChild(L)):(R.appendChild(c),this.aiCompanionEnabled&&L&&R.appendChild(L)));I?e?n.appendChild(b):R.appendChild(b):_.YE(b,W);k?e?n.appendChild(q):R.appendChild(q):_.YE(q,
W);this.swatcherooSplitScroll&&(e=_.o1(this.hostElement).querySelector("#secondary"),k=_.o1(this.hostElement).querySelector("#columns"),I=_.o1(this.hostElement).querySelector("#fixed-columns-secondary"),g?I.appendChild(e):k.appendChild(e))}},
computeMetadataSkinnyMode:function(e,g,c){return this.is!=="ytd-watch-grid"?!1:e?c:g},
computeWatchWhilePanelsActive:function(e,g){return e||g},
computeNoBorderOnChat:function(e){return _.G("web_watch_theater_chat_no_border")&&e},
computeLiveChatPresentAndExpanded:function(e,g){return e&&!g},
computePanelExpanded:function(e,g,c){return e||g||c},
computeSqueezeback:function(e,g,c,k){if(_.G("web_watch_enable_fs_squeezeback_panels")){var I=this.iMaxTheaterMode&&this.theater,J=this.theater&&!this.iMaxTheaterMode;return(e||g||c)&&(I||k)||g&&J}},
computeSwatcherooSqueezeback:function(e,g,c){return this.is!=="ytd-watch-grid"||_.G("ww_squeezeback_killswitch")?!1:e&&g&&c},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(e){_.s1(this).getPlayerPromise().then(function(g){var c;(c=g.changeMarkerVisibility)==null||c.call(g,_.x(e,RO).isVisible||!1,_.x(e,RO).entityKeys||[],_.x(e,RO).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(e){this.liveChatCollapsed=e.detail;_.Tt().dispatch(Nh0(e.detail));if(!this.liveChatCollapsed&&this.squeezeback){var g=_.Ss().resolve(_.Lj);this.visiblePanelIdentifiers_.forEach(function(c){g.hidePanel({identifier:c})})}},
onSetPlaylistCollapsed:function(e){_.G("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!e)},
provideRenderingData:function(e,g){switch(e){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=g;break;case "PRIMARY_INFO":_.G("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=g);this.videoPrimaryInfoRendererValue=g==null?void 0:g.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.G("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=g);this.videoSecondaryInfoRendererValue=g==null?void 0:g.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
g;break;case "CLARIFICATION":this.clarifyBoxValue=g;break;case "LIVE_CHAT":this.conversationBar=g;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=g;break;case "PLAYLIST":this.externalPlaylistData_=g!=null?g:{};break;case "MERCH_SHELF":this.merchShelfValue=g==null?void 0:g.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=g;break;case "TICKET_SHELF":this.ticket=g;break;case "OFFER_MODULE":this.offerModule=g;break;case "LIMITED_STATE":this.limitedStateValue=
g;break;case "DONATION_SHELF":this.donation=g;break;case "ALERTS":this.alertsValue=g;break;case "COMMENTS":this.comments=g;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=g;break;case "ENGAGEMENT_PANELS":this.engagementPanels=g;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=g;break;case "RICH_GRID_RENDERER":this.richGridRendererData=g;break;case "EXPANDABLE_METADATA":this.expandableMetadata=g;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
g;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=g;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=g}},
toggleCinematicsActive:function(e){this.cinematicsActive=e}}];var Y3x=function(e,g){var c;return((c=e.prefixMapping)==null?0:c[g])?e.prefixMapping[g]:e.SHARED_RENDERERS_.hasOwnProperty(g)?"yt":e.prefix},u$={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}}};u$.DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,addSpacing:_.G("kevlar_add_spacing_to_sheets")},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
u$.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"};
u$.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"};u$.LOCKED_OVERLAY_DIALOG={component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,scrollAction:"lock",withBackdrop:!0},preventAutonav:!0};
u$.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.G("kevlar_mealbar_above_player"),modern:_.uo("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX",noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
u$.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};u$.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};u$.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
u$.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)"}};
u$.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};
u$.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};
u$.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};
u$.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.G("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
u$.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"}};u$.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};u$.TOAST={component:null,properties:{}};var fzx=new function(e,g,c){this.supportedPopups=e;this.navigationEndpointPopupMap=g;this.popupTypeMap=c;this.supportedPopups=e;this.navigationEndpointPopupMap=g;this.popupTypeMap=c}({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:_.G("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"}),jrX=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,
upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$21603_popupConfig=u$;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 ikq=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Ec.getInstance()},zz=function(e,g){var c=e.pageNameToElement.get(g);
if(!c){switch(g){case "watch":var k=_.G("web_watch_force_learning_journey_for_testing")?_.l7("ytd-watch-learning-journey"):_.G("kevlar_watch_fixie")?_.l7("ytd-watch-fixie"):_.G("kevlar_watch_grid")?_.l7("ytd-watch-grid"):_.l7("ytd-watch-flexy");break;case "learning_journey_watch":k=_.l7("ytd-watch-learning-journey");break;case "shorts":k=_.l7("ytd-shorts");break;case "search":k=_.l7("ytd-search");break;case "channel":k=_.l7("ytd-browse");k.pageSubtype="channels";break;case "trending":k=_.l7("ytd-browse");
k.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":k=
_.l7("ytd-browse");k.pageSubtype=g;break;case "browse":k=_.l7("ytd-browse");break;default:_.mN(new _.E2("Error getting page element for type",g))}c=k;e.pageNameToElement.set(g,c)}return c};
ikq.prototype.preparePage=function(e,g,c){c&&(e=_.y8(c)||e);if(e!=="watch"&&e!=="learning_journey_watch"){var k=this.elementPoolPopulator,I=e;I!=k.targetPage_&&k.pendingPages_.indexOf(I)>-1&&(k.targetPage_&&(k.pendingPages_.unshift(k.targetPage_),k.abort()),cSX(k,I),_.p7I(k,I))}if((k=zz(this,e))||!_.x(c,_.uf)){k.isAttached||k===g||(k.hidden=!0);if(!k.data&&(e!=="watch"&&e!=="learning_journey_watch"||!_.G("swatcheroo_page_pool_dont_provide_filler_data"))){var J;if(e=(J=_.uo("FILLER_DATA",{})[e])==
null?void 0:J.response)k.data=e}return k}};var POg=function(e){this.JSC$33524_clientRoot=e;this.playlistHandlerActionMap={"yt-add-to-playlist-command":kXq,"yt-end-playlist-command":I4O,"yt-recover-playlist-command":vVX,"yt-refresh-playlist-command":Lvl,"yt-playlist-remove-videos-action":wWv};_.zm(_.dF.getInstance(),this.playlistHandlerActionMap,this.JSC$33524_clientRoot);GBD()},mAO;var HM=function(e,g,c){this.apiKey=e;this.endpoint=g;this.confidenceThreshold=c===void 0?.5:c;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=g==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||g==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
g==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||g==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new dYl};
_.v=HM.prototype;
_.v.start=function(e){if(this.state===0)if(this.isOnline()){e.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=e.supportsHttpHeadersOverwriteParam);e.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=e.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.EV("voice_assistant");_.bB("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=e.languageCode||"en-US";this.supportsCrossDomainXhr=e.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=e.youtubeAssistantRequest||null;this.listeningHandler=e.listeningHandler||this.listeningHandler;this.audioDetectedHandler=e.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=e.stopHandler||this.stopHandler;this.completeHandler=e.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=e.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=e.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
e.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=e.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=e.accessToken;this.additionalHeaders=e.additionalHeaders||{};var g;this.prefetchResponseTimeoutMs=(g=e.prefetchResponseTimeoutMs)!=null?g:this.prefetchResponseTimeoutMs;psj(this);this.startAudio();TUz(this)}else this.errorHandler("OFFLINE")};
_.v.stop=function(e){var g=e===void 0?{}:e;e=g.logCancel===void 0?!0:g.logCancel;var c=g.logMicClosed===void 0?!0:g.logMicClosed;var k=g.handleError===void 0?!0:g.handleError;g=g.handleStop===void 0?!0:g.handleStop;this.state!==0&&(e&&QT("voz_cx"),Up(this,{logMicClosed:c,handleStop:g}),k&&this.errorHandler("ABORTED"))};
_.v.getState=function(){return this.state};
_.v.isSupported=function(){return!0};
_.v.stopAudio=function(e){(e===void 0||e)&&QT("voz_mf")};
_.v.startAudio=function(){QT("voz_vp");return _.No(null)};
var lzD=function(e,g){e.channelOpen&&(e.state!==2&&(e.state=2,QT("voz_ss"),e.listeningHandler()),g=new Uint8Array(g),g='{ "audioIn": "'+_.MU(g)+'" }',e.channel.send(g))},Up=function(e,g){var c=g===void 0?{}:g;
g=c.logMicClosed===void 0?!0:c.logMicClosed;c=c.handleStop===void 0?!0:c.handleStop;e.vozEndOfDataTimeout>-1&&(clearTimeout(e.vozEndOfDataTimeout),e.vozEndOfDataTimeout=-1);Alq(e);e.stopAudio(g);e.channel&&(e.channelOpen=!1,e.manuallyClosedChannel=!0,e.channel.close(),e.channel=void 0);e.transcribedSpeechResults=[];e.state=0;c&&e.stopHandler()},psj=function(e){var g={httpHeadersOverwriteParam:e.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},e.additionalHeaders,e.accessToken&&e.isUsingVoz?{Authorization:"Bearer "+e.accessToken}:{"x-goog-api-key":e.apiKey}),supportsCrossDomainXhr:e.supportsCrossDomainXhr};e.channel=new vS(e.endpoint,g);e.channel.open();_.iK(e.channel,"w",function(){var c=e.channel,k=c.send,I=e.isUsingVoz?"PLACEHOLDER":"example";I={config:{dialogStateIn:{languageCode:e.languageCode},deviceConfig:{deviceId:I,deviceModelId:I},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!e.isUsingVoz)I.config.requestType=4;else if(e.isUsingVoz&&e.youtubeAssistantRequest){var J=JSON.stringify(e.youtubeAssistantRequest);I.config.internalIn={youtubeAssistantS3InputJson:J}}k.call(c,I);e.channelOpen=!0;e.manuallyClosedChannel=!1});
_.iK(e.channel,"x",function(){e.manuallyClosedChannel||(e.channelOpen=!1,e.channel=void 0,Up(e))});
_.iK(e.channel,"z",function(c){if(c.data){Alq(e);for(var k=0;k<c.data.length;k++){var I=e,J=c.data[k],q=J.speechResults;if(q)a:{var L=[];J=[];var n=!1;q=_.w(q);for(var R=q.next();!R.done;R=q.next()){R=R.value;if(R.noSpeech){Up(I);I.errorHandler("NO_SPEECH");break a}R.transcript!==void 0&&R.stability!==void 0&&(R.stability<I.confidenceThreshold&&(n=!0),n?J.push(R.transcript):L.push(R.transcript))}if(L.length!==0||J.length!==0)L=L.join(" "),J=J.join(" "),I.receivedEndOfUtterance&&!I.isUsingVoz?I.isUsingVoz||
I.completeHandler([L,J]):(n=I,q=L,R=J,QT("voz_sf"),n.transcriptionUpdateHandler(q,R),n.transcribedSpeechResults=[q,R]),I.receivedEndOfUtterance&&(QT("voz_eou"),I.transcriptionCompleteHandler([L,J]),I.isUsingVoz&&(I.prefetchResponseTimeoutMs===0?Up(I,{logMicClosed:!1,handleStop:!0}):I.prefetchResponseTimeoutMs>0&&srX(I)))}else I.isUsingVoz&&(J==null?0:J.internalOut)?(J=JSON.parse(J.internalOut.youtubeAssistantS3OutputJson),J.userHasOptedInToVaa||J.vaaConsent?I.vaaConsentUpdateHandler(!!J.userHasOptedInToVaa,
!!J.vaaConsent):(FI0(I),J&&(L=I.transcribedSpeechResults,QT("voz_rqf"),I.completeHandler(L,J)))):J.eventType==="END_OF_UTTERANCE"?I.receivedEndOfUtterance=!0:(QT("voz_err"),I.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.mN(Error("Wl")))}}});
_.iK(e.channel,"y",function(c){Up(e);switch(c.status){case 1:c="WEBCHANNEL_NETWORK_ERROR";break;case 2:c="WEBCHANNEL_SERVER_ERROR";break;default:c="WEBCHANNEL_UNKNOWN_ERROR"}e.errorHandler(c);e.logError(Error(c))})};
HM.prototype.logError=function(e){_.jW(e)};
HM.prototype.isOnline=function(){return!0};
var srX=function(e){FI0(e);e.prefetchResponseSetTimeoutId=setTimeout(function(){Up(e,{logMicClosed:!1,handleStop:!0})},e.prefetchResponseTimeoutMs)},FI0=function(e){e.prefetchResponseSetTimeoutId>-1&&(clearTimeout(e.prefetchResponseSetTimeoutId),e.prefetchResponseSetTimeoutId=-1)},TUz=function(e){Alq(e);
e.noResponseReceivedTimeout=window.setTimeout(function(){Up(e);e.errorHandler("NO_SPEECH")},11E3)},Alq=function(e){e.noResponseReceivedTimeout>-1&&(window.clearTimeout(e.noResponseReceivedTimeout),e.noResponseReceivedTimeout=-1)},QT=function(e){_.Wh(e,void 0,"voice_assistant")};var oh=function(){HM.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.Y(oh,HM);oh.prototype.isSupported=function(){return rPQ()};
oh.prototype.startAudio=function(){var e=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.q2(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(k){u3S(e,k)};
this.processor.connect(this.audioContext.destination);var g=function(k){e.stream=k;if(!e.audioContext)return _.No(null);k=e.audioContext.createMediaStreamSource(k);e.processor&&k.connect(e.processor);return _.No(null)},c={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?g(this.stream):(c=navigator.mediaDevices.getUserMedia(c))?c.then(g).catch(function(k){Up(e);k.name&&k.name==="NotAllowedError"?e.errorHandler("NO_MICROPHONE_PERMISSION"):(e.errorHandler("AUDIO_ERROR"),e.logError(k));return _.q2(null)}):(Up(this),this.errorHandler("AUDIO_ERROR"),_.mN(Error("Xl")));
return HM.prototype.startAudio.call(this)};
oh.prototype.stopAudio=function(e){e=e===void 0?!0:e;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(g){g.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;HM.prototype.stopAudio.call(this,e)};
oh.prototype.isOnline=function(){return navigator.onLine};
var u3S=function(e,g){if(e.audioContext)if(window.OfflineAudioContext){var c=e.audioContext.sampleRate,k=g.inputBuffer.getChannelData(0);g=new window.OfflineAudioContext(1,k.length,16E3);for(var I=g.createBuffer(1,k.length,c),J=I.getChannelData(0),q=0,L=0;L<k.length;L++)J[L]=k[L],q+=J[L]*J[L];!e.audioDetected&&Math.sqrt(q/k.length)>.01&&(e.audioDetected=!0,e.audioDetectedHandler());k=g.createBufferSource();k.buffer=I;k.connect(g.destination);k.start(0);g.oncomplete=function(n){n=n.renderedBuffer.getChannelData(0);
for(var R=Math.floor(16384E3/c),W=new Int16Array(R),b=0;b<R;++b)W[b]=Math.max(-1,Math.min(1,n[b]))*32767;lzD(e,W.buffer)};
g.startRendering()}else dAQ(e,g)},dAQ=function(e,g){var c=e.audioContext.sampleRate,k=g.inputBuffer.getChannelData(0),I=Math.floor((c+8E3)/16E3);
c=k.length/I;g=new Float32Array(c);for(var J=0;J<c;++J)g[J]=k[J*I];k=new Int16Array(c);for(I=0;I<c;++I)k[I]=Math.max(-1,Math.min(1,g[I]))*32767;lzD(e,k.buffer)};var zIM={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Hkx=function(){this.JSC$21668_audioEnabled=!0;this.audioFeedbackHolder={}};
Hkx.prototype.isPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2};
var QrQ=function(e){for(var g=_.w(Object.values(zIM)),c=g.next();!c.done;c=g.next())c=c.value,e.audioFeedbackHolder[c]=new Audio,e.audioFeedbackHolder[c].src="/s/search/audio/"+c+".mp3",e.audioFeedbackHolder[c].load()},ZT=function(e,g){if(e.JSC$21668_audioEnabled!==!1&&g in e.audioFeedbackHolder){for(var c=_.w(Object.values(e.audioFeedbackHolder)),k=c.next();!k.done;k=c.next())k=k.value,e.isPlaying(k)&&k.pause();
e.audioFeedbackHolder[g].currentTime=0;e.audioFeedbackHolder[g].play().catch(function(){})}};var UAQ=function(e,g){var c=this;this.store=e;this.service=g;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){c.setState("offline");c.stop()};
this.audioPlayer=new Hkx;var k;(k=this.audioPlayer)==null||QrQ(k)};
_.v=UAQ.prototype;_.v.getService=function(){return this.service};
_.v.isEnabled=function(){return!!this.service};
_.v.isSupported=function(){var e;return(e=this.service)==null?void 0:e.isSupported()};
_.v.start=function(){var e=this,g,c,k,I,J,q,L,n,R,W,b,h,X;return _.r(function(D){switch(D.nextAddress){case 1:e.store.dispatch(Se0("",""));if(!navigator.onLine)return e.setState("offline"),D.return();window.addEventListener("offline",e.handleOfflineEvent);e.stream=null;if(!e.permissionsSupported){D.jumpTo(2);break}_.lj(D,3);return D.yield(oxQ(e),5);case 5:g=D.yieldResult;if(!g)return(c=e.audioPlayer)==null||ZT(c,"failure"),D.return();e.service.stream=e.stream;e.setState("listening");_.zn(D,2);break;
case 3:_.Qb(D),e.permissionsSupported=!1;case 2:k={context:_.h9p(_.O2())},k.youtubeAssistantParams={searchParams:{inlineSearchResponse:e.enableInlineSearchResponse}},I=function(f,l){e.store.dispatch(yDg("transcribing"));e.store.dispatch(Se0(f,l))},J=function(){var f;
(f=e.audioPlayer)==null||ZT(f,"open");e.setState("listening")},q=function(){e.setState("transcribing")},L=function(f){e.setErrorState(f)},n=function(f,l){var A;
(A=e.audioPlayer)==null||ZT(A,"success");l&&(_.G("kevlar_voice_search_inline_search")&&(e.responseProcessor=_.Ss().resolve(_.ZCv),e.responseProcessor&&(A=l.navigationAction,f=l.prefetchedSearchResponse,A&&f&&(A=(new _.ruM).JSC$14495_getStoreKey(A),_.fu(e.responseProcessor,f,A)))),e.JSC$21686_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",l))},R=function(){window.removeEventListener("offline",e.handleOfflineEvent)},W=_.isz(!1),b=W.Authorization!=null,h=e.enableFirstPartyAuth||
e.enableFPAForSignedInUsers&&b?W:{"X-Goog-Visitor-Id":W["X-Goog-Visitor-Id"]},X={completeHandler:n,
errorHandler:L,listeningHandler:J,audioDetectedHandler:q,stopHandler:R,transcriptionUpdateHandler:I,youtubeAssistantRequest:k,languageCode:ZkD(),additionalHeaders:h,supportsCrossDomainXhr:e.enableFirstPartyAuth||e.enableFPAForSignedInUsers&&b,supportsHttpHeadersOverwriteParam:!e.disableHttpHeadersOverwrite},e.service.start(X),_.Uh(D)}})};
_.v.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.v.reset=function(){this.store.dispatch(_.Hh({type:"RESET_VOICE_SEARCH_STATE"}))};
_.v.setState=function(e){this.store.dispatch(yDg(e))};
_.v.setErrorState=function(e){switch(e){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var g;(g=this.audioPlayer)==null||ZT(g,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)oxQ(this);else{var c;(c=this.audioPlayer)==null||ZT(c,"failure");this.setState("permission-denied")}break;case "ABORTED":var k;(k=this.audioPlayer)==null||ZT(k,"no_input");break;default:var I;(I=this.audioPlayer)==
null||ZT(I,"no_input");this.setState("timeout")}};
var oxQ=function(e){var g,c;return _.r(function(k){switch(k.nextAddress){case 1:return k.yield(navigator.permissions.query({name:"microphone"}),2);case 2:g=k.yieldResult;if(g.state==="granted")return k.return(!0);if(g.state==="denied")return e.setState("permission-denied"),k.return(!1);e.setState("permission");c={audio:{sampleSize:16,channelCount:1},video:!1};_.lj(k,3);return k.yield(navigator.mediaDevices.getUserMedia(c),5);case 5:return e.stream=k.yieldResult,k.return(!0);case 3:return _.Qb(k),
e.setState("permission-denied"),k.return(!1)}})},ZkD=function(){var e=_.uo("INNERTUBE_CONTEXT_HL"),g=_.uo("INNERTUBE_CONTEXT_GL");
return e.indexOf("-")>-1?e:e+"-"+g};var V2S=function(e,g,c){UAQ.call(this,g,c);this.JSC$21686_actionRouter=e;this.enableInlineSearchResponse=_.G("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.G("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.G("kevlar_voice_search_enable_fpa_signedin_users")},t2Q;
_.Y(V2S,UAQ);
var BUj=function(){if(!t2Q){var e="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.G("kevlar_voice_search_auth_enabled")||_.G("kevlar_voice_search_use_yt_endpoint")?e="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.G("kevlar_voice_search_use_fp_endpoint")&&(e="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");t2Q=
new V2S(_.dF.getInstance(),_.Tt(),new oh(_.uo("VOZ_API_KEY"),e,.5))}return t2Q};var NUz=function(e){this.JSC$21690_clientRoot=e;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$21690_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));e=_.w(this.eventListeners);for(var g=e.next();!g.done;g=e.next()){var c=
_.w(g.value);g=c.next().value;c=c.next().value;c=_.w(c);for(var k=c.next();!k.done;k=c.next()){var I=_.w(k.value);k=I.next().value;I=I.next().value;g.addEventListener(k,I)}}_.zm(_.dF.getInstance(),this.autonavPauseActionMap,this.JSC$21690_clientRoot)},S30,ylo=function(e){return _.G("kevlar_autonav_popup_filtering")?(e=_.A3(e))?e.hasAttribute("prevent-autonav"):!0:!0};
_.v=NUz.prototype;_.v.onIronOverlayOpened=function(e){ylo(e)&&(this.autonavPauseReasons.overlayOpen=!0,VT(this))};
_.v.onIronOverlayClosed=function(e){ylo(e)&&(this.autonavPauseReasons.overlayOpen=!1,VT(this))};
_.v.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;VT(this)};
_.v.onYtAutonavPauseBlur=function(){var e=this;_.ft.addJob(function(){KI0()||(e.autonavPauseReasons.inputBoxFocus=!1,VT(e))},8,0)};
_.v.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;VT(this)};
_.v.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;VT(this)};
_.v.onYtAutonavPauseScroll=function(){var e=_.Ss().resolve(_.A4);e.isOnWatch()&&(e=e.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=e.getBoundingClientRect().top<-200,VT(this))};
_.v.onYtAutonavPauseUserEngagement=function(e){var g=this;if(_.G("user_engagement_enable_autoplay_pause_feature")){var c=Number(e.lowEngagementThresholdMs);isNaN(c)||c<=0||e.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?Nh("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.Ss().resolve(_.et),_.S6()<c?_.h2(_.ft,function(){Nh("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):tt7()?(this.userEngagementCsn=_.EM(),_.h2(_.ft,function(){Nh("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
g.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,VT(this)):Nh("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.my8(Error("Yl`"+JSON.stringify(e)))};
_.v.onYtAutonavPausePlayer=function(e){this.autonavPauseReasons.requestedByPlayer=!!e.detail;VT(this)};
_.v.onYtAutonavVisibilityChanged=function(){var e=this,g,c,k;return _.r(function(I){if(I.nextAddress==1)return(g=_.FE())?I.yield(g.getPlayerPromise(),2):I.return();c=I.yieldResult;k=c.isMuted()||c.getVolume()===0;e.autonavPauseReasons.backgroundAndMute=KI0()&&k;VT(e);_.Uh(I)})};
_.v.onYtAutonavPausePlayerEnded=function(){_.Ss().resolve(_.et);var e=144E5;_.G("user_engagement_enable_autoplay_pause_feature")||_.G("is_part_of_any_user_engagement_experiment")||(e=45E5);this.autonavPauseReasons.longIdle=_.S6()>e;Okz(this);VT(this)};
_.v.onYtUserActivity=function(){var e=this;this.autonavPauseReasons.userEngagement&&(_.h2(_.ft,function(){Nh("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",e.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,VT(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.h2(_.ft,function(){Nh("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",e.userEngagementCsn);_.fB()}),this.autonavPauseReasons.youthereLactExperiment=!1,VT(this));
this.autonavPauseReasons.longIdle&&!_.G("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,VT(this))};
var KI0=function(){var e=window.document.visibilityState;return!(!e||e==="visible")},VT=function(e){for(var g=!1,c=_.w(Object.values(e.autonavPauseReasons)),k=c.next();!k.done;k=c.next())k=k.value,g=g||k;
g?_.up.getInstance().pause(e.autonavPauseReasons):(e=_.up.getInstance(),e.autonavState_==3?(e.setState(2,!1,!1),e.autonavPauseReason_=void 0):e.autonavState_==1&&(e.disabledAutonavPauseReason_=void 0))},Okz=function(e){var g=!1;
if(_.G("enable_autoplay_pause_by_lact")){_.Ss().resolve(_.et);g=_.MN("autoplay_pause_by_lact_sec")*1E3;var c=_.MN("autoplay_pause_by_lact_sampling_fraction");(g=_.S6()>=g&&Math.random()<c)&&!tt7()&&(_.h2(_.ft,function(){Nh("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),g=!1)}g!==e.autonavPauseReasons.youthereLactExperiment&&(e.autonavPauseReasons.youthereLactExperiment=g)&&(e.userEngagementCsn=_.EM(),_.h2(_.ft,function(){Nh("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",e.userEngagementCsn)}));
e.autonavPauseReasons.userEngagement&&_.h2(_.ft,function(){Nh("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",e.userEngagementCsn)})};
NUz.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(Nh("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.fB(),this.autonavPauseReasons.youthereLactExperiment=!1,VT(this));this.autonavPauseReasons.userEngagement&&(Nh("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,VT(this))};
NUz.prototype.onYtEngagementPanelVisibleChanged=function(e){e.detail&&e.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=e.detail.visible,VT(this))};
NUz.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var M2O=_.Yu.persistentPanelVisibleSelector,ty=function(){var e=_.z.apply(this,arguments)||this;e.miniGuideVisible=!1;e.guideOpened=_.G("disable_initial_guide_state_fix")?!1:e.canFitPersistentGuide(e.initialBodyClientWidth);e.guideUserStateOpened=e.getInitialGuideUserStateOpened();e.isFullscreenShorts=!1;e.miniGuideWidthThreshold=_.MN("kevlar_mini_guide_width_threshold",791);e.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
e.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");e.persistentGuideBlockedPagePathRegex=new RegExp(e.persistentGuideBlockedPagesPatterns.join("|"));e.animationTransitionDuration=0;e.lateDataResolver=_.i6();e.initialGuideDataFetchFailed=!1;e.initialLoad=!0;e.guideRenderers=new Set;e.isMouseOverGuide=!1;e.sessionUserManuallyExpandedGuideState=
!1;e.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return e};
_.Y(ty,_.z);_.v=ty.prototype;_.v.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.v.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.v.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.v.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.v.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.v.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.v.ready=function(){_.Ss().addProvider({provide:_.xs,useValue:this.hostElement})};
_.v.attached=function(){var e=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.yg(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.yg(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.yg(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.yg(this,this.onYtGuideShow));_.Va(this,function(){e.animationTransitionDuration=200})};
_.v.detached=function(){document.removeEventListener("yt-navigate-finish",_.yg(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.yg(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.yg(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.yg(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.yg(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.yg(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.yg(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.v.getData=function(){return this.data};
_.v.load=function(){var e=this,g,c,k,I;return _.r(function(J){switch(J.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=e.lateDataResolver.resolve.bind(e),J.return(e.lateDataResolver.promise);if(window.ytInitialGuideData)return g=_.i6(),g.resolve(window.ytInitialGuideData),J.return(g.promise);k=!1;_.lj(J,2);return J.yield(e.fetchGuideData(),4);case 4:c=J.yieldResult;_.zn(J,3);break;case 2:I=_.Qb(J),I.message==="Returned error"&&(k=
!0);case 3:if(c)return J.return(c);e.onYtGuideClose();k||(e.initialGuideDataFetchFailed=!0);return J.return(e.lateDataResolver.promise)}})};
_.v.fetchGuideData=function(){var e=this,g,c,k,I,J,q,L;return _.r(function(n){if(n.nextAddress==1)return g=_.Ss(),e.guidePromise||(c=g.resolve(_.kv),e.guidePromise=_.jt(c,juO)),n.yield(e.guidePromise,2);if(n.nextAddress!=3)return k=n.yieldResult,I=g.resolve(_.Iz),n.yield(I(),3);(J=n.yieldResult)&&((q=k)==null?void 0:(L=q.responseContext)==null?void 0:L.maxAgeSeconds)!==0&&J.put("service:guide:fallback",new _.NT({innertubeResponse:k}));return n.return(k)})};
_.v.initializeGuideDataIfEmpty=function(){var e=this,g,c;return _.r(function(k){if(k.nextAddress==1){if(!e.initialGuideDataFetchFailed||e.data)return k.return();_.lj(k,2);return k.yield(e.fetchGuideData(),4)}if(k.nextAddress!=2)return(g=k.yieldResult)&&e.lateDataResolver.resolve(g),_.zn(k,0);c=_.Qb(k);_.mN(c);_.Uh(k)})};
_.v.initializeGuideData=function(){var e=this,g,c;return _.r(function(k){switch(k.nextAddress){case 1:return _.OT(VrO(),{mainAppWeb:_.Pg()}),_.lj(k,2),k.yield(e.load(),4);case 4:e.data=k.yieldResult;_.zn(k,3);break;case 2:g=_.Qb(k),_.M1(VrO(),"FAILURE"),_.mN(new _.E2("Guide data not present",{errorMessage:g.message}));case 3:c=e.data&&e.data.items&&e.data.items.length>0?"SUCCESS":"FAILURE",c==="FAILURE"&&_.mN(new _.E2("Guide data.items empty")),_.M1(VrO(),c),_.Uh(k)}})};
_.v.setGuideData=function(e){var g=this,c,k;return _.r(function(I){if(I.nextAddress==1)return g.disabled?I.return():g.data?(e.data=g.data,g.guideRenderers.add(e),I.return()):I.yield(g.initializeGuideData(),2);g.graftGuideToPage();c=_.dH("IS_HOMEPAGE_COLD")?"eop":void 0;_.G("disable_element_pool_populator")?g.setGuideDataAfterInit(e):(k=new _.AF(1,c),_.sO(k,g.setGuideDataAfterInit.bind(g,e)));_.Uh(I)})};
_.v.setGuideDataAfterInit=function(e){e.data=this.data;e.markDirty();this.guideRenderers.add(e);_.Y_(function(){_.Wh("gle")});
_.Va(this,function(){_.Wh("gpe")})};
_.v.graftGuideToPage=function(){if(this.data){var e=this.data&&this.data.trackingParams;e&&(e=_.Jb(e),_.SD(_.gL(),e))}};
_.v.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.yg(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.v.onDrawerOpenedChanged=function(e,g){!g.value&&this.guideOpened&&(this.guideOpened=!1)};
_.v.onYtGuideToggle=function(e){var g=this.guideOpened;this.guideOpened=!g;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var c=_.ch();_.kn(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;c.save()}this.updateGuideDrawerElementState();if(this.guideElement){var k;this.guideOpened&&((k=e.detail)==null?0:k.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.yg(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.yg(this,this.onAppDrawerTransitioned))}g||this.initializeGuideDataIfEmpty()};
_.v.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.yg(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.oF(this.guideElement)};
_.v.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.yg(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(UE7(this.guideOpened))};
_.v.guidePersistentAndVisibleChanged=function(){_.V1(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.v.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Hh({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.v.miniGuideVisibleChanged=function(){_.V1(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.v.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(UE7(this.guideOpened)),this.initialLoad=!1);_.V1(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.v.activeEndpointChanged=function(){_.V1(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.v.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.v.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.guidePersistentAndVisible=this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.v.cachedClientWidthChanged=function(){this.updateGuideState()};
_.v.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.v.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var e=this.canFitPersistentGuide(this.cachedClientWidth);e?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=e}this.updateGuideDrawerElementState()};
_.v.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.v.getGuideOpened=function(){return this.guideOpened};
_.v.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.v.getActiveEndpoint=function(){return this.activeEndpoint};
_.v.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.v.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.oC(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.v.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.G("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.v.handleGuideMouseLeave=function(){var e=this;!this.sessionUserManuallyExpandedGuideState&&_.G("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.fO(this,"handleGuideMouseLeave",function(){e.isMouseOverGuide||!e.guideOpened||e.miniGuideVisible||(e.guideOpened=!1,e.updateGuideDrawerElementState())},100))};
_.v.computeGuidePersistentAndVisible=function(){var e=this;_.fO(this,"computeGuidePersistentAndVisible",function(){e.guidePersistentAndVisible=e.guideOpened&&e.guidePersistent;e.guideIsVisibleButNotPersistent=!(!e.guideOpened||e.guidePersistent)})};
_.v.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.v.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.v.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.v.startLoadingWatch=function(){this.closeGuide()};
_.v.startLoadingShorts=function(){_.G("web_hide_guide_on_shorts")&&this.closeGuide()};
_.v.onYtNavigateFinish=function(e,g){if(!_.B2||g){this.activeEndpoint=g.endpoint;this.pageType=g.pageType;this.pageUrl=g.response.url;var c,k;e=(k=_.x((c=g.endpoint)==null?void 0:c.commandMetadata,_.OM))==null?void 0:k.url;!this.pageUrl&&e&&(this.pageUrl=e);_.G("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.v.getVisibleGuideRenderer=function(){for(var e=_.w(this.guideRenderers),g=e.next();!g.done;g=e.next())if(g=g.value,this.miniGuideVisible&&g.is==="ytd-mini-guide-renderer"||this.guideOpened&&g.is==="ytd-guide-renderer")return g;return null};
_.v.markGuideRendererDirty=function(e){if(e){typeof e.markDirty==="function"&&e.markDirty();e=_.w([].concat(_.KY(_.o1(e).children)));for(var g=e.next();!g.done;g=e.next())this.markGuideRendererDirty(g.value)}};
_.v.persistentGuideEnabled=function(e,g){if(!g||e==="watch"||e==="settings"||e==="shorts"&&this.isFullscreenShorts||_.G("reels_web_disable_persistent_guide_shorts")&&e==="shorts")return!1;var c=_.tv(g)||"";return _.G("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(k){return c===k}):!this.persistentGuideBlockedPagePathRegex.test(c)};
_.v.canFitPersistentGuide=function(e){var g=_.MN("kevlar_persistent_guide_width_threshold",1312);return g===-1||_.G("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:e>this.calculateGuideThreshold(g)};
_.v.calculateGuideThreshold=function(e){return _.G("enable_ai_companion")?e+(this.persistentPanelVisible?400:0):e};
_.v.canFitMiniGuide=function(e){return this.miniGuideWidthThreshold===-1?!1:e>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.v.onResize=function(){var e=this;_.fO(this,"calculateGuideState",function(){e.onResizeDebounced()})};
_.v.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.v.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.v.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.v.getInitialGuideUserStateOpened=function(){return _.G("web_force_mini_guide_default")?!1:!_.ch().getFlag(109)};
_.Bd.Object.defineProperties(ty.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.uo("initialBodyClientWidth")||window.innerWidth}}});
ty.prototype.onResize=ty.prototype.onResize;ty.prototype.observeForMiniGuideVisible=ty.prototype.observeForMiniGuideVisible;ty.prototype.computeGuidePersistentAndVisible=ty.prototype.computeGuidePersistentAndVisible;ty.prototype.persistentPanelVisibleChanged=ty.prototype.persistentPanelVisibleChanged;ty.prototype.cachedClientWidthChanged=ty.prototype.cachedClientWidthChanged;ty.prototype.resetGuide=ty.prototype.resetGuide;ty.prototype.activeEndpointChanged=ty.prototype.activeEndpointChanged;
ty.prototype.guideOpenedChanged=ty.prototype.guideOpenedChanged;ty.prototype.miniGuideVisibleChanged=ty.prototype.miniGuideVisibleChanged;ty.prototype.guideIsVisibleButNotPersistentChanged=ty.prototype.guideIsVisibleButNotPersistentChanged;ty.prototype.guidePersistentAndVisibleChanged=ty.prototype.guidePersistentAndVisibleChanged;ty.prototype.onGuideElementChanged=ty.prototype.onGuideElementChanged;ty.prototype.onGuidePersistentChanged=ty.prototype.onGuidePersistentChanged;
ty.prototype.onRenderGuideChanged=ty.prototype.onRenderGuideChanged;ty.prototype.onActiveEndpointChanged=ty.prototype.onActiveEndpointChanged;ty.prototype.onMiniGuideVisibleChanged=ty.prototype.onMiniGuideVisibleChanged;ty.prototype.onGuideIsVisibleButNotPersistentChanged=ty.prototype.onGuideIsVisibleButNotPersistentChanged;ty.prototype.onGuidePersistendAndVisibleChanged=ty.prototype.onGuidePersistendAndVisibleChanged;
_.t([_.m(_.Jc),_.B("design:type",Object)],ty.prototype,"ironResizableBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],ty.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],ty.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],ty.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ty.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Boolean)],ty.prototype,"disabled",void 0);_.t([_.u(),_.B("design:type",Boolean)],ty.prototype,"guidePersistentAndVisible",void 0);_.t([_.OY("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"onGuidePersistendAndVisibleChanged",null);_.t([_.u(),_.B("design:type",Boolean)],ty.prototype,"guideIsVisibleButNotPersistent",void 0);
_.t([_.OY("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.t([_.u(),_.B("design:type",Object)],ty.prototype,"miniGuideVisible",void 0);_.t([_.OY("miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"onMiniGuideVisibleChanged",null);_.t([_.u(),_.B("design:type",Boolean)],ty.prototype,"forceMiniGuideClose",void 0);
_.t([_.u(),_.B("design:type",Object)],ty.prototype,"activeEndpoint",void 0);_.t([_.OY("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"onActiveEndpointChanged",null);_.t([_.u(),_.B("design:type",Boolean)],ty.prototype,"renderGuide",void 0);_.t([_.OY("renderGuide"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"onRenderGuideChanged",null);
_.t([_.u({selector:M2O}),_.B("design:type",Boolean)],ty.prototype,"persistentPanelVisible",void 0);_.t([_.u(),_.B("design:type",Object)],ty.prototype,"guideOpened",void 0);_.t([_.u(),_.B("design:type",Boolean)],ty.prototype,"guidePersistent",void 0);_.t([_.OY("guidePersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"onGuidePersistentChanged",null);_.t([_.u(),_.B("design:type",Object)],ty.prototype,"guideUserStateOpened",void 0);
_.t([_.u(),_.B("design:type",String)],ty.prototype,"pageUrl",void 0);_.t([_.u(),_.B("design:type",String)],ty.prototype,"pageType",void 0);_.t([_.u(),_.B("design:type",Number)],ty.prototype,"cachedClientWidth",void 0);_.t([_.u(),_.B("design:type",Object)],ty.prototype,"guideElement",void 0);_.t([_.u({selector:_.QD}),_.B("design:type",Object)],ty.prototype,"isFullscreenShorts",void 0);
_.t([_.OY("guideElement"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"onGuideElementChanged",null);_.t([_.OY("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"guidePersistentAndVisibleChanged",null);
_.t([_.k_("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"guideIsVisibleButNotPersistentChanged",null);_.t([_.OY("miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"miniGuideVisibleChanged",null);_.t([_.k_("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"guideOpenedChanged",null);
_.t([_.OY("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"activeEndpointChanged",null);_.t([_.k_("pageUrl"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"resetGuide",null);_.t([_.k_("cachedClientWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"cachedClientWidthChanged",null);
_.t([_.k_("persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"persistentPanelVisibleChanged",null);_.t([_.OY("guideOpened","guidePersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"computeGuidePersistentAndVisible",null);
_.t([_.k_("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"observeForMiniGuideVisible",null);_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ty.prototype,"onResize",null);_.t([_.bF({disableElementRegistration:!0,is:"yt-guide-manager"})],ty);var COv=_.U(ty,"yt-guide-manager",void 0,{mode:2});var RO0=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"],IJ=new Map;IJ.set(32,59972);IJ.set(27,50765);IJ.set(70,60102);IJ.set(76,60221);IJ.set(77,60222);IJ.set(74,60223);IJ.set(84,60224);IJ.set(38,61941);IJ.set(40,61942);IJ.set(73,62521);IJ.set(67,62522);IJ.set(80,63390);IJ.set(78,63397);IJ.set(75,59972);IJ.set(188,63385);IJ.set(190,63384);IJ.set(36,63387);IJ.set(35,63386);IJ.set(37,63388);
IJ.set(39,63389);IJ.set(79,63423);IJ.set(87,63424);IJ.set(107,63426);IJ.set(109,63425);IJ.set(65,63428);IJ.set(83,63430);IJ.set(68,63429);IJ.set(221,63431);IJ.set(219,63432);IJ.set(97,63439);IJ.set(98,63440);IJ.set(99,63441);IJ.set(100,63442);IJ.set(101,63443);IJ.set(102,63444);IJ.set(103,63445);IJ.set(104,63446);IJ.set(105,63447);var kO=new Map;kO.set(80,63390);kO.set(78,63397);kO.set(188,63400);kO.set(190,63401);kO.set(191,60765);kO.set(13,247917);var nVj=new Map,a4v=new Map;var BM=function(){var e=_.z.apply(this,arguments)||this;e.JSC$21699_keyboardInUse=!1;e.boundHandleCapturedKeydownEvent=function(g){e.handleCapturedKeydownEvent(g)};
return e};
_.Y(BM,_.z);_.v=BM.prototype;_.v.attached=function(){this.listenToDocument(document)};
_.v.listenToDocument=function(e){e.addEventListener("keydown",_.yg(this,this.onKeyDownEvent));e.addEventListener("keyup",_.yg(this,this.onKeyUpEvent));e.addEventListener("mousedown",_.yg(this,this.onMouseDownEvent));_.G("desktop_keyboard_capture_keydown_killswitch")||e.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);e.addEventListener("yt-page-data-updated",_.yg(this,this.onPageUpdate))};
_.v.detached=function(){this.unlistenFromDocument(document)};
_.v.unlistenFromDocument=function(e){e.removeEventListener("keydown",_.yg(this,this.onKeyDownEvent));e.removeEventListener("keyup",_.yg(this,this.onKeyUpEvent));e.removeEventListener("mousedown",_.yg(this,this.onMouseDownEvent));_.G("desktop_keyboard_capture_keydown_killswitch")||e.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);e.removeEventListener("yt-page-data-updated",_.yg(this,this.onPageUpdate))};
_.v.ready=function(){_.Ss().addProvider({provide:_.u7,useValue:this})};
_.v.isKeyBoardInUse=function(){return this.JSC$21699_keyboardInUse};
_.v.handleCapturedKeydownEvent=function(e){if(e.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(e)};
_.v.onMouseDownEvent=function(){this.JSC$21699_keyboardInUse=!1};
_.v.onPageUpdate=function(){if(_.G("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.G("web_shorts_keyboard_shortcut_usage_log")){nVj.clear();for(var e=_.w(IJ),g=e.next();!g.done;g=e.next()){var c=_.w(g.value);g=c.next().value;c=c.next().value;c=_.VF(c);nVj.set(g,c);_.Yn(_.EM(),_.RC(),c)}a4v.clear();e=_.w(kO);for(g=e.next();!g.done;g=e.next())c=_.w(g.value),g=c.next().value,c=c.next().value,c=_.VF(c),a4v.set(g,c),_.Yn(_.EM(),_.RC(),c);_.fA(_.EM(),_.RC(),[].concat(_.KY(a4v.values()),_.KY(nVj.values())));
_.iB(_.EM(),[].concat(_.KY(a4v.values()),_.KY(nVj.values())))}};
_.v.onMiniplayerActiveChange=function(){var e;(e=_.Ss().resolve(_.xt).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(e.document):this.unlistenFromDocument(e.document))};
_.v.ignoreKeyEvent=function(e){if(e.ctrlKey||e.altKey)if(_.G("kevlar_macro_markers_keyboard_shortcut")){if(e.keyCode!==37&&e.keyCode!==39)return!0}else return!0;var g=_.lg(e)||[];return EVD(g)?(_.G("web_button_or_anchor_list_item")&&Wvj(g,e)&&(this.JSC$21699_keyboardInUse=!0),!0):e.defaultPrevented?(JM(e.keyCode,e.shiftKey,this.isShortsPage),!0):e.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(e):!1};
_.v.isSpacebarClick=function(e){var g=e||window.event;var c;g.composedPath&&typeof g.composedPath==="function"?c=g.composedPath():c=g.path;c&&c.length?g=c[0]:(g=g||window.event,g=g.target||g.srcElement,g.nodeType==3&&(g=g.parentNode));return g&&e.keyCode===32&&(e=g.tagName==="BUTTON"||g.tagName==="A"||g.tagName==="INPUT",g=(g=g.getAttribute("role"))&&(g==="option"||g==="button"||g.indexOf("menuitem")===0),e||g)?!0:!1};
_.v.onKeyDownEvent=function(e){if(!this.ignoreKeyEvent(e)&&(e.keyCode===191&&(e.shiftKey||e.metaKey?e.repeat!=null&&e.repeat||(this.openHotkeyDialog(),JM(e.keyCode,e.shiftKey,this.isShortsPage)):(this.focusSearchBox(),e.preventDefault())),!e.metaKey)){var g=_.Ss().resolve(_.xt);switch(e.keyCode){case 9:this.JSC$21699_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(e);break;case 84:g.pipController.getWindow()&&window.focus();this.toggleTheaterMode(e.keyCode,e.shiftKey);break;case 73:g.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(e.keyCode,e.shiftKey);break;case 70:if(this.isShortsPage){oHq();break}this.isMiniplayerActive()?g.pipController.getWindow()&&(g.close(!0),window.focus()):this.passEventToPlayer(e);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(e.keyCode,e.shiftKey):this.closeMiniplayer(e.keyCode,e.shiftKey)||this.passEventToPlayer(e);break;case 13:e.shiftKey&&_.Ss().resolve(_.hE).activate(e);break;default:this.passEventToPlayer(e)}}};
_.v.onKeyUpEvent=function(e){if(!this.ignoreKeyEvent(e))if(_.G("web_speedmaster_spacebar_control")&&e.keyCode===32)this.handlePlayerSpaceKey(e,!0);else{var g=this.getPlayerManager();g&&(g=g.getPlayer())&&g.handleGlobalKeyUp(e.keyCode,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code)}};
_.v.getPlayerManager=function(){var e=_.FE(),g=_.Ss().resolve(_.NN(_.A4));return e&&g&&g.isOnWatch()?e:null};
_.v.passEventToPlayer=function(e,g){var c=this,k,I,J,q;return _.r(function(L){if(L.nextAddress==1){if(!_.G("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&c.isMiniplayerActive())k=_.Ss().resolve(_.xt).getPlayerElement();else if(c.inlinePreviewIsActive){if(I=_.V1(c.hostElement,"yt-get-inline-preview-player-action"),(J=I)==null?0:J[0])k=I[0]}else k=_.FE();return k?L.yield(k.getPlayerPromise(),3):L.jumpTo(0)}q=L.yieldResult;g?q.handleGlobalKeyUp(e.keyCode,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,
e.key,e.code):q.handleGlobalKeyDown(e.keyCode,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code,e.repeat);e.keyCode!==38&&e.keyCode!==40&&JM(e.keyCode,e.shiftKey,c.isShortsPage);_.Uh(L)})};
_.v.focusSearchBox=function(){_.oC(this.hostElement,"yt-focus-searchbox")};
_.v.openHotkeyDialog=function(){_.oC(this.hostElement,"yt-open-hotkey-dialog")};
_.v.isMiniplayerActive=function(){return _.Ss().resolve(_.xt).isMiniplayerActive()};
_.v.closeMiniplayer=function(e,g){return this.isMiniplayerActive()?(_.Ss().resolve(_.xt).close(),JM(e,g,this.isShortsPage),!0):!1};
_.v.toggleTheaterMode=function(e,g){var c=_.nx(_.Tt().getState()),k=this.getPlayerManager(),I=_.G("disable_theater_mode_keyboard")||_.dH("START_IN_FULL_WINDOW_MODE");k&&!I&&(c=!c,_.sM()&&_.G("external_fullscreen")&&(c=!0),_.Z5(this.hostElement,"yt-toggle-theater-mode",[c]),JM(e,g,this.isShortsPage))};
_.v.toggleMiniplayer=function(e,g){var c=this.getPlayerManager();if(this.isMiniplayerActive()){var k;((k=_.Ss().resolve(_.NN(_.A4)))==null?0:k.isOnWatch())?_.Ss().resolve(_.xt).close(!0):_.P8(_.Ss().resolve(_.xt));JM(e,g,this.isShortsPage)}else c&&(_.Z5(this.hostElement,"yt-activate-miniplayer-from-watch-action"),JM(e,g,this.isShortsPage))};
_.v.handlePlayerSpaceKey=function(e,g){var c=!!_.FE()||this.isMiniplayerActive();c=_.G("disable_space_scroll_fix")||c;_.G("global_spacebar_pause")&&!this.isKeyBoardInUse()&&c&&(e.preventDefault(),this.passEventToPlayer(e,g))};
_.v.isPresentingTheaterMode=function(){return _.G("web_watch_enable_tm_esc_key")?_.nx(_.Tt().getState())&&!_.sM():!1};
BM.prototype.onMiniplayerActiveChange=BM.prototype.onMiniplayerActiveChange;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],BM.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],BM.prototype,"ytdReduxBehavior",void 0);_.t([_.u({selector:_.TOC}),_.B("design:type",Boolean)],BM.prototype,"inlinePreviewIsActive",void 0);_.t([_.u({selector:_.ryA}),_.B("design:type",Boolean)],BM.prototype,"isShortsPage",void 0);
_.t([_.u({selector:_.Eo}),_.B("design:type",Boolean)],BM.prototype,"miniplayerIsActive",void 0);_.t([_.OY("miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BM.prototype,"onMiniplayerActiveChange",null);_.t([_.bF({disableElementRegistration:!0,is:"yt-hotkey-manager"})],BM);_.U(BM,"yt-hotkey-manager",void 0,{mode:2});var NK=function(){var e=_.z.apply(this,arguments)||this;e.loopStateEntityKey_=null;e.playlistLoopStateEntity_=null;e.isShuffleNextPlaylist=!1;e.PLAYER_EVENTS_=new Map;e.playerListenersSetup_=!1;e.videoSkipJob_=0;e.canAutoAdvance_=!1;e.playerManager_=null;e.TEST_ONLY={};return e};
_.Y(NK,_.z);_.v=NK.prototype;_.v.ready=function(){_.Ss().addProvider({provide:_.fo,useValue:this.hostElement})};
_.v.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.v.attached=function(){document.addEventListener("yt-navigate-start",_.yg(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.yg(this,this.onYtNavigateFinish_))};
_.v.detached=function(){document.removeEventListener("yt-navigate-start",_.yg(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.yg(this,this.onYtNavigateFinish_))};
_.v.updatePlaylistEventListeners=function(e,g){g&&!this.playerListenersSetup_?(this.playerManager_=e,this.registerPlaylistEventListeners_(e)):!g&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(e))};
_.v.setPlayer=function(e){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=e};
_.v.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.v.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.v.registerPlaylistEventListeners_=function(e){var g=this;e.getPlayerPromise().then(function(c){g.playerListenersSetup_||(g.ytPlayerListenerBehavior.listenToPlayerEvents(c,g.PLAYER_EVENTS_),g.playerListenersSetup_=!0)})};
_.v.removePlaylistEventListeners_=function(e){var g=this;e.getPlayerPromise().then(function(c){g.playerListenersSetup_&&(g.ytPlayerListenerBehavior.unlistenFromPlayerEvents(c,g.PLAYER_EVENTS_),g.playerListenersSetup_=!1)})};
_.v.setPlaylistComponent=function(e){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.yg(this,this.onPlaylistYtNavigate_)),e&&(e.data&&this.playlistComponent.data&&e.data.playlistId==this.playlistComponent.data.playlistId?(e.loopOn=this.playlistComponent.loopOn,e.shuffleOn=this.playlistComponent.shuffleOn):(e.loopOn=!1,e.shuffleOn=!1),this.isShuffleNextPlaylist&&(e.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=e;this.playlistComponent.addEventListener("yt-navigate",
_.yg(this,this.onPlaylistYtNavigate_))};
_.v.setAutoplayRenderer=function(e){this.autoplayData=e};
_.v.setPlaylistData=function(e){this.currentPlaylistData_=e;_.oC(this.hostElement,"yt-playlist-data-updated");_.n0.isEmpty(e)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(e)};
_.v.setPlayerPlaybackControlData=function(e){this.playerManager_&&this.playerManager_.updatePlayerComponents(e.playlistPanelRenderer)};
_.v.getPlaylistData=function(){return this.currentPlaylistData_};
_.v.getTempData_=function(e,g){if(this.playlistComponent==null)return null;e={};this.playlistComponent.shuffleOn&&(e.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(e.loop_on=this.playlistComponent.loopOn);g&&(e.autonav="1",_.Ss().resolve(_.et),g=_.S6(),g>0&&(e.lact=g),this.playerManager_&&(g=this.playerManager_.getPlayer())&&g.shouldSendVisibilityState()&&(g=g.getVisibilityState(),g!=0&&(e.vis=g)));_.G("enable_unknown_lact_fix_on_html5")&&(_.Ss().resolve(_.et),e.lact=
_.S6());return e};
_.v.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.v.setLoopStateEntityKey_=function(e){var g;this.loopStateEntityKey_=((g=this.getPlaylistLoopData_(e))==null?void 0:g.playlistLoopStateEntityKey)||null};
_.v.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.v.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.v.skipVideo=function(){var e=this,g=_.G("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||g)g=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.JC(_.ft,function(){e.onPlaylistNext();e.videoSkipJob_=0},g)};
_.v.cancelVideoSkip=function(){this.videoSkipJob_&&(_.ft.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.v.isInBackground_=function(){var e=window.document.visibilityState;return!(!e||e=="visible")};
_.v.onPlaylistIndex_=function(e){this.playlistComponent&&(e=this.playlistComponent.data.contents[e].playlistPanelVideoRenderer.navigationEndpoint,_.oC(this.hostElement,"yt-navigate",{endpoint:e,tempData:this.getTempData_(e)}))};
_.v.onPlayerStateChange_=function(e){if(e=e==0&&this.playlistComponent&&this.canAutoAdvance_)e=_.up.getInstance(),e=!(e.autonavState_===3?e.autonavPauseReason_&&e.autonavPauseReason_.inputBoxFocus===!0:e.autonavState_===1&&e.disabledAutonavPauseReason_&&e.disabledAutonavPauseReason_.inputBoxFocus===!0);e&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.v.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.v.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.v.navigateToAutoplayWatchEndpoint_=function(e,g,c){var k=this.playlistComponent.data.currentIndex,I=this.getNumPlayableVideos_();e=="NORMAL"&&g=="autoplayVideo"&&k+1>=I&&c||!(e=this.getVideoEndpoint_(e,g))||(c=this.getTempData_(e,c),_.oC(this.hostElement,"yt-navigate",{endpoint:e,tempData:c}))};
_.v.getNumPlayableVideos_=function(){for(var e=0,g=_.w(this.playlistComponent.data.contents||[]),c=g.next();!c.done;c=g.next())c.value.playlistPanelVideoRenderer&&(e+=1);return e};
_.v.getVideoEndpoint_=function(e,g){if(this.autoplayData&&this.autoplayData.sets)for(var c=0,k=this.autoplayData.sets.length;c<k;c++){var I=this.autoplayData.sets[c];if(I.mode==e){if(I[g])return I[g];break}}else e=new _.E2("AutoplayData is undefined in playlist manager","Mode: "+e+" endpoint: "+g),_.mN(e)};
_.v.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.v.onPlaylistYtNavigate_=function(e){if(e.detail.endpoint){e.stopPropagation();var g=e.detail;g.tempData=this.getTempData_(e.detail.endpoint);_.oC(this.hostElement,"yt-navigate",g)}};
_.v.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.v.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.v.playlistLoopStateEntityChanged_=function(e){var g=this,c,k,I;return _.r(function(J){if(J.nextAddress==1){if(!e)return J.return();c=e.state==="PLAYLIST_LOOP_STATE_ONE";return g.playerManager_?J.yield(g.playerManager_.getPlayerPromise(),3):J.jumpTo(2)}J.nextAddress!=2&&(k=J.yieldResult,k.setLoopVideo(c));I=e.state==="PLAYLIST_LOOP_STATE_ALL";g.playlistComponent&&(g.playlistComponent.loopOn=I);_.Uh(J)})};
_.v.getPlaylistLoopData_=function(e){var g,c;if(e=e==null?void 0:(g=e.playlistButtons)==null?void 0:(c=g.menuRenderer)==null?void 0:c.topLevelButtons)for(g=_.w(e),c=g.next();!c.done;c=g.next())if(c=c.value,c.playlistLoopButtonRenderer)return c.playlistLoopButtonRenderer};
_.v.getLoopStateCommand_=function(e){var g=this.getPlaylistData(),c;g=((c=this.getPlaylistLoopData_(g))==null?void 0:c.states)||[];var k;e=(k=_.x(g[e?1:2],_.k4I))==null?void 0:k.button;var I;return(I=_.x(e,_.G_))==null?void 0:I.command};
_.v.onPlayerLoopChange_=function(e){this.playlistLoopStateEntity_&&(e?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(e=this.getLoopStateCommand_(e))&&this.ytComponentBehavior.resolveCommand(e)};
_.v.onSleepTimerSettingsChanged_=function(e){this.canAutoAdvance_=e!=="End of video"};
NK.prototype.onPlaylistLoopStateEntityChanged=NK.prototype.onPlaylistLoopStateEntityChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],NK.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],NK.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],NK.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],NK.prototype,"loopStateEntityKey_",void 0);
_.t([_.u({selectorArgs:["loopStateEntityKey_"],selector:_.Jg.playlistLoopStateEntitySelector}),_.B("design:type",Object)],NK.prototype,"playlistLoopStateEntity_",void 0);_.t([_.OY("playlistLoopStateEntity_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NK.prototype,"onPlaylistLoopStateEntityChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"yt-playlist-manager"})],NK);_.U(NK,"yt-playlist-manager",void 0,{mode:2});var eMj,g7S=function(){if(eMj!==void 0)return eMj;var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return eMj=e};var Sj=function(){var e=_.z.apply(this,arguments)||this;e.lastCallback=null;e.getAccountLinkPromises={};e.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);e.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return e};
_.Y(Sj,_.z);_.v=Sj.prototype;_.v.getLocation=function(){return window.location.href};
_.v.getCompletionUrl=function(){return _.NO(this.getLocation())};
_.v.containsRedirectState=function(e){return(e=_.Zb(_.S5p(e)))?(new URLSearchParams(e)).get("redirect_state")!==null:!1};
_.v.createGalConfig=function(e,g){var c=new iPO;e=c=g?this.getPopupOrRedirectSetting(c,_.uo("LINK_API_KEY"),_.uo("LINK_API_KEY_REDIRECT"),e):Pp0(c,_.uo("LINK_API_KEY"));e.authUser=_.uo("SESSION_INDEX")||0;e.supportedFlows=new Set([4]);return e.build()};
_.v.getPopupOrRedirectSetting=function(e,g,c,k){this.isGalInteractionPopupMode(k)?(e.interactionMode=0,e=Pp0(e,g)):(e.interactionMode=1,g=this.getCompletionUrl(),e.completionUrl=g,e=Pp0(e,c));return e};
_.v.isGalInteractionPopupMode=function(e){if(this.redirectModeProviderAllowlist.has(e))switch(e){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.v.getStatusEntityKeyForProviderId=function(e){return _.Bh(e+":all","accountLinkStatusEntity")};
_.v.findNestedPropValue=function(e,g){var c=!1,k=null;JSON.stringify(e,function(I,J){c||I!==g||(c=!0,k=J);return c?null:J});
return k};
_.v.findAccountLinkButtonViewModel=function(e,g){var c=null,k=!1;JSON.stringify(e,function(I,J){k||J.accountLinkStatusEntityKey!==g||J.accountLinkStatusSecondaryEntityKey||(k=!0,c=J);return k?null:J});
return c};
_.v.executeLinkingSuccessOrFailureCommands=function(e,g,c){var k=null,I;(g==null?0:(I=g.url)==null?0:I.includes("account_sharing"))?k=g==null?void 0:g.response:k=g==null?void 0:g.response;(g=this.findAccountLinkButtonViewModel(k,e))?(e=c?this.findNestedPropValue(g,"onSuccessCommand"):this.findNestedPropValue(g,"onFailureCommand"))?_.y1([e],this.hostElement):_.UI(Error("Zl")):_.UI(Error("$l`"+e))};
_.v.handleInitializeRequest=function(e,g){var c=this,k=thl(this.createGalConfig(e,!0));this.containsRedirectState(this.getLocation())?Q17(e,k.config,k.galService).then(function(I){var J=c.getStatusEntityKeyForProviderId(e);if(I.statusCode===1)g&&c.executeLinkingSuccessOrFailureCommands(J,g,!0),I=c.getLocation().indexOf("#"),I!==-1&&window.history.pushState(null,"",c.getLocation().substring(0,I));else return g&&c.executeLinkingSuccessOrFailureCommands(J,g,!1),Promise.reject(Error(I.statusMessage))}).catch(function(I){_.mN(I);
_.Y2("gamingAccountLinkStatusChanged",{serviceId:e,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(I)}):this.getAccountLinkPromises[e]=k.startLinkingSession({serviceId:e})};
_.v.handleAccountLinkCommand=function(e){_.x(e,tdv)&&this.handleLinkRequest(_.x(e,tdv))};
_.v.handleLinkRequest=function(e){var g=this,c=e.thirdPartyId;if(c)if(this.isGalInteractionPopupMode(c)){var k=function(){g.closeAndFire("ytd-gaming-account-link-setting-renderer",e.onFailureCommand)},I=function(){g.closeAndFire("ytd-gaming-account-link-setting-renderer",e.onSuccessCommand)};
this.lastCallback=I;this.getAccountLinkPromises[c].then(function(J){qH0(J).then(function(q){q.statusCode===1?I():k()})}).catch(function(){k()})}else this.getAccountLinkPromises[c].then(function(J){qH0(J).then(function(q){if(q.statusCode!==1)return Promise.reject(Error(q.statusMessage))})}).catch(function(J){_.mN(J);
_.Y2("gamingAccountLinkStatusChanged",{serviceId:c,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(J)})};
_.v.closeAndFire=function(e,g){_.Z5(this.hostElement,"yt-close-popup-action",[e]);g&&_.y1([g],this.hostElement)};
_.v.handleAccountUnlinkCommand=function(e){_.x(e,BRM)&&this.handleUnlinkRequest(_.x(e,BRM))};
_.v.handleUnlinkRequest=function(e){var g=this,c=e.thirdPartyId;if(c){var k=function(){g.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",e.onFailureCommand)},I=function(){g.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",e.onSuccessCommand)};
this.lastCallback=I;var J=thl(this.createGalConfig(c,!1));this.unlinkUserGal(J,c).then(function(q){q.statusCode===1?I():k()}).catch(function(){k()})}};
_.v.unlinkUserGal=function(e,g){return e.deleteLink(g)};
_.v.handleLogAccountLinkingEventCommand=function(e){_.G("enable_gel_log_commands")&&_.x(e,iWO)&&(e=_.x(e,iWO).event)&&_.Y2("gamingAccountLinkStatusChanged",e)};
_.Bd.Object.defineProperties(Sj,{template:{configurable:!0,enumerable:!0,get:function(){return g7S()}}});
_.t([_.m(_.tF.YtOpenPopupBehavior),_.B("design:type",Object)],Sj.prototype,"ytOpenPopupBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Sj.prototype,"ytActionHandlerBehavior",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Sj);_.U(Sj,"ytd-third-party-manager",function(){return g7S()},{mode:2});var cBM=2/3,kf7=_.VF(130749),Ipx=function(e,g){var c=this;this.element=e;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){c.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:cBM,moveAction:function(k){c.moveAction(k)},
triggerAction:function(){c.element.isReloading=!0;_.$y(_.gL(),{visualElement:kf7});_.yJ.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:c.element}})}}}};
_.SD(_.gL(),kf7,this.layer);this.gesture=new zQ(e,g,this.refreshConfig,"pan-down");this.attach()};
_.v=Ipx.prototype;_.v.attach=function(){this.gesture.attach()};
_.v.detach=function(){this.gesture.detach()};
_.v.reset=function(){this.element.close()};
_.v.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.v.moveAction=function(e){this.element.rotation=e*360};var JBg=_.VF(130750),wDM=function(e,g,c,k,I){var J=this;this.element=e;this.parent=c;this.channelHeader=k;this.ytdReduxDispatch=I;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){J.tabsStartAtInPx=J.channelHeader.clientHeight-48;var q;(q=J.selectedTab)!=null&&q.title&&(q=_.Ss().resolve(_.NN(_.A4)))&&(q=q.getCurrentPage(),J.lastVisitedTabScrollPosition=q.getScrollTop(),J.previousTab&&
((J.lastVisitedTabScrollPosition===void 0?0:J.lastVisitedTabScrollPosition<J.channelHeader.clientHeight-48)?J.scrollPositionForTabs.has(J.selectedTab.title)&&J.scrollPositionForTabs.delete(J.selectedTab.title):J.scrollPositionForTabs.set(J.selectedTab.title,q.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:v7z(),triggerAction:function(){J.navigate(J.previousTab)},
moveAction:function(q,L){J.moveAction(q,L)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-v7z(),triggerAction:function(){J.navigate(J.nextTab)},
moveAction:function(q,L){J.moveAction(q,L)}}}};
_.SD(_.gL(),JBg,this.layer);this.gesture=new zQ(e,g,this.tabConfig);this.attach()};
_.v=wDM.prototype;_.v.attach=function(){this.gesture.attach()};
_.v.detach=function(){this.gesture.detach()};
_.v.tabsChanged=function(e){if(e){var g=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;e=_.w(e);for(var c=e.next();!c.done;c=e.next()){c=c.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=c);var k=void 0;if((k=c)==null?0:k.selected)this.previousTab=g,this.selectedTab=c;g=c}g=this.gesture;e=this.getConfig();g.config=e;this.scrollPositionNeedsUpdate=!0}};
_.v.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.v.moveAction=function(e,g){if(!this.tabsElement){var c;this.tabsElement=(c=this.parent.header)==null?void 0:c.tabsElement;g==="right"&&this.previousTab?(c=this.previousTab.endpoint,_.O0o(_.Ss().resolve(_.rl),c,{},"")):g==="left"&&this.nextTab&&(c=this.nextTab.endpoint,_.O0o(_.Ss().resolve(_.rl),c,{},""));if(!this.tabsElement)return}c=this.tabsElement._pos;g==="right"&&(e*=-1);this.tabsElement._positionBar(c.width,c.left*1+c.width*e)};
var v7z=function(){var e,g;return(g=(e=_.Ss().resolve(_.A4).getCurrentPage())==null?void 0:e.clientWidth)!=null?g:0};
wDM.prototype.navigate=function(e){this.element.data=void 0;if(e=e==null?void 0:e.endpoint)this.ytdReduxDispatch(ZzM(!0)),_.$y(_.gL(),{visualElement:JBg}),_.yJ.instance.resolveCommand({navigateAction:{endpoint:e}},{form:{element:this.element}})};var qDO;var Lr0;var yT=function(){var e=_.z.apply(this,arguments)||this;e.rotation=0;e.isReloading=!1;return e};
_.Y(yT,_.z);yT.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
yT.prototype.reset=function(){this.hostElement.style.opacity=""};
yT.prototype.close=function(){var e=this;return _.r(function(g){if(g.nextAddress==1)return g.yield(e.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);e.hostElement.style.opacity="0";_.Uh(g)})};
yT.prototype.rotationChanged=yT.prototype.rotationChanged;_.t([_.u(),_.B("design:type",Object)],yT.prototype,"rotation",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],yT.prototype,"isReloading",void 0);_.t([_.Cs("#icon"),_.B("design:type",HTMLElement)],yT.prototype,"icon",void 0);_.t([_.OY("rotation"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yT.prototype,"rotationChanged",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-refresh"})],yT);
_.U(yT,"ytd-refresh",function(){if(Lr0!==void 0)return Lr0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Lr0=e},{mode:1});var rBj;var Ke=function(){var e=_.z.apply(this,arguments)||this;e.useRaf=!_.G("web_use_raf_app_header_layout_killswitch");return e};
_.Y(Ke,_.z);Ke.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"}}}};
Ke.prototype.dataChanged=function(){if(this.data){var e=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var g=_.F6(this.data.banner.thumbnails,this.hostElement.clientWidth);g&&(g.indexOf("//")===0&&(g="https:"+g),this.hasBannerArt=!0,_.Nk(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+g+")"}))}this.hasBannerArt!==e&&_.o1(this.hostElement).querySelector("#header").fire("iron-resize")}};
Ke.prototype.updateSelectedFromBinding=function(e){this.selected=e.detail.value};
Ke.prototype.dataChanged=Ke.prototype.dataChanged;_.t([_.m(clv),_.B("design:type",Object)],Ke.prototype,"ytdTabbedHeaderBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Gd),_.B("design:type",Object)],Ke.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Ke.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Ke.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ke.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Number)],Ke.prototype,"selected",void 0);_.t([_.u(),_.B("design:type",Boolean)],Ke.prototype,"active",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ke.prototype,"hasBannerArt",void 0);_.t([_.u(),_.B("design:type",Object)],Ke.prototype,"useRaf",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ke.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Ke);
_.U(Ke,"ytd-interactive-tabbed-header-renderer",function(){if(rBj!==void 0)return rBj;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return rBj=e},{mode:1});var apS;var Op=function(){return _.z.apply(this,arguments)||this};
_.Y(Op,_.z);Op.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Op.prototype.computeActionsAlignment=function(e){return(e==null?void 0:e.actionsAlignment)||""};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Op.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Op.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.B("design:type",String)],Op.prototype,"actionsAlignment",void 0);
_.t([_.bF({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Op);
_.U(Op,"ytd-page-footer-renderer",function(){if(apS!==void 0)return apS;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return apS=e},{mode:1});var n7O;var RMD;var MK=function(){var e=_.z.apply(this,arguments)||this;e.isEditing=!1;e.useSlot=!1;e.isMultiline=!1;return e};
_.Y(MK,_.z);_.v=MK.prototype;_.v.onKeydown=function(e){if(e.keyCode===13&&!this.isMultiline)this.onSave();else if(e.keyCode===27)this.onCancel()};
_.v.computeComponentStyle=function(e){return(e==null?0:e.style)?e.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.v.computeisMultiline=function(e){if(this.multilineOverride!==void 0)return this.multilineOverride;var g,c;return!!(e==null?0:(g=e.formField)==null?0:(c=g.textInputFormFieldRenderer)==null?0:c.isMultiline)};
_.v.computeTextDisplayed=function(e,g){if(e)return e;if(g)return g};
_.v.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.v.onSave=function(){if(this.textForm.validate()){this.textForm.save();var e=this.textForm.value;if(e)this.set("data.textDisplayed",_.PL(e));else{var g;((g=this.data)==null?0:g.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.PF("inline-form-changed",this.data));this.isEditing=!1}};
_.v.onCancel=function(){var e=_.mp(this.data.textDisplayed);e===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(e);this.isEditing=!1};
MK.prototype.onKeydown=MK.prototype.onKeydown;_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],MK.prototype,"ytEventForwardingBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],MK.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],MK.prototype,"isEditing",void 0);_.t([_.u(),_.B("design:type",Object)],MK.prototype,"useSlot",void 0);_.t([_.u(),_.B("design:type",Boolean)],MK.prototype,"multilineOverride",void 0);_.t([_.u(),_.B("design:type",Boolean)],MK.prototype,"enableOverlayTheme",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.B("design:type",String)],MK.prototype,"componentStyle",void 0);
_.t([_.u({computed:"computeisMultiline(data)"}),_.B("design:type",Object)],MK.prototype,"isMultiline",void 0);_.t([_.Cs("#text-form"),_.B("design:type",Object)],MK.prototype,"textForm",void 0);_.t([_.Ks("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],MK.prototype,"onKeydown",null);_.t([_.bF({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],MK);
_.U(MK,"ytd-inline-form-renderer",function(){if(RMD!==void 0)return RMD;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return RMD=e},{mode:1});var E7x;var Ce=function(){var e=_.z.apply(this,arguments)||this;e.previousSelectValue=void 0;e.selectedItemMessage=void 0;return e};
_.Y(Ce,_.z);Ce.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Ce.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var e,g,c,k,I=(e=this.data)==null?void 0:(g=e.dropdown)==null?void 0:(c=g.dropdownRenderer)==null?void 0:(k=c.entries)==null?void 0:k.map(function(L){return L.privacyDropdownItemRenderer});
e=_.w(I!=null?I:[]);for(g=e.next();!g.done;g=e.next())if((g=g.value)&&g.int32Value===this.selectedValue){this.selectedItemMessage=g.itemMessage;break}}else this.selectedItemMessage=void 0;var J;(J=this.onValueChanged)==null||J.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var q;(q=this.data)!=null&&q.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Ce.prototype.onValueChangedForSelectedValue=function(e){this.selectedValue=e.detail.value};
Ce.prototype.selectedValueChanged=Ce.prototype.selectedValueChanged;_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],Ce.prototype,"ytEventForwardingBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Ce.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ce.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],Ce.prototype,"theme",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Number)],Ce.prototype,"selectedValue",void 0);_.t([_.u(),_.B("design:type",Function)],Ce.prototype,"onValueChanged",void 0);
_.t([_.k_("selectedValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ce.prototype,"selectedValueChanged",null);_.t([_.bF({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Ce);
_.U(Ce,"ytd-dropdown-form-field-renderer",function(){if(E7x!==void 0)return E7x;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return E7x=e},{mode:2});var WrQ;var eH=function(){return _.z.apply(this,arguments)||this};
_.Y(eH,_.z);_.Bd.Object.defineProperties(eH.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var e=[],g=_.w(this.data||[]),c=g.next();!c.done;c=g.next())(c=_.x(c.value,nPz))&&e.push(c);return e}}});
_.t([_.u(),_.B("design:type",Array)],eH.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],eH.prototype,"byline",null);_.t([_.bF({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],eH);
_.U(eH,"ytd-playlist-byline-renderer",function(){if(WrQ!==void 0)return WrQ;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return WrQ=e},{mode:1});var bIz;var gw=function(){var e=_.z.apply(this,arguments)||this;e.rtlBullet=_.G("web_playlist_stats_rtl_bullet_icon_killswitch");e.modern=_.G("web_modern_buttons");e.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return e};
_.Y(gw,_.z);_.v=gw.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.v.attached=function(){};
_.v.computeIsCustomThumbnail=function(e){return e?!!e.playlistCustomThumbnailRenderer:!1};
_.v.onYtNavigate=function(e,g){if(g&&g.actions&&g.actions.indexOf("shuffle")>-1){e=_.Ss().resolve(_.fo);var c=g.tempData||{};c.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);g.tempData=c;e.isShuffleNextPlaylist=!0}};
_.v.onUpdatePlaylistAction=function(e){var g;e=(g=_.x(e,_.hDw))==null?void 0:g.updatedRenderer;if(g=_.x(e,TRg))this.data=g};
_.v.computeStyleType=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.v.computeThumbnailWidth=function(e){return e==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.v.computeHideThumbnailAria=function(e){if(e==null?0:e.thumbnailOverlays)for(var g=0;g<e.thumbnailOverlays.length;g++){var c=void 0;if((c=e.thumbnailOverlays[g])==null?0:c.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
gw.prototype.onYtNavigate=gw.prototype.onYtNavigate;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],gw.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],gw.prototype,"ytComponentBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],gw.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gw.prototype,"rtlBullet",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.B("design:type",String)],gw.prototype,"styleType",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],gw.prototype,"thumbnailWidth",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gw.prototype,"modern",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.B("design:type",Boolean)],gw.prototype,"isCustomThumbnail",void 0);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],gw.prototype,"onYtNavigate",null);_.t([_.bF({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],gw);
_.U(gw,"ytd-playlist-sidebar-primary-info-renderer",function(){if(bIz!==void 0)return bIz;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return bIz=e},{mode:1});var hMM;var c3=function(){return _.z.apply(this,arguments)||this};
_.Y(c3,_.z);c3.prototype.computeOwnerVisibility=function(e){return!(!e.videoOwner&&!e.button)};
c3.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],c3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],c3.prototype,"data",void 0);_.t([_.bF({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],c3);
_.U(c3,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(hMM!==void 0)return hMM;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return hMM=e},{mode:1});var XDM;var ki=function(){var e=_.z.apply(this,arguments)||this;e.expanded=!1;e.isCompact=!1;return e};
_.Y(ki,_.z);_.v=ki.prototype;_.v.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.v.dataChanged=function(){this.data&&_.WA(_.o1(this.text),_.j4w(_.mau,_.mp(this.data.text||null)))};
_.v.computeAutoScrollEnabled=function(e,g){return e&&!g};
_.v.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.v.toggleOnTap=function(){this.expanded=!this.expanded};
ki.prototype.expandedChanged=ki.prototype.expandedChanged;ki.prototype.dataChanged=ki.prototype.dataChanged;_.t([_.m(v4S),_.B("design:type",Object)],ki.prototype,"ytdAutoScrollBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ki.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ki.prototype,"expanded",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ki.prototype,"isCompact",void 0);_.t([_.u({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.B("design:type",Boolean)],ki.prototype,"autoScrollEnabled",void 0);_.t([_.Cs("#text"),_.B("design:type",Object)],ki.prototype,"text",void 0);_.t([_.Cs("#expander-icon"),_.B("design:type",Object)],ki.prototype,"expanderIcon",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ki.prototype,"dataChanged",null);_.t([_.OY("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ki.prototype,"expandedChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],ki);
_.U(ki,"ytd-channel-legal-info-renderer",function(){if(XDM!==void 0)return XDM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return XDM=e},{mode:1});var Gfz;var xJD=_.C_("DOWNLOAD",{},"Download"),DJ7=_.C_("DOWNLOADING",{},"Downloading"),$Jo=_.C_("DOWNLOADED",{},"Downloaded"),IK=function(){var e=_.z.apply(this,arguments)||this;e.downloadProgress=0;e.isDownloadComplete=!1;e.transferState="TRANSFER_STATE_UNKNOWN";return e};
_.Y(IK,_.z);_.v=IK.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.dataChanged=function(){var e;(e=this.data)!=null&&e.tooltip||(e=_.Xi(_.Tt().getState(),this.playlistId),this.updateButtonState(e))};
_.v.computePlaylistId=function(e){return e};
_.v.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.v.updateButtonState=function(e){if(this.data&&(this.data.tooltip!==DJ7||!_.cL(e))){this.isDownloadComplete=!1;switch(e){case "TRANSFER_STATE_UNKNOWN":e=xJD;var g="OFFLINE_DOWNLOAD";var c="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":e=$Jo;g="OFFLINE_PIN";c="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":e=DJ7;g="OFFLINE_DOWNLOADING_ZERO";c="ACTION_REMOVE_WITH_PROMPT";
break;default:e=xJD,g="OFFLINE_DOWNLOAD",c="ACTION_ADD"}var k=Object.assign({},this.data);k.tooltip=e;k.accessibilityData={accessibilityData:{label:e}};k.icon={iconType:g};k.size="SIZE_DEFAULT";_.x(k.command,_.Kx)&&(_.x(k.command,_.Kx).action=c);this.set("data",k)}};
_.v.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var e="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?e="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?e="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?e="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?e="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?e="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(e="OFFLINE_PIN",this.isDownloadComplete=!0);var g;e!==((g=this.data.icon)==null?void 0:g.iconType)&&(g=Object.assign({},this.data),g.tooltip=DJ7,g.accessibilityData={accessibilityData:{label:DJ7}},g.icon={iconType:e},_.x(g.command,_.Kx)&&(_.x(g.command,_.Kx).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",g))}};
IK.prototype.updateProgress=IK.prototype.updateProgress;IK.prototype.onTransferStateChanged=IK.prototype.onTransferStateChanged;IK.prototype.dataChanged=IK.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],IK.prototype,"ytdReduxBehavior",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],IK.prototype,"forceIconButton",void 0);
_.t([_.u({value:!0}),_.B("design:type",Boolean)],IK.prototype,"forceIconOnly",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],IK.prototype,"overrides",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],IK.prototype,"buttonTooltipPosition",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],IK.prototype,"styleActionButton",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],IK.prototype,"disableTextTransform",void 0);
_.t([_.u({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.B("design:type",String)],IK.prototype,"playlistId",void 0);_.t([_.u(),_.B("design:type",Object)],IK.prototype,"data",void 0);_.t([_.u({selector:_.QGz,selectorArgs:["playlistId"]}),_.B("design:type",Object)],IK.prototype,"downloadProgress",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],IK.prototype,"isDownloadComplete",void 0);
_.t([_.u({selector:_.Xi,selectorArgs:["playlistId"]}),_.B("design:type",String)],IK.prototype,"transferState",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],IK.prototype,"showTooltips",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],IK.prototype,"sendCommandWhenDisabled",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],IK.prototype,"disabled",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IK.prototype,"dataChanged",null);_.t([_.k_("transferState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IK.prototype,"onTransferStateChanged",null);_.t([_.k_("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IK.prototype,"updateProgress",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],IK);
_.U(IK,"ytd-download-playlist-button-renderer",function(){if(Gfz!==void 0)return Gfz;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Gfz=e},{mode:1});var YDq;_.sL(_.cyw,"thumbnail-overlay-button-view-model",{props:{data:_.jx,lockupExperiments:_.jx}});var JY=function(){var e=_.z.apply(this,arguments)||this;e.isSquare=!1;e.isVertical=!1;return e};
_.Y(JY,_.z);JY.prototype.computeIsSquare=function(e){return e!=null&&e.thumbnail?SV0(e.thumbnail)==="SQUARE":!1};
JY.prototype.computeIsVertical=function(e){return e!=null&&e.thumbnail?SV0(e.thumbnail)==="VERTICAL":!1};
JY.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.B("design:type",Object)],JY.prototype,"isSquare",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.B("design:type",Object)],JY.prototype,"isVertical",void 0);
_.t([_.u(),_.B("design:type",Object)],JY.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],JY);
_.U(JY,"ytd-hero-playlist-thumbnail-renderer",function(){if(YDq!==void 0)return YDq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return YDq=e},{mode:1});var v3=function(){var e=_.z.apply(this,arguments)||this;e.isDarkTheme=!1;e.isUltraWide=!1;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return e};
_.Y(v3,_.z);_.v=v3.prototype;_.v.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.Ss();var e;(e=_.Ss().resolve(_.NN(_.ni)))!=null&&(e.headerElement=this.hostElement)};
_.v.detached=function(){var e;(e=_.Ss().resolve(_.NN(_.ni)))!=null&&(e.headerElement=void 0)};
_.v.onUpdateHeader=function(e){(e=e.detail)&&this.set("data",e)};
_.v.computeTextDisplayed=function(e){if(e)return e.textDisplayed?e.textDisplayed:e.placeholder};
_.v.gradientColorToLinearGradientStop=function(e){var g=this.isDarkTheme?e.darkThemeColor:e.lightThemeColor;return g?_.EY(g)+" "+((e==null?void 0:e.startLocation)||0)*100+"%":"transparent"};
_.v.onWindowResize=function(){var e;((e=this.data)==null?0:e.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.v.onIronResize=function(e){this.isUltraWide=!e.detail.value};
_.v.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.v.onUpdatePlaylistName=function(e){var g=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},e.detail.value));_.Va(this,function(){var c;(c=g.editableTitle)==null||c.resize()})};
_.v.onUpdatePlaylistDescription=function(e){var g=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},e.detail.value));_.Va(this,function(){var c;(c=g.editableDescriptionInlineExpander)==null||c.resize()})};
_.v.getCinematicData=function(e){return _.x(e==null?void 0:e.cinematicContainer,nN)};
_.Bd.Object.defineProperties(v3.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 e,g=(e=this.getCinematicData(this.data))==null?void 0:e.config;return(e=this.isDarkTheme?g==null?void 0:g.darkThemeBackgroundColor:g==null?void 0:g.lightThemeBackgroundColor)?"background-color:"+_.R1(e)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var e;return _.x((e=this.data)==null?void 0:e.descriptionForm,PX7)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var e=this,g,c,k;return"background:linear-gradient(to bottom, "+(((k=(g=this.getCinematicData(this.data))==null?void 0:(c=g.gradientColorConfig)==null?void 0:c.map(function(I){return e.gradientColorToLinearGradientStop(I)}))==null?void 0:k.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var e;return _.mp((e=this.data)==null?void 0:e.descriptionTapText)}}});
v3.prototype.onUpdateHeader=v3.prototype.onUpdateHeader;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],v3.prototype,"actionHandlerBehavior",void 0);_.t([_.Cs("#description-inline-expander"),_.B("design:type",Object)],v3.prototype,"descriptionInlineExpander",void 0);
_.t([_.Cs("#editable-description-inline-expander"),_.B("design:type",Object)],v3.prototype,"editableDescriptionInlineExpander",void 0);_.t([_.u(),_.B("design:type",Object)],v3.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],v3.prototype,"isUltraWide",void 0);_.t([_.Cs("#editable-title-display"),_.B("design:type",Object)],v3.prototype,"editableTitle",void 0);_.t([_.p("isUltraWide"),_.B("design:type",Object),_.B("design:paramtypes",[])],v3.prototype,"maxDescriptionLines",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],v3.prototype,"noCinematicData",null);_.t([_.Ks("yt-new-playlist-header"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],v3.prototype,"onUpdateHeader",null);_.t([_.p("data","isDarkTheme"),_.B("design:type",Object),_.B("design:paramtypes",[])],v3.prototype,"backgroundStyle",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],v3.prototype,"descriptionFormData",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],v3.prototype,"getDropdownTheme",null);_.t([_.p("data","isDarkTheme"),_.B("design:type",String),_.B("design:paramtypes",[])],v3.prototype,"gradientStyle",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],v3.prototype,"descriptionTapText",null);
_.t([_.bF({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],v3);
_.U(v3,"ytd-playlist-header-renderer",function(){if(n7O!==void 0)return n7O;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return n7O=e},{mode:2});var fpo;var jpo;var ww=function(){return _.z.apply(this,arguments)||this};
_.Y(ww,_.z);ww.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ww.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ww.prototype,"data",void 0);_.t([_.bF({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],ww);
_.U(ww,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(jpo!==void 0)return jpo;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return jpo=e},{mode:1});var qI=function(){return _.z.apply(this,arguments)||this};
_.Y(qI,_.z);
qI.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}}}}};
qI.prototype.computeUsePremiumShowStyle=function(e){if(!e||!e.items)return!1;for(var g=0;g<e.items.length;g++)if(_.x(e.items[g],TRg)){var c=void 0;return((c=_.x(e.items[g],TRg))==null?void 0:c.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],qI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qI.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.B("design:type",Boolean)],qI.prototype,"usePremiumShowStyle",void 0);
_.t([_.bF({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],qI);
_.U(qI,"ytd-playlist-sidebar-renderer",function(){if(fpo!==void 0)return fpo;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return fpo=e},{mode:1});var iIg;var P5S;var mJD=function(e,g,c,k,I,J,q,L){this.minWidth=e;this.minHeight=g;this.recommendedWidth=c;this.recommendedHeight=k;this.JSC$21774_maxFileSize=I;this.title=J;this.bannerGalleryTitle=q;this.channelId=L;this.picker_=null;e=_.JpK("yt-banner");g=e.addView;c=(new mwj("youtubebanner")).addUploadMetadata("silo_id","19");c.opts.ytMaxFileSize=this.JSC$21774_maxFileSize;k=this.recommendedHeight;c.opts.ytRecWidth=this.recommendedWidth;c.opts.ytRecHeight=k;g.call(e,c);e.addView(new _.Lw);g=e.addView;c=new _.Lw;
c.opts.type="ytbanner";g.call(e,c.JSC$10384_setLabel(this.bannerGalleryTitle));g=e.setTitle(this.title).setSize(1E3);g.urlParamMap_.set("thumbs","orig");c=this.minWidth;k=this.minHeight;if(isNaN(c)||isNaN(k))throw Error("ib`"+c+"`"+k);g.urlParamMap_.set("minSize",c+"x"+k);g.urlParamMap_.set("cropMode","ytcb");this.builder_=e};
mJD.prototype.open=function(){var e=this;return new _.Il(function(g,c){_.VXI(e.builder_,function(k){k.action=="picked"?g(k):k.action=="cancel"&&c(Error("am"))});
e.picker_&&e.picker_.dispose();e.picker_=e.builder_.build();e.picker_.setVisible(!0)})};
mJD.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var pDv=function(e){this.channelId=e};
pDv.prototype.upload=function(e){var g="";e.viewToken&&(g=e.viewToken[2].type);var c=e.docs[0];e=c.crop;g={channel_id:this.channelId,fife_url:c.thumbnails[0].url,photo_id:c.id,is_gallery_image:g=="ytbanner"};e&&(g.crop_top=e.top,g.crop_right=e.right,g.crop_bottom=e.bottom,g.crop_left=e.left);return _.QpK("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:g})};var LD=function(){var e=_.z.apply(this,arguments)||this;e.ariaLabel=null;return e};
_.Y(LD,_.z);_.v=LD.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.detached=function(){this.picker&&this.picker.dispose()};
_.v.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.v.computeAriaLabel=function(e){return e};
_.v.onTap=function(){var e=this,g;if((g=this.data)==null||!g.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new mJD(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 c;(c=this.picker)==null||c.open().then(function(k){e.handleBannerPicked(k)},function(){})}};
_.v.handleBannerPicked=function(e){var g=this;this.uploader||(this.uploader=new pDv(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(e).then(function(c){g.handleBannerUploadSucceeded(c)},function(c){g.handleBannerUploadFailed(c)})};
_.v.handleBannerUploadSucceeded=function(e){e&&e.errors?this.handleBannerUploadFailed(e):(_.oC(this.hostElement,"yt-banner-updated",e),this.message=null)};
_.v.handleBannerUploadFailed=function(e){this.message=e&&e.errors&&e.errors.length?e.errors[0]:null};
LD.prototype.dataChanged=LD.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],LD.prototype,"componentBehavior",void 0);_.t([_.m(_.qx),_.B("design:type",Object)],LD.prototype,"ironButtonState",void 0);_.t([_.u(),_.B("design:type",Object)],LD.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.B("design:type",Object)],LD.prototype,"ariaLabel",void 0);
_.t([_.u(),_.B("design:type",Object)],LD.prototype,"message",void 0);_.t([_.u(),_.B("design:type",Object)],LD.prototype,"picker",void 0);_.t([_.u(),_.B("design:type",Object)],LD.prototype,"uploader",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LD.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],LD);
_.U(LD,"ytd-channel-banner-editor-renderer",function(){if(P5S!==void 0)return P5S;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return P5S=e},{mode:1});var TTj;var lpX=_.Ti(["#"]),rw=function(){return _.z.apply(this,arguments)||this};
_.Y(rw,_.z);rw.prototype.computeHrefWithDefault=function(e){return this.ytComponentBehavior.computeHref_(e,!0)||_.fEe(lpX)};
rw.prototype.dataChanged=function(){var e=this.data;e&&e.targetId&&_.OH(_.MG(),e.targetId,this.moreIcon)};
rw.prototype.dataChanged=rw.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],rw.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],rw.prototype,"data",void 0);_.t([_.Cs("#more-icon"),_.B("design:type",Object)],rw.prototype,"moreIcon",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rw.prototype,"dataChanged",null);
_.t([_.bF({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],rw);
_.U(rw,"ytd-channel-tagline-renderer",function(){if(TTj!==void 0)return TTj;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return TTj=e},{mode:1});var ABD;var aK=function(){return _.z.apply(this,arguments)||this};
_.Y(aK,_.z);_.v=aK.prototype;_.v.ready=function(){var e=this;_.o1(this.hostElement).querySelector("#form").addEventListener("submit",function(g){e.onSubmit(g)})};
_.v.onDataChanged=function(){var e;((e=this.data)==null?0:e.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.v.onIconButtonKeydown=function(e){e.keyCode===13&&this.iconButton.click()};
_.v.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.v.openOnClickHandler=function(){this.input.focus()};
_.v.onSubmit=function(e){e.preventDefault();return!1};
_.v.submitOnEnterKeyUp=function(e){var g;if(e.keyCode===13&&((g=this.data)==null?0:g.expandedText)){e=this.data.endpoint;g=_.n0.unsafeClone(e);var c;((c=_.x(g==null?void 0:g.commandMetadata,_.OM))==null?0:c.url)?(_.x(g.commandMetadata,_.OM).url=_.cH(_.x(g.commandMetadata,_.OM).url,"query",this.data.expandedText),_.x(g,_.KU)&&(_.x(g,_.KU).query=this.data.expandedText),_.oC(this.hostElement,"yt-navigate",{endpoint:g,tempData:{disableCache:!0}})):(c=new _.E2("Error: Trying to navigate to an endpoint without url",
e),_.jW(c))}};
_.v.updateDataExpandedTextFromBinding=function(e){this.set("data.expandedText",e.detail.value)};
_.Bd.Object.defineProperties(aK.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.G("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
aK.prototype.onDataChanged=aK.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.t([_.m(qFM),_.B("design:type",Object)],aK.prototype,"ytdExpandableInputBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],aK.prototype,"data",void 0);_.t([_.Cs("#input"),_.B("design:type",Object)],aK.prototype,"input",void 0);_.t([_.Cs("#icon-button"),_.B("design:type",HTMLElement)],aK.prototype,"iconButton",void 0);
_.t([_.u(),_.B("design:type",String),_.B("design:paramtypes",[])],aK.prototype,"searchIcon",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aK.prototype,"onDataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],aK);
var bqz=_.oI()(aK,"ytd-expandable-tab-renderer",function(){if(ABD===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);ABD=e}e=ABD;return e},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var spz;var nD=function(){var e=_.z.apply(this,arguments)||this;e.avatarSize=80;e.ariaLabel=_.C_("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return e};
_.Y(nD,_.z);nD.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
nD.prototype.computeHref=function(e){var g;return((g=_.x(e,_.uf))==null?0:g.url)?this.componentBehavior.computeHref_(e):null};
nD.prototype.onTap=function(){var e,g;(e=this.data)==null||!e.editAvatarServiceEndpoint||((g=_.x(this.data.editAvatarServiceEndpoint,_.uf))==null?0:g.url)||_.Ss().resolve(_.xk).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.t([_.m(_.qx),_.B("design:type",Object)],nD.prototype,"ironButtonState",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],nD.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],nD.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],nD.prototype,"avatarSize",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],nD.prototype,"ariaLabel",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],nD);
_.U(nD,"ytd-channel-avatar-editor",function(){if(spz!==void 0)return spz;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return spz=e},{mode:1});var Frl=_.H(function(e){var g=e.data;var c=e.noPadding;var k=e.enableBanner;var I=e.cinematicContainerTopbarOffset;var J=e.allowCinematicContainerOverflow;var q=e.displayAsSidebar;e=e.className;_.AV(function(){g().tagManagerId&&(_.ID(g().tagManagerId,_.uo("GL")),JcD(g().tagManagerId))},"vUc8md");
var L=_.O1(XWv,function(){return g().pageHeaderEntityKey});
return _.a("yt-page-header-renderer",{class:_.o6("pageHeaderRendererHost",e)},_.a(_.eS,{data:function(){var n;return((n=L())==null?0:n.header)?L().header:(q==null?0:q())&&g().sidebarContent?g().sidebarContent:g().content}},{pageHeaderViewModel:function(n){return _.a(_.NV0,{data:n.data,
noPadding:c,enableBanner:k,cinematicContainerTopbarOffset:I,allowCinematicContainerOverflow:J,displayAsSidebar:function(){return(q==null?void 0:q())&&g().enableSidebarView}})}}))},"uk");
Frl.idomCompat=!0;_.sL(Frl,"yt-page-header-renderer",{props:{data:_.jx,noPadding:_.jx,enableBanner:_.jx,cinematicContainerTopbarOffset:_.jx,allowCinematicContainerOverflow:_.jx,displayAsSidebar:_.jx,className:_.jx}});_.sL(_.pE,"yt-image-banner-view-model",{props:{data:_.jx,isPositionRelative:_.jx}});_.sL(_.nIz,"yt-tab-group-shape",{props:{shape:_.jx}});var uLX=_.Yu.persistentPanelVisibleSelector,RK=function(){var e=_.z.apply(this,arguments)||this;e.expandableCustomTabRenderable=function(g){return hOg(g,function(){return void e.onSearchNavigate()})};
e.isRichGrid=!1;e.isConstrainedList=!1;e.richGridMiniMode=!1;e.richGridStyle="RICH_GRID_STYLE_UNKNOWN";e.isRichGridShorts=!1;e.responsiveSizing="COMPACT";e.disableGridStateAware=!1;e.useRaf=!_.G("web_use_raf_app_header_layout_killswitch");e.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return e};
_.Y(RK,_.z);_.v=RK.prototype;_.v.computeHeaderDisabled=function(e,g){return g||!e||this.tabsHidden};
_.v.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.v.computeIsRichGridShorts=function(e){return e==="RICH_GRID_STYLE_SHORTS_GRID"||e==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.v.computeImageBannerViewModel=function(){var e,g;return _.x((g=_.x((e=this.data)==null?void 0:e.content,_.M_v))==null?void 0:g.banner,_.t_M)};
_.v.computeHasCinematicContainer=function(){var e,g;return!((g=_.x((e=this.data)==null?void 0:e.content,_.M_v))==null||!g.background)};
_.v.handleHeaderResize=function(){var e=_.o1(this.hostElement).querySelector("#header");e&&_.oC(e,"iron-resize")};
_.v.handleInsertTabCommand=function(e){var g=_.x(e,xgq);g&&(g.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(c){return c.tabRenderer&&c.tabRenderer.tabIdentifier===g.tabIdentifier})||this.splice("tabs",g.tabIndex||-1,0,g.tab))};
_.v.handleRefreshChannelTabAction=function(e){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===e&&_.oC(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.v.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.v.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Nk(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.v.observerRichGridSlimItemsPerRow=function(){_.Nk(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.v.updateCssVars=function(){this.richGridItemsPerRow&&_.Nk(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.MN("rich_grid_max_item_width",500))+16)-16+"px"})};
_.v.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Nk(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.v.onDataChanged=function(){this.handleHeaderResize()};
_.v.onWindowResize=function(){this.handleHeaderResize()};
_.v.onFocusedChanged=function(e){(e=_.A3(e))&&e.is==="tp-yt-paper-tab"&&e.hasRipple()&&(e.getRipple().holdDown=!e.pointerDown&&e.focused)};
_.v.updateSelectedFromBinding=function(e){this.ytdTabbedHeaderBehavior.selected=e.detail.value};
_.v.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Bd.Object.defineProperties(RK.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:xBQ(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.imageBannerViewModel)==null?void 0:e.style)==="IMAGE_BANNER_STYLE_INSET"}}});
RK.prototype.onDataChanged=RK.prototype.onDataChanged;RK.prototype.updateCssVarsForResponsiveGrid=RK.prototype.updateCssVarsForResponsiveGrid;RK.prototype.updateCssVars=RK.prototype.updateCssVars;RK.prototype.observerRichGridSlimItemsPerRow=RK.prototype.observerRichGridSlimItemsPerRow;RK.prototype.observerRichGridItemsPerRow=RK.prototype.observerRichGridItemsPerRow;RK.prototype.persistentPanelVisibleChanged=RK.prototype.persistentPanelVisibleChanged;
_.t([_.m(_.Gd),_.B("design:type",Object)],RK.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.m(clv),_.B("design:type",Object)],RK.prototype,"ytdTabbedHeaderBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],RK.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],RK.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],RK.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],RK.prototype,"ytdReduxBehavior",void 0);_.t([_.Cs("#tabs"),_.B("design:type",Object)],RK.prototype,"tabsElement",void 0);_.t([_.u(),_.B("design:type",Array)],RK.prototype,"tabs",void 0);_.t([_.u(),_.B("design:type",Object)],RK.prototype,"expandableCustomTabRenderable",void 0);
_.t([_.p("tabs.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],RK.prototype,"tabGroupShape",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],RK.prototype,"isRichGrid",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],RK.prototype,"isConstrainedList",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Object)],RK.prototype,"richGridMiniMode",void 0);_.t([_.u({selector:function(e){return e.ui.richGridStyle}}),
_.B("design:type",Object)],RK.prototype,"richGridStyle",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.B("design:type",Object)],RK.prototype,"isRichGridShorts",void 0);_.t([_.u({selector:_.Rq}),_.B("design:type",Number)],RK.prototype,"richGridItemsPerRow",void 0);_.t([_.u({selector:function(e){return e.ui.richGridContainerWidth}}),
_.B("design:type",Number)],RK.prototype,"richGridContainerWidth",void 0);_.t([_.u({selector:_.jGz}),_.B("design:type",Number)],RK.prototype,"richGridSlimItemsPerRow",void 0);_.t([_.u(),_.B("design:type",Object)],RK.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],RK.prototype,"responsiveSizing",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],RK.prototype,"disableGridStateAware",void 0);
_.t([_.u({computed:"computeImageBannerViewModel(data)"}),_.B("design:type",Object)],RK.prototype,"imageBannerViewModel",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.B("design:type",Boolean)],RK.prototype,"hasCinematicContainer",void 0);_.t([_.u({selector:Gj0,reflectToAttribute:!0}),_.B("design:type",Boolean)],RK.prototype,"guideIsVisibleButNotPersistent",void 0);
_.t([_.u({selector:uLX}),_.B("design:type",Boolean)],RK.prototype,"persistentPanelVisible",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("imageBannerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],RK.prototype,"hasBanner",null);_.t([_.u({reflectToAttribute:!0}),_.p("imageBannerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],RK.prototype,"hasInsetBanner",null);_.t([_.u(),_.B("design:type",Object)],RK.prototype,"useRaf",void 0);
_.t([_.u({computed:"computeTabsHidden(tabs)",value:!0}),_.B("design:type",Boolean)],RK.prototype,"tabsHidden",void 0);_.t([_.OY("persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RK.prototype,"persistentPanelVisibleChanged",null);_.t([_.OY("richGridItemsPerRow","isRichGrid"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RK.prototype,"observerRichGridItemsPerRow",null);
_.t([_.OY("richGridSlimItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RK.prototype,"observerRichGridSlimItemsPerRow",null);_.t([_.OY("richGridItemsPerRow","richGridMiniMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RK.prototype,"updateCssVars",null);
_.t([_.OY("richGridContainerWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RK.prototype,"updateCssVarsForResponsiveGrid",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RK.prototype,"onDataChanged",null);_.t([_.bF({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],RK);
_.U(RK,"ytd-tabbed-page-header",function(){if(iIg!==void 0)return iIg;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return iIg=e},{mode:1});var dJz;var Et=function(){return _.z.apply(this,arguments)||this};
_.Y(Et,_.z);Et.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Et.prototype,"data",void 0);_.t([_.bF({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Et);
_.U(Et,"ytd-labs-edit-renderer",function(){if(dJz!==void 0)return dJz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return dJz=e},{mode:1});var zMX;var W3=function(){var e=_.z.apply(this,arguments)||this;e.dark=!1;e.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";e.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(W3,_.z);W3.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
W3.prototype.ready=function(){var e=document.documentElement.hasAttribute("dark");this.setBackgroundImage(e);this.dark=e};
W3.prototype.onDarkModeToggledAction=function(e){this.setBackgroundImage(e);this.dark=e};
W3.prototype.setBackgroundImage=function(e){_.Nk(this.hostElement,{"--yt-labs-header-background":"url("+(e?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],W3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],W3.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],W3.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],W3.prototype,"dark",void 0);
_.t([_.bF({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],W3);
_.U(W3,"ytd-labs-header-renderer",function(){if(zMX!==void 0)return zMX;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return zMX=e},{mode:1});var HIO;var bL=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return e};
_.Y(bL,_.z);bL.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"}}}}}};
bL.prototype.onYtToggleButton=function(e){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",e.detail.toggled)};
bL.prototype.onManageLabsState=function(e){if(e=_.x(e,xFS))e.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?e.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&e.labsItemId===this.data.labsItemId&&(e.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Z5(this.hostElement,"yt-check-labs-opted-in-state").some(function(g){return g})&&this.data.confirmationDialogCommand?_.Bm(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.Ss().resolve(_.xk).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&e.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.Ss().resolve(_.xk).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
bL.prototype.onCheckLabsOptedInState=function(){var e=this.get("data.primaryButton.toggleButtonRenderer");return e?e.isToggled:!1};
_.Bd.Object.defineProperties(bL.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
bL.prototype.onYtToggleButton=bL.prototype.onYtToggleButton;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],bL.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],bL.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],bL.prototype,"itemStyle",null);_.t([_.Ks("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],bL.prototype,"onYtToggleButton",null);_.t([_.bF({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],bL);
_.U(bL,"ytd-labs-item-renderer",function(){if(HIO!==void 0)return HIO;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return HIO=e},{mode:1});var Qpz;var UJM;var o7Q=function(){return _.z.apply(this,arguments)||this};
_.Y(o7Q,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],o7Q.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],o7Q.prototype,"data",void 0);_.t([_.bF({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],o7Q);
_.U(o7Q,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(UJM!==void 0)return UJM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return UJM=e},{mode:1});var ZIq;var hY=function(){return _.z.apply(this,arguments)||this};
_.Y(hY,_.z);hY.prototype.observeSuperchatChip=function(){if(this.data){var e={"--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)};_.Nk(this.hostElement,e)}};
hY.prototype.colorFromDecimal=function(e){return _.EY(Number(e||0))};
hY.prototype.observeSuperchatChip=hY.prototype.observeSuperchatChip;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],hY.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hY.prototype,"observeSuperchatChip",null);_.t([_.bF({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],hY);
_.U(hY,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(ZIq!==void 0)return ZIq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ZIq=e},{mode:1});var XP=function(){return _.z.apply(this,arguments)||this};
_.Y(XP,_.z);XP.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"}}}};
_.Bd.Object.defineProperties(XP.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],XP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],XP.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],XP.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XP.prototype,"hideMessageBlock",null);
_.t([_.bF({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],XP);
_.U(XP,"ytd-live-chat-history-entry-renderer",function(){if(Qpz!==void 0)return Qpz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Qpz=e},{mode:1});var Ve7;var GN=function(){return _.z.apply(this,arguments)||this};
_.Y(GN,_.z);GN.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Nk(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Bd.Object.defineProperties(GN.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var e,g;return this.componentBehavior.computeIcon_(((g=_.x((e=this.data)==null?void 0:e.badge,_.gLw))==null?void 0:g.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var e,g;return(g=_.x((e=this.data)==null?void 0:e.badge,_.gLw))==null?void 0:g.label}}});
GN.prototype.observerRichGridItemsPerRow=GN.prototype.observerRichGridItemsPerRow;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],GN.prototype,"componentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],GN.prototype,"ytdReduxBehavior",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.nU}),_.B("design:type",Boolean)],GN.prototype,"richGridMiniMode",void 0);
_.t([_.u({selector:_.Rq}),_.B("design:type",Number)],GN.prototype,"richGridItemsPerRow",void 0);_.t([_.u(),_.B("design:type",Object)],GN.prototype,"data",void 0);_.t([_.OY("richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GN.prototype,"observerRichGridItemsPerRow",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],GN.prototype,"badgeIconName",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],GN.prototype,"badgeLabel",null);_.t([_.bF({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],GN);
_.U(GN,"ytd-member-hub-profile-renderer",function(){if(Ve7!==void 0)return Ve7;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Ve7=e},{mode:1});var teq;var xi=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return e};
_.Y(xi,_.z);
xi.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"}}}};
xi.prototype.handleUpdateTextCommand=function(e){(e=_.x(e,_.oA1))&&this.data&&this.data.id===e.id&&this.set("data",e)};
xi.prototype.handleUpdateConnectedAppRendererCommand=function(e){if(_.x(e,_.tRq)&&this.data){var g,c;if(e=(g=_.x(e,_.tRq))==null?void 0:(c=g.newConnectedAppRenderer)==null?void 0:c.connectedAppRenderer)this.data=e}};
xi.prototype.computeConnectedAppStyle=function(e){return e.style?e.style.toLowerCase().replace(/_/g,"-"):""};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],xi.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],xi.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.B("design:type",String)],xi.prototype,"connectedAppStyle",void 0);_.t([_.bF({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],xi);
_.U(xi,"ytd-connected-app-renderer",function(){if(teq!==void 0)return teq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return teq=e},{mode:1});var BTg;var NTg=function(){return _.z.apply(this,arguments)||this};
_.Y(NTg,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],NTg.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],NTg.prototype,"data",void 0);_.t([_.bF({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],NTg);
_.U(NTg,"ytd-channel-options-renderer",function(){if(BTg!==void 0)return BTg;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return BTg=e},{mode:1});var SDO;var Dq=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return e};
_.Y(Dq,_.z);Dq.prototype.onCheckboxChange=function(e){this.data&&(e=(this.checked=_.A3(e).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}})};
Dq.prototype.handleUpdateCheckboxCommand=function(e){(e=_.x(e,_.UEv))&&this.data&&this.data.id===e.id&&(this.set("data.disabled",e.disabled),this.set("data.title",e.title))};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Dq.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Dq.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],Dq.prototype,"checked",void 0);_.t([_.bF({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Dq);
_.U(Dq,"ytd-settings-checkbox-renderer",function(){if(SDO!==void 0)return SDO;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return SDO=e},{mode:1});var yBv;var $i=function(){return _.z.apply(this,arguments)||this};
_.Y($i,_.z);$i.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],$i.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$i.prototype,"data",void 0);_.t([_.bF({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],$i);
_.U($i,"ytd-settings-email-item-renderer",function(){if(yBv!==void 0)return yBv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return yBv=e},{mode:1});var KrD;var Yi=function(){return _.z.apply(this,arguments)||this};
_.Y(Yi,_.z);Yi.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"}}}};
Yi.prototype.getExpansionIcon=function(e){return e?"COLLAPSE":"EXPAND"};
Yi.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Bd.Object.defineProperties(Yi.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Yi.prototype,"data",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Yi.prototype,"expanded",void 0);_.t([_.p("expanded"),_.B("design:type",String),_.B("design:paramtypes",[])],Yi.prototype,"emailListExpanded",null);
_.t([_.Cs("#options"),_.B("design:type",Object)],Yi.prototype,"options",void 0);_.t([_.bF({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Yi);
_.U(Yi,"ytd-settings-email-list-renderer",function(){if(KrD!==void 0)return KrD;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return KrD=e},{mode:1});var OIv;var Mez;var C5j;var e0x;var gTx;var fD=function(){return _.z.apply(this,arguments)||this};
_.Y(fD,_.z);_.v=fD.prototype;_.v.computePreselectedOption=function(e,g){return g===this.itemSelected_?e:void 0};
_.v.dataChanged_=function(){var e=this;this.preselectedSubreason=this.itemSelected_=-1;var g;(g=this.data)!=null&&g.key&&_.Va(this,function(){var c,k=Number((c=e.data)==null?void 0:c.key);!Number.isNaN(k)&&(e.itemSelected_=k,c=(c=(e.data.items||[])[k])&&c.optionSelectableItemRenderer&&c.optionSelectableItemRenderer.preselectedIndex)&&(e.preselectedSubreason=c)})};
_.v.isSubReasonHidden_=function(e,g){return e!=g};
_.v.onTopItemSelected_=function(e,g){for(var c=_.o1(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),k=0,I=c.length;k<I;k++)c[k].select(0);_.Z5(this.hostElement,"yt-report-form-update",[g.item.value]);e.stopPropagation()};
_.v.onItemSelected_=function(e,g){_.Z5(this.hostElement,"yt-report-form-update",[g.item.value]);e.stopPropagation()};
_.v.getItem_=function(e){return e.serviceItem?e.serviceItem:e.navigationItem?e.navigationItem:e.optionSelectableItemRenderer?e.optionSelectableItemRenderer:null};
_.v.computeText_=function(e){return(e=this.getItem_(e))?this.ytRendererBehavior.getSimpleString(e.text):null};
_.v.validate=function(){return this.itemSelected_!==-1};
_.v.computeAriaLabel_=function(e){var g=_.mp(e.text);(e=e.accessibility&&e.accessibility.accessibilityData&&e.accessibility.accessibilityData.label)&&(g+=". "+e);return g};
_.v.computeItemSelected_=function(e){return e};
_.v.preventSelection_=function(e){e.stopPropagation();this.tooltipTapped=!0};
_.v.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.v.updateItemSelectedFromBinding=function(e){this.itemSelected_=e.detail.value};
_.v.save=function(){var e;this.validate()&&(e=this.data)!=null&&e.items&&(e=this.data.items[this.itemSelected_],e!=null&&e.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(e.optionSelectableItemRenderer.submitEndpoint)||_.tr(this.hostElement,[e.optionSelectableItemRenderer.submitEndpoint])))};
fD.prototype.onPaperRippleTransitionEnd_=fD.prototype.onPaperRippleTransitionEnd_;fD.prototype.dataChanged_=fD.prototype.dataChanged_;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],fD.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fD.prototype,"data",void 0);_.t([_.u({value:-1}),_.B("design:type",Number)],fD.prototype,"itemSelected_",void 0);
_.t([_.u({computed:"computeItemSelected_(itemSelected_)"}),_.B("design:type",Number)],fD.prototype,"value",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],fD.prototype,"restoreFocusOnClose",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],fD.prototype,"tooltipTapped",void 0);_.t([_.u({value:-1}),_.B("design:type",Number)],fD.prototype,"preselectedSubreason",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fD.prototype,"dataChanged_",null);_.t([_.Ks("transitionend"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fD.prototype,"onPaperRippleTransitionEnd_",null);_.t([_.Wo({is:"yt-options-renderer",disableElementRegistration:!0})],fD);
_.U(fD,"yt-options-renderer",function(){if(gTx===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;e0x===void 0&&(e0x=document.createElement("template"));var k=e0x;c.call(g,k.content.cloneNode(!0),e.content.firstChild);gTx=e}e=gTx;return e},{mode:2});var cnX;var kao;var IW0;var JnO;var jH=function(){return _.z.apply(this,arguments)||this};
_.Y(jH,_.z);jH.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
jH.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
jH.prototype.onTap=function(e){if(this.hostElement.classList.contains("selected")||_.Z5(this.hostElement,"yt-share-panel-can-select-contact-action")[0])e&&e.detail&&(e.detail.x||e.detail.y)&&_.o1(this.hostElement).querySelector("#target").blur(),(e=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),e={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:e?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Z5(this.hostElement,"yt-share-panel-select-contact-action",[e])};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.t([_.u({observer:"onDataChanged"}),_.B("design:type",Object)],jH.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.B("design:type",String)],jH.prototype,"componentTitle",void 0);_.t([_.Cs("#thumbnail"),_.B("design:type",Object)],jH.prototype,"thumbnail",void 0);_.t([_.Wo({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],jH);
_.U(jH,"yt-enrolled-contact-renderer",function(){if(JnO===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;IW0===void 0&&(IW0=document.createElement("template"));var k=IW0;c.call(g,k.content.cloneNode(!0),e.content.firstChild);JnO=e}e=JnO;return e},{mode:2});var vTq;var w0D;var iL=function(){return _.z.apply(this,arguments)||this};
_.Y(iL,_.z);iL.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
iL.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
iL.prototype.onTap=function(e){if(this.hostElement.classList.contains("selected")||_.Z5(this.hostElement,"yt-share-panel-can-select-contact-action")[0])e&&e.detail&&(e.detail.x||e.detail.y)&&_.o1(this.hostElement).querySelector("#target").blur(),(e=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),e={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:e?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Z5(this.hostElement,"yt-share-panel-select-contact-action",[e])};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.t([_.u({observer:"onDataChanged"}),_.B("design:type",Object)],iL.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.B("design:type",String)],iL.prototype,"componentTitle",void 0);_.t([_.Cs("#thumbnail"),_.B("design:type",Object)],iL.prototype,"thumbnail",void 0);_.t([_.Wo({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],iL);
_.U(iL,"yt-suggested-contact-renderer",function(){if(w0D===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;vTq===void 0&&(vTq=document.createElement("template"));var k=vTq;c.call(g,k.content.cloneNode(!0),e.content.firstChild);w0D=e}e=w0D;return e},{mode:2});var P3=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-share-panel-reset-action":"onReset"};return e};
_.Y(P3,_.z);P3.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"}}}}}};
P3.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Z5(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
P3.prototype.onReset=function(){for(var e=_.o1(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),g=e.length-1;g>=0;g--)e[g].classList.toggle("selected")};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],P3.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],P3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u({observer:"onDataChanged"}),_.B("design:type",Object)],P3.prototype,"data",void 0);
_.t([_.Wo({is:"yt-contact-section-renderer",disableElementRegistration:!0})],P3);
_.U(P3,"yt-contact-section-renderer",function(){if(kao===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;cnX===void 0&&(cnX=document.createElement("template"));var k=cnX;c.call(g,k.content.cloneNode(!0),e.content.firstChild);kao=e}e=kao;return e},{mode:2});var m$=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return e};
_.Y(m$,_.z);_.v=m$.prototype;_.v.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.v.onYtRefreshFormCommand=function(e){var g;(e=_.x((g=_.x(e,_.$E1))==null?void 0:g.formRenderer,i$O))&&this.set("data",e)};
_.v.reset=function(){var e=_.o1(this.hostElement).querySelector("#fields").children;e=_.w(e);for(var g=e.next();!g.done;g=e.next())g=g.value,g.reset&&g.reset()};
_.v.getForm=function(){var e={},g=_.o1(this.hostElement).querySelector("#fields").children;g=_.w(g);for(var c=g.next();!c.done;c=g.next()){c=c.value;if(!c.validate())return null;e[c.data.key]=c.value}return e};
_.v.submitFormFields=function(){if(this.fields)for(var e=_.w(this.fields),g=e.next();!g.done;g=e.next())g=g.value,g.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?g.save():g.nodeName==="YT-OPTIONS-RENDERER"&&g.save()};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],m$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],m$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],m$.prototype,"data",void 0);_.t([_.eY("#fields > *"),_.B("design:type",Array)],m$.prototype,"fields",void 0);
_.t([_.Wo({is:"yt-form-renderer",disableElementRegistration:!0})],m$);
_.U(m$,"yt-form-renderer",function(){if(C5j===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Mez===void 0&&(Mez=document.createElement("template"));var k=Mez;c.call(g,k.content.cloneNode(!0),e.content.firstChild);C5j=e}e=C5j;return e},{mode:2});var pD=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return e};
_.Y(pD,_.z);pD.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"}}}};
pD.prototype.handleSignalActionSubmitForm=function(){var e,g=(e=this.formRenderer)==null?void 0:e.getForm();g&&this.data.serviceEndpoint&&_.Ss().resolve(_.xk).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},g,{element:this.hostElement})})};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],pD.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],pD.prototype,"data",void 0);_.t([_.Cs("yt-form-renderer"),_.B("design:type",Object)],pD.prototype,"formRenderer",void 0);
_.t([_.bF({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],pD);
_.U(pD,"ytd-settings-gaia-link-renderer",function(){if(OIv!==void 0)return OIv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return OIv=e},{mode:1});var qiS;var Ljz;var TN=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return e};
_.Y(TN,_.z);TN.prototype.dataChanged=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return e.radio.removeAttribute("checked"),!e.data||!e.data.id||e.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||UHl()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(g=e.data&&e.data.id)?c.yield(Zxv(e.data.id),4):c.jumpTo(3):(e.set("data.hidden",!0),c.jumpTo(0));c.nextAddress!=3&&(g=c.yieldResult);g&&_.Z5(e.hostElement,"yt-select-settings-radio-option",[e.data.id]);_.Uh(c)})};
TN.prototype.onButtonChanged=function(e){_.A3(e).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.Ss().resolve(_.xk).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Z5(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
TN.prototype.onSelectOption=function(e){this.data&&this.data.id&&(this.data.id===e?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
TN.prototype.dataChanged=TN.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],TN.prototype,"ytActionHandlerBehavior",void 0);_.t([_.Cs("#radio"),_.B("design:type",Object)],TN.prototype,"radio",void 0);_.t([_.u(),_.B("design:type",Object)],TN.prototype,"data",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],TN.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],TN);
_.U(TN,"ytd-settings-radio-option-renderer",function(){if(Ljz!==void 0)return Ljz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Ljz=e},{mode:1});_.sL(_.YP,"basic-content-view-model",{props:{data:_.TF,className:_.TF}});var lL=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return e};
_.Y(lL,_.z);lL.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&UHl()&&this.set("data.hidden",!1)};
lL.prototype.onSwitchReady=function(){var e=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.G("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){xcD().then(function(g){g&&(Notification.permission==="default"?e.set("data.hidden",!1):Notification.permission==="granted"&&tE("NotificationsDisabled").then(function(c){c||_.Z5(e.hostElement,"yt-toggle-settings-switch",[e.data.id,!c]);e.set("data.hidden",!1)}).catch(function(){}))})})};
lL.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{channelOptionsRenderer:{component:"ytd-channel-options-renderer",noInjection:!0},copyLinkRenderer:{component:"yt-copy-link-renderer",noInjection:!0,params:{adaptiveFullWidth:!0}},dropdownRenderer:{component:"ytd-dropdown-renderer",params:{hasBackground:!0,verticalAlign:"bottom",noUnderline:!0},noInjection:!0},settingsCheckboxRenderer:{component:"ytd-settings-checkbox-renderer",noInjection:!0},settingsEmailListRenderer:{component:"ytd-settings-email-list-renderer",
noInjection:!0},settingsGaiaLinkRenderer:{component:"ytd-settings-gaia-link-renderer",noInjection:!0},settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0},settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0},connectedAppRenderer:{component:"ytd-connected-app-renderer",noInjection:!0},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
lL.prototype.handleUpdateOptionsCommand=function(e){(e=_.x(e,_.Zzq))&&this.data&&this.data.id===e.id&&(this.set("data.hidden",e.hidden),e.text!==void 0&&this.set("data.text",e.text),e.clearOptions&&this.set("data.options",[]))};
lL.prototype.onSwitchReady=lL.prototype.onSwitchReady;lL.prototype.dataChanged=lL.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],lL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],lL.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],lL.prototype,"data",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lL.prototype,"dataChanged",null);_.t([_.Ks("yt-settings-switch-ready"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lL.prototype,"onSwitchReady",null);_.t([_.bF({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],lL);
_.U(lL,"ytd-settings-options-renderer",function(){if(qiS!==void 0)return qiS;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return qiS=e},{mode:1});var rn7;var AY=function(){return _.z.apply(this,arguments)||this};
_.Y(AY,_.z);AY.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],AY.prototype,"data",void 0);_.t([_.bF({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],AY);
_.U(AY,"ytd-settings-sidebar-renderer",function(){if(rn7!==void 0)return rn7;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return rn7=e},{mode:1});var aWj;var st=function(){return _.z.apply(this,arguments)||this};
_.Y(st,_.z);st.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
st.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
st.prototype.onYtExpanderMoreTapped=st.prototype.onYtExpanderMoreTapped;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],st.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],st.prototype,"data",void 0);
_.t([_.Ks("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],st.prototype,"onYtExpanderMoreTapped",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],st);
_.U(st,"ytd-product-details-description-renderer",function(){if(aWj!==void 0)return aWj;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return aWj=e},{mode:1});var nT7;var FP=function(){var e=_.z.apply(this,arguments)||this;e.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";e.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";e.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";e.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return e};
_.Y(FP,_.z);FP.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Bd.Object.defineProperties(FP.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:(g=e.offerData)==null?void 0:g.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?void 0:e.purchaseButtonRenderers)!==void 0&&((g=this.data)==null?void 0:g.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var e,g;return!((e=this.data)==null||!e.formattedFromMerchantText)&&(!((g=this.data)==null||!g.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],FP.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],FP.prototype,"data",void 0);
_.t([_.u({type:_.G("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],FP.prototype,"shippingIcon",void 0);_.t([_.u({type:_.G("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],FP.prototype,"shippingAddressIcon",void 0);_.t([_.u({type:_.G("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],FP.prototype,"googleGuaranteeIcon",void 0);
_.t([_.u({type:_.G("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],FP.prototype,"returnPolicyIcon",void 0);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],FP.prototype,"showAdditionalFees",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],FP.prototype,"showMultiPurchaseButtons",null);
_.t([_.p("data","showMultiPurchaseButtons"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],FP.prototype,"showPurchaseData",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],FP);
_.U(FP,"ytd-product-details-hero-offer-renderer",function(){if(nT7!==void 0)return nT7;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return nT7=e},{mode:1});var R0M;var ETv;var uL=function(){return _.z.apply(this,arguments)||this};
_.Y(uL,_.z);_.v=uL.prototype;_.v.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.v.onKeyDown=function(e){e=e.keyCode;e!==13&&e!==32||this.handleSelection()};
_.v.onMouseEnterImage=function(){var e;((e=this.data)==null?void 0:e.thumbnailDetails)!==void 0&&_.V1(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.v.onMouseLeaveImage=function(){_.V1(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.v.handleSelection=function(){this.data&&_.oC(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Bd.Object.defineProperties(uL.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.isSelected)}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],uL.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],uL.prototype,"isSelected",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],uL);
_.U(uL,"ytd-product-details-thumbnail-renderer",function(){if(ETv!==void 0)return ETv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ETv=e},{mode:1});var dw=function(){var e=_.z.apply(this,arguments)||this;var g={};e.actionMap=(g["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",g["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",g);e.selectedThumbnailIndex=0;e.selectItem=function(c){c.target.onKeyDown(c)};
return e};
_.Y(dw,_.z);_.v=dw.prototype;_.v.handlePreviewImageSelect=function(e){this.hoverThumbnail=e};
_.v.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.v.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.v.onThumbnailSelected=function(e,g){this.selectedThumbnailIndex=g};
_.v.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.v.updateOffset=function(){var e=_.o1(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-e));this.ytdHorizontalListBehavior.reposition_()};
_.Bd.Object.defineProperties(dw.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null?0:e.imageRenderer){var g,c;return((g=this.data)==null?void 0:(c=g.imageRenderer)==null?void 0:c.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var e;if((e=this.data)==null?0:e.imageRenderer){var g;return(g=_.x(this.data.imageRenderer[this.selectedThumbnailIndex],SKx))==null?void 0:g.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var e=this,g,c,k,I=(k=(g=this.data)==null?void 0:(c=g.imageRenderer)==null?void 0:c.map(function(J,q){return{productDetailsThumbnailRenderer:Object.assign({},_.x(J,SKx),{index:q,isSelected:q===e.selectedThumbnailIndex})}}))!=null?k:[];
return Object.assign({},this.data,{imageRenderer:I})}}});
dw.prototype.updateOffset=dw.prototype.updateOffset;dw.prototype.dataChanged=dw.prototype.dataChanged;dw.prototype.onThumbnailSelected=dw.prototype.onThumbnailSelected;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],dw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.dO.YtdHorizontalListBehavior),_.B("design:type",Object)],dw.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],dw.prototype,"componentBehavior",void 0);_.t([_.m([_.Nr.YtActionHandlerBehavior]),_.B("design:type",Object)],dw.prototype,"actionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],dw.prototype,"data",void 0);_.t([_.u({value:"$.items.children"}),_.B("design:type",String)],dw.prototype,"itemsPath",void 0);_.t([_.u({value:3}),_.B("design:type",Number)],dw.prototype,"initialCount",void 0);
_.t([_.Cs("#items"),_.B("design:type",Object)],dw.prototype,"items",void 0);_.t([_.u(),_.B("design:type",Object)],dw.prototype,"selectedThumbnailIndex",void 0);_.t([_.u(),_.B("design:type",Object)],dw.prototype,"hoverThumbnail",void 0);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dw.prototype,"showThumbnails",null);
_.t([_.Ks("ytd-product-details-thumbnail-renderer-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Number]),_.B("design:returntype")],dw.prototype,"onThumbnailSelected",null);_.t([_.p("data","selectedThumbnailIndex","hoverThumbnail"),_.B("design:type",Object),_.B("design:paramtypes",[])],dw.prototype,"thumbnailDetails",null);_.t([_.p("data","selectedThumbnailIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],dw.prototype,"populatedData",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dw.prototype,"dataChanged",null);_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dw.prototype,"updateOffset",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],dw);
_.U(dw,"ytd-product-details-image-carousel-renderer",function(){if(R0M!==void 0)return R0M;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return R0M=e},{mode:2});var Wjq;var zN=function(){return _.z.apply(this,arguments)||this};
_.Y(zN,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],zN.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],zN.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],zN);
_.U(zN,"ytd-product-details-offer-renderer",function(){if(Wjq!==void 0)return Wjq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Wjq=e},{mode:1});var byq;var H3=function(){var e=_.z.apply(this,arguments)||this;e.isOffersHidden=!0;return e};
_.Y(H3,_.z);H3.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var e,g=_.x((e=this.data)==null?void 0:e.viewOffersButton,_.G_);g&&this.ytRendererBehavior.logExplicitClick(g)};
H3.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Bd.Object.defineProperties(H3.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k;return(c=_.x((e=this.data)==null?void 0:(g=e.offers)==null?void 0:g[0],MfM))==null?void 0:(k=c.offerData)==null?void 0:k.vendorLogoUrl}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],H3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],H3.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],H3.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],H3.prototype,"isOffersHidden",void 0);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],H3.prototype,"firstOfferVendorLogoUrl",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],H3);
_.U(H3,"ytd-product-details-offers-container-renderer",function(){if(byq!==void 0)return byq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return byq=e},{mode:1});var h0q;var X0g;var Qf=function(){return _.z.apply(this,arguments)||this};
_.Y(Qf,_.z);Qf.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Qf.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.V1(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Qf.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.V1(this,"ytd-product-details-variant-image-unselect")};
_.Bd.Object.defineProperties(Qf.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 e;return((e=this.data)==null?void 0:e.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((e=this.data)==null?void 0:e.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((g=this.data)==null?void 0:g.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((c=this.data)==null?void 0:c.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var e;if(((e=this.data)==null?void 0:e.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var e,g;return this.isUnavailable?(e=this.data)==null?void 0:e.variantOptionUnavailableAccessibilityLabel:(g=this.data)==null?void 0:g.variantOptionAccessibilityLabel}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Qf.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Qf.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],Qf.prototype,"displayType",void 0);
_.t([_.p("displayType","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Qf.prototype,"isImageButton",null);_.t([_.p("displayType","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Qf.prototype,"isPillButton",null);_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Qf.prototype,"isActive",null);
_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Qf.prototype,"isUnavailable",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qf.prototype,"thumbnailDetails",null);_.t([_.p("isUnavailable","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qf.prototype,"accessibilityLabel",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Qf);
_.U(Qf,"ytd-product-details-variant-option-renderer",function(){if(X0g!==void 0)return X0g;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return X0g=e},{mode:1});var Gaz;var Ut=function(){var e=_.z.apply(this,arguments)||this;e.variantsExpanded=!1;e.hideShowMoreLessVariantButton=!0;e.initialized=!1;e.computeVariantsDebouncer=null;e.computeVariants=function(g){g=g===void 0?!1:g;e.variantsExpanded||e.showOptions()||!g||(e.variantsExpanded=!0);if(e.variantsExpanded){g=_.w(e.items.children);for(var c=g.next();!c.done;c=g.next())c.value.hidden=!1}e.initialized=!0};
return e};
_.Y(Ut,_.z);_.v=Ut.prototype;_.v.ready=function(){var e=this;setTimeout(function(){e.computeVariants(!0)})};
_.v.showOptions=function(){for(var e=_.w(this.items.children),g=e.next();!g.done;g=e.next())g.value.hidden=!0;var c=this.container.getBoundingClientRect().width,k=0,I=e=0;g=!1;for(var J=_.w(this.items.children),q=J.next();!q.done;q=J.next()){q=q.value;q.hidden=!1;var L=q.getBoundingClientRect().width;if(k+L<c)k+=L;else if(++I<2)k=L;else break;e+=1;q.hasAttribute("is-active")&&(g=!0)}for(c=e;c<this.items.children.length;c++)this.items.children[c].hidden=!0;this.hideShowMoreLessVariantButton=e===this.items.children.length;
return g};
_.v.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.US(this.computeVariantsDebouncer,_.my.after(100),this.computeVariants)};
_.v.onShowMoreLessVariantsButtonClick=function(){var e;(e=this.data)!=null&&e.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.v.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Bd.Object.defineProperties(Ut.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(e=this.data)==null?void 0:(g=e.variantOptionRenderers)==null?void 0:g.find(function(J){return _.x(J,K2z).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),k,I;
return(I=(k=_.x(c,K2z))==null?void 0:k.name)!=null?I:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.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"}}}});
Ut.prototype.debouncedComputeVariants=Ut.prototype.debouncedComputeVariants;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Ut.prototype,"componentBehavior",void 0);_.t([_.m(_.Jc),_.B("design:type",Object)],Ut.prototype,"ironResizableBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],Ut.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Ut.prototype,"variantsExpanded",void 0);_.t([_.u(),_.B("design:type",Object)],Ut.prototype,"hideShowMoreLessVariantButton",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ut.prototype,"initialized",void 0);_.t([_.Cs("#items"),_.B("design:type",HTMLDivElement)],Ut.prototype,"items",void 0);_.t([_.Cs("#container"),_.B("design:type",HTMLDivElement)],Ut.prototype,"container",void 0);
_.t([_.Cs("#more-variants-button"),_.B("design:type",HTMLElement)],Ut.prototype,"moreVariantsButton",void 0);_.t([_.p("data"),_.B("design:type",String),_.B("design:paramtypes",[])],Ut.prototype,"selectedOptionName",null);_.t([_.OY("data","variantsExpanded"),_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ut.prototype,"debouncedComputeVariants",null);
_.t([_.p("data"),_.B("design:type",String),_.B("design:paramtypes",[])],Ut.prototype,"displayType",null);_.t([_.p("displayType"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ut.prototype,"variantItemsClassname",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Ut);
_.U(Ut,"ytd-product-details-variant-renderer",function(){if(Gaz!==void 0)return Gaz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Gaz=e},{mode:1});var oK=function(){return _.z.apply(this,arguments)||this};
_.Y(oK,_.z);
oK.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"}}}};
_.Bd.Object.defineProperties(oK.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(g=_.x((e=this.data)==null?void 0:e.offersContainerRenderer,OWg))==null?void 0:g.offers;return c!==void 0&&(c==null?void 0:c.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 e,g,c;return((c=(e=this.data)==null?void 0:(g=e.variants)==null?void 0:g.map(function(k){var I,J;k=(J=(I=_.x(k,yGx))==null?void 0:I.variantOptionRenderers)==null?void 0:J.find(function(L){var n;return((n=_.x(L,K2z))==null?void 0:n.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var q;return(q=_.x(k,K2z))==null?void 0:q.name}).filter(function(k){return typeof k==="string"}))!=null?c:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k=(g=_.x((e=this.data)==null?void 0:e.shoppingFlaggingRenderer,CCl))==null?void 0:(c=g.reportButton)==null?void 0:c.buttonRenderer;if(k)return{text:k.text,command:k.command,icon:{iconType:"FLAG"},accessibilityData:k.accessibilityData,trackingParams:k.trackingParams,loggingDirectives:k.loggingDirectives}}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],oK.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],oK.prototype,"data",void 0);_.t([_.Cs("#image-carousel-renderer"),_.B("design:type",Object)],oK.prototype,"imageCarouselRenderer",void 0);
_.t([_.Cs("#hero-offer-renderer"),_.B("design:type",Object)],oK.prototype,"productDetailsHeroOfferRenderer",void 0);_.t([_.Cs("#variants"),_.B("design:type",Object)],oK.prototype,"productDetailsVariantRenderer",void 0);_.t([_.Cs("#offers"),_.B("design:type",Object)],oK.prototype,"productDetailsOffersContainerRenderer",void 0);_.t([_.Cs("#description-renderer"),_.B("design:type",Object)],oK.prototype,"productDetailsDescriptionRenderer",void 0);
_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oK.prototype,"showPurchaseData",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oK.prototype,"showHeroOfferRenderer",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oK.prototype,"showBrandText",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oK.prototype,"showOffers",null);
_.t([_.p("showOffers","showPurchaseData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oK.prototype,"showBuySeparator",null);_.t([_.p("showOffers","showPurchaseData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oK.prototype,"showBuyCard",null);_.t([_.p("data"),_.B("design:type",String),_.B("design:paramtypes",[])],oK.prototype,"selectedVariantsText",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],oK.prototype,"shoppingReportingButtonData",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],oK);
_.U(oK,"ytd-product-details-renderer",function(){if(h0q!==void 0)return h0q;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return h0q=e},{mode:1});var x7g;var D7M;var $7M;var Zq=function(){return _.z.apply(this,arguments)||this};
_.Y(Zq,_.z);Zq.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Bd.Object.defineProperties(Zq.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Zq.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],Zq.prototype,"formattedAmount",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Zq.prototype,"ariaLabel",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("data.style"),_.B("design:type",String),_.B("design:paramtypes",[])],Zq.prototype,"vcBalanceWidgetStyle",null);_.t([_.Wo({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Zq);
_.U(Zq,"yt-vc-balance-renderer",function(){if($7M===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;D7M===void 0&&(D7M=document.createElement("template"));var k=D7M;c.call(g,k.content.cloneNode(!0),e.content.firstChild);$7M=e}e=$7M;return e},{mode:2});_.qH("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Vf=function(){return _.z.apply(this,arguments)||this};
_.Y(Vf,_.z);_.Bd.Object.defineProperties(Vf.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Vf.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Vf.prototype,"data",void 0);_.t([_.u({selectorArgs:["data.vcBalanceEntityKey"],selector:function(e,g){return _.Nc(e.entities,"vcBalanceEntity",g)}}),
_.B("design:type",Object)],Vf.prototype,"vcBalanceEntity",void 0);_.t([_.p("vcBalanceEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],Vf.prototype,"formattedAmount",null);_.t([_.p("vcBalanceEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],Vf.prototype,"vcBalanceAriaLabel",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Vf);
_.U(Vf,"ytd-vc-balance-renderer",function(){if(x7g!==void 0)return x7g;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return x7g=e},{mode:1});var Yiv;var tY=function(){var e=_.z.apply(this,arguments)||this;e.expandableCustomTabRenderable=function(g){return hOg(g,function(){return void e.onSearchNavigate()})};
return e};
_.Y(tY,_.z);tY.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
tY.prototype.onSearchNavigate=function(){this.selected=void 0};
tY.prototype.onTabsChange=function(){var e,g=(e=this.tabs)==null?void 0:e.findIndex(function(c){var k;return c==null?void 0:(k=c.tabRenderer)==null?void 0:k.selected});
g!==void 0&&(this.selected=g)};
tY.prototype.onTabsActive=function(e){if(this.tabs!==void 0){var g,c;(e=(g=this.tabs[e.detail.selected])==null?void 0:(c=g.tabRenderer)==null?void 0:c.endpoint)&&_.oC(this.hostElement,"yt-navigate",{endpoint:e})}};
_.Bd.Object.defineProperties(tY.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:xBQ(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
tY.prototype.onTabsChange=tY.prototype.onTabsChange;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],tY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Gd),_.B("design:type",Object)],tY.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],tY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],tY.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Array)],tY.prototype,"tabs",void 0);_.t([_.u(),_.B("design:type",Number)],tY.prototype,"selected",void 0);_.t([_.p("tabs.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],tY.prototype,"tabGroupShape",null);_.t([_.u(),_.B("design:type",Object)],tY.prototype,"expandableCustomTabRenderable",void 0);
_.t([_.p("tabs"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tY.prototype,"tabsEnabled",null);_.t([_.k_("tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tY.prototype,"onTabsChange",null);_.t([_.bF({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],tY);
_.U(tY,"ytd-topic-channel-details-renderer",function(){if(Yiv!==void 0)return Yiv;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Yiv=e},{mode:1});var fWl;var B3=function(){var e=_.z.apply(this,arguments)||this;e.disableGridStateAware=!1;return e};
_.Y(B3,_.z);B3.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]]"}}}}}};
B3.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
B3.prototype.updateCssVars=function(){_.Nk(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.MN("rich_grid_max_item_width",500))+16)-16+"px"})};
B3.prototype.updateCssVars=B3.prototype.updateCssVars;B3.prototype.activeChanged=B3.prototype.activeChanged;_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],B3.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],B3.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],B3.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Array)],B3.prototype,"tabs",void 0);_.t([_.u(),_.B("design:type",Boolean)],B3.prototype,"active",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],B3.prototype,"disableGridStateAware",void 0);
_.t([_.u({selector:_.Rq}),_.B("design:type",Number)],B3.prototype,"richGridItemsPerRow",void 0);_.t([_.u({selector:_.nU}),_.B("design:type",Boolean)],B3.prototype,"richGridMiniMode",void 0);_.t([_.Cs("ytd-carousel-item-renderer"),_.B("design:type",Object)],B3.prototype,"carousel",void 0);_.t([_.OY("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B3.prototype,"activeChanged",null);
_.t([_.OY("richGridItemsPerRow","richGridMiniMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B3.prototype,"updateCssVars",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],B3);
_.U(B3,"ytd-carousel-header-renderer",function(){if(fWl!==void 0)return fWl;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return fWl=e},{mode:1});var ja0;var iyM=_.Ti(["https://www.google-analytics.com/analytics.js"]),NI=function(){var e=_.z.apply(this,arguments)||this;e.scriptAnalyticsAdded=!1;return e};
_.Y(NI,_.z);NI.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var e,g=(e=this.data)==null?void 0:e.tagManagerId;g&&(_.ID(g,_.uo("GL")),JcD(g))};
NI.prototype.sendGoogleAnalyticsPageview=function(e){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var c=_.Mb.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(c)};
var g=window.ga;g("set","page",window.location.pathname);g.l=+new Date;g("set","forceSSL",!0);g("create",e,"'auto'");g("send","pageview")};
NI.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var e=_.C0("SCRIPT");e.name="ga-analytics";var g=_.jw(iyM);_.Eh(e,g);e.async=!0;_.o1(this.hostElement).appendChild(e)};
NI.prototype.dataChanged=NI.prototype.dataChanged;_.t([_.u(),_.B("design:type",Object)],NI.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NI.prototype,"dataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],NI);
_.U(NI,"ytd-channel-metadata-renderer",function(){if(ja0!==void 0)return ja0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ja0=e},{mode:1});var P4l;var m7x;var p0D=function(){return _.z.apply(this,arguments)||this};
_.Y(p0D,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],p0D.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],p0D.prototype,"data",void 0);_.t([_.bF({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],p0D);
_.U(p0D,"ytd-sub-feed-option-renderer",function(){if(m7x!==void 0)return m7x;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return m7x=e},{mode:1});var T60;var SH=function(){return _.z.apply(this,arguments)||this};
_.Y(SH,_.z);SH.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],SH.prototype,"ytRendererStamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],SH.prototype,"data",void 0);_.t([_.bF({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],SH);
_.U(SH,"ytd-sub-feed-selector-renderer",function(){if(T60!==void 0)return T60;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return T60=e},{mode:1});var yf=function(){return _.z.apply(this,arguments)||this};
_.Y(yf,_.z);
yf.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],yf.prototype,"data",void 0);_.t([_.bF({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],yf);
_.U(yf,"ytd-browse-feed-actions-renderer",function(){if(P4l!==void 0)return P4l;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return P4l=e},{mode:1});var lWg;var Anv;var KD=function(){return _.z.apply(this,arguments)||this};
_.Y(KD,_.z);KD.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],KD.prototype,"data",void 0);_.t([_.bF({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],KD);
_.U(KD,"ytd-mini-channel-renderer",function(){if(Anv!==void 0)return Anv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Anv=e},{mode:1});var sao;var Ot=function(){return _.z.apply(this,arguments)||this};
_.Y(Ot,_.z);Ot.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ot.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Ot);
_.U(Ot,"ytd-vertical-channel-section-renderer",function(){if(sao!==void 0)return sao;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return sao=e},{mode:1});var MI=function(){return _.z.apply(this,arguments)||this};
_.Y(MI,_.z);MI.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],MI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],MI.prototype,"data",void 0);_.t([_.bF({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],MI);
_.U(MI,"ytd-browse-secondary-contents-renderer",function(){if(lWg!==void 0)return lWg;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
return lWg=e},{mode:1});var Fjv;var CD=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};e.notActive=!1;e.isConstrainedList=!1;e.marginSettings=0;return e};
_.Y(CD,_.z);_.v=CD.prototype;
_.v.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]",marginSettings:"[[marginSettings]]"},matcher:function(e){var g;return(e==null?void 0:(g=e.webComponentHint)==null?void 0:g.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?
"yt-section-list-renderer":"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.v.getPath=function(e,g){var c="data.tabs.#"+g+".";e.tabs[g].tabRenderer?c+="tabRenderer.":e.tabs[g].expandableTabRenderer&&(c+="expandableTabRenderer.");return c+"content.sectionListRenderer"};
_.v.computeDisplayedContent=function(e){this.unlinkPaths("content");if(e&&e.tabs)for(var g=e.tabs.length,c=0;c<g;c++){var k=e.tabs[c].tabRenderer||e.tabs[c].expandableTabRenderer;if(k.selected&&k.content)return this.linkPaths("content",this.getPath(e,c)),k.content}return null};
_.v.computeHasSecondaryColumnData=function(e){return!!e&&!!e.secondaryContents};
_.v.onRetrieveLocation=function(e,g){g.locationRetrieved(g.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);e.stopPropagation()};
_.v.onYtServiceRequestSent=function(e,g){_.G("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(g)};
_.v.onYtServiceRequestCompleted=function(e,g){_.G("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(g)};
_.v.onReplaceFeedContentAction=function(e){if(!_.G("replace_feed_content_action_killswitch")&&!this.notActive){var g;(e=(g=_.x(e,HSx))==null?void 0:g.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(e)}};
_.v.handleServiceRequestActions=function(e){if(e=e.actions){e=_.w(e);for(var g=e.next();!g.done;g=e.next()){g=g.value;var c=void 0;((c=_.x(g,HSx))==null?0:c.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.x(g,HSx).items)}}};
CD.prototype.onYtServiceRequestCompleted=CD.prototype.onYtServiceRequestCompleted;CD.prototype.onYtServiceRequestSent=CD.prototype.onYtServiceRequestSent;CD.prototype.onRetrieveLocation=CD.prototype.onRetrieveLocation;_.t([_.m(_.Gd),_.B("design:type",Object)],CD.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],CD.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],CD.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],CD.prototype,"data",void 0);_.t([_.u({computed:"computeDisplayedContent(data)"}),_.B("design:type",Object)],CD.prototype,"content",void 0);
_.t([_.u({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],CD.prototype,"hasSecondaryColumnData",void 0);_.t([_.u({value:function(){return window.outerHeight>1024?3:2}}),
_.B("design:type",Number)],CD.prototype,"initialCount",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],CD.prototype,"pageSubtype",void 0);_.t([_.Cs("ytd-section-list-renderer"),_.B("design:type",Object)],CD.prototype,"listRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],CD.prototype,"notActive",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],CD.prototype,"isConstrainedList",void 0);
_.t([_.u(),_.B("design:type",String)],CD.prototype,"responsiveSizing",void 0);_.t([_.u(),_.B("design:type",Number)],CD.prototype,"marginSettings",void 0);_.t([_.Ks("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],CD.prototype,"onRetrieveLocation",null);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],CD.prototype,"onYtServiceRequestSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],CD.prototype,"onYtServiceRequestCompleted",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],CD);
_.U(CD,"ytd-two-column-browse-results-renderer",function(){if(Fjv!==void 0)return Fjv;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Fjv=e},{mode:2});var u2q;var d7S;var e2=function(){var e=_.z.apply(this,arguments)||this;e.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"]);e.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"]);e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return e};
_.Y(e2,_.z);_.v=e2.prototype;_.v.attached=function(){this.requestElementsPerRow()};
_.v.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.v.onUpdateElementsPerRowAction=function(e){e&&this.elementsPerRow!==e&&(this.elementsPerRow=e)};
_.v.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.v.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.v.computeAlertStyle_=function(e){return e};
_.v.observerElementsPerRow=function(){this.elementsPerRow&&_.Nk(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.v.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.v.requestElementsPerRow=function(){_.oC(this.hostElement,"yt-request-elements-per-row")};
e2.prototype.onIsVisibleChanged_=e2.prototype.onIsVisibleChanged_;e2.prototype.observerElementsPerRow=e2.prototype.observerElementsPerRow;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],e2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],e2.prototype,"actionHandlerBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],e2.prototype,"data",void 0);_.t([_.u({value:6,reflectToAttribute:!0}),_.B("design:type",Number)],e2.prototype,"elementsPerRow",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],e2.prototype,"wrapButtons",void 0);_.t([_.u({value:_.uo("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.B("design:type",Boolean)],e2.prototype,"isMusic",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.B("design:type",String)],e2.prototype,"alertStyle",void 0);_.t([_.u({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.B("design:type",Function)],e2.prototype,"dismissBoundButtonTap_",void 0);_.t([_.u({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.B("design:type",Function)],e2.prototype,"acceptBoundButtonTap_",void 0);_.t([_.OY("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e2.prototype,"observerElementsPerRow",null);_.t([_.OY("data.isVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e2.prototype,"onIsVisibleChanged_",null);_.t([_.Wo({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],e2);
_.U(e2,"yt-alert-with-actions-renderer",function(){if(d7S===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;u2q===void 0&&(u2q=document.createElement("template"));var k=u2q;c.call(g,k.content.cloneNode(!0),e.content.firstChild);d7S=e}e=d7S;return e},{mode:2});var z0M=_.H(function(e){var g={};return _.a(_.fa,{text:e.text,className:_.o6("ytPersonalGreetingViewModelHeadline",(g.ytPersonalGreetingViewModelHeadlineSmall=e.isSmallHeadline,g))})},"wk");_.sL(_.H(function(e){var g=_.EQ(function(){var h;return(h=e.data())==null?void 0:h.rendererContext},void 0,void 0,void 0,!0),c=function(){return e.data().canvasPromoData},k=function(){var h;
return(h=e.data().bannerHeight)!=null?h:56},I=_.w(_.cj({throttleMs:100})),J=I.next().value;
I=I.next().value;var q=_.w(_.cj({throttleMs:100})),L=q.next().value;q=q.next().value;var n=_.w(_.cj({throttleMs:100})),R=n.next().value;n=n.next().value;var W=function(){return L.width()-J.width()>1},b=function(){return k()===48};
return _.a("yt-personal-greeting-view-model",{el:_.mb(g,I),"aria-hidden":W,class:_.o6(e.className,"ytPersonalGreetingViewModelHost"),style:_.N2({height:(0,_.GZ)(function(){return W()?0:k()})})},_.a(_.E,{cond:function(){return e.data().avatar&&!(R.width()+(e.data().avatar?48:0)-J.width()>1)},
then:function(){return _.a(_.eS,{data:function(){return e.data().avatar}},{decoratedAvatarViewModel:function(h){return _.a(_.WG,{data:h.data,
className:_.o6("ytPersonalGreetingViewModelAvatar")})}})}}),_.a("h1",null,_.a(z0M,{text:function(){var h;
return(c==null?void 0:(h=c())==null?void 0:h.headline)||(R.width()+(e.data().avatar?48:0)-J.width()>1?e.data().shorterGreeting:e.data().greeting)},
isSmallHeadline:b})),_.a("span",{el:_.mb(n),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.a(z0M,{text:function(){return e.data().greeting},
isSmallHeadline:b})),_.a("span",{el:_.mb(q),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.a(z0M,{text:function(){return e.data().shorterGreeting},
isSmallHeadline:b})))},"vk"),"yt-personal-greeting-view-model",{props:{data:_.jx,
className:_.jx}});var gU=function(){var e=_.z.apply(this,arguments)||this;e.hidden=!1;e.isConstrainedList=!1;e.responsiveSizing="COMPACT";e.attachedPlayers=_.G("kevlar_channel_trailer_multi_attach")?[]:void 0;e.player=null;e.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return e};
_.Y(gU,_.z);_.v=gU.prototype;
_.v.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.v.created=function(){var e=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){e.disposeMastheadAd()}]};
_.v.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new Ipx(this.refresh,this.contents))};
_.v.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.v.activeChanged=function(){var e=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=e)};
_.v.tabsChanged=function(){var e=this,g,c;if(this.pageSubtype==="channels"||_.G("kevlar_tab_gestures_for_tabbed_header_data")&&((g=this.data)==null?0:(c=g.header)==null?0:c.carouselHeaderRenderer))this.tabGestures=new wDM(this.contents,this.contents,this.hostElement,this.header,function(q){e.ytdReduxBehavior.dispatch(q)});
var k,I,J;g=(k=this.data)==null?void 0:(I=k.contents)==null?void 0:(J=I.twoColumnBrowseResultsRenderer)==null?void 0:J.tabs;this.tabGestures&&this.tabGestures.tabsChanged(g)};
_.v.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.v.engagementPanelsChanged=function(){var e=_.Ss().resolve(_.Lj);if(e){if(this.engagementPanels)for(var g=_.w(this.engagementPanels),c=g.next();!c.done;c=g.next()){var k=void 0;(c=(k=c.value.identifier)==null?void 0:k.tag)&&e.panelMap.delete(c)}this.engagementPanels=[];var I;g=_.w(((I=this.data)==null?void 0:I.panels)||[]);for(I=g.next();!I.done;I=g.next()){I=_.x(I.value,oPv);var J=c=void 0,q=void 0,L=void 0;if(k=((c=I)==null?void 0:c.targetId)||((J=I)==null?void 0:J.panelIdentifier)||((q=I)==null?
void 0:(L=q.identifier)==null?void 0:L.tag))J=c=void 0,(J=(c=e).registerPanelContent)==null||J.call(c,k,{engagementPanelSectionListRenderer:I}),this.engagementPanels.push(I)}}};
_.v.onStampFinished=function(){var e=this;_.Va(this,function(){if(e.tabGestures){var g=e.tabGestures;if(g.scrollPositionNeedsUpdate){var c=_.Ss().resolve(_.NN(_.A4)),k;if((k=g.selectedTab)!=null&&k.title&&c&&(k=c.getCurrentPage())){if(g.scrollPositionForTabs.has(g.selectedTab.title)){var I,J;c=(J=(I=c.getCurrentPage())==null?void 0:I.clientHeight)!=null?J:0;I=g.scrollPositionForTabs.get(g.selectedTab.title);k.setScrollTop(I);c>I+100&&(g.scrollPositionNeedsUpdate=!1)}else k.setScrollTop(Math.min(g.lastVisitedTabScrollPosition!==
void 0?g.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,g.tabsStartAtInPx)),g.scrollPositionNeedsUpdate=!1;g.ytdReduxDispatch(ZzM(!1))}}}})};
_.v.loadPage_=function(e){this.initCsi();e&&(this.data=e);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.v.getTitle=function(e){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",e))return this.get("microformat.microformatDataRenderer.title",e);if(this.get("header.feedTabbedHeaderRenderer.title",e))return _.mp(this.get("header.feedTabbedHeaderRenderer.title",e));if(this.get("header.interactiveTabbedHeaderRenderer.title",e))return this.get("header.interactiveTabbedHeaderRenderer.title",e);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
e))return _.mp(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",e));var g,c;return(e==null?0:(g=e.header)==null?0:(c=g.pageHeaderRenderer)==null?0:c.pageTitle)?e.header.pageHeaderRenderer.pageTitle:""};
_.v.updateTitle=function(e){_.oC(this.hostElement,"yt-update-title",this.getTitle(e))};
_.v.initCsi=function(){b_x(this.pageSubtype||"browse",["ol","cpt"])};
_.v.getPlayer=function(){if(_.G("kevlar_channel_trailer_multi_attach")){for(var e=_.w(this.attachedPlayers),g=e.next();!g.done;g=e.next())if(g=g.value,g.isConnected||_.uK(this.hostElement,g))return g;return null}return this.player};
_.v.getPlayerContainer=function(){return null};
_.v.onPlayerAttached=function(e,g){_.G("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(g):this.player=g};
_.v.onPlayerDetached=function(e,g){_.G("kevlar_channel_trailer_multi_attach")?(e=this.attachedPlayers.indexOf(g),e<0||this.attachedPlayers.splice(e,1)):this.player=null};
_.v.getServiceTrackingParams=function(){var e,g;return((e=this.data)==null?void 0:(g=e.responseContext)==null?void 0:g.serviceTrackingParams)||[]};
_.v.setMastheadAd=function(e){e&&e.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=e&&e.mastheadAd};
_.v.dataChanged=function(){var e=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||jqq();_.Va(this,function(){_.V1(e.hostElement,"ytd-update-grid-state-action")})};
_.v.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.v.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var e=this.data.alerts;return e&&e.find(function(g){return!!g.alertWithActionsRenderer})}};
_.v.computeGreetingData=function(){if(this.data&&this.data.alerts){var e=this.data.alerts;return e&&e.find(function(g){return!!g.personalGreetingViewModel})}};
_.v.computeHasMemberHubProfileRenderer=function(e){var g;return!!(e==null?0:(g=e.header)==null?0:g.memberHubProfileRenderer)};
_.v.handleAlertCommand=function(e){this.get("alertCommand.alert.alertWithActionsRenderer",e)&&(e=_.x(e,kk7),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",e.alert))};
_.v.handleYtPlaylistDeletionRedirect=function(e){e=this.get("playlistDeletionRedirectCommand.redirectEndpoint",e);_.oC(this.hostElement,"yt-navigate",{endpoint:e})};
_.v.computeFluidWidth=function(e,g,c){if(g==="mini_app"||c)return!0;var k,I,J;e=e==null?void 0:(k=e.contents)==null?void 0:(I=k.twoColumnBrowseResultsRenderer)==null?void 0:(J=I.tabs)==null?void 0:J.find(function(n){var R;return n==null?void 0:(R=n.tabRenderer)==null?void 0:R.selected});
if(!e)return!1;var q,L;return!!((q=e.tabRenderer)==null?0:(L=q.content)==null?0:L.richGridRenderer)&&!["channel","channels","playables"].includes(g)};
_.v.computeHeaderFluidWidth=function(e){return e==="hashtag-landing-page"};
_.v.computeHasSidebar=function(e){var g;return!!(e.sidebar||((g=e.header)==null?0:g.playlistHeaderRenderer))};
_.v.computeHasPageHeaderSidebar=function(e){var g,c;return!!((g=e.header)==null?0:(c=g.pageHeaderRenderer)==null?0:c.enableSidebarView)};
_.v.computeUseUnifiedShowPageLayout=function(e){if(!e||this.pageSubtype!=="show"||!e.sidebar||!e.sidebar.playlistSidebarRenderer)return!1;e=e.sidebar.playlistSidebarRenderer;if(!e.items)return!1;for(var g=0;g<e.items.length;g++)if(_.x(e.items[g],TRg)){var c=void 0;return((c=_.x(e.items[g],TRg))==null?void 0:c.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.v.computeIsConstrainedList=function(e){return e==="subscriptions-channels"};
_.v.computeResponsiveSizing=function(e){return e==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Bd.Object.defineProperties(gU.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var e,g;return((e=this.data)==null?0:(g=e.header)==null?0:g.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var e,g;if(!((e=this.data)==null?0:(g=e.sidebar)==null?0:g.playlistSidebarRenderer))return!1;var c;return(c=this.data)!=null&&c.header?!1:!0}}});
_.Bd.Object.defineProperties(gU,{template:{configurable:!0,enumerable:!0,get:function(){if(qDO===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);qDO=e}e=qDO;return e}}});
gU.prototype.dataChanged=gU.prototype.dataChanged;gU.prototype.onPlayerDetached=gU.prototype.onPlayerDetached;gU.prototype.onPlayerAttached=gU.prototype.onPlayerAttached;gU.prototype.onStampFinished=gU.prototype.onStampFinished;gU.prototype.engagementPanelsChanged=gU.prototype.engagementPanelsChanged;gU.prototype.scrollAtTopChanged=gU.prototype.scrollAtTopChanged;gU.prototype.tabsChanged=gU.prototype.tabsChanged;gU.prototype.activeChanged=gU.prototype.activeChanged;
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],gU.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],gU.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],gU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],gU.prototype,"ytdReduxBehavior",void 0);_.t([_.m(ej.YtPageBehavior),_.B("design:type",Object)],gU.prototype,"ytPageBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],gU.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],gU.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],gU.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gU.prototype,"hidden",void 0);
_.t([_.u(),_.B("design:type",Object)],gU.prototype,"mastheadAdData",void 0);_.t([_.u({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.B("design:type",Object)],gU.prototype,"alertBannerData",void 0);_.t([_.u({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.B("design:type",Object)],gU.prototype,"greetingData",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],gU.prototype,"pageSubtype",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.B("design:type",Boolean)],gU.prototype,"hasMemberHubProfileRenderer",void 0);_.t([_.u({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],gU.prototype,"hasSidebar",void 0);_.t([_.u({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],gU.prototype,"hasPageHeaderSidebar",void 0);
_.t([_.u({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],gU.prototype,"roundedContainer",void 0);_.t([_.u({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],gU.prototype,"useUnifiedShowPageLayout",void 0);_.t([_.u({computed:"computeIsConstrainedList(pageSubtype)"}),_.B("design:type",Object)],gU.prototype,"isConstrainedList",void 0);
_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gU.prototype,"usePlaylistHeaderRenderer",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gU.prototype,"useOldPlaylistSidebarRenderer",null);_.t([_.u({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.B("design:type",Boolean)],gU.prototype,"fluidWidth",void 0);_.t([_.u({selector:xoO}),_.B("design:type",Boolean)],gU.prototype,"scrollAtTop",void 0);
_.t([_.u({selector:DoX}),_.B("design:type",Boolean)],gU.prototype,"tabGesturesIsActive",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.B("design:type",Boolean)],gU.prototype,"disableHeaderFluidWidth",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.B("design:type",String)],gU.prototype,"responsiveSizing",void 0);
_.t([_.Cs("ytd-two-column-browse-results-renderer"),_.B("design:type",HTMLElement)],gU.prototype,"contents",void 0);_.t([_.Cs("#header"),_.B("design:type",HTMLElement)],gU.prototype,"header",void 0);_.t([_.Cs("ytd-refresh"),_.B("design:type",Object)],gU.prototype,"refresh",void 0);_.t([_.OY("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gU.prototype,"activeChanged",null);
_.t([_.OY("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gU.prototype,"tabsChanged",null);_.t([_.OY("scrollAtTop"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gU.prototype,"scrollAtTopChanged",null);_.t([_.u(),_.B("design:type",Object)],gU.prototype,"engagementPanels",void 0);
_.t([_.OY("data.panels"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gU.prototype,"engagementPanelsChanged",null);_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gU.prototype,"onStampFinished",null);_.t([_.Ks("yt-player-attached"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Element]),_.B("design:returntype")],gU.prototype,"onPlayerAttached",null);
_.t([_.Ks("yt-player-detached"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Element]),_.B("design:returntype")],gU.prototype,"onPlayerDetached",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gU.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-browse"})],gU);var Hyz,QaS=function(){if(Hyz!==void 0)return Hyz;var e=document.createElement("template");_.P(e,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Hyz=e};var cs=function(){var e=_.z.apply(this,arguments)||this;e.currentPage=void 0;e.renderLoadingStateJobId=0;e.updatePageDataJobId=0;e.pageDisposeJobsets=new WeakMap;e.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"};e.shouldApplyLockupToWatchTransition=_.G("web_thumbnail_to_watch_transition");e.shouldApplySlideTransition=_.C4("web_page_transition_type")==="slide"||_.G("enable_plj_landing_page");e.shouldApplyLearningJourneyTransition=_.G("enable_plj_landing_page");e.TEST_ONLY=void 0;return e};
_.Y(cs,_.z);_.v=cs.prototype;_.v.ready=function(){var e=_.Ss();e.addProvider({provide:_.A4,useValue:this});e.addProvider({provide:_.oBj,useValue:this})};
_.v.created=function(){this.pagePool=new ikq;this.contextSwitcher=new MOM};
_.v.attached=function(){_.oC(this.hostElement,"attached");var e=_.Ss().resolve(_.NN(_.cg));e&&(this.contextSwitcher.JSC$20167_networkService_=e);this.viewTransitionManager=_.Ss().resolve(_.JG)};
_.v.getPageOffset=function(e){return e.getScrollTop()};
_.v.setPageOffset=function(e,g){try{e.setScrollTop(g)}catch(c){}};
_.v.setPageOffsetForNavigation=function(e,g){_.oC(this.hostElement,"yt-navigate-set-page-offset",{page:e,offset:g===void 0?0:g})};
_.v.pauseActiveContext=function(){var e=this.contextSwitcher;e.activeContext_&&e.activeContext_.pause()};
_.v.attachPage=function(e){var g,c=!_.G("pc_is_attached_ks")&&(e==null?void 0:(g=e.polymerController)==null?void 0:g.isAttached);if(!e.isAttached&&!c)try{_.o1(this.hostElement).appendChild(e)}catch(I){var k;_.mN(new _.E2("Error attaching page element for component",{origin:(k=this.currentPage)==null?void 0:k.is,component:e.is}))}};
_.v.setActivePage=function(e,g){var c=this,k=!1,I=function(){var J=c.isOnWatch(),q=c.currentPage;if(e)if(e!==c.currentPage){q&&(q.hidden=!0,q.active=!1,q.removeAttribute("role"));c.currentPage=e;var L,n=g!=null?g:_.y8((L=c.data)==null?void 0:L.endpoint);q&&_.oC(c.hostElement,"yt-page-type-changed",{oldPageType:q.is,newPageType:e.is,newPageSubtype:n});_.lF().dispatch(_.Hh({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:e.is}));_.lF().dispatch(_.Hh({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:n||""}));
e.hidden=!1;c.attachPage(e);e.active=!0;e.setAttribute("role","main");q&&c.setPageOffsetForNavigation(e,0);_.G("kevlar_remove_page_dom_on_switch")&&!J&&q&&_.o1(c.hostElement).removeChild(q)}else k=!0;else c.handleMissingDestinationPage(q)};
this.shouldRunBrowseTransition(this.currentPage,e)?JDz(this.viewTransitionManager,I):this.shouldRunLearningJourneyTransition(this.currentPage,e)?qeM(this.viewTransitionManager,I):I();return k};
_.v.handleMissingDestinationPage=function(e){if(this.isColdLoadForUnknownPage(e))_.mN(new _.E2("Cold load for unknown page"));else{var g;e=new _.E2("Unable to set active page",e?e.is:"unknown origin",(g=this.data)==null?void 0:g.endpoint);_.jW(e)}};
_.v.isColdLoadForUnknownPage=function(e){return!e&&zg(this.data)==="unknown"};
_.v.shouldRunBrowseTransition=function(e,g){return this.shouldApplySlideTransition&&(e==null?void 0:e.is)==="ytd-browse"&&(g==null?void 0:g.is)==="ytd-browse"&&e!==g};
_.v.shouldRunLearningJourneyTransition=function(e,g){return this.shouldApplyLearningJourneyTransition&&(e==null?void 0:e.is)==="ytd-browse"&&((g==null?void 0:g.is)==="ytd-watch-learning-journey"||(g==null?void 0:g.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.v.shouldRunWatchNextLoadedTransition=function(e,g){return this.viewTransitionManager&&e.is==="ytd-watch-flexy"&&g};
_.v.updatePageData=function(e){var g=this,c=this.data;this.updatePageDataJobId&&_.ft.cancelJob(this.updatePageDataJobId);this.data=e;return new _.Il(function(k){var I=function(){e.filler?g.performDataUpdate(e,c):CNS(function(){g.performDataUpdate(e,c)});
var J=_.iE();_.Pl(J,"cr")||J.processSignal("cr");k()};
e&&e.page==="watch"?g.updatePageDataJobId=_.JC(_.ft,I):I()})};
_.v.isDownloadsPage=function(e){var g,c;return(e==null?void 0:(g=e.endpoint)==null?void 0:(c=g.browseEndpoint)==null?void 0:c.browseId)==="FEdownloads"};
_.v.setPlayerSyncInterval=function(e){var g;return _.r(function(c){if(c.nextAddress==1)return c.yield(_.Ss().resolve(_.QF),2);g=c.yieldResult;g.setUpPositionSyncInterval(e);_.Uh(c)})};
_.v.performDataUpdate=function(e,g){_.G("kevlar_early_popup_close")||_.Z5(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var c=!e.filler;c&&(_.Wh("lps"),_.G("config_age_report_killswitch")||whz());var k=zg(e),I,J=!1;if(_.G("kevlar_remove_page_dom_on_switch")){var q=g&&zg(g);k===q&&(I=this.getCurrentPage())}I||(I=zz(this.pagePool,k));c&&kBQ(this.pagePool.elementPoolPopulator,k);c&&!this.renderLoadingStateJobId&&(J=this.setActivePage(I));if(I){q=k==="watch";var L=
k==="shorts",n=k==="learning_journey_watch";_.G("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(I);if(q||L||n)I.playerData=e.playerResponse;if(L){e.reelWatchSequenceResponse?I.reelWatchSequenceResponse=e.reelWatchSequenceResponse:I.cachedReelWatchSequenceResponse&&!I.reelWatchSequenceResponse&&(I.reelWatchSequenceResponse=I.cachedReelWatchSequenceResponse);e.reelWatchSequenceResponse&&(g==null?void 0:g.page)!=="shorts"&&(I.cachedReelWatchSequenceResponse=e.reelWatchSequenceResponse);
I.currentEndpoint=e.endpoint;var R;I.isPreviousPageShorts=!!(g==null?0:(R=g.endpoint)==null?0:R.reelWatchEndpoint)}R=this.isDownloadsPage(e);var W=this.isDownloadsPage(g);R&&!W?this.setPlayerSyncInterval(6E5):!R&&W&&this.setPlayerSyncInterval();_.G("block_all_player_prefetch_requests")||this.preparePrefetchRequest(e,I,c,q,L,n);LG0(_.Ss().resolve(_.xt),g,e);if(_.G("enable_ai_companion")){var b;(b=_.Ss().resolve(_.NN(_.nj)))==null||_.oFq(b,this.getPersistentPanelSurface(k))}_.sc(_.Ss().resolve(_.et));
_.G("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(I);c?(c=typeof I.loadPage,c==="function"?(I.pageContext=C_0(this.contextSwitcher,I,I.data!==e.response),c=function(){I.loadPage(e.response)},this.shouldApplySlideTransition&&I.is==="ytd-browse"&&J&&(k==="learning"||this.isDifferentBrowseId(e==null?void 0:e.endpoint,g==null?void 0:g.endpoint))?JDz(this.viewTransitionManager,c):this.shouldRunWatchNextLoadedTransition(I,J)?w6g(this.viewTransitionManager,c):c()):_.Py(new _.E2("b/38014653 ",
[k,
I.is,I.nodeName,c,I.isAttached,g&&zg(g),this.hostElement.children.length])),_.Wh("pdl")):(I.hidden=!0,e.response.filler=!0,I.data=e.response,this.attachPage(I));_.oC(this.hostElement,"yt-page-data-updated",{pageType:k})}_.h2(_.ft,function(){_.G("logging_avoid_blocking_during_navigation")&&_.guA().transition("none");var h=E0Q(),X=I;if(e){var D=Hxj(e),f=QHQ(e),l;a:{if(e.playerResponse){var A=e.playerResponse,d;if((l=A.auxiliaryUi)==null?0:(d=l.messageRenderers)==null?0:d.upsellDialogRenderer){l=A.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(e.response&&(l=e.response,(A=l.overlay)==null?0:A.upsellDialogRenderer)){l=l.overlay.upsellDialogRenderer;break a}l=void 0}var S;var V;d=(S=e.playerResponse)==null?void 0:(V=S.auxiliaryUi)==null?void 0:V.messageRenderers;S=(d==null?void 0:d.enforcementMessageViewModel)||(d==null?void 0:d.bkaEnforcementMessageViewModel);S=(S==null?void 0:S.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?S:void 0;var Q;a:{if(e.response&&(V=e.response,(Q=V.overlay)==null?0:Q.commandWrapperPromoRenderer)){Q=
V.overlay.commandWrapperPromoRenderer;break a}Q=void 0}R4M(h,D,f,l,S,Q,X)}})};
_.v.preparePrefetchRequest=function(e,g,c,k,I,J){var q,L,n,R,W,b,h,X,D,f,l,A,d,S,V;return _.r(function(Q){if(Q.nextAddress==1)return!c||!(k||I||J)||_.G("kevlar_disable_background_prefetch")&&_.HV(cZO)()===0?Q.return():(q=_.s1(g))?Q.yield(q.getPlayerPromise(),2):Q.return();L=Q.yieldResult;n=_.Ss().resolve(_.NN(_.cg));if(!n)return Q.return();if(I)return R=_.Q5(_.SM),hto(R,(W=e.endpoint)==null?void 0:W.reelWatchEndpoint,g.reelWatchSequenceResponse,L,n),Q.return();X=(b=e.response)==null?void 0:(h=b.responseContext)==
null?void 0:h.webResponseContextExtensionData;if(!X)return Q.return();d=(D=e.response)==null?void 0:(f=D.contents)==null?void 0:(l=f.twoColumnWatchNextResults)==null?void 0:(A=l.autoplay)==null?void 0:A.autoplay;S=_.Ss().resolve(_.fo);V=_.Q5(_.SM);XkD(V,X,L,n,S,d);_.Uh(Q)})};
_.v.movePlayerToWatch=function(e){var g=this,c,k;return _.r(function(I){c=zz(g.pagePool,"watch");k=c.getPlayerContainer();e.appendTo(k);_.Uh(I)})};
_.v.movePlayerToShorts=function(e){var g=this,c,k,I;return _.r(function(J){c=zz(g.pagePool,"shorts");k=c.getPlayerContainer();(I=e)==null||I.appendTo(k,void 0,!0);_.Uh(J)})};
_.v.getPlayerFromWatch=function(){var e=zz(this.pagePool,"watch");return _.s1(e)};
_.v.getPlayerFromShorts=function(){var e=zz(this.pagePool,"shorts");return _.s1(e)};
_.v.startLoadingWatch=function(){var e=this,g=zz(this.pagePool,"watch");this.renderLoadingStateJobId?(_.ft.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.G("web_watch_transition_enable_start_loading_watch_callsite")?vAv(this.viewTransitionManager,function(){e.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(g,"watch");
if(_.G("enable_ai_companion")){var c;(c=_.Ss().resolve(_.NN(_.nj)))==null||_.oFq(c,this.getPersistentPanelSurface("watch"))}};
_.v.startLoadingShorts=function(){var e=zz(this.pagePool,"shorts");this.setActivePage(e,"shorts")};
_.v.startLoadingLearningJourney=function(){var e=zz(this.pagePool,"learning_journey_watch");this.setActivePage(e,"learning_journey_watch")};
_.v.getCurrentPage=function(){return this.currentPage};
_.v.getDestinationPageType=function(){return this.destinationPageType};
_.v.getCurrentData=function(){return this.data};
_.v.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.v.isOnShorts=function(){var e;return((e=this.currentPage)==null?void 0:e.is)==="ytd-shorts"};
_.v.isWatchPage=function(e){return!!e&&(e.is==="ytd-watch-flexy"||e.is==="ytd-watch-fixie"||e.is==="ytd-watch-grid")};
_.v.preparePage=function(e,g){var c=this,k=function(){var J=c.pagePool.preparePage(e,c.currentPage,g);J&&c.attachPage(J)},I=function(J){_.pB(J,g);
_.mN(J)};
try{k()}catch(J){I(J)}};
_.v.lazyPrepareCriticalPages=function(e,g){e=_.y8(g)||e;this.maybePrepareWatchPage(e)};
_.v.maybePrepareWatchPage=function(e){e==="watch"||e==="learning_journey_watch"&&_.G("web_watch_learning_journey_disable_lazy_pages")||_.h2(_.ft,this.preparePage.bind(this,"watch"))};
_.v.renderPageLoadingState=function(e,g){this.preparePage(e,g);var c=zz(this.pagePool,e);c.loadingData&&(c.loadingData.endpoint=g);c.loading=!0;this.setActivePage(c,e);e!=="watch"&&e!=="learning_journey_watch"||_.oC(this.hostElement,"yt-guide-close")};
_.v.prepareForNavigation=function(e,g){var c=this;if(this.currentPage&&this.data){var k=_.y8(g)||e;this.destinationPageType=k;zg(this.data)==k&&_.oC(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((e==="watch"||e==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.ft.cancelJob(this.renderLoadingStateJobId);_.Ss().resolve(_.xt).deactivate(g);_.e$(_.ft,function(){var J=c.viewTransitionManager,q=c.currentPage;
if(J.isLockupToWatchTransitionEnabled&&J.isLockupThumbnailRegistrationEnabled&&q)if(J.registeredLockupThumbnail)J.lockupThumbnailRegisteredFromWatchEndpoint&&_.mN(new _.E2("Lockup thumbnail already registered from watch endpoint."));else{a:{var L=_.x(g,_.Pm);if(L==null?0:L.videoId){var n="yt-lockup-view-model ."+_.h7p(L.videoId)+" yt-thumbnail-view-model";q=q.querySelectorAll(n);if(q.length===1){L=q[0];break a}q.length>1?_.mN(new _.E2("Multiple LockupViewModel thumbnails found for videoId: "+L.videoId+
". Selector: "+n)):_.G("web_thumbnail_to_watch_transition_debug")&&_.mN(new _.E2("No LockupViewModel thumbnail found for videoId: "+L.videoId+". Selector: "+n))}L=void 0}L&&(J.registeredLockupThumbnail=L,J.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.itS(J,L))}});
var I=this.data;this.renderLoadingStateJobId=_.e$(_.ft,function(){vAv(c.viewTransitionManager,function(){if(c.data!=I){var J=zz(c.pagePool,e);c.setActivePage(J)}else c.renderPageLoadingState(e,g);c.renderLoadingStateJobId=0})},150)}};
_.v.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var e=new _.AF(1);this.currentPage.pageDisposeJobs.forEach(function(g){_.sO(e,g)});
this.pageDisposeJobsets.set(this.currentPage,e)}};
_.v.flushPageDisposeJobset=function(e){var g=this.pageDisposeJobsets.get(e);g&&(g.flushJobs(),this.pageDisposeJobsets.delete(e))};
_.v.onYtStopOldPlayer=function(e,g){g=g===void 0?!1:g;var c,k=_.g1("kevlar_new_stop_old_player_logic_pages");if(_.G("kevlar_check_current_page_on_stop_old_player")&&(k.length===0||this.currentPage&&k.includes(this.currentPage.is)))if(this.data&&(c=zg(this.data)),zg(e)===c&&this.currentPage&&zg(this.currentPage.data)!==c)var I=_.s1(this.currentPage);else c=zg(this.data),I=zz(this.pagePool,c),I=_.s1(I);else this.data&&(c=zg(this.data),I=zz(this.pagePool,c),I=_.s1(I));if(I){k=zg(e);var J=zz(this.pagePool,
k);J=_.s1(J);if(I==J)g&&!_.G("kevlar_disable_preemptive_player_reset")&&I.resetForNewPlayback();else if(g=c==="watch"&&k!=="watch",!g||k==="shorts"||_.H61()&&!LVQ(this.data,e))e=_.Ss().resolve(_.xt),g&&e.isMiniplayerActive()&&e.pipController.getWindow()||I.stop()}};
_.v.isDifferentBrowseId=function(e,g){e=_.x(e,_.KU);g=_.x(g,_.KU);return(e==null?void 0:e.browseId)!==(g==null?void 0:g.browseId)};
_.v.getPersistentPanelSurface=function(e){switch(e){case "watch":return"WATCH";default:return"APP"}};
_.Bd.Object.defineProperties(cs,{template:{configurable:!0,enumerable:!0,get:function(){return QaS()}}});
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],cs.prototype,"ytActionHandlerBehavior",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-page-manager"})],cs);_.U(cs,"ytd-page-manager",function(){return QaS()},{mode:_.ZF("kevlar_poly_si_batch_j081")?1:2});var U7O;var oTv;var kx=function(){var e=_.z.apply(this,arguments)||this;e.hasChipBar=!1;return e};
_.Y(kx,_.z);kx.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}}};
kx.prototype.computeHasChipBar=function(e){return!(e==null||!e.chipBar)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],kx.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.B("design:type",Object)],kx.prototype,"hasChipBar",void 0);_.t([_.bF({is:"ytd-search-header-renderer",disableElementRegistration:!0})],kx);
_.U(kx,"ytd-search-header-renderer",function(){if(oTv!==void 0)return oTv;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return oTv=e},{mode:1});var ZyO;var Ir=function(){return _.z.apply(this,arguments)||this};
_.Y(Ir,_.z);Ir.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ir.prototype.computeBlueBottomLink=function(e){return e};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ir.prototype,"data",void 0);_.t([_.u({computed:"computeIcon_(data.bottomIcon)"}),_.B("design:type",String)],Ir.prototype,"bottomIcon",void 0);
_.t([_.u({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Ir.prototype,"enableBlueBottomLink",void 0);_.t([_.bF({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Ir);
_.U(Ir,"ytd-web-answer-renderer",function(){if(ZyO!==void 0)return ZyO;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ZyO=e},{mode:2});var ViD;var Jl=function(){return _.z.apply(this,arguments)||this};
_.Y(Jl,_.z);Jl.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Jl.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-page-continuation"})],Jl);
_.U(Jl,"ytd-page-continuation",function(){if(ViD!==void 0)return ViD;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ViD=e},{mode:1});var tiO;var B6Q;var N67;var SiQ=function(){return _.z.apply(this,arguments)||this};
_.Y(SiQ,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],SiQ.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],SiQ.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],SiQ);
_.U(SiQ,"ytd-watch-card-one-vs-one-event",function(){if(N67!==void 0)return N67;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return N67=e},{mode:1});var ynj=function(){return _.z.apply(this,arguments)||this};
_.Y(ynj,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ynj.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ynj.prototype,"data",void 0);_.t([_.bF({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],ynj);
_.U(ynj,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(B6Q!==void 0)return B6Q;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return B6Q=e},{mode:1});var KjM;var Oyq=function(){return _.z.apply(this,arguments)||this};
_.Y(Oyq,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Oyq.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Oyq.prototype,"data",void 0);_.t([_.bF({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Oyq);
_.U(Oyq,"ytd-banner-and-box-hero-image-renderer",function(){if(KjM!==void 0)return KjM;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return KjM=e},{mode:1});var MiM;var vs=function(){var e=_.z.apply(this,arguments)||this;e.modern=_.G("web_modern_buttons");return e};
_.Y(vs,_.z);vs.prototype.computeIcon=function(){var e,g,c=(e=this.data)==null?void 0:(g=e.icon)==null?void 0:g.iconType;if(c)return _.NY(c)};
vs.prototype.computeButtonShape=function(){var e;return{buttonText:_.mp((e=this.data)==null?void 0:e.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Bd.Object.defineProperties(vs.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vs.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],vs.prototype,"modern",void 0);_.t([_.u({type:_.G("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.p("data.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],vs.prototype,"buttonColor",null);
_.t([_.bF({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],vs);
_.U(vs,"ytd-call-to-action-button-renderer",function(){if(MiM!==void 0)return MiM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return MiM=e},{mode:1});var C47;var wU=function(){return _.z.apply(this,arguments)||this};
_.Y(wU,_.z);wU.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.o1(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.F6(this.data.leftThumbnail.thumbnails,216)+")")};
wU.prototype.onLeftThumbnailChanged=wU.prototype.onLeftThumbnailChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wU.prototype,"data",void 0);_.t([_.OY("data.leftThumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wU.prototype,"onLeftThumbnailChanged",null);_.t([_.bF({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],wU);
_.U(wU,"ytd-collage-hero-image-renderer",function(){if(C47!==void 0)return C47;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return C47=e},{mode:1});var e1x;var qA=function(){return _.z.apply(this,arguments)||this};
_.Y(qA,_.z);qA.prototype.computeStyle=function(e){return e};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qA.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],qA.prototype,"componentStyle",void 0);_.t([_.bF({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],qA);
_.U(qA,"ytd-single-hero-image-renderer",function(){if(e1x!==void 0)return e1x;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return e1x=e},{mode:1});var g5Q;var Lk=function(){return _.z.apply(this,arguments)||this};
_.Y(Lk,_.z);_.v=Lk.prototype;
_.v.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.G("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.v.computeSubtitle=function(e){if(this.data){var g;if(this.data.upcomingEventData){e=_.mp(e.subtitle);var c=Number(this.data.upcomingEventData.startTime);isNaN(c)||(g=_.PL(_.vY(e,c)))}else g=e.subtitle;return g}};
_.v.onHeroTap=function(e){e.preventDefault();var g=this.data&&this.data.navigationEndpoint;!g||!_.TJ(_.lg(e),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.TJ(_.lg(e),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.G("kevlar_watchcard_hero_video_renderer_killswitch")?_.oC(this.hostElement,"yt-navigate",{navigationEndpoint:g}):this.ytComponentBehavior.resolveCommand(g))};
_.v.computeHeroTabIndex=function(e){return e&&e.simpleText?-1:0};
_.v.computeHeroRole=function(e){return e&&e.simpleText?"":"link"};
_.v.computeIsReminderButtonPresent=function(e){return!(!e||!e.reminderButton)};
_.v.computeHideBottomItems=function(e){return!(this.computeIsReminderButtonPresent(e)||e.subtitle)};
_.v.dataChanged=function(){var e=this.get("data.buttons.buttonRenderer.serviceEndpoint"),g;((g=_.x(e==null?void 0:e.commandMetadata,_.I_))==null?0:g.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(e)};
Lk.prototype.dataChanged=Lk.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Lk.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Lk.prototype,"data",void 0);
_.t([_.u({computed:"computeSubtitle(data)"}),_.B("design:type",String)],Lk.prototype,"subtitle",void 0);_.t([_.u({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Lk.prototype,"isReminderButtonPresent",void 0);_.t([_.u({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Lk.prototype,"hideBottomItems",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lk.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Lk);
_.U(Lk,"ytd-watch-card-hero-video-renderer",function(){if(g5Q!==void 0)return g5Q;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return g5Q=e},{mode:1});var cIv;var rU=function(){return _.z.apply(this,arguments)||this};
_.Y(rU,_.z);_.v=rU.prototype;_.v.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.v.computeTitleBadges=function(e){return e?[e]:[]};
_.v.computeHeaderStyle=function(e){return e?e.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.v.computeAvatarAriaLabel=function(e){if(e){var g,c,k,I;return(I=(g=e.avatar)==null?void 0:(c=g.accessibility)==null?void 0:(k=c.accessibilityData)==null?void 0:k.label)!=null?I:_.mp(e==null?void 0:e.title)}};
_.v.computeAvatarHeight=function(e){return e==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.v.computeBadgeRowClass=function(e){return(e==null?0:e[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],rU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],rU.prototype,"data",void 0);_.t([_.u({computed:"computeTitleBadges(data.titleBadge)"}),_.B("design:type",Array)],rU.prototype,"titleBadges",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.B("design:type",String)],rU.prototype,"headerStyle",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.B("design:type",String)],rU.prototype,"badgeRowClass",void 0);_.t([_.bF({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],rU);
_.U(rU,"ytd-watch-card-rich-header-renderer",function(){if(cIv!==void 0)return cIv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return cIv=e},{mode:1});var kcQ;var IoD;var ar=function(){return _.z.apply(this,arguments)||this};
_.Y(ar,_.z);ar.prototype.onMetadataTap=function(e){var g=this.data&&this.data.navigationEndpoint;g&&!_.TJ(_.lg(e),this.hostElement,["A".toString()])&&_.oC(this.hostElement,"yt-navigate",{endpoint:g})};
_.Bd.Object.defineProperties(ar.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 e;if(this.data.upcomingEventData){var g=_.mp(this.data.subtitle),c=Number(this.data.upcomingEventData.startTime);isNaN(c)||(e=_.PL(_.vY(g,c)))}else e=this.data.subtitle;return e}}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ar.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.style"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ar.prototype,"isCondensed",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ar.prototype,"subtitle",null);
_.t([_.bF({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],ar);
_.U(ar,"ytd-watch-card-compact-video-renderer",function(){if(IoD!==void 0)return IoD;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return IoD=e},{mode:1});var JID;var v5M=function(){return _.z.apply(this,arguments)||this};
_.Y(v5M,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],v5M.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],v5M.prototype,"data",void 0);_.t([_.bF({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],v5M);
_.U(v5M,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(JID!==void 0)return JID;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return JID=e},{mode:1});var nk=function(){return _.z.apply(this,arguments)||this};
_.Y(nk,_.z);nk.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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],nk.prototype,"ytRendererStamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],nk.prototype,"data",void 0);_.t([_.bF({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],nk);
_.U(nk,"ytd-vertical-watch-card-list-renderer",function(){if(kcQ!==void 0)return kcQ;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return kcQ=e},{mode:1});var wCo;var Rr=function(){var e=_.z.apply(this,arguments)||this;e.ariaExpanded="false";return e};
_.Y(Rr,_.z);_.v=Rr.prototype;_.v.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.v.dataChanged=function(){var e;this.currentSeasonIndex=((e=this.data)==null?void 0:e.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.v.computeEpisodesInfo=function(e,g,c){if(e!==void 0&&g.length===e.length)return e[c]};
_.v.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.v.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.v.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.v.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.v.getUppercaseSimpleString=function(e){return this.ytRendererBehavior.getSimpleString(e).toUpperCase()};
_.v.updateCurrentSeasonIndexFromBinding=function(e){this.currentSeasonIndex=e.detail.value};
Rr.prototype.onIronOverlayClosed=Rr.prototype.onIronOverlayClosed;Rr.prototype.currentSeasonIndexChanged=Rr.prototype.currentSeasonIndexChanged;Rr.prototype.dataChanged=Rr.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Rr.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",String)],Rr.prototype,"label",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],Rr.prototype,"currentSeasonIndex",void 0);_.t([_.u({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.B("design:type",Object)],Rr.prototype,"episodesInfo",void 0);_.t([_.u({value:"false"}),_.B("design:type",Object)],Rr.prototype,"ariaExpanded",void 0);_.t([_.Cs("#lists"),_.B("design:type",Object)],Rr.prototype,"lists",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rr.prototype,"dataChanged",null);_.t([_.k_("currentSeasonIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rr.prototype,"currentSeasonIndexChanged",null);_.t([_.Ks("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Rr.prototype,"onIronOverlayClosed",null);
_.t([_.bF({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Rr);
_.U(Rr,"ytd-watch-card-section-dropdown-renderer",function(){if(wCo!==void 0)return wCo;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return wCo=e},{mode:1});var q$X;var E3=function(){var e=_.z.apply(this,arguments)||this;e.isSearch=!1;return e};
_.Y(E3,_.z);E3.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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],E3.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],E3.prototype,"isSearch",void 0);_.t([_.bF({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],E3);
_.U(E3,"ytd-watch-card-section-sequence-renderer",function(){if(q$X!==void 0)return q$X;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
return q$X=e},{mode:1});var LJl=_.H(function(e){return _.a("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.a(_.eS,{data:function(){return e.data().ctaButton}},{buttonViewModel:_.oD}),_.a(_.fa,{text:function(){return e.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"xk");
LJl.idomCompat=!0;_.sL(LJl,"ytd-button-banner-view-model",{props:{data:_.jx}});var Ws=function(){var e=_.z.apply(this,arguments)||this;e.isSearch=!1;return e};
_.Y(Ws,_.z);
Ws.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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ws.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ws.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Ws.prototype,"rounded",void 0);_.t([_.u(),_.B("design:type",Object)],Ws.prototype,"isSearch",void 0);
_.t([_.bF({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Ws);
_.U(Ws,"ytd-universal-watch-card-renderer",function(){if(tiO!==void 0)return tiO;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return tiO=e},{mode:1});var rI0;_.sL(_.H(function(e){var g=e.data;var c;e=!((c=_.Ss().resolve(_.NN(_.gb)))==null||!c());c={};return _.a("overview-message-view-model",{class:_.o6("ytwOverviewMessageViewModelHost",(c.ytwOverviewMessageViewModelDarkBackground=e,c.ytwOverviewMessageViewModelLightBackground=!e,c))},_.a(_.E,{cond:function(){return g().primaryImage},
then:function(k){return _.a(_.pv,{data:k,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.a(_.E,{cond:function(){return g().primaryText},
then:function(){return _.a("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.a(_.fa,{text:function(){return g().primaryText}}))}}),_.a(_.E,{cond:function(){return g().secondaryText},
then:function(){return _.a("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.a(_.fa,{text:function(){return g().secondaryText}}))}}))},"yk"),"overview-message-view-model",{props:{data:_.jx}});_.sL(_.CWo,"ytd-overview-answer-view-model",{props:{data:_.jx}});var bO=function(){return _.z.apply(this,arguments)||this};
_.Y(bO,_.z);bO.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"}}}};
bO.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],bO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Tk),_.B("design:type",Object)],bO.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],bO.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],bO.prototype,"isSearch",void 0);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],bO);
_.U(bO,"ytd-secondary-search-container-renderer",function(){if(rI0!==void 0)return rI0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
return rI0=e},{mode:1});var aoz;var hl=function(){var e=_.z.apply(this,arguments)||this;e.renderSecondarySearchContainer=!1;e.isSearch=!1;return e};
_.Y(hl,_.z);_.v=hl.prototype;_.v.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.v.created=function(){var e=this;this.boundStampSecondarySearchContainerIfFits=function(){e.stampSecondarySearchContainerIfFits()};
_.Fq("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.v.computeIsSearchFrictionPage=function(e){var g,c,k,I,J;e=e==null?void 0:(g=e.primaryContents)==null?void 0:(c=g.sectionListRenderer)==null?void 0:(k=c.contents)==null?void 0:(I=k[0])==null?void 0:(J=I.itemSectionRenderer)==null?void 0:J.contents;if(!e)return!1;g=_.w(e);for(c=g.next();!c.done;c=g.next())if(k=void 0,(k=c.value)==null?0:k.searchFrictionViewModel)return!0;return!1};
_.v.computeShowSecondaryColumn=function(e,g){return!!(g&&g.secondaryContents&&e)};
_.v.activeChanged=function(){var e=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.yg(this,this.debounceStampSecondarySearchContainerIfFits)),_.Y_(function(){e.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.yg(this,this.debounceStampSecondarySearchContainerIfFits))};
_.v.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.v.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.v.debounceStampSecondarySearchContainerIfFits=function(){_.fO(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.v.onRetrieveLocation=function(e,g){g.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);e.stopPropagation()};
_.v.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
hl.prototype.dataChanged=hl.prototype.dataChanged;hl.prototype.onRetrieveLocation=hl.prototype.onRetrieveLocation;hl.prototype.persistentGuideChanged=hl.prototype.persistentGuideChanged;hl.prototype.activeChanged=hl.prototype.activeChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],hl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],hl.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.m(_.Jc),_.B("design:type",Object)],hl.prototype,"ironResizableBehavior",void 0);_.t([_.u(),_.B("design:type",Boolean)],hl.prototype,"active",void 0);_.t([_.u(),_.B("design:type",Object)],hl.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.G("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],hl.prototype,"useBiggerThumbs",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.C4("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],hl.prototype,"biggerThumbsStyle",void 0);_.t([_.u(),_.B("design:type",Object)],hl.prototype,"renderSecondarySearchContainer",void 0);_.t([_.u({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.B("design:type",Boolean)],hl.prototype,"showSecondaryColumn",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.B("design:type",Boolean)],hl.prototype,"isSearchFrictionPage",void 0);
_.t([_.u(),_.B("design:type",Object)],hl.prototype,"isSearch",void 0);_.t([_.OY("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hl.prototype,"activeChanged",null);_.t([_.OY("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hl.prototype,"persistentGuideChanged",null);
_.t([_.Ks("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],hl.prototype,"onRetrieveLocation",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hl.prototype,"dataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],hl);
_.U(hl,"ytd-two-column-search-results-renderer",function(){if(aoz!==void 0)return aoz;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return aoz=e},{mode:1});var X3=function(){var e=_.z.apply(this,arguments)||this;e.hasSearchHeader=!1;e.hasSecondaryContent=!1;e.hasBiggerThumbs=_.G("enable_desktop_search_bigger_thumbs");e.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return e};
_.Y(X3,_.z);_.v=X3.prototype;_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:n9(["aa","eocs"])}}};
_.v.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.v.loadPage_=function(e){this.initCsi();e&&(this.data=e,_.Fq("REFINEMENTS_TUPLE",["FromSearchResponse",e.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.oF(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.v.initCsi=function(){b_x("results",["ol","cpt"])};
_.v.updateTitle=function(){var e=_.eQ(window.location.href,"q");e||(e=_.eQ(window.location.href,"search_query"));_.oC(this.hostElement,"yt-update-title",e||"")};
_.v.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.v.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.G("web_srp_data_changed_terminate_imp_killswitch")||_.Z5(this.hostElement,"yt-terminate-video-preview-action")};
_.v.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.v.computeHasSearchHeader=function(e){var g;e=e==null?void 0:(g=e.header)==null?void 0:g.searchHeaderRenderer;return!!e&&(!!e.searchFilterButton||!!e.chipBar)};
_.v.computeHasSecondaryContent=function(e){var g,c;return!!(e==null?0:(g=e.contents)==null?0:(c=g.twoColumnSearchResultsRenderer)==null?0:c.secondaryContents)};
_.Bd.Object.defineProperties(X3,{template:{configurable:!0,enumerable:!0,get:function(){if(U7O===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);U7O=e}e=U7O;return e}}});
X3.prototype.onReloadContinuationFinish=X3.prototype.onReloadContinuationFinish;X3.prototype.dataChanged=X3.prototype.dataChanged;_.t([_.m(ej.YtPageBehavior),_.B("design:type",Object)],X3.prototype,"ytPageBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],X3.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Tk),_.B("design:type",Object)],X3.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],X3.prototype,"data",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],X3.prototype,"monitorScroll",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],X3.prototype,"hasSearchHeader",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],X3.prototype,"hasSecondaryContent",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],X3.prototype,"hasBiggerThumbs",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],X3.prototype,"dataChanged",null);
_.t([_.Ks("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],X3.prototype,"onReloadContinuationFinish",null);_.t([_.bF({is:"ytd-search"})],X3);var n5v;var R1q;var E5z;var GK=function(){var e=_.z.apply(this,arguments)||this;e.ctaVisualElement=null;e.currentCsn=null;return e};
_.Y(GK,_.z);_.v=GK.prototype;_.v.onDataChanged=function(){this.maybeLogShows()};
_.v.computeButtonShape=function(){var e=this;if(this.data)return{buttonText:_.mp(this.data.text),state:"active",onTap:function(){e.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.v.maybeCreateCtaVe=function(){var e;if((e=this.data)!=null&&e.badgeInteractionLogging){var g;if(e=(g=this.data.badgeInteractionLogging)==null?void 0:g.trackingParams)this.ctaVisualElement=_.Jb(e)}};
_.v.maybeLogClicks=function(){this.currentCsn=_.EM(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.m7(this.currentCsn,this.ctaVisualElement)};
_.v.maybeLogShows=function(){this.currentCsn=_.EM(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.iB(this.currentCsn,[this.ctaVisualElement])};
_.v.onTap=function(){var e;if((e=this.data)!=null&&e.onClickCommand){var g;this.ytComponentBehavior.resolveCommand((g=this.data)==null?void 0:g.onClickCommand);this.maybeLogClicks()}};
GK.prototype.onDataChanged=GK.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],GK.prototype,"ytComponentBehavior",void 0);_.t([_.u({}),_.B("design:type",Object)],GK.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GK.prototype,"onDataChanged",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],GK);
_.U(GK,"ytd-shopping-overlay-badge-renderer",function(){if(E5z!==void 0)return E5z;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return E5z=e},{mode:1});var WJO;var xx=function(){return _.z.apply(this,arguments)||this};
_.Y(xx,_.z);xx.prototype.computeShouldButtonBeVertical=function(e,g){return e||g};
xx.prototype.onYtServiceRequestSent=function(e,g){(e=_.x(g.endpoint,_.LP))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.cY("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:e.status})):this.handleLikeEndpoint(e))};
xx.prototype.computelikeStatusEntityKey=function(e){return e==null?void 0:e.likeStatusEntityKey};
xx.prototype.handleLikeEndpoint=function(e){e.status==="LIKE"?this.JSC$22057_ytdDislikeToggleButtonRenderer.toggle(!1):e.status==="DISLIKE"?this.JSC$22057_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$22057_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$22057_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Bd.Object.defineProperties(xx.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var e;return YUv(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(e=this.likeStatusEntity)==null?void 0:e.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var e;if(this.data&&((e=this.data)==null||!e.hideDislikeButton)){var g;return YUv(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(g=this.likeStatusEntity)==null?void 0:g.likeStatus)}}}});
xx.prototype.onYtServiceRequestSent=xx.prototype.onYtServiceRequestSent;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],xx.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],xx.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],xx.prototype,"vertical",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],xx.prototype,"textTransform",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],xx.prototype,"useShortsIcon",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],xx.prototype,"underIconLabel",void 0);_.t([_.u({value:"left"}),_.B("design:type",String)],xx.prototype,"buttonTooltipPosition",void 0);_.t([_.u(),_.B("design:type",Object)],xx.prototype,"overrides",void 0);
_.t([_.Cs("#like-button"),_.B("design:type",Object)],xx.prototype,"JSC$22057_ytdLikeToggleButtonRenderer",void 0);_.t([_.Cs("#dislike-button"),_.B("design:type",Object)],xx.prototype,"JSC$22057_ytdDislikeToggleButtonRenderer",void 0);_.t([_.p("data","likeStatusEntity.likeStatus","useShortsIcon"),_.B("design:type",Object),_.B("design:paramtypes",[])],xx.prototype,"likeButton",null);
_.t([_.p("data","likeStatusEntity.likeStatus","useShortsIcon"),_.B("design:type",Object),_.B("design:paramtypes",[])],xx.prototype,"dislikeButton",null);_.t([_.u({computed:"computelikeStatusEntityKey(data)"}),_.B("design:type",String)],xx.prototype,"likeStatusEntityKey",void 0);_.t([_.u({selectorArgs:["likeStatusEntityKey"],selector:_.WO}),_.B("design:type",Object)],xx.prototype,"likeStatusEntity",void 0);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],xx.prototype,"onYtServiceRequestSent",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],xx);
_.oI()(xx,"ytd-like-button-renderer",function(){if(WJO===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);WJO=e}e=WJO;return e},{mode:1});_.sL(_.xNg,"reel-sound-metadata-view-model",{props:{data:_.TF,overlayDensity:_.TF}});_.sL(_.UbO,"player-disclosure-view-model",{props:{data:_.jx,extractOverlay:_.jx}});_.sL(_.TUu,"pivot-button-view-model",{props:{data:_.TF,className:_.TF}});_.sL(_.lzq,"reel-action-bar-view-model",{props:{data:_.jx,buttonShapeOverrideables:_.jx}});_.sL(_.DfO,"yt-reel-metapanel-view-model",{props:{data:_.jx,overlayDensity:_.jx,extractOverlay:_.jx}});var bGx=_.H(function(e){var g=e.children;var c=e.region;e=_.w(_.Wa(void 0,void 0,"flxBBc"));var k=e.next().value,I=e.next().value;e=_.w(_.Wa("0px",void 0,"IAR7k"));var J=e.next().value,q=e.next().value;e=_.w(_.Wa("0px",void 0,"QV4iWb"));var L=e.next().value,n=e.next().value;e=_.w(_.Wa(0,void 0,"Q2oK6b"));var R=e.next().value,W=e.next().value;e=_.w(_.Wa(0,void 0,"hYKowe"));var b=e.next().value,h=e.next().value,X=function(){var S=k();if(S){var V;if(((V=_.BO())==null?void 0:V.getPlayerState())!==-1){S.style.display=
"inherit";var Q;(Q=_.BO())==null||Q.removeEventListener("onStateChange",X)}else S.style.display="none";f()}},D=function(){var S;
return(S=_.FE())==null?void 0:S.querySelector("video")},f=function(){var S=D();
if(S){W(S.getBoundingClientRect().width);h(S.getBoundingClientRect().height);var V;q((S==null?void 0:(V=S.style)==null?void 0:V.left)||"0px");var Q;n((S==null?void 0:(Q=S.style)==null?void 0:Q.top)||"0px")}};
_.AV(function(){var S=k();if(S){var V,Q,y;if(((V=_.BO())==null?void 0:V.getPlayerState())===-1&&Math.round(((y=(Q=_.BO())==null?void 0:Q.getVideoAspectRatio())!=null?y:0)*100)!==Math.round(R()/b()*100)){S.style.display="none";var O,Jq;h(R()/((Jq=(O=_.BO())==null?void 0:O.getVideoAspectRatio())!=null?Jq:1))}}},"N29KDe");
var l=function(){f()},A;
_.Tr(function(){f();var S;if(!(c==null?0:(S=c())==null?0:S.transformationMatrix))throw Error("em");var V;(V=_.BO())==null||V.addEventListener("onStateChange",X);if(window.ResizeObserver){if(S=D())A=new ResizeObserver(l),A.observe(S)}else window.addEventListener("resize",f);_.sX(function(){var Q;(Q=_.BO())==null||Q.removeEventListener("onStateChange",X);A?A.disconnect():window.removeEventListener("resize",f)})});
var d=function(){var S,V,Q=(V=c==null?void 0:(S=c())==null?void 0:S.transformationMatrix)!=null?V:[];S=R();V=b();for(var y=[],O=0,Jq=-1;O<Q.length;O++)O%3===0&&(Jq++,y[Jq]=[]),y[Jq].push(Q[O]);Q=new nJ(y);y=new nJ([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);y=Q.multiply(y);Q=new nJ([[0,0],[0,0],[0,0],[0,0]]);for(O=0;O<y.getSize().width;O++){Jq=w_(y,0,O);var LC=w_(y,1,O);if(Jq===null||LC===null)throw Error("dm`"+(O+1).toString());cTX(Q,O,0,Jq*S);cTX(Q,O,1,LC*V)}S=w_(Q,0,0);O=w_(Q,1,0);V=w_(Q,0,1);Jq=w_(Q,1,1);
if(S===null||O===null||V===null||Jq===null)throw Error("bm");y=f4X(S,O,V,Jq);LC=w_(Q,3,0);Q=w_(Q,3,1);if(LC===null||Q===null)throw Error("cm");Q=f4X(S,LC,V,Q);Jq=(Number((Jq*-1).toFixed(2))-Number((V*-1).toFixed(2)))/(Number(O.toFixed(2))-Number(S.toFixed(2)));LC=Math.atan(Jq)*180/Math.PI;O=Jq===Number.POSITIVE_INFINITY?-90:Jq===Number.NEGATIVE_INFINITY?90:Object.is(Jq,-0)?180:Jq===0?0:Jq>0?LC*-1:S<O?LC*-1:Math.abs(LC)+180;return"left:calc("+S+"px + "+J()+"); top:calc("+(V+"px + "+L()+"); width:")+
(y+"px; height:")+(Q+"px; transform:rotate(")+(O+"deg);\n        --sticker-width:"+y+";")};
return _.a(_.whK,{root:"#sticker-layer"},function(){return _.a("yt-overlay-sticker",{el:_.mb(I),style:d,class:"ytOverlayStickerHost"},g)})},"Bk");var h1S=_.H(function(e){function g(){var X,D,f,l,A=(D=_.x((X=n())==null?void 0:X.command,_.etI))==null?void 0:(f=D.item)==null?void 0:(l=f.notificationTextRenderer)==null?void 0:l.successResponseText;if(A)X=_.Aw(A),_.Z5(k.value,"yt-open-popup-action",[X,k.value]);else if(R())iqg(R(),k.value);else{var d;iqg((d=n())==null?void 0:d.command,k.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var c=e.data;var k=_.io("svg"),I=_.w(_.Wa(!1,void 0,"e9onLe"));e=I.next().value;var J=I.next().value,q=_.w(_.Wa(!1,void 0,"ptnIQd"));I=q.next().value;var L=q.next().value,n=function(){var X;return _.x((X=c())==null?void 0:X.popUp,u_g)},R=function(){var X;
return(X=c())==null?void 0:X.command},W=function(){return _.x(R(),_.ku)!==void 0};
q=_.Ve(function(){g();return!1});
var b={},h={};return _.a("svg",{"on:mouseover":_.Ve(function(){W()&&J(!0);L(!0);return!1}),
"on:mouseout":_.Ve(function(){J(!1);L(!1);return!1}),
"on:keydown":_.Ve(function(X){X.key==="Enter"&&g();return!1}),
"on:focus":_.Ve(function(){W()&&J(!0);return!1}),
"on:blur":_.Ve(function(){W()&&J(!1);return!1}),
el:k,tabindex:0,"aria-label":function(){var X;return(X=c())==null?void 0:X.a11yString},
id:"player-overlay-video-interaction-svg",class:_.o6("ytPlayerOverlayInteractionInteractionsSvg",(b.ytPlayerOverlayInteractionInteractionsSvgHover=e,b),(h.ytPlayerOverlayInteractionInteractionsSvgHideOutline=I,h)),role:"button","on:click":q})},"Ek");_.sL(_.H(function(e){var g=e.data;_.Tr(function(){var c;if((c=g())==null?0:c.trackingParams){var k;_.gL().graftServerVe((k=g().trackingParams)!=null?k:"")}});
return _.a("yt-player-overlay-interaction",null,_.a(bGx,{region:function(){var c,k;return(c=g())==null?void 0:(k=c.regions)==null?void 0:k[0]}},_.a(h1S,Object.assign({},e))))},"Dk"),"yt-player-overlay-interaction",{props:{data:_.jx}});var XCO=_.H(function(e){var g=e.data;var c=e.index;var k=e.selectedChoice;var I=function(){var J;return _.x((J=g())==null?void 0:J.renderer,CYo)};
e={};return _.a("yt-overlay-poll-sticker-choice",{class:_.o6("ytOverlayPollStickerChoiceHost"),style:_.N2({"--displayed-percentage":function(){var J,q,L,n;return""+Math.ceil(Number((k==null?void 0:k())===c()?(J=I())==null?void 0:(q=J.selected)==null?void 0:q.progressBarWidth:(L=I())==null?void 0:(n=L.unselected)==null?void 0:n.progressBarWidth)*100)}})},_.a("div",{class:_.o6("ytOverlayPollStickerChoicePollChoice",(e.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(k==null?void 0:k())!==
void 0},e.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(k==null?void 0:k())===c()},e))},_.a("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var J;
return((J=I())==null?void 0:J.text)||""}),_.a("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(k==null?void 0:k())==="undefined")var J="";
else{var q,L,n,R;J=(k==null?void 0:k())===c()?(q=I())==null?void 0:(L=q.selected)==null?void 0:L.votePercentage:(n=I())==null?void 0:(R=n.unselected)==null?void 0:R.votePercentage}return J})))},"Fk");var Gcx=_.H(function(e){var g=e.data;var c=e.enableDebuggingFeatures;var k=_.M2(function(J){var q,L=((q=g())==null?void 0:q.postPollStateEntityKey)||"";J=_.Nc(J.entities,"postPollStateEntity",L);var n;return((n=g())==null?0:n.viewerIsOwner)?Object.assign({},J,{selectedOptionId:-1,voted:!0}):J}),I=_.Ss().resolve(_.xk);
e={};return _.a("yt-overlay-poll-sticker",null,_.a(bGx,{region:function(){var J,q;return(J=g())==null?void 0:(q=J.region)==null?void 0:q.interactionRegion}},_.a("div",{class:_.o6("ytOverlayPollStickerHost",(e.ytOverlayPollStickerDebugStyle=function(){return c==null?void 0:c()},e)),
style:_.N2({"--original-height":function(){var J;return""+(((J=g())==null?void 0:J.mainBodyHeight)||1)},
"--original-width":function(){var J;return""+(((J=g())==null?void 0:J.mainBodyWidth)||1)},
"--scaled-width":function(){var J;return""+(((J=g())==null?void 0:J.mainBodyWidth)||1)},
"--primary-surface":function(){var J,q;return jsq(((J=g())==null?void 0:(q=J.theme)==null?void 0:q.primarySurface)||0)},
"--raised-surface":function(){var J,q;return jsq(((J=g())==null?void 0:(q=J.theme)==null?void 0:q.raisedSurface)||0)},
"--secondary-surface":function(){var J,q;return jsq(((J=g())==null?void 0:(q=J.theme)==null?void 0:q.secondarySurface)||0)},
"--primary-text":function(){var J,q;return jsq(((J=g())==null?void 0:(q=J.theme)==null?void 0:q.primaryText)||0)},
"--secondary-text":function(){var J,q;return jsq(((J=g())==null?void 0:(q=J.theme)==null?void 0:q.secondaryText)||0)}})},_.a("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return g().questionText}," "),_.a(_.Yz,{each:function(){return g().pollChoiceConfigs||[]}},function(J,q){return _.a("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.Ve(function(){var L=q(),n;if((n=g())==null||!n.viewerIsOwner){var R,W;n=(R=g())==null?void 0:(W=R.pollChoiceConfigs)==null?void 0:W[L];if(W=(n==null?0:n.renderer)?_.x(n.renderer,CYo):void 0){var b;R=((b=k())==null?void 0:b.selectedOptionId)!==L;var h;if(b=(h=R?W.selectedPollCommand:W.deselectedPollCommand)==null?void 0:h.innertubeCommand){I.resolveCommand(b);var X,D;_.lF().dispatch(_.cY("postPollStateEntity",((X=k())==null?void 0:X.key)||"",{key:((D=k())==null?void 0:D.key)||"",selectedOptionId:R?
L:-1,voted:R}))}}}})},_.a(XCO,{data:J,
index:q,selectedChoice:function(){var L,n;return((L=k())==null?0:L.voted)?(n=k())==null?void 0:n.selectedOptionId:void 0}}))}),_.a("div",{class:"ytOverlayPollStickerVoteCount"},function(){var J,q;
return((J=k())==null?0:J.voted)&&((q=k())==null?void 0:q.selectedOptionId)!==-1?g().postVoteCountText:g().preVoteCountText}))))},"Gk");_.sL(_.H(function(e){var g=e.data;e=_.xF(function(){var c;return _.G("enable_shorts_poll_stickers_web")?(((c=g())==null?void 0:c.stickers)||[]).filter(function(k){return k.pollSticker}):[]},void 0,"Cflxwb");
return _.a("yt-stickers-layer",null,_.a(_.Yz,{each:e},function(c){return _.a(Gcx,{data:c.pollSticker,enableDebuggingFeatures:function(){var k;return(k=g())==null?void 0:k.enableDebuggingFeatures}})}))},"Hk"),"yt-stickers-layer",{props:{data:_.jx}});var Dz=function(){var e=_.z.apply(this,arguments)||this;e.showScrubber=!1;e.isWatchWhileMode=!1;e.enableAnchoredPanel=_.G("desktop_shorts_v2_anchored_panel");e.enablePollStickers=_.G("enable_shorts_poll_stickers_web");e.anchoredPanelActive=!1;e.enableLivingroomLayout=_.G("reels_enable_livingroom_layout");e.enablePlayerMetadataContainer=_.G("reels_web_enable_metadata_container");e.enableSqueezebackPanels=_.G("web_shorts_enable_squeezeback_panels");e.useAspectRatio=_.G("web_use_aspect_ratio");e.isSqueezebackActive=
!1;e.smallScreenSqueezeback=!1;e.isPlayerStarted=!1;e.overlayDensity=0;e.extractOverlay=!1;e.extractActionBar=!1;e.isOverlay=!1;e.isImmersive=!1;e.isImmersiveHorizontal=!1;e.isFullscreen=!1;e.onWindowResized=function(){var g;e.set("isImmersive",((g=window.getComputedStyle(e.hostElement))==null?void 0:g.getPropertyValue("--immersive-mode-on"))==="1");e.set("isImmersiveHorizontal",e.isImmersive&&e.enableLivingroomLayout&&!e.isWatchWhileMode)};
return e};
_.Y(Dz,_.z);_.v=Dz.prototype;_.v.updateIsOverlay=function(e){this.isOverlay=e.detail.value};
_.v.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.v.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.v.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.v.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.v.onOverlayDensityChange=function(){var e=_.o1(this.hostElement).querySelector("ytd-info-panel-container-renderer");e&&(e.set("extractOverlay",this.extractOverlay),e.set("roundedContainer",this.extractOverlay))};
_.v.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.v.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.v.ready=function(){(_.G("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.G("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.C4("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.C4("reels_action_justified_content")||"flex-start")};
_.v.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.v.setFakeLoadingButtons=function(){_.G("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.C_("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.C_("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.C_("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.C_("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.C_("REMIX_LABEL",void 0,"Remix")}}}));this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.v.setEmptyOverlayMetadata=function(){_.G("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}))};
_.Bd.Object.defineProperties(Dz.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.infoPanel)}}});
Dz.prototype.onOverlayDensityChange=Dz.prototype.onOverlayDensityChange;Dz.prototype.onIsActiveChanged=Dz.prototype.onIsActiveChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Dz.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Dz.prototype,"ytdReduxBehavior",void 0);
_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Dz.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Dz.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],Dz.prototype,"isActive",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Dz.prototype,"hidden",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],Dz.prototype,"useShortsIcon",void 0);
_.t([_.u({value:"left"}),_.B("design:type",String)],Dz.prototype,"buttonTooltipPosition",void 0);_.t([_.u({value:_.G("reels_enable_livingroom_layout")?"top":"left"}),_.B("design:type",String)],Dz.prototype,"likeButtonTooltipPosition",void 0);_.t([_.u({value:"none"}),_.B("design:type",String)],Dz.prototype,"textTransform",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"showScrubber",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"isWatchWhileMode",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.infoPanel"),_.B("design:type",Object),_.B("design:paramtypes",[])],Dz.prototype,"hasInfoPanel",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"enableAnchoredPanel",void 0);_.t([_.u(),_.B("design:type",Object)],Dz.prototype,"enablePollStickers",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"anchoredPanelActive",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"enableLivingroomLayout",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Dz.prototype,"enablePlayerMetadataContainer",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"enableSqueezebackPanels",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"useAspectRatio",void 0);_.t([_.u({selector:_.aTp,reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"isSqueezebackActive",void 0);_.t([_.u({selector:$W0,reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"smallScreenSqueezeback",void 0);_.t([_.u({selector:Yox}),_.B("design:type",Object)],Dz.prototype,"isPlayerStarted",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"overlayDensity",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"extractOverlay",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"extractActionBar",void 0);_.t([_.u(),_.B("design:type",Object)],Dz.prototype,"isOverlay",void 0);_.t([_.u(),_.B("design:type",Object)],Dz.prototype,"isImmersive",void 0);
_.t([_.u(),_.B("design:type",Object)],Dz.prototype,"isImmersiveHorizontal",void 0);_.t([_.u({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.B("design:type",Boolean)],Dz.prototype,"isShortsImmersive",void 0);_.t([_.u({computed:"computeButtonOverride(extractActionBar)"}),_.B("design:type",Object)],Dz.prototype,"buttonOverride",void 0);
_.t([_.u({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.B("design:type",Object)],Dz.prototype,"actionBarButtonOverride",void 0);_.t([_.u({selector:_.QD,reflectToAttribute:!0}),_.B("design:type",Object)],Dz.prototype,"isFullscreen",void 0);_.t([_.OY("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dz.prototype,"onIsActiveChanged",null);
_.t([_.OY("extractOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dz.prototype,"onOverlayDensityChange",null);_.t([_.bF({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Dz);
_.U(Dz,"ytd-reel-player-overlay-renderer",function(){if(R1q!==void 0)return R1q;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n  </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return R1q=e},{mode:1});var xil;var $x=function(){var e=_.z.apply(this,arguments)||this;e.videoDuration=0;e.playedTime=0;e.isActive=!1;e.JSC$22082_playerEvents=new Map;return e};
_.Y($x,_.z);_.v=$x.prototype;_.v.created=function(){this.JSC$22082_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22082_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.v.attached=function(){this.getPlayerAndInitializeListeners()};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22082_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.yg(this,this.onPageChanged))};
_.v.getPlayerAndInitializeListeners=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return g=_.FE(),g?c.yield(g.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.yg(e,e.onPageChanged)),c.jumpTo(0));e.player=c.yieldResult;e.initializePlayerListeners();_.Uh(c)})};
_.v.onPageChanged=function(e){var g=this;return _.r(function(c){if(c.nextAddress==1)return e.detail.newPageType!=="ytd-shorts"?c.return():c.yield(_.u6().getPlayerPromise(),2);g.player=c.yieldResult;g.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.yg(g,g.onPageChanged));_.Uh(c)})};
_.v.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22082_playerEvents)};
_.v.onVideoDataChange=function(e){var g=this;return _.r(function(c){if(!g.player||e.type!=="newdata")return c.return();g.videoDuration=_.G("web_shorts_use_progress_state_for_gapless")?g.player.getProgressState(e.playertype).seekableEnd:g.player.getDuration(e.playertype);g.playedTime=0;_.Uh(c)})};
_.v.onVideoProgress=function(e){var g=this,c,k;return _.r(function(I){if(!g.player)return I.return();c=g.player.getPresentingPlayerType();k=g.player.getPlayerState();g.videoDuration=_.G("web_shorts_use_progress_state_for_gapless")?g.player.getProgressState(c).seekableEnd:g.player.getDuration(c);g.playedTime=k===0?g.videoDuration:e;_.Uh(I)})};
_.v.getPercentPlayed=function(e,g){return e?_.Pc(g/e,0,1):0};
_.Bd.Object.defineProperties($x.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 e="";return e=this.videoDuration&&this.playedTime?e+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):e+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],$x.prototype,"componentBehavior",void 0);_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],$x.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$x.prototype,"player",void 0);_.t([_.u(),_.B("design:type",Object)],$x.prototype,"videoDuration",void 0);_.t([_.u(),_.B("design:type",Object)],$x.prototype,"playedTime",void 0);_.t([_.u(),_.B("design:type",Object)],$x.prototype,"isActive",void 0);
_.t([_.p("videoDuration","playedTime"),_.B("design:type",Number),_.B("design:paramtypes",[])],$x.prototype,"percentPlayed",null);_.t([_.p("videoDuration","playedTime"),_.B("design:type",Object),_.B("design:paramtypes",[])],$x.prototype,"percentPlayedStyle",null);_.t([_.p("videoDuration","isActive"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$x.prototype,"hideProgressBar",null);
_.U($x,"ytd-progress-bar-line",function(){if(xil===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);xil=e}e=xil;return e},{mode:2});var DiS;_.sL(LTD,"ytm-closed-captioning-button",{props:{captionIconType:_.jx,onClick:_.TF,ariaLabel:_.jx,ariaPressed:_.jx,isOverlay:_.TF}});_.sL(_.bBS,"volume-controls",{props:{orientation:_.jx}});var Yx=function(){var e=_.z.apply(this,arguments)||this;e.playerState=null;e.isMuted=!1;e.volumeControlsOrientationState="horizontal_right";e.isOverlay=!0;e.isAdsOverlay=!1;e.captionIconType=-1;e.ariaLabel="";e.overlayDensity=0;e.JSC$22085_playerEvents=new Map;e.onClosedCaptionsButtonClick=function(){e.player&&pLv(e.player)&&(e.player.toggleSubtitles(),e.updateCaptionIconType())};
return e};
_.Y(Yx,_.z);_.v=Yx.prototype;_.v.created=function(){this.JSC$22085_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22085_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.JSC$22085_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.v.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.VF(28662);this.playPauseButtonClientVE=_.VF(36842);this.fullscreenButtonToggleOffClientVE=_.VF(222256);this.fullscreenButtonToggleOnClientVE=_.VF(222257);var e=_.EM(),g=_.RC();e&&g&&(_.G("combine_ve_grafts")?(_.Nd(_.gL(),this.muteButtonClientVE,g),_.Nd(_.gL(),this.playPauseButtonClientVE,g)):_.fA(e,g,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22085_playerEvents),this.player=null)};
_.v.updateCaptionIconType=function(){var e=-1,g=void 0,c=_.C_("CLOSED_CAPTIONS_DISABLED");this.player&&pLv(this.player)&&(Tqq(this.player)?(g=!0,c=_.C_("CLOSED_CAPTIONS_ON"),e=1):(g=!1,c=_.C_("CLOSED_CAPTIONS_OFF"),e=0));this.captionIconType=e;this.ariaPressedState=g;this.ariaLabel=c};
_.v.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.v.getPlayerAndInitializeListeners=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return g=_.FE(),g?c.yield(g.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.yg(e,e.onPageChanged)),c.jumpTo(0));e.player=c.yieldResult;e.initializePlayerListeners();_.Uh(c)})};
_.v.onPageChanged=function(e){var g=this;return _.r(function(c){if(c.nextAddress==1)return e.detail.newPageType!=="ytd-shorts"?c.return():c.yield(_.u6().getPlayerPromise(),2);g.player=c.yieldResult;g.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.yg(g,g.onPageChanged));_.Uh(c)})};
_.v.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22085_playerEvents);this.updateCaptionIconType()};
_.v.onPlayerStateChange=function(e){this.playerState=e};
_.v.onPlayerVolumeChange=function(e){this.isMuted=e.muted};
_.v.onPlayPauseButtonClick=function(){var e=this,g,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(_.u6().getPlayerPromise(),2);g=k.yieldResult;(c=_.EM())&&e.playPauseButtonClientVE&&_.m7(c,e.playPauseButtonClientVE);g.getPlayerState()!==1?g.playVideo():g.pauseVideo();_.Uh(k)})};
_.v.computePlayPauseIcon=function(e){return e===2||e===-1||e===5?"PLAY_ARROW_FILLED":"PAUSE_FILLED"};
_.v.computeFullscreenLabel=function(e){return e?_.C_("FULLSCREEN_EXIT_LABEL"):_.C_("FULLSCREEN_ENTER_LABEL")};
_.v.computePlayPauseLabel=function(e){return e===1||e===3?_.C_("PLAYER_LABEL_PAUSE"):_.C_("PLAYER_LABEL_PLAY")};
_.v.onMuteButtonClick=function(){var e=this,g,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(_.u6().getPlayerPromise(),2);g=k.yieldResult;(c=_.EM())&&e.muteButtonClientVE&&_.m7(c,e.muteButtonClientVE);g.isMuted()?g.unMute(!0):g.mute(!0);_.Uh(k)})};
_.v.computeMuteIcon=function(e){return e?"miniplayer:volume-off":"miniplayer:volume-up"};
_.v.computeMuteLabel=function(e){return e?_.C_("PLAYER_LABEL_UNMUTE"):_.C_("PLAYER_LABEL_MUTE")};
_.v.onFullscreenButtonClick=function(){var e=_.EM();e&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.m7(e,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.m7(e,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();oHq()};
_.Bd.Object.defineProperties(Yx.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var e=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(){e.onPlayPauseButtonClick()},
disableBackdropFilter:!0,customColors:{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:!0,customColors:{backgroundColor:"transparent"}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"player_full_exit_alt":"player_full_enter_alt"}}});
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Yx.prototype,"componentBehavior",void 0);_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],Yx.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Yx.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Yx.prototype,"player",void 0);_.t([_.u(),_.B("design:type",Object)],Yx.prototype,"playerState",void 0);_.t([_.u(),_.B("design:type",Object)],Yx.prototype,"isMuted",void 0);
_.t([_.u({computed:"computePlayPauseIcon(playerState)"}),_.B("design:type",String)],Yx.prototype,"playPauseIcon",void 0);_.t([_.u({computed:"computeMuteIcon(isMuted)"}),_.B("design:type",String)],Yx.prototype,"muteIcon",void 0);_.t([_.u({selector:_.QD}),_.B("design:type",Boolean)],Yx.prototype,"isFullscreen",void 0);_.t([_.u(),_.B("design:type",Object)],Yx.prototype,"volumeControlsOrientationState",void 0);_.t([_.u(),_.B("design:type",Object)],Yx.prototype,"isOverlay",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Yx.prototype,"isAdsOverlay",void 0);_.t([_.u(),_.B("design:type",Object)],Yx.prototype,"captionIconType",void 0);_.t([_.u(),_.B("design:type",Object)],Yx.prototype,"ariaLabel",void 0);_.t([_.u(),_.B("design:type",Object)],Yx.prototype,"ariaPressedState",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Yx.prototype,"overlayDensity",void 0);_.t([_.u(),_.B("design:type",Object)],Yx.prototype,"data",void 0);
_.t([_.u({computed:"computeActionBarButtonOverride()"}),_.B("design:type",Object)],Yx.prototype,"actionBarButtonOverride",void 0);_.t([_.p("playerState"),_.B("design:type",Object),_.B("design:paramtypes",[])],Yx.prototype,"playPauseButtonData",null);_.t([_.p("isFullscreen"),_.B("design:type",Object),_.B("design:paramtypes",[])],Yx.prototype,"fullscreenButtonData",null);_.t([_.u(),_.B("design:type",Object)],Yx.prototype,"onClosedCaptionsButtonClick",void 0);
_.t([_.p("isFullscreen"),_.B("design:type",String),_.B("design:paramtypes",[])],Yx.prototype,"fullscreenIcon",null);
_.U(Yx,"ytd-shorts-player-controls",function(){if(DiS===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-controls" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></volume-controls>\n</div>\n<div id="right-controls" class="style-scope ytd-shorts-player-controls">\n  <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n    <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n    </ytm-closed-captioning-button>\n  </div>\n  <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n    <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n  </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);DiS=e}e=DiS;return e},{mode:1});var $iS;_.sL(_.lED,"yt-interstitial-view-model",{props:{data:_.jx}});var Y$x=_.H(function(e){var g=e.data;return _.a("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.a("h1",{class:"reelWatchBreakViewModelHostTitle"},_.a(_.fa,{text:function(){return g().title}})),_.a("h2",{class:"reelWatchBreakViewModelHostBody"},_.a(_.fa,{text:function(){return g().body},
isOverlay:!0})),_.a(_.eS,{data:function(){return g().buttons}},{buttonViewModel:function(c,k){return _.a("div",{class:function(){return k()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.a(_.oD,{data:c.data}))}}))},"Ik");
Y$x.idomCompat=!0;_.sL(Y$x,"reel-watch-break-view-model",{props:{data:_.jx}});var fk=function(){return _.z.apply(this,arguments)||this};
_.Y(fk,_.z);fk.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}}};
_.Bd.Object.defineProperties(fk.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var e;return!!_.x((e=this.data)==null?void 0:e.renderer,dFv)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var e;return!!_.x((e=this.data)==null?void 0:e.renderer,F2q)}}});
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],fk.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],fk.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fk.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("data.renderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fk.prototype,"isSurvey",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.renderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fk.prototype,"isInterstitialViewModel",null);_.t([_.bF({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],fk);
_.U(fk,"ytd-reel-non-video-content-renderer",function(){if($iS!==void 0)return $iS;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
return $iS=e},{mode:2});var foo;_.sL(_.WNz,"desktop-shorts-player-controls",{});var j2=function(){var e=_.z.apply(this,arguments)||this;e.isPlayerPaused=!1;e.isPlayerStarted=!1;e.showPlayerControls=!1;e.showScrubber=!1;e.autoHideJobId=0;e.overlayType=_.C4("web_shorts_expanded_overlay_type");e.panelData=void 0;e.isWatchWhileMode=!1;e.hasError=!1;e.panelShowDelayMs=1;e.scrubberComponent={};e.isFullscreen=!1;e.shouldHideOverlay=!1;e.enableAnchoredPanel=_.G("desktop_shorts_v2_anchored_panel");e.enablePersistentAnchoredPanel=_.G("desktop_shorts_v2_persistent_anchored_panel");e.hideWatchWhilePanel=
_.G("web_shorts_hide_watch_while_panel");e.useAspectRatio=_.G("web_use_aspect_ratio");e.isPersistentPanelActive=!1;e.anchoredPanelActive=!1;e.isShortsPipActive=!1;e.smallScreenSqueezeback=!1;e.overlayDensity=0;e.extractOverlay=!1;e.extractActionBar=!1;e.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};e.onWindowResized=function(){_.fO(e,"calculateOverlayDensity",function(){e.calculateOverlayDensity()},
100)};
return e};
_.Y(j2,_.z);_.v=j2.prototype;_.v.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.v.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.v.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var e=_.Ss().resolve(_.Lj);this.isWatchWhileMode&&_.ft.addJob(function(){e.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.v.handleShowReelsCommentsOverlayCommand=function(e){e=_.x(e,WoQ);this.isActive&&(e==null?0:e.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.v.updateEngagementPanelVisibility=function(e,g){e&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:g?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:e}})};
_.v.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.v.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.Ss().resolve(_.cp).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.v.handleWatchWhilePanelScrimClick=function(){var e=_.Ss().resolve(_.Lj);this.activeWatchWhilePanel&&(e.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.v.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.v.configureRendererStamper=function(){var e;return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},renderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:(e=ljQ[_.C4("web_shorts_overlay_render_priority")])!=null?e:0}}};
_.v.handlePlayerClick=function(e){var g=this,c,k;if((k=(c=window).matchMedia)!=null&&k.call(c,"(any-pointer: coarse)").matches||!e)this.showPlayerControls=!0,_.ft.cancelJob(this.autoHideJobId),this.autoHideJobId=_.ft.addJob(function(){g.showPlayerControls=!1},0,4E3)};
_.v.isFirstReel=function(){return this.index===0};
_.v.handleMouseenter=function(){_.ft.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.v.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.v.handleScrubberEnter=function(){this.showScrubber=!0};
_.v.handleScrubberLeave=function(){this.showScrubber=!1};
_.v.maybeLogNonDefaultAspectRatio=function(){var e;(e=this.data)!=null&&e.thumbnail&&this.isActive&&.5625!==y5g(this.data.thumbnail)&&_.Klq("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.v.calculateOverlayDensity=function(){var e=document.querySelector("#shorts-container");if(e){var g=!1,c,k=this.playerContainer.offsetWidth,I=this.playerContainer.offsetHeight;e=e.offsetWidth/2-k/2;e>=368?(e=1,g=c=!0):e>=72?(e=0,c=!0):(e=2,c=!1);k>=600&&I>=840?e=1:window.innerWidth<=599&&(e=2,c=g=!1);this.isPersistentPanelActive&&(e=0,g=!1);this.extractActionBar=c;this.overlayDensity=e;this.extractOverlay=g;var J;(J=this.onOverlayDensityChanged)==null||J.call(this,this.index,this.overlayDensity,
this.extractOverlay,this.extractActionBar)}};
_.v.onOverlayDensityChange=function(){var e;(e=this.onOverlayDensityChanged)==null||e.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(e=_.o1(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))e.set("overlayDensity",this.overlayDensity),e.set("extractOverlay",this.extractOverlay),e.set("extractActionBar",this.extractActionBar);if(e=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))e.overlayDensity=this.overlayDensity,e.extractOverlay=
this.extractOverlay,e.extractActionBar=this.extractActionBar};
_.v.isVideoContent=function(e){_.Ss().resolve(_.cp);return!!_.x(e,_.eh)};
_.v.isNonVideoContent=function(e){_.Ss().resolve(_.cp);return!!_.x(e,_.hR)};
_.v.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Bd.Object.defineProperties(j2.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.adsOverlay)}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&this.isPlayerStarted}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var e;return!this.isActive||!this.isPlayerStarted||(e=this.data)!=null&&e.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var e;if(((e=this.data)==null?0:e.command)&&this.isVideoContent(this.data.command)){var g,c;if(((g=this.data)==null?0:g.adsOverlay)&&Object.keys((c=this.data)==null?void 0:c.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var k,I;if(((k=this.data)==null?0:k.reelPlayerOverlayRenderer)&&Object.keys((I=this.data)==null?void 0:I.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
j2.prototype.onOverlayDensityChange=j2.prototype.onOverlayDensityChange;j2.prototype.calculateOverlayDensity=j2.prototype.calculateOverlayDensity;j2.prototype.maybeLogNonDefaultAspectRatio=j2.prototype.maybeLogNonDefaultAspectRatio;j2.prototype.onEngagementPanelsChanged=j2.prototype.onEngagementPanelsChanged;j2.prototype.onScrubberDataChange=j2.prototype.onScrubberDataChange;j2.prototype.updateShouldHideOverlay=j2.prototype.updateShouldHideOverlay;
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],j2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],j2.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],j2.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],j2.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Number)],j2.prototype,"index",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],j2.prototype,"isActive",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],j2.prototype,"isHiddenInDom",void 0);_.t([_.u(),_.B("design:type",Object)],j2.prototype,"isPlayerPaused",void 0);_.t([_.u({selector:Yox}),_.B("design:type",Object)],j2.prototype,"isPlayerStarted",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"showPlayerControls",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"showScrubber",void 0);_.t([_.u(),_.B("design:type",Object)],j2.prototype,"autoHideJobId",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"overlayType",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],j2.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],j2.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],j2.prototype,"watchWhileEngagementPanels",void 0);_.t([_.u(),_.B("design:type",Object)],j2.prototype,"panelData",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"isWatchWhileMode",void 0);_.t([_.u(),_.B("design:type",String)],j2.prototype,"activeWatchWhilePanel",void 0);_.t([_.u(),_.B("design:type",Object)],j2.prototype,"hasError",void 0);_.t([_.u(),_.B("design:type",Object)],j2.prototype,"panelShowDelayMs",void 0);
_.t([_.u(),_.B("design:type",Object)],j2.prototype,"scrubberComponent",void 0);_.t([_.u({selector:_.QD,reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"isFullscreen",void 0);_.t([_.u(),_.B("design:type",Object)],j2.prototype,"shouldHideOverlay",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"enableAnchoredPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"enablePersistentAnchoredPanel",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"hideWatchWhilePanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"useAspectRatio",void 0);_.t([_.u({selector:_.aTp,reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"isPersistentPanelActive",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"anchoredPanelActive",void 0);
_.t([_.u({selector:_.UQ,reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"isShortsPipActive",void 0);_.t([_.u({selector:$W0,reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"smallScreenSqueezeback",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data.adsOverlay"),_.B("design:type",Object),_.B("design:paramtypes",[])],j2.prototype,"isAdsOverlay",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"overlayDensity",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"extractOverlay",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],j2.prototype,"extractActionBar",void 0);_.t([_.u(),_.B("design:type",Function)],j2.prototype,"onOverlayDensityChanged",void 0);_.t([_.u(),_.p("isActive","hasError","isPlayerStarted"),_.B("design:type",Object),_.B("design:paramtypes",[])],j2.prototype,"shouldRenderPlayerElements",null);
_.t([_.u(),_.p("isActive","isWatchWhileMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],j2.prototype,"watchWhileOrPersistentActive",null);_.t([_.OY("isActive","hasError","showingExpandedOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j2.prototype,"updateShouldHideOverlay",null);
_.t([_.u({reflectToAttribute:!0}),_.p("isActive","isPlayerStarted","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],j2.prototype,"shouldRenderScrubber",null);_.t([_.OY("shouldRenderScrubber"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j2.prototype,"onScrubberDataChange",null);_.t([_.p("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],j2.prototype,"overlayComponent",null);
_.t([_.OY("watchWhileEngagementPanels"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j2.prototype,"onEngagementPanelsChanged",null);_.t([_.Cs("#player-container"),_.B("design:type",HTMLElement)],j2.prototype,"playerContainer",void 0);_.t([_.Cs("#cinematic-container"),_.B("design:type",HTMLElement)],j2.prototype,"cinematicContainer",void 0);
_.t([_.OY("isPersistentPanelActive","data.thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j2.prototype,"maybeLogNonDefaultAspectRatio",null);_.t([_.OY("isPersistentPanelActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j2.prototype,"calculateOverlayDensity",null);
_.t([_.OY("overlayDensity","extractOverlay","extractActionBar"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j2.prototype,"onOverlayDensityChange",null);_.t([_.bF({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],j2);
_.U(j2,"ytd-reel-video-renderer",function(){if(foo!==void 0)return foo;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div id="video-filtering-overlay-container" class="style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return foo=e},{mode:2});var iO=function(){var e=_.z.apply(this,arguments)||this;e.isPreviousPageShorts=!1;e.index=0;e.delayedActiveIndex=0;e.playablePreviousIndex=null;e.isPlayerPaused=!1;e.isPlayerStarted=!1;e.intersectionObserverThreshold=.6;e.fitToVisibleBounds=!1;e.pageSubtype="shorts";e.enablePreviousContinuation=_.G("shorts_in_playlists_web");e.shortsPipEnabled=_.G("web_shorts_pip");e.isDark=document.documentElement.hasAttribute("dark");e.shortsViewTransitions=_.G("web_shorts_view_transitions");e.isFullscreen=!1;e.isShortsPipActive=
!1;e.buttonOverride={iconPosition:"icon-only",size:"XL"};e.anchoredPanelActive=!1;e.isActive=!1;e.smallScreenPersistentPanel=!1;e.isPersistentPanelActive=!1;e.smallScreenSqueezeBack=!1;e.enableScrollIntoViewCenter=_.G("web_scroll_into_view_center");e.extractOverlay=!1;e.useAspectRatio=_.G("web_use_aspect_ratio");e.continuationRequestPending=!1;e.carouselContainers=[];e.isShortsInitialized=!1;e.hasDataUpdated=!1;e.playerInPosition=!1;e.hidePreviousButtonImmediately=!1;e.showPreviousButtonImmediately=
!1;e.endOfNextContinuation=!1;e.currentPlayerIndex=0;e.nextReelVe=_.VF(56921);e.prevReelVe=_.VF(56922);e.loopToggleOffVe=_.VF(198013);e.loopToggleOnVe=_.VF(198014);e.ambientModeToggleVe=_.VF(227860);e.reelPlayerPausedStateRendererVe=_.VF(141313);e.storedPlaybackSpeed=null;e.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"};
e.onOverlayDensityChanged=function(g,c,k,I){g=e.getActiveReelVideo(g);e.extractOverlay=!!k;g==null||g.setAttribute("overlay-density",String(c));k===void 0||g!=null&&g.toggleAttribute("extract-overlay",k);I===void 0||g!=null&&g.toggleAttribute("extract-action-bar",I)};
return e};
_.Y(iO,_.z);_.v=iO.prototype;_.v.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.v.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.v.onResize=function(){var e=_.Tt(),g=e.dispatch,c=this.calculateIsSmallWidth();g.call(e,_.Hh({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:c}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.v.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.v.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var e=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,g=e,c=0;e<250&&(g=e+this.shortsInnerContainer.clientWidth,c=24);_.Nk(this.hostElement,{"--ytd-shorts-header-width":g+"px","--ytd-shorts-top-spacing":c+"px"})}};
_.v.isFirstShorts=function(e){return e?this.index===-e.length:this.index===0};
_.v.isActiveReel=function(e,g,c){c&&(g=this.calculatePrevIndex(g,c));return e===g};
_.v.onFullscreenChange=function(){_.G("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.Ss().resolve(_.xt).close(!0))};
_.v.engagementPanelsChanged=function(){var e;this.watchWhileEngagementPanels=(e=this.data)==null?void 0:e.engagementPanels};
_.v.unregisterPanels=function(){var e=_.Ss().resolve(_.Lj);if(this.watchWhileEngagementPanels)for(var g=_.w(this.watchWhileEngagementPanels),c=g.next();!c.done;c=g.next()){var k=c.value,I=void 0,J=void 0;c=(I=k.engagementPanelSectionListRenderer)==null?void 0:(J=I.identifier)==null?void 0:J.tag;k=this.getPanelIdentifier(k.engagementPanelSectionListRenderer);e&&(c&&e.panelMap.delete(c),k&&_.G("web_shorts_panel_caching_bugfix")&&(I=c=void 0,(I=(c=e).unregisterPanelContent)==null||I.call(c,k)))}};
_.v.isVideoContent=function(e){return this.isVideoContentCommand(e==null?void 0:e.command)};
_.v.getActiveReelVideo=function(e){return _.o1(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+e+'"]')};
_.v.calculatePrevIndex=function(e,g){return g?e-((g==null?void 0:g.length)||0):-1};
_.v.onKeydown=function(e){var g=_.lg(e)||[];if(!EVD(g))if(e.code==="ArrowUp")e.preventDefault(),this.handlePrevButtonClick();else if(e.code==="ArrowDown")e.preventDefault(),this.handleNextButtonClick();else if(e.code==="KeyM")this.toggleMuteUnmuteVideo();else if(e.code==="KeyK"||e.code==="Space")this.togglePlayPauseVideo();else if((e.code==="KeyA"||e.code==="ArrowLeft")&&_.G("web_shorts_keyboard_enable_seek_shortcuts")){var c;(c=this.player)==null||c.seekBy(-5)}else if((e.code==="KeyD"||e.code===
"ArrowRight")&&_.G("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var k;(k=this.player)==null||k.seekBy(5)}};
_.v.onServiceRequestCompleted=function(e,g){e=g.data;e.continuationEndpoint&&e.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:e.entries,continuationEndpoint:e.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=e):e.prevContinuationEndpoint&&e.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:e.prevEntries,prevContinuationEndpoint:e.prevContinuationEndpoint}}):
this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.v.handleEngagementPanelVisibilityChanged=function(e,g){var c=_.Ss().resolve(_.Lj);if(e&&c){var k=this.getPanelIdentifier(e);if(g==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==k){c.hidePanel({identifier:this.activePanel});var I;this.activePanel=((I=e.identifier)==null?void 0:I.tag)||e.panelIdentifier}else this.isPersistentPanelActive=!0,_.Tt().dispatch(zDq(!0)),this.anchoredPanelActive=!0,this.activePanel=k;else g==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===k&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Tt().dispatch(zDq(!1)))}};
_.v.handlePanelScrimClick=function(){var e=_.Ss().resolve(_.Lj);this.activePanel&&(e.hidePanel({identifier:this.activePanel}),_.Tt().dispatch(zDq(!1)))};
_.v.getShortsLoopSetting=function(){var e,g,c,k,I;return _.r(function(J){switch(J.nextAddress){case 1:return _.G("kevlar_shorts_auto_advance")?J.yield(_.rB.getInstance(),2):J.return(!0);case 2:return(e=J.yieldResult)?J.yield(e.get("sfvles"),3):J.return(!0);case 3:return c=(g=J.yieldResult)!=null?g:!1,J.yield(e.get("sfvle"),4);case 4:return I=(k=J.yieldResult)!=null?k:!0,c?J.return(I):J.return(!0)}})};
_.v.handleSignalActionToggleLoopShortsOff=function(){var e=this,g,c,k;return _.r(function(I){switch(I.nextAddress){case 1:if(!e.player)return I.return();e.player.setLoopVideo(!1);g=_.gL();_.yW(g,e.loopToggleOffVe);return I.yield(_.rB.getInstance(),2);case 2:return(c=I.yieldResult)?I.yield(c.set("sfvle",!1),3):I.return();case 3:return I.yield(c.set("sfvles",!0),4);case 4:k=_.ch(),_.kn(0,203,!1),_.kn(0,204,!0),k.save(),_.Uh(I)}})};
_.v.handleSignalActionToggleLoopShortsOn=function(){var e=this,g,c,k;return _.r(function(I){switch(I.nextAddress){case 1:if(!e.player)return I.return();e.player.setLoopVideo(!0);g=_.gL();_.yW(g,e.loopToggleOnVe);return I.yield(_.rB.getInstance(),2);case 2:return(c=I.yieldResult)?I.yield(c.set("sfvle",!0),3):I.return();case 3:return I.yield(c.set("sfvles",!0),4);case 4:k=_.ch(),_.kn(0,203,!0),_.kn(0,204,!0),k.save(),_.Uh(I)}})};
_.v.handleSignalActionToggleCinematicShortsOn=function(){uiv(!0);var e;(e=this.JSC$22110_cinematicController)==null||mKl(e,!0);_.yW(_.gL(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.v.handleSignalActionToggleCinematicShortsOff=function(){uiv(!1);var e;(e=this.JSC$22110_cinematicController)==null||mKl(e,!1);_.yW(_.gL(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.v.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.v.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.v.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var e=this.overlayContainer.querySelector("#experiment-overlay");e&&_.ft.addLowPriorityJob(function(){e.style.display="unset"},100)}else if(this.overlayContainer){var g;
((g=this.playerElement.getPlayer())==null?void 0:g.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.v.getCurrentShort=function(){if(this.currentEndpoint){var e=this.currentEndpoint;if(this.isNonVideoContentCommand(e)){var g=_.x(e,_.hR);return{reelNonVideoContentRenderer:_.x(g==null?void 0:g.renderer,_.Agn),command:e}}if(this.data){var c;g=(c=_.x(this.currentEndpoint,_.eh))==null?void 0:c.thumbnail;var k;c=(k=this.data.overlay)==null?void 0:k.reelPlayerOverlayRenderer;_.Ss().resolve(_.cp);e=this.data;var I,J;k=(I=e.overlay)==null?void 0:(J=I.shortsAdsRenderer)==null?void 0:J.adSlots;if(k!==void 0)k.length===
0?(_.jS("Shorts ads returned no ad slots."),e=void 0):(k.length>1&&_.jS("Shorts ads has more than one ad slots."),e=_.x(k[0],_.Lyk));else{var q,L;e=_.x((q=e.overlay)==null?void 0:(L=q.shortsAdsRenderer)==null?void 0:L.overlay,_.Lyk)}q=e;e=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.x(this.currentEndpoint,_.eh),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var n;return{reelPlayerOverlayRenderer:c,thumbnail:g,command:e,adsOverlay:q,
videoId:(n=_.x(this.currentEndpoint,_.eh))==null?void 0:n.videoId}}}};
_.v.created=function(){var e=this;this.scrollToVideoThrottle=new _.BT(function(g,c){c=c===void 0?"smooth":c;var k;(k=e.getActiveReelVideo(g))==null||k.scrollIntoView({behavior:c,block:"nearest",inline:e.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.Ss().resolve(_.cp);this.maybeCreateIntersectionObserver()};
_.v.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.v.attached=function(){var e=this;_.Ss().resolve(_.cp).registerRootElement(this);this.pageScrollElement=_.o1(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.yg(this,this.processResetAction));_.G("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){e.maybeCreateIntersectionObserver();e.scrollToVideoThrottle.fire(e.activeIndex,"instant");e.shortsContainer.style.overflowY=
"scroll"}))};
_.v.calculateSqueezebackPanelSize=function(){var e=this,g=window.innerWidth-456-(window.innerHeight-106)*.5625;_.ft.addLowPriorityJob(function(){g<360?(e.hostElement.style.setProperty("--anchored-panel-width","480px"),_.Tt().dispatch(Hzo(!0))):(e.hostElement.style.setProperty("--anchored-panel-width",Math.min(g,480)+"px"),_.Tt().dispatch(Hzo(!1)))})};
_.v.detached=function(){var e=_.Ss().resolve(_.cp);e.rootElement=void 0;var g;(g=e.unsubscribeFromStore)==null||g.call(e);e.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.yg(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.v.onResizeFinished=function(e,g){var c=this,k=new ResizeObserver(function(){c.shortsContainer.style.overflowY="hidden";_.ft.addLowPriorityJob(function(){g()},100)});
k.observe(e);return k};
_.v.resetDocumentScrollTop=function(){var e,g;if((e=document)==null?0:(g=e.scrollingElement)==null?0:g.scrollTop)document.scrollingElement.scrollTop=0};
_.v.loadPage_=function(e){var g=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),e){var c;if((c=_.x(this.currentEndpoint,_.eh))==null?0:c.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=e;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){g.isPlayerStarted&&
(g.handleOnPlaybackCommand(),g.afterPlayerStarted=function(){})};
this.registerPanel(e)}};
_.v.afterPlayerStarted=function(){};
_.v.handleOnPlaybackCommand=function(){if(_.G("web_shorts_comment_stickers")&&this.isPlayerStarted){var e,g=(e=_.x(this.currentEndpoint,_.eh))==null?void 0:e.onPlaybackCommand;g&&this.ytComponentBehavior.resolveCommand(g)}};
_.v.maybeCreateIntersectionObserver=function(){var e=this,g=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==g){this.intersectionObserverThreshold=g;var c={rootMargin:"0px",threshold:g},k;(k=this.intersectionObserver)==null||k.disconnect();this.intersectionObserver=new IntersectionObserver(function(I){I=_.w(I);for(var J=I.next();!J.done;J=I.next())if(J=J.value,J.intersectionRatio>g){J=Number(J.target.id);if(isNaN(J))break;if(J===e.index)break;
_.MMV();e.loadVideo(J);_.h5("r_vtc")}},c);
this.observeShorts()}};
_.v.observeShorts=function(){var e,g,c=(((e=this.shortsProcessedPrevSequence)==null?void 0:e.length)||0)+(((g=this.shortsProcessedSequence)==null?void 0:g.length)||0);this.carouselContainers.length<c&&(this.carouselContainers=[].concat(_.KY(_.o1(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))));e=_.w(this.carouselContainers);for(g=e.next();!g.done;g=e.next())g=g.value,c=void 0,(c=this.intersectionObserver)==null||c.observe(g)};
_.v.initCsi=function(){b_x("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var e={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"}},g,c;if((g=this.playerData)==null?0:(c=g.cacheMetadata)==null?0:c.isCacheHit)e.isCacheHit=!0;var k;if(g=(k=_.x(this.currentEndpoint,_.eh))==null?void 0:
k.prefetchTaskId)e.prefetchInfo={taskId:g};_.nA(e)};
_.v.isAd=function(){var e,g;return!!((e=_.x(this.currentEndpoint,_.eh))==null?0:(g=e.adClientParams)==null?0:g.isAd)};
_.v.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.v.getPlayerContainer=function(){var e;return(e=_.o1(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:e.playerContainer};
_.v.onPlayerStateChange=function(e){var g=this;this.isPlayerPaused=e===2;e!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?e===1&&this.index===0&&(this.isPlayerStarted||_.Tt().dispatch(QTQ(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Tt().dispatch(QTQ(!0)));this.player&&!this.player.getLoopVideo()&&_.ft.addLowPriorityJob(function(){g.getShortsLoopSetting().then(function(c){var k;(k=g.player)==null||k.setLoopVideo(c)})});
this.isPlayerPaused&&_.G("web_shorts_paused_state_logging")&&_.iB(_.EM(),[this.reelPlayerPausedStateRendererVe])};
_.v.isShortPlayable=function(){if(_.G("kevlar_playable_short_killswitch"))return!0;var e;return(e=this.playerData)!=null&&e.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.v.setNormalPlaybackSpeed=function(){var e=this,g,c;return _.r(function(k){if(k.nextAddress==1)return k.yield(e.getPlayer().getPlayerPromise(),2);g=k.yieldResult;c=g.getPlaybackRate();c!==1&&(e.storedPlaybackSpeed=c,g.setPlaybackRate(1));_.Uh(k)})};
_.v.restorePlaybackSpeed=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1)return e.storedPlaybackSpeed===null?c.jumpTo(0):c.yield(e.getPlayer().getPlayerPromise(),3);g=c.yieldResult;g.setPlaybackRate(e.storedPlaybackSpeed);e.storedPlaybackSpeed=null;_.Uh(c)})};
_.v.playerDataChanged=function(){var e=this,g,c,k,I,J,q,L,n,R;return _.r(function(W){if(W.nextAddress==1){g=e.getPlayer();(c=e.intersectionObserver)==null||c.disconnect();if(e.playerData){if(((k=e.playerData.videoDetails)==null?void 0:k.videoId)!==((I=g.getPlayer())==null?void 0:I.getVideoData().video_id)){J={};if(q=_.x(e.currentEndpoint,_.eh))J.watch_endpoint=q,q.endTimeSeconds&&(J.end=q.endTimeSeconds);g.loadVideoWithPlayerResponse(e.playerData,J)}}else return W.return();return e.player?W.jumpTo(2):
W.yield(g.getPlayerPromise(),3)}W.nextAddress!=2&&(e.player=W.yieldResult,e.JSC$22110_playerStateChangeListener=e.onPlayerStateChange.bind(e),e.player.addEventListener("onStateChange",e.JSC$22110_playerStateChangeListener),_.G("kevlar_client_enable_shorts_player_bootstrap")&&_.Pj(),e.scrollToVideoThrottle.fire(e.index),e.movePlayerToVideo(e.index),_.ft.addLowPriorityJob(function(){e.getShortsLoopSetting().then(function(b){var h;(h=e.player)==null||h.setLoopVideo(b)})}),_.mmu.resolve(e.player),e.player.syncVolume(),
e.getPlayer().focusOnPlayer());
_.ft.addLowPriorityJob(function(){e.observeShorts()},100);
L=e.player.getPlayerState(e.player.getPresentingPlayerType());L!==1||e.isPlayerStarted||_.Tt().dispatch(QTQ(!0));e.updateBackNavContainerWidth();n=_.x(e.currentEndpoint,_.eh);((R=n)==null?0:R.startTimeSeconds)&&e.player.seekTo(n.startTimeSeconds);if(e.JSC$22110_cinematicController||e.cinematicsInitializeJobId)return W.return();e.cinematicsInitializeJobId=_.ft.addLowPriorityJob(function(){e.initCinematicController();e.cinematicsInitializeJobId=void 0});
_.Uh(W)})};
_.v.onShortUndoDismiss=function(){var e=this,g=U9O().pop();g!==void 0&&(_.Va(this,function(){e.showCardWithIndex(g)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.v.onShortsDismiss=function(e){if(e=e.detail.reelDismissalActionRenderer)(e=_.x(e.onDismissalCompletionRenderer,efo))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:e}}}),this.scrollAndDismissCard()};
_.v.processReelNonVideoContentDismissalCommand=function(e){var g=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);e=_.x(e,EPx);this.activeDimissalTimeout=setTimeout(function(){g.scrollAndDismissCard()},Number(e==null?void 0:e.delayMs))};
_.v.scrollAndDismissCard=function(){var e=this,g=this.index;U9O().push(g);_.Va(this,function(){var c=e.getPlayableNextIndex();c!==null&&(e.hideCardWithIndex(g),e.scrollToVideoThrottle.fire(c))})};
_.v.hideCardWithIndex=function(e){if(e=this.getActiveReelVideo(e))e.hidden=!0};
_.v.showCardWithIndex=function(e){if(e=this.getActiveReelVideo(e))e.hidden=!1};
_.v.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.v.activeChanged=function(e){_.Tt().dispatch(_.Hh({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:e}}));if(e)document.addEventListener("keydown",_.yg(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var g;(g=this.player)==null||g.sendAbandonmentPing()}var c;(c=this.player)==null||c.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.yg(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.v.graftClientVisualElements=function(){if(this.data){var e=_.gL();_.jok(e,_.No({response:this.reelWatchSequenceResponse}));_.Nd(e,this.nextReelVe);_.Nd(e,this.prevReelVe);_.G("kevlar_shorts_auto_advance")&&(_.Nd(e,this.loopToggleOffVe),_.Nd(e,this.loopToggleOnVe));_.Nd(e,this.ambientModeToggleVe);_.iB(_.EM(),[this.nextReelVe,this.prevReelVe]);_.G("web_shorts_paused_state_logging")&&_.Nd(e,this.reelPlayerPausedStateRendererVe)}};
_.v.graftNvcRenderer=function(){var e,g,c,k,I=this.index<0?(e=this.shortsProcessedPrevSequence)==null?void 0:(g=e[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:g.command:(c=this.shortsProcessedSequence)==null?void 0:(k=c[this.index])==null?void 0:k.command;if(I&&this.isNonVideoContentCommand(I)){e=_.x(I,_.hR);var J,q;(e=(J=_.x(e==null?void 0:e.renderer,_.Agn))==null?void 0:(q=J.loggingDirectives)==null?void 0:q.trackingParams)&&_.gL().graftServerVe(e)}};
_.v.setActiveIndex=function(){_.Ss().resolve(_.cp).setActiveIndex(this.index)};
_.v.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.v.lazyUpdateMiniplayerData=function(){var e=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.ft.addLowPriorityJob(function(){e.updateMiniplayerData();e.updateMiniplayerDataJobId=void 0}))};
_.v.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.ft.cancelJob(this.updateMiniplayerDataJobId)};
_.v.updateMiniplayerData=function(){var e,g,c,k=_.Ss().resolve(_.xt),I={shortsData:this.getCurrentShort(),previousButtonDisabled:!((e=this.prevButtonData)==null||!e.isDisabled),nextButtonDisabled:!((g=this.nextButtonData)==null||!g.isDisabled),playabilityStatus:(c=this.playerData)==null?void 0:c.playabilityStatus};_.Tg(k,I)};
_.v.resetPlayerLocation=function(){var e=this.getPlayer();this.initialPlayerContainer&&e.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.v.movePlayerToVideo=function(e,g){var c=this;g=g===void 0?!0:g;var k=this.getActiveReelVideo(e),I=this.getPlayer();if(k){this.overlayContainer?k.appendChild(this.overlayContainer):(this.overlayContainer=_.o1(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,k.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||I.appendTo(this.overlayContainer.playerContainer,void 0,!0));var J;(J=this.player)==null||J.setSize(NaN,NaN);this.isActive||_.ft.addJob(function(){c.isActive=
!0},0);
I.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.G("reels_web_disable_rtr_tick")||_.G("reels_web_use_pbs_first_shorts")&&e===0||_.Wh("r_tr");this.currentPlayerIndex=e;k.appendChild(this.errorScreenContainer);var q;(q=this.JSC$22110_cinematicController)==null||Ayq(q)}else g?_.ft.addLowPriorityJob(function(){c.movePlayerToVideo(c.index,!1)}):Math.random()<=_.MN("web_shorts_error_logging_threshold")&&_.Py(new _.E2("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:g,
index:e}))};
_.v.getAspectRatio=function(e){return(e==null?0:e.thumbnail)&&y5g(e.thumbnail)?"--ytd-shorts-player-ratio: "+y5g(e.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.v.getBackgroundImage=function(e){if(e!=null&&e.thumbnail)return(e=_.u3(e.thumbnail.thumbnails))?'background-image:url("'+e+'");':"background-color:black;"};
_.v.getBackgroundImageUrl=function(e){if(e!=null&&e.thumbnail)return _.u3(e.thumbnail.thumbnails)};
_.v.onPersistentPanelActiveChanged=function(){var e,g=(e=_.x(this.currentEndpoint,_.eh))==null?void 0:e.thumbnail;if(g&&y5g(g)!==.5625){var c;(c=this.player)==null||c.setSize(NaN,NaN)}};
_.v.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.v.moveCinematicsToVideo=function(){var e=_.o1(this.hostElement).querySelector("ytd-reel-video-renderer");(e==null?0:e.cinematicContainer)&&e.cinematicContainer!==this.shortsCinematicContainer.parentElement&&e.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.v.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.v.updatePrevButtonData=function(){var e=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);e?this.prevButtonData=e=Object.assign({},e,{accessibility:{label:_.C_("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.C_("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=e=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.v.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.v.updateNextButtonData=function(){var e=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);e&&(this.nextButtonData=e=Object.assign({},e,{accessibility:{label:_.C_("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.C_("NEXT_VIDEO_LABEL")||""}))};
_.v.getPlayablePreviousIndex=function(){for(var e,g=this.index-1;g>=-(((e=this.prevShortsSequence)==null?void 0:e.length)||0);g--)if(!U9O().includes(g))return g;return null};
_.v.getIndexInSequence=function(e,g){return e.findIndex(function(c){var k;return((k=_.x(c.command,_.eh))==null?void 0:k.videoId)===g})};
_.v.handlePrevButtonClick=function(e){var g=this,c,k;return _.r(function(I){c=g.getPlayablePreviousIndex();if(c===null)return I.return();g.gestureType=((k=e)==null?void 0:k.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";c===0&&(g.hidePreviousButtonImmediately=!0);if(g.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){g.scrollToVideoThrottle.fire(c,"auto")}),I.return();
g.scrollToVideoThrottle.fire(c);_.Uh(I)})};
_.v.getPlayableNextIndex=function(){for(var e,g=this.index+1;g<(((e=this.shortsProcessedSequence)==null?void 0:e.length)||0);g++)if(!U9O().includes(g))return g;return null};
_.v.handleNextButtonClick=function(e,g){var c=this,k,I;return _.r(function(J){k=c.getPlayableNextIndex();if(k===null)return J.return();k===1&&(c.showPreviousButtonImmediately=!0);c.gestureType=((I=e)==null?void 0:I.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";g&&(c.gestureType=g);if(c.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){c.scrollToVideoThrottle.fire(k,"auto")}),J.return();
c.scrollToVideoThrottle.fire(k);_.Uh(J)})};
_.v.handleReelNavigateCommand=function(e,g,c){(e=_.x(e,Rfx))&&g&&e.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(c)};
_.v.loadVideo=function(e,g){var c=this;g=g===void 0?!1:g;if(e!==this.currentPlayerIndex){_.Tt().dispatch(QTQ(!1));if(this.isAd()&&!g){var k;(k=this.player)==null||k.notifyShortsAdSwipeEvent()}var I;(I=this.JSC$22110_cinematicController)==null||lTv(I);var J;(J=this.JSC$22110_cinematicController)==null||Too(J);k=e>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(k));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var q,L,n,R;g=e<0?(q=this.shortsProcessedPrevSequence)==null?void 0:(L=q[this.shortsProcessedPrevSequence.length+e])==null?void 0:L.command:(n=this.shortsProcessedSequence)==null?void 0:(R=n[e])==null?void 0:R.command;this.index=e;this.gestureType||(this.gestureType=k?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");g&&this.isVideoContentCommand(g)&&(this.ytComponentBehavior.resolveCommand(g,
{form:{createScreenConfig:{clickedVisualElement:k?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(g&&this.isNonVideoContentCommand(g)){this.currentEndpoint=g;this.data=void 0;q=_.gL();L=_.x(g,_.hR);var W,b;(L=(W=_.x(L==null?void 0:L.renderer,_.Agn))==null?void 0:(b=W.screenLoggingData)==null?void 0:b.screenVeType)&&_.BU(q,L);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(W=this.getActiveReelVideo(e))&&
W.appendChild(this.overlayContainer)}var h,X;W=_.G("web_shorts_early_continuation")?e>0&&((h=this.reelWatchSequenceResponse)==null?void 0:h.entries)&&e>=this.reelWatchSequenceResponse.entries.length-3:((X=this.reelWatchSequenceResponse)==null?void 0:X.entries)&&e===this.reelWatchSequenceResponse.entries.length-1;var D;if(((D=this.reelWatchSequenceResponse)==null?0:D.continuationEndpoint)&&W){var f,l,A={contentPlaybackContext:_.th({},(l=_.x((f=this.currentEndpoint)==null?void 0:f.commandMetadata,_.OM))==
null?void 0:l.url,window.location.href)};_.G("web_shorts_early_continuation")?this.continuationRequestPending||(_.ft.addJob(function(){c.ytComponentBehavior.resolveCommand(c.reelWatchSequenceResponse.continuationEndpoint,{form:A})},8),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:A})}var d,S;
e=e===-(((d=this.reelWatchSequenceResponse)==null?void 0:(S=d.prevEntries)==null?void 0:S.length)||0);var V,Q;((V=this.reelWatchSequenceResponse)==null?0:V.prevContinuationEndpoint)&&((Q=this.reelWatchSequenceResponse)==null?0:Q.prevEntries)&&e&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.v.setMiniplayerPreview=function(e){e=(e===void 0?0:e)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var g,c,k=_.Ss().resolve(_.xt),I={shortsData:void 0,shortsPreviewThumbnail:e?(g=this.shortsProcessedSequence)==null?void 0:(c=g[e])==null?void 0:c.thumbnail:void 0};_.Tg(k,I)};
_.v.updateTitle=function(e){var g,c;e=(e==null?0:e.adSlots)?"":(c=e==null?void 0:(g=e.videoDetails)==null?void 0:g.title)!=null?c:"";_.oC(this.hostElement,"yt-update-title",e)};
_.v.registerPanel=function(e){var g=_.Ss().resolve(_.Lj);if(g){e=_.w(e.engagementPanels||[]);for(var c=e.next();!c.done;c=e.next()){c=c.value;var k=this.getPanelIdentifier(c.engagementPanelSectionListRenderer),I=void 0,J=void 0;(J=(I=g).registerPanelContent)==null||J.call(I,k,c)}}};
_.v.getPanelIdentifier=function(e){var g;return(e==null?void 0:(g=e.identifier)==null?void 0:g.tag)||(e==null?void 0:e.panelIdentifier)||(e==null?void 0:e.targetId)};
_.v.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Tt().dispatch(QTQ(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=[];_.Tt().dispatch(zDq(!1));
var e;(e=this.shortsController)!=null&&(e.dismissedIndices=[]);var g;(g=this.shortsController)!=null&&g.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.Ss().resolve(_.xt).close(!0)};
_.v.processAppendReelWatchSequenceContinuationEntriesAction=function(e){var g=this,c;(c=this.intersectionObserver)==null||c.disconnect();e=e.appendReelWatchSequenceContinuationEntriesAction;if(e==null?0:e.entries){var k;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.KY(((k=this.reelWatchSequenceResponse)==null?void 0:k.entries)||[]),_.KY(e.entries)),continuationEndpoint:e.continuationEndpoint})}else if(e==null?0:e.prevEntries){var I;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.KY(((I=this.reelWatchSequenceResponse)==null?void 0:I.prevEntries)||[]),_.KY(e.prevEntries)),prevContinuationEndpoint:e.prevContinuationEndpoint});_.ft.addLowPriorityJob(function(){g.movePlayerToVideo(g.index);g.scrollToVideoThrottle.fire(g.index,"instant")})}else return;
_.ft.addLowPriorityJob(function(){g.observeShorts()},100)};
_.v.processWatchSequence=function(e){var g=this;return e.map(function(c){c=c.command;return g.isVideoContentCommand(c)?{thumbnail:_.x(c,_.eh).thumbnail,command:c}:{command:c}})};
_.v.calculateIntersectionObserverThreshold=function(){var e=_.o1(this.hostElement).querySelector("ytd-reel-video-renderer"),g=1;(e==null?0:e.offsetHeight)&&(e==null?0:e.offsetWidth)&&(g=Math.min(e.offsetHeight,this.shortsContainer.offsetHeight)/e.offsetHeight*(Math.min(e.offsetWidth,this.shortsContainer.offsetWidth)/e.offsetWidth));return Math.round(g*.6*10)/10};
_.v.isVideoContentCommand=function(e){_.Ss().resolve(_.cp);return!!_.x(e,_.eh)};
_.v.isNonVideoContentCommand=function(e){_.Ss().resolve(_.cp);return!!_.x(e,_.hR)};
_.v.initCinematicController=function(){var e=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22110_cinematicController=new fe(this.shortsCinematicContainer,this.player);var g,c=_.x((g=this.data)==null?void 0:g.background,nN);pMS(this.JSC$22110_cinematicController,c);mKl(this.JSC$22110_cinematicController,FpQ(c));P$x(this.JSC$22110_cinematicController);_.ft.addLowPriorityJob(function(){e.moveCinematicsToVideo()})}};
_.v.handleMiniplayerNavigateShorts=function(e){e==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():e==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.v.handleSignalActionToggleShortsPictureInPicture=function(){if(_.Ss().resolve(_.xt).pictureInPictureSupported()){var e=_.Ss().resolve(_.cp);if(_.G("web_shorts_pip")){var g=_.Ss().resolve(_.xt);e.isShortsPipActive()?g.deactivate():g.isMiniplayerActive()||(_.eM().shortsPipActivation=!0,_.jlg(g))}}else(e=this.player)==null||e.togglePictureInPicture()};
_.Bd.Object.defineProperties(iO.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.reelWatchSequenceResponse)!=null&&e.prevEntries)return this.processWatchSequence([].concat(_.KY(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.KY(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.reelWatchSequenceResponse)!=null&&e.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var e=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var g;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((g=this.shortsProcessedSequence)==null?void 0:g.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var c;g=_.x((c=this.firstShortsData)==null?void 0:c.command,_.eh);if(g==null||!g.videoId)return this.shortsProcessedSequence;c=this.getIndexInSequence(this.shortsSequence,
g.videoId);if(c!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=c,_.ft.addLowPriorityJob(function(){e.scrollToVideoThrottle.fire(e.index,"auto");e.movePlayerToVideo(e.index)}));
return[].concat(_.KY(this.shortsSequence))}this.shortsProcessedPrevSequence||_.e$(_.ft,function(){e.observeShorts()},100);
return[this.firstShortsData].concat(_.KY(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var e=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;e&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(e)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 e,g;return this.index===((e=this.reelWatchSequenceResponse)==null?void 0:(g=e.entries)==null?void 0:g.length)}var c;return!((c=this.reelWatchSequenceResponse)==null?0:c.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var e;(e=this.delayedActiveIndexUpdateDebouncer)==null||e.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return this.isShortPlayable()||((g=_.x((e=this.data)==null?void 0:e.watchStatus,_.o3q))==null?void 0:(c=g.style)==null?void 0:c.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var e=this,g=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),c;if((this.data||g)&&(((c=this.data)==null?0:c.engagementPanels)||this.isAd()||g)){g=!1;this.activePanel="shorts-comments-panel";var k;c=_.w(((k=this.data)==null?void 0:k.engagementPanels)||[]);for(k=c.next();!k.done;k=c.next())if(this.getPanelIdentifier(k.value.engagementPanelSectionListRenderer)===this.activePanel){g=!0;break}if(this.isPersistentPanelActive){var I=
_.Ss().resolve(_.Lj);_.ft.addJob(function(){I.showPanel({identifier:e.activePanel,target:null})},0,100)}var J;
k=[].concat(_.KY(Object.values(((J=this.data)==null?void 0:J.engagementPanels)||{})));J=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);c=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return J===void 0&&c===void 0||(J==null?0:J.isDisabled)||(c==null?void 0:c.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!g?(g=k==null?void 0:k.findIndex(function(q){var L,n;return((L=q.engagementPanelSectionListRenderer)==null?void 0:(n=L.identifier)==null?void 0:n.tag)==="shorts-comments-panel"}),g===-1||g===void 0||k!=null&&k.splice(g,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.C_("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.C_("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:_.C_("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.C_("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(_.KY(Object.values(k||
{})))):k}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var e=this,g,c,k;if((g=this.playerData)==null?0:(c=g.playabilityStatus)==null?0:(k=c.errorScreen)==null?0:k.playerInterstitialRenderer)return _.ft.addLowPriorityJob(function(){e.movePlayerToVideo(e.index)}),this.playerData.playabilityStatus.errorScreen;
var I,J;return((I=this.data)==null?void 0:I.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((J=this.data)==null?0:J.watchStatus)&&_.x(this.data.watchStatus,_.JRw)?(_.ft.addLowPriorityJob(function(){e.movePlayerToVideo(e.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Bd.Object.defineProperties(iO,{template:{configurable:!0,enumerable:!0,get:function(){if(n5v===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);n5v=e}e=n5v;return e}}});
iO.prototype.onNextButtonDataChange=iO.prototype.onNextButtonDataChange;iO.prototype.onPrevButtonDataChange=iO.prototype.onPrevButtonDataChange;iO.prototype.onPersistentPanelActiveChanged=iO.prototype.onPersistentPanelActiveChanged;iO.prototype.lazyUpdateMiniplayerData=iO.prototype.lazyUpdateMiniplayerData;iO.prototype.onShortsPipActiveChanged=iO.prototype.onShortsPipActiveChanged;iO.prototype.setActiveIndex=iO.prototype.setActiveIndex;iO.prototype.graftNvcRenderer=iO.prototype.graftNvcRenderer;
iO.prototype.graftClientVisualElements=iO.prototype.graftClientVisualElements;iO.prototype.onActiveChanged=iO.prototype.onActiveChanged;iO.prototype.onShortsDismiss=iO.prototype.onShortsDismiss;iO.prototype.onShortUndoDismiss=iO.prototype.onShortUndoDismiss;iO.prototype.playerDataChanged=iO.prototype.playerDataChanged;iO.prototype.afterPlayerStarted=iO.prototype.afterPlayerStarted;iO.prototype.unhideCurrentOverlay=iO.prototype.unhideCurrentOverlay;iO.prototype.onServiceRequestCompleted=iO.prototype.onServiceRequestCompleted;
iO.prototype.engagementPanelsChanged=iO.prototype.engagementPanelsChanged;iO.prototype.onFullscreenChange=iO.prototype.onFullscreenChange;iO.prototype.onResize=iO.prototype.onResize;iO.prototype.setFirstShortsData=iO.prototype.setFirstShortsData;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],iO.prototype,"ytComponentBehavior",void 0);_.t([_.m(ej.YtPageBehavior),_.B("design:type",Object)],iO.prototype,"ytPageBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],iO.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Jc),_.B("design:type",Object)],iO.prototype,"ironResizableBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],iO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hz),_.B("design:type",Object)],iO.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],iO.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],iO.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"playerData",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"reelWatchSequenceResponse",void 0);
_.t([_.u(),_.B("design:type",Object)],iO.prototype,"cachedReelWatchSequenceResponse",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"currentEndpoint",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"nextButtonData",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"prevButtonData",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"isPreviousPageShorts",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"index",void 0);
_.t([_.u(),_.B("design:type",Object)],iO.prototype,"delayedActiveIndex",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"playablePreviousIndex",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"player",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"isPlayerPaused",void 0);_.t([_.u({selector:Yox}),_.B("design:type",Object)],iO.prototype,"isPlayerStarted",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"intersectionObserver",void 0);
_.t([_.u(),_.B("design:type",Number)],iO.prototype,"cinematicsInitializeJobId",void 0);_.t([_.u(),_.B("design:type",Number)],iO.prototype,"updateMiniplayerDataJobId",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"fitToVisibleBounds",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"pageSubtype",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],iO.prototype,"enablePreviousContinuation",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],iO.prototype,"shortsPipEnabled",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],iO.prototype,"isDark",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],iO.prototype,"shortsViewTransitions",void 0);_.t([_.u({selector:_.QD,reflectToAttribute:!0}),_.B("design:type",Object)],iO.prototype,"isFullscreen",void 0);
_.t([_.u({selector:_.UQ,reflectToAttribute:!0}),_.B("design:type",Object)],iO.prototype,"isShortsPipActive",void 0);_.t([_.Cs("#shorts-inner-container"),_.B("design:type",HTMLElement)],iO.prototype,"shortsInnerContainer",void 0);_.t([_.Cs("#back-nav-button ytd-button-renderer"),_.B("design:type",_.uZ)],iO.prototype,"backNavButton",void 0);_.t([_.Cs("#shorts-container"),_.B("design:type",HTMLElement)],iO.prototype,"shortsContainer",void 0);
_.t([yH("error-screen"),_.B("design:type",HTMLElement)],iO.prototype,"errorScreenContainer",void 0);_.t([yH("player"),_.B("design:type",Object)],iO.prototype,"playerElement",void 0);_.t([yH("shorts-cinematic-container"),_.B("design:type",HTMLElement)],iO.prototype,"shortsCinematicContainer",void 0);_.t([yH("initial-player-container"),_.B("design:type",HTMLElement)],iO.prototype,"initialPlayerContainer",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"buttonOverride",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],iO.prototype,"anchoredPanelActive",void 0);_.t([_.u(),_.B("design:type",String)],iO.prototype,"activePanel",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"isActive",void 0);_.t([_.u({selector:$W0,reflectToAttribute:!0}),_.B("design:type",Object)],iO.prototype,"smallScreenPersistentPanel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],iO.prototype,"isPersistentPanelActive",void 0);
_.t([_.u(),_.B("design:type",Object)],iO.prototype,"smallScreenSqueezeBack",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"enableScrollIntoViewCenter",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],iO.prototype,"extractOverlay",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],iO.prototype,"useAspectRatio",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"continuationRequestPending",void 0);
_.t([_.u(),_.B("design:type",Object)],iO.prototype,"shortsController",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"panelContainer",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"overlayContainer",void 0);_.t([_.u(),_.B("design:type",Array)],iO.prototype,"carouselContainers",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"isShortsInitialized",void 0);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"firstShortsData",void 0);
_.t([_.u(),_.B("design:type",Object)],iO.prototype,"firstShortsDataModel",void 0);_.t([_.p("reelWatchSequenceResponse"),_.B("design:type",Object),_.B("design:paramtypes",[])],iO.prototype,"prevShortsSequence",null);_.t([_.p("data","prevShortsSequence"),_.B("design:type",Object),_.B("design:paramtypes",[])],iO.prototype,"shortsProcessedPrevSequence",null);_.t([_.p("reelWatchSequenceResponse"),_.B("design:type",Object),_.B("design:paramtypes",[])],iO.prototype,"shortsSequence",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"setFirstShortsData",null);_.t([_.p("data","shortsSequence","firstShortsData"),_.B("design:type",Object),_.B("design:paramtypes",[])],iO.prototype,"shortsProcessedSequence",null);
_.t([_.u({reflectToAttribute:!0}),_.p("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],iO.prototype,"isUpArrowHidden",null);_.t([_.u({reflectToAttribute:!0}),_.p("reelWatchSequenceResponse","index","endOfNextContinuation"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],iO.prototype,"isDownArrowHidden",null);
_.t([_.u(),_.p("index"),_.B("design:type",Number),_.B("design:paramtypes",[])],iO.prototype,"activeIndex",null);_.t([_.p("isShortPlayable","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],iO.prototype,"shouldRenderOfflineContent",null);_.t([_.Ks("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"onResize",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iO.prototype,"anchoredEngagementPanels",null);
_.t([_.u(),_.B("design:type",Object)],iO.prototype,"watchWhileEngagementPanels",void 0);_.t([_.OY("isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"onFullscreenChange",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"engagementPanelsChanged",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],iO.prototype,"onServiceRequestCompleted",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"unhideCurrentOverlay",null);_.t([_.OY("isPlayerStarted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"afterPlayerStarted",null);
_.t([_.p("playerData","reelWatchSequenceResponse","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iO.prototype,"errorScreen",null);_.t([_.p("errorScreen"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],iO.prototype,"hasError",null);_.t([_.OY("playerData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],iO.prototype,"playerDataChanged",null);
_.t([_.Ks("yt-dismissible-item-undo-feedback"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"onShortUndoDismiss",null);_.t([_.Ks("yt-disable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],iO.prototype,"onShortsDismiss",null);_.t([_.k_("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"onActiveChanged",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"graftClientVisualElements",null);_.t([_.OY("currentPlayerIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"graftNvcRenderer",null);_.t([_.OY("index"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"setActiveIndex",null);
_.t([_.OY("isShortsPipActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"onShortsPipActiveChanged",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"lazyUpdateMiniplayerData",null);_.t([_.u(),_.B("design:type",Object)],iO.prototype,"onOverlayDensityChanged",void 0);
_.t([_.OY("isPersistentPanelActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"onPersistentPanelActiveChanged",null);_.t([_.OY("index","data","isUpArrowHidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"onPrevButtonDataChange",null);_.t([_.OY("index","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"onNextButtonDataChange",null);
_.t([_.bF({is:"ytd-shorts"})],iO);var jiz;var iGv;var PMv;var Ps=function(){return _.z.apply(this,arguments)||this};
_.Y(Ps,_.z);Ps.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ps.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ps.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Ps);
_.U(Ps,"ytd-compact-tvfilm-entry-point-renderer",function(){if(PMv!==void 0)return PMv;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return PMv=e},{mode:1});var mi0;var pCD;var Tfx;var mI=function(){return _.z.apply(this,arguments)||this};
_.Y(mI,_.z);mI.prototype.ready=function(){this.initializeDefs()};
mI.prototype.initializeDefs=function(){var e=this.meta.byKey("yt-icons"),g=_.o1(e).querySelector("#star"),c=_.o1(e).querySelector("#star_half");e=_.o1(e).querySelector("#star_border");g&&this.defs.appendChild(g.cloneNode(!0));c&&this.defs.appendChild(c.cloneNode(!0));e&&this.defs.appendChild(e.cloneNode(!0))};
mI.prototype.percentChanged=function(){for(var e=this.rating;e.firstChild;)e.removeChild(e.firstChild);var g=Math.round(this.percent/10);e=Math.floor(g/2);g%=2;var c=5-e-g;this.appendStars("star",e,0);this.appendStars("star_half",g,e);this.appendStars("star_border",c,e+g)};
mI.prototype.appendStars=function(e,g,c){for(var k=0;k<g;k++){var I=(18+this.spacing)*(k+c),J=document.createElementNS("http://www.w3.org/2000/svg","use");XPo(J,"#"+e);J.setAttribute("x",""+I);J.setAttribute("y","0");this.rating.appendChild(J)}};
mI.prototype.percentChanged=mI.prototype.percentChanged;_.t([_.Cs("#defs"),_.B("design:type",HTMLElement)],mI.prototype,"defs",void 0);_.t([_.Cs("#rating"),_.B("design:type",HTMLElement)],mI.prototype,"rating",void 0);_.t([_.u(),_.B("design:type",Number)],mI.prototype,"percent",void 0);_.t([_.u({value:6}),_.B("design:type",Number)],mI.prototype,"spacing",void 0);_.t([_.u({value:_.c6.create("iron-meta",{type:"iconset"})}),_.B("design:type",_.eJ)],mI.prototype,"meta",void 0);
_.t([_.OY("percent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mI.prototype,"percentChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-ratings"})],mI);
_.U(mI,"ytd-ratings",function(){if(Tfx!==void 0)return Tfx;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Tfx=e},{mode:1});var lov=function(){return _.z.apply(this,arguments)||this};
_.Y(lov,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],lov.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],lov.prototype,"data",void 0);_.t([_.bF({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],lov);
_.U(lov,"ytd-offer-review-renderer",function(){if(pCD!==void 0)return pCD;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return pCD=e},{mode:1});var pk=function(){var e=_.z.apply(this,arguments)||this;e.badges=[{textBadge:{label:_.PL("CC")}}];return e};
_.Y(pk,_.z);_.v=pk.prototype;_.v.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.v.dataChanged=function(){var e=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(e&&e.commandMetadata&&_.x(e.commandMetadata,_.I_)&&_.x(e.commandMetadata,_.I_).fireAutomatically)_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}});else{var g;e&&((g=_.x(e,_.I_))==null?0:g.fireAutomatically)&&_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}})}};
_.v.isEmptyContent=function(e){return this.isStorefrontEntryPointEmpty(e)&&this.shouldHideOfferModule(e)};
_.v.isStorefrontEntryPointEmpty=function(e){return!e||!e.storefrontEntryPoint};
_.v.shouldHideOfferModule=function(e){return!!e.hideVideoDetails};
_.v.isOfferModuleNavigationInactive=function(e){return!e.navigationEndpoint&&!e.serviceEndpoint};
_.v.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.Ss().resolve(_.xk).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
pk.prototype.dataChanged=pk.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],pk.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.B("design:type",Boolean)],pk.prototype,"hidden",void 0);
_.t([_.u(),_.B("design:type",Object)],pk.prototype,"badges",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pk.prototype,"dataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],pk);
_.U(pk,"ytd-movie-offer-module-renderer",function(){if(mi0!==void 0)return mi0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return mi0=e},{mode:1});var AIl;var sij=function(){return _.z.apply(this,arguments)||this};
_.Y(sij,_.z);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],sij.prototype,"componentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],sij.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],sij);
_.U(sij,"ytd-media-masthead-renderer",function(){if(AIl!==void 0)return AIl;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return AIl=e},{mode:1});var FJ7;_.sL(_.ZC7,"course-metadata-view-model",{props:{data:_.TF,isOverlay:_.TF}});var TK=function(){var e=_.z.apply(this,arguments)||this;e.isMetadataVisible=!1;e.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return e};
_.Y(TK,_.z);_.v=TK.prototype;
_.v.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.v.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.v.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.v.expanderChanged=function(){var e;if((e=this.data)==null?0:e.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.v.isExpandButtonToggled=function(){var e,g;return(g=_.x((e=this.data)==null?void 0:e.expandMetadataButton,_.fP))==null?void 0:g.isToggled};
_.v.onVisibilityButtonClick=function(){var e;if((e=this.data)==null?0:e.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.v.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
TK.prototype.expanderChanged=TK.prototype.expanderChanged;TK.prototype.dataChanged=TK.prototype.dataChanged;TK.prototype.descriptionChanged=TK.prototype.descriptionChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m([_.Nr.YtActionHandlerBehavior]),_.B("design:type",Object)],TK.prototype,"actionHandlerBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],TK.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],TK.prototype,"isMetadataVisible",void 0);_.t([_.Cs("#expander"),_.B("design:type",Object)],TK.prototype,"expander",void 0);_.t([_.OY("data.description"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TK.prototype,"descriptionChanged",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TK.prototype,"dataChanged",null);_.t([_.OY("isMetadataVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TK.prototype,"expanderChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],TK);
_.U(TK,"ytd-tvfilm-offer-module-renderer",function(){if(FJ7!==void 0)return FJ7;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return FJ7=e},{mode:2});var uUM;var lO=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return e};
_.Y(lO,_.z);lO.prototype.dataChanged=function(){this.hostElement.hidden=!1};
lO.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
lO.prototype.onThumbnailTap=function(e){this.data&&this.data.serviceEndpoint&&(_.Ss().resolve(_.xk).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),e.stopPropagation())};
lO.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
lO.prototype.dataChanged=lO.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],lO.prototype,"rendererBehaviors",void 0);_.t([_.m([_.Nr.YtActionHandlerBehavior]),_.B("design:type",Object)],lO.prototype,"actionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],lO.prototype,"data",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lO.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],lO);
_.U(lO,"ytd-unlimited-offer-module-renderer",function(){if(uUM!==void 0)return uUM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return uUM=e},{mode:1});var diz;var z1g;var Al=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return e};
_.Y(Al,_.z);Al.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Al.prototype.handleRelatedChipCommand=function(e){e=_.x(e,QUq);var g=e.contents;g?_.V1(this.hostElement,"yt-item-section-replace-action",[g,e.targetSectionIdentifier]):_.V1(this.hostElement,"yt-item-section-continuation-action",[e.continuationData,e.targetSectionIdentifier])};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Al.prototype,"actionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Al.prototype,"data",void 0);_.t([_.Wo({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Al);
_.U(Al,"yt-related-chip-cloud-renderer",function(){if(z1g===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;diz===void 0&&(diz=document.createElement("template"));var k=diz;c.call(g,k.content.cloneNode(!0),e.content.firstChild);z1g=e}e=z1g;return e},{mode:2});var s3=function(){var e=_.z.apply(this,arguments)||this;e.isTwoColumns=!0;e.watchFeedBigThumbs=_.G("kevlar_watch_feed_big_thumbs");e.watchFeedBigThumbsOnLockup=_.G("web_watch_next_big_thumbs");e.watchNextGridHideChips=_.G("kevlar_watch_grid_hide_chips");e.eligibleToSwitchToGrid=!0;e.disableShortsShelfHeightOverride=_.G("web_shorts_wn_shelf_ratio_tuning");e.isWatchNextGrid=!1;e.reuseComponents=!_.G("kevlar_watch_grid");e.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return e};
_.Y(s3,_.z);_.v=s3.prototype;
_.v.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.G("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.v.getItemsPath=function(){return"data.results"};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.v.created=function(){this.ytLazyListBehavior.initialCount=1};
_.v.ready=function(){_.Nk(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.v.resultsChanged=function(){if(this.data&&this.data.results){for(var e=this.data.results,g=null,c=null,k=0;k<e.length;k++)e[k].relatedChipCloudRenderer?g=e[k].relatedChipCloudRenderer:e[k].itemSectionRenderer&&(c=e[k].itemSectionRenderer);if(g&&c)for(this.set("data.continuations",[]),e=_.x(g.content,_.Z8w).chips,g=0;g<e.length;g++)if(k=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",e[g]),k.loadCached||!k.contents){k.contents=c.contents;break}}};
_.v.dataChanged=function(){var e=this,g;if((g=this.data)!=null&&g.results&&this.hasAllowedInstreamAd(this.playerData)){if(g=this.data.results.filter(function(L){return!!L.promotedSparklesWebRenderer})){for(var c=0;c<g.length;c++){var k=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",g[c]);
if(k)for(var I=0;I<k.length;I++)k[I]&&k[I].baseUrl&&_.uw(k[I].baseUrl)}this.set("data.results",this.data.results.filter(function(L){return!L.promotedSparklesWebRenderer}))}if(g=this.data.results.filter(function(L){return!!e.getSparklesAd(L)})){g=_.w(g);
for(I=g.next();!I.done;I=g.next())if(k=c=void 0,I=(c=this.getSparklesAd(I.value))==null?void 0:(k=c.errorCommand)==null?void 0:k.loggingUrls)for(c=_.w(I),k=c.next();!k.done;k=c.next())(k=k.value)&&k.baseUrl&&_.uw(k.baseUrl);var J,q;this.set("data.results",(J=this.data)==null?void 0:(q=J.results)==null?void 0:q.filter(function(L){return!L.adSlotRenderer}))}}};
_.v.getSparklesAd=function(e){var g,c;e=_.x((g=e.adSlotRenderer)==null?void 0:(c=g.fulfillmentContent)==null?void 0:c.fulfilledLayout,_.wk1);return _.x(e==null?void 0:e.renderingContent,ZSD)};
_.v.hasAllowedInstreamAd=function(e){e=this.get("adPlacements",e)||[];for(var g=0;g<e.length;g++){var c=this.get("adPlacementRenderer.config.adPlacementConfig",e[g]);if(c&&c.suppressDisplayAd)return!0}return!1};
_.v.computeHideUnlimitedOfferModule=function(e,g){return e&&e.offerModule&&g&&e.offerModule.unlimitedOfferModuleRenderer&&e.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(g)?!0:!1};
_.v.hideUnlimitedOfferModuleChanged=function(){var e=_.o1(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");e&&(e.hidden=this.hideUnlimitedOfferModule)};
_.v.updateLockupContainerTypes=function(e){if(this.eligibleToSwitchToGrid){var g;(g=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||g.forEach(function(c){c.containerType=e})}};
_.v.computeHideTvfilmOfferModule=function(e,g){var c,k;return!!((e==null?0:(c=e.offerModule)==null?0:(k=c.tvfilmOfferModuleRenderer)==null?0:k.clientShouldSuppressIfCompanionAdDisplayed)&&g&&this.hasCompanionAds(g))};
_.v.hideTvfilmOfferModuleChanged=function(){var e=_.o1(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");e&&(e.hidden=this.hideTvfilmOfferModule)};
_.v.hasCompanionAds=function(e){e=this.get("adPlacements",e)||[];for(var g=0;g<e.length;g++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",e[g]))return!0;var c=void 0,k=void 0,I=void 0;if(!_.G("web_watch_top_banner_companion_check_killswitch")&&((c=e[g])==null?0:(k=c.adPlacementRenderer)==null?0:(I=k.renderer)==null?0:I.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.v.hasSuppressedResults=function(e){return e==null?!0:e.filter(function(g){return!g.continuationItemRenderer&&!g.compactPromotedVideoRenderer&&!g.promotedSparklesWebRenderer}).length===0};
_.v.computeShowButton=function(e,g){return this.isWatchNextGrid?e:e||this.hasSuppressedResults(g)};
_.v.showButtonChanged=function(){if(this.isWatchNextGrid){var e=_.o1(this.hostElement).querySelector("ytd-rich-grid-renderer");e&&this.showButton!==null&&(e.continuationShowButton=this.showButton)}else{e=_.o1(this.hostElement).querySelector("yt-next-continuation");var g=_.o1(this.hostElement).querySelector("ytd-continuation-item-renderer"),c=_.o1(this.hostElement).querySelector("ytd-item-section-renderer");e&&(e.showButton=this.showButton);g&&(g.showButton=this.showButton);c&&(c.continuationShowButton=
this.showButton)}};
_.v.continuationTap=function(e){var g;if(((g=this.data)==null?void 0:g.continuations)!=null&&e.target.tagName==="TP-YT-PAPER-BUTTON")for(e=this.data.continuations,g=0;g<e.length;g++)e[g].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(e[g].nextContinuationData||{})};
_.v.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("shown-items-changed",this.shownItems))};
_.Bd.Object.defineProperties(s3.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.shownItems)==null||!e.some(function(g){return!!g.lockupViewModel||g.compactVideoRenderer}))}}});
s3.prototype.shownItemsChangedForBinding=s3.prototype.shownItemsChangedForBinding;s3.prototype.showButtonChanged=s3.prototype.showButtonChanged;s3.prototype.hideTvfilmOfferModuleChanged=s3.prototype.hideTvfilmOfferModuleChanged;s3.prototype.updateLockupContainerTypes=s3.prototype.updateLockupContainerTypes;s3.prototype.hideUnlimitedOfferModuleChanged=s3.prototype.hideUnlimitedOfferModuleChanged;s3.prototype.dataChanged=s3.prototype.dataChanged;s3.prototype.resultsChanged=s3.prototype.resultsChanged;
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.uU.YtLazyListBehavior),_.B("design:type",Object)],s3.prototype,"ytLazyListBehavior",void 0);_.t([_.m(_.lX.YtNextContinuationBehavior),_.B("design:type",Object)],s3.prototype,"ytNextContinuationBehavior",void 0);
_.t([_.m(_.Tk),_.B("design:type",Object)],s3.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],s3.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],s3.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],s3.prototype,"playerData",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],s3.prototype,"autoFill",void 0);_.t([_.u({value:60}),_.B("design:type",Number)],s3.prototype,"targetFramerate",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s3.prototype,"isTwoColumns",void 0);_.t([_.u(),_.B("design:type",Object)],s3.prototype,"shownItems",void 0);_.t([_.u({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.B("design:type",Boolean)],s3.prototype,"hideUnlimitedOfferModule",void 0);_.t([_.u({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.B("design:type",Boolean)],s3.prototype,"hideTvfilmOfferModule",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s3.prototype,"watchFeedBigThumbs",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s3.prototype,"watchFeedBigThumbsOnLockup",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s3.prototype,"watchNextGridHideChips",void 0);_.t([_.u(),_.B("design:type",Object)],s3.prototype,"eligibleToSwitchToGrid",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s3.prototype,"disableShortsShelfHeightOverride",void 0);_.t([_.u({selector:_.E1,reflectToAttribute:!0}),_.B("design:type",Object)],s3.prototype,"isGridViewEnabled",void 0);_.t([_.u({selector:_.$hg,reflectToAttribute:!0}),_.B("design:type",Object)],s3.prototype,"isSwatcherooActive",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],s3.prototype,"showMoreButton",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],s3.prototype,"isWatchNextGrid",void 0);_.t([_.u({computed:"computeShowButton(showMoreButton, data.results)"}),_.B("design:type",Boolean)],s3.prototype,"showButton",void 0);_.t([_.k_("data.results.*"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s3.prototype,"resultsChanged",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s3.prototype,"dataChanged",null);_.t([_.OY("hideUnlimitedOfferModule"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s3.prototype,"hideUnlimitedOfferModuleChanged",null);_.t([_.p("isGridViewEnabled","containsLockups","data"),_.u({reflectToAttribute:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],s3.prototype,"lockupContainerType",null);
_.t([_.OY("lockupContainerType","data"),_.B("design:type",Function),_.B("design:paramtypes",[Number]),_.B("design:returntype")],s3.prototype,"updateLockupContainerTypes",null);_.t([_.OY("hideTvfilmOfferModule"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s3.prototype,"hideTvfilmOfferModuleChanged",null);_.t([_.OY("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s3.prototype,"showButtonChanged",null);
_.t([_.OY("shownItems"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s3.prototype,"shownItemsChangedForBinding",null);_.t([_.p("shownItems"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],s3.prototype,"containsLockups",null);
_.U(s3,"ytd-watch-next-secondary-results-renderer",function(){if(iGv===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);iGv=e}e=iGv;return e},{mode:1});var HGg;var F3=function(){var e=_.z.apply(this,arguments)||this;e.currentPageUrl="";e.baseUrl="";e.isHiddenByUser=null;e.hidden=!1;e.showAboveScrim=!1;e.watchNextGrid=_.G("kevlar_watch_grid");e.modernButtons=_.G("web_modern_buttons");e.roundedContainer=!0;e.noBorder=!1;e.roundBackground=!_.G("live_chat_round_background_killswitch");e.overflowHideChat=_.G("live_chat_overflow_hide_chat");e.forceDarkTheme=!1;e.theaterWatchWhile=!1;e.isListeningForPlayerProgress=!1;e.JSC$22164_playerEvents=new Map;e.isFrameReady=
!1;e.player=null;e.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 e};
_.Y(F3,_.z);_.v=F3.prototype;_.v.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.V1(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.v.created=function(){var e=this;this.handleIframeEventListener=function(g){e.handleIframeEvent(g)};
this.handleKeyboardEventListener=function(g){e.handleKeyboardEvent(g)};
this.JSC$22164_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22164_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22164_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22164_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22164_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.v.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.v.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.v.computeBaseUrl=function(e){var g="/live_chat";this.isChatReplay()&&(g="/live_chat_replay");return _.Z7(_.o0(_.UR(_.zs(e),g),null),"").toString()};
_.v.dataChanged=function(){_.G("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.v.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var e=this.url;if(this.isChatReplay()&&this.player){var g=Math.floor(this.player.getProgressState().current*1E3);e=_.Qd(_.zs(e),"playerOffsetMs",g.toString()).toString()}g=this.chatframe;try{var c=e==="about:blank"?_.xOk:_.Km(e),k=g.contentDocument.location,I=_.Cm(c);I!==void 0&&k.replace(I)}catch(J){g.src=e}}};
_.v.collapsedChanged=function(){_.oC(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.v.handleIframeEvent=function(e){if(e&&this.baseUrl.startsWith(e.origin)&&e.source===this.chatframe.contentWindow&&_.SK(e.data))if(e.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(e);else if(e.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(e.data["yt-show-feedback-dialog"]){var g=_.Ss().resolve(_.NN(_.fEO));if(g){var c=e.ports,k;c&&c.length&&(k=function(){c[0].postMessage({})});
e=e.data["yt-show-feedback-dialog"];g.showFeedbackDialog(e.customProductData,e.feedbackContent,k,e.bucket)}}else if(e.data["yt-show-survey"])_.oC(this.hostElement,"yt-show-survey",e.data["yt-show-survey"]);else if(e.data["yt-purchase-membership"])_.Ss().resolve(_.xk).resolveCommand(e.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(e.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(e.data["yt-tunnel-out-live-service-request"]);else if(e.data["yt-user-activity"])_.Nz();
else if(e.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(e.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(e.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(e.data["yt-open-popup"]);else if(e.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(e.data["yt-log-flow-logging-event-command"]);else if(e.data["yt-hide-live-chat"])this.onShowHideChat();else e.data["yt-report-moderation-state-log"]&&
this.player&&(g={cpn:this.player.getVideoData().cpn},_.Y2("liveChatBeingModerated",g))};
_.v.attachLiveChatResponseVeTrackingParams=function(e){e=_.Jb(e);var g=_.EM(),c=_.Q0("liveChatRenderer.trackingParams",this.data);g&&c&&_.Yn(g,_.Jb(c),e)};
_.v.handleBuyflowMessages=function(e){var g=e.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,c=e.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,k=e.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.aoK(_.Q5(_.Tb),g.replace(/-/g,"+").replace(/_/g,"/"),function(I){e.ports[0].postMessage({success:!0,buyFlowResponse:I})},void 0,function(I){e.ports[0].postMessage({success:!1,
error:I&&I.message||"Buyflow rejected without error."})},_.ch().get("hl"),void 0,function(){e.ports[0].postMessage({closed:!0})},c,k)};
_.v.setupPlayerProgressRelay=function(){var e=this;if(!this.isListeningForPlayerProgress){var g=_.u6();g!=null&&g.getPlayerPromise&&(g.getPlayerPromise().then(function(c){e.playerApiReady(c)}),this.isListeningForPlayerProgress=!0)}};
_.v.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.v.playerApiReady=function(e){this.setPlayer(e)};
_.v.playerProgressHandler=function(){if(this.player){var e=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":e.current})}};
_.v.playerAdStartHandler=function(e){this.postToContentWindow({"yt-player-ad-start":e})};
_.v.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.v.playerStateChangeHandler=function(e){this.postToContentWindow({"yt-player-state-change":e})};
_.v.setPlayer=function(e){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22164_playerEvents);e&&(this.player=e,this.ytPlayerListenerBehavior.listenToPlayerEvents(e,this.JSC$22164_playerEvents),_.oC(this.hostElement,"player-api-ready"))};
_.v.liveChatPageUrl=function(e,g,c,k){return!c||g?"about:blank":c.liveChatRenderer?(g=_.zs(this.currentPageUrl).JSC$10342_queryData_,R6S(g),e=_.zs(e),g.add("continuation",c.liveChatRenderer.continuations[0].reloadContinuationData.continuation),c=_.Du()==="USER_INTERFACE_THEME_DARK",(k||c)&&g.add("dark_theme","true"),_.o0(e,g),k=_.zs(e.toString()),c=k.JSC$10342_queryData_,"SESSION_INDEX"in _.sI&&(c.add("authuser",_.uo("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.sI&&c.add("pageId",_.uo("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.sI&&c.add("sdc",_.uo("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),k.toString()):""};
_.v.isCollapsed=function(e,g){return g!==null?g:this.isChatReplay()||e&&e.conversationBarRenderer&&e.conversationBarRenderer.availabilityMessage?!0:e?e.liveChatRenderer?e.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.G("live_chat_hide_premiere_replay_message")||e.conversationBarRenderer&&e.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.v.isHidden=function(e,g,c){var k=g&&g.conversationBarRenderer&&g.conversationBarRenderer.availabilityMessage,I=g&&g.liveChatRenderer&&g.liveChatRenderer.showHideButton,J=g&&g.liveChatRenderer&&g.liveChatRenderer.showButton;return c&&e&&!k&&!J||!c&&e&&!k&&!I?!0:g&&g.liveChatRenderer&&g.liveChatRenderer.initialDisplayState?g.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.v.computeButtonOverride=function(e,g){if(e&&g)return{type:"outline"}};
_.v.setCollapsedState=function(e){_.x(e,_.aUY)&&((this.isHiddenByUser=!!_.x(e,_.aUY).collapsed)||_.Z5(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.v.forwardReduxActionToIframe=function(e){this.postToContentWindow({"yt-live-chat-forward-redux-action":e})};
_.v.onLoopRangeChange=function(e){this.showAboveScrim=!(e==null||!e.postId)};
_.v.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.v.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.v.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.v.sendDarkThemePostMessage=function(e){this.postToContentWindow({"yt-live-chat-set-dark-theme":e})};
_.v.onLiveChatBuyFlowCallback=function(e){this.postToContentWindow({"yt-live-chat-buy-flow-callback":e})};
_.v.handleKeyboardEvent=function(e){(0,_.n0.containsValue)(T97,e.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:e.type,keyCode:e.keyCode}})};
_.v.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.v.postToContentWindow=function(e){if(this.isFrameReady)try{var g=window.location.protocol+"//"+window.location.host,c;(c=this.chatframe)!=null&&c.contentWindow?this.chatframe.contentWindow.postMessage(e,g):_.mN(new _.E2("Tried posting a message to an iframe with no content window",e))}catch(k){_.jW(k)}};
_.v.shouldHideChatFrame=function(e){return e&&_.G("hide_live_chat_button_when_collapsed")};
_.Bd.Object.defineProperties(F3.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.G("live_chat_overflow_hide_chat")||_.G("web_watch_chat_hide_button_killswitch"))return _.G("live_chat_overflow_hide_chat");var e,g,c,k;return!!((e=this.data)==null?0:(g=e.liveChatRenderer)==null?0:(c=g.header)==null?0:(k=c.liveChatHeaderRenderer)==null?0:k.collapseButton)}}});
F3.prototype.collapsedChanged=F3.prototype.collapsedChanged;F3.prototype.urlChanged=F3.prototype.urlChanged;F3.prototype.dataChanged=F3.prototype.dataChanged;F3.prototype.onShowHideChat=F3.prototype.onShowHideChat;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],F3.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],F3.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.iU.YtPlayerListenerBehavior),_.B("design:type",_.Pv)],F3.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.m(_.tF.YtOpenPopupBehavior),_.B("design:type",Object)],F3.prototype,"ytOpenPopupBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],F3.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],F3.prototype,"currentPageUrl",void 0);
_.t([_.u({computed:"computeBaseUrl(currentPageUrl,data)"}),_.B("design:type",Object)],F3.prototype,"baseUrl",void 0);_.t([_.u({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.B("design:type",String)],F3.prototype,"url",void 0);_.t([_.u(),_.B("design:type",Object)],F3.prototype,"isHiddenByUser",void 0);_.t([_.u({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.B("design:type",Object)],F3.prototype,"hidden",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.B("design:type",Boolean)],F3.prototype,"collapsed",void 0);_.t([_.u({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.B("design:type",Boolean)],F3.prototype,"hideChatFrame",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],F3.prototype,"showAboveScrim",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],F3.prototype,"watchNextGrid",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],F3.prototype,"modernButtons",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],F3.prototype,"roundedContainer",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],F3.prototype,"noBorder",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],F3.prototype,"roundBackground",void 0);
_.t([_.u({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.B("design:type",Object)],F3.prototype,"toggleButtonOverride",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],F3.prototype,"overflowHideChat",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],F3.prototype,"forceDarkTheme",void 0);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],F3.prototype,"enableShowWithoutHideChatButton",null);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],F3.prototype,"theaterWatchWhile",void 0);_.t([_.Cs("#chatframe"),_.B("design:type",HTMLIFrameElement)],F3.prototype,"chatframe",void 0);_.t([_.Ks("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F3.prototype,"onShowHideChat",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F3.prototype,"dataChanged",null);
_.t([_.OY("url"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F3.prototype,"urlChanged",null);_.t([_.OY("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F3.prototype,"collapsedChanged",null);_.t([_.bF({is:"ytd-live-chat-frame",disableElementRegistration:!0})],F3);
_.U(F3,"ytd-live-chat-frame",function(){if(HGg!==void 0)return HGg;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return HGg=e},{mode:1});var QiX;var uO=function(){var e=_.z.apply(this,arguments)||this;e.lastRenderedPanelIds=new Set;e.visiblePanels=[];e.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return e};
_.Y(uO,_.z);_.v=uO.prototype;_.v.dataChanged=function(){if(this.data){for(var e=[],g=_.w(this.data),c=g.next();!c.done;c=g.next()){c=c.value;var k=void 0,I=void 0,J=(k=c)==null?void 0:(I=k.engagementPanelSectionListRenderer)==null?void 0:I.visibility;I=k=void 0;((k=c)==null?0:(I=k.engagementPanelSectionListRenderer)==null?0:I.targetId)&&J!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&e.push(c)}this.visiblePanels=e}else this.visiblePanels=[]};
_.v.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.v.withoutVisiblePanelById=function(e){return this.visiblePanels.filter(function(g){var c;return((c=g.engagementPanelSectionListRenderer)==null?void 0:c.targetId)!==e})};
_.v.onYtChangeEngagementPanelVisibilityAction=function(e){var g=this,c=_.x(e,_.nAs);if(this.data&&(c==null?0:c.targetId)&&(c==null?0:c.visibility)){var k,I=(k=this.data.find(function(q){var L;return((L=q.engagementPanelSectionListRenderer)==null?void 0:L.targetId)===c.targetId}))==null?void 0:k.engagementPanelSectionListRenderer;
if(I){var J=this.withoutVisiblePanelById(c.targetId);c.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(e=this.data.find(function(q){var L;return((L=q.engagementPanelSectionListRenderer)==null?void 0:L.targetId)===c.targetId}))&&(J=[e].concat(_.KY(J)));
this.hideDelayMs&&c.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&J.length===0?_.ft.addJob(function(){I.visibility=c.visibility;g.visiblePanels=J},10,this.hideDelayMs):(I.visibility=c.visibility,this.visiblePanels=J);
_.V1(this.hostElement,"yt-engagement-panels-visible-changed",[J])}}};
_.v.onRendererstamperFinished=function(){var e=new Set(this.visiblePanels.map(function(g){var c;return(c=g.engagementPanelSectionListRenderer)==null?void 0:c.targetId}));
this.handlePanelVisibilityChange(e,this.lastRenderedPanelIds);this.lastRenderedPanelIds=e};
_.v.handlePanelVisibilityChange=function(e,g){e=e===void 0?new Set:e;g=g===void 0?new Set:g;if(this.data)for(var c=_.w(this.data),k=c.next();!k.done;k=c.next()){k=k.value;var I=void 0,J=void 0,q=(I=k)==null?void 0:(J=I.engagementPanelSectionListRenderer)==null?void 0:J.targetId;if(q&&(I=g.has(q),J=e.has(q),q=void 0,!I&&J?(J=I=void 0,q=(I=k)==null?void 0:(J=I.engagementPanelSectionListRenderer)==null?void 0:J.onShowCommands):I&&!J&&(J=I=void 0,q=(I=k)==null?void 0:(J=I.engagementPanelSectionListRenderer)==
null?void 0:J.onHideCommands),q))for(k=_.w(q),q=k.next();!q.done;q=k.next())this.ytComponentBehavior.resolveCommand(q.value)}};
uO.prototype.onRendererstamperFinished=uO.prototype.onRendererstamperFinished;uO.prototype.dataChanged=uO.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],uO.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],uO.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],uO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],uO.prototype,"lastRenderedPanelIds",void 0);_.t([_.u(),_.B("design:type",Number)],uO.prototype,"hideDelayMs",void 0);_.t([_.u(),_.B("design:type",Array)],uO.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Array)],uO.prototype,"visiblePanels",void 0);_.t([_.u(),_.B("design:type",Boolean)],uO.prototype,"isWatchWhilePanel",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uO.prototype,"dataChanged",null);_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uO.prototype,"onRendererstamperFinished",null);_.t([_.bF({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],uO);
_.U(uO,"ytd-watch-engagement-panels",function(){if(QiX!==void 0)return QiX;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return QiX=e},{mode:1});var Ui7;var o57;var ZGq=function(){return _.z.apply(this,arguments)||this};
_.Y(ZGq,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ZGq.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ZGq.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],ZGq);
_.U(ZGq,"ytd-comments-entry-point-message-renderer",function(){if(o57!==void 0)return o57;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return o57=e},{mode:1});var V1z;var dU=function(){return _.z.apply(this,arguments)||this};
_.Y(dU,_.z);_.Bd.Object.defineProperties(dU.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.teaserAvatar)}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],dU.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dU.prototype,"hasAvatar",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],dU);
_.U(dU,"ytd-comments-entry-point-teaser-renderer",function(){if(V1z!==void 0)return V1z;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return V1z=e},{mode:1});var t1z;var BfX=function(){return _.z.apply(this,arguments)||this};
_.Y(BfX,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],BfX.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],BfX.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],BfX);
_.U(BfX,"ytd-comments-simplebox-renderer",function(){if(t1z!==void 0)return t1z;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return t1z=e},{mode:1});var zK=function(){var e=_.z.apply(this,arguments)||this;e.fullHeight=!_.G("comment_teaser_full_height_kill_switch")&&_.G("kevlar_watch_grid");return e};
_.Y(zK,_.z);zK.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"}}}};
zK.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
zK.prototype.onTap=function(){var e=this.tapCommand;e&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(e))};
zK.prototype.onKeyUp=function(e){if(e.keyCode===13)this.onTap()};
_.Bd.Object.defineProperties(zK.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null?0:e.onTap)return this.data.onTap}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)!=null&&e.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
zK.prototype.onKeyUp=zK.prototype.onKeyUp;zK.prototype.onTap=zK.prototype.onTap;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],zK.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],zK.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],zK.prototype,"fullHeight",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],zK.prototype,"tapCommand",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],zK.prototype,"simpleboxPlaceholder",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zK.prototype,"hasSimpleboxPlaceholder",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],zK.prototype,"simpleboxAvatar",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],zK.prototype,"teaserContent",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zK.prototype,"hasTeaserContent",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],zK.prototype,"teaserAvatar",null);
_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zK.prototype,"hasTeaserAvatar",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],zK.prototype,"messageText",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],zK.prototype,"contentRenderer",null);_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zK.prototype,"hasContents",null);
_.t([_.p("data"),_.u({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zK.prototype,"hasContentRenderer",null);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zK.prototype,"onTap",null);_.t([_.Ks("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[_.qn]),_.B("design:returntype")],zK.prototype,"onKeyUp",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],zK);
_.U(zK,"ytd-comments-entry-point-header-renderer",function(){if(Ui7!==void 0)return Ui7;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Ui7=e},{mode:1});var Nfo;_.sL(_.DLq,"yt-animated-rolling-number",{props:{numberText:_.jx,numberValue:_.jx,heightPx:_.jx,fontSizeMultiplier:_.jx,shouldAnimate:_.jx,forceRollUp:_.jx}});var S$Q=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),yIj={numberText:"",heightPx:2*S$Q,shouldAnimate:!1},Hs=function(){var e=_.z.apply(this,arguments)||this;e.usingAnimatedComponents=!0;e.wasDetailed=!1;e.JSC$22194_browserSupportsAnimation=_.G("web_supports_animations_api");e.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};e.detailed=!1;e.shouldAnimate=!1;e.viewCountProps=yIj;e.dateTextProps=
yIj;e.isEmpty=!1;e.metadataBadgesInDescription=_.G("web_metadata_badges_in_description");return e};
_.Y(Hs,_.z);_.v=Hs.prototype;_.v.computeIsEmpty=function(e,g,c,k,I,J,q,L){return!_.G("web_hide_watch_info_empty")||_.mp(e)?!1:g?!(_.mp(c)||k||_.mp(I)||_.mp(J)||q||_.mp(L)):!0};
_.v.attached=function(){var e=this;_.Ss().resolve(_.Sy).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(g){e.set("videoPrimaryInfoRenderer.subtitle",g)})};
_.v.detached=function(){_.Ss().resolve(_.Sy).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.v.resetAnimationState=function(){this.shouldAnimate=!1};
_.v.updateDynamicMetadata=function(){if(this.JSC$22194_browserSupportsAnimation){if(!this.detailed){var e,g,c,k;var I=(e=this.videoPrimaryInfoRenderer)==null?void 0:(g=e.viewCount)==null?void 0:(c=g.videoViewCountRenderer)==null?void 0:(k=c.extraShortViewCount)==null?void 0:k.simpleText;var J,q,L,n;var R=(J=this.videoPrimaryInfoRenderer)==null?void 0:(q=J.viewCount)==null?void 0:(L=q.videoViewCountRenderer)==null?void 0:(n=L.shortViewCount)==null?void 0:n.simpleText}if(!R){var W,b,h,X;I=(W=this.videoPrimaryInfoRenderer)==
null?void 0:(b=W.viewCount)==null?void 0:(h=b.videoViewCountRenderer)==null?void 0:(X=h.unlabeledViewCountValue)==null?void 0:X.simpleText;var D,f,l,A;R=(D=this.videoPrimaryInfoRenderer)==null?void 0:(f=D.viewCount)==null?void 0:(l=f.videoViewCountRenderer)==null?void 0:(A=l.viewCount)==null?void 0:A.simpleText}var d,S,V;e=Number((d=this.videoPrimaryInfoRenderer)==null?void 0:(S=d.viewCount)==null?void 0:(V=S.videoViewCountRenderer)==null?void 0:V.originalViewCount);var Q,y;d=(Q=this.videoPrimaryInfoRenderer)==
null?void 0:(y=Q.relativeDateText)==null?void 0:y.simpleText;var O;Q=!((O=this.videoPrimaryInfoRenderer)==null||!O.relativeDateText);if(I&&R&&e&&(d||!Q)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;O=R.split(new RegExp("("+I+")"));I=_.PL(O[0]);var Jq;R={numberText:(Jq=O[1])!=null?Jq:"",numberValue:e,heightPx:2*S$Q,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var LC;Jq=((LC=O[2])!=null?LC:"")+"  ";this.setViewCount(R,I,_.PL(Jq));if(!this.detailed&&
Q){I=d.split(/(\d+)/);LC=_.PL(I[0]);var bW;Jq={numberText:(bW=I[1])!=null?bW:"",heightPx:2*S$Q,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var RA;bW=((RA=I[2])!=null?RA:"")+"  ";this.setDateText(Jq,LC,_.PL(bW))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.v.setViewCount=function(e,g,c){_.mp(g)!==_.mp(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=g);this.viewCountProps.numberText!==(e==null?void 0:e.numberText)&&(this.viewCountProps=e||yIj);_.mp(c)!==_.mp(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=c)};
_.v.setDateText=function(e,g,c){_.mp(g)!==_.mp(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=g);this.dateTextProps.numberText!==(e==null?void 0:e.numberText)&&(this.dateTextProps=e||yIj);_.mp(c)!==_.mp(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=c)};
_.v.onYtUpdateViewershipAction=function(e){this.videoPrimaryInfoRenderer&&(_.x(e,HEv).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.x(e,HEv).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.x(e,HEv).viewCount)))};
_.v.onYtUpdateDateTextAction=function(e){if(this.videoPrimaryInfoRenderer){e=_.x(e,dg7).dateText;this.shouldAnimate=!0;var g;((g=this.videoPrimaryInfoRenderer)==null?0:g.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",e):this.set("videoPrimaryInfoRenderer.dateText",e)}};
_.Bd.Object.defineProperties(Hs.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return l4v(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.mp(l4v(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.mp(this.viewCountPreNumberText),this.viewCountProps.numberText,_.mp(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.mp(this.dateTextPreNumberText),this.dateTextProps.numberText,_.mp(this.dateTextPostNumberText)].join("")}}});
Hs.prototype.updateDynamicMetadata=Hs.prototype.updateDynamicMetadata;Hs.prototype.resetAnimationState=Hs.prototype.resetAnimationState;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Hs.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Hs.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Hs.prototype,"videoPrimaryInfoRenderer",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"detailed",void 0);_.t([_.u(),_.B("design:type",Object)],Hs.prototype,"shouldAnimate",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"viewCountPreNumberText",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"viewCountProps",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"viewCountPostNumberText",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"dateTextPreNumberText",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"dateTextProps",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"dateTextPostNumberText",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeIsEmpty(infoText, usingAnimatedComponents, viewCountPreNumberText, viewCountProps.numberText, viewCountPostNumberText, dateTextPreNumberText, dateTextProps.numberText, dateTextPostNumberText)"}),_.B("design:type",Object)],Hs.prototype,"isEmpty",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"metadataBadgesInDescription",void 0);_.t([_.p("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hs.prototype,"infoText",null);
_.t([_.p("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.B("design:type",String),_.B("design:paramtypes",[])],Hs.prototype,"descriptionInfoTooltipText",null);_.t([_.p("detailed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hs.prototype,"showDescriptionInfoTooltip",null);
_.t([_.p("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.B("design:type",String),_.B("design:paramtypes",[])],Hs.prototype,"animatedViewCountAccessibilityLabel",null);_.t([_.p("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.B("design:type",String),_.B("design:paramtypes",[])],Hs.prototype,"animatedDateTextAccessibilityLabel",null);
_.t([_.OY("videoPrimaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"resetAnimationState",null);_.t([_.OY("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"updateDynamicMetadata",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Hs);
_.U(Hs,"ytd-watch-info-text",function(){if(Nfo!==void 0)return Nfo;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Nfo=e},{mode:1});var KJS;var OGS="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var M1D=_.H(function(e){var g=e.data;var c=e.setTapCommand;_.AV(function(){var k=_.WT(g().onTap);c(k)},"CLm0Xe");
return _.a("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.a(_.eS,{data:function(){return g().avatar}},{avatarViewModel:_.E8}),_.a("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.a("span",null,function(){return g().simpleboxText})))},"Kk");var CMS=_.H(function(e){return _.a("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.a(_.E,{cond:function(){return _.x(e.data().avatar,_.bD)},
then:function(g){return _.a(_.E8,{data:g,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.a("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.a(_.fa,{text:function(){return e.data().teaserText}})))},"Lk");var eig=_.H(function(e){var g=e.data;var c=e.setTapCommand;_.AV(function(){var k=_.WT(g().onTap);c(k)},"qxjCCd");
return _.a("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.a(_.eS,{data:function(){return g().teasers}},{commentsEntryPointTeaserViewModel:CMS}))},"Nk");var g6z=_.H(function(e){var g=e.data;var c=e.setTapCommand;_.AV(function(){var k=_.WT(g().onTap);c(k)},"CRZByf");
return _.a("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.a(_.fa,{text:function(){return g().messageText}}))},"Pk");var cND=_.H(function(e){var g=e.data;var c=e.setTapCommand;var k=e.isDisabled;_.AV(function(){var I=(k==null?0:k())?void 0:_.WT(g().onTap);c(I)},"GZxRqd");
return _.a("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.a(_.SU,{icon:function(){return g().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.a(_.E,{cond:function(){return g().image},
then:function(I){return _.a(_.pv,{data:I,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.a(_.fa,{text:function(){return g().text},
className:function(){return g().image||g().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.a(_.eS,{data:function(){return g().button}},{buttonViewModel:function(I){return _.a(_.oD,{data:I.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:k==null?void 0:k()}}})}}))},"Rk");var kw7=_.H(function(e){var g=e.data;var c=e.itemIndex;var k=e.selectedIndex;var I=e.indexUpdatedCallback;var J=e.observer;e=e.title;var q=_.io("yt-carousel-item-view-model",function(b){J&&J().observe(b)}),L=function(b){c()===k()&&I(b)},n=_.M2(vdD),R=_.M2(_.jQv),W=function(){var b,h,X,D,f;
return((b=g())==null?void 0:b.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!n()||((h=g())==null?void 0:h.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((X=R())==null?void 0:X.includes("PAposts_by_host"))||((D=g())==null?void 0:D.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((f=R())==null?void 0:f.includes("PAyouchat"))};
return _.a("yt-carousel-item-view-model",{el:q,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":e},_.a(_.eS,{data:function(){var b,h;return(h=(b=_.x(g().carouselItem,MZ0))==null?void 0:b.textCarousel)!=null?h:g().carouselItem}},{textCarouselItemViewModel:function(b){return _.a(cND,{data:b.data,
setTapCommand:L,isDisabled:W})},
commentTeaserCarouselItemViewModel:function(b){return _.a(eig,{data:b.data,setTapCommand:L})},
commentInputBoxCarouselItemViewModel:function(b){return _.a(M1D,{data:b.data,setTapCommand:L})},
commentsEntryPointMessageViewModel:function(b){return _.a(g6z,{data:b.data,setTapCommand:L})}}))},"Sk");var Inx=_.H(function(e){var g=e.numDots;var c=e.activeIndex;return _.a("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.a(_.Yz,{each:function(){return Array.from({length:g()})},
keyBy:"INDEX"},function(k,I){return _.a("div",{class:function(){var J={};return _.qy("ytCarouselDotsShapeDot",(J.ytCarouselDotsShapeDotActive=I===c(),J))}})}))},"Tk");var JNS=_.H(function(e){var g=e.data;var c=e.handleCarouselNavigation;var k=e.numItems;var I=e.selectedIndex;var J=function(){return{disabled:I()===0}},q=function(){return{disabled:I()===k()-1}};
return _.a("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.a("div",null,_.a("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return g().title}),_.a(_.E,{cond:function(){return g().subtitle},
then:function(L){return _.a("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return g().subtitleAccessibilityText}},L)}})),_.a(_.E,{cond:function(){return k()>1},
then:function(){return _.a("div",{class:"ytCarouselTitleViewModelNavigation"},_.a(Inx,{numDots:k,activeIndex:I}),_.a(_.E,{cond:function(){return g().previousButton},
then:function(L){return _.a(_.eS,{data:L},{buttonViewModel:function(n){return _.a(_.oD,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return c(-1)},
buttonOverrides:J})}})}}),_.a(_.E,{cond:function(){return g().nextButton},
then:function(L){return _.a(_.eS,{data:L},{buttonViewModel:function(n){return _.a(_.oD,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return c(1)},
buttonOverrides:q})}})}}))}}))},"Uk");_.sL(_.H(function(e){var g=e.data;var c,k=_.io("yt-video-metadata-carousel-view-model"),I=_.io("div",function(Q){var y=function(){var O=Q.offsetWidth*f(),Jq=24*(f()-1);h(O+Jq)};
y();window.ResizeObserver&&(c=new ResizeObserver(y),c.observe(Q))}),J=_.uo("HTML_DIR")==="rtl",q=!1,L=0,n=0;
e=_.w(_.Wa(0,void 0,"M49TDf"));var R=e.next().value,W=e.next().value;e=_.w(_.Wa(0,void 0,"zLIok"));var b=e.next().value,h=e.next().value;e=_.w(_.Wa(!1,void 0,"bhelhc"));var X=e.next().value,D=e.next().value,f=function(){var Q,y,O;return(O=(Q=g())==null?void 0:(y=Q.carouselTitles)==null?void 0:y.length)!=null?O:0},l=function(){I.value&&I.value.scrollLeft!==L&&W((J?I.value.scrollLeft<L:I.value.scrollLeft>L)?Math.min(R()+1,f()-1):Math.max(R()-1,0))},A;
window.IntersectionObserver&&(A=new IntersectionObserver(function(Q){Q=_.w(Q);for(var y=Q.next();!y.done;y=Q.next())if(y.value.isIntersecting){if(q){q=!1;break}l()}else W(n)},{threshold:.2}));
_.AV(function(){if(I.value){var Q=(J?-1:1)*(b()/f()+12)*(X()&&A?n:R());typeof I.value.scrollTo==="function"?I.value.scrollTo({left:Q,behavior:"smooth"}):I.value.scrollLeft=Q;L=Q;n=X()&&A?n:R()}},"s9rbgc");
var d,S=function(Q){d=Q};
_.sX(function(){var Q;(Q=c)==null||Q.disconnect();var y;(y=A)==null||y.disconnect()});
var V=function(Q){Q=R()+Q;Q>=0&&Q<f()&&(q=!0,W(Q))};
return _.a("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:k,"on:click":_.Ve(function(Q){if(_.aB(_.rb(Q),k.value,["BUTTON".toString()])||!d)return!1;_.Ss().resolve(_.xk).resolveCommand(d,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Ve(function(){D(!0);return!1}),
"on:touchend":_.Ve(function(){A||l();D(!1);return!1}),
hidden:function(){var Q,y;return!((Q=g())==null?0:(y=Q.carouselItems)==null?0:y.length)}},_.a("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.a(_.E,{cond:function(){return g().carouselTitles},
then:function(Q){return _.a(_.eS,{data:function(){return Q()[X()&&A?n:R()]}},{carouselTitleViewModel:function(y){return _.a(JNS,{data:y.data,
handleCarouselNavigation:V,numItems:f,selectedIndex:R})}})}})),_.a("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:I},_.a("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+b()+"px;"}},_.a(_.E,{cond:function(){return g().carouselItems},
then:function(Q){return _.a(_.Yz,{each:Q},function(y,O){return _.a(_.eS,{data:function(){return y}},{carouselItemViewModel:function(Jq){return _.a(kw7,{data:Jq.data,
itemIndex:O,selectedIndex:R,indexUpdatedCallback:S,observer:A,title:function(){a:{var LC=O();var bW,RA=(bW=g())==null?void 0:bW.carouselTitles;if(RA&&(LC=RA[LC])){var Xg;LC=(Xg=_.x(LC,OS7))==null?void 0:Xg.title;break a}LC=void 0}return LC}})}})})}}))))},"Wk"),"yt-video-metadata-carousel-view-model",{props:{data:_.jx}});var QX=function(){var e=_.z.apply(this,arguments)||this;e.isHovering=!1;e.enableColorSampling=_.G("web_delhi_colorful_sd");e.metadataBadgesInDescription=_.G("web_metadata_badges_in_description");e.descriptionCollapsed=!0;e.useFadedScrimDescription=_.G("kevlar_enable_faded_scrim_on_description");e.skinnyMode=!1;e.playlist=!1;e.isDark=document.documentElement.hasAttribute("dark");e.disableVideoOwnerOnTap=_.G("swatchie_video_owner_on_tap_ks");e.swatcherooDelayLoad=_.G("swatcheroo_enable_ghost_cards");
e.primaryMenuWidth=0;e.videoId="";e.titleHeadlineXs=_.G("web_watch_typography_title_headline_xs");e.titleHeadlineS=_.G("web_watch_typography_title_headline_s");e.titleHeadlineM=_.G("web_watch_typography_title_headline_m");e.titleHashtagBlackLinkified=_.G("web_title_hashtag_black_linkified");e.titleHashtagGreyLinkified=_.G("web_title_hashtag_grey_linkified");e.actionButtonsUpdateOwnerWidth=!0;e.actionMap={"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction",
"yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};e.isFullscreen=!1;e.isTheaterMode=!1;return e};
_.Y(QX,_.z);_.v=QX.prototype;_.v.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.v.updateOwnerAndDescriptionPosition=function(){_.G("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),xO(this.bottomRowElement,this.ownerElement)):(xO(this.bottomRowElement,this.descriptionElement),xO(this.topRowElement,this.ownerElement)))};
_.v.titleOnTap=function(e){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.TJ(_.lg(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var g;((g=window.getSelection())==null?0:g.toString().length)||this.handleExpandDescriptionCommands()}};
_.v.videoOwnerOnTap=function(e){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.TJ(_.lg(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.v.detached=function(){var e=this,g;return _.r(function(c){(g=e.resizeObserver)==null||g.disconnect();_.Uh(c)})};
_.v.maybeAttachResizeObserver=function(){var e=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.BT(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){e.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.v.maybeUpdateActionsOnSeparateLine=function(){this.skinnyMode?this.actionsOnSeparateLine=!0:this.primaryMenuWidth&&(this.actionsOnSeparateLine=this.primaryMenuWidth>this.hostElement.clientWidth-(this.ownerElement.clientWidth+32)?!0:!1)};
_.v.stripAttributedDescription=function(e){return{content:e.content.replace(/[\r\n]{2,}/g,"\n")}};
_.v.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.G("web_modern_buttons"),forceIconButton:!_.G("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:!0,forceIconOnly:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.v.videoPrimaryInfoRendererChanged=function(){var e;if((e=this.videoPrimaryInfoRenderer)==null?0:e.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.v.videoSecondaryInfoRendererChanged=function(){var e,g;(e=this.descriptionInlineExpander)==null||(g=e.collapse)==null||g.call(e);this.descriptionExpandClientVe=_.VF(110509);this.descriptionCollapseClientVe=_.VF(110510);e=_.EM();g=_.RC();e&&g&&(_.G("combine_ve_grafts")?(_.Nd(_.gL(),this.descriptionExpandClientVe,g),_.Nd(_.gL(),this.descriptionCollapseClientVe,g)):_.fA(e,g,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.v.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.v.updateTopLevelIconsOnly=function(){var e=this;_.G("top_level_update_killswitch")||this.menu&&_.ft.addLowPriorityJob(function(){e.menu.topLevelIconsOnly=e.skinnyMode},_.MN("swathceroo_delay_flexible_menu_update",100))};
_.v.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.v.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.v.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.v.onYtTextInlineExpanderExpandedChanged=function(){if(!_.G("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var e,g;(g=(e=this.structuredDescriptionContentRendererElement).resize)==null||g.call(e)}};
_.v.onRenderStamperFinished=function(e){(e==null?void 0:e.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.v.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.v.onYtExpanderLessTapped=function(){var e,g=(e=this.videoSecondaryInfoRenderer)==null?void 0:e.showLessCommand;g&&this.ytComponentBehavior.resolveCommand(g)};
_.v.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.v.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.v.onDescriptionClick=function(e){if(!_.TJ(_.lg(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var g;((g=window.getSelection())==null?0:g.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.G("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.v.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.v.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.v.logCollapseClick=function(){var e=_.EM();e&&this.descriptionCollapseClientVe&&_.m7(e,this.descriptionCollapseClientVe)};
_.v.logExpandClick=function(){var e=_.EM();e&&this.descriptionExpandClientVe&&_.m7(e,this.descriptionExpandClientVe)};
_.v.collapseDescription=function(){this.descriptionCollapsed=!0};
_.v.scrollToTopOfContainer=function(){_.Z5(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.v.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.v.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.v.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.v.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var e,g;(g=(e=this.descriptionInlineExpander).resize)==null||g.call(e)}else _.mN(new _.E2("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var c;(c=this.menu)==null||c.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.v.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var e,g,c=(g=(e=_.o1(this.menu).querySelector("#button-shape"))==null?void 0:e.clientWidth)!=null?g:0,k,I;e=((I=(k=_.o1(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:k.clientWidth)!=null?I:0)+8+c;var J,q;c=(q=(J=_.o1(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:J.children.length)!=null?q:2;e<=8*c||(this.primaryMenuWidth=e)}};
_.v.onYtUpdateTitleAction=function(e){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.x(e,zfo).title)};
_.v.onYtUpdateDescriptionAction=function(e){if(e=_.x(e,_.Www)){var g,c=!((g=this.videoSecondaryInfoRenderer)==null||!g.attributedDescription);e.isEmpty||!e.description&&!e.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):e.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",e.attributedDescription):e.description&&(c?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.a6(e.description)):this.set("videoSecondaryInfoRenderer.description",e.description))}};
_.v.onYtDarkModeToggledAction=function(e){this.isDark=e};
_.v.registerPanel=function(){if(!_.G("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var e=_.G("web_watch_imax_theater_mode")&&this.isTheaterMode;e=_.G("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||e;var g=_.Ss().resolve(_.Lj);g&&!e&&g.registerPanel("engagement-panel-structured-description",this)}};
_.v.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.v.parseColorSamplingData=function(){var e;if(_.G("web_delhi_colorful_sd")&&((e=this.structuredDescriptionContentRenderer)==null?0:e.items)&&(e=this.structuredDescriptionContentRenderer.items.find(function(I){return!!_.x(I,EA)}))){var g,c;
this.hoverColor={lightTheme:(g=_.x(e,EA))==null?void 0:g.lightThemeColorPalette,darkTheme:(c=_.x(e,EA))==null?void 0:c.darkThemeColorPalette};var k;this.hoverText=(k=_.x(e,EA))==null?void 0:k.colorSampledDescriptionBodyText}};
_.v.updateHoverColor=function(){if(_.G("web_delhi_colorful_sd")){var e=this.hoverColor,g={},c;e=(c=this.isDark?e==null?void 0:e.darkTheme:e==null?void 0:e.lightTheme)!=null?c:{};c=_.w(OGS);for(var k=c.next();!k.done;k=c.next()){k=k.value;var I=e[k];g["--yt-saturated-"+_.KM(k)]=I?_.EY(I):"initial"}_.Nk(this.hostElement,g)}};
_.v.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.v.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.v.showPanel=function(e){this.expandDescription();var g=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;g.resize();var c,k=e==null?void 0:(c=e.sectionListEngagementPanelExtras)==null?void 0:c.scrollToItemSectionIdentifier;k?_.ft.addJob(function(){g==null||g.scrollToSection(k)},8):this.scrollToTopOfContainer()};
_.v.isVisible=function(){return!this.descriptionCollapsed};
_.v.getReloadContinuation=function(){};
_.v.hidePanel=function(){};
_.v.updatePanel=function(){};
_.Bd.Object.defineProperties(QX.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var e;return _.G("web_delhi_colorful_sd")&&(e=this.structuredDescriptionContentRenderer)!=null&&e.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(g){return!_.x(g,EA)&&!_.x(g,ZE0)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.structuredDescriptionContentRendererComputed)!=null&&e.items){var g;e=_.w((g=this.structuredDescriptionContentRendererComputed)==null?void 0:g.items);for(g=e.next();!g.done;g=e.next())if(g=_.x(g.value,_.vCB))return g}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.videoPrimaryInfoRenderer)==null?0:e.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return!!((e=this.videoSecondaryInfoRenderer)==null?0:(g=e.owner)==null?0:(c=g.videoOwnerRenderer)==null?0:c.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var e,g;if((e=this.videoSecondaryInfoRenderer)==null?0:(g=e.attributedDescription)==null?0:g.content){var c,k;return(k=this.stripAttributedDescription((c=this.videoSecondaryInfoRenderer)==null?void 0:c.attributedDescription))!=null?k:{runs:[]}}}if(_.G("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var I,J,q,L;return(L=(q=(I=this.videoSecondaryInfoRenderer)==
null?void 0:I.description)!=null?q:(J=this.videoSecondaryInfoRenderer)==null?void 0:J.attributedDescription)!=null?L:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var e,g;return(g=(e=this.videoSecondaryInfoRenderer)==null?void 0:e.headerRuns)!=null?g:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.commentsEntryPointHeaderRenderer)==null||!e.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.videoMetadataCarousel)==null||!e.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.MN("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var e,g,c=Object.assign({},(e=this.videoSecondaryInfoRenderer)==null?void 0:(g=e.metadataRowContainer)==null?void 0:g.metadataRowContainerRenderer);if(c&&c.rows&&c.collapsedItemCount!==void 0&&!(c.rows.length<=c.collapsedItemCount))return c.rows=c.rows.slice(c.collapsedItemCount),c.collapsedItemCount=0,c}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var e,g,c=Object.assign({},(e=this.videoSecondaryInfoRenderer)==null?void 0:(g=e.metadataRowContainer)==null?void 0:g.metadataRowContainerRenderer);if(c&&c.rows&&c.collapsedItemCount!==void 0)return c.rows=c.rows.slice(0,c.collapsedItemCount),c.collapsedItemCount=c.rows.length,c}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var e,g;return!!((e=this.structuredDescriptionContentRendererComputed)==null?0:(g=e.items)==null?0:g.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var e;return(e=this.videoSecondaryInfoRenderer)==null?void 0:e.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((e=this.videoSecondaryInfoRenderer)==null?0:(g=e.owner)==null?0:(c=g.videoOwnerRenderer)==null?0:c.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var e,g,c,k;return!!((e=this.videoPrimaryInfoRenderer)==null?0:(g=e.videoActions)==null?0:(c=g.menuRenderer)==null?0:(k=c.flexibleItems)==null?0:k.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.jU(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.jU(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var e=this;if(_.G("web_title_hashtag_grey_delinkified")){var g,c=_.n0.unsafeClone((g=this.videoPrimaryInfoRenderer)==null?void 0:g.title);(g=c==null?void 0:c.runs)&&g.forEach(function(k){if(k==null?0:k.navigationEndpoint)k.textColor=4284506208,e.isDark&&(k.textColor=4289374890)});
return c}return(c=this.videoPrimaryInfoRenderer)==null?void 0:c.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.G("web_title_hashtag_black_delinkified")||_.G("web_title_hashtag_grey_delinkified")}}});
QX.prototype.updateHoverColor=QX.prototype.updateHoverColor;QX.prototype.parseColorSamplingData=QX.prototype.parseColorSamplingData;QX.prototype.resetDescriptionState=QX.prototype.resetDescriptionState;QX.prototype.registerPanel=QX.prototype.registerPanel;QX.prototype.onYtExpanderLessTapped=QX.prototype.onYtExpanderLessTapped;QX.prototype.onYtExpanderMoreTapped=QX.prototype.onYtExpanderMoreTapped;QX.prototype.onRenderStamperFinished=QX.prototype.onRenderStamperFinished;
QX.prototype.onYtTextInlineExpanderExpandedChanged=QX.prototype.onYtTextInlineExpanderExpandedChanged;QX.prototype.onYtTextInlineExpanderCollapseClicked=QX.prototype.onYtTextInlineExpanderCollapseClicked;QX.prototype.onYtTextInlineExpanderExpandClicked=QX.prototype.onYtTextInlineExpanderExpandClicked;QX.prototype.moveActionsElement=QX.prototype.moveActionsElement;QX.prototype.updateTopLevelIconsOnly=QX.prototype.updateTopLevelIconsOnly;QX.prototype.structuredDescriptionContentRendererChanged=QX.prototype.structuredDescriptionContentRendererChanged;
QX.prototype.videoSecondaryInfoRendererChanged=QX.prototype.videoSecondaryInfoRendererChanged;QX.prototype.videoPrimaryInfoRendererChanged=QX.prototype.videoPrimaryInfoRendererChanged;QX.prototype.maybeUpdateActionsOnSeparateLine=QX.prototype.maybeUpdateActionsOnSeparateLine;QX.prototype.updateOwnerAndDescriptionPosition=QX.prototype.updateOwnerAndDescriptionPosition;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],QX.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],QX.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],QX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],QX.prototype,"ytdReduxBehavior",void 0);
_.t([_.Cs("#above-the-fold"),_.B("design:type",HTMLElement)],QX.prototype,"aboveTheFoldContainer",void 0);_.t([_.Cs("#menu ytd-menu-renderer"),_.B("design:type",Object)],QX.prototype,"menu",void 0);_.t([_.Cs("#description-inline-expander"),_.B("design:type",Object)],QX.prototype,"descriptionInlineExpander",void 0);_.t([_.Cs("#faded-structured-description"),_.B("design:type",Object)],QX.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);
_.t([_.Cs("#structured-description"),_.B("design:type",Object)],QX.prototype,"structuredDescriptionContentRendererElement",void 0);_.t([_.Cs("#title"),_.B("design:type",HTMLElement)],QX.prototype,"titleElement",void 0);_.t([_.Cs("#description"),_.B("design:type",HTMLElement)],QX.prototype,"descriptionElement",void 0);_.t([_.Cs("#description-interaction"),_.B("design:type",Object)],QX.prototype,"descriptionInteraction",void 0);
_.t([_.Cs("#owner"),_.B("design:type",HTMLElement)],QX.prototype,"ownerElement",void 0);_.t([_.Cs("#top-row"),_.B("design:type",HTMLElement)],QX.prototype,"topRowElement",void 0);_.t([_.Cs("#bottom-row"),_.B("design:type",HTMLElement)],QX.prototype,"bottomRowElement",void 0);_.t([_.Cs("#actions"),_.B("design:type",HTMLElement)],QX.prototype,"actionsElement",void 0);_.t([_.Cs("#bottom-actions"),_.B("design:type",HTMLElement)],QX.prototype,"bottomActionsElement",void 0);
_.t([_.Cs("#ytd-watch-info-text"),_.B("design:type",Object)],QX.prototype,"watchInfoTextElement",void 0);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"videoPrimaryInfoRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"videoSecondaryInfoRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"commentsEntryPointHeaderRenderer",void 0);
_.t([_.u(),_.B("design:type",Object)],QX.prototype,"videoMetadataCarousel",void 0);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"structuredDescriptionContentRenderer",void 0);_.t([_.p("structuredDescriptionContentRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"structuredDescriptionContentRendererComputed",null);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"videoSummary",void 0);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"merchShelf",void 0);
_.t([_.u(),_.B("design:type",Object)],QX.prototype,"infoPanelBelowMetadata",void 0);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"hoverColor",void 0);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"hoverText",void 0);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"isHovering",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"enableColorSampling",void 0);
_.t([_.p("structuredDescriptionContentRendererComputed"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"productShelf",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"metadataBadgesInDescription",void 0);_.t([_.p("videoPrimaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"shouldHideBadges",null);
_.t([_.p("productShelf","descriptionCollapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QX.prototype,"shouldShowProductShelf",null);_.t([_.u(),_.B("design:type",Boolean)],QX.prototype,"isWatchFlexy",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"descriptionCollapsed",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],QX.prototype,"useFadedScrimDescription",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"skinnyMode",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("videoSecondaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"largerItemWrap",null);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"playlist",void 0);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"clarifyBox",void 0);_.t([_.u(),_.B("design:type",Object)],QX.prototype,"playerAds",void 0);
_.t([_.u(),_.B("design:type",Boolean)],QX.prototype,"isDark",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],QX.prototype,"actionsOnSeparateLine",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"disableVideoOwnerOnTap",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"swatcherooDelayLoad",void 0);_.t([_.u(),_.B("design:type",Boolean)],QX.prototype,"suppressTopLevelMetadataRows",void 0);
_.t([_.u(),_.B("design:type",Object)],QX.prototype,"primaryMenuWidth",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"videoId",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"titleHeadlineXs",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"titleHeadlineS",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"titleHeadlineM",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"titleHashtagBlackLinkified",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"titleHashtagGreyLinkified",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.t([_.k_("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"updateOwnerAndDescriptionPosition",null);
_.t([_.k_("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"maybeUpdateActionsOnSeparateLine",null);_.t([_.p("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"descriptionText",null);
_.t([_.p("videoSecondaryInfoRenderer.headerRuns"),_.B("design:type",Array),_.B("design:paramtypes",[])],QX.prototype,"headerRuns",null);_.t([_.u({value:!1}),_.p("commentsEntryPointHeaderRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"hasTeaser",null);_.t([_.u({value:!1,reflectToAttribute:!0}),_.p("videoMetadataCarousel"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"hasTeaserCarousel",null);
_.t([_.u({value:3}),_.p("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"descriptionMaxLines",null);_.t([_.p("videoSecondaryInfoRenderer.metadataRowContainer"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"collapsibleMetadataRows",null);
_.t([_.p("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"alwaysVisibleMetadataRows",null);_.t([_.p("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QX.prototype,"hasInlineStructuredDescription",null);
_.t([_.p("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QX.prototype,"showInlineStructuredDescription",null);_.t([_.p("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"descriptionExpandCommand",null);
_.t([_.p("videoSecondaryInfoRenderer.owner"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"videoOwnerCommand",null);_.t([_.u({reflectToAttribute:!0}),_.p("videoPrimaryInfoRenderer.videoActions"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QX.prototype,"flexMenuEnabled",null);_.t([_.u({selector:_.RH,reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"isFullscreen",void 0);
_.t([_.u({selector:_.nx,reflectToAttribute:!0}),_.B("design:type",Object)],QX.prototype,"isTheaterMode",void 0);_.t([_.p("descriptionText","useFadedScrimDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QX.prototype,"showAttributedStringDescription",null);_.t([_.p("descriptionText","useFadedScrimDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QX.prototype,"showFormattedStringDescription",null);
_.t([_.p("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QX.prototype,"showFadedStructuredDescription",null);_.t([_.k_("videoPrimaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"videoPrimaryInfoRendererChanged",null);_.t([_.p("videoPrimaryInfoRenderer.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"videoTitle",null);
_.t([_.p("videoPrimaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],QX.prototype,"noEndpoints",null);_.t([_.k_("videoSecondaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"videoSecondaryInfoRendererChanged",null);
_.t([_.OY("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"structuredDescriptionContentRendererChanged",null);_.t([_.OY("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"updateTopLevelIconsOnly",null);
_.t([_.OY("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"moveActionsElement",null);_.t([_.Ks("yt-text-inline-expander-expand-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.t([_.Ks("yt-text-inline-expander-collapse-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.t([_.Ks("yt-text-inline-expander-expanded-changed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],QX.prototype,"onRenderStamperFinished",null);_.t([_.Ks("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"onYtExpanderMoreTapped",null);_.t([_.Ks("yt-expander-less-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"onYtExpanderLessTapped",null);
_.t([_.OY("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"registerPanel",null);_.t([_.OY("videoSecondaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"resetDescriptionState",null);
_.t([_.OY("structuredDescriptionContentRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"parseColorSamplingData",null);_.t([_.OY("hoverColor","isDark"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QX.prototype,"updateHoverColor",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-watch-metadata"})],QX);
_.U(QX,"ytd-watch-metadata",function(){if(KJS!==void 0)return KJS;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return KJS=e},{mode:2});var U3=function(){var e=_.z.apply(this,arguments)||this;e.hidden=!1;e.errorScreen=null;e.playlistData={};return e};
_.Y(U3,_.z);_.v=U3.prototype;_.v.getPlayer=function(){return this.ytdPlayer};
_.v.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:n9(["aa","eocs"])}}};
_.v.onActiveChanged=function(){_.Tt().dispatch(tRD(this.ytPageBehavior.active))};
_.v.playerDataChanged=function(){var e;(e=this.watchController)==null||e.setPlayerResponse(this.playerData)};
_.v.dataChanged=function(){var e;(e=this.watchController)==null||e.setWatchNextResponse(this.data)};
_.v.sizeChanged=function(){var e,g;(g=(e=this.metadata).resize)==null||g.call(e)};
_.v.attached=function(){this.watchController=new sp(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.v.detached=function(){_.Fm(this.watchController);this.watchController=void 0};
_.v.getPlayerContainer=function(){return this.playerContainer};
_.v.getElement=function(e){switch(e){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.v.provideRenderingData=function(e,g){switch(e){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=g;break;case "ERROR_SCREEN":this.errorScreen=g!=null?g:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=g;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=g;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=g;break;case "RICH_METADATA":this.richMetadataRowContainer=g;break;case "CLARIFICATION":this.clarificationData=g;break;case "PLAYLIST":this.playlistData=
g!=null?g:{};break;case "MERCH_SHELF":this.merchShelf=g;break;case "TICKET_SHELF":this.ticketShelf=g;break;case "LIMITED_STATE":this.limitedState=g;break;case "DONATION_SHELF":this.donationShelf=g;break;case "ALERTS":this.alerts=g}};
_.Bd.Object.defineProperties(U3.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return!this.hidden&&!!((e=this.data)==null?0:(g=e.contents)==null?0:(c=g.twoColumnWatchNextResults)==null?0:c.conversationBar)}}});
U3.prototype.sizeChanged=U3.prototype.sizeChanged;U3.prototype.dataChanged=U3.prototype.dataChanged;U3.prototype.playerDataChanged=U3.prototype.playerDataChanged;U3.prototype.onActiveChanged=U3.prototype.onActiveChanged;_.t([_.m(ej.YtPageBehavior),_.B("design:type",Object)],U3.prototype,"ytPageBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],U3.prototype,"ytComponentBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],U3.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"playerData",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],U3.prototype,"hidden",void 0);_.t([_.Cs("#ytd-player"),_.B("design:type",HTMLElement)],U3.prototype,"ytdPlayer",void 0);_.t([_.Cs("#player-container"),_.B("design:type",HTMLElement)],U3.prototype,"playerContainer",void 0);_.t([_.Cs("#metadata"),_.B("design:type",Object)],U3.prototype,"metadata",void 0);_.t([_.Cs("#playlist"),_.B("design:type",HTMLElement)],U3.prototype,"playlistPanel",void 0);
_.t([_.u({selector:JwM,reflectToAttribute:!0}),_.B("design:type",Object)],U3.prototype,"fixie",void 0);_.t([_.u({selector:_.f_W,reflectToAttribute:!0}),_.B("design:type",Object)],U3.prototype,"singleColumn",void 0);_.t([_.u({selector:function(e){return _.nx(e)&&!_.RH(e)},
reflectToAttribute:!0}),_.B("design:type",Object)],U3.prototype,"theater",void 0);_.t([_.u({selector:_.RH,reflectToAttribute:!0}),_.B("design:type",Object)],U3.prototype,"fullscreen",void 0);_.t([_.u({selector:IYo}),_.B("design:type",Object)],U3.prototype,"windowSize",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"singleColumnContents",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"errorScreen",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"playlistData",void 0);
_.t([_.u(),_.B("design:type",Object)],U3.prototype,"videoPrimaryInfoRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"videoSecondaryInfoRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"richMetadataRowContainer",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"clarificationData",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"commentsEntryPointHeaderRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"ticketShelf",void 0);
_.t([_.u(),_.B("design:type",Object)],U3.prototype,"merchShelf",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"donationShelf",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"limitedState",void 0);_.t([_.u(),_.B("design:type",Object)],U3.prototype,"alerts",void 0);_.t([_.p("playlistData"),_.B("design:type",Object),_.B("design:paramtypes",[])],U3.prototype,"hasPlaylistData",null);
_.t([_.p("data","hidden"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],U3.prototype,"hasChat",null);_.t([_.OY("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U3.prototype,"onActiveChanged",null);_.t([_.OY("playerData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U3.prototype,"playerDataChanged",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U3.prototype,"dataChanged",null);_.t([_.OY("windowSize","singleColumn"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U3.prototype,"sizeChanged",null);
_.U(U3,"ytd-watch-fixie",function(){if(jiz===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);jiz=e}e=jiz;return e},{mode:1});var v6O;var or=function(){var e=_.z.apply(this,arguments)||this;e.viewTransitionEnabled=_.G("enable_player_resize_transition");e.smallerChatMinHeight=_.G("live_chat_smaller_min_height");e.isDarkTheme=document.documentElement.hasAttribute("dark");e.defaultCollapsePlaylist=_.G("web_watch_default_collapse_playlist");e.respectAspectRatio=_.G("web_enable_aspect_ratio_fix");e.retroModeReduxValue=!1;e.persistentPanelVisibleValue=!1;return e};
_.Y(or,_.z);_.v=or.prototype;_.v.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.v.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.v.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.v.updateRetroModeReduxValue=function(){_.G("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.v.updatePersistentPanelVisibleValue=function(){_.G("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.v.ready=function(){var e=this,g=function(){e.onColumnScroll()};
this.primary.addEventListener("scroll",g);this.secondary.addEventListener("scroll",g)};
_.v.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.v.updateIsTwoColumnsFromBinding=function(e){_.G("web_watch_update_narrow_width_killswitch")||_.Tt().dispatch(BhQ(!e.detail.value));this.ytdWatchBehavior.isTwoColumns_=e.detail.value};
_.v.updateFlexySmallWindowFromBinding=function(e){this.ytdWatchBehavior.flexySmallWindow_=e.detail.value};
_.v.updateFlexyLargeWindowFromBinding=function(e){this.ytdWatchBehavior.flexyLargeWindow_=e.detail.value};
_.v.updateWatchWhileWindowSizeSufficientFromBinding=function(e){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=e.detail.value};
_.v.updateWatchNextCanShowMoreFromBinding=function(e){this.ytdWatchBehavior.watchNextCanShowMore=e.detail.value};
_.v.updateShownItemsFromBinding=function(e){e.detail.path?this.set(e.detail.path,e.detail.value):this.ytdWatchBehavior.watchNextShownItems=e.detail.value};
_.v.getElement=function(e){switch(e){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22217_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22217_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.Bd.Object.defineProperties(or.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.pageVisualEffects)return!1;for(var g=0;g<this.data.pageVisualEffects.length;g++)if(e=_.x(this.data.pageVisualEffects[g],nN))return g=void 0,(g=e.config)==null?void 0:g.enableInLightTheme;return!1}}});
_.Bd.Object.defineProperties(or,{template:{configurable:!0,enumerable:!0,get:function(){if(v6O===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);v6O=e}e=v6O;return e}}});
or.prototype.updatePersistentPanelVisibleValue=or.prototype.updatePersistentPanelVisibleValue;or.prototype.updateRetroModeReduxValue=or.prototype.updateRetroModeReduxValue;or.prototype.updateScrollTopValue=or.prototype.updateScrollTopValue;or.prototype.updateFullscreenValue=or.prototype.updateFullscreenValue;or.prototype.updateTheaterValue=or.prototype.updateTheaterValue;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],or.prototype,"ytComponentBehavior",void 0);_.t([_.m($Ag.YtdWatchBehavior),_.B("design:type",Object)],or.prototype,"ytdWatchBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],or.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],or.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],or.prototype,"playerData",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],or.prototype,"viewTransitionEnabled",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],or.prototype,"smallerChatMinHeight",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],or.prototype,"isDarkTheme",void 0);_.t([_.u(),_.B("design:type",Object)],or.prototype,"defaultCollapsePlaylist",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],or.prototype,"respectAspectRatio",void 0);
_.t([_.u({selector:_.nx}),_.B("design:type",Object)],or.prototype,"theaterValue",void 0);_.t([_.u({selector:_.RH}),_.B("design:type",Object)],or.prototype,"fullscreenValue",void 0);_.t([_.u({selector:KR}),_.B("design:type",Object)],or.prototype,"scrollTopValue",void 0);_.t([_.u({selector:_.Eo}),_.B("design:type",Object)],or.prototype,"miniplayerIsActive",void 0);_.t([_.u({selector:function(e){return e.watch.isWatchRetroMode}}),
_.B("design:type",Object)],or.prototype,"retroModeReduxValue",void 0);_.t([_.u({selector:_.Yu.persistentPanelVisibleSelector}),_.B("design:type",Object)],or.prototype,"persistentPanelVisibleValue",void 0);_.t([yH("ytd-player"),_.B("design:type",HTMLElement)],or.prototype,"ytdPlayer",void 0);_.t([_.Cs("#playlist"),_.B("design:type",HTMLElement)],or.prototype,"JSC$22217_ytdPlaylistPanelRenderer",void 0);_.t([yH("ytd-comments"),_.B("design:type",HTMLElement)],or.prototype,"ytdComments",void 0);
_.t([_.Cs("#primary"),_.B("design:type",HTMLElement)],or.prototype,"primary",void 0);_.t([_.Cs("#secondary"),_.B("design:type",HTMLElement)],or.prototype,"secondary",void 0);_.t([_.Cs("#player-container"),_.B("design:type",HTMLElement)],or.prototype,"playerContainer",void 0);_.t([_.Cs("#below"),_.B("design:type",HTMLElement)],or.prototype,"below",void 0);_.t([_.Cs("#cinematics"),_.B("design:type",HTMLElement)],or.prototype,"JSC$22217_cinematics",void 0);
_.t([_.Cs("#persistent-panel-container"),_.B("design:type",HTMLElement)],or.prototype,"persistentPanelContainer",void 0);_.t([_.OY("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],or.prototype,"updateTheaterValue",null);_.t([_.OY("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],or.prototype,"updateFullscreenValue",null);
_.t([_.OY("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],or.prototype,"updateScrollTopValue",null);_.t([_.OY("retroModeReduxValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],or.prototype,"updateRetroModeReduxValue",null);_.t([_.OY("persistentPanelVisibleValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],or.prototype,"updatePersistentPanelVisibleValue",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],or.prototype,"cinematicLightTheme",null);_.t([_.bF({is:"ytd-watch-flexy"})],or);var wBS;var q6S;var LS0=function(){return _.z.apply(this,arguments)||this};
_.Y(LS0,_.z);_.t([_.bF({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],LS0);
_.U(LS0,"ytd-ghost-comments-renderer",function(){if(q6S===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);q6S=e}e=q6S;return e},{mode:1});var rNS;var anM=function(){return _.z.apply(this,arguments)||this};
_.Y(anM,_.z);_.t([_.bF({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],anM);
_.U(anM,"ytd-ghost-watch-metadata-renderer",function(){if(rNS===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);rNS=e}e=rNS;return e},{mode:1});var Zz=function(){var e=_.z.apply(this,arguments)||this;e.ghostGridRenderer={rows:6};e.smallerChatMinHeight=_.G("live_chat_smaller_min_height");e.darkerPanels=_.G("web_watch_darker_panels");e.isDarkTheme=document.documentElement.hasAttribute("dark");return e};
_.Y(Zz,_.z);_.v=Zz.prototype;_.v.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.v.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.v.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.v.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.v.ready=function(){var e=this,g=function(){e.onColumnScroll()};
this.primary.addEventListener("scroll",g);this.secondary.addEventListener("scroll",g)};
_.v.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.v.updateIsTwoColumnsFromBinding=function(e){this.ytdWatchBehavior.isTwoColumns_=e.detail.value};
_.v.updateFlexySmallWindowFromBinding=function(e){this.ytdWatchBehavior.flexySmallWindow_=e.detail.value};
_.v.updateFlexyLargeWindowFromBinding=function(e){this.ytdWatchBehavior.flexyLargeWindow_=e.detail.value};
_.v.updateWatchWhileWindowSizeSufficientFromBinding=function(e){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=e.detail.value};
_.v.updateWatchNextCanShowMoreFromBinding=function(e){this.ytdWatchBehavior.watchNextCanShowMore=e.detail.value};
_.v.updateShownItemsFromBinding=function(e){_.G("swatcheroo_direct_use_rich_grid")||(e.detail.path?this.set(e.detail.path,e.detail.value):this.ytdWatchBehavior.watchNextShownItems=e.detail.value)};
_.v.getElement=function(e){switch(e){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22222_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22222_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Bd.Object.defineProperties(Zz.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.pageVisualEffects)return!1;for(var g=0;g<this.data.pageVisualEffects.length;g++)if(e=_.x(this.data.pageVisualEffects[g],nN))return g=void 0,(g=e.config)==null?void 0:g.enableInLightTheme;return!1}}});
Zz.prototype.updateMiniplayerIsActiveValue=Zz.prototype.updateMiniplayerIsActiveValue;Zz.prototype.updateScrollTopValue=Zz.prototype.updateScrollTopValue;Zz.prototype.updateFullscreenValue=Zz.prototype.updateFullscreenValue;Zz.prototype.updateTheaterValue=Zz.prototype.updateTheaterValue;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Zz.prototype,"ytComponentBehavior",void 0);
_.t([_.m($Ag.YtdWatchBehavior),_.B("design:type",Object)],Zz.prototype,"ytdWatchBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Zz.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Zz.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Zz.prototype,"ghostGridRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],Zz.prototype,"playerData",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Zz.prototype,"smallerChatMinHeight",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Zz.prototype,"darkerPanels",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Zz.prototype,"isDarkTheme",void 0);_.t([_.u({selector:_.nx}),_.B("design:type",Object)],Zz.prototype,"theaterValue",void 0);_.t([_.u({selector:_.RH}),_.B("design:type",Object)],Zz.prototype,"fullscreenValue",void 0);_.t([_.u({selector:KR}),_.B("design:type",Object)],Zz.prototype,"scrollTopValue",void 0);
_.t([_.u({selector:_.Eo}),_.B("design:type",Object)],Zz.prototype,"miniplayerIsActiveValue",void 0);_.t([_.Cs("#ytd-player"),_.B("design:type",HTMLElement)],Zz.prototype,"ytdPlayer",void 0);_.t([_.Cs("#playlist"),_.B("design:type",HTMLElement)],Zz.prototype,"JSC$22222_ytdPlaylistPanelRenderer",void 0);_.t([_.Cs("#ytd-comments"),_.B("design:type",HTMLElement)],Zz.prototype,"ytdComments",void 0);_.t([_.Cs("#primary"),_.B("design:type",HTMLElement)],Zz.prototype,"primary",void 0);
_.t([_.Cs("#secondary"),_.B("design:type",HTMLElement)],Zz.prototype,"secondary",void 0);_.t([_.Cs("#player-container"),_.B("design:type",HTMLElement)],Zz.prototype,"playerContainer",void 0);_.t([_.Cs("#cinematics"),_.B("design:type",HTMLElement)],Zz.prototype,"JSC$22222_cinematics",void 0);_.t([_.OY("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zz.prototype,"updateTheaterValue",null);
_.t([_.OY("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zz.prototype,"updateFullscreenValue",null);_.t([_.OY("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zz.prototype,"updateScrollTopValue",null);_.t([_.OY("miniplayerIsActiveValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zz.prototype,"updateMiniplayerIsActiveValue",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Zz.prototype,"cinematicLightTheme",null);
_.U(Zz,"ytd-watch-grid",function(){if(wBS===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);wBS=e}e=wBS;return e},{mode:2});var n6Q;var VX=function(){var e=_.z.apply(this,arguments)||this;e.flexy=!0;e.learningJourney=!0;e.viewTransitionEnabled=_.G("enable_player_resize_transition");e.smallerChatMinHeight=_.G("live_chat_smaller_min_height");e.isDarkTheme=document.documentElement.hasAttribute("dark");e.theaterLargerPlayer=_.G("web_watch_theater_larger_player");e.defaultCollapsePlaylist=_.G("web_watch_default_collapse_playlist");e.enableCanvasLayout=_.G("web_enable_canvas_on_learning_journey");return e};
_.Y(VX,_.z);_.v=VX.prototype;_.v.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.v.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.v.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.v.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.v.ready=function(){var e=this,g=function(){e.onColumnScroll()};
this.primary.addEventListener("scroll",g);this.secondary.addEventListener("scroll",g)};
_.v.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.v.updateIsTwoColumnsFromBinding=function(e){_.G("web_watch_update_narrow_width_killswitch")||_.Tt().dispatch(BhQ(!e.detail.value));this.ytdWatchBehavior.isTwoColumns_=e.detail.value};
_.v.updateFlexySmallWindowFromBinding=function(e){this.ytdWatchBehavior.flexySmallWindow_=e.detail.value};
_.v.updateFlexyLargeWindowFromBinding=function(e){this.ytdWatchBehavior.flexyLargeWindow_=e.detail.value};
_.v.updateWatchWhileWindowSizeSufficientFromBinding=function(e){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=e.detail.value};
_.v.updateWatchNextCanShowMoreFromBinding=function(e){this.ytdWatchBehavior.watchNextCanShowMore=e.detail.value};
_.v.updateShownItemsFromBinding=function(e){e.detail.path?this.set(e.detail.path,e.detail.value):this.ytdWatchBehavior.watchNextShownItems=e.detail.value};
_.v.getElement=function(e){switch(e){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22225_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22225_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Bd.Object.defineProperties(VX.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.pageVisualEffects)return!1;for(var g=0;g<this.data.pageVisualEffects.length;g++)if(e=_.x(this.data.pageVisualEffects[g],nN))return g=void 0,(g=e.config)==null?void 0:g.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.learningJourneyEngagementPanels)==null?void 0:e.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var e,g=(e=this.learningJourneyEngagementPanels)==null?void 0:e.find(function(h){var X;return(h==null?void 0:(X=h.engagementPanelSectionListRenderer)==null?void 0:X.panelIdentifier)==="learning-journey-engagement-panel"});
if(g){var c,k,I,J,q,L,n,R,W;if(e=(R=((n=(q=((J=g==null?void 0:(c=g.engagementPanelSectionListRenderer)==null?void 0:(k=c.content)==null?void 0:(I=k.sectionListRenderer)==null?void 0:I.contents)!=null?J:[])[0])==null?void 0:(L=q.itemSectionRenderer)==null?void 0:L.contents)!=null?n:[])[0])==null?void 0:(W=R.accordionViewModel)==null?void 0:W.onTitleTap){var b=_.WT(e);if(b)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.yJ.instance.resolveCommand(b)}}}}}}});
_.Bd.Object.defineProperties(VX,{template:{configurable:!0,enumerable:!0,get:function(){if(n6Q===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);n6Q=e}e=n6Q;return e}}});
VX.prototype.updateMiniplayerIsActiveValue=VX.prototype.updateMiniplayerIsActiveValue;VX.prototype.updateScrollTopValue=VX.prototype.updateScrollTopValue;VX.prototype.updateFullscreenValue=VX.prototype.updateFullscreenValue;VX.prototype.updateTheaterValue=VX.prototype.updateTheaterValue;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],VX.prototype,"ytComponentBehavior",void 0);
_.t([_.m(eIg.YtdLearningJourneyWatchBehavior),_.B("design:type",Object)],VX.prototype,"ytdWatchBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],VX.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],VX.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],VX.prototype,"playerData",void 0);_.t([_.u(),_.B("design:type",Object)],VX.prototype,"browseData",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],VX.prototype,"flexy",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],VX.prototype,"learningJourney",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],VX.prototype,"viewTransitionEnabled",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],VX.prototype,"smallerChatMinHeight",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],VX.prototype,"isDarkTheme",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],VX.prototype,"theaterLargerPlayer",void 0);_.t([_.u(),_.B("design:type",Object)],VX.prototype,"defaultCollapsePlaylist",void 0);_.t([_.u(),_.B("design:type",Object)],VX.prototype,"enableCanvasLayout",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("playerData","browseData","enableCanvasLayout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],VX.prototype,"showBrowseResponse",null);
_.t([_.u({reflectToAttribute:!0}),_.p("playerData","enableCanvasLayout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],VX.prototype,"showWatchResponse",null);_.t([_.u({selector:_.nx}),_.B("design:type",Object)],VX.prototype,"theaterValue",void 0);_.t([_.u({selector:_.RH}),_.B("design:type",Object)],VX.prototype,"fullscreenValue",void 0);_.t([_.u({selector:KR}),_.B("design:type",Object)],VX.prototype,"scrollTopValue",void 0);
_.t([_.u({selector:_.Eo}),_.B("design:type",Object)],VX.prototype,"miniplayerIsActiveValue",void 0);_.t([_.Cs("#ytd-plj-player"),_.B("design:type",HTMLElement)],VX.prototype,"ytdPlayer",void 0);_.t([_.Cs("#playlist"),_.B("design:type",HTMLElement)],VX.prototype,"JSC$22225_ytdPlaylistPanelRenderer",void 0);_.t([yH("ytd-comments"),_.B("design:type",HTMLElement)],VX.prototype,"ytdComments",void 0);_.t([_.Cs("#primary"),_.B("design:type",HTMLElement)],VX.prototype,"primary",void 0);
_.t([_.Cs("#secondary"),_.B("design:type",HTMLElement)],VX.prototype,"secondary",void 0);_.t([_.Cs("#player-container"),_.B("design:type",HTMLElement)],VX.prototype,"playerContainer",void 0);_.t([_.Cs("#cinematics"),_.B("design:type",HTMLElement)],VX.prototype,"JSC$22225_cinematics",void 0);_.t([_.OY("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VX.prototype,"updateTheaterValue",null);
_.t([_.OY("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VX.prototype,"updateFullscreenValue",null);_.t([_.OY("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VX.prototype,"updateScrollTopValue",null);_.t([_.OY("miniplayerIsActiveValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VX.prototype,"updateMiniplayerIsActiveValue",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],VX.prototype,"cinematicLightTheme",null);_.t([_.u({reflectToAttribute:!0}),_.p("learningJourneyEngagementPanels"),_.B("design:type",Object),_.B("design:paramtypes",[])],VX.prototype,"hasLearningJourneyPanels",null);_.t([_.p("learningJourneyEngagementPanels"),_.B("design:type",Object),_.B("design:paramtypes",[])],VX.prototype,"backButtonData",null);_.t([_.bF({is:"ytd-watch-learning-journey"})],VX);var Riz;var tl=function(){var e=_.z.apply(this,arguments)||this;e.systemIcons=_.G("kevlar_system_icons");return e};
_.Y(tl,_.z);_.v=tl.prototype;_.v.ready=function(){this.hostElement.addEventListener("tap",_.yg(this,this.onEndpointTapExtra))};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.v.onFocus=function(){var e;(e=_.o1(this.hostElement).querySelector("tp-yt-paper-item"))==null||e.focus()};
_.v.onEndpointTapExtra=function(e){_.oC(this.hostElement,"iron-activate");var g=this.data.navigationEndpoint;g&&_.x(g,_.BtU)&&(e.stopPropagation(),_.Bm(this.hostElement,[g],this.hostElement))};
_.v.computeIcon=function(e){return e&&e.iconType?_.NY(e.iconType):""};
_.v.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.v.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.v.forceUpdateStylesOnLegacyBrowsers=function(){_.G("kevlar_legacy_browsers")&&_.Nk(this.hostElement)};
tl.prototype.forceUpdateStylesOnLegacyBrowsers=tl.prototype.forceUpdateStylesOnLegacyBrowsers;tl.prototype.onFocus=tl.prototype.onFocus;_.t([_.m(_.sJ),_.B("design:type",Object)],tl.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.RLg.YtConditionalRendererBehavior),_.B("design:type",Object)],tl.prototype,"ytConditionalRendererBehavior",void 0);_.t([_.m(_.B$.YtEndpointBehavior),_.B("design:type",Object)],tl.prototype,"ytEndpointBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],tl.prototype,"data",void 0);_.t([_.u({computed:"computeIcon(data.icon)",value:""}),_.B("design:type",String)],tl.prototype,"icon",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],tl.prototype,"useIcons",void 0);_.t([_.u({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Boolean)],tl.prototype,"hasSeparator",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],tl.prototype,"systemIcons",void 0);_.t([_.Ks("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tl.prototype,"onFocus",null);_.t([_.OY("useIcons","hasSeparator"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tl.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.U(tl,"ytd-menu-navigation-item-renderer",function(){if(Riz===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);Riz=e}e=Riz;return e},{mode:1});var E6o;var WSx=_.PL(_.C_("DOWNLOAD",{},"Download")),bFv=_.PL(_.C_("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),hij=_.PL(_.C_("RETRY",{},"Retry")),XB7=_.PL(_.C_("PAUSE_DOWNLOADING",{},"Pause downloading")),Gwz=_.PL(_.C_("RESUME_DOWNLOAD",{},"Resume download")),Bs=function(){var e=_.z.apply(this,arguments)||this;e.primaryText=WSx;e.primaryIconType="OFFLINE_DOWNLOAD";e.hasSecondaryContent=!1;e.hasSeparator=!1;e.transferState="TRANSFER_STATE_UNKNOWN";e.isVideoDeletedByUser=!1;e.isHidden=!1;e.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return e};
_.Y(Bs,_.z);_.v=Bs.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.v.onFocus=function(){this.primaryEntry.focus()};
_.v.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.v.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.v.getRemoveAction=function(){return"ACTION_REMOVE"};
_.v.sendOfflineAction=function(e){var g=this.data.serviceEndpoint;if(g){var c=_.x(g,_.yF);c&&e&&(c.action=e);this.ytComponentBehavior.resolveCommand(g)}};
_.v.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=WSx,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=WSx;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=hij;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=bFv;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=Gwz;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=bFv;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
XB7;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=bFv;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=bFv;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=WSx,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.v.showHideButton=function(){var e;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((e=this.playerStateEntity)==null?void 0:e.adsState)==="ADS_STATE_PLAYING"};
_.v.isSecondaryEntryHidden=function(e,g){return e?!0:!g};
_.v.computeHasSeparator=function(){var e;return!((e=this.data)==null||!e.hasSeparator)};
_.v.computePlayerStateEntityKey=function(e){return e};
Bs.prototype.showHideButton=Bs.prototype.showHideButton;Bs.prototype.onTransferStateChange=Bs.prototype.onTransferStateChange;Bs.prototype.onFocus=Bs.prototype.onFocus;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Bs.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Bs.prototype,"ytComponentBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],Bs.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Bs.prototype,"primaryText",void 0);_.t([_.u(),_.B("design:type",String)],Bs.prototype,"primaryIconType",void 0);_.t([_.u(),_.B("design:type",String)],Bs.prototype,"primaryAction",void 0);_.t([_.u(),_.B("design:type",Object)],Bs.prototype,"secondaryText",void 0);_.t([_.u(),_.B("design:type",String)],Bs.prototype,"secondaryIconType",void 0);
_.t([_.u(),_.B("design:type",String)],Bs.prototype,"secondaryAction",void 0);_.t([_.u(),_.B("design:type",Object)],Bs.prototype,"hasSecondaryContent",void 0);_.t([_.u({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Object)],Bs.prototype,"hasSeparator",void 0);_.t([_.u({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.B("design:type",String)],Bs.prototype,"playerStateEntityKey",void 0);
_.t([_.u({selector:_.Zi,selectorArgs:["playerStateEntityKey"]}),_.B("design:type",Object)],Bs.prototype,"playerStateEntity",void 0);_.t([_.u({selector:_.hw,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",String)],Bs.prototype,"transferState",void 0);_.t([_.u({selector:_.yzv,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",Object)],Bs.prototype,"isVideoDeletedByUser",void 0);
_.t([_.u(),_.B("design:type",Object)],Bs.prototype,"isHidden",void 0);_.t([_.u({selector:_.osq,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",Object)],Bs.prototype,"offlineabilityState",void 0);_.t([_.Cs("#primary-entry"),_.B("design:type",Object)],Bs.prototype,"primaryEntry",void 0);_.t([_.Ks("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bs.prototype,"onFocus",null);
_.t([_.k_("transferState","isVideoDeletedByUser"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bs.prototype,"onTransferStateChange",null);_.t([_.k_("offlineabilityState","playerStateEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bs.prototype,"showHideButton",null);
_.U(Bs,"ytd-menu-service-item-download-renderer",function(){if(E6o===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);E6o=e}e=E6o;return e},{mode:1});var xSz;var NA=function(){var e=_.z.apply(this,arguments)||this;e.useIcons=!1;e.systemIcons=_.G("kevlar_system_icons");return e};
_.Y(NA,_.z);_.v=NA.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.v.onFocus=function(){var e;(e=_.o1(this.hostElement).querySelector("tp-yt-paper-item"))==null||e.focus()};
_.v.onTap=function(){_.V1(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var e=this.data.serviceEndpoint,g=this.data.command;if(e){var c,k=(c=this.data)==null?void 0:c.trackingParams;c=!!_.x(e,_.Vxq);k&&c&&_.Tt().dispatch(_.Hh({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:k}}));this.ytComponentBehavior.resolveCommand(e)||_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}})}g&&(this.ytComponentBehavior.resolveCommand(g)||_.Bm(this.hostElement,
[g],this.hostElement))};
_.v.computeIcon=function(e){return e&&e.iconType?_.NY(e.iconType):""};
_.v.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.v.computeHasSeparator=function(){var e;return!((e=this.data)==null||!e.hasSeparator)};
_.v.forceUpdateStylesOnLegacyBrowsers=function(){_.G("kevlar_legacy_browsers")&&_.Nk(this.hostElement)};
_.v.computeIsSelected=function(){var e;return!((e=this.data)==null||!e.isSelected)};
NA.prototype.forceUpdateStylesOnLegacyBrowsers=NA.prototype.forceUpdateStylesOnLegacyBrowsers;NA.prototype.onTap=NA.prototype.onTap;NA.prototype.onFocus=NA.prototype.onFocus;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],NA.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],NA.prototype,"ytComponentBehavior",void 0);
_.t([_.m(_.RLg.YtConditionalRendererBehavior),_.B("design:type",Object)],NA.prototype,"ytConditionalRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],NA.prototype,"data",void 0);_.t([_.u({computed:"computeIcon(data.icon)",value:""}),_.B("design:type",String)],NA.prototype,"icon",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],NA.prototype,"useIcons",void 0);
_.t([_.u({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Boolean)],NA.prototype,"hasSeparator",void 0);_.t([_.u({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.B("design:type",Boolean)],NA.prototype,"isSelected",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],NA.prototype,"systemIcons",void 0);
_.t([_.Ks("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NA.prototype,"onFocus",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],NA.prototype,"onTap",null);_.t([_.OY("useIcons","hasSeparator"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NA.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.U(NA,"ytd-menu-service-item-renderer",function(){if(xSz===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);xSz=e}e=xSz;return e},{mode:2});var DSM;var S2=function(){return _.z.apply(this,arguments)||this};
_.Y(S2,_.z);_.v=S2.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onDataChanged=function(){var e=this;_.Va(this,function(){e.postbox.openDialog();e.focus();_.oC(e.hostElement,"yt-refit")})};
_.v.focus=function(){this.postbox.focus()};
_.v.closePopup=function(){_.Z5(this.hostElement,"yt-close-popup-action")};
_.v.onYtCommentboxDismiss=function(){this.closePopup()};
S2.prototype.onYtCommentboxDismiss=S2.prototype.onYtCommentboxDismiss;S2.prototype.onDataChanged=S2.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],S2.prototype,"data",void 0);_.t([_.u({value:function(){return _.C_("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],S2.prototype,"closeButtonAriaLabel",void 0);_.t([_.Cs("#postbox"),_.B("design:type",Object)],S2.prototype,"postbox",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],S2.prototype,"onDataChanged",null);_.t([_.Ks("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],S2.prototype,"onYtCommentboxDismiss",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],S2);
_.U(S2,"ytd-backstage-post-dialog-popup-renderer",function(){if(DSM!==void 0)return DSM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return DSM=e},{mode:1});var $Sx;var yX=function(){var e=_.z.apply(this,arguments)||this;e.modernModal=!0;return e};
_.Y(yX,_.z);yX.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
yX.prototype.computeShouldHideOldButtons=function(){var e;return!((e=this.data)==null?0:e.button)};
_.Bd.Object.defineProperties(yX.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var e,g;return(e=this.data)==null?void 0:(g=e.button)==null?void 0:g.buttonRenderer}}});
_.t([_.u(),_.B("design:type",Object)],yX.prototype,"data",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],yX.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],yX.prototype,"modernModal",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],yX.prototype,"buttonRendererData",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],yX);
_.U(yX,"ytd-modal-with-title-and-button-renderer",function(){if($Sx!==void 0)return $Sx;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return $Sx=e},{mode:1});var Y6X;var Kk=function(){return _.z.apply(this,arguments)||this};
_.Y(Kk,_.z);Kk.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("page-changed",this.page))};
Kk.prototype.pageChangedForBinding=Kk.prototype.pageChangedForBinding;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Kk.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],Kk.prototype,"page",void 0);_.t([_.OY("page"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kk.prototype,"pageChangedForBinding",null);
_.t([_.bF({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Kk);
_.U(Kk,"ytd-account-item-section-header-renderer",function(){if(Y6X!==void 0)return Y6X;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Y6X=e},{mode:1});var fnv;var O3=function(){return _.z.apply(this,arguments)||this};
_.Y(O3,_.z);O3.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"}}}};
O3.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Tk),_.B("design:type",Object)],O3.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],O3.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!1}),_.B("design:type",Function)],O3.prototype,"onAccountItemTap",void 0);
_.t([_.bF({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],O3);
_.U(O3,"ytd-account-item-section-renderer",function(){if(fnv!==void 0)return fnv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return fnv=e},{mode:1});var jNv;var iFz;var Pi0=function(){return _.z.apply(this,arguments)||this};
_.Y(Pi0,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Pi0.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Pi0.prototype,"data",void 0);_.t([_.bF({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Pi0);
_.U(Pi0,"ytd-accounts-dialog-header-renderer",function(){if(iFz!==void 0)return iFz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return iFz=e},{mode:1});var mSM;var MA=function(){return _.z.apply(this,arguments)||this};
_.Y(MA,_.z);MA.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],MA.prototype,"data",void 0);_.t([_.bF({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],MA);
_.U(MA,"ytd-google-account-header-renderer",function(){if(mSM!==void 0)return mSM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return mSM=e},{mode:1});var Ck=function(){return _.z.apply(this,arguments)||this};
_.Y(Ck,_.z);Ck.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"}}}};
Ck.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("page-changed",this.page))};
Ck.prototype.pageChangedForBinding=Ck.prototype.pageChangedForBinding;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ck.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],Ck.prototype,"page",void 0);
_.t([_.OY("page"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ck.prototype,"pageChangedForBinding",null);_.t([_.bF({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Ck);
_.oI()(Ck,"ytd-account-section-list-renderer",function(){if(jNv===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);jNv=e}e=jNv;return e},{allowedProps:["data"],
mode:1});var pBS;var ee=function(){var e=_.z.apply(this,arguments)||this;e.enableHandlesAccountMenuSwitcher=_.G("enable_handles_account_menu_switcher");return e};
_.Y(ee,_.z);ee.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
ee.prototype.dataChanged=ee.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ee.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],ee.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.t([_.Cs("#avatar"),_.B("design:type",Object)],ee.prototype,"avatar",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ee.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],ee);
_.oI()(ee,"ytd-active-account-header-renderer",function(){if(pBS===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);pBS=e}e=pBS;return e},{allowedProps:["data"],
mode:1});var TIQ;var lng;var gT=function(){return _.z.apply(this,arguments)||this};
_.Y(gT,_.z);gT.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
gT.prototype.onBackTap=function(){_.oC(this.hostElement,"yt-menu-back-tapped")};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],gT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],gT.prototype,"data",void 0);_.t([_.bF({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],gT);
_.oI()(gT,"ytd-simple-menu-header-renderer",function(){if(lng===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);lng=e}e=lng;return e},{allowedProps:["data"],
mode:2});var ANx;var sNq=function(){return _.z.apply(this,arguments)||this};
_.Y(sNq,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],sNq.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],sNq.prototype,"data",void 0);_.t([_.bF({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],sNq);
_.U(sNq,"ytd-comment-video-thumbnail-header-renderer",function(){if(ANx!==void 0)return ANx;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ANx=e},{mode:1});var FSX;var u0g=function(){return _.z.apply(this,arguments)||this};
_.Y(u0g,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],u0g.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],u0g.prototype,"data",void 0);_.t([_.bF({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],u0g);
_.U(u0g,"ytd-abuse-type-selector-renderer",function(){if(FSX!==void 0)return FSX;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return FSX=e},{mode:1});var dSg;var zix=(0,_.E5u)(_.R1w.reportChannelAbuse,{isVideoIdSelectedSelector:function(e,g){return g in e.selectedVideoIds},
additionalContextSelector:function(e){return e.additionalContext},
impersonatedChannelUrlSelector:function(e){return e.impersonatedChannelUrl},
reportChannelAbuseSelector:function(e){return e}});var cD=function(){return _.z.apply(this,arguments)||this};
_.Y(cD,_.z);cD.prototype.attached=function(){var e=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){e.additionalContextInput.focusTextInput()})};
cD.prototype.handleAdditionalContextChanged=function(){var e=this;_.fO(this,"ytd-report-channel-additional-context-update",function(){e.ytdReduxBehavior.dispatch(_.Hh({type:"ADDITIONAL_CONTEXT_UPDATED",payload:e.additionalContext}))},300)};
cD.prototype.updateAdditionalContextFromBinding=function(e){this.additionalContext=e.detail.value};
cD.prototype.handleAdditionalContextChanged=cD.prototype.handleAdditionalContextChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],cD.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",String)],cD.prototype,"additionalContext",void 0);_.t([_.u({selector:zix.additionalContextSelector}),_.B("design:type",String)],cD.prototype,"additionalContextRedux",void 0);_.t([_.u(),_.B("design:type",Object)],cD.prototype,"data",void 0);
_.t([_.Cs("yt-text-input-form-field-renderer"),_.B("design:type",Object)],cD.prototype,"additionalContextInput",void 0);_.t([_.OY("additionalContext"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cD.prototype,"handleAdditionalContextChanged",null);_.t([_.bF({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],cD);
_.U(cD,"ytd-report-channel-modal-additional-context-renderer",function(){if(dSg!==void 0)return dSg;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return dSg=e},{mode:1});var HFq;var k7=function(){var e=_.z.apply(this,arguments)||this;e.nextButtonDisabled=null;e.submitEndpoint=null;e.navigationEndpoint=null;e.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return e};
_.Y(k7,_.z);_.v=k7.prototype;_.v.computeNextButtonData=function(e,g,c){var k={};g&&(k.navigationEndpoint=g);c&&(k.serviceEndpoint=c);e&&e.buttonRenderer&&_.n0.extend(k,e.buttonRenderer);return k};
_.v.handleReportChannelModalDisableNextButtonAction=function(e){this.setNextButtonIsDisabled(e)};
_.v.handleReportFormEndpointUpdateAction=function(e){this.setNextButtonIsDisabled(!!e.disableSubmitButton);this.resetEndpointData();e.submitEndpoint?this.submitEndpoint=e.submitEndpoint:e.submitNavigationEndpoint&&(this.navigationEndpoint=e.submitNavigationEndpoint)};
_.v.handleSignalActionSubmitForm=function(){var e,g=Object.keys(((e=this.reportChannelAbuseForm)==null?void 0:e.selectedVideoIds)||{}),c;e=((c=this.reportChannelAbuseForm)==null?void 0:c.additionalContext)||"";var k;c=((k=this.reportChannelAbuseForm)==null?void 0:k.impersonatedChannelUrl)||"";var I;if((I=this.data)==null?0:I.submitEndpoint){g={impersonated_channel_url:c,text:e,video_ids:g};var J;_.Ss().resolve(_.xk).resolveCommand((J=this.data)==null?void 0:J.submitEndpoint,{form:Object.assign({},
g,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.v.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.v.onYtServiceRequestError=function(e){this.setNextButtonIsDisabled(!1);_.iD(this.hostElement,e.detail.error.message)};
_.v.setNextButtonIsDisabled=function(e){this.set("data.nextButton.buttonRenderer.isDisabled",e)};
_.v.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
k7.prototype.onYtServiceRequestError=k7.prototype.onYtServiceRequestError;k7.prototype.onYtServiceRequestCompleted=k7.prototype.onYtServiceRequestCompleted;_.t([_.u(),_.B("design:type",Object)],k7.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],k7.prototype,"nextButtonDisabled",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],k7.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],k7.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],k7.prototype,"submitEndpoint",void 0);_.t([_.u(),_.B("design:type",Object)],k7.prototype,"navigationEndpoint",void 0);_.t([_.u({selector:zix.reportChannelAbuseSelector}),_.B("design:type",Object)],k7.prototype,"reportChannelAbuseForm",void 0);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],k7.prototype,"onYtServiceRequestCompleted",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],k7.prototype,"onYtServiceRequestError",null);_.t([_.bF({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],k7);
_.U(k7,"ytd-report-channel-modal-footer-renderer",function(){if(HFq!==void 0)return HFq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return HFq=e},{mode:1});var QNx;var Ip=function(){var e=_.z.apply(this,arguments)||this;e.boundOnTapDismissButton=function(){e.closePopup()};
return e};
_.Y(Ip,_.z);Ip.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Ip.prototype.handleDataChanged=function(){_.Un(this.hostElement)};
Ip.prototype.closePopup=function(){_.Z5(this.hostElement,"yt-close-popup-action")};
Ip.prototype.handleDataChanged=Ip.prototype.handleDataChanged;_.t([_.u(),_.B("design:type",Object)],Ip.prototype,"boundOnTapDismissButton",void 0);_.t([_.u(),_.B("design:type",Object)],Ip.prototype,"data",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ip.prototype,"handleDataChanged",null);_.t([_.bF({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Ip);
_.U(Ip,"ytd-report-channel-modal-header-renderer",function(){if(QNx!==void 0)return QNx;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return QNx=e},{mode:1});var USQ;var JB=function(){var e=_.z.apply(this,arguments)||this;e.autoValidate=!1;e.invalid=!1;e.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return e};
_.Y(JB,_.z);_.v=JB.prototype;_.v.attached=function(){var e=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){e.channelUrlInput.focusTextInput()})};
_.v.disableNextButton=function(e){_.Z5(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[e])};
_.v.handleImpersonatedChannelUrlChanged=function(){var e=this;this.disableNextButton(!0);this.invalid=!1;_.fO(this,"ytd-report-channel-impersonated-channel-update",function(){var g=e.impersonatedChannelUrl.trim();e.ytdReduxBehavior.dispatch(_.Hh({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:g}));var c;((c=e.data)==null?0:c.submitEndpoint)&&g&&_.Ss().resolve(_.xk).resolveCommand(e.data.submitEndpoint,{form:{impersonated_channel_url:g,element:e.hostElement}})},500)};
_.v.handleModifyReportFormCommand=function(e){this.invalid=this.get("modifyReportFormCommand.action",e)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.v.updateInvalidFromBinding=function(e){this.invalid=e.detail.value};
_.v.updateImpersonatedChannelUrlFromBinding=function(e){this.impersonatedChannelUrl=e.detail.value};
JB.prototype.handleImpersonatedChannelUrlChanged=JB.prototype.handleImpersonatedChannelUrlChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],JB.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],JB.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],JB.prototype,"autoValidate",void 0);_.t([_.u(),_.B("design:type",Object)],JB.prototype,"invalid",void 0);
_.t([_.u(),_.B("design:type",String)],JB.prototype,"impersonatedChannelUrl",void 0);_.t([_.u({selector:zix.impersonatedChannelUrlSelector}),_.B("design:type",String)],JB.prototype,"impersonatedChannelUrlRedux",void 0);_.t([_.u(),_.B("design:type",Object)],JB.prototype,"data",void 0);_.t([_.Cs("#text-input"),_.B("design:type",Object)],JB.prototype,"channelUrlInput",void 0);
_.t([_.OY("impersonatedChannelUrl"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JB.prototype,"handleImpersonatedChannelUrlChanged",null);_.t([_.bF({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],JB);
_.U(JB,"ytd-report-channel-modal-impersonation-renderer",function(){if(USQ!==void 0)return USQ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return USQ=e},{mode:1});var o67;var ZFg;var vD=function(){return _.z.apply(this,arguments)||this};
_.Y(vD,_.z);vD.prototype.onCheckboxToggled=function(e){var g,c,k=(c=_.x((g=this.data)==null?void 0:g.video,_.KQI))==null?void 0:c.videoId;k&&this.ytdReduxBehavior.dispatch(e.target.checked?_.Hh({type:"VIDEO_SELECTED",payload:k}):_.Hh({type:"VIDEO_UNSELECTED",payload:k}))};
vD.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Bd.Object.defineProperties(vD.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var e,g=(e=this.data)==null?void 0:e.video;if(!g)return{};var c;e=(c=_.x(g,_.KQI))==null?void 0:c.navigationEndpoint;if(!e)return g;_.x(e==null?void 0:e.commandMetadata,_.OM)&&(_.x(e.commandMetadata,_.OM).ignoreNavigation=!0);return g}}});
_.t([_.u({reflectToAttribute:!0,selector:zix.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.B("design:type",Boolean)],vD.prototype,"checked",void 0);_.t([_.u(),_.B("design:type",Object)],vD.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],vD.prototype,"video",null);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],vD.prototype,"ytdReduxBehavior",void 0);_.t([_.bF({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],vD);
_.U(vD,"ytd-selectable-video-renderer",function(){if(ZFg!==void 0)return ZFg;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ZFg=e},{mode:1});var wT=function(){var e=_.z.apply(this,arguments)||this;e.monitorScroll=!0;return e};
_.Y(wT,_.z);wT.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wT.prototype,"data",void 0);_.t([_.bF({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],wT);
_.U(wT,"ytd-selectable-video-list-renderer",function(){if(o67!==void 0)return o67;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return o67=e},{mode:1});var Vmg;_.qH("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var qJ=function(){return _.z.apply(this,arguments)||this};
_.Y(qJ,_.z);qJ.prototype.onChange=function(e){if(e=_.A3(e).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.G("kevlar_command_handler_migration_killswitch"))_.Bm(this.hostElement,e,this.hostElement);else{e=_.w(e);for(var g=e.next();!g.done;g=e.next())this.ytComponentBehavior.resolveCommand(g.value)}};
qJ.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
qJ.prototype.updateDataToggledFromBinding=function(e){this.set("data.toggled",e.detail.value)};
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],qJ.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qJ.prototype,"data",void 0);_.t([_.u({computed:"isEnabled(data)"}),_.B("design:type",Boolean)],qJ.prototype,"enabled",void 0);_.t([_.bF({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],qJ);
_.U(qJ,"ytd-toggle-item-renderer",function(){if(Vmg!==void 0)return Vmg;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Vmg=e},{mode:1});var tml;var BIv;var NIv;var LI=function(){var e=_.z.apply(this,arguments)||this;e.setVisible=!1;e.boundOnSubmitButtonClick=function(){e.onSubmitButtonClick()};
e.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return e};
_.Y(LI,_.z);LI.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}}}}}};
LI.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
LI.prototype.onSubmitButtonClick=function(){var e;((e=this.data)==null?0:e.submitEndpoint)&&!_.G("enable_ytc_refunds_submit_form_signal_action")&&_.tr(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
LI.prototype.handleSignalActionSubmitForm=function(){var e;((e=this.data)==null?0:e.submitEndpoint)&&_.tr(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Bd.Object.defineProperties(LI.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.hiddenByDefault)&&!this.setVisible}}});
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],LI.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],LI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],LI.prototype,"setVisible",void 0);_.t([_.u(),_.B("design:type",Object)],LI.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],LI.prototype,"surveyFeedbackData",void 0);_.t([_.u(),_.B("design:type",Object)],LI.prototype,"boundOnSubmitButtonClick",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data","setVisible"),_.B("design:type",Object),_.B("design:paramtypes",[])],LI.prototype,"visibilityHidden",null);_.t([_.Wo({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],LI);
_.U(LI,"yt-flow-footer-renderer",function(){if(NIv===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;BIv===void 0&&(BIv=document.createElement("template"));var k=BIv;c.call(g,k.content.cloneNode(!0),e.content.firstChild);NIv=e}e=NIv;return e},{mode:2});var S6z=(0,_.E5u)(_.R1w.ypc,{surveyFeedbackDataSelector:function(e){return e.surveyFeedbackData}});var rT=function(){return _.z.apply(this,arguments)||this};
_.Y(rT,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],rT.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],rT.prototype,"data",void 0);_.t([_.u({selector:S6z.surveyFeedbackDataSelector}),_.B("design:type",Object)],rT.prototype,"surveyFeedbackData",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],rT);
_.U(rT,"ytd-flow-footer-renderer",function(){if(tml!==void 0)return tml;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return tml=e},{mode:2});var yNz;var KS0;var ap=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return e};
_.Y(ap,_.z);_.v=ap.prototype;_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Lx("multiPageMenuSectionItems")}}};
_.v.handleHideEnclosingAction_=function(e){if(this.data&&this.data.items)for(var g=0;g<this.data.items.length;g++){var c=this.data.items[g].notificationRenderer;if(c&&c.notificationId==e.hideEnclosingAction.notificationId){this.splice("data.items",g,1);_.Z5(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.v.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.t3(this.hostElement,"hidden",!0)};
_.v.updateMenu_=function(e){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&e&&!e.doNotRefreshInbox){e=this.data.continuations;for(var g=0;g<e.length;g++)if(e[g].invalidationContinuationData){var c=void 0;var k=(c=e[g].invalidationContinuationData)==null?void 0:c.continuation;break}e=_.n0.clone(this.data.continuationUpdateEndpoint||null);e.continuation=k;e.click_tracking_params=this.data.trackingParams;_.tr(this.hostElement,[e])}};
_.v.onServiceRequestCompleted_=function(e,g){if(this.data&&(e=g.actions)){g=0;for(var c=e.length;g<c;g++){var k=_.x(e[g],_.ajY);if(!k)break;if((k.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||k.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&k.continuationItems&&this.data.items){var I=this.data.items.length-1;this.data.items[I].continuationItemRenderer&&(k=["data.items",I,1].concat(k.continuationItems),this.splice.apply(this,k))}}}};
ap.prototype.onServiceRequestCompleted_=ap.prototype.onServiceRequestCompleted_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],ap.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ap.prototype,"data",void 0);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],ap.prototype,"onServiceRequestCompleted_",null);_.t([_.Wo({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],ap);
_.oI()(ap,"yt-multi-page-menu-section-renderer",function(){if(KS0===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;yNz===void 0&&(yNz=document.createElement("template"));var k=yNz;c.call(g,k.content.cloneNode(!0),e.content.firstChild);KS0=e}e=KS0;return e},{allowedProps:["data"],
mode:2});var OFx;var Mmx;var nI=function(){return _.z.apply(this,arguments)||this};
_.Y(nI,_.z);nI.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Bd.Object.defineProperties(nI.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.progress)==null?0:this.data.progress*100}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],nI.prototype,"data",void 0);_.t([_.p("data.progress"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],nI.prototype,"showProgressBar",null);
_.t([_.p("data.progress"),_.B("design:type",Number),_.B("design:paramtypes",[])],nI.prototype,"progress",null);_.t([_.Wo({is:"yt-flow-header-renderer",disableElementRegistration:!0})],nI);
_.U(nI,"yt-flow-header-renderer",function(){if(Mmx===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;OFx===void 0&&(OFx=document.createElement("template"));var k=OFx;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Mmx=e}e=Mmx;return e},{mode:2});var CiD;var eSv;var Rp=function(){return _.z.apply(this,arguments)||this};
_.Y(Rp,_.z);Rp.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Rp.prototype,"data",void 0);_.t([_.Wo({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Rp);
_.U(Rp,"yt-post-confirmation-flow-step-renderer",function(){if(eSv===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;CiD===void 0&&(CiD=document.createElement("template"));var k=CiD;c.call(g,k.content.cloneNode(!0),e.content.firstChild);eSv=e}e=eSv;return e},{mode:2});var gS7;var cHv;var ED=function(){return _.z.apply(this,arguments)||this};
_.Y(ED,_.z);
ED.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ED.prototype,"data",void 0);_.t([_.Wo({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],ED);
_.U(ED,"yt-refund-confirmation-flow-step-renderer",function(){if(cHv===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;gS7===void 0&&(gS7=document.createElement("template"));var k=gS7;c.call(g,k.content.cloneNode(!0),e.content.firstChild);cHv=e}e=cHv;return e},{mode:2});var kVQ=_.H(function(e){var g=e.data;return _.a("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.a("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.a(_.pv,{data:function(){return{thumbnails:[{url:g().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.a("div",{class:"profileBadgeViewModelContent"},_.a("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return g().badgeDesc}),_.a(_.E,{cond:function(){return g().badgeSubtitle},
then:function(){return _.a("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return g().badgeSubtitle})}})))},"Xk");
kVQ.idomCompat=!0;var IaX=_.H(function(e){var g=e.data;return _.a("yt-comment-interaction-view-model",{el:_.mb(_.EQ(function(){return g().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.a("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return g().onTapA11yLabel},
"on:keydown":_.LV(),tabindex:0},_.a("div",{class:"ytCommentInteractionViewModelHeader"},_.a("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return g().headerPrefix},' "',function(){return g().videoTitle}),_.a("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.a("div",{class:"ytCommentInteractionViewModelContent"},_.a("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return g().commentContent}),_.a("div",{class:"ytCommentInteractionViewModelChevron"},
_.a(_.pv,{data:function(){return{thumbnails:[{url:g().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Yk");
IaX.idomCompat=!0;var JHj=_.H(function(e){var g=e.data;return _.a("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.a(_.eS,{data:function(){return g().avatar}},{avatarViewModel:_.E8}),_.a("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return g().channelName}))},"Zk");
JHj.idomCompat=!0;var rHo=_.H(function(e){var g=e.data;e={};return _.a("yt-profile-info-view-model",{class:_.o6("ytProfileInfoViewModelHost",(e.ytProfileInfoViewModelWithVideoShelf=function(){return g().videosHorizontalShelf},e))},_.a(vSg,{profileInfo:g}),_.a(_.eS,{data:function(){return g().videosHorizontalShelf}},{horizontalShelfViewModel:function(c){return _.a("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.a(_.mo,{data:c.data}))}}),_.a(_.E,{cond:function(){return g().comments},
then:function(){return _.a(wez,{profileInfo:g})}}),_.a(_.E,{cond:function(){return g().sharedSubscriptionsTitle},
then:function(){return _.a(_.E,{cond:function(){return g().subscriptionsAccessButtonCommand},
then:function(){return _.a(qlQ,{profileInfo:g})},
else:function(){return _.a(LUj,{profileInfo:g})}})}}))},"$k");
rHo.idomCompat=!0;var wez=_.H(function(e){var g=e.profileInfo;return _.a("div",{class:"ytProfileInfoViewModelActivity"},_.a("div",{class:"ytProfileInfoViewModelHeader"},_.a("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return g().commentsInteractionTitle})),_.a(_.eS,{data:function(){return g().comments}},{commentInteractionViewModel:function(c){return _.a("div",{class:"ytProfileInfoViewModelActivity"},_.a(IaX,{data:c.data}))}}))},"al"),qlQ=_.H(function(e){var g=e.profileInfo;
return _.a("div",{class:"ytProfileInfoViewModelSubSection"},_.a("div",{class:"ytProfileInfoViewModelSubHeader"},_.a(_.d4,{command:function(){return g().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.a("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return g().sharedSubscriptionsTitle}),_.a("div",null,_.a(_.eS,{data:function(){return g().subscriptionsAccessButton}},{buttonViewModel:_.oD})))),_.a(aaS,{sharedSubscriptions:function(){var c;
return((c=g().sharedSubscriptions)==null?void 0:c.slice(0,5))||[]}}))},"bl"),LUj=_.H(function(e){var g=e.profileInfo;
return _.a("div",{class:"ytProfileInfoViewModelSubSection"},_.a("div",{class:"ytProfileInfoViewModelSubHeader"},_.a("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return g().sharedSubscriptionsTitle})),_.a(aaS,{sharedSubscriptions:function(){var c;
return((c=g().sharedSubscriptions)==null?void 0:c.slice(0,5))||[]}}))},"cl"),aaS=_.H(function(e){return _.a("div",{class:"ytProfileInfoViewModelSubs"},_.a(_.eS,{data:e.sharedSubscriptions},{sharedSubscriptionViewModel:function(g){return _.a("div",{class:"ytProfileInfoViewModelSub"},_.a(JHj,{data:g.data}))}}))},"dl"),vSg=_.H(function(e){var g=e.profileInfo;
return _.a("div",{class:"ytProfileInfoViewModelActivity"},_.a(_.Yz,{each:function(){return[g().profileBadgeInfoYtWide,g().profileBadgeInfoChannelWide].filter(function(c){return!!c})},
keyBy:"INDEX"},function(c){return _.a(_.es,null,_.a("div",{class:"ytProfileInfoViewModelHeader"},_.a("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return c().profileSectionTitle}),_.a("div",{class:"ytProfileInfoViewModelSectionDesc"},_.a("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var k;
return(k=c().commentBadge)==null?void 0:k.commentDesc}),_.a(_.E,{cond:function(){var k;
return(k=c().commentBadge)==null?void 0:k.blackHeartDesc},
then:function(){return _.a("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.a("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.a(_.pv,{data:function(){var k;
return{thumbnails:[{url:(k=c().commentBadge)==null?void 0:k.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.a("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var k;return(k=c().commentBadge)==null?void 0:k.blackHeartDesc}))),_.a("div",{class:"ytProfileInfoViewModelBadge"},_.a(_.Yz,{each:function(){return c().badges||[]}},function(k){return _.a(kVQ,{data:k})})))}))},"el");var nSj=_.H(function(e){var g=e.data;var c=function(){return g().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.a("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.a(_.eS,{data:function(){return g().profileIdentityInfo}},{profileIdentityInfoViewModel:function(k){return _.a(sOl,{data:k.data,
hideDivider:c,isChannelInfoCard:c})},
profileInfoViewModel:rHo}),_.a(_.eS,{data:function(){return g().profileInfo}},{profileIdentityInfoViewModel:sOl,
profileInfoViewModel:rHo}))},"fl");
nSj.idomCompat=!0;_.sL(nSj,"yt-profile-card-view-model",{props:{data:_.jx}});var WD=function(){var e=_.z.apply(this,arguments)||this;e.enableFocusFix=_.G("music_web_enable_focus_on_setting_menu_fix")&&_.dH("IS_MOBILE_WEB",!1);e.covered=!1;e.hideMenu=!1;e.isCommentNotificationOnProfileCard=!1;e.scrolledByTouch=!1;e.disableBackdropFilter=_.G("web_disable_backdrop_filter");e.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return e};
_.Y(WD,_.z);_.v=WD.prototype;
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.v.ready=function(){var e=this;this.JSC$22332_containerElement.addEventListener("scroll",function(){e.ytRendererBehavior.markDirty()})};
_.v.attributeChanged=function(e,g){e==="menu-style"&&_.Z5(this.hostElement,"yt-multi-page-menu-closed-action",[g])};
_.v.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.yg(this,this.focusOnStampFinished))};
_.v.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.yg(this,this.focusOnStampFinished))};
_.v.reset=function(){this.closeJobId&&(_.ft.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.v.focusOnStampFinished=function(e){e.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.yg(this,this.focusOnStampFinished)),this.doFocus())};
_.v.doFocus=function(){var e=_.Lnq(this.sectionsElement);e.length&&e[0].focus()};
_.v.computeMenuStyle=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.v.computeIsCommentNotificationOnProfileCard=function(e){return _.G("enable_profile_cards_on_comments")&&e.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.v.computeHideMenu=function(e,g){return e||!(!g||!g.showLoadingSpinner)};
_.v.onPopupClosed=function(){this.isPopUpOpen=!1;_.Z5(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.v.onPopupOpened=function(e,g){this.isPopUpOpen=!0;g.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.oC(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Hh({type:"CHANNEL_REPORT_RESET"})))};
_.v.onYtNavigate=function(e,g){this.shouldCloseOnNavigateEvent(g.endpoint)&&_.Z5(this.hostElement,"yt-close-all-popups-action")};
_.v.handleEndpoint=function(e){e=_.x(e,_.WU);!this.isCommentNotificationOnProfileCard&&e&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$22332_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.v.handleActions=function(e){for(var g=0,c=e.length;g<c;g++){var k=_.x(e[g],vYv);k&&this.handleGetMultiPageMenuAction(k);(k=_.x(e[g],_.ajY))&&this.handleAppendContinuationItemsAction(k)}};
_.v.onServiceRequestSentOrCompleted=function(e,g){e.detail&&e.detail.endpoint&&this.handleEndpoint(e.detail.endpoint);g.actions&&this.handleActions(g.actions)};
_.v.handleGetMultiPageMenuAction=function(e){var g=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.o1(this.submenuElement).appendChild(g);(e=e.menu.multiPageMenuRenderer)&&this.logSubmenu(e);g.data=e;g.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.v.handleAppendContinuationItemsAction=function(e){if(this.data&&e.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&e.continuationItems&&this.data.sections){var g=this.data.sections.length-1;this.data.sections[g].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),g--);if(this.data.sections[g].multiPageMenuNotificationSectionRenderer&&e.continuationItems){e=_.w(e==null?void 0:e.continuationItems);for(var c=e.next();!c.done;c=e.next())if(c=c.value,_.x(c,gPS)){var k=
void 0,I=void 0,J=void 0,q=void 0,L=void 0;((k=this)==null?0:(I=k.data)==null?0:(J=I.sections)==null?0:(q=J[g])==null?0:(L=q.multiPageMenuNotificationSectionRenderer)==null?0:L.items)&&this.push("data.sections."+g+".multiPageMenuNotificationSectionRenderer.items",c)}else if(_.x(c,_.ccw)||_.x(c,_.zM))this.push("data.sections",c),g++}}};
_.v.logSubmenu=function(e){if(!_.G("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var g=this.ytRendererBehavior.getScreenLayer(),c=_.EM(g),k=_.RC(g);if((e=e.trackingParams)&&c&&k){var I=_.Jb(e);_.G("combine_ve_grafts")?_.gL().graftServerVe(e,k,g):_.Yn(c,k,I)}}};
_.v.emptySubmenuContainer=function(){for(var e=_.o1(this.submenuElement);e.firstChild;)e.removeChild(e.firstChild)};
_.v.onMenuBackTap=function(e){_.oC(this.hostElement,"yt-submenu-closed");e.stopPropagation()};
_.v.onSubmenuClosed=function(e){_.A3(e)!==this.hostElement&&(this.covered=!1,_.oC(this.hostElement,"yt-refit"),e.stopPropagation())};
_.v.onRetrieveLocation=function(e,g){g.hasComments&&(g.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),e.stopPropagation())};
_.v.shouldCloseOnNavigateEvent=function(e){if(!e)return!0;if(_.x(e,_.drY)||_.x(e,_.zqv)||_.x(e,_.uau)||_.x(e,_.uf))return!1;var g;return((g=_.x(e==null?void 0:e.commandMetadata,_.OM))==null?0:g.ignoreNavigation)?!1:!0};
_.v.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.v.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.v.refitAfterRender=function(){var e=this;_.Va(this,function(){_.oC(e.hostElement,"yt-refit")})};
WD.prototype.refitAfterRender=WD.prototype.refitAfterRender;WD.prototype.onRetrieveLocation=WD.prototype.onRetrieveLocation;WD.prototype.onSubmenuClosed=WD.prototype.onSubmenuClosed;WD.prototype.onMenuBackTap=WD.prototype.onMenuBackTap;WD.prototype.onServiceRequestSentOrCompleted=WD.prototype.onServiceRequestSentOrCompleted;WD.prototype.onYtNavigate=WD.prototype.onYtNavigate;WD.prototype.onPopupOpened=WD.prototype.onPopupOpened;WD.prototype.onPopupClosed=WD.prototype.onPopupClosed;
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],WD.prototype,"ytEventForwardingBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],WD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],WD.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],WD.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],WD.prototype,"enableFocusFix",void 0);_.t([_.u(),_.B("design:type",Object)],WD.prototype,"covered",void 0);_.t([_.u({computed:"computeHideMenu(covered, data)"}),_.B("design:type",Object)],WD.prototype,"hideMenu",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.B("design:type",String)],WD.prototype,"menuStyle",void 0);
_.t([_.u({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.B("design:type",Object)],WD.prototype,"isCommentNotificationOnProfileCard",void 0);_.t([_.u(),_.B("design:type",Boolean)],WD.prototype,"isPopUpOpen",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],WD.prototype,"scrolledByTouch",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],WD.prototype,"disableBackdropFilter",void 0);
_.t([_.Cs("#sections"),_.B("design:type",HTMLElement)],WD.prototype,"sectionsElement",void 0);_.t([_.Cs("#spinner"),_.B("design:type",HTMLElement)],WD.prototype,"spinnerElement",void 0);_.t([_.Cs("#header"),_.B("design:type",HTMLElement)],WD.prototype,"headerElement",void 0);_.t([_.Cs("#container"),_.B("design:type",HTMLElement)],WD.prototype,"JSC$22332_containerElement",void 0);_.t([_.Cs("#submenu"),_.B("design:type",HTMLElement)],WD.prototype,"submenuElement",void 0);
_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WD.prototype,"onPopupClosed",null);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],WD.prototype,"onPopupOpened",null);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],WD.prototype,"onYtNavigate",null);
_.t([_.Ks("yt-service-request-completed"),_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],WD.prototype,"onServiceRequestSentOrCompleted",null);_.t([_.Ks("yt-menu-back-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],WD.prototype,"onMenuBackTap",null);
_.t([_.Ks("yt-submenu-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],WD.prototype,"onSubmenuClosed",null);_.t([_.Ks("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],WD.prototype,"onRetrieveLocation",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WD.prototype,"refitAfterRender",null);
_.t([_.bF({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],WD);
_.U(WD,"ytd-multi-page-menu-renderer",function(){if(TIQ!==void 0)return TIQ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return TIQ=e},{mode:1});var RSx;var b5=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return e};
_.Y(b5,_.z);_.v=b5.prototype;_.v.created=function(){this.showTooltips=!0};
_.v.computeAccessibility_=function(e){return this.get("accessibility.accessibilityData",e)||null};
_.v.onTap=function(){var e=_.V1(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(e&&e.length===1&&e[0])_.Z5(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var g;if((g=this.data)==null?0:g.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var c;((c=this.data)==null?0:c.menuRequest)&&_.tr(this.hostElement,[this.data.menuRequest])}}};
_.v.handleTopbarMenuClosedAction=function(e){var g,c;(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(e)===((g=this.data)==null?void 0:(c=g.icon)==null?void 0:c.iconType)&&this.toggleIconState(!1)};
_.v.toggleIconState=function(e){_.G("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=e)};
_.v.handleUpdateTopbarAvatarAction=function(e){var g;e=(g=_.x(e,BeO))==null?void 0:g.avatarUrl;var c,k;g=(c=this.data)==null?void 0:(k=c.avatar)==null?void 0:k.thumbnails;e&&g&&(c={thumbnails:[Object.assign({},g[0],{url:e})]},this.set("data.avatar",c))};
_.Bd.Object.defineProperties(b5.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.o1(this.hostElement).querySelector("#button")}}});
b5.prototype.onTap=b5.prototype.onTap;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],b5.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],b5.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.IhB.YtButtonBehavior),_.B("design:type",Object)],b5.prototype,"ytButtonBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],b5.prototype,"data",void 0);
_.t([_.Cs("yt-icon-button#button"),_.B("design:type",Object)],b5.prototype,"iconButton",void 0);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],b5.prototype,"onTap",null);_.t([_.bF({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],b5);
_.oI()(b5,"ytd-topbar-menu-button-renderer",function(){if(RSx===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);RSx=e}e=RSx;return e},{allowedProps:["data"],
mode:1});var ESv;var hB=function(){return _.z.apply(this,arguments)||this};
_.Y(hB,_.z);hB.prototype.getSelected=function(){return this.reasons.selected};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],hB.prototype,"data",void 0);_.t([_.Cs("#reasons"),_.B("design:type",Object)],hB.prototype,"reasons",void 0);_.t([_.bF({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],hB);
_.U(hB,"ytd-ad-feedback-content",function(){if(ESv!==void 0)return ESv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ESv=e},{mode:1});var WUq;var XL=function(){return _.z.apply(this,arguments)||this};
_.Y(XL,_.z);_.v=XL.prototype;_.v.onPopupOpened=function(){_.Z5(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.v.computeConfirmButton=function(e){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:e.confirmLabel}};
_.v.computeCancelButton=function(e){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:e.cancelLabel}};
_.v.onConfirmTap=function(){var e=this.content.getSelected();e!==void 0&&(e=this.data.reasons[e].endpoint)&&(_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}}),_.Z5(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.v.sendFeedbackSubmitToastAction=function(){var e;(e=this.data)!=null&&e.completionMessage&&(e=_.Aw(this.data.completionMessage),_.Z5(this.hostElement,"yt-open-popup-action",[e,this]))};
_.v.onCancelTap=function(){_.Z5(this.hostElement,"yt-close-popup-action")};
XL.prototype.onPopupOpened=XL.prototype.onPopupOpened;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],XL.prototype,"data",void 0);_.t([_.Cs("#content"),_.B("design:type",Object)],XL.prototype,"content",void 0);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],XL.prototype,"onPopupOpened",null);
_.t([_.bF({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],XL);
_.U(XL,"ytd-ad-feedback-renderer",function(){if(WUq!==void 0)return WUq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return WUq=e},{mode:1});var bKq;var hS0=function(){return _.z.apply(this,arguments)||this};
_.Y(hS0,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hS0.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],hS0.prototype,"data",void 0);_.t([_.bF({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],hS0);
_.U(hS0,"ytd-ad-info-dialog-content",function(){if(bKq!==void 0)return bKq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return bKq=e},{mode:1});var Xev;var Gf=function(){return _.z.apply(this,arguments)||this};
_.Y(Gf,_.z);Gf.prototype.computeConfirmButton=function(e){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:e.confirmLabel}};
Gf.prototype.onConfirmTap=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Gf.prototype.computeShouldShowTitle=function(){var e;return!((e=this.data)==null||!e.title)};
Gf.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.Ss().resolve(_.xk).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Gf.prototype.onPopupClosed=Gf.prototype.onPopupClosed;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Gf.prototype,"data",void 0);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Gf.prototype,"onPopupClosed",null);_.t([_.bF({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Gf);
_.U(Gf,"ytd-ad-info-dialog-renderer",function(){if(Xev!==void 0)return Xev;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Xev=e},{mode:1});var GVM;var x7=function(){var e=_.z.apply(this,arguments)||this;e.actionButtonClass="action-button";e.dismissButtonId="dismiss-button";e.dialogDismiss=!0;return e};
_.Y(x7,_.z);_.v=x7.prototype;_.v.computeInPlayer=function(e){return(e==null?void 0:e.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.v.computedLogo=function(){var e,g;return this.isDarkTheme()?(e=this.data)==null?void 0:e.logoDark:(g=this.data)==null?void 0:g.logo};
_.v.computedHeaderImage=function(){var e,g;return this.isDarkTheme()?(e=this.data)==null?void 0:e.headerImageDark:(g=this.data)==null?void 0:g.headerImage};
_.v.computeLogoIconId=function(){var e,g,c,k=(e=this.computedLogo())==null?void 0:(g=e.sources)==null?void 0:(c=g[0])==null?void 0:c.height;return k&&k%31===0?"logo-icon-with-padding":"logo-icon"};
_.v.computeLogoIconHeight=function(){var e,g,c,k=(e=this.computedLogo())==null?void 0:(g=e.sources)==null?void 0:(c=g[0])==null?void 0:c.height;return k&&k%31===0?"31":"24"};
_.v.onPopupClosed=function(){_.Ss().resolve(_.Eb).dispose()};
_.v.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.v.onShow=function(){this.inPlayer&&_.So(6);this.titleElement.focus()};
_.v.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var e=0;e<this.data.impressionEndpoints.length;e++){var g=_.x(this.data.impressionEndpoints[e],_.EL);g&&this.ytComponentBehavior.resolveCommand(g)}};
_.v.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Z5(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Bd.Object.defineProperties(x7.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var e,g;return!((e=this.data)==null||!e.headerImageDark)&&!((g=this.data)==null||!g.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.secondaryButton)}}});
x7.prototype.onPopupClosed=x7.prototype.onPopupClosed;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],x7.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.xC.YtVisibilityBehavior),_.B("design:type",Object)],x7.prototype,"ytVisibilityBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],x7.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],x7.prototype,"actionButtonClass",void 0);_.t([_.u(),_.B("design:type",Object)],x7.prototype,"dismissButtonId",void 0);_.t([_.u(),_.B("design:type",Object)],x7.prototype,"dialogDismiss",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],x7.prototype,"hasHeaderImage",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],x7.prototype,"hasPremiumButton",null);
_.t([_.u({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.B("design:type",Boolean)],x7.prototype,"inPlayer",void 0);_.t([_.Cs("#dismiss-button"),_.B("design:type",HTMLElement)],x7.prototype,"dismissButton",void 0);_.t([_.Cs("#title"),_.B("design:type",HTMLElement)],x7.prototype,"titleElement",void 0);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],x7.prototype,"onPopupClosed",null);
_.t([_.bF({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],x7);
_.U(x7,"ytd-enforcement-message-view-model",function(){if(GVM!==void 0)return GVM;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return GVM=e},{mode:1});var xjv;var DjX;var Dp=function(){var e=_.z.apply(this,arguments)||this;e.TEST_ONLY={immediateValidation:function(){e.immediateValidation()},
onValidationResponse:function(g){e.onValidationResponse(g)},
onGenerateHandleFromNameResponse:function(g){e.onGenerateHandleFromNameResponse(g)}};
return e};
_.Y(Dp,_.z);_.v=Dp.prototype;_.v.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.v.validate=function(){this.immediateValidation()};
_.v.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.v.setHandleInputValue=function(e){this.handleDir=this.getHandleDir(e);this.handleInput.value=e;this.validationState={status:"PENDING"};this.immediateValidation()};
_.v.getHandleDir=function(e){var g=e===""&&!1;return(g=_.BEq.test.call(_.BEq,e))?"rtl":"ltr"};
_.v.onDataChanged=function(){var e,g;this.handleDir=this.getHandleDir((g=(e=this.data)==null?void 0:e.handle)!=null?g:"");var c;this.validationState=((c=this.data)==null?0:c.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var k;((k=this.data)==null?0:k.validateOnInit)&&this.immediateValidation()};
_.v.stopPropagation=function(e){e.stopPropagation()};
_.v.onInput=function(){var e;this.handleDir=this.getHandleDir((e=this.handleInput.value)!=null?e:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.v.onFocusout=function(e){this.handleInput.contains(e.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.v.delayedValidation=function(){var e,g;this.debouncedValidation((g=(e=this.data)==null?void 0:e.validationDelayMs)!=null?g:1E3)};
_.v.immediateValidation=function(){this.debouncedValidation(0)};
_.v.debouncedValidation=function(e){var g=this;_.fO(this,"debouncedValidation",function(){var c,k=g.staticValidation((c=g.handleInput.value)!=null?c:"");if(k!==void 0)g.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:k};else{var I;if((I=g.data)!=null&&I.validateChannelHandleCommand){g.validationState={status:"LOADING"};var J;g.ytComponentBehavior.resolveCommand(g.data.validateChannelHandleCommand,{form:{handle:(J=g.handleInput.value)!=null?J:""},commandController:{onSuccess:function(q,
L){g.onValidationResponse(L)},
onServerError:function(q,L){g.onValidationServerError(L)}}})}else g.handleUnexpectedValidationError(new _.E2("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",g.data))}},e)};
_.v.staticValidation=function(e){var g;if(((g=this.data)==null?void 0:g.channelHandleStaticValidationParams)!==void 0){g=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(e)&&g.validValueRegexpErrorMessage!==void 0)return g.validValueRegexpErrorMessage;if(g.minLength!==void 0&&e.length<g.minLength&&g.minLengthErrorMessage!==void 0)return g.minLengthErrorMessage;if(g.maxLength!==void 0&&e.length>g.maxLength&&g.maxLengthErrorMessage!==void 0)return g.maxLengthErrorMessage}};
_.v.onValidationResponse=function(e){var g=_.x(e.result,NeX);g===void 0?this.handleUnexpectedValidationError(new _.E2("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",e)):this.handleValidationResultRenderer(g)};
_.v.onValidationServerError=function(e){this.handleUnexpectedValidationError(new _.E2("ValidateChannelHandle request failed.",e))};
_.v.handleValidationResultRenderer=function(e){if(e.handle===void 0)this.handleUnexpectedValidationError(new _.E2("ChannelHandleValidationResultRenderer does not contain handle.",e));else if(e.handle===this.handleInput.value)switch(e.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:e.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:e.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.E2("Unrecognized ChannelHandleValidationResult",e));break;default:_.gj(e.result)}};
_.v.handleUnexpectedValidationError=function(e){var g;this.validationState={status:"UNKNOWN",handle:(g=this.handleInput.value)!=null?g:""};_.mN(e)};
_.v.stopEventPropagation=function(e){e.stopPropagation()};
_.v.updateHandleOnChannelNameInputChange=function(e){if(!this.wasEdited){var g,c;this.debouncedGenerateHandleFromName(e,(c=(g=this.data)==null?void 0:g.validationDelayMs)!=null?c:1E3)}};
_.v.debouncedGenerateHandleFromName=function(e,g){var c=this;_.fO(this,"debouncedGenerateHandleFromName",function(){var k;(k=c.data)!=null&&k.validateChannelHandleCommand?c.ytComponentBehavior.resolveCommand(c.data.validateChannelHandleCommand,{form:{name:e},commandController:{onSuccess:function(I,J){c.onGenerateHandleFromNameResponse(J)},
onServerError:function(I,J){_.mN(new _.E2("Error calling GenerateHandleFromName",J))}}}):_.mN(new _.E2("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",c.data))},g)};
_.v.onGenerateHandleFromNameResponse=function(e){this.wasEdited||((e=_.x(e.result,S8M))?this.setHandleInputValue(e.handle):_.mN(new _.E2("Invalid results when generate handle from name")))};
_.Bd.Object.defineProperties(Dp.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var e;if(e=this.validationState)e=this.validationState,e=e.status==="OK"||e.status==="UNKNOWN";if(e)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var e;if(((e=this.validationState)==null?void 0:e.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 e,g=(e=this.channelHandleEntity)==null?void 0:e.handleEdit;this.handleDir=this.getHandleDir(g!=null?g:"");return g}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var e,g;if(((e=this.data)==null?void 0:(g=e.channelHandleStaticValidationParams)==null?void 0:g.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Dp.prototype.stopEventPropagation=Dp.prototype.stopEventPropagation;Dp.prototype.onDataChanged=Dp.prototype.onDataChanged;Dp.prototype.applyHandleEdit=Dp.prototype.applyHandleEdit;Dp.prototype.onValueChanged=Dp.prototype.onValueChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Dp.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Dp.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Dp.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Boolean)],Dp.prototype,"wasEdited",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],Dp.prototype,"handleDir",void 0);_.t([_.Cs("#handle-input"),_.B("design:type",Object)],Dp.prototype,"handleInput",void 0);_.t([_.u(),_.p("validationState"),_.B("design:type",Object),_.B("design:paramtypes",[])],Dp.prototype,"value",null);
_.t([_.OY("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dp.prototype,"onValueChanged",null);_.t([_.p("validationState"),_.B("design:type",Object),_.B("design:paramtypes",[])],Dp.prototype,"errorIndicator",null);_.t([_.u({reflectToAttribute:!0}),_.p("errorIndicator"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Dp.prototype,"borderErrorIndicator",null);
_.t([_.u({selectorArgs:["data.channelHandleEntityKey"],selector:function(e,g){return _.Nc(e.entities,"channelHandle",g)}}),
_.B("design:type",Object)],Dp.prototype,"channelHandleEntity",void 0);_.t([_.p("channelHandleEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Dp.prototype,"handleEdit",null);_.t([_.OY("handleEdit"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dp.prototype,"applyHandleEdit",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dp.prototype,"onDataChanged",null);
_.t([_.p("data.channelHandleStaticValidationParams.validValueRegexp"),_.B("design:type",Object),_.B("design:paramtypes",[])],Dp.prototype,"validValueRegexp",null);_.t([_.Ks("yt-service-request-sent"),_.Ks("yt-service-request-completed"),_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Dp.prototype,"stopEventPropagation",null);_.t([_.bF({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Dp);
_.U(Dp,"ytd-channel-handle-input-renderer",function(){if(DjX!==void 0)return DjX;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return DjX=e},{mode:2});var $7=function(){var e=_.z.apply(this,arguments)||this;e.data=null;e.errorMessage=null;e.isLoading=!0;e.enableNewChannelCreationOnIdForAll=_.G("enable_new_channel_creation_for_id4all");e.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction"};e.testOnly={setErrorMessage:function(g){e.resetErrorState();e.setErrorState(g)}};
return e};
_.Y($7,_.z);_.v=$7.prototype;_.v.created=function(){this.logScreenVe()};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.v.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var e;((e=this.zeroStepErrorMessageEntity)==null?0:e.value)&&this.set("errorMessage",_.PL(this.zeroStepErrorMessageEntity.value))};
_.v.onCreateTap=function(){var e=this;if(this.data&&this.data.channelCreationEndpoint){var g,c;if(!((g=this.data.createChannelButton)==null?0:(c=g.buttonRenderer)==null?0:c.isDisabled)){var k;if((k=this.nameInput)!=null&&k.value){this.setLoadingState();var I,J;g=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(I=this.handleInput)==null?void 0:I.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((J=this.handleInput)==null?void 0:J.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:g,commandController:{onSuccess:function(q,L){e.onChannelCreationEndpointSuccess(L);e.obakeImageSource&&_.Y2("channelCreatedWithObakeImage",{imageSourceType:e.obakeImageSource})},
onServerError:function(){e.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.v.endpointRequiresServiceRequestAction=function(e){return!!_.x(e,_.W2)||!!_.x(e,BeO)};
_.v.isNavigateAction=function(e){var g;return!!_.x(e,zuS)||!!_.x((g=_.x(e,Ch0))==null?void 0:g.command,zuS)};
_.v.isPlaylistAction=function(e){return!!_.x(e,_.bp)||!!_.x(e,_.DU)};
_.v.onChannelCreationEndpointSuccess=function(e){if(e.createChannelError){var g;this.setErrorState((g=e.createChannelError)==null?void 0:g.errorMessage);this.handleInput&&this.handleInput.validate()}else{e.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(e.navigationEndpoint);if(e.actions){g=_.w(e.actions);for(var c=g.next();!c.done;c=g.next())if(c=c.value,this.endpointRequiresServiceRequestAction(c)&&this.ytComponentBehavior.resolveCommand(c),this.isNavigateAction(c)){var k=void 0;c=_.x((k=
_.x(c,Ch0))==null?void 0:k.command,zuS);k=void 0;this.isPlaylistAction((k=c)==null?void 0:k.endpoint)&&(_.Z5(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),k=void 0,this.ytComponentBehavior.resolveCommand((k=c)==null?void 0:k.endpoint))}}e.actions&&e.actions.some(function(I){var J;return _.x(I,zuS)||_.x((J=_.x(I,Ch0))==null?void 0:J.command,zuS)})||_.Z5(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.v.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.v.onCancelTap=function(){var e,g,c;if(!((e=this.data)==null?0:(g=e.cancelButton)==null?0:(c=g.buttonRenderer)==null?0:c.isDisabled)){var k,I,J;e=(k=this.data)==null?void 0:(I=k.cancelButton)==null?void 0:(J=I.buttonRenderer)==null?void 0:J.command;if(!e||!_.x(e,_.t3A)){var q;this.nameInput&&((q=this.data)==null?0:q.name)&&(this.nameInput.value=this.data.name);var L;this.handleInput&&((L=this.data)==null?0:L.channelHandleInput)&&(this.handleInput.data=_.x(this.data.channelHandleInput,y87));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.v.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.v.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.v.onClearProfilePhotoTap=function(){var e,g,c;((e=this.data)==null?0:(g=e.clearProfilePhotoButton)==null?0:(c=g.buttonRenderer)==null?0:c.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.v.onEditAvatarTap=function(){var e,g,c;((e=this.data)==null?0:(g=e.editAvatarButton)==null?0:(c=g.buttonRenderer)==null?0:c.isDisabled)||this.openProfilePicturePicker()};
_.v.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.v.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var e;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((e=this.data)==null?0:e.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.v.setErrorState=function(e){this.resetErrorState();if(e)this.set("errorMessage",e);else{var g;if((g=this.zeroStepErrorMessageEntity)==null?0:g.value)this.set("errorMessage",_.PL(this.zeroStepErrorMessageEntity.value));else{var c;((c=this.data)==null?0:c.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.v.fetchImageBlobWithAlr=function(e,g){g=g===void 0?5:g;var c=this,k,I,J,q,L;return _.r(function(n){switch(n.nextAddress){case 1:return n.yield(fetch(e,{method:"GET",mode:"cors"}),2);case 2:k=n.yieldResult;if(k.ok){n.jumpTo(3);break}if(g===0)throw Error();I=c.addJitter(Math.pow(2,5-g));return n.yield(new Promise(function(R){setTimeout(R,I*1E3)}),4);
case 4:return n.return(c.fetchImageBlobWithAlr(e,g-1));case 3:if(!k.headers.get("content-type").split(";").some(function(R){return R.trim()==="text/plain"})){n.jumpTo(5);
break}J=c;q=J.fetchImageBlobWithAlr;return n.yield(k.text(),6);case 6:return n.return(q.call(J,n.yieldResult,g-1));case 5:return n.yield(k.blob(),7);case 7:return L=n.yieldResult,n.return(L)}})};
_.v.addJitter=function(e){var g=e*.3*Math.random();Math.random()>.5&&(g*=-1);return e+g};
_.v.openProfilePicturePicker=function(){var e=this,g,c,k,I,J,q;return _.r(function(L){if(L.nextAddress==1){g=e.data.scottyUploadUrl;if(!g)return L.return();c=document.documentElement.hasAttribute("dark");k=document.body.style.colorScheme;c&&(document.body.style.colorScheme="dark");I=IrD(Jg7(k9o(KXq(c?"dark":"light")),function(n){var R,W,b,h,X;return _.r(function(D){if(D.nextAddress==1)return R=_.Cr($wv(new qzQ(n.photoUrl,!1)).build(),"alr","yes"),e.obakeImageSource=e.pictureChangeSourceToObakeImageSourceType(n.photoSource),
_.lj(D,2),e.setLoadingState(),D.yield(e.fetchImageBlobWithAlr(R),4);if(D.nextAddress!=2)return W=D.yieldResult,b=new FileReader,b.addEventListener("load",function(){var f,l,A,d,S,V;return _.r(function(Q){if(Q.nextAddress==1){if(W.size>15728640)return e.setErrorState((f=e.data)==null?void 0:f.imageSizeErrorMessage),_.mN(Error("im")),Q.return();if(!b.result)return e.setErrorState((l=e.data)==null?void 0:l.genericImageLoadErrorMessage),_.mN(Error("jm")),Q.return();A=b.result;_.lj(Q,2);return Q.yield(APX(W,
g),4)}if(Q.nextAddress!=2)return d=Q.yieldResult,e.handleImageUpdatedAction(A,d),e.resetErrorState(),_.zn(Q,0);S=_.Qb(Q);e.setErrorState((V=e.data)==null?void 0:V.uploadErrorMessage);if(S instanceof Error)_.jW(S);else{var y=new _.E2(JSON.stringify(S));_.jW(y)}_.Uh(Q)})}),b.readAsDataURL(W),_.zn(D,0);
h=_.Qb(D);e.setErrorState((X=e.data)==null?void 0:X.genericImageLoadErrorMessage);h instanceof Error?_.jW(h):_.Py(new _.E2(JSON.stringify(h)));_.Uh(D)})}),function(){document.body.style.colorScheme=k});
_.lj(L,2);return((J=e.data)==null?0:J.shouldViewChannelCreationFormForSupex)?L.yield(I.openPicker("profile-picture/art-selection"),5):L.yield(I.openPicker(),5)}if(L.nextAddress!=2)return _.zn(L,0);_.Qb(L);e.setErrorState((q=e.data)==null?void 0:q.selectImageErrorMessage);_.Uh(L)})};
_.v.pictureChangeSourceToObakeImageSourceType=function(e){switch(e){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.v.logScreenVe=function(){_.BU(_.gL(),124448)};
_.v.graftServerVe=function(){var e=_.RC(),g,c,k=(g=this.data)==null?void 0:(c=g.loggingDirectives)==null?void 0:c.trackingParams;k&&e&&(this.channelCreationFormVe=_.gL().graftServerVe(k,e),e={visualElement:this.channelCreationFormVe},_.CO().reportShown(e))};
_.v.isNameChanged=function(e){var g;return((g=this.data)==null?void 0:g.name)!==e};
_.v.isHandleChanged=function(e){var g,c=_.x((g=this.data)==null?void 0:g.channelHandleInput,y87);return c&&e?c.handle!==e:!1};
_.v.handleImageUpdatedAction=function(e,g){this.previewDataUrl=e;this.encryptedBlobId=g};
_.v.handleImageSelectionErrorAction=function(e){this.setErrorState(e)};
_.v.handleImageSelectionResetErrorAction=function(){this.resetErrorState()};
_.v.maybeWipeZeroStepErrorMessage=function(){var e,g=(e=this.data)==null?void 0:e.zeroStepErrorMessageEntityKey,c;g&&((c=this.zeroStepErrorMessageEntity)==null?0:c.value)&&this.ytdReduxBehavior.dispatch(_.cY("stringEntity",g,{key:g,value:""}))};
_.Bd.Object.defineProperties($7.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 e;return((e=this.photoThumbnail)==null?0:e.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 e;return!((e=this.data)==null||!e.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.descriptionInfo}}});
$7.prototype.dataChanged=$7.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],$7.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],$7.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],$7.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$7.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],$7.prototype,"errorMessage",void 0);
_.t([_.u(),_.B("design:type",Object)],$7.prototype,"isLoading",void 0);_.t([_.u(),_.B("design:type",String)],$7.prototype,"previewDataUrl",void 0);_.t([_.u(),_.B("design:type",Number)],$7.prototype,"obakeImageSource",void 0);_.t([_.Cs("#title-input"),_.B("design:type",Object)],$7.prototype,"nameInput",void 0);_.t([_.Cs("#handle-input"),_.B("design:type",Object)],$7.prototype,"handleInput",void 0);_.t([_.u(),_.B("design:type",Boolean)],$7.prototype,"enableNewChannelCreationOnIdForAll",void 0);
_.t([_.u({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.PGW}),_.B("design:type",Object)],$7.prototype,"zeroStepErrorMessageEntity",void 0);_.t([_.p("data","data.isDefaultProfilePhoto","previewDataUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],$7.prototype,"photoThumbnail",null);_.t([_.p("data","data.isDefaultProfilePhoto","photoThumbnail"),_.B("design:type",Object),_.B("design:paramtypes",[])],$7.prototype,"userSetPhotoThumbnailUrl",null);
_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$7.prototype,"hideProfilePhotoButtonLayer",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$7.prototype,"enableIdentityForAllChannelCreationDialog",null);_.t([_.k_("data","zeroStepErrorMessageEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$7.prototype,"dataChanged",null);
_.t([_.u({reflectToAttribute:!0}),_.p("data.descriptionInfo","zeroStepErrorMessageEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],$7.prototype,"description",null);_.t([_.bF({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],$7);
_.U($7,"ytd-channel-creation-dialog-renderer",function(){if(xjv!==void 0)return xjv;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return xjv=e},{mode:1});var $jq;var Y7=function(){var e=_.z.apply(this,arguments)||this;e.isLoading=!1;e.isDisabled=!1;return e};
_.Y(Y7,_.z);Y7.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Y7.prototype.updateDisabled=function(){var e;this.isDisabled=this.isLoading||((e=this.handleInput)==null?void 0:e.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Y7.prototype.onSaveClick=function(){var e=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var g;((g=this.data)==null?void 0:g.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 c;if((c=e.data)==null?0:c.nextEndpoint){var k;e.ytComponentBehavior.resolveCommand((k=e.data)==null?void 0:k.nextEndpoint)}else e.isLoading=
!1,e.closeDialog()},
onServerError:function(){e.isLoading=!1;e.handleInput.validate();var c;e.errorMessage=(c=e.data)==null?void 0:c.errorMessage}}}))}};
Y7.prototype.closeDialog=function(){_.Z5(this.hostElement,"yt-close-popup-action",[this.is])};
Y7.prototype.updateDisabled=Y7.prototype.updateDisabled;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Y7.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Y7.prototype,"data",void 0);_.t([_.Cs("#handle-input"),_.B("design:type",Object)],Y7.prototype,"handleInput",void 0);_.t([_.OY("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Y7.prototype,"updateDisabled",null);
_.t([_.bF({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Y7);
_.U(Y7,"ytd-channel-handle-edit-dialog-renderer",function(){if($jq!==void 0)return $jq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return $jq=e},{mode:1});var Yl7;var fI=function(){return _.z.apply(this,arguments)||this};
_.Y(fI,_.z);fI.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fI.prototype,"data",void 0);_.t([_.bF({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],fI);
_.U(fI,"ytd-channel-switcher-footer-renderer",function(){if(Yl7!==void 0)return Yl7;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Yl7=e},{mode:1});var fao;var jV0;var je=function(){return _.z.apply(this,arguments)||this};
_.Y(je,_.z);je.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
je.prototype.onIronChange=je.prototype.onIronChange;_.t([_.u(),_.B("design:type",Object)],je.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!1}),_.B("design:type",Function)],je.prototype,"onDontAskAgainChanged",void 0);_.t([_.Cs("#checkbox"),_.B("design:type",Object)],je.prototype,"checkbox",void 0);_.t([_.Ks("iron-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],je.prototype,"onIronChange",null);
_.t([_.bF({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],je);
_.U(je,"ytd-identity-prompt-footer-renderer",function(){if(jV0!==void 0)return jV0;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return jV0=e},{mode:1});var i5=function(){var e=_.z.apply(this,arguments)||this;e.dontAskAgain=!1;e.showPopup=!1;e.boundDontAskAgainChanged=function(g){e.dontAskAgainChanged(g)};
e.boundOnAccountItemTap=function(g){e.onAccountItemTap(g)};
return e};
_.Y(i5,_.z);_.v=i5.prototype;
_.v.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.v.ready=function(){var e=this;_.o1(this.hostElement).querySelector("#container").addEventListener("scroll",function(){e.ytRendererBehavior.markDirty()})};
_.v.dontAskAgainChanged=function(e){this.dontAskAgain=e};
_.v.onAccountItemTap=function(e){if(e){var g={};this.dontAskAgain&&(g={dont_ask_again:this.dontAskAgain});_.Gb(e,g)}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.v.redirectOnlyAccount=function(e){e.sections&&e.sections.length>0&&(e=_.x(e.sections[0],_.yUq),(e==null?0:e.contents)&&(e==null?void 0:e.contents.length)<=1?(e=_.V0(window.location.href),(e==null?0:e.next)&&_.jtU(e.next)?_.Gb(e.next):_.Gb("/")):this.showPopup=!0)};
i5.prototype.dataChanged=i5.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],i5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],i5.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!1}),_.B("design:type",Object)],i5.prototype,"dontAskAgain",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],i5.prototype,"showPopup",void 0);_.t([_.u({reflectToAttribute:!1}),_.B("design:type",Object)],i5.prototype,"boundDontAskAgainChanged",void 0);_.t([_.u({reflectToAttribute:!1}),_.B("design:type",Object)],i5.prototype,"boundOnAccountItemTap",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i5.prototype,"dataChanged",null);
_.t([_.bF({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],i5);
_.U(i5,"ytd-channel-switcher-renderer",function(){if(fao!==void 0)return fao;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return fao=e},{mode:1});var iKz;var PD=function(){return _.z.apply(this,arguments)||this};
_.Y(PD,_.z);_.Bd.Object.defineProperties(PD.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.t([_.u(),_.B("design:type",Object)],PD.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],PD.prototype,"steps",null);_.t([_.bF({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],PD);
_.U(PD,"ytd-channel-transfer-stepper-renderer",function(){if(iKz!==void 0)return iKz;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return iKz=e},{mode:1});var PIx;var mr=function(){var e=_.z.apply(this,arguments)||this;e.data=null;e.isError=!1;e.isLoading=!1;return e};
_.Y(mr,_.z);_.v=mr.prototype;_.v.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.v.computeProfileName=function(e){return e?e.givenNameValue+" "+e.familyNameValue:""};
_.v.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.v.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
mr.prototype.onYtServiceRequestError=mr.prototype.onYtServiceRequestError;mr.prototype.onYtServiceRequestSent=mr.prototype.onYtServiceRequestSent;mr.prototype.dataChanged=mr.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],mr.prototype,"data",void 0);
_.t([_.u({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.B("design:type",String)],mr.prototype,"profileName",void 0);_.t([_.u(),_.B("design:type",Object)],mr.prototype,"isError",void 0);_.t([_.u(),_.B("design:type",Object)],mr.prototype,"isLoading",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mr.prototype,"dataChanged",null);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],mr.prototype,"onYtServiceRequestSent",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],mr.prototype,"onYtServiceRequestError",null);_.t([_.bF({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],mr);
_.U(mr,"ytd-channel-warm-welcome-cont-renderer",function(){if(PIx!==void 0)return PIx;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return PIx=e},{mode:1});var mjg;var pI=function(){var e=_.z.apply(this,arguments)||this;e.data=null;return e};
_.Y(pI,_.z);pI.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
pI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],pI.prototype,"data",void 0);_.t([_.bF({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],pI);
_.U(pI,"ytd-channel-warm-welcome-renderer",function(){if(mjg!==void 0)return mjg;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return mjg=e},{mode:1});var pez;var Tf=function(){return _.z.apply(this,arguments)||this};
_.Y(Tf,_.z);_.Bd.Object.defineProperties(Tf.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.authorThumbnail)||{}}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Tf.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Tf.prototype,"thumbnailDetails",null);_.t([_.bF({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Tf);
_.U(Tf,"ytd-comment-preview-renderer",function(){if(pez!==void 0)return pez;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return pez=e},{mode:1});var Tdv;var l5=function(){return _.z.apply(this,arguments)||this};
_.Y(l5,_.z);l5.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Bd.Object.defineProperties(l5.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.submitButton}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],l5.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],l5.prototype,"submitButton",null);_.t([_.bF({is:"ytd-notice-renderer",disableElementRegistration:!0})],l5);
_.U(l5,"ytd-notice-renderer",function(){if(Tdv!==void 0)return Tdv;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Tdv=e},{mode:1});var laO;var AB=function(){return _.z.apply(this,arguments)||this};
_.Y(AB,_.z);AB.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],AB.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],AB.prototype,"data",void 0);_.t([_.bF({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],AB);
_.U(AB,"ytd-preview-comment-dialog-content",function(){if(laO!==void 0)return laO;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return laO=e},{mode:1});var AHO;var sD=function(){return _.z.apply(this,arguments)||this};
_.Y(sD,_.z);sD.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
sD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],sD.prototype,"data",void 0);_.t([_.bF({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],sD);
_.U(sD,"ytd-preview-comment-dialog-renderer",function(){if(AHO!==void 0)return AHO;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return AHO=e},{mode:1});var sVq;var FUv=_.G("web_button_rework")&&_.dH("BUTTON_REWORK")||_.G("web_button_rework_with_live"),FL=function(){var e=_.z.apply(this,arguments)||this;e.closeLabel=_.C_("CLOSE");e.selectedAmountIndex=1;e.privacyCheckboxValue=!1;e.useAmsterdamStyle=FUv;e.amountPlaceholderIndex=-1;return e};
_.Y(FL,_.z);_.v=FL.prototype;_.v.onAmountClick=function(e){this.selectedAmountIndex=_.o1(this.hostElement).querySelector("#amounts").indexForElement(e.currentTarget)};
_.v.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Z5(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.v.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Z5(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Z5(this.hostElement,"yt-close-popup-action",[this.is]);var e;(e=_.FE())==null||e.getPlayerPromise().then(function(g){g.pauseVideo()})}};
_.v.donationCallback=function(e){e.success?(this.hostElement.hasAttribute("live-chat")&&e.response&&e.response.data&&e.response.data.actions&&_.Z5(this.hostElement,"yt-live-chat-open-popup",[e.response.data.actions[0]]),_.Z5(this.hostElement,"yt-close-popup-action",[this.is]),_.Z5(this.hostElement,"yt-live-chat-close-buy-flow")):e.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(e.errorMessageRenderer)};
_.v.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.o1(this.hostElement).querySelector("#custom-amount-input").focus()};
_.v.updateConfirmationDialogTextWithAmount=function(e){var g=this.getConfirmDialogRuns();g&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(g),"text"],this.getFormattedAmount(e))};
_.v.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.v.getAmountPlaceholderIndex=function(e){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=e.findIndex(function(g){return g.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.v.getFormattedAmount=function(e){var g;return(new _.$d(4,((g=this.data)==null?void 0:g.currencyCode)||"")).format(e)};
_.v.isAmountValid=function(e){if(e==="")return!1;e=Number(e)*1E6;var g=this.get("minAmountMicros",this.data),c=this.get("maxAmountMicros",this.data);return g&&e<g||c&&e>c?!1:!0};
_.v.setInputError=function(){this.shouldShowValidationError?_.o1(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.o1(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.v.setInitialCheckboxValue=function(){var e;this.privacyCheckboxValue=!((e=this.data)==null||!e.privacyCheckboxInitialState)};
_.v.updateCustomAmountInputFromBinding=function(e){this.customAmountInput=e.detail.value};
_.v.updatePrivacyCheckboxValueFromBinding=function(e){this.privacyCheckboxValue=e.detail.value};
_.Bd.Object.defineProperties(FL.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var e=this,g,c;return((g=this.data)==null?void 0:(c=g.suggestedAmounts)==null?void 0:c.map(function(k,I){return{buttonRenderer:{style:e.selectedAmountIndex===I?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:k.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 e;return!((e=this.data)==null||!e.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 e=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(e&&this.amountMicros!==null)return Object.assign({},e,{ypcGetCartEndpoint:Object.assign({},e.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 e=this.get("confirmLargeAmount",this.data);if(e&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),e}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var e=this.get("donateButton.buttonRenderer",this.data);if(e)return Object.assign({},e,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
FL.prototype.setInitialCheckboxValue=FL.prototype.setInitialCheckboxValue;FL.prototype.setInputError=FL.prototype.setInputError;FL.prototype.setFocusOnCustomAmountInput=FL.prototype.setFocusOnCustomAmountInput;_.t([_.m(llj),_.B("design:type",Object)],FL.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],FL.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],FL.prototype,"closeLabel",void 0);_.t([_.u(),_.B("design:type",Object)],FL.prototype,"selectedAmountIndex",void 0);_.t([_.u(),_.B("design:type",String)],FL.prototype,"customAmountInput",void 0);_.t([_.u(),_.B("design:type",Object)],FL.prototype,"privacyCheckboxValue",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],FL.prototype,"useAmsterdamStyle",void 0);_.t([_.OY("customAmount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FL.prototype,"setFocusOnCustomAmountInput",null);_.t([_.p("data","selectedAmountIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],FL.prototype,"suggestedAmountButtons",null);
_.t([_.p("data","selectedAmountIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],FL.prototype,"isCustomAmountSelected",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],FL.prototype,"showPrivacyCheckbox",null);_.t([_.p("data","selectedAmountIndex","customAmount"),_.B("design:type",Object),_.B("design:paramtypes",[])],FL.prototype,"amountMicros",null);
_.t([_.p("isCustomAmountSelected","customAmountInput"),_.B("design:type",Object),_.B("design:paramtypes",[])],FL.prototype,"customAmount",null);_.t([_.p("customAmount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],FL.prototype,"shouldShowValidationError",null);_.t([_.p("customAmount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],FL.prototype,"isDonateButtonEnabled",null);
_.t([_.p("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.B("design:type",Object),_.B("design:paramtypes",[])],FL.prototype,"donateCommand",null);_.t([_.p("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.B("design:type",Object),_.B("design:paramtypes",[])],FL.prototype,"donateCommandWithConfirmation",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],FL.prototype,"largeDonationThreshold",null);
_.t([_.p("customAmount","donateCommand","amountMicros"),_.B("design:type",Object),_.B("design:paramtypes",[])],FL.prototype,"confirmLargeAmountCommand",null);_.t([_.p("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.B("design:type",Object),_.B("design:paramtypes",[])],FL.prototype,"donateButtonRenderer",null);_.t([_.OY("shouldShowValidationError"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FL.prototype,"setInputError",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FL.prototype,"setInitialCheckboxValue",null);_.t([_.bF({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],FL);
_.U(FL,"ytd-donation-amount-picker-renderer",function(){if(sVq!==void 0)return sVq;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return sVq=e},{mode:1});var uyM;var djj=function(){return _.z.apply(this,arguments)||this};
_.Y(djj,_.z);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],djj.prototype,"ytComponentBehavior",void 0);_.t([_.u({}),_.B("design:type",Object)],djj.prototype,"data",void 0);_.t([_.bF({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],djj);
_.U(djj,"ytd-donation-post-transaction-content",function(){if(uyM!==void 0)return uyM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return uyM=e},{mode:1});var zSX;var u5=function(){return _.z.apply(this,arguments)||this};
_.Y(u5,_.z);u5.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],u5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.t([_.u({}),_.B("design:type",Object)],u5.prototype,"data",void 0);_.t([_.bF({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],u5);
_.U(u5,"ytd-donation-post-transaction-renderer",function(){if(zSX!==void 0)return zSX;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return zSX=e},{mode:1});var HKo;var QVQ;var dT=function(){return _.z.apply(this,arguments)||this};
_.Y(dT,_.z);dT.prototype.computeIsStreamingProvider=function(e){return!!e.isStreamingShelf};
dT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],dT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],dT.prototype,"data",void 0);_.t([_.u({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],dT.prototype,"isStreamingProvider",void 0);
_.t([_.bF({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],dT);
_.U(dT,"ytd-media-provider-renderer",function(){if(QVQ!==void 0)return QVQ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return QVQ=e},{mode:1});var Uj7;var zf=function(){return _.z.apply(this,arguments)||this};
_.Y(zf,_.z);zf.prototype.observeLightsourcePalette=function(){var e,g=(e=this.data)==null?void 0:e.vibrantsourceColorPaletteData;g&&_.vO(this.hostElement,g)};
zf.prototype.observeLightsourcePalette=zf.prototype.observeLightsourcePalette;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],zf.prototype,"data",void 0);
_.t([_.OY("data.vibrantsourceColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zf.prototype,"observeLightsourcePalette",null);_.t([_.bF({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],zf);
_.U(zf,"ytd-streaming-pop-up-dialog",function(){if(Uj7!==void 0)return Uj7;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Uj7=e},{mode:1});var HD=function(){return _.z.apply(this,arguments)||this};
_.Y(HD,_.z);HD.prototype.onPopupOpened_=function(){var e;((e=this.data)==null?0:e.serviceEndpoint)&&_.Ss().resolve(_.xk).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
HD.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
HD.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"}}}}};
HD.prototype.onPopupOpened_=HD.prototype.onPopupOpened_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Tk),_.B("design:type",Object)],HD.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],HD.prototype,"data",void 0);
_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HD.prototype,"onPopupOpened_",null);_.t([_.bF({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],HD);
_.U(HD,"ytd-brandconnect-popup-renderer",function(){if(HKo!==void 0)return HKo;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return HKo=e},{mode:1});var oSQ;var Qm=function(){return _.z.apply(this,arguments)||this};
_.Y(Qm,_.z);_.v=Qm.prototype;_.v.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){for(var e=0;e<this.getOptionRenderers().length;e++)this.notifyPath("data.options."+e+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+e+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.v.updateSubmitButton=function(e){this.set("data.submitButton.buttonRenderer.isDisabled",!e)};
_.v.computeAlt=function(e){return _.mp(e)};
_.v.onDismissTap=function(){_.Z5(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Ss().resolve(_.xk).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.v.getOptionRenderers=function(e){return(e=e||this.data)&&e.options?e.options.reduce(function(g,c){c.checkboxSurveyOptionRenderer&&g.push(c.checkboxSurveyOptionRenderer);return g},[]):[]};
_.v.onOptionChange=function(e){var g=this,c=!1;if(e.detail.checked)for(var k=this.getOptionRenderers().find(function(L){return L.value===e.detail.value}),I=this.getOptionRenderers(),J=0;J<I.length;J++){var q=I[J];
this.notifyPath("data.options."+J+".checkboxSurveyOptionRenderer.checked");q.checked&&((k==null?0:k.isExclusiveOption)?!q.isExclusiveOption:q.isExclusiveOption)?this.set("data.options."+J+".checkboxSurveyOptionRenderer.checked",!1):q.checked&&(c=!0)}else c=this.getOptionRenderers().some(function(L,n){g.notifyPath("data.options."+n+".checkboxSurveyOptionRenderer.checked");return L.checked});
this.updateSubmitButton(c)};
_.v.onSubmitTap=function(){var e=this.getOptionRenderers().filter(function(J){return J.checked});
if(e.length!==0){var g=e.map(function(J){return J.responseEndpoint});
e=[];for(var c=1;c<g.length;c++){var k=void 0,I=(k=_.x(g[c],_.bn))==null?void 0:k.feedbackToken;I&&e.push(I)}g=[g[0]];e.length&&g.push({extra_feedback_tokens:e});_.tr(this.hostElement,g);_.Z5(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);e=this.data&&this.data.submitActions||[];if(_.G("kevlar_command_handler_migration_killswitch"))_.Bm(this.hostElement,e,this.hostElement);else for(e=_.w(e),g=e.next();!g.done;g=e.next())this.ytComponentBehavior.resolveCommand(g.value)}};
Qm.prototype.onOptionChange=Qm.prototype.onOptionChange;Qm.prototype.dataChanged=Qm.prototype.dataChanged;_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],Qm.prototype,"ytEventForwardingBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Qm.prototype,"ytComponentBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.t([_.m(L1D),_.B("design:type",Object)],Qm.prototype,"ytdHatsSurveyBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Qm.prototype,"data",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qm.prototype,"dataChanged",null);
_.t([_.Ks("ytd-checkbox-survey-option-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Qm.prototype,"onOptionChange",null);_.t([_.bF({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Qm);
_.U(Qm,"ytd-checkbox-survey-renderer",function(){if(oSQ!==void 0)return oSQ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return oSQ=e},{mode:1});var ZKq;var VNq;var UD=function(){return _.z.apply(this,arguments)||this};
_.Y(UD,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.t([_.m(w4j),_.B("design:type",Object)],UD.prototype,"ytdDismissalReasonBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],UD.prototype,"data",void 0);_.t([_.bF({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],UD);
_.U(UD,"ytd-dismissal-reason-text-renderer",function(){if(VNq!==void 0)return VNq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return VNq=e},{mode:1});var tNv;var op=function(){return _.z.apply(this,arguments)||this};
_.Y(op,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.t([_.m(w4j),_.B("design:type",Object)],op.prototype,"ytdDismissalReasonBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],op.prototype,"data",void 0);_.t([_.bF({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],op);
_.U(op,"ytd-dismissal-reason-video-renderer",function(){if(tNv!==void 0)return tNv;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return tNv=e},{mode:1});var Zp=function(){return _.z.apply(this,arguments)||this};
_.Y(Zp,_.z);_.v=Zp.prototype;_.v.created=function(){this.selectedFeedbackTokens=new hQ};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.v.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.v.onDismissalReasonSelected=function(e,g){_.oC(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(g);this.hasReasonsSelected=!0};
_.v.onDismissalReasonDeselected=function(e,g){_.oC(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(g);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.v.onCancelTap=function(){_.Z5(this.hostElement,"yt-close-popup-action")};
_.v.onSubmitTap=function(){var e=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(e={feedback_tokens:e},_.Ss().resolve(_.xk).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},e,{element:this.hostElement})}));_.Z5(this.hostElement,"yt-close-popup-action")};
Zp.prototype.onDismissalReasonDeselected=Zp.prototype.onDismissalReasonDeselected;Zp.prototype.onDismissalReasonSelected=Zp.prototype.onDismissalReasonSelected;Zp.prototype.dataChanged=Zp.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Zp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Zp.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Boolean)],Zp.prototype,"hasReasonsSelected",void 0);_.t([_.u(),_.B("design:type",hQ)],Zp.prototype,"selectedFeedbackTokens",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zp.prototype,"dataChanged",null);_.t([_.Ks("yt-dismissal-reason-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],Zp.prototype,"onDismissalReasonSelected",null);
_.t([_.Ks("yt-dismissal-reason-deselected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],Zp.prototype,"onDismissalReasonDeselected",null);_.t([_.bF({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Zp);
_.U(Zp,"ytd-dismissal-follow-up-renderer",function(){if(ZKq!==void 0)return ZKq;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ZKq=e},{mode:1});var Bdg;var Vm=function(){return _.z.apply(this,arguments)||this};
_.Y(Vm,_.z);_.v=Vm.prototype;_.v.onCheckedChange=function(){this.multiselect||_.oC(this.hostElement,"yt-feedback-single-select-changed");_.o1(this.hostElement).querySelector("#freeform").focus();_.oC(this.hostElement,"yt-refit")};
_.v.showTextBox=function(e,g){return e&&g};
_.v.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.v.updateDataCheckedFromBinding=function(e){this.set("data.checked",e.detail.value)};
_.v.updateDataResultTextFromBinding=function(e){this.set("data.resultText",e.detail.value)};
Vm.prototype.dataChanged=Vm.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Vm.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],Vm.prototype,"multiselect",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vm.prototype,"dataChanged",null);
_.t([_.bF({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Vm);
_.U(Vm,"ytd-feedback-option-renderer",function(){if(Bdg!==void 0)return Bdg;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Bdg=e},{mode:1});var NdO;var w6=function(){return _.z.apply(this,arguments)||this};
_.Y(w6,_.z);w6.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
w6.prototype.onSingleSelectCheckedChanged=function(e){e=_.A3(e);for(var g=0;g<this.data.options.length;g++)if(e.data!==_.x(this.data.options[g],$gx)){var c="data.options."+g+".feedbackOptionRenderer.checked";this.notifyPath(c);this.set(c,!1)}};
w6.prototype.onSingleSelectCheckedChanged=w6.prototype.onSingleSelectCheckedChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],w6.prototype,"data",void 0);
_.t([_.Ks("yt-feedback-single-select-changed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],w6.prototype,"onSingleSelectCheckedChanged",null);_.t([_.bF({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],w6);
_.U(w6,"ytd-feedback-question-renderer",function(){if(NdO!==void 0)return NdO;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return NdO=e},{mode:1});var Sll;var q7=function(){return _.z.apply(this,arguments)||this};
_.Y(q7,_.z);q7.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
q7.prototype.getSelectedFeedbackResults=function(){for(var e={},g=0;g<this.data.questions.length;g++)for(var c=_.x(this.data.questions[g],Dgx),k=0;k<c.options.length;k++){var I=_.x(c.options[k],$gx);I&&I.checked&&(e[I.optionKey]=I.resultText)}return e};
q7.prototype.onKeyUp=function(){var e=this;_.HT(_.ft,function(){_.oC(e.hostElement,"yt-refit")});
_.ft.start()};
q7.prototype.submitSurvey=function(){var e=this.getSelectedFeedbackResults();Object.keys(e).length>0&&this.data.submitFeedbackEndpoint&&(e={survey_results:e,is_feedback_token_unencrypted:!0},_.Ss().resolve(_.xk).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},e,{element:this.hostElement})}))};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],q7.prototype,"data",void 0);_.t([_.bF({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],q7);
_.U(q7,"ytd-feedback-survey-renderer",function(){if(Sll!==void 0)return Sll;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Sll=e},{mode:1});var yHj;var KUx;var Ly=function(){return _.z.apply(this,arguments)||this};
_.Y(Ly,_.z);Ly.prototype.computeAlt=function(e){return _.mp(e)};
Ly.prototype.submitResponse=function(){var e,g;(e=this.data)!=null&&e.feedbackToken&&((g=this.data)==null?void 0:g.nextStageIndex)!==void 0&&(_.V1(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.V1(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Ly.prototype.onClick=function(){this.submitResponse()};
Ly.prototype.onClick=Ly.prototype.onClick;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ly.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ly.prototype,"vertical",void 0);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ly.prototype,"onClick",null);
_.t([_.bF({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Ly);
_.U(Ly,"ytd-single-select-answer-option-renderer",function(){if(KUx!==void 0)return KUx;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return KUx=e},{mode:1});var OKg;var r6=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return e};
_.Y(r6,_.z);r6.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
r6.prototype.dataChanged=function(){var e,g;this.vertical=((g=(e=this.data)==null?void 0:e.answerOrientation)!=null?g:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
r6.prototype.submitFeedback=function(e){var g;((g=this.data)==null?0:g.responseEndpoint)&&e&&_.tr(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[e]}])};
r6.prototype.dataChanged=r6.prototype.dataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],r6.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],r6.prototype,"eventForwardingBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],r6.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],r6.prototype,"vertical",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],r6.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],r6);
_.U(r6,"ytd-single-select-question-renderer",function(){if(OKg!==void 0)return OKg;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return OKg=e},{mode:1});var aa=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return e};
_.Y(aa,_.z);_.v=aa.prototype;_.v.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.v.dataChanged=function(){this.jumpToStage(0)};
_.v.jumpToStage=function(e){var g,c;if((g=this.data)==null?0:(c=g.stages)==null?0:c[e])this.currentStage=this.data.stages[e],this.refitAfterRender()};
_.v.computeAlt=function(e){return _.mp(e)};
_.v.computeSimpleMessage=function(e){var g;return(g=_.x(e,jUz))==null?void 0:g.messageText};
_.v.computeHideDismiss=function(e){var g;return(g=_.x(e,jf7))==null?void 0:g.hideParentDismissButton};
_.v.onDismissTap=function(){_.Z5(this.hostElement,"yt-close-popup-action");_.x(this.currentStage,jUz)||this.data.dismissalEndpoint&&_.Ss().resolve(_.xk).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.v.refitAfterRender=function(){var e=this;_.Va(this,function(){_.oC(e.hostElement,"yt-refit")})};
aa.prototype.dataChanged=aa.prototype.dataChanged;_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],aa.prototype,"eventForwardingBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],aa.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],aa.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m(L1D),_.B("design:type",Object)],aa.prototype,"ytdHatsSurveyBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],aa.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],aa.prototype,"currentStage",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aa.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],aa);
_.U(aa,"ytd-multi-stage-survey-renderer",function(){if(yHj!==void 0)return yHj;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return yHj=e},{mode:1});var MNM;var ny=function(){return _.z.apply(this,arguments)||this};
_.Y(ny,_.z);ny.prototype.computeAlt=function(e){return _.mp(e)};
ny.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.Ss().resolve(_.xk).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Z5(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(oAg(!1)))};
ny.prototype.onTap=function(){this.vertical&&this.submitResponse()};
ny.prototype.onTap=ny.prototype.onTap;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],ny.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ny.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],ny.prototype,"vertical",void 0);
_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ny.prototype,"onTap",null);_.t([_.bF({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],ny);
_.U(ny,"ytd-single-option-survey-option-renderer",function(){if(MNM!==void 0)return MNM;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return MNM=e},{mode:1});var CIq;var Ra=function(){return _.z.apply(this,arguments)||this};
_.Y(Ra,_.z);_.v=Ra.prototype;_.v.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){var e,g;this.vertical=(((e=this.data)==null?void 0:(g=e.surveyOrientation)==null?void 0:g.type)||"HORIZONTAL")==="VERTICAL"};
_.v.computeAlt=function(e){return _.mp(e)};
_.v.onDismissTap=function(){_.Z5(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Ss().resolve(_.xk).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(oAg(!1))};
Ra.prototype.dataChanged=Ra.prototype.dataChanged;_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],Ra.prototype,"eventForwardingBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(L1D),_.B("design:type",Object)],Ra.prototype,"ytdHatsSurveyBehavior",void 0);
_.t([_.m(_.Wv),_.B("design:type",Object)],Ra.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ra.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ra.prototype,"vertical",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ra.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Ra);
_.U(Ra,"ytd-single-option-survey-renderer",function(){if(CIq!==void 0)return CIq;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return CIq=e},{mode:1});var e8x;var Ei=function(){return _.z.apply(this,arguments)||this};
_.Y(Ei,_.z);Ei.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ei.prototype.onDismissTap=function(){_.Z5(this.hostElement,"yt-close-popup-action")};
Ei.prototype.onNavigate=function(){_.Z5(this.hostElement,"yt-close-popup-action")};
Ei.prototype.onNavigate=Ei.prototype.onNavigate;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],Ei.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ei.prototype,"data",void 0);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ei.prototype,"onNavigate",null);
_.t([_.bF({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Ei);
_.U(Ei,"ytd-survey-follow-up-renderer",function(){if(e8x!==void 0)return e8x;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return e8x=e},{mode:1});var gpx;var cqd;var kvA;var W0=function(){var e=_.z.apply(this,arguments)||this;e.polymer2="Element"in Polymer;return e};
_.Y(W0,_.z);_.v=W0.prototype;_.v.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.v.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.v.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.v.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("minutes-changed",this.minutes))};
_.v.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("seconds-changed",this.seconds))};
_.v.updateMinutesFromBinding=function(e){this.minutes=e.detail.value};
_.v.updateSecondsFromBinding=function(e){this.seconds=e.detail.value};
W0.prototype.secondsChangedForBinding=W0.prototype.secondsChangedForBinding;W0.prototype.minutesChangedForBinding=W0.prototype.minutesChangedForBinding;W0.prototype.secondsChanged=W0.prototype.secondsChanged;_.t([_.u(),_.B("design:type",String)],W0.prototype,"minutes",void 0);_.t([_.u(),_.B("design:type",String)],W0.prototype,"seconds",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],W0.prototype,"polymer2",void 0);
_.t([_.Cs("#seconds"),_.B("design:type",Object)],W0.prototype,"secondsEl",void 0);_.t([_.OY("seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],W0.prototype,"secondsChanged",null);_.t([_.OY("minutes"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],W0.prototype,"minutesChangedForBinding",null);
_.t([_.OY("seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],W0.prototype,"secondsChangedForBinding",null);_.t([_.Wo({is:"yt-timestamp-input",disableElementRegistration:!0})],W0);
_.U(W0,"yt-timestamp-input",function(){if(kvA===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;cqd===void 0&&(cqd=document.createElement("template"));var k=cqd;c.call(g,k.content.cloneNode(!0),e.content.firstChild);kvA=e}e=kvA;return e},{mode:2});var b4=function(){return _.z.apply(this,arguments)||this};
_.Y(b4,_.z);_.v=b4.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$22504_scroller.dialogElement=this.hostElement.parentNode};
_.v.dataChanged=function(){var e=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.u6().getPlayerPromise().then(function(g){g=g.getCurrentTime();e.minutes=Math.floor(g/60).toString();e.seconds=(Math.floor(g)%60).toString()})};
_.v.onTapSubmit=function(e){e.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(e={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(e.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(e.minutes=this.minutes,e.seconds=this.seconds),_.Ss().resolve(_.xk).resolveCommand(this.serviceEndpoint,{form:Object.assign({},e,{element:this.hostElement})}))};
_.v.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.v.onYtServiceRequestCompleted=function(e,g){g=g.actions;if(Array.isArray(g))for(var c=0,k=g.length;c<k;c++)_.x(g[c],_.k8)&&(e.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(g[c]))};
_.v.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.v.toggleSubmitButton=function(e){this.set("submitButton.isDisabled",!e)};
_.v.handleInput=function(){var e=this.issueType,g=this.affiliation,c=this.minutes,k=this.seconds;c=!this.showTimestamp||!!c&&!!k;this.toggleSubmitButton(!!this.descriptionText&&!!e&&!!g&&c)};
_.v.computeServiceEndpoint=function(e){return this.get("submitButton.buttonRenderer.serviceEndpoint",e)};
_.v.computeSubmitButton=function(e){(e=this.get("submitButton.buttonRenderer",e))&&(e=Object.assign({},e,{serviceEndpoint:void 0}));return e};
_.v.computeShowTimestamp=function(e){return!!e};
_.v.onValueChangedForIssueType=function(e){this.issueType=e.detail.value};
_.v.onValueChangedForAffiliation=function(e){this.affiliation=e.detail.value};
_.v.updateDescriptionTextFromBinding=function(e){this.descriptionText=e.detail.value};
_.v.updateFullNameTextFromBinding=function(e){this.fullNameText=e.detail.value};
_.v.updateMinutesFromBinding=function(e){this.minutes=e.detail.value};
_.v.updateSecondsFromBinding=function(e){this.seconds=e.detail.value};
b4.prototype.handleInput=b4.prototype.handleInput;b4.prototype.onYtServiceRequestError=b4.prototype.onYtServiceRequestError;b4.prototype.onYtServiceRequestCompleted=b4.prototype.onYtServiceRequestCompleted;b4.prototype.onYtServiceRequestSent=b4.prototype.onYtServiceRequestSent;b4.prototype.dataChanged=b4.prototype.dataChanged;_.t([_.m(_.tF.YtOpenPopupBehavior),_.B("design:type",Object)],b4.prototype,"ytOpenPopupBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.t([_.Cs("#scroller"),_.B("design:type",Object)],b4.prototype,"JSC$22504_scroller",void 0);_.t([_.Cs("#description"),_.B("design:type",HTMLInputElement)],b4.prototype,"description",void 0);_.t([_.Cs("#full-name"),_.B("design:type",Object)],b4.prototype,"fullName",void 0);_.t([_.u(),_.B("design:type",Object)],b4.prototype,"data",void 0);
_.t([_.u({computed:"computeShowTimestamp(data.timestampLabel)"}),_.B("design:type",Boolean)],b4.prototype,"showTimestamp",void 0);_.t([_.u({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.B("design:type",Object)],b4.prototype,"serviceEndpoint",void 0);_.t([_.u({computed:"computeSubmitButton(data)"}),_.B("design:type",Object)],b4.prototype,"submitButton",void 0);_.t([_.u(),_.B("design:type",String)],b4.prototype,"descriptionText",void 0);
_.t([_.u(),_.B("design:type",Number)],b4.prototype,"issueType",void 0);_.t([_.u(),_.B("design:type",Number)],b4.prototype,"affiliation",void 0);_.t([_.u(),_.B("design:type",String)],b4.prototype,"fullNameText",void 0);_.t([_.u(),_.B("design:type",String)],b4.prototype,"minutes",void 0);_.t([_.u(),_.B("design:type",String)],b4.prototype,"seconds",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],b4.prototype,"dataChanged",null);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],b4.prototype,"onYtServiceRequestSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],b4.prototype,"onYtServiceRequestCompleted",null);
_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],b4.prototype,"onYtServiceRequestError",null);_.t([_.OY("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],b4.prototype,"handleInput",null);_.t([_.bF({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],b4);
_.U(b4,"ytd-legal-report-details-form-renderer",function(){if(gpx!==void 0)return gpx;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return gpx=e},{mode:1});var Itb;var hn=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return e};
_.Y(hn,_.z);hn.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
hn.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var e=this.formRenderer.getForm();e&&this.data.submitEndpoint&&(_.Ss().resolve(_.xk).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},e,{element:this.hostElement})}),_.Z5(this.hostElement,"yt-close-popup-action"))}};
hn.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Z5(this.hostElement,"yt-close-popup-action"))};
hn.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
hn.prototype.onPopupClosed=hn.prototype.onPopupClosed;_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],hn.prototype,"ytEventForwardingBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],hn.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);
_.t([_.Cs("yt-form-renderer"),_.B("design:type",Object)],hn.prototype,"formRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],hn.prototype,"data",void 0);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hn.prototype,"onPopupClosed",null);_.t([_.bF({is:"ytd-form-popup-content",disableElementRegistration:!0})],hn);
_.U(hn,"ytd-form-popup-content",function(){if(Itb!==void 0)return Itb;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Itb=e},{mode:1});var JqJ;var X2=function(){return _.z.apply(this,arguments)||this};
_.Y(X2,_.z);X2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
X2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
X2.prototype.onPopupOpened=function(){_.oC(this.hostElement,"yt-invalidate-popup-tabbables")};
X2.prototype.onYtServiceRequestCompleted=function(e,g){g.data&&g.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.oC(this.hostElement,"yt-invalidate-popup-tabbables"))};
X2.prototype.onYtServiceRequestCompleted=X2.prototype.onYtServiceRequestCompleted;X2.prototype.onPopupOpened=X2.prototype.onPopupOpened;_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],X2.prototype,"ytEventForwardingBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],X2.prototype,"data",void 0);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],X2.prototype,"onPopupOpened",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],X2.prototype,"onYtServiceRequestCompleted",null);_.t([_.bF({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],X2);
_.U(X2,"ytd-form-popup-renderer",function(){if(JqJ!==void 0)return JqJ;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return JqJ=e},{mode:1});var vpP;var Ga=function(){var e=_.z.apply(this,arguments)||this;e.isLoading=!1;return e};
_.Y(Ga,_.z);_.v=Ga.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");qMl(this.hostElement)};
_.v.onYtServiceRequestSent=function(){this.isLoading=!0};
_.v.onYtServiceRequestCompleted=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.v.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Bm(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.v.closePopupHandler=function(){this.fireOnCloseActions()};
_.v.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var e=this.get("data.headerImage.thumbnails");e&&(e=_.F6(e,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+e+")")}};
_.v.onYtNavigate=function(e){(e=_.A3(e))&&e.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Ga.prototype.onYtNavigate=Ga.prototype.onYtNavigate;Ga.prototype.onHeaderImageChanged=Ga.prototype.onHeaderImageChanged;Ga.prototype.closePopupHandler=Ga.prototype.closePopupHandler;Ga.prototype.onYtServiceRequestCompleted=Ga.prototype.onYtServiceRequestCompleted;Ga.prototype.onYtServiceRequestSent=Ga.prototype.onYtServiceRequestSent;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],Ga.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ga.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ga.prototype,"isLoading",void 0);_.t([_.Cs("#header"),_.B("design:type",HTMLDivElement)],Ga.prototype,"header",void 0);_.t([_.Cs("#confirm-button"),_.B("design:type",_.gm)],Ga.prototype,"confirmButton",void 0);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ga.prototype,"onYtServiceRequestSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ga.prototype,"onYtServiceRequestCompleted",null);
_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Ga.prototype,"closePopupHandler",null);_.t([_.OY("data.headerImage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ga.prototype,"onHeaderImageChanged",null);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ga.prototype,"onYtNavigate",null);
_.t([_.bF({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Ga);
_.U(Ga,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(vpP!==void 0)return vpP;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return vpP=e},{mode:1});var wzr;var xT=function(){var e=_.z.apply(this,arguments)||this;e.isLoading=!1;return e};
_.Y(xT,_.z);_.v=xT.prototype;_.v.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);qMl(this.hostElement)};
_.v.onYtServiceRequestCompleted=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.v.onYtServiceRequestError=function(e){_.iD(this.hostElement,e.detail.error.message)};
_.v.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.v.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Z5(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.v.onDataChanged=function(){this.isLoading=!1;var e=this.get("data.headerImage.thumbnails");e&&(e=_.F6(e,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+e+")");e=_.EM();var g=_.RC(),c=this.get("data.trackingParams");c&&g&&e&&_.Yn(e,g,_.Jb(c))};
_.Bd.Object.defineProperties(xT.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
xT.prototype.onDataChanged=xT.prototype.onDataChanged;xT.prototype.onDomChange=xT.prototype.onDomChange;xT.prototype.onYtServiceRequestError=xT.prototype.onYtServiceRequestError;xT.prototype.onYtServiceRequestCompleted=xT.prototype.onYtServiceRequestCompleted;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],xT.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],xT.prototype,"isLoading",void 0);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xT.prototype,"hasDescription",null);_.t([_.Cs("tp-yt-paper-dialog-scrollable"),_.B("design:type",Object)],xT.prototype,"scrollable",void 0);_.t([_.Cs("#header"),_.B("design:type",HTMLElement)],xT.prototype,"header",void 0);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],xT.prototype,"onYtServiceRequestCompleted",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],xT.prototype,"onYtServiceRequestError",null);
_.t([_.Ks("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],xT.prototype,"onDomChange",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xT.prototype,"onDataChanged",null);_.t([_.bF({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],xT);
_.U(xT,"ytd-gaming-account-link-setting-renderer",function(){if(wzr!==void 0)return wzr;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return wzr=e},{mode:1});var qCr;var Lea;var DW=function(){var e=_.z.apply(this,arguments)||this;e.isHeader=!1;e.getEndpointForm=function(){return HqQ(e.data)};
return e};
_.Y(DW,_.z);_.v=DW.prototype;_.v.triggerHintActions=function(){var e=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var g=_.V1(e.hostElement,"yt-get-opened-popups-action");!(g&&g.length===1?g[0]:[]).some(function(c){c=c.openPopupAction.popupType;return c==="SURVEY"||c==="MEALBAR"||c==="HINT"})&&e.data.hintActions&&e.guideOpened&&(_.Bm(e.hostElement,e.data.hintActions,e.hostElement),e.data.hintActions=void 0)})};
_.v.getBadgeIconType=function(e){return e&&e.liveBroadcasting?"live":null};
_.v.onDown=function(){this.interaction.triggerDown()};
_.v.onUp=function(){this.interaction.triggerUp()};
_.v.onTap=function(e){if(this.data.serviceEndpoint){var g;_.G("shorts_controller_retrieve_seedless_sequence_v2")&&((g=_.x(this.data.serviceEndpoint,_.eh))==null?void 0:g.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):zO7(this.data.serviceEndpoint,this);e.preventDefault()}else this.data.navigationEndpoint&&!_.TJ(_.lg(e),this.hostElement,["A".toString()])&&_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.v.computeActive=function(e,g){if(!e)return!1;var c=e.navigationEndpoint;e=e.serviceEndpoint;if(!c&&!e||!g)return!1;if(c){e=(e=_.y8(g))&&["subscriptions","filteredsubscriptions"].includes(e);if(_.x(c,_.KU)&&_.x(g,_.KU)&&!e){var k=_.x(c,_.KU).browseId;g=_.x(g,_.KU).browseId;return k!==void 0&&g!==void 0&&(k===g||k==="VLWL"&&g==="FEwatch_later"||k==="FEwatch_later"&&g==="VLWL")}var I;c=(I=_.x(c.commandMetadata,_.OM))==null?void 0:I.url;g=(k=_.x(g.commandMetadata,_.OM))==null?void 0:k.url;return!(!c||
!g||c!==g&&c!==_.tv(g))}return this.isActiveShortsTab(e,g)};
_.v.isActiveShortsTab=function(e,g){g=!!_.x(g,_.eh)||!!_.x(g,_.hR);return(!!_.x(e,_.eh)||!!_.x(e,_.hR))&&g};
_.v.computeIsPrimary=function(e){return!!e};
_.Bd.Object.defineProperties(DW.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 e=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&e)return e}}});
DW.prototype.onTap=DW.prototype.onTap;DW.prototype.onUp=DW.prototype.onUp;DW.prototype.onDown=DW.prototype.onDown;DW.prototype.triggerHintActions=DW.prototype.triggerHintActions;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],DW.prototype,"componentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],DW.prototype,"rendererBehavior",void 0);_.t([_.m(_.TG.YtTaskEmitterBehavior),_.B("design:type",Object)],DW.prototype,"taskEmitterBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],DW.prototype,"activeEndpoint",void 0);_.t([_.u(),_.B("design:type",Object)],DW.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],DW.prototype,"guideOpened",void 0);_.t([_.u(),_.B("design:type",String)],DW.prototype,"type",void 0);_.t([_.Cs("yt-interaction"),_.B("design:type",Object)],DW.prototype,"interaction",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],DW.prototype,"isHeader",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("data","activeEndpoint"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DW.prototype,"active",null);_.t([_.u({reflectToAttribute:!0}),_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DW.prototype,"isPrimary",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.count","data.presentationStyle","data.badges.*"),_.B("design:type",String),_.B("design:paramtypes",[])],DW.prototype,"lineEndStyle",null);
_.t([_.p("lineEndStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],DW.prototype,"ariaLabel",null);_.t([_.OY("data.hintActions","guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DW.prototype,"triggerHintActions",null);_.t([_.Ks("down"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DW.prototype,"onDown",null);
_.t([_.Ks("up"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DW.prototype,"onUp",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DW.prototype,"onTap",null);_.t([_.bF({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],DW);
_.U(DW,"ytd-guide-entry-renderer",function(){if(Lea!==void 0)return Lea;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Lea=e},{mode:1});var $T=function(){var e=_.z.apply(this,arguments)||this;e.userToggled=!1;return e};
_.Y($T,_.z);_.v=$T.prototype;_.v.getItemsPath=function(){return"data.expandableItems"};
_.v.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.v.onExpanderItemTapped=function(e){var g=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.G("kevlar_guide_expandable_items_killswitch")&&_.Va(this,function(){_.oF(g.expandableItems)});
e.preventDefault()};
_.v.onCollapserItemTapped=function(e){var g=this;this._setExpanded(!1);this.userToggled=!0;e.preventDefault();this.expandableItems&&!_.G("kevlar_guide_collapsible_items_killswitch")&&_.Va(this,function(){_.Un(g.hostElement)})};
_.v.observeActiveEndpoint=function(){for(var e=this.activeEndpoint,g=this.data,c=this.expandableItems.children,k=0,I=c.length;k<I;k++)c[k].activeEndpoint=e;g&&g.autoExpandCommand&&e&&!this.userToggled&&(c=this.data.autoExpandCommand,g=!(!_.x(c,_.KU)||!_.x(e,_.KU)||_.x(c,_.KU).browseId!==_.x(e,_.KU).browseId),e=this.get("commandMetadata.webCommandMetadata.url",e),c=this.get("commandMetadata.webCommandMetadata.url",c),g=g||!!(e&&c&&e.includes(c)),this._setExpanded(g),g&&this.ytLazyListBehavior.fillRemainingListItems())};
$T.prototype.observeActiveEndpoint=$T.prototype.observeActiveEndpoint;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.uU.YtLazyListBehavior),_.B("design:type",Object)],$T.prototype,"ytLazyListBehavior",void 0);_.t([_.Cs("#expandable-items"),_.B("design:type",HTMLElement)],$T.prototype,"expandableItems",void 0);
_.t([_.u(),_.B("design:type",Object)],$T.prototype,"data",void 0);_.t([_.u({readOnly:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],$T.prototype,"expanded",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],$T.prototype,"initialCount",void 0);_.t([_.u(),_.B("design:type",Object)],$T.prototype,"activeEndpoint",void 0);_.t([_.OY("data","activeEndpoint","canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$T.prototype,"observeActiveEndpoint",null);
_.t([_.bF({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],$T);
_.U($T,"ytd-guide-collapsible-entry-renderer",function(){if(qCr!==void 0)return qCr;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return qCr=e},{mode:2});var rqJ;var atm;var fy=function(){var e=_.z.apply(this,arguments)||this;e.allVideosCount=0;e.renderGuideEntry=!1;return e};
_.Y(fy,_.z);fy.prototype.observeRenderEntry=function(){var e;this.renderGuideEntry=!((e=this.data)==null||!e.alwaysShow)||!!this.allVideosCount};
fy.prototype.observeRenderEntry=fy.prototype.observeRenderEntry;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],fy.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fy.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],fy.prototype,"activeEndpoint",void 0);_.t([_.u({selector:_.dTW}),_.B("design:type",Object)],fy.prototype,"allVideosCount",void 0);
_.t([_.u(),_.B("design:type",Object)],fy.prototype,"renderGuideEntry",void 0);_.t([_.k_("allVideosCount","data.alwaysShow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fy.prototype,"observeRenderEntry",null);_.t([_.bF({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],fy);
_.U(fy,"ytd-guide-downloads-entry-renderer",function(){if(atm===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);atm=e}e=atm;return e},{mode:1});var ji=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return e};
_.Y(ji,_.z);_.v=ji.prototype;_.v.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.v.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var e=this.sectionItems.children,g=0,c=e.length;g<c;g++)e[g].activeEndpoint=this.activeEndpoint}};
_.v.handleAddToGuideSectionAction=function(e){var g=_.x(e,w1O);if(g&&this.data&&(e=g.items,g=g.handlerData,e&&g&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(g)>-1)){g=0;for(var c=e.length;g<c;g++)e[g].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,e[g])}};
_.v.handleRemoveFromGuideSectionAction=function(e){var g=_.x(e,qNq);g&&this.data&&(e=g.guideEntryId,g=g.handlerData,e&&g&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(g)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(e,this.data.sectionItems),this.removeFromCollapsedSection(e,this.data.sectionItems)))};
_.v.removeFromExpandedSection=function(e,g){e=this.getEntryIndexMatchingId(e,g);e!==-1&&this.splice("data.sectionItems",e,1)};
_.v.removeFromCollapsedSection=function(e,g){var c=g.findIndex(function(k){return!!_.x(k,UBD)});
c&&c!==-1&&g[c]&&_.x(g[c],UBD)&&(g=_.x(g[c],UBD).expandableItems)&&(e=this.getEntryIndexMatchingId(e,g),e!==-1&&this.splice("data.sectionItems."+c+".guideCollapsibleEntryRenderer.expandableItems",e,1))};
_.v.getEntryIndexMatchingId=function(e,g){var c=this;return g.findIndex(function(k){return c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",k)===e})};
ji.prototype.activeEndpointChanged=ji.prototype.activeEndpointChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],ji.prototype,"actionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Cs("#section-items"),_.B("design:type",HTMLDivElement)],ji.prototype,"sectionItems",void 0);
_.t([_.Cs("#header-entry"),_.B("design:type",Object)],ji.prototype,"headerEntry",void 0);_.t([_.u(),_.B("design:type",Object)],ji.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],ji.prototype,"activeEndpoint",void 0);_.t([_.OY("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ji.prototype,"activeEndpointChanged",null);_.t([_.bF({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],ji);
_.U(ji,"ytd-guide-collapsible-section-entry-renderer",function(){if(rqJ===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);rqJ=e}e=rqJ;return e},{mode:1});var npB;var R83;var i4=function(){var e=_.z.apply(this,arguments)||this;e.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 e};
_.Y(i4,_.z);_.v=i4.prototype;
_.v.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.v.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var e=_.V1(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);e&&e.length===1&&e[0]&&_.V1(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.v.handleResetChannelUnreadCountCommand=function(e){var g;(e=(g=_.x(e,asq))==null?void 0:g.channelId)&&this.data&&this.data.items&&(g=this.getPathToEntryMatchingId(e))&&(this.set(g+".guideEntryRenderer.count",0),this.set(g+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.v.handleResetSubscriptionsUnreadDotCommand=function(e){var g,c=(g=_.x(e,nYx))==null?void 0:g.targetId,k;c&&(k=this.data)!=null&&k.items&&(e=this.data.items.findIndex(function(I){var J;return((J=I.guideEntryRenderer)==null?void 0:J.targetId)===c}),e<0||this.set("data.items."+e+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.v.getPathToEntryMatchingId=function(e){if(this.data&&this.data.items){var g=this.getEntryIndexMatchingId(e,this.data.items);if(g>-1)return"data.items."+g;for(var c=0;c<this.data.items.length;c++)if(g=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[c]))if(g=this.getEntryIndexMatchingId(e,g),g>-1)return"data.items."+c+".guideCollapsibleEntryRenderer.expandableItems."+g}};
_.v.handleAddToGuideSectionAction=function(e){var g=this;if(_.x(e,w1O)){var c=_.x(e,w1O).items;e=_.x(e,w1O).handlerData;var k,I;if(c&&e&&((k=this.data)==null?void 0:(I=k.handlerDatas)==null?void 0:I.indexOf(e))>-1){c=c.filter(function(q){return(q=g.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",q))&&!g.isGuideItemPresent(q)});
var J;if(e==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((J=this.data)==null?0:J.items)&&(k=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),k>-1)){this.splice.apply(this,["data.items",k+1,0].concat(_.KY(c)));return}this.unshift.apply(this,["data.items"].concat(_.KY(c)))}}};
_.v.isGuideItemPresent=function(e){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(e,this.data.items)!==-1)return!0;var g=this.data.items.find(function(c){return!!c.guideCollapsibleEntryRenderer});
if((g==null?0:g.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(e,g.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.v.getEntryIndexMatchingId=function(e,g){var c=this;return g.findIndex(function(k){return c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",k)===e})};
_.v.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(e,g){var c=this;return g.findIndex(function(k){return c.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",k)===e})};
_.v.handleRemoveFromGuideSectionAction=function(e){if(_.x(e,qNq)){var g=_.x(e,qNq).guideEntryId;e=_.x(e,qNq).handlerData;var c,k;g&&e&&((c=this.data)==null?void 0:(k=c.handlerDatas)==null?void 0:k.indexOf(e))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(g,this.data.items),this.removeFromCollapsedSection(g,this.data.items))}};
_.v.removeFromExpandedSection=function(e,g){e=this.getEntryIndexMatchingId(e,g);e!==-1&&this.splice("data.items",e,1)};
_.v.removeFromCollapsedSection=function(e,g){var c=g.findIndex(function(k){return!!k.guideCollapsibleEntryRenderer});
c!==-1&&(g=g[c].guideCollapsibleEntryRenderer.expandableItems)&&(e=this.getEntryIndexMatchingId(e,g),e!==-1&&this.splice("data.items."+c+".guideCollapsibleEntryRenderer.expandableItems",e,1))};
_.v.activeEndpointChanged=function(){for(var e=_.o1(this.hostElement).querySelector("#items").children,g=0,c=e.length;g<c;g++)e[g].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.v.guideOpenedChanged=function(){for(var e=_.o1(this.hostElement).querySelector("#items").children,g=0,c=e.length;g<c;g++)e[g].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
i4.prototype.guideOpenedChanged=i4.prototype.guideOpenedChanged;i4.prototype.activeEndpointChanged=i4.prototype.activeEndpointChanged;i4.prototype.persistentGuideChanged=i4.prototype.persistentGuideChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],i4.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.uU.YtLazyListBehavior),_.B("design:type",Object)],i4.prototype,"ytLazyListBehavior",void 0);_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],i4.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],i4.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],i4.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",String)],i4.prototype,"type",void 0);_.t([_.u({value:20}),_.B("design:type",Number)],i4.prototype,"initialCount",void 0);_.t([_.u({value:10}),_.B("design:type",Number)],i4.prototype,"targetFramerate",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],i4.prototype,"autoFill",void 0);_.t([_.u({value:50}),_.B("design:type",Number)],i4.prototype,"renderDelay",void 0);
_.t([_.OY("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i4.prototype,"persistentGuideChanged",null);_.t([_.k_("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i4.prototype,"activeEndpointChanged",null);_.t([_.k_("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i4.prototype,"guideOpenedChanged",null);
_.t([_.bF({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],i4);
_.U(i4,"ytd-guide-section-renderer",function(){if(R83!==void 0)return R83;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return R83=e},{mode:2});var EpA;var P0=function(){return _.z.apply(this,arguments)||this};
_.Y(P0,_.z);_.Bd.Object.defineProperties(P0.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],P0.prototype,"rendererBehaviors",void 0);_.t([_.u(),_.B("design:type",Object)],P0.prototype,"data",void 0);_.t([_.u(),_.p("data.signInButton.buttonRenderer.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],P0.prototype,"alignByText",null);_.t([_.bF({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],P0);
_.U(P0,"ytd-guide-signin-promo-renderer",function(){if(EpA===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);EpA=e}e=EpA;return e},{mode:1});var mj=function(){var e=_.z.apply(this,arguments)||this;e.showFooter=!1;return e};
_.Y(mj,_.z);mj.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}}}}};
mj.prototype.attached=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1){g=_.Ss().resolve(_.NN(_.xs));if(!g)return c.jumpTo(0);g.setGuideData(e.hostElement);return c.yield(0,3)}e.ytLazyListBehavior.initialCount=2;return c.return()})};
mj.prototype.onMouseExit=function(){_.G("web_guide_hover_expansion")&&_.V1(this.hostElement,"yt-guide-mouseleaved",[])};
mj.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
mj.prototype.dataChanged=mj.prototype.dataChanged;mj.prototype.onMouseExit=mj.prototype.onMouseExit;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],mj.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.uU.YtLazyListBehavior),_.B("design:type",Object)],mj.prototype,"ytLazyListBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],mj.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],mj.prototype,"showFooter",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],mj.prototype,"autoFill",void 0);_.t([_.Ks("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mj.prototype,"onMouseExit",null);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mj.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-guide-renderer",disableElementRegistration:!0})],mj);
_.U(mj,"ytd-guide-renderer",function(){if(npB!==void 0)return npB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return npB=e},{mode:2});var WeB;var py=function(){var e=_.z.apply(this,arguments)||this;e.systemIcons=_.G("kevlar_system_icons");e.frostedGlass=_.G("web_frosted_glass");e.onAllyMenuButtonClick=function(){var g=e.getShowSheetCommand();g&&e.ytComponentBehavior.resolveCommand(g)};
e.getEndpointForm=function(){return HqQ(e.data)};
return e};
_.Y(py,_.z);_.v=py.prototype;_.v.attached=function(){this.JSC$22557_sheetController=_.Ss().resolve(_.rC)};
_.v.onDown=function(){this.interaction.triggerDown()};
_.v.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var e;(e=this.JSC$22557_sheetController)==null||QgM(e,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.v.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.v.isSeedlessReelCommand=function(e){var g;return!!e&&((g=_.x(e,_.eh))==null?void 0:g.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.v.isShowSheetCommand=function(e){return!!e&&!!_.x(e,_.ku)};
_.v.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.v.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.v.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.v.onUp=function(){this.interaction.triggerUp()};
_.v.onTap=function(e){if(this.data.serviceEndpoint){if(_.G("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var g;(g=this.JSC$22557_sheetController)==null||QgM(g,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));e.preventDefault();
return}zO7(this.data.serviceEndpoint,this)}e.preventDefault()}else{var c;((c=this.data)==null?0:c.navigationEndpoint)&&!_.TJ(_.lg(e),this.hostElement,["A".toString()])&&_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.v.computeActive=function(e,g){if(!e)return!1;var c=e.navigationEndpoint;e=e.serviceEndpoint;if(!c&&!e||!g)return!1;if(c){e=_.x(c,_.KU);var k=_.x(g,_.KU);if(e&&k)return e.browseId===k.browseId&&e.params===k.params;var I;c=(I=_.x(c.commandMetadata,_.OM))==null?void 0:I.url;var J;g=(J=_.x(g.commandMetadata,_.OM))==null?void 0:J.url;return!(!c||!g||c!==g&&c!==_.tv(g))}return this.isActiveShortsTab(e,g)};
_.v.isActiveShortsTab=function(e,g){g=!!_.x(g,_.eh)||!!_.x(g,_.hR);return(!!_.x(e,_.eh)||!!_.x(e,_.hR))&&g};
_.v.computeTitle=function(e,g){return g?"":_.mp(e)};
_.v.computeEndpoint=function(e){return this.isSeedlessReelCommand(e.serviceEndpoint)?e.serviceEndpoint:e.navigationEndpoint};
_.v.computeHref=function(e){e=this.isSeedlessReelCommand(e.serviceEndpoint)?e.serviceEndpoint:e.navigationEndpoint;return(e=this.ytComponentBehavior.computeHref_(e))?e:"#"};
_.v.computeAriaLabelTitle=function(e){return _.mp(e)};
_.v.computeAllyShowMenuOnTap=function(e){return this.isShowSheetCommand(e.mouseEnterEndpoint)||this.isShowSheetCommand(e.serviceEndpoint)};
_.Bd.Object.defineProperties(py.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
py.prototype.onMouseLeave=py.prototype.onMouseLeave;py.prototype.onMouseEnter=py.prototype.onMouseEnter;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],py.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.qx),_.B("design:type",Object)],py.prototype,"ironButtonState",void 0);_.t([_.u(),_.B("design:type",Object)],py.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],py.prototype,"activeEndpoint",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],py.prototype,"noLabels",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.B("design:type",Boolean)],py.prototype,"isActive",void 0);_.t([_.u({computed:"computeEndpoint(data)"}),_.B("design:type",Object)],py.prototype,"computedEndpoint",void 0);
_.t([_.u({computed:"computeHref(data)"}),_.B("design:type",String)],py.prototype,"computedHref",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],py.prototype,"systemIcons",void 0);_.t([_.Cs("yt-interaction"),_.B("design:type",Object)],py.prototype,"interaction",void 0);_.t([_.p("isActive"),_.B("design:type",Object),_.B("design:paramtypes",[])],py.prototype,"ariaSelected",null);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],py.prototype,"frostedGlass",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.B("design:type",Boolean)],py.prototype,"allyShowMenuOnTap",void 0);_.t([_.Ks("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],py.prototype,"onMouseEnter",null);_.t([_.Ks("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],py.prototype,"onMouseLeave",null);
_.t([_.bF({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],py);
_.U(py,"ytd-mini-guide-entry-renderer",function(){if(WeB!==void 0)return WeB;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computedHref]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="0" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return WeB=e},{mode:_.ZF("kevlar_poly_si_batch_j063")?1:2});var bCb;var Ta=function(){var e=_.z.apply(this,arguments)||this;e.allVideosCount=0;e.noLabels=_.G("kevlar_mini_guide_no_labels");e.frostedGlass=_.G("web_frosted_glass");return e};
_.Y(Ta,_.z);_.v=Ta.prototype;_.v.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.v.onMouseEnter=function(){_.G("web_guide_hover_expansion")&&_.V1(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.v.visibleChanged=function(){if(this.visible&&!this.data){var e=_.Ss().resolve(_.NN(_.xs));e&&e.setGuideData(this.hostElement);_.Nd(_.gL(),this.miniGuideVe);(e=_.EM())&&this.miniGuideVe&&_.j4(e,this.miniGuideVe)}};
_.v.dataChanged=function(){var e=_.G("kevlar_guide_menu_on_hover")&&_.G("kevlar_modern_mini_guide"),g=_.G("kevlar_guide_menu_on_click")&&_.G("kevlar_modern_mini_guide"),c;var k=(c=this.data)==null?void 0:c.items;c=this.allVideosCount;var I=[];e=e?0:g?1:void 0;g=e!==void 0;if(k){for(var J=[],q=!1,L=_.w(k),n=L.next();!n.done;n=L.next()){n=n.value;if(n.guideSubscriptionsSectionRenderer){var R=void 0;J=((R=n.guideSubscriptionsSectionRenderer)==null?void 0:R.items)||[]}R=void 0;if((R=n.guideSectionRenderer)==
null?0:R.items)for(R=void 0,n=_.w((R=n.guideSectionRenderer)==null?void 0:R.items),R=n.next();!R.done;R=n.next()){var W=void 0;((W=R.value.guideEntryRenderer)==null?void 0:W.targetId)==="subscriptions-guide-item"&&(q=!0)}}k=_.w(k);for(L=k.next();!L.done;L=k.next())if(L=L.value,n=void 0,(n=L.guideSectionRenderer)==null?0:n.items)for(n=void 0,L=_.w((n=L.guideSectionRenderer)==null?void 0:n.items),n=L.next();!n.done;n=L.next()){n=n.value;var b=W=void 0;R=n.guideEntryRenderer||_.x((W=n)==null?void 0:
(b=W.guideCollapsibleSectionEntryRenderer)==null?void 0:b.headerEntry,QsO);W=[];b=[];var h=void 0;if(((h=R)==null?void 0:h.targetId)==="subscriptions-guide-item")W=J;else{var X=h=void 0;if((h=n)==null?0:(X=h.guideCollapsibleSectionEntryRenderer)==null?0:X.sectionItems)b=W=n.guideCollapsibleSectionEntryRenderer.sectionItems}ZqO(I,R,g?W:[],e);if(b.length>0)for(n=_.w(b),R=n.next();!R.done;R=n.next())R=R.value,b=_.x(R,mmz),W=void 0,b=b&&_.G("enable_mini_guide_downloads_item")&&(b.alwaysShow||c)?_.x((W=
b)==null?void 0:W.entryRenderer,QsO):_.x(R,QsO),ZqO(I,b,[])}else n=void 0,!q&&((n=L.guideSubscriptionsSectionRenderer)==null?0:n.items)&&(W=R=n=void 0,L=_.x((n=L.guideSubscriptionsSectionRenderer)==null?void 0:(R=n.items[0])==null?void 0:(W=R.guideCollapsibleSectionEntryRenderer)==null?void 0:W.headerEntry,QsO),ZqO(I,L,J,e))}this.miniGuideItems=I};
_.v.activeEndpointChanged=function(){for(var e=this.items.children,g=0;g<e.length;g++)e[g].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.v.registerWithViewTransitionManager=function(){var e=this;_.h2(_.ft,function(){var g=_.Ss().resolve(_.NN(_.JG));if(g&&g.isAnyTransitionEnabled){var c={};g.viewTransitionCoordinator.registerElement(e.hostElement,(c.slide="mini-guide-page-transition",c))}})};
Ta.prototype.activeEndpointChanged=Ta.prototype.activeEndpointChanged;Ta.prototype.dataChanged=Ta.prototype.dataChanged;Ta.prototype.visibleChanged=Ta.prototype.visibleChanged;Ta.prototype.onMouseEnter=Ta.prototype.onMouseEnter;_.t([_.m(_.Wv),_.B("design:type",Object)],Ta.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ta.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Ta.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Ta.prototype,"ytComponentBehavior",void 0);_.t([_.Cs("#items"),_.B("design:type",Object)],Ta.prototype,"items",void 0);_.t([_.u(),_.B("design:type",Object)],Ta.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Boolean)],Ta.prototype,"visible",void 0);_.t([_.u(),_.B("design:type",Object)],Ta.prototype,"miniGuideItems",void 0);_.t([_.u({selector:_.dTW}),_.B("design:type",Object)],Ta.prototype,"allVideosCount",void 0);_.t([_.u({value:_.VF(283834)}),_.B("design:type",_.n_)],Ta.prototype,"miniGuideVe",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ta.prototype,"noLabels",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ta.prototype,"frostedGlass",void 0);_.t([_.Ks("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ta.prototype,"onMouseEnter",null);_.t([_.k_("visible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ta.prototype,"visibleChanged",null);
_.t([_.k_("data","allVideosCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ta.prototype,"dataChanged",null);_.t([_.k_("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ta.prototype,"activeEndpointChanged",null);_.t([_.bF({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Ta);
_.U(Ta,"ytd-mini-guide-renderer",function(){if(bCb===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);bCb=e}e=bCb;return e},{mode:1});var h8A;var Xzp=/^[\x00-\x7F]+$/,l4=function(){return _.z.apply(this,arguments)||this};
_.Y(l4,_.z);_.Bd.Object.defineProperties(l4.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var e,g=_.mp((e=this.data)==null?void 0:e.handle);if(g)return _.PL("@"+g)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var e=_.mp(this.displayHandle),g,c=_.mp((g=this.data)==null?void 0:g.handleUrl);if(e&&c)return _.PL(c+e)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var e=_.mp(this.displayHandle);if(e&&!Xzp.test(e)){var g;return(g=this.data)==null?void 0:g.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var e=_.mp(this.displayHandleUrl),g,c=_.mp((g=this.data)==null?void 0:g.urlInfoText);if(e&&c)return _.PL(c+" "+e)}}});
_.t([_.u(),_.B("design:type",Object)],l4.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],l4.prototype,"displayHandle",null);_.t([_.p("displayHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],l4.prototype,"displayHandleUrl",null);_.t([_.p("displayHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],l4.prototype,"warningText",null);
_.t([_.p("displayHandleUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],l4.prototype,"urlInfoTextWithUrl",null);_.t([_.bF({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],l4);
_.U(l4,"ytd-handles-claiming-confirm-dialog-content",function(){if(h8A!==void 0)return h8A;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return h8A=e},{mode:1});var Gva;var An=function(){var e=_.z.apply(this,arguments)||this;e.okButtonOverride={style:"mono",type:"outline",size:"M"};return e};
_.Y(An,_.z);An.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
An.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],An.prototype,"okButtonOverride",void 0);_.t([_.u(),_.B("design:type",Object)],An.prototype,"data",void 0);_.t([_.bF({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],An);
_.U(An,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Gva!==void 0)return Gva;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Gva=e},{mode:1});var xUP;var DUj=/^[\x00-\x7F]+$/,si=function(){var e=_.z.apply(this,arguments)||this;e.isLoading=!1;return e};
_.Y(si,_.z);si.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var e;this.selectedHandle=(e=this.handleInput)==null?void 0:e.value;this.onSelectedHandleChanged(this.selectedHandle);_.V1(this.hostElement,"yt-refit-popups-action")}};
_.Bd.Object.defineProperties(si.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.PL("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.PL(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!DUj.test(this.selectedHandle)){var e;return(e=this.data)==null?void 0:e.warningText}}}});
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],si.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],si.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],si.prototype,"selectedHandle",void 0);_.t([_.u(),_.B("design:type",Object)],si.prototype,"isLoading",void 0);_.t([_.u(),_.B("design:type",Function)],si.prototype,"onSelectedHandleChanged",void 0);_.t([_.Cs("#channel-handle-input"),_.B("design:type",Object)],si.prototype,"handleInput",void 0);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],si.prototype,"handleUrlPrefix",null);_.t([_.p("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],si.prototype,"displayHandle",null);_.t([_.p("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],si.prototype,"displayHandleUrl",null);_.t([_.p("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],si.prototype,"warningText",null);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.t([_.bF({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],si);
_.U(si,"ytd-handles-claiming-edit-dialog-content",function(){if(xUP!==void 0)return xUP;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return xUP=e},{mode:1});var $UA;var F2=function(){var e=_.z.apply(this,arguments)||this;e.actionButtonOverride={style:"mono",type:"filled",size:"M"};e.cancelButtonOverride={style:"mono",type:"text",size:"M"};e.selectButtonDisabled=!1;e.isLoading=!1;e.hasSelectedHandleEventListener=!1;e.selectedHandleChanged=function(g){e.selectedHandle=g};
return e};
_.Y(F2,_.z);_.v=F2.prototype;_.v.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.v.onDataChanged=function(){var e,g;this.selectedHandle=(g=_.x((e=this.data)==null?void 0:e.inputField,y87))==null?void 0:g.handle};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onCancel=function(){this.selectedHandle="";_.Z5(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.onSelectHandle=function(){var e=this;if(this.selectedHandle!==void 0){var g;((g=this.data)==null?void 0:g.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(c,k){if(k.newHandleUpdateStatus!==void 0&&k.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&k.newHandleUpdateStatus.errorMessage)_.iD(e.hostElement,_.mp(k.newHandleUpdateStatus.errorMessage)),
e.isLoading=!1;else{var I;if((I=e.data)==null?0:I.onChannelUpdateSuccess){c=e.data.onChannelUpdateSuccess;var J,q;if(k=(J=_.x(c,_.k8))==null?void 0:(q=J.popup)==null?void 0:q.handlesClaimingConfirmDialogRenderer)k.handle=_.PL(e.selectedHandle);e.ytComponentBehavior.resolveCommand(c);_.Z5(e.hostElement,"yt-close-popup-action",[e.is])}else e.isLoading=!1}},
onServerError:function(){var c;e.content&&((c=e.content)==null?0:c.handleInput)&&e.content.handleInput.validate();e.isLoading=!1;_.iD(e.hostElement,_.C_("TRY_AGAIN_LATER"))}}}))}};
_.v.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
F2.prototype.onDataChanged=F2.prototype.onDataChanged;F2.prototype.onSelectedHandleChanged=F2.prototype.onSelectedHandleChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],F2.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],F2.prototype,"actionButtonOverride",void 0);_.t([_.u(),_.B("design:type",Object)],F2.prototype,"cancelButtonOverride",void 0);_.t([_.u(),_.B("design:type",Object)],F2.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",String)],F2.prototype,"selectedHandle",void 0);_.t([_.u(),_.B("design:type",Object)],F2.prototype,"selectButtonDisabled",void 0);_.t([_.u(),_.B("design:type",Object)],F2.prototype,"isLoading",void 0);_.t([_.u(),_.B("design:type",Object)],F2.prototype,"hasSelectedHandleEventListener",void 0);_.t([_.u(),_.B("design:type",Object)],F2.prototype,"handleInput",void 0);
_.t([_.OY("selectedHandle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F2.prototype,"onSelectedHandleChanged",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F2.prototype,"onDataChanged",null);_.t([_.Cs("ytd-handles-claiming-edit-dialog-content"),_.B("design:type",Object)],F2.prototype,"content",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.bF({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],F2);
_.U(F2,"ytd-handles-claiming-edit-dialog-renderer",function(){if($UA!==void 0)return $UA;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return $UA=e},{mode:1});var YCx;var u4=function(){return _.z.apply(this,arguments)||this};
_.Y(u4,_.z);_.Bd.Object.defineProperties(u4.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null?0:e.handle){var g;return _.PL("@"+_.mp((g=this.data)==null?void 0:g.handle))}}}});
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],u4.prototype,"formattedHandle",null);_.t([_.u(),_.B("design:type",Object)],u4.prototype,"data",void 0);_.t([_.bF({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],u4);
_.U(u4,"ytd-handles-claiming-radio-option-renderer",function(){if(YCx!==void 0)return YCx;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return YCx=e},{mode:1});var ftJ;var jAa=/^[\x00-\x7F]+$/,d6=function(){var e=_.z.apply(this,arguments)||this;e.initialRadioIndex="-1";e.isLoading=!1;e.maybeSubmitFeedback=function(){e.feedbackSurveyRenderer.submitSurvey()};
return e};
_.Y(d6,_.z);d6.prototype.updateSelectedHandleIndexFromBinding=function(e){this.selectedRadioIndex=+e.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(e)};
d6.prototype.selectedHandleChanged=function(e){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var g;this.selectedHandle=(g=this.handleInput)==null?void 0:g.value;this.onSelectedHandleChanged(e)}};
_.Bd.Object.defineProperties(d6.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var e;return this.ytRendererBehavior.getSimpleString((e=this.data)==null?void 0:e.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.PL("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.PL(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!jAa.test(this.selectedHandle)){var e;return(e=this.data)==null?void 0:e.warningText}}}});
_.t([_.u(),_.B("design:type",Object)],d6.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],d6.prototype,"initialRadioIndex",void 0);_.t([_.u(),_.B("design:type",Number)],d6.prototype,"selectedRadioIndex",void 0);_.t([_.u(),_.B("design:type",String)],d6.prototype,"selectedHandle",void 0);_.t([_.u(),_.B("design:type",Object)],d6.prototype,"isLoading",void 0);_.t([_.u(),_.B("design:type",Function)],d6.prototype,"onSelectedHandleChanged",void 0);
_.t([_.u(),_.B("design:type",Function)],d6.prototype,"onSelectedRadioIndexChanged",void 0);_.t([_.Cs("#channel-handle-input"),_.B("design:type",Object)],d6.prototype,"handleInput",void 0);_.t([_.Cs("ytd-feedback-survey-renderer"),_.B("design:type",Object)],d6.prototype,"feedbackSurveyRenderer",void 0);_.t([_.p("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],d6.prototype,"radioButtonLength",null);
_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],d6.prototype,"handleUrlPrefix",null);_.t([_.p("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],d6.prototype,"displayHandle",null);_.t([_.p("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],d6.prototype,"displayHandleUrl",null);_.t([_.p("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],d6.prototype,"warningText",null);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.t([_.bF({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],d6);
_.U(d6,"ytd-handles-claiming-select-dialog-content",function(){if(ftJ!==void 0)return ftJ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ftJ=e},{mode:1});var iCr;var za=function(){var e=_.z.apply(this,arguments)||this;e.actionButtonOverride={style:"mono",type:"filled",size:"M"};e.cancelButtonOverride={style:"mono",type:"text",size:"M"};e.initialRadioIndex="-1";e.selectButtonDisabled=!1;e.isLoading=!1;e.selectedRadioIndexChanged=function(g){e.selectedRadioIndex=Number(g.detail.value)};
e.selectedHandleChanged=function(g){e.selectedHandle=g.detail.value};
return e};
_.Y(za,_.z);_.v=za.prototype;_.v.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.v.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.v.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.V1(this.hostElement,"yt-refit-popups-action")};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Z5(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.onSelectHandle=function(){var e=this;if(this.selectedHandle!==void 0){var g;((g=this.data)==null?void 0:g.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(c,k){if(k.newHandleUpdateStatus!==void 0&&k.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&k.newHandleUpdateStatus.errorMessage)_.iD(e.hostElement,_.mp(k.newHandleUpdateStatus.errorMessage)),
e.isLoading=!1;else{var I;if((I=e.data)==null?0:I.onChannelUpdateSuccess){c=e.data.onChannelUpdateSuccess;k=_.x(c,_.k8);var J;if(k==null?0:(J=k.popup)==null?0:J.handlesClaimingConfirmDialogRenderer)k.popup.handlesClaimingConfirmDialogRenderer.handle=_.PL(e.selectedHandle);e.ytComponentBehavior.resolveCommand(c);_.Z5(e.hostElement,"yt-close-popup-action",[e.is])}else e.isLoading=!1}},
onServerError:function(){if(e.selectedRadioIndex===e.radioButtonLength){var c;e.content&&((c=e.content)==null?0:c.handleInput)&&e.content.handleInput.validate()}e.isLoading=!1;_.iD(e.hostElement,_.C_("TRY_AGAIN_LATER"))}}}))}};
_.v.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var e,g;this.selectedHandle=(e=this.content)==null?void 0:(g=e.handleInput)==null?void 0:g.value}else this.selectedRadioIndex>=0&&((e=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(e==null?void 0:e.handle):this.selectedHandle=void 0)};
_.v.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.v.getRadioItem=function(e){if(this.radioButtonLength>e&&e>=0)return _.x(this.data.radioButton[e],mFj)};
_.Bd.Object.defineProperties(za.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.radioButton)||[]).length}}});
za.prototype.onSelectedHandleChanged=za.prototype.onSelectedHandleChanged;za.prototype.onSelectedHandleIndexChanged=za.prototype.onSelectedHandleIndexChanged;za.prototype.onDataChanged=za.prototype.onDataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],za.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],za.prototype,"actionButtonOverride",void 0);_.t([_.u(),_.B("design:type",Object)],za.prototype,"cancelButtonOverride",void 0);
_.t([_.u(),_.B("design:type",Object)],za.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],za.prototype,"initialRadioIndex",void 0);_.t([_.u(),_.B("design:type",Number)],za.prototype,"selectedRadioIndex",void 0);_.t([_.u(),_.B("design:type",String)],za.prototype,"selectedHandle",void 0);_.t([_.u(),_.B("design:type",Object)],za.prototype,"selectButtonDisabled",void 0);_.t([_.u(),_.B("design:type",Object)],za.prototype,"isLoading",void 0);
_.t([_.p("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],za.prototype,"radioButtonLength",null);_.t([_.Cs("ytd-handles-claiming-select-dialog-content"),_.B("design:type",Object)],za.prototype,"content",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],za.prototype,"onDataChanged",null);
_.t([_.OY("selectedRadioIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],za.prototype,"onSelectedHandleIndexChanged",null);_.t([_.OY("selectedHandle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],za.prototype,"onSelectedHandleChanged",null);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],za.prototype,"ytRendererstamperBehavior",void 0);_.t([_.bF({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],za);
_.U(za,"ytd-handles-claiming-select-dialog-renderer",function(){if(iCr!==void 0)return iCr;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return iCr=e},{mode:1});var PWB;var mUx;var H0=function(){return _.z.apply(this,arguments)||this};
_.Y(H0,_.z);H0.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],H0.prototype,"data",void 0);_.t([_.bF({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],H0);
_.U(H0,"ytd-hotkey-dialog-section-option-renderer",function(){if(mUx!==void 0)return mUx;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return mUx=e},{mode:1});var pzp;var QO=function(){return _.z.apply(this,arguments)||this};
_.Y(QO,_.z);QO.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],QO.prototype,"data",void 0);_.t([_.bF({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],QO);
_.U(QO,"ytd-hotkey-dialog-section-renderer",function(){if(pzp!==void 0)return pzp;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return pzp=e},{mode:1});var Ui=function(){return _.z.apply(this,arguments)||this};
_.Y(Ui,_.z);Ui.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ui.prototype,"data",void 0);_.t([_.bF({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Ui);
_.U(Ui,"ytd-hotkey-dialog-content",function(){if(PWB!==void 0)return PWB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return PWB=e},{mode:1});var TVp;var oa=function(){return _.z.apply(this,arguments)||this};
_.Y(oa,_.z);oa.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var e=document.querySelector("ytd-hotkey-dialog-content #scrollable");e&&(e.dialogElement=this.hostElement.parentElement)};
oa.prototype.onCloseTap=function(){_.Z5(this.hostElement,"yt-close-popup-action")};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],oa.prototype,"data",void 0);_.t([_.bF({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],oa);
_.U(oa,"ytd-hotkey-dialog-renderer",function(){if(TVp!==void 0)return TVp;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return TVp=e},{mode:1});var ltT;var ZW=function(){return _.z.apply(this,arguments)||this};
_.Y(ZW,_.z);ZW.prototype.onYtServiceRequestError=function(){if(this.blocked){var e;var g=(e=this.data)==null?void 0:e.defaultServiceEndpoint}else{var c;g=(c=this.data)==null?void 0:c.toggledServiceEndpoint}var k;(g=(k=_.x(g,_.wUY))==null?void 0:k.onFailureAction)&&this.ytComponentBehavior.resolveCommand(g);this.updateBlockState(!this.blocked)};
ZW.prototype.onYtToggleButton=function(e){this.updateBlockState(e.detail.toggled)};
ZW.prototype.updateBlockState=function(e){if(e!==this.blocked){var g=this.blockedEntityKey;g&&this.ytdReduxBehavior.dispatch(_.cY("blockStateEntity",g,{key:g,blocked:e}));this.set("data.isToggled",e)}};
_.Bd.Object.defineProperties(ZW.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)}}});
ZW.prototype.onYtToggleButton=ZW.prototype.onYtToggleButton;ZW.prototype.onYtServiceRequestError=ZW.prototype.onYtServiceRequestError;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],ZW.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],ZW.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ZW.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],ZW.prototype,"blockedEntityKey",void 0);
_.t([_.u({selectorArgs:["blockedEntityKey"],selector:function(e,g){return _.Nc(e.entities,"blockStateEntity",g)}}),
_.B("design:type",Object)],ZW.prototype,"blockStateEntity",void 0);_.t([_.p("data","blockStateEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ZW.prototype,"blocked",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ZW.prototype,"onYtServiceRequestError",null);
_.t([_.Ks("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ZW.prototype,"onYtToggleButton",null);_.t([_.bF({is:"ytd-block-button",disableElementRegistration:!0})],ZW);
_.U(ZW,"ytd-block-button",function(){if(ltT!==void 0)return ltT;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ltT=e},
{mode:1});var AqB;var sAB;var VO=function(){return _.z.apply(this,arguments)||this};
_.Y(VO,_.z);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],VO.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],VO.prototype,"data",void 0);_.t([_.bF({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],VO);
_.U(VO,"ytd-kids-blocklist-picker-item-renderer",function(){if(sAB!==void 0)return sAB;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return sAB=e},{mode:1});var tn=function(){return _.z.apply(this,arguments)||this};
_.Y(tn,_.z);tn.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],tn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],tn.prototype,"data",void 0);_.t([_.bF({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],tn);
_.U(tn,"ytd-kids-blocklist-picker-content",function(){if(AqB!==void 0)return AqB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return AqB=
e},{mode:2});var Fed;var B0=function(){var e=_.z.apply(this,arguments)||this;e.hasAnyRequestSucceeded=!1;e.hasAnyRequestFailed=!1;e.numPendingRequests=0;return e};
_.Y(B0,_.z);_.v=B0.prototype;_.v.attached=function(){this.hostElement.setAttribute("dialog","")};
_.v.onDoneButtonTap=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.v.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.v.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.v.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.v.onPopupClosed=function(e){var g,c;if(((g=e.detail)==null?void 0:(c=g.popup)==null?void 0:c.is)==="tp-yt-paper-dialog"){var k;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((k=this.data)==null?0:k.successfulToastActionMessage)&&(e=_.Aw(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(e));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
B0.prototype.onPopupClosed=B0.prototype.onPopupClosed;B0.prototype.onYtServiceRequestError=B0.prototype.onYtServiceRequestError;B0.prototype.onYtServiceRequestCompleted=B0.prototype.onYtServiceRequestCompleted;B0.prototype.onYtServiceRequestSent=B0.prototype.onYtServiceRequestSent;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],B0.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],B0.prototype,"data",void 0);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B0.prototype,"onYtServiceRequestSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B0.prototype,"onYtServiceRequestCompleted",null);
_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B0.prototype,"onYtServiceRequestError",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],B0.prototype,"onPopupClosed",null);_.t([_.bF({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],B0);
_.U(B0,"ytd-kids-blocklist-picker-renderer",function(){if(Fed!==void 0)return Fed;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Fed=e},{mode:1});var ugA;var dUr;var N7=function(){return _.z.apply(this,arguments)||this};
_.Y(N7,_.z);N7.prototype.setTip=function(e){var g=this;this.data&&(this.tip=OH7(y9g.getInstance(),e,this.data),_.Va(this,function(){_.oC(g.hostElement,"yt-refit")}))};
N7.prototype.clearTip=function(){this.tip=void 0};
N7.prototype.computeHidden=function(e){return!e};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],N7.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.B("design:type",Boolean)],N7.prototype,"hidden",void 0);_.t([_.u(),_.B("design:type",Object)],N7.prototype,"tip",void 0);_.t([_.bF({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],N7);
_.U(N7,"ytd-menu-popup-tip-renderer",function(){if(dUr!==void 0)return dUr;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);
return dUr=e},{mode:1});var z8B;var Si=function(){var e=_.z.apply(this,arguments)||this;e.useIcons=!1;e.role="menuitem";e.systemIcons=_.G("kevlar_system_icons");return e};
_.Y(Si,_.z);_.v=Si.prototype;_.v.onFocus=function(){var e;(e=_.o1(this.hostElement).querySelector("tp-yt-paper-item"))==null||e.focus()};
_.v.onTap=function(){var e=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(e&&_.x(e,_.SV))this.componentBehavior.resolveCommand(e),this.updateToggledStateInEntity();else if(e){this.componentBehavior.resolveCommand(e)||_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}});var g;((g=_.x(e,_.K_))==null?void 0:g.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.v.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.v.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.v.updateToggledStateInEntity=function(){var e=this.data.toggleMenuServiceItemEntityKey,g=!this.data.isToggled;e&&this.ytdReduxBehavior.dispatch(_.cY("toggleMenuServiceItemEntity",e,{key:e,isToggled:g}))};
_.v.computeIcon=function(e,g,c){return(e=e?c:g)&&e.iconType?_.NY(e.iconType):""};
_.v.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.v.isIconActive=function(e){return!_.G("toggle_menu_active_icon_killswitch")&&e};
_.Bd.Object.defineProperties(Si.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((e=this.data)==null?0:e.isToggled)?(g=this.data)==null?void 0:g.toggledText:(c=this.data)==null?void 0:c.defaultText}}});
Si.prototype.toggledStateEntityChanged=Si.prototype.toggledStateEntityChanged;Si.prototype.onYtServiceRequestCompleted=Si.prototype.onYtServiceRequestCompleted;Si.prototype.onTap=Si.prototype.onTap;Si.prototype.onFocus=Si.prototype.onFocus;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Si.prototype,"componentBehavior",void 0);
_.t([_.m(_.Wv),_.B("design:type",Object)],Si.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Si.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Si.prototype,"useIcons",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Si.prototype,"role",void 0);_.t([_.u({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.B("design:type",String)],Si.prototype,"icon",void 0);
_.t([_.u({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.Jg.toggleMenuServiceItemEntitySelector}),_.B("design:type",Object)],Si.prototype,"toggleMenuServiceItemEntity",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Si.prototype,"systemIcons",void 0);_.t([_.Ks("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Si.prototype,"onFocus",null);
_.t([_.p("data.isToggled"),_.B("design:type",Object),_.B("design:paramtypes",[])],Si.prototype,"toggleButtonText",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Si.prototype,"onTap",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Si.prototype,"onYtServiceRequestCompleted",null);
_.t([_.OY("toggleMenuServiceItemEntity.isToggled","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Si.prototype,"toggledStateEntityChanged",null);_.t([_.bF({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Si);
_.U(Si,"ytd-toggle-menu-service-item-renderer",function(){if(z8B!==void 0)return z8B;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return z8B=e},{mode:1});var HCB;var yO=function(){return _.z.apply(this,arguments)||this};
_.Y(yO,_.z);yO.prototype.onFocus=function(){var e;(e=_.o1(this.hostElement).querySelector("tp-yt-paper-item"))==null||e.focus()};
_.Bd.Object.defineProperties(yO.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Km(this.data.iconUrl)}}});
yO.prototype.onFocus=yO.prototype.onFocus;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],yO.prototype,"rendererBehavior",void 0);_.t([_.m(_.B$.YtEndpointBehavior),_.B("design:type",Object)],yO.prototype,"ytEndpointBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],yO.prototype,"data",void 0);_.t([_.Ks("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yO.prototype,"onFocus",null);
_.t([_.p("data.iconUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],yO.prototype,"imageSource",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],yO);
_.U(yO,"ytd-menu-custom-icon-item-renderer",function(){if(HCB!==void 0)return HCB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return HCB=e},{mode:2});_.sL(_.j5,"yt-list-item-view-model",{props:{data:_.jx,isMenuItem:_.jx,isCompact:_.jx,onTap:_.TF,trailingAccessory:_.TF,hideSelectionTextChevron:_.jx,disabled:_.jx,inPopup:_.jx,disableHorizontalPadding:_.jx,isOverlay:_.jx,isToggled:_.jx,ariaLabel:_.jx,ariaPressed:_.jx,shouldNotFillIcon:_.jx}});var Ky=function(){var e=_.z.apply(this,arguments)||this;e.disableBackdropFilter=_.G("web_disable_backdrop_filter");return e};
_.Y(Ky,_.z);_.v=Ky.prototype;
_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.v.computeAriaLabel=function(e){return e};
_.v.onPopupOpened=function(){this.items.selected=0;for(var e=_.w(_.o1(this.items).children),g=e.next();!g.done;g=e.next())g.value.popupPositionTarget=this.positionTarget;if(e=this.popupTip||void 0)e.setTip(this.source||""),this.source=void 0;this.veData&&(e=_.EM())&&_.iB(e,[this.veData])};
_.v.onPopupClosed=function(){var e=this.popupTip||void 0;e&&e.clearTip()};
_.v.onIronActivate=function(e){this.shouldPersist(e)||_.Z5(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(e=_.EM())&&_.m7(e,this.veData)};
_.v.shouldPersist=function(e){var g,c;if(((g=e.detail)==null?void 0:g.selected)===void 0||(c=this.data)==null||!c.items)return!1;var k,I;return!((I=(k=this.data.items[e.detail.selected])==null?void 0:k.toggleMenuServiceItemRenderer)==null||!I.persistentOnMenuPopup)};
_.v.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(e){return e.menuNavigationItemRenderer?!!e.menuNavigationItemRenderer.icon:e.menuServiceItemRenderer?!!e.menuServiceItemRenderer.icon:e.menuConditionalServiceItemRenderer?!!e.menuConditionalServiceItemRenderer.icon:e.menuConditionalNavigationItemRenderer?!!e.menuConditionalNavigationItemRenderer.icon:e.toggleMenuServiceItemRenderer?!!e.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Ky.prototype.onPopupClosed=Ky.prototype.onPopupClosed;Ky.prototype.onPopupOpened=Ky.prototype.onPopupOpened;_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],Ky.prototype,"ytEventForwardingBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],Ky.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Ky.prototype,"veData",void 0);_.t([_.u({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.B("design:type",String)],Ky.prototype,"ariaLabel",void 0);_.t([_.u({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Ky.prototype,"useIcons",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Ky.prototype,"disableBackdropFilter",void 0);_.t([_.Cs("#items"),_.B("design:type",Object)],Ky.prototype,"items",void 0);_.t([_.Cs("ytd-menu-popup-tip-renderer"),_.B("design:type",Object)],Ky.prototype,"popupTip",void 0);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ky.prototype,"onPopupOpened",null);
_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ky.prototype,"onPopupClosed",null);_.t([_.bF({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Ky);
_.U(Ky,"ytd-menu-popup-renderer",function(){if(ugA!==void 0)return ugA;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ugA=e},{mode:1});var QAa;var UUT=_.H(function(e){e=_.FA(e,{icon:void 0});var g=e.data;e=e.icon;var c=function(){return g().iconBadgeText},k={},I=_.o6("yt-spec-icon-badge-shape",function(){a:switch(g().iconBadgeType){case "notification":var J="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":J="yt-spec-icon-badge-shape--type-cart";break a;default:J=""}return J},function(){a:switch(g().iconBadgeStyle){case "overlay":var J="yt-spec-icon-badge-shape--style-overlay";
break a;default:J=""}return J},(k["yt-spec-icon-badge-shape--text-size-small"]=function(){var J=c();
return!!((J==null?0:J.length)&&J.length>2)},k));
return _.a("yt-icon-badge-shape",null,_.a(_.E,{cond:e,then:function(J){return _.a("div",{class:I},_.a("div",{class:"yt-spec-icon-badge-shape__icon"},_.a(_.SU,{icon:J})),_.a(_.E,{cond:c,then:function(q){return _.a("div",{class:"yt-spec-icon-badge-shape__badge"},q)}}))}}))},"gl");
UUT.idomCompat=!0;_.sL(UUT,"yt-icon-badge-shape",{props:{data:_.jx,icon:_.jx}});var Oi=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};e.unseenCount=0;e.isOverlay=!1;return e};
_.Y(Oi,_.z);_.v=Oi.prototype;_.v.attached=function(){var e=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(g){e.onServiceWorkerMessage(g)})};
_.v.onDataChanged=function(){this.isAttached&&!this.JSC$22644_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$22644_lastData=this.data};
_.v.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.v.computeIcon=function(){var e,g;return(e=this.data)==null?void 0:(g=e.icon)==null?void 0:g.iconType};
_.v.onServiceWorkerMessage=function(e){e.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.v.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.x(this.data.updateUnseenCountEndpoint,_.K_)&&_.x(this.data.updateUnseenCountEndpoint,_.K_).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.v.handleUpdateNotificationsUnseenCountAction=function(e){var g=this;e=_.x(e,riD);e!=null&&e.unseenCount&&e.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(e.unseenCount),_.ft.addLowPriorityJob(function(){g.data.updateUnseenCountEndpoint&&g.ytComponentBehavior.resolveCommand(g.data.updateUnseenCountEndpoint)},e.timeoutMs))};
_.v.onClick=function(){_.oC(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var e=_.V1(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),g=this.data.menuRequest;e&&e.length===1&&e[0]?_.Z5(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):g&&this.ytComponentBehavior.resolveCommand(g)};
_.v.handleTopbarMenuClosedAction=function(e){e==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.v.toggleIconState=function(e){this.iconButton&&(this.iconButton.pressed=e)};
_.v.sendUnseenCountRequest=function(e){var g=this;_.h2(_.ft,function(){g.ytComponentBehavior.resolveCommand(e)})};
_.v.updateCountUI=function(e){this.set("unseenCount",e<9?e:"9+")};
_.Bd.Object.defineProperties(Oi.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Oi.prototype.handleUpdateNotificationsUnseenCountAction=Oi.prototype.handleUpdateNotificationsUnseenCountAction;Oi.prototype.onDataChanged=Oi.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Oi.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.sJ),_.B("design:type",Object)],Oi.prototype,"ytdOpenPopupBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Oi.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Oi.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Oi.prototype,"unseenCount",void 0);_.t([_.u(),_.B("design:type",Object)],Oi.prototype,"isOverlay",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],Oi.prototype,"showTooltips",void 0);_.t([_.Cs("yt-icon-button"),_.B("design:type",Object)],Oi.prototype,"iconButton",void 0);
_.t([_.p("unseenCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],Oi.prototype,"showNotificationCount",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Oi.prototype,"onDataChanged",null);_.t([_.Ks("yt-update-notifications-unseen-count-action"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],Oi.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.t([_.bF({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Oi);
_.U(Oi,"ytd-notification-topbar-button-renderer",function(){if(QAa!==void 0)return QAa;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return QAa=e},{mode:2});var opa;var M7=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return e};
_.Y(M7,_.z);M7.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}}}}}};
M7.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
M7.prototype.onDarkModeToggled=function(e){this.dark=e};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],M7.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],M7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],M7.prototype,"data",void 0);_.t([_.u({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],M7.prototype,"dark",void 0);
_.t([_.bF({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],M7);
_.U(M7,"yt-pdg-buy-flow-header-renderer",function(){if(opa!==void 0)return opa;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return opa=e},{mode:1});var ZCx;var VKr;var Cy=function(){var e=_.z.apply(this,arguments)||this;e.immediateValue=0;e.isDarkTheme=!1;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(Cy,_.z);_.v=Cy.prototype;_.v.created=function(){_.hc.requestAvailability()};
_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.dataChanged=function(){var e=_.o1(this.hostElement).querySelector("#color-slider");e.immediateValue&&this.updateSliderKnobAndGradientStyles(e.immediateValue);this.data.notches[0].knobColorArgb&&_.Nk(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.EY(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.uo("HTML_DIR")==="rtl"&&_.o1(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.v.onSliderImmediateChange=function(){var e=_.o1(this.hostElement).querySelector("#color-slider");e.dragging&&(e.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(e.immediateValue),this.updateSliderKnobAndGradientStyles(e.immediateValue)),this.updateSliderAria())};
_.v.onSliderChange=function(){var e=_.o1(this.hostElement).querySelector("#color-slider");e.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(e.immediateValue),this.updateSliderKnobAndGradientStyles(e.immediateValue));this.updateSliderAria()};
_.v.updateSliderAria=function(){var e=_.o1(this.hostElement).querySelector("#color-slider"),g=_.o1(this.hostElement).querySelector("#color-slider");g=_.mp(this.data.notches[g.immediateValue].tierValue);_.GvK()&&_.oC(this.hostElement,"iron-announce",{text:g});e.setAttribute("aria-valuetext",g)};
_.v.updateSuperThanksSelectedTierEntity=function(e){if(e!==this.immediateValue){var g,c,k=this==null?void 0:(g=this.data)==null?void 0:(c=g.superThanksSelectedTierEntity)==null?void 0:c.key;k&&k.length>0&&this.ytdReduxBehavior.dispatch(_.cY("superThanksSelectedTierEntity",k,{key:k,index:e}))}};
_.v.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.v.updateSliderKnobAndGradientStyles=function(e){this.immediateValue=e;e=this.data.notches[e];if(e==null?0:e.knobColorArgb)var g={"--ytd-pdg-color-slider-knob-color":_.EY(e.knobColorArgb)};(e==null?0:e.linearGradientCssStyle)&&g!==null&&(g=Object.assign({},g,{"--ytd-pdg-color-slider-active-color":e==null?void 0:e.linearGradientCssStyle}));g!==null&&_.Nk(this.hostElement,g)};
Cy.prototype.onSliderChange=Cy.prototype.onSliderChange;Cy.prototype.onSliderImmediateChange=Cy.prototype.onSliderImmediateChange;Cy.prototype.dataChanged=Cy.prototype.dataChanged;_.t([_.u(),_.B("design:type",Object)],Cy.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Cy.prototype,"immediateValue",void 0);_.t([_.u(),_.B("design:type",Number)],Cy.prototype,"maxMarkers",void 0);
_.t([_.u({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Edo}),_.B("design:type",Object)],Cy.prototype,"superThanksSelectedTierEntity",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Cy.prototype,"isDarkTheme",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Cy.prototype,"ytdReduxBehavior",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cy.prototype,"dataChanged",null);
_.t([_.Ks("immediate-value-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cy.prototype,"onSliderImmediateChange",null);_.t([_.Ks("change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cy.prototype,"onSliderChange",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Cy);
_.U(Cy,"ytd-pdg-color-slider-renderer",function(){if(VKr!==void 0)return VKr;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return VKr=e},{mode:1});var tKA;var BVa;var e1=null;
_.rk({is:"ytd-comment-input",_template:function(){if(BVa!==void 0)return BVa;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return BVa=e},
behaviors:[_.tfU.YtHostElementBehavior,_.yB,_.hF.YtComponentBehavior,_.Fa.YtRendererstamperBehavior,_.QJv.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 _.Y3}},
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",_.yg(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;_.Bk();this.focus()},
detached:function(){document.removeEventListener("tap",_.yg(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(e){e=e.detail;e=e.isCustomEmoji?e.shortcuts[0]:e.emojiId;var g=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(g,e);this.maybeUpdateTextDirection_();_.oC(this.hostElement,"input")},
getInputRange_:function(){var e=_.gY();if(e){e=e.getBrowserRangeObject();for(var g=e.commonAncestorContainer;g;){if(g===this.getEditableTextArea_())return e;g=g.parentNode}}e=this.getEditableTextArea_();e=_.IY(e,e.childNodes.length);e.select();return e.getBrowserRangeObject()},
insertTextWithEmojis_:function(e,g,c){(g=this.emojiManager.createDocumentFragment(g,!0,!1,c===void 0?!0:c))&&g.childNodes.length!==0&&(e.collapsed||e.deleteContents(),c=g.lastChild,e.insertNode(g),_.ybv(c).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var e=_.gY();if(e){var g=e.JSC$11664_getStartNode(),c=e.JSC$11664_getEndNode();if(VAO(g)&&VAO(c)){var k=e.JSC$11664_getStartOffset(),I;if(_.S$&&g.nodeType===Node.ELEMENT_NODE&&(I=_.Q4Z(g)))_.IY(I,0).select();else{I=v7(g)?g:_.Xm(g,v7);var J=v7(c)?c:_.Xm(c,v7);if(I||J)if(e.isCollapsed()){if(g.nodeType===Node.TEXT_NODE){e=!0;k===g.length&&(e=!1);if(e1==="end"||e1==="right")e=!1;g=g.parentNode;e=[].concat(_.KY(g.parentNode.childNodes)).indexOf(g)+(e?0:1);_.IY(g.parentNode,
e).select()}}else I?I.previousSibling&&I.previousSibling.length>0?_.JZ(c,e.JSC$11664_getEndOffset(),I.previousSibling,I.previousSibling.length-1).select():(g=document.createTextNode("\u200b"),I.parentNode.insertBefore(g,I),_.JZ(c,e.JSC$11664_getEndOffset(),g,0).select()):J&&(J.nextSibling&&J.nextSibling.length>0?_.JZ(g,e.JSC$11664_getStartOffset(),J.nextSibling,1).select():(c=document.createTextNode("\u200b"),J.parentNode.insertBefore(c,J.nextSibling),_.JZ(g,e.JSC$11664_getStartOffset(),c,c.length).select()));
e1=null}}else e1=null}else e1=null},
leftKeyPressed_:function(){e1="left"},
rightKeyPressed_:function(){e1="right"},
endKeyPressed_:function(){e1="end"},
maybeDeleteChip_:function(){var e=OqS(!0);if(e){var g=_.gY(),c=g.JSC$11664_getStartNode();g=g.JSC$11664_getStartOffset();_.kQ(c,g,e,e.childNodes.length).select()}},
maybeBackspaceChip_:function(){var e=OqS(!1);if(e){var g=_.gY(),c=g.JSC$11664_getStartNode();g=g.JSC$11664_getStartOffset();_.kQ(c,g,e,0).select()}},
maybeBackspaceChipWordMode_:function(e){var g=_.gY();if(g.isCollapsed()){var c=g.JSC$11664_getStartNode();g=g.JSC$11664_getStartOffset();var k=MAl(c,g,!0);k&&(_.kQ(c,g,k,0).select(),document.execCommand("delete"),e.preventDefault(),e.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(e){var g=_.gY();if(g.isCollapsed()){var c=g.JSC$11664_getStartNode();g=g.JSC$11664_getStartOffset();var k=MAl(c,g,!1);k&&(_.kQ(c,g,k,k.childNodes.length).select(),document.execCommand("delete"),e.preventDefault(),e.stopImmediatePropagation())}},
onContentClick:function(e){e.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(e){e.defaultPrevented||e.currentTarget.tagName==="YTD-COMMENT-INPUT"&&v7(e.target)&&e.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.o1(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.o1(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(e,g){e=B0v(e,this.emojiManager,g).cloneNode(!0);for(g=e.firstChild;g;)if(g.nodeType!==1)g=g.nextSibling;else switch(g.tagName){case "BR":var c=_.Gl();_.S5I(c,g);g=c.nextSibling;break;case "DIV":(c=g.lastChild)&&g.nextSibling&&_.YE(_.Gl(),c);g.previousSibling&&(g.previousSibling.nodeType===1||g.previousSibling.nodeType===3&&!g.previousSibling.textContent.endsWith("\n"))&&_.$E(_.Gl(),g);c&&c.nodeName==="BR"&&_.ev(c);c=g;g.hasChildNodes()?(g=g.firstChild,
_.ydq(c)):(g=g.nextSibling,_.ev(c));break;default:g=g.nextSibling}return Cyq(e)},
setTextAreaValue:function(e){e||(e="");var g=this.getEditableFormattedString_();g.text="";this.getEditableTextArea_().innerText="";typeof e==="string"&&(e={runs:[{text:e}]});g.text=e},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();e1=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var e=this.getEditableTextArea_();e&&(_.IY(e,e.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.uo("HTML_DIR")==="rtl"){var e=this.getEditableTextArea_(),g=this.getTextAreaValue()!==""?"auto":"rtl";e.setAttribute("dir",g)}},
handleInputEvent_:function(){var e=null;if(this.isEmojiButtonDisplayed){var g=this.getInputRange_();g&&(e=this.emojiInput.retrieveTextBeforeRange(g))}this.insertText_(e,!0);this.updateCharCount_();e=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=e.scrollHeight>e.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var e=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:e})},
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(e){this.isEmojiButtonDisplayed&&(e.preventDefault(),e.stopImmediatePropagation(),e=e.clipboardData.getData("text/plain"),this.insertText_(e,!1,!1),_.oC(this.hostElement,"input"))},
insertText_:function(e,g,c){g=g===void 0?!1:g;c=c===void 0?!0:c;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&e){var k=this.getInputRange_().cloneRange();this.emojiManager&&k&&(g&&this.emojiInput.offsetStartOfRangeBy(k,e.length),this.insertTextWithEmojis_(k,e,c),tAx(this.getEditableTextArea_().lastChild)||(k=this.getInputRange_().cloneRange()),k&&(this.emojiInput.updateSuggestions(k,e),this.updateSuggestionOffset_(k)))}},
getSimpleString:_.mp,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(e){return e?"focused":"not-focused"},
computePlaceholderText_:function(e){return this.getSimpleString(e)},
computeEditableText_:function(e){return this.getSimpleString(e)},
onPrefilledContentDismissed_:function(e){e.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(e,g){e?this.fire("yt-autonav-pause-focus"):g!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(e){var g=this.getEditableTextArea_();[].concat(_.KY(e.dataTransfer.items)).forEach(function(c){c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(k){g.appendChild(document.createTextNode(k))})});
e.preventDefault()},
preventDefault_:function(e){e.preventDefault()},
onSuggestionInsert_:function(e){this.insertTextWithEmojis_(e.detail.range,e.detail.text)},
onEmojiSuggestionClick_:function(e){this.emojiInput.insertSuggestion(e.detail)},
updateSuggestionOffset_:function(e){if(this.emojiInput&&_.o1(this.emojiInput).querySelector("#dropdown")){var g=this.getEditableTextArea_().getBoundingClientRect().bottom,c=e.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(g-c)+5;g=this.getEditableTextArea_().getBoundingClientRect().left;e=e.getBoundingClientRect().left-g;_.o1(this.emojiInput).querySelector("#dropdown").style.marginLeft=e+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.pt("yt-post"));return this.localStorage}});var gf=function(){var e=_.z.apply(this,arguments)||this;e.currentCommentOptionIndex=0;e.isEmojiPickerDisplayed=!1;e.emojiManager=_.Y3;e.isUgcEmpty=!1;e.userGeneratedCommentChangedHandler=function(){_.oC(e.hostElement,"ytd-pdg-user-generated-comment-changed");e.isEmojiYtdCommentInputEnabled&&(e.isUgcEmpty=!e.ytdCommentInputEl.getTextAreaValue())};
e.pasteHandler=function(g){g.preventDefault();g.stopImmediatePropagation();var c;if(g=(c=g.clipboardData)==null?void 0:c.getData("text/plain"))c=document.getSelection().getRangeAt(0),c.collapsed||c.deleteContents(),g=document.createTextNode(g),c.insertNode(g),c.selectNodeContents(g),c.collapse(!1),g=window.getSelection(),g.removeAllRanges(),g.addRange(c)};
e.onDocumentClick=function(g){if(e.isEmojiPickerDisplayed){var c,k,I;!(g.target instanceof Node)||(c=g.composedPath())!=null&&c.includes(e.editableTextEl)||(k=g.composedPath())!=null&&k.includes(e.emojiButtonEl)||(I=g.composedPath())!=null&&I.includes(e.emojiPickerEl)||(e.isEmojiPickerDisplayed=!1)}};
return e};
_.Y(gf,_.z);_.v=gf.prototype;_.v.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.v.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.v.detached=function(){var e;(e=this.contentEl)==null||e.removeEventListener("input",this.userGeneratedCommentChangedHandler);var g;(g=this.contentEl)==null||g.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.v.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.v.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var e;this.contentEl.textContent=this.rendererBehavior.getSimpleString((e=this.data)==null?void 0:e.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.v.reloadEmojis=function(){this.emojiPickerEl&&_.x(this.emojiPicker,_.o8s)&&this.emojiPickerEl.updateEmojiCategories()};
_.v.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Nk(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.v.handleBackgroundColorStyling=function(){var e;if((e=this.currentCommentOption)==null?0:e.commentBackgroundColorArgb){var g;_.Nk(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.EY((g=this.currentCommentOption)==null?void 0:g.commentBackgroundColorArgb)})}else _.Nk(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.v.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var e;(e=this.contentEl)==null||e.focus()}};
_.v.onEditButtonClick=function(e){var g=document.getSelection();g&&this.contentEl&&(e.stopPropagation(),e.preventDefault(),g.selectAllChildren(this.contentEl),g.collapseToEnd())};
_.v.onContentDrop=function(e){var g=this;if(e.dataTransfer){e=_.w(e.dataTransfer.items);for(var c=e.next();!c.done;c=e.next())c=c.value,c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(k){var I;(I=g.contentEl)==null||I.appendChild(document.createTextNode(k))})}};
_.v.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.v.getUserGeneratedCommentText=function(){var e,g=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(e=this.contentEl)==null?void 0:e.textContent;return g?g.trim():""};
_.v.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.v.onEmojiSelect=function(e){this.ytdCommentInputEl.onEmojiSelect(e)};
_.Bd.Object.defineProperties(gf.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.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 e;return!((e=this.currentCommentOption)==null||!e.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var e;if(_.x((e=this.currentCommentOption)==null?void 0:e.chipRenderer,_.n3I)){var g;return _.x((g=this.currentCommentOption)==null?void 0:g.chipRenderer,_.n3I)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var e,g;return((e=this.data)==null?0:e.commentOptionRenderers)?_.x((g=this.data)==null?void 0:g.commentOptionRenderers[this.superThanksSelectedTierEntity.index],ISX):void 0}var c,k;return((c=this.data)==null?0:c.commentOptionRenderers)?_.x((k=this.data)==null?void 0:k.commentOptionRenderers[this.currentCommentOptionIndex],ISX):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var e;return this.rendererBehavior.getSimpleString((e=this.data)==null?void 0:e.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var e;return this.rendererBehavior.getSimpleString((e=this.data)==null?void 0:e.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var e,g;return(g=_.x((e=this.data)==null?void 0:e.commentDialog,_.Ijk))==null?void 0:g.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var e,g;return(g=_.x((e=this.data)==null?void 0:e.commentDialog,_.Ijk))==null?void 0:g.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var e,g;return(g=_.x((e=this.data)==null?void 0:e.commentDialog,_.Ijk))==null?void 0:g.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(g=_.x((e=this.data)==null?void 0:e.commentDialog,_.Ijk))==null?void 0:g.emojiPicker;if(!_.x(c,_.o8s)||!_.x(c,_.o8s).categories)return!1;e=function(J){return J.emojiPickerCategoryRenderer?J.emojiPickerCategoryRenderer.emojiIds&&J.emojiPickerCategoryRenderer.emojiIds.length>0:J.emojiPickerUpsellCategoryRenderer?J.emojiPickerUpsellCategoryRenderer.emojis&&J.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var k,I;return((k=_.x(c,_.o8s))==null?0:(I=k.categories)==null?0:I.find(e))?!0:!1}}});
gf.prototype.onEmojiSelect=gf.prototype.onEmojiSelect;gf.prototype.dataChanged=gf.prototype.dataChanged;gf.prototype.currentCommentOptionChanged=gf.prototype.currentCommentOptionChanged;_.t([_.m(_.Wv),_.B("design:type",Object)],gf.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gf.prototype,"rendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],gf.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.Cs("#content-dom-if"),_.B("design:type",_.nO)],gf.prototype,"contentDomIfEl",void 0);_.t([_.Cs("#content-no-emojis"),_.B("design:type",HTMLElement)],gf.prototype,"contentEl",void 0);_.t([_.Cs("#container"),_.B("design:type",HTMLElement)],gf.prototype,"containerEl",void 0);_.t([_.Cs("#comment-chip-container"),_.B("design:type",HTMLElement)],gf.prototype,"paidCommentChipContainerEl",void 0);_.t([_.Cs("#text-input"),_.B("design:type",HTMLElement)],gf.prototype,"editableTextEl",void 0);
_.t([_.Cs("#emoji-button"),_.B("design:type",HTMLElement)],gf.prototype,"emojiButtonEl",void 0);_.t([_.Cs("#emoji-picker > yt-emoji-picker-renderer"),_.B("design:type",Object)],gf.prototype,"emojiPickerEl",void 0);_.t([_.Cs("#text-input > ytd-comment-input"),_.B("design:type",Object)],gf.prototype,"ytdCommentInputEl",void 0);_.t([_.u(),_.B("design:type",Object)],gf.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],gf.prototype,"currentCommentOptionIndex",void 0);
_.t([_.u({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Edo}),_.B("design:type",Object)],gf.prototype,"superThanksSelectedTierEntity",void 0);_.t([_.u(),_.B("design:type",Object)],gf.prototype,"isEmojiPickerDisplayed",void 0);_.t([_.u(),_.B("design:type",Object)],gf.prototype,"emojiManager",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],gf.prototype,"isUgcEmpty",void 0);
_.t([_.OY("currentCommentOption"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gf.prototype,"currentCommentOptionChanged",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gf.prototype,"dataChanged",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gf.prototype,"isEmojiYtdCommentInputEnabled",null);
_.t([_.p("data.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],gf.prototype,"title",null);_.t([_.p("data.authorText"),_.B("design:type",Object),_.B("design:paramtypes",[])],gf.prototype,"channelName",null);_.t([_.p("data.commentOptionRenderers","currentCommentOption"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gf.prototype,"shouldShowPaidCommentChipRenderer",null);
_.t([_.p("data.commentOptionRenderers","currentCommentOption"),_.B("design:type",Object),_.B("design:paramtypes",[])],gf.prototype,"paidCommentChipRenderer",null);_.t([_.p("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],gf.prototype,"currentCommentOption",null);
_.t([_.p("data.defaultCommentText","superThanksSelectedTierEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],gf.prototype,"commentText",null);_.t([_.p("data.placeholderText"),_.B("design:type",Object),_.B("design:paramtypes",[])],gf.prototype,"placeholderText",null);_.t([_.p("data.commentDialog.commentDialogRenderer.editableText"),_.B("design:type",Object),_.B("design:paramtypes",[])],gf.prototype,"editableText",null);
_.t([_.p("data.commentDialog.commentDialogRenderer.emojiButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],gf.prototype,"emojiButton",null);_.t([_.p("data.commentDialog.commentDialogRenderer.emojiPicker"),_.B("design:type",Object),_.B("design:paramtypes",[])],gf.prototype,"emojiPicker",null);
_.t([_.p("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gf.prototype,"isEmojiButtonDisplayed",null);_.t([_.Ks("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],gf.prototype,"onEmojiSelect",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],gf);
_.U(gf,"ytd-pdg-comment-preview-renderer",function(){if(tKA!==void 0)return tKA;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return tKA=e},{mode:2});var NVB;var cC=function(){var e=_.z.apply(this,arguments)||this;e.selected=!1;return e};
_.Y(cC,_.z);_.v=cC.prototype;_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.v.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.v.dataChanged=function(){this.data&&(_.Zu(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Nk(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.EY(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.EY(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.v.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.v.onClick=function(){this.logClick()};
_.v.onKeyboardSelect=function(){_.oC(this.hostElement,"tap");this.onClick()};
_.v.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
cC.prototype.onClick=cC.prototype.onClick;cC.prototype.selectedChanged=cC.prototype.selectedChanged;cC.prototype.dataChanged=cC.prototype.dataChanged;_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],cC.prototype,"componentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.yB),_.B("design:type",Object)],cC.prototype,"ironA11yKeysBehavior",void 0);
_.t([_.m(_.mk),_.B("design:type",Object)],cC.prototype,"ironSelectableBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],cC.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],cC.prototype,"shownThumbnail",void 0);_.t([_.u(),_.B("design:type",Object)],cC.prototype,"basePriceText",void 0);_.t([_.u(),_.B("design:type",Object)],cC.prototype,"purchaseCommand",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],cC.prototype,"selected",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cC.prototype,"dataChanged",null);_.t([_.OY("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cC.prototype,"selectedChanged",null);_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cC.prototype,"onClick",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],cC);
_.U(cC,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(NVB!==void 0)return NVB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return NVB=e},{mode:1});var k5=function(){var e=_.z.apply(this,arguments)||this;e.selectedItemIndex=0;e.buyButtonDisabled=!1;return e};
_.Y(k5,_.z);_.v=k5.prototype;
_.v.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.v.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var e;var g=(e=_.x(this.data.colorSlider,kZv))==null?void 0:e.notches[this.selectedItemIndex].purchaseCommand}else{var c;g=(c=_.x(this.data.selectableItemButtons[this.selectedItemIndex],vPv))==null?void 0:c.purchaseCommand}if(g){e=_.x(g,_.Ojk);e.productData||(e.productData={});var k;e.productData={pdgData:{commentMessageText:(k=this.commentPreviewRenderer)==null?void 0:k.getUserGeneratedCommentText()}};
_.oC(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(g)}}};
_.v.dataChanged=function(){if(this.data){_.Y3.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.bRv(_.Y3,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Y3.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var e;this.buyButtonDisabled=!((e=_.x(this.data.commentPreview,JxD))==null||!e.placeholderText);this.updatePriceSelectorStatus();var g;if((g=this.data)==null?0:g.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;e=[];this.data.preloadImages&&(e=this.data.preloadImages);
e=e.map(function(c){return _.F6(c.thumbnails,1920)});
e=_.w(e);for(g=e.next();!g.done;g=e.next())(g=g.value)&&_.cMt(g).thenCatch(function(){_.mN(Error("km"))})}};
_.v.superThanksSelectedTierEntityChanged=function(){var e;(this==null?void 0:(e=this.superThanksSelectedTierEntity)==null?void 0:e.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.v.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.v.updatePriceSelectorStatus=function(){this.isColorSlider?(_.o1(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.o1(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.o1(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.o1(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.v.closeBuyFlow=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.v.onUserGeneratedContentChanged=function(){var e;this.buyButtonDisabled=!((e=this.commentPreviewRenderer)==null?0:e.getUserGeneratedCommentText())};
_.v.updateSelectedItemIndexFromBinding=function(e){this.selectedItemIndex=e.detail.value};
_.Bd.Object.defineProperties(k5.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.disclaimerText)}}});
k5.prototype.onUserGeneratedContentChanged=k5.prototype.onUserGeneratedContentChanged;k5.prototype.closeBuyFlow=k5.prototype.closeBuyFlow;k5.prototype.selectedItemIndexChanged=k5.prototype.selectedItemIndexChanged;k5.prototype.superThanksSelectedTierEntityChanged=k5.prototype.superThanksSelectedTierEntityChanged;k5.prototype.dataChanged=k5.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],k5.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],k5.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],k5.prototype,"selectedItemIndex",void 0);_.t([_.u(),_.B("design:type",Boolean)],k5.prototype,"isColorSlider",void 0);
_.t([_.u(),_.B("design:type",Object)],k5.prototype,"buyButtonDisabled",void 0);_.t([_.u({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Edo}),_.B("design:type",Object)],k5.prototype,"superThanksSelectedTierEntity",void 0);_.t([_.Cs("ytd-pdg-comment-preview-renderer"),_.B("design:type",Object)],k5.prototype,"commentPreviewRenderer",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],k5.prototype,"ytdReduxBehavior",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k5.prototype,"dataChanged",null);_.t([_.OY("superThanksSelectedTierEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k5.prototype,"superThanksSelectedTierEntityChanged",null);_.t([_.OY("selectedItemIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k5.prototype,"selectedItemIndexChanged",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k5.prototype,"closeBuyFlow",null);_.t([_.Ks("ytd-pdg-user-generated-comment-changed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k5.prototype,"onUserGeneratedContentChanged",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],k5.prototype,"isDisclaimerTextShown",null);
_.t([_.bF({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],k5);
_.U(k5,"yt-super-vod-buy-flow-content-renderer",function(){if(ZCx!==void 0)return ZCx;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return ZCx=e},{mode:1});var SCa;var Ii=function(){var e=_.z.apply(this,arguments)||this;e.lottieAnimationRef={};return e};
_.Y(Ii,_.z);_.v=Ii.prototype;_.v.created=function(){_.hc.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.yg(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.v.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.oC(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.v.detached=function(){this.autoCloseJobId&&_.ft.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.yg(this,this.onPopupIronOverlayOpened))};
_.v.dataChanged=function(){var e=this;this.data&&this.data.autoCloseDelay&&(_.Z5(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.HT(_.ft,function(){e.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Nk(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.v.onDOMLoadedLottie=function(){var e=this,g,c,k=Number((g=this.data)==null?void 0:(c=g.autoCloseDelay)==null?void 0:c.seconds)||0;this.fadeOutJobId=_.HT(_.ft,function(){e.lottiePlayerEl.classList.add("fadeout")},(k-.25)*1E3);
this.autoCloseJobId=_.HT(_.ft,function(){e.closePopup()},k*1E3)};
_.v.openPopup=function(){this.ironOverlayBehavior.open()};
_.v.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Z5(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Bm(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.Ss().resolve(_.xk).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.ft.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.ft.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.v.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var e,g;(e=this.lottieAnimationRef)==null||(g=e.lottieEl)==null||g.destroy();e=this.data.lottie;var c,k;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:e.url+"_"+Math.random(),path:e.url,autoplay:!0,loop:(k=(c=e.settings)==null?void 0:c.loop)!=null?k:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Bd.Object.defineProperties(Ii.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var e,g;return!!((e=this.data)==null?0:(g=e.lottie)==null?0:g.url)}}});
Ii.prototype.maybeInitializeLottie=Ii.prototype.maybeInitializeLottie;Ii.prototype.dataChanged=Ii.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ii.prototype,"rendererBehavior",void 0);_.t([_.m(_.$L),_.B("design:type",Object)],Ii.prototype,"ironOverlayBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ii.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Ii.prototype,"lottiePlayerProps",void 0);
_.t([_.u(),_.B("design:type",Object)],Ii.prototype,"lottieAnimationRef",void 0);_.t([_.Cs("ytd-lottie-player"),_.B("design:type",HTMLElement)],Ii.prototype,"lottiePlayerEl",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ii.prototype,"dataChanged",null);_.t([_.p("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ii.prototype,"hasLottieAnimation",null);
_.t([_.OY("data.lottie.url"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ii.prototype,"maybeInitializeLottie",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Ii);
_.U(Ii,"ytd-desktop-image-overlay-renderer",function(){if(SCa!==void 0)return SCa;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class="lottie-player style-scope ytd-desktop-image-overlay-renderer" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]">\n</ytd-lottie-player></div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return SCa=e},{mode:1});var yqB;var JI=function(){return _.z.apply(this,arguments)||this};
_.Y(JI,_.z);_.v=JI.prototype;_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.yg(this,this.closePopup))};
_.v.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.yg(this,this.closePopup))};
_.v.dataChanged=function(){_.V1(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.x(this.data.header,cxl)&&(this.hasBackgroundBanner=!!_.x(this.data.header,cxl).backgroundBanner)};
_.v.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.yg(this,this.closePopup))};
_.v.closePopup=function(){this.data&&this.data.onCloseCommand&&_.tr(this.hostElement,[this.data.onCloseCommand])};
JI.prototype.handleBuyflowSelectionSubmitted=JI.prototype.handleBuyflowSelectionSubmitted;JI.prototype.dataChanged=JI.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],JI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],JI.prototype,"data",void 0);
_.t([_.u({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],JI.prototype,"hasBackgroundBanner",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JI.prototype,"dataChanged",null);_.t([_.Ks("yt-pdg-buy-flow-selection-submitted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JI.prototype,"handleBuyflowSelectionSubmitted",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],JI);
_.U(JI,"ytd-pdg-buy-flow-renderer",function(){if(yqB!==void 0)return yqB;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return yqB=e},{mode:1});var Ke3;var vC=function(){var e=_.z.apply(this,arguments)||this;e.isOpen=!1;e.isPlaylistCreated=!1;return e};
_.Y(vC,_.z);_.v=vC.prototype;_.v.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.v.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.oC(this.hostElement,"yt-refit")};
_.v.onCreateTap=function(){var e=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.tr(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(g,c){if(!_.G("killswitch_ep_in_create_playlist_response")&&(c==null?0:c.actions))for(g=_.w(c.actions),c=g.next();!c.done;c=g.next())c=c.value,_.x(c,_.W2)&&e.ytComponentBehavior.resolveCommand(c)}}]),this.isPlaylistCreated=!0)};
_.v.onKeydown=function(e){if(e.keyCode===13)this.onCreateTap()};
_.v.onServiceRequestCompleted=function(e){e.stopPropagation();_.Z5(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.v.computePrivacyBadge=function(e){return e?[{metadataBadgeRenderer:e}]:[]};
vC.prototype.onServiceRequestCompleted=vC.prototype.onServiceRequestCompleted;vC.prototype.onKeydown=vC.prototype.onKeydown;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],vC.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vC.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],vC.prototype,"isOpen",void 0);
_.t([_.u(),_.B("design:type",Object)],vC.prototype,"isPlaylistCreated",void 0);_.t([_.u({value:{REQUIRED_LABEL:_.C_("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.C_("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.B("design:type",Object)],vC.prototype,"addToStrings",void 0);_.t([_.u({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.B("design:type",Array)],vC.prototype,"privacyBadge",void 0);
_.t([_.Cs("#privacy-input"),_.B("design:type",Object)],vC.prototype,"privacyInput",void 0);_.t([_.Cs("#name-input"),_.B("design:type",Object)],vC.prototype,"nameInput",void 0);_.t([_.Ks("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],vC.prototype,"onKeydown",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vC.prototype,"onServiceRequestCompleted",null);
_.t([_.bF({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],vC);
_.U(vC,"ytd-add-to-playlist-create-renderer",function(){if(Ke3!==void 0)return Ke3;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Ke3=e},{mode:1});var OCA;var MKP;var wf=function(){var e=_.z.apply(this,arguments)||this;e.transferState="TRANSFER_STATE_UNKNOWN";return e};
_.Y(wf,_.z);wf.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
wf.prototype.onCheckboxChange=function(e){var g=this;this.data&&_.fO(this,"yt-playlist-checkbox-changed",function(){var c=_.A3(e).checked?g.data.addToPlaylistServiceEndpoint:g.data.removeFromPlaylistServiceEndpoint;c&&_.Ss().resolve(_.xk).resolveCommand(c,{form:{element:g.hostElement}});_.G("dl_playlist_killswitch")||g.transferState!=="TRANSFER_STATE_UNKNOWN"&&g.transferState!=="TRANSFER_STATE_FAILED"&&g.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:g.data.playlistId,action:"ACTION_SYNC"}})},
100)};
wf.prototype.computeIconType=function(e){return e?"yt-icons:"+e.toLowerCase():null};
wf.prototype.dataChanged=wf.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wf.prototype,"data",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],wf.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],wf.prototype,"ytComponentBehavior",void 0);_.t([_.Cs("#checkbox"),_.B("design:type",HTMLInputElement)],wf.prototype,"checkbox",void 0);
_.t([_.u({selector:_.Xi,selectorArgs:["data.playlistId"]}),_.B("design:type",String)],wf.prototype,"transferState",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wf.prototype,"dataChanged",null);_.t([_.bF({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],wf);
_.U(wf,"ytd-playlist-add-to-option-renderer",function(){if(MKP!==void 0)return MKP;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return MKP=e},{mode:1});var CWj=_.H(function(e){var g=e.data;return _.a("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.a("div",null,_.a(_.fa,{text:function(){return g().title}})),_.a(_.E,{cond:function(){return g().subtitle},
then:function(c){return _.a("div",{class:"ytdMenuTitleRendererSubtitle"},_.a(_.fa,{text:c}))}}))},"hl");
CWj.idomCompat=!0;_.sL(CWj,"ytd-menu-title-renderer",{props:{data:_.jx}});var qi=function(){var e=_.z.apply(this,arguments)||this;e.addToStrings={ADD_TO_DROPDOWN_LABEL:_.C_("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};e.closeButtonAriaLabel=_.C_("SBOX_INAPPROPRIATE_CANCEL");e.dialog=_.G("desktop_add_to_playlist_renderer_dialog_popup");return e};
_.Y(qi,_.z);_.v=qi.prototype;_.v.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.v.onPopupOpened=function(){_.Vg(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.v.onPopupClosed=function(){_.Vg(this.playlists,"scrollable",!1)};
_.v.computeAriaLabel=function(){var e;if(this==null?0:(e=this.data)==null?0:e.actions){e=_.w(this.data.actions);for(var g=e.next();!g.done;g=e.next())if(g=g.value,g.menuTitleRenderer)return _.mp(g.menuTitleRenderer.title)}};
_.v.onTapClose=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Bd.Object.defineProperties(qi.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var e;if(this==null?0:(e=this.data)==null?0:e.actions){e=_.w(this.data.actions);for(var g=e.next();!g.done;g=e.next())if(g=g.value,g.menuTitleRenderer)return g.menuTitleRenderer}return!1}}});
qi.prototype.onPopupClosed=qi.prototype.onPopupClosed;qi.prototype.onPopupOpened=qi.prototype.onPopupOpened;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],qi.prototype,"ytEventForwardingBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],qi.prototype,"ytRendererStamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],qi.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],qi.prototype,"addToStrings",void 0);_.t([_.u({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.B("design:type",String)],qi.prototype,"ariaLabel",void 0);_.t([_.u(),_.B("design:type",String)],qi.prototype,"closeButtonAriaLabel",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],qi.prototype,"dialog",void 0);
_.t([_.Cs("#playlists"),_.B("design:type",HTMLElement)],qi.prototype,"playlists",void 0);_.t([_.Cs("ytd-add-to-playlist-create-renderer"),_.B("design:type",Object)],qi.prototype,"createRenderer",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],qi.prototype,"menuTitleRenderer",null);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qi.prototype,"onPopupOpened",null);
_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qi.prototype,"onPopupClosed",null);_.t([_.bF({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],qi);
_.U(qi,"ytd-add-to-playlist-renderer",function(){if(OCA!==void 0)return OCA;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return OCA=e},{mode:1});var eYb;var LG=function(){var e=_.z.apply(this,arguments)||this;e.isPlaylistEditComplete=!1;e.isCollabEngagementDisabled=!1;e.closeButtonAriaLabel=_.C_("SBOX_INAPPROPRIATE_CANCEL");e.saveButton={title:_.C_("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"};e.onValueChanged=function(){e.updateSaveButtonState();e.computeCollabEngagementDisabled()};
return e};
_.Y(LG,_.z);_.v=LG.prototype;_.v.attached=function(){this.JSC$22698_scroller&&(this.JSC$22698_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22698_scroller.attached&&typeof this.JSC$22698_scroller.attached==="function"&&this.JSC$22698_scroller.attached())};
_.v.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.v.onPopupClosed=function(){this.reset()};
_.v.close=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.v.onClickSave=function(){var e=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var g=[];this.nameInput.value!==null&&g.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&g.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var c=Number(this.privacyInput.value);isNaN(c)||g.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:c})}this.votingInput.value!==null&&(c=this.votingInput.value)&&g.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:c});if(g.length>0){var k;_.x((k=this.data)==null?void 0:k.updateSettingsEndpoint,_.bp).actions=g;var I;if((I=this.data)==null?0:I.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){e.close()}}}),this.isPlaylistEditComplete=!0}}};
_.v.computePrivacyBadge=function(e){return e?[{metadataBadgeRenderer:e}]:[]};
_.v.computeEditorData=function(e){var g,c;return e==null?void 0:(g=e.sections)==null?void 0:(c=g[0])==null?void 0:c.playlistSettingsEditorCasualSectionRenderer};
_.v.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.v.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.v.computeAriaLabel=function(){var e,g,c,k=(e=this.data)==null?void 0:(g=e.sections)==null?void 0:(c=g[0])==null?void 0:c.playlistSettingsEditorCasualSectionRenderer;return _.mp(k==null?void 0:k.title)};
_.v.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.v.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.v.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.v.isNameChanged=function(){var e,g,c;return(((e=this.editorData)==null?void 0:(g=e.name)==null?void 0:(c=g.textInputFormFieldRenderer)==null?void 0:c.value)||"")!==(this.nameInput.value||"")};
_.v.isDescriptionChanged=function(){var e,g,c;return(((e=this.editorData)==null?void 0:(g=e.description)==null?void 0:(c=g.textInputFormFieldRenderer)==null?void 0:c.value)||"")!==(this.descriptionInput.value||"")};
_.v.isPrivacyChanged=function(){var e,g,c,k,I,J,q,L;return((q=(e=this.editorData)==null?void 0:(g=e.privacy)==null?void 0:(c=g.dropdownFormFieldRenderer)==null?void 0:(k=c.dropdown)==null?void 0:(I=k.dropdownRenderer)==null?void 0:(J=I.entries)==null?void 0:J.find(function(n){var R;return n==null?void 0:(R=n.privacyDropdownItemRenderer)==null?void 0:R.isSelected}))==null?void 0:(L=q.privacyDropdownItemRenderer)==null?void 0:L.int32Value)!==this.privacyInput.value};
_.v.isVotingChanged=function(){var e,g,c,k,I,J,q,L;return((q=(e=this.editorData)==null?void 0:(g=e.voting)==null?void 0:(c=g.dropdownFormFieldRenderer)==null?void 0:(k=c.dropdown)==null?void 0:(I=k.dropdownRenderer)==null?void 0:(J=I.entries)==null?void 0:J.find(function(n){var R;return n==null?void 0:(R=n.privacyDropdownItemRenderer)==null?void 0:R.isSelected}))==null?void 0:(L=q.privacyDropdownItemRenderer)==null?void 0:L.int32Value)!==this.votingInput.value};
LG.prototype.onPopupClosed=LG.prototype.onPopupClosed;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],LG.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],LG.prototype,"ytEventForwardingBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],LG.prototype,"ytRendererStamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],LG.prototype,"data",void 0);_.t([_.u({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.B("design:type",Array)],LG.prototype,"privacyBadge",void 0);_.t([_.u({computed:"computeEditorData(data)"}),_.B("design:type",Object)],LG.prototype,"editorData",void 0);_.t([_.u(),_.B("design:type",Object)],LG.prototype,"isPlaylistEditComplete",void 0);_.t([_.u(),_.B("design:type",Object)],LG.prototype,"isCollabEngagementDisabled",void 0);
_.t([_.u({value:{REQUIRED_LABEL:_.C_("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.C_("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.B("design:type",Object)],LG.prototype,"addToStrings",void 0);_.t([_.u({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.B("design:type",String)],LG.prototype,"ariaLabel",void 0);_.t([_.u(),_.B("design:type",String)],LG.prototype,"closeButtonAriaLabel",void 0);
_.t([_.u(),_.B("design:type",Object)],LG.prototype,"saveButton",void 0);_.t([_.Cs("#name-input"),_.B("design:type",Object)],LG.prototype,"nameInput",void 0);_.t([_.Cs("#description-input"),_.B("design:type",Object)],LG.prototype,"descriptionInput",void 0);_.t([_.Cs("#privacy-input"),_.B("design:type",Object)],LG.prototype,"privacyInput",void 0);_.t([_.Cs("#voting-input"),_.B("design:type",Object)],LG.prototype,"votingInput",void 0);
_.t([_.Cs("#scroller"),_.B("design:type",Object)],LG.prototype,"JSC$22698_scroller",void 0);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LG.prototype,"onPopupClosed",null);_.t([_.u(),_.B("design:type",Object)],LG.prototype,"onValueChanged",void 0);_.t([_.bF({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],LG);
_.U(LG,"ytd-playlist-settings-editor-renderer",function(){if(eYb===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);eYb=e}e=eYb;return e},{mode:1});var gIB;_.qH("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var rf=function(){return _.z.apply(this,arguments)||this};
_.Y(rf,_.z);_.v=rf.prototype;_.v.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var e=this.get("data.nextButton.buttonRenderer.navigationEndpoint");e&&(this.nextNavigationEndpoint=e,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.v.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var e={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",e)}}};
_.v.onPopupOpened=function(e){e.detail!==this&&e.detail!==this.hostElement||!_.G("enable_premium_voluntary_pause")||_.Z5(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.v.onNextButtonTap=function(){var e=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);e&&this.ytdOpenPopupBehavior.openPopup(e)};
_.v.updateSelectedResponseIndexFromBinding=function(e){this.selectedResponseIndex=e.detail.value};
rf.prototype.onPopupOpened=rf.prototype.onPopupOpened;rf.prototype.onSelectedResponseIndexChange=rf.prototype.onSelectedResponseIndexChange;rf.prototype.dataChanged=rf.prototype.dataChanged;_.t([_.m(_.sJ),_.B("design:type",Object)],rf.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],rf.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],rf.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Number)],rf.prototype,"selectedResponseIndex",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rf.prototype,"dataChanged",null);_.t([_.OY("selectedResponseIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rf.prototype,"onSelectedResponseIndexChange",null);
_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],rf.prototype,"onPopupOpened",null);_.t([_.bF({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],rf);
_.U(rf,"ytd-red-cancel-survey-renderer",function(){if(gIB!==void 0)return gIB;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return gIB=e},{mode:1});var ckP;var ai=function(){var e=_.z.apply(this,arguments)||this;e.closeButtonAriaLabel=_.C_("SBOX_INAPPROPRIATE_CANCEL");return e};
_.Y(ai,_.z);ai.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
ai.prototype.onClickClose=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],ai.prototype,"rendererStamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],ai.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],ai.prototype,"closeButtonAriaLabel",void 0);_.t([_.bF({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],ai);
_.U(ai,"ytd-search-filter-options-dialog-renderer",function(){if(ckP!==void 0)return ckP;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ckP=e},{mode:1});var kqA;var cLM=function(){return function(e){e=e.availabilityType;return e===void 0||e==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||e==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var nG=function(){var e=_.z.apply(this,arguments)||this;e.qualityOptions=[];e.upsellOptions=[];e.showUpsellSection=!1;e.rememberSettingsChecked=!1;return e};
_.Y(nG,_.z);_.v=nG.prototype;_.v.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.v.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.v.updateQualityOptions=function(){if(this.formats===void 0)_.Z5(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var e=[],g=[];this.showUpsellSection=!1;for(var c=_.w(this.formats),k=c.next();!k.done;k=c.next())(k=k.value)&&(k.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?g.push(k):e.push(k));e.length&&(this.qualityOptions=gE7(e));g.length&&(this.showUpsellSection=!0,this.upsellOptions=gE7(g))}};
_.v.updateRememberString=function(){if(this.downloadQualityPickerEntity)var e=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var g;e=(g=this.data)==null?void 0:g.premiumRememberSettingString}else{var c;e=(c=this.data)==null?void 0:c.rememberSettingString}e=e===void 0?_.C_("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):e;this.rememberSettingsCheckboxRenderer={title:_.uB(e),disabled:!1}};
_.v.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Bd.Object.defineProperties(nG.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var e;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(e=this.data)==null?void 0:e.qualityFormats}}});
nG.prototype.updateRememberString=nG.prototype.updateRememberString;nG.prototype.updateQualityOptions=nG.prototype.updateQualityOptions;nG.prototype.dataChanged=nG.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],nG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],nG.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],nG.prototype,"data",void 0);
_.t([_.m(_.Wv),_.B("design:type",Object)],nG.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Boolean)],nG.prototype,"selectedUpsellQuality",void 0);_.t([_.u({computed:"computeIcon_(data.premiumIcon)",value:""}),_.B("design:type",String)],nG.prototype,"premiumIcon",void 0);_.t([_.u({selector:YMS,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.B("design:type",Object)],nG.prototype,"downloadQualityPickerEntity",void 0);
_.t([_.u(),_.B("design:type",Array)],nG.prototype,"qualityOptions",void 0);_.t([_.u(),_.B("design:type",Array)],nG.prototype,"upsellOptions",void 0);_.t([_.u(),_.B("design:type",Object)],nG.prototype,"showUpsellSection",void 0);_.t([_.u(),_.B("design:type",Object)],nG.prototype,"rememberSettingsCheckboxRenderer",void 0);_.t([_.Cs("#remember-settings"),_.B("design:type",HTMLInputElement)],nG.prototype,"rememberSettingsCheckbox",void 0);
_.t([_.u(),_.B("design:type",Object)],nG.prototype,"rememberSettingsChecked",void 0);_.t([_.u(),_.B("design:type",Function)],nG.prototype,"onRememberSettingsCheckedChanged",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nG.prototype,"dataChanged",null);_.t([_.OY("downloadQualityPickerEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nG.prototype,"updateQualityOptions",null);
_.t([_.OY("selectedUpsellQuality"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nG.prototype,"updateRememberString",null);_.t([_.bF({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],nG);
_.U(nG,"ytd-download-quality-selector-content",function(){if(kqA!==void 0)return kqA;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return kqA=e},{mode:1});var Iwd;var Ri=function(){var e=_.z.apply(this,arguments)||this;e.selectedUpsellQuality=!1;e.qualityOptions=[];e.useUpsellDismissAlternate=_.G("use_not_now_dl_upsell_dismiss_cta");e.shouldShowAlternateUpsellDimiss=!1;e.rememberSettings=!1;e.rememberSettingsChecked=!1;e.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};e.rememberSettingsCheckedChanged=function(g){e.rememberSettingsChecked=g};
return e};
_.Y(Ri,_.z);_.v=Ri.prototype;
_.v.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.uB(_.C_("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.uB(_.C_("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.uB(_.C_("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.uB(_.C_("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.v.updateQualityOptions=function(){this.formats===void 0?_.Z5(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=gE7(this.formats)};
_.v.onQualityOptionsSelect=function(e){if(this.qualityOptions&&e){e!==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 g=_.w(this.qualityOptions.entries()),c=g.next();!c.done;c=
g.next()){c=_.w(c.value);var k=c.next().value;c=c.next().value;var I=void 0,J=void 0;if(((I=c)==null?void 0:(J=I.settingsRadioOptionRenderer)==null?void 0:J.id)===e){this.selectedQualityIndex=k;e=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((e=this.formats[k])==null?void 0:e.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.v.onClickSubmit=function(){var e;if((e=this.downloadButtonRenderer)==null||!e.isDisabled){var g,c;e=(c=(g=this.data)==null?void 0:g.onSubmitEndpoint)!=null?c:{};var k,I;if(this.formats&&(((k=_.x(e,_.yF))==null?0:k.videoId)||((I=_.x(e,_.Kx))==null?0:I.playlistId))){var J,q,L,n,R,W;g={formatType:(n=(J=this.formats)==null?void 0:(q=J[(L=this.selectedQualityIndex)!=null?L:0])==null?void 0:q.format)!=null?n:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(R=this.getOfflineEndpoint(e))==null?void 0:(W=R.actionParams)==null?void 0:W.settingsAction)};this.getOfflineEndpoint(e).actionParams=g;this.ytComponentBehavior.resolveCommand(e)}_.Z5(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.v.onClickUpsell=function(){var e;if((e=this.upsellButtonRenderer)==null||!e.isDisabled){var g,c;e=(c=(g=this.data)==null?void 0:g.upsellEndpoint)!=null?c:{};this.ytComponentBehavior.resolveCommand(e);_.Z5(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);g="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var k,I,J,q;g=(q=(k=this.formats)==null?void 0:(I=k[(J=this.selectedQualityIndex)!=null?J:0])==null?void 0:I.format)!=null?q:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:g}})}};
_.v.onClickClose=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.v.getOfflineSettingsAction=function(e,g){return e?g===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":g:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.v.getOfflineEndpoint=function(e){return _.x(e,_.yF)?_.x(e,_.yF):_.x(e,_.Kx)};
_.Bd.Object.defineProperties(Ri.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.uB(_.C_("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var e;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(e=this.data)==null?void 0:e.qualityFormats}}});
Ri.prototype.updateQualityOptions=Ri.prototype.updateQualityOptions;Ri.prototype.dataChanged=Ri.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Ri.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Ri.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Ri.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Number)],Ri.prototype,"selectedQualityIndex",void 0);_.t([_.u(),_.B("design:type",Object)],Ri.prototype,"selectedUpsellQuality",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Ri.prototype,"ytdReduxBehavior",void 0);
_.t([_.u({selector:YMS,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.B("design:type",Object)],Ri.prototype,"downloadQualityPickerEntity",void 0);_.t([_.u(),_.B("design:type",Array)],Ri.prototype,"qualityOptions",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ri.prototype,"useUpsellDismissAlternate",void 0);_.t([_.u(),_.B("design:type",Object)],Ri.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.t([_.u(),_.B("design:type",Object)],Ri.prototype,"downloadButtonRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],Ri.prototype,"upsellButtonRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],Ri.prototype,"cancelButtonRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],Ri.prototype,"upsellCancelButtonRenderer",void 0);_.t([_.u(),_.B("design:type",Object)],Ri.prototype,"rememberSettings",void 0);_.t([_.u(),_.B("design:type",Object)],Ri.prototype,"rememberSettingsChecked",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ri.prototype,"dataChanged",null);_.t([_.OY("downloadQualityPickerEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ri.prototype,"updateQualityOptions",null);_.t([_.bF({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Ri);
_.U(Ri,"ytd-download-quality-selector-renderer",function(){if(Iwd!==void 0)return Iwd;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Iwd=e},{mode:1});var Jk3;var E$=function(){return _.z.apply(this,arguments)||this};
_.Y(E$,_.z);E$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
E$.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],E$.prototype,"data",void 0);_.t([_.u({computed:"computeIcon_(data.infoIcon)"}),_.B("design:type",Object)],E$.prototype,"infoIcon",void 0);
_.t([_.u({computed:"computeIcon_(data.warningIcon)"}),_.B("design:type",Object)],E$.prototype,"warningIcon",void 0);_.t([_.bF({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],E$);
_.U(E$,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(Jk3!==void 0)return Jk3;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Jk3=e},{mode:1});var vIT;var WC=function(){return _.z.apply(this,arguments)||this};
_.Y(WC,_.z);WC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
WC.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],WC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],WC.prototype,"data",void 0);_.t([_.bF({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],WC);
_.U(WC,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(vIT!==void 0)return vIT;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return vIT=e},{mode:1});var wwa;var bM=function(){return _.z.apply(this,arguments)||this};
_.Y(bM,_.z);bM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
bM.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"}}}}};
bM.prototype.onServiceRequestSentOrCompleted=function(e,g){g&&g.actions&&g.actions.length>0&&_.Z5(this.hostElement,"yt-close-popup-action",[this.is])};
bM.prototype.onServiceRequestSentOrCompleted=bM.prototype.onServiceRequestSentOrCompleted;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],bM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],bM.prototype,"data",void 0);
_.t([_.Ks("yt-service-request-completed"),_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],bM.prototype,"onServiceRequestSentOrCompleted",null);_.t([_.bF({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],bM);
_.U(bM,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(wwa!==void 0)return wwa;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return wwa=e},{mode:1});var qv3;var hI=function(){var e=_.z.apply(this,arguments)||this;e.submitButtonDisabled=!0;return e};
_.Y(hI,_.z);_.v=hI.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.v.onDataChanged=function(){var e,g,c;if(((e=this.data)==null?void 0:(g=e.confirmButton)==null?void 0:(c=g.buttonRenderer)==null?void 0:c.isDisabled)!==void 0){var k,I,J;this.submitButtonDisabled=(k=this.data)==null?void 0:(I=k.confirmButton)==null?void 0:(J=I.buttonRenderer)==null?void 0:J.isDisabled}};
_.v.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.v.updateSubmitButtonDisabledFromBinding=function(e){this.submitButtonDisabled=e.detail.value};
_.v.updateSubmitButtonDisabledFromConfirmCheckbox=function(e){this.submitButtonDisabled=!e.detail.value};
hI.prototype.onDataChanged=hI.prototype.onDataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],hI.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],hI.prototype,"submitButtonDisabled",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hI.prototype,"onDataChanged",null);_.t([_.bF({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],hI);
_.U(hI,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(qv3!==void 0)return qv3;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return qv3=e},{mode:1});var LBa;var XU=function(){return _.z.apply(this,arguments)||this};
_.Y(XU,_.z);_.Bd.Object.defineProperties(XU.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var e,g,c;return((e=this.data)==null?void 0:e.title)+" "+((g=this.data)==null?void 0:g.metadataPrimary)+" "+((c=this.data)==null?void 0:c.metadataSecondary)}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],XU.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],XU.prototype,"data",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XU.prototype,"ariaLabel",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],XU);
_.U(XU,"ytd-compact-product-list-item-renderer",function(){if(LBa!==void 0)return LBa;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return LBa=e},{mode:1});var rkP;var Gc=function(){return _.z.apply(this,arguments)||this};
_.Y(Gc,_.z);Gc.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]]"}}}}}};
_.Bd.Object.defineProperties(Gc.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Gc.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Gc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Gc.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Gc);
_.U(Gc,"ytd-compact-product-list-renderer",function(){if(rkP!==void 0)return rkP;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return rkP=e},{mode:1});var awa;var x5=function(){return _.z.apply(this,arguments)||this};
_.Y(x5,_.z);_.v=x5.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.v.getBackgroundUrl=function(){var e=this.get("data.headerImage.thumbnails");return e?"url("+_.F6(e,this.hostElement.clientWidth)+")":""};
_.v.onDataChanged=function(){var e=this.getBackgroundUrl();e&&(this.header.style.backgroundImage=e);e=_.EM();var g=_.RC(),c=this.get("data.trackingParams");c&&g&&e&&_.Yn(e,g,_.Jb(c));e=_.w(this.hostElement.querySelectorAll("yt-img-shadow"));for(g=e.next();!g.done;g=e.next())g.value.onShow()};
_.v.onPopupClosed=function(e){_.A3(e).localName==="ytd-membership-post-cancel-renderer"&&_.Z5(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
x5.prototype.onPopupClosed=x5.prototype.onPopupClosed;x5.prototype.onDataChanged=x5.prototype.onDataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],x5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],x5.prototype,"data",void 0);_.t([_.Cs("#header"),_.B("design:type",HTMLDivElement)],x5.prototype,"header",void 0);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x5.prototype,"onDataChanged",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],x5.prototype,"onPopupClosed",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],x5);
_.U(x5,"ytd-membership-post-cancel-renderer",function(){if(awa!==void 0)return awa;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return awa=e},{mode:1});var nIa;var Do=function(){return _.z.apply(this,arguments)||this};
_.Y(Do,_.z);Do.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Do.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Do.prototype,"data",void 0);_.t([_.Cs("ytd-feedback-survey-renderer"),_.B("design:type",Object)],Do.prototype,"feedbackSurveyRenderer",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Do);
_.U(Do,"ytd-sponsorship-confirm-cancel-content",function(){if(nIa!==void 0)return nIa;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return nIa=e},{mode:1});var RYx;var $5=function(){var e=_.z.apply(this,arguments)||this;e.maybeSubmitFeedback=function(){e.content&&e.content.maybeSubmitFeedback()};
return e};
_.Y($5,_.z);_.v=$5.prototype;_.v.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.v.onYtPopupOpened=function(e,g){g===this&&this.data&&this.data.onOpenCommands&&_.Bm(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Z5(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.v.onYtPopupClosed=function(e,g){(g&&g.canceled===!0||g&&g.canceled===!1&&g.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Bm(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.v.onYtServiceRequestCompleted=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.v.onYtServiceRequestError=function(e){_.iD(this.hostElement,e.detail.error.message)};
_.v.onDataChanged=function(){if(this.isAttached){var e=this.backgroundUrl;e&&(_.o1(this.hostElement).querySelector("#header").style.backgroundImage=e)}};
_.Bd.Object.defineProperties($5.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var e=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return e?"url("+_.F6(e,this.hostElement.clientWidth)+")":""}}});
$5.prototype.onDataChanged=$5.prototype.onDataChanged;$5.prototype.onYtServiceRequestError=$5.prototype.onYtServiceRequestError;$5.prototype.onYtServiceRequestCompleted=$5.prototype.onYtServiceRequestCompleted;$5.prototype.onYtPopupClosed=$5.prototype.onYtPopupClosed;$5.prototype.onYtPopupOpened=$5.prototype.onYtPopupOpened;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],$5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$5.prototype,"data",void 0);_.t([_.u({value:function(){return _.C_("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],$5.prototype,"closeButtonAriaLabel",void 0);_.t([_.Cs("#scrollable"),_.B("design:type",Object)],$5.prototype,"scrollable",void 0);_.t([_.Cs("ytd-sponsorship-confirm-cancel-content"),_.B("design:type",Object)],$5.prototype,"content",void 0);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],$5.prototype,"onYtPopupOpened",null);
_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],$5.prototype,"onYtPopupClosed",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$5.prototype,"onYtServiceRequestCompleted",null);
_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$5.prototype,"onYtServiceRequestError",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$5.prototype,"onDataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],$5);
_.U($5,"ytd-sponsorship-confirm-cancel-renderer",function(){if(RYx!==void 0)return RYx;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return RYx=e},{mode:2});var EIx;var Y5=function(){return _.z.apply(this,arguments)||this};
_.Y(Y5,_.z);Y5.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Y5.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Y5);
_.U(Y5,"ytd-sponsorships-celebration-content",function(){if(EIx!==void 0)return EIx;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return EIx=
e},{mode:1});var WBP;var b1T=_.Ti(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),fG=function(){var e=_.z.apply(this,arguments)||this;e.scriptsAppended=!1;e.useFullWidthPrimaryButton=!1;e.buttonOverrides={type:"tonal",style:"overlay-dark"};return e};
_.Y(fG,_.z);_.v=fG.prototype;_.v.dataChanged=function(){var e;this.useFullWidthPrimaryButton=!((e=this.data)==null||!e.useFullWidthPrimaryButton)};
_.v.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.G("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onDataChanged=function(){var e;(e=this.header)==null||e.style.setProperty("background-color",this.backgroundColor);if(e=this.headerImageUrl){var g;(g=this.header)==null||g.style.setProperty("background-image",e)}g=_.EM(4);e=_.RC(4);var c=this.get("data.trackingParams");if(c&&e&&g){var k=_.Jb(c);_.Yn(g,e,k);_.G("combine_ve_grafts")?_.gL().graftServerVe(c,e,4):_.Yn(g,e,k)}g=_.w(this.hostElement.querySelectorAll("yt-img-shadow"));for(e=g.next();!e.done;e=g.next())e.value.onShow();if(g=this.get("data.gtmId"))_.ID(g,
_.uo("GL","")),this.setupConversionTracking()};
_.v.setupConversionTracking=function(){if(!this.scriptsAppended){var e=document.createElement("script");_.RP(e,_.aP(b1T.join("")));document.head.appendChild(e);e=document.createElement("noscript");e.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(e);this.scriptsAppended=!0}};
_.v.onPopupClosed=function(e){if(_.A3(e).localName==="ytd-sponsorships-celebration-renderer"){_.Z5(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var g;this.data&&((g=this.data)==null?0:g.dismissCommand)&&_.yJ.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Bd.Object.defineProperties(fG.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var e=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.EY(e)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var e=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return e?"url("+_.F6(e,this.hostElement.getBoundingClientRect().width)+")":""}}});
fG.prototype.onPopupClosed=fG.prototype.onPopupClosed;fG.prototype.onDataChanged=fG.prototype.onDataChanged;fG.prototype.dataChanged=fG.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],fG.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],fG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fG.prototype,"data",void 0);
_.t([_.Cs("#header"),_.B("design:type",HTMLElement)],fG.prototype,"header",void 0);_.t([_.u(),_.B("design:type",Object)],fG.prototype,"scriptsAppended",void 0);_.t([_.u({type:Boolean,reflectToAttribute:!0}),_.B("design:type",Object)],fG.prototype,"useFullWidthPrimaryButton",void 0);_.t([_.u(),_.B("design:type",Object)],fG.prototype,"buttonOverrides",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fG.prototype,"dataChanged",null);
_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fG.prototype,"onDataChanged",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fG.prototype,"onPopupClosed",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],fG);
_.U(fG,"ytd-sponsorships-celebration-renderer",function(){if(WBP!==void 0)return WBP;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return WBP=e},{mode:1});var hYJ;var j1=function(){return _.z.apply(this,arguments)||this};
_.Y(j1,_.z);_.v=j1.prototype;_.v.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.detached=function(){this.playerElement.stop()};
_.v.onYtServiceRequestCompleted=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.v.onYtServiceRequestError=function(e){_.iD(this.hostElement,e.detail.error.message)};
_.v.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.v.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.v.getTier=function(e,g){return!e||!e.tiers||g<0?null:_.x(e.tiers[g],Y9O)};
_.v.moreThanOne=function(e){return!!(e&&e.length>1)};
_.v.tierOverviewTap=function(e){var g=this;this.selectedTier=e.model.index;_.Va(this,function(){_.oC(g.hostElement,"yt-refit")})};
_.v.computeSelectedClass=function(e,g){return this.isSelected(e,g)?"selected":""};
_.v.computeButtonAriaPressed=function(e,g){return this.isSelected(e,g)?"true":"false"};
_.v.isSelected=function(e,g){return e===g};
_.v.onDataChanged=function(){_.o1(this.hostElement).querySelector("#header-overlay").style.visibility="";_.o1(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 e=_.w(this.hostElement.querySelectorAll("yt-img-shadow")),
g=e.next();!g.done;g=e.next())g.value.onShow();var c;this.set("selectedTier",(c=this.get("data.targetTierIndex"))!=null?c:0);var k;(e=(k=this.data)==null?void 0:k.onVisible)&&this.ytComponentBehavior.resolveCommand(e)};
_.v.initializeVe=function(e){var g=_.EM(),c=_.RC(),k=this.get("data.trackingParams");c&&g&&(this.screenLayer=4,g=_.HV(_.rFC)(void 0,69877,{clientScreenNonce:g,visualElement:c},void 0,void 0,void 0),_.bc(g,69877,4),c=_.RC(4),k&&c&&(k=_.Jb(k),_.Yn(g,c,k),e&&(this.offerVideoVe=_.VF(74659),_.Yn(g,k,this.offerVideoVe))))};
_.v.setHeaderBackground=function(){var e=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.o1(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.EY(e);if(e=this.getHeaderImage())e=_.F6(e,screen.width),_.o1(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+e+")"};
_.v.getHeaderImage=function(){var e=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&e?e:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.v.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.v.setupVideoPlayer=function(e){var g=this,c,k,I,J;return _.r(function(q){if(q.nextAddress==1)return c=g.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),k=g.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.G("kevlar_player_update_killswitch")?g.playerElement.update({args:{autoplay:c,video_id:e,player_params:k}}):g.playerElement.loadVideoWithPlayerVars({autoplay:c,video_id:e,player_params:k}),
q.yield(g.playerElement.getPlayerPromise(),2);I=q.yieldResult;I.addEventListener("onStateChange",function(L){g.onPlayerStateChange(L)});
I.setScreenLayer(g.screenLayer);(J=_.EM(4))&&g.offerVideoVe&&_.j4(J,g.offerVideoVe);c&&(g.pauseOtherPlayers(),g.playerElement.focusOnPlayer(),g.playerElement.getPlayer().hideControls(),_.h2(_.ft,function(){g.fadeOutHeaderOverlay()},4E3));
_.Uh(q)})};
_.v.onPlayerStateChange=function(e){e===1?this.backgroundPlayerElement&&(e=this.backgroundPlayerElement.player_.getPlayerState(),e!==1&&e!==3||this.backgroundPlayerElement.pause()):e===0&&(_.o1(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.o1(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.v.fadeOutHeaderOverlay=function(){_.o1(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.v.onHeaderTap=function(){if(this.offerVideo){_.o1(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var e;((e=this.playerElement.player_)==null?void 0:e.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(e=_.EM(4))&&this.offerVideoVe&&_.m7(e,this.offerVideoVe)}};
_.v.getBackgroundImageLayerClass=function(e){return e?"background-image-layer-with-video":""};
_.v.getHeaderClass=function(e){return e?"header-with-video":""};
_.v.getHeaderOverlayClass=function(e){return e?"header-overlay-with-video":""};
_.v.getTitleContainerClass=function(e,g){return e?"title-container-with-video":g?"title-container-without-video-flexible":"title-container-without-video"};
_.v.tierTitleDisplayStatus=function(e){return this.moreThanOne(e)?"hide":"show"};
_.v.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.Ss().resolve(_.xt).getPlayerElement():this.backgroundPlayerElement=_.FE();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var e=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=e===1||e===3;this.backgroundPlayerElement.pause()}};
_.v.isMiniplayerActive=function(){return _.Ss().resolve(_.xt).isMiniplayerActive()};
_.v.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("selected-tier-changed",this.selectedTier))};
j1.prototype.selectedTierChangedForBinding=j1.prototype.selectedTierChangedForBinding;j1.prototype.onDataChanged=j1.prototype.onDataChanged;j1.prototype.onYtPopupClosed=j1.prototype.onYtPopupClosed;j1.prototype.onYtPopupOpened=j1.prototype.onYtPopupOpened;j1.prototype.onYtServiceRequestError=j1.prototype.onYtServiceRequestError;j1.prototype.onYtServiceRequestCompleted=j1.prototype.onYtServiceRequestCompleted;
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],j1.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],j1.prototype,"data",void 0);_.t([_.u({value:0}),_.B("design:type",Number)],j1.prototype,"selectedTier",void 0);
_.t([_.u({value:""}),_.B("design:type",String)],j1.prototype,"offerVideo",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],j1.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.t([_.u({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.KC(this)}}),
_.B("design:type",String)],j1.prototype,"playerId",void 0);_.t([_.Cs("tp-yt-paper-dialog-scrollable"),_.B("design:type",Object)],j1.prototype,"scrollable",void 0);_.t([_.Cs("ytd-sponsorships-tier-renderer"),_.B("design:type",Object)],j1.prototype,"tierRenderer",void 0);_.t([_.Cs("#player"),_.B("design:type",Object)],j1.prototype,"playerElement",void 0);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],j1.prototype,"onYtServiceRequestCompleted",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],j1.prototype,"onYtServiceRequestError",null);
_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j1.prototype,"onYtPopupOpened",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j1.prototype,"onYtPopupClosed",null);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j1.prototype,"onDataChanged",null);
_.t([_.OY("selectedTier"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j1.prototype,"selectedTierChangedForBinding",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],j1);
_.U(j1,"ytd-sponsorships-offer-renderer",function(){if(hYJ!==void 0)return hYJ;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return hYJ=e},{mode:2});var Xwa;var iM=function(){var e=_.z.apply(this,arguments)||this;e.buttonOverrides={type:"filled",style:"mono"};return e};
_.Y(iM,_.z);iM.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}}}}}};
iM.prototype.backgroundColorChanged=function(){var e,g,c,k=(g=_.x((e=this.data)==null?void 0:e.content,fS0))==null?void 0:(c=g.backgroundColor)==null?void 0:c.backgroundColor;k&&(e=_.R1(k),_.o1(this.hostElement).querySelector("#banner").style.backgroundColor=e,_.o1(this.hostElement).querySelector("#abstract-art").style.backgroundColor=e)};
iM.prototype.attached=function(){this.JSC$22776_scroller&&(this.JSC$22776_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22776_scroller.attached&&typeof this.JSC$22776_scroller.attached==="function"&&this.JSC$22776_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iM.prototype.backgroundColorChanged=iM.prototype.backgroundColorChanged;_.t([_.u(),_.B("design:type",Object)],iM.prototype,"data",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],iM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Cs("#scroller"),_.B("design:type",Object)],iM.prototype,"JSC$22776_scroller",void 0);_.t([_.u(),_.B("design:type",Object)],iM.prototype,"buttonOverrides",void 0);
_.t([_.OY("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iM.prototype,"backgroundColorChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],iM);
_.U(iM,"ytd-sponsorships-promotion-celebration-renderer",function(){if(Xwa!==void 0)return Xwa;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Xwa=e},{mode:2});var GqA;var xqj;var PC=function(){return _.z.apply(this,arguments)||this};
_.Y(PC,_.z);PC.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
PC.prototype.computeIsInitiallyChecked=function(e){return e===1};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],PC.prototype,"data",void 0);_.t([_.Cs("#checkbox"),_.B("design:type",Object)],PC.prototype,"checkbox",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],PC);
_.U(PC,"ytd-subscription-toggle-option-renderer",function(){if(xqj!==void 0)return xqj;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return xqj=e},{mode:1});var mJ=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return e};
_.Y(mJ,_.z);mJ.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"}}}};
mJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mJ.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var e=_.o1(this.hostElement).querySelector("#options").selected;e=this.data.options[e].subscriptionRadioOptionRenderer.serviceEndpoint;var g=_.o1(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");g&&e&&e.modifyChannelNotificationPreferenceEndpoint&&(g=g.getValue())&&(e.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[g]);_.Ss().resolve(_.xk).resolveCommand(e,{form:{element:this.hostElement}});
_.Z5(this.hostElement,"yt-close-popup-action")};
_.Bd.Object.defineProperties(mJ.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var e=this.data.options,g=0;g<e.length;g++){var c=e[g].subscriptionRadioOptionRenderer;if(c&&c.selected)return g}return null}}});
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],mJ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],mJ.prototype,"eventForwardingBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],mJ.prototype,"data",void 0);_.t([_.p("data.options"),_.B("design:type",Object),_.B("design:paramtypes",[])],mJ.prototype,"initialIndex",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],mJ);
_.U(mJ,"ytd-subscription-notification-options-renderer",function(){if(GqA!==void 0)return GqA;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return GqA=e},{mode:1});var Dq3;var $qa=function(){return _.z.apply(this,arguments)||this};
_.Y($qa,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$qa.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$qa.prototype,"data",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],$qa);
_.U($qa,"ytd-tvfilm-offer-groups-renderer",function(){if(Dq3!==void 0)return Dq3;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Dq3=e},{mode:1});var Yvm;var pG=function(){return _.z.apply(this,arguments)||this};
_.Y(pG,_.z);_.v=pG.prototype;_.v.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.v.computeThumbnailClass=function(e){return e.thumbnailOverlays?e.isShow?"thumbnail-show":"thumbnail-movie":e.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.v.computeCommerceSectionClass=function(e){return e.offers&&e.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.v.computeTitleClass=function(e){return e.offers&&e.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.v.onDataChanged=function(){[].concat(_.KY(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(e){e.onShow()})};
pG.prototype.onDataChanged=pG.prototype.onDataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],pG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],pG.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],pG.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pG.prototype,"onDataChanged",null);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],pG);
_.U(pG,"ytd-ypc-offers-overlay-renderer",function(){if(Yvm!==void 0)return Yvm;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Yvm=e},{mode:2});var fwP;var jnr=function(){this.usedMethods=new Set};
jnr.prototype.add=function(e){this.usedMethods.add(e)};
jnr.prototype.reset=function(){this.usedMethods.clear()};var i1j,PsA;
_.mqB=function(e,g){this.query=e;this.previousSearchQuery=g;this.id=i1j++;if(!PsA){g=_.uo("SBOX_SETTINGS");e="https://"+((g==null?void 0:g.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var c=g==null?void 0:g.REQUEST_LANGUAGE;c&&(e+="&hl="+c);(c=g==null?void 0:g.REQUEST_DOMAIN)&&(e+="&gl="+c);e+="&client=youtube&gs_ri=youtube";(c=g==null?void 0:g.SUGG_EXP_ID)&&(e+="&sugexp="+encodeURIComponent(c));(c=g==null?void 0:g.PSUGGEST_TOKEN)&&(e+="&tok="+c);(g=g==
null?void 0:g.SESSION_INDEX)&&(e+="&authuser="+g);_.G("desktop_enable_visual_suggest")&&(e+="&h=180&w=320&ytvs=1");PsA=e}};
_.pw3=function(e){var g="q="+encodeURIComponent(e.query);e.previousSearchQuery&&(g+="&pq="+encodeURIComponent(e.previousSearchQuery));return g};
_.TZP=function(){var e=_.uo("SBOX_SETTINGS"),g={};if(e==null?0:e.SEND_VISITOR_DATA)g["X-Goog-Visitor-Id"]=e==null?void 0:e.VISITOR_DATA;return g};
_.lwJ=function(e){var g=PsA;g+="&gs_id="+e.id.toString(36);g+="&q="+encodeURIComponent(e.query);g+="&cp="+e.query.length;e.previousSearchQuery&&(g+="&pq="+encodeURIComponent(e.previousSearchQuery));(e=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(g+="&video_id="+e);return g};
i1j=0;PsA="";var AkA,sn3,FBa,uMJ,dqm;AkA=DD.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST;sn3=DD.SEARCH_ENTITY_SUGGESTION_MOVIE;FBa=DD.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST;uMJ=DD.SEARCH_ENTITY_SUGGESTION_TV_SHOW;dqm=function(e,g){this.text=e;this.bold=g};
_.zYj=function(e,g,c){this.input=g;this.index=c;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=e[0];this.type=e[1];this.subtypes=e[2];var k;this.displayText=Ig0((k=e[3])==null?void 0:k.b);var I;this.ignoredPrefix=Ig0((I=e[3])==null?void 0:I.a);var J,q;this.hasNewVideo=((J=e[3])==null?void 0:(q=J.zam)==null?void 0:q.toString())==="true"?!0:!1;var L;this.visualSuggestUrl=(L=e[3])==null?void 0:L.zai;var n;this.entityType=Ig0((n=e[3])==null?void 0:n.zap);var R;this.entityName=Ig0((R=
e[3])==null?void 0:R.zao);var W;g=Ig0((W=e[3])==null?void 0:W.zaf);var b;this.entityMid=(b=e[3])==null?void 0:b.zae;W=JL7(this.subtypes,this.entityMid);if(g&&W){if(g){b="";switch(W){case "YOUTUBE_ENTITY_TYPE_SONG":b=FBa;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":b=AkA;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":b=uMJ;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":b=sn3}W=W==="YOUTUBE_ENTITY_TYPE_SONG"||W==="YOUTUBE_ENTITY_TYPE_ALBUM"?b+" \u2022  \u2022 "+g:g}else W="";this.entitySubtitle=W}var h;this.externalChannelId=
(h=e[3])==null?void 0:h.zav;var X;this.entityThumbnailAttributionUrl=(X=e[3])==null?void 0:X.zaq};
_.Qnp=function(e,g){var c=[],k,I=(k=e.displayText)!=null?k:e.text;(g==null?0:g.useEntityName)&&_.H13(e)&&e.entityName&&(I=e.entityName);if(e.type===33)return c.push(new dqm(I,!1)),c;if(I.length>=e.input.length&&I.substring(0,e.input.length)===e.input)c.push(new dqm(e.input,!1)),c.push(new dqm(I.substring(e.input.length),!0));else{var J=new Set(e.input.split(/\s/)),q=I.split(/\s/);c=q.map(function(L,n){return new dqm(L.trim()+(n===q.length-1?"":" "),!J.has(L))})}return c};
_.H13=function(e){var g=!!JL7(e.subtypes);e=!!e.entityMid;return g||e};_.Uqj=function(e){this.rawResponse=["",[],{}];this.suggestions=[];try{var g=JSON.parse(vEQ(e));if(typeof g==="object"&&g!==null)this.rawResponse=g;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(k){console.log("Suggest: Failed to parse SuggestResponse!");return}var c=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(k,I){return new _.zYj(k,c,I)})};var oId=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new jnr;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$22813_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Z1P,VuT=function(){Z1P||(Z1P=new oId);
return Z1P};
oId.prototype.updateSuggestions=function(e){var g=this;this.availableSuggestions.forEach(function(c){g.previousSuggestions[c]=!0});
this.availableSuggestions=e.map(function(c){var k=c.type.toString();c.subtypes.length>0&&(k+="i"+c.subtypes.join("i"),k+="k"+c.suggestionSources.COMPLETE_SERVER.toString());return k})};
var tuB=function(e,g){var c=Date.now();e.firstEditTime<0&&(e.firstEditTime=c);g&&(e.lastQueryBuildTime=c);e.lastEditTime=c};
oId.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$22813_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var BZp=function(e){var g="";e.availableSuggestions.forEach(function(I){delete e.previousSuggestions[I]});
for(var c=_.w(Object.keys(e.previousSuggestions)),k=c.next();!k.done;k=c.next())k=k.value,e.previousSuggestions[k]&&(g+=(g?"j":"")+k);return g},NZj=function(e,g){var c=[];
g&&(c[1]=g.toString());c[0]="youtube";c[7]=Date.now()-e.startTime;c[6]=e.sessionNumber;e.zeroPrefixSuggestionCount>=0&&(c[33]=e.zeroPrefixSuggestionCount);c[13]=e.outOfSyncResponseCount;if(e.availableSuggestions.length>0){for(var k=g="",I=0,J=_.w(e.availableSuggestions),q=J.next();!q.done;q=J.next())q=q.value,q!==k&&(I>1&&(g+="l"+I),g+=(k?"j":"")+q,I=0,k=q),I+=1;I>1&&(g+="l"+I);c[3]=g}c[35]=BZp(e);e.selectedSuggestionIndex>=0&&(c[2]=e.selectedSuggestionIndex);var L;if(g=(L=_.uo("SBOX_SETTINGS"))==
null?void 0:L.SUGG_EXP_ID)c[19]=e.normalize(g),L=0,e.experimentTriggeredBeforeFinal&&(L|=1),e.experimentTriggeredFinal&&(L|=2),c[20]=L;c[26]=Array.from(e.inputMethodsTracker.usedMethods).join("j");if(e.JSC$22813_totalRoundTripTime>0){c[15]=e.JSC$22813_totalRoundTripTime;c[14]=e.maxRoundTripTime;L=[];for(I=g=0;I<10;I++)k=e.roundTripTimeHistogram[I],k===0?g++:(g>1?L.push(I+"-"+k):g===1?L.push("0j"+k):L.push(k.toString()),g=0);L=L.join("j");c[16]=L}e.zeroPrefixRoundTripTime>0&&(c[36]=e.zeroPrefixRoundTripTime);
e.lastQueryBuildTime>0&&(c[18]=e.lastQueryBuildTime-e.startTime);e.firstEditTime>0&&(c[4]=e.firstEditTime-e.startTime);e.lastEditTime>0&&(c[5]=e.lastEditTime-e.startTime);return c.join(".")};
oId.prototype.normalize=function(e){return e.replaceAll(".","-")};
var SvJ=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Tc=function(){var e=_.z.apply(this,arguments)||this;e.microphoneSpinnerActive=!1;e.noAnimations=!1;e.boundExitClick=function(){e.onExitButtonClick()};
e.speechOverlayClassName="";e.isLevelAnimating=!1;e.playCloseDialogAudioFeedback=!0;e.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return e};
_.Y(Tc,_.z);_.v=Tc.prototype;_.v.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.v.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=BUj()};
_.v.dataChanged=function(){this.logDialog()};
_.v.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var e;(e=this.manager.audioPlayer)!=null&&(e.JSC$21668_audioEnabled=!1)}this.manager.stop();(e=this.manager.audioPlayer)!=null&&(e.JSC$21668_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.v.handleSpeechQueryCompleteAction=function(e){var g=e.navigationAction;g&&(e.trackingParams&&_.gL().graftServerVe(e.trackingParams,this.dialogVe,5),_.oC(this.hostElement,"yt-navigate",{endpoint:g,tempData:this.getNavigationParams(g),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.v.onExitButtonClick=function(){this.closeDialog()};
_.v.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var e;if((e=this.manager)!=null){var g;(g=e.audioPlayer)==null||ZT(g,"failure");e.setState("microphone-off");e.stop()}}else(e=this.manager)==null||e.start()};
_.v.transcriptionChanged=function(){var e,g;(((e=this.transcription)==null?0:e.low)||((g=this.transcription)==null?0:g.high))&&this.setState("transcribing",this.transcription)};
_.v.stateChanged=function(){this.setState(this.state,this.transcription)};
_.v.logDialog=function(){var e;(e=this.data)!=null&&e.trackingParams&&(e=_.gL(),_.BU(e,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=e.graftServerVe(this.data.trackingParams,void 0,5))};
_.v.getNavigationParams=function(e){var g={};if(_.G("web_yt_searchbox")){var c=VuT();c.inputMethodsTracker.add(6);c=NZj(c,15);g.gs_l=c;var k;g.oq=((k=_.x(e,_.Oo))==null?void 0:k.query)||""}else if(e=window.ytvoicesearchloggingparams){if(e=e())g.oq=e.oq,g.gs_l=e.gs_l}else _.UI(Error("lm"));return g};
_.v.closeDialog=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.v.setState=function(e,g){if(this.data){var c=this.data,k={};switch(e){case "listening":k={headerText:c.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:c.microphoneButtonAriaLabel};break;case "timeout":k={headerText:c.promptHeader,microphoneState:"try-again",microphoneLabel:c.promptMicrophoneLabel,microphoneAriaLabel:c.promptMicrophoneLabel};break;case "microphone-off":k={headerText:c.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:c.promptMicrophoneLabel,
microphoneAriaLabel:c.promptMicrophoneLabel};break;case "transcribing":(g==null?0:g.low)||(g==null?0:g.high)?k={transcriptionLow:g==null?void 0:g.low,transcriptionHigh:g==null?void 0:g.high,microphoneState:"speaking",microphoneAriaLabel:c.microphoneButtonAriaLabel}:k={headerText:c.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:c.microphoneButtonAriaLabel};break;case "processing":k={headerText:c.loadingHeader,microphoneState:"processing",microphoneAriaLabel:c.microphoneButtonAriaLabel};
break;case "offline":k={headerText:c.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:c.connectionErrorMicrophoneLabel,microphoneAriaLabel:c.connectionErrorMicrophoneLabel};break;case "permission":k={headerText:c.permissionsHeader,bodyLine1:c.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:c.permissionsSubtext};break;case "permission-denied":k={headerText:c.disabledHeader,bodyLine1:c.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:c.disabledSubtext}}k.className=
e;this.speechOverlayState=k;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.v.setMicrophoneState=function(e){var g=this.isLevelAnimating;this.isLevelAnimating=e==="speaking";!g&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=e==="processing"&&!this.noAnimations};
_.v.setClass=function(e){this.speechOverlayClassName&&_.Vg(this.hostElement,this.speechOverlayClassName,!1);e&&(this.speechOverlayClassName=e,_.Vg(this.hostElement,e,!0))};
_.v.runLevelAnimation=function(){var e=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var g=1+Math.random()*.75,c=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+c/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+g+")");_.ft.addJob(function(){e.runLevelAnimation()},3,c)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Tc.prototype.stateChanged=Tc.prototype.stateChanged;Tc.prototype.transcriptionChanged=Tc.prototype.transcriptionChanged;Tc.prototype.onPopupClosed=Tc.prototype.onPopupClosed;Tc.prototype.dataChanged=Tc.prototype.dataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Tc.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Tc.prototype,"rendererStamperBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],Tc.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],Tc.prototype,"eventForwardingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Tc.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],Tc.prototype,"speechOverlayState",void 0);
_.t([_.u(),_.B("design:type",Object)],Tc.prototype,"microphoneSpinnerActive",void 0);_.t([_.u({type:_.G("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.B("design:type",Object)],Tc.prototype,"noAnimations",void 0);_.t([_.u({selector:function(e){var g;return(g=e.voiceSearch)==null?void 0:g.transcription}}),
_.B("design:type",Object)],Tc.prototype,"transcription",void 0);_.t([_.u({selector:function(e){var g;return(g=e.voiceSearch)==null?void 0:g.overlay}}),
_.B("design:type",String)],Tc.prototype,"state",void 0);_.t([_.u(),_.B("design:type",Object)],Tc.prototype,"boundExitClick",void 0);_.t([_.Cs("#microphone-levels"),_.B("design:type",HTMLElement)],Tc.prototype,"level",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tc.prototype,"dataChanged",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tc.prototype,"onPopupClosed",null);
_.t([_.k_("transcription"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tc.prototype,"transcriptionChanged",null);_.t([_.k_("state"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tc.prototype,"stateChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Tc);
_.U(Tc,"ytd-voice-search-dialog-renderer",function(){if(fwP!==void 0)return fwP;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return fwP=e},{mode:1});var ykr;var lM=function(){var e=_.z.apply(this,arguments)||this;e.isOverlay=!1;e.hidden=!1;return e};
_.Y(lM,_.z);_.v=lM.prototype;_.v.onPopupClosed=function(){this.toggleIconState(!1)};
_.v.computeIcon=function(){var e,g,c;return(g=_.x((e=this.data)==null?void 0:e.icon,OEj))==null?void 0:(c=g.icon)==null?void 0:c.iconType};
_.v.computeIconBadgeShape=function(){var e;return{iconBadgeType:"cart",iconBadgeText:(e=this.iconBadgeEntity)==null?void 0:e.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.v.onClick=function(){var e;(e=this.data)!=null&&e.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.v.computeHidden=function(e){return!e};
_.v.toggleIconState=function(e){this.iconButton&&(this.iconButton.pressed=e)};
lM.prototype.onPopupClosed=lM.prototype.onPopupClosed;_.t([_.m(_.Wv),_.B("design:type",Object)],lM.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],lM.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],lM.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],lM.prototype,"isOverlay",void 0);
_.t([_.u({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.B("design:type",Object)],lM.prototype,"hidden",void 0);_.t([_.u({selectorArgs:["data.iconBadgeEntityKey"],selector:function(e,g){return _.Nc(e.entities,"iconBadgeEntity",g)}}),
_.B("design:type",Object)],lM.prototype,"iconBadgeEntity",void 0);_.t([_.Cs("yt-icon-button"),_.B("design:type",HTMLButtonElement)],lM.prototype,"iconButton",void 0);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lM.prototype,"onPopupClosed",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],lM);
_.U(lM,"ytd-icon-badge-topbar-button-renderer",function(){if(ykr!==void 0)return ykr;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return ykr=e},{mode:1});var KBA;var AI=function(){var e=_.z.apply(this,arguments)||this;e.premiumOptions=[];return e};
_.Y(AI,_.z);AI.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Bd.Object.defineProperties(AI.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],AI.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Array)],AI.prototype,"premiumOptions",void 0);_.t([_.p("premiumOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],AI.prototype,"hasPremiumOptions",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],AI);
_.U(AI,"ytd-offline-promo-content",function(){if(KBA!==void 0)return KBA;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return KBA=e},{mode:1});var O1j;var s$=function(){var e=_.z.apply(this,arguments)||this;e.premiumOptions=[];return e};
_.Y(s$,_.z);s$.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var e;this.premiumOptions=klD((e=this.data)==null?void 0:e.formats)};
s$.prototype.onClickSubmit=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var e;(e=_.FE())==null||e.pause()};
s$.prototype.attached=function(){this.JSC$22833_scroller&&(this.JSC$22833_scroller.dialogElement=this.hostElement.parentNode)};
_.Bd.Object.defineProperties(s$.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
s$.prototype.dataChanged=s$.prototype.dataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],s$.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],s$.prototype,"data",void 0);
_.t([_.u({computed:"computeIcon_(data.headersIcon)",value:""}),_.B("design:type",String)],s$.prototype,"headersIcon",void 0);_.t([_.u(),_.B("design:type",Array)],s$.prototype,"premiumOptions",void 0);_.t([_.Cs("#scroller"),_.B("design:type",Object)],s$.prototype,"JSC$22833_scroller",void 0);_.t([_.p("headersIcon"),_.B("design:type",Object),_.B("design:paramtypes",[])],s$.prototype,"showIcon",null);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s$.prototype,"dataChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],s$);
_.U(s$,"ytd-offline-promo-renderer",function(){if(O1j!==void 0)return O1j;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return O1j=e},{mode:1});var Mu3;var FU=function(){var e=_.z.apply(this,arguments)||this;e.playbackPauseInterval=NaN;e.isLoading=!1;e.hasError=!1;e.dialogClass="";e.youtubeLabel=_.C_("LOGO_ALT_LABEL",{},"YouTube Home");e.logoName="yt-logos-ext:yt-logo-updated";e.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return e};
_.Y(FU,_.z);_.v=FU.prototype;_.v.onDataChange=function(){var e;if(this.showEOMV1Text=!((e=this.data)==null||!e.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.v.attached=function(){this.pausePlayer()};
_.v.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.v.handleLangSelect=function(e){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[e.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.v.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.v.handleSaveConsent=function(e){var g=this;this.showLoadingSpinner();this.showLoadingSpinner();KVv(_.x(e,d6j)).catch(function(c){_.mN(new _.E2("Something went wrong when save consent "+(c.message?c.message:c)+"."));g.hideLoadingSpinner();g.showErrorMessage()})};
_.v.handleDisablePersonalization=function(e){var g=this;this.showLoadingSpinner();OMv(_.x(e,uFX)).then(function(){g.dialog.close();g.resumePlayer()}).catch(function(c){_.mN(new _.E2("Something went wrong when disable personalization "+(c.message?c.message:c)+"."));
g.hideLoadingSpinner();g.showErrorMessage()})};
_.v.showLoadingSpinner=function(){var e=this;this.showSpinnerJobId=_.ft.addLowPriorityJob(function(){e.isLoading=!0},500)};
_.v.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.ft.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.v.showErrorMessage=function(){var e=this;this.hasError=!0;_.ft.addLowPriorityJob(function(){e.hasError=!1},2E3)};
_.v.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.I$(function(){try{var e=_.FE();e&&e.pause()}catch(g){}},100))};
_.v.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var e=_.FE();e&&e.play()}catch(g){}};
_.Bd.Object.defineProperties(FU.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.eomV1Text)return[];e=[];for(var g=["SHIELD","WARNING","BAR_CHART"],c=this.data.eomV1Text.essentialCookieMsg.items,k=0;k<g.length&&k<c.length;k++)e.push({icon:g[k],text:c[k]});return e}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.eomV1Text)return[];e=[];for(var g=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],c=this.data.eomV1Text.nonEssentialCookieMsg.items,k=0;k<g.length&&k<c.length;k++)e.push({icon:g[k],text:c[k]});return e}}});
FU.prototype.onDataChange=FU.prototype.onDataChange;_.t([_.u(),_.B("design:type",Object)],FU.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],FU.prototype,"showEOMV1Text",void 0);_.t([_.u(),_.B("design:type",Object)],FU.prototype,"isLoading",void 0);_.t([_.u(),_.B("design:type",Object)],FU.prototype,"hasError",void 0);_.t([_.u(),_.B("design:type",Number)],FU.prototype,"showSpinnerJobId",void 0);_.t([_.u(),_.B("design:type",Object)],FU.prototype,"dialogClass",void 0);
_.t([_.Cs("#dialog"),_.B("design:type",Object)],FU.prototype,"dialog",void 0);_.t([_.Cs("#cb-header"),_.B("design:type",HTMLElement)],FU.prototype,"header",void 0);_.t([_.Cs("#lang-select"),_.B("design:type",HTMLElement)],FU.prototype,"langSelect",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],FU.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],FU.prototype,"ytComponentBehavior",void 0);
_.t([_.u(),_.B("design:type",String)],FU.prototype,"youtubeLabel",void 0);_.t([_.u(),_.B("design:type",Object)],FU.prototype,"logoName",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FU.prototype,"onDataChange",null);_.t([_.p("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],FU.prototype,"eomEssentialCookieMsgItems",null);
_.t([_.p("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],FU.prototype,"eomNonEssentialCookieMsgItems",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],FU);
_.U(FU,"ytd-consent-bump-v2-lightbox",function(){if(Mu3!==void 0)return Mu3;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Mu3=e},{mode:1});var Cs3;var uM=function(){return _.z.apply(this,arguments)||this};
_.Y(uM,_.z);uM.prototype.ready=function(){if(!_.a$()||usO)var e=!0;else usO=!0,e=!1;e||(e=document.querySelector("ytd-app"),e||(e=document.body),this.internalLightBox=_.o1(e).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.t([_.u(),_.B("design:type",Object)],uM.prototype,"data",void 0);_.t([_.Cs("#lightbox"),_.B("design:type",Object)],uM.prototype,"lightBox",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],uM);
_.U(uM,"ytd-consent-bump-v2-renderer",function(){if(Cs3!==void 0)return Cs3;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return Cs3=e},{mode:1});var elP;var gXa;var coJ;var df=function(){return _.z.apply(this,arguments)||this};
_.Y(df,_.z);_.v=df.prototype;_.v.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&ZQg(this.toastManager,this.toastType)};
_.v.open=function(e){this.toast&&(this.ephemeralAction&&_.Ss().resolve(_.hE).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=e!=null?e:0,this.toastManager.enqueue(this.toast,e)):this.toast.open())};
_.v.close=function(e){var g;(g=this.toast)==null||g.close();this.toastManager&&e===1&&ZQg(this.toastManager,e)};
_.v.refit=function(){var e;(e=this.toast)==null||e.refit()};
_.v.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var e;(e=this.toast)==null||e.close()}};
_.v.setVerticalOffset=function(e){this.toast&&(this.toast.verticalOffset=e,this.toast.fit())};
_.v.computeButtonClass_=function(e){return e?"toast-button":""};
_.v.computeText_=function(e){return _.mp(e)};
_.v.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.PF("toast-opened-changed",this.toastOpened))};
_.v.updateToastOpenedFromBinding=function(e){this.toastOpened=e.detail.value};
_.Bd.Object.defineProperties(df.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var e,g,c=(e=this.data)==null?void 0:(g=e.actionButton)==null?void 0:g.buttonRenderer;return(c==null?void 0:c.command)||(c==null?void 0:c.serviceEndpoint)||(c==null?void 0:c.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var e=[],g;((g=this.data)==null?0:g.responseText)&&e.push(_.mp(this.data.responseText));var c;((c=this.data)==null?0:c.subText)&&e.push(_.mp(this.data.subText));var k,I;if((k=this.data)==null?0:(I=k.actionButton)==null?0:I.buttonRenderer){var J,q;e.push(((J=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(q=J.accessibilityData)==null?void 0:q.label)||_.mp(this.data.actionButton.buttonRenderer.text))}return e.filter(function(L){return L}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var e,g;return(g=(e=this.toast)==null?void 0:e.opened)!=null?g:!1}}});
df.prototype.toastOpenedChangedForBinding=df.prototype.toastOpenedChangedForBinding;df.prototype.toastOpenedChanged=df.prototype.toastOpenedChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],df.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],df.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],df.prototype,"duration",void 0);
_.t([_.u(),_.B("design:type",Number)],df.prototype,"toastType",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],df.prototype,"useCloseButton",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],df.prototype,"closeToastOnActionButtonClick",void 0);_.t([_.u({value:function(){return _.C_("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],df.prototype,"closeButtonAriaLabel",void 0);_.t([_.u(),_.B("design:type",Boolean)],df.prototype,"toastOpened",void 0);_.t([_.u(),_.B("design:type",Boolean)],df.prototype,"hasOpened",void 0);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],df.prototype,"command",null);_.t([_.p("labelText","command","duration"),_.B("design:type",Object),_.B("design:paramtypes",[])],df.prototype,"ephemeralAction",null);
_.t([_.p("ephemeralAction"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],df.prototype,"hasEphemeralAction",null);_.t([_.Cs("#toast"),_.B("design:type",Object)],df.prototype,"toast",void 0);_.t([_.u({value:function(){return{style:"call-to-action-inverse"}}}),
_.B("design:type",Object)],df.prototype,"buttonOverrides",void 0);_.t([_.u({value:{style:"mono-inverse"}}),_.B("design:type",Object)],df.prototype,"closeButtonOverrides",void 0);_.t([_.u({value:function(){return _.Ss().resolve(_.NN(_.W8))}}),
_.B("design:type",Object)],df.prototype,"toastManager",void 0);_.t([_.p("data.responseText","data.subText","data.actionButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],df.prototype,"labelText",null);_.t([_.OY("toastOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],df.prototype,"toastOpenedChanged",null);
_.t([_.OY("toastOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],df.prototype,"toastOpenedChangedForBinding",null);_.t([_.Wo({is:"yt-notification-action-renderer",disableElementRegistration:!0})],df);
_.U(df,"yt-notification-action-renderer",function(){if(coJ===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;gXa===void 0&&(gXa=document.createElement("template"));var k=gXa;c.call(g,k.content.cloneNode(!0),e.content.firstChild);coJ=e}e=coJ;return e},{mode:2});var zc=function(){var e=_.z.apply(this,arguments)||this;e.duration=4E3;e.downloadingCount=0;e.downloadedCount=0;e.downloadingOnlySmartDownloads=!1;e.sessionTotalDownloads=0;e.sessionDownloaded=0;e.previousSessionsDownloaded=0;e.totalDownloadPercentage=0;e.currentDownloadProgress=0;e.currentDownloadPercentage=0;e.isLeaderTab=!0;e.isFullScreen=!1;e.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};e.boundBeforeUnload=function(g){e.isLeaderTab&&e.downloadingCount>0&&(g.preventDefault(),
g.returnValue=!0)};
return e};
_.Y(zc,_.z);_.v=zc.prototype;
_.v.open=function(){this.updateDownloadState();if(this.data){var e=this.sessionDownloaded+1,g=this.sessionTotalDownloads>1?_.C_("VIDEOS_DOWNLOADING_RATIO",{downloaded:e.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+e+"/"+this.sessionTotalDownloads):_.C_("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(g=this.sessionTotalDownloads>1?_.C_("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:e.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
e+"/"+this.sessionTotalDownloads):_.C_("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));e=this.isLeaderTab?_.C_("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.mp(this.data.responseText)!==g||_.mp(this.data.subText)!==e)this.set("data.responseText",_.PL(g)),this.set("data.subText",_.PL(e)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.v.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.v.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.v.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.v.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var e=this.downloadedCount-this.previousSessionsDownloaded;e<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-e);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.v.handleFullscreenChange=function(e){(this.isFullScreen=e)||this.updatePopup()};
zc.prototype.updateCurrentDownloadProgress=zc.prototype.updateCurrentDownloadProgress;zc.prototype.updatePopup=zc.prototype.updatePopup;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],zc.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],zc.prototype,"ytEventForwardingBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],zc.prototype,"actionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],zc.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],zc.prototype,"duration",void 0);_.t([_.u({selector:function(e){return _.uxA(e.entities).length}}),
_.B("design:type",Object)],zc.prototype,"downloadingCount",void 0);_.t([_.u({selector:$og}),_.B("design:type",Object)],zc.prototype,"downloadedCount",void 0);_.t([_.u({selector:function(e){var g=_.uxA(e.entities);return Xmg(e.entities,g)}}),
_.B("design:type",Object)],zc.prototype,"downloadingOnlySmartDownloads",void 0);_.t([_.u(),_.B("design:type",Object)],zc.prototype,"sessionTotalDownloads",void 0);_.t([_.u(),_.B("design:type",Object)],zc.prototype,"sessionDownloaded",void 0);_.t([_.u(),_.B("design:type",Object)],zc.prototype,"previousSessionsDownloaded",void 0);_.t([_.u(),_.B("design:type",Object)],zc.prototype,"totalDownloadPercentage",void 0);
_.t([_.u({selector:function(e){var g;e=(g=_.uxA(e.entities))!=null?g:[];return e.length>0?_.frA(e.slice(-1)):0}}),
_.B("design:type",Object)],zc.prototype,"currentDownloadProgress",void 0);_.t([_.u(),_.B("design:type",Object)],zc.prototype,"currentDownloadPercentage",void 0);_.t([_.u({selector:_.UTC}),_.B("design:type",Object)],zc.prototype,"isLeaderTab",void 0);_.t([_.Cs("yt-notification-action-renderer"),_.B("design:type",Object)],zc.prototype,"notificationActionRenderer",void 0);
_.t([_.k_("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zc.prototype,"updatePopup",null);_.t([_.k_("currentDownloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zc.prototype,"updateCurrentDownloadProgress",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],zc);
_.U(zc,"ytd-video-download-toast-renderer",function(){if(elP!==void 0)return elP;var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return elP=e},{mode:1});var kDb;var I0a;var HC=function(){return _.z.apply(this,arguments)||this};
_.Y(HC,_.z);HC.prototype.computeIsRedLogo=function(e,g){!e&&g&&(e=g);return e==="YOUTUBE_RED_LOGO"||e==="YOUTUBE_PREMIUM_LOGO"};
HC.prototype.computeLogoName=function(e){e=this.componentBehavior.computeIcon_(e);return e===""?"yt-logos-ext:yt-logo-updated":e};
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],HC.prototype,"componentBehavior",void 0);_.t([_.u({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.B("design:type",Boolean)],HC.prototype,"isRedLogo",void 0);_.t([_.u({computed:"computeLogoName(data)"}),_.B("design:type",String)],HC.prototype,"logoName",void 0);_.t([_.u({value:{}}),_.B("design:type",Object)],HC.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],HC.prototype,"logoType",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-logo"})],HC);
_.U(HC,"ytd-logo",function(){if(I0a!==void 0)return I0a;var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return I0a=e},{mode:2});var Qi=function(){var e=_.z.apply(this,arguments)||this;e.animationRef={};return e};
_.Y(Qi,_.z);_.v=Qi.prototype;_.v.attached=function(){document.addEventListener("yt-navigate-finish",_.yg(this,this.logYoodle))};
_.v.detached=function(){document.removeEventListener("yt-navigate-finish",_.yg(this,this.logYoodle))};
_.v.logYoodle=function(){var e,g;if((e=this.data)==null?0:(g=e.loggingDirectives)==null?0:g.trackingParams)this.ytRendererBehavior.markDirty(),_.gL().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.v.computeHideImg=function(e,g){return!!e||!!g};
_.v.computeHideYtdLogo=function(e,g){return!e||!!g};
_.v.computeHideLottie=function(e){return!e};
_.v.computeIsRedLogo=function(e){return e==="YOUTUBE_RED_LOGO"||e==="YOUTUBE_PREMIUM_LOGO"};
_.v.renderLogoEntity=function(){var e=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),g=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),c=this.getLogoTitleText(this.data),k=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==e&&(this.url=e);this.animatedUrl!==g&&(this.animatedUrl=g);this.logoTitleText!==c&&(this.logoTitleText=c);this.lottieUrl!==k&&(this.lottieUrl=k,this.lottiePlayerProps=this.computeLottiePlayerProps(k))};
_.v.getSanitizedThumbnail=function(e){return e&&e.thumbnails?_.ahp(e.thumbnails,122)||"":""};
_.v.getThumbnailUrl=function(e,g){if(!g)return"";var c,k;e=e?(c=g.darkThemeLogo)==null?void 0:c.thumbnail:(k=g.lightThemeLogo)==null?void 0:k.thumbnail;return this.getSanitizedThumbnail(e)};
_.v.getAnimatedThumbnailUrl=function(e,g){return g?this.getSanitizedThumbnail(e?g.darkThemeAnimatedLogo:g.lightThemeAnimatedLogo):""};
_.v.getLogoTitleText=function(e){if(e)return _.mp(e.tooltipText)};
_.v.computeLogoIcon=function(e,g){if(g){var c,k;return e?(c=g.darkThemeLogo)==null?void 0:c.icon:(k=g.lightThemeLogo)==null?void 0:k.icon}};
_.v.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.v.getLottieUrl=function(e,g){var c,k,I,J;return e?g==null?void 0:(c=g.darkThemeLogo)==null?void 0:(k=c.lottieAnimation)==null?void 0:k.url:g==null?void 0:(I=g.lightThemeLogo)==null?void 0:(J=I.lottieAnimation)==null?void 0:J.url};
_.v.computeLottiePlayerProps=function(e){if(e){var g;if((g=this.animationRef)==null?0:g.lottieEl){var c;(c=this.animationRef)==null||c.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:e,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.v.onLottieError=function(){this.data&&this.lottieUrl&&_.oC(this.hostElement,"yoodle-error")};
_.v.onImgError=function(){this.data&&!this.lottieUrl&&_.oC(this.hostElement,"yoodle-error")};
Qi.prototype.playAnimation=Qi.prototype.playAnimation;Qi.prototype.renderLogoEntity=Qi.prototype.renderLogoEntity;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Qi.prototype,"data",void 0);_.t([_.u({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.B("design:type",Boolean)],Qi.prototype,"hideImg",void 0);
_.t([_.u({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.B("design:type",Boolean)],Qi.prototype,"hideYtdLogo",void 0);_.t([_.u({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.B("design:type",Boolean)],Qi.prototype,"hideLottie",void 0);_.t([_.u({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.B("design:type",Boolean)],Qi.prototype,"isRedLogo",void 0);
_.t([_.u(),_.B("design:type",Boolean)],Qi.prototype,"useDarkThemeYoodle",void 0);_.t([_.u(),_.B("design:type",String)],Qi.prototype,"url",void 0);_.t([_.u(),_.B("design:type",String)],Qi.prototype,"animatedUrl",void 0);_.t([_.u(),_.B("design:type",String)],Qi.prototype,"logoTitleText",void 0);_.t([_.u({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.B("design:type",Object)],Qi.prototype,"logoIcon",void 0);_.t([_.u(),_.B("design:type",Object)],Qi.prototype,"logoType",void 0);
_.t([_.u(),_.B("design:type",String)],Qi.prototype,"lottieUrl",void 0);_.t([_.u(),_.B("design:type",Object)],Qi.prototype,"lottiePlayerProps",void 0);_.t([_.u(),_.B("design:type",Object)],Qi.prototype,"animationRef",void 0);_.t([_.OY("data"),_.OY("useDarkThemeYoodle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qi.prototype,"renderLogoEntity",null);
_.t([_.Ks("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Qi.prototype,"playAnimation",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Qi);
_.U(Qi,"ytd-yoodle-renderer",function(){if(kDb!==void 0)return kDb;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player class="lottie-player style-scope ytd-yoodle-renderer" aria-label="[[logoTitleText]]" data="[[lottiePlayerProps]]">\n</ytd-lottie-player>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return kDb=e},{mode:2});var JoB;var vXP;var wqd=_.Yu.currentPageTypeSelector,q7T=_.Yu.currentPageSubTypeSelector,U$=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return e};
_.Y(U$,_.z);_.v=U$.prototype;_.v.onYoodleError=function(){_.G("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.v.computeLogoName=function(e){e=this.componentBehavior.computeIcon_(e);return e===""?"yt-logos-ext:yt-logo-updated":e};
_.v.computeTitle=function(e,g,c){return c&&(g==null?0:g.tooltipText)?_.mp(g.tooltipText):_.mp(e)};
_.v.computeAriaLabel=function(e,g,c){return c&&(g==null?0:g.tooltipText)?_.mp(e):""};
_.v.computeShowYoodle=function(e,g,c){return!e||!g&&!!c&&!_.n0.isEmpty(c)};
_.v.onNavigateHomeAction=function(){if(_.G("kevlar_miniplayer_navigate_home_from_app_killswitch")){var e;(e=_.o1(this.hostElement).querySelector(".yt-simple-endpoint"))==null||e.click()}};
_.v.computeLogoHref=function(e,g,c){var k;(c==null?0:c.onTapCommand)?k=this.componentBehavior.computeHref_(c.onTapCommand):e&&(k=this.componentBehavior.computeHref_(e));return k?k:g};
_.v.computeCommand=function(e,g){return(g==null?void 0:g.onTapCommand)||e};
_.v.getEndpointForm=function(){if(_.G("kevlar_topbar_disable_cache_only_home")){var e=_.Ss().resolve(_.EO),g=wqd(e.getState())||"";e=q7T(e.getState())||"";return{disableCache:g==="ytd-browse"&&e==="home"}}return{disableCache:!0}};
U$.prototype.onYoodleError=U$.prototype.onYoodleError;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],U$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],U$.prototype,"componentBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],U$.prototype,"ytdReduxBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],U$.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],U$.prototype,"countryCode",void 0);_.t([_.u({selectorArgs:["data.overrideEntityKey"],selector:function(e,g){return _.Nc(e.entities,"logoEntity",g)}}),
_.B("design:type",Object)],U$.prototype,"logoEntity",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.B("design:type",Boolean)],U$.prototype,"showYoodle",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],U$.prototype,"yoodleError",void 0);_.t([_.u({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.B("design:type",String)],U$.prototype,"titleText",void 0);
_.t([_.u({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.B("design:type",String)],U$.prototype,"ariaLabelText",void 0);_.t([_.u({value:"/"}),_.B("design:type",String)],U$.prototype,"defaultEndpointUrl",void 0);_.t([_.u({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.B("design:type",String)],U$.prototype,"endpointUrl",void 0);
_.t([_.u({computed:"computeCommand(data.endpoint, logoEntity)"}),_.B("design:type",String)],U$.prototype,"command",void 0);_.t([_.u(),_.B("design:type",Object)],U$.prototype,"logoType",void 0);_.t([_.u({}),_.B("design:type",Boolean)],U$.prototype,"useDarkThemeYoodle",void 0);_.t([_.Ks("yoodle-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U$.prototype,"onYoodleError",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],U$);
_.U(U$,"ytd-topbar-logo-renderer",function(){if(vXP!==void 0)return vXP;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return vXP=e},{mode:2});var LOa=0;var ror=DD.SEARCH_APPEND_LABEL,a0x=DD.SUGGESTION_NEW_VIDEOS_TEXT,nX3=DD.SUGGESTION_THUMBNAIL_LABEL,Rlj=DD.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,EXp=_.H(function(e){function g(Bw){var Uv,jz;return _.r(function(J0){if(J0.nextAddress==1)return Uv=new Request(Bw),_.lj(J0,2),J0.yield(fetch(Uv,{credentials:"include"}),4);if(J0.nextAddress!=2)return hq(!0),_.zn(J0,0);jz=_.Qb(J0);_.mN(jz);_.Uh(J0)})}
var c=e.isHighlighted;var k=e.suggestion;var I=e.onClickCallback;var J=e.onHoverUpdateCallback;var q=e.labels;var L=e.queryBuilderFunction;var n=e.onRemoveCallback;var R=e.suggestionIndex;var W=e.generateUniqueId;var b=e.highlightedId;var h=e.useScrollMargin;var X=e.isKeyboardMode;var D=null,f=null,l=null,A=_.io("div"),d=_.io("span");e=_.w(_.Wa(!1,void 0,"LafNkf"));var S=e.next().value,V=e.next().value,Q=_.PV("a",function(Bw){Bw&&_.rS(237477,Bw,f,function(Uv){f=Uv})}),y=_.PV("button",function(Bw){Bw&&
_.rS(237477,Bw,f,function(Uv){f=Uv})}),O=_.PV("div",function(Bw){Bw&&_.rS(281939,Bw,l,function(Uv){l=Uv})}),Jq=_.Ve(function(Bw){if((Bw==null?void 0:Bw.button)===2)return Bw.preventDefault(),!1;
var Uv=_.EM();Uv&&D&&_.pA(Uv,D,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var jz;I(Bw,k().text,k().index,k().entityMid,Bw==null?void 0:(jz=Bw.detail)==null?void 0:jz.wasSelectedByKeyboard);return!1}),LC=function(){return k().type===35},bW=function(){return _.G("desktop_enable_single_suggestion_highlight")},RA=function(){return _.MN("desktop_suggestions_panel_row_height")||0},Xg=function(){var Bw;
return _.G("desktop_enable_new_video_metadata")&&((Bw=k())==null?void 0:Bw.hasNewVideo)===!0},Fg=function(){return _.G("desktop_enable_visual_suggest")},oA=function(){return _.G("desktop_enable_entity_suggest")&&_.H13(k())},Zt=function(){return k().entitySubtitle},Ev=function(){return bW()?(c==null?void 0:c())||Su()&&!(X==null?0:X()):(c==null?void 0:c())||Su()},an=function(){var Bw=_.uo("SBOX_SETTINGS");
return LC()&&!(Bw==null?0:Bw.HIDE_REMOVE_LINK)},V6=function(){return _.Qnp(k(),{useEntityName:oA()})},bs,f1=!((bs=_.Ss().resolve(_.NN(_.gb)))==null||!bs()),hk=function(){return LC()?_.G("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Pq=function(){return q==null?void 0:q().SUGGESTION_DISMISS_LABEL},vq=function(){return q==null?void 0:q().SUGGESTION_DISMISSED_LABEL};
e=_.w(_.Wa(!1,void 0,"JyfUlf"));bs=e.next().value;var hq=e.next().value;e=_.w(_.Wa(!1,void 0,"QKfAGe"));var zv=e.next().value,XM=e.next().value,Su=zv,p1=_.Ve(function(){L(d.value.innerText);return!1}),C1=_.Ve(function(Bw){Bw.preventDefault();
return!1}),mz=_.Ve(function(Bw){g(_.LnM(k().text));
Bw.preventDefault();(Bw=_.EM())&&f&&_.pA(Bw,f,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");n(R==null?void 0:R());return!1}),Ov=_.Ve(function(){if(bW()&&(X==null?0:X()))return!1;
XM(!0);J(!0);return!1}),Rx=_.Ve(function(){XM(!1);
J(!1);return!1}),V4=_.Ve(function(){V(!0);
return!1}),to=_.Ve(function(){V(!1);
return!1}),L1=_.Ve(function(Bw){Bw.preventDefault();
if(k().entityThumbnailAttributionUrl){l&&_.yW(_.gL(),l);var Uv=k().entityThumbnailAttributionUrl;Bw=k().entityName;var jz={dismissDialogEndpoint:{}};Uv={commandExecutorCommand:{commands:[jz,{urlEndpoint:{url:Uv,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:Uv}}}]}};jz={buttonViewModel:{title:_.C_("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:jz}}};Uv={buttonViewModel:{title:_.C_("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:Uv}}};Bw={dialogHeaderViewModel:{headline:{content:Bw!=null?Bw:_.C_("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var J0={basicContentViewModel:{paragraphs:[{text:{content:_.C_("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};Bw={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Bw,footer:{panelFooterViewModel:{primaryButton:Uv,
secondaryButton:jz,shouldHideDivider:!0}},content:J0}}}}};_.Ss().resolve(_.xk).resolveCommand(Bw)}return!1});
e=_.w(_.Wa("",void 0,"MvIBn"));var Wq=e.next().value,Ww=e.next().value;_.Tr(function(){an()&&Ww(W==null?void 0:W(R==null?void 0:R()));A.value&&_.rS(12453,A.value,D,function(Bw){D=Bw})});
return _.a(_.E,{cond:bs,then:function(){var Bw={};return _.a("div",{class:_.o6("ytSuggestionComponentRemovedText",(Bw.ytSuggestionComponentLargerRemovedText=function(){return Fg()},Bw)),
style:function(){return RA()>0?"height: "+RA()+"px;":""},
role:"button"},vq)},
else:function(){var Bw={},Uv={};return _.a("div",{class:_.o6("ytSuggestionComponentSuggestion",(Bw.ytSuggestionComponentSuggestionHover=function(){return!bW()},Bw.ytSuggestionComponentHighlighted=Ev,Bw.ytSuggestionComponentPersonalizedSuggestion=LC,Bw.ytSuggestionComponentMweb=!1,Bw.ytSuggestionComponentLargerSuggestion=function(){return Xg()||Fg()},Bw.ytSuggestionComponentThumbnailSuggestion=function(){return Fg()},Bw.ytSuggestionComponentRoundedSuggestion=function(){return _.G("desktop_enable_scrollable_suggestions_panel")&&
_.G("desktop_enable_suggestions_panel_padding")},Bw.ytSuggestionComponentThumbnailPadding=function(){return Fg()&&!LC()},Bw)),
style:function(){return RA()>0?"height: "+RA()+"px;":""},
role:"presentation","on:mousedown":Jq,"on:mouseover":Ov,"on:mouseout":Rx,el:A},_.a("div",{class:_.o6("ytSuggestionComponentText",(Uv.ytSuggestionComponentScrollMargin=h,Uv)),"aria-label":function(){return Xg()?k().text+" "+a0x:k().text},
id:function(){return W==null?void 0:W(R==null?void 0:R())},
"on:mousedown":Jq,role:"option"},_.a(_.E,{cond:function(){return k().type!==33},
then:function(){return _.a(_.SU,{icon:hk,className:"ytSuggestionComponentIcon"})}}),_.a("div",{class:"ytSuggestionComponentLeftContainer"},_.a("span",{el:d,
role:"button",tabindex:0},_.a(_.Yz,{each:V6},function(jz){return jz.bold?_.a("span",{class:"ytSuggestionComponentBold"},jz.text):_.a("span",null,jz.text)})),_.a(_.E,{cond:function(){return oA()&&!!k().entitySubtitle||Xg()},
then:function(){return _.a("div",{class:"ytSuggestionComponentMetadataContainer"},_.a(_.E,{cond:function(){return oA()&&!!k().entitySubtitle},
then:function(){return _.a("div",{class:"ytSuggestionComponentEntitySubtitle"},Zt)}}),_.a(_.E,{cond:function(){return Xg()},
then:function(){return _.a("div",{class:"ytSuggestionComponentNewVideoContainer"},_.a("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.a("div",{class:"ytSuggestionComponentNewVideoText"},a0x))}}))}}))),_.a("div",{class:"ytSuggestionComponentRightContainer"},_.a(_.E,{cond:function(){return Fg()&&k().visualSuggestUrl!==void 0},
then:function(){var jz={};return _.a("div",{class:"ytSuggestionComponentThumbnailContainer"},_.a("img",{"aria-label":nX3,class:_.o6("ytSuggestionComponentVisualSuggestThumbnail",(jz.ytSuggestionComponentCircularFrame=function(){return oA()&&k().subtypes.includes(790)},jz.ytSuggestionComponentEntitySuggestThumbnail=function(){return oA()},jz)),
src:function(){return k().visualSuggestUrl}}),_.a(_.E,{cond:function(){return oA()&&!!k().entityThumbnailAttributionUrl},
then:function(){var J0={};return _.a("span",{title:Rlj,role:"tooltip"},_.a("div",{el:O,"on:mouseover":V4,"on:mouseout":to,"on:mousedown":L1,class:_.o6("ytSuggestionComponentThumbnailOverlay",(J0.ytSuggestionComponentThumbnailOverlayHidden=function(){return!S()},J0))},_.a(_.SU,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.a(_.f4,null,_.a(_.DC,{when:function(){return Fg()&&an()}},function(){var jz={};
return _.a("button",{class:_.o6("ytSuggestionComponentRemoveLinkClearButton",(jz.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Wq()&&Wq()===(b==null?void 0:b())},jz.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Ev()},jz)),
el:y,"on:mousedown":mz,"aria-label":Pq,id:function(){return Wq()}},_.a(_.SU,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.a(_.DC,{when:function(){return!(Fg()&&k().visualSuggestUrl!==void 0)&&an()}},function(){var jz={};
return _.a("a",{class:_.o6("ytSuggestionComponentRemoveLink",(jz.ytSuggestionComponentRemoveLinkDark=f1,jz.ytSuggestionComponentRemoveLinkSelected=function(){return Wq()&&Wq()===(b==null?void 0:b())},jz)),
el:Q,"on:mousedown":mz,"aria-label":Pq,tabindex:0,role:"button",id:function(){return Wq()}},Pq)}),_.a(_.DC,{when:function(){return!1}},function(){return _.a("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":p1,"on:mousedown":C1,role:"button","aria-label":ror},_.a(_.SU,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jl");var WOA=_.Ti(["//www.google.com/textinputassistant/","/","_tia.js"]),bgb=_.H(function(){return _.a("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.a("button",{class:"ytdTextInputAssistantButton","on:click":_.Ve(function(){VuT().inputMethodsTracker.add(3);var e,g=(e=_.uo("SBOX_SETTINGS"))==null?void 0:e.REQUEST_LANGUAGE;if(g)return _.D5(_.jw(WOA,14,g)),!1})},_.a("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"kl");var XqB;_.hlj=function(){this.cache=new Map};
XqB=function(e){for(var g=_.w(e.cache.entries()),c=g.next();!c.done;c=g.next()){var k=_.w(c.value);c=k.next().value;k=k.next().value;k.suggestions.some(function(I){return I.type===35})&&e.cache.delete(c)}};var GDT=DD.SEARCH,xMa=DD.SEARCH_CLEAR_LABEL,DMr=new _.AU("FAKE_SUGGEST_RESPONSE"),$MT=_.H(function(e){function g(){Ov||(Ov=setTimeout(function(){V4()},1E3))}
function c(is,ju,ox){if(is.trim()){mz=is;_.Fq("REFINEMENTS_TUPLE",void 0);p1=!0;var vJ;ju=NZj(vq,ju);var xI=(vJ=e.searchEndpoint)==null?void 0:vJ.call(e);_.qsz(is,ju,xI,bs.value.value,ox);V4();bs.value.value=is;bs.value.blur();vq.reset()}}
function k(is){return _.r(function(ju){return ju.return(new Promise(function(ox){var vJ=new XMLHttpRequest;vJ.open("GET",_.lwJ(is),!0);vJ.withCredentials=!0;var xI=_.uo("SBOX_SETTINGS");(xI==null?0:xI.SEND_VISITOR_DATA)&&vJ.setRequestHeader("X-Goog-Visitor-Id",xI==null?void 0:xI.VISITOR_DATA);vJ.onload=function(){ox(vJ.responseText)};
vJ.onerror=function(){_.mN(Error("nm"));ox(null)};
setTimeout(function(){vJ.abort()},1E4);
vJ.send(null)}))})}
function I(is){var ju,ox,vJ,xI;return _.r(function(Av){switch(Av.nextAddress){case 1:return ju={credentials:"include",headers:_.TZP()},window.AbortController&&(ox=new AbortController,setTimeout(function(){ox.abort("ytsbox-suggest-timeout")},1E4),ju.signal=ox.signal),_.lj(Av,2),Av.yield(fetch(_.lwJ(is),ju),4);
case 4:vJ=Av.yieldResult.text();_.zn(Av,3);break;case 2:return xI=_.Qb(Av),xI!=="ytsbox-abort-last"&&xI!=="ytsbox-suggest-timeout"&&_.mN(xI),Av.return(null);case 3:return Av.return(vJ)}})}
function J(is){var ju,ox,vJ;return _.r(function(xI){switch(xI.nextAddress){case 1:if(ju=_.Ss().resolve(_.NN(DMr)))return xI.return(ju);ox=Date.now();g();return _.G("yt_searchbox_xhr")?xI.yield(k(is),5):xI.yield(I(is),4);case 4:vJ=xI.yieldResult;xI.jumpTo(3);break;case 5:vJ=xI.yieldResult;case 3:if(vJ){Ov&&(clearTimeout(Ov),Ov=null);var Av=vq,oy=ox,o3=is.query.length===0;oy=Date.now()-oy;o3?Av.zeroPrefixRoundTripTime=oy:(Av.JSC$22813_totalRoundTripTime+=oy,Av.maxRoundTripTime=Math.max(Av.maxRoundTripTime,
oy),o3=Math.floor(oy/100),o3>=SvJ.length?++Av.roundTripTimeHistogram[9]:++Av.roundTripTimeHistogram[SvJ[o3]])}return xI.return(vJ)}})}
function q(is){var ju,ox,vJ;return _.r(function(xI){if(xI.nextAddress==1)return(ju=Pq.cache.get(_.pw3(is)))?xI.return(ju):xI.yield(J(is),2);ox=xI.yieldResult;if(ox===null)return xI.return(null);vJ=new _.Uqj(ox);is.query.length===0&&vJ.suggestions.length===0||Pq.cache.set(_.pw3(is),vJ);return xI.return(vJ)})}
function L(is){var ju,ox;return _.r(function(vJ){if(vJ.nextAddress==1){C1=!1;var xI=mz;xI=_.TP()==="search"?(_.eQ(location.href,"search_query")||_.eQ(location.href,"q"))===xI:!1;ju=new _.mqB(is,xI?mz:null);return vJ.yield(q(ju),2)}ox=vJ.yieldResult;if(ox===null)return vJ.return();ju.query.length===0&&(vq.zeroPrefixSuggestionCount=ox.suggestions.length);if(ju.id<=Rx)return vq.outOfSyncResponseCount++,vJ.return();if(document.activeElement!==bs.value)return vJ.return();Rx=ju.id;var Av=vq,oy=ox.rawResponse[2]||
{};Av.experimentTriggeredBeforeFinal||(Av.experimentTriggeredBeforeFinal=Av.experimentTriggeredFinal);Av.experimentTriggeredFinal=!!oy.e;vq.updateSuggestions(ox.suggestions);l(-1);Zt([]);ox.suggestions!==X()&&bK(ox.suggestions.length);D(ox.suggestions);Jq(ox.suggestions.length>0&&ox.suggestions[0].type===33);hk&&(hk.hidden=ox.suggestions.length===0,O()?(hk.style.minWidth="",Av=hk.style,oy=(xI=X()[0])==null?void 0:xI.ignoredPrefix,Av.marginLeft=(oy?Math.min(oy.length*6,f1.value.offsetWidth):0).toString()+
"px"):(hk.style.minWidth=f1.value.offsetWidth+"px",hk.style.marginLeft="0"),ZE());_.Uh(vJ)})}
function n(){if(!p1)return!1;var is=_.uo("REFINEMENTS_TUPLE"),ju;return is&&((ju=is[1])==null?0:ju.length)?(is=is[1].map(function(ox,vJ){return new _.zYj([ox,0,[71]],bs.value.value,vJ)}),X()!==is&&bK(is.length),Zt([]),D(is),vq.updateSuggestions(is),p1=!1,hk.hidden=is.length===0,C1=is.length>0,!0):!1}
function R(){var is=bs.value.value;(typeof is==="string"||is instanceof String)&&is!==""?V(!0):V(!1)}
function W(){if(_.TP()==="search"){var is=window.location.href;try{var ju=_.eQ(is,"search_query")||_.eQ(is,"q")||""}catch(ox){ju=""}ju&&(bs.value.value=ju,V(!0))}}
var b=_.w(_.Wa([],void 0,"OC8EPc")),h=b.next().value;b=b.next().value;var X=h,D=b;h=_.w(_.Wa(-1,void 0,"t2tVQb"));var f=h.next().value,l=h.next().value;h=_.w(_.Wa(-1,void 0,"v0RZCe"));var A=h.next().value,d=h.next().value;h=_.w(_.Wa(!1,void 0,"rjAnI"));var S=h.next().value,V=h.next().value;h=_.w(_.Wa(!1,void 0,"SyGLvb"));var Q=h.next().value,y=h.next().value;b=_.w(_.Wa(!1,void 0,"tL09Cb"));h=b.next().value;b=b.next().value;var O=h,Jq=b;b=_.w(_.Wa(!1,void 0,"FlH7mc"));h=b.next().value;var LC=b.next().value;
b=_.w(_.Wa(!1,void 0,"ea3fwe"));var bW=b.next().value,RA=b.next().value;b=_.w(_.Wa(1,void 0,"vSK1xe"));var Xg=b.next().value,Fg=b.next().value;b=_.w(_.Wa([],void 0,"ijlw4b"));var oA=b.next().value,Zt=b.next().value;b=_.w(_.Wa(!1,void 0,"HcRey"));var Ev=b.next().value,an=b.next().value;b=_.G("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var V6=_.io("yt-searchbox"),bs=_.io("input"),f1=_.io("div"),hk,Pq=
new _.hlj,vq=VuT(),hq=_.Ss().resolve(_.NN(_.gb)),zv=function(){var is;return((is=e.forceDarkMode)==null?void 0:is.call(e))||!(hq==null||!hq())},XM=function(){return _.G("desktop_enable_scrollable_suggestions_panel")},Su="i"+LOa++,p1=!1,C1=!1,mz="",Ov=null,Rx=-1,V4=function(){Zt([]);
D([]);Jq(!1);hk&&(hk.hidden=!0);Ov&&(clearTimeout(Ov),Ov=null);l(-1)},to=function(is,ju){is.preventDefault();
an(!0);hk&&(hk.hidden=!1);var ox=f();is=X();var vJ=oA();ju=rL7(ju);ox+=ju;for(ox>=is.length?ox=-1:ox<-1&&(ox=is.length-1);ox!==-1&&(vJ.includes(ox)||ox>=is.length||ox<0);)ox+=ju,ox>=is.length&&(ox=-1);l(ox);f()>=0&&(bs.value.value=X()[f()].text,d(0),R(),is=f(),vJ=A(),(vJ=document.getElementById(F1[is][vJ]))&&XM()&&(is===X().length-1?hk.scrollTop=hk.scrollHeight:vJ.scrollIntoView({block:"nearest",inline:"start"})))},L1=_.Ve(function(is){if(!(is.relatedTarget instanceof Element&&is.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!0);
var ju;(ju=e.focusCallback)==null||ju.call(e,!0);n()||(C1?hk.hidden=!1:(_.oC(V6.value,"yt-autonav-pause-focus",{}),L(is.target.value)))}}),Wq=_.Ve(function(is){if(!(is.relatedTarget instanceof Element&&is.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!1);
var ju;(ju=e.focusCallback)==null||ju.call(e,!1);hk.scrollTop=0;hk.hidden=!0;_.oC(V6.value,"yt-autonav-pause-blur",{})}}),Ww=function(is){is=rL7(is);
var ju;((ju=F1[f()])==null?0:ju[A()+is])&&d(A()+is)},Bw=_.Ve(function(is){var ju=is.keyCode,ox=is.target;
an(!0);switch(ju){case 13:is.preventDefault();var vJ;if((vJ=F1[f()])==null?0:vJ[A()]){var xI;(xI=document.getElementById(F1[f()][A()]))==null||xI.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}is=is.shiftKey?4:3;ju=vq;vJ=f();ju.selectedSuggestionIndex=vJ;c(ox.value,is);break;case 27:hk&&(hk.hidden=!0);break;case 40:to(is,40);break;case 38:to(is,38);break;case 39:Ww(39);break;case 37:Ww(37);break;case 229:vq.inputMethodsTracker.add(4);break;default:vq.inputMethodsTracker.add(1),
tuB(vq)}return!1}),Uv=_.Ve(function(is){L(is.target.value);
R();XM()&&hk&&(hk.scrollTop=0);return!1}),jz=_.Ve(function(){vq.inputMethodsTracker.add(2);
tuB(vq);return!1});
_.Tr(function(){if(hk){vq.reset();if(window.ResizeObserver){var is=new ResizeObserver(function(){O()||(hk.style.minWidth=f1.value.offsetWidth+"px")});
is.observe(f1.value);(new ResizeObserver(function(){ZE()})).observe(hk);
_.sX(function(){is.disconnect()})}W();
window.addEventListener("yt-navigate-finish",W);window.addEventListener("yt-focus-searchbox",function(){bs.value.focus()});
var ju;LC((ju=_.uo("SBOX_SETTINGS"))==null?void 0:ju.HAS_ON_SCREEN_KEYBOARD)}else _.jW(new _.E2("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var J0=_.Ve(function(is){is.preventDefault();c(bs.value.value,12);return!1}),on=_.Ve(function(is){is.preventDefault();
var ju,ox;(ju=bs)==null||(ox=ju.value)==null||ox.focus();var vJ,xI;((vJ=bs)==null?void 0:(xI=vJ.value)==null?void 0:xI.value)!==""&&(bs.value.value="",bs.value.dispatchEvent(new Event("input")));return!1}),ng=_.Ve(function(){var is=sqz(bs.value.value,X().filter(function(ju){return ju.type!==35}).map(function(ju){return{label:ju.text}}));
_.Z5(V6.value,"yt-open-popup-action",[{openPopupAction:is},document.body]);return!1}),MM=_.Ve(function(){bs.value.focus();
return!1}),I3=function(is,ju,ox,vJ,xI){vq.selectedSuggestionIndex=ox;
c(ju,xI?3:1,vJ)},kF=function(is){bs.value.value=is;
bs.value.dispatchEvent(new Event("input"));vq.inputMethodsTracker.add(5);tuB(vq,!0)},F1=[[]],Uu=function(is){var ju="searchbox-suggestion"+_.bN(_.X_);
F1[is].push(ju);return ju},bK=function(is){if(X()){F1=[[]];
for(var ju=0;ju<is;ju++)F1.push([])}},ZE=function(){if(XM()){var is=hk,ju=is.scrollTop;
is=is.scrollHeight-is.clientHeight;RA(ju>=is);ju=Math.abs(is-ju);ju<=40?Fg(1-(40-ju)/40):Fg(1)}},b0=function(){return"opacity: "+Xg()*100+"%"},me=_.Ve(function(){ZE();
return!1}),Q6=_.Ve(function(){an(!1);
return!1}),y6,Gq={},$X={},PJ={},mO={};
return _.a("yt-searchbox",{class:_.o6("ytSearchboxComponentHost",(Gq.ytSearchboxComponentMweb=!1,Gq.ytSearchboxComponentDesktop=!0,Gq["yt-searchbox-filled-query"]=function(){return S()},Gq["ytd-masthead"]=function(){return!Q()},Gq.ytSearchboxComponentHostDark=zv,Gq)),
role:"search",el:V6,"client-ve-type":10349},_.a("div",{el:f1,"on:click":MM,class:_.o6("ytSearchboxComponentInputBox",($X.ytSearchboxComponentInputBoxDark=zv,$X.ytSearchboxComponentInputBoxHasFocus=Q,$X))},_.a("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":J0},_.a(_.E,{cond:Q,then:function(){return _.a("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.a(_.SU,{icon:"SEARCH"}))}}),_.a("input",{el:bs,
class:_.o6("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Su,"aria-expanded":!((y6=hk)==null?0:y6.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":Wq,"on:focus":L1,"on:input":Uv,"on:keydown":Bw,"on:paste":jz,placeholder:e.placeholderText,"aria-activedescendant":function(){var is;return(is=F1[f()])==null?void 0:is[A()]},
"aria-autocomplete":"list",role:"combobox"})),_.a(_.E,{cond:h,then:function(){return _.a("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.a(bgb,null))}}),_.a(_.E,{cond:S,
then:function(){return _.a("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.a("button",{class:"ytSearchboxComponentClearButton","on:click":on,"aria-label":e.clearButtonAriaLabel||xMa},_.a(_.SU,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.a(_.zG,{model:{}})))}})),_.a("button",{class:_.o6("ytSearchboxComponentSearchButton",(PJ.ytSearchboxComponentSearchButtonDark=zv,PJ)),
"on:click":J0,"aria-label":GDT,title:e.placeholderText},_.a(_.SU,{icon:"SEARCH"})),_.a(_.E,{cond:function(){if(rPQ()&&_.G("mweb_voice_search")&&e.voiceSearchButton)return e.voiceSearchButton()},
then:function(is){var ju={};return _.a("div",{class:_.o6("ytSearchboxComponentVoiceSearchWrapper",(ju.ytSearchboxComponentHideVoiceSearchButton=function(){return S()},ju))},_.a(_.eS,{data:is},{buttonRenderer:function(ox){return _.a(_.lh,{data:ox.data,
onButtonClickCallback:function(){}})}}))}}),_.a("div",{el:_.mb(function(is){return void(hk=is)}),
id:Su,class:_.o6("ytSearchboxComponentSuggestionsContainer",(mO.ytSearchboxComponentSuggestionsContainerDark=zv,mO["yt-searchbox-suggestions-container"]=!1,mO.ytSearchboxComponentSuggestionsContainerScrollable=XM(),mO.ytSearchboxComponentSuggestionsContainerAnimated=b,mO)),"on:scroll":me,"on:mousemove":Q6,role:"listbox",hidden:!0},_.a(_.Yz,{each:X},function(is,ju){return _.a(EXp,{suggestion:is,isHighlighted:function(){return ju()===f()},
onClickCallback:I3,onHoverUpdateCallback:function(ox){if(_.G("desktop_enable_single_suggestion_highlight")){var vJ=ju();ox&&(d(0),l(vJ))}},
onRemoveCallback:function(ox){XqB(Pq);ox===void 0||ox<0||oA().includes(ox)||Zt([].concat(_.KY(oA()),[ox]))},
labels:e.labels,queryBuilderFunction:kF,suggestionIndex:ju,generateUniqueId:Uu,highlightedId:function(){var ox;return(ox=F1[f()])==null?void 0:ox[A()]},
useScrollMargin:XM(),isKeyboardMode:Ev})}),_.a(_.E,{cond:function(){return!O()&&X().find(function(is){return is.type!==35})&&_.G("searchbox_reporting")},
then:function(){return _.a("button",{class:"ytSearchboxComponentReportButton","on:mousedown":ng},_.C_("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.a(_.E,{cond:function(){return!bW()&&XM()},
then:function(){return _.a("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.a("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:b0}))}})))},"ml");
$MT.idomCompat={callbacks:{focusCallback:!0}};_.sL($MT,"yt-searchbox",{props:{searchEndpoint:_.jx,placeholderText:_.jx,labels:_.jx,voiceSearchButton:_.jx,focusCallback:_.TF,clearButtonAriaLabel:_.jx,forceDarkMode:_.jx}});var oi=function(){var e=_.z.apply(this,arguments)||this;e.menuButtonTargetId="topbar-guide-menu";e.narrow=!1;e.menuStrings={BACK_ALT_LABEL:_.C_("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.C_("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.C_("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.C_("SBOX_PLACEHOLDER",void 0,"Search")};e.pageDarkTheme=document.documentElement.hasAttribute("dark");e.watchPageScrollTop=0;e.theater=!1;e.fullscreen=!1;e.disableFrostedGlassDuringViewTransition=
!1;e.desktopUnifiedSearchPanelMode=_.G("desktop_enable_unified_search_panel");e.aiCompanionEnabled=_.G("enable_ai_companion");e.ytSearchboxFocused=!1;e.searchboxLabels=_.uo("SBOX_LABELS");e.topbarIsAboveChipbar=!1;e.isDarkThemeForced=!1;e.areGhostCardsHidden=!1;e.guideKeyboardToggle=!1;e.voiceSearchManager=BUj();e.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};e.setYtSearchboxFocused=function(g){e.ytSearchboxFocused=g};
e.toggleFrostedGlassDuringViewTransition=function(g){e.disableFrostedGlassDuringViewTransition=g};
return e};
_.Y(oi,_.z);_.v=oi.prototype;_.v.computeSimpleText=function(e){return _.mp(e)};
_.v.onDarkChanged=function(){for(var e=_.w(this.buttons||[]),g=e.next();!g.done;g=e.next())g.value.isOverlay=!!this.dark;e=_.w(this.buttonRenderers||[]);for(g=e.next();!g.done;g=e.next())g.value.overrides=this.computeButtonOverride()};
_.v.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.v.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var e=_.Pl(_.iE(),"aa");_.Vg(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||e||(this.isDarkThemeForced=this.dark=!0);this.logoType?(e=this.hostElement.querySelector("#masthead-logo"))&&(_.G("polymer_on_demand_shady_dom")?e.setAttribute("slot","masthead-logo-old"):_.ev(e)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.yg(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.yg(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.v.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.yg(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.yg(this,this.onSetTheaterModeEnabled))};
_.v.dataChanged=function(){var e=this.data;e&&(this.voiceEnabled=e.voiceSearchButton?BUj().isSupported():!1,_.OH(_.MG(),this.menuButtonTargetId,this.guideButton),e.onReceivedActions&&e.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Bm(this.hostElement,e.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&e&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Vg(this.hostElement,"dark",!1),_.Vg(this.hostElement,"theater",!1),(e=
this.hostElement.querySelector("#masthead-logo"))&&(_.G("polymer_on_demand_shady_dom")?e.setAttribute("slot","masthead-logo-old"):_.ev(e))))};
_.v.computeCenterHidden=function(){var e;return this.data&&!((e=this.data.searchbox)==null?0:e.fusionSearchboxRenderer)};
_.v.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Vg(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.v.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.v.onWatchScroll=function(e){this.watchPageScrollTop=e.detail||0;this.updateMastheadBackgroundOpacity()};
_.v.onFullscreenChangeAction=function(e){e||(this.watchPageScrollTop=0);this.fullscreen=e;this.updateMastheadBackgroundOpacity()};
_.v.onSetTheaterModeEnabled=function(e){this.theater=e.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.v.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.v.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.v.setBackgroundOpacity=function(e){e=this.calculateBackgroundOpacity(e);this.background.style.opacity=""+e};
_.v.calculateBackgroundOpacity=function(e){var g=this.theater?.6:0,c=this.hostElement.clientHeight/2;return Math.min(Math.max(e,0),c)/c*(1-g)+g};
_.v.shouldShowCinematicMastHead=function(){var e=_.G("kevlar_watch_grid")&&!_.G("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(e||this.pageDarkTheme)};
_.v.focusGuide=function(){this.guideButton.focus()};
_.v.onGuideToggleTap=function(){_.oC(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.v.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.v.onGuideToggleHover=function(){_.oC(this.hostElement,"yt-guide-hover")};
_.v.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.v.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.v.closeOnOutsideClickCondition=function(e){for(e=_.lg(e);e[0];){var g=e.shift();if(g instanceof Element&&g.id==="kbd")return!1}return!0};
_.v.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.v.pausePlayer=function(){var e;(e=_.FE())==null||e.pause();this.pauseMiniplayer()};
_.v.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var e;(e=_.Ss().resolve(_.xt).getPlayerElement())==null||e.pause()}};
_.v.isMiniplayerActive=function(){return _.Ss().resolve(_.xt).isMiniplayerActive()};
_.v.updateNarrowFromBinding=function(e){this.narrow=e.detail.value};
_.v.onYtSendFeedbackAction=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.v.registerWithViewTransitionManager=function(){kpM(_.Ss().resolve(_.JG),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.Bd.Object.defineProperties(oi.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.G("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var e;return!!(this.aiCompanionEnabled&&((e=this.data)==null?0:e.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var e;return(e=this.data)==null?void 0:e.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
oi.prototype.narrowChanged=oi.prototype.narrowChanged;oi.prototype.onWatchPageChange=oi.prototype.onWatchPageChange;oi.prototype.onRendererStamperFinished=oi.prototype.onRendererStamperFinished;oi.prototype.dataChanged=oi.prototype.dataChanged;oi.prototype.onDarkChanged=oi.prototype.onDarkChanged;_.t([_.m(_.Jc),_.B("design:type",Object)],oi.prototype,"ironResizableBehavior",void 0);_.t([_.m(qFM),_.B("design:type",Object)],oi.prototype,"ytdExpandableInputBehavior",void 0);
_.t([_.m(_.DG.YtdGuideStateAwareBehavior),_.B("design:type",Object)],oi.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],oi.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],oi.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Wv),_.B("design:type",Object)],oi.prototype,"ytdReduxBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],oi.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],oi.prototype,"narrow",void 0);_.t([_.u(),_.B("design:type",Object)],oi.prototype,"logoType",void 0);_.t([_.u(),_.B("design:type",Boolean)],oi.prototype,"voiceEnabled",void 0);
_.t([_.u(),_.B("design:type",Object)],oi.prototype,"menuStrings",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],oi.prototype,"dark",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],oi.prototype,"pageDarkTheme",void 0);_.t([_.u(),_.B("design:type",Object)],oi.prototype,"watchPageScrollTop",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.mTA}),_.B("design:type",Boolean)],oi.prototype,"isWatchPage",void 0);
_.t([_.u({reflectToAttribute:!0,selector:_.pvU}),_.B("design:type",Boolean)],oi.prototype,"isShortsPage",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],oi.prototype,"theater",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],oi.prototype,"fullscreen",void 0);_.t([_.u({reflectToAttribute:!0,selector:_.sGq}),_.B("design:type",String)],oi.prototype,"frostedGlassMode",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],oi.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],oi.prototype,"aiCompanionEnabled",void 0);_.t([_.u(),_.B("design:type",Object)],oi.prototype,"ytSearchboxFocused",void 0);_.t([_.eY("#buttons > *"),_.B("design:type",Array)],oi.prototype,"buttons",void 0);_.t([_.eY("ytd-button-renderer"),_.B("design:type",Array)],oi.prototype,"buttonRenderers",void 0);
_.t([_.Cs("#background"),_.B("design:type",HTMLDivElement)],oi.prototype,"background",void 0);_.t([_.Cs("#guide-button"),_.B("design:type",Object)],oi.prototype,"guideButton",void 0);_.t([_.Cs("#logo"),_.B("design:type",Object)],oi.prototype,"logo",void 0);_.t([_.u({computed:"computeButtonOverride(dark)"}),_.B("design:type",Object)],oi.prototype,"buttonOverrides",void 0);
_.t([_.k_("dark"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oi.prototype,"onDarkChanged",null);_.t([_.u({value:function(){return this.onVoiceTap.bind(this)}}),
_.B("design:type",Function)],oi.prototype,"boundOnTapVoiceButton",void 0);_.t([_.u(),_.B("design:type",Object)],oi.prototype,"topbarIsAboveChipbar",void 0);_.t([_.u(),_.B("design:type",String),_.B("design:paramtypes",[])],oi.prototype,"guideIcon",null);_.t([_.p("voiceEnabled"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oi.prototype,"shouldShowVoiceSearchButton",null);
_.t([_.p("data.aiCompanionButton","aiCompanionEnabled"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oi.prototype,"shouldShowAiCompanionButton",null);_.t([_.p("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],oi.prototype,"voiceSearchButton",null);_.t([_.p("aiCompanionEnabled"),_.B("design:type",String),_.B("design:paramtypes",[])],oi.prototype,"narrowQuery",null);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oi.prototype,"dataChanged",null);_.t([_.Ks("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oi.prototype,"onRendererStamperFinished",null);_.t([_.k_("isWatchPage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oi.prototype,"onWatchPageChange",null);
_.t([_.k_("narrow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oi.prototype,"narrowChanged",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-masthead"})],oi);
_.U(oi,"ytd-masthead",function(){if(JoB!==void 0)return JoB;var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return JoB=e},{mode:2});var Y7b;var f0A={},jxa={},igm={},PSB={},mMj=(PSB.OFFLINE=(f0A["publicytnetworkstatus-online"]="BACK_ONLINE",f0A),PSB.ONLINE=(jxa["publicytnetworkstatus-offline"]="OFFLINE",jxa),PSB.BACK_ONLINE=(igm["publicytnetworkstatus-offline"]="OFFLINE",igm.TIMER_TRIGGER="ONLINE",igm),PSB),Zo=function(){var e=_.z.apply(this,arguments)||this;e.currentState="ONLINE";e.scheduledJobId=0;e.bannerString="";e.bannerVe=null;e.networkStatusManagerInstance=new _.zI;return e};
_.Y(Zo,_.z);_.v=Zo.prototype;_.v.attached=function(){var e=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){e.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){e.stateChangeHandler("publicytnetworkstatus-offline")})};
_.v.detached=function(){var e=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){e.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){e.stateChangeHandler("publicytnetworkstatus-offline")})};
_.v.enterState=function(e){var g=this;this.scheduledJobId&&_.ft.cancelJob(this.scheduledJobId);e==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):e==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.C_("NO_INTERNET_CONNECTION",void 0,"No internet connection")):e==="BACK_ONLINE"&&(this.bannerString=_.C_("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.h2(_.ft,function(){g.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=e};
_.v.stateChangeHandler=function(e){(e=mMj[this.currentState][e])&&this.enterState(e)};
_.v.logVisibility=function(e){var g=_.EM();this.createBannerVe(e);g&&this.bannerVe&&(e?_.iB(g,[this.bannerVe]):_.Ph(g,[this.bannerVe]))};
_.v.createBannerVe=function(e){!this.bannerVe&&e&&(this.bannerVe=_.VF(37929),_.SD(_.gL(),this.bannerVe))};
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",String)],Zo.prototype,"currentState",void 0);_.t([_.u(),_.B("design:type",Object)],Zo.prototype,"scheduledJobId",void 0);_.t([_.u(),_.B("design:type",Object)],Zo.prototype,"bannerString",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Zo);
_.U(Zo,"ytd-network-status-banner",function(){if(Y7b!==void 0)return Y7b;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Y7b=
e},{mode:1});var pqm;var Vi=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};e.hidden=!0;e.frostedGlass=_.G("web_frosted_glass");return e};
_.Y(Vi,_.z);Vi.prototype.computeHidden=function(e){return e&&e.status?!1:!0};
Vi.prototype.handleUpdatePermissionRoleCommand=function(e){if(e=_.x(e,_.E31))if(e=_.x(e.renderer,_.RTM))this.data=e};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Vi.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Vi.prototype,"componentBehavior",void 0);_.t([_.u({value:!0,computed:"computeHidden(data)"}),_.B("design:type",Object)],Vi.prototype,"hidden",void 0);_.t([_.u(),_.B("design:type",Object)],Vi.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Vi.prototype,"frostedGlass",void 0);
_.t([_.bF({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Vi);
_.U(Vi,"ytd-permission-role-bottom-bar-renderer",function(){if(pqm!==void 0)return pqm;var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);return pqm=e},{mode:1});var Tj3;var l0p;var agX={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var tI=function(){return _.z.apply(this,arguments)||this};
_.Y(tI,_.z);_.v=tI.prototype;_.v.attached=function(){this.JSC$22917_scroller&&(this.JSC$22917_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22917_scroller.attached&&typeof this.JSC$22917_scroller.attached==="function"&&this.JSC$22917_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(c){c.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var e=_.o1(this.hostElement);e.querySelector("tp-yt-paper-radio-group").selected="";var g=e.querySelector("#reason-text");g&&(g.value="");e.querySelector("#description-text").value=""}};
_.v.canSubmit=function(e,g){_.oC(this.hostElement,"yt-invalidate-popup-tabbables");return!(e&&g)};
_.v.onCancel=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.v.onSubmit=function(){var e=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(J){return J.active}).map(function(J){return J.innerText.trim()}),g=this.hostElement.querySelector("tp-yt-paper-radio-group"),c=g.selectedItem,k=c.name;
c=c.innerText.trim();var I=g.querySelector("#reason-text");g=void 0;I&&(g=I.value);(I=this.descriptionText.value)&&(I=I.trim());nE7(this.data.searchQuery,e,k,c,I,g);_.Z5(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.v.sendFormSubmitToast=function(){var e=_.so(_.C_("SBOX_INAPPROPRIATE_TOAST"));_.Z5(this.hostElement,"yt-open-popup-action",[e,this])};
_.v.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(e){return e.active})};
_.v.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
tI.prototype.onIronSelect=tI.prototype.onIronSelect;tI.prototype.onIronChange=tI.prototype.onIronChange;tI.prototype.dataChanged=tI.prototype.dataChanged;_.t([_.u(),_.B("design:type",Object)],tI.prototype,"data",void 0);_.t([_.u({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.B("design:type",Boolean)],tI.prototype,"submitDisabled",void 0);_.t([_.u(),_.B("design:type",Boolean)],tI.prototype,"suggestionSelected",void 0);
_.t([_.u(),_.B("design:type",Boolean)],tI.prototype,"catagorySelected",void 0);_.t([_.Cs("#scroller"),_.B("design:type",Object)],tI.prototype,"JSC$22917_scroller",void 0);_.t([_.Cs("#description-text"),_.B("design:type",Object)],tI.prototype,"descriptionText",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tI.prototype,"dataChanged",null);
_.t([_.Ks("iron-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tI.prototype,"onIronChange",null);_.t([_.Ks("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tI.prototype,"onIronSelect",null);_.t([_.bF({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],tI);
_.U(tI,"ytd-search-suggestion-report-dialog",function(){if(l0p!==void 0)return l0p;var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return l0p=e},{mode:1});var BC=function(e){var g=e.openPopupAction;var c=e.target;var k=e.container;var I=e.popupContainerConfig;var J=e.getElement;e=e.removeWhenClosed===void 0?!1:e.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=g;this.target=c;this.container=k;this.popupContainerConfig=I;this.getElement=J;this.JSC$22923_popupConfig=this.popupContainerConfig.JSC$21603_popupConfig[this.openPopupAction.popupType];this.rendererName=(g=this.getName())?_.F3v(g,Y3x(this.popupContainerConfig,
g)):"";_.G("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=e);this.createPopup()};
BC.prototype.updatePopup=function(e){this.openPopupAction=e;this.JSC$22923_popupConfig=this.popupContainerConfig.JSC$21603_popupConfig[this.openPopupAction.popupType];Aom(this);_.G("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
BC.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var uQp=function(e,g,c){(g=g&&e.JSC$22923_popupConfig.narrowProperties?e.JSC$22923_popupConfig.narrowProperties:e.JSC$22923_popupConfig.properties)&&c!==void 0&&(g.isAriaModal=c);sxr(e,g);e.isRtl()&&sxr(e,e.JSC$22923_popupConfig.rtlProperties);FOm(e)};
BC.prototype.createPopup=function(){var e=this.JSC$22923_popupConfig.component;if(this.popupContent=dMm(this,this.rendererName)){if(e){this.popup=dMm(this,e);var g=this.popupContent;_.G("web_enable_wrapper_for_cow_component_in_popup")&&(g=document.createElement("div"),g.appendChild(this.popupContent));_.G("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$22923_popupConfig.slotName&&g.setAttribute("slot",this.JSC$22923_popupConfig.slotName);e=this.popup;var c=this.container.tagName.toLowerCase(),
k=_.FZ(g);_.Nvt(_.dp(e),_.Hg(g,c,k));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.G("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.o1(this.container).appendChild(this.popup)}};
var Aom=function(e){var g,c,k=(g=e.openPopupAction.accessibilityData)==null?void 0:(c=g.accessibilityData)==null?void 0:c.label;k&&(e.popup.ariaLabel=k);var I;((I=e.popupContent.polymerController)!=null?I:e.popupContent).data=(0,_.n0.unsafeClone)(e.openPopupAction.popup[e.getName()]);e.popupContent.duration=zlr(e);e.popupContent.positionType=e.openPopupAction.position;var J=e.openPopupAction.properties;J&&Object.keys(J).forEach(function(q){e.popupContent[q]=J[q]})},sxr=function(e,g){if(g)for(var c=
_.w(Object.keys(g)),k=c.next();!k.done;k=c.next())k=k.value,e.popup[k]=g[k]},FOm=function(e){if(e.openPopupAction.position){var g=e.JSC$22923_popupConfig.positionalProperties&&e.JSC$22923_popupConfig.positionalProperties[e.openPopupAction.position],c=e.JSC$22923_popupConfig.rtlPositionalProperties&&e.JSC$22923_popupConfig.rtlPositionalProperties[e.openPopupAction.position];
g=e.isRtl()&&c?c:g;g.shiftedHorizontalOffset&&(c=e.popup.style.display,e.popup.style.display="block",e.popupContent&&e.popup.positionTarget&&e.popupContent.clientWidth>e.popup.positionTarget.clientWidth&&(g.horizontalOffset=e.popup.positionTarget.clientWidth/2-g.shiftedHorizontalOffset),e.popup.style.display=c);sxr(e,g)}},HgJ=function(e,g,c){if(g){for(var k=_.w(Object.keys(g)),I=k.next();!I.done;I=k.next())I=I.value,e.popup.style[I]=g[I];
if(c)for(g=_.w(Object.keys(c)),k=g.next();!k.done;k=g.next())k=k.value,e.popup.style[k]=c[k]}};
BC.prototype.getName=function(){return _.A_(this.openPopupAction.popup,"renderer")||_.A_(this.openPopupAction.popup,"dialog")||_.A_(this.openPopupAction.popup,"model")||void 0};
var zlr=function(e){e=e.openPopupAction.durationHintMs;return e===0?e:Math.max(4E3,e||4E3)};
BC.prototype.isRtl=function(){return _.uo("HTML_DIR")==="rtl"};
var dMm=function(e,g){e=e.getElement(g,e.target);e==null&&_.mN(new _.E2("popup getElement returned null",g));return e};var QxA={};
QxA.YtPopupContainerBehavior=[_.hF.YtComponentBehavior,_.Nr.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.uc(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.dE(this.hostElement)},
closePopup:function(e){var g=this.createCacheKey(void 0,e);this.popups_[g]&&this.handleClosePopupAction_(void 0,e)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.ft.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.ft.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(e){e.opened&&e.keepBelowPlayer&&this.ensurePopupBelowPlayer(e)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var e in this.popups_){var g=this.popups_[e];if(g.popup.scrollAction==="refit"){var c=g.popup.positionTarget.getBoundingClientRect(),k=g.popup;c=c.top;var I=g;if(!I.naturalHeight){I.popup.hidden=!1;I.popup.style.position="fixed";I.popup.style.top="0px";I.popup.style.left="0px";var J=I.popup.getBoundingClientRect();I.naturalHeight=J.bottom-J.top;I.popup.refit()}k.hidden=!(c>=I.naturalHeight+60);g.popupContent.clientHeight===0&&g.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(e){this.popupContainerConfig=e},
handleOpenPopupAction:function(e,g,c){var k=e.openPopupAction,I=_.Ss().resolve(_.NN(_.W8))&&k.popupType==="TOAST";I&&!k.uniqueId&&(k.uniqueId=UW());if(!_.G("popup_container_parent_target_killswitch")){var J;g=(J=this.getParentTarget(g))!=null?J:g}var q=this.ensurePopup_(k,g);return new _.Il(function(L){q.then(function(n){if(!n)return L();this.maybeCreateNarrowMediaQuery_();var R=this.createCacheKey(n.rendererName,n.openPopupAction.uniqueId);if(k.showOncePerUniqueId){if(this.shownPopupKeys_.has(R))return L();
this.shownPopupKeys_.add(R)}R=this.popups_[R];var W=!(!R||!R.openPopupAction.beReused);W=!!k.reusePopup||W;if(n.popup.opened&&!W){I&&!n.openPopupAction.replacePopup||this.handleClosePopupAction_(n.rendererName,n.openPopupAction.uniqueId);W=k.popupType==="DIALOG"&&!_.G("popup_container_dialog_reopen_killswitch");if(!I&&!W&&R&&R.target==g&&(_.G("popup_container_event_target_check_killswitch")||R.target==c)&&!n.openPopupAction.replacePopup)return L();_.Va(n.popup,function(){this.completeOpenPopupAction_(k,
g,n);L()}.bind(this))}else n.popup.opened?n.updatePopup(k):this.completeOpenPopupAction_(k,g,n),L()}.bind(this))}.bind(this))},
getParentTarget:function(e){if(e&&e instanceof HTMLElement)for(var g=_.w(Object.entries(this.popups_)),c=g.next();!c.done;c=g.next())if(c=_.w(c.value),c.next(),c=c.next().value,this.popupClosesOnClick(c)&&c.popup.contains(e))return c.target},
popupClosesOnClick:function(e){return e.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(e.rendererName.toUpperCase())},
completeOpenPopupAction_:function(e,g,c){c.updatePopup(e);var k=this.narrowMediaQuery_.queryMatches,I=this.isAriaModal;e=this.expandToFullWidth;c.target=g;var J;g=((J=c.target.polymerController)!=null?J:c.target).popupPositionTarget||c.target;c.JSC$22923_popupConfig.targetContainer&&(g=c.container);c.popup.positionTarget=g;c.popupContent.positionTarget=g;FOm(c);c.JSC$22923_popupConfig.forceFocus&&(c.popupContent.style.outline="none");c.popupContent.tabIndex=-1;c.JSC$22923_popupConfig.narrowProperties&&
(c.popup.style.position="static");c.JSC$22923_popupConfig.preventAutonav&&c.popup.setAttribute("prevent-autonav",!0);c.JSC$22923_popupConfig.forceCloseOnOutsideClick&&c.popup.setAttribute("force-close-on-outside-click",!0);uQp(c,k,I);J={};J.width=e?"100%":"";HgJ(c,c.JSC$22923_popupConfig.styles,J);c.isRtl()&&HgJ(c,c.JSC$22923_popupConfig.rtlStyles,J);if(!c.openPopupAction.shouldStopParentSignal){var q;e=(q=c.target.polymerController)!=null?q:c.target;(c.popupContent.startForwardingEvents||c.popupContainerConfig.forwardingEnabledPopups.has(c.rendererName))&&
e.parentComponent!==c.popupContent&&c.popupContent!==c.target&&c.target!==document.body&&(c.popupContent.startForwardingEvents?c.popupContent.startForwardingEvents(c.popupContainerConfig.forwardedEvents,c.target):(c.JSC$22923_eventForwarder||(c.JSC$22923_eventForwarder=new _.Sl(c.popupContent)),c.JSC$22923_eventForwarder.start(c.popupContainerConfig.forwardedEvents,c.target)))}c=c.popup;c.addEventListener("iron-overlay-opened",_.yg(this,this.onPopupIronOverlayOpened_));c.addEventListener("iron-overlay-closed",
_.yg(this,this.onPopupIronOverlayClosed_));c.addEventListener("iron-overlay-canceled",_.yg(this,this.onPopupIronOverlayCanceled_));c.addEventListener("yt-refit",_.yg(this,this.refitPopup_));c.addEventListener("yt-invalidate-popup-tabbables",_.yg(this,this.handleInvalidatePopupTabbables_));c.open()},
getPopupDurationMs_:function(e){return e.durationHintMs===0?e.durationHintMs:Math.max(4E3,e.durationHintMs||4E3)},
handleClosePopupAction_:function(e,g){var c=_.G("web_popup_cache_key_killswitch")||!!g;if(e||c){var k=this.createCacheKey(e,g);e=(e=this.popups_[k])&&e.popup}else e=_.nEv(_.xL);if(e&&e.close){if(g=_.Ss().resolve(_.NN(_.u7)))e.restoreFocusOnClose=g.isKeyBoardInUse();if(e&&e.positionTarget&&!_.G("ytpopup_close_sibling_popups_killswitch")){g=_.w(Object.entries(this.popups_));for(c=g.next();!c.done;c=g.next()){var I=_.w(c.value);c=I.next().value;I=I.next().value;var J=void 0,q=void 0,L=void 0,n=void 0,
R=void 0,W=void 0;e.positionTarget==((J=I)==null?void 0:(q=J.popupContent)==null?void 0:q.positionTarget)&&I.popup&&(!((L=I.popup)==null?0:(n=L.style)==null?0:n.display)||((R=I.popup)==null?void 0:(W=R.style)==null?void 0:W.display)!=="none")&&(J=void 0,(J=I.popup)==null?0:J.close)&&(I.popup.close(),this.removePopup_(I.popup,c))}e&&this.popups_[k]&&(e.close(),this.removePopup_(e,k))}else e.close(),this.removePopup_(e,k)}},
handleClosePopupCommand_:function(e){e.closePopupCommand&&e.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,e.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(e){var g={},c;for(c in this.popups_)if(g={key$jscomp$1247:g.key$jscomp$1247},g.key$jscomp$1247=c,!e||!e.some(function(J){return function(q){return q==J.key$jscomp$1247}}(g))){var k=this.popups_[g.key$jscomp$1247],I=k.popup;
_.Ss().resolve(_.NN(_.W8))&&k.openPopupAction.popupType==="TOAST"||(I&&I.close&&I.close(),this.removePopup_(I,g.key$jscomp$1247))}},
handleClosePopupsAction_:function(e){e.forEach(function(g){var c=this.popups_[g];c&&((c=c.popup)&&c.close&&c.close(),this.removePopup_(c,g))}.bind(this))},
handleGetPopupOpenedAction_:function(e,g){return(g=this.createCacheKey(e,g))&&this.popups_[g]?this.popups_[e].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var e=[],g;for(g in this.popups_){var c=this.popups_[g];c.popup.opened&&e.push(c)}return e},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(e,g){_.G("ytpopup_disable_default_html_caching")&&e&&e.removeWhenClosed&&(_.o1(this.hostElement).removeChild(e),g&&this.popups_[g]&&delete this.popups_[g])},
shouldReusePopup_:function(e){return!(!e||!e.reusePopup)||!(!e||!e.beReused)},
ensurePopup_:function(e,g){this.maybeCreateNarrowMediaQuery_();var c=_.A_(e.popup,"renderer")||_.A_(e.popup,"dialog")||_.A_(e.popup,"model");if(!c)return _.No();c=_.F3v(c,Y3x(this.popupContainerConfig,c));return _.No(this.getAndMaybeCreatePopup_(e,c,g))},
getAndMaybeCreatePopup_:function(e,g,c){var k=this.createCacheKey(g,e.uniqueId);if(this.popups_[k])return this.popups_[k];e=new BC({openPopupAction:e,target:c,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(g)});return this.popups_[k]=e},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(e){return _.G("ytpopup_disable_default_html_caching")?_.G("ytpopup_disable_cache_allowlist")?e&&this.doNotCacheList_.includes(e):e&&e.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",_.yg(this,this.openPopupQueryMatchesChanged_)),_.o1(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(e){e=e.detail.value;for(var g in this.popups_)uQp(this.popups_[g],e)},
onPopupIronOverlayClosed_:function(e){var g=e.currentTarget,c=_.RKC(g);c=c.length>0?c[0]:g;if(c.is!=="ytd-reel-watch-while-dialog-renderer"||e.target.is!=="tp-yt-iron-dropdown"){e.detail.popup=g;e.detail.popupRenderer=c;var k,I={context:{openingElement:((k=this.popups_[(c==null?void 0:c.is)||""])==null?void 0:k.target)||void 0}};Object.assign(I,e.detail);var J;_.oC((J=c.hostElement)!=null?J:c,"yt-popup-closed",I);g.removeEventListener("yt-refit",_.yg(this,this.refitPopup_));g.removeEventListener("yt-invalidate-popup-tabbables",
_.yg(this,this.handleInvalidatePopupTabbables_));g.removeEventListener("iron-overlay-canceled",_.yg(this,this.onPopupIronOverlayCanceled_));g.removeEventListener("iron-overlay-closed",_.yg(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(g)}},
onPopupIronOverlayCanceled_:function(e,g){var c=e.currentTarget,k=_.RKC(c);k=k.length>0?k[0]:c;if(k.is!=="ytd-reel-watch-while-dialog-renderer"||e.target.is!=="tp-yt-iron-dropdown"){var I;_.oC((I=k.hostElement)!=null?I:k,"yt-popup-canceled",e.detail);I=g?_.lg(g):null;(!g||["click","tap"].includes(g.type))&&!c.hasAttribute("force-close-on-outside-click")&&c.positionTarget&&I&&I.includes(c.positionTarget)&&e.preventDefault();c.restoreFocusOnClose=_.yB.keyboardEventMatchesKeys(g,"esc")}},
onPopupIronOverlayOpened_:function(e){e=e.currentTarget;var g=_.RKC(e);g=g.length>0?g[0]:e;var c,k;_.oC((c=g.hostElement)!=null?c:g,"yt-popup-opened",(k=g.hostElement)!=null?k:g);e.keepBelowPlayer&&(this.ensurePopupBelowPlayer(e,!0),this.dynamicallyPositionedElements_.add(e));c=_.Ss().resolve(_.NN(_.u7));k=!!g.querySelector("#toast");c&&c.isKeyBoardInUse()&&!k&&(typeof g.focusFirstItem==="function"?g.focusFirstItem():(g=_.Lnq(e),g.length&&g[0].focus()));e.removeEventListener("iron-overlay-opened",
_.yg(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(e){e=e.currentTarget;e.refit&&e.refit()},
refitPopups_:function(){for(var e in this.popups_)this.popups_[e].refit()},
handleInvalidatePopupTabbables_:function(e){e=e.currentTarget;e.invalidateTabbables&&e.invalidateTabbables()},
createCacheKey:function(e,g){return _.G("web_popup_cache_key_killswitch")?g?e+"#"+g:e:g?"#"+g:e},
openSheet:function(e,g,c){var k=e==null?void 0:e.openPopupActionCommand;if(!k&&(e==null?0:e.viewModel)){if(e.sheetPosition)a:switch(e.sheetPosition){case "SHEET_POSITION_RIGHT":k="OPEN_POPUP_POSITION_RIGHT";break a;default:k="OPEN_POPUP_POSITION_UNKNOWN"}else k=void 0;k={openPopupAction:{popup:{sheetViewModel:e.viewModel},popupType:"CONTEXTUAL_SHEET",position:k}}}if(k){var I;this.expandToFullWidth=(I=e==null?void 0:e.expandToFullWidth)!=null?I:!1;this.handleOpenPopupAction(k,g,c===void 0?g:c)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var e=this;return _.r(function(g){return g.return(e.handleGetOpenedPopupsAction_().filter(function(c){var k;return((k=c.openPopupAction)==null?void 0:k.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(e,g,c){if(_.G("web_dialog_utils_killswitch")){var k=e==null?void 0:e.openPopupActionCommand,I=(c==null?0:c.ariaLabel)?{accessibilityData:{accessibilityData:{label:c.ariaLabel}}}:void 0;!k&&(e==null?0:e.viewModel)&&(k={openPopupAction:Object.assign({},{popup:{dialogViewModel:e.viewModel},popupType:(c==null?0:c.isModal)?"MODAL":"DIALOG"},I&&I)});k&&this.handleOpenPopupAction(k,g)}else{if(I=e==null?void 0:e.viewModel){var J=c=c===void 0?{}:c;c=J.ariaLabel;I={popup:{dialogViewModel:I},
popupType:J.isModal?"MODAL":"DIALOG"};J={accessibilityData:{label:c}};c&&(I.accessibilityData=J);I={openPopupAction:I}}else I=void 0;if(I=(k=I)!=null?k:e==null?void 0:e.openPopupActionCommand)this.isAriaModal=_.G("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(I,g)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var e=this;return _.r(function(g){return g.return(e.handleGetOpenedPopupsAction_().filter(function(c){var k;return((k=c.openPopupAction)==null?void 0:k.popupType)==="DIALOG"}).length>0)})}}];var UMx;var oXp;var ZgA=_.Ti(["about:blank"]),Ni=function(){var e=_.z.apply(this,arguments)||this;e.isMuted=!1;e.pageLoadTimeoutId=void 0;e.enableA11yFocusFix=_.G("enable_a11y_focus_fix_for_mac_panel_on_desktop");e.moveFocusToContent=function(){e.iframe.focus()};
return e};
_.Y(Ni,_.z);_.v=Ni.prototype;_.v.dataChanged=function(){var e=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var g=this.data.url,c=_.j6(g);_.G("enable_yt_ata_iframe_authuser")?(c=_.j6(g),_.vA(this.iframe,Rxv(c))):_.vA(this.iframe,c);this.pageLoadTimeoutId=_.h2(_.nu(),function(){return void e.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.NB({destination:window,iframe:this.iframe,origin:_.KqV(c.toString()),channelName:"ataiframe",onMessage:_.ZYn(Q8S,function(k){U6x(k.data)?(k=_.gr(k.data,1,_.Lg,_.HH()),k.length!==1?_.mN(Error("om")):(k=k[0],k===3?(e.isMuted=!0,e.logStateChanged({adMuteRequested:!0})):k===1&&e.close())):_.mN(Error("pm"))}),
onEstablished:function(){e.cancelPageLoadTimeout();e.logStateChanged({pageLoadSucceeded:!0})}})}};
_.v.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.nu().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.v.logStateChanged=function(e){var g;if((g=this.data)==null?0:g.trackingParams)e={adsClientData:{aboutThisAdData:e}},_.gL().stateChanged(this.data.trackingParams,e)};
_.v.close=function(){_.Z5(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.handlesPopupClosed=function(e,g){var c=this,k,I;return _.r(function(J){if(J.nextAddress==1)return _.uo("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Z5(c.hostElement,"on-about-this-ad-popup-closed",[c.isMuted,g]),J.jumpTo(0)):e&&EEq(e)?J.yield(Wn7(e),4):(c.isMuted&&_.Z5(c.hostElement,"yt-mute-ad-action",[c.is,c]),J.jumpTo(0));if(k=J.yieldResult){var q=I=new _.n$(k),L=c.isMuted;q.getOptions().includes("onAboutThisAdPopupClosed")?_.Iq4(q,"onAboutThisAdPopupClosed",{isMuted:L,layoutId:g}):_.jS("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Uh(J)})};
_.v.onPopupClosed=function(e){var g=this,c,k;return _.r(function(I){c=_.jw(ZgA);_.vA(g.iframe,c);g.cancelPageLoadTimeout();if(!g.data)return I.jumpTo(0);g.ytRendererBehavior.markDirty();k=e.detail.context.openingElement;return I.yield(g.handlesPopupClosed(k,g.data.layoutId),0)})};
_.v.detached=function(){this.cancelPageLoadTimeout()};
_.v.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ni.prototype.onPopupClosed=Ni.prototype.onPopupClosed;Ni.prototype.dataChanged=Ni.prototype.dataChanged;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.t([_.Cs("#iframe"),_.B("design:type",HTMLIFrameElement)],Ni.prototype,"iframe",void 0);_.t([_.u(),_.B("design:type",Object)],Ni.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ni.prototype,"dataChanged",null);
_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype",Promise)],Ni.prototype,"onPopupClosed",null);_.t([_.Wo({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Ni);
_.U(Ni,"yt-about-this-ad-renderer",function(){if(oXp===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;UMx===void 0&&(UMx=document.createElement("template"));var k=UMx;c.call(g,k.content.cloneNode(!0),e.content.firstChild);oXp=e}e=oXp;return e},{mode:2});var Vza;var tzm;var Bja=function(e){var g=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=g.message;"stack"in g&&(this.stack=g.stack);this.maxFileSizeMB=e;Object.setPrototypeOf(this,Bja.prototype)};
_.Y(Bja,Error);var Njm=function(e,g){var c=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=c.message;"stack"in c&&(this.stack=c.stack);this.minWidth=e;this.minHeight=g;Object.setPrototypeOf(this,Njm.prototype)};
_.Y(Njm,Error);var S7P=function(e){this.requirements=e;this.JSC$22951_maxFileSize=e.maxFileSizeMB*1024*1024},yom=function(e,g){if(g.size>e.JSC$22951_maxFileSize)throw new Bja(e.requirements.maxFileSizeMB);
};var KOJ=function(e,g){this.canvas=e;this.imageEditorBuilder=g};
KOJ.prototype.addEventListeners=function(e){var g=function(I){OgB(e,I)};
this.JSC$22957_mouseDownEvent=g;var c=function(I){Mzj(e,I)};
this.JSC$22957_mouseMoveEvent=c;var k=function(){CSP(e)};
this.JSC$22957_mouseUpEvent=k;this.canvas.addEventListener("mousedown",g);this.canvas.addEventListener("mousemove",c);document.addEventListener("mouseup",k)};
KOJ.prototype.removeEventListeners=function(){this.JSC$22957_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$22957_mouseDownEvent);this.JSC$22957_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$22957_mouseMoveEvent);this.JSC$22957_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$22957_mouseUpEvent)};
var eAJ=function(e,g){e.removeEventListeners();return new Promise(function(c){var k=new Image;k.crossOrigin="anonymous";k.onload=function(){var I=e.imageEditorBuilder(e.canvas,k);e.addEventListeners(I);c(I)};
k.src=g})},S1=function(e,g,c,k,I,J,q,L){this.canvas=e;
this.image=g;this.requiredRatio=c;this.minImageCropDimension=k;this.minOutputImageResolution=I;this.component=J;this.styleFocusedCorner=L===void 0?!0:L;this.action=2;this.focusedCorner=this.resizeCorner=0;e=this.canvas.getContext("2d");if(!e)throw Error("qm");this.ctx=e;this.canvasMargin=q!=null?q:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;q=this.image;e=this.canvasInnerWidth/q.width;q.height*e>912&&(e=q.width/q.height*912/q.width);q=e;this.scaledImageWidth=this.canvas.width%2?
hx7(this.image.width*q):b2o(this.image.width*q);this.scaledImageHeight=Math.round(this.image.height*q);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$22960_overlayMarginBottom=this.JSC$22960_overlayMarginTop=this.canvasMargin;this.JSC$22960_overlayMarginRight=this.JSC$22960_overlayMarginLeft=this.horizontalMargin;this.JSC$22960_overlayWidth=this.scaledImageWidth;this.JSC$22960_overlayHeight=this.scaledImageHeight;
e=this.image.width/this.image.height;e>this.requiredRatio?(this.JSC$22960_overlayWidth=this.canvas.width%2?hx7(this.scaledImageHeight*this.requiredRatio):b2o(this.scaledImageHeight*this.requiredRatio),this.JSC$22960_overlayMarginRight=this.JSC$22960_overlayMarginLeft=(this.canvas.width-this.JSC$22960_overlayWidth)/2):e<this.requiredRatio&&(this.JSC$22960_overlayHeight=this.canvas.height%2?hx7(this.scaledImageWidth/this.requiredRatio):b2o(this.scaledImageWidth/this.requiredRatio),this.JSC$22960_overlayMarginBottom=
this.JSC$22960_overlayMarginTop=(this.canvas.height-this.JSC$22960_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*q,this.scaledImageWidth);gBr(this)};
S1.prototype.getContext=function(){return this.ctx};
var OgB=function(e,g){g={x:Math.round(g.pageX-e.canvas.getBoundingClientRect().left),y:Math.round(g.pageY-e.canvas.getBoundingClientRect().top)};e.dragStart=g;cjd(e,g)!==0?(e.action=1,kTT(e,g),e.resizeCorner=cjd(e,g)):g.x>e.JSC$22960_overlayMarginLeft&&g.x<e.JSC$22960_overlayMarginLeft+e.JSC$22960_overlayWidth&&g.y>e.JSC$22960_overlayMarginTop&&g.y<e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight&&(e.action=0)},IBb=function(e,g){switch(g){case 1:return{x:e.JSC$22960_overlayMarginLeft,
y:e.JSC$22960_overlayMarginTop};case 2:return{x:e.JSC$22960_overlayMarginLeft,y:e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight};case 3:return{x:e.JSC$22960_overlayMarginLeft+e.JSC$22960_overlayWidth,y:e.JSC$22960_overlayMarginTop};case 4:return{x:e.JSC$22960_overlayMarginLeft+e.JSC$22960_overlayWidth,y:e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight};default:throw Error("rm");}},vBB=function(e,g){if(e.focusedCorner!==0){e.dragStart=IBb(e,e.focusedCorner);
e.action=1;e.resizeCorner=e.focusedCorner;var c=e.dragStart.x,k=e.dragStart.y;switch(g){case 0:e.focusedCorner===1||e.focusedCorner===4?(c-=10,k-=10):(c-=10,k+=10);break;case 1:e.focusedCorner===1||e.focusedCorner===4?(c+=10,k+=10):(c+=10,k-=10);break;case 2:c=e.focusedCorner===1||e.focusedCorner===4?c-10:c+10;k-=10;break;case 3:c=e.focusedCorner===1||e.focusedCorner===4?c+10:c-10;k+=10;break;default:throw Error("sm");}JjB(e,{x:c,y:k});gBr(e);e.action=2;e.dragStart=void 0}},Mzj=function(e,g){g={x:Math.round(g.pageX-
e.canvas.getBoundingClientRect().left),
y:Math.round(g.pageY-e.canvas.getBoundingClientRect().top)};kTT(e,g);switch(e.action){case 1:JjB(e,g);break;case 0:e.dragStart&&(e.JSC$22960_overlayMarginLeft=Math.max(e.horizontalMargin,Math.min(e.JSC$22960_overlayMarginLeft-(e.dragStart.x-g.x),e.horizontalMargin+e.scaledImageWidth-e.JSC$22960_overlayWidth)),e.JSC$22960_overlayMarginRight=e.canvas.width-e.JSC$22960_overlayMarginLeft-e.JSC$22960_overlayWidth,e.JSC$22960_overlayMarginTop=Math.max(e.canvasMargin,Math.min(e.JSC$22960_overlayMarginTop-
(e.dragStart.y-g.y),e.scaledImageHeight-e.JSC$22960_overlayHeight+e.canvasMargin)),e.JSC$22960_overlayMarginBottom=e.canvas.height-(e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight));break;default:return}gBr(e);e.dragStart=g},CSP=function(e){e.action=2;
e.dragStart=void 0;document.body.style.cursor="auto"},kTT=function(e,g){switch(cjd(e,g)){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:e.action!==1&&(document.body.style.cursor="auto")}},cjd=function(e,g){var c=e.JSC$22960_overlayMarginLeft-5,k=e.JSC$22960_overlayMarginTop-5,I=e.JSC$22960_overlayMarginLeft+e.JSC$22960_overlayWidth-5;
e=e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight-5;return wJd(g,{x:c,y:k})?1:wJd(g,{x:I,y:k})?3:wJd(g,{x:c,y:e})?2:wJd(g,{x:I,y:e})?4:0},wJd=function(e,g){return e.x>=g.x&&e.x<=g.x+10&&e.y>=g.y&&e.y<=g.y+10},JjB=function(e,g){if(e.dragStart)switch(e.resizeCorner){case 2:Math.abs((e.JSC$22960_overlayMarginLeft+e.JSC$22960_overlayWidth-g.x)/(g.y-e.JSC$22960_overlayMarginTop))>=e.requiredRatio?qxp(e,g.x):Lad(e,g.y);
break;case 1:Math.abs((e.JSC$22960_overlayMarginLeft+e.JSC$22960_overlayWidth-g.x)/(e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight-g.y))>=e.requiredRatio?rjP(e,g.x):Lad(e,g.y);break;case 4:Math.abs((g.x-e.JSC$22960_overlayMarginLeft)/(g.y-e.JSC$22960_overlayMarginTop))>=e.requiredRatio?qxp(e,g.x):aBa(e,g.y);break;case 3:Math.abs((g.x-e.JSC$22960_overlayMarginLeft)/(e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight-g.y))>=e.requiredRatio?rjP(e,g.x):aBa(e,g.y);break;default:throw Error("tm");
}},qxp=function(e,g){var c=e.JSC$22960_overlayMarginTop;
e.JSC$22960_overlayMarginBottom=nB3(e,g);e.JSC$22960_overlayHeight=e.canvas.height-e.JSC$22960_overlayMarginBottom-c;e.JSC$22960_overlayWidth=Math.round(e.JSC$22960_overlayHeight*e.requiredRatio);RAa(e)},rjP=function(e,g){var c=e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight;
e.JSC$22960_overlayMarginTop=nB3(e,g);e.JSC$22960_overlayHeight=c-e.JSC$22960_overlayMarginTop;e.JSC$22960_overlayWidth=Math.round(e.JSC$22960_overlayHeight*e.requiredRatio);RAa(e)},RAa=function(e){switch(e.resizeCorner){case 2:case 1:e.JSC$22960_overlayMarginLeft=e.canvas.width-e.JSC$22960_overlayMarginRight-e.JSC$22960_overlayWidth;
break;case 4:case 3:e.JSC$22960_overlayMarginRight=e.canvas.width-e.JSC$22960_overlayMarginLeft-e.JSC$22960_overlayWidth;break;default:throw Error("tm");}},Lad=function(e,g){var c=e.JSC$22960_overlayMarginLeft+e.JSC$22960_overlayWidth;
e.JSC$22960_overlayMarginLeft=EB3(e,g);e.JSC$22960_overlayWidth=c-e.JSC$22960_overlayMarginLeft;e.JSC$22960_overlayHeight=Math.round(e.JSC$22960_overlayWidth/e.requiredRatio);Wax(e)},aBa=function(e,g){var c=e.JSC$22960_overlayMarginLeft;
e.JSC$22960_overlayMarginRight=EB3(e,g);e.JSC$22960_overlayWidth=e.canvas.width-e.JSC$22960_overlayMarginRight-c;e.JSC$22960_overlayHeight=Math.round(e.JSC$22960_overlayWidth/e.requiredRatio);Wax(e)},Wax=function(e){switch(e.resizeCorner){case 2:case 4:e.JSC$22960_overlayMarginBottom=e.canvas.height-e.JSC$22960_overlayMarginTop-e.JSC$22960_overlayHeight;
break;case 1:case 3:e.JSC$22960_overlayMarginTop=e.canvas.height-e.JSC$22960_overlayMarginBottom-e.JSC$22960_overlayHeight;break;default:throw Error("tm");}},nB3=function(e,g){switch(e.resizeCorner){case 2:g=e.canvas.height-(e.JSC$22960_overlayMarginTop+bmp(e,g));
break;case 4:g=e.canvas.height-(e.JSC$22960_overlayMarginTop+hAb(e,g));break;case 1:g=e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight-bmp(e,g);break;case 3:g=e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight-hAb(e,g);break;default:throw Error("tm");}return Math.max(g,e.canvasMargin)},bmp=function(e,g){g=e.JSC$22960_overlayMarginLeft+e.JSC$22960_overlayWidth-Math.max(g,e.horizontalMargin);
g=g<0?e.JSC$22960_overlayWidth:Math.max(g,e.minOverlayWidth);return Math.round(g/e.requiredRatio)},hAb=function(e,g){g=e.canvas.width-Math.max(e.canvas.width-g,e.horizontalMargin)-e.JSC$22960_overlayMarginLeft;
g=g<0?e.JSC$22960_overlayWidth:Math.max(g,e.minOverlayWidth);return Math.round(g/e.requiredRatio)},EB3=function(e,g){switch(e.resizeCorner){case 2:g=e.canvas.width-e.JSC$22960_overlayMarginRight-XJj(e,g);
break;case 4:g=e.canvas.width-e.JSC$22960_overlayMarginLeft-XJj(e,g);break;case 1:g=e.canvas.width-e.JSC$22960_overlayMarginRight-GTa(e,g);break;case 3:g=e.canvas.width-e.JSC$22960_overlayMarginLeft-GTa(e,g);break;default:throw Error("tm");}return Math.max(g,e.horizontalMargin)},XJj=function(e,g){g=e.canvas.height-Math.max(e.canvas.height-g,e.canvasMargin)-e.JSC$22960_overlayMarginTop;
return g<0?e.JSC$22960_overlayWidth:Math.max(Math.round(g*e.requiredRatio),e.minOverlayWidth)},GTa=function(e,g){g=e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight-Math.max(g,e.canvasMargin);
return g<0?e.JSC$22960_overlayWidth:Math.max(Math.round(g*e.requiredRatio),e.minOverlayWidth)},gBr=function(e){e.ctx.clearRect(0,0,e.canvas.width,e.canvas.height);
e.ctx.drawImage(e.image,0,0,e.image.width,e.image.height,e.horizontalMargin,e.canvasMargin,e.canvas.width-2*e.horizontalMargin,e.scaledImageHeight);e.ctx.fillStyle="rgba(0, 0, 0, 0.7)";e.ctx.fillRect(e.horizontalMargin,e.JSC$22960_overlayMarginTop,e.JSC$22960_overlayMarginLeft-e.horizontalMargin,e.JSC$22960_overlayHeight);e.ctx.fillRect(e.JSC$22960_overlayMarginLeft+e.JSC$22960_overlayWidth,e.JSC$22960_overlayMarginTop,e.JSC$22960_overlayMarginRight-e.horizontalMargin,e.JSC$22960_overlayHeight);e.ctx.fillRect(e.horizontalMargin,
e.canvasMargin,e.scaledImageWidth,e.JSC$22960_overlayMarginTop-e.canvasMargin);e.ctx.fillRect(e.horizontalMargin,e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight,e.scaledImageWidth,e.JSC$22960_overlayMarginBottom-e.canvasMargin);e.drawOverlay();e.component&&_.oC(e.component,"image-updated")};
S1.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$22960_overlayMarginLeft,this.JSC$22960_overlayMarginTop,this.JSC$22960_overlayWidth,this.JSC$22960_overlayHeight);xbP(this)};
var xbP=function(e){var g=e.JSC$22960_overlayMarginLeft-5,c=e.JSC$22960_overlayMarginTop-5,k=e.JSC$22960_overlayMarginLeft+e.JSC$22960_overlayWidth-5,I=e.JSC$22960_overlayMarginTop+e.JSC$22960_overlayHeight-5;e.ctx.fillStyle="#FFF";e.ctx.fillRect(g,c,10,10);e.ctx.strokeRect(g,c,10,10);e.ctx.fillRect(k,c,10,10);e.ctx.strokeRect(k,c,10,10);e.ctx.fillRect(g,I,10,10);e.ctx.strokeRect(g,I,10,10);e.ctx.fillRect(k,I,10,10);e.ctx.strokeRect(k,I,10,10);if(e.focusedCorner!==0&&e.styleFocusedCorner){e.ctx.lineWidth=
4;e.ctx.strokeStyle="#3EA6FF";switch(e.focusedCorner){case 1:--g;--c;break;case 2:--g;c=I-1;break;case 3:g=k-1;--c;break;case 4:g=k-1;c=I-1;break;default:return}e.ctx.strokeRect(g,c,12,12)}};
S1.prototype.crop=function(e,g){g=g===void 0?!0:g;var c=this.image.width/this.scaledImageWidth,k=document.createElement("canvas"),I=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],J=this.JSC$22960_overlayWidth*c,q=this.JSC$22960_overlayHeight*c;k.width=Math.max(J,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);k.height=Math.max(q,I);e&&(k.width=Math.min(k.width,k.height),k.height=Math.min(k.width,k.height));
e=k.getContext("2d");if(!e)throw Error("hm");I=(this.JSC$22960_overlayMarginLeft-this.horizontalMargin)*c;c*=this.JSC$22960_overlayMarginTop-this.canvasMargin;g||(e.fillStyle="white",e.fillRect(0,0,k.width,k.height));e.drawImage(this.image,I,c,J,q,0,0,k.width,k.height);return k};var DbP=function(e,g,c,k,I){S1.call(this,e,g,c,k,void 0,I,8,!1)};
_.Y(DbP,S1);DbP.prototype.drawOverlay=function(){var e=this.getContext(),g=this.JSC$22960_overlayWidth,c=this.JSC$22960_overlayHeight,k=this.JSC$22960_overlayMarginTop,I=this.JSC$22960_overlayMarginLeft;e.lineWidth=2;e.strokeStyle="#3EA6FF";e.beginPath();e.arc(I+g/2,k+c/2,g/2,0,2*Math.PI);e.stroke();e.strokeRect(I,k,g,c);xbP(this)};
var $bJ={maxFileSizeMB:15,minWidth:98,minHeight:98},Yxr=["image/png","image/jpeg","image/gif"],yi=function(){var e=_.z.apply(this,arguments)||this;e.fileSelectorFocusListener=null;e.errorMessage=null;e.isLoading=!0;e.hideContainer=!0;e.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return e};
_.Y(yi,_.z);_.v=yi.prototype;_.v.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.v.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.v.computePlaylistThumbnail=function(e){return e==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.v.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Z5(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.v.setErrorState=function(e){this.resetErrorState();e&&(this.errorMessage=e)};
_.v.showPopup=function(){var e=this;this.hideContainer=!1;_.h2(_.ft,function(){_.oC(e.hostElement,"yt-refit")});
this.isLoading=!1};
_.v.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.v.closePopup=function(){this.resetFileSelector();_.Z5(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.onCancelTap=function(){this.isPlaylistThumbnail||_.Z5(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.v.openFileSelector=function(){var e=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.h2(_.ft,function(){setTimeout(function(){if(!e.fileSelector.files||e.fileSelector.files.length===0)e.onCancelTap();e.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(g){g instanceof Error?_.jW(g):_.Py(new _.E2(JSON.stringify(g)))}};
_.v.handleFileSelection=function(){var e=this,g,c,k,I,J,q;return _.r(function(L){switch(L.nextAddress){case 1:_.lj(L,2);if(!e.fileSelector.files||!e.imageEditorCanvas)return e.onCancelTap(),L.return();g=e.fileSelector.files[0];yom(e.imageChecker,g);_.lj(L,4);return L.yield(FvS(g),6);case 6:e.mimeType=L.yieldResult;_.zn(L,5,2);break;case 4:_.Qb(L,2),_.Z5(e.hostElement,"yt-image-selection-error-action",[(c=e.data)==null?void 0:c.genericImageLoadErrorMessage]),e.onCancelTap();case 5:k=new FileReader;
k.addEventListener("load",function(){var n,R;return _.r(function(W){if(W.nextAddress==1){if(!k.result)return _.mN(Error("jm")),W.return();n=k.result;R=new Image;R.src=n;R.onload=function(){try{var b=e.imageChecker;if(R.width<b.requirements.minWidth||R.height<b.requirements.minHeight)throw new Njm(b.requirements.minWidth,b.requirements.minHeight);}catch(X){if(X instanceof Njm){var h;_.Z5(e.hostElement,"yt-image-selection-error-action",[(h=e.data)==null?void 0:h.imageDimensionErrorMessage]);e.logImageDimensionErrorVe()}else X instanceof
Error?_.jW(X):(b=new _.E2(JSON.stringify(X)),_.jW(b));e.onCancelTap()}e.showPopup()};
R.onerror=function(){var b;_.Z5(e.hostElement,"yt-image-selection-error-action",[(b=e.data)==null?void 0:b.genericImageLoadErrorMessage]);e.onCancelTap()};
return W.yield(eAJ(e.imageEditorCanvas,n),2)}e.imageEditor=W.yieldResult;e.updatePositionOfAllCorners();e.addEventListeners(e.imageEditor);_.Uh(W)})},!1);
k.readAsDataURL(g);_.zn(L,0);break;case 2:I=_.Qb(L),I instanceof Bja?_.Z5(e.hostElement,"yt-image-selection-error-action",[(J=e.data)==null?void 0:J.imageSizeErrorMessage]):(I instanceof Error?_.jW(I):_.Py(new _.E2(JSON.stringify(I))),_.Z5(e.hostElement,"yt-image-selection-error-action",[(q=e.data)==null?void 0:q.genericImageLoadErrorMessage])),e.onCancelTap(),_.Uh(L)}})};
_.v.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var e=_.eU(_.gL(),{veType:232707,visualElement:_.VF(232707)});e&&(e={visualElement:e},_.CO().reportShown(e))}};
_.v.handleImageSelectionErrorAction=function(e){this.isPlaylistThumbnail&&_.F4v(this.hostElement,e)};
_.v.convertToImageFormatBundle=function(e){var g=this,c,k,I;return _.r(function(J){switch(J.nextAddress){case 1:return c=e.toDataURL(g.outputMimeType,1),J.yield(uvl(c),2);case 2:k=J.yieldResult;_.lj(J,3);yom(g.imageChecker,k);_.zn(J,4);break;case 3:I=_.Qb(J);if(!(I instanceof Bja))throw I;_.mN(new _.E2("Output size is bigger than input size for image",g.mimeType,g.outputMimeType,k.size));c=e.toDataURL("image/jpeg",.95);return J.yield(uvl(c),6);case 6:k=J.yieldResult;case 4:return J.return({dataUrl:c,
imageFile:k})}})};
_.v.handleUploadImageToScottyCommand=function(e){var g=this,c,k,I,J,q,L,n,R,W,b;return _.r(function(h){switch(h.nextAddress){case 1:if(!g.imageEditor||!_.x(e,X1M))return h.return();c=_.x(e,X1M).scottyUploadUrl;if(!c){var X=new _.E2("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.jW(X);return h.return()}_.lj(h,2);g.setLoadingState();k=g.imageEditor.crop(!1,!1);return h.yield(g.convertToImageFormatBundle(k),4);case 4:return I=h.yieldResult,h.yield(APX(I.imageFile,c),5);
case 5:J=h.yieldResult;((q=g.data)==null?0:q.onUploadEndpoint)?(L=g.buildUploadServiceEndpoint(J),g.ytComponentBehavior.resolveCommand(L),n=_.x(L,_.bp),((R=n)==null?0:R.params)?g.closePopup():g.resetFileSelector()):(_.Z5(g.hostElement,"yt-image-updated-action",[I.dataUrl,J]),g.closePopup());_.zn(h,0);break;case 2:W=_.Qb(h),g.setErrorState((b=g.data)==null?void 0:b.uploadErrorMessage),W instanceof Error?_.jW(W):(X=new _.E2(JSON.stringify(W)),_.jW(X)),_.Uh(h)}})};
_.v.buildUploadServiceEndpoint=function(e){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",e),this.data.onUploadEndpoint):null};
_.v.dataChanged=function(){var e=this,g;return _.r(function(c){if(c.nextAddress==1){if(!e.data||!e.canvasElement)return c.return();e.data.imageRatio&&e.data.minImageCropWidth||_.Py(new _.E2("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));g=function(k,I){return e.data.imageType==="IMAGE_TYPE_AVATAR"?new DbP(k,I,e.data.imageRatio,[e.data.minImageCropWidth,e.data.minImageCropWidth/e.data.imageRatio],e.hostElement):new S1(k,I,e.data.imageRatio,[e.data.minImageCropWidth,
e.data.minImageCropWidth/e.data.imageRatio],void 0,e.hostElement,8,!1)};
e.imageEditorCanvas=new KOJ(e.canvasElement,g);return e.data.url?c.yield(eAJ(e.imageEditorCanvas,e.data.url),3):(e.hideContainer=!0,e.openFileSelector(),c.jumpTo(0))}e.imageEditor=c.yieldResult;e.showPopup();e.addEventListeners(e.imageEditor);_.Uh(c)})};
_.v.addEventListeners=function(e){this.removeEventListeners();var g=function(I){OgB(e,I)};
this.JSC$22968_mouseDownEvent=g;var c=function(I){Mzj(e,I)};
this.JSC$22968_mouseMoveEvent=c;var k=function(){CSP(e)};
this.JSC$22968_mouseUpEvent=k;this.topLeftCorner.addEventListener("mousedown",g);this.topLeftCorner.addEventListener("mousemove",c);this.topLeftCorner.addEventListener("mouseup",k);this.topRightCorner.addEventListener("mousedown",g);this.topRightCorner.addEventListener("mousemove",c);this.topRightCorner.addEventListener("mouseup",k);this.bottomLeftCorner.addEventListener("mousedown",g);this.bottomLeftCorner.addEventListener("mousemove",c);this.bottomLeftCorner.addEventListener("mouseup",k);this.bottomRightCorner.addEventListener("mousedown",
g);this.bottomRightCorner.addEventListener("mousemove",c);this.bottomRightCorner.addEventListener("mouseup",k)};
_.v.removeEventListeners=function(){this.JSC$22968_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$22968_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$22968_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$22968_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$22968_mouseDownEvent));this.JSC$22968_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$22968_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$22968_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$22968_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$22968_mouseMoveEvent));this.JSC$22968_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$22968_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$22968_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$22968_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$22968_mouseUpEvent))};
_.v.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var e=document.activeElement;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;switch(e){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.v.updatePositionOfCorner=function(e,g){var c=e.y-g.offsetHeight/2+4;g.style.left=e.x-g.offsetWidth/2+16+"px";g.style.top=c+"px"};
_.v.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var e=_.w([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),g=e.next();!g.done;g=e.next()){g=g.value;var c=IBb(this.imageEditor,g.corner);this.updatePositionOfCorner(c,g.div)}};
_.v.onLeft=function(e){this.imageEditor&&this.setFocusInImageEditor()&&(vBB(this.imageEditor,0),this.updatePositionOfAllCorners(),e.preventDefault())};
_.v.onRight=function(e){this.imageEditor&&this.setFocusInImageEditor()&&(vBB(this.imageEditor,1),this.updatePositionOfAllCorners(),e.preventDefault())};
_.v.onUp=function(e){this.imageEditor&&this.setFocusInImageEditor()&&(vBB(this.imageEditor,2),this.updatePositionOfAllCorners(),e.preventDefault())};
_.v.onDown=function(e){this.imageEditor&&this.setFocusInImageEditor()&&(vBB(this.imageEditor,3),this.updatePositionOfAllCorners(),e.preventDefault())};
_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Bd.Object.defineProperties(yi.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Yxr.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var e,g,c;((g=this.data)==null?0:g.imageRatio)&&((c=this.data)==null?0:c.minImageCropWidth)?e={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:e=$bJ;return new S7P(e)}}});
yi.prototype.updatePositionOfAllCorners=yi.prototype.updatePositionOfAllCorners;yi.prototype.dataChanged=yi.prototype.dataChanged;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],yi.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],yi.prototype,"ytComponentBehavior",void 0);_.t([_.m(_.yB),_.B("design:type",Object)],yi.prototype,"ironA11yKeysBehavior",void 0);
_.t([_.Cs("#canvas"),_.B("design:type",HTMLCanvasElement)],yi.prototype,"canvasElement",void 0);_.t([_.Cs("#file-selector"),_.B("design:type",HTMLInputElement)],yi.prototype,"fileSelector",void 0);_.t([_.Cs("#top-left-corner"),_.B("design:type",HTMLDivElement)],yi.prototype,"topLeftCorner",void 0);_.t([_.Cs("#top-right-corner"),_.B("design:type",HTMLDivElement)],yi.prototype,"topRightCorner",void 0);
_.t([_.Cs("#bottom-left-corner"),_.B("design:type",HTMLDivElement)],yi.prototype,"bottomLeftCorner",void 0);_.t([_.Cs("#bottom-right-corner"),_.B("design:type",HTMLDivElement)],yi.prototype,"bottomRightCorner",void 0);_.t([_.u(),_.B("design:type",Object)],yi.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],yi.prototype,"errorMessage",void 0);_.t([_.u(),_.B("design:type",Object)],yi.prototype,"isLoading",void 0);_.t([_.u(),_.B("design:type",Object)],yi.prototype,"hideContainer",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.B("design:type",Boolean)],yi.prototype,"isPlaylistThumbnail",void 0);_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],yi.prototype,"dataChanged",null);_.t([_.Ks("image-updated"),_.Ks("yt-refit"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yi.prototype,"updatePositionOfAllCorners",null);
_.t([_.Wo({is:"yt-image-editor-renderer",disableElementRegistration:!0})],yi);
_.U(yi,"yt-image-editor-renderer",function(){if(tzm===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Vza===void 0&&(Vza=document.createElement("template"));var k=Vza;c.call(g,k.content.cloneNode(!0),e.content.firstChild);tzm=e}e=tzm;return e},{mode:2});var fBa;var j3r;var KG=function(){return _.z.apply(this,arguments)||this};
_.Y(KG,_.z);KG.prototype.updateMinutesFromBinding=function(e){this.handleMinutesChanged&&this.handleMinutesChanged(e)};
KG.prototype.updateSecondsFromBinding=function(e){this.handleSecondsChanged&&this.handleSecondsChanged(e)};
KG.prototype.updateDescriptionFromBinding=function(e){this.handleDescriptionChanged&&this.handleDescriptionChanged(e)};
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],KG.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],KG.prototype,"data",void 0);_.t([_.u(),_.B("design:type",String)],KG.prototype,"minutes",void 0);_.t([_.u(),_.B("design:type",String)],KG.prototype,"seconds",void 0);_.t([_.u(),_.B("design:type",String)],KG.prototype,"description",void 0);_.t([_.u(),_.B("design:type",Function)],KG.prototype,"handleMinutesChanged",void 0);
_.t([_.u(),_.B("design:type",Function)],KG.prototype,"handleSecondsChanged",void 0);_.t([_.u(),_.B("design:type",Function)],KG.prototype,"handleDescriptionChanged",void 0);_.t([_.u(),_.B("design:type",Number)],KG.prototype,"characterLimit",void 0);_.t([_.u(),_.B("design:type",Number)],KG.prototype,"textNumRows",void 0);_.t([_.Wo({is:"yt-report-details-form-content",disableElementRegistration:!0})],KG);
_.U(KG,"yt-report-details-form-content",function(){if(j3r===void 0){var e=document.createElement("template");_.P(e,'\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>');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;fBa===void 0&&(fBa=document.createElement("template"));var k=fBa;c.call(g,k.content.cloneNode(!0),e.content.firstChild);j3r=e}e=j3r;return e},{mode:2});var imr;var PdJ;var O$=function(){var e=_.z.apply(this,arguments)||this;e.updateMinutesFromBinding=function(g){e.minutes=g.detail.value};
e.updateSecondsFromBinding=function(g){e.seconds=g.detail.value};
e.updateDescriptionFromBinding=function(g){e.description=g.detail.value};
return e};
_.Y(O$,_.z);_.v=O$.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.v.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.v.ready=function(){_.o1(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.v.onSubmitYtAction=function(e){var g=e.detail;g.actionName==="yt-service-request"&&(g=g.args[1],g.flagEndpoint&&(e.stopPropagation(),this.refireAction(g)))};
_.v.refireAction=function(e){var g={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(g.vss_id=this.vssId);_.tr(this.hostElement,[e,g]);this.submitDisabled=!0};
_.v.dataChanged=function(){var e=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var g=_.FE();g&&g.getPlayerPromise().then(function(c){var k=c.getOption("cc","track")||c.getOption("captions","track");k&&(e.vssId=k.vss_id);c=c.getCurrentTime();e.minutes=Math.floor(c/60).toString();e.seconds=(Math.floor(c)%60).toString()})};
_.v.updateSubmitButtonState=function(){var e;((e=this.data)==null?0:e.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.v.onYtServiceRequestCompleted=function(){_.Z5(this.hostElement,"yt-close-popup-action")};
_.v.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Bd.Object.defineProperties(O$.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.textNumRows)||4}}});
O$.prototype.onYtServiceRequestError=O$.prototype.onYtServiceRequestError;O$.prototype.onYtServiceRequestCompleted=O$.prototype.onYtServiceRequestCompleted;O$.prototype.updateSubmitButtonState=O$.prototype.updateSubmitButtonState;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);
_.t([_.u({observer:"dataChanged"}),_.B("design:type",Object)],O$.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Boolean)],O$.prototype,"submitDisabled",void 0);_.t([_.u(),_.B("design:type",String)],O$.prototype,"minutes",void 0);_.t([_.u(),_.B("design:type",String)],O$.prototype,"seconds",void 0);_.t([_.u(),_.B("design:type",String)],O$.prototype,"description",void 0);_.t([_.u(),_.B("design:type",String)],O$.prototype,"vssId",void 0);
_.t([_.u({value:_.uo("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.B("design:type",Boolean)],O$.prototype,"isMusic",void 0);_.t([_.p("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],O$.prototype,"characterLimit",null);_.t([_.p("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],O$.prototype,"textNumRows",null);
_.t([_.k_("minutes","seconds","description","submitDisabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],O$.prototype,"updateSubmitButtonState",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],O$.prototype,"onYtServiceRequestCompleted",null);
_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],O$.prototype,"onYtServiceRequestError",null);_.t([_.Wo({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],O$);
_.U(O$,"yt-report-details-form-renderer",function(){if(PdJ===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;imr===void 0&&(imr=document.createElement("template"));var k=imr;c.call(g,k.content.cloneNode(!0),e.content.firstChild);PdJ=e}e=PdJ;return e});var mbA;var pJT;var Trx;var lBr;var Mi=function(){return _.z.apply(this,arguments)||this};
_.Y(Mi,_.z);
Mi.prototype.onCheckedChanged_=function(){if(this.data){var e=_.o1(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Z5(this.hostElement,"yt-additional-detail-checkbox-update",[e]):this.data.identifier==="yt-hide-user-checkbox"?_.Z5(this.hostElement,"yt-hide-user-checkbox-update",[e]):e&&this.data.enableCommand?_.Z5(this.hostElement,"yt-modify-report-form-command",[_.x(this.data.enableCommand,UFQ)]):!e&&this.data.disableCommand&&_.Z5(this.hostElement,
"yt-modify-report-form-command",[_.x(this.data.enableCommand,UFQ)])}};
Mi.prototype.onLabelTap_=function(e){e.target.tagName!="A"&&(_.o1(this.hostElement).querySelector("#checkbox").checked=!_.o1(this.hostElement).querySelector("#checkbox").checked)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Mi.prototype,"data",void 0);_.t([_.Wo({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Mi);
_.U(Mi,"yt-boolean-form-field-v2-renderer",function(){if(lBr===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Trx===void 0&&(Trx=document.createElement("template"));var k=Trx;c.call(g,k.content.cloneNode(!0),e.content.firstChild);lBr=e}e=lBr;return e});var CG=function(){var e=_.z.apply(this,arguments)||this;e.canShowAdditionalDetailCheckbox=!1;e.canShowCheckbox=!1;e.keepDropdownFocusedAfterSelection=!0;return e};
_.Y(CG,_.z);CG.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([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],CG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],CG.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],CG.prototype,"canShowAdditionalDetailCheckbox",void 0);_.t([_.u(),_.B("design:type",Object)],CG.prototype,"canShowCheckbox",void 0);_.t([_.u(),_.B("design:type",Object)],CG.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.t([_.Wo({is:"yt-report-form-modal-content",disableElementRegistration:!0})],CG);
_.U(CG,"yt-report-form-modal-content",function(){if(pJT===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;mbA===void 0&&(mbA=document.createElement("template"));var k=mbA;c.call(g,k.content.cloneNode(!0),e.content.firstChild);pJT=e}e=pJT;return e},{mode:2});var AjA;var s3m;var em=function(){var e=_.z.apply(this,arguments)||this;e.submitting=!1;e.submitButtonDisabled=!0;e.command=null;e.canShowCheckbox=!1;e.canShowAdditionalDetailCheckbox=!1;e.canShowNextButton=!1;e.additionalDetailCheckboxChecked=!1;e.refitJob=0;e.keepDropdownFocusedAfterSelection=!0;e.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 e};
_.Y(em,_.z);_.v=em.prototype;_.v.created=function(){this.refitJob=0};
_.v.attached=function(){this.JSC$22991_scroller&&(this.JSC$22991_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22991_scroller.attached&&typeof this.JSC$22991_scroller.attached==="function"&&this.JSC$22991_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(e){e&&(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,e.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),e.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.v.onYtPopupOpened=function(){var e=_.FE();e&&e.getPlayerPromise().then(function(g){g.pauseVideo()})};
_.v.onYtNavigate=function(e){_.x(e.detail.endpoint,_.lx4)&&(e.stopPropagation(),this.hideReportForm=!0)};
_.v.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.v.onYtServiceRequestCompleted=function(e,g){var c=g.actions;if(c){if(c.length===1&&_.x(c[0],_.SV)){var k;c=((k=_.x(c[0],_.SV))==null?void 0:k.commands)||[]}k=0;for(var I=c.length;k<I;k++)_.x(c[k],_.k8)&&(e.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(c[k]))}if(g.data&&(e=this.get("feedbackResponses",g.data)))for(g=0;g<e.length;g++)if(e[g].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.v.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.v._onDescendantIronResize=function(e){e.stopPropagation();return!1};
_.v.handleReportFormEndpointUpdateAction=function(e){if(e.submitEndpoint){var g=this.command=e.submitEndpoint;g=_.x(g,_.Tas);if(g==null?0:g.additionalDetailCheckboxChecked)g.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else e.submitNavigationEndpoint?(this.command=e.submitNavigationEndpoint,this.toggleSubmitButton(!1)):e.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:e.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;e.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",e));this.refit()};
_.v.handleConfirmDialogCloseAction=function(e){e.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.v.submitButtonDisabledChanged=function(){var e=this.hostElement.parentElement;e&&e.invalidateTabbables&&e.invalidateTabbables()};
_.v.handleModifyReportFormCommand=function(e){e=this.get("action",e);e==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:e==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:e==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:e==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:e==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:e==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.v.updateDialogStyling=function(){var e,g,c,k,I,J=((I=(e=this.data)==null?void 0:(g=e.optionsSupportedRenderers)==null?void 0:(c=g.optionsRenderer)==null?void 0:(k=c.items)==null?void 0:k.length)!=null?I:0)<=2?0:240;_.Nk(this.hostElement,{"--yt-report-form-modal-renderer-min-width":J+"px"})};
_.v.toggleSubmitButton=function(e){this.submitButtonDisabled=!e;this.submitButtonDisabled=e};
_.v.computeSubmitButtonData=function(e,g){var c={};_.x(g,_.lx4)?c.navigationEndpoint=g:c.command=g||void 0;e&&e.buttonRenderer&&_.n0.extend(c,e.buttonRenderer);return c};
_.v.computeNextButtonData=function(e,g){var c={};if(!e||!e.buttonRenderer)return c;_.n0.extend(c,e.buttonRenderer);if(!g)return c;if(_.x(g,_.lx4))c.navigationEndpoint=EAx(g);else if(c.command=EAx(g),e=_.x(c.command,_.Tas))e.legalCheckboxChecked=!0;return c};
_.v.computeShowNextButton=function(e,g,c){return!!e&&g&&c};
_.v.refit=function(){var e=this;this.refitJob||(this.refitJob=_.ft.addLowPriorityJob(function(){_.oC(e.hostElement,"yt-refit");e.refitJob=0}))};
_.v.handleAdditionalDetailCheckboxUpdateAction=function(e){this.additionalDetailCheckboxChecked=e;_.x(this.command,_.Tas).additionalDetailCheckboxChecked=e};
_.Bd.Object.defineProperties(em,{template:{configurable:!0,enumerable:!0,get:function(){if(s3m===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;AjA===void 0&&(AjA=document.createElement("template"));var k=AjA;c.call(g,k.content.cloneNode(!0),e.content.firstChild);s3m=e}e=s3m;return e}}});
em.prototype.onYtServiceRequestError=em.prototype.onYtServiceRequestError;em.prototype.onYtServiceRequestCompleted=em.prototype.onYtServiceRequestCompleted;em.prototype.onYtServiceRequestSent=em.prototype.onYtServiceRequestSent;em.prototype.onYtNavigate=em.prototype.onYtNavigate;em.prototype.onYtPopupOpened=em.prototype.onYtPopupOpened;_.t([_.m(_.tF.YtOpenPopupBehavior),_.B("design:type",Object)],em.prototype,"openPopupBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],em.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],em.prototype,"eventForwardingBehavior",void 0);_.t([_.m(_.Jc),_.B("design:type",Object)],em.prototype,"ironResizableBehavior",void 0);_.t([_.u({observer:"dataChanged"}),_.B("design:type",Object)],em.prototype,"data",void 0);
_.t([_.u(),_.B("design:type",Object)],em.prototype,"submitting",void 0);_.t([_.u({observer:"submitButtonDisabledChanged"}),_.B("design:type",Object)],em.prototype,"submitButtonDisabled",void 0);_.t([_.u(),_.B("design:type",Object)],em.prototype,"command",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],em.prototype,"hideReportForm",void 0);_.t([_.u(),_.B("design:type",Object)],em.prototype,"canShowCheckbox",void 0);
_.t([_.u(),_.B("design:type",Object)],em.prototype,"canShowAdditionalDetailCheckbox",void 0);_.t([_.u(),_.B("design:type",Object)],em.prototype,"canShowNextButton",void 0);_.t([_.u(),_.B("design:type",Object)],em.prototype,"additionalDetailCheckboxChecked",void 0);_.t([_.u(),_.B("design:type",Object)],em.prototype,"refitJob",void 0);_.t([_.u(),_.B("design:type",Object)],em.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.t([_.Cs("#scroller"),_.B("design:type",Object)],em.prototype,"JSC$22991_scroller",void 0);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],em.prototype,"onYtPopupOpened",null);_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],em.prototype,"onYtNavigate",null);
_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],em.prototype,"onYtServiceRequestSent",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],em.prototype,"onYtServiceRequestCompleted",null);
_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],em.prototype,"onYtServiceRequestError",null);_.t([_.Wo({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],em);var FaA;var upB;var gI=function(){return _.z.apply(this,arguments)||this};
_.Y(gI,_.z);_.v=gI.prototype;_.v.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.v.onVisible=function(){var e,g;(g=_.Ss().resolve(_.NN(_.hE)))==null||g.enqueue({label:_.mp((e=this.data)==null?void 0:e.messageTitle),elementToFocus:this.hostElement})};
_.v.onThumbnailLoaded=function(){_.oC(this.hostElement,"yt-refit")};
_.v.onDismissTap=function(){_.Z5(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.v.computeAlternateIcon=function(e){return e?e==="BACKSTAGE_ARTWORK"?"backstage:artwork":e:null};
_.v.computeFontFamily=function(e){return e==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.v.computeBackgroundStyle=function(e,g){if(e=this.computeBackgroundImage(e,g))if(e=_.u3(e.thumbnails))return'background-image: url("'+e+'");'};
_.v.computeHasFullHeightImage=function(e){return!(!(e&&e.thumbnails&&e.thumbnails.length>0)||this.modern)};
_.v.isModernStyle=function(e){return e.style==="STYLE_MODERN"};
_.v.computeIcon=function(e,g){if(e&&e.icon)return g?e.iconDark:e.icon};
_.v.computeBackgroundImage=function(e,g){if(e&&e.backgroundImage)return g?e.backgroundImageDark:e.backgroundImage};
_.v.computeLogo=function(e,g){if(e&&e.logo)return g?e.logoDark:e.logo};
_.v.computeShouldShowModernIcon=function(e,g){return e&&!!g};
_.v.getLogoContainerClassName=function(e){return this.logoWithPadding(e)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.v.getLogoImageId=function(e){return this.logoWithPadding(e)?"mealbar-logo-with-padding":"mealbar-logo"};
_.v.logoWithPadding=function(e){var g,c,k;return(e=(g=this.computeLogo(e,this.isDarkTheme))==null?void 0:(c=g.thumbnails)==null?void 0:(k=c[0])==null?void 0:k.height)&&e%31===0?!0:!1};
gI.prototype.onThumbnailLoaded=gI.prototype.onThumbnailLoaded;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.t([_.u({}),_.B("design:type",Object)],gI.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.B("design:type",Boolean)],gI.prototype,"modern",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],gI.prototype,"isDarkTheme",void 0);
_.t([_.u({computed:"computeIcon(data, isDarkTheme)"}),_.B("design:type",Object)],gI.prototype,"icon",void 0);_.t([_.u({computed:"computeLogo(data, isDarkTheme)"}),_.B("design:type",Object)],gI.prototype,"logo",void 0);_.t([_.u({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.B("design:type",Object)],gI.prototype,"backgroundStyle",void 0);_.t([_.u({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.B("design:type",Object)],gI.prototype,"alternateIcon",void 0);
_.t([_.u({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.B("design:type",Boolean)],gI.prototype,"hasFullHeightImage",void 0);_.t([_.u({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.B("design:type",Boolean)],gI.prototype,"useYoutubeSans",void 0);_.t([_.u({computed:"computeShouldShowModernIcon(modern, icon)"}),_.B("design:type",Boolean)],gI.prototype,"shouldShowModernIcon",void 0);
_.t([_.Ks("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gI.prototype,"onThumbnailLoaded",null);_.t([_.Wo({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],gI);
_.U(gI,"yt-mealbar-promo-renderer",function(){if(upB===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;FaA===void 0&&(FaA=document.createElement("template"));var k=FaA;c.call(g,k.content.cloneNode(!0),e.content.firstChild);upB=e}e=upB;return e},{mode:2});var dba;var zAB;var cB=function(){return _.z.apply(this,arguments)||this};
_.Y(cB,_.z);_.v=cB.prototype;_.v.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.v.computeHasButtons_=function(e){return!(!e.dismissButton&&!e.acceptButton)};
_.v.computeStyle_=function(e){return e||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.v.observeImpressionEndpoints_=function(){var e=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(g){g.clickTrackingParams&&delete g.clickTrackingParams;_.tr(e.hostElement,[g])})};
_.v.onTap_=function(){_.Z5(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
cB.prototype.observeImpressionEndpoints_=cB.prototype.observeImpressionEndpoints_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],cB.prototype,"ytEventForwardingBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],cB.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],cB.prototype,"positionType",void 0);_.t([_.u({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.B("design:type",Boolean)],cB.prototype,"hasButtons_",void 0);_.t([_.u({value:function(){return this.onTap_.bind(this)}}),
_.B("design:type",Function)],cB.prototype,"boundOnTap_",void 0);_.t([_.u({value:{style:"mono-inverse"}}),_.B("design:type",Object)],cB.prototype,"buttonOverride",void 0);_.t([_.OY("data.promoConfig.impressionEndpoints"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cB.prototype,"observeImpressionEndpoints_",null);_.t([_.Wo({is:"yt-tooltip-renderer",disableElementRegistration:!0})],cB);
_.U(cB,"yt-tooltip-renderer",function(){if(zAB===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;dba===void 0&&(dba=document.createElement("template"));var k=dba;c.call(g,k.content.cloneNode(!0),e.content.firstChild);zAB=e}e=zAB;return e},{mode:2});var Hma;var Q3B;var Uba;var oBr;var k6=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-open-popup-action":"onOpen"};return e};
_.Y(k6,_.z);_.v=k6.prototype;_.v.attached=function(){this.onOpen()};
_.v.updateTimeSecs=function(e){this.currentTimeSecs=e};
_.v.computeTimeString=function(e){e=e.toString();var g=Math.floor(Number(e)/3600),c=Math.floor(Number(e)%3600%60);return(g>0?g+":":"")+_.Kq(Math.floor(Number(e)%3600/60),g>0?2:1)+":"+_.Kq(c,2)};
_.v.computeTimeStringA11y=function(e){return _.pIp({seconds:e})};
_.v.getTimeParam=function(){return X9z(this.timeString)};
_.v.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var e={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},g;_.KP(_.gL(),(g=this.data)==null?void 0:g.trackingParams,e,7)};
_.v.onChangeStartAtTimestamp=function(){for(var e=this.startAtTimestamp.value.split(":"),g=0,c=1,k=e.length-1;k>=0;k--)g+=Number(e[k])*c,c*=60;this.updateTimeSecs(g);this.setTimestamp()};
_.v.onOpen=function(){var e=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var g=_.FE();g?g.getPlayerPromise().then(function(c){c=c.getCurrentTime();e.updateTimeSecs(c)}):qoX()&&this.updateTimeSecs(qoX())};
_.v.setTimestamp=function(){var e=Math.floor(this.currentTimeSecs);_.Z5(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!e,timestamp:e||""}])};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],k6.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],k6.prototype,"data",void 0);_.t([_.u({value:!1,notify:!0}),_.B("design:type",Boolean)],k6.prototype,"isStartAtChecked",void 0);_.t([_.u(),_.B("design:type",Number)],k6.prototype,"currentTimeSecs",void 0);
_.t([_.u({computed:"computeTimeString(currentTimeSecs)"}),_.B("design:type",String)],k6.prototype,"timeString",void 0);_.t([_.u({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.B("design:type",String)],k6.prototype,"timeStringA11y",void 0);_.t([_.Cs("#start-at-timestamp"),_.B("design:type",Object)],k6.prototype,"startAtTimestamp",void 0);_.t([_.Wo({is:"yt-start-at-renderer",disableElementRegistration:!0})],k6);
_.U(k6,"yt-start-at-renderer",function(){if(oBr===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;Uba===void 0&&(Uba=document.createElement("template"));var k=Uba;c.call(g,k.content.cloneNode(!0),e.content.firstChild);oBr=e}e=oBr;return e},{mode:2});var Zmp={},Vad=(Zmp.WEB_REMIX="music.youtube.com",Zmp),IN=function(){var e=_.z.apply(this,arguments)||this;e.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return e};
_.Y(IN,_.z);_.v=IN.prototype;_.v.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.created=function(){this.embedHost_=Vad[_.uo("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.v.ready=function(){_.o1(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.v.computeEmbedCode_=function(e,g,c,k,I){if(!e)return"";var J=e.videoId,q=e.fullListId,L=[];e.attributionId&&L.push("si="+e.attributionId);k||L.push("controls=0");c&&Number(g)>0&&L.push("start="+g);q&&(J="videoseries",L.push("list="+q));c="https://"+(I?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+J;e.clipId&&(L.push("clip="+e.clipId),L.push("clipt="+e.clipTiming));g=L.length>0?c+"?"+L.join("&amp;"):c;e.encryptedEmbedConfig&&L.push("embed_config="+JSON.stringify({enc:e.encryptedEmbedConfig}));
L=L.length>0?c+"?"+L.join("&amp;"):c;_.G("web_sharing_embed_preview_killswitch")?_.o1(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(L,e.previewWidth||854,e.previewHeight||480):(_.Dg(this.videoPreviewContainer),_.o1(this.videoPreviewContainer).appendChild(this.buildIframeElement(L)));return this.getEmbedCode_(g,e.width||560,e.height||315)};
_.v.buildIframeElement=function(e){var g=document.createElement("iframe"),c,k;g.width=""+((k=(c=this.data)==null?void 0:c.previewWidth)!=null?k:854);var I,J;g.height=""+((J=(I=this.data)==null?void 0:I.previewHeight)!=null?J:480);_.wy(g,2,e);g.title="YouTube video player";g.frameBorder="0";g.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";g.referrerPolicy="strict-origin-when-cross-origin";g.allowFullscreen=!0;return g};
_.v.computeIsSquareAspectRatio_=function(e){return e.previewHeight&&e.previewWidth?e.previewHeight==e.previewWidth:!1};
_.v.computeShowEmbedOptions_=function(e){return!!e.enablePrivacyModeOptionLabel||!!e.showPlayerControlsOptionLabel};
_.v.getEmbedCode_=function(e,g,c){return'<iframe width="'+g+'" height="'+c+'" src="'+e+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.v.handleSignalActionCopyShareEmbedUrl_=function(){_.o1(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.v.handleSetTimestamp_=function(e){this.startAtTimeStamp_=(this.startAtChecked_=e.isSet)?e.timestamp:0};
_.v.closePanel_=function(){_.Z5(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.v.onEmbedCode_=function(){_.o1(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.v.onYtPopupClosed_=function(){_.Dg(_.o1(this.hostElement).querySelector("#video-preview"))};
_.v.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.x(this.data.actionButtons[0],_.G_)&&this.ytRendererBehavior.logExplicitClick(_.x(this.data.actionButtons[0],_.G_))};
IN.prototype.onYtPopupClosed_=IN.prototype.onYtPopupClosed_;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],IN.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],IN.prototype,"data",void 0);
_.t([_.u({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.B("design:type",String)],IN.prototype,"embedCode_",void 0);_.t([_.u({value:!0}),_.B("design:type",Boolean)],IN.prototype,"isPlayerControlsOptionChecked_",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],IN.prototype,"isPrivacyModeOptionChecked_",void 0);_.t([_.u({value:!1,notify:!0}),_.B("design:type",Boolean)],IN.prototype,"startAtChecked_",void 0);
_.t([_.u({value:0}),_.B("design:type",Number)],IN.prototype,"startAtTimeStamp_",void 0);_.t([_.u({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],IN.prototype,"isSquareAspectRatio_",void 0);_.t([_.Cs("#video-preview"),_.B("design:type",HTMLElement)],IN.prototype,"videoPreviewContainer",void 0);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IN.prototype,"onYtPopupClosed_",null);
_.t([_.Wo({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],IN);
_.U(IN,"yt-sharing-embed-renderer",function(){if(Q3B===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Hma===void 0&&(Hma=document.createElement("template"));var k=Hma;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Q3B=e}e=Q3B;return e},{mode:2});var ta3;var Brp=function(){return _.z.apply(this,arguments)||this};
_.Y(Brp,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Brp.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Brp.prototype,"data",void 0);_.t([_.Wo({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],Brp);
_.U(Brp,"yt-sender-id-section-renderer",function(){if(ta3===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);ta3=e}e=
ta3;return e},{mode:1});var Nrp;var Sxb;var JN=function(){return _.z.apply(this,arguments)||this};
_.Y(JN,_.z);JN.prototype.closePopup=function(){_.Z5(this.hostElement,"yt-close-popup-action")};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],JN.prototype,"data",void 0);_.t([_.Wo({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],JN);
_.U(JN,"yt-community-post-section-renderer",function(){if(Sxb===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Nrp===void 0&&(Nrp=document.createElement("template"));var k=Nrp;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Sxb=e}e=Sxb;return e},{mode:2});var yjP;var KaB;var OmB;var Max;var CdP;var eLp;var gWm=function(){return _.z.apply(this,arguments)||this};
_.Y(gWm,_.z);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],gWm.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],gWm.prototype,"data",void 0);_.t([_.Wo({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],gWm);
_.U(gWm,"yt-share-start-time-with-context-renderer",function(){if(eLp===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;CdP===void 0&&(CdP=document.createElement("template"));var k=CdP;c.call(g,k.content.cloneNode(!0),e.content.firstChild);eLp=e}e=eLp;return e},{mode:2});var vB=function(){return _.z.apply(this,arguments)||this};
_.Y(vB,_.z);vB.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],vB.prototype,"data",void 0);_.t([_.Wo({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],vB);
_.U(vB,"yt-share-panel-title-v15-renderer",function(){if(Max===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;OmB===void 0&&(OmB=document.createElement("template"));var k=OmB;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Max=e}e=Max;return e},{mode:2});var wI=function(){return _.z.apply(this,arguments)||this};
_.Y(wI,_.z);wI.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],wI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],wI.prototype,"data",void 0);_.t([_.Wo({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],wI);
_.U(wI,"yt-share-panel-header-renderer",function(){if(KaB===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;yjP===void 0&&(yjP=document.createElement("template"));var k=yjP;c.call(g,k.content.cloneNode(!0),e.content.firstChild);KaB=e}e=KaB;return e},{mode:2});var c0T;var ked;var IEA={};IEA.YtBindingExpressionsBehavior={identity:_.uW,msg:function(e,g){g=g===void 0?{}:g;return _.C_(e,g,e)},
msgPlural:function(e,g){return _.e4(e,g)},
getMusicIconFromType:function(e){return _.NY(e)}};var J03;var vWB;var wAb;var qha=document.head,Lzb=qha.appendChild,r0B;
if(wAb===void 0){var aEx=document.createElement("template");_.P(aEx,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath></defs></svg><iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');wAb=aEx}r0B=wAb;
Lzb.call(qha,r0B.content);var qS=function(){var e=_.z.apply(this,arguments)||this;e.screenLayer=7;return e};
_.Y(qS,_.z);qS.prototype.getScreenLayer=function(){return this.screenLayer};
qS.prototype.onTap=function(e){e&&e.detail&&(e.detail.x||e.detail.y)&&_.o1(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.tr(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(e=this.getScreenLayer(),_.oC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:e}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Bd.Object.defineProperties(qS.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()}}});
qS.prototype.onTap=qS.prototype.onTap;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],qS.prototype,"ytComponentBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],qS.prototype,"data",void 0);_.t([_.p("data.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],qS.prototype,"title",null);
_.t([_.p("data.serviceName"),_.B("design:type",String),_.B("design:paramtypes",[])],qS.prototype,"icon",null);_.t([_.Ks("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qS.prototype,"onTap",null);_.t([_.Wo({is:"yt-share-target-renderer",disableElementRegistration:!0})],qS);
_.U(qS,"yt-share-target-renderer",function(){if(vWB===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;J03===void 0&&(J03=document.createElement("template"));var k=J03;c.call(g,k.content.cloneNode(!0),e.content.firstChild);vWB=e}e=vWB;return e},{mode:2});var nWB;var RLm;var LF=function(){var e=_.z.apply(this,arguments)||this;e.SHARE_TARGET_WIDTH=70;e.SHARE_TARGET_MARGIN_RIGHT=8;e.PAGE_SCROLL_SPEED=9;e.actionMap={"yt-share-panel-reset-action":"onReset_"};return e};
_.Y(LF,_.z);_.v=LF.prototype;_.v.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.v.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.o1(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.o1(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.v.onReset_=function(){if(_.o1(this.hostElement).querySelector("#list")){var e=_.o1(this.hostElement).querySelector("#list");var g=_.o1(this.hostElement).querySelector("#list");var c=g.offsetLeft,k=g.offsetParent;k||_.aLB(g)!="fixed"||(k=_.be(g).documentElement);if(k){if(_.er&&!_.Ne(58)){var I=_.Gsu(k);c+=I.left}else Number(_.zlZ)>=8&&!(Number(_.zlZ)>=9)&&(I=_.Gsu(k),c-=I.left);g=_.hEB(k)?k.clientWidth-(c+g.offsetWidth):c}else g=c;jY0(e,g);this.updateScrollButtons_()}};
_.v.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.v.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.v.onScrollWheel_=function(e){e.stopPropagation();e.preventDefault();var g=fHD(_.o1(this.hostElement).querySelector("#list"));e=Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY;jY0(_.o1(this.hostElement).querySelector("#list"),g+e);this.updateScrollButtons_()};
_.v.smoothScrollByOnePage_=function(e){var g=_.o1(this.hostElement).querySelector("#list"),c=(Math.floor(g.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,k=fHD(g),I=c*(e?1:-1),J=this.PAGE_SCROLL_SPEED,q=this.updateScrollButtons_.bind(this),L=0,n;(function W(){L+=J;n=L/c*2;jY0(g,k+I*(n<1?n*n:-n*n+4*n-2));L<c?window.requestAnimationFrame(W):q()})()};
_.v.updateScrollButtons_=function(){var e=fHD(_.o1(this.hostElement).querySelector("#list")),g=_.o1(this.hostElement).querySelector("#list").scrollWidth-_.o1(this.hostElement).querySelector("#list").clientWidth;_.o1(this.hostElement).querySelector("#scroll-button-back").hidden=e<=0;_.o1(this.hostElement).querySelector("#scroll-button-forward").hidden=e>=g};
LF.prototype.onScrollWheel_=LF.prototype.onScrollWheel_;LF.prototype.onDataChanged_=LF.prototype.onDataChanged_;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],LF.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(IEA.YtBindingExpressionsBehavior),_.B("design:type",Object)],LF.prototype,"ytBindingExpressionsBehavior",void 0);
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],LF.prototype,"data",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LF.prototype,"onDataChanged_",null);_.t([_.Ks("wheel"),_.B("design:type",Function),_.B("design:paramtypes",[WheelEvent]),_.B("design:returntype")],LF.prototype,"onScrollWheel_",null);
_.t([_.Wo({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],LF);
_.U(LF,"yt-third-party-share-target-section-renderer",function(){if(RLm===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;nWB===void 0&&(nWB=document.createElement("template"));var k=nWB;c.call(g,k.content.cloneNode(!0),e.content.firstChild);RLm=e}e=RLm;return e},{mode:2});var rI=function(){return _.z.apply(this,arguments)||this};
_.Y(rI,_.z);rI.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],rI.prototype,"data",void 0);_.t([_.Wo({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],rI);
_.U(rI,"yt-third-party-network-section-renderer",function(){if(ked===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;c0T===void 0&&(c0T=document.createElement("template"));var k=c0T;c.call(g,k.content.cloneNode(!0),e.content.firstChild);ked=e}e=ked;return e},{mode:2});var EWJ;_.sL(_.H(function(e){return _.a("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.a("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.a(_.eS,{data:function(){return e.data().firstPartyItems}},{listItemViewModel:_.j5})))},"nl"),"first-party-network-section-view-model",{props:{data:_.jx}});var WzT=_.Ti(["data:image/svg+xml;charset=UTF-8;base64,",""]),aN=function(){var e=_.z.apply(this,arguments)||this;e.screenLayer=7;e.qrCodeEnabled=_.G("web_enable_sharing_qr_code");e.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return e};
_.Y(aN,_.z);_.v=aN.prototype;_.v.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.v.attached=function(){this.JSC$23042_scroller&&(this.JSC$23042_scroller.dialogElement=this.hostElement.parentNode,this.JSC$23042_scroller.attached&&typeof this.JSC$23042_scroller.attached==="function"&&this.JSC$23042_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.v.onDataChanged=function(){var e=this,g;(g=this.data)!=null&&g.contents&&(this.hostElement.setAttribute("links-only","true"),_.t3(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.Va(this,function(){_.oC(e.hostElement,"yt-refit");e.focusSharePanelHeader()}))};
_.v.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.v.handleSetTimestamp=function(e){var g=this.shortUrl();e.isSet&&(g=_.Cr(g,"t",e.timestamp));this.maybeRenderQrCode(g)};
_.v.shortUrl=function(){var e,g=(e=this.data)==null?void 0:e.contents;if(g)for(e=0;e<g.length;e++){var c=void 0,k=void 0;if((c=g[e])==null?0:(k=c.thirdPartyNetworkSection)==null?0:k.copyLinkContainer){var I=k=c=void 0;return(I=_.x((c=g[e])==null?void 0:(k=c.thirdPartyNetworkSection)==null?void 0:k.copyLinkContainer,KD0))==null?void 0:I.shortUrl}}};
_.v.maybeRenderQrCode=function(e){var g=this,c,k,I,J,q,L,n,R,W;return _.r(function(b){if(b.nextAddress==1){c=_.o1(g.hostElement).querySelector("#qr-code");if(!g.qrCodeEnabled||!e)return c&&(c.style.display="none"),b.return();k=_.vce(_.Ss().resolve(_.SY),{iconName:"youtube",iconStyle:"youtube_fill"});I=document.createElement("div");return typeof k==="function"?(k(I),b.jumpTo(2)):b.yield(k,3)}b.nextAddress!=2&&(J=b.yieldResult,J(I));n=(q=I)==null?void 0:(L=q.firstChild)==null?void 0:L.firstChild;R=
document.createElement("img");W=_.fEe(WzT,btoa(n.outerHTML));R.onload=function(){var h={canvas:c,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:R},X=new rs7;bOx(X,e);hpO(X,!1,XoD(X));var D=X.modules,f=Object.assign({},Mql,h);D=structuredClone(D);h=D.length;var l,A=(l=f.canvas)!=null?l:document.createElement("canvas");l=f.cellSize;X=f.logo;var d,S=(d=f.logoSize)!=null?d:Math.floor(h/4);h%2!==S%2&&S++;var V=f.logoPadding,Q=f.backgroundColor;d=h*l;var y=f.width,
O=0;y&&(O=f.padding,O=Math.ceil(O*d/(y-O*2)),A.style.width=y+"px",A.style.height=y+"px");A.width!==d+O*2&&(A.width=d+O*2);A.height!==d+O*2&&(A.height=d+O*2);d=A.getContext("2d");f.autoClear&&d.clearRect(0,0,A.width,A.height);d.fillStyle=Q;d.beginPath();d.roundRect(0,0,A.width,A.height,f.borderRadius);d.fill();d.save();d.translate(O,O);if(X)for(A=Math.floor(h-S)/2-V,V=Math.floor(h+S)/2+V,Q=A;Q<V;Q++)for(y=A;y<V;y++)D[Q][y]=!1;for(A=0;A<h;A++)for(V=0;V<h;V++)(A<7&&V<7||A<7&&V>=h-7||A>=h-7&&V<7)&&(D[A][V]=
!1);var Jq;A=(Jq=f.markerColor)!=null?Jq:f.color;xYD(d,0,0,l,A);xYD(d,l*(h-7),0,l,A);xYD(d,0,l*(h-7),l,A);switch(f.cellStyle){case 0:Jq=D;D=Jq.length;A=f.cellSize;d.beginPath();for(V=0;V<D;V++)for(Q=0;Q<D;Q++)Jq[V][Q]&&d.rect(V*A,Q*A,A,A);d.fillStyle=f.color;d.fill();break;case 1:Jq=D;D=Jq.length;A=f.cellSize;V=A*f.relativeCircleSize;d.fillStyle=f.color;d.beginPath();for(f=0;f<D;f++)for(Q=0;Q<D;Q++)Jq[f][Q]&&(d.beginPath(),d.ellipse((f+.5)*A,(Q+.5)*A,V/2,V/2,0,0,2*Math.PI),d.fill());d.fill();break;
case 2:Jq=D;D=Jq.length;A=f.cellSize;d.fillStyle=f.color;f=[[1,1],[-1,1],[-1,-1],[1,-1]];d.beginPath();for(V=0;V<D;V++)for(Q=0;Q<D;Q++)if(Jq[V][Q])d.roundRect(V*A,Q*A,A,A,A/2),V+1<D&&Jq[V+1][Q]&&d.rect(V*A+A/2,Q*A,A,A),Q+1<D&&Jq[V][Q+1]&&d.rect(V*A,Q*A+A/2,A,A);else{y=V*A+A/2;O=Q*A+A/2;for(var LC=0;LC<4;LC++){var bW=_.w(f[LC]),RA=bW.next().value;bW=bW.next().value;V+RA>=0&&V+RA<D&&Q+bW>=0&&Q+bW<D&&Jq[V+RA][Q]&&Jq[V][Q+bW]&&Jq[V+RA][Q+bW]&&(RA=LC*Math.PI/2,bW=A/2,d.moveTo(y+bW*Math.cos(RA),O+bW*Math.sin(RA)),
d.arc(y,O,A/2,RA,RA+Math.PI/2,!1),d.lineTo(y+bW*(Math.cos(RA)-Math.sin(RA)),O+bW*(Math.cos(RA)+Math.sin(RA))),d.lineTo(y+bW*Math.cos(RA),O+bW*Math.sin(RA)))}}d.fill()}X&&d.drawImage(X,(h-S)*l/2,(h-S)*l/2,S*l,S*l);d.restore();c.style.removeProperty("display")};
R.src=_.BJ(W);_.Uh(b)})};
_.v.hasCommunityPostRenderer=function(){var e,g,c,k;return!!((e=this.data)==null?0:(g=e.header)==null?0:(c=g.sharePanelHeaderRenderer)==null?0:(k=c.communityPost)==null?0:k.communityPostSectionRenderer)};
_.v.onTapClose=function(){_.Z5(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.v.getScreenLayer=function(){return this.screenLayer};
aN.prototype.onDataChanged=aN.prototype.onDataChanged;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],aN.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],aN.prototype,"data",void 0);
_.t([_.u({value:_.C_("SBOX_INAPPROPRIATE_CANCEL")}),_.B("design:type",String)],aN.prototype,"closeButtonAriaLabel",void 0);_.t([_.Cs("yt-share-panel-header-renderer"),_.B("design:type",HTMLElement)],aN.prototype,"header",void 0);_.t([_.u(),_.B("design:type",Object)],aN.prototype,"qrCodeEnabled",void 0);_.t([_.Cs("#scroller"),_.B("design:type",Object)],aN.prototype,"JSC$23042_scroller",void 0);
_.t([_.k_("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aN.prototype,"onDataChanged",null);_.t([_.Wo({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],aN);
_.U(aN,"yt-unified-share-panel-renderer",function(){if(EWJ===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);EWJ=e}e=EWJ;return e},{mode:1});var bYr={};
bYr.YtUnlimitedFamilyInterstitialBehavior=[_.tF.YtOpenPopupBehavior,_.Nr.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(e){e=_.qu4(_.A3(e),"yt-button-renderer");return e?e.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(e){this.dialogHistory_.push(e)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var e=this.popFromHistory();if(e){var g={openPopupAction:{popupType:"DIALOG",popup:{}}};g.openPopupAction.popup[e.renderer]=e.data;this.showingPreviousDialog_=!0;this.openPopup(g)}},
handleOpenPopupAction_:function(e){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var g=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(k){return!!e.openPopupAction.popup[k]}),c=this.getElementName_();
g&&this.data&&(this.pushToHistory({renderer:c,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(e){if(e=_.x(e,yxQ))this.loading=!0,_.Z5(this.hostElement,"yt-open-create-family-dialog",[e,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var e=this.hostElement.nodeName.split("-").slice(1).map(function(g){return""+g[0].toUpperCase()+g.slice(1).toLowerCase()}).join("");
return e[0].toLowerCase()+e.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var hLJ;var XAA;var nF=function(){return _.z.apply(this,arguments)||this};
_.Y(nF,_.z);_.v=nF.prototype;_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Z5(this.hostElement,"yt-register-create-family-dialog");_.o1(this.hostElement).querySelector("#thumbnail").onShow()};
_.v.fireOnCloseCommand_=function(){var e;((e=this.data)==null?0:e.onCloseCommand)&&_.Bm(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.v.onYtServiceRequestSent_=function(e,g){g&&g.endpoint&&_.x(g.endpoint,_.K_)||(this.loading=!0)};
_.v.onYtServiceRequestCompleted_=function(){var e=this.hostElement.parentElement;e.close&&e.close();this.loading=!1};
_.v.openPopupHandler_=function(e){if(e.detail==this){var g;((g=this.data)==null?0:g.onOpenCommands)&&_.Bm(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.v.closePopupHandler_=function(e,g){this.fireOnCloseCommand_();if(g&&g.canceled===!0||g&&g.canceled===!1&&g.confirmed===!1){var c;((c=this.data)==null?0:c.onDismissCommands)&&_.Bm(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.v.dataChanged_=function(){this.loading=!1};
nF.prototype.dataChanged_=nF.prototype.dataChanged_;nF.prototype.closePopupHandler_=nF.prototype.closePopupHandler_;nF.prototype.openPopupHandler_=nF.prototype.openPopupHandler_;nF.prototype.onYtServiceRequestCompleted_=nF.prototype.onYtServiceRequestCompleted_;nF.prototype.onYtServiceRequestSent_=nF.prototype.onYtServiceRequestSent_;_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],nF.prototype,"ytEventForwardingBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],nF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(bYr.YtUnlimitedFamilyInterstitialBehavior),_.B("design:type",Object)],nF.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],nF.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],nF.prototype,"loading",void 0);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],nF.prototype,"onYtServiceRequestSent_",null);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],nF.prototype,"onYtServiceRequestCompleted_",null);
_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],nF.prototype,"openPopupHandler_",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],nF.prototype,"closePopupHandler_",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nF.prototype,"dataChanged_",null);
_.t([_.Wo({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],nF);
_.U(nF,"yt-unlimited-family-message-interstitial-renderer",function(){if(XAA===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;hLJ===void 0&&(hLJ=document.createElement("template"));var k=hLJ;c.call(g,k.content.cloneNode(!0),e.content.firstChild);XAA=e}e=XAA;return e},{mode:2});var GeB;var x5r;var RN=function(){return _.z.apply(this,arguments)||this};
_.Y(RN,_.z);RN.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"}}}};
RN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.o1(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(e){e.onShow()});
_.o1(this.hostElement).querySelector("#main-thumbnail").onShow()};
RN.prototype.onButtonTap_=function(e){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(e)};
RN.prototype.computeMainThumbnailWidth_=function(e){return e&&e.length!==0?72:96};
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.t([_.m(bYr.YtUnlimitedFamilyInterstitialBehavior),_.B("design:type",Object)],RN.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],RN.prototype,"data",void 0);
_.t([_.u({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.B("design:type",Number)],RN.prototype,"mainThumbnailWidth_",void 0);_.t([_.u({value:function(){return this.onButtonTap_.bind(this)}}),
_.B("design:type",Function)],RN.prototype,"boundButtonTap_",void 0);_.t([_.Wo({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],RN);
_.U(RN,"yt-unlimited-family-profile-interstitial-renderer",function(){if(x5r===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;GeB===void 0&&(GeB=document.createElement("template"));var k=GeB;c.call(g,k.content.cloneNode(!0),e.content.firstChild);x5r=e}e=x5r;return e},{mode:2});var D5a;var $5r;var E6=function(){var e=_.z.apply(this,arguments)||this;e.sliderAriaValueText_=null;e.selectedIndex_=0;e.messages={PAUSE_SLIDER:_.C_("PAUSE_SLIDER",void 0,"Pause Duration")};return e};
_.Y(E6,_.z);_.v=E6.prototype;_.v.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.v.onPopupOpened_=function(e){e.detail==this&&_.G("enable_premium_voluntary_pause")&&(_.Z5(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.setDialogData=function(e){this.data=e;this.resetSlider_()};
_.v.dataChanged_=function(){this.data&&this.resetSlider_()};
_.v.onSubmitTap_=function(){if(this.data.confirmCommand){var e=this.data.confirmCommand;_.x(e,_.uhM)&&_.tr(this.hostElement,[e,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.v.onExitButtonTap_=function(){_.Z5(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.v.closePopupHandler_=function(e,g){(g&&g.canceled===!0||g.canceled===!1&&g.confirmed===!1)&&this.handleOnDismissCommands_()};
_.v.onSliderChange_=function(){this.selectedIndex_=_.o1(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.v.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.v.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.v.resetSlider_=function(){if(this.data){var e=this.data.defaultEndOptionIndex||0,g=_.o1(this.hostElement).querySelector("#id-pause-slider");if(g.immediateValue<e)for(;g.immediateValue!=e;)g.increment();else if(e<g.immediateValue)for(;g.immediateValue!=e;)g.decrement();this.selectedIndex_=e;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.v.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Bm(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.v.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Bm(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.v.onYtServiceRequestSent=function(){this.loading=!0};
_.v.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
E6.prototype.onYtServiceRequestCompleted=E6.prototype.onYtServiceRequestCompleted;E6.prototype.onYtServiceRequestSent=E6.prototype.onYtServiceRequestSent;E6.prototype.closePopupHandler_=E6.prototype.closePopupHandler_;E6.prototype.dataChanged_=E6.prototype.dataChanged_;E6.prototype.onPopupOpened_=E6.prototype.onPopupOpened_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],E6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],E6.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],E6.prototype,"loading",void 0);_.t([_.u(),_.B("design:type",Number)],E6.prototype,"selectIndexMax_",void 0);_.t([_.u(),_.B("design:type",Object)],E6.prototype,"selectedData_",void 0);
_.t([_.u(),_.B("design:type",Object)],E6.prototype,"sliderAriaValueText_",void 0);_.t([_.u({value:function(){return this.onSubmitTap_.bind(this)}}),
_.B("design:type",Function)],E6.prototype,"onButtonTap_",void 0);_.t([_.u({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.B("design:type",Function)],E6.prototype,"onSecondaryTap_",void 0);_.t([_.u(),_.B("design:type",Object)],E6.prototype,"messages",void 0);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],E6.prototype,"onPopupOpened_",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],E6.prototype,"dataChanged_",null);
_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],E6.prototype,"closePopupHandler_",null);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],E6.prototype,"onYtServiceRequestSent",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],E6.prototype,"onYtServiceRequestCompleted",null);_.t([_.Wo({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],E6);
_.U(E6,"yt-unplugged-pause-membership-dialog-renderer",function(){if($5r===void 0){var e=document.createElement("template");_.P(e,'\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>');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;D5a===void 0&&(D5a=document.createElement("template"));var k=D5a;c.call(g,k.content.cloneNode(!0),e.content.firstChild);$5r=e}e=$5r;return e},{mode:2});var Yhb;var fEa;var WB=function(){return _.z.apply(this,arguments)||this};
_.Y(WB,_.z);WB.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Lx("vcBalanceRenderer")}}};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],WB.prototype,"data",void 0);_.t([_.Wo({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],WB);
_.U(WB,"yt-vc-offer-layout-header-renderer",function(){if(fEa===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;Yhb===void 0&&(Yhb=document.createElement("template"));var k=Yhb;c.call(g,k.content.cloneNode(!0),e.content.firstChild);fEa=e}e=fEa;return e},{mode:2});var jP3;var iYJ;var Pja;var m5P;var bi=function(){return _.z.apply(this,arguments)||this};
_.Y(bi,_.z);bi.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Bd.Object.defineProperties(bi.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],bi.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.nXx.YtTappableItemBehavior),_.B("design:type",Object)],bi.prototype,"ytTappableItemBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],bi.prototype,"data",void 0);
_.t([_.u({reflectToAttribute:!0}),_.p("data.accessibilityText"),_.B("design:type",String),_.B("design:paramtypes",[])],bi.prototype,"ariaLabel",null);_.t([_.u({reflectToAttribute:!0}),_.p("data.style"),_.B("design:type",String),_.B("design:paramtypes",[])],bi.prototype,"vcOfferStyle",null);_.t([_.p("data.style","data.titleText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],bi.prototype,"showTitleText",null);_.t([_.Wo({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],bi);
_.U(bi,"yt-vc-offer-renderer",function(){if(m5P===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;Pja===void 0&&(Pja=document.createElement("template"));var k=Pja;c.call(g,k.content.cloneNode(!0),e.content.firstChild);m5P=e}e=m5P;return e},{mode:2});var hN=function(){return _.z.apply(this,arguments)||this};
_.Y(hN,_.z);hN.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],hN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],hN.prototype,"data",void 0);_.t([_.Wo({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],hN);
_.U(hN,"yt-vc-offer-layout-renderer",function(){if(iYJ===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;jP3===void 0&&(jP3=document.createElement("template"));var k=jP3;c.call(g,k.content.cloneNode(!0),e.content.firstChild);iYJ=e}e=iYJ;return e},{mode:2});var pAm;var Tyx;var lET;var A0P;var X0=function(){return _.z.apply(this,arguments)||this};
_.Y(X0,_.z);X0.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([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],X0.prototype,"data",void 0);_.t([_.Wo({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],X0);
_.U(X0,"yt-ypc-offers-modal-top-bar-renderer",function(){if(A0P===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;lET===void 0&&(lET=document.createElement("template"));var k=lET;c.call(g,k.content.cloneNode(!0),e.content.firstChild);A0P=e}e=A0P;return e},{mode:2});var Gw=function(){return _.z.apply(this,arguments)||this};
_.Y(Gw,_.z);Gw.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"}}}}};
Gw.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Gw.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var e=this.scrollable;e.attached&&typeof e.attached==="function"&&e.attached()};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Gw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.Cs("#scrollable"),_.B("design:type",Object)],Gw.prototype,"scrollable",void 0);_.t([_.u(),_.B("design:type",Object)],Gw.prototype,"data",void 0);_.t([_.Wo({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Gw);
_.U(Gw,"yt-ypc-offers-modal-renderer",function(){if(Tyx===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;pAm===void 0&&(pAm=document.createElement("template"));var k=pAm;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Tyx=e}e=Tyx;return e},{mode:2});var sPB;var Fzr;var x6=function(){return _.z.apply(this,arguments)||this};
_.Y(x6,_.z);_.v=x6.prototype;_.v.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.o1(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.v.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Z5(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.v.onYtPopupOpened_=function(e,g){(g==null?void 0:g.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Bm(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.v.onYtPopupClosed_=function(e,g){this.continueButtonTapped||g&&(g.canceled===!0||g.canceled===!1&&g.confirmed===!1)&&this.data.onDismissCommands&&_.Bm(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.v.onYtServiceRequestError_=function(e){this.set("showSpinner",!1);_.iD(this.hostElement,e.detail.error.message)};
_.v.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.G("enable_ypc_spinners")?_.Z5(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
x6.prototype.onYtServiceRequestError_=x6.prototype.onYtServiceRequestError_;x6.prototype.onYtPopupClosed_=x6.prototype.onYtPopupClosed_;x6.prototype.onYtPopupOpened_=x6.prototype.onYtPopupOpened_;x6.prototype.onYtServiceRequestCompleted_=x6.prototype.onYtServiceRequestCompleted_;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.u(),_.B("design:type",Object)],x6.prototype,"data",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],x6.prototype,"showSpinner",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],x6.prototype,"continueButtonTapped",void 0);_.t([_.u({value:function(){return this.onContinueTapped_.bind(this)}}),
_.B("design:type",Function)],x6.prototype,"bindOnContinueTapped_",void 0);_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],x6.prototype,"onYtServiceRequestCompleted_",null);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],x6.prototype,"onYtPopupOpened_",null);
_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],x6.prototype,"onYtPopupClosed_",null);_.t([_.Ks("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],x6.prototype,"onYtServiceRequestError_",null);_.t([_.Wo({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],x6);
_.U(x6,"yt-ypc-upgrade-dialog-renderer",function(){if(Fzr===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;sPB===void 0&&(sPB=document.createElement("template"));var k=sPB;c.call(g,k.content.cloneNode(!0),e.content.firstChild);Fzr=e}e=Fzr;return e},{mode:2});var u1r;var d5x;var Dn=function(){return _.z.apply(this,arguments)||this};
_.Y(Dn,_.z);Dn.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Dn.prototype.computeHasButtons_=function(e){return!(!e.dismissButton&&!e.confirmButton)};
Dn.prototype.computeStyle_=function(e){return e||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],Dn.prototype,"ytEventForwardingBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Dn.prototype,"data",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Dn.prototype,"positionType",void 0);
_.t([_.u({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.B("design:type",Boolean)],Dn.prototype,"hasButtons_",void 0);_.t([_.u({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Dn.prototype,"style_",void 0);_.t([_.Wo({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Dn);
_.U(Dn,"yt-bubble-hint-renderer",function(){if(d5x===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;u1r===void 0&&(u1r=document.createElement("template"));var k=u1r;c.call(g,k.content.cloneNode(!0),e.content.firstChild);d5x=e}e=d5x;return e},{mode:2});var zLJ;var HYd;var $6=function(){var e=_.NZ.apply(this,arguments)||this;e.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return e};
_.Y($6,_.NZ);_.v=$6.prototype;_.v.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.v.attached=function(){var e=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){e.$.thumbnail.onShow();e.$["header-image"].onShow()})};
_.v.handleCheckBoxUpdateAction_=function(e){this.canShowCheckboxEnabledConfirmButton=e};
_.v.computeUseOverlayForSpinner_=function(e,g){return!!e&&g};
_.v.computeShowSpinner_=function(e,g){return e||!!g};
_.v.fireOnCloseActions_=function(){var e,g=_.w(((e=this.data)==null?void 0:e.onClosedActions)||[]);for(e=g.next();!e.done;e=g.next())this.ytRendererBehavior.resolveCommand(e.value)};
_.v.fireOnOpenCommands_=function(e){var g,c=(g=this.data)==null?void 0:g.onOpenCommands;if(c)for(e.stopImmediatePropagation(),e=_.w(c),g=e.next();!g.done;g=e.next())this.ytRendererBehavior.resolveCommand(g.value)};
_.v.fireOnDismissCommands_=function(e){var g,c=(g=this.data)==null?void 0:g.onDismissCommands;if(c)for(e.stopImmediatePropagation(),e=_.w(c),g=e.next();!g.done;g=e.next())this.ytRendererBehavior.resolveCommand(g.value)};
_.v.openPopupHandler_=function(e){e.detail==this&&this.fireOnOpenCommands_(e)};
_.v.closePopupHandler_=function(e,g){_.V1(this,"yt-confirm-dialog-close-action",[g]);this.fireOnCloseActions_();(g&&g.canceled===!0||g&&g.canceled===!1&&g.confirmed===!1)&&this.fireOnDismissCommands_(e)};
_.v.onHeaderImageChanged_=function(){var e;((e=this.data)==null?0:e.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.v.computeHasHeaderImageWidth_=function(e){return e!=void 0};
_.v.computeHasLoadingMessage=function(e){return!!e};
_.v.onHeaderImageWidthChanged_=function(){var e,g=(e=this.data)==null?void 0:e.headerImageWidth;if(g){if(e=1.25*g*2+g,this.$.main.style.width=e+"px",g=this.$.scroller.firstElementChild)g.style.minWidth=e+"px"}else this.$.main.style.width="100%"};
_.v.onThumbnailChanged_=function(){var e;((e=this.data)==null?0:e.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.v.onYtNavigate_=function(e){e=_.A3(e);e instanceof Node&&_.Zu(this.$["confirm-button"]).contains(e)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.v.computePrimaryIsCancel_=function(e){return e};
_.v.computeIsCancelButtonHidden_=function(e){return e.skipCancelButton||!e.cancelButton};
_.v.computeIsCheckboxHidden_=function(e){return!e.checkbox};
_.v.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.v.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.v.onYtServiceRequestCompleted_=function(){var e;((e=this.data)==null?0:e.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Bd.Object.defineProperties($6,{template:{configurable:!0,enumerable:!0,get:function(){if(HYd===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;zLJ===void 0&&(zLJ=document.createElement("template"));var k=zLJ;c.call(g,k.content.cloneNode(!0),e.content.firstChild);HYd=e}e=HYd;return e}}});
$6.prototype.onYtServiceRequestCompleted_=$6.prototype.onYtServiceRequestCompleted_;$6.prototype.onYtServiceRequestSent_=$6.prototype.onYtServiceRequestSent_;$6.prototype.onThumbnailLoaded_=$6.prototype.onThumbnailLoaded_;$6.prototype.onYtNavigate_=$6.prototype.onYtNavigate_;$6.prototype.onThumbnailChanged_=$6.prototype.onThumbnailChanged_;$6.prototype.onHeaderImageWidthChanged_=$6.prototype.onHeaderImageWidthChanged_;$6.prototype.onHeaderImageChanged_=$6.prototype.onHeaderImageChanged_;
$6.prototype.closePopupHandler_=$6.prototype.closePopupHandler_;$6.prototype.openPopupHandler_=$6.prototype.openPopupHandler_;_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],$6.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);
_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],$6.prototype,"ytEventForwardingBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],$6.prototype,"data",void 0);_.t([_.u({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.B("design:type",Boolean)],$6.prototype,"primaryIsCancel",void 0);_.t([_.u({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.B("design:type",Boolean)],$6.prototype,"isCancelButtonHidden",void 0);
_.t([_.u({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.B("design:type",Boolean)],$6.prototype,"isCheckboxHidden",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],$6.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.t([_.u({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.B("design:type",Boolean)],$6.prototype,"useOverlayForSpinner_",void 0);
_.t([_.u({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.B("design:type",Boolean)],$6.prototype,"showSpinner_",void 0);_.t([_.u({value:!1}),_.B("design:type",Boolean)],$6.prototype,"isActionInProgress_",void 0);_.t([_.u({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.B("design:type",Boolean)],$6.prototype,"hasHeaderImageWidth_",void 0);
_.t([_.u({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.B("design:type",Boolean)],$6.prototype,"hasLoadingMessage",void 0);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],$6.prototype,"openPopupHandler_",null);_.t([_.Ks("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],$6.prototype,"closePopupHandler_",null);
_.t([_.OY("data.headerImage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$6.prototype,"onHeaderImageChanged_",null);_.t([_.OY("data.headerImageWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$6.prototype,"onHeaderImageWidthChanged_",null);_.t([_.OY("data.thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$6.prototype,"onThumbnailChanged_",null);
_.t([_.Ks("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$6.prototype,"onYtNavigate_",null);_.t([_.Ks("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$6.prototype,"onThumbnailLoaded_",null);_.t([_.Ks("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.xy]),_.B("design:returntype")],$6.prototype,"onYtServiceRequestSent_",null);
_.t([_.Ks("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.ms]),_.B("design:returntype")],$6.prototype,"onYtServiceRequestCompleted_",null);_.t([_.Wo({is:"yt-confirm-dialog-renderer",noInjection:!0})],$6);var QPa;var U5J;var Y6=function(){return _.z.apply(this,arguments)||this};
_.Y(Y6,_.z);Y6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.o1(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Y6.prototype.computeConfirmButton_=function(e){var g={text:e.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};e.confirmNavigationEndpoint?g.navigationEndpoint=e.confirmNavigationEndpoint:e.confirmServiceEndpoint&&(g.serviceEndpoint=e.confirmServiceEndpoint);return g};
Y6.prototype.computeShowTitle_=function(e){return!(e==null||!e.title)};
_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],Y6.prototype,"data",void 0);_.t([_.u({computed:"computeShowTitle_(data)"}),_.B("design:type",Boolean)],Y6.prototype,"showTitle",void 0);_.t([_.Wo({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Y6);
_.U(Y6,"yt-fancy-dismissible-dialog-renderer",function(){if(U5J===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;QPa===void 0&&(QPa=document.createElement("template"));var k=QPa;c.call(g,k.content.cloneNode(!0),e.content.firstChild);U5J=e}e=U5J;return e});var oWB;var ZY3;var fF=function(){var e=_.z.apply(this,arguments)||this;e.spinnerActive=!1;return e};
_.Y(fF,_.z);fF.prototype.created=function(){bwx(2201)};
fF.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
fF.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
fF.prototype.onIronOverlayClosed=fF.prototype.onIronOverlayClosed;fF.prototype.onIronOverlayOpened=fF.prototype.onIronOverlayOpened;_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.$L),_.B("design:type",Object)],fF.prototype,"tpYtIronOverlayBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],fF.prototype,"data",void 0);_.t([_.u(),_.B("design:type",Object)],fF.prototype,"spinnerActive",void 0);
_.t([_.Ks("iron-overlay-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fF.prototype,"onIronOverlayOpened",null);_.t([_.Ks("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fF.prototype,"onIronOverlayClosed",null);_.t([_.Wo({is:"yt-loading-renderer",disableElementRegistration:!0})],fF);
_.U(fF,"yt-loading-renderer",function(){if(ZY3===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;oWB===void 0&&(oWB=document.createElement("template"));var k=oWB;c.call(g,k.content.cloneNode(!0),e.content.firstChild);ZY3=e}e=ZY3;return e},{mode:2});var V0a;var t0a;var jm=function(){var e=_.z.apply(this,arguments)||this;e.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);e.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);e.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.Y(jm,_.z);_.v=jm.prototype;_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.v.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.v.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.v.openPopupHandler_=function(e){e.detail===this.hostElement&&this.hostElement.hidden&&_.Z5(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.v.onDismissButtonTap_=function(){var e;this.closeOnDismissButton_.has(((e=this.data)==null?void 0:e.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Z5(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.v.onAcceptButtonTap_=function(){var e;this.closeOnAcceptButton_.has(((e=this.data)==null?void 0:e.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Z5(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.v.computeHasHeader_=function(e){return!!e.headerBackgroundImage};
_.v.computeLayoutStyle_=function(e){return e};
_.v.computePopupSize_=function(e){return e};
_.v.computeIconType_=function(e){return e.dialogIcon&&e.dialogIcon.iconType?e.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":e.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":e.dialogIcon.iconType:""};
_.v.computeIsLogo_=function(e){return!!e.dialogIcon&&!!e.dialogIcon.iconType&&(e.dialogIcon.iconType==="YOUTUBE_LOGO"||e.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||e.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.v.computeHasCustomLogo=function(e){return!(e==null||!e.headerForegroundImage)};
_.v.computeCustomLogo=function(e,g){if(e!=null&&e.headerForegroundImage)return e.headerForegroundImageDark?g?e.headerForegroundImageDark:e.headerForegroundImage:e.headerForegroundImage};
_.v.computeHeaderBackgroundImage=function(e,g){if(e!=null&&e.headerBackgroundImage)return g&&(e==null?0:e.headerBackgroundImageDark)?e.headerBackgroundImageDark:e.headerBackgroundImage};
_.v.shouldShowIconContainer=function(e,g){return e&&!g};
_.v.shouldShowNonYouTubeIcon=function(e,g){return!e&&!g};
_.v.getLogoImageId=function(e){var g,c,k;return(e=(g=this.computeCustomLogo(e,this.isDarkTheme))==null?void 0:(c=g.thumbnails)==null?void 0:(k=c[0])==null?void 0:k.height)&&e%31===0?"custom-logo-with-padding":"custom-logo"};
jm.prototype.openPopupHandler_=jm.prototype.openPopupHandler_;jm.prototype.dataChanged_=jm.prototype.dataChanged_;_.t([_.m(_.Fa.YtRendererstamperBehavior),_.B("design:type",Object)],jm.prototype,"ytRendererstamperBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.t([_.u(),_.B("design:type",Boolean)],jm.prototype,"isDarkTheme",void 0);
_.t([_.u({computed:"computeCustomLogo(data, isDarkTheme)"}),_.B("design:type",Object)],jm.prototype,"customLogo",void 0);_.t([_.u({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.B("design:type",Object)],jm.prototype,"headerBackgroundImage",void 0);_.t([_.u(),_.B("design:type",Object)],jm.prototype,"data",void 0);_.t([_.u({computed:"computeHasHeader_(data)"}),_.B("design:type",Boolean)],jm.prototype,"hasHeader",void 0);
_.t([_.u({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.B("design:type",Object)],jm.prototype,"layoutStyle",void 0);_.t([_.u({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.B("design:type",Object)],jm.prototype,"popupSize",void 0);_.t([_.u({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],jm.prototype,"hasLogo",void 0);
_.t([_.u({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],jm.prototype,"hasCustomLogo",void 0);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jm.prototype,"dataChanged_",null);_.t([_.Ks("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],jm.prototype,"openPopupHandler_",null);
_.t([_.Wo({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],jm);
_.U(jm,"yt-upsell-dialog-renderer",function(){if(t0a===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;V0a===void 0&&(V0a=document.createElement("template"));var k=V0a;c.call(g,k.content.cloneNode(!0),e.content.firstChild);t0a=e}e=t0a;return e},{mode:2});var Byj=_.H(function(e){return _.a("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.a(_.E,{cond:e.title,then:function(g){return _.a("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},g)}}))},"ol"),NyB=_.H(function(e){return _.a("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.a(_.eS,{data:e.closeButton},{buttonViewModel:function(g){return _.a("div",null,_.a(_.oD,{data:g.data}))}}))},"pl"),Sha=_.H(function(e){var g=e.data;
return _.a(_.es,null,_.a("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.a("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.a(_.E,{cond:function(){return!!g().image&&!!g().title},
then:function(){return _.a(_.pv,{data:function(){return g().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.a("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.a(_.E,{cond:function(){return g().title},
then:function(c){return _.a("h3",{class:"miniAppGameInfoDialogViewModelTitle"},c)}}),_.a(_.E,{cond:function(){return g().primaryGenre},
then:function(c){return _.a("span",{class:"miniAppGameInfoDialogViewModelGenre"},c)}}))),_.a(_.E,{cond:function(){var c=g().description;
return c&&c.length<=150},
then:function(){return _.a("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.a("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return g().description}))}}))},"ql"),y0p=_.H(function(e){var g=e.ageRating;
return _.a("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.a(_.pv,{data:function(){return{sources:[{url:g().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.a("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.a(_.fa,{text:function(){return g().attributedLabel},
noPreWrap:!0})))},"rl"),Kz3=_.H(function(e){e=e.infoRows;
var g=_.Ss().resolve(_.uJ),c=_.G("enable_displaying_ppn");return _.a("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.a(_.Yz,{each:e},function(k){return _.a("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.a(_.E,{cond:function(){return k.label},
then:function(I){return _.a("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},I)}}),_.a(_.E,{cond:function(){return k.attributedLabel},
then:function(I){return _.a("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.a(_.fa,{text:I,noPreWrap:!0}))}}),_.a(_.E,{cond:function(){return k.value},
then:function(I){return _.a("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},I)}}),_.a(_.E,{cond:function(){return k.attributedValue},
then:function(I){return _.a("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.a(_.fa,{text:I,noPreWrap:!0}))}}),_.a(_.E,{cond:function(){return k.ageRating},
then:function(I){return _.a(y0p,{ageRating:I})}}))}),_.a(_.E,{cond:function(){return c&&g.clientData.has("post_play_nonce")},
then:function(){return _.a("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.a("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.a("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},g.getData("post_play_nonce")))}}))},"sl"),OYP=_.H(function(e){var g=e.data;
return _.a("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.a(Byj,{title:function(){return g().dialogTitle}}),_.a(Sha,{data:g}),_.a(_.E,{cond:function(){return g().infoRow},
then:function(c){return _.a(Kz3,{infoRows:c})}}),_.a(NyB,{closeButton:function(){return g().closeButton}}))},"tl");
OYP.idomCompat=!0;_.sL(OYP,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;return _.a("yt-gulp-triggering-dialog-view-model",{class:_.o6("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.a(_.pv,{data:function(){return g().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.a("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.a("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.a("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.a(_.fa,{text:function(){return g().title}})),_.a(_.E,{cond:function(){return g().bodyText},
then:function(c){return _.a(_.Yz,{each:c},function(k){return _.a("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.a(_.fa,{text:k}))})}})),_.a("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.a(_.eS,{data:function(){return g().dismissButton}},{buttonViewModel:function(c){return _.a("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.a(_.oD,{data:c.data}))}}),_.a(_.eS,{data:function(){return g().actionButton}},{buttonViewModel:function(c){return _.a("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.a(_.oD,{data:c.data}))}}))))},"ul"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.jx}});var M0B=_.H(function(e){var g=e.data;e=_.sz(function(){return g().agreements},[]);
return _.a("installment-agreements-view-model",{class:_.o6("ytInstallmentAgreementsViewModelHost")},_.a(_.Yz,{each:e},function(c){return _.a("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.a("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.a(_.fa,{text:c.label})),_.a("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.a(_.eS,{data:function(){return c.openButton}},{buttonViewModel:_.oD})))}))},"vl");
M0B.idomCompat=!0;var CjB=_.H(function(e){var g=_.w(_.uF(function(){var y,O;return((y=e.data().createPlaylistDialogFormSchema)==null?0:(O=y.initialValues)==null?0:O.title)?e.data().createPlaylistDialogFormSchema.initialValues.title:""})),c=g.next().value,k=g.next().value;
g=_.w(_.uF(function(){e.data();return!1}));
var I=g.next().value,J=g.next().value;g=_.w(_.uF(function(){e.data();return!1}));
var q=g.next().value,L=g.next().value;g=_.w(_.uF(function(){var y,O;return(y=e.data().createPlaylistDialogFormSchema)==null?void 0:(O=y.initialValues)==null?void 0:O.visibility}));
var n=g.next().value,R=g.next().value;g=_.w(_.uF(function(){e.data();return!1}));
var W=g.next().value,b=g.next().value;g=_.w(_.uF(function(){var y,O;return(y=e.data().createPlaylistDialogFormSchema)==null?void 0:(O=y.initialValues)==null?void 0:O.isCollaborative}));
var h=g.next().value,X=g.next().value,D=_.io("div");_.AV(function(){var y=D.value.querySelector("textarea");y&&(y.value=c())},"axFRaf");
_.lo(function(){var y;RBD((y=e.data().createPlaylistDialogFormSchema)==null?void 0:y.id,{onSubmit:function(){var O=c();var Jq=n(),LC=h(),bW=e.data();O={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:O,privacyStatus:Jq,videoIds:bW.videoIds,sourcePlaylistId:bW.sourcePlaylistId,params:LC?bW.createPlaylistParamsCollaborationEnabled:bW.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.Ss().resolve(_.xk).resolveCommand(O)},
isValid:function(){return I()&&!q()&&!W()}})});
var f=function(y){if(y!==void 0&&(k(y),!I()&&y.length>0&&J(!0),I())){var O=Glg(e.data());if(O){var Jq=O.minLength;O=O.maxLength;Jq&&y.length<Jq?L(!0):O&&y.length>O?L(!0):L(!1)}}},l=function(){var y=!(!h()||n()!=="PRIVATE");
b(y)},A=function(y){y!==void 0&&(R(y),l())},d=function(){if(W())return Dsv(e.data())},S=function(){X(!h());
l()},V=function(){return{validate:function(y){if(I()){var O=Glg(e.data());
if(O){var Jq=O.minLength;O=O.translations;if(Jq&&y.length<Jq)return O==null?void 0:O.minLengthErrorMessage}}}}},Q=function(){var y=Glg(e.data()),O=y==null?void 0:y.maxLength,Jq;
y=y==null?void 0:(Jq=y.translations)==null?void 0:Jq.maxLengthErrorMessage;if(O&&y)return{maxChars:O,errorMessage:y}};
return _.a("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.a("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:D},_.a(_.eS,{data:function(){return e.data().playlistTitle}},{textFormFieldViewModel:function(y){return _.a(H9x,{data:y.data,
text:c,onInput:f,validation:V,characterLimit:Q})},
textFieldViewModel:function(y){return _.a(zC7,{data:y.data,text:c,controlledMode:!0,onInput:f,validation:V,characterLimit:Q})}})),_.a("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.a(_.eS,{data:function(){return e.data().playlistVisibility}},{dropdownViewModel:function(y){return _.a(yMO,{data:y.data,
onSelected:A,error:d})}})),_.a(_.E,{cond:function(){return!!e.data().playlistCollaborate},
then:function(){return _.a("div",null,_.a(_.eS,{data:function(){return e.data().playlistCollaborate}},{switchListItemViewModel:function(y){return _.a(_.vpv,{data:y.data,
onTap:S})}}))}}))},"xl");var evm=_.H(function(e){var g=e.data;return _.a("upsell-offer-table-cell-content-view-model",null,_.a("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.a(_.f4,null,_.a(_.DC,{when:function(){var c;return(c=g().icon)==null?void 0:c.iconType}},function(){return _.a("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.a(_.SU,{icon:function(){var c;
return(c=g().icon)==null?void 0:c.iconType.toString()}}))}),_.a(_.DC,{when:function(){return g().title}},function(){return _.a(_.fa,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return g().title}})}),_.a(_.DC,{when:function(){return g().subtitle}},function(){return _.a(_.fa,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return g().subtitle}})}),_.a(_.DC,{when:function(){return g().infoText}},function(){return _.a(_.fa,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return g().infoText}})}),_.a(_.DC,{when:function(){return g().featureDescription}},function(){return _.a(_.fa,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return g().featureDescription}})}),_.a(_.DC,{when:function(){return g().note}},function(){return _.a(_.fa,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return g().note}})})),_.a(_.E,{cond:function(){var c;
return(c=g().icon)==null?void 0:c.iconAccessibilityText},
then:function(){return _.a("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var c;return(c=g().icon)==null?void 0:c.iconAccessibilityText})}})))},"yl");
evm.idomCompat=!0;var gaB=_.H(function(e){var g=e.data;var c=e.cellIndex;var k=e.rowIndex;return _.a("upsell-offer-table-cell-view-model",null,_.a("div",{class:_.o6("ytUpsellOfferTableCellViewModelCellWrapper",function(){return g().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":g().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var I,J;return"cell-"+((I=k==null?void 0:k())!=null?I:0)+"-"+((J=c==null?void 0:c())!=null?J:0)},
role:function(){return g().isFirstRow?"columnHeader":g().isFirstColumn?"rowheader":"gridcell"}},_.a(_.eS,{data:function(){return g().contents}},{upsellOfferTableCellContentViewModel:evm})))},"zl");
gaB.idomCompat=!0;var cvp=_.H(function(e){var g=e.data;var c=e.upsellTableIsFirstRow;var k=e.rowIndex;var I=function(){return(c==null?0:c())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},J=function(){return(c==null?0:c())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.a("ytm-upsell-offer-table-row-view-model",null,_.a("div",{class:function(){return(c==null?0:c())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(k==null?void 0:k())+"-1 cell-"+(k==null?void 0:k())+"-2"}},_.a(_.eS,{data:function(){return g().rowHeaderCell}},{upsellOfferTableCellViewModel:function(q){return _.a("div",{class:I},_.a(gaB,{data:q.data,
cellIndex:0,rowIndex:k}))}}),_.a("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.a(_.eS,{data:function(){return g().contentCells}},{upsellOfferTableCellViewModel:function(q,L){return _.a("div",{class:J},_.a(gaB,{data:q.data,
cellIndex:function(){return L()+1},
rowIndex:k}))}}))))},"Al");
cvp.idomCompat=!0;var k6x=_.H(function(e){var g=e.data;return _.a("ytm-upsell-offer-table-view-model",null,_.a("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.a("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.a(_.eS,{data:function(){return g().rows}},{upsellOfferTableRowViewModel:function(c,k){return _.a(cvp,{data:c.data,
upsellTableIsFirstRow:function(){return k()===0},
rowIndex:k})}}))))},"Bl");
k6x.idomCompat=!0;var Ibm=_.H(function(e){var g=function(){return e.data()},c=_.sz(e.noPadding,!1),k=function(){var J,q;
return(q=(J=g().logo.accessibilityData)==null?void 0:J.label)!=null?q:""},I={};
return _.a("upsell-view-model",{class:_.o6("ytUpsellViewModelHost",(I.ytUpsellViewModelHostNoPadding=function(){return c()},I.ytUpsellViewModelHostWide=function(){return g().offerTable!==void 0},I))},_.a("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.a(_.E,{cond:function(){return _.$u(g().logo)},
then:function(J){return _.a(_.pv,{data:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:k})}})),_.a("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.a(_.fa,{text:function(){return g().title}})),_.a("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.a(_.Yz,{each:function(){var J;
return(J=g().subtitles)!=null?J:[]},
keyBy:"INDEX"},function(J){var q={};return _.a("div",{class:_.o6("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(q.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return g().offerTable!==void 0},q))},_.a(_.fa,{text:J}))})),_.a("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.a(_.Yz,{each:function(){var J;
return(J=g().benefitInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){return _.a(_.E,{cond:function(){return J().info},
then:function(q){return _.a("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.a(_.SU,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.a(_.fa,{text:q}))}})})),_.a(_.E,{cond:function(){return g().offerTable!==void 0},
then:function(){return _.a("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.a(_.eS,{data:function(){return g().offerTable}},{upsellOfferTableViewModel:function(J){return _.a(k6x,{data:J.data})}}))}}),_.a("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.a(_.Yz,{each:function(){var J;
return(J=g().legalInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){var q={};return _.a("div",{class:_.o6("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(q.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return g().offerTable!==void 0},q))},_.a(_.fa,{text:J}))})))},"Cl");var JvJ=_.H(function(e){var g=e.data;e={};e=(e.ytMiniAppScoreChallengeViewModelScoreRadial=!0,e.ytMiniAppScoreChallengeViewModelDarkScoreRadial=$sx(),e);return _.a("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.a("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return g().title}),_.a("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return g().subtitle}),_.a("div",{class:_.qy(e)},_.a("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return g().score})),_.a("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return g().prompt}))},"Dl");var vaB=function(){this.store=_.lF();this.formId=""};
vaB.prototype.onInit=function(e){e.formId&&(this.formId=e.formId,this.store.dispatch(_.Hh({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
vaB.prototype.cleanup=function(){this.store.dispatch(_.Hh({type:"RESET_COMMAND_MAP"}))};var wc3=_.H(function(e){function g(L){if(L&&(L=_.x(L,_.IB)))return Object.assign({},L,{isSelected:J()})}
var c=_.w(_.uF(function(){var L,n;return(n=(L=_.x(e.data().option,_.IB))==null?void 0:L.isSelected)!=null?n:!1})),k=c.next().value,I=c.next().value,J=k;
_.lo(function(){var L;RBD((L=e.data().formSchema)==null?void 0:L.id,{onSubmit:function(){var n=_.Ss().resolve(_.xk),R=!!e.data().selectedCommand,W=!!e.data().unselectedCommand;if(J()){if(R)var b=e.data().selectedCommand}else W&&(b=e.data().unselectedCommand);b=_.WT(b);g(e.data().option)&&!b?(n="",!R&&W?n="selected ":R&&!W&&(n="unselected "),R=new _.E2("No "+n+"command found for SelectionListItemFormViewModel"),_.jW(R)):b&&n.resolveCommand(b)},
isValid:function(){return!0}})});
var q=function(){I(!J())};
_.sX(function(){var L,n,R=(L=e.data())==null?void 0:(n=L.formSchema)==null?void 0:n.id;R&&_.MH()().delete(R)});
return _.a("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.a("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.a(_.fa,{text:function(){return e.data().paragraph}})),_.a(_.E,{cond:function(){return g(e.data().option)},
then:function(L){return _.a(_.j5,{data:L,isCompact:!0,hideSelectionTextChevron:!0,onTap:q,disableHorizontalPadding:!0})}}))},"El");var qyP=_.H(function(e){var g=e.data;var c=e.disablePadding;var k=e.className;var I=_.io("yt-dialog-header-view-model"),J=function(){var n=g().imageBanner;a:switch(g().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var R="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:R="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:n,style:R,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},q=function(){return g().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
L=function(){return g().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.lo(function(){var n=function(){_.Z5(I.value,"yt-refit-popups-action")},R;
(R=I.value)==null||R.addEventListener("image-loaded",n);_.sX(function(){var W;(W=I.value)==null||W.removeEventListener("image-loaded",n)})});
e={};return _.a("yt-dialog-header-view-model",{el:I,class:_.o6(k,(e.ytDialogHeaderViewModelHost=!0,e.ytDialogHeaderViewModelHostDisablePadding=c,e.ytDialogHeaderViewModelHostCentered=L,e))},_.a(_.E,{cond:function(){return g().imageBanner},
then:function(){var n={};return _.a("div",{class:_.o6(k,(n.ytDialogHeaderViewModelBanner=!0,n.ytDialogHeaderViewModelBannerFullBleed=q,n)),style:_.N2({"max-height":function(){return g().assetContainerMaxHeight!==void 0?g().assetContainerMaxHeight+"px":void 0}})},_.a(_.Zf,{data:J,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.a(_.E,{cond:function(){return g().headerBlock},
then:function(){var n={};return _.a("div",{class:_.o6("ytDialogHeaderViewModelHeaderBlock",(n.ytDialogHeaderViewModelHeaderBlockCentered=L,n))},_.a(_.eS,{data:function(){return g().headerBlock}},{contentPreviewImageViewModel:function(R){return _.a(_.Zf,{data:R.data,
notifyOnLoaded:!0})}}))}}),_.a(_.E,{cond:function(){return g().customBanner},
then:function(n){var R={};return _.a("div",{class:_.o6("ytDialogHeaderViewModelCustomAssetContainer",(R.ytDialogHeaderViewModelCustomAssetContainerCentered=L,R))},_.a(_.eS,{data:n},{avatarStackViewModel:_.bh}))}}),_.a(_.E,{cond:function(){return g().headline},
then:function(n){return _.a("h2",null,_.a(_.fa,{text:n,className:"ytDialogHeaderViewModelText"}))}}))},"Fl");
qyP.idomCompat=!0;var L6A=_.H(function(e){var g=_.l8C(function(){return e.data().formId}),c=g.submitForm,k=g.isValid;
return _.a("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.a(_.eS,{data:function(){return e.data().panelFooter}},{panelFooterViewModel:function(I){return _.a(Wi,{data:I.data,
disablePadding:!0,disablePrimaryButton:function(){return!k()},
onClickPrimaryButton:function(){c()}})}}))},"Gl");var rvp=_.H(function(e){var g=function(){var c,k;return(k=(c=_.x(e.data().rendererContext,_.Jh))==null?void 0:c.label)!=null?k:""};
return _.a("yt-dialog-image-content-view-model",{class:_.o6("ytDialogImageContentViewModelHost",e.className)},_.a(_.E,{cond:function(){return _.$u(e.data().image)},
then:function(c){var k={};return _.a("div",{style:_.N2((k.width=(0,_.GZ)(function(){var I;return(I=e.data().imageMaxWidth)!=null?I:""}),k)),
class:"ytDialogImageContentViewModelImage"},_.a(_.pv,{data:c,alt:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.a(_.fa,{text:function(){return e.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Hl");var RvJ=_.H(function(e){var g=_.FA(e,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),c=g.elRefCallback;e=g.Icon;var k=g.Asset,I=g.assetType,J=g.Title,q=g.LeadingActionHeader,L=g.TrailingActionHeader,n=g.headerPosition,R=g.Content,W=g.buttonLayout,b=g.buttonStyle,h=g.primaryButtonWiz,X=g.secondaryButtonWiz,D=g.contentAlignment,f=g.isFullscreen,l=g.width,A=g.maxHeight,d=g.isHeaderWizDefined,S=g.Header,V=g.isFooterWizDefined,
Q=g.Footer;g=_.io("dialog-layout",function(Fg){c==null||c(Fg)});
var y=h?function(){var Fg={};return h({buttonOverrides:function(){return{style:(b==null?void 0:b())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.o6((Fg["yt-spec-dialog-layout__dialog-layout-button"]=!0,Fg["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(W==null?void 0:W())===0||(W==null?void 0:W())===2},Fg))})}:void 0,O=X?function(){var Fg={};
return X({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.o6((Fg["yt-spec-dialog-layout__dialog-layout-button"]=!0,Fg["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(W==null?void 0:W())===0||(W==null?void 0:W())===2},Fg))})}:void 0,Jq=function(){return(!!J||!!q||!!L)&&n()===0},LC={},bW={},RA={},Xg={};
return _.a("dialog-layout",{el:g,class:_.o6((LC["yt-spec-dialog-layout"]=!0,LC["yt-spec-dialog-layout--dialog-layout-fullscreen"]=f,LC["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!f()},LC["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return A()===1},LC["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(I==null?void 0:I())===1},LC)),
style:function(){return(l==null?void 0:l())!==void 0?"width: "+l()+"px;":""}},e?_.a("div",{class:_.o6((bW["yt-spec-dialog-layout__dialog-layout-icon"]=!0,bW["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!k&&n()===1},bW["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return D()===1},bW))},_.a(e,null)):null,_.a(_.E,{cond:d,
then:function(){return S?_.a("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.a(S,null)):null},
else:function(){return _.a(_.es,null,_.a(_.E,{cond:Jq,then:function(){return _.a(aba,{contentAlignment:D,LeadingActionHeader:q,TrailingActionHeader:L,Title:J,isAboveAsset:!!k})}}),k?_.a("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.a(k,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.a("div",{class:_.o6((RA["yt-spec-dialog-layout__dialog-layout-container"]=!0,RA["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(D==null?void 0:D())===1},
RA["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!J&&!(S&&d())||!!k&&(n==null?void 0:n())===0},RA))},_.a(_.E,{cond:function(){return J&&!S&&(n==null?void 0:n())===1},
then:function(){return _.a(aba,{contentAlignment:D,LeadingActionHeader:q,TrailingActionHeader:L,Title:J,isAboveAsset:!1})}}),R?_.a("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.a("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.a(R,null))):null,_.a(_.E,{cond:V,
then:function(){return Q?_.a("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.a(Q,null)):null}}),y||O?_.a(naP,{footerClasses:_.o6((Xg["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Xg["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Xg["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(W==null?void 0:W())===2},Xg["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(W==null?void 0:W())===1},Xg)),
PrimaryButton:y,SecondaryButton:O}):null))},"Il"),aba=_.H(function(e){var g=_.FA(e,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),c=g.contentAlignment,k=g.LeadingActionHeader;e=g.Title;var I=g.TrailingActionHeader,J=g.isAboveAsset,q=g.enableLeadingActionHeader;g={};return _.a("div",{class:_.o6((g["yt-spec-dialog-layout__dialog-header-container"]=!0,g["yt-spec-dialog-layout__dialog-header"]=!0,g["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=J,g["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(c==null?void 0:c())===1&&q()},g))},_.a(_.E,{cond:function(){return q()},
then:function(){return k?_.a("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.a(k,null)):null}}),e?_.a("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.a(e,null)):null,I?_.a("div",null,_.a(I,null)):null)},"Jl"),naP=_.H(function(e){var g=e.footerClasses;
var c=e.PrimaryButton;e=e.SecondaryButton;return _.a("div",{class:g},e?_.a(e,null):null,c?_.a(c,null):null)},"Kl");var Eam=new _.AU("TIME_PICKER_VIEW_MODEL_TOKEN");var W6m=_.H(function(e){var g=e.data;return _.a("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.a("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.a(_.eS,{data:function(){return g().avatar}},{avatarViewModel:_.E8})),_.a("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.a(_.fa,{text:function(){return g().title}})),_.a(_.fa,{text:function(){return g().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Ll");var brA=_.H(function(e){return _.a("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.a(_.fa,{text:function(){return e.data().inviteMessage}})),_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.a(_.fa,{text:function(){return e.data().attributedAccountSectionHeaderText}})),_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.a(_.eS,{data:function(){return e.data().accountAvatar}},{avatarViewModel:_.E8}),_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.a(_.fa,{text:function(){return e.data().accountName}}),_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.a(_.fa,{text:function(){return e.data().handle}}))),_.a(_.eS,{data:function(){return e.data().trailingButton}},{buttonViewModel:_.oD})),_.a("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.a(_.fa,{text:function(){return e.data().termsOfService}})))},"Ml");var hvr=_.H(function(e){var g=e.data;return _.a("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.a("div",{class:"ytAccessConfirmationViewModelContent"},_.a(_.eS,{data:function(){var c;return(c=g().avatar)!=null?c:g().dualAvatar}},{dualAvatarViewModel:function(c){return _.a(_.Cdv,{data:c.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(c){return _.a(_.WG,{data:c.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.a("h2",{class:"ytAccessConfirmationViewModelTitle"},_.a(_.fa,{text:function(){return g().title}})),_.a(_.fa,{text:function(){return g().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Nl");var XcA=_.H(function(e){var g=function(){var L,n;return(L=e.data().formSchema)==null?void 0:(n=L.initialValues)==null?void 0:n.selectedLanguages},c=_.w(_.uF(function(){return g()})),k=c.next().value,I=c.next().value,J={};
_.AV(function(){var L=e.data().formSchema,n=L==null?void 0:L.submitConfig;e.data()!==J&&(J=e.data(),L&&n&&ndl(L.id,{isValid:function(){var R,W=(R=k())!=null?R:[],b;R=(b=g())!=null?b:[];if(W.length!==R.length)return!0;b=new Set(R);W=_.w(W);for(R=W.next();!R.done;R=W.next())if(!b.has(R.value))return!0;return!1},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:k()||[]}}},
submitConfig:n}))},"iCaJcc");
var q=function(L){var n=L.key;if(n){var R;if(n&&((R=k())==null?0:R.includes(n))){var W;I((W=k())==null?void 0:W.filter(function(b){return b!==n}))}else I([].concat(_.KY(k()||[]),[n]))}};
return _.a("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.a(_.eS,{data:function(){return e.data().checkboxGroup}},{checkboxGroupViewModel:function(L){return _.a(sJQ,{data:L.data,
onItemTap:q,selectedKeys:k,controlledMode:!0,disableHorizontalPadding:e.disableHorizontalPadding})}}))},"Pl");var G6B=_.H(function(e){var g=e.data;var c=void 0;e=_.w(_.uF(function(){var W;return((W=_.x(g().content,PYz))==null?void 0:W.defaultSelectedKey)||""}));
var k=e.next().value,I=e.next().value,J,q=function(){I("");var W;(W=c)==null||W.cleanup()};
_.lo(function(){c=new vaB;window.addEventListener("yt-popup-closed",q)});
_.AV(function(){if(c&&J!==g().formId&&(c.onInit(g()),(J=g().formId)&&k())){var W=c,b={key:k()};b.command&&W.store.dispatch(dEX(J,b.command))}},"bo7oA");
_.sX(function(){window.removeEventListener("yt-popup-closed",q)});
var L=function(W,b,h){b.key&&h&&b.key!==k()&&(I(b.key),c&&b.command&&c.store.dispatch(dEX(h,b.command)))},n=function(){if(_.x(g().content,PYz))return!(k==null?0:k())},R=_.Ss().resolve(_.NN(Eam));
return _.a("yt-dialog-view-model",{class:_.o6("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.a(RvJ,{Header:function(){return _.a(_.eS,{data:function(){return g().header}},{dialogHeaderViewModel:function(W){return _.a(qyP,{data:W.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!g().header},
Content:function(){return _.a(_.eS,{data:function(){return g().customContent?g().customContent:g().content}},Object.assign({},{basicContentViewModel:_.YP,
createPlaylistDialogFormViewModel:CjB,collaborativePlaylistInviteMessageViewModel:brA,preferredLanguageSettingsPanelViewModel:function(W){return _.a(XcA,{data:W.data,disableHorizontalPadding:!0})},
miniAppScoreChallengeViewModel:JvJ,radioButtonGroupViewModel:function(W){var b=W.data;return _.a(lmz,{data:b,selectedKey:k,onSelected:L,groupName:function(){return b().formId}})},
selectionListItemFormViewModel:wc3,upsellViewModel:function(W){return _.a(Ibm,{data:W.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:W6m,installmentAgreementsViewModel:M0B,accessConfirmationViewModel:hvr,listViewModel:function(W){return _.a(_.Epl,{data:W.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:rvp},R&&{timePickerViewModel:R}))},
Footer:function(){return _.a(_.eS,{data:function(){return g().footer}},{panelFooterViewModel:function(W){return _.a(Wi,{data:W.data,
disablePadding:!0,disablePrimaryButton:n})},
formPanelFooterViewModel:L6A,formFooterViewModel:function(W){return _.a(jJq,{data:W.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!g().footer}}))},"Rl");
G6B.idomCompat=!0;_.sL(G6B,"yt-dialog-view-model",{props:{data:_.jx},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var xOj=_.H(function(e){var g=e.data;return _.a("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.a(_.E,{cond:function(){return g().title},
then:function(c){return _.a("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.a(_.fa,{text:c,className:"ytPanelHeaderViewModelTitle"}))}}),_.a(_.E,{cond:function(){return g().subtitle},
then:function(c){return _.a(_.fa,{text:c,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Sl"),DOb=_.H(function(e){var g=e.data;
var c=_.azA(function(){return g().rendererContext});
e={};return _.a("yt-panel-header-view-model",{class:_.o6("ytPanelHeaderViewModelHost",(e.ytPanelHeaderViewModelHostHideDivider=function(){return!!g().shouldHideDivider},e.ytPanelHeaderViewModelHostCompact=function(){return!!g().subtitle},e)),
"aria-label":function(){var k;return(k=c())==null?void 0:k.label}},_.a(_.E,{cond:function(){return _.RB(g().rendererContext)},
then:function(){return _.a(_.OK1,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.nV(g().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.a(xOj,{data:g}))},
else:function(){return _.a(xOj,{data:g})}}),_.a("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.a(_.eS,{data:function(){return g().trailingButtons}},{buttonViewModel:function(k){return _.a(_.oD,{data:k.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Tl");
DOb.idomCompat=!0;var $OJ=_.H(function(e){var g=_.Ve(function(J){var q;if((q=e.skipContentClick)==null?0:q.call(e))return!1;e.onContentWrapperClick(J);return!0}),c,k,I;
return _.a("div",{class:_.o6("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return e.isAnimating()?"transform: translateY("+e.currentY()+"px);transition: 0.2s":""}},(c=e.header)==null?void 0:c.call(e),_.a("div",{id:e.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.N2({"max-height":(0,_.GZ)(e.maxHeightForContentWrapper)}),"on:scroll":_.Ve(function(J){return e.onScroll(J),!1}),
"on:touchmove":_.Ve(function(J){return J.stopPropagation(),!1})},_.a("div",{el:_.mb(e.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":g},(k=e.body)==null?void 0:k.call(e))),(I=e.footer)==null?void 0:I.call(e))},"Ul");
$OJ.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var Yyb=_.H(function(e){var g=_.sz(e.leadingLabel),c=_.sz(e.trailingLabel),k=_.sz(e.footerButtonType),I=function(){return g()||c()||e.hasPrimaryButton()||e.hasSecondaryButton()},J={},q=_.o6("yt-spec-bottom-sheet-layout__primary-button",(J["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return k()===0&&e.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return k()===1&&e.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return k()===2&&e.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return k()===3&&e.hasPrimaryButton()},J));
J={};var L=_.o6("yt-spec-bottom-sheet-layout__secondary-button",(J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return k()===1&&e.hasSecondaryButton()},J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return k()===2&&e.hasSecondaryButton()},J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return k()===3&&e.hasPrimaryButton()},J));
return _.a(_.E,{cond:e.hasFooterOverride,then:function(){var n;return _.a(_.es,null,(n=e.footerOverride)==null?void 0:n.call(e))},
else:function(){return _.a(_.E,{cond:I,then:function(){return _.a("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.a(_.E,{cond:function(){return g()||c()},
then:function(){var n={};return _.a("div",{class:_.o6("yt-spec-bottom-sheet-layout__footer-label-wrapper",(n["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!e.hasPrimaryButton()},n))},_.a(_.E,{cond:g,
then:function(){return _.a("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},g)}}),_.a(_.E,{cond:c,
then:function(){return _.a("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},c)}}))}}),_.a(_.E,{cond:function(){return e.hasPrimaryButton()||e.hasSecondaryButton()},
then:function(){var n={};return _.a("div",{class:_.o6("yt-spec-bottom-sheet-layout__footer-button-wrapper",(n["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.o0k,n))},_.a(_.E,{cond:function(){return e.hasSecondaryButton()&&k()!==0},
then:function(){var R;return _.a("div",{class:L},(R=e.secondaryButton)==null?void 0:R.call(e))}}),_.a(_.E,{cond:e.hasPrimaryButton,
then:function(){var R;return _.a("div",{class:q},(R=e.primaryButton)==null?void 0:R.call(e))}}))}}))}})}})},"Vl");
Yyb.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var fbx=_.H(function(e){var g=_.sz(e.title),c=_.sz(e.subtitle);return _.a("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:e.headerId,"on:touchstart":_.Ve(function(k){var I;(I=e.touchstart)==null||I.call(e,k);return!1}),
"on:touchmove":_.Ve(function(k){var I;(I=e.touchmove)==null||I.call(e,k);return!1}),
"on:touchend":_.Ve(function(k){var I;(I=e.touchend)==null||I.call(e,k);return!1})},_.a("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.a(_.E,{cond:e.hasHeaderOverride,
then:function(){var k;return _.a(_.es,null,(k=e.headerOverride)==null?void 0:k.call(e))},
else:function(){var k={};return _.a("div",{class:_.o6((k["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,k["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=g,k))},_.a("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.a(_.E,{cond:g,then:function(){return _.a(_.es,null,_.a("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},g),_.a(_.E,{cond:c,then:function(){return _.a("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
c)}}))}})),_.a(_.E,{cond:function(){return g()&&e.hasActionHeader()},
then:function(){var I;return _.a("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(I=e.actionHeader)==null?void 0:I.call(e))}}))}}))},"Wl");
fbx.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.H(function(e){function g(Jq){if(!S&&typeof MutationObserver!=="undefined"){var LC={childList:!0};"MutationObserver"in window&&(S=new MutationObserver(c.bind(void 0,Jq)),S.observe(Jq,LC))}}
function c(Jq){typeof S!=="undefined"&&(V["content-wrapper"]===void 0&&(V["content-wrapper"]=Jq.children[0].clientHeight),f(V["content-wrapper"]),D()>l()||A(D()))}
function k(){X(window.innerHeight);D()>l()||A(D());Q.isFullScreen[0]()&&D()>l()?y().dispatch("Snap To Full Screen",{maxHeight:d()}):y().dispatch("Snap To Neutral Position",{maxHeight:l()})}
function I(Jq){document.body.style.overscrollBehavior="none";Jq.preventDefault();y().dispatch("Touch Start",{event:Jq})}
function J(Jq){Jq.preventDefault();y().dispatch("Touch Move",{event:Jq,contentScrollable:D()>l(),fullContentWrapperHeight:d(),contentWrapperHeight:l(),heightMap:V,contentWrapperId:"content-wrapper",header:P2g(e),footer:P2g(e),headerDivHeight:V["bottom-sheet-header"],footerDivHeight:V["bottom-sheet-footer"]})}
function q(){document.body.style.overscrollBehavior="";Q.isFullScreen[0]()?Q.currentY[0]()>=60?y().dispatch("Snap To Neutral Position",{maxHeight:l()}):y().dispatch("Snap To Full Screen",{maxHeight:d()}):Q.currentY[0]()>=60?L():Q.currentY[0]()<=-60&&D()>l()?y().dispatch("Snap To Full Screen",{maxHeight:d()}):y().dispatch("Snap To Neutral Position",{maxHeight:l()})}
function L(){y().dispatch("Close Sheet",{clientHeight:h(),maxHeight:0});setTimeout(function(){i2Q()},250)}
var n=_.io("div"),R=_.io("div"),W=_.w(_.Wa(window.innerHeight,void 0,"CmOsU")),b=W.next().value;W=W.next().value;var h=b,X=W;W=_.w(_.Wa(0,void 0,"p0Flhb"));b=W.next().value;W=W.next().value;var D=b,f=W;W=_.w(_.uF(function(){var Jq=P2g(e);return.6*h()-Ysl(Jq)-fgq(Jq)}));
b=W.next().value;W=W.next().value;var l=b,A=W,d=function(){var Jq=P2g(e),LC=h(),bW=V["bottom-sheet-header"],RA=V["bottom-sheet-footer"];return LC-(Jq.hasHeaderFn&&bW!==void 0?bW:Ysl(Jq))-(Jq.hasFooterFn&&RA!==void 0?RA:fgq(Jq))-24-24},S=null,V={},Q={initialY:_.Wa(0,void 0,"sxdESd"),
currentY:_.Wa(0,void 0,"GZzqeb"),isAnimating:_.Wa(!1,void 0,"vJBupc"),isFullScreen:_.Wa(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.uF(l)},y=function(){var Jq=null;return function(){if(!Jq){var LC={initialY:Q.initialY[0](),currentY:Q.currentY[0](),isAnimating:Q.isAnimating[0](),isFullScreen:Q.isFullScreen[0](),maxHeightForContentWrapper:Q.maxHeightForContentWrapper[0]()};Jq=jXx(LC)}return Jq}}();
_.lo(function(){window.addEventListener("resize",k);y().subscribe(function(Jq){Q.initialY[1](Jq.initialY);Q.currentY[1](Jq.currentY);Q.isAnimating[1](Jq.isAnimating);Q.isFullScreen[1](Jq.isFullScreen);Q.maxHeightForContentWrapper[1](Jq.maxHeightForContentWrapper)});
requestAnimationFrame(function(){n.value&&(V["bottom-sheet-header"]=n.value.clientHeight);R.value&&(V["bottom-sheet-footer"]=R.value.clientHeight)})});
_.sX(function(){window.removeEventListener("resize",k);S&&(S.disconnect(),S=null)});
var O=_.o6({"bottom-sheet-content-without-icon":function(){var Jq;return!((Jq=e.shouldShowIcons)==null?0:Jq.call(e))}});
return _.a("bottom-sheet-layout",null,_.a($OJ,{contentWrapperId:"content-wrapper",isAnimating:function(){return Q.isAnimating[0]()},
currentY:function(){return Q.currentY[0]()},
maxHeightForContentWrapper:function(){return Q.maxHeightForContentWrapper[0]()},
shouldShowIcons:e.shouldShowIcons,skipContentClick:e.skipContentClick,onScroll:function(){var Jq=document.getElementById("bottom-sheet-header"),LC=document.getElementById("content-wrapper");if(Jq&&LC){var bW={};bW=(bW["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,bW["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,bW);Jq.className=LC.scrollTop>1?_.qy(bW):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:i2Q,contentWrapperEl:function(Jq){g(Jq);requestAnimationFrame(function(){c(Jq)})},
header:function(){return _.a("div",{el:n},_.a(fbx,{touchstart:I,touchmove:J,touchend:q,title:e.headerTitle,subtitle:e.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:e.headerFn,hasHeaderOverride:e.hasHeaderFn,actionHeader:e.headerActionHeader,hasActionHeader:e.hasHeaderActionHeader}))},
footer:function(){return _.a("div",{el:R},_.a(Yyb,{footerButtonType:e.footerButtonType,leadingLabel:e.footerLeadingLabel,trailingLabel:e.footerTrailingLabel,primaryButton:e.footerPrimaryButton,hasPrimaryButton:e.hasFooterPrimaryButton,secondaryButton:e.footerSecondaryButton,hasSecondaryButton:e.hasFooterSecondaryButton,footerOverride:e.footerFn,hasFooterOverride:e.hasFooterFn}))},
body:function(){return _.a(_.E,{cond:e.hasContentFn,then:function(){var Jq;return _.a("div",{class:O},(Jq=e.contentFn)==null?void 0:Jq.call(e))}})}}))},"Xl").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var jRJ=_.H(function(e){var g=_.Ss().resolve(_.rC);return _.a("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Ve(function(){return void g.closeSheet()})},_.a(_.E,{cond:function(){return!!e.header},
then:function(){return _.a("div",{class:"ytContextualSheetLayoutHeaderContainer"},e.header())}}),_.a(_.E,{cond:function(){return!!e.content},
then:function(){return _.a("div",{class:"ytContextualSheetLayoutContentContainer"},e.content())}}),_.a(_.E,{cond:function(){return!!e.footer},
then:function(){return _.a("div",{class:"ytContextualSheetLayoutFooterContainer"},e.footer())}}))},"Yl");
jRJ.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var ira=_.H(function(e){var g=e.data;var c=_.Ss().resolve(_.xk),k=_.io("yt-sheet-view-model",function(I){if(_.G("web_focus_first_element_sheet")||!_.G("sheet_focus_first_killswitch"))return I.addEventListener("focus",function(){rZQ(I)}),function(){I.removeEventListener("focus",function(){rZQ(I)})}});
e={};return _.a("yt-sheet-view-model",{"on:mousedown":_.Ve(function(I){_.G("sheet_focus_first_killswitch")||I.currentTarget!==I.target&&I.preventDefault()}),
"on:focus":_.Ve(function(){_.G("sheet_focus_first_killswitch")||rZQ(k.value)}),
"on:mouseleave":_.Ve(function(){var I,J=g==null?void 0:(I=g())==null?void 0:I.rendererContext,q;(I=(q=_.x(J,_.WY))==null?void 0:q.onHoverEnd)&&c.resolveCommand(I)}),
class:_.o6("ytSheetViewModelHost",(e.ytSheetViewModelContextual=!0,e.ytSheetViewModelDisableBackdropFilter=_.G("web_disable_backdrop_filter"),e)),el:k,tabindex:-1},_.a(_.E,{cond:g,then:function(I){return _.a(jRJ,{header:function(){return _.a(_.eS,{data:function(){return I().header}},{panelHeaderViewModel:DOb})},
content:function(){return _.a(_.eS,{data:function(){return I().content}},{listViewModel:function(J){return _.a(_.Epl,{data:J.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:Ibm,miniAppScoreChallengeViewModel:JvJ})},
footer:function(){return _.a(_.eS,{data:function(){return I().footer}},{panelFooterViewModel:Wi})}})}}))},"Zl");
ira.idomCompat=!0;_.sL(ira,"yt-sheet-view-model",{props:{data:_.jx}});var mOm=_.H(function(e){var g=function(){var c;return(c=e.data().enableDebuggingFeatures)!=null?c:!1};
return _.a("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.a(_.Yz,{each:function(){var c;return(c=e.data().stickers)!=null?c:[]}},function(c){return _.a(P1d,{data:function(){return c},
debugMode:g})}))},"$l"),P1d=_.H(function(e){var g=_.FA(e,{debugMode:!1}).debugMode,c=_.sz(function(){var n;
return(n=e.data().region)==null?void 0:n.w},0),k=_.sz(function(){var n;
return(n=e.data().region)==null?void 0:n.h},0),I=_.sz(function(){var n;
return(n=e.data().region)==null?void 0:n.x},0),J=_.sz(function(){var n;
return(n=e.data().region)==null?void 0:n.y},0),q=_.Ve(function(){var n=e.data().onTap;
n&&_.GF(n)}),L={};
return _.a("div",{class:_.o6("ytStoriesStickerLayerViewModelSticker",(L.ytStoriesStickerLayerViewModelDebugMode=g,L)),style:_.N2({width:function(){return 100*c()+"%"},
height:function(){return 100*k()+"%"},
left:function(){return 100*I()+"%"},
top:function(){return 100*J()+"%"},
"flex-direction":function(){return msq(e.data().flexDirection)},
"justify-content":function(){return p9S(e.data().justifyContent)},
"align-items":function(){return Tgo(e.data().alignItems)}}),
"on:click":q},_.a(_.eS,{data:function(){return e.data().button||e.data().toggleButton}},{buttonViewModel:function(n){return _.a(_.oD,{data:n.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(n){return _.a(_.vF,{data:n.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"am");var TJT=_.H(function(e){var g=function(){return e.data()},c={},k=_.w(_.Wa(!1,void 0,"LkwKDb")),I=k.next().value,J=k.next().value,q=_.sz(function(){return g().backgroundColor},0);
k=_.sz(function(){return g().actionButtons},[]);
var L=_.sz(function(){return g().stickerLayer},{}),n=_.azA(function(){return g().rendererContext}),R=function(){var b,h;
return{animationRef:c,animationConfig:{autoplay:!1,loop:!1,path:(h=(b=g().foregroundAnimation)==null?void 0:b.url)!=null?h:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){J(!0)},
complete:function(){e.navigateToNextItemOnLottieComplete()}}}},W=function(){var b,h,X,D,f,l,A,d;
return{animationConfig:{autoplay:(l=(b=g().backgroundAnimation)==null?void 0:(h=b.settings)==null?void 0:h.autoplay)!=null?l:!1,loop:(A=(X=g().backgroundAnimation)==null?void 0:(D=X.settings)==null?void 0:D.loop)!=null?A:!1,path:(d=(f=g().backgroundAnimation)==null?void 0:f.url)!=null?d:"",name:"stories_item_background_animation"}}};
_.AV(function(){if(e.isVisible()&&I()){var b;(b=c.lottieEl)==null||b.play();e.animationRef()&&(e.animationRef().lottieEl=c.lottieEl)}else{var h;(h=c.lottieEl)==null||h.stop()}},"dlAj1b");
return _.a("yt-stories-item-view-model",{"aria-label":function(){var b;return(b=n())==null?void 0:b.label},
class:"ytStoriesItemViewModelHost",style:_.N2({"background-color":function(){return _.EY(q())+";"}})},_.a("div",{class:"ytStoriesItemViewModelAssetContent"},_.a(_.E,{cond:function(){return!!g().backgroundAnimation},
then:function(){return _.a(_.Sx,{data:W,animationName:function(){return W().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.a(_.E,{cond:function(){return!!g().backgroundImage},
then:function(){return _.a(_.pv,{data:function(){return g().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.a(_.E,{cond:function(){return!!g().foregroundAnimation},
then:function(){return _.a(_.Sx,{data:R,animationName:function(){return R().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.a(_.E,{cond:function(){return!!g().foregroundImage},
then:function(){return _.a(_.pv,{data:function(){return g().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.a("div",{class:"ytStoriesItemViewModelTopShadow"}),_.a(_.eS,{data:function(){return L()}},{storiesStickerLayerViewModel:mOm})),_.a("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.N2({"background-color":function(){return _.EY(q())}})},_.a("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.a(_.Yz,{each:k},function(b){return _.a(pcr,{storiesButtonData:function(){return b},
pauseAutoNavigation:e.pauseAutoNavigation})}))))},"cm"),lba={style:"overlay",
type:"outline"},pcr=_.H(function(e){var g={};return _.a("div",{class:_.o6("ytStoriesItemViewModelActionButton",(g.ytStoriesItemViewModelStretchedActionButton=function(){return e.storiesButtonData().size==="STORIES_BUTTON_SIZE_STRETCH"},g)),
"on:click":_.Ve(e.pauseAutoNavigation)},_.a(_.eS,{data:function(){return e.storiesButtonData().button}},{buttonViewModel:function(c){return _.a(_.oD,{data:c.data,
buttonOverrides:lba})}}))},"dm");var AvP={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.sL(_.H(function(e){var g=function(){var RA;return(RA=e.data().startIndex)!=null?RA:0},c=_.w(_.uF(g)),k=c.next().value,I=c.next().value;
c=_.w(_.Wa(!1,void 0,"sjy7s"));var J=c.next().value,q=c.next().value,L=function(){var RA;return(RA=e.data().storyItems)!=null?RA:[]},n={},R=_.io("yt-stories-viewer-view-model"),W=function(){return e.data().dismissButton},b=function(){var RA;
return _.WT((RA=_.x(W(),_.$8))==null?void 0:RA.onTap)},h=_.io("div"),X,D,f=!1,l=function(){var RA;
(RA=X)==null||RA.cancel();X=A(k()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});X.onfinish=function(){var Xg=_.x(L()[k()],oJz),Fg,oA;Xg!=null&&Xg.foregroundAnimation&&((Xg==null?0:(Fg=Xg.foregroundAnimation)==null?0:Fg.url)||(Xg==null?0:(oA=Xg.foregroundAnimation)==null?0:oA.payload))||(k()!==L().length-1?(I(k()+1),l()):b()&&_.b3(b()))}},A=function(RA){return h.value.children[RA].children[0]},d=function(){for(var RA=0;RA<k();RA++)A(RA).style.transform=
"scaleX(1)"},S=function(){f||(J()?q(!1):(k()===L().length-1&&b()&&_.b3(b()),A(k()).style.transform="scaleX(1)",k()!==L().length-1&&(I(k()+1),l())))},V=function(){f||(J()?q(!1):(A(k()).style.transform="scaleX(0)",k()!==0&&I(k()-1),l()))},Q=function(){q(!0)},y=function(){A(k()).style.transform="scaleX(1)";
k()!==L().length-1?(I(k()+1),l()):b()&&_.b3(b())};
c=function(){f=!1;D=setTimeout(function(){q(!0);f=!0},300)};
var O=function(){clearTimeout(D);f&&J()&&q(!1)};
_.AV(function(){if(J()){var RA;(RA=X)==null||RA.pause();var Xg;(Xg=n.lottieEl)==null||Xg.pause()}else{var Fg;(Fg=X)==null||Fg.play();var oA;(oA=n.lottieEl)==null||oA.play()}},"vAvZob");
_.AV(function(){d();var RA;(RA=R.value)==null||RA.focus();k()===g()&&l()},"uSlfE");
var Jq=function(RA){RA.key==="ArrowLeft"?V():RA.key==="ArrowRight"&&S()},LC=function(RA){if(RA.target===R.value){(RA=b())&&_.b3(RA);
clearTimeout(D);var Xg;(Xg=X)==null||Xg.cancel();var Fg;(Fg=n.lottieEl)==null||Fg.stop();window.removeEventListener("keydown",Jq);window.removeEventListener("yt-popup-closed",LC)}},bW=function(RA){if(RA.target===R.value){var Xg;
(Xg=R.value)==null||Xg.focus();var Fg;(Fg=n.lottieEl)==null||Fg.play();window.addEventListener("keydown",Jq);window.addEventListener("yt-popup-closed",LC)}};
_.lo(function(){d();l();window.addEventListener("yt-popup-opened",bW)});
return _.a("yt-stories-viewer-view-model",{el:R,class:_.o6("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.a("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.a("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Ve(V),"on:mousedown":_.Ve(c),"on:mouseup":_.Ve(O),"on:mouseleave":_.Ve(O)}),_.a("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Ve(S),"on:mousedown":_.Ve(c),"on:mouseup":_.Ve(O),"on:mouseleave":_.Ve(O)})),
_.a("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.a(_.eS,{data:L},{storiesItemViewModel:function(RA,Xg){var Fg=RA.data;return _.a(_.E,{cond:function(){return Math.abs(Xg()-k())<=1},
then:function(){var oA={};return _.a("div",{class:_.o6("ytStoriesViewerViewModelStoryItem",(oA.ytStoriesViewerViewModelActiveStoryItem=function(){return Xg()===k()},oA))},_.a(TJT,{data:Fg,
pauseAutoNavigation:Q,navigateToNextItemOnLottieComplete:y,isVisible:function(){return Xg()===k()},
animationRef:n}))}})}})),_.a("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:h},_.a(_.Yz,{each:L},function(){return _.a("div",{class:"ytStoriesViewerViewModelProgressBar"},_.a("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.a("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.a(_.pv,{data:AvP,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.a("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.a(_.eS,{data:function(){return e.data().menuButton}},{buttonViewModel:function(RA){return _.a(_.oD,{data:RA.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.a(_.eS,{data:function(){return e.data().muteButton}},{toggleButtonViewModel:function(RA){return _.a(_.vF,{data:RA.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.a(_.eS,{data:W},{buttonViewModel:function(RA){return _.a(_.oD,{data:RA.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"gm"),"yt-stories-viewer-view-model",{props:{data:_.jx}});_.sL(_.H(function(e){var g=e.data;var c=_.io("yt-gen-ai-feedback-form-view-model"),k=[];return _.a("yt-gen-ai-feedback-form-view-model",{el:c,class:"ytGenAiFeedbackFormViewModelHost"},_.a(_.fa,{text:function(){return g().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.a("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.a(_.eS,{data:function(){return g().feedbackChips}},{toggleButtonViewModel:function(I){var J=I.data;
return _.a(_.vF,{data:J,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(q){var L=J();L=_.x(L,_.fP);L=_.x(L==null?void 0:L.defaultButtonViewModel,_.$8).trackingParams;q?k.push(L):(q=k.indexOf(L),q>-1&&k.splice(q,1))}})}})),_.a(_.fa,{text:function(){return g().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.a("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.a(_.eS,{data:function(){return g().submitButton}},{buttonViewModel:function(I){return _.a(_.oD,{data:I.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){lgD(c.value,k,g().uniqueId)}})}}),_.a(_.eS,{data:function(){return g().moreFeedbackButton}},{buttonViewModel:function(I){return _.a(_.oD,{data:I.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"hm"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.jx},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var ii=function(){return _.z.apply(this,arguments)||this};
_.Y(ii,_.z);ii.prototype.created=function(){bwx(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(jrX);var e=_.Ss().resolve(_.zUQ);e&&(e.container=this.ytPopupContainerBehavior);if(e=_.Ss().resolve(_.rC))e.container=this.ytPopupContainerBehavior;if(e=_.Ss().resolve(_.aL)){var g=this.ytPopupContainerBehavior;e.containerWasInjected?_.mN(Error("uj")):e.container=g}};
ii.prototype.ensurePopupBelowPlayer=function(e,g){var c=_.Ss().resolve(_.NN(_.A4));if(!c||!c.isOnWatch()||!_.FE())return!1;c=c.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.CU().height>c+this.getPopupHeight(e,g)?(e.style.top="auto",e.style.bottom="0px"):(e.style.top=c+"px",e.style.bottom="auto");return!0};
ii.prototype.getPopupHeight=function(e,g){g&&(e.cachedPopupHeight=0);if(!e.cachedPopupHeight){g=0;var c=e.clientHeight,k=window.getComputedStyle(e);g+=parseInt(k.marginTop,10);g+=parseInt(k.marginBottom,10);e.cachedPopupHeight=c+g}return e.cachedPopupHeight};
ii.prototype.getElement=function(e){return document.createElement(e)};
_.t([_.m(QxA.YtPopupContainerBehavior),_.B("design:type",Object)],ii.prototype,"ytPopupContainerBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],ii.prototype,"ytComponentBehavior",void 0);_.t([_.bF({disableElementRegistration:!0,is:"ytd-popup-container"})],ii);
_.U(ii,"ytd-popup-container",function(){if(Tj3!==void 0)return Tj3;var e=document.createElement("template");_.P(e,"\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");e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);return Tj3=e},{mode:1});var sRa;var F6p={};F6p.YtLogYpcFlowCommandsBehavior=[_.Nr.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(e){_.x(e,B7D)&&(e=_.x(e,B7D))&&(e.serializedTransactionFlowLoggingParams?_.rXA(e.serializedTransactionFlowLoggingParams):e.serializedYpcCancelFlowLoggingParams?(e=e.serializedYpcCancelFlowLoggingParams)&&SG("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",e):e.serializedYpcResumeFlowLoggingParams?(e=e.serializedYpcResumeFlowLoggingParams)&&SG("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",e):e.serializedYpcPauseFlowLoggingParams?(e=e.serializedYpcPauseFlowLoggingParams)&&
SG("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",e):e.serializedYpcRefundFlowLoggingParams?(e=e.serializedYpcRefundFlowLoggingParams)&&ZAQ("YPC_EVENT_TYPE_START",e):e.serializedYpcDeactivateFlowLoggingParams?(e=e.serializedYpcDeactivateFlowLoggingParams)&&SG("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",e):e.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(e=e.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&SG("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",e))},
handleLogYpcFlowDismiss_:function(e){_.x(e,t5M)&&(e=_.x(e,t5M),e.serializedTransactionFlowLoggingParams?_.aKK(e.serializedTransactionFlowLoggingParams):e.serializedYpcCancelFlowLoggingParams?(e=e.serializedYpcCancelFlowLoggingParams)&&SG("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",e):e.serializedYpcResumeFlowLoggingParams?(e=e.serializedYpcResumeFlowLoggingParams)&&SG("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",e):e.serializedYpcPauseFlowLoggingParams?(e=e.serializedYpcPauseFlowLoggingParams)&&
SG("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",e):e.serializedYpcRefundFlowLoggingParams&&(e=e.serializedYpcRefundFlowLoggingParams)&&ZAQ("YPC_EVENT_TYPE_CANCEL",e))}}];var uDd={};uDd.YtCancelRecurrenceBehavior=[_.hF.YtComponentBehavior,_.zak,{attached:function(){var e=this;gHg(this,function(g,c){return e.ypcCancelRecurrenceHandler(g,c)})},
ypcCancelRecurrenceHandler:function(e,g){var c=this;if(!g||!g.ypcCancelRecurrenceEndpoint)return!1;if(!g.ypcCancelRecurrenceEndpoint.params)return _.zr(Error("um")),!0;_.jl(this.hostElement);var k=_.Yy.instance,I=_.Ss().resolve(_.NN(_.cg));k&&_.fx(k,g)?_.jt(k,g).then(function(J){c.ypcCancelRecurrenceSuccess_(e,g,{data:J})},function(J){c.ypcCancelRecurrenceFailure_(e,g,J)}).thenCatch(function(){_.zr(Error("vm"))}):I?I.requestDataForServiceEndpoint(g).then(function(J){c.ypcCancelRecurrenceSuccess_(e,
g,J)},function(J){c.ypcCancelRecurrenceFailure_(e,g,J)}).thenCatch(function(){_.zr(Error("vm"))}):_.zr(Error("wm"));
return!0},
ypcCancelRecurrenceSuccess_:function(e,g,c){_.iQ(this.hostElement);c.data||(c={data:c});c.data&&c.data.actions&&_.Bm(this.hostElement,c.data.actions,this.hostElement);c.data.messageRenderer?N$7(g.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(g=g.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&SG("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",g);_.oC(e,"yt-service-request-completed",c)},
ypcCancelRecurrenceFailure_:function(e,g,c){_.iQ(this.hostElement);N$7(g.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.oC(e,"yt-service-request-error",{error:c,params:[e,g]})}}];var dOP=function(e,g){_.eK.call(this,g)};
_.Y(dOP,vLO);var zvB={};zvB.YtCompleteTransactionBehavior=[_.hF.YtComponentBehavior,_.zak,{attached:function(){var e=this;gHg(this,function(g,c){return e.ypcCompleteTransactionHandler(g,c)})},
completeTransaction:function(e,g){var c=this;g={payments_payload:window.btoa(g.integratorData),buybucket_params:e.data.buybucketParams,offer_params:e.data.offerParams};var k=_.Ss().resolve(_.cg),I=e.data.completeTransactionEndpoint,J=this.get("ypcCompleteTransactionEndpoint.actions",I);J&&_.Bm(this.hostElement,J,this.hostElement);return(J=_.Yy.instance)&&_.fx(J,I)?_.jt(J,I,g).then(function(q){return!q||(q==null?0:q.error)?(q=c.get("data.serializedTransactionFlowLoggingParams",e),_.q2(new w5("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
q))):{data:q}}).then(function(q){return c.handleCompleteTransactionSuccess_(q,e)},function(){return c.handleCompleteTransactionFailure_(e)}):k.requestDataForServiceEndpoint(I,g).then(function(q){return c.handleCompleteTransactionSuccess_(q,e)},function(){return c.handleCompleteTransactionFailure_(e)})},
handleCompleteTransactionSuccess_:function(e,g){e.data||(e={data:e});if(e.data.messageRenderer)return _.q2(new dOP(e.data.messageRenderer));if(e.data.trackingParams){var c=_.EM(),k=_.RC();c&&k&&_.Yn(c,k,_.Jb(e.data.trackingParams))}g=this.get("data.serializedTransactionFlowLoggingParams",g);V4M(g);return _.No(e)},
handleCompleteTransactionFailure_:function(e){e=this.get("data.serializedTransactionFlowLoggingParams",e);_.ps("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",e);return _.q2(new w5("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",e))},
ypcCompleteTransactionHandler:function(e,g){var c=this;if(!g.ypcCompleteTransactionEndpoint)return!1;if(!g.ypcCompleteTransactionEndpoint.transactionParams)return _.zr(Error("xm")),!0;g.ypcCompleteTransactionEndpoint&&g.ypcCompleteTransactionEndpoint.gtmData&&_.JF(g.ypcCompleteTransactionEndpoint.gtmData);var k=_.Ss().resolve(_.NN(_.cg));if(k){_.jl(this.hostElement);var I=_.Yy.instance;I&&_.fx(I,g)?_.jt(I,g).then(function(J){return!J||(J==null?0:J.error)?(J=c.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
g),_.q2(new w5("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",J))):{data:J}}).then(function(J){_.oC(e,"yt-service-request-completed");
c.ypcCompleteTransactionSuccess_(g,J)},function(){return c.ypcCompleteTransactionFailure_(g)}):k.requestDataForServiceEndpoint(g).then(function(J){_.oC(e,"yt-service-request-completed");
c.ypcCompleteTransactionSuccess_(g,J)},function(){return c.ypcCompleteTransactionFailure_(g)})}return!0},
ypcCompleteTransactionSuccess_:function(e,g){_.iQ(this.hostElement);g.data||(g={data:g});_.Z5(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);g.data.messageRenderer||g.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(e):(_.JF('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",e));g.data.actions&&(e=C6z(g.data.actions),g=ecv(g.data.actions),e.length&&_.tr(this.hostElement,
e),g.length&&_.Bm(this.hostElement,g,this.hostElement))},
ypcCompleteTransactionFailure_:function(e){_.iQ(this.hostElement);_.Z5(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",e,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(e,g,c){if(g=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",g))g={serializedTransactionFlowLoggingParams:g},c&&(g.errorType=c),_.Y2(e,g),_.fB()}}];var HrP={};HrP.YtEndpointHandlerWithYpcBehavior=[_.zak,_.Nr.YtActionHandlerBehavior,[{openWalletDialog:function(e,g,c,k,I,J,q){var L=this,n=_.i6();g=g.replace(/-/g,"+").replace(/_/g,"/");var R=_.ch().get("hl");_.aoK(_.Q5(_.Tb),g,n.resolve,I,function(W){J&&J();n.reject(W)},R,function(W){return L.onServerBackendAnalyticEvent_(e,c,W)},this.onDialogClose_.bind(this),k,q);
return n.promise},
openFixFlowDialog:function(e,g,c,k){e=e.replace(/-/g,"+").replace(/_/g,"/");_.Q5(_.Tb).openFixFlowDialog(e,g,c,k)},
onDialogClose_:function(){_.Z5(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(e,g,c){_.oC(e,"yt-commerce-action-init-done");g&&_.tr(this.hostElement,[g,{backend_analytics:c}])}}],
_.tF.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(e,g){e=this.get("data.nativeFlowEndpoint",g);g=this.get("data.fallbackEndpoint",g);e?_.tr(this.hostElement,[e]):g&&_.oC(this.hostElement,"yt-navigate",{endpoint:g})}}],
uDd.YtCancelRecurrenceBehavior,zvB.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 e=this;gHg(this,function(g,c,k){return e.handleYPCEndpoint(g,c,k)});
this.ypcRegisterActionMapJobId_=_.h2(_.ft,function(){e.registerActionMap(e.buyFlowActionMap_)})},
detached:function(){var e=this;_.ft.cancelJob(this.ypcRegisterActionMapJobId_);_.h2(_.ft,function(){e.unregisterActionMap(e.buyFlowActionMap_)})},
handleYPCEndpoint:function(e,g,c){var k=g.ypcGetCartEndpoint;if(k){_.EV("commerce_transaction");var I=k.gtmId;I&&_.ID(I);(k=k.gtmData)&&_.JF(k)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",g)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(e,g),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",g)!=null?(this.handleYPCFixInstrumentEndpoint_(e,g),!0):g.ypcPauseSubscriptionCommand?(UsO(this.hostElement,e,g,c),
!0):g.ypcResumeSubscriptionCommand?(V9o(this.hostElement,e,g),!0):g.getPaymentInstrumentsParamsCommand?(zxO(this.hostElement,e,g),!0):g.ypcHandleTransactionEndpoint?(uWj(this.hostElement,e,g,c),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(e,g){var c=this;_.Wh("ttcr",void 0,"commerce_transaction");g=g.ypcGetCartEndpoint;var k=g.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,I=k.encryptedPurchaseParams,J=k.serializedTransactionFlowLoggingParams,q=k.serializedPaymentsClientParams,L=this.createGetCartResponseFromParams_(k,g.offerParams,J);this.changeButtonState(e,!0);_.WN(this.openWalletDialog(e,I,k.ypcLogWalletAnalyticDataEndpoint,J,function(){c.changeButtonState(e,!1)},function(){c.changeButtonState(e,
!1)},q).then(function(n){return c.handleBuyFlowCompleteCallback_(e,L,n)},function(){return c.handleOnLoadError(L)}).then(function(n){return void c.handlePostPurchaseSuccess_(e,L,n)},function(n){return void c.handlePostPurchaseError_(n)}),function(){c.changeButtonState(e,!1);
e instanceof Element&&_.oC(e,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(e,g,c){var k=e.completeTransactionEndpoint,I=e.handleTransactionEndpoint;g={data:{offerParams:window.btoa(g),serializedTransactionFlowLoggingParams:c}};I?g.data.handleTransactionEndpoint=I:g.data.completeTransactionEndpoint=k;e.onCartDismissCommand&&(g.data.onCartDismissCommand=e.onCartDismissCommand);return g},
onGetCartServiceRequestCompleted_:function(e,g){var c=this,k=e.target;if(g&&g.data&&g.data.messageRenderer)_.iQ(this.hostElement),this.handleMessageRenderer_(g.data.messageRenderer),this.changeButtonState(k,!1);else{var I=this.get("data.encryptedPurchaseParams",g),J=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",g),q=this.get("data.ypcLogWalletAnalyticDataEndpoint",g),L=this.get("data.serializedPaymentsClientParams",g),n=this.getLoggingParams_(g);if(n||I||J)e.stopPropagation(),_.Wh("ttcr",
void 0,"commerce_transaction"),I||_.iQ(this.hostElement),this.changeButtonState(k,!1),J?_.Z5(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.uo("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:J}}},this]):I&&(this.changeButtonState(k,!0),e=null,e=this.openWalletDialog(k,I,q,n,function(){_.iQ(c.hostElement);c.changeButtonState(k,!1)},function(){_.iQ(c.hostElement);
c.changeButtonState(k,!1)},L),_.WN(e.then(function(R){return c.handleBuyFlowCompleteCallback_(k,g,R)},function(){return c.handleOnLoadError(g)}).then(function(R){return c.handlePostPurchaseSuccess_(k,g,R)},function(R){return c.handlePostPurchaseError_(R)}),function(){c.changeButtonState(k,!1);
_.oC(k,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(e,g){g&&g.endpoint&&g.endpoint.ypcGetCartEndpoint&&!g.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",g.endpoint.ypcGetCartEndpoint)&&_.Bm(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",g.endpoint.ypcGetCartEndpoint)],e.target),_.jl(this.hostElement),this.changeButtonState(e.target,!0))},
onServiceRequestError_:function(e,g){if(g&&g.params&&g.params.length){g=_.w(g.params);for(var c=g.next();!c.done;c=g.next())if((c=c.value)&&c.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",c.ypcGetCartEndpoint)&&_.Bm(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",c.ypcGetCartEndpoint)],e.target);_.iQ(this.hostElement);this.changeButtonState(e.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(e,g,c){var k=c.integratorData;return k==null||k===""||c.error!=null?(k=this.getLoggingParams_(g),String(c.error)==="-1"?(g.data.onCartDismissCommand&&_.Bm(this.hostElement,[g.data.onCartDismissCommand],e),_.q2(new w5("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",k,!0))):_.q2(new w5("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",k))):g.data.handleTransactionEndpoint?dsv(this.hostElement,g.data.handleTransactionEndpoint,{payments_payload:k,funds_guarantee_callback_client_data:c.integratorClientCallbackData}):
this.completeTransaction(g,c)},
handlePostPurchaseSuccess_:function(e,g,c){g=c.data;var k=!1,I,J;if(g&&((I=g.command)==null?0:(J=I.commandExecutorCommand)==null?0:J.commands)){var q,L;I=(q=g.command)==null?void 0:(L=q.commandExecutorCommand)==null?void 0:L.commands;for(q=0;q<I.length;q++)if(_.x(I[q],_.sLq)){k=!0;break}}k||(g&&g.gtmDatas&&g.gtmDatas.length?_.JF(g.gtmDatas[0]):_.JF('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));c.data&&c.data.actions&&(g=C6z(c.data.actions),c=ecv(c.data.actions),g.length&&
_.tr(this.hostElement,g),c.length&&_.Bm(this.hostElement,c,e))},
handlePostPurchaseError_:function(e){e&&e.payload&&e.payload.isUserDismiss||_.jW(Error("zm"))},
handleOnLoadError:function(e){e=this.getLoggingParams_(e);return _.q2(new w5("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",e))},
getLoggingParams_:function(e){return this.get("data.serializedTransactionFlowLoggingParams",e)},
handleMessageRenderer_:function(e){var g=_.A_(e,"renderer"),c=_.uo("openPopupConfig");g==="confirmDialogRenderer"&&c&&_.Z5(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:c.popupTypeMap[g],popup:e}},this])},
handleYPCFixInstrumentEndpoint_:function(e,g){var c=this,k=g.ypcFixInstrumentEndpoint;g=k.encryptedFixInstrumentParameters;this.logFixFopEvent_(k,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(e,!0);this.openFixFlowDialog(g,function(I,J){c.onFixFlowCompleteCallback_(k,I,J)},function(){return c.changeButtonState(e,!1)},function(){c.changeButtonState(e,!1);
c.logFixFopEvent_(k,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(e,g,c){var k=_.Q0("payments.business.integration.scenario.FixInstrument");if(g==k.IntegratorCallbackType.ON_COMPLETE){g="FIX_FOP_EVENT_TYPE_CANCEL";var I=null;c.error!=null?c.error!=k.OnCompleteCallbackError.USER_CANCELLED&&(_.Bm(this.hostElement,[e.errorAction],this.hostElement),g="FIX_FOP_EVENT_TYPE_FAILURE",I="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Bm(this.hostElement,[e.successAction],this.hostElement),g="FIX_FOP_EVENT_TYPE_SUCCESS");_.Bm(this.hostElement,[e.onFinishAction],
this.hostElement);this.logFixFopEvent_(e,g,I)}},
logFixFopEvent_:function(e,g,c){(e=e.serializedFixFopLoggingParams)?(g={eventType:g,serializedFixFopLoggingParams:e},c!=null&&(g.errorType=c),_.Y2("fixFopFlow",g),_.fB()):_.jW(Error("Am"))},
changeButtonState:function(e,g){_.G("enable_ypc_spinners")&&e&&(e.is==="yt-button-renderer"||e.is==="ytd-button-renderer")&&(e.disabled=g)}}];var QRA=function(e){this.JSC$33965_clientRoot=e;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Bgj,"yt-feedback-dialog-requested":t9Q,"yt-signal-action-help":Ng7,"yt-signal-action-send-feedback":Ssq,"yt-send-feedback-action":Kng,"yt-user-feedback-endpoint":O2g};_.zm(_.dF.getInstance(),this.feedbackCollectorActionMap,this.JSC$33965_clientRoot)},UOj;var oam=function(e){this.JSC$33970_clientRoot=e;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":M9D.bind(null,this.JSC$33970_clientRoot),"yt-signal-action-delete-all-downloads":eex,"yt-signal-action-delete-download":goQ,"yt-signal-action-delete-playlist-download":kSv,"yt-signal-action-install-pwa":LFM,"yt-signal-action-refresh-downloads":wNX,"yt-offline-video-endpoint":a7g,"yt-offline-playlist-endpoint":ReQ,"yt-update-local-app-setting-command":WFO,"yt-offline-orchestration-action-command":hex,
"yt-signal-action-undo-delete-download":Jao,"yt-local-watch-history-command":xnv,"yt-signal-action-mark-download-to-mobile-edu-shown":$nD};_.zm(_.dF.getInstance(),this.downloadManagerActionMap,this.JSC$33970_clientRoot);_.Yv.instance=new _.Yv},Zra;var PB=function(){var e=_.z.apply(this,arguments)||this;e.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_"};e.remoteApi_=null;return e};
_.Y(PB,_.z);_.v=PB.prototype;
_.v.ready=function(){_.G("polymer_enable_mdx")&&(WsO({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.G("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.G("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.G("enable_cast_short_lived_lounge_token")}),_.Mz("yt-remote-connection-change",this.handleConnectionChange_,this),_.Mz("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Y1z())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.v.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.v.handleConnectionChange_=function(e){(this.mdxConnected=e)?(e=XOD(),!e&&MUM()&&C3j()&&(e={key:"cast-selector-receiver",name:C3j()}),e=e.name):e=null;this.receiverName=e;_.Fm(this.remoteApi_);(this.remoteApi_=Y1z())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.v.handleReceiverAvailabilityChange_=function(){var e=hNg();MUM()&&_.qk("yt-remote-cast-available")&&e.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=e.length>0};
_.v.handleRemoteQueueChange_=function(){var e=this.currentVideoId_,g=this.currentListId_,c=iz(this.remoteApi_);this.currentVideoId_=c.videoId;this.currentListId_=c.listId;this.currentVideoId_&&_.Z5(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.G("polymer_enable_mdx_queue")?this.currentListId_:null,e,g])};
_.v.handleAddToQueueAction_=function(e){e=_.x(e,tfM);this.remoteApi_&&(e.videoId?this.remoteApi_.addVideo(e.videoId):e.playlistId&&this.remoteApi_.addPlaylist(e.playlistId))};
_.v.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.v.handleInsertInQueueAction_=function(e){e=_.x(e,BXg);this.remoteApi_&&e.videoId&&this.remoteApi_.JSC$20150_insertVideo(e.videoId)};
_.v.handleRemoveFromQueueAction_=function(e){e=_.x(e,NXQ);this.remoteApi_&&e.videoId&&this.remoteApi_.JSC$20150_removeVideo(e.videoId)};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],PB.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u(),_.B("design:type",Object)],PB.prototype,"appId",void 0);_.t([_.u(),_.B("design:type",Boolean)],PB.prototype,"mdxConnected",void 0);_.t([_.u(),_.B("design:type",Boolean)],PB.prototype,"receiverAvailable",void 0);_.t([_.u(),_.B("design:type",Object)],PB.prototype,"receiverName",void 0);_.t([_.u(),_.B("design:type",Object)],PB.prototype,"currentVideoId_",void 0);
_.t([_.u(),_.B("design:type",Object)],PB.prototype,"currentListId_",void 0);_.t([_.Wo({is:"yt-mdx-manager",disableElementRegistration:!0})],PB);_.U(PB,"yt-mdx-manager",void 0,{mode:2});var VwA;var twA;var mS=function(){var e=_.z.apply(this,arguments)||this;e.APP_IDS={ytr:3,ytm:5};e.JSC$23233_timeoutId_=0;e.actionMap={"yt-open-create-family-dialog":"open"};return e};
_.Y(mS,_.z);_.v=mS.prototype;_.v.created=function(){bwx(2200)};
_.v.detached=function(){this.observer_&&this.observer_.disconnect()};
_.v.open=function(e,g){var c=this,k=e.serializedYpcFamilyCreateLoggingParams;this.JSC$23233_timeoutId_=setTimeout(this.abort_.bind(this,e.postFlowErrorEndpoint,k),3E4);g&&(this.onReadyCallback_=g);var I=_.o1(this.hostElement).querySelector("#unicorn-iframe");k&&k&&onj("ypcFamilyCreateFlowStarted",k);_.R2C("family_creation",function(){var J=_.Q0("gapi.family_creation.render");_.Q0("gapi.config.update")("iframes/family_creation/url",c.getFamilyCreationUrlWithUnicornParams_());var q=3;e.appId&&e.appId in
c.APP_IDS&&(q=c.APP_IDS[e.appId]);q={authUser:_.uo("SESSION_INDEX")||0,clientId:q,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.uo("HL"),initialflow:[4,5,6,7],m:c.isMobile?1:0,onFlowComplete:c.onUnicornFlowComplete_.bind(c,e.postFlowSuccessEndpoint,k),onError:c.onUnicornFlowError_.bind(c,e.postFlowErrorEndpoint,k),onReady:c.onUnicornFlowReady_.bind(c,e.referencePcidParams)};J(I,q)})};
_.v.close=function(){_.o1(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.v.onUnicornFlowComplete_=function(e,g){this.close();g&&g&&onj("ypcFamilyCreateFlowSucceeded",g);_.oC(this.hostElement,"yt-navigate",{endpoint:e})};
_.v.onUnicornFlowError_=function(e,g){this.close();g&&onj("ypcFamilyCreateFlowCancelled",g);_.oC(this.hostElement,"yt-navigate",{endpoint:e})};
_.v.onUnicornFlowReady_=function(e){var g=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();e&&_.Q0("gapi.family_creation.setConfig")(0,e);this.observer_=new MutationObserver(function(){_.o1(g.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.o1(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.o1(this.hostElement).querySelector("#dialog").open()};
_.v.getFamilyCreationUrlWithUnicornParams_=function(){return _.uo("YTR_FAMILY_CREATION_URL")};
_.v.getCurrentUrl_=function(){return document.location.href};
_.v.abort_=function(e,g){this.clearTimeout_();this.onUnicornFlowError_(e,g)};
_.v.clearTimeout_=function(){clearTimeout(this.JSC$23233_timeoutId_)};
_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],mS.prototype,"ytActionHandlerBehavior",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],mS.prototype,"isMobile",void 0);_.t([_.u(),_.B("design:type",Object)],mS.prototype,"onReadyCallback_",void 0);_.t([_.u(),_.B("design:type",Object)],mS.prototype,"observer_",void 0);_.t([_.Wo({is:"yt-create-family-dialog",disableElementRegistration:!0})],mS);
_.U(mS,"yt-create-family-dialog",function(){if(twA===void 0){var e=document.createElement("template");_.P(e,'\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');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);var g=e.content,c=g.insertBefore;VwA===void 0&&(VwA=document.createElement("template"));var k=VwA;c.call(g,k.content.cloneNode(!0),e.content.firstChild);twA=e}e=twA;return e},{mode:2});var BJm;var NJj;var pF=function(){var e=_.z.apply(this,arguments)||this;e.STEP=1;e.BLOCK_ON=80;e.MIN_PROGESS=0;e.MAX_PROGESS=100;return e};
_.Y(pF,_.z);_.v=pF.prototype;_.v.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.v.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.Ss().addProvider({provide:SBX,useValue:this})};
_.v.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.v.finish=function(){var e=this;this.progress=this.MAX_PROGESS;YR7(function(){e.progress==e.MAX_PROGESS&&(e.hostElement.hidden=!0)})};
_.v.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Bd.Object.defineProperties(pF.prototype,{progress:{configurable:!0,enumerable:!0,set:function(e){this.progress_=e;var g="scaleX("+e/this.MAX_PROGESS+")",c=_.o1(this.hostElement).querySelector("#progress").style;c.transform=g;c.webkitTransform=g;this.hostElement.setAttribute("aria-valuenow",String(e))},
get:function(){return this.progress_}}});
_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],pF.prototype,"ytComponentBehavior",void 0);_.t([_.Wo({is:"yt-page-navigation-progress",disableElementRegistration:!0})],pF);
_.U(pF,"yt-page-navigation-progress",function(){if(NJj===void 0){var e=document.createElement("template");_.P(e,'\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');e.content.insertBefore(_.N().content.cloneNode(!0),
e.content.firstChild);var g=e.content,c=g.insertBefore;BJm===void 0&&(BJm=document.createElement("template"));var k=BJm;c.call(g,k.content.cloneNode(!0),e.content.firstChild);NJj=e}e=NJj;return e},{mode:2});var Syr={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"},yva={"font-size":"12px","font-style":"italic"},K6p={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.PV7=function(){return _.r(function(e){_.Uh(e)})};var Ord=_.H(function(e){var g=function(){return e.data().subtext},c={};
return _.a("snackbar-view-model",{class:_.o6("snackbarViewModelHost",e.className)},_.a("div",{class:_.o6("snackbarViewModelEngagementBarWrapper",e.className)},_.a(_.E,{cond:function(){return e.data().image},
then:function(k){return _.a(_.pv,{data:k,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.a(_.E,{cond:function(){return e.data().imageContent},
then:function(){return _.a("div",{class:"snackbarViewModelAvatarContainer"},_.a(_.eS,{data:function(){return e.data().imageContent}},{decoratedAvatarViewModel:_.WG}))}}),_.a("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.a("div",{class:_.o6((c.snackbarViewModelTitle=!0,c.snackbarViewModelTitleWithSubtext=g,c))},_.a(_.fa,{text:function(){return e.data().text}})),_.a(_.E,{cond:g,
then:function(){return _.a("div",{class:"snackbarViewModelSubtext"},_.a(_.fa,{text:function(){return g()}}))}})),_.a(_.E,{cond:function(){return e.data().buttons},
then:function(){return _.a("div",{class:"snackbarViewModelButtonClassWrapper"},_.a(_.eS,{data:function(){return e.data().buttons}},{buttonViewModel:function(k){return _.a(_.oD,{data:k.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:e.target})}}))}})))},"im");_.sL(_.H(function(){function e(d,S,V){D(d);l(V);h("in");W(!0);g(d,S);q=setTimeout(function(){c()},S)}
function g(d,S){var V,Q=(V=d.text)==null?void 0:V.content;d=_.nV(d.rendererContext);Q&&(S={label:Q,command:d,durationMs:S},_.Ss().resolve(_.hE).enqueue(S))}
function c(d){h("out");d&&clearTimeout(q)}
function k(){c(!0)}
function I(d){if(d){var S=d.snackbarViewModel,V=d.durationMs,Q=d.target;V||(V=3E3);S&&(d=_.Ss().resolve(_.NN(_.W8)))&&d.enqueue({isOpened:R,open:function(){e(S,V,Q)},
close:c},0)}}
var J=_.PV("snackbar-container"),q=void 0,L=_.w(_.Wa(!1,void 0,"mDc5N")),n=L.next().value;L=L.next().value;var R=n,W=L;n=_.w(_.Wa("out",void 0,"FpOs5e"));var b=n.next().value,h=n.next().value;n=_.w(_.Wa(void 0,void 0,"jIDRob"));var X=n.next().value,D=n.next().value;n=_.w(_.Wa(void 0,void 0,"kOA3Mb"));var f=n.next().value,l=n.next().value,A=_.Ve(function(){if(b()==="out"){W(!1);D(void 0);l(void 0);var d=_.Ss().resolve(_.NN(_.W8));d&&ZQg(d,0)}});
_.lo(function(){var d=_.Ss().resolve(_.NN(_.nU7));d&&(d.showSnackbarFn=I,d.closeSnackbarFn=k)});
return _.a("snackbar-container",{class:"ytSnackbarContainerHost",el:J},_.a(_.E,{cond:function(){return R()&&!!X()},
then:function(){var d={};return _.a("div",{class:_.o6("ytSnackbarContainerSnackbarContainer",(d.ytSnackbarContainerMobile=!1,d.ytSnackbarContainerPivotBar=function(){var S;return!((S=_.Ss().resolve(_.NN(_.Rhl)))==null||!S())},d.ytSnackbarContainerOpened=function(){return R()&&b()==="in"},d.ytSnackbarContainerClosed=function(){return R()&&b()==="out"},d)),
"on:animationend":A},_.a(Ord,{data:function(){return X()},
target:function(){return f()}}))}}))},"jm"),"snackbar-container");_.sL(_.sew,"yt-tooltip");var Mwp=_.EFD.ephemeralActionSelector;_.sL(_.H(function(){var e=_.M2(Mwp);return _.a("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var g;return(g=e())==null?void 0:g.announcement})},"km"),"yt-ephemeral-actions");var SRg=new Map;var TYo=function(e,g){var c=this;this.handleError=e;this.logEventInternal=g;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){c.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
TYo.prototype.logError=function(e){this.handleError(e)};
TYo.prototype.logEvent=function(e,g){switch(e){case "IDB_DATA_CORRUPTED":_.G("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",g);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",g);break;case "IS_SUPPORTED_COMPLETED":_.G("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",g);break;case "QUOTA_EXCEEDED":C1J(this,g);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",g);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":e=Object.assign({},g,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",e)}};
var C1J=function(e,g){_.Gg.getInstance().estimate().then(function(c){c=Object.assign({},g,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:KFj(c==null?void 0:c.usage),deviceStorageQuotaMbytes:KFj(c==null?void 0:c.quota)});e.logEventInternal("idbQuotaExceeded",c)})};var ehb=_.H(function(e){var g=_.io("yt-draggable"),c=e.onDrag,k=e.onDragStart,I=e.onDragEnd,J=_.FA(e,{allowClicks:!1,dragThreshold:5}),q=J.dragThreshold,L=J.allowClicks;e=J.children;J=J.className;var n=void 0,R=void 0,W=new _.pr(0,0),b=!1;_.lo(function(){n=new _.XG(g.value);R=new _.ya(X);h(n,R);if(L()){_.dR4(n,q());var f;(f=g.value)==null||f.addEventListener("click",D,{capture:!0})}_.sX(function(){var l;(l=n)==null||l.dispose();if(L()){var A;(A=g.value)==null||A.removeEventListener("click",D,{capture:!0})}})});
var h=function(f,l){_.iK(f,"earlycancel",function(){L()&&(b=!1)});
_.iK(f,"start",function(A){k==null||k(A);A.defaultPrevented||L()&&(b=!0)});
_.iK(f,"beforedrag",function(A){n&&R&&(A.preventDefault(),W=new _.pr(A.clientX-n.startX,A.clientY-n.startY),R.start())});
_.iK(f,"end",function(){l.stop();I==null||I();W=new _.pr(0,0)})},X=function(){W&&c(W)},D=function(f){b&&(b=!1,f.stopPropagation(),f.preventDefault())};
return _.a("yt-draggable",{el:g,class:_.o6("ytDraggableComponentHost",J)},e)},"lm");var gUr=_.H(function(e){var g=_.w(_.Wa(0,void 0,"Qf0tbc")),c=g.next().value,k=g.next().value;g=function(I){var J={},q={};return _.a(ehb,{className:_.o6("ytdMiniplayerComponentResizer",(J.ytdMiniplayerComponentResizerDisabled=function(){return I===e.horizontalAlignment()||I===e.verticalAlignment()},J.ytdMiniplayerComponentResizerNorth=I==="north",J.ytdMiniplayerComponentResizerEast=I==="east",J.ytdMiniplayerComponentResizerSouth=I==="south",J.ytdMiniplayerComponentResizerWest=I==="west",J)),
onDragStart:function(){k(e.currentMiniplayerSize());if(e.onResizeStart)e.onResizeStart()},
onDrag:function(L){I!=="north"&&I!=="west"||L.scale(-1);var n;L=(n=I==="north"||I==="south")?L.y:L.x;var R=e.currentAspectRatio();n&&R>=1?L*=R:!n&&R<1&&(L/=R);n=L;e.onResize(c()+n)}},_.a("div",{class:_.o6("ytdMiniplayerComponentResizerCorner",(q.ytdMiniplayerComponentResizerNorthCorner=I==="north",q.ytdMiniplayerComponentResizerEastCorner=I==="east",q.ytdMiniplayerComponentResizerSouthCorner=I==="south",q.ytdMiniplayerComponentResizerWestCorner=I==="west",q))}))};
return _.a("div",{class:"ytdMiniplayerComponentResizers"},g("north"),g("east"),g("south"),g("west"))},"mm");var cdd=16/9;_.sL(_.H(function(){var e=_.io("ytd-miniplayer"),g=_.w(_.Wa(new _.T6(NaN,NaN),void 0,"i8Divd")),c=g.next().value,k=g.next().value;g=_.w(_.Wa(!1,void 0,"M0mb9d"));var I=g.next().value,J=g.next().value;g=_.w(_.Wa(!1,void 0,"U2besf"));var q=g.next().value,L=g.next().value;g=_.w(_.Wa(!1,void 0,"oMkCO"));var n=g.next().value,R=g.next().value;g=_.w(_.Wa(!1,void 0,"LLG3Bf"));var W=g.next().value,b=g.next().value;g=_.w(_.Wa(!1,void 0,"m7HPQe"));var h=g.next().value,X=g.next().value;g=_.w(_.Wa(!1,void 0,"jUGfuc"));
var D=g.next().value,f=g.next().value;g=_.w(_.Wa(cdd,void 0,"LkUsDe"));var l=g.next().value,A=g.next().value,d=_.w(_.Wa(!1,void 0,"xKE3oe"));g=d.next().value;var S=d.next().value;d=_.w(_.Wa(!1,void 0,"QQ32Je"));var V=d.next().value,Q=d.next().value;d=_.w(_.Wa(void 0,void 0,"LRAn3"));var y=d.next().value,O=d.next().value;d=_.w(_.Wa(aJ()?"west":"east",void 0,"ZPTxkd"));var Jq=d.next().value,LC=d.next().value;d=_.w(_.Wa("south",void 0,"XYTr4"));var bW=d.next().value,RA=d.next().value;d=_.w(_.Wa(400,
void 0,"hJycJe"));var Xg=d.next().value,Fg=d.next().value;d=_.Ss().resolve(_.xt).miniplayerPropSignalMap[0];var oA=d.data,Zt=d.externalPlaylistData,Ev=d.playabilityStatus,an=d.isReadyToResume,V6=d.isDisabled,bs=d.watchWhile,f1=d.playerVe,hk=d.expandVe,Pq=d.closeVe,vq=d.readyToResumeVe,hq=d.readyToResumeCloseVe,zv=d.repositionVe,XM=d.resizeVe;d=_.w(_.uF(an));var Su=d.next().value,p1=d.next().value,C1=_.M2(_.Yu.persistentPanelVisibleSelector),mz=!1,Ov=!1,Rx;_.lo(function(){k(_.CU());e.value.addEventListener("animationend",
function(on){on.target===e.value&&(X(!1),f(!1))});
cUD(e.value)});
_.QV("yt-window-resized",function(on){on&&k(on)});
var V4=function(){Rx&&A(Rx.getVideoAspectRatio())},to=function(){if(Rx){var on=Rx.getPlayerState()===1;
Su()&&on&&p1(!1)}},L1=function(){var on=hk();
if(on){var ng=_.EM(3);ng&&_.m7(ng,on)}},Wq=function(){var on=Pq(),ng=hq();
on&&_.m7(_.EM(3),on);an()&&ng&&_.m7(_.EM(3),ng)};
_.QV("yt-activate-miniplayer",function(on){var ng;return _.r(function(MM){if(MM.nextAddress==1)return I()?MM.return():MM.yield((ng=_.Ss().resolve(_.xt).getPlayerElement())==null?void 0:ng.getPlayerPromise(),2);Rx=MM.yieldResult;if(!Rx)return MM.return();!V()&&_.G("kevlar_watch_while_v2")&&(RA(on&&!_.G("kevlar_watch_while_bottom_align")?"north":"south"),LC(aJ()?"west":"east"));var I3=Rx;I3.addEventListener("onVideoDataChange",V4);I3.addEventListener("onStateChange",to);I3.addEventListener("onExpandMiniplayer",
L1);I3.addEventListener("onCloseMiniplayer",Wq);A(Rx.getVideoAspectRatio());J(!0);gbz()||X(!0);_.Uh(MM)})});
_.QV("yt-deactivate-miniplayer",function(on,ng){return _.r(function(MM){if(!I())return MM.return();J(!1);p1(!1);f(on);b(!1);L(!1);if(Rx){var I3=Rx;I3.removeEventListener("onVideoDataChange",V4);I3.removeEventListener("onStateChange",to);I3.removeEventListener("onExpandMiniplayer",L1);I3.removeEventListener("onCloseMiniplayer",Wq)}gbz()||ng?ng&&X(!1):X(!0);_.Uh(MM)})});
var Ww=function(){return!(bs()&&_.G("kevlar_watch_while_modern"))},Bw=function(){var on;
return!((on=Zt())==null||!on.contents)},Uv=function(){var on=Xg();
var ng=c();ng=Math.min(Math.min(ng.width,ng.height)-32,720);var MM=l(),I3=Ww(),kF=Bw()&&q(),F1=Math.min(on,ng);on=new _.T6(192,I3?116:192);MM=new _.T6(kF?cdd:MM,1);F1=new _.T6(F1,I3?F1-76:F1);F1=MM.aspectRatio()>F1.aspectRatio()?F1.width/MM.width:F1.height/MM.height;MM=MM.scale(F1);on.width<=MM.width&&on.height<=MM.height||(on=MM.aspectRatio()<=on.aspectRatio()?on.width/MM.width:on.height/MM.height,MM.scale(on),MM.width=Math.min(MM.width,ng),MM.height=Math.min(MM.height,ng));return new _.T6(MM.width,
_.Pc(192,MM.height+vbo(I3,kF),720))},jz=function(){var on=Uv(),ng=Ww(),MM=Bw()&&q();
return new _.T6(on.width,on.height-vbo(ng,MM))},J0=function(){var on=function(ng){ng.target===e.value&&W()&&(b(!1),e.value.removeEventListener("transitionend",on))};
gbz()||(e.value.addEventListener("transitionend",on),b(!0));L(!q())};
_.AV(function(){var on=f1(),ng=_.EM(3),MM=_.RC(3);if(ng&&MM&&on){_.Yn(ng,MM,on);MM=zv();var I3=XM(),kF=hk(),F1=Pq(),Uu=hq();kF&&F1&&Uu&&(_.fA(ng,on,[kF,F1,Uu]),_.iB(ng,[kF,F1]));MM&&I3&&_.fA(ng,on,[MM,I3])}},"UatZXe");
_.AV(function(){var on=vq();if(on){var ng=_.EM(0),MM=_.RC(0);ng&&MM&&(_.Yn(ng,MM,on),_.iB(ng,[on]))}},"kTR4R");
d={};return _.a("ytd-miniplayer",{el:e,class:_.o6("ytdMiniplayerComponentHost",(d.ytdMiniplayerComponentVisible=function(){return(I()||h())&&!(bs()&&_.G("kevlar_watch_while_counterfactual"))},d.ytdMiniplayerComponentAnimatingSnap=n,d.ytdMiniplayerComponentAnimatingPlaylistExpand=W,d.ytdMiniplayerComponentAnimatingFade=h,d),function(){if(h()){var on=bW();
var ng=I(),MM=D();on=ng?on==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":MM?on==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":on==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else on="";return on}),
style:_.N2({top:function(){return bW()==="north"?"16px":""},
right:function(){var on=Jq(),ng=C1();ng=(ng===void 0?0:ng)&&!aJ()?400:0;return on==="east"?16+ng+"px":""},
bottom:function(){return bW()==="south"?"16px":""},
left:function(){var on=Jq(),ng=C1();ng=(ng===void 0?0:ng)&&aJ()?400:0;return on==="west"?16+ng+"px":""},
width:function(){return Uv().width+"px"},
height:function(){return Uv().height+"px"},
transform:function(){var on=y();return on?"translate("+on.x+"px, "+on.y+"px)":""}})},_.a("div",{class:"ytdMiniplayerComponentContent"},_.a(ehb,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(on){var ng=JUl(Jq(),bW(),c(),Uv(),y()),MM=jz();Math.abs(on.clientY-(ng.y+MM.height))>15?(S(!0),on=_.EM(3),ng=zv(),mz||(mz=!0,on&&ng&&_.iB(on,[ng])),on&&ng&&_.m7(on,ng)):on.preventDefault()},
onDrag:function(on){O(on)},
onDragEnd:function(){var on=k3j(JUl(Jq(),bW(),c(),Uv(),y()),c(),Uv()),ng=I2q(Jq(),bW(),c(),Uv(),C1()),MM=I2q(on.horizontalAlignment,on.verticalAlignment,c(),Uv(),C1());MM=new _.pr(MM.x-ng.x,MM.y-ng.y);var I3;ng=ng.y+(((I3=y())==null?void 0:I3.y)||0)+Uv().height/2;var kF=function(){Jq()===on.horizontalAlignment&&bW()===on.verticalAlignment||Q(!0);LC(on.horizontalAlignment);RA(on.verticalAlignment);O(void 0)},F1=function(Uu){Uu.target===e.value&&n()&&(R(!1),kF(),e.value.removeEventListener("transitionend",
F1))};
S(!1);bW()==="south"&&ng>c().height?(kF(),_.Ss().resolve(_.xt).close()):(e.value.addEventListener("transitionend",F1),R(!0),O(MM))}},_.a(_.E,{cond:I,
then:function(){return _.a(_.TK7,{isDisabled:V6,playabilityStatus:Ev,size:jz})}}),_.a(_.E,{cond:Ww,
then:function(){return _.a(_.mzD,{isReadyToResume:Su,data:oA,expanded:q,onExpandClick:J0,playlistData:Zt})}}),_.a(_.E,{cond:g,
then:function(){return _.a("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.a(_.E,{cond:function(){return Bw()&&q()||W()},
then:function(){return _.a(_.nWX,{className:"ytdMiniplayerComponentPlaylistPanel",data:Zt,hideHeaderText:!0,withinMiniplayer:!0})}})),_.a(gUr,{onResize:function(on){Fg(_.Pc(192,on,720))},
onResizeStart:function(){var on=_.EM(3),ng=XM();Ov||(Ov=!0,on&&ng&&_.iB(on,[ng]));on&&ng&&_.m7(on,ng)},
currentAspectRatio:l,currentMiniplayerSize:Xg,horizontalAlignment:Jq,verticalAlignment:bW}))},"pm"),"ytd-miniplayer",{});var k1j=_.Yu.persistentPanelVisibleSelector,Tw=function(){var e=_.z.apply(this,arguments)||this;e.tabGesturesIsActive=!1;e.persistentPanelEnabled=_.G("enable_ai_companion");e.hasDelegation=!1;e.isFrostedGlassInitialized=!1;e.frostedGlassExp=_.G("web_frosted_glass");e.hasPendingWatchNavigation=!1;e.mastheadHiddenFocusWithinKillswitch=_.G("web_masthead_hidden_focus_within_killswitch");e.clientOnlyWizTooltipsEnabled=_.G("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
e.scrollAtTopInternal=!0;e.guideScrollTop=0;e.isTheaterModeSession=_.dH("START_IN_THEATER_MODE");e.iMaxTheaterMode=_.G("web_watch_imax_theater_mode");e.isFullWindowSession=_.dH("START_IN_FULL_WINDOW_MODE");e.hasCreateFamilyDialog=!1;e.mastheadHeight=56;e.networkStatusManager=new _.zI;e.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"};e.dynamicActionMap={"yt-run-attestation-command":function(g){var c=_.M00.instance,k=_.x(g,_.tpq);return k?_.G("use_rta_manager_for_async")&&
(_.G("attmusi")&&_.G("attmusi_ue")?window.attmp:IHo())?EHQ(c,k,g.clickTrackingParams):RtQ(c,k,g.clickTrackingParams):_.q2(Error("si"))}};
e.isFrostedGlassDisabled=!1;e.isChannelOrPlaylistPage=!1;return e};
_.Y(Tw,_.z);_.v=Tw.prototype;_.v.created=function(){var e=_.Ss();_.G("kevlar_clear_duplicate_pref_cookie")&&_.h2(_.ft,function(){var g=_.Lf.get("PREF");g&&!/f\d=/.test(g)&&(g=_.C4("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=g?"PREF=null;domain="+g+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.G("gzip_gel_with_worker")&&_.AsK();_.G("jspb_serialize_with_worker")&&URq();_.G("web_worker_availability_check")&&yav();_.G("nwl_init_killswitch")||HMg().then(function(){_.ft.addLowPriorityJob(mH0)});
this.pageManagerAttachedPromise=_.i6();this.ytdAppBehavior.loadDepsPromise=_.ER([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.BT(this.onThrottledScroll,200,this);_.G("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);lHQ();IPX=!!_.Q0("ytappsettings.initialized");Dc0=_.Q0("ytappsettings.previousValue");$cS=_.Q0("ytappsettings.previousSnapshotTime");IPX||(IPX=!0,YVO());KsD();OxD();_.Fq("DEFERRED_DETACH",
_.G("kevlar_tuner_should_defer_detach"));_.Fq("REUSE_COMPONENTS",!0);_.Fq("STAMPER_STABLE_LIST",!0);_.Fq("SCHEDULED_LAZY_LIST",!0);_.Fq("openPopupConfig",fzx);_.Fq("useClickHandler",!0);_.G("kevlar_shell_cleanup")&&_.ft.addLowPriorityJob(J5D.bind(this,_.kp.caches));_.dH("IS_SHELL_LOAD")&&_.nA({shellStartupDurationMs:Math.round((0,_.yr)()-oz())});l7j(this.networkStatusManager);_.G("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",f7S(Syr)),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!",
f7S(yva)),console.log("%cVisit http://go/join-youtube-web to apply today.",f7S(K6p)));CvS(e.resolve(_.dNQ),1E3)};
_.v.ready=function(){var e=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var g=wmj();g&&!_.G("external_fullscreen_killswitch")&&document.addEventListener(g,this.setFullscreen.bind(this));(g=window.matchMedia("(prefers-color-scheme: dark)"))&&g.addEventListener&&g.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(g=_.Ss().resolve(_.NN(_.ONu)))g.subscribe("navigation-start",
function(c){c.destinationPageSubtype==="watch"&&(e.hasPendingWatchNavigation=!0)}),g.subscribe("navigation-end",function(c){c.destinationPageSubtype==="watch"&&(e.hasPendingWatchNavigation=!1)})};
_.v.attached=function(){var e=this;_.iE().processSignal("ci");_.G("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.d5v?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.M1(_.fUv(),"SUCCESS");this.updateIconSet();_.uc(this.guideInnerContent,!1);_.MG().initVisibilityObserver();this.guideService.guideElement=this.guide;var g=document.createElement("ytd-miniplayer"),c=_.o1(this.hostElement).querySelector("#content");
_.o1(this.hostElement).insertBefore(g,c);_.iE().processSignal("ma");_.Ss().resolve(_.xt).init(g);this.persistentPanelEnabled&&HQ7(this.persistentPanelContainer,"APP");_.dH("IS_SHELL_LOAD")&&(c=document.createElement("ytd-network-status-banner"),_.o1(this.hostElement).insertBefore(c,g));_.G("kevlar_right_click_on_lockups")&&_.xL._onCaptureClick&&document.addEventListener("contextmenu",_.xL._onCaptureClick.bind(_.xL),!0);var k=function(){var I=_.l7("yt-page-navigation-progress");_.o1(e.hostElement).appendChild(I)};
setTimeout(function(){_.iE().parkOrScheduleJob(k,0,"eocs",16)},0);
_.G("service_worker_push_enabled")&&_.h2(_.ft,Uco);_.zm(_.dF.getInstance(),this.dynamicActionMap,this.hostElement);_.oC(this.hostElement,"ytd-app-attached");_.iE().processSignal("aa");BED(this.hostElement);_.BQ("gapi.load",_.R2C);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.h2(_.ft,
function(){var I=document.createElement("ytd-video-preview");_.o1(_.o1(e.hostElement).querySelector("#video-preview")).appendChild(I)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.h2(_.ft,function(){mnQ();e.registerWithViewTransitionManager()});
if(_.$v()&&this.isAppDarkTheme()!==_.xv())this.onDarkModeToggledAction();else g=_.Du()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==g&&(_.G("enable_dark_theme_only_on_shorts")?_.Gb(_.G("enable_dark_theme_only_on_shorts_control")?window.location.href:_.t_(window.location.href,{theme:"dark"})):_.mN(new _.E2("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(mAO=new POg(this.hostElement)),Zra=new oam(this.hostElement),UOj=new QRA(this.hostElement),S30=new NUz(this.hostElement)};
_.v.getThemeSettingsToLog=function(){var e=_.Du()==="USER_INTERFACE_THEME_DARK";e=_.$v()?_.xv()?"os-dark":"os-light":e?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:e,cookiesEnabled:_.a$()}};
_.v.detached=function(){_.dE(this.guideInnerContent);_.ft.cancelJob(doD);doD=0;_.ft.cancelJob(UoM);UoM=0;_.tUg(tVl);tVl.length=0;ofO=_.cpC=null;_.MG().dispose();_.G("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Hy(_.dF.getInstance(),mAO.playlistHandlerActionMap,mAO.JSC$33524_clientRoot);_.Hy(_.dF.getInstance(),Zra.downloadManagerActionMap,Zra.JSC$33970_clientRoot);_.Hy(_.dF.getInstance(),UOj.feedbackCollectorActionMap,UOj.JSC$33965_clientRoot);
for(var e=_.w(S30.eventListeners),g=e.next();!g.done;g=e.next()){var c=_.w(g.value);g=c.next().value;c=c.next().value;c=_.w(c);for(var k=c.next();!k.done;k=c.next()){var I=_.w(k.value);k=I.next().value;I=I.next().value;g.removeEventListener(k,I)}}_.Hy(_.dF.getInstance(),S30.autonavPauseActionMap,S30.JSC$21690_clientRoot)};
_.v.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.ch().getFlag(186)};
_.v.computeIsInlinePreviewEnabled=function(e,g,c){return!c&&ki7({miniplayerIsActive:e,miniplayerPlaybackState:g})};
_.v.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Hh({type:"SET_FROSTED_GLASS_MODE",payload:!_.G("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.v.computeIsFrostedGlassDisabled=function(e,g,c,k){return e||g||c||k&&_.G("web_frosted_glass_disable_watch")};
_.v.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.G("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.v.computeIsHomePage=function(e,g){if(!e||g==null||!g.endpoint)return!1;var c;return((c=_.x(g.endpoint,_.KU))==null?void 0:c.browseId)==="FEwhat_to_watch"};
_.v.updateIsChannelOrPlaylistPage=function(){if(_.G("web_frosted_glass")){var e,g,c=(g=(e=_.Ss().resolve(_.NN(_.A4)))==null?void 0:e.getCurrentPage())==null?void 0:g.pageSubtype;this.isChannelOrPlaylistPage=c?["channel","channels","playlist"].includes(c):!1}};
_.v.scheduleFrostedGlassInitialization=function(){var e=this;_.G("web_frosted_glass")&&_.iE().parkOrScheduleJob(function(){e.isFrostedGlassInitialized=!0},0,n9(["eocs",
"cr"]),300)};
_.v.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.zKq(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Hh({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Hh({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.v.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(VRv(!0))};
_.v.onYtSignalActionRequestPersistentStorage=function(){if(!_.G("request_persistent_storage_killswitch")){var e=_.Ss().resolve(_.vzS);e.cachedPersistStatePromise||(e.cachedPersistStatePromise=cD7())}};
_.v.handleYtChannelCreationFormEndpoints=function(e){e&&this.ytComponentBehavior.resolveCommand(e)};
_.v.handleShowEngagementPanelEndpoint=function(e){e&&this.ytComponentBehavior.resolveCommand(e)};
_.v.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(VRv(!1))};
_.v.initIconDefs=function(e,g){var c=document.createElement("iron-iconset-svg");c.name=e;e=document.createElementNS("http://www.w3.org/2000/svg","svg");c.appendChild(e);e.appendChild(g);document.body.appendChild(c);return c};
_.v.onWindowResized=function(){_.Z5(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var e=_.Zy.getInstance();e.documentWidth_=document.body.clientWidth;l2v(e)};
_.v.onWindowScrolled=function(){var e=_.Ss().resolve(_.A4).getCurrentPage();if(e!=null&&e.getScrollTop){var g=this.ytdReduxBehavior,c=g.dispatch;e=e.getScrollTop()<=0;c.call(g,_.Hh({type:"SET_SCROLL_AT_TOP",payload:e}))}};
_.v.guideIsVisibleButNotPersistentSelectorChanged=function(){var e=_.Ss().resolve(_.A4).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=e.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"),
e.setScrollTop(this.guideScrollTop));_.V1(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.v.getCurrentPageScrollableElementType=function(){var e=_.Ss().resolve(_.A4).getCurrentPage();if(e&&e.getPageScrollingElement())return e.getPageScrollingElement().nodeName};
_.v.observeGuideVisibility=function(){var e=_.Zy.getInstance(),g=this.miniGuideVisible;e.guidePersistentAndVisible_=this.guidePersistentAndVisible;e.miniGuideVisible_=g;l2v(e)};
_.v.observePersistentPanelVisibility=function(){var e=_.Zy.getInstance();e.persistentPanelVisible_=this.persistentPanelVisible;l2v(e)};
_.v.handleEduDismissAction=function(e){e&&e.eduDismissAction&&(_.Z5(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.UgI.getInstance(),_.UH.set(e.eduDismissAction.key+"-dismissed",!0))};
_.v.handleEduImpressionAction=function(e){if(e&&e.eduImpressionAction){var g=_.UgI.getInstance();e=e.eduImpressionAction.key;g.JSC$13502_eduDisplayedThisLoad_[_.QUw[e].setKey||e]=!0;_.UH.set(e+"-impression",parseInt(_.UH.get(e+"-impression")||0,10)+1)}};
_.v.onYtSignalActionConfirmMentionsEdu=function(){_.Z5(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.t$.getInstance();_.Vq.set("edu-dismissed",!0)};
_.v.onYtSignalActionRecordMentionsEduImpression=function(){_.t$.getInstance();var e=_.Vq.set,g=parseInt(_.Vq.get("edu-impressions"),10);e.call(_.Vq,"edu-impressions",(isFinite(g)?g:0)+1)};
_.v.onYtPageManagerAttached=function(e){var g;((g=_.A3(e))==null?void 0:g.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.v.onInvokeInstrumentManagerAction=function(e,g){e6M(g,e)};
_.v.updateIconSet=function(){var e=this.hostElement.querySelector("#masthead");if(e){var g=_.Zu(e),c=g.querySelector("g#yt-logo-updated");c&&(e=document.createElementNS("http://www.w3.org/2000/svg","defs"),e.appendChild(c.cloneNode(!0)),(g=g.querySelector("g#yt-logo-red-updated"))&&e.appendChild(g.cloneNode(!0)),this.initIconDefs("yt-logos-ext",e))}};
_.v.updateMastheadData=function(){var e=this,g,c,k,I,J;return _.r(function(q){if(q.nextAddress==1){g=e.data;c=e.hostElement.querySelector("#masthead");if(!c)return q.return();_.Va(e,function(){c.data=e.topbarData});
if(!e.get("response.topbar",g)||e.get("response.topbar.responseContext.maxAgeSeconds",g)===0)return q.jumpTo(0);if(k=_.Ss().resolve(_.Iz))return q.yield(k(),6);I=_.Ss().resolve(_.Bv);return q.yield(I.put("service:topbar:fallback",new _.NT({innertubeResponse:e.get("response.topbar",g)})),0)}return(J=q.yieldResult)?q.yield(J.put("service:topbar:fallback",new _.NT({innertubeResponse:e.get("response.topbar",g)})),0):q.jumpTo(0)})};
_.v.computeTopbarData=function(e){if(!e)return null;var g;return this.isShortsPage&&this.topbarData&&!_.x((g=e.response)==null?void 0:g.topbar,fs7)?this.topbarData:e.response&&"topbar"in e.response?_.x(e.response.topbar,fs7)||null:null};
_.v.onSetTheaterModeEnabled=function(e,g){this.isTheaterModeSession=g.enabled;this.setTheaterModeStyles(g.enabled)};
_.v.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.v.onDarkModeToggledAction=function(){var e=_.tv(window.location.href);if(!_.gKC(e)){(e=!!_.V0(window.location.href).themeRefresh)&&_.mN(new _.E2("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!e){YVO();e={themeRefresh:1};var g=_.Ss().resolve(_.A4);if(g.isOnWatch()){var c,k;g=((c=g.getPlayerFromWatch())==null?void 0:(k=c.getPlayer())==null?void 0:k.getCurrentTime())||0;g>=1&&(e.time_continue=Math.floor(g))}_.a$()||_.Du()!=="USER_INTERFACE_THEME_DARK"||(e.theme="dark");_.Gb(_.t_(window.location.href,
e))}_.G("web_appshell_refresh_trigger")&&_.kp.caches&&this.refreshAppShellResponse();c=_.Bc(window.location.href);_.K3(_.Ss().resolve(_.Oc),_.gN(c,"theme"))}};
_.v.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.v.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.v.onPlayerFullscreen=function(e){_.sM();this.playerFullscreen=e};
_.v.setRestrictedMode=function(e){var g=_.ch();_.kn(0,58,e);g.save();_.Ss().resolve(_.yq).reload()};
_.v.onPageChanged=function(e){e.detail.newPageType==="ytd-watch-flexy"||e.detail.newPageType==="ytd-watch-fixie"||e.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Rd("WEB_PAGE_TYPE_WATCH")):e.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Rd("WEB_PAGE_TYPE_SHORTS")):e.detail.newPageType==="ytd-browse"&&e.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Rd("WEB_PAGE_TYPE_MINI_APP")):_.G("web_frosted_glass")&&e.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Rd("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Rd("WEB_PAGE_TYPE_UNKNOWN"));e.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.v.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.v.onGuideToggleTap=function(){_.oC(this.hostElement,"yt-guide-toggle")};
_.v.onGuideToggleHover=function(){_.oC(this.hostElement,"yt-guide-hover")};
_.v.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.v.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.v.setMastheadTheme=function(){var e=_.Zu(this.hostElement).querySelector("#masthead");e&&(e.dark=e.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),e.isDarkThemeForced=!1)};
_.v.onRequestPanelModeChange=function(e,g){this.hideHeaderShadow=g.mode!=="seamed"};
_.v.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.v.onDrawerIronSelect=function(e){_.A3(e).id==="guide"&&this.processDrawerIronSelect()};
_.v.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var e="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(e="opened"));_.oC(this.hostElement,"yt-autonav-pause-guide-"+e)};
_.v.onAddElementToApp=function(e){_.o1(this.hostElement).appendChild(e.detail)};
_.v.onThrottledScroll=function(){var e=_.Ss().resolve(_.A4).getCurrentPage();e&&(this.scrollAtTopInternal=e.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.v.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.v.setFullscreen=function(){if(_.G("external_fullscreen")||!this.isWatchPage){var e=_.G("kevlar_fullerscreen_root_only_killswitch")?!!_.sM():!!_.sM()&&_.sM()===document.documentElement;e=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(e||this.isFullWindowSession);this.fullscreen!==e&&((this.fullscreen=e)&&_.V1(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Tt().dispatch(_.jE1(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Z5(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.v.setFullscreenLoggingForShorts=function(e){var g,c,k;return _.r(function(I){if(I.nextAddress==1)return I.yield((g=_.FE())==null?void 0:g.getPlayerPromise(),2);c=I.yieldResult;(k=c)==null||k.setAppFullscreen(e);_.Uh(I)})};
_.v.updateMastheadCssHeight=function(){var e=this.mastheadHeight;this.fullscreen&&(e=0);_.Nk(this.hostElement,{"--ytd-masthead-height":e+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.v.updateNetworkStatusBannerDisplayStatus=function(){var e="unset";this.fullscreen&&(e="none");_.Nk(this.hostElement,{"--ytd-network-status-banner-display":e})};
_.v.updateNetworkStatusBannerCssHeight=function(){var e="unset";this.fullscreen&&(e="0px");_.Nk(this.hostElement,{"--ytd-network-status-banner-max-height":e})};
_.v.updateScrollAndMasthead=function(e,g,c,k){this.iMaxTheaterMode||(k=!1);var I=_.Ss().resolve(_.A4).getCurrentPage();e||g||k?(document.body.classList.add("no-scroll"),I.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.yg(this,this.onScroll)),I.setScrollTop(0),_.Nk(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":V$()+"px"})):c?_.oC(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.oC(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
I.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.yg(this,this.onScroll)));this.mastheadHidden=e||g||c;this.updateMastheadCssHeight();_.G("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.v.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.v.onYtNavigateAction=function(e){e=this.get("navigateAction.endpoint",e);_.oC(this.hostElement,"yt-navigate",{endpoint:e})};
_.v.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var e=document.createElement("yt-create-family-dialog");_.o1(this.hostElement).appendChild(e);this.hasCreateFamilyDialog=!0}};
_.v.onSetPushNotificationsEnabledCommand=function(e){var g=this,c=_.x(e,$FX);c&&typeof c.enabled==="boolean"&&(Notification.permission!=="granted"?ubo().then(function(){Notification.permission==="granted"?(Rmv(!c.enabled).then(hmO),c.successAction&&_.tr(g.hostElement,[c.successAction])):c.failureAction&&_.tr(g.hostElement,[c.failureAction])}):(Rmv(!c.enabled).then(hmO),c.successAction&&_.tr(this.hostElement,[c.successAction])))};
_.v.onYtSignalActionEnableChromeNotifications=function(){dcg(!0)};
_.v.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.x(this.topbarData.hotkeyDialog,p1M)}}})};
_.v.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Z5(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.v.onYtEndpointChangeHandler=function(e,g){var c=_.Q5(_.SM);c.pendingPrefetchJob_&&(g=!(!g||g.autonav!="1"),c.pendingPrefetchJob_.resolve(e&&_.k2C(e)?_.IIv(e,g):""),c.pendingPrefetchJob_=null);_.Z5(this.hostElement,"yt-pause-active-page-context");_.Z5(this.hostElement,"ytd-log-youthere-nav");_.Z5(this.hostElement,"yt-prepare-page-dispose")};
_.v.handleCommandWithCommandHandler=function(e,g){_.yJ.instance.resolveCommand(e,{form:{element:g}})};
_.v.onYtTimedCommand=function(e){var g=this;e=_.x(e,Ch0);var c=e.command;c&&_.e$(_.ft,function(){var k=_.x(c,_.CZM);k?(_.yJ.instance.resolveCommand(c),g.maybeLogGetAnswerRequestTick(k)):_.Bm(g.hostElement,[c],g.hostElement)},e.timeoutMs||0)};
_.v.maybeLogGetAnswerRequestTick=function(e){e&&e.isFirstRequest&&(_.EV("search_overview_answer"),_.Wh("so_rq",void 0,"search_overview_answer"))};
_.v.onYtSignalActionSkipNavigation=function(){var e=_.Ss().resolve(_.A4).getCurrentPage();_.oF(e)};
_.v.onYtSignalActionCopyDebugData=function(){aYS()};
_.v.handleEntityUpdateCommand=function(e){_.Mc(_.x(e,_.bX1).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.v.logFlowLoggingEventCommand=function(e){if(e=_.x(e,_.T9C))if(e.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var g=e.flowEventNamespace,c=e.flowEventType,k=e.flowType;k&&g&&c&&_.yiC(_.tw(g,c,e.flowEventMetadata),k)}else{g=_.BL();c=e.flowEventNamespace;k=e.flowEventType;var I=e.flowType;I&&c&&k&&g.logFlowEvent(_.tw(c,k,e.flowEventMetadata),I,e.flowNonce)}};
_.v.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.v.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.v.onTouchStart=function(){var e=_.Co();_.EM()&&_.$y(e.JSC$13624_screenManager,{visualElement:e.ve})};
_.v.handleSelectLanguageCommand=function(e){if(e=_.x(e,R$x).hl){var g=_.ch();g.set("hl",e);g.save();_.Ss().resolve(_.yq).reload()}};
_.v.handleConfirmDialogEndpoint=function(e){(e=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(e))&&this.ytOpenPopupBehavior.openPopup(e)};
_.v.handleOpenPopupNavigationEndpoints=function(e,g){(e=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(e))&&this.ytOpenPopupBehavior.openPopup(e,g)};
_.v.handleSaveCommandToSessionStorage=function(e){if(e=_.x(e,_.OwZ)){var g=e.key;g&&e.command&&window.sessionStorage.setItem(g,JSON.stringify(e.command))}};
_.v.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(e){e&&e.active&&e.active.postMessage({type:"refresh_shell"})}).catch(function(e){e.name!=="SecurityError"&&_.jW(e)})};
_.v.onDeviceThemeChanged=function(){var e=_.xv();_.kn(_.ch(),185,e);_.ch().save()};
_.v.handleYtRegisterPromoCommand=function(e){if(_.x(e,DFS)){var g=_.Ss().resolve(_.A4).getCurrentPage()||this.hostElement;E0Q().registerPromoCommand(_.x(e,DFS),g)}};
_.v.onYtNavigateHomeAction=function(){if(!_.G("kevlar_miniplayer_navigate_home_from_app_killswitch")){var e,g,c,k,I=(k=(e=this.topbarData)==null?void 0:(g=e.logo)==null?void 0:(c=g.topbarLogoRenderer)==null?void 0:c.endpoint)!=null?k:_.cl;this.ytComponentBehavior.resolveCommand(I)}};
_.v.onYtLocationCollectionCommand=function(e){iZS(_.x(e,HWg))};
_.v.onYtGetLocationCommand=function(e){gVQ(_.x(e,zKD),this)};
_.v.updateRenderGuideFromBinding=function(e){this.renderGuide=e.detail.value};
_.v.updateGuidePersistentAndVisibleFromBinding=function(e){this.guidePersistentAndVisible=e.detail.value};
_.v.updateMiniGuideVisibleFromBinding=function(e){this.miniGuideVisible=e.detail.value};
_.v.onThemeSelected=function(e,g){var c=_.ch(),k=e||g?e:_.xv(),I=(k&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!k&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.gKC(_.tv(window.location.href));_.kn(0,165,e);_.kn(0,174,g);c.save();I&&_.Z5(this.hostElement,"yt-dark-mode-toggled-action",[k]);_.Z5(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.v.getCurrentTheme=function(){return _.$v()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Du()};
_.v.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.v.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.v.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.v.handleShowConsentPrimitive=function(e){var g=this,c,k;return _.r(function(I){if(I.nextAddress==1){try{c=(k=_.FE())==null?void 0:k.getPlayerPromise()}catch(J){}return I.yield(NG7(e,c),2)}_.Z5(g.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Uh(I)})};
_.v.handleSelectActiveIdentityEndpointInternal=function(e){_.h3();e=_.x(e,_.W5w);if(e!=null&&e.supportedTokens){e=_.w(e.supportedTokens);for(var g=e.next();!g.done;g=e.next())g=g.value,g.accountSigninToken&&_.Gb(g.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.v.handleUpdatePermissionRoleCommand=function(e){if(e=_.x(e,_.E31)){var g;this.hasDelegation=!((g=_.x(e.renderer,_.RTM))==null||!g.status)}};
_.v.registerWithViewTransitionManager=function(){var e=_.Ss().resolve(_.NN(_.JG));if(e){var g,c=(g=this.guide)==null?void 0:g.querySelector("#scrim"),k;g=(k=this.guide)==null?void 0:k.querySelector("#contentContainer");c&&g&&e.isAnyTransitionEnabled&&(k={},e.viewTransitionCoordinator.registerElement(c,(k.slide="app-drawer-scrim-page-transition",k["lockup-to-watch"]="app-drawer-scrim-page-transition",k["learning-journey"]="app-drawer-scrim-page-transition",k)),c={},e.viewTransitionCoordinator.registerElement(g,
(c.slide="app-drawer-container-page-transition",c["lockup-to-watch"]="app-drawer-container-page-transition",c["learning-journey"]="app-drawer-container-page-transition",c)))}};
_.Bd.Object.defineProperties(Tw.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.G("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.G("kevlar_show_chips_on_scroll"))}}});
_.Bd.Object.defineProperties(Tw,{template:{configurable:!0,enumerable:!0,get:function(){if(sRa===void 0){var e=document.createElement("template");_.P(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
e.content.insertBefore(_.N().content.cloneNode(!0),e.content.firstChild);sRa=e}e=sRa;return e}}});
Tw.prototype.onOpenHotkeyDialog=Tw.prototype.onOpenHotkeyDialog;Tw.prototype.setFullscreen=Tw.prototype.setFullscreen;Tw.prototype.onAddElementToApp=Tw.prototype.onAddElementToApp;Tw.prototype.onDrawerIronSelect=Tw.prototype.onDrawerIronSelect;Tw.prototype.onGuideOpenButtonHover=Tw.prototype.onGuideOpenButtonHover;Tw.prototype.onRequestPanelModeChange=Tw.prototype.onRequestPanelModeChange;Tw.prototype.onPageDataUpdated=Tw.prototype.onPageDataUpdated;Tw.prototype.onPageChanged=Tw.prototype.onPageChanged;
Tw.prototype.onSetTheaterModeEnabled=Tw.prototype.onSetTheaterModeEnabled;Tw.prototype.updateMastheadData=Tw.prototype.updateMastheadData;Tw.prototype.onYtPageManagerAttached=Tw.prototype.onYtPageManagerAttached;Tw.prototype.observePersistentPanelVisibility=Tw.prototype.observePersistentPanelVisibility;Tw.prototype.observeGuideVisibility=Tw.prototype.observeGuideVisibility;Tw.prototype.guideIsVisibleButNotPersistentSelectorChanged=Tw.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Tw.prototype.isInlinePreviewEnabledChanged=Tw.prototype.isInlinePreviewEnabledChanged;Tw.prototype.isWatchPageChanged=Tw.prototype.isWatchPageChanged;Tw.prototype.dispatchFrostedGlassMode=Tw.prototype.dispatchFrostedGlassMode;_.t([_.m(_.Wv),_.B("design:type",Object)],Tw.prototype,"ytdReduxBehavior",void 0);_.t([_.m(_.J8.YtEventForwardingBehavior),_.B("design:type",Object)],Tw.prototype,"ytEventForwardingBehavior",void 0);
_.t([_.m(_.tF.YtOpenPopupBehavior),_.B("design:type",Object)],Tw.prototype,"ytOpenPopupBehavior",void 0);_.t([_.m(_.Nr.YtActionHandlerBehavior),_.B("design:type",Object)],Tw.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.m({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.dF.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.G("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var e;((e=this.actionRouterNode.hostElement)!=null?e:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var e;((e=this.actionRouterNode.hostElement)!=null?e:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(e){this.actionRouter_.handleAction(e.detail)}}),
_.B("design:type",Object)],Tw.prototype,"ytActionRouterBehavior",void 0);_.t([_.m(ymM.YtdAppBehavior),_.B("design:type",Object)],Tw.prototype,"ytdAppBehavior",void 0);_.t([_.m(_.B$.YtEndpointBehavior),_.B("design:type",Object)],Tw.prototype,"ytEndpointBehavior",void 0);_.t([_.m(HrP.YtEndpointHandlerWithYpcBehavior),_.B("design:type",Object)],Tw.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.t([_.m(F6p.YtLogYpcFlowCommandsBehavior),_.B("design:type",Object)],Tw.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.t([_.m(_.K.YtRendererBehavior),_.B("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.t([_.m(_.hF.YtComponentBehavior),_.B("design:type",Object)],Tw.prototype,"ytComponentBehavior",void 0);_.t([_.u({selector:DoX}),_.B("design:type",Object)],Tw.prototype,"tabGesturesIsActive",void 0);_.t([_.u(),_.B("design:type",Boolean)],Tw.prototype,"renderGuide",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Tw.prototype,"guidePersistentAndVisible",void 0);_.t([_.u({selector:Gj0}),_.B("design:type",Boolean)],Tw.prototype,"guideIsVisibleButNotPersistent",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Tw.prototype,"standalone",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Tw.prototype,"miniGuideVisible",void 0);
_.t([_.u(),_.B("design:type",Object)],Tw.prototype,"persistentPanelEnabled",void 0);_.t([_.u({selector:k1j,reflectToAttribute:!0}),_.B("design:type",Boolean)],Tw.prototype,"persistentPanelVisible",void 0);_.t([_.u({selector:_.Aze}),_.B("design:type",Number)],Tw.prototype,"miniplayerPlaybackState",void 0);_.t([_.u({selector:_.Eo,reflectToAttribute:!0}),_.B("design:type",Boolean)],Tw.prototype,"miniplayerIsActive",void 0);
_.t([_.u({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.B("design:type",Boolean)],Tw.prototype,"isInlinePreviewEnabled",void 0);_.t([_.u(),_.B("design:type",Boolean)],Tw.prototype,"isInlinePreviewDisabled",void 0);_.t([_.u({reflectToAttribute:!0,value:function(){return _.dH("START_IN_FULL_WINDOW_MODE")}}),
_.B("design:type",Boolean)],Tw.prototype,"mastheadHidden",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Tw.prototype,"playerFullscreen",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Tw.prototype,"fullscreen",void 0);_.t([_.u({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Tw.prototype,"hideHeaderShadow",void 0);
_.t([_.u({value:{GUIDE_ALT_LABEL:_.C_("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.B("design:type",Object)],Tw.prototype,"menuStrings",void 0);_.t([_.u({computed:"computeTopbarData(data)"}),_.B("design:type",Object)],Tw.prototype,"topbarData",void 0);_.t([_.u({selector:_.mTA,reflectToAttribute:!0}),_.B("design:type",Boolean)],Tw.prototype,"isWatchPage",void 0);_.t([_.u({selector:_.pvU,reflectToAttribute:!0}),_.B("design:type",Boolean)],Tw.prototype,"isShortsPage",void 0);
_.t([_.u({selector:function(e){return _.WL(e)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.B("design:type",Boolean)],Tw.prototype,"isMiniAppPage",void 0);_.t([_.u({selector:function(e){return _.WL(e)==="WEB_PAGE_TYPE_BROWSE"}}),
_.B("design:type",Boolean)],Tw.prototype,"isBrowsePage",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Boolean)],Tw.prototype,"scrolling",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Tw.prototype,"hasDelegation",void 0);_.t([_.u({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Tw.prototype,"guideScrolledByTouch",void 0);_.t([_.u(),_.B("design:type",Object)],Tw.prototype,"isFrostedGlassInitialized",void 0);
_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Tw.prototype,"frostedGlassExp",void 0);_.t([_.u({selector:function(e){return e.ui.chipBarIsSticky}}),
_.B("design:type",Boolean)],Tw.prototype,"chipBarIsSticky",void 0);_.t([_.u({selector:xoO}),_.B("design:type",Boolean)],Tw.prototype,"scrollAtTop",void 0);_.t([_.u({computed:"computeIsHomePage(isBrowsePage, data)"}),_.B("design:type",Boolean)],Tw.prototype,"isHomePage",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Tw.prototype,"hasPendingWatchNavigation",void 0);_.t([_.u({reflectToAttribute:!0}),_.B("design:type",Object)],Tw.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.t([_.u(),_.B("design:type",Object)],Tw.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.t([yH("guide"),_.B("design:type",Object)],Tw.prototype,"guide",void 0);_.t([yH("guide-service"),_.B("design:type",COv)],Tw.prototype,"guideService",void 0);_.t([yH("guide-inner-content"),_.B("design:type",HTMLDivElement)],Tw.prototype,"guideInnerContent",void 0);_.t([_.Cs("#persistent-panel-container"),_.B("design:type",HTMLElement)],Tw.prototype,"persistentPanelContainer",void 0);
_.t([_.u({selector:_.sGq}),_.B("design:type",String)],Tw.prototype,"frostedGlassMode",void 0);_.t([_.OY("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tw.prototype,"dispatchFrostedGlassMode",null);_.t([_.u({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.B("design:type",Object)],Tw.prototype,"isFrostedGlassDisabled",void 0);
_.t([_.OY("isWatchPage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tw.prototype,"isWatchPageChanged",null);_.t([_.p("isHomePage","chipBarIsSticky","scrollAtTop"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Tw.prototype,"applyFrostedGlassToChipBar",null);_.t([_.u(),_.B("design:type",Object)],Tw.prototype,"isChannelOrPlaylistPage",void 0);
_.t([_.k_("isInlinePreviewEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tw.prototype,"isInlinePreviewEnabledChanged",null);_.t([_.OY("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tw.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.t([_.OY("guidePersistentAndVisible","miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tw.prototype,"observeGuideVisibility",null);_.t([_.OY("persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tw.prototype,"observePersistentPanelVisibility",null);
_.t([_.Ks("attached"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Tw.prototype,"onYtPageManagerAttached",null);_.t([_.OY("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],Tw.prototype,"updateMastheadData",null);_.t([_.Ks("yt-set-theater-mode-enabled"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Tw.prototype,"onSetTheaterModeEnabled",null);
_.t([_.Ks("yt-page-type-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Tw.prototype,"onPageChanged",null);_.t([_.Ks("yt-page-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tw.prototype,"onPageDataUpdated",null);_.t([_.Ks("yt-request-panel-mode-change"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],Tw.prototype,"onRequestPanelModeChange",null);
_.t([_.Ks("yt-guide-hover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tw.prototype,"onGuideOpenButtonHover",null);_.t([_.Ks("app-drawer-transitioned"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Tw.prototype,"onDrawerIronSelect",null);_.t([_.Ks("yt-add-element-to-app"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Tw.prototype,"onAddElementToApp",null);
_.t([_.Ks("yt-set-fullerscreen-styles"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tw.prototype,"setFullscreen",null);_.t([_.Ks("yt-open-hotkey-dialog"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tw.prototype,"onOpenHotkeyDialog",null);_.t([_.bF({is:"ytd-app"})],Tw);_.iE().processSignal("eor");

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